[PATCH][PR target/19201] Peephole to improve clearing items in structure for m68k
[official-gcc.git] / gcc / ChangeLog
blob730c79f118f764bb19b524ef1f00d49051845016
1 2015-12-13  Kazu Kirata  <kazu@gcc.gnu.org>
3         * config/m68k/m68k.md (load feeding clear byte): New peephole2.
5 2015-12-13  Tom de Vries  <tom@codesourcery.com>
7         * tree-ssa-structalias.c (find_func_clobbers): Handle sizes and kinds
8         parameters of GOACC_paralllel.
10 2015-12-10  Jan Hubicka  <hubicka@ucw.cz>
12         * cgraph.c (cgraph_node::get_untransformed_body): Pass compressed
13         flag to lto_get_section_data.
14         * varpool.c (varpool_node::get_constructor): Likewise.
15         * lto-section-in.c (lto_get_section_data): Add new flag decompress.
16         (lto_free_section_data): Likewise.
17         (lto_get_raw_section_data): New function.
18         (lto_free_raw_section_data): New function.
19         (copy_function_or_variable): Copy sections w/o decompressing.
20         (lto_output_decl_state_refs): Picke compressed bit.
21         * lto-streamer.h (lto_in_decl_state): New flag compressed.
22         (lto_out_decl_state): Likewise.
23         (lto_get_section_data, lto_free_section_data): Update prototypes
24         (lto_get_raw_section_data, lto_free_raw_section_data): Declare.
25         (lto_write_raw_data): Declare.
26         (lto_begin_section): Remove FIXME.
27         (lto_write_raw_data): New function.
28         (lto_write_stream): Remove FIXME.
29         (lto_new_out_decl_state): Set compressed flag.
31 2015-12-10  Jan Hubicka  <hubicka@ucw.cz>
33         * tree.c (free_lang_data_in_type, find_decls_types_r): Also free
34         unnecesary type decls.
35         * tree.h (is_redundant_typedef): Declare.
36         * dwarf2out.c (is_redundant_typedef): Export; booleanize
38 2015-12-12  Eric Botcazou  <ebotcazou@adacore.com>
40         * config/sparc/sparc.h (TARGET_SUPPORTS_WIDE_INT): Define to 1.
41         * config/sparc/sparc.c (sparc_emit_set_const64): Remove code
42         conditionalized on HOST_BITS_PER_WIDE_INT == 32.
43         (sparc_cannot_force_const_mem) <CONST_WIDE_INT>: New case.
44         <CONST_DOUBLE>: Remove VOIDmode test.
45         (epilogue_renumber) <CONST_WIDE_INT>: New case.
46         (sparc_print_operand): Remove support for CONST_DOUBLE with VOIDmode.
47         (sparc_assemble_integer): Likewise.
48         (set_extends): Likewise.
49         (sparc_rtx_costs) <CONST_INT>: Use SMALL_INT.
50         <CONST_WIDE_INT>: New case.
51         <CONST_DOUBLE>: Remove support for VOIDmode.
52         <MULT>: Remove support for CONST_DOUBLE with VOIDmode.
53         * config/sparc/predicates.md (const_zero_operand): Add const_wide_int.
54         (const_all_ones_operand): Likewise.
55         (uns_small_int_operand): Remove const_double and code conditionalized
56         on HOST_BITS_PER_WIDE_INT == 32.
57         (arith_double_operand): Likewise.
58         (arith_double_add_operand): Likewise.
59         (input_operand): Remove support for CONST_DOUBLE with DImode.
60         * config/sparc/sparc.md (DImode CONST_INT splitter): Remove code
61         conditionalized on HOST_BITS_PER_WIDE_INT == 32.
62         (DFmode CONST_DOUBLE splitter): Likewise.
63         (*adddi3_insn_sp32): Likewise.
64         (*subdi3_insn_sp32): Likewise.
65         (DImode logical splitter): Likewise.
66         (DImode CONST_DOUBLE splitter): Delete.
68 2015-12-12  Paolo Bonzini  <bonzini@gnu.org>
70         PR sanitizer/68418
71         * c-family/c-ubsan.c (ubsan_instrument_shift): Disable
72         sanitization of left shifts for wrapping signed types as well.
74 2015-12-11  Eric Botcazou  <ebotcazou@adacore.com>
76         PR middle-end/68215
77         * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
78         Do not gimplify the result.
79         (do_unop): Adjust call to tree_vec_extract.
80         (do_binop): Likewise.
81         (do_compare): Likewise.
82         (do_plus_minus): Likewise.
83         (do_negate): Likewise.
84         (expand_vector_condition): Likewise.
85         (do_cond): Likewise.
87 2015-12-11  Nathan Sidwell  <nathan@acm.org>
89         * config/nvptx/nvptx.h (RETURN_ADDR_REGNO): Delete.
90         (OUTGOING_ARG_POINTER_REGNUM): Delete.
91         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
92         (REGISTER_NAMES): Name static chain regs.
93         * config/nvptx/nvptx.c (nvptx_function_arg): Add ARG_UNUSED, merge
94         ifs.
95         (nvptx_incoming_arg): Merge ifs.
96         (nvptx_function_arg_boundary): Reimplement to avoid mixing units.
97         (nvptx_function_value): Tail call nvptx_libcall_value.
98         (nvptx_pass_by_reference): Add ARG_UNUSED.
99         (nvptx_static_chain): Use conditional op.
100         (nvptx_handle_kernel_attribute): Use VOID_TYPE_P.
102 2015-12-11  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
103             Dominique d'Humieres  <dominiq@lps.ens.fr>
105         PR target/26427
106         PR target/33120
107         PR testsuite/35710
108         * config/darwin.c (darwin_use_anchors_for_symbol_p): Fix indention and
109         trailing whitespace.
111 2015-12-11  Jan Beulich  <jbeulich@suse.com>
113         * cfgexpand.c (expand_one_var): Exit early for static and
114         external variables when adjusting stack alignment related.
116 2015-12-11  Dominik Vogt  <vogt@linux.vnet.ibm.com>
118         * config/s390/s390.c (s390_rtx_costs)
119         (s390_cannot_force_const_mem, legitimate_pic_operand_p)
120         (s390_preferred_reload_class, s390_reload_symref_address)
121         (legitimate_reload_constant_p, print_operand): Wide int support.
122         * config/s390/predicates.md ("const0_operand", "constm1_operand")
123         ("consttable_operand"): Likewise.
124         ("larl_operand"): Add a comment.
125         * config/s390/s390.h (TARGET_SUPPORTS_WIDE_INT): Enable wide int
126         support.
128 2015-12-11  Nathan Sidwell  <nathan@acm.org>
130         * config/nvptx/nvptx.h (TARGET_SUPPORTS_WIDE_INT): Define.
131         * config/nvptx/nvptx.c (nvptxx_assemble_integer): Return false for
132         unrecognizable RTX.
134 2015-12-11  Tom de Vries  <tom@codesourcery.com>
136         * passes.def: Remove unpaired TERMINATE_PASS_LIST.
138 2015-12-11  Michael Matz  <matz@suse.de>
140         * hash-map.h (hash_map::hash_map): Gather statistics only
141         when GATHER_STATISTICS is true.
142         * hash-set.h (hash_set::hash_set): Ditto.
143         * hash-table.h (hash_table::hash_table): Ditto.
144         (hash_table::create_ggc): Ditto.
146 2015-12-11  Martin Jambor  <mjambor@suse.cz>
148         PR ipa/68064
149         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Add checking
150         assert that align is nonzero.
152 2015-12-11  Dominik Vogt  <vogt@linux.vnet.ibm.com>
154         * config/s390/s390.c (s390_expand_setmem): Use new expanders.
155         * config/s390/s390.md ("*setmem_long")
156         ("*setmem_long_and", "*setmem_long_31z"): Fix warnings.
157         ("*setmem_long_and_31z"): New define_insn.
158         ("setmem_long_<P:mode>"): New expanders.
159         * (<modesize>): New mode attribute
161 2015-12-11  Dominik Vogt  <vogt@linux.vnet.ibm.com>
163         * config/s390/s390.md ("movstr", "*movstr"): Fix warning.
164         ("movstr<P:mode>"): New indirect expanders used by "movstr".
166 2015-12-11  Martin Liska  <mliska@suse.cz>
167             Uros Bizjak  <ubizjak@gmail.com>
169         PR target/67484
170         * config/i386/i386.c (ix86_valid_target_attribute_tree):
171         Use ggc_strdup to copy option_strings to opts->x_ix86_arch_string and
172         opts->x_ix86_tune_string.
174 2015-12-11  Richard Biener  <rguenther@suse.de>
176         * lto-streamer.h (lto_simple_header_with_strings): Remove
177         main_size field already in lto_simple_header.
179 2015-12-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
181         * tree-vect-stmts.c (vectorizable_mask_load_store): Check
182         mask vectype.
184 2015-12-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
186         * config/i386/i386.c (ix86_get_mask_mode): Use scalar
187         modes for 32 and 16 byte boolean vectors when possible.
189 2015-12-11  Segher Boessenkool  <segher@kernel.crashing.org>
191         PR rtl-optimization/67778
192         PR rtl-optimization/68634
193         * shrink-wrap.c (try_shrink_wrapping): Add a comment about why we want
194         to put the prologue earlier.  When determining if an earlier block is
195         suitable, make sure it dominates every block reachable from it.
197 2015-12-11  Segher Boessenkool  <segher@kernel.crashing.org>
199         PR rtl-optimization/68814
200         * rtlanal.c (set_noop_p): Use BITS_BIG_ENDIAN instead of
201         BYTES_BIG_ENDIAN.
203 2015-12-10  Nathan Sidwell  <nathan@acm.org>
205         * config/nvptx/nvptx.c (nvptx_function_arg,
206         nvptx_function_incoming_arg, nvptx_function_arg_advance,
207         nvptx_strict_argument_naming, nvptx_function_arg_boundary,
208         nvptx_libcall_value, nvptx_function_value,
209         nvptx_function_value_regno_p, nvptx_pass_by_reference,
210         nvptx_return_in_memory, nvptx_promote_function_mode,
211         nvptx_static_chain): Move earlier.
212         (write_one_arg): Break out as helper fn for ...
213         (write_arg): ... this new function.  Adjust all callers.
215 2015-12-10  Jan Hubicka  <hubicka@ucw.cz>
217         * lto-streamer-out.c (wrap_refs): Only wrap public decls.
219 2015-12-10  Jan Hubicka  <hubicka@ucw.cz>
221         * ipa-cp.c (ipcp_cloning_candidate_p): Use node->optimize_for_size_p.
222         (good_cloning_opportunity_p): Likewise.
223         (gather_context_independent_values): Do not return true when
224         polymorphic call context is known or when we have known aggregate
225         value of unused parameter.
226         (estimate_local_effects): Try to create clone for all context
227         when either some params are substituted or devirtualization is possible
228         or some params can be removed; use local flag instead of
229         node->will_be_removed_from_program_if_no_direct_calls_p.
230         (identify_dead_nodes): Likewise.
232 2015-12-10  David Malcolm  <dmalcolm@redhat.com>
234         * doc/invoke.texi (-Wall): Add -Wmisleading-indentation to the
235         list.
236         (-Wmisleading-indentation): Update documentation to reflect
237         being enabled by -Wall in C/C++.
239 2015-12-10  Vladimir Makarov  <vmakarov@redhat.com>
241         PR rtl-optimization/68691
242         * lra-spills.c (lra_final_code_change): Check pseudo occurrence
243         number in non-debug insns and remove debug insns if necessary.
245 2015-12-10  Martin Sebor  <msebor@redhat.com>
247         * invoke.texi (Warning Options): Update -Wall options.  Clarify
248         when some -Wextra options are enabled.  Add -Wplacement-new example.
250 2015-12-10  Uros Bizjak  <ubizjak@gmail.com>
252         * graphite-scop-detection.c (gather_bbs::before_dom_children):
253         Change return type to an edge.  Always return NULL.
255 2015-12-10  Jeff Law  <law@redhat.com>
257         PR tree-optimization/68619
258         * tree-ssa-dom.c (dom_opt_dom_walker::before_dom_children): Propgate
259         return value from optimize_stmt.
260         (dom_opt_dom_walker): Add new argument to dom_walker constructor.
261         (pass_dominator:execute): If a block has an unreachable edge,
262         remove all jump threads through any successor of the affected block.
263         (record_equivalences_from_phis): Ignore alternative if the edge
264         does not have EDGE_EXECUTABLE set.
265         (single_incoming_edge_ignoring_loop_edges): Similarly.
266         (optimize_stmt): If a gimple_code has a compile-time constant
267         condition, return the edge taken for that constant value.  Also
268         change the condition to true/false as necessary.
269         * domwalk.h (dom_walker::dom_walker): Add new argument
270         skip_unreachable_blocks.  Don't provide empty constructor body.
271         (dom_walker::before_dom_children): Change return type.
272         (dom_walker::bb_reachable): Declare new private method.
273         (dom_walker::propagate_unreachable_to_edges): Likewise.
274         (dom_walker::m_unreachable_dom): Declare new private data member.
275         (dom_walker::m_skip_unreachable_blocks): Likewise.
276         * domwalk.c: Include dumpfile.h.
277         (dom_walker::dom_walker): New constructor.  Initialize private data
278         members.  If needed, set EDGE_EXECUTABLE for all edges in the CFG,
279         extracted from tree-ssa-sccvn.c.
280         (dom_walker::bb_reachable): New method extracted from tree-ssa-sccvn.c
281         (dom_walker::propagate_unreachable_to_edges): Likewise.
282         (dom_walker::walk): Only call before_dom_children on reachable
283         blocks.  If before_dom_children returns an edge, then clear
284         EDGE_EXECUTABLE for all other outgoing edges from the same block.
285         For unreachable blocks, call propagate_unreachable_to_edges.
286         Similarly, only call after_dom_children on reachable blocks.  For
287         unreachable blocks, conditionally clear m_unreachable_dom.
288         * tree-ssa-sccvn.c (sccvn_dom_walker::unreachable_dom): Remove
289         private data member.
290         (sccvn_dom_walker::after_dom_children): Use methods from dom_walker
291         class.
292         (run_scc_vn): Likewise.
293         (sccvn_dom_walker::before_dom_children): Likewise.  Return the taken
294         outgoing edge if a COND, SWITCH, or GOTO are optimized.
295         * compare-elim.c (find_comparison_dom_walker::before_dom_children):
296         Change return type to an edge.  Always return NULL.
297         * fwprop.c (single_def_use_dom_walker::before_dom_children): Likewise.
298         * gimple-ssa-strength-reduction.c
299         (find_candidates_dom_walker::before_dom_children): Likewise.
300         * ipa-prop.c (analysis_dom_walker::before_dom_children): Likewise.
301         (ipcp_modif_dom_walker::before_dom_children): Likewise.
302         * tree-into-ssa.c (rewrite_dom_walker::before_dom_children): Likewise.
303         (rewrite_update_dom_walker::before_dom_children): Likewise.
304         (mark_def_dom_children::before_dom_children): Likewise.
305         * tree-ssa-dse.c (dse_dom_walker::before_dom_children): Likewise.
306         * tree-ssa-loop-im.c
307         (invariantness_dom_walker::before_dom_children): Likewise.
308         (move_computations_dom_walker::before_dom_walker): Likewise.
309         * tree-ssa-phiopt.c
310         (nontrapping_dom_walker::before_dom_children): Likewise.
311         * tree-ssa-pre.c
312         (eliminate_dom_walker::before_dom_children): Likewise.
313         * tree-ssa-propagate.c
314         (substitute_and_fold_dom_walker::before_dom_children): Likewise.
315         * tree-ssa-strlen.c
316         (strlen_dom_walker::before_dom_children): Likewise.
317         * tree-ssa-uncprop.c
318         (uncprop_dom_walker::before_dom_children): Likewise.
320 2015-12-10  Jakub Jelinek  <jakub@redhat.com>
322         PR rtl-optimization/68376
323         PR rtl-optimization/68670
324         * ifcvt.c (noce_try_abs): For one_cmpl allow < 0, >= 0
325         or > -1 conditions regardless of negate, and disallow
326         all other conditions.
328 2015-12-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
330         * tree-chkp.c (chkp_call_returns_bounds_p): Return true
331         for VA_ARG call.
332         (chkp_fixup_inlined_call): New.
333         * tree-chkp.h (chkp_fixup_inlined_call): New.
334         * tree-stdarg.c: Include tree-chkp.h.
335         (expand_ifn_va_arg_1): Fixup bndret calls for removed
336         VA_ARG calls.
338 2015-12-10  Martin Jambor  <mjambor@suse.cz>
340         * tree-inline.c (duplicate_remap_omp_clause_seq): New function.
341         (replace_locals_op): Duplicate gimple sequences in OMP clauses.
343 2015-12-10  David Malcolm  <dmalcolm@redhat.com>
345         * graphite-optimize-isl.c (scop_get_domains): Fix indentation.
347 2015-12-10  David Malcolm  <dmalcolm@redhat.com>
349         * ifcvt.c (noce_try_inverse_constants): Fix indentation.
351 2015-12-10  David Malcolm  <dmalcolm@redhat.com>
353         * regrename.c (scan_rtx_address): Fix indentation.
355 2015-12-10  David Malcolm  <dmalcolm@redhat.com>
357         * function.c (locate_and_pad_parm): Fix indentation.
359 2015-12-10  Richard Biener  <rguenther@suse.de>
361         * tree-ssa-structalias.c (struct variable_info): Add
362         is_ipa_escape_point flag.
363         (new_var_info): Initialize to false.
364         (find_func_aliases): Generate escape constraints for stores
365         properly in IPA mode.
366         (ipa_pta_execute): Compute is_ipa_escape_point for globals.
368 2015-12-10  Claudiu Zissulescu  <claziss@synopsys.com>
370         * config/arc/atomic.md: Add new file.
372 2015-12-10  Claudiu Zissulescu  <claziss@synopsys.com>
374         * config/arc/arc-protos.h (arc_expand_atomic_op): Prototype.
375         (arc_split_compare_and_swap): Likewise.
376         (arc_expand_compare_and_swap): Likewise.
377         * config/arc/arc.c (arc_init): Check usage atomic option.
378         (arc_pre_atomic_barrier): New function.
379         (arc_post_atomic_barrier): Likewise.
380         (emit_unlikely_jump): Likewise.
381         (arc_expand_compare_and_swap_qh): Likewise.
382         (arc_expand_compare_and_swap): Likewise.
383         (arc_split_compare_and_swap): Likewise.
384         (arc_expand_atomic_op): Likewise.
385         * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): New C macro.
386         (ASM_SPEC): Enable mlock option when matomic is used.
387         * config/arc/arc.md (UNSPEC_ARC_MEMBAR): Define.
388         (VUNSPEC_ARC_CAS): Likewise.
389         (VUNSPEC_ARC_LL): Likewise.
390         (VUNSPEC_ARC_SC): Likewise.
391         (VUNSPEC_ARC_EX): Likewise.
392         * config/arc/arc.opt (matomic): New option.
393         * config/arc/constraints.md (ATO): New constraint.
394         * config/arc/predicates.md (mem_noofs_operand): New predicate.
395         * doc/invoke.texi: Document -matomic.
396         * config/arc/atomic.md: New file.
398 2015-12-10  Richard Biener  <rguenther@suse.de>
400         PR tree-optimization/68817
401         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Detect
402         gaps early.
404 2015-12-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
406         * tree-vect-stmts.c (vectorizable_assignment): Support
407         useless boolean conversion.
409 2015-12-10  Alan Lawrence  <alan.lawrence@arm.com>
411         * doc/install.texi: Add note against GNAT 4.8 on ARM targets.
413 2015-12-10  Jakub Jelinek  <jakub@redhat.com>
415         PR tree-optimization/68785
416         * gimple-fold.c (fold_ctor_reference): Pass return value from
417         native_encode_expr to native_interpret_expr.
418         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Likewise.
420 2015-12-10  Richard Biener  <rguenther@suse.de>
422         PR ipa/68331
423         * tree-ssa-structalias.c (set_uids_in_ptset): Add fndecl
424         parameter and make vars_contains_nonlocal properly have
425         function-scope semantics in IPA mode.
426         (find_what_var_points_to): Add fndecl parameter.
427         (find_what_p_points_to): Likewise.
428         (pt_solution_includes_global): Remove IPA PTA early out.
429         (compute_points_to_sets): Adjust.
430         (ipa_pta_execute): Likewise.  Clear final_solutions after
431         each function.
433 2015-12-10  Tom de Vries  <tom@codesourcery.com>
435         PR ada/65102
436         * doc/include/fdl.texi: Add nodefaultgnufreedocumentationlicensenode
437         ifdef to allow disabling default @node GNU Free Documentation License.
439 2015-12-10  Richard Biener  <rguenther@suse.de>
441         * tree-ssa-structalias.c (create_function_info_for): Add missing
442         constraint from nonlocal for DECL_RESULT.
444 2015-12-10  Richard Biener  <rguenther@suse.de>
446         * tree-if-conv.c: Include params.h.
447         (ifcvt_memrefs_wont_trap): Use PARAM_ALLOW_STORE_DATA_RACES
448         instead of flag_tree_loop_if_convert_stores to guard cases
449         we'd introduce store-data-races.
451 2015-12-10  Richard Biener  <rguenther@suse.de>
453         PR ipa/68721
454         * ipa-split.c (split_function): Record return value properly
455         when the split part doesn't set it.
457 2015-12-10  Richard Biener  <rguenther@suse.de>
459         PR tree-optimization/68806
460         * tree-vect-loop.c (vect_analyze_loop_2): Properly detect
461         reduction chains and ignore SLP reductions.
463 2015-12-10  Richard Biener  <rguenther@suse.de>
465         * tree-if-conv.c (if_convertible_loop_p_1): Do not compute
466         dependences.
467         (if_convertible_loop_p): Adjust.
469 2015-12-10  Tom de Vries  <tom@codesourcery.com>
471         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Remove
472         invalid assert.
474 2015-12-10  Martin Liska  <mliska@suse.cz>
476         * tree-vect-data-refs.c: Free an overwritten dataref.
478 2015-12-09  John David Anglin  <danglin@gcc.gnu.org>
480         PR target/68729
481         * config/pa/pa.c (pa_emit_move_sequence): Don't check that mode is
482         consistent with modes of the input and output operands when doing
483         reloads to and from floating point registers.  Do reload for all
484         address forms.
486 2015-12-08  Jan Hubicka  <hubicka@ucw.cz>
488         PR ipa/61886
489         PR middle-end/25140
490         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Use compare_base_decls
491         (nonoverlapping_component_refs_of_decl_p): Update sanity check.
492         (decl_refs_may_alias_p): Use compare_base_decls.
493         * alias.c: Include cgraph.h
494         (get_alias_set): Add cut-off for recursion.
495         (rtx_equal_for_memref_p): Use rtx_equal_for_memref_p.
496         (compare_base_decls): New function.
497         (base_alias_check): Likewise.
498         (memrefs_conflict_p): Likewise.
499         (nonoverlapping_memrefs_p): Likewise.
500         * alias.h (compare_base_decls): Declare.
502 2015-12-08  Jan Hubicka  <hubicka@ucw.cz>
504         PR ipa/61886
505         * ipa-visibility.c (function_and_variable_visibility): Fix vtable
506         rewritting guard.
508 2015-12-08  Jan Hubicka  <hubicka@ucw.cz>
510         PR ipa/61886
511         PR middle-end/25140
512         * ipa-reference.c (ipa_reference_get_not_read_global,
513         ipa_reference_get_not_read_global): Fix WRT aliases.
514         (is_improper): Break out from ...
515         (is_proper_for_analysis): ... here; fix WRT aliases.
516         (analyze_function, generate_summary,
517         ipa_reference_write_optimization_summary,
518         ipa_reference_read_optimization_summary): Use ipa_reference_var_uid.
519         * ipa-refrence.h (ipa_reference_var_uid): New inline.
520         * tree-ssa-alias.c: Revert my accidental previous commit.
521         (ref_maybe_used_by_call_p_1,
522         call_may_clobber_ref_p_1): Use ipa_reference_var_uid.
524 2015-12-09  Andreas Tobler  <andreast@gcc.gnu.org>
526         * config/rs6000/freebsd64.h: Remove the redefinition of WCHAR_TYPE.
528 2015-12-09  Aditya Kumar  <aditya.k7@samsung.com>
529             Sebastian Pop  <s.pop@samsung.com>
531         * graphite-optimize-isl.c: Include isl/ast_build.h
532         (optimize_isl): Set several isl_options_set_* options.
534 2015-12-09  Aditya Kumar  <aditya.k7@samsung.com>
535             Sebastian Pop  <s.pop@samsung.com>
537         * graphite-sese-to-poly.c (pdr_add_memory_accesses): Iterate in
538         the same order as adding data reference access functions.
540 2015-12-09  Aditya Kumar  <aditya.k7@samsung.com>
541             Sebastian Pop  <s.pop@samsung.com>
543         * graphite-optimize-isl.c (optimize_isl): Improve dump message.
545 2015-12-09  Marek Polacek  <polacek@redhat.com>
547         PR tree-optimization/66949
548         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Don't call
549         single_non_singleton_phi_for_edges to get the PHI from
550         factor_out_conditional_conversion.  Use NULL_TREE instead of NULL.
551         (factor_out_conditional_conversion): Adjust declaration.  Make it
552         return the newly-created PHI.
554 2015-12-09  James Greenhalgh  <james.greenhalgh@arm.com>
556         * config/aarch64/aarch64-protos.h
557         (aarch64_cannot_change_mode_class): Bring back.
558         * config/aarch64/aarch64.c
559         (aarch64_cannot_change_mode_class): Likewise.
560         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Likewise.
561         * config/aarch64/aarch64.md (aarch64_movdi_<mode>low): Use
562         zero_extract rather than truncate.
563         (aarch64_movdi_<mode>high): Likewise.
565 2015-12-09  Jakub Jelinek  <jakub@redhat.com>
567         PR tree-optimization/68786
568         * tree-if-conv.c: Include builtins.h.
569         (predicate_mem_writes): Put result of get_object_alignment (ref)
570         into second argument's value.
571         * tree-vect-stmts.c (vectorizable_mask_load_store): Put minimum
572         pointer alignment into second argument's value.
573         * tree-data-ref.c (get_references_in_stmt): Use value of second
574         argument for build_aligned_type, and only the type to build
575         a zero second argument for MEM_REF.
576         * internal-fn.c (expand_mask_load_optab_fn,
577         expand_mask_store_optab_fn): Likewise.
579 2015-12-09  Richard Biener  <rguenther@suse.de>
581         PR tree-optimization/68583
582         * tree-if-conv.c (if_convertible_phi_p): Drop
583         flag_tree_loop_if_convert_stores check in favor of the
584         existing any_mask_load_store check.
585         (insert_gimplified_predicates): Likewise.
586         (combine_blocks): Likewise.
587         (tree_if_conversion): Likewise.
588         (ifcvt_memrefs_wont_trap): Properly check
589         flag_tree_loop_if_convert_stores in all places that can end
590         up introducing store-data-races.
591         (if_convertible_gimple_assign_stmt_p): Remove restriction
592         on flag_tree_loop_if_convert_stores for stores we can if-convert
593         without introducing store-data-races.  Force versioning for
594         all if-converted stores.
596 2015-12-09  Tom de Vries  <tom@codesourcery.com>
598         PR tree-optimization/68716
599         * tree-ssa-structalias.c (find_func_clobbers): Fix handling of
600         BUILT_IN_GOMP_PARALLEL and BUILT_IN_GOACC_PARALLEL.
602 2015-12-09  Martin Liska  <mliska@suse.cz>
604         * hash-traits.h (struct typed_delete_remove): New function.
605         (typed_delete_remove ::remove): Likewise.
606         * tree-ssa-loop-ivopts.c (struct iv_common_cand): Replace
607         auto_vec with vec.
608         (record_common_cand): Replace XNEW with operator new.
610 2015-12-09  Martin Liska  <mliska@suse.cz>
612         * tree-if-conv.c (ifcvt_local_dce): Replace vec with auto_vec.
614 2015-12-09  Martin Liska  <mliska@suse.cz>
616         PR ipa/68790
617         * ipa-icf.c (sem_function::param_used_p): Return true
618         if ipa_node_params_sum equals to NULL.
620 2015-12-09  Richard Biener  <rguenther@suse.de>
622         PR tree-optimization/68583
623         * tree-if-conv.c (ifc_dr): Make flags bool, add w_unconditionally
624         flag and rename predicates to w_predicate, rw_predicate and
625         base_w_predicate.
626         (DR_WRITTEN_AT_LEAST_ONCE): Rename to ...
627         (DR_BASE_W_UNCONDITIONALLY): ... this.
628         (DR_W_UNCONDITIONALLY): Add.
629         (hash_memrefs_baserefs_and_store_DRs_read): Adjust.  Compute
630         unconditionally written separately from read or written.
631         (ifcvt_memrefs_wont_trap): Properly treat reads.
632         (ifcvt_could_trap_p): Inline ...
633         (if_convertible_gimple_assign_stmt_p): ... here.  Refactor
634         to avoid code duplication.
635         (if_convertible_loop_p_1): Adjust and properly initialize
636         predicates.
638 2015-12-09  Richard Biener  <rguenther@suse.de>
640         * tree-vect-stmts.c (vectorizable_load): Set new vinfo only
641         if it was not yet set.
642         * tree-vectorizer.h (set_vinfo_for_stmt): Assert we don't
643         overwrite an existing entry.
645 2015-12-09  Chung-Lin Tang  <cltang@codesourcery.com>
647         * c-family/c-omp.c (c_finish_oacc_wait): Remove add_stmt() call.
648         * c/c-parser.c (c_parser_oacc_wait): Add add_stmt() call.
649         * cp/parser.c (cp_parser_oacc_wait): Add finish_expr_stmt() call.
651 2015-12-08  Jan Hubicka  <hubicka@ucw.cz>
653         PR ipa/61886
654         * symtab.c (symtab_node::equal_address_to): New parameter
655         MEMORY_ACCESSED.
656         * cgraph.h (symtab_node::equal_address_to): Update prototype.
658 2015-12-08  DJ Delorie  <dj@redhat.com>
660         * config/rx/rx.opt (-mjsr): Add.
661         * config/rx/predicates.md (rx_call_operand): Avoid overflowing
662         calls when -mjsr.
663         * config/rx/rx.c (rx_function_ok_for_sibcall): Likewise for
664         overflowing jumps.
665         * doc/invoke.texi (-mjsr): Document it.
667 2015-12-08  Jan Hubicka  <hubicka@ucw.cz>
669         PR ipa/61886
670         * lto-streamer.h (lto_symtab_merge_decls, lto_symtab_merge_symbols,
671         lto_symtab_prevailing_decl): MOve to lto-symtab.h.
672         * lto-streamer-out.c (DFS::DFS_write_tree_body): Check that
673         DECL_ABSTRACT_ORIGIN is not error_mark_node.
675 2015-12-08  David Malcolm  <dmalcolm@redhat.com>
677         * tree-nested.c (convert_tramp_reference_stmt): Fix indentation.
679 2015-12-08  David Malcolm  <dmalcolm@redhat.com>
681         * tree-ssa-loop-unswitch.c (tree_unswitch_outer_loop): Fix
682         indentation.
684 2015-12-08  Jan Hubicka  <hubicka@ucw.cz>
686         PR ipa/61886
687         * lto-cgraph.c (compute_ltrans_boundary): Add transparent alias targets
688         into the boundary.
690 2015-12-08  Jan Hubicka  <hubicka@ucw.cz>
692         PR ipa/61886
693         * varpool.c (varpool_node::get_availability): Recurse only on
694         weakrefs with definition in the target.
695         (symbol_table::remove_unreferenced_decls): Keep aliases in the boundary.
697 2015-12-08  Jan Hubicka  <hubicka@ucw.cz>
699         PR ipa/61886
700         * ipa-visibility.c (can_replace_by_local_alias): Look through
701         transparent aliases; refuse weakrefs.
702         (update_visibility_by_resolution_info): Skip transparent aliases in the
703         analysis part
705 2015-12-08  Jan Hubicka  <hubicka@ucw.cz>
707         PR ipa/61886
708         * symtab.c (symtab_node::verify_base): Fix thinko in a conditional.
709         (symtab_node::noninterposable_alias): Do not accept transparent
710         aliases.
712 2015-12-08  Nathan Sidwell  <nathan@acm.org>
714         * config/nvptx/nvptx.c (decl_chunk_size, decl_chunk_mode,
715         decl_offset, init_part, object_size, object_finished): Replace
716         with ...
717         (struct init_frag): ... this new struct variable.
718         (begin_decl_field, output_decl_chunk): Replace with ...
719         (output_init_frag): ... this new function.
720         (nvptx_assemble_value): Reimplement.
721         (nvptx_assemble_integer, nvptx_output_skip): Adjust.
722         (nvptx_assemble_decl_begin, nvptx_assemble_decl_end): Adjust.
723         (nvptx_output_aligned_decl): Call nvptx_assemble_decl_end.
725 2015-12-08  Eric Botcazou  <ebotcazou@adacore.com>
727         PR middle-end/68291
728         PR middle-end/68292
729         * cfgexpand.c (set_rtl): Always accept mode mismatch for SSA names
730         with BLKmode promoted mode based on RESULT_DECLs.
732 2015-12-08  Uros Bizjak  <ubizjak@gmail.com>
734         PR target/68701
735         * config/i386/i386.c (ix86_option_override_internal): Enable
736         -maccumulate-outgoing-args when %ebp is fixed due to stack
737         realignment requirements.
739 2015-12-08  Tom de Vries  <tom@codesourcery.com>
741         PR tree-optimization/68640
742         * omp-low.c (install_var_field): Clear the restrict qualifier on the var
743         type.
745 2015-12-08  Kirill Yukhin  <kirill.yukhin@intel.com>
747         * config/i386/sse.md (define_insn "<avx512>_vec_dup<mode>_1"): Fix
748         assembler to make source always 128bit.
750 2015-12-08  Jakub Jelinek  <jakub@redhat.com>
752         PR c/48088
753         PR c/68657
754         * common.opt (Wframe-larger-than=): Add Warning.
755         * opts.h (control_warning_option): Add ARG argument.
756         * opts-common.c (cmdline_handle_error): New function.
757         (read_cmdline_option): Use it.
758         (control_warning_option): Likewise.  Add ARG argument.
759         If non-NULL, decode it if needed and pass through
760         to handle_generated_option.  Handle CLVC_ENUM like
761         CLVC_BOOLEAN.
762         * opts.c (common_handle_option): Adjust control_warning_option
763         caller.
764         (enable_warning_as_error): Likewise.
766 2015-12-08  Matthew Wahab  <matthew.wahab@arm.com>
768         * config/aarch64/aarch64-options-extensions.def: Remove
769         AARCH64_FL_RDMA from "fp" and "simd".  Remove "pan", "lor",
770         "rdma".
771         * config/aarch64/aarch64.h (AARCH64_FL_PAN): Remove.
772         (AARCH64_FL_LOR): Remove.
773         (AARCH64_FL_RDMA): Remove.
774         (AARCH64_FL_V8_1): New.
775         (AARCH64_FL_FOR_AARCH8_1): Replace AARCH64_FL_PAN, AARCH64_FL_LOR
776         and AARCH64_FL_RDMA with AARCH64_FL_V8_1.
777         (AARCH64_ISA_RDMA): Replace AARCH64_FL_RDMA with AARCH64_FL_V8_1.
778         * doc/invoke.texi (AArch64 -march): Rewrite initial paragraph and
779         section on -march=native.  Group descriptions of permitted
780         architecture names together.  Expand description of
781         -march=armv8.1-a.
782         (AArch64 -mtune): Slightly rework section on -march=native.
783         (AArch64 -mcpu): Slightly rework section on -march=native.
784         (AArch64 Feature Modifiers): Remove "pan", "lor" and "rdma".
785         State that -march=armv8.1-a enables "crc" and "lse".
787 2015-12-08  Eric Botcazou  <ebotcazou@adacore.com>
789         * doc/invoke.texi (SPARC options): Fix typo.
791 2015-12-08  Eric Botcazou  <ebotcazou@adacore.com>
793         * config/ia64/ia64.c (ia64_emit_probe_stack_range): Adjust.
794         (output_probe_stack_range): Rotate the loop and simplify.
796 2015-12-08  Uros Bizjak  <ubizjak@gmail.com>
798         * config/i386/i386.c (ix86_emit_swsqrtsf): Cleanup
799         infinity filterning code.
801 2015-12-08  Ilya Enkovich  <enkovich.gnu@gmail.com>
803         PR tree-optimization/68766
804         * tree-vectorizer.c (vectorize_loops): Check for
805         if-converted loops when debug counters are used.
807 2015-12-07  DJ Delorie  <dj@redhat.com>
809         * config/rl78/constraints.md (Wfr): Change to be a non-memory
810         constraint.
811         * config/rl78/rl78-protos.h (rl78_one_far_p): Declare.
812         * config/rl78/rl78.c (rl78_one_far_p): Define.
813         * config/rl78/rl78-virt (movqi_virt): Fix far memory
814         alternatives.
815         (movhi_virt): Likewise.
816         (zero_extendqihi2_virt): Likewise.
817         (extendqihi2_virt): Likewise.
818         (add<mode>3_virt): Likewise.
819         (sub<mode>3_virt): Likewise.
820         (andqi3_virt): Likewise.
821         (iorqi3_virt): Likewise.
822         (xorqi3_virt): Likewise.
823         * config/rl78/rl78-real.md (bf,br): Use long forms to avoid reloc
824         overflow in large files.
826 2015-12-07  Eric Botcazou  <ebotcazou@adacore.com>
828         PR target/63668
829         * doc/invoke.texi (SPARC options): Document -mstd-struct-return.
830         * config/sparc/sparc.c (sparc_struct_value_rtx): Minor tweaks.
831         * config/sparc/sparc.h (CALL_REALLY_USED_REGISTERS): Define.
832         * config/sparc/sparc.opt (mstd-struct-return): Accept negative.
834 2015-12-07  Steve Ellcey  <sellcey@imgtec.com>
836         * reorg.c (optimize_skip): Do not put frame related instructions
837         in annulled delay slots.
838         (steal_delay_list_from_target): Ditto.
839         (fill_slots_from_thread): Ditto.
841 2015-12-07  Evandro Menezes  <e.menezes@samsung.com>
843         * config/aarch64/aarch64-cores.def: Use the Exynos M1 sched model.
844         * config/aarch64/aarch64.md: Include "exynos-m1.md".
845         * config/arm/arm.md: Likewise.
846         * config/arm/exynos-m1.md: New file.
848 2015-12-07  Jan Hubicka  <hubicka@ucw.cz>
850         * fold-const.c (operand_equal_p): Drop flag_strict_aliasing check.
852 2015-12-07  Nathan Sidwell  <nathan@acm.org>
854         * config//nvptx/nvptx.c (write_return): New.
855         (write_fn_proto, nvptx_declare_function_name): Call it.
857 2015-12-07  Jan Hubicka  <hubicka@ucw.cz>
859         PR ipa/61886
860         * symtab.c (ultimate_transparent_alias_target): New inline function.
861         (symbol_table::assembler_names_equal_p): New method; break out from ...
862         (symbol_table::decl_assembler_name_equal): ... here.
863         (symbol_table::change_decl_assembler_name): Also update names and
864         translation links of transparent aliases.
865         (symtab_node::dump_base): Dump transparent_alias.
866         (symtab_node::verify_base): Implement basic transparent alias
867         verification.
868         (symtab_node::make_decl_local): Support localization of weakrefs;
869         recurse to transparent aliases; set TREE_STATIC.
870         (symtab_node::ultimate_alias_target_1): Handle visibility of
871         transparent aliases.
872         (symtab_node::resolve_alias): New parmaeter transparent; handle
873         transparent aliases; recurse to aliases of aliases to fix comdat
874         groups.
875         (symtab_node::get_partitioning_class): Handle transparent aliases.
876         * ipa-visibility.c (cgraph_externally_visible_p,
877         varpool_node::externally_visible_p): Visibility of transparent alias
878         depends on its target.
879         (function_and_variable_visibility): Do not tweak visibility of
880         transparent laiases.
881         (function_and_variable_visibility): Likewise.
882         * ipa.c (symbol_table::remove_unreachable_nodes): Clear
883         transparent_alias flag.
884         * alias.c (cgraph_node::create_alias, cgraph_node::get_availability):
885         Support transparent aliases.
886         * cgraph.h (symtab_node): Update prototype of resolve_alias;
887         add transparent_alias flag.
888         (symbol_table: Add assembler_names_equal_p.
889         (symtab_node::real_symbol_p): Skip transparent aliases.
890         * cgraphunit.c (cgraph_node::reset): Reset transparent_alias flag.
891         (handle_alias_pairs): Set transparent_alias for weakref.
892         (cgraph_node::assemble_thunks_and_aliases): Do not asemble transparent
893         aliases.
894         * lto-cgraph.c (lto_output_node): When outputting same_comdat_group
895         skip symbols not put into boundary; stream transparent_alias.
896         (lto_output_varpool_node): Likewise.
897         (input_overwrite_node, input_varpool_node): Stream transparent alias.
898         * varpool.c (ctor_for_folding, varpool_node::get_availability,
899         varpool_node::assemble_aliases,
900         symbol_table::remove_unreferenced_decls): Handle transparent aliase.
901         (varpool_node::create_alias): Set transparent_alias.
903 2015-12-07  Eric Botcazou  <ebotcazou@adacore.com>
905         PR middle-end/68291
906         PR middle-end/68292
907         * cfgexpand.c (set_rtl): Always accept PARALLELs with BLKmode for
908         SSA names based on RESULT_DECLs.
909         * function.c (expand_function_start): Do not create BLKmode REGs
910         for GIMPLE registers when coalescing is enabled.
912 2015-12-07  Bernd Edlinger  <bernd.edlinger@hotmail.de>
914         * final.c (shorten_branches): Fix check for basic asm.
915         * ipa-icf-gimple.c (func_checker::compare_gimple_asm): Add check for
916         basic asm.
918 2015-12-07  Nathan Sidwell  <nathan@acm.org>
920         * config/nvptx/nvptx.c (nvptx_output_call_insn): Emit trap after no
921         return call.
923 2015-12-07  David Malcolm  <dmalcolm@redhat.com>
925         * pretty-print.c (text_info::set_range): Rename to...
926         (text_info::set_location): ...this, converting 2nd param
927         from source_range to a location_t.
928         * pretty-print.h (text_info::set_location): Convert
929         from inline function to external definition.
930         (text_info::set_range): Delete.
932 2015-12-07  Nathan Sidwell  <nathan@acm.org>
934         * config/nvptx/nvptx.c (nvptx_assemble_decl_begin): Look inside
935         complex and vector types.  Cope with packed structs.
937 2015-12-07  Kirill Yukhin  <kirill.yukhin@intel.com>
939         PR target/68627
940         * config/i386/sse.md: Make 'v' alternative work on 'avx512f' ISA only.
941         Force destination to 512 bits register.
943 2015-12-07  Kirill Yukhin  <kirill.yukhin@intel.com>
945         PR target/68633
946         * config/i386/sse.md (define_insn "kunpckhi"): Fix operands order.
947         (define_insn "kunpcksi"): Ditto.
948         (define_insn "kunpckdi"): Ditto.
950 2015-12-06  Kaz Kojima  <kkojima@gcc.gnu.org>
952         * config/sh/sh.md (rsqrtsf2): Adjust for canonical form with unspec.
954 2015-12-06  Victoria Stepanyan  <victoria.stepanyan@amd.com>
956         * common/config/i386/i386-common.c
957         (OPTION_MASK_ISA_CLZERO_SET): New.
958         (ix86_handle_option): Handle clzero.
959         * config.gcc (i[34567]86-*-*): Add clzerointrin.h,
960         (x86_64-*-*): Likewise.
961         * config/i386/clzerointrin.h: New header.
962         * config/i386/cpuid.h (bit_CLZERO):  Define.
963         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
964         CLZERO support.
965         * config/i386/i386.opt (clzero): New.
966         * config/i386/i386-c.c: Define __CLZERO__ if needed.
967         * config/i386/i386.c (ix86_target_string): Define -mclzero option.
968         (PTA_CLZERO): New.
969         (ix86_option_override_internal): Handle new option.
970         (processor_alias_table): Added PTA_CLZERO.
971         (ix86_valid_target_attribute_inner_p): Add OPT_mclzero.
972         (ix86_builtins): Add IX86_BUILTIN_CLZERO, IX86_BUILTIN_CLZERO.
973         (ix86_expand_builtin): Handle IX86_BUILTIN_CLZERO and
974         IX86_BUILTIN_CLZERO  built-ins.
975         * config/i386/i386.h (TARGET_CLZERO):  New.
976         * config/i386/i386.md (unspecv): Add UNSPEC_CLZERO.
977         (clzero):  New pattern.
978         (clzero_<mode>): New pattern.
979         * config/i386/x86intrin.h: Include clzerointrin.h.
980         * doc/extend.texi: Document clzero builtins.
981         * doc/invoke.texi: Document -mclzero option.
983 2015-12-05  Jan Hubicka  <hubicka@ucw.cz>
985         * ipa-icf.c (sem_function::merge): Check that local_original exists.
987 2015-12-05  David Edelsohn  <dje.gcc@gmail.com>
989         PR target/68609
990         * config/rs6000/rs6000-protos.h (rs6000_emit_swsqrt): Rename and add
991         bool arguement.
992         * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Rename. Add
993         non-reciporcal path.
994         * config/rs6000/rs6000.md (rsqrt<mode>2): Call new function name.
995         (sqrt<mode>2): Replace define_insn with define_expand that may call
996         rs6000_emit_swsqrt.
998 2015-12-04  Aditya Kumar  <aditya.k7@samsung.com>
999             Sebastian Pop  <s.pop@samsung.com>
1001         * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
1002         Improve debug.
1003         (get_rename_from_scev): Check that all the ops in an expression
1004         have their uses dominated by corresponding defs.
1006 2015-12-04  Aditya Kumar  <aditya.k7@samsung.com>
1007             Sebastian Pop  <s.pop@samsung.com>
1009         PR tree-optimization/68693
1010         * graphite-scop-detection.c (dot_all_sese): New
1011         (dot_all_scops_1): Renamed to dot_all_sese.
1012         (dot_all_scops): Removed.
1013         (dot_sese): New.
1014         (dot_cfg): New.
1015         (scop_detection::get_nearest_dom_with_single_entry): Check that
1016         preds are from different loop levels.
1017         (scop_detection::get_nearest_pdom_with_single_exit): Check that
1018         succs are from different loop levels.
1019         (scop_detection::print_sese): Inlined.
1020         (scop_detection::print_edge): New.
1021         (scop_detection::merge_sese): Added dumps.
1022         * graphite.h: Add declarations.
1024 2015-12-04  James Greenhalgh  <james.greenhalgh@arm.com>
1026         * config/aarch64/aarch64.md (add<mode>3_pluslong): Add register
1027         constraints.
1029 2015-12-04  Vladimir Makarov  <vmakarov@redhat.com>
1031         PR rtl-optimization/68349
1032         * lra-eliminations.c (move_plus_up): New function.
1033         (lra_eliminate_regs_1): Use the function.
1035 2015-12-04  Nathan Sidwell  <nathan@acm.org>
1037         * config/nvptx/nvptx.c (nvptx_assemble_decl_begin): New, replacing ...
1038         (init_output_initializer): ... this.
1039         (nvptx_output_aligned_decl, nvptx_asm_declare_constant_name,
1040         nvptx_declare_object_name, nvptx_assemble_undefined_decl): Use
1041         nvptx_assemble_decl_begin.
1043 2015-12-04  Dmitry Vyukov  <dvyukov@google.com>
1045         * sancov.c: New file.
1046         * Makefile.in (OBJS): Add sancov.o.
1047         * invoke.texi (-fsanitize-coverage=trace-pc): Describe.
1048         * passes.def (sancov_pass): Add.
1049         * tree-pass.h  (sancov_pass): Add.
1050         * common.opt (-fsanitize-coverage=trace-pc): Add.
1051         * sanitizer.def (BUILT_IN_SANITIZER_COV_TRACE_PC): Add.
1052         * builtins.def (DEF_SANITIZER_BUILTIN): Enable for
1053         flag_sanitize_coverage.
1055 2015-12-04  Eric Botcazou  <ebotcazou@adacore.com>
1057         PR middle-end/65958
1058         * config/arm/unspecs.md (unspec): Remove UNSPEC_PROBE_STACK_RANGE.
1059         (unspecv): Add VUNSPEC_PROBE_STACK_RANGE.
1060         * config/arm/arm.md (probe_stack_range): Adjust.
1061         * config/aarch64/aarch64.md (unspec): Remove UNSPEC_PROBE_STACK_RANGE.
1062         (unspecv): Add UNSPECV_PROBE_STACK_RANGE.
1063         (probe_stack_range_<PTR:mode>): Adjust.
1065 2015-12-04  David Malcolm  <dmalcolm@redhat.com>
1067         * convert.c (convert_to_real_1): When converting from a
1068         REAL_TYPE, preserve the location of EXPR in the result.
1069         * tree.c (get_pure_location): Make non-static.
1070         (set_source_range): Return the resulting location_t.
1071         (make_location): New function.
1072         * tree.h (get_pure_location): New decl.
1073         (get_finish): New inline function.
1074         (set_source_range): Convert return type from void to location_t.
1075         (make_location): New decl.
1077 2015-12-04  Jakub Jelinek  <jakub@redhat.com>
1079         PR c/68656
1080         * toplev.c (init_asm_output): Pass UNKNOWN_LOCATION instead of
1081         input_location to inform.
1082         (process_options): Use warning_at (UNKNOWN_LOCATION instead of
1083         warning ( and error_at (UNKNOWN_LOCATION instead of error (.
1084         Pass UNKNOWN_LOCATION instead of input_location to fatal_error.
1086 2015-12-04  Jan Hubicka  <hubicka@ucw.cz>
1088         * ipa-inline.c (can_inline_edge_p) Use merged_comdat.
1089         * cgraphclones.c (cgraph_node::create_clone): Use merged_comdat.
1090         * cgraph.c (cgraph_node::dump): Dump merged_comdat.
1091         * ipa-icf.c (sem_function::merge): Drop merged_comdat when merging
1092         comdat and non-comdat.
1093         * cgraph.h (cgraph_node): Rename merged to merged_comdat.
1094         * ipa-inline-analysis.c (simple_edge_hints): Check both merged_comdat
1095         and icf_merged.
1097 2015-12-04  Segher Boessenkool  <segher@kernel.crashing.org>
1099         * config/rs6000/rs6000.md (cstore<mode>4_unsigned): Use gpc_reg_operand
1100         instead of register_operand.  Remove empty constraints.  Use std::swap.
1101         (cstore_si_as_di, cstore<mode>4_signed_imm,
1102         cstore<mode>4_unsigned_imm, cstore<mode>4 for GPR): Use
1103         gpc_reg_operand instead of register_operand.
1104         (cstore<mode>4 for FP): Use gpc_reg_operand instead of
1105         register_operand.  Remove empty constraints.
1107 2015-12-04  Nick Clifton  <nickc@redhat.com>
1109         * config.gcc (extra_gcc_objs): Define for MSP430.
1110         * common/config/msp430/msp430-common.c (msp430_handle_option):
1111         Pass both -mmcu and -mcpu on to the back end if they are both defined.
1112         * config/msp430/msp430.c (hwmult_name): New function.
1113         (msp430_option_override): If an unrecognised MCU name is
1114         detected only warn if the user has not provided suitable
1115         -mhwmult and -mcpu options.  Use msp430_warn_mcu to control
1116         warning messages.  Generate warnings about conflicts between
1117         -mmcu and -mcpu and -mhwmult options.
1118         If neither -mcpu nor -mmcu have been specified but -mhwmult=
1119         f5series has the select the 430X isa.
1120         (msp430_no_hwmult): If -mmcu has not been specified and
1121         msp430_hwmult_type is AUTO then return true.
1122         * config/msp430/msp430.h (EXTRA_SPEC_FUNCTIONS): Define.
1123         (LIB_SPEC): Add hardware multiply library selection.
1124         * config/msp430/t-msp430: Delete hardware multiply multilibs.
1125         Add rule to build driver-msp430.o
1126         * config/msp430/driver-msp430.c: New file.
1127         * config/msp430/msp430.opt (warn-mcu): New option.
1128         * doc/invoke.texi: Update description of -mhwmult=auto.
1129         Document -mwarn-mcu option.
1131 2015-12-04  Segher Boessenkool  <segher&kernel.crashing.org>
1133         * config/rs6000/rs6000.md (cstore<mode>4_signed): New expander.
1134         (cstore<mode>4): Call it.
1136 2015-12-04  Jakub Jelinek  <jakub@redhat.com>
1138         * tree-tailcall.c (find_tail_calls): Ignore GIMPLE_NOPs.
1140         PR tree-optimization/68680
1141         * calls.c (special_function_p): Return ECF_MAY_BE_ALLOCA for
1142         BUILT_IN_ALLOCA{,_WITH_ALIGN}.  Don't check for __builtin_alloca
1143         by name.
1145         PR tree-optimization/68671
1146         * tree-ssa-reassoc.c (maybe_optimize_range_tests): For basic
1147         blocks starting with the successor of first bb we've modified
1148         and ending with last_bb call reset_flow_sensitive_info_in_bb.
1150 2015-12-04  Jeff Law  <law@redhat.com>
1152         * tree-ssa-reassoc.c (maybe_optimize_range_tests): Return boolean
1153         indicating if a gimple conditional was optimized to true/false.
1154         (reassociate_bb): Bubble up return value from
1155         maybe_optimize_range_tests.
1156         (do_reassoc): Similarly, but for reassociate_bb.
1157         (execute_reassoc): Return TODO_cleanup_cfg as needed.
1159 2015-12-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1161         * config/aarch64/aarch64.c (aarch64_override_options_internal):
1162         Do not alter target_flags due to TARGET_GENERAL_REGS_ONLY_P.
1163         * doc/invoke.texi (AArch64 options): Mention that -mgeneral-regs-only
1164         does not affect the assembler directives.
1166 2015-12-04  Dominik Vogt  <vogt@linux.vnet.ibm.com>
1168         * config/s390/s390.c (s390_asm_file_start): Implement hook function to
1169         emit .machine and .machinemode to the top of the assembler file.
1170         (TARGET_ASM_FILE_START): Provide target hook.
1171         (s390_asm_output_machine_for_arch): Protect with
1172         HAVE_AS_MACHINE_MACHINEMODE instead of S390_USE_TARGET_ATTRIBUTE.
1174 2015-12-04  Dominik Vogt  <vogt@linux.vnet.ibm.com>
1176         * config/s390/s390.opt (s390_arch_string): Remove.
1177         (s390_tune_string): Likewise.
1178         (s390_cost_pointer): Add Variable.
1179         (s390_tune_flags): Add TargetVariable.
1180         (s390_arch_flags, march=, mbackchain, mdebug, mesa, mhard-dfp),
1181         (mhard-float, mlong-double-128, mlong-double-64, mhtm, mvx),
1182         (mpacked-stack, msmall-exec, msoft-float, mstack-guard=, mstack-size=),
1183         (mtune=, mmvcle, mzvector, mzarch, mbranch-cost=, mwarn-dynamicstack),
1184         (mwarn-framesize=): Save option.
1185         (mno-stack-guard, mno-stack-guard): New option.
1186         (mwarn-dynamicstack): Allow mno-warn-dynamicstack.
1187         (mwarn-framesize=): Convert to UInteger (negative values are rejected
1188         now).
1189         * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Split setting
1190         macros changeable through the GCC target pragma into a separate
1191         function.
1192         (s390_cpu_cpp_builtins): Likewise.
1193         (s390_pragma_target_parse): New function, implement GCC target pragma
1194         if enabled.
1195         (s390_register_target_pragmas): Register s390_pragma_target_parse if
1196         available.
1197         * common/config/s390/s390-common.c (s390_handle_option):
1198         Export.
1199         Move setting s390_arch_flags to s390.c.
1200         Remove s390_tune_flags.
1201         Allow 0 as argument to -mstack-size (switch to default value).
1202         Allow 0 as argument to -mstack-guard (switch off).
1203         Remove now unnecessary explicit parsing code for -mwarn-framesize.
1204         * config/s390/s390-protos.h (s390_handle_option): Export.
1205         (s390_valid_target_attribute_tree): Export.
1206         (s390_reset_previous_fndecl): Export.
1207         * config/s390/s390-builtins.def: Use new macro B_GROUP to mark the start
1208         and end of HTM and VX builtins.
1209         (s390_asm_output_function_prefix): Declare hook.
1210         (s390_asm_declare_function_size): Likewise.
1211         * config/s390/s390-builtins.h (B_GROUP): Use macro.
1212         * config/s390/s390-opts.h: Add comment about processor_type usage.
1213         * config/s390/s390.h (TARGET_CPU_IEEE_FLOAT_P, TARGET_CPU_ZARCH_P),
1214         (TARGET_CPU_LONG_DISPLACEMENT_P, TARGET_CPU_EXTIMM_P, TARGET_CPU_DFP_P),
1215         (TARGET_CPU_Z10_P, TARGET_CPU_Z196_P, TARGET_CPU_ZEC12_P),
1216         (TARGET_CPU_HTM_P, TARGET_CPU_Z13_P, TARGET_CPU_VX_P),
1217         (TARGET_HARD_FLOAT_P, TARGET_LONG_DISPLACEMENT_P, TARGET_EXTIMM_P),
1218         (TARGET_DFP_P, TARGET_Z10_P, TARGET_Z196_P, TARGET_ZEC12_P),
1219         (TARGET_HTM_P, TARGET_Z13_P, TARGET_VX_P, TARGET_CPU_EXTIMM),
1220         (TARGET_CPU_DFP, TARGET_CPU_Z10, TARGET_CPU_Z196, TARGET_CPU_ZEC12),
1221         (TARGET_CPU_HTM, TARGET_CPU_Z13, TARGET_LONG_DISPLACEMENT),
1222         (TARGET_EXTIMM, TARGET_DFP, TARGET_Z10, TARGET_Z196, TARGET_ZEC12),
1223         (TARGET_Z13, TARGET_VX, S390_USE_TARGET_ATTRIBUTE),
1224         (S390_USE_ARCHITECTURE_MODIFIERS, SWITCHABLE_TARGET),
1225         (ASM_DECLARE_FUNCTION_SIZE, ASM_OUTPUT_FUNCTION_PREFIX): Likewise.
1226         * config/s390/vecintrin.h: Use vector definitions even if __VEC__ is
1227         undefined.
1228         (vec_all_nan): Rewrite as macro using statement expressions to avoid
1229         that the vector keyword needs to be defined when including the file.
1230         (vec_all_numeric): Likewise.
1231         (vec_any_nan): Likewise.
1232         (vec_any_numeric):  Likewise.
1233         * config/s390/s390.c (s390_previous_fndecl): New static variable.
1234         (s390_set_current_function): New function.
1235         (s390_cost): Wrapper macro to allow defining the cost table pointer in
1236         the options file.
1237         (processor_table): Table for march= and mtune= parsing.
1238         (s390_init_builtins): Enable all builtins and types unconditionally.
1239         (s390_expand_builtin): Generate an error message if builtin is not
1240         supported by current options.
1241         Correct an error message.
1242         (s390_function_specific_restore): New function to set s390_cost.
1243         (s390_asm_output_machine_for_arch): New function for emitting .machine
1244         and .machinmode directives to the assembler file.
1245         (s390_asm_output_function_prefix): Likewise.
1246         (s390_asm_declare_function_size):  Likewise.
1247         (s390_asm_output_function_label): Add mdebug output for feature testing.
1248         (s390_option_override): Move implementation into internal function.
1249         (s390_option_override_internal): Likewise.
1250         Implement option overriding based on current options.
1251         (s390_valid_target_attribute_inner_p): New function implementing target
1252         attribute logic.
1253         (s390_valid_target_attribute_tree): Likewise.
1254         (s390_valid_target_attribute_p): Likewise.
1255         (s390_reset_previous_fndecl): Likewise.
1256         (s390_set_current_function): Likewise.
1257         (TARGET_SET_CURRENT_FUNCTION): Provide target hook function.
1258         (TARGET_OPTION_VALID_ATTRIBUTE_P): Likewise.
1259         (TARGET_OPTION_RESTORE): Likewise.
1260         * doc/extend.texi: S390: Document target attribute and pragma.
1261         * config.in: Regenerated.
1262         * configure: Regenerated.
1263         * configure.ac: S390: Check for .machinemode and .machine in gas.
1264         S390: Check for architecture modifiers support in gas.
1266 2015-12-04  Kirill Yukhin  <kirill.yukhin@intel.com>
1268         * doc/extend.texi ("simd"): Describe new flags.
1270 2015-12-04  Ilya Enkovich  <enkovich.gnu@gmail.com>
1272         * config/i386/sse.md (<avx512>_store<mode>_mask): Fix
1273         operand checked for alignment.
1275 2015-12-04  Nathan Sidwell  <nathan@acm.org>
1277         * config/nvptx/nvptx.c (write_one_arg): Deal with prologue
1278         emission too. Change 'no_arg_types' to 'prototyped'.
1279         (write_fn_proto):  Use write_one_arg for stdarg, static chain &
1280         main.
1281         (nvptx_declare_function_name): Use write_one_arg for prologue copies.
1283 2015-12-04  Richard Biener  <rguenther@suse.de>
1285         * tree-ssa-sccvn.c (sccvn_dom_walker): Add unreachable_dom
1286         member and initialize it.
1287         (sccvn_dom_walker::after_dom_children): Reset unreachable_dom
1288         if necessary.
1289         (sccvn_dom_walker::before_dom_children): If unreachable_dom
1290         is set BB is not reachable either.  Set unreachable_dom
1291         if not set and BB is unreachable.
1293 2015-12-04  Richard Biener  <rguenther@suse.de>
1295         * bitmap.c (bitmap_find_bit): Guard the bitmap descriptor
1296         query with GATHER_STATISTICS.
1298 2015-12-04  Eric Botcazou  <ebotcazou@adacore.com>
1300         PR middle-end/65958
1301         * gimplify.c (struct gimplify_ctx): Turn boolean fields into 1-bit
1302         fields, add keep_stack and reorder them.
1303         (gimplify_bind_expr): Save gimplify_ctxp->keep_stack on entry then
1304         set it to false.  Do not insert a stack save/restore pair if it has
1305         been set to true by the gimplification of the statements.
1306         Restore it to the saved value on exit if it is still false.
1307         (gimplify_vla_decl): Do not set gimplify_ctxp->save_stack here.
1308         (gimplify_call_expr) <BUILT_IN_ALLOCA[_WITH_ALIGN]>: New case.  Set
1309         either save_stack or keep_stack depending on CALL_ALLOCA_FOR_VAR_P.
1310         * doc/extend.texi (Variable Length): Document new behavior.
1311         * doc/generic.texi (Blocks): Document new handling of VLAs.
1313 2015-12-04  Eric Botcazou  <ebotcazou@adacore.com>
1314             Tristan Gingold  <gingold@adacore.com>
1316         PR middle-end/65958
1317         * config/aarch64/aarch64-protos.h (aarch64_output_probe_stack-range):
1318         Declare.
1319         * config/aarch64/aarch64.md: Declare UNSPECV_BLOCKAGE and
1320         UNSPEC_PROBE_STACK_RANGE.
1321         (blockage): New instruction.
1322         (probe_stack_range_<PTR:mode>): Likewise.
1323         * config/aarch64/aarch64.c (aarch64_emit_probe_stack_range): New
1324         function.
1325         (aarch64_output_probe_stack_range): Likewise.
1326         (aarch64_expand_prologue): Invoke aarch64_emit_probe_stack_range if
1327         static builtin stack checking is enabled.
1328         * config/aarch64/aarch64-linux.h (STACK_CHECK_STATIC_BUILTIN):
1329         Define to 1.
1331 2015-12-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1333         PR target/68214
1334         * config/arm/arm.md (*call_mem): Delete pattern.
1335         (*call_value_mem): Likewise.
1336         * config/arm/arm.c (output_call_mem): Delete.
1337         * config/arm/arm-protos.h (output_call_mem): Delete prototype.
1339 2015-12-04  Bin Cheng  <bin.cheng@arm.com>
1341         * config/aarch64/atomics.md (atomic_store<mode>): Use predicate
1342         aarch64_sync_memory_operand.
1344 2015-12-04  Jakub Jelinek  <jakub@redhat.com>
1346         PR target/68655
1347         * config/i386/i386.c (canonicalize_vector_int_perm): New function.
1348         (expand_vec_perm_1): Use it and recurse if everything else
1349         failed.  Use nd.perm instead of perm2.
1350         (expand_vec_perm_even_odd_1): If testing_p, use gen_raw_REG
1351         instead of gen_lowpart for the target.
1352         (ix86_expand_vec_perm_const_1): Use canonicalize_vector_int_perm
1353         and recurse if everything else failed.
1355 2015-12-04  Richard Biener  <rguenther@suse.de>
1357         PR middle-end/68636
1358         * builtins.c (get_pointer_alignment_1): Take care of byte to
1359         bit alignment computation overflow.
1361 2015-12-04  Richard Biener  <rguenther@suse.de>
1363         PR middle-end/67438
1364         * match.pd: Guard ~X cmp ~Y -> Y cmp X and the variant with
1365         a constant with single_use.
1367 2015-12-04  Bin Cheng  <bin.cheng@arm.com>
1368             Jiong Wang  <jiong.wang@arm.com>
1370         * config/aarch64/aarch64.c (aarch64_legitimize_address): legitimize
1371         address expressions like Ra + Rb + CONST and Ra + Rb<<SCALE + CONST.
1373 2015-12-03  Jan Hubicka  <hubicka@ucw.cz>
1375         * alias.c (alias_set_subset_of, alias_sets_must_conflict_p):
1376         Add short circuit for !flag_strict_aliasing
1377         (get_alias_set): Remove flag_strict_aliasing check.
1378         (new_alias_set): Likewise.
1380 2015-12-03  Evandro Menezes  <e.menezes@samsung.com>
1382         * config/aarch64/aarch64-cores.def: Use the Exynos M1 cost model.
1383         * config/aarch64/aarch64.c (exynosm1_addrcost_table): New variable.
1384         (exynosm1_regmove_cost): Likewise.
1385         (exynosm1_vector_cost): Likewise.
1386         (exynosm1_tunings): Likewise.
1387         * config/arm/aarch-cost-tables.h (exynosm1_extra_costs): Likewise.
1388         * config/arm/arm.c (arm_exynos_m1_tune): Likewise.
1390 2015-12-03  Alan Lawrence  <alan.lawrence@arm.com>
1391             Richard Biener  <richard.guenther@gmail.com>
1393         * cfgexpand.c (pass_expand::execute): Replace call to
1394         redirect_edge_var_map_destroy with redirect_edge_var_map_empty.
1395         * tree-ssa.c (delete_tree_ssa): Likewise.
1396         * function.c (set_cfun): Call redirect_edge_var_map_empty.
1397         * passes.c (execute_one_ipa_transform_pass, execute_one_pass): Likewise.
1398         * tree-ssa.h (redirect_edge_var_map_destroy): Remove.
1399         (redirect_edge_var_map_empty): New.
1400         * tree-ssa.c (redirect_edge_var_map_destroy): Remove.
1401         (redirect_edge_var_map_empty): New.
1403 2015-12-03  Jeff Law  <law@redhat.com>
1405         PR tree-optimization/68599
1406         * loop-init.c (rtl_loop_init): Set LOOPS_HAVE_RECORDED_EXITS
1407         in call to loop_optimizer_init.
1408         * loop-iv.c (get_simple_loop_desc): Only allow unsafe loop
1409         optimization to drop the assumptions/infinite notations if
1410         the loop has a single exit.
1412 2015-12-03  Richard Sandiford  <richard.sandiford@arm.com>
1414         * doc/md.texi (vec_load_lanes@var{m}@var{n}): Document that
1415         the pattern cannot FAIL.
1416         (vec_store_lanes@var{m}@var{n}): Likewise.
1417         (maskload@var{m}@var{n}): Likewise.
1418         (maskstore@var{m}@var{n}): Likewise.  Fix a cut-&-paste error
1419         in the name of the pattern.
1420         (rsqrt@var{m}2): Document that mode m must be a scalar or vector
1421         floating-point mode and that all operands have that mode.
1422         (fmin@var{m}3, fmax@var{m}3): Likewise.  Document that the
1423         pattern cannot FAIL.
1424         (sqrt@var{m}2): Document that mode m must be a scalar or vector
1425         floating-point mode, that all operands have that mode, and that
1426         the patterns cannot FAIL.  Remove previous documentation referring
1427         to @code{double} and @code{float}.
1428         (fmod@var{m}3, remainder@var{m}3, cos@var{m}2, sin@var{m}2)
1429         (sincos@var{m}3, log@var{m}2, pow@var{m}3, atan2@var{m}3)
1430         (copysign@var{m}3): Likewise.
1431         (exp@var{m}2): Likewise.  Explicitly state the base.
1432         (floor@var{m}2): As for sqrt@var{m}2, but also specify the operands.
1433         (btrunc@var{m}2, rint@var{m}2): Likewise.
1434         (round@var{m}2): Likewise.  Fix incorrect description of rounding
1435         effect.
1436         (ceil@var{m}2): As for round@var{m}2.
1437         (nearbyint@var{m}2): As for floor@var{m}2, but also mention that
1438         the instruction must not raise an inexact condition.
1439         (scalb@var{m}3): Document previously-undocumented pattern
1440         (ldexp@var{m}3, tan@var{m}2, asin@var{m}2, acos@var{m}2)
1441         (atan@var{m}2, expm1@var{m}2, exp10@var{m}2, exp2@var{m}2)
1442         (log1p@var{m}2, log10@var{m}2, log2@var{m}2, logb@var{m}2)
1443         (significand@var{m}2): Likewise.
1444         (ffs@var{m}2): Fix the description of the modes, so that operand 1 has
1445         mode m and operand 0 is defined more freely.  Document that @var{m}
1446         can be a scalar or vector integer mode and that the pattern is not
1447         allowed to FAIL.
1448         (clz@var{m}2, ctz@var{m}2, popcount@var{m}2, parity@var{m}2): Likewise.
1449         (clrsb@var{m}2): Likewise, except that the description of the
1450         mode was missing in this case.
1452 2015-12-03  Richard Sandiford  <richard.sandiford@arm.com>
1454         * internal-fn.def (RSQRT): New function.
1455         * optabs.def (rsqrt_optab): New optab.
1456         * doc/md.texi (rsqrtM2): Document.
1457         * target.def (builtin_reciprocal): Replace gcall argument with
1458         a function decl.  Restrict hook to machine functions.
1459         * doc/tm.texi: Regenerate.
1460         * targhooks.h (default_builtin_reciprocal): Update prototype.
1461         * targhooks.c (default_builtin_reciprocal): Likewise.
1462         * tree-ssa-math-opts.c: Include internal-fn.h.
1463         (internal_fn_reciprocal): New function.
1464         (pass_cse_reciprocals::execute): Call it, and build a call to an
1465         internal function on success.  Only call targetm.builtin_reciprocal
1466         for machine functions.
1467         * config/aarch64/aarch64-protos.h (aarch64_builtin_rsqrt): Remove
1468         second argument.
1469         * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin_rsqrt):
1470         Rename aarch64_rsqrt_<mode>2 to rsqrt<mode>2.
1471         (aarch64_builtin_rsqrt): Remove md_fn argument and only handle
1472         machine functions.
1473         * config/aarch64/aarch64.c (use_rsqrt_p): New function.
1474         (aarch64_builtin_reciprocal): Replace gcall argument with a
1475         function decl.  Use use_rsqrt_p.  Remove optimize_size check.
1476         Only handle machine functions.  Update call to aarch64_builtin_rsqrt.
1477         (aarch64_optab_supported_p): New function.
1478         (TARGET_OPTAB_SUPPORTED_P): Define.
1479         * config/aarch64/aarch64-simd.md (aarch64_rsqrt_<mode>2): Rename to...
1480         (rsqrt<mode>2): ...this.
1481         * config/i386/i386.c (use_rsqrt_p): New function.
1482         (ix86_builtin_reciprocal): Replace gcall argument with a
1483         function decl.  Use use_rsqrt_p.  Remove optimize_insn_for_size_p
1484         check.  Only handle machine functions.
1485         (ix86_optab_supported_p): Handle rsqrt_optab.
1486         * config/rs6000/rs6000.c (TARGET_OPTAB_SUPPORTED_P): Define.
1487         (rs6000_builtin_reciprocal): Replace gcall argument with a
1488         function decl.  Remove optimize_insn_for_size_p check.
1489         Only handle machine functions.
1490         (rs6000_optab_supported_p): New function.
1492 2015-12-03  Bernd Schmidt  <bschmidt@redhat.com>
1494         PR target/68471
1495         PR target/68472
1496         * config/i386/i386.c (ix86_mitigate_rop): Don't call
1497         compute_bb_for_insn again.  Call df_insn_rescan_all.
1498         * config/i386/i386.md (set_got_rex64): Override modrm_class.
1500         * regrename.c (build_def_use): Ignore stack regs if regstack_completed.
1502 2015-12-03  Nathan Sidwell  <nathan@acm.org>
1504         * config/nvptx/nvptx-protos.h (npvptx_section_from_addr_space): Delete.
1505         * config/nvptx/nvptx.c (enum nvptx_data_area): New.
1506         (SYMBOL_DATA_AREA, SET_SYMBOL_DATA_AREA): New defines.
1507         (nvptx_option_override): Set data ares for worker vars.
1508         (nvptx_addr_space_from_sym): Delete.
1509         (nvptx_encode_section_info): New.
1510         (section_for_sym, section_for_decl): New.
1511         (nvptx_maybe_convert_symbolic_operand): Get data area from symbol flags.
1512         (nvptx_section_from_addr_space): Delete.
1513         (nvptx_section_for_decl): Delete.
1514         (nvptx_output_aligned, nvptx_declare_object_name,
1515         nvptx_assemble_undefined_decl): Use section_for_decl, remove
1516         unnecessary checks.
1517         (nvptx_print_operand): Add 'D', adjust 'A'.
1518         (nvptx_expand_worker_addr): Adjust unspec generation.
1519         (TARGET_ENCODE_SECTION_INFO): Override.
1520         * config/nvptx/nvptx.h (ADDR_SPACE_GLOBAL, ADDR_SPACE_SHARED,
1521         ADDR_SPACE_CONST, ADDR_SPACE_LOCAL, ADDR_SPACE_PARAM): Delete.
1522         * config/nvptx/nvptx.md (UNSPEC_FROM_GLOBAL, UNSPEC_FROM_LOCAL,
1523         UNSPEC_FROM_PARAM, UNSPEC_FROM_SHARED, UNSPEC_FROM_CONST,
1524         UNSPEC_TO_GLOBAL, UNSPEC_TO_LOCAL, UNSPEC_TO_PARAM,
1525         UNSPEC_TO_SHARED, UNSPEC_TO_CONST): Delete.
1526         (UNSPEC_TO_GENERIC): New.
1527         (nvptx_register_or_symbolic_operand): Delete.
1528         (cvt_code, cvt_name, cvt_str): Delete.
1529         (convaddr_<cvt_name><mode> [P]): Delete.
1530         (convaddr_<mode> [P]): New.
1532 2015-12-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1534         PR rtl-optimization/68624
1535         * ifcvt.c (noce_try_cmove_arith): Check clobbers of temp regs in both
1536         blocks if they exist and simplify the logic choosing the order to emit
1537         them in.
1539 2015-12-03  Richard Biener  <rguenther@suse.de>
1541         PR tree-optimization/66051
1542         * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
1543         on load group size.  Do not pass in vectorization_factor.
1544         (vect_transform_slp_perm_load): Do not require any permute support.
1545         (vect_build_slp_tree): Do not pass in vectorization factor.
1546         (vect_analyze_slp_instance): Do not compute vectorization
1547         factor estimate.  Use vector size instead of vectorization factor
1548         estimate to split store groups for BB vectorization.
1550 2015-12-03  Ilya Enkovich  <enkovich.gnu@gmail.com>
1552         * cfgexpand.c (expand_gimple_stmt_1): Return statement with
1553         DECL as return value is allowed to have NULL bounds.
1555 2015-12-03  Tom de Vries  <tom@codesourcery.com>
1557         * graphite-isl-ast-to-gimple.c (binary_op_to_tree)
1558         (gcc_expression_from_isl_expr_op): Guard isl_ast_op_zdiv_r usage with
1559         HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
1561 2015-12-03  Richard Biener  <rguenther@suse.de>
1563         PR tree-optimization/67800
1564         PR tree-optimization/68333
1565         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Restore
1566         restriction to reduction contexts but allow SLP reductions as well.
1567         (vect_recog_sad_pattern): Likewise.
1568         (vect_recog_widen_sum_pattern): Likewise.
1570 2015-12-03  Richard Biener  <rguenther@suse.de>
1572         PR tree-optimization/68639
1573         * tree-vect-data-refs.c (dr_group_sort_cmp): Split groups
1574         belonging to different loops.
1575         (vect_analyze_data_ref_accesses): Likewise.
1577 2015-12-02  Kirill Yukhin  <kirill.yukhin@intel.com>
1579         * config/i386/sse.md (define_insn "vec_extract_hi_<mode>_maskm"):
1580         Remove "prefix_extra".
1581         (define_insn "vec_extract_hi_<mode>_mask"): New.
1582         (define_insn "vec_extract_hi_<mode>"): Remove masking.
1584 2015-12-02  Jan Hubicka  <hubicka@ucw.cz>
1586         * ipa-pure-const.c (ignore_edge_for_pure_const): New function.
1587         (propagate_pure_const): Use it; fix comments and optimize loops.
1589 2015-12-02  Jan Hubicka  <hubicka@ucw.cz>
1591         * ipa-pure-const.c (ignore_edge): Rename to ...
1592         (ignore_edge_for_nothrow) ... this one; also ignore eges to
1593         interposable functions or ones that can not throw.
1594         (propagate_nothrow): Fix handling of availability.
1596 2015-12-02  Jan Hubicka  <hubicka@ucw.cz>
1598         PR ipa/68184
1599         * cgraphunit.c (cgraph_node::analyze): Set can_throw_external.
1601 2015-12-02  Aditya Kumar  <aditya.k7@samsung.com>
1602             Sebastian Pop  <s.pop@samsung.com>
1604         * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Handle
1605         isl_ast_op_zdiv_r.
1606         (gcc_expression_from_isl_expr_op): Same.
1608 2015-12-02  Aditya Kumar  <aditya.k7@samsung.com>
1609             Sebastian Pop  <s.pop@samsung.com>
1611         * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Check
1612         that insertion point is still in the region.
1614 2015-12-02  Aditya Kumar  <aditya.k7@samsung.com>
1615             Sebastian Pop  <s.pop@samsung.com>
1617         PR tree-optimization/68550
1618         * graphite-isl-ast-to-gimple.c (copy_loop_phi_nodes): Add dump.
1619         (copy_bb_and_scalar_dependences): Do not code generate loop peeled
1620         statements.
1622 2015-12-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1624         * configure.ac: Check assembler support for R_PPC64_ENTRY relocation.
1625         * configure: Regenerate.
1626         * config.in: Regenerate.
1627         * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p): New
1628         function.
1629         (rs6000_output_function_prologue): Use it instead of checking
1630         cfun->machine->r2_setup_needed.  Use internal labels instead of
1631         GNU as local label extension.  Handle ELFv2 large code model.
1632         (rs6000_output_mi_thunk): Do not set cfun->machine->r2_setup_needed.
1633         (rs6000_elf_declare_function_name): Handle ELFv2 large code model.
1635 2015-12-02  Jakub Jelinek  <jakub@redhat.com>
1637         PR target/68647
1638         * optabs.c (expand_doubleword_popcount, expand_doubleword_parity):
1639         New functions.
1640         (expand_unop): Use them.
1642 2015-12-02  Marek Polacek  <polacek@redhat.com>
1644         PR c++/68653
1645         * tree.c (nonnull_arg_p): Allow OFFSET_TYPE.
1647 2015-12-02  Nathan Sidwell  <nathan@acm.org>
1649         * config/nvptx/nvptx.c (enum nvptx_shuffle_kind): New.  Absorb
1650         SHUFFLE defines.
1651         (nvptx_gen_shuffle, nvptx_print_operand, nvptx_expand_shuffle): Adjust.
1653 2015-12-02  Aditya Kumar  <aditya.k7@samsung.com>
1654             Sebastian Pop  <s.pop@samsung.com>
1656         * graphite-dependences.c (scop_get_reads): Add extra dumps.
1657         (scop_get_must_writes): Same.
1658         (scop_get_may_writes): Same.
1659         (compute_deps): Same.
1660         * graphite-sese-to-poly.c (bounds_are_valid): New.
1661         (pdr_add_data_dimensions): Call bounds_are_valid.
1663 2015-12-02  Aditya Kumar  <aditya.k7@samsung.com>
1664             Sebastian Pop  <s.pop@samsung.com>
1666         * common.opt (flag_loop_optimize_isl): Renamed flag_loop_nest_optimize.
1667         * graphite-poly.c (apply_poly_transforms): Same.
1668         * graphite.c (gate_graphite_transforms): Same.
1669         * toplev.c (process_options): Same.
1671 2015-12-02  Eric Botcazou  <ebotcazou@adacore.com>
1673         * config/mips/mips.c (mips_emit_probe_stack_range): Adjust.
1674         (mips_output_probe_stack_range): Rotate the loop and simplify.
1676 2015-12-02  David Sherwood  <david.sherwood@arm.com>
1678         * config/aarch64/aarch64.md: New pattern.
1679         * config/aarch64/aarch64-simd.md: Likewise.
1680         * config/aarch64/iterators.md: New unspecs, iterators.
1682 2015-12-02  Pierre-Marie de Rodat  <derodat@adacore.com>
1684         * dwarf2out.c (dwar2out_var_location): In addition to notes,
1685         process indirect calls whose target is compile-time known.
1686         Enhance pattern matching to get the SYMBOL_REF they embed.
1687         (gen_subprogram_die): Handle such calls.
1688         * final.c (final_scan_insn): For call instructions, invoke the
1689         var_location debug hook only after the call has been emitted.
1691 2015-12-02  Tom de Vries  <tom@codesourcery.com>
1693         * gimplify.c (enum gimplify_omp_var_data): Add enum value
1694         GOVD_MAP_FORCE.
1695         (oacc_default_clause): Fix default for scalars in oacc kernels.
1696         (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_FORCE.
1698 2015-12-02  Tom de Vries  <tom@codesourcery.com>
1700         * omp-low.c (install_var_field, scan_sharing_clauses): Add and handle
1701         parameter base_pointers_restrict.
1702         (omp_target_base_pointers_restrict_p): New function.
1703         (scan_omp_target): Call scan_sharing_clauses with
1704         base_pointers_restrict arg.
1706 2015-12-02  Nathan Sidwell  <nathan@acm.org>
1708         * config/nvptx/nvptx-protos.h (nvptx_output_mov_insn): Declare.
1709         (nvptx_underlying_object_mode): Delete.
1710         * config/nvptx/nvptx.c (nvptx_underlying_object_mode): Delete.
1711         (output_reg): New.
1712         (nvptx_declare_function_name): Use output_reg.  Remove punning buffer.
1713         (nvptx_output_mov_insn): New.
1714         (nvptx_print_operand): Separate SUBREG handling, remove 'f' case,
1715         Use output_reg. Merge 't' and 'u' handling.
1716         * config/nvptx/nvptx.h (NVPTX_PUNNING_BUFFER_REGNUM): Delete.
1717         (struct machine_function): Remvoe punning_buffer_size.
1718         (REGISTER_NAMES): Remove %punbuffer.
1719         * config/nvptx/nvptx.md (UNSPEC_CPLX_LOWPART,
1720         UNSPEC_CPLX_HIGHPART): Delete.
1721         (*mov<mode>_insn [QHSDIM): Remove unnecessary constraints, use
1722         nvptx_output_mov_insn.
1723         (*mov<mode>_insn [SDFM): Reorder constraints to match integer moc.
1724         Use nvptx_output_mov_insn.
1725         (highpartscsf2,  set_highpartscsf2, lowpartscsf2, set_lowpartscsf2):
1726         Delete.
1727         (mov<mode> [SDCM]): Delete.
1729 2015-12-02  Richard Biener  <rguenther@suse.de>
1731         * tree.h (tree_invariant_p): Declare.
1732         * tree.c (tree_invariant_p): Export.
1733         * genmatch.c (dt_simplify::gen_1): For GENERIC code-gen never
1734         create SAVE_EXPRs but reject patterns if we would need to.
1736 2015-12-02  Tom de Vries  <tom@codesourcery.com>
1738         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call)
1739         (find_func_clobbers, ipa_pta_execute): Handle BUILT_IN_GOACC_PARALLEL.
1741 2015-12-02  Segher Boessenkool  <segher@kernel.crashing.org>
1743         * config/rs6000/rs6000.md (cstore_si_as_di): New expander.
1744         (cstore<mode>4): Use it.
1746 2015-12-02  Richard Biener  <rguenther@suse.de>
1748         PR tree-optimization/68625
1749         * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not call
1750         cleanup_control_flow_bb.
1751         (cleanup_tree_cfg_1): First perform cleanup_control_flow_bb
1752         on all BBs, then cleanup_tree_cfg_bb and finally iterate
1753         over the worklist doing both.
1755 2015-12-02  Richard Sandiford  <richard.sandiford@arm.com>
1757         PR tree-optimization/68432
1758         * coretypes.h (optimization_type): New enum.
1759         * doc/tm.texi.in (TARGET_OPTAB_SUPPORTED_P): New hook.
1760         * doc/tm.texi: Regenerate.
1761         * target.def (optab_supported_p): New hook.
1762         * targhooks.h (default_optab_supported_p): Declare.
1763         * targhooks.c (default_optab_supported_p): New function.
1764         * predict.h (function_optimization_type): Declare.
1765         (bb_optimization_type): Likewise.
1766         * predict.c (function_optimization_type): New function.
1767         (bb_optimization_type): Likewise.
1768         * optabs-query.h (convert_optab_handler): Define an overload
1769         that takes an optimization type.
1770         (direct_optab_handler): Likewise.
1771         * optabs-query.c (convert_optab_handler): Likewise.
1772         (direct_optab_handler): Likewise.
1773         * internal-fn.h (direct_internal_fn_supported_p): Take an
1774         optimization_type argument.
1775         * internal-fn.c (direct_optab_supported_p): Likewise.
1776         (multi_vector_optab_supported_p): Likewise.
1777         (direct_internal_fn_supported_p): Likewise.
1778         * builtins.c (replacement_internal_fn): Update call to
1779         direct_internal_fn_supported_p.
1780         * gimple-match-head.c (build_call_internal): Likewise.
1781         * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
1782         * tree-vect-stmts.c (vectorizable_internal_function): Likewise.
1783         * tree.c (maybe_build_call_expr_loc): Likewise.
1784         * config/i386/i386.c (ix86_optab_supported_p): New function.
1785         (TARGET_OPTAB_SUPPORTED_P): Define.
1786         * config/i386/i386.md (asinxf2): Remove optimize_insn_for_size_p check.
1787         (asin<mode>2, acosxf2, acos<mode>2, log1pxf2, log1p<mode>2)
1788         (expNcorexf3, expxf2, exp<mode>2, exp10xf2, exp10<mode>2, exp2xf2)
1789         (exp2<mode>2, expm1xf2, expm1<mode>2, ldexpxf3, ldexp<mode>3)
1790         (scalbxf3, scalb<mode>3, rint<mode>2, round<mode>2)
1791         (<rounding_insn>xf2, <rounding_insn><mode>2): Likewise.
1793 2015-12-02  Richard Sandiford  <richard.sandiford@arm.com>
1795         * Makefile.in (GENSUPPORT_H): New macro.
1796         (build/gensupport.o, build/read-rtl.o, build/genattr.o)
1797         (build/genattr-common.o, build/genattrtab.o, build/genautomata.o)
1798         (build/gencodes.o, build/genconditions.o, build/genconfig.o)
1799         (build/genconstants.o, build/genextract.o, build/genflags.o)
1800         (build/gentarget-def.o): Use it.
1801         (build/genemit.o): Likewise.  Depend on internal-fn.def.
1802         * genopinit.c: Move block comment to optabs.def.
1803         (optab_tag, optab_def): Move to gensupport.h
1804         (pattern): Likewise, renaming to optab_pattern.
1805         (match_pattern): Move to gensupport.c
1806         (gen_insn): Use find_optab.
1807         (patterns, pattern_cmp): Replace pattern with optab_pattern.
1808         (main): Likewise.  Use num_optabs.
1809         * optabs.def: Add comment that was previously in genopinit.c.
1810         * gensupport.h (optab_tag): Moved from genopinit.c
1811         (optab_def): Likewise, expanding commentary.
1812         (optab_pattern): Likewise, after renaming from pattern.
1813         (optabs, num_optabs, find_optab): Declare.
1814         * gensupport.c (optabs): Moved from genopinit.c.
1815         (num_optabs): New variable.
1816         (match_pattern): Moved from genopinit.c.
1817         (find_optab): New function, extracted from genopinit.c:gen_insn.
1818         * genemit.c (nofail_optabs): New variable.
1819         (emit_c_code): New function.
1820         (gen_expand): Check whether the instruction is an optab that isn't
1821         allowed to fail.  Call emit_c_code.
1822         (gen_split): Call emit_c_code here too.
1823         (main): Initialize nofail_optabs.  Don't emit FAIL and DONE here.
1825 2015-12-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1827         * config/s390/predicates.md (const_mask_operand): New predicate.
1828         * config/s390/s390-builtins.def: Set a smaller bitmask
1829         for a few builtins.
1830         * config/s390/vector.md: Change predicate from immediate_operand
1831         to either const_int_operand or const_mask_operand.  Add special
1832         insn conditions on patterns which have to exclude certain values.
1833         * config/s390/vx-builtins.md: Likewise.
1835 2015-12-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1837         * config/s390/vector.md ("*vec_set<mode>"): Change shift count
1838         mode from DI to SI.
1840 2015-12-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1842         * config/s390/s390-builtin-types.def: New builtin types added.
1843         * config/s390/s390-builtins.def: Add s390_vec_splat_* definitions.
1844         * config/s390/s390.c (s390_expand_builtin): Always truncate
1845         constants to the mode in the pattern.
1846         * config/s390/vecintrin.h: Let the vec_splat_* macros point to the
1847         respective builtin __builtin_s390_vec_splat_*.
1849 2015-12-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1851         * config/s390/s390-builtin-types.def: Sort builtin types.
1853 2015-12-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1855         * config/s390/s390-c.c (s390_get_vstring_flags): Invert the
1856         condition for the RT flag.
1858 2015-12-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1860         * config/s390/constraints.md ("jKK"): New constraint.
1861         * config/s390/s390.c (tm-constrs.h): Include for
1862         satisfies_constraint_*.
1863         (s390_legitimate_constant_p): Allow jKK constants.  Use
1864         satisfies_constraint_* also for the others.
1865         (legitimate_reload_vector_constant_p): Likewise.
1866         (print_operand): Allow h output modifier on vectors.
1867         * config/s390/vector.md ("mov<mode>"): Add vrepi.
1869 2015-12-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1871         * config/s390/vector.md ("*vec_splats<mode>"): Fix constraint
1872         letter I->K.
1874 2015-12-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1876         * config/s390/s390.md ("bswap<mode>2"): Add support for strv and strvg.
1877         ("bswaphi2"): New pattern.
1878         New splitter for HI reg-reg bswap.
1880 2015-11-27  Jiri Engelthaler  <engycz@gmail.com>
1882         PR driver/68029
1883         * opts-common.c (prune_options): Don't ignore -fdiagnostics-color
1884         if it is the first parameter.
1886 2015-12-01  Richard Sandiford  <richard.sandiford@arm.com>
1888         PR tree-optimization/68577
1889         * tree-vect-stmts.c (simple_integer_narrowing): New function.
1890         (vectorizable_call): Restrict internal function handling
1891         to NONE and NARROW cases, using simple_integer_narrowing
1892         to test for the latter.  Add cost of narrowing operation
1893         and insert it where necessary.
1895 2015-12-01  Andreas Tobler  <andreast@gcc.gnu.org>
1897         * config/rs6000/freebsd64.h (ELFv2_ABI_CHECK): Add new macro.
1898         (SUBSUBTARGET_OVERRIDE_OPTIONS): Use it to decide whether to set
1899         rs6000_current_abi to ABI_AIX or ABI_ELFv2.
1901 2015-12-01  Nathan Sidwell  <nathan@acm.org>
1903         * config/nvptx/nvptx-protos.h (nvptx_output_aligned_decl): Declare.
1904         * config/nvptx/nvptx.h (ASM_OUTPUT_ALIGNED_DECL_COMMON,
1905         ASM_OUTPUT_ALIGNED_DECL_LOCAL): Forward to nvptx_output_aligned_decl.
1906         * config/nvptx/nvptx.c (write_fn_marker, write_var_marker): New.
1907         (write_fn_proto, write_fn_proto_from_insn): Call write_fn_marker.
1908         (init_output_initializer): Call write_var_marker.
1909         (nvptx_output_aligned_decl): New.
1910         (nvptx_assemble_undefined_decl, nvptx_file_end): Call write_var_marker.
1912 2015-12-01  Jan Hubicka  <hubicka@ucw.cz>
1914         * c-common.c (parse_optimize_options): Do not silently ignore
1915         -fstrict-aliasing changes.
1917 2015-12-01  Jan Hubicka  <hubicka@ucw.cz>
1919         * lto-streamer-out.c (hash_tree): Do not stream TYPE_ALIAS_SET.
1920         * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not
1921         stream TYPE_ALIAS_SET.
1922         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Do not
1923         stream TYPE_ALIAS_SET.
1925 2015-12-01  Nathan Sidwell  <nathan@acm.org>
1927         * config/nvptx/nvptx.c (nvptx_function_arg_advance): Don't
1928         consider mode.
1930 2015-12-01  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1932         * config/rs6000/rs6000.c (const_load_sequence_p): Handle extra
1933         indirection for large and small code models.
1934         (adjust_vperm): Likewise.
1936 2015-12-01  Julian Brown  <julian@codesourcery.com>
1937             Cesar Philippidis  <cesar@codesourcery.com>
1938             James Norris  <James_Norris@mentor.com>
1940         * gimple-pretty-print.c (dump_gimple_omp_target): Add host_data support.
1941         * gimple.h (gf_mask): Add GF_OMP_TARGET_KIND_OACC_HOST_DATA.
1942         (is_gimple_omp_oacc): Add support for above.
1943         * gimplify.c (omp_region_type): Add ORT_ACC_HOST_DATA.
1944         (omp_notice_variable): Diagnose undefined implicit uses of
1945         use_device variables in offloaded regions.
1946         (gimplify_scan_omp_clauses): Add host_data, use_device
1947         support. Diagnose undefined mapping of use_device variables in
1948         OpenACC clauses.
1949         (gimplify_omp_workshare): Add host_data support.
1950         (gimplify_expr): Likewise.
1951         * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): New.
1952         * omp-low.c (lookup_decl_in_outer_ctx)
1953         (maybe_lookup_decl_in_outer_ctx): Add optional argument to skip
1954         host_data regions.
1955         (scan_sharing_clauses): Support use_device.
1956         (check_omp_nesting_restrictions): Support host_data.
1957         (expand_omp_target): Support host_data.
1958         (lower_omp_target): Skip over outer host_data regions when looking
1959         up decls. Support use_device.
1960         (make_gimple_omp_edges): Support host_data.
1961         * tree-nested.c (convert_nonlocal_omp_clauses): Add use_device clause.
1963 2015-12-01  Marek Polacek  <polacek@redhat.com>
1965         PR middle-end/68582
1966         * cgraphunit.c (check_global_declaration): Only depend
1967         on TREE_THIS_VOLATILE for VAR_DECLs.
1969 2015-12-01  Richard Sandiford  <richard.sandiford@arm.com>
1971         PR tree-optimization/68474
1972         * tree-call-cdce.c (use_internal_fn): Protect call to
1973         gen_shrink_wrap_conditions.
1975 2015-12-01  Christian Bruel  <christian.bruel@st.com>
1977         PR target/68617
1978         * config/arm/arm.opt (unaligned_access): Save.
1979         * config/arm/arm-c.c (__ARM_FEATURE_UNALIGNED): Conditionally define.
1980         * config/arm/arm.c (arm_option_override): Move unaligned_access setting.
1981         (arm_option_override_internal): ... here.
1982         * config/arm/arm.h (TARGET_32BIT_P): New macro.
1984 2015-12-01  Richard Biener  <rguenther@suse.de>
1986         PR tree-optimization/68379
1987         * tree-vect-stmts.c (vectorizable_load): For BB vectorization
1988         always base loads on the first used DR of a group.
1989         * tree-vect-data-refs.c (vect_slp_analyze_and_verify_node_alignment):
1990         Compute alignment of the first scalar element unconditionally.
1992 2015-12-01  Richard Biener  <rguenther@suse.de>
1994         PR middle-end/68590
1995         * genmatch.c (struct capture_info): Add match_use_count.
1996         (capture_info::walk_match): Increment match_use_count.
1997         (dt_simplify::gen_1): For GENERIC, only wrap multi-use
1998         replacements in a save_expr if they occur more often than
1999         in the original expression.
2001 2015-12-01  Richard Biener  <rguenther@suse.de>
2003         PR ipa/68470
2004         * ipa-split.c (split_function): Handle main part not returning.
2006 2015-12-01  Ilya Enkovich  <enkovich.gnu@gmail.com>
2008         PR middle-end/68595
2009         * tree-vect-stmts.c (vect_init_vector): Cast boolean
2010         scalars to a proper value before building a vector.
2012 2015-12-01  Richard Sandiford  <richard.sandiford@arm.com>
2014         * genattrtab.c (check_attr_test): Take an attr_desc instead of
2015         an is_const flag.  Put the file_location argument first.
2016         Update recursive calls.  Improve error messages.
2017         (check_attr_value): Take a file location and use it instead
2018         of attr->loc.  Improve error messages.  Update calls to
2019         check_attr_test.
2020         (check_defs): Update call to check_attr_value.
2021         (make_canonical): Likewise.
2022         (gen_attr): Likewise.
2023         (main): Likewise.
2024         (gen_insn_reserv): Update call to check_attr_test.
2026 2015-12-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2028         * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Fix typo.
2030 2015-12-01  Richard Biener  <rguenther@suse.de>
2032         PR middle-end/68590
2033         * match.pd: Merge (eq @0 @0) and (ge/le @0 @0) patterns.
2035 2015-12-01  Jan Hubicka  <hubicka@ucw.cz>
2037         * ipa-devirt.c (type_with_linkage_p, type_in_anonymous_namespace_p,
2038         odr_type_p): Move to ...
2039         * ipa-utils.h (type_with_linkage_p, type_in_anonymous_namespace_p,
2040         odr_type_p): here; miscro-optimize.
2042 2015-12-01  Bin Cheng  <bin.cheng@arm.com>
2044         PR tree-optimization/68529
2045         * tree-ssa-loop-niter.c (number_of_iterations_ne): Add new param.
2046         Compute no-overflow information for control iv.
2047         (number_of_iterations_lt, number_of_iterations_le): Add new param.
2048         (number_of_iterations_cond): Pass new argument to above functions.
2050 2015-11-30  Jan Hubicka  <hubicka@ucw.cz>
2052         * ipa-inline-transform.c (inline_call): Drop -fstrict-aliasing when
2053         inlining -fno-strict-aliasing into -fstrict-aliasing body.
2055 2015-11-30  Aditya Kumar  <aditya.k7@samsung.com>
2056             Sebastian Pop  <s.pop@samsung.com>
2058         PR tree-optimization/68565
2059         * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Early return on
2060         codegen_error.  Fail when rhs of division operations is integer_zerop.
2061         (ternary_op_to_tree): Early return on codegen_error.
2062         (unary_op_to_tree): Same.
2063         (nary_op_to_tree): Same.
2064         (gcc_expression_from_isl_expr_op): Same.
2065         (gcc_expression_from_isl_expression): Same.
2066         (graphite_create_new_loop): On codegen_error continue generating
2067         wrong code.
2068         (graphite_create_new_loop_guard): Same.
2069         (build_iv_mapping): Same.
2070         (graphite_create_new_guard): Same.
2072 2015-11-30  Aditya Kumar  <aditya.k7@samsung.com>
2073             Sebastian Pop  <s.pop@samsung.com>
2075         * graphite-isl-ast-to-gimple.c: Fix dump messages.
2076         * graphite-scop-detection.c: Same.
2077         * graphite-sese-to-poly.c (isl_id_for_ssa_name): Do not call get_name.
2079 2015-11-30  Cesar Philippidis  <cesar@codesourcery.com>
2081         * tree-nested.c (convert_nonlocal_omp_clauses): Add support for
2082         OMP_CLAUSE_{NUM_GANGS,NUM_VECTORS,VECTOR_LENGTH,SEQ}.
2083         (convert_local_omp_clauses): Likewise.
2085 2015-11-30  Tom de Vries  <tom@codesourcery.com>
2087         PR tree-optimization/46032
2088         * tree-ssa-structalias.c (find_func_aliases_for_call_arg): New function,
2089         factored out of ...
2090         (find_func_aliases_for_call): ... here.
2091         (find_func_aliases_for_builtin_call, find_func_clobbers): Handle
2092         BUILT_IN_GOMP_PARALLEL.
2093         (ipa_pta_execute): Same.  Handle node->parallelized_function as a local
2094         function.
2096 2015-11-30  Jakub Jelinek  <jakub@redhat.com>
2098         PR tree-optimization/68501
2099         * target.def (builtin_reciprocal): Replace the 3 arguments with
2100         a gcall * one, adjust description.
2101         * targhooks.h (default_builtin_reciprocal): Replace the 3 arguments
2102         with a gcall * one.
2103         * targhooks.c (default_builtin_reciprocal): Likewise.
2104         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Use
2105         targetm.builtin_reciprocal even on internal functions, adjust
2106         the arguments and allow replacing an internal function with normal
2107         built-in.
2108         * config/i386/i386.c (ix86_builtin_reciprocal): Replace the 3 arguments
2109         with a gcall * one.  Handle internal fns too.
2110         * config/rs6000/rs6000.c (rs6000_builtin_reciprocal): Likewise.
2111         * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
2112         * doc/tm.texi (builtin_reciprocal): Document.
2114 2015-11-30  Richard Biener  <rguenther@suse.de>
2116         PR tree-optimization/68592
2117         * tree-vect-loop.c (vect_analyze_loop_2): Reset SLP type also
2118         on the pattern def sequence.
2120 2015-11-30  Nathan Sidwell  <nathan@acm.org>
2122         * config/nvptx/nvptx.c (nvptx_name_replacement): Move earlier.
2123         (write_one_arg): Reorder parms, add 'sep' param.
2124         (nvptx_write_function_decl): Rename to ...
2125         (write_fn_proto): ... here.  Do name replacement. Emit linaer
2126         comment marker. Deal with both decls and defns. Simplify argument
2127         formatting.
2128         (write_function_decl_and_comment): Delete.
2129         (write_func_decl_from_insn): Rename to ...
2130         (write_fn_proto_from_insn): ... here.  Don't do name replacement.
2131         (nvptx_record_fndecl): Call write_fn_proto.
2132         (nvptx_record_libfunc): Call write_fn_proto_from_insn.
2133         (nvptx_declare_function_name): Adjust for write_fn_proto changes.
2134         (nvotx_output_call_insn): Call write_fn_prot_from_insn.
2136 2015-11-30  Kirill Yukhin  <kirill.yukhin@intel.com>
2138         * config/i386/i386.md (define_mode_iterator SWI1248_AVX512BW): New.
2139         (define_insn "*k<logic><mode>"): Use new iterator.
2141 2015-11-30  Eric Botcazou  <ebotcazou@adacore.com>
2143         PR target/28115
2144         * config/sparc/sparc.c (supersparc_adjust_cost): Fix thinko.
2145         (sparc_adjust_cost): Add missing space.
2147 2015-11-30  Richard Biener  <rguenther@suse.de>
2149         PR c/68162
2150         * dwarf2out.c (gen_type_die_with_usage): Keep variant types of arrays.
2152 2015-11-30  Venkataramanan Kumar  <Venkataramanan.Kumar@amd.com>
2154         * tree-if-conv.c (struct ifc_dr): Add new tree base_predicate field.
2155         (hash_memrefs_baserefs_and_store_DRs_read_written_info): Hash
2156         base ref, DR pairs and store base_predicate for write type DRs.
2157         (ifcvt_memrefs_wont_trap): Guard checks with
2158         -ftree-loop-if-convert-stores flag.
2160 2015-11-29  Jan Hubicka  <hubicka@ucw.cz>
2162         * cgraph.c (cgraph_node::make_local): No name is unique during
2163         incremental linking.
2164         * cgraph.h (can_be_discarded_p): Update comment; also common and
2165         WEAK in named sections can be discarded; when doing incremental
2166         link do not rely on resolution being the final one.
2167         * varasm.c (default_binds_local_p_3, decl_binds_to_current_def_p):
2168         When symbol can be discarded, do not rely on resolution info.
2169         * symtab.c (symtab_node::nonzero_address): Take into account that
2170         symbol can be discarded.
2171         * ipa-visibility.c (update_visibility_by_resolution_info): Handle
2172         definition correctly.
2173         (function_and_variable_visibility): Do not set unique_name when
2174         incrementally linking.
2176 2015-11-29  Nathan Sidwell  <nathan@acm.org>
2178         * config/nvptx/nvptx.md (const_0_operand, global_mem_operand,
2179         const_mem_operand, param_mem_operand, shared_mem_operand): Delete.
2180         (ctrap<mode>): Use const0_operand.
2182 2015-11-29  Jan Hubicka  <hubicka@ucw.cz>
2184         * ipa-devirt.c (add_type_duplicate): Remove redundant
2185         ODR violation dump.
2187 2015-11-29  David Edelsohn  <dje.gcc@gmail.com>
2189         PR target/28115
2190         * config/rs6000/rs6000.c (rs6000_adjust_cost): Correct
2191         recog_memoized test for insn and check recog_memoized for dep_insn.
2193 2015-11-28  Nathan Sidwell  <nathan@acm.org>
2195         * config/nvptx/nvptx.h (FIRST_PARM_OFFSET): Add void cast.
2196         (FRAME_POINTER_CFA_OFFSET): Define.
2197         (struct nvptx_args): Use 'tree' type.
2198         (INIT_CUMULATIVE_ARGS): Remove unnecessary do...while.
2200 2015-11-28  Tom de Vries  <tom@codesourcery.com>
2202         * lto-wrapper.c (run_gcc): Handle -flinker-output argument.
2204 2015-11-27  Jonathan Wakely  <jwakely@redhat.com>
2206         * doc/invoke.texi (Option Summary): Use negative form of
2207         -Waggressive-loop-optimizations, remove redundant -Wpedantic-ms-format,
2208         sort alphabetically and re-justify.
2210 2015-11-27  Vladimir Makarov  <vmakarov@redhat.com>
2212         PR rtl-optimization/68536
2213         * lra.c (lra_emit_add): Add code for null base.
2214         * lra-constraints.c (curr_insn_transform): Skip operators for
2215         subreg reloads.
2217 2015-11-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2219         Revert
2220         2015-11-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2222         * ifcvt.c (insn_valid_noce_process_p): Reject insn if it satisfies
2223         multiple_sets.
2224         (noce_try_cmove_arith): Add checking asserts that orig_a and orig_b
2225         are not modified by the final modified insns in the basic blocks.
2227 2015-11-27  Nathan Sidwell  <nathan@acm.org>
2229         * config/nvptx/nvptx-protos.h (nvptx_addr_space_from_address):
2230         Don't declare.
2231         * config/nvptx/nvptx.c (nvptx_addr_space_from_sym): New.
2232         (nvptx_maybe_convert_symbolic_operand): Simplify.
2233         (nvptx_addr_space_from_address): Delete.
2234         (nvptx_print_operand): Adjust 'A' case.
2236 2015-11-27  Richard Biener  <rguenther@suse.de>
2238         PR tree-optimization/68559
2239         * tree-vect-data-refs.c (vect_analyze_group_access_1): Move
2240         peeling for gap checks ...
2241         * tree-vect-stmts.c (vectorizable_load): ... here and relax for SLP.
2242         * tree-vect-loop.c (vect_analyze_loop_2): Re-set
2243         LOOP_VINFO_PEELING_FOR_GAPS before re-trying without SLP.
2245 2015-11-27  Nathan Sidwell  <nathan@acm.org>
2247         * config/nvptx/nvptx-protos.h (nvptx_record_needed_decl): Don't declare.
2248         * config/nvptx/nvptx.c (write_func_decl_from_insn): Move earlier.
2249         (nvptx_record_fndecl): Don't return value, remove force
2250         argument. Require fndecl.
2251         (nvptx_record_libfunc): New.
2252         (nvptx_record_needed_decl): Deteermine how to record decl here.
2253         (nvptx_maybe_record_fnsym): New.
2254         (nvptx_expand_call): Don't record libfuncs here,
2255         (nvptx_maybe_convert_symbolic_operand): Use
2256         nvptx_maye_record_fnsym.
2257         (nvptx_assemble_integer): Reimplement with single switch.
2258         (nvptx_output_call_insn): Register libfuncs here.
2259         (nvptx_file_end): Adjust  nvptx_record_fndecl call.
2260         * config/nvptx/nvptx.md (expand_movdi): Don't call
2261         nvptx_record_needed_decl.
2263 2015-11-27  Richard Biener  <rguenther@suse.de>
2265         PR tree-optimization/68553
2266         * tree-vect-slp.c (vect_create_mask_and_perm): Skip VEC_PERM_EXPR
2267         generation for 1:1 permutations.
2268         (vect_transform_slp_perm_load): Detect 1:1 permutations.
2270 2015-11-27  Bernd Schmidt  <bschmidt@redhat.com>
2272         * gimple.h (nonbarrier_call_p): Declare.
2273         * gimple.c (nonbarrier_call_p): New function.
2274         * tree-ssa-phiopt.c (nontrapping_dom_walker::before_dom_children):
2275         Also increment call phase for ASMs with vdef and potential barrier
2276         calls.
2278 2015-11-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2280         * ifcvt.c (insn_valid_noce_process_p): Reject insn if it satisfies
2281         multiple_sets.
2282         (noce_try_cmove_arith): Add checking asserts that orig_a and orig_b
2283         are not modified by the final modified insns in the basic blocks.
2285 2015-11-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2287         PR rtl-optimization/68506
2288         * ifcvt.c (noce_try_cmove_arith): Try emitting the else basic block
2289         first if emit_a exists or then_bb modifies 'b'.  Reindent if-else
2290         blocks.
2292 2015-11-27  Martin Liska  <mliska@suse.cz>
2294         PR c++/68312
2295         * vec.h (release_vec_vec): New function.
2297 2015-11-27  Jakub Jelinek  <jakub@redhat.com>
2299         PR tree-optimization/68552
2300         * optabs.c (expand_vec_perm_1): Move vec_shr handling from here...
2301         (expand_vec_perm): ... here.  Do it regardless of vec_perm_const_optab
2302         or whether v0 == v1.
2304 2015-11-27  Martin Liska  <mliska@suse.cz>
2306         * tree-ssa-uninit.c: Fix whitespaces in the source file.
2307         The change is just automatical.
2309 2015-11-27  Martin Liska  <mliska@suse.cz>
2311         * tree-chkp.c (chkp_make_static_bounds): Release buffer
2312         used for string.
2314 2015-11-27  Martin Liska  <mliska@suse.cz>
2316         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
2317         Do not release memory for comp_alias_ddrs.
2318         * tree-vect-loop.c (destroy_loop_vec_info): Release
2319         the memory for all loop_vec_info.
2321 2015-11-27  Martin Liska  <mliska@suse.cz>
2323         * ipa-devirt.c (ipa_devirt): Use auto_vec instead
2324         of a local-scope vec.
2325         (struct final_warning_record): Use auto_vec instead of vec.
2327 2015-11-27  Richard Biener  <rguenther@suse.de>
2329         PR tree-optimization/68553
2330         * tree-vect-slp.c (vect_get_mask_element): Remove.
2331         (vect_transform_slp_perm_load): Implement in a simpler way.
2333 2015-11-26  Alexandre Oliva <aoliva@redhat.com>
2335         PR rtl-optimization/67753
2336         PR rtl-optimization/64164
2337         * function.c (assign_parm_setup_block): Right-shift
2338         upward-padded big-endian args when bypassing the stack slot.
2340 2015-11-26  Maciej W. Rozycki  <macro@imgtec.com>
2342         * doc/invoke.texi (Option Summary) <MIPS Options>: Reorder
2343         `-mcompact-branches='.
2344         (MIPS Options): Likewise.
2346 2015-11-26  Jakub Jelinek  <jakub@redhat.com>
2348         * Makefile.in (build/genmatch.o): Depend on internal-fn.def.
2350 2015-11-26  David Edelsohn  <dje.gcc@gmail.com>
2352         * doc/install.texi (Prerequisites): Increase ISL requirement to
2353         0.14 or 0.15.
2355 2015-11-26  Matthew Wahab  <matthew.wahab@arm.com>
2357         * config/aarch64/arm_neon.h
2358         (vqrdmlah_laneq_s16, vqrdmlah_laneq_s32): New.
2359         (vqrdmlahq_laneq_s16, vqrdmlahq_laneq_s32): New.
2360         (vqrdmlsh_lane_s16, vqrdmlsh_lane_s32): New.
2361         (vqrdmlshq_laneq_s16, vqrdmlshq_laneq_s32): New.
2362         (vqrdmlah_lane_s16, vqrdmlah_lane_s32): New.
2363         (vqrdmlahq_lane_s16, vqrdmlahq_lane_s32): New.
2364         (vqrdmlahh_s16, vqrdmlahh_lane_s16, vqrdmlahh_laneq_s16): New.
2365         (vqrdmlahs_s32, vqrdmlahs_lane_s32, vqrdmlahs_laneq_s32): New.
2366         (vqrdmlsh_lane_s16, vqrdmlsh_lane_s32): New.
2367         (vqrdmlshq_lane_s16, vqrdmlshq_lane_s32): New.
2368         (vqrdmlshh_s16, vqrdmlshh_lane_s16, vqrdmlshh_laneq_s16): New.
2369         (vqrdmlshs_s32, vqrdmlshs_lane_s32, vqrdmlshs_laneq_s32): New.
2371 2015-11-26  Matthew Wahab  <matthew.wahab@arm.com>
2373         * config/aarch64/arm_neon.h (vqrdmlah_s16, vqrdmlah_s32): New.
2374         (vqrdmlahq_s16, vqrdmlahq_s32): New.
2375         (vqrdmlsh_s16, vqrdmlsh_s32): New.
2376         (vqrdmlshq_s16, vqrdmlshq_s32): New.
2378 2015-11-26  Matthew Wahab  <matthew.wahab@arm.com>
2380         * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Add
2381         ARM_FEATURE_QRDMX.
2383 2015-11-26  Pierre-Marie de Rodat  <derodat@adacore.com>
2385         PR debug/53927
2386         * tree-nested.c (finalize_nesting_tree_1): Append a field to
2387         hold the frame base address.
2388         * dwarf2out.c (gen_subprogram_die): Generate for
2389         DW_AT_static_link a location description that computes the value
2390         of this field.
2392 2015-11-26  Tom de Vries  <tom@codesourcery.com>
2394         revert:
2395         2015-11-25  Tom de Vries  <tom@codesourcery.com>
2397         * cfgloop.c (find_single_latch): New function, factored out of ...
2398         (flow_loops_find): ... here.
2399         (verify_loop_structure): Improve verification of loop->latch.
2400         * cfgloop.h (find_single_latch): Declare.
2401         * omp-low.c (expand_omp_for_generic): Initialize latch of orig_loop.
2403 2015-11-26  Matthew Wahab  <matthew.wahab@arm.com>
2405         * config/aarch64/aarch64-simd-builtins.def:
2406         Add missing changes from r230962.
2408 2015-11-26  Nathan Sidwell  <nathan@acm.org>
2410         * config/nvptx/nvptx.c (write_func_decl_from_insn): Replace callee
2411         arg with name.  Don't deal with split regs.  Tweak formatting.
2412         (nvptx_expand_call): Adjust write_func_decl_from_insn call.
2413         (nvptx_output_call_insn): Don't deal with split regs here.
2415 2015-11-26  Matthew Wahab  <matthew.wahab@arm.com>
2417         * config/aarch64/aarch64-simd-builtins.def
2418         (sqrdmlah, sqrdmlsh): New.
2419         (sqrdmlah_lane, sqrdmlsh_lane): New.
2420         (sqrdmlah_laneq, sqrdmlsh_laneq): New.
2422 2015-11-26  Matthew Wahab  <matthew.wahab@arm.com>
2424         * config/aarch64/aarch64-simd.md
2425         (aarch64_sqmovun<mode>): Fix some white-space.
2426         (aarch64_<sur>qmovun<mode>): Likewise.
2427         (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h<mode>): New.
2428         (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): New.
2429         (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): New.
2430         * config/aarch64/iterators.md (UNSPEC_SQRDMLAH): New.
2431         (UNSPEC_SQRDMLSH): New.
2432         (SQRDMLH_AS): New.
2433         (rdma_as): New.
2435 2015-11-26  Richard Biener  <rguenther@suse.de>
2437         PR tree-optimization/66721
2438         * tree-vect-loop.c (vect_analyze_loop_2): Compute scalar
2439         iteration cost earlier.  Re-do analysis without SLP when
2440         vectorization using SLP fails and without has a chance to succeed.
2442 2015-11-26  Richard Biener  <rguenther@suse.de>
2444         * genmatch.c (dt_simplify::gen_1): For generic wrap all
2445         multi-result-use captures in a SAVE_EXPR.
2447 2015-11-26  Matthew Wahab  <matthew.wahab@arm.com>
2449         * config/aarch64/aarch64.h (AARCH64_ISA_RDMA): New.
2450         (TARGET_SIMD_RDMA): New.
2452 2015-11-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2454         * combine.c (subst): Do not return clobber of zero in widening mult
2455         case.  Just return x unchanged if it is a no-op substitution.
2457 2015-11-26  Vladimir Makarov  <vmakarov@redhat.com>
2459         PR target/68416
2460         * config/i386/i386.h (enum reg_class): Add
2461         bounds registers to ALL_REGS.
2463 2015-11-26  Jakub Jelinek  <jakub@redhat.com>
2465         PR tree-optimization/68128
2466         * tree.h (OMP_CLAUSE_SHARED_READONLY): Define.
2467         * gimplify.c: Include gimple-walk.h.
2468         (enum gimplify_omp_var_data): Add GOVD_WRITTEN.
2469         (omp_notice_variable): Set flags to n->value if n already
2470         exists in target region, but we need to jump to do_outer.
2471         (omp_shared_to_firstprivate_optimizable_decl_p,
2472         omp_mark_stores, omp_find_stores_op, omp_find_stores_stmt): New
2473         functions.
2474         (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_SHARED_READONLY
2475         on OMP_CLAUSE_SHARED if it is a scalar non-addressable that is
2476         not modified in the body.  Call omp_mark_stores for outer
2477         contexts on OMP_CLAUSE_SHARED clauses if they could be written
2478         in the body or on OMP_CLAUSE_LASTPRIVATE.
2479         (gimplify_adjust_omp_clauses): Add body argument, call
2480         omp_find_stores_{stmt,op} on the body through walk_gimple_seq.
2481         Set OMP_CLAUSE_SHARED_READONLY
2482         on OMP_CLAUSE_SHARED if it is a scalar non-addressable that is
2483         not modified in the body.  Call omp_mark_stores for outer
2484         contexts on OMP_CLAUSE_SHARED clauses if they could be written
2485         in the body or on OMP_CLAUSE_LASTPRIVATE or on OMP_CLAUSE_LINEAR
2486         without OMP_CLAUSE_LINEAR_NO_COPYOUT or on OMP_CLAUSE_REDUCTION.
2487         (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task,
2488         gimplify_omp_for, gimplify_omp_workshare, gimplify_omp_target_update,
2489         gimplify_expr): Adjust gimplify_adjust_omp_clauses callers.
2490         * tree-nested.c (convert_nonlocal_omp_clauses,
2491         convert_local_omp_clauses): Clear OMP_CLAUSE_SHARED_READONLY on
2492         non-local vars or local vars referenced from nested routines.
2493         * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_SHARED_READONLY
2494         attempt to optimize it into OMP_CLAUSE_FIRSTPRIVATE.  Even for
2495         TREE_READONLY, don't call use_pointer_for_field with non-NULL
2496         second argument until we are sure we are keeping OMP_CLAUSE_SHARED.
2498 2015-11-26  Paolo Bonzini <bonzini@gnu.org>
2500         * doc/implement-c.texi (Integers Implementation): Make GCC's promises
2501         about signed left shift stronger and clarify the cases when they're
2502         broken.
2504 2015-11-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2505             Bernd Schmidt  <bschmidt@redhat.com>
2507         PR rtl-optimization/67226
2508         * calls.c (store_one_arg): Take into account
2509         crtl->args.pretend_args_size when checking for overlap between
2510         arg->value and argblock + arg->locate.offset during sibcall
2511         optimization.
2513 2015-11-26  Wilco Dijkstra  <wdijkstr@arm.com>
2515         * config/aarch64/aarch64.md (cbranch<mode>4): Use
2516         aarch64_fp_compare_operand.
2517         (store_pairsf): Use aarch64_reg_or_fp_zero.
2518         (store_pairdf): Likewise.
2519         (cstore<mode>4): Use aarch64_fp_compare_operand.
2520         (cmov<mode>6): Likewise.
2521         * config/aarch64/aarch64-ldpstp.md: Use aarch64_reg_or_fp_zero.
2523 2015-11-25  Aditya Kumar  <aditya.k7@samsung.com>
2524             Sebastian Pop  <s.pop@samsung.com>
2526         PR tree-optimization/68453
2527         * graphite-isl-ast-to-gimple.c (translate_isl_ast_for_loop): Do
2528         not redirect edges already pointing to their destination.
2529         (translate_isl_ast_node_for): Split edges after loops to create
2530         basic blocks for close phi nodes.  Save merge points at the end of
2531         a loop guard.
2532         (translate_isl_ast_node_if): Save merge points at the end of the
2533         if region.
2534         (add_close_phis_to_outer_loops): New.
2535         (add_close_phis_to_merge_points): New.
2536         (copy_loop_close_phi_args): Call add_close_phis_to_merge_points.
2537         (copy_bb_and_scalar_dependences): Do not split basic blocks on
2538         loop close phi locations.
2540 2015-11-25  Jan Hubicka  <jh@suse.cz>
2542         * ipa-visibility.c (cgraph_externally_visible_p,
2543         varpool_node::externally_visible_p): When doing incremental linking,
2544         hidden symbols may be still used later.
2545         (update_visibility_by_resolution_info): Do not drop weak during
2546         incremental link.
2547         (function_and_variable_visibility): Fix formating.
2548         * flag-types.h (lto_linker_output): Declare.
2549         * common.opt 9flag_incremental_link): New flag.
2551 2015-11-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
2553         * config/rs6000/constraints.md (wb constraint): New constraint for
2554         ISA 3.0 d-form scalar addressing.
2556         * config/rs6000/rs6000.c (mode_supports_vmx_dform): Add support
2557         for ISA 3.0 D-form addressing to load SFmode/DFmode scalars into
2558         Altivec registers.  Add wb constraint for Altivec registers with
2559         D-form addressing.  If we have ISA 3.0 d-form support, undo
2560         secondary reload support for using FPR registers if we want to do
2561         D-form addressing.
2562         (rs6000_debug_reg_global): Likewise.
2563         (rs6000_setup_reg_addr_masks): Likewise.
2564         (rs6000_init_hard_regno_mode_ok): Likewise.
2565         (rs6000_secondary_reload): Likewise.
2566         (rs6000_preferred_reload_class): Likewise.
2567         (rs6000_secondary_reload_class): Likewise.
2569         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wb
2570         constraint.
2572         * config/rs6000/rs6000.md (f32_lr2 mode attribute): Add support
2573         for ISA 3.0 SFmode/DFmode d-form addressing to Altivec registers.
2574         (f32_lm2): Likewise.
2575         (f32_li2): Likewise.
2576         (f32_sr2): Likewise.
2577         (f32_sm2): Likewise.
2578         (f32_si2): Likewise.
2579         (f64_p9): Likewise.
2580         (extendsfdf2_fpr): Likewise.
2581         (mov<mode>_hardfloat): Likewise.
2582         (mov<mode>_hardfloat32): Likewise.
2583         (mov<mode>_hardfloat64): Likewise.
2585         * doc/md.texi (RS/6000 constraints): Document wb constraint.
2586         Fixup we constraint documentation.
2588 2015-11-25  Tom de Vries  <tom@codesourcery.com>
2590         * omp-low.c (pass_expand_omp_ssa::clone): New function.
2591         * passes.def: Add pass_oacc_kernels pass group.
2592         * tree-ssa-loop-ch.c (pass_ch::clone): New function.
2594 2015-11-25  Tom de Vries  <tom@codesourcery.com>
2596         * tree-pass.h (make_pass_oacc_kernels, make_pass_oacc_kernels2):
2597         Declare.
2598         * tree-ssa-loop.c (gate_oacc_kernels): New static function.
2599         (pass_data_oacc_kernels, pass_data_oacc_kernels2): New pass_data.
2600         (class pass_oacc_kernels, class pass_oacc_kernels2): New pass.
2601         (make_pass_oacc_kernels, make_pass_oacc_kernels2): New function.
2603 2015-11-25  Jan Hubicka  <hubicka@ucw.cz>
2605         * timevar.def (TV_IPA_LTO_DECOMPRESS, TV_IPA_LTO_COMPRESS,
2606         TV_IPA_LTO_OUTPUT): New.
2607         * lto-compress.c: Include timevar.h
2608         (lto_end_compression, lto_end_uncompression): Add timers.
2609         * langhooks.c: Include timevar.h.
2610         (lhd_append_data): Add timer.
2612 2015-11-25  Jan Hubicka  <hubicka@ucw.cz>
2614         * varasm.c (default_elf_asm_output_limited_string,
2615         default_elf_asm_output_ascii): Replace fprintf by putc.
2617 2015-11-25  Vladimir Makarov  <vmakarov@redhat.com>
2619         PR rtl-optimization/67954
2620         * lra-constraints.c (curr_insn_transform): Add check on scratch
2621         pseudo when change class to NO_REGS.  Add an assert.
2623 2015-11-25  Nathan Sidwell  <nathan@acm.org>
2625         * config/nvptx/nvptx.md (load_arg_reg<mode>): Arg number
2626         constraint is 'n'.
2627         * config/nvptx/nvptx.c (write_one_arg): Use 'i' directly as arg number.
2628         (nvptx_write_function_decl): Number args from 0.
2629         (nvptx_declare_function_name): Likewise.
2630         (nvptx_function_incoming_arg): Likewise.
2631         (nvptx_output_call_insn): Correct formatting.
2633 2015-11-25  David Sherwood  <david.sherwood@arm.com>
2635         * optabs.def: Add new optabs fmax_optab/fmin_optab.
2636         * internal-fn.def: Add new fmax/fmin internal functions.
2637         * doc/md.texi: Add fmin and fmax patterns.
2639 2015-11-25  Jason Merrill  <jason@redhat.com>
2641         PR c++/68385
2642         * tree.c (integer_zerop, integer_onep, integer_each_onep)
2643         (integer_all_onesp, integer_minus_onep, integer_pow2p)
2644         (integer_nonzerop, integer_truep, tree_log2, tree_floor_log2)
2645         (real_zerop, real_onep, real_minus_onep): Remove STRIP_NOPS.
2647 2015-11-25  Richard Biener  <rguenther@suse.de>
2649         PR middle-end/68528
2650         * fold-const.c (fold_binary_loc): Do not call negate_expr_p
2651         on stripped operands.
2653 2015-11-25  Nathan Sidwell  <nathan@acm.org>
2655         * config/nvptx/nvptx.c (walk_args_for_params): Delete.
2656         (nvptx_declare_function_name): Move assignments next to register
2657         declarations, and process params here.
2659 2015-11-25  David Edelsohn  <dje.gcc@gmail.com>
2661         * config/rs6000/rs6000.c (rs6000_declare_alias): Rename and globalize
2662         both the symbol and the "dot" symbol for function descriptors. Fix
2663         inversion for rename of symbols with dollar sign.
2665 2015-11-25  Tom de Vries  <tom@codesourcery.com>
2667         * cfgloop.c (find_single_latch): New function, factored out of ...
2668         (flow_loops_find): ... here.
2669         (verify_loop_structure): Improve verification of loop->latch.
2670         * cfgloop.h (find_single_latch): Declare.
2671         * omp-low.c (expand_omp_for_generic): Initialize latch of orig_loop.
2673 2015-11-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2675         * config/sol2.h (SUPPORTS_INIT_PRIORITY): Move up.
2676         (STARTFILE_VTV_SPEC, ENDFILE_VTV_SPEC): Define.
2677         (STARTFILE_SPEC): Use %(startfile_vtv).
2678         (ENDFILE_SPEC): Use %(endfile_vtv).
2679         (SUBTARGET_EXTRA_SPECS): Handle STARTFILE_VTV_SPEC,
2680         ENDFILE_VTV_SPEC.
2682         * gcc.c (LINK_COMMAND_SPEC): Move VTABLE_VERIFICATION_SPEC after %{L*}.
2684 2015-11-25  Bernd Schmidt  <bschmidt@redhat.com>
2686         * ifcvt.c (noce_mem_write_may_trap_or_fault_p,
2687         noce_can_store_speculate): Delete.
2688         (noce_process_if_block): Don't try to handle single MEM stores.
2689         * rtl.h (memory_must_be_modified_in_insn_p): Don't declare.
2690         * alias.c (memory_must_be_modified_in_insn_p): Delete.
2692 2015-11-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2694         PR rtl-optimization/68435
2695         * ifcvt.c (noce_try_cmove_arith): Skip final insn when checking
2696         for conflicts between a, b and the set destinations.
2698 2015-11-25  Richard Biener  <rguenther@suse.de>
2700         PR tree-optimization/68517
2701         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses):
2702         Properly handle zero-sized types.
2704 2015-11-24  Jan Hubicka  <hubicka@ucw.cz>
2706         * ipa-inline-analysis.c: Include gimplify.h
2707         (set_cond_stmt_execution_predicate,
2708         set_switch_stmt_execution_predicate): Be sure to not leak locations
2709         to function body.
2711 2015-11-25  Jakub Jelinek  <jakub@redhat.com>
2713         PR target/67089
2714         * tree-ssa-math-opts.c (uaddsub_overflow_check_p,
2715         match_uaddsub_overflow): New functions.
2716         (pass_optimize_widening_mul::execute): Call match_uaddsub_overflow.
2718 2015-11-25  Richard Biener  <rguenther@suse.de>
2720         PR tree-optimization/68492
2721         * tree-vect-slp.c (vect_build_slp_tree): Consistently build up
2722         op from scalars after operand swapping.
2724 2015-11-25  Richard Biener  <rguenther@suse.de>
2726         PR tree-optimization/68502
2727         * tree-vect-data-refs.c (vect_analyze_group_access_1): Restore
2728         check that the step is a multiple of the type size.
2730 2015-11-24  Michael Collison  <michael.collison@linaro.org>
2732         * config/aarch64/aarch64-simd.md (widen_ssum, widen_usum)
2733         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w<mode>_internal): New patterns
2734         * config/aarch64/iterators.md (Vhalf, VDBLW): New mode attributes.
2736 2015-11-24  Steve Ellcey  <sellcey@imgtec.com>
2738         * frame-header-opt.c (gate): Check for optimize > 0.
2739         (has_inlined_assembly): New function.
2740         (needs_frame_header_p): Remove is_leaf_function check,
2741         add argument type check.
2742         (callees_functions_use_frame_header): Add is_leaf_function
2743         and has_inlined_assembly calls..
2744         (set_callers_may_not_allocate_frame): New function.
2745         (frame_header_opt): Add is_leaf_function call, add
2746         set_callers_may_not_allocate_frame call.
2747         * config/mips/mips.c (mips_compute_frame_info): Add check
2748         to see if callee saved regs can be put in frame header.
2749         (mips_expand_prologue): Add check to see if step1 is zero,
2750         fix cfa restores when using frame header to store regs.
2751         (mips_can_use_return_insn): Check to see if registers are
2752         stored in frame header.
2753         * config/mips/mips.h (machine_function): Add
2754         callers_may_not_allocate_frame and
2755         use_frame_header_for_callee_saved_regs fields.
2757 2015-11-24  Segher Boessenkool  <segher@kernel.crashing.org>
2759         PR rtl-optimization/68520
2760         * shrink-wrap.c (try_shrink_wrapping): Don't push a block to VEC if
2761         its bit was already set in BB_WITH.
2763 2015-11-24  Jan Hubicka  <hubicka@ucw.cz>
2765         * alias.c (get_alias_set): Before checking TYPE_ALIAS_SET_KNOWN_P
2766         double check that type is main variant.
2767         * tree.c (build_variant_type_copy): Clear TYPE_ALIAS_SET when producing
2768         variant.
2769         (verify_type_variant): Verify that variants have no
2770         TYPE_ALIAS_SET_KNOWN_P set
2771         * tree-streamer-out.c (pack_ts_type_common_value_fields): Reorder
2772         streaming so constant fields come first; stream TYPE_ALIAS_SET==0
2773         only for main variants; stream TYPE_ALIAS_SET as a bit.
2774         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Update
2775         accordingly.
2777 2015-11-24  Jan Hubicka  <hubicka@ucw.cz>
2779         * tree.c (make_vector_type): Properly compute canonical type of the
2780         main variant.
2781         (verify_type): Verify that TYPE_CANONICAL of TYPE_MAIN_VARIANT is
2782         a main variant.
2784 2015-11-24  Nathan Sidwell  <nathan@acm.org>
2786         * config/nvptx/nvptx.c (maybe_split_mode): Return new mode or
2787         VOIDmode, don't alter incoming mode.
2788         (nvptx_split_reg_p): Delete.
2789         (write_one_arg, walk_args_for_param, nvptx_declare_function_name,
2790         write_func_decl_from_insn, nvptx_output_call_insn): Adjust
2791         maybe_split_mode calls.
2792         (nvptx_print_operand): Use maybe_split_mode.
2794 2015-11-24  Jan Hubicka  <hubicka@ucw.cz>
2796         * lto-streamer-in.c (lto_read_body_or_constructor): Set TYPE_CANONICAL
2797         only for types where LTO sets them.
2798         * tree.c (build_array_type_1): Do ont set TYPE_CANONICAL for LTO.
2799         (make_vector_type): Likewise.
2800         (gimple_canonical_types_compatible_p): Use canonical_type_used_p.
2801         * tree.h (canonical_type_used_p): New inline.
2802         * alias.c (get_alias_set): Handle structural equality for all
2803         types that pass canonical_type_used_p.
2804         (record_component_aliases): Look through all types with
2805         record_component_aliases for possible pointers; sanity check that
2806         the alias sets match.
2808 2015-11-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
2810         * config/rs6000/rs6000.md (lround<mode>di2): Remove constraints.
2812 2015-11-24  Jan Hubicka  <hubicka@ucw.cz>
2814         * tree.c (free_node): New function.
2815         (type_hash_canon): Use it.
2816         * tree.h (free_node): Declare.
2818 2015-11-24  David Edelsohn  <dje.gcc@gmail.com>
2819             Michael Meissner  <meissner@linux.vnet.ibm.com>
2821         * config/rs6000/rs6000.md (UNSPEC_XSRDPI): New unspec.
2822         (Fv2): New mode attribute to be used when ISA 2.07 instructions
2823         are used on SF values, and ISA 2.06 instructions on DF values.
2824         (add<mode>3_fpr): Use <Fv2> instead of <Fv>.
2825         (sub<mode>3_fpr): Use <Fv2> instead of <Fv>.
2826         (mul<mode>3_fpr): Use <Fv2> instead of <Fv>.
2827         (div<mode>3_fpr): Use <Fv2> instead of <Fv>.
2828         (sqrt<mode>2): Use <Fv2> instead of <Fv>.
2829         (fre<Fs>): Use <Fv2> instead of <Fv>.
2830         (rsqrt<mode>2): Use <Fv2> instead of <Fv>.
2831         (cmp<mode>_fpr): Use <Fv2> instead of <Fv>.
2832         (xsrdpi<mode>): Add support for the lround function.
2833         (lround<mode>di2): Likewise.
2834         (fma<mode>4_fpr): Use <Fv2> instead of <Fv>.
2835         (fms<mode>4_fpr): Use <Fv2> instead of <Fv>.
2836         (nfma<mode>4_fpr): Use <Fv2> instead of <Fv>.
2837         (nfms<mode>4_fpr): Use <Fv2> instead of <Fv>.
2839 2015-11-24  Aditya Kumar  <aditya.k7@samsung.com>
2840             Sebastian Pop  <s.pop@samsung.com>
2842         PR tree-optimization/67984
2843         * graphite-isl-ast-to-gimple.c (is_constant): New.
2844         (get_rename): Call is_constant.
2845         (get_new_name): Same.
2847 2015-11-24  Aditya Kumar  <aditya.k7@samsung.com>
2848             Sebastian Pop  <s.pop@samsung.com>
2850         * graphite-dependences.c: Only include graphite.h.
2851         * graphite-isl-ast-to-gimple.c: Same.
2852         * graphite-optimize-isl.c: Same.
2853         * graphite-poly.c: Same.
2854         * graphite-scop-detection.c: Same.
2855         * graphite-sese-to-poly.c: Same.
2856         * graphite.c: Same.
2857         * graphite-isl-ast-to-gimple.h: Move to graphite.h.
2858         * graphite-poly.h: Same.
2859         * graphite-scop-detection.h: Same.
2860         * graphite.h: New.
2862 2015-11-24  Pierre-Marie de Rodat  <derodat@adacore.com>
2864         * dwarf2out.c (gen_decl_die): Generate DW_TAG_imported_* instead of
2865         DW_TAG_namespace for IMPORTED_DECL declarations.  Call
2866         dwarf2out_imported_module_or_decl_1 for all DWARF versions as this
2867         function already takes care of checking what it can emit.
2869 2015-11-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2871         * doc/invoke.texi (-fpic): Add the AArch64 limit.
2872         (-fPIC): Add AArch64.
2874 2015-11-24  Tom de Vries  <tom@codesourcery.com>
2876         * tree-ssa-loop-im.c (tree_ssa_lim): Make static.
2877         (pass_lim::execute): Allow to run outside pass_tree_loop.
2879 2015-11-24  Wilco Dijkstra  <wdijkstr@arm.com>
2881         * config/aarch64/aarch64.md (add<mode>3):
2882         Block early expansion into 2 add instructions.
2883         (add<mode>3_pluslong): New pattern to combine complex
2884         immediates into 2 additions.
2886 2015-11-24  Segher Boessenkool  <segher@kernel.crashing.org>
2888         PR target/66217
2889         PR target/67677
2890         PR target/68332
2891         * config/rs6000/predicates.md (and_operand): Check that the operand
2892         is a const_int before calling rs6000_is_valid_and_mask.
2894 2015-11-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2896         * config/aarch64/aarch64.md (*condjump): Rename to...
2897         (condjump): ... This.
2898         (*compare_condjump<mode>): New define_insn_and_split.
2899         (*compare_cstore<mode>_insn): Likewise.
2900         (*cstore<mode>_insn): Rename to...
2901         (cstore<mode>_insn): ... This.
2902         * config/aarch64/iterators.md (CMP): Handle ne code.
2903         * config/aarch64/predicates.md (aarch64_imm24): New predicate.
2905 2015-11-24  Mikhail Maltsev  <maltsevm@gmail.com>
2907         PR target/68497
2908         * config/i386/i386.c (output_387_binary_op): Fix assertion for
2909         -fno-checking case.
2911 2015-11-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2913         * tree-ssa-uncprop.c (struct val_ssa_equiv_hash_traits): Remove.
2914         (val_ssa_equiv_hash_traits::remove): Likewise.
2915         (pass_uncprop::execute): Adjust.
2917 2015-11-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2919         * hash-map-traits.h (simple_hashmap_traits ::remove): call
2920         destructors on values that are being removed.
2921         * mem-stats.h (hash_map): Pass type of values to
2922         simple_hashmap_traits.
2923         * tree-sra.c (sra_deinitialize): Remove work around for hash
2924         maps not destructing values.
2925         * genmatch.c (sinfo_hashmap_traits): Adjust.
2926         * tree-ssa-uncprop.c (val_ssa_equiv_hash_traits): Likewise.
2928 2015-11-24  Richard Biener  <rguenther@suse.de>
2929             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2931         PR middle-end/68375
2932         * cfgloop.c (get_loop_body_in_bfs_order): Restructure loop to avoid
2933         bogus assertion.
2935 2015-11-24  Jakub Jelinek  <jakub@redhat.com>
2937         PR target/68483
2938         * tree-vect-generic.c (lower_vec_perm): If VEC_PERM_EXPR
2939         is valid vec_shr pattern, don't lower it even if can_vec_perm_p
2940         returns false.
2941         * optabs.c (shift_amt_for_vec_perm_mask): Return NULL_RTX
2942         whenever first is nelt or above.  Don't mask expected with
2943         2 * nelt - 1.
2945 2015-11-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
2947         PR c/68337
2948         * gimple-fold.c: Include ipa-chkp.h.
2949         (gimple_fold_builtin_memory_op): Don't fold call if we
2950         are going to instrument it and it may copy pointers.
2952 2015-11-24  Bernd Schmidt <bschmidt@redhat.com>
2953             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2955         PR rtl-optimization/68194
2956         PR rtl-optimization/68328
2957         PR rtl-optimization/68185
2958         * ree.c (combine_reaching_defs): Reject copy_needed case if
2959         copies_list is not empty.
2961 2015-11-24  Richard Biener  <rguenther@suse.de>
2963         PR middle-end/68221
2964         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Properly
2965         use mem_ref_offset.
2967 2015-11-24  Segher Boessenkool  <segher@kernel.crashing.org>
2969         PR rtl-optimization/68381
2970         * combine.c (is_parallel_of_n_reg_sets): Return false if the pattern
2971         is poisoned.
2973 2015-11-23  Nick Clifton  <nickc@redhat.com>
2974             Jeff Law  <law@redhat.com>
2976         * ree.c (add_removable_extension): Avoid mis-optimizing cases where
2977         the source/dest of the target extension require a different number of
2978         hard registers.
2979         (combine_set_extension): Remove #if 0 code.
2981 2015-11-23  Aditya Kumar  <aditya.k7@samsung.com>
2982             Sebastian Pop  <s.pop@samsung.com>
2984         PR tree-optimization/68314
2985         * graphite-optimize-isl.c (optimize_isl): Do not call
2986         isl_union_map_is_equal.
2987         * graphite-poly.c (new_scop): Remove original_schedule.
2988         (free_scop): Same.
2989         * graphite-poly.h (struct scop): Same.
2990         * graphite-sese-to-poly.c (build_pbb_minimal_scattering_polyhedrons):
2991         Remove.
2992         (build_pbb_scattering_polyhedrons): Add back.
2993         (build_scop_minimal_scattering): Remove.
2994         (build_scop_scattering): Add back.
2995         (build_scop_original_schedule): Remove.
2996         (build_poly_scop): Revert to only call build_scop_scattering.
2998 2015-11-23  Aditya Kumar  <aditya.k7@samsung.com>
2999             Sebastian Pop  <s.pop@samsung.com>
3001         PR tree-optimization/68493
3002         * graphite-isl-ast-to-gimple.c (translate_pending_phi_nodes): Add
3003         missing early return when codegen_error is set.
3005 2015-11-23  Aditya Kumar  <aditya.k7@samsung.com>
3006             Sebastian Pop  <s.pop@samsung.com>
3008         PR tree-optimization/68279
3009         * graphite-poly.c (new_scop): Remove poly_scop_p.
3010         * graphite-poly.h (struct scop): Same.
3011         (build_poly_scop): Declare.
3012         * graphite-sese-to-poly.c: Do not include graphite-sese-to-poly.h.
3013         (cleanup_loop_iter_dom): New.
3014         (build_loop_iteration_domains): Early return when scev analysis fails.
3015         (create_pw_aff_from_tree): Same.
3016         (add_condition_to_pbb): Same.
3017         (add_conditions_to_domain): Same.
3018         (add_conditions_to_constraints): Same.
3019         (build_scop_iteration_domain): Same.
3020         (build_poly_scop): Same.  Do not initialize poly_scop_p.
3021         * graphite-sese-to-poly.h: Remove.
3022         * graphite.c: Do not include graphite-sese-to-poly.h.
3023         (graphite_transform_loops): Stop before code generation when
3024         build_poly_scop fails.
3025         * sese.c (scalar_evolution_in_region): Add fixme note about scev
3026         analysis.
3028 2015-11-23  Aditya Kumar  <aditya.k7@samsung.com>
3029             Sebastian Pop  <s.pop@samsung.com>
3031         * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
3032         Remove call to update_ssa.
3033         * sese.c (sese_insert_phis_for_liveouts): Same.
3035 2015-11-23  Marek Polacek  <polacek@redhat.com>
3037         PR tree-optimization/68455
3038         * tree-vrp.c (extract_range_from_binary_expr_1): Don't call
3039         extract_range_from_multiplicative_op_1 on symbolic ranges.
3041 2015-11-23  Richard Henderson  <rth@redhat.com>
3043         * optabs.def (uaddv4_optab, usubv4_optab): New.
3044         * internal-fn.c (expand_addsub_overflow): Use them.
3045         * doc/md.texi (Standard Names): Add uaddv<m>4, usubv<m>4.
3047         * config/i386/i386.c (ix86_cc_mode): Extend add overflow check
3048         to reversed operands.
3049         * config/i386/i386.md (uaddv<SWI>4, usubv<SWI>4): New.
3050         (*add<SWI>3_cconly_overflow_1): Rename *add<SWI>3_cconly_overflow.
3051         (*add<SWI>3_cc_overflow_1): Rename *add<SWI>3_cc_overflow.
3052         (*addsi3_zext_cc_overflow_1): Rename *add3_zext_cc_overflow.
3053         (*add<SWI>3_cconly_overflow_2): New.
3054         (*add<SWI>3_cc_overflow_2): New.
3055         (*addsi3_zext_cc_overflow_2): New.
3057 2015-11-23  Richard Biener  <rguenther@suse.de>
3059         PR tree-optimization/68465
3060         * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children):
3061         Also record equalities from multiple predecessor blocks if
3062         only one non-backedge exists.
3064 2015-11-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3066         PR target/68363
3067         * config/aarch64/aarch64.c (aarch64_madd_needs_nop): Reject arguments
3068         that are not INSN_P.
3070 2015-11-23  Bilyan Borisov  <bilyan.borisov@arm.com>
3072         * config/aarch64/aarch64-builtins.c
3073         (aarch64_gimple_fold_builtin): Fold FMULX.
3075 2015-11-23  David Edelsohn  <dje.gcc@gmail.com>
3077         * system.h: Don't poison calloc and strdup if USES_ISL is defined.
3078         * graphite-dependences.c: Define USES_ISL.  Include ISL header files
3079         after GCC header files and before graphite header files.
3080         * graphite-dependences.c: Same.
3081         * graphite-isl-ast-to-gimple.c: Same.
3082         * graphite-optimize-isl.c: Same.
3083         * graphite-poly.c: Same.
3084         * graphite-scop-detection.c: Same.
3085         * graphite-sese-to-poly.c: Same.
3086         * graphite.c: Same.
3088 2015-11-23  Richard Biener  <rguenth@gcc.gnu.org>
3089             Jiong Wang  <jiong.wang@arm.com>
3091         PR tree-optimization/68317
3092         PR tree-optimization/68326
3093         * tree-vrp.c (adjust_range_with_scev): Call drop_tree_overflow if the
3094         final min and max are not infinity.
3096 2015-11-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
3097             Richard Biener  <rguenther@suse.de>
3099         PR tree-optimization/68327
3100         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
3101         compute vectype for non-relevant mask producers.
3102         * tree-vect-stmts.c (vectorizable_comparison): Check stmt
3103         relevance earlier.
3105 2015-11-23  Tom de Vries  <tom@codesourcery.com>
3107         PR tree-optimization/68460
3108         * tree-parloops.c (gather_scalar_reductions): Also call
3109         free_stmt_vec_info_vec if simple_loop_info == NULL.
3111 2015-11-23  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
3113         * opts.c (finish_options): Allow -fsanitize-recover=address for
3114         userspace sanitization.
3115         * asan.c (asan_expand_check_ifn): Redefine recover_p.
3116         * doc/invoke.texi (fsanitize-recover): Update documentation.
3118 2015-11-23  Tom de Vries  <tom@codesourcery.com>
3120         * omp-low.c (build_receiver_ref): Mark by_ref mem_ref as non-trapping.
3122 2015-11-23  Richard Biener  <rguenther@suse.de>
3124         PR tree-optimization/68445
3125         * tree-vect-slp.c (vect_create_mask_and_perm): Properly use
3126         two different strides.
3128 2015-11-23  Robin Dapp  <rdapp@linux.vnet.ibm.com>
3130         * config/s390/s390.h: Add new symref flags, _NOTALIGN2 etc.
3131         * config/s390/s390.c (s390_check_symref_alignment): Use new
3132         symref flags, early abort on wrong alignment
3133         (s390_secondary_reload): Use new symref flags.
3134         (s390_encode_section_info): Likewise.
3135         * config/s390/predicates.md: Likewise.
3137 2015-11-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
3139         PR target/68390
3140         * config/arm/arm.c (arm_function_ok_for_sibcall): Get function type
3141         for indirect function call.
3143 2015-11-22  Bilyan Borisov  <bilyan.borisov@arm.com>
3145         * config/aarch64/aarch64-simd.md
3146         (*aarch64_mulx_elt_<vswap_width_name><mode>, VDQSF): New.
3147         (*aarch64_mulx_elt<mode>, VDQF): Likewise.
3148         (*aarch64_mulx_elt_to_64v2df): Likewise.
3149         (*aarch64_vgetfmulx<mode>, VDQF_DF): Likewise.
3150         * config/aarch64/arm_neon.h (vmulx_lane_f32): New.
3151         (vmulx_lane_f64): Likewise.
3152         (vmulxq_lane_f32): Refactored & moved.
3153         (vmulxq_lane_f64): Likewise.
3154         (vmulx_laneq_f32): New.
3155         (vmulx_laneq_f64): Likewise.
3156         (vmulxq_laneq_f32): Likewise.
3157         (vmulxq_laneq_f64): Likewise.
3158         (vmulxs_lane_f32): Likewise.
3159         (vmulxs_laneq_f32): Likewise.
3160         (vmulxd_lane_f64): Likewise.
3161         (vmulxd_laneq_f64): Likewise.
3163 2015-11-21  Jan Hubicka  <hubicka@ucw.cz>
3165         * tree.c (build_pointer_type_for_mode,build_reference_type_for_mode):
3166         In LTO we do not compute TYPE_CANONICAL of pointers.
3167         (gimple_canonical_types_compatible_p): Improve coments; sanity check
3168         that pointers do not have canonical type that would make us believe
3169         they are different.
3170         * alias.c (get_alias_set): Do structural type equality on pointers;
3171         enable pointer path for LTO; also glob pointer to vector with pointer
3172         to vector element; glob pointers and references for LTO; do more strict
3173         sanity checking about build_pointer_type returning the canonical type
3174         which is also the main variant.
3175         (record_component_aliases): When component type is pointer and we
3176         do LTO; record void_type_node alias set.
3178 2015-11-21  Nathan Sidwell  <nathan@acm.org>
3180         * config/nvptx/nvptx.md (clz<mode>2): Use operand 1 for type.
3182         * config/nvptx/nvptx.c (write_function_decl_and_comment): Print
3183         leading blank line.
3184         (write_func_decl_from_insn): Likewise.
3185         (init_output_initializer, nvptx_assemble_undefined_decl): Likewise.
3186         (nvptx_file_end): Likewise.
3187         (nvptx_function_end): Undent output.
3188         (nvptx_expand_call): Fix formatting.
3189         (nvptx_output_call_insn): Indent output.
3190         * config/nvptx/nvptx.h (ASM_OUTPUT_ALIGNED_DECL_COMMON,
3191         ASM__OUTPUT_ALIGNED_DECL_LOCAL): Print leading blank line.
3193 2015-11-21  Jakub Jelinek  <jakub@redhat.com>
3195         PR debug/66432
3196         * tree-inline.c (copy_debug_stmt): If
3197         gimple_debug_source_bind_get_value is DECL_ORIGIN of a PARM_DECL
3198         in decl_debug_args, don't call remap_gimple_op_r on it.
3200 2015-11-07  Jan Hubicka  <hubicka@ucw.cz>
3202         * ipa-icf.c (sem_item::add_type): Do not look for TYPE_CANONICAL;
3203         do not check AGGREGATE_TYPE_P when adding TYPE_MODE;
3204         Check that all record types are complete.
3205         * ipa-icf-gimple.c (func_checker::compatible_types_p): Do not
3206         compare alias sets for types w/o alias sets.
3208 2015-11-20  Eric Botcazou  <ebotcazou@adacore.com>
3210         * config/sparc/sparc.md (umulxhi_vis): Move around.
3211         (*umulxhi_sp64): Likewise.
3212         (umulxhi_v8plus): Likewise.
3213         (xmulx_vis): Likewise.
3214         (*xmulx_sp64): Likewise.
3215         (xmulx_v8plus): Likewise.
3216         (xmulxhi_vis): Likewise.
3217         (*xmulxhi_sp64): Likewise.
3218         (xmulxhi_v8plus): Likewise.
3220 2015-11-20  David Malcolm  <dmalcolm@redhat.com>
3222         PR 62314
3223         * diagnostic-show-locus.c (colorizer::set_fixit_hint): New.
3224         (class layout): Update comment
3225         (layout::print_any_fixits): New method.
3226         (layout::move_to_column): New method.
3227         (diagnostic_show_locus): Add call to layout.print_any_fixits.
3229 2015-11-20  Jakub Jelinek  <jakub@redhat.com>
3231         PR middle-end/68221
3232         * omp-low.c (lower_rec_input_clauses): If C/C++ array reduction
3233         has non-zero bias, subtract it in integer type instead of
3234         pointer plus of negated bias.
3236         PR middle-end/68339
3237         * omp-low.c (expand_simd_clones): Call node->get_body () before
3238         allocating stuff in GC.
3240 2015-11-20  Jim Wilson  <jim.wilson@linaro.org>
3242         * tree-vect-data-refs.c (compare_tree): Call STRIP_NOPS.
3244 2015-11-20  Evandro Menezes  <e.menezes@samsung.com>
3246         * config/aarch64/aarch64.md (predicated): Copy attribute from
3247         "arm.md".
3248         * config/arm/arm.md (predicated): Added description.
3250 2015-11-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3252         * config/arm/arm.c (arm_option_override): Require TARGET_32BIT
3253         for unaligned_access.
3254         * config/arm/arm.md (unaligned_loadsi): Remove redundant TARGET_32BIT
3255         from matching condition.
3256         (unaligned_loadhis): Likewise.
3257         (unaligned_loadhiu): Likewise.
3258         (unaligned_storesi): Likewise.
3259         (unaligned_storehi): Likewise.
3261 2015-11-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3263         PR target/68149
3264         * config/arm/arm.md (unaligned_loaddi): Delete.
3265         (unaligned_storedi): Likewise.
3266         * config/arm/arm.c (gen_movmem_ldrd_strd): Don't generate
3267         unaligned DImode memory ops.  Instead perform two back-to-back
3268         unaligned SImode ops.
3270 2015-11-20  Nathan Sidwell  <nathan@codesourcery.com>
3271             James Norris  <jnorris@codesourcery.com>
3273         * config/nvptx/nvptx.c (nvptx_use_anchors_for_symbol_p): New.
3274         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Override.
3276 2015-11-20  Alan Hayward <alan.hayward@arm.com>
3278         PR tree-optimization/68413
3279         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Cache
3280         evolution base
3281         (vectorizable_reduction): Use cached base
3283 2015-11-20  Tom de Vries  <tom@codesourcery.com>
3285         * tree-parloops.c (build_new_reduction): Fix trailing whitespace in
3286         dump-file string.
3287         (try_create_reduction_list): Same.  Fix typo in dump-file string.
3289 2015-11-20  Eric Botcazou  <ebotcazou@adacore.com>
3291         * doc/md.texi (Standard Names): Move entry for addptr3 around,
3292         add entries for addv4, subv4, mulv4, umulv4 and negv3, fixes
3293         glitch in entries for cbranch4 and jump.
3295 2015-11-20  Tom de Vries  <tom@codesourcery.com>
3297         PR tree-optimization/68373
3298         * tree-scalar-evolution.c (final_value_replacement_loop): Factor out
3299         of ...
3300         (scev_const_prop): ... here.
3301         * tree-scalar-evolution.h (final_value_replacement_loop): Declare.
3302         * tree-parloops.c (try_create_reduction_list): Call
3303         final_value_replacement_loop.
3305 2015-11-20  Bin Cheng  <bin.cheng@arm.com>
3307         PR tree-optimization/52272
3308         * tree-ssa-loop-ivopts.c (struct iv_common_cand): New struct.
3309         (struct iv_common_cand_hasher): New struct.
3310         (iv_common_cand_hasher::hash): New function.
3311         (iv_common_cand_hasher::equal): New function.
3312         (struct ivopts_data): New fields, iv_common_cand_tab and
3313         iv_common_cands.
3314         (tree_ssa_iv_optimize_init): Initialize above fields.
3315         (record_common_cand, common_cand_cmp): New functions.
3316         (add_iv_candidate_derived_from_uses): New function.
3317         (add_iv_candidate_for_use): Record iv_common_cands derived from
3318         iv use in hash table, instead of adding candidates directly.
3319         (add_iv_candidate_for_uses): Call add_iv_candidate_derived_from_uses.
3320         (record_important_candidates): Add important candidates to iv uses'
3321         related_cands.  Always keep related_cands for future use.
3322         (try_add_cand_for): Use iv uses' related_cands.
3323         (free_loop_data, tree_ssa_iv_optimize_finalize): Release new fields
3324         in struct ivopts_data, iv_common_cand_tab and iv_common_cands.
3326 2015-11-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3328         * config/s390/s390.md ("bswaphi2"): New pattern.
3330 2015-11-20  Dominik Vogt  <vogt@linux.vnet.ibm.com>
3332         * config/s390/s390.md (GPR1_REGNUM): New constant.
3333         ("*trunc<BFP:mode><DFP_ALL:mode>2")
3334         ("*trunc<DFP_ALL:mode><BFP:mode>2")
3335         ("trunc<BFP:mode><DFP_ALL:mode>2")
3336         ("trunc<DFP_ALL:mode><BFP:mode>2")
3337         ("*extend<BFP:mode><DFP_ALL:mode>2")
3338         ("*extend<DFP_ALL:mode><BFP:mode>2")
3339         ("extend<BFP:mode><DFP_ALL:mode>2")
3340         ("extend<DFP_ALL:mode><BFP:mode>2"): Clobber r1.
3342 2015-11-19  Aditya Kumar  <aditya.k7@samsung.com>
3343             Sebastian Pop  <s.pop@samsung.com>
3345         PR tree-optimization/68428
3346         * graphite-scop-detection.c (harmful_stmt_in_region): Do not iterate
3347         over basic blocks outside the scop.
3349 2015-11-19  Aditya Kumar  <aditya.k7@samsung.com>
3350             Sebastian Pop  <s.pop@samsung.com>
3352         PR tree-optimization/68341
3353         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Remove
3354         gcc_unreachable and safely fail codegen.
3355         (copy_loop_close_phi_args): Do not insert merge phis in a basic
3356         block with loop phi nodes.
3357         (edge_for_new_close_phis): New.
3358         (copy_bb_and_scalar_dependences): Call edge_for_new_close_phis.
3360 2015-11-19  Nathan Sidwell  <nathan@acm.org>
3362         * config/nvptx/nvptx.h (SUPPORTS_WEAK): Define.
3363         * config/nvptx/nvptx.c (nvptx_write_function_decl): Support DECL_WEAK.
3364         (nvptx_declare_objec_name): Likewise.
3366 2015-11-19  Aditya Kumar  <aditya.k7@samsung.com>
3368         * graphite-isl-ast-to-gimple.c (get_true_edge_from_guard_bb): Move...
3369         (get_false_edge_from_guard_bb): Move...
3370         * sese.c (get_false_edge_from_guard_bb)
3371         (get_true_edge_from_guard_bb): ... here.
3373 2015-11-19  David Edelsohn  <dje.gcc@gmail.com>
3375         Revert
3376         2015-11-18  Alan Modra  <amodra@gmail.com>
3378         * config/rs6000/rs6000.c (use_toc_relative_ref): Ignore
3379         type-limits warning.
3382 2015-11-19  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
3384         * tree.h (desired_pro_or_demotion_p): New function.
3385         * tree-vrp.c (simplify_cond_using_ranges): Call it.
3387 2015-11-19  Michael Matz  <matz@suse.de>
3389         PR rtl-optimization/68392
3390         * fwprop.c (update_uses): Use flag_checking instead of
3391         gcc_checking_assert.
3393 2015-11-19  David Malcolm  <dmalcolm@redhat.com>
3395         * doc/gty.texi (Support for inheritance): Fix missing
3396         parentheses in example.
3398 2015-11-19  Marek Polacek  <polacek@redhat.com>
3400         PR tree-optimization/68431
3401         * tree-vrp.c (extract_range_from_binary_expr_1): Fix condition.
3403 2015-11-19  Nathan Sidwell  <nathan@acm.org>
3405         * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>_1,
3406         atomic_exchange<mode>): Input values can be immediates.
3408 2015-11-19  Eric Botcazou  <ebotcazou@adacore.com>
3410         PR lto/61313
3411         * configure.ac (PLUGIN_LD_SUFFIX): Do not touch the value specified
3412         by the user.
3413         * configure: Regenerate.
3415 2015-11-19  Eric Botcazou  <ebotcazou@adacore.com>
3417         PR target/68408
3418         * config/sparc/sp-elf.h (CTORS_SECTION_ASM_OP): Undefine.
3419         (DTORS_SECTION_ASM_OP): Likewise.
3421 2015-11-19  Jakub Jelinek  <jakub@redhat.com>
3423         PR rtl-optimization/68376
3424         * ifcvt.c (noce_try_abs): Disable one_cmpl optimization if
3425         encountering x <= 0 ? ~x : x or x > 0 ? ~x : x.
3427 2015-11-19  Richard Biener  <rguenther@suse.de>
3429         PR middle-end/68117
3430         * tree-ssa.c (delete_tree_ssa): Revert removal of call to
3431         redirect_edge_var_map_destroy.
3433 2015-11-19  Jakub Jelinek  <jakub@redhat.com>
3435         PR target/67770
3436         * config/i386/i386.md (simple_return): Disable if
3437         ix86_static_chain_on_stack is true.
3439 2015-11-19  Richard Sandiford  <richard.sandiford@arm.com>
3441         PR bootstrap/68393
3442         * internal-fn.c (expand_direct_optab_fn): Handle SUBREG_PROMOTED_VAR_P
3443         destinations.
3445 2015-11-18  Jeff Law  <law@redhat.com>
3447         PR tree-optimization/68198
3448         * tree-ssa-threadupdate.c (valid_jump_thread_path): Distinguish
3449         between threading a multi-way branch and a thread path that contains
3450         a multi-way branch.  Disallow the case where a path contains a
3451         multi-way branch and does not thread a multi-way branch.
3452         (thread_through_all_blocks): Update comment.
3454 2015-11-18  Joseph Myers  <joseph@codesourcery.com>
3456         PR c/65083
3457         * ginclude/stdatomic.h (atomic_thread_fence, atomic_signal_fence)
3458         (atomic_flag_test_and_set, atomic_flag_test_and_set_explicit)
3459         (atomic_flag_clear, atomic_flag_clear_explicit): Declare as
3460         functions before defining as macros.
3462 2015-11-18  Nathan Sidwell  <nathan@codesourcery.com>
3464         * config/nvptx/nvptx.c (nvptx_process_pars): Fix whitespace.
3465         (nvptx_record_offload_symbol): Remove code compensating for lack
3466         of default dimension handling.
3467         (nvptx_goacc_validate_dims): Remove incorrect ARG_UNUSED markers.
3469 2015-11-18  Aditya Kumar  <aditya.k7@samsung.com>
3471         * graphite-isl-ast-to-gimple.c (copy_loop_phi_args): Change the return
3472         type to bool for early exit.
3473         (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Early return
3474         in case of error.
3475         (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
3476         (add_phi_arg_for_new_expr): Enable codegen for if-block where one
3477         predecessor dominates the other.
3478         (translate_isl_ast_to_gimple::copy_cond_phi_args): Fix. When the
3479         element is not found it returns -1.
3480         (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Bail
3481         out early when codegen fails.
3482         (graphite_regenerate_ast_isl): Remove codegen region when pending
3483         phis could not be generated.
3485 2015-11-18  Aditya Kumar  <aditya.k7@samsung.com>
3487         * graphite-isl-ast-to-gimple.c (struct ast_build_info): Remove
3488         semicolon.
3489         (class translate_isl_ast_to_gimple): Indentation.
3490         (translate_pending_phi_nodes): Comment.
3491         (add_parameters_to_ivs_params): Moved from sese.c inside class
3492         translate_isl_ast_to_gimple.
3493         (get_max_schedule_dimensions): Same.
3494         (generate_isl_context): Same.
3495         (extend_schedule): Same.
3496         (generate_isl_schedule): Same.
3497         (set_options): Same.
3498         (scop_to_isl_ast): Same.
3499         (is_valid_rename): Same.
3500         (get_rename): Same.
3501         (get_rename_from_scev): Same.
3502         (get_def_bb_for_const): Same.
3503         (get_new_name): Same.
3504         (collect_all_ssa_names): Same.
3505         (copy_loop_phi_args): Same.
3506         (copy_loop_phi_nodes): Same.
3507         (copy_loop_close_phi_args): Same.
3508         (copy_loop_close_phi_nodes): Same.
3509         (copy_cond_phi_args): Same.
3510         (copy_cond_phi_nodes): Same.
3511         (graphite_copy_stmts_from_block): Same.
3512         (copy_bb_and_scalar_dependences): Same.
3513         (add_phi_arg_for_new_expr): Same.
3514         (rename_uses): Same.
3515         (set_rename): Same.
3516         (set_rename_for_each_def): Same.
3517         (gsi_insert_earliest): Same.
3518         (rename_all_uses): Same.
3519         (codegen_error_p): Same.
3520         (print_isl_ast_node): Same.
3521         (translate_isl_ast_for_loop): Call function codegen_error_p.
3522         (translate_isl_ast_to_gimple::translate_isl_ast): Same.
3523         (translate_isl_ast_node_user): Make nb_loops const and release
3524         iv_map before exit.
3525         (get_true_edge_from_guard_bb): Move all free-functions early.
3526         (get_false_edge_from_guard_bb): Same.
3527         (bb_contains_loop_close_phi_nodes): Same.
3528         (bb_contains_loop_phi_nodes): Same.
3529         (is_loop_closed_ssa_use):  Same.
3530         (number_of_phi_nodes): Same.
3531         (phi_uses_name): Same.
3532         (later_of_the_two): Same.
3533         (substitute_ssa_name):
3534         (get_edges): Same.
3535         (get_loc): Same.
3536         (get_loop_init_value): Same.
3537         (find_init_value): Same.
3538         (find_init_value_close_phi): Same.
3539         (ast_build_before_for): Same.
3540         (graphite_regenerate_ast_isl): Formatting changes.
3541         * graphite-scop-detection.c (build_cross_bb_scalars_use): Same.
3542         * sese.c (get_rename): Move to graphite-isl-ast-to-gimple.c
3543         (set_rename): Same.
3544         (gsi_insert_earliest): Same.
3545         (collect_all_ssa_names): Same.
3546         (rename_all_uses): Same.
3547         (rename_uses): Same.
3548         (get_def_bb_for_const): Same.
3549         (copy_loop_phi_nodes): Same.
3550         (copy_loop_close_phi_args): Same.
3551         (copy_loop_close_phi_nodes): Same.
3552         (copy_cond_phi_args): Same.
3553         (copy_cond_phi_nodes): Same.
3554         (set_rename_for_each_def): Same.
3555         (graphite_copy_stmts_from_block): Same.
3556         (copy_bb_and_scalar_dependences): Same.
3557         (if_region_set_false_region): Same.
3558         (scev_analyzable_p): Same.
3559         * sese.h: Delete extern functions moved to graphite-isl-ast-to-gimple.c.
3561 2015-11-18  Andreas Tobler  <andreast@gcc.gnu.org>
3563         * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Bring in the
3564         commit from r125920 for FreeBSD.
3566 2015-11-18  Jason Merrill  <jason@redhat.com>
3568         * ggc-page.c (ggc_globals): Change finalizers and vec_finalizers
3569         to be vecs of vecs.
3570         (add_finalizer): Split out from ggc_internal_alloc.
3571         (ggc_handle_finalizers): Run finalizers for the current depth.
3572         (init_ggc, ggc_pch_read): Reserve space for finalizers.
3574 2015-11-18  Sandra Loosemore  <sandra@codesourcery.com>
3576         PR target/68410
3577         * config/nios2/nios2.c (cdx_and_immed): Remove duplicate tests
3578         from || expression.
3580 2015-11-18  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
3582         * config/avr/avr-mcus.def: Add new avr4 devices atmega48pb and
3583         atmega88pb. Add new avr5 devices ata5791, ata8210, ata8510, atmega168pb
3584         and atmega328pb.
3585         * doc/avr-mmcu.texi: Regenerate.
3587 2015-11-18  Nathan Sidwell  <nathan@codesourcery.com>
3589         * config/nvptx/nvptx.c (bb_pair_t, bb_pair_vec_t): New types.
3590         (pseudo_node_t, struct bracket, bracket_vec_t): New types.
3591         (struct bb_sese): New struct.
3592         (bb_sese::~bb_sese, bb_sese::append, bb_sese::remove): New.
3593         (BB_GET_SESE, BB_SET_SESE): Define.
3594         (nvptx_sese_number, nvptx_sese_pseudo, nvptx_sese_color): New.
3595         (nvptx_find_sese): New.
3596         (nvptx_neuter_pars): Find SESE regions when optimizing.
3598 2015-11-18  Alan Modra  <amodra@gmail.com>
3600         * config/rs6000/rs6000.c (use_toc_relative_ref): Ignore
3601         type-limits warning.
3603 2015-11-18  Richard Sandiford  <richard.sandiford@arm.com>
3605         PR bootstrap/68406
3606         * hash-set.h (hash_set::traverse): Expand Key typedef.
3608 2015-11-18  Martin Liska  <mliska@suse.cz>
3610         * config/arm/arm.c (arm_valid_target_attribute_p): Finalize
3611         options struct.
3613 2015-11-18  Nathan Sidwell  <nathan@codesourcery.com>
3615         * config/nvptx/nvptx.c (global_lock_var): New.
3616         (nvptx_global_lock_addr): New.
3617         (nvptx_lockless_update): Recomment and adjust for clarity.
3618         (nvptx_lockfull_update): New.
3619         (nvptx_reduction_update): New.
3620         (nvptx_goacc_reduction_fini): Call it.
3622 2015-11-18  Bernd Schmidt  <bschmidt@redhat.com>
3624         * regrename.h (struct du_head): Add target_data_1 and target_data_2
3625         fields.
3626         * regrename.c (create_new_chain): Clear entire struct after allocating.
3628         * config/i386/i386.opt (mmitigate-rop): New option.
3629         * doc/invoke.texi (mmitigate-rop): Document.
3630         * config/i386/i386.c: Include "regrename.h".
3631         (ix86_rop_should_change_byte_p, reg_encoded_number,
3632         ix86_get_modrm_for_rop, set_rop_modrm_reg_bits, ix86_mitigate_rop): New
3633         static functions.
3634         (ix86_reorg): Call ix86_mitigate_rop if -fmitigate-rop.
3635         * config/i386/i386.md (attr "modrm_class"): New.
3636         (cmp<mode>_ccno_1, mov<mode>_xor, movstrict<mode>_xor,
3637         x86_mov<mode>cc_0_m1. x86_mov<mode>cc_0_m1_se)
3638         (x86_mov<mode>cc_0_m1_neg): Override modrm_class attribute.
3640 2015-11-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
3642         PR target/68405
3643         * config/i386/i386.c (ix86_expand_mask_vec_cmp): Add missing break.
3645 2015-11-18  Jakub Jelinek  <jakub@redhat.com>
3647         PR tree-optimization/68157
3648         * tree-ssa-reassoc.c (attempt_builtin_powi): Set uid of
3649         pow_stmt or mul_stmt from stmt's uid.
3650         (reassociate_bb): Set uid of mul_stmt from stmt's uid.
3652 2015-11-18  Martin Liska  <mliska@suse.cz>
3654         * haifa-sched.c (haifa_finish_h_i_d): Release reg_set_list.
3656 2015-11-18  Martin Liska  <mliska@suse.cz>
3658         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
3659         Fix GNU coding style.
3660         (find_def_preds): Use auto_vec.
3661         (destroy_predicate_vecs): Change signature of the function.
3662         (prune_uninit_phi_opnds_in_unrealizable_paths): Use the
3663         new signature.
3664         (simplify_preds_4): Use destroy_predicate_vecs instread of
3665         just releasing preds vector.
3666         (normalize_preds): Likewise.
3667         (is_use_properly_guarded): Use new signature of
3668         destroy_predicate_vecs.
3669         (find_uninit_use): Likewise.
3671 2015-11-18  Richard Biener  <rguenther@suse.de>
3673         PR tree-optimization/67790
3674         * tree-vect-loop.c (vect_is_simple_reduction_1): Remove
3675         IL rewrite for MINUS_EXPR reductions, rename back to ...
3676         (vect_is_simple_reduction): ... this, removing the wrapper.
3677         (vect_force_simple_reduction): Adjust.
3678         (vectorizable_reduction): Adjust reduc_index for MINUS_EXPR
3679         reductions and make use if reduc_index in all places.  For
3680         the final reduction of MINUS_EXPR use PLUS_EXPR.
3682 2015-11-18  Alan Modra  <amodra@gmail.com>
3684         * configure.ac (POWERPC64_TOC_POINTER_ALIGNMENT): Pass -z norelro
3685         to ld.
3686         * configure: Regenerate.
3688 2015-11-17  Tom de Vries  <tom@codesourcery.com>
3690         * tree-ssa-loop.c (pass_tree_loop_init::execute): Improve comments.
3692 2015-11-17  Tom de Vries  <tom@codesourcery.com>
3694         * tree-scalar-evolution.c (scev_const_prop): Dump details if replacing
3695         uses of ssa_name with constant.
3697 2015-11-17  Tom de Vries  <tom@codesourcery.com>
3699         * tree-ssa-ccp.c (do_ssa_ccp): Clear LOOP_CLOSED_SSA in loops state if
3700         something changed.
3702 2015-11-17  Tom de Vries  <tom@codesourcery.com>
3704         * cfgloop.h (struct loop): Add in_oacc_kernels_region field.
3705         * omp-low.c (mark_loops_in_oacc_kernels_region): New function.
3706         (expand_omp_target): Call mark_loops_in_oacc_kernels_region.
3708 2015-11-17  Bernd Schmidt  <bschmidt@redhat.com>
3710         * regrename.c (regrename_find_superclass): New function, code moved
3711         from ...
3712         (rename_chains): ... here.  Call it.
3713         * regrename.h (regrename_find_superclass): Declare.
3715         * regrename.c (record_out_operands): Terminate earlyclobbered
3716         operands here.
3718         PR target/66785
3719         * regrename.c (record_operand_use): Keep track of failed operands
3720         and stop appending if we see any.
3721         * regrename.h (struct operand_rr_info): Add a failed field and shrink
3722         n_chains to short.
3724 2015-11-17  Sandra Loosemore  <sandra@codesourcery.com>
3726         PR 48568
3727         * doc/extend.texi (Common Function Attributes) [visibility]:
3728         Add cross-references to matching variable and type attributes.
3729         (Common Variable Attributes) [visibility]: Add missing entry.
3731 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
3733         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function): Remove
3734         entries that map directly to optabs.
3736 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
3738         * config/i386/i386.c (ix86_builtin_vectorized_function): Remove
3739         entries that map directly to optabs.
3741 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
3743         * internal-fn.h (direct_internal_fn_info): Add vectorizable flag.
3744         * internal-fn.c (direct_internal_fn_array): Update accordingly.
3745         * tree-vectorizer.h (vectorizable_function): Delete.
3746         * tree-vect-stmts.c: Include internal-fn.h.
3747         (vectorizable_internal_function): New function.
3748         (vectorizable_function): Inline into...
3749         (vectorizable_call): ...here.  Explicitly reject calls that read
3750         from or write to memory.  Try using an internal function before
3751         falling back on the old vectorizable_function behavior.
3753 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
3755         * target.def (builtin_vectorized_function): Take a combined_fn (in
3756         the form of an unsigned int) rather than a function decl.
3757         (builtin_md_vectorized_function): New.
3758         * targhooks.h (default_builtin_vectorized_function): Replace the
3759         fndecl argument with an unsigned int.
3760         (default_builtin_md_vectorized_function): Declare.
3761         * targhooks.c (default_builtin_vectorized_function): Replace the
3762         fndecl argument with an unsigned int.
3763         (default_builtin_md_vectorized_function): New function.
3764         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_MD_VECTORIZED_FUNCTION):
3765         New hook.
3766         * doc/tm.texi: Regenerate.
3767         * tree-vect-stmts.c (vectorizable_function): Update call to
3768         builtin_vectorized_function, also passing internal functions.
3769         Call builtin_md_vectorized_function for target-specific builtins.
3770         * config/aarch64/aarch64-protos.h
3771         (aarch64_builtin_vectorized_function): Replace fndecl argument
3772         with an unsigned int.
3773         * config/aarch64/aarch64-builtins.c: Include case-cfn-macros.h.
3774         (aarch64_builtin_vectorized_function): Update after above changes.
3775         Use CASE_CFN_*.
3776         * config/arm/arm-protos.h (arm_builtin_vectorized_function): Replace
3777         fndecl argument with an unsigned int.
3778         * config/arm/arm-builtins.c: Include case-cfn-macros.h
3779         (arm_builtin_vectorized_function): Update after above changes.
3780         Use CASE_CFN_*.
3781         * config/i386/i386.c: Include case-cfn-macros.h
3782         (ix86_veclib_handler): Take a combined_fn rather than a
3783         built_in_function.
3784         (ix86_veclibabi_svml, ix86_veclibabi_acml): Likewise.  Use
3785         mathfn_built_in rather than calling builtin_decl_implicit directly.
3786         (ix86_builtin_vectorized_function) Update after above changes.
3787         Use CASE_CFN_*.
3788         * config/rs6000/rs6000.c: Include case-cfn-macros.h
3789         (rs6000_builtin_vectorized_libmass): Replace fndecl argument
3790         with a combined_fn.  Use CASE_CFN_*.  Use mathfn_built_in rather
3791         than calling builtin_decl_implicit directly.
3792         (rs6000_builtin_vectorized_function): Update after above changes.
3793         Use CASE_CFN_*.  Move BUILT_IN_MD to...
3794         (rs6000_builtin_md_vectorized_function): ...this new function.
3795         (TARGET_VECTORIZE_BUILTIN_MD_VECTORIZED_FUNCTION): Define.
3797 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
3799         * tree-vect-patterns.c: Include internal-fn.h.
3800         (vect_recog_pow_pattern): Use IFN_SQRT instead of BUILT_IN_SQRT*.
3802 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
3804         * tree.h (BUILTIN_EXP10_P, BUILTIN_EXPONENT_P, BUILTIN_SQRT_P)
3805         (BUILTIN_CBRT_P, BUILTIN_ROOT_P): Delete.
3807 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
3809         * builtins.c (expand_errno_check, expand_builtin_mathfn)
3810         (expand_builtin_mathfn_2): Delete.
3811         (expand_builtin): Remove handling of functions with
3812         internal function equivalents.
3813         * internal-fn.def (SET_EDOM): New internal function.
3814         * internal-fn.h (set_edom_supported_p): Declare.
3815         * internal-fn.c (expand_SET_EDOM): New function.
3816         (set_edom_supported_p): Likewise.
3817         * tree-call-cdce.c: Include builtins.h and internal-fn.h.
3818         Rewrite comment at head of file.
3819         (is_call_dce_candidate): Rename to...
3820         (can_test_argument_range): ...this.  Don't check gimple_call_lhs
3821         or gimple_call_builtin_p here.
3822         (edom_only_function): New function.
3823         (shrink_wrap_one_built_in_call_with_conds): New function, split out
3824         from...
3825         (shrink_wrap_one_built_in_call): ...here.
3826         (can_use_internal_fn, use_internal_fn): New functions.
3827         (shrink_wrap_conditional_dead_built_in_calls): Call use_internal_fn
3828         for calls that have an lhs.
3829         (pass_call_cdce::gate): Remove optimize_function_for_speed_p check.
3830         (pass_call_cdce::execute): Skip blocks that are optimized for size.
3831         Check gimple_call_builtin_p here.  Use can_use_internal_fn for
3832         calls with an lhs.
3833         * opts.c (default_options_table): Enable -ftree-builtin-call-cdce
3834         at -O and above.
3836 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
3838         * builtins.h (called_as_built_in): Declare.
3839         * builtins.c (called_as_built_in): Make external.
3840         * internal-fn.h (expand_internal_call): Define a variant that
3841         specifies the internal function explicitly.
3842         * internal-fn.c (expand_load_lanes_optab_fn)
3843         (expand_store_lanes_optab_fn, expand_ANNOTATE, expand_GOMP_SIMD_LANE)
3844         (expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE)
3845         (expand_GOMP_SIMD_ORDERED_START, expand_GOMP_SIMD_ORDERED_END)
3846         (expand_UBSAN_NULL, expand_UBSAN_BOUNDS, expand_UBSAN_VPTR)
3847         (expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK, expand_TSAN_FUNC_EXIT)
3848         (expand_UBSAN_CHECK_ADD, expand_UBSAN_CHECK_SUB)
3849         (expand_UBSAN_CHECK_MUL, expand_ADD_OVERFLOW, expand_SUB_OVERFLOW)
3850         (expand_MUL_OVERFLOW, expand_LOOP_VECTORIZED)
3851         (expand_mask_load_optab_fn, expand_mask_store_optab_fn)
3852         (expand_ABNORMAL_DISPATCHER, expand_BUILTIN_EXPECT, expand_VA_ARG)
3853         (expand_UNIQUE, expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS)
3854         (expand_GOACC_LOOP, expand_GOACC_REDUCTION, expand_direct_optab_fn)
3855         (expand_unary_optab_fn, expand_binary_optab_fn): Add an internal_fn
3856         argument.
3857         (internal_fn_expanders): Update prototype.
3858         (expand_internal_call): Define a variant that specifies the
3859         internal function explicitly. Use it to implement the previous
3860         interface.
3861         * cfgexpand.c (expand_call_stmt): Try to expand calls to built-in
3862         functions as calls to internal functions.
3864 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
3866         * Makefile.in (MOSTLYCLEANFILES): Add cfn-operators.pd.
3867         (generated_files): Likewise.
3868         (s-cfn-operators, cfn-operators.pd): New rules.
3869         (s-match): Depend on cfn-operators.pd.
3870         * gencfn-macros.c: Expand comment to describe -o behavior.
3871         (print_define_operator_list): New function.
3872         (main): Accept -o.  Call print_define_operator_list.
3873         * genmatch.c (main): Add the current directory to the include path.
3874         * match.pd (DEFINE_MATH_FN): Delete.  Include cfn-operators.pd
3875         instead.
3877 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
3879         * doc/match-and-simplify.texi: Document the "null" identifier.
3880         * genmatch.c (id_base::NULL_ID): New kind.
3881         (null_id): New variable.
3882         (get_operator): Add a parameter that says whether null identifiers
3883         are allowed.
3884         (contains_id): New function.
3885         (lower_for): Skip substitutions that would have a null_id in
3886         either the match or the result.
3887         (parser::parse_for): Allow the null identifier to be used.
3888         (parser::parse_operator_list): Likewise.
3889         (main): Initialize null_id.
3891 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
3893         * match.pd: Use HYPOT and COS rather than hypot and cos.
3894         Use CASE_CFN_* macros.  Guard log/exp folds with
3895         SCALAR_FLOAT_TYPE_P.
3896         * genmatch.c (internal_fn): New enum.
3897         (fn_id::fn): Change to an unsigned int.
3898         (fn_id::fn_id): Accept internal_fn too.
3899         (add_builtin): Rename to...
3900         (add_function): ...this and turn into a template.
3901         (get_operator): Only try one variation if the original name fails.
3902         Only add _EXPR if the original name was all lower case.
3903         Try converting internal and built-in function names to their
3904         CFN equivalents.
3905         (expr::gen_transform): Use maybe_build_call_expr_loc for generic.
3906         (dt_simplify::gen_1): Likewise.
3907         (dt_node::gen_kids_1): Use gimple_call_combined_fn for gimple
3908         and get_call_combined_fn for generic.
3909         (dt_simplify::gen): Use combined_fn as the type of fn_ids.
3910         (decision_tree::gen): Likewise.
3911         (main): Use lower case in the strings for {VIEW_,}CONVERT[012].
3912         Use add_function rather than add_builtin.  Register internal
3913         functions too.
3914         * generic-match-head.c: Include case-cfn-macros.h.
3915         * gimple-fold.c (replace_stmt_with_simplification): Use
3916         gimple_call_combined_fn to test whether we can keep an
3917         existing call.
3918         * gimple-match.h (code_helper): Replace built_in_function
3919         with combined_fn.
3920         * gimple-match-head.c: Include fold-const-call.h, internal-fn.h
3921         and case-fn-macros.h.
3922         (gimple_resimplify1): Use fold_const_call.
3923         (gimple_resimplify2, gimple_resimplify3): Likewise.
3924         (build_call_internal, build_call): New functions.
3925         (maybe_push_res_to_seq): Use them.
3926         (gimple_simplify): Use fold_const_call.  Set *rcode to a combined_fn
3927         rather than a built-in function.
3928         * tree.h (build_call_expr_internal_loc): Declare.
3929         (maybe_build_call_expr_loc): Likewise.
3930         * tree.c (build_call_expr_internal_loc_array): New function.
3931         (maybe_build_call_expr_loc): Likewise.
3933 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
3935         * builtins.h (mathfn_built_in): Add a variant that takes
3936         a combined_fn.
3937         * builtins.c: Include case-cfn-macros.h.
3938         (CASE_MATHFN): Use CASE_CFN_*.
3939         (CASE_MATHFN_REENT): Use CFN_ codes.
3940         (mathfn_built_in_2, mathfn_built_in_1): Replace built_in_function
3941         argument with a combined_fn.
3942         (mathfn_built_in): Add a variant that takes a combined_fn.
3943         (expand_builtin_int_roundingfn_2): Update callers accordingly.
3944         (fold_builtin_sincos, fold_builtin_classify): Likewise.
3946 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
3948         * tree-vect-patterns.c: Include case-cfn-macros.h.
3949         (vect_recog_pow_pattern): Use combined_fn instead of built-in codes.
3951 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
3953         * tree-ssa-math-opts.c: Include case-cfn-macros.h.
3954         (execute_cse_sincos_1): Use combined_fn instead of built-in codes.
3955         (pass_cse_sincos::execute): Likewise.
3957 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
3959         * tree-ssa-reassoc.c: Include case-cfn-macros.h.
3960         (stmt_is_power_of_op): Use combined_fn instead of built-in codes.
3961         (decrement_power, acceptable_pow_call): Likewise.
3962         (attempt_builtin_copysign): Likewise.
3964 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
3966         * tree-vrp.c: Include case-cfn-macros.h.
3967         (extract_range_basic): Switch on combined_fn rather than handling
3968         built-in functions and internal functions separately.
3970 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
3972         * fold-const.h (negate_mathfn_p): Take a combined_fn rather
3973         than a built_in_function.
3974         (tree_call_nonnegative_warnv_p): Take a combined_fn rather than
3975         a function decl.
3976         (integer_valued_real_call_p): Likewise.
3977         * fold-const.c: Include case-cfn-macros.h
3978         (negate_mathfn_p): Take a combined_fn rather than a built_in_function.
3979         (negate_expr_p): Update accordingly.
3980         (tree_call_nonnegative_warnv_p): Take a combined_fn rather than
3981         a function decl.
3982         (integer_valued_real_call_p): Likewise.
3983         (tree_invalid_nonnegative_warnv_p): Update accordingly.
3984         (integer_valued_real_p): Likewise.
3985         * gimple-fold.c (gimple_call_nonnegative_warnv_p): Update call
3986         to tree_call_nonnegative_warnv_p.
3987         (gimple_call_integer_valued_real_p): Likewise
3988         integer_valued_real_call_p.
3989         * gimple-ssa-backprop.c: Include case-cfn-macros.h.
3990         (backprop::process_builtin_call_use): Extend to combined_fn.
3991         (strip_sign_op_1): Likewise.
3992         (backprop::process_use): Don't check for built-in calls here.
3993         (backprop::execute): Likewise.
3994         (backprop::optimize_builtin_call): Update call to negate_mathfn_p.
3996 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
3998         * fold-const-call.h (fold_const_call): Replace built_in_function
3999         arguments with combined_fn arguments.
4000         * fold-const-call.c: Include case-cfn-macros.h.
4001         (fold_const_call_ss, fold_const_call_cs, fold_const_call_sc)
4002         (fold_const_call_cc, fold_const_call_sss, fold_const_call_ccc)
4003         (fold_const_call_ssss, fold_const_call_1, fold_const_call): Replace
4004         built_in_function arguments with combined_fn arguments.
4005         * builtins.c (fold_builtin_sincos, fold_builtin_1, fold_builtin_2)
4006         (fold_builtin_3): Update calls to fold_const_call.
4008 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
4010         * Makefile.in (HASH_TABLE_H): Add GGC_H.
4011         (MOSTLYCLEANFILES, generated_files): Add case-fn-macros.h.
4012         (s-case-cfn-macros, case-cfn-macros.h, build/gencfn-macros.o)
4013         (build/gencfn-macros$(build_exeext): New rules.
4014         (genprogerr): Add cfn-macros.
4015         * hash-set.h (hash_set): Use the traits value_type as the key.
4016         * gencfn-macros.c: New file.
4018 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
4020         * internal-fn.def (DEF_INTERNAL_INT_FN): New macro.
4021         (CLRSB, CLZ, CTZ, FFS, PARITY, POPCOUNT): New functions.
4022         * builtins.c (associated_internal_fn): Handle them.
4024 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
4026         * builtins.h (associated_internal_fn): Declare.
4027         (replacement_internal_fn): Likewise.
4028         * builtins.c: Include internal-fn.h
4029         (associated_internal_fn, replacement_internal_fn): New functions.
4030         * internal-fn.def (DEF_INTERNAL_FLT_FN): New macro.
4031         (ACOS, ASIN, ATAN, COS, EXP, EXP10, EXP2, EXPM1, LOG, LOG10, LOG1P)
4032         (LOG2, LOGB, SIGNIFICAND, SIN, SQRT, TAN, CEIL, FLOOR, NEARBYINT)
4033         (RINT, ROUND, TRUNC, ATAN2, COPYSIGN, FMOD, POW, REMAINDER, SCALB)
4034         (LDEXP): New functions.
4035         * internal-fn.c: Include recog.h.
4036         (unary_direct, binary_direct): New macros.
4037         (expand_direct_optab_fn): New function.
4038         (expand_unary_optab_fn): New macro.
4039         (expand_binary_optab_fn): Likewise.
4040         (direct_unary_optab_supported_p): Likewise.
4041         (direct_binary_optab_supported_p): Likewise.
4043 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
4045         * coretypes.h (tree_pair): New type.
4046         * internal-fn.def (DEF_INTERNAL_OPTAB_FN): New macro.  Use it
4047         for MASK_LOAD, LOAD_LANES, MASK_STORE and STORE_LANES.
4048         * internal-fn.h (direct_internal_fn_info): New structure.
4049         (direct_internal_fn_array): Declare.
4050         (direct_internal_fn_p, direct_internal_fn): New functions.
4051         (direct_internal_fn_types, direct_internal_fn_supported_p): Declare.
4052         * internal-fn.c (not_direct, mask_load_direct, load_lanes_direct)
4053         (mask_store_direct, store_lanes_direct): New macros.
4054         (direct_internal_fn_array) New array.
4055         (get_multi_vector_move): Return the optab handler without asserting
4056         that it is available.
4057         (expand_LOAD_LANES): Rename to...
4058         (expand_load_lanes_optab_fn): ...this and add an optab argument.
4059         (expand_STORE_LANES): Rename to...
4060         (expand_store_lanes_optab_fn): ...this and add an optab argument.
4061         (expand_MASK_LOAD): Rename to...
4062         (expand_mask_load_optab_fn): ...this and add an optab argument.
4063         (expand_MASK_STORE): Rename to...
4064         (expand_mask_store_optab_fn): ...this and add an optab argument.
4065         (direct_internal_fn_types, direct_optab_supported_p)
4066         (multi_vector_optab_supported_p, direct_internal_fn_supported_p)
4067         (direct_internal_fn_supported_p): New functions.
4068         (direct_mask_load_optab_supported_p): New macro.
4069         (direct_load_lanes_optab_supported_p): Likewise.
4070         (direct_mask_store_optab_supported_p): Likewise.
4071         (direct_store_lanes_optab_supported_p): Likewise.
4073 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
4075         * tree-core.h (internal_fn): Move immediately after the definition
4076         of built_in_function.
4077         (combined_fn): New enum.
4078         * tree.h (as_combined_fn, builtin_fn_p, as_builtin_fn)
4079         (internal_fn_p, as_internal_fn): New functions.
4080         (get_call_combined_fn, combined_fn_name): Declare.
4081         * tree.c (get_call_combined_fn): New function.
4082         (combined_fn_name): Likewise.
4083         * gimple.h (gimple_call_combined_fn): Declare.
4084         * gimple.c (gimple_call_combined_fn): New function.
4086 2015-11-17  Martin Sebor  <msebor@redhat.com>
4088         PR c++/68308
4089         * cp/init.c (build_new_1): Check for expression constness
4090         the right way.
4092 2015-11-17  Sandra Loosemore  <sandra@codesourcery.com>
4094         PR target/53587
4095         * doc/invoke.texi (Option Summary): Add -mms-bitfields to x86
4096         option list.
4097         (x86 Options): Add -mms-bitfields and -mno-ms-bitfields.  Move
4098         discussion of the Microsoft structure layout details here from
4099         its former home in extend.texi.
4100         * doc/extend.texi (x86 Variable Attributes): Replace detailed
4101         discussion with pointer to its new location.  Add cross-reference
4102         to corresponding type attributes.
4103         (x86 Type Attributes): Add cross-references to command-line options
4104         and variable attributes.
4106 2015-11-17  Ilya Enkovich  <enkovich.gnu@gmail.com>
4108         PR middle-end/68134
4109         * targhooks.c (default_get_mask_mode): Filter out
4110         scalar modes returned by mode_for_vector.
4112 2015-11-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4114         PR target/68143
4115         * config/arm/arm.c (arm_block_set_unaligned_vect): Keep track of
4116         offset from dstbase and use it appropriately in
4117         adjust_automodify_address.
4118         (arm_block_set_aligned_vect): Likewise.
4120 2015-11-17  Eric Botcazou  <ebotcazou@adacore.com>
4122         * config/visium/t-visium (MULTILIB_OPTIONS): Add muser-mode.
4123         (MULTILIB_DIRNAMES): Adjust accordingly.
4125 2015-11-17  James Greenhalgh  <james.greenhalgh@arm.com>
4127         * config/aarch64/aarch64-cores.def (cortex-a35): New.
4128         * config/aarch64/aarch64.c (cortexa35_tunings): New.
4129         * config/aarch64/aarch64-tune.md: Regenerate.
4130         * doc/invoke.texi (-mcpu): Add Cortex-A35
4132 2015-11-17  Uros Bizjak  <ubizjak@gmail.com>
4134         PR target/68263
4135         * config/i386/i386.h (BIGGEST_ALIGNMENT): Always define
4136         to 32 for IAMCU.
4137         * config/i386/sse.md (*mov<mode>_internal): Always enable
4138         AVX and SSE unaligned moves for IAMCU.
4140 2015-11-17  Venkataramanan Kumar  <Venkataramanan.Kumar@amd.com>
4142         * tree-if-conv.c: Include varasm.h
4143         (ref_DR_map): Define.
4144         (baseref_DR_map): Like wise
4145         (struct ifc_dr): Add new tree predicate field.
4146         (hash_memrefs_baserefs_and_store_DRs_read_written_info): New function.
4147         (memrefs_read_or_written_unconditionally): Remove.
4148         (write_memrefs_written_at_least_once): Remove.
4149         (ifcvt_memrefs_wont_trap): Use hash maps to query
4150         unconditional read/written information.
4151         (if_convertible_loop_p_1):  Initialize hash maps and predicates
4152         before hashing data references and delete hashmaps at the end.
4154 2015-11-16  Thomas Preud'homme <thomas.preudhomme@arm.com>
4156         PR 56036
4157         * doc/invoke.texi (Optimize Options): Move @end table to the right
4158         place.
4160 2015-11-16  Sandra Loosemore  <sandra@codesourcery.com>
4162         PR 65129
4163         * doc/extend.texi (__builtin_assume_aligned): Fix formatting of
4164         return value.
4166 2015-11-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
4168         * config/rs6000/vsx.md (VSX_L): Do not include IBM extended double
4169         128-bit types, just types that fit in a single vector.
4170         * config/rs6000/rs6000.md (FMOVE128_GPR): Likewise.
4172 2015-11-16  David Wohlferd  <dw@LimeGreenSocks.com>
4174         * doc/md.texi ('#' and '*' constraint modifiers): Do not include these
4175         in the user documentation.
4176         (define_peephole2, define_split): Similarly.
4178 2015-11-16 Andris Pavenis <andris.pavenis@iki.fi>
4180         * lto-streamer-out.c (write_global_references): Adjust integer type.
4181         (lto_output_decl_state_refs): Likewise.
4183 2015-11-16  James Greenhalgh  <james.greenhalgh@arm.com>
4185         * config/arm/arm-cores.def (cortex-a35): New.
4186         * config/arm/arm.c (arm_cortex_a35_tune): New.
4187         * config/arm/arm-tables.opt: Regenerate.
4188         * config/arm/arm-tune.md: Regenerate.
4189         * config/arm/bpabi.h (BE8_LINK_SPEC): Add cortex-a35.
4190         * config/arm/t-aprofile: Likewise.
4191         * doc/invoke.texi (-mcpu): Likewise.
4193 2015-11-16  Jim Wilson  <jim.wilson@linaro.org>
4195         * config/arm/t-aprofile (MULTILIB_MATCHES): Add lines for exynos-m1
4196         and qdf24xx and xgene1 to match -march=armv8-a.
4198 2015-11-16  Segher Boessenkool  <segher@kernel.crashing.org>
4200         PR rtl-optimization/68330
4201         * simplify-rtx.c (simplify_unary_operation_1): Simplify SIGN_EXTEND
4202         of LSHIFTRT by a non-zero constant integer.
4204 2015-11-16  Richard Biener  <rguenther@suse.de>
4206         PR tree-optimization/68306
4207         * tree-vect-data-refs.c (vect_verify_datarefs_alignment): Fix
4208         bogus copying from verify_data_ref_alignment and use continue
4209         instead of return.
4211 2015-11-16  Oleg Endo  <olegendo@gcc.gnu.org>
4212             Kaz Kojima  <kkojima@gcc.gnu.org>
4214         PR target/68277
4215         * config/sh/sh.md (addsi3_scr): Handle reg overlap of operands[0] and
4216         operands[2].
4217         (*addsi3): Add another insn_and_split variant for reload.
4219 2015-11-16  Richard Biener  <rguenther@suse.de>
4221         PR middle-end/68117
4222         * cfgexpand.c (pass_expand::execute): Destroy the edge
4223         redirection var map before setting RTL CFG hooks.
4225 2015-11-16  Alan Lawrence  <alan.lawrence@arm.com>
4227         * config/i386/sse.md (reduc_splus_v8df): Rename to...
4228         (reduc_plus_scal_v8df): ...here; reduce to temp and extract scalar.
4230         (reduc_splus_v4df): Rename to...
4231         (reduc_plus_scal_v4df): ...here; reduce to temp and extract scalar.
4233         (reduc_splus_v2df): Rename to...
4234         (reduc_plus_scal_v2df): ...here; reduce to temp and extract scalar.
4236         (reduc_splus_v16sf): Rename to...
4237         (reduc_plus_scal_v16sf): ...here; reduce to temp and extract scalar.
4239         (reduc_splus_v8sf): Rename to...
4240         (reduc_plus_scal_v8sf): ...here; reduce to temp and extract scalar.
4242         (reduc_splus_v4sf): Rename to...
4243         (reduc_plus_scal_v4sf): ...here; reduce to temp and extract scalar.
4245         (reduc_<code>_<mode>, all 3 variants): Rename each to...
4246         (reduc_<code>_scal_<mode>): ...here; reduce to temp and extract scalar.
4248         (reduc_umin_v8hf): Rename to...
4249         (reduc_umin_scal_v8hf): ...here; reduce to temp and extract scalar.
4251 2015-11-16  Kirill Yukhin  <kirill.yukhin@intel.com>
4253         * omp-low.c (pass_omp_simd_clone::gate): If target allows - call
4254         without additional conditions.
4255         * doc/extend.texi (@item simd): New.
4257 2015-11-16  Tom de Vries  <tom@codesourcery.com>
4259         * passes.c (first_pass_instance): Remove variable.
4260         (execute_todo): Remove setting of first_pass_instance.
4261         * tree-pass.h (first_pass_instance): Remove declaration.
4263 2015-11-16  Tom de Vries  <tom@codesourcery.com>
4265         * passes.def: Add arg to pass_ccp pass instantiation.
4266         * tree-ssa-ccp.c (ccp_finalize): Add param nonzero_p.  Use nonzero_p
4267         instead of first_pass_instance.
4268         (do_ssa_ccp): Add and handle param nonzero_p.
4269         (pass_ccp::pass_ccp): Initialize nonzero_p.
4270         (pass_ccp::set_pass_param): New member function.  Set nonzero_p.
4271         (pass_ccp::execute): Call do_ssa_ccp with extra arg.
4272         (pass_ccp::nonzero_p): New private member.
4274 2015-11-16  Tom de Vries  <tom@codesourcery.com>
4276         * passes.def: Add arg to pass_object_sizes pass instantiation.
4277         * tree-object-size.c (pass_object_sizes::pass_object_sizes): Initialize
4278         insert_min_max_p.
4279         (pass_object_sizes::set_pass_param): New member function.  Set
4280         insert_min_max_p.
4281         (pass_object_sizes::insert_min_max_p): New private member.
4282         (pass_object_sizes::execute): Use insert_min_max_p instead of
4283         first_pass_instance.
4285 2015-11-16  Tom de Vries  <tom@codesourcery.com>
4287         * passes.def: Add arg to pass_dominator pass instantiation.
4288         * tree-pass.h (first_pass_instance): Remove pass_dominator-related bit
4289         of comment.
4290         * tree-ssa-dom.c (pass_dominator::pass_dominator): Initialize
4291         may_peel_loop_headers_p.
4292         (pass_dominator::set_pass_param): New member function.  Set
4293         may_peel_loop_headers_p.
4294         (pass_dominator::may_peel_loop_headers_p): New private member.
4295         (pass_dominator::execute): Use may_peel_loop_headers_p instead of
4296         first_pass_instance.
4298 2015-11-16  Tom de Vries  <tom@codesourcery.com>
4300         * passes.def: Add arg to pass_reassoc pass instantiation.
4301         * tree-ssa-reassoc.c (reassoc_insert_powi_p): New static variable.
4302         (acceptable_pow_call, reassociate_bb): Use reassoc_insert_powi_p instead
4303         of first_pass_instance.
4304         (execute_reassoc): Add and handle insert_powi_p parameter.
4305         (pass_reassoc::insert_powi_p): New private member.
4306         (pass_reassoc::pass_reassoc): Initialize insert_powi_p.
4307         (pass_reassoc::set_pass_param): New member function.  Set insert_powi_p.
4308         (pass_reassoc::execute): Call execute_reassoc with extra arg.
4310 2015-11-16  Tom de Vries  <tom@codesourcery.com>
4312         * gdbhooks.py (class PassNames): Handle extra arg NEXT_PASS argument.
4313         * gen-pass-instances.awk (handle_line): Same.
4314         * pass_manager.h (class pass_manager): Define and undefine
4315         NEXT_PASS_WITH_ARG.
4316         * passes.c (opt_pass::set_pass_param): New function.
4317         (pass_manager::pass_manager): Define and undefine NEXT_PASS_WITH_ARG.
4318         * passes.def: Add extra arg to NEXT_PASS (pass_vrp).
4319         * tree-pass.h (gimple_opt::set_pass_param): Declare.
4320         * tree-vrp.c (vrp_finalize, execute_vrp): Add and handle
4321         warn_array_bounds_p parameter.
4322         (pass_vrp::pass_vrp): Initialize warn_array_bounds_p.
4323         (pass_vrp::set_pass_param): New function.
4324         (pass_vrp::execute): Add warn_array_bounds_p arg to execute_vrp call.
4325         (pass_vrp::warn_array_bounds_p): New private member.
4327 2015-11-16  Eric Botcazou  <ebotcazou@adacore.com>
4329         * config/sparc/sparc.c (sparc_emit_probe_stack_range): Adjust.
4330         (output_probe_stack_range): Rotate the loop and simplify.
4332 2015-11-16  Eric Botcazou  <ebotcazou@adacore.com>
4334         * config/rs6000/rs6000.c (rs6000_emit_probe_stack_rang): Adjust.
4335         (output_probe_stack_range): Rotate the loop and simplify.
4337 2015-11-16  Eric Botcazou  <ebotcazou@adacore.com>
4339         * config/i386/i386.c (ix86_adjust_stack_and_probe): Adjust and use
4340         an lea instruction when possible.
4341         (output_adjust_stack_and_probe): Rotate the loop and simplify.
4342         (ix86_emit_probe_stack_range): Adjust.
4343         (output_probe_stack_range): Rotate the loop and simplify.
4345 2015-11-16  Christian Bruel  <christian.bruel@st.com>
4347         * config/arm/arm_neon.h: Remove #ifndef check on __ARM_NEON.
4348         Replace #ifdef __ARM_FEATURE_CRYPTO, __ARM_FEATURE_FMA, __ARM_FP
4349         with appropriate pragma GCC target.
4351 2015-11-16  Christian Bruel  <christian.bruel@st.com>
4353         PR target/65837
4354         * config/arm/arm-c.c (arm_cpu_builtins): Conditionally set and reset
4355         __ARM_FEATURE_FMA and __ARM_NEON_FP, __ARM_FP.
4357 2015-11-16  James Greenhalgh  <james.greenhalgh@arm.com>
4359         * config/aarch64/aarch64.c (cortexa57_branch_costs): New.
4360         (cortexa57_tunings): Use it.
4362 2015-11-16  Christian Bruel  <christian.bruel@st.com>
4364         PR target/65837
4365         * config/arm/arm-c.c (arm_cpu_builtins): Set or reset
4366         __ARM_FEATURE_CRYPTO, __VFP_FP__, __ARM_NEON__
4367         (arm_pragma_target_parse): Change check for arm_cpu_builtins.
4368         undefine __ARM_FP.
4369         * config/arm/arm.c (arm_can_inline_p): Check FPUs.
4370         (arm_valid_target_attribute_rec): Handle -mfpu attribute target.
4371         * doc/invoke.texi (-mfpu=): Mention attribute and pragma.
4372         * doc/extend.texi (-mfpu=): Describe attribute.
4374 2015-11-16  Christian Bruel  <christian.bruel@st.com>
4376         PR target/65837
4377         * config/arm/arm-protos.h (arm_init_neon_builtins): Declare.
4378         * config/arm/arm.c (arm_valid_target_attribute_tree): Call
4379         arm_init_neon_builtins.
4380         * config/arm/arm-builtins.c (arm_init_neon_builtins): Split into...
4381         (arm_init_neon_builtins_internal)
4382         (arm_init_crypto_builtins_internal):
4383         Test and set neon_set_p, neon_crypto_set_p.
4384         (neon_set_p, neon_crypto_set_p): New static booleans.
4386 2015-11-16  Christian Bruel  <christian.bruel@st.com>
4388         PR target/65837
4389         * config/arm/arm.c (arm_fpu_desc): Remove.
4390         (all_fpus): Make global.
4391         (arm_option_override): Use FPU TARGET accessors.
4392         (arm_declare_function_name): Likewise.
4393         * config/arm/arm.h (TARGET_VFP, TARGET_VFPD32, TARGET_VFP5)
4394         (TARGET_VFP_SINGLE, TARGET_VFP_DOUBLE, TARGET_NEON_FP16)
4395         (TARGET_FP16, TARGET_FMA, TARGET_FPU_ARMV8, TARGET_CRYPTO)
4396         (TARGET_NEON): Likewise.
4397         (all_fpus): Declare extern.
4398         (TARGET_FPU_NAME, TARGET_FPU_MODEL, TARGET_FPU_REV)
4399         (TARGET_FPU_REGS, TARGET_FPU_FEATURES): Define all_fpus accessors.
4401 2015-11-15  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4403         PR middle-end/68366
4404         * sdbout.c: Include emit-rtl.h and function.h.
4406 2015-11-15  Gerald Pfeifer  <gerald@pfeifer.com>
4408         * config/i386/freebsd.h (SUBTARGET32_DEFAULT_CPU): Change to i586.
4409         Remove support for FreeBSD 5 and earlier.
4411 2015-11-14  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4413         * configure: Regenerate.
4414         * configure.ac: Always define ENABLE_OFFLOADING.
4415         * cgraph.c (cgraph_node::create): Adjust.
4416         * gcc.c (process_command): Likewise.
4417         * omp-low.c (create_omp_child_function): Likewise.
4418         (expand_omp_target): Likewise.
4419         * varpool.c (varpool_node::get_create): Likewise.
4421 2015-11-14  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4423         * defaults.h (EH_RETURN_HANDLER_RTX): New default definition.
4424         * df-scan.c (df_get_exit_block_use_set): Adjust.
4425         * except.c (expand_eh_return): Likewise.
4427 2015-11-14  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4429         * config/i386/i386.h (TARGET_PECOFF): Remove define.
4430         * defaults.h (TARGET_PECOFF): New default definition.
4431         * varasm.c (handle_vtv_comdat_section): Adjust.
4433 2015-11-14  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4435         * defaults.h: New definition of SDB_DEBUGGING_INFO.
4436         * doc/tm.texi: Regenerate.
4437         * doc/tm.texi.in: Adjust.
4438         * final.c (rest_of_clean_state): Remove check if
4439         SDB_DEBUGGING_INFO is defined.
4440         * function.c (number_blocks): Likewise.
4441         * output.h: Likewise.
4442         * sdbout.c: Likewise.
4443         * toplev.c (process_options): Likewise.
4445 2015-11-14  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4447         * gsyms.h (enum sdb_type): Remove code for EXTENDED_SDB_BASIC_TYPES.
4448         (enum sdb_masks): Likewise.
4449         * sdbout.c (plain_type_1): Likewise.
4450         * system.h: Poison EXTENDED_SDB_BASIC_TYPES macro.
4452 2015-11-14  Jakub Jelinek  <jakub@redhat.com>
4454         * omp-low.c (lower_omp_ordered): Add argument to GOMP_SMD_ORDERED_*
4455         internal calls - 0 if ordered simd and 1 for ordered threads simd.
4456         * tree-vectorizer.c (adjust_simduid_builtins): If GOMP_SIMD_ORDERED_*
4457         argument is 1, replace it with GOMP_ordered_* call instead of removing
4458         it.
4460 2015-11-13  Rich Felker <dalias@libc.org>
4462         * config/sh/sh.md (symGOT_load): Suppress __stack_chk_guard
4463         address loading hack for FDPIC targets.
4465 2015-11-13  Ajit Agarwal  <ajitkum@xilinx.com>
4466             Jeff Law  <law@redhat.com>
4468         * Makefile.in (OBJS): Add gimple-ssa-split-paths.o
4469         * common.opt (-fsplit-paths): New flag controlling path splitting.
4470         * doc/invoke.texi (fsplit-paths): Document.
4471         * opts.c (default_options_table): Add -fsplit-paths to -O2.
4472         * passes.def: Add split_paths pass.
4473         * timevar.def (TV_SPLIT_PATHS): New timevar.
4474         * tracer.c: Include "tracer.h"
4475         (ignore_bb_p): No longer static.
4476         (transform_duplicate): New function, broken out of tail_duplicate.
4477         (tail_duplicate): Use transform_duplicate.
4478         * tracer.h (ignore_bb_p): Declare
4479         (transform_duplicate): Likewise.
4480         * tree-pass.h (make_pass_split_paths): Declare.
4481         * gimple-ssa-split-paths.c: New file.
4483 2015-11-13  Kai Tietz  <ktietz70@googlemail.com>
4484             Marek Polacek  <polacek@redhat.com>
4485             Jason Merrill  <jason@redhat.com>
4487         * convert.c (maybe_fold_build1_loc): New.
4488         (maybe_fold_build2_loc): New.
4489         (convert_to_pointer_1): Split out from convert_to_pointer.
4490         (convert_to_pointer_nofold): New.
4491         (convert_to_real_1): Split out from convert_to_real.
4492         (convert_to_real_nofold): New.
4493         (convert_to_integer_1): Split out from convert_to_integer.
4494         (convert_to_integer_nofold): New.
4495         (convert_to_complex_1): Split out from convert_to_complex.
4496         (convert_to_complex_nofold): New.
4497         * convert.h: Declare new functions.
4498         * tree-complex.c (create_one_component_var): Break up line to
4499         avoid sequence point issues.
4501 2015-11-13  Jason Merrill  <jason@redhat.com>
4503         * fold-const.c (fold_convert_const): Fold changing cv-quals on
4504         VECTOR_CST.
4506         * hash-map.h (hash_map::empty): New.
4508 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
4510         * omp-low.c (scan_sharing_clauses): Accept INDEPENDENT, AUTO & SEQ.
4511         (oacc_loop_fixed_partitions): Correct return type to bool.
4512         (oacc_loop_auto_partitions): New.
4513         (oacc_loop_partition): Take mask argument, call
4514         oacc_loop_auto_partitions.
4515         (execute_oacc_device_lower): Provide mask to oacc_loop_partition.
4517 2015-11-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
4519         * config/rs6000/constraints.md (we constraint): New constraint for
4520         64-bit power9 vector support.
4521         (wL constraint): New constraint for the element in a vector that
4522         can be addressed by the MFVSRLD instruction.
4524         * config/rs6000/rs6000-protos.h (convert_float128_to_int): Add
4525         declaration.
4526         (convert_int_to_float128): Likewise.
4527         (rs6000_generate_compare): Add support for ISA 3.0 (power9)
4528         hardware support for IEEE 128-bit floating point.
4529         (rs6000_expand_float128_convert): Likewise.
4530         (convert_float128_to_int): Likewise.
4531         (convert_int_to_float128): Likewise.
4533         * config/rs6000/rs6000.md (UNSPEC_ROUND_TO_ODD): New unspecs for
4534         ISA 3.0 hardware IEEE 128-bit floating point.
4535         (UNSPEC_IEEE128_MOVE): Likewise.
4536         (UNSPEC_IEEE128_CONVERT): Likewise.
4537         (FMA_F): Add support for IEEE 128-bit floating point hardware support.
4538         (Ff): Add support for DImode.
4539         (Fv): Likewise.
4540         (any_fix code iterator): New and updated iterators for IEEE
4541         128-bit floating point hardware support.
4542         (any_float code iterator): Likewise.
4543         (s code attribute): Likewise.
4544         (su code attribute): Likewise.
4545         (az code attribute): Likewise.
4546         (uns code attribute): Likewise.
4547         (neg<mode>2, FLOAT128 iterator): Add support for IEEE 128-bit
4548         floating point hardware support.
4549         (abs<mode>2, FLOAT128 iterator): Likewise.
4550         (add<mode>3, IEEE128 iterator): New insns for IEEE 128-bit
4551         floating point hardware.
4552         (sub<mode>3, IEEE128 iterator): Likewise.
4553         (mul<mode>3, IEEE128 iterator): Likewise.
4554         (div<mode>3, IEEE128 iterator): Likewise.
4555         (copysign<mode>3, IEEE128 iterator): Likewise.
4556         (sqrt<mode>2, IEEE128 iterator): Likewise.
4557         (neg<mode>2, IEEE128 iterator): Likewise.
4558         (abs<mode>2, IEEE128 iterator): Likewise.
4559         (nabs<mode>2, IEEE128 iterator): Likewise.
4560         (fma<mode>4_hw, IEEE128 iterator): Likewise.
4561         (fms<mode>4_hw, IEEE128 iterator): Likewise.
4562         (nfma<mode>4_hw, IEEE128 iterator): Likewise.
4563         (nfms<mode>4_hw, IEEE128 iterator): Likewise.
4564         (extend<SFDF:mode><IEEE128:mode>2_hw): Likewise.
4565         (trunc<mode>df2_hw, IEEE128 iterator): Likewise.
4566         (trunc<mode>sf2_hw, IEEE128 iterator): Likewise.
4567         (fix_fixuns code attribute): Likewise.
4568         (float_floatuns code attribute): Likewise.
4569         (fix<uns>_<mode>si2_hw): Likewise.
4570         (fix<uns>_<mode>di2_hw): Likewise.
4571         (float<uns>_<mode>si2_hw): Likewise.
4572         (float<uns>_<mode>di2_hw): Likewise.
4573         (xscvqp<su>wz_<mode>): Likewise.
4574         (xscvqp<su>dz_<mode>): Likewise.
4575         (xscv<su>dqp_<mode): Likewise.
4576         (ieee128_mfvsrd): Likewise.
4577         (ieee128_mfvsrwz): Likewise.
4578         (ieee128_mtvsrw): Likewise.
4579         (ieee128_mtvsrd): Likewise.
4580         (trunc<mode>df2_odd): Likewise.
4581         (cmp<mode>_h): Likewise.
4582         (128-bit GPR splitters): Don't split a 128-bit move that is a
4583         direct move between GPR and vector registers using ISA 3.0 direct
4584         move instructions.
4585         (maddld4): Add support for the ISA 3.0 integer multiply-add
4586         instruction.
4588         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add ISA 3.0
4589         debugging.
4590         (rs6000_init_hard_regno_mode_ok): If ISA 3.0 and 64-bit, enable we
4591         constraint.  Disable the VSX<->GPR direct move helpers if we have
4592         the MFVSRLD and MTVSRDD instructions.
4593         (rs6000_secondary_reload_simple_move): Add support for doing
4594         vector direct moves directly without additional scratch registers
4595         if we have ISA 3.0 instructions.
4596         (rs6000_secondary_reload_direct_move): Update comments.
4597         (rs6000_output_move_128bit): Add support for ISA 3.0 vector
4598         instructions.
4600         * config/rs6000/vsx.md (vsx_mov<mode>): Add support for ISA 3.0
4601         direct move instructions.
4602         (vsx_movti_64bit): Likewise.
4603         (vsx_extract_<mode>): Likewise.
4605         * config/rs6000/rs6000.h (VECTOR_ELEMENT_MFVSRLD_64BIT): New
4606         macros for ISA 3.0 direct move instructions.
4607         (TARGET_DIRECT_MOVE_128): Likewise.
4608         (TARGET_MADDLD): Add support for the ISA 3.0 integer multiply-add
4609         instruction.
4611         * doc/md.texi (RS/6000 constraints): Document we, wF, wG, wL
4612         constraints.  Update wa documentation to say not to use %x<n> on
4613         instructions that only take Altivec registers.
4615 2015-11-13  David Malcolm  <dmalcolm@redhat.com>
4617         * Makefile.in (OBJS): Add gcc-rich-location.o.
4618         * diagnostic.c (diagnostic_append_note): Pass line_table to
4619         rich_location ctor.
4620         (emit_diagnostic): Likewise.
4621         (inform): Likewise.
4622         (inform_n): Likewise.
4623         (warning): Likewise.
4624         (warning_at): Likewise.
4625         (warning_n): Likewise.
4626         (pedwarn): Likewise.
4627         (permerror): Likewise.
4628         (error): Likewise.
4629         (error_n): Likewise.
4630         (error_at): Likewise.
4631         (sorry): Likewise.
4632         (fatal_error): Likewise.
4633         (internal_error): Likewise.
4634         (internal_error_no_backtrace): Likewise.
4635         (source_range::debug): Likewise.
4636         * gcc-rich-location.c: New file.
4637         * gcc-rich-location.h: New file.
4638         * genmatch.c (fatal_at): Pass line_table to rich_location ctor.
4639         (warning_at): Likewise.
4640         * gimple.h (gimple_set_block): Use set_block function.
4641         * input.c (dump_line_table_statistics): Dump stats on how many
4642         ranges were optimized vs how many needed ad-hoc table.
4643         (write_digit_row): Add "map" param; use its range_bits
4644         to calculate the per-character offset.
4645         (dump_location_info): Print the range and column bits for each
4646         ordinary map.  Use the range bits to calculate the per-character
4647         offset.  Pass the map as a new param to the various calls to
4648         write_digit_row.  Eliminate uses of
4649         ORDINARY_MAP_NUMBER_OF_COLUMN_BITS.
4650         * print-tree.c (print_node): Print any source range information.
4651         * rtl-error.c (diagnostic_for_asm): Likewise.
4652         * toplev.c (general_init): Initialize line_table's
4653         default_range_bits.
4654         * tree-cfg.c (move_block_to_fn): Likewise.
4655         (move_block_to_fn): Likewise.
4656         * tree-inline.c (copy_phis_for_bb): Likewise.
4657         * tree.c (tree_set_block): Likewise.
4658         (get_pure_location): New function.
4659         (set_source_range): New functions.
4660         (set_block): New function.
4661         (set_source_range): New functions.
4662         * tree.h (CAN_HAVE_RANGE_P): New.
4663         (EXPR_LOCATION_RANGE): New.
4664         (EXPR_HAS_RANGE): New.
4665         (get_expr_source_range): New inline function.
4666         (DECL_LOCATION_RANGE): New.
4667         (set_source_range): New decls.
4668         (get_decl_source_range): New inline function.
4670 2015-11-13  Alan Lawrence  <alan.lawrence@arm.com>
4672         PR tree-optimization/67682
4673         * tree-vect-slp.c (vect_split_slp_store_group): New.
4674         (vect_analyze_slp_instance): During basic block SLP, recurse on
4675         subgroups if vect_build_slp_tree fails after 1st vector.
4677 2015-11-13  Christian Bruel  <christian.bruel@st.com>
4679         PR target/65837
4680         * config/arm/arm.c (arm_option_override): Move NEON check...
4681         (arm_option_check_internal): here
4682         (arm_file_start): Move .fpu print...
4683         (arm_declare_function_name): here
4684         (arm_option_print): Dump current fpu name.
4685         * config/arm/arm.opt (arm_fpu_index): Mark Save.
4687 2015-11-13  Segher Boessenkool  <segher@kernel.crashing.org>
4688             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4690         * combine.c (subst): Don't substitute or simplify when
4691         handling register-wise widening multiply.
4692         (force_to_mode): Likewise.
4694 2015-11-13  Richard Sandiford  <richard.sandiford@arm.com>
4696         PR tree-optimization/68264
4697         * tree-call-cdce.c (gen_one_condition): Update commentary.
4698         (gen_conditions_for_pow_int_base): Invert the sense of the tests
4699         passed to gen_one_condition.
4700         (gen_conditions_for_domain): Likewise.  Use unordered comparisons.
4701         (shrink_wrap_one_built_in_call): Invert the sense of the tests,
4702         using EDGE_FALSE_VALUE for edges to the call block and
4703         EDGE_TRUE_VALUE for the others.
4705 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
4707         * config/nvptx/nvptx.c (nvptx_generate_vector_shuffle): Deal with
4708         complex types.
4710 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
4712         * gimplify.c (oacc_default_clause): Use inform for enclosing scope.
4714 2015-11-13  Tom de Vries  <tom@codesourcery.com>
4716         * gen-pass-instances.awk (handle_line): Rename prefix_len var to
4717         len_of_prefix.
4719 2015-11-13  Tom de Vries  <tom@codesourcery.com>
4721         * gen-pass-instances.awk (handle_line): Add args_str variable.
4723 2015-11-13  Martin Liska  <mliska@suse.cz>
4725         * graphite-poly.c (free_scop): Release scop->drs vector.
4726         * graphite-scop-detection.c (scop_detection::harmful_stmt_in_region):
4727         Release dom vector.
4728         (try_generate_gimple_bb): Use vNULL as a default initialization
4729         for vectors.
4731 2015-11-13  Martin Liska  <mliska@suse.cz>
4733         PR ipa/68311
4734         * ipa-icf.c (sem_item_optimizer::traverse_congruence_split):
4735         Replace array initialization (using a variable post-increment)
4736         that possible triggers multiple unsequenced modifications
4737         with a pair of pushes to a vector.
4739 2015-11-13  Richard Biener  <rguenther@suse.de>
4741         PR tree-optimization/68306
4742         * tree-vect-data-refs.c (verify_data_ref_alignment): Move
4743         loop related checks ...
4744         (vect_verify_datarefs_alignment): ... here.
4745         (vect_slp_analyze_and_verify_node_alignment): Compute and
4746         verify alignment of the single DR that it matters.
4747         * tree-vect-stmts.c (vectorizable_store): Add an assert.
4748         (vectorizable_load): Add a comment.
4749         * tree-vect-slp.c (vect_analyze_slp_cost_1): Fix DR used
4750         for determining load cost.
4752 2015-11-13  Ilya Enkovich  <enkovich.gnu@gmail.com>
4754         * tree-vect-loop.c (vect_determine_vectorization_factor): Check
4755         mix of boolean and integer vectors in a single statement.
4756         * tree-vect-slp.c (vect_mask_constant_operand_p): New.
4757         (vect_get_constant_vectors): Use vect_mask_constant_operand_p to
4758         determine constant type.
4759         * tree-vect-stmts.c (vectorizable_comparison): Provide vectype
4760         for loop invariants.
4762 2015-11-13  Alan Hayward <alan.hayward@arm.com>
4764         PR tree-optimization/66558
4765         * tree-vect-loop.c (is_integer_induction):Add.
4766         (vectorizable_reduction): Add integer induction checks.
4768 2015-11-13  Christophe Lyon  <christophe.lyon@linaro.org>
4770         Revert [ARM] Remove neon-testgen.ml and generated tests.
4772         2015-11-12  Christophe Lyon  <christophe.lyon@linaro.org>
4774         [ARM] Remove neon-testgen.ml and generated tests.
4776         * config/arm/neon-testgen.ml: Remove.
4778 2015-11-13  Richard Biener  <rguenther@suse.de>
4780         * tree-vect-loop.c (vect_analyze_loop_2): Add fatal parameter.
4781         Signal fatal failure if early checks fail.
4782         (vect_analyze_loop): If vect_analyze_loop_2 fails fatally
4783         do not bother testing further vector sizes.
4785 2015-11-13  Uros Bizjak  <ubizjak@gmail.com>
4787         * config/i386/predicates.md (misaligned_operand): Return true if
4788         operand is aligned to less than its natural alignmnet.
4790 2015-11-13  Ilya Enkovich  <enkovich.gnu@gmail.com>
4792         * doc/md.texi (vec_cmp@var{m}@var{n}): New item.
4793         (vec_cmpu@var{m}@var{n}): New item.
4794         (vcond@var{m}@var{n}): Specify comparison is signed.
4795         (vcondu@var{m}@var{n}): New item.
4796         (vcond_mask_@var{m}@var{n}): New item.
4797         (maskload@var{m}@var{n}): New item.
4798         (maskstore@var{m}@var{n}): New item.
4800 2015-11-13  Ilya Enkovich  <enkovich.gnu@gmail.com>
4802         * tree-vect-stmts.c (vectorizable_mask_load_store): Check
4803         types of stored value and storage are compatible.
4805 2015-11-13  Andris Pavenis  <andris.pavenis@iki.fi>
4807         * gcc.c (POST_LINK_SPEC): Define if not already defined.
4808         (LINK_COMMAND_SPEC): Use post_link.
4809         (post_link_spec): New, initialize to POST_LINK_SPEC.
4810         (post_link): Initialize new static spec.
4811         * doc/tm.texi.in (POST_LINK_SPEC): Document.
4812         * doc/tm.texi: Regenerated.
4814 2015-11-13  David Malcolm  <dmalcolm@redhat.com>
4816         PR driver/67613
4817         * Makefile.in (GCC_OBJS): Add spellcheck.o.
4818         (OBJS): Add spellcheck-tree.o.
4819         * gcc.c: Include "spellcheck.h".
4820         (suggest_option): New function.
4821         (driver::handle_unrecognized_options): Call suggest_option to
4822         provide a hint about misspelled options.
4823         * spellcheck.c: Update file comment.
4824         (levenshtein_distance): Convert 4-param implementation from static
4825         to extern scope.  Remove note about unit tests from leading
4826         comment for const char * implementation.  Move tree
4827         implementation to...
4828         * spellcheck-tree.c: New file.
4829         * spellcheck.h (levenshtein_distance):  Add 4-param decl.
4831 2015-11-13  David Malcolm  <dmalcolm@redhat.com>
4833         * Makefile.in (OBJS): Add spellcheck.o.
4834         * spellcheck.c: New file.
4835         * spellcheck.h: New file.
4837 2015-11-13  James Bowman  <james.bowman@ftdichip.com>
4839         * config/ft32/ft32.md (*sne): New insn pattern.
4841 2015-11-12  Brad Lucier  <lucier@math.purdue.edu>
4843         * cprop.c (is_too_expensive): Remove.
4844         (gcse.h): Include.
4845         (one_cprop_pass): Call gcse_or_cprop_is_too_expensive, not
4846         is_too_expensive.
4847         * gcse.h (gcse_or_cprop_is_too_expensive): Declare.
4848         * gcse.c (is_too_expensive): Rename to ...
4849         (gcse_or_cprop_is_too_expensive): ... this.
4850         Expand warning to add required size of max-gcse-memory.
4851         (one_pre_gcse_pass): Use it.
4852         (one_code_hoisting_pass): Use it.
4853         * params.def (max-gcse-memory): Increase from 50MB to 128MB.
4855 2015-11-12  James Norris  <jnorris@codesourcery.com>
4856             Joseph Myers  <joseph@codesourcery.com>
4858         * gimple-pretty-print.c (dump_gimple_omp_target): Handle
4859         GF_OMP_TARGET_KIND_OACC_DECLARE.
4860         * gimple.h (enum gf_mask): Add GF_OMP_TARGET_KIND_OACC_DECLARE.
4861         (is_gomple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_DECLARE.
4862         * gimplify.c (oacc_declare_returns): New.
4863         (gimplify_bind_expr): Prepend 'exit' stmt to cleanup.
4864         (device_resident_p): New function.
4865         (oacc_default_clause): Handle device_resident clause.
4866         (gimplify_oacc_declare_1, gimplify_oacc_declare): New functions.
4867         (gimplify_expr): Handle OACC_DECLARE.
4868         * omp-builtins.def (BUILT_IN_GOACC_DECLARE): New builtin.
4869         * omp-low.c (expand_omp_target): Handle
4870         GF_OMP_TARGET_KIND_OACC_DECLARE and BUILTIN_GOACC_DECLARE.
4871         (build_omp_regions_1): Handlde GF_OMP_TARGET_KIND_OACC_DECLARE.
4872         (lower_omp_target): Handle GF_OMP_TARGET_KIND_OACC_DECLARE,
4873         GOMP_MAP_DEVICE_RESIDENT and GOMP_MAP_LINK.
4874         (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_OACC_DECLARE.
4875         * tree-pretty-print.c (dump_omp_clause): Handle GOMP_MAP_LINK and
4876         GOMP_MAP_DEVICE_RESIDENT.
4878 2015-11-12  Christophe Lyon  <christophe.lyon@linaro.org>
4880         [ARM] Remove neon-testgen.ml and generated tests.
4882         * config/arm/neon-testgen.ml: Remove.
4884 2015-11-12  Jim Wilson  <jim.wilson@linaro.org>
4886         * config/aarch64/aarch64-cores.def (qdf24xx): New.
4887         * config/aarch64/aarch64-tune.md: Regenerated.
4888         * config/arm/arm-cores.def (qdf24xx): New.
4889         * config/arm/arm-tables.opt, config/arm/arm-tune.md: Regenerated.
4890         * config/arm/bpabi.h (BE8_LINK_SPEC): Add qdf24xx support.
4891         * doc/invoke.texi (AArch64 Options/-mtune): Add "qdf24xx".
4892         (ARM Options/-mtune): Likewise.
4894 2015-11-12  Martin Liska  <mliska@suse.cz>
4896         * config/i386/i386.c (ix86_valid_target_attribute_p):
4897         Finalize options at the of the function.
4898         * gcc.c (driver_get_configure_time_options): Call newly
4899         introduced init_opts_obstack.
4900         * lto-wrapper.c (main): Likewise.
4901         * opts.c (init_opts_obstack): New function.
4902         (init_options_struct): Call newly introduced init_opts_obstack.
4903         * opts.h (init_options_struct): Declare.
4905 2015-11-12  Martin Liska  <mliska@suse.cz>
4907         PR ipa/68035
4908         * ipa-icf.c (void sem_item::set_hash): New function.
4909         (sem_function::get_hash): Use renamed m_hash member variable.
4910         (sem_item::update_hash_by_addr_refs): Utilize get_hash.
4911         (sem_item::update_hash_by_local_refs): Likewise.
4912         (sem_variable::get_hash): Use renamed m_hash member variable.
4913         (sem_item_optimizer::update_hash_by_addr_refs): Utilize get_hash.
4914         (sem_item_optimizer::build_hash_based_classes): Utilize set_hash.
4915         (sem_item_optimizer::build_graph): As the hash value of an item
4916         is lazy initialized, force the calculation.
4917         * ipa-icf.h (set_hash): Declare new function and rename hash member
4918         variable to m_hash.
4920 2015-11-12  Richard Biener  <rguenther@suse.de>
4922         * tree-vectorizer.h (vect_slp_analyze_data_ref_dependences):
4923         Rename to vect_slp_analyze_instance_dependence.
4924         * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
4925         Remove WAR special-case.
4926         (vect_slp_analyze_node_dependences): Instead add more specific
4927         code here, not relying on other instances being vectorized.
4928         (vect_slp_analyze_instance_dependence): Adjust accordingly.
4929         * tree-vect-slp.c (vect_build_slp_tree_1): Remove excessive
4930         vertical space in dump files.
4931         (vect_print_slp_tree): Likewise.
4932         (vect_analyze_slp_instance): Dump a header for the final SLP tree.
4933         (vect_slp_analyze_bb_1): Delay computing relevant stmts and
4934         not vectorized stmts until after dependence analysis removed
4935         instances.  Merge alignment and dependence checks.
4936         * tree-vectorizer.c (pass_slp_vectorize::execute): Clear visited
4937         flag on all stmts.
4939 2015-11-12  Evandro Menezes  <e.menezes@samsung.com>
4941         * config/aarch64/aarch64-protos.h (tune_params): Add new members
4942         "max_case_values" and "cache_line_size".
4943         * config/aarch64/aarch64.c (aarch64_case_values_threshold): New
4944         function.
4945         (aarch64_override_options_internal): Tune heuristics based on new
4946         members in "tune_params".
4947         (TARGET_CASE_VALUES_THRESHOLD): Define macro.
4949 2015-11-12  Richard Biener  <rguenther@suse.de>
4951         PR tree-optimization/68306
4952         * tree-vect-data-refs.c (verify_data_ref_alignment): Remove
4953         relevant and vectorizable checks here.
4954         (vect_verify_datarefs_alignment): Add relevant check here.
4956 2015-11-12  Nathan Sidwell  <nathan@codesourcery.com>
4958         * gimplify.c (oacc_default_clause): New.
4959         (omp_notice_variable): Call it.
4961 2015-11-12  Ilya Enkovich  <enkovich.gnu@gmail.com>
4963         PR tree-optimization/68305
4964         * tree-vect-slp.c (vect_get_constant_vectors): Support
4965         COND_EXPR with SSA_NAME as a condition.
4967 2015-11-12  Eric Botcazou  <ebotcazou@adacore.com>
4969         * config/visium/visium-protos.h (notice_update_cc): Delete.
4970         (print_operand): Likewise.
4971         (print_operand_address): Likewise.
4973 2015-11-12  Uros Bizjak  <ubizjak@gmail.com>
4975         * config/alpha/alpha.h (FUNCTION_VALUE, LIBCALL_VALUE,
4976         FUNCTION_VALUE_REGNO_P): Remove.
4977         * config/alpha/alpha-protos.h (function_value): Remove.
4978         * config/alpha/alpha.c (function_value): Rename to...
4979         (alpha_function_value_1): ... this.  Make static.
4980         (alpha_function_value, alpha_libcall_value,
4981         alpha_function_value_regno_p): New functions.
4982         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
4983         TARGET_FUNCTION_VALUE_REGNO_P): Define.
4985 2015-11-12  Uros Bizjak  <ubizjak@gmail.com>
4987         * config/alpha/alpha.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
4988         * config/alpha/alpha.c (alpha_memory_latency): Make static.
4989         (alpha_register_move_cost, alpha_memory_move_cost): New functions.
4990         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
4992 2015-11-12  Eric Botcazou  <ebotcazou@adacore.com>
4994         PR target/67265
4995         * config/i386/i386.c (ix86_adjust_stack_and_probe): Remove obsolete
4996         assertion on the CFA register.
4998 2015-11-12  Ilya Enkovich  <enkovich.gnu@gmail.com>
5000         * expr.c (do_store_flag): Expand vector comparison as
5001         VEC_COND_EXPR if vector comparison is not supported by target.
5003 2015-11-12  Renlin Li  <renlin.li@arm.com>
5005         * config/arm/arm.md (addsi3_compare_op2): Make the order of
5006         assembly pattern consistent with constraint order.
5008 2015-11-12  Tom de Vries  <tom@codesourcery.com>
5010         * gen-pass-instances.awk (handle_line): Simplify match regexp.
5012 2015-11-12  Tom de Vries  <tom@codesourcery.com>
5014         * gen-pass-instances.awk (handle_line): Simplify init of
5015         postfix_starts_at.
5017 2015-11-12  Tom de Vries  <tom@codesourcery.com>
5019         * gen-pass-instances.awk (handle_line): Rename var where to
5020         call_starts_at.
5022 2015-11-12  Claudiu Zissulescu  <claziss@synopsys.com>
5024         * config/arc/arc.c (gen_compare_reg): Swap operands also when we
5025         do not expand to rtl.
5027 2015-11-12  Richard Biener  <rguenther@suse.de>
5029         PR tree-optimization/58497
5030         * tree-vect-generic.c: Include gimplify.h.
5031         (tree_vec_extract): Lookup constant/constructor DEFs.
5032         (do_cond): Unshare cond.
5034 2015-11-12  Uros Bizjak  <ubizjak@gmail.com>
5036         * config/i386/i386.c (ix86_legitimate_combined_insn): Reject
5037         combined insn if the alignment of vector mode memory operand
5038         is less than ssememalign.
5040 2015-11-12  Tom de Vries  <tom@codesourcery.com>
5042         * gen-pass-instances.awk (handle_line): Print parentheses and
5043         pass_name explicitly.
5045 2015-11-12  Tom de Vries  <tom@codesourcery.com>
5047         * gen-pass-instances.awk (handle_line): Add pass_num, prefix
5048         and postfix vars.
5050 2015-11-12  Tom de Vries  <tom@codesourcery.com>
5052         * gen-pass-instances.awk (handle_line): Add comments.
5054 2015-11-12  Tom de Vries  <tom@codesourcery.com>
5056         * gen-pass-instances.awk (handle_line): Rename len_of_end to
5057         len_of_close.
5059 2015-11-12  Tom de Vries  <tom@codesourcery.com>
5061         * gen-pass-instances.awk (handle_line): Add len_of_call variable.
5063 2015-11-12  Tom de Vries  <tom@codesourcery.com>
5065         * gen-pass-instances.awk (handle_line): Restructure using early-out.
5067 2015-11-12  Tom de Vries  <tom@codesourcery.com>
5069         * gen-pass-instances.awk (handle_line): Unify semicolon use.
5071 2015-11-12  Tom de Vries  <tom@codesourcery.com>
5073         * gen-pass-instances.awk (handle_line): Remove unused var line_length.
5075 2015-11-12  Tom de Vries  <tom@codesourcery.com>
5077         * gen-pass-instances.awk: Add emacs indent setting.
5079 2015-11-12  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
5081         * fold-const.c (fold_binary_loc) : Move Convert A/B/C to A/(B*C)
5082         to match.pd.
5083         Move Convert A/(B/C) to (A/B)*C to match.pd.
5084         Move Convert C1/(X*C2) into (C1/C2)/X to match.pd.
5085         Move Optimize (X & (-A)) / A where A is a power of 2, to
5086         X >> log2(A) to match.pd.
5088         * match.pd (rdiv (rdiv:s @0 @1) @2): New simplifier.
5089         (rdiv @0 (rdiv:s @1 @2)): New simplifier.
5090         (div (convert? (bit_and @0 INTEGER_CST@1)) INTEGER_CST@2):
5091         New simplifier.
5092         (rdiv REAL_CST@0 (mult @1 REAL_CST@2)): New simplifier.
5094 2015-11-12  Charles Baylis  <charles.baylis@linaro.org>
5096         * config/arm/neon.md: (neon_vld2_lane<mode>): Remove unused max
5097         variable.
5098         (neon_vst2_lane<mode>): Likewise.
5099         (neon_vld3_lane<mode>): Likewise.
5100         (neon_vst3_lane<mode>): Likewise.
5101         (neon_vld4_lane<mode>): Likewise.
5102         (neon_vst4_lane<mode>): Likewise.
5104 2015-11-11  Aditya Kumar  <aditya.k7@samsung.com>
5105             Sebastian Pop  <s.pop@samsung.com>
5107         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
5108         New member codegen_error
5109         (translate_isl_ast_for_loop): Remove call to single_succ_edge and
5110         early return.
5111         (translate_isl_ast_node_user): Early return in case of error.
5112         (translate_isl_ast_to_gimple::translate_isl_ast): Same.
5113         (translate_isl_ast_to_gimple::translate_pending_phi_nodes): New.
5114         (add_parameters_to_ivs_params): Remove macro.
5115         (graphite_regenerate_ast_isl): Add if_region pointer to region.
5116         * graphite-poly.c (new_poly_dr): Remove macro.
5117         (print_pdr): Same.
5118         (new_gimple_poly_bb): Same.
5119         (free_gimple_poly_bb): Same.
5120         (print_scop_params): Same.
5121         * graphite-poly.h (struct poly_dr): Same.
5122         (struct poly_bb): Add new_bb.
5123         (gbb_from_bb): Remove dead code.
5124         (pbb_from_bb): Same.
5125         * graphite-scop-detection.c (parameter_index_in_region_1): Same.
5126         (parameter_index_in_region): Same.
5127         (find_scop_parameters): Same.
5128         (build_cross_bb_scalars_def): New.
5129         (build_cross_bb_scalars_use): New.
5130         (graphite_find_cross_bb_scalar_vars): New
5131         (try_generate_gimple_bb): Reads and Writes.
5132         (build_alias_set): Move.
5133         (gather_bbs::before_dom_children): Gather bbs visited.
5134         (build_scops): call build_alias_set.
5135         * graphite-sese-to-poly.c (phi_arg_in_outermost_loop): Delete.
5136         (remove_simple_copy_phi): Delete.
5137         (remove_invariant_phi): Delete.
5138         (simple_copy_phi_p): Delete.
5139         (reduction_phi_p): Delete.
5140         (isl_id_for_dr): Remove unused param.
5141         (parameter_index_in_region_1): Remove macro usage.
5142         (set_scop_parameter_dim): Same.
5143         (add_param_constraints): Same.
5144         (add_conditions_to_constraints): Same
5145         (build_scop_iteration_domain): Same.
5146         (pdr_add_alias_set): Comment.
5147         (add_scalar_version_numbers): New.
5148         (build_poly_dr): ISL id.
5149         (build_scop_drs): Move.
5150         (build_poly_sr_1): Same.
5151         (insert_stmts): Remove.
5152         (build_poly_sr): New.
5153         (new_pbb_from_pbb): Delete.
5154         (insert_out_of_ssa_copy_on_edge): Delete.
5155         (create_zero_dim_array): Delete.
5156         (scalar_close_phi_node_p): Delete.
5157         (propagate_expr_outside_region): Delete.
5158         (rewrite_close_phi_out_of_ssa): Delete.
5159         (rewrite_phi_out_of_ssa): Delete.
5160         (rewrite_degenerate_phi): Delete.
5161         (rewrite_reductions_out_of_ssa): Delete.
5162         (rewrite_cross_bb_scalar_dependence): Delete.
5163         (handle_scalar_deps_crossing_scop_limits):
5164         (rewrite_cross_bb_scalar_deps): Delete.
5165         (build_poly_scop): Remove calls to out-of-ssa functions.
5166         * graphite.c (graphite_transform_loops): Early return in case of
5167         codegen error.
5168         * sese.c (debug_rename_map_1): Delete.
5169         (debug_rename_map): Delete.
5170         (sese_record_loop): Remove macro.
5171         (build_sese_loop_nests): Same.
5172         (new_sese_info): Same.
5173         (free_sese_info): Same.
5174         (sese_insert_phis_for_liveouts):
5175         (is_loop_closed_ssa_use): New.
5176         (number_of_phi_nodes): New.
5177         (bb_contains_loop_close_phi_nodes): New.
5178         (bb_contains_loop_phi_nodes): New.
5179         (phi_uses_name): New.
5180         (is_valid_rename):
5181         (get_rename): Add old_bb and loop_phi for more precise matching of
5182         exprs.
5183         (set_rename): Pass region.
5184         (later_of_the_two): New.
5185         (gsi_insert_earliest): New.
5186         (collect_all_ssa_names): New.
5187         (substitute_ssa_name): New.
5188         (rename_all_uses): New.
5189         (get_rename_from_scev): New.
5190         (rename_uses): Pass old_bb for more precise matching of exprs.
5191         (get_def_bb_for_const): New.
5192         (get_new_name): New.
5193         (get_loc): New.
5194         (get_edges): New.
5195         (copy_loop_phi_args): New.
5196         (copy_loop_phi_nodes): New.
5197         (get_loop_init_value): New.
5198         (find_init_value): New.
5199         (find_init_value_close_phi): New.
5200         (copy_loop_close_phi_args): New.
5201         (copy_loop_close_phi_nodes): New.
5202         (add_phi_arg_for_new_expr): New.
5203         (copy_cond_phi_args): New.
5204         (copy_cond_phi_nodes): New.
5205         (copy_phi_nodes): New.
5206         (should_copy_to_new_region): New.
5207         (set_rename_for_each_def): New.
5208         (graphite_copy_stmts_from_block): Early return in case of error.
5209         (copy_bb_and_scalar_dependences): Same.
5210         * sese.h (vec_find): New.
5211         (SESE_PARAMS): Delete.
5212         (SESE_LOOPS): Delete.
5213         (SESE_LOOP_NEST): Delete.
5214         (sese_contains_loop): Remove macro usage.
5215         (sese_nb_params): Same.
5216         (struct gimple_poly_bb): Added read_scalar_refs, write_scalar_refs.
5218 2015-11-11  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
5220         * graphite-sese-to-poly.c (build_scop_original_schedule): Call
5221         isl_union_map_add_map on every pbb->schedule.
5223 2015-11-11  Tom de Vries  <tom@codesourcery.com>
5225         * tree-parloops.c (create_parallel_loop): Return void.
5227 2015-11-11  Tom de Vries  <tom@codesourcery.com>
5229         * tree-parloops.c (transform_to_exit_first_loop_alt): Insert new exit
5230         block only when needed.
5232 2015-11-11  Uros Bizjak  <ubizjak@gmail.com>
5234         * config/alpha/alpha-protos.h (print_operand): Remove.
5235         (print_operand_address): Remove.
5236         * config/alpha/alpha.h (PRINT_OPERAND): Remove.
5237         (PRINT_OPERAND_ADDRESS): Remove.
5238         (PRINT_OPERAND_PUNCT_VALID_P): Remove.
5239         * config/alpha/alpha.c (TARGET_PRINT_OPERAND): New hook define.
5240         (TARGET_PRINT_OPERAND_ADDRESS): New hook define.
5241         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): New hook define.
5242         (print_operand_address): Rename to...
5243         (alpha_print_operand_address): ...this and make static.
5244         (print_operand): Rename to...
5245         (alpha_print_operand): ...this and make static.
5246         (alpha_print_operand_punct_valid_p): New static function.
5248 2015-11-11  Richard Biener  <rguenther@suse.de>
5250         * tree-vectorizer.h (vect_slp_analyze_and_verify_instance_alignment):
5251         Declare.
5252         (vect_analyze_data_refs_alignment): Make loop vect specific.
5253         (vect_verify_datarefs_alignment): Likewise.
5254         * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependences):
5255         Add missing continue.
5256         (vect_compute_data_ref_alignment): Export.
5257         (vect_compute_data_refs_alignment): Merge into...
5258         (vect_analyze_data_refs_alignment): ... this.
5259         (verify_data_ref_alignment): Split out from ...
5260         (vect_verify_datarefs_alignment): ... here.
5261         (vect_slp_analyze_and_verify_node_alignment): New function.
5262         (vect_slp_analyze_and_verify_instance_alignment): Likewise.
5263         * tree-vect-slp.c (vect_supported_load_permutation_p): Remove
5264         misplaced checks on alignment.
5265         (vect_slp_analyze_bb_1): Add fatal output parameter.  Do
5266         alignment analysis after SLP discovery and do it per instance.
5267         (vect_slp_bb): When vect_slp_analyze_bb_1 fatally failed do not
5268         bother to re-try using different vector sizes.
5270 2015-11-11  Nathan Sidwell  <nathan@codesourcery.com>
5271             Cesar Philippidis  <cesar@codesourcery.com>
5273         * gimplify.c (enum omp_region_type): Add ORT_ACC,
5274         ORT_ACC_DATA, ORT_ACC_PARALLEL, ORT_ACC_KERNELS.  Adjust ORT_NONE.
5275         (gimple_add_tmp_var): Add ORT_ACC checks.
5276         (gimplify_var_or_parm_decl): Likewise.
5277         (omp_firstprivatize_variable): Likewise. Use ORT_TARGET_DATA as a mask.
5278         (omp_add_variable): Look in outer contexts for openacc and allow
5279         reductions with other sharing. Add ORT_ACC and ORT_TARGET_DATA checks.
5280         (omp_notice_variable, omp_is_private, omp_check_private): Add
5281         ORT_ACC checks.
5282         (gimplify_scan_omp_clauses: Treat ORT_ACC as ORT_WORKSHARE.
5283         Permit private openacc reductions.
5284         (gimplify_oacc_cache): Specify ORT_ACC.
5285         (gimplify_omp_workshare): Adjust OpenACC region types.
5286         (gimplify_omp_target_update): Likewise.
5287         * omp-low.c (scan_sharing_clauses): Remove Openacc firstprivate sorry.
5288         (lower-rec_input_clauses): Don't handle openacc firstprivate
5289         references here.
5290         (lower_omp_target): Emit initializers for openacc firstprivate vars.
5292 2015-11-11  Eric Botcazou  <ebotcazou@adacore.com>
5294         PR target/67265
5295         * ira.c (ira_setup_eliminable_regset): Do not necessarily create the
5296         frame pointer for stack checking if non-call exceptions aren't used.
5297         * config/i386/i386.c (ix86_finalize_stack_realign_flags): Likewise.
5299 2015-11-11  Segher Boessenkool  <segher@kernel.crashing.org>
5301         * simplify-rtx.c (simplify_truncation): Simplify TRUNCATE of AND of
5302         [LA]SHIFTRT.
5304 2015-11-11  Martin Liska  <mliska@suse.cz>
5305             Richard Biener  <rguenther@suse.de>
5307         PR rtl-optimization/68287
5308         * lra-lives.c (lra_create_live_ranges_1): Reserve the right
5309         number of elements.
5311 2015-11-11  Simon Dardis  <simon.dardis@imgtec.com>
5313         * config/mips/mips.c (mips_breakable_sequence_p): New function.
5314         (mips_break_sequence): New function.
5315         (mips_reorg_process_insns): Use them. Use compact branches in selected
5316         situations.
5318 2015-11-11  Alan Lawrence  <alan.lawrence@arm.com>
5320         * fold-const.c (get_array_ctor_element_at_index): Fix whitespace, typo.
5322 2015-11-11  Jiong Wang  <jiong.wang@arm.com>
5323             Jim Wilson  <wilson@gcc.gnu.org>
5325         PR target/67305
5326         * config/arm/arm.md (neon_vector_mem_operand): Return FALSE if strict
5327         be true and eliminable registers mentioned.
5329 2015-11-11  Claudiu Zissulescu  <claziss@synopsys.com>
5331         * common/config/arc/arc-common.c (arc_handle_option): Handle ARCv2
5332         options.
5333         * config/arc/arc-opts.h: Add ARCv2 CPUs.
5334         * config/arc/arc-protos.h (arc_secondary_reload_conv): Prototype.
5335         * config/arc/arc.c (arc_secondary_reload): Handle subreg (reg)
5336         situation, and store instructions with large offsets.
5337         (arc_secondary_reload_conv): New function.
5338         (arc_init): Add ARCv2 options.
5339         (arc_conditional_register_usage): Select the proper register usage
5340         for ARCv2 processors.
5341         (arc_handle_interrupt_attribute): ILINK2 is only valid for ARCv1
5342         architecture.
5343         (arc_compute_function_type): Likewise.
5344         (arc_print_operand): Handle new ARCv2 punctuation characters.
5345         (arc_return_in_memory): ARCv2 ABI returns in registers up to 16 bytes.
5346         (workaround_arc_anomaly, arc_asm_insn_p, arc_loop_hazard): New
5347         function.
5348         (arc_reorg, arc_hazard): Use it.
5349         * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __HS__ and __EM__.
5350         (ASM_SPEC): Add ARCv2 options.
5351         (TARGET_NORM): ARC HS has norm instructions by default.
5352         (TARGET_OPTFPE): Use optimized floating point emulation for ARC HS.
5353         (TARGET_AT_DBR_CONDEXEC): Only for ARC600 family.
5354         (TARGET_EM, TARGET_HS, TARGET_V2, TARGET_MPYW, TARGET_MULTI): Define.
5355         (SIGNED_INT16, TARGET_MPY, TARGET_ARC700_MPY, TARGET_ANY_MPY):
5356         Likewise.
5357         (TARGET_ARC600_FAMILY, TARGET_ARCOMPACT_FAMILY): Likewise.
5358         (TARGET_LP_WR_INTERLOCK): Likewise.
5359         * config/arc/arc.md
5360         (commutative_binary_mult_comparison_result_used, movsicc_insn)
5361         (mulsi3, mulsi3_600_lib, mulsidi3, mulsidi3_700, mulsi3_highpart)
5362         (umulsi3_highpart_i, umulsi3_highpart_int, umulsi3_highpart)
5363         (umulsidi3, umulsidi3_700, cstoresi4, simple_return, p_return_i):
5364         Use it for ARCv2.
5365         (mulhisi3, mulhisi3_imm, mulhisi3_reg, umulhisi3, umulhisi3_imm)
5366         (umulhisi3_reg, umulhisi3_reg, mulsi3_v2, nopv, bswapsi2)
5367         (prefetch, divsi3, udivsi3 modsi3, umodsi3, arcset, arcsetltu)
5368         (arcsetgeu, arcsethi, arcsetls, reload_*_load, reload_*_store)
5369         (extzvsi): New pattern.
5370         * config/arc/arc.opt: New ARCv2 options.
5371         * config/arc/arcEM.md: New file.
5372         * config/arc/arcHS.md: Likewise.
5373         * config/arc/constraints.md (C3p): New constraint, accepts 1 and 2
5374         values.
5375         (Cm2): A signed 9-bit integer constant constraint.
5376         (C62): An unsigned 6-bit integer constant constraint.
5377         (C16): A signed 16-bit integer constant constraint.
5378         * config/arc/predicates.md (mult_operator): Add ARCv2 processort.
5379         (short_const_int_operand): New predicate.
5380         * config/arc/t-arc-newlib: Add ARCv2 multilib options.
5381         * doc/invoke.texi: Add documentation for -mcpu=<archs/arcem>
5382         -mcode-density and -mdiv-rem.
5384 2015-11-11  Julia Koval  <julia.koval@intel.com>
5386         * config/i386/i386.c (m_SKYLAKE_AVX512): Fix typo.
5388 2015-11-11  Julia Koval  <julia.koval@intel.com>
5390         * config/i386/i386.c: Handle "skylake" and "skylake-avx512".
5392 2015-11-11  Martin Liska  <mliska@suse.cz>
5394         * gimple-ssa-strength-reduction.c (create_phi_basis):
5395         Use auto_vec.
5396         * passes.c (release_dump_file_name): New function.
5397         (pass_init_dump_file): Used from this function.
5398         (pass_fini_dump_file): Likewise.
5399         * tree-sra.c (convert_callers_for_node): Use xstrdup_for_dump.
5400         * var-tracking.c (vt_initialize): Use pool_allocator.
5402 2015-11-11  Richard Biener  <rguenth@gcc.gnu.org>
5403             Jiong Wang      <jiong.wang@arm.com>
5405         PR tree-optimization/68234
5406         * tree-vrp.c (vrp_visit_phi_node): Extend SCEV check to those loop PHI
5407         node which estimiated to be VR_VARYING initially.
5409 2015-11-11  Robert Suchanek  <robert.suchanek@imgtec.com>
5411         * regname.c (scan_rtx_reg): Check the matching number of consecutive
5412         registers when tying chains.
5413         (build_def_use): Move terminated_this_insn earlier in the function.
5415 2015-11-10  Mike Frysinger  <vapier@gentoo.org>
5417         * configure.ac: Use = with test and not ==.
5418         * configure: Regenerated.
5420 2015-11-11  David Edelsohn  <dje.gcc@gmail.com>
5422         * config/rs6000/aix.h (TARGET_OS_AIX_CPP_BUILTINS): Add cpu and
5423         machine asserts.  Update defines for 64 bit.
5425 2015-11-11  Charles Baylis  <charles.baylis@linaro.org>
5427         PR target/63870
5428         * config/arm/neon.md (neon_vld1_lane<mode>): Remove error for invalid
5429         lane number.
5430         (neon_vst1_lane<mode>): Likewise.
5431         (neon_vld2_lane<mode>): Likewise.
5432         (neon_vst2_lane<mode>): Likewise.
5433         (neon_vld3_lane<mode>): Likewise.
5434         (neon_vst3_lane<mode>): Likewise.
5435         (neon_vld4_lane<mode>): Likewise.
5436         (neon_vst4_lane<mode>): Likewise.
5438 2015-11-11  Charles Baylis  <charles.baylis@linaro.org>
5440         PR target/63870
5441         * config/arm/arm-builtins.c: (arm_load1_qualifiers) Use
5442         qualifier_struct_load_store_lane_index.
5443         (arm_storestruct_lane_qualifiers) Likewise.
5444         * config/arm/neon.md: (neon_vld1_lane<mode>) Reverse lane numbers for
5445         big-endian.
5446         (neon_vst1_lane<mode>) Likewise.
5447         (neon_vld2_lane<mode>) Likewise.
5448         (neon_vst2_lane<mode>) Likewise.
5449         (neon_vld3_lane<mode>) Likewise.
5450         (neon_vst3_lane<mode>) Likewise.
5451         (neon_vld4_lane<mode>) Likewise.
5452         (neon_vst4_lane<mode>) Likewise.
5454 2015-11-11  Charles Baylis  <charles.baylis@linaro.org>
5456         PR target/63870
5457         * config/arm/arm-builtins.c (enum arm_type_qualifiers): New enumerator
5458         qualifier_struct_load_store_lane_index.
5459         (builtin_arg): New enumerator NEON_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
5460         (arm_expand_neon_args): New parameter. Remove ellipsis. Handle NEON
5461         argument qualifiers.
5462         (arm_expand_neon_builtin): Handle new NEON argument qualifier.
5463         * config/arm/arm.h (NEON_ENDIAN_LANE_N): New macro.
5465 2015-11-10  Nathan Sidwell  <nathan@codesourcery.com>
5467         * config/nvptx/nvptx.opt (moptimize): New flag.
5468         * config/nvptx/nvptx.c (nvptx_option_override): Set nvptx_optimize
5469         default.
5470         (nvptx_optimize_inner): New.
5471         (nvptx_process_pars): Call it when optimizing.
5472         * doc/invoke.texi (Nvidia PTX Options): Document -moptimize.
5474 2015-11-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5476         * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
5477         Remove redundant code.
5479 2015-11-10  Jeff Law  <law@redhat.com>
5481         * config/ft32/ft32.c (ft32_print_operand): Supply mode to
5482         call to output_address.
5483         * config/moxie/moxie.c (moxie_print_operand_address): Similarly.
5484         Add unnamed machine_mode argument.
5486 2015-11-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
5488         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add power9 to hosts that
5489         default to 64-bit.
5491 2015-11-10  Uros Bizjak  <ubizjak@gmail.com>
5493         * config/i386/i386.md (*movabs<mode>_1): Add explicit
5494         size directives for -masm=intel.
5495         (*movabs<mode>_2): Ditto.
5497 2015-11-10  Uros Bizjak  <ubizjak@gmail.com>
5499         * config/i386/i386.c (ix86_print_operand): Remove dead code that
5500         tried to avoid (%rip) for call operands.
5502 2015-11-10  Uros Bizjak  <ubizjak@gmail.com>
5504         * config/i386/i386.c (ix86_print_operand_address_as): Add no_rip
5505         argument.  Do not use RIP relative addressing when no_rip is set.
5506         (ix86_print_operand): Update call to ix86_print_operand_address_as.
5507         (ix86_print_operand_address): Ditto.
5508         * config/i386/i386.md (*movabs<mode>_1): Use %P modifier for
5509         absolute movabs operand 0.  Add square braces for -masm=intel.
5510         (*movabs<mode>_2): Ditto for operand 1.
5512 2015-11-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5514         * config/arm/arm.c (arm_new_rtx_costs, FIX case): Handle
5515         combine_vcvtf2i pattern.
5517 2015-11-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5519         * config/arm/arm.c (neon_valid_immediate): Remove integer
5520         CONST_DOUBLE handling.  It should never occur.
5522 2015-11-10  Matthew Wahab  <matthew.wahab@arm.com>
5524         * config/aarch64/atomics.md (unspecv): Move to iterators.md.
5525         (ATOMIC_LDOP): Likewise.
5526         (atomic_ldop): Likewise.
5527         * config/aarch64/iterators.md (unspecv): Moved from atomics.md.
5528         (ATOMIC_LDOP): Likewise.
5529         (atomic_ldop): Likewise.
5531 2015-11-10  Martin Liska  <mliska@suse.cz>
5533         * alloc-pool.h (allocate_raw): New function.
5534         (operator new (size_t, object_allocator<T> &a)): Use the
5535         function instead of object_allocator::allocate).
5537 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
5539         * config/i386/sse.md (HALFMASKMODE): New attribute.
5540         (DOUBLEMASKMODE): New attribute.
5541         (vec_pack_trunc_qi): New.
5542         (vec_pack_trunc_<mode>): New.
5543         (vec_unpacks_lo_hi): New.
5544         (vec_unpacks_lo_si): New.
5545         (vec_unpacks_lo_di): New.
5546         (vec_unpacks_hi_hi): New.
5547         (vec_unpacks_hi_<mode>): New.
5549 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
5551         * optabs.c (expand_binop_directly): Allow scalar mode for
5552         vec_pack_trunc_optab.
5553         * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
5554         boolean vector producers from pattern sequence when computing VF.
5555         * tree-vect-patterns.c (vect_vect_recog_func_ptrs) Add
5556         vect_recog_mask_conversion_pattern.
5557         (search_type_for_mask): Choose the smallest
5558         type if different size types are mixed.
5559         (build_mask_conversion): New.
5560         (vect_recog_mask_conversion_pattern): New.
5561         (vect_pattern_recog_1): Allow scalar mode for boolean vectype.
5562         * tree-vect-stmts.c (vectorizable_mask_load_store): Support masked
5563         load with pattern.
5564         (vectorizable_conversion): Support boolean vectors.
5565         (free_stmt_vec_info): Allow patterns for statements with no lhs.
5566         * tree-vectorizer.h (NUM_PATTERNS): Increase to 14.
5568 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
5570         * config/i386/i386-protos.h (ix86_expand_sse_movcc): New.
5571         * config/i386/i386.c (ix86_expand_sse_movcc): Make public.
5572         Cast mask to FP mode if required.
5573         * config/i386/sse.md (vcond_mask_<mode><avx512fmaskmodelower>): New.
5574         (vcond_mask_<mode><avx512fmaskmodelower>): New.
5575         (vcond_mask_<mode><sseintvecmodelower>): New.
5576         (vcond_mask_<mode><sseintvecmodelower>): New.
5577         (vcond_mask_v2div2di): New.
5578         (vcond_mask_<mode><sseintvecmodelower>): New.
5579         (vcond_mask_<mode><sseintvecmodelower>): New.
5581 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
5583         * optabs-query.h (get_vcond_mask_icode): New.
5584         * optabs-tree.c (expand_vec_cond_expr_p): Use
5585         get_vcond_mask_icode for VEC_COND_EXPR with mask.
5586         * optabs.c (expand_vec_cond_mask_expr): New.
5587         (expand_vec_cond_expr): Use get_vcond_mask_icode when possible.
5588         * optabs.def (vcond_mask_optab): New.
5589         * tree-vect-patterns.c (vect_recog_bool_pattern): Don't
5590         generate redundant comparison for COND_EXPR.
5591         * tree-vect-stmts.c (vect_is_simple_cond): Allow SSA_NAME
5592         as a condition.
5593         (vectorizable_condition): Likewise.
5594         * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow
5595         cond_exp with no embedded comparison.
5596         (vect_build_slp_tree_1): Likewise.
5598 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
5600         * config/i386/sse.md (maskload<mode>): Rename to ...
5601         (maskload<mode><sseintvecmodelower>): ... this.
5602         (maskstore<mode>): Rename to ...
5603         (maskstore<mode><sseintvecmodelower>): ... this.
5604         (maskload<mode><avx512fmaskmodelower>): New.
5605         (maskstore<mode><avx512fmaskmodelower>): New.
5607 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
5609         * internal-fn.c (expand_MASK_LOAD): Adjust to maskload optab changes.
5610         (expand_MASK_STORE): Adjust to maskstore optab changes.
5611         * optabs-query.c (can_vec_mask_load_store_p): Add MASK_MODE arg.
5612          Adjust to maskload, maskstore optab changes.
5613         * optabs-query.h (can_vec_mask_load_store_p): Add MASK_MODE arg.
5614         * optabs.def (maskload_optab): Transform into convert optab.
5615         (maskstore_optab): Likewise.
5616         * tree-if-conv.c (ifcvt_can_use_mask_load_store): Adjust to
5617         can_vec_mask_load_store_p signature change.
5618         (predicate_mem_writes): Use boolean mask.
5619         * tree-vect-stmts.c (vectorizable_mask_load_store): Adjust to
5620         can_vec_mask_load_store_p signature change.  Allow invariant masks.
5621         (vectorizable_operation): Ignore type precision for boolean vectors.
5623 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
5625         * expr.c (do_store_flag): Use expand_vec_cmp_expr for mask results.
5626         (const_vector_mask_from_tree): New.
5627         (const_vector_from_tree): Use const_vector_mask_from_tree
5628         for boolean vectors.
5629         * optabs-query.h (get_vec_cmp_icode): New.
5630         * optabs-tree.c (expand_vec_cmp_expr_p): New.
5631         * optabs-tree.h (expand_vec_cmp_expr_p): New.
5632         * optabs.c (vector_compare_rtx): Add OPNO arg.
5633         (expand_vec_cond_expr): Adjust to vector_compare_rtx change.
5634         (expand_vec_cmp_expr): New.
5635         * optabs.def (vec_cmp_optab): New.
5636         (vec_cmpu_optab): New.
5637         * optabs.h (expand_vec_cmp_expr): New.
5638         * tree-vect-generic.c (expand_vector_comparison): Add vector
5639         comparison optabs check.
5640         * tree-vect-loop.c (vect_determine_vectorization_factor):  Ignore mask
5641         operations for VF.  Add mask type computation.
5642         * tree-vect-stmts.c (get_mask_type_for_scalar_type): New.
5643         (vectorizable_comparison): New.
5644         (vect_analyze_stmt): Add vectorizable_comparison.
5645         (vect_transform_stmt): Likewise.
5646         (vect_init_vector): Support boolean vector invariants.
5647         (vect_get_vec_def_for_operand): Add VECTYPE arg.
5648         (vectorizable_condition): Directly provide vectype for invariants
5649         used in comparison.
5650         * tree-vectorizer.h (get_mask_type_for_scalar_type): New.
5651         (enum vect_var_kind): Add vect_mask_var.
5652         (enum stmt_vec_info_type): Add comparison_vec_info_type.
5653         (vectorizable_comparison): New.
5654         (vect_get_vec_def_for_operand): Add VECTYPE arg.
5655         * tree-vect-data-refs.c (vect_get_new_vect_var): Support vect_mask_var.
5656         (vect_create_destination_var): Likewise.
5657         * tree-vect-patterns.c (check_bool_pattern): Check fails
5658         if we can vectorize comparison directly.
5659         (search_type_for_mask): New.
5660         (vect_recog_bool_pattern): Support cases when bool pattern check fails.
5661         * tree-vect-slp.c (vect_build_slp_tree_1): Allow
5662         comparison statements.
5663         (vect_get_constant_vectors): Support boolean vector constants.
5664         * config/i386/i386-protos.h (ix86_expand_mask_vec_cmp): New.
5665         (ix86_expand_int_vec_cmp): New.
5666         (ix86_expand_fp_vec_cmp): New.
5667         * config/i386/i386.c (ix86_expand_sse_cmp): Allow NULL for
5668         op_true and op_false.
5669         (ix86_int_cmp_code_to_pcmp_immediate): New.
5670         (ix86_fp_cmp_code_to_pcmp_immediate): New.
5671         (ix86_cmp_code_to_pcmp_immediate): New.
5672         (ix86_expand_mask_vec_cmp): New.
5673         (ix86_expand_fp_vec_cmp): New.
5674         (ix86_expand_int_sse_cmp): New.
5675         (ix86_expand_int_vcond): Use ix86_expand_int_sse_cmp.
5676         (ix86_expand_int_vec_cmp): New.
5677         (ix86_get_mask_mode): New.
5678         (TARGET_VECTORIZE_GET_MASK_MODE): New.
5679         * config/i386/sse.md (avx512fmaskmodelower): New.
5680         (vec_cmp<mode><avx512fmaskmodelower>): New.
5681         (vec_cmp<mode><sseintvecmodelower>): New.
5682         (vec_cmpv2div2di): New.
5683         (vec_cmpu<mode><avx512fmaskmodelower>): New.
5684         (vec_cmpu<mode><sseintvecmodelower>): New.
5685         (vec_cmpuv2div2di): New.
5687 2015-11-10  Richard Biener  <rguenther@suse.de>
5689         PR tree-optimization/68240
5690         * tree-ssa-sccvn.c (cond_stmts_equal_p): Handle commutative compares
5691         properly.
5692         (visit_phi): For PHIs with just a single executable edge
5693         take its value directly.
5694         (expressions_equal_p): Handle VN_TOP properly.
5696 2015-11-10  Richard Biener  <rguenther@suse.de>
5698         * tree-vect-data-refs.c (vect_slp_analyze_node_dependences):
5699         Handle memory using/clobbering stmts without a STMT_VINFO_DATA_REF
5700         conservatively.
5702 2015-11-10  Richard Biener  <rguenther@suse.de>
5704         PR tree-optimization/56118
5705         * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Make equal
5706         cost favor vectorized version.
5708 2015-11-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5710         * config/aarch64/aarch64.md (<neg_not_op><mode>cc): New define_expand.
5711         * config/aarch64/iterators.md (NEG_NOT): New code iterator.
5712         (neg_not_op): New code attribute.
5714 2015-11-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5716         * ifcvt.c (noce_try_inverse_constants): New function.
5717         (noce_process_if_block): Call it.
5718         * optabs.h (emit_conditional_neg_or_complement): Declare prototype.
5719         * optabs.def (negcc_optab, notcc_optab): Declare.
5720         * optabs.c (emit_conditional_neg_or_complement): New function.
5721         * doc/tm.texi (Standard Names): Document negcc, notcc names.
5723 2015-11-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5725         PR rtl-optimization/68236
5726         * haifa-sched.c (autopref_multipass_dfa_lookahead_guard): Return 0
5727         if insn_queue doesn't exist.
5728         (haifa_sched_finish): Reset insn_queue to NULL.
5730 2015-11-10  Robert Suchanek  <robert.suchanek@imgtec.com>
5732         * regrename.c (create_new_chain): Initialize renamed and tied_chain.
5733         (build_def_use): Initialize terminated_this_insn.
5734         (find_best_rename_reg): Pick and check register from the tied chain.
5735         (regrename_do_replace): Mark head as renamed.
5736         (struct du_head *terminated_this_insn). New static variable.
5737         (scan_rtx_reg): Tie chains in move insns.  Set terminated_this_insn.
5738         * regrename.h (struct du_head): Add tied_chain, renamed members.
5740 2015-11-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5742         PR bootstrap/68256
5743         * config/aarch64/aarch64.c (aarch64_use_constant_blocks_p):
5744         Return false.
5746 2015-11-09  Eric Botcazou  <ebotcazou@adacore.com>
5748         PR target/57845
5749         * config/sparc/sparc.c (sparc_function_value_1): In 32-bit mode, do
5750         not promote the mode for aggregate types.
5752 2015-11-09  Nathan Sidwell  <nathan@codesourcery.com>
5754         * omp-low.h (replace_oacc_fn_attrib, build_oacc_routine_dims): Declare.
5755         * omp-low.c (build_oacc_routine_dims): New.
5757 2015-11-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
5759         * config/rs6000/constraints.md (wF constraint): New constraints
5760         for power9/toc fusion.
5761         (wG constraint): Likewise.
5763         * config/rs6000/predicates.md (u6bit_cint_operand): New
5764         predicate, recognize 0..63.
5765         (upper16_cint_operand): New predicate for power9 and toc fusion.
5766         (fpr_reg_operand): Likewise.
5767         (toc_fusion_or_p9_reg_operand): Likewise.
5768         (toc_fusion_mem_raw): Likewise.
5769         (toc_fusion_mem_wrapped): Likewise.
5770         (fusion_gpr_addis): If power9 fusion, allow fusion for a larger
5771         address range.
5772         (fusion_gpr_mem_combo): Delete, use fusion_addis_mem_combo_load
5773         instead.
5774         (fusion_addis_mem_combo_load): Add support for power9 fusion of
5775         floating point loads, floating point stores, and gpr stores.
5776         (fusion_addis_mem_combo_store): Likewise.
5777         (fusion_offsettable_mem_operand): Likewise.
5779         * config/rs6000/rs6000-protos.h (emit_fusion_addis): Add declarations.
5780         (emit_fusion_load_store): Likewise.
5781         (fusion_p9_p): Likewise.
5782         (expand_fusion_p9_load): Likewise.
5783         (expand_fusion_p9_store): Likewise.
5784         (emit_fusion_p9_load): Likewise.
5785         (emit_fusion_p9_store): Likewise.
5786         (fusion_wrap_memory_address): Likewise.
5788         * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add new
5789         elements for power9 fusion.
5790         (rs6000_debug_print_mode): Rework debug information to print more
5791         information about fusion.
5792         (rs6000_init_hard_regno_mode_ok): Setup for power9 fusion support.
5793         (rs6000_legitimate_address_p): Recognize toc fusion as a valid
5794         offsettable memory address.
5795         (rs6000_rtx_costs): Update costs for new ISA 3.0 instructions.
5796         (emit_fusion_gpr_load): Move most of the code from
5797         emit_fusion_gpr_load into emit_fusion-addis that handles both
5798         power8 and power9 fusion.
5799         (emit_fusion_addis): Likewise.
5800         (emit_fusion_load_store): Likewise.
5801         (fusion_wrap_memory_address): Add support for TOC fusion.
5802         (fusion_split_address): Likewise.
5803         (fusion_p9_p): Add support for power9 fusion.
5804         (expand_fusion_p9_load): Likewise.
5805         (expand_fusion_p9_store): Likewise.
5806         (emit_fusion_p9_load): Likewise.
5807         (emit_fusion_p9_store): Likewise.
5809         * config/rs6000/rs6000.h (TARGET_EXTSWSLI): Macros for support for
5810         new instructions in ISA 3.0.
5811         (TARGET_CTZ): Likewise.
5812         (TARGET_TOC_FUSION_INT): Macros for power9 fusion support.
5813         (TARGET_TOC_FUSION_FP): Likewise.
5815         * config/rs6000/rs6000.md (UNSPEC_FUSION_P9): New power9/toc
5816         fusion unspecs.
5817         (UNSPEC_FUSION_ADDIS): Likewise.
5818         (QHSI mode iterator): New iterator for power9 fusion.
5819         (GPR_FUSION): Likewise.
5820         (FPR_FUSION): Likewise.
5821         (mod<mode>3): Add support for ISA 3.0 modulus instructions.
5822         (umod<mode>3): Likewise.
5823         (divmod peephole): Likewise.
5824         (udivmod peephole): Likewise.
5825         (ctz<mode>2): Add support for ISA 3.0 count trailing zeros scalar
5826         instructions.
5827         (ctz<mode>2_h): Likewise.
5828         (ashdi3_extswsli): Add support for ISA 3.0 EXTSWSLI instruction.
5829         (ashdi3_extswsli_dot): Likewise.
5830         (ashdi3_extswsli_dot2): Likewise.
5831         (power9 fusion splitter): New power9/toc fusion support.
5832         (toc_fusionload_<mode>): Likewise.
5833         (toc_fusionload_di): Likewise.
5834         (fusion_gpr_load_<mode>): Update predicate function.
5835         (power9 fusion peephole2s): New power9/toc fusion support.
5836         (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
5837         (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_store): Likewise.
5838         (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_load): Likewise.
5839         (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
5840         (fusion_p9_<mode>_constant): Likewise.
5842 2015-11-09  Steve Ellcey  <sellcey@imgtec.com>
5844         * optabs.c (prepare_libcall_arg): New function.
5845         (expand_fixed_convert): Add call to prepare_libcall_arg.
5847 2015-11-09  Nikolai Bozhenov  <n.bozhenov@samsung.com>
5849         * sched-int.h (dump_rgn_dependencies_dot): Declare
5850         * sched-rgn.c (dump_rgn_dependencies_dot): New function
5851         * print-rtl.h (print_insn): Add prototype
5853         * haifa-sched.c (setup_sched_dump): Don't redirect output to stderr.
5854         * common.opt (-fsched-verbose): Set default value to 1.
5855         * invoke.texi (-fsched-verbose): Update the option's description.
5857 2015-11-09  Eric Botcazou  <ebotcazou@adacore.com>
5859         * config/visium/visium.h (PRINT_OPERAND): Delete.
5860         (PRINT_OPERAND_PUNCT_VALID_P): Likewise.
5861         (PRINT_OPERAND_ADDRESS): Likewise.
5862         * config/visium/visium.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define
5863         to...
5864         (visium_print_operand_punct_valid_p): ...this.  New function.
5865         (TARGET_PRINT_OPERAND): Define to...
5866         (print_operand): Rename to...
5867         (visium_print_operand): ...this.
5868         (TARGET_PRINT_OPERAND_ADDRESS): Define to...
5869         (visium_output_address): Rename to...
5870         (visium_print_operand_address): ...this.
5871         (print_operand_address): Delete.
5873 2015-11-09  Eric Botcazou  <ebotcazou@adacore.com>
5875         PR middle-end/68259
5876         * tree.h (reverse_storage_order_for_component_p) <COMPONENT_REF>:
5877         Check that the type of the first operand is an aggregate type.
5879 2015-11-09  Nathan Sidwell  <nathan@codesourcery.com>
5881         * omp-low.c: Fix some OpenACC comment typos.
5882         (lower_reduction_clauses): Remove BUILT_IN_GOACC_GET_THREAD_NUM call.
5883         * omp-builtins.def (BUILT_IN_GOACC_GET_THREAD_NUM,
5884         BUILT_IN_GOACC_GET_NUM_THREADS): Delete.
5886 2015-11-09  Uros Bizjak  <ubizjak@gmail.com>
5888         * config/i386/i386.md (*strmovqi_1): Fix insn enable condition.
5890 2015-11-09  Jeff Law  <law@redhat.com>
5892         * tree-ssanames.c (verify_ssaname_freelists): Simplify check for
5893         being in gimple/ssa form.  Remove redundant check for SSA_NAME.
5894         Fix comment typo.
5896 2015-11-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
5897             Peter Bergner  <bergner@vnet.ibm.com>
5899         * config/rs6000/rs6000.opt (-mpower9-fusion): Add new switches for
5900         ISA 3.0 (power9).
5901         (-mpower9-vector): Likewise.
5902         (-mpower9-dform): Likewise.
5903         (-mpower9-minmax): Likewise.
5904         (-mtoc-fusion): Likewise.
5905         (-mmodulo): Likewise.
5906         (-mfloat128-hardware): Likewise.
5908         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add option
5909         mask for ISA 3.0 (power9).
5910         (POWERPC_MASKS): Add new ISA 3.0 switches.
5911         (power9 cpu): Add power9 cpu.
5913         * config/rs6000/rs6000.h (ASM_CPU_POWER9_SPEC): Add support for power9.
5914         (ASM_CPU_SPEC): Likewise.
5915         (EXTRA_SPECS): Likewise.
5917         * config/rs6000/rs6000-opts.h (enum processor_type): Add
5918         PROCESSOR_POWER9.
5920         * config/rs6000/rs6000.c (power9_cost): Initial cost setup for power9.
5921         (rs6000_debug_reg_global): Add support for power9 fusion.
5922         (rs6000_setup_reg_addr_masks): Cache mode size.
5923         (rs6000_option_override_internal): Until real power9 tuning is
5924         added, use -mtune=power8 for -mcpu=power9.
5925         (rs6000_setup_reg_addr_masks): Do not allow pre-increment,
5926         pre-decrement, or pre-modify on SFmode/DFmode if we allow the use
5927         of Altivec registers.
5928         (rs6000_option_override_internal): Add support for ISA 3.0 switches.
5929         (rs6000_loop_align): Add support for power9 cpu.
5930         (rs6000_file_start): Likewise.
5931         (rs6000_adjust_cost): Likewise.
5932         (rs6000_issue_rate): Likewise.
5933         (insn_must_be_first_in_group): Likewise.
5934         (insn_must_be_last_in_group): Likewise.
5935         (force_new_group): Likewise.
5936         (rs6000_register_move_cost): Likewise.
5937         (rs6000_opt_masks): Likewise.
5939         * config/rs6000/rs6000.md (cpu attribute): Add power9.
5940         * config/rs6000/rs6000-tables.opt: Regenerate.
5942         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
5943         _ARCH_PWR9 if power9 support is available.
5945         * config/rs6000/aix61.h (ASM_CPU_SPEC): Add power9.
5946         * config/rs6000/aix53.h (ASM_CPU_SPEC): Likewise.
5948         * configure.ac: Determine if the assembler supports the ISA 3.0
5949         instructions.
5950         * config.in (HAVE_AS_POWER9): Likewise.
5951         * configure: Regenerate.
5953         * doc/invoke.texi (RS/6000 and PowerPC Options): Document ISA 3.0
5954         switches.
5956 2015-11-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5958         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate):
5959         Remove integer CONST_DOUBLE handling.  It should never occur.
5961 2015-11-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5963         PR target/68129
5964         * config/aarch64/aarch64.h (TARGET_SUPPORTS_WIDE_INT): Define to 1.
5965         * config/aarch64/aarch64.c (aarch64_print_operand, CONST_DOUBLE):
5966         Delete VOIDmode case.  Assert that mode is not VOIDmode.
5967         * config/aarch64/predicates.md (const0_operand): Remove const_double
5968         match.
5970 2015-11-09  Martin Liska  <mliska@suse.cz>
5972         * ipa-inline-analysis.c (estimate_function_body_sizes): Call
5973         body_info release function.
5974         * ipa-prop.c (ipa_release_body_info): New function.
5975         (ipa_analyze_node): Call the function.
5976         (ipa_node_params::~ipa_node_params): Release known_csts.
5977         * ipa-prop.h (ipa_release_body_info): Declare.
5979 2015-11-09  Martin Liska  <mliska@suse.cz>
5981         * gcc.c (record_temp_file): Release name string.
5982         * ifcvt.c (noce_convert_multiple_sets): Use auto_vec instead of vec.
5983         * lra-lives.c (free_live_range_list): Utilize
5984         lra_live_range_pool for allocation and deallocation.
5985         (create_live_range): Likewise.
5986         (copy_live_range): Likewise.
5987         (lra_merge_live_ranges): Likewise.
5988         (remove_some_program_points_and_update_live_ranges): Likewise.
5989         (lra_create_live_ranges_1): Release point_freq_vec that can
5990         be not freed from previous iteration of the function.
5991         * tree-eh.c (lower_try_finally_switch): Use auto_vec instead of vec.
5992         * tree-sra.c (sra_deinitialize): Release all vectors in
5993         base_access_vec.
5994         * tree-ssa-dom.c (free_dom_edge_info): Make the function extern.
5995         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
5996         Release edge_info for a removed edge.
5997         (thread_through_all_blocks): Free region vector.
5998         * tree-ssa.h (free_dom_edge_info): Declare function extern.
6000 2015-11-09  Ilya Enkovich  <enkovich.gnu@gmail.com>
6002         * optabs.c (expand_vec_cond_expr): Always get sign from type.
6003         * tree.c (wide_int_to_tree): Support negative values for boolean.
6004         (build_nonstandard_boolean_type): Use signed type for booleans.
6006 2015-11-09  Richard Biener  <rguenther@suse.de>
6008         PR tree-optimization/68248
6009         * tree-vect-generic.c (expand_vector_operations_1): Handle scalar rhs2.
6011 2015-11-09  Richard Biener  <rguenther@suse.de>
6013         PR tree-optimization/56118
6014         * tree-vectorizer.h (vect_find_last_scalar_stmt_in_slp): Declare.
6015         * tree-vect-slp.c (vect_find_last_scalar_stmt_in_slp): Export.
6016         * tree-vect-data-refs.c (vect_slp_analyze_node_dependences): New
6017         function.
6018         (vect_slp_analyze_data_ref_dependences): Instead of computing
6019         all dependences of the region DRs just analyze the code motions
6020         SLP vectorization will perform.  Remove SLP instances that
6021         cannot have their store/load motions applied.
6022         (vect_analyze_data_refs): Allow DRs without a vectype
6023         in BB vectorization.
6025 2015-11-09  Julian Brown  <julian@codesourcery.com>
6027         * final.c (output_asm_insn): Pass VOIDmode to output_address.
6028         (output_address): Add MODE argument. Pass to print_operand_address
6029         hook.
6030         * targhooks.c (default_print_operand_address): Add MODE argument.
6031         * targhooks.h (default_print_operand_address): Update prototype.
6032         * output.h (output_address): Update prototype.
6033         * target.def (print_operand_address): Add MODE argument.
6034         * config/vax/vax.c (print_operand_address): Pass VOIDmode to
6035         output_address.
6036         (print_operand): Pass access mode to output_address.
6037         * config/mcore/mcore.c (mcore_print_operand_address): Add MODE
6038         argument.
6039         (mcore_print_operand): Update calls to mcore_print_operand_address.
6040         * config/fr30/fr30.c (fr30_print_operand): Pass VOIDmode to
6041         output_address.
6042         * config/lm32/lm32.c (lm32_print_operand): Pass mode in calls to
6043         output_address.
6044         * config/tilegx/tilegx.c (output_memory_reference_mode): Remove
6045         global.
6046         (tilegx_print_operand): Don't set above global. Update calls to
6047         output_address.
6048         (tilegx_print_operand_address): Add MODE argument. Use instead of
6049         output_memory_reference_mode global.
6050         * config/frv/frv.c (frv_print_operand_address): Add MODE argument.
6051         (frv_print_operand): Pass mode to frv_print_operand_address calls.
6052         * config/mn10300/mn10300.c (mn10300_print_operand): Pass mode to
6053         output_address.
6054         * config/cris/cris.c (cris_print_operand_address): Add MODE argument.
6055         (cris_print_operand): Pass mode to output_address calls.
6056         * config/spu/spu.c (print_operand): Pass mode to output_address calls.
6057         * config/aarch64/aarch64.h (aarch64_print_operand)
6058         (aarch64_print_operand_address): Remove prototypes.
6059         * config/aarch64/aarch64.c (aarch64_memory_reference_mode): Delete
6060         global.
6061         (aarch64_print_operand): Make static. Update calls to output_address.
6062         (aarch64_print_operand_address): Add MODE argument. Use instead of
6063         aarch64_memory_reference_mode global.
6064         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define target
6065         hooks.
6066         * config/aarch64/aarch64.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
6067         Delete macro definitions.
6068         * config/pa/pa.c (pa_print_operand): Pass mode in output_address calls.
6069         * config/xtensa/xtensa.c (print_operand): Pass mode in
6070         output_address calls.
6071         * config/h8300/h8300.c (h8300_print_operand_address): Add MODE
6072         argument.
6073         (h83000_print_operand): Update calls to h8300_print_operand_address
6074         and output_address.
6075         * config/ia64/ia64.c (ia64_print_operand_address): Add MODE argument.
6076         * config/tilepro/tilepro.c (output_memory_reference_mode): Delete
6077         global.
6078         (tilepro_print_operand): Pass mode to output_address.
6079         (tilepro_print_operand_address): Add MODE argument. Use instead of
6080         output_memory_reference_mode.
6081         * config/nvptx/nvptx.c (output_decl_chunk, nvptx_assemble_integer)
6082         (nvptx_output_call_insn, nvptx_print_address_operand): Pass VOIDmode
6083         to output_address calls.
6084         (nvptx_print_operand_address): Add MODE argument.
6085         * config/alpha/alpha.c (print_operand): Pass mode argument in
6086         output_address calls.
6087         * config/m68k/m68k.c (print_operand): Pass mode argument in
6088         output_address call.
6089         * config/avr/avr.c (avr_print_operand_address): Add MODE argument.
6090         (avr_print_operand): Update calls to avr_print_operand_address.
6091         * config/sparc/sparc.c (sparc_print_operand_address): Add MODE
6092         argument. Update calls to output_address.
6093         (sparc_print_operand): Pass mode to output_address.
6094         * config/iq2000/iq2000.c (iq2000_print_operand_address): Add MODE
6095         argument.
6096         (iq2000_print_operand): Pass mode in output_address calls.
6097         * config/stormy16/stormy16.c (xstormy16_print_operand_address): Add
6098         MODE argument.
6099         (xstormy16_print_operand): Pass mode to
6100         xstormy16_print_operand_address calls.
6101         * config/mips/mips.c (mips_print_operand): Update calls to
6102         output_address.
6103         (mips_print_operand_address): Add MODE argument.
6104         * config/epiphany/epiphany.c (epiphany_print_operand): Update calls
6105         to output_address.
6106         (epiphany_print_operand_address): Add MODE argument. Add FIXME note.
6107         * config/pdp11/pdp11.c (pdp11_asm_print_operand): Update call to
6108         output_address.
6109         * config/rx/rx.c (rx_print_operand_address): Add MODE argument.
6110         (rx_print_operand): Update calls to output_address,
6111         rx_print_operand_address.
6112         * config/nds32/nds32.c (nds32_print_operand): Update calls to
6113         output_address.
6114         (nds32_print_operand_address): Add MODE argument.
6115         * config/rs6000/rs6000.c (print_operand): Pass mem mode to
6116         output_address calls.
6117         * config/c6x/c6x.c (print_address_offset): Pass mem mode to
6118         output_address call.
6119         (c6x_print_address_operand): Update calls to output_address.
6120         (c6x_print_operand_address): Pass mode to above.
6121         * config/v850/v850.c (v850_print_operand_address): Add MODE argument.
6122         (v850_print_operand): Pass mode to v850_print_operand_address,
6123         output_address.
6124         * config/mmix/mmix.c (mmix_print_operand_address): Add MODE argument.
6125         (mmix_print_operand): Pass mode in output_address calls.
6126         * config/sh/sh.c (sh_print_operand_address): Add MODE argument.
6127         (sh_print_operand): Pass mem mode to output_address,
6128         sh_print_operand_address.
6129         * config/cr16/cr16.c (cr16_print_operand_address): Add MODE argument.
6130         (cr16_print_operand): Pass mode to output_address,
6131         cr16_print_operand_address.
6132         * config/bfin/bfin.c (print_address_operand): Pass VOIDmode to
6133         output_address.
6134         * config/microblaze/microblaze.c (print_operand): Pass mode to
6135         output_address.
6136         * config/nios2/nios2.c (nios2_print_operand): Pass VOIDmode to
6137         output_address.
6138         (nios2_print_operand_address): Add MODE argument. Update call to
6139         nios2_print_operand_address.
6140         * config/s390/s390.c (print_operand): Pass mode to output_address.
6141         * config/m32c/m32c.c (m32c_print_operand_address): Add MODE argument.
6142         * config/arc/arc.c (arc_print_operand): Pass VOIDmode to
6143         output_address.
6144         * config/arm/arm.c (arm_print_operand_address): Add MODE argument.
6145         Use instead of output_memory_reference_mode.
6146         (output_memory_reference_mode): Delete global.
6147         (arm_print_operand): Pass mem mode to output_address.
6148         * config/m32r/m32r.c (m32r_print_operand_address): Add MODE argument.
6149         (m32r_print_operand): Pass mode to output_address.
6150         * config/msp430/msp430.c (msp430_print_operand_addr): Add MODE
6151         argument.
6152         (msp430_print_operand): Pass mode to msp430_print_operand_addr.
6153         * config/i386/i386.c (ix86_print_operand): Pass mode to
6154         output_address calls.
6155         (ix86_print_operand_address): Add MODE argument.
6157 2015-11-09  Eric Botcazou  <ebotcazou@adacore.com>
6159         PR middle-end/68251
6160         * tree-core.h (REF_REVERSE_STORAGE_ORDER): Move around.
6161         * tree.h (REF_REVERSE_STORAGE_ORDER): Change to default_def_flag.
6162         * tree-streamer-in.c (unpack_ts_base_value_fields): Adjust.
6163         * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
6165 2015-11-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6167         PR rtl-optimization/67749
6168         * ifcvt.c (noce_try_cmove_arith): Do not emit move in IF-ELSE
6169         case before emitting the two blocks.  Instead modify the register
6170         in the corresponding final insn of the basic block.
6172 2015-11-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6174         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Allow for differences in
6175         assembler syntax.
6176         Support Solaris ld.
6177         Define HAVE_INITFINI_ARRAY_SUPPORT as 0/1.
6179         * config/sol2.h (SUPPORTS_INIT_PRIORITY): Define to
6180         HAVE_INITFINI_ARRAY_SUPPORT.
6181         * config/initfini-array.h: Check HAVE_INITFINI_ARRAY_SUPPORT value.
6183         * configure.ac (gcc_cv_as_sparc_nobits): Remove.
6184         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section):
6185         Don't check HAVE_AS_SPARC_NOBITS.
6186         Heed SECTION_NOTYPE.
6188         * configure: Regenerate.
6189         * config.in: Regenerate.
6191 2015-11-09  Eric Botcazou  <ebotcazou@adacore.com>
6193         PR middle-end/68253
6194         * fold-const.c (fold_truth_andor_1): Initialize new variables to 0.
6196 2015-11-09  Richard Henderson  <rth@redhat.com>
6198         * config/i386/i386-c.c (ix86_target_macros): Define __SEG_FS,
6199         __SEG_GS, __SEG_TLS.
6200         (ix86_register_pragmas): Register address spaces __seg_fs,
6201         __seg_gs, __seg_tls.
6202         * config/i386/i386-protos.h (enum ix86_address_seg): Remove.
6203         (ADDR_SPACE_SEG_FS, ADDR_SPACE_SEG_GS, ADDR_SPACE_SEG_TLS): New.
6204         (struct ix86_address): Use addr_space_t instead of ix86_address_seg.
6205         * config/i386/i386.c (ix86_decompose_address): Likewise.
6206         (ix86_legitimate_address_p): Likewise.
6207         (memory_address_length): Likewise.  Check mem address space too.
6208         (ix86_print_operand): Use ix86_print_operand_address_as.
6209         (ix86_print_operand_address_as): Rename from
6210         ix86_print_operand_address, add new addr_space_t parameter.
6211         Validate that either the parameter or the ix86_address segment
6212         is default address space.  Handle ADDR_SPACE_SEG_TLS.
6213         (ix86_print_operand_address): New.
6214         (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): New.
6215         (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): New.
6216         (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): New.
6217         (ix86_addr_space_zero_address_valid): New.
6218         (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
6219         * config/i386/i386.h (DEFAULT_TLS_SEG_REG): Use addr_space_t constants.
6220         * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Likewise.
6221         * config/i386/predicates.md (address_no_seg_operand): Likewise.
6222         (vsib_address_operand): Likewise.
6223         (address_mpx_no_base_operand): Likewise.
6224         (address_mpx_no_index_operand): Likewise.
6225         * doc/extend.texi (x86 Named Address Spaces): New section.
6227         * config/i386/i386.c (ix86_check_no_addr_space): New.
6228         (decide_alg): Add have_as parameter.
6229         (alg_usable_p): Likewise; disable rep algorithms if set.
6230         (ix86_expand_set_or_movmem): Notice if either MEM has a
6231         non-default address space.
6232         (ix86_expand_strlen): Likewise.
6233         * config/i386/i386.md (strmov, strset): Likewise.
6234         (*strmovdi_rex_1): Use ix86_check_no_addr_space.
6235         (*strmovsi_1, *strmovqi_1, *rep_movdi_rex64, *rep_movsi, *rep_movqi,
6236         *strsetdi_rex_1, *strsetsi_1, *strsethi_1, *strsetqi_1,
6237         *rep_stosdi_rex64, *rep_stossi, *rep_stosqi, *cmpstrnqi_nz_1,
6238         *cmpstrnqi_1, *strlenqi_1): Likewise.
6240         * config/i386/i386.md (*movabs<mode>_1): Print the full memory rtx.
6241         (*movabs<mode>_2): Likewise.
6243         * dwarf2out.c (modified_type_die): Pass the address space number
6244         through TARGET_ADDR_SPACE_DEBUG to produce the dwarf address class.
6245         * target.def (TARGET_ADDR_SPACE_DEBUG): New.
6246         * targhooks.c (default_addr_space_debug): New.
6247         * targhooks.h (default_addr_space_debug): Declare.
6248         * doc/tm.texi.in (TARGET_ADDR_SPACE_DEBUG): Mark it.
6249         * doc/tm.texi: Rebuild.
6251         * gimple.c (check_loadstore): Return false when 0 is a valid address.
6252         * fold-const.c (const_unop) [ADDR_SPACE_CONVERT_EXPR]: Do not fold
6253         null when 0 is valid in the source address space.
6254         * target.def (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
6255         * targhooks.c (default_addr_space_zero_address_valid): New.
6256         * targhooks.h (default_addr_space_zero_address_valid): Declare.
6257         * doc/tm.texi.in (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): Mark it.
6258         * doc/tm.texi: Rebuild.
6260         * cselib.c (add_mem_for_addr): Compare address spaces when
6261         matching memories.
6262         (cselib_lookup_mem): Likewise.
6263         * fold-const.c (operand_equal_p): Check address spaces of
6264         pointer types before checking integer constants.
6266         PR tree-opt/66768
6267         * tree-ssa-address.c (create_mem_ref_raw): Use a pointer of
6268         the correct type for the base.
6270 2015-11-09  Jeff Law  <law@redhat.com>
6272         * tree-into-ssa.c (names_to_release): No longer static.
6273         * tree-into-ssa.h (names_to_release): Declare.
6274         * tree-ssanames.c (verify_ssaname_freelists): New debug function.
6275         (release_free_names_and_compact_live_names): New function extracted
6276         from pass_release_ssa_names::execute.
6277         (pass_release_ssa_names::execute): Use it.
6279 2015-11-09  Alan Modra  <amodra@gmail.com>
6281         * gensupport.c (add_mnemonic_string): Make len param a size_t.
6282         (gen_mnemonic_setattr): Make "size" var a size_t.  Use
6283         obstack_blank_fast to shrink obstack.  Cast obstack_next_free
6284         return value.
6286 2015-11-09  Segher Boessenkool  <segher@kernel.crashing.org>
6288         PR rtl-optimization/68182
6289         * bb-reorder.c (reorder_basic_blocks_simple): Treat a conditional
6290         branch with only one successor just like unconditional branches.
6292 2015-11-08  Jeff Law  <law@redhat.com>
6294         * tree-ssa-threadupdate.c (register_jump_thraed): Assert that a
6295         non-FSM path has no edges marked with EDGE_DFS_BACK.
6296         (ssa_redirect_edges): No longer call mark_loop_for_removal.
6297         (thread_single_edge, def_split_header_continue_p): Remove.
6298         (bb_ends_with_multiway_branch): Likewise.
6299         (thread_through_loop_header): Remove cases of threading from
6300         latch through the header.  Simplify knowing we won't thread
6301         the latch.
6302         (thread_through_all_blocks): Simplify knowing that only the FSM
6303         threader needs to handle backedges.
6305 2015-11-08  Eric Botcazou  <ebotcazou@adacore.com>
6307         * doc/extend.texi (type attributes): Document scalar_storage_order.
6308         (Structure-Packing Pragmas): Rename into...
6309         (Structure-Layout Pragmas): ...this.  Document scalar_storage_order.
6310         * doc/invoke.texi (C Dialect Options): Document -fsso-struct
6311         (Warnings): Document -Wno-scalar-storage-order.
6312         * flag-types.h (enum scalar_storage_order_kind): New enumeration.
6313         * calls.c (store_unaligned_arguments_into_pseudos): Adjust calls to
6314         extract_bit_field and store_bit_field.
6315         (initialize_argument_information): Adjust call to store_expr.
6316         (load_register_parameters): Adjust call to extract_bit_field.
6317         * expmed.c (check_reverse_storage_order_support): New function.
6318         (check_reverse_float_storage_order_support): Likewise.
6319         (flip_storage_order): Likewise.
6320         (store_bit_field_1): Add REVERSE parameter.  Flip the storage order
6321         of the value if it is true.  Pass REVERSE to recursive call after
6322         adjusting the target offset.
6323         Do not use extraction or movstrict instruction if REVERSE is true.
6324         Pass REVERSE to store_fixed_bit_field.
6325         (store_bit_field): Add REVERSE parameter and pass to it to above.
6326         (store_fixed_bit_field): Add REVERSE parameter and pass to it to
6327         store_split_bit_field and store_fixed_bit_field_1.
6328         (store_fixed_bit_field_1):  Add REVERSE parameter.  Flip the storage
6329         order of the value if it is true and adjust the target offset.
6330         (store_split_bit_field): Add REVERSE parameter and pass it to
6331         store_fixed_bit_field.  Adjust the target offset if it is true.
6332         (extract_bit_field_1): Add REVERSE parameter.  Flip the storage order
6333         of the value if it is true.  Pass REVERSE to recursive call after
6334         adjusting the target offset.
6335         Do not use extraction or subreg instruction if REVERSE is true.
6336         Pass REVERSE to extract_fixed_bit_field.
6337         (extract_bit_field): Add REVERSE parameter and pass to it to above.
6338         (extract_fixed_bit_field): Add REVERSE parameter and pass to it to
6339         extract_split_bit_field and extract_fixed_bit_field_1.
6340         (extract_fixed_bit_field_1): Add REVERSE parameter.  Flip the storage
6341         order of the value if it is true and adjust the target offset.
6342         (extract_split_bit_field): Add REVERSE parameter and pass it to
6343         extract_fixed_bit_field.  Adjust the target offset if it is true.
6344         * expmed.h (flip_storage_order): Declare.
6345         (store_bit_field): Adjust prototype.
6346         (extract_bit_field): Likewise.
6347         * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
6348         (emit_group_store): Adjust call to store_bit_field.
6349         (copy_blkmode_from_reg): Likewise.
6350         (copy_blkmode_to_reg): Likewise.
6351         (write_complex_part): Likewise.
6352         (read_complex_part): Likewise.
6353         (optimize_bitfield_assignment_op): Add REVERSE parameter.  Assert
6354         that it isn't true if the target is a register.
6355         <PLUS_EXPR>: If it is, do not optimize unless bitsize is equal to 1,
6356         and flip the storage order of the value.
6357         <BIT_IOR_EXPR>: Flip the storage order of the value.
6358         (get_bit_range): Adjust call to get_inner_reference.
6359         (expand_assignment): Adjust calls to get_inner_reference, store_expr,
6360         optimize_bitfield_assignment_op and store_field.  Handle MEM_EXPRs
6361         with reverse storage order.
6362         (store_expr_with_bounds): Add REVERSE parameter and pass it to
6363         recursive calls and call to store_bit_field.  Force the value into a
6364         register if it is true and then flip the storage order of the value.
6365         (store_expr): Add REVERSE parameter and pass it to above.
6366         (categorize_ctor_elements_1): Adjust call to
6367         initializer_constant_valid_p.
6368         (store_constructor_field): Add REVERSE parameter and pass it to
6369         recursive calls and call to store_field.
6370         (store_constructor): Add REVERSE parameter and pass it to calls to
6371         store_constructor_field and store_expr.  Set it to true for an
6372         aggregate type with TYPE_REVERSE_STORAGE_ORDER.
6373         (store_field): Add REVERSE parameter and pass it to recursive calls
6374         and calls to store_expr and store_bit_field.  Temporarily flip the
6375         storage order of the value with record type and integral mode and
6376         adjust the shift if it is true.
6377         (get_inner_reference): Add PREVERSEP parameter and set it to true
6378         upon encoutering a reference with reverse storage order.
6379         (expand_expr_addr_expr_1): Adjust call to get_inner_reference.
6380         (expand_constructor): Adjust call to store_constructor.
6381         (expand_expr_real_2) <CASE_CONVERT>: Pass TYPE_REVERSE_STORAGE_ORDER
6382         of the union type to store_expr in the MEM case and assert that it
6383         isn't set in the REG case.  Adjust call to store_field.
6384         (expand_expr_real_1) <MEM_REF>: Handle reverse storage order.
6385         <normal_inner_ref>: Add REVERSEP variable and adjust calls to
6386         get_inner_reference and extract_bit_field. Temporarily flip the
6387         storage order of the value with record type and integral mode and
6388         adjust the shift if it is true.  Flip the storage order of the value
6389         at the end if it is true.
6390         <VIEW_CONVERT_EXPR>: Add REVERSEP variable and adjust call to
6391         get_inner_reference.  Do not fetch an inner reference if it is true.
6392         * expr.h (store_expr_with_bounds): Ajust prototype.
6393         (store_expr): Likewise.
6394         * fold-const.c (make_bit_field_ref): Add REVERSEP parameter and set
6395         REF_REVERSE_STORAGE_ORDER on the reference according to it.
6396         (optimize_bit_field_compare): Deal with reverse storage order.
6397         Adjust calls to get_inner_reference and make_bit_field_ref.
6398         (decode_field_reference): Add PREVERSEP parameter and adjust call to
6399         get_inner_reference.
6400         (fold_truth_andor_1): Deal with reverse storage order.  Adjust calls
6401         to decode_field_reference and make_bit_field_ref.
6402         (fold_unary_loc) <CASE_CONVERT>: Adjust call to get_inner_reference.
6403         <VIEW_CONVERT_EXPR>: Propagate the REF_REVERSE_STORAGE_ORDER flag.
6404         (fold_comparison): Adjust call to get_inner_reference.
6405         (split_address_to_core_and_offset): Adjust call to
6406         get_inner_reference.
6407         * gimple-expr.c (useless_type_conversion_p): Return false for array
6408         types with different TYPE_REVERSE_STORAGE_ORDER flag.
6409         * gimplify.c (gimplify_expr) <MEM_REF>: Propagate the
6410         REF_REVERSE_STORAGE_ORDER flag.
6411         * lto-streamer-out.c (hash_tree): Deal with TYPE_REVERSE_STORAGE_ORDER.
6412         * output.h (assemble_real): Adjust prototype.
6413         * print-tree.c (print_node): Convey TYPE_REVERSE_STORAGE_ORDER.
6414         * stor-layout.c (finish_record_layout): Propagate the
6415         TYPE_REVERSE_STORAGE_ORDER flag to the variants.
6416         * tree-core.h (TYPE_REVERSE_STORAGE_ORDER): Document.
6417         (TYPE_SATURATING): Adjust.
6418         (REF_REVERSE_STORAGE_ORDER): Document.
6419         * tree-dfa.c (get_ref_base_and_extent): Add PREVERSE parameter and
6420         set it to true upon encoutering a reference with reverse storage order.
6421         * tree-dfa.h (get_ref_base_and_extent): Adjust prototype.
6422         * tree-inline.c (remap_gimple_op_r): Propagate the
6423         REF_REVERSE_STORAGE_ORDER flag.
6424         (copy_tree_body_r): Likewise.
6425         * tree-outof-ssa.c (insert_value_copy_on_edge): Adjust call to
6426         store_expr.
6427         * tree-streamer-in.c (unpack_ts_base_value_fields): Deal with
6428         TYPE_REVERSE_STORAGE_ORDER and REF_REVERSE_STORAGE_ORDER.
6429         * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
6430         * tree.c (stabilize_reference) <BIT_FIELD_REF>: Propagate the
6431         REF_REVERSE_STORAGE_ORDER flag.
6432         (verify_type_variant): Deal with TYPE_REVERSE_STORAGE_ORDER.
6433         (gimple_canonical_types_compatible_p): Likewise.
6434         * tree.h (TYPE_REVERSE_STORAGE_ORDER): New flag.
6435         (TYPE_SATURATING): Adjust.
6436         (REF_REVERSE_STORAGE_ORDER): New flag.
6437         (reverse_storage_order_for_component_p): New inline predicate.
6438         (storage_order_barrier_p): Likewise.
6439         (get_inner_reference): Adjust prototype.
6440         * varasm.c: Include expmed.h.
6441         (assemble_variable_contents): Adjust call to output_constant.
6442         (assemble_real): Add REVERSE parameter.  Flip the storage
6443         order of the value if REVERSE is true.
6444         (compare_constant) <CONSTRUCTOR>: Compare TYPE_REVERSE_STORAGE_ORDER.
6445         (assemble_constant_contents): Adjust call to output_constant.
6446         (output_constant_pool_2): Adjust call to assemble_real.
6447         (initializer_constant_valid_p_1) <CONSTRUCTOR>: Deal with
6448         TYPE_REVERSE_STORAGE_ORDER.
6449         (initializer_constant_valid_p): Add REVERSE parameter.
6450         (output_constant): Add REVERSE parameter.
6451         <INTEGER_TYPE>: Flip the storage order of the value if REVERSE is true.
6452         <REAL_TYPE>: Adjust call to assemble_real.
6453         <COMPLEX_TYPE>: Pass it to recursive calls.
6454         <ARRAY_TYPE>: Likewise.  Adjust call to output_constructor.
6455         <RECORD_TYPE>: Likewise.  Adjust call to output_constructor.
6456         (struct oc_local_state): Add REVERSE field.
6457         (output_constructor_array_range): Adjust calls to output_constant.
6458         (output_constructor_regular_field): Likewise.
6459         (output_constructor_bitfield): Adjust call to output_constructor.
6460         Flip the storage order of the value if REVERSE is true.
6461         (output_constructor): Add REVERSE parameter.  Set it to true for an
6462         aggregate type with TYPE_REVERSE_STORAGE_ORDER.  Adjust call to
6463         output_constructor_bitfield.
6464         * varasm.h (initializer_constant_valid_p): Default REVERSE to false.
6465         * asan.c (instrument_derefs): Adjust call to get_inner_reference.
6466         * builtins.c (get_object_alignment_2): Likewise.
6467         * cfgexpand.c (expand_debug_expr): Adjust call to get_inner_reference
6468         and get_ref_base_and_extent.
6469         * dbxout.c (dbxout_expand_expr): Likewise.
6470         * dwarf2out.c (add_var_loc_to_decl): Likewise.
6471         (loc_list_for_address_of_addr_expr_of_indirect_ref): Likewise.
6472         (loc_list_from_tree): Likewise.
6473         (fortran_common): Likewise.
6474         * gimple-fold.c (gimple_fold_builtin_memory_op): Adjust calls to
6475         get_ref_base_and_extent.
6476         (get_base_constructor): Likewise.
6477         (fold_const_aggregate_ref_1): Likewise.
6478         * gimple-laddress.c (pass_laddress::execute): Adjust call to
6479         get_inner_reference.
6480         * gimple-ssa-strength-reduction.c (slsr_process_ref): Adjust call to
6481         get_inner_reference and bail out on reverse storage order.
6482         * ifcvt.c (noce_emit_move_insn): Adjust calls to store_bit_field.
6483         * ipa-cp.c (ipa_get_jf_ancestor_result): Adjust call to
6484         build_ref_for_offset.
6485         * ipa-polymorphic-call.c (set_by_invariant): Adjust call to
6486         get_ref_base_and_extent.
6487         (ipa_polymorphic_call_context): Likewise.
6488         (extr_type_from_vtbl_ptr_store): Likewise.
6489         (check_stmt_for_type_change): Likewise.
6490         (get_dynamic_type): Likewise.
6491         * ipa-prop.c (ipa_load_from_parm_agg_1): Adjust call to
6492         get_ref_base_and_extent.
6493         (compute_complex_assign_jump_func): Likewise.
6494         (get_ancestor_addr_info): Likewise.
6495         (compute_known_type_jump_func): Likewise.
6496         (determine_known_aggregate_parts): Likewise.
6497         (ipa_get_adjustment_candidate): Likewise.
6498         (ipa_modify_call_arguments): Set REF_REVERSE_STORAGE_ORDER on MEM_REF.
6499         * ipa-prop.h (ipa_parm_adjustment): Add REVERSE field.
6500         (build_ref_for_offset): Adjust prototype.
6501         * simplify-rtx.c (delegitimize_mem_from_attrs): Adjust call to
6502         get_inner_reference.
6503         * tree-affine.c (tree_to_aff_combination): Adjust call to
6504         get_inner_reference.
6505         (get_inner_reference_aff): Likewise.
6506         * tree-data-ref.c (split_constant_offset_1): Likewise.
6507         (dr_analyze_innermost): Likewise.  Bail out if reverse storage order.
6508         * tree-scalar-evolution.c (interpret_rhs_expr): Adjust call to
6509         get_inner_reference.
6510         * tree-sra.c (struct access): Add REVERSE and move WRITE around.
6511         (dump_access): Print new fields.
6512         (create_access): Adjust call to get_ref_base_and_extent and set the
6513         REVERSE flag according to the result.
6514         (completely_scalarize_record): Set the REVERSE flag.
6515         (scalarize_elem): Add REVERSE parameter.
6516         (build_access_from_expr_1): Preserve storage order barriers.
6517         (build_accesses_from_assign): Likewise.
6518         (build_ref_for_offset): Add REVERSE parameter and set the
6519         REF_REVERSE_STORAGE_ORDER flag accordingly.
6520         (build_ref_for_model): Adjust call to build_ref_for_offset and clear
6521         the REF_REVERSE_STORAGE_ORDER flag if there are components.
6522         (analyze_access_subtree): Likewise.
6523         (create_artificial_child_access): Set the REVERSE flag.
6524         (get_access_for_expr): Adjust call to get_ref_base_and_extent.
6525         (turn_representatives_into_adjustments): Propagate REVERSE flag.
6526         (ipa_sra_check_caller): Adjust call to get_inner_reference.
6527         * tree-ssa-alias.c (ao_ref_base): Adjust call to
6528         get_ref_base_and_extent.
6529         (aliasing_component_refs_p): Likewise.
6530         (stmt_kills_ref_p_1): Likewise.
6531         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
6532         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p) <MEM_REF>: New.
6533         Return true if reverse storage order.
6534         <BIT_FIELD_REF>: Likewise.
6535         <COMPONENT_REF>: Likewise.
6536         <ARRAY_REF>: Likewise.
6537         <ARRAY_RANGE_REF>: Likewise.
6538         (split_address_cost): Likewise.  Bail out if reverse storage order.
6539         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Adjust call to
6540         get_inner_reference.  Bail out if reverse storage order.
6541         (bswap_replace): Adjust call to get_inner_reference.
6542         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <MEM_REF>: Set
6543         the REF_REVERSE_STORAGE_ORDER flag.
6544         <BIT_FIELD_REF>: Likewise.
6545         * tree-ssa-sccvn.c (vn_reference_eq): Return false on storage order
6546         barriers.
6547         (copy_reference_ops_from_ref) <MEM_REF>: Set REVERSE field according
6548         to the REF_REVERSE_STORAGE_ORDER flag.
6549         <BIT_FIELD_REF>: Likewise.
6550         <VIEW_CONVERT_EXPR>: Set it for storage order barriers.
6551         (contains_storage_order_barrier_p): New predicate.
6552         (vn_reference_lookup_3): Adjust calls to get_ref_base_and_extent.
6553         Punt on storage order barriers if necessary.
6554         * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add REVERSE.
6555         * tree-ssa-structalias.c (get_constraint_for_component_ref): Adjust
6556         call to get_ref_base_and_extent.
6557         (do_structure_copy): Likewise.
6558         * tree-vect-data-refs.c (vect_check_gather): Adjust call to
6559         get_inner_reference.
6560         (vect_analyze_data_refs): Likewise.  Bail out if reverse storage order.
6561         * tsan.c (instrument_expr): Adjust call to get_inner_reference.
6562         * ubsan.c (instrument_bool_enum_load): Likewise.
6563         (instrument_object_size): Likewise.
6564         * var-tracking.c (track_expr_p): Adjust call to
6565         get_ref_base_and_extent.
6566         * config/mips/mips.c (r10k_safe_mem_expr_p): Adjust call to
6567         get_inner_reference.
6568         * config/s390/s390.c (s390_expand_atomic): Adjust call to
6569         store_bit_field.
6570         * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust call to
6571         extract_bit_field.
6572         * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Likewise.
6574 2015-11-07  Eric Botcazou  <ebotcazou@adacore.com>
6576         * config/sparc/sparc.opt (mfix-at697f): Add final period.
6578 2015-11-07  Segher Boessenkool  <segher@kernel.crashing.org>
6580         PR rtl-optimization/67864
6581         * common/config/i386/i386-common.c (ix86_option_optimization_table)
6582         <OPT_freorder_blocks_algorithm_>: Use REORDER_BLOCKS_ALGORITHM_STC
6583         at -Os and up.
6585 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
6587         * trans-mem.c (is_tm_pure_call): Use gimple_call_flags for
6588         internal functions.
6590 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
6592         * builtins.def: #undef DEF_BUILTIN and DEF_BUILTIN_CHKP
6593         * builtins.c, genmatch.c, tree-core.h: Don't undef them here.
6595 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
6597         * internal-fn.def: #undef DEF_INTERNAL_FN at the end.
6598         * internal-fn.c: Don't undef it here.
6599         * tree-core.h: Likewise.
6601 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
6603         * builtins.c (fold_builtin_nan): Delete.
6604         (fold_builtin_memcmp): Remove case where both arguments are constant.
6605         (fold_builtin_strcmp, fold_builtin_strncmp): Likewise.
6606         (fold_builtin_strspn, fold_builtin_strcspn): Likewise.
6607         (fold_builtin_1): Remove BUILT_IN_NAN* handling.
6608         * fold-const-call.c: Include fold-const.h.
6609         (host_size_t_cst_p): New function.
6610         (build_cmp_result, fold_const_builtin_nan): Likewise.
6611         (fold_const_call_1): New function, split out from...
6612         (fold_const_call): ...here (for all three interfaces).  Handle
6613         constant nan, nans, strlen, strcmp, strncmp, strspn and strcspn.
6615 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
6617         * builtins.c (fold_builtin_bitop, fold_builtin_bswap): Delete.
6618         (fold_builtin_1): Don't call them.
6619         * fold-const-call.c: Include tm.h.
6620         (fold_const_call_ss): New variant for integer-to-integer folds.
6621         (fold_const_call): Call it.
6623 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
6625         * builtins.c (fold_builtin_classify): Move constant cases to...
6626         * fold-const-call.c (fold_const_call_ss): ...here.
6628 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
6630         * builtins.h (c_getstr): Move to...
6631         * fold-const.h (c_getstr): ...here.
6632         * builtins.c (c_getstr): Move to...
6633         * fold-const.c (c_getstr): ...here.
6635 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
6637         * builtins.def (BUILTIN_RINT, BUILTIN_RINTF, BUILTIN_RINTL): Use
6638         ATTR_MATHFN_FPROUNDING rather than ATTR_MATHFN_FPROUNDING_ERRNO.
6640 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
6642         * tree-call-cdce.c (shrink_wrap_one_built_in_call): Try to update
6643         the dominance info; free it if we can't.
6644         (pass_call_cdce::execute): Don't free the dominance info here.
6646 2015-11-06  Jeff Law <law@redhat.com>
6648         * tree-ssa-threadedge.c (dummy_simplify): Remove.
6649         (thread_around_empty_blocks): Remove backedge_seen_p argument.
6650         If we thread to a backedge, then return false.  Update recursive
6651         call to eliminate backedge_seen_p argument.
6652         (thread_through_normal_block): Remove backedge_seen_p argument.
6653         Remove backedge_seen_p argument from calls to
6654         thread_around_empty_blocks.  Remove checks on backedge_seen_p.
6655         If we thread to a backedge, then return 0.
6656         (thread_across_edge): Remove bookkeeping for backedge_seen.  Don't
6657         pass it to thread_through_normal_block or thread_through_empty_blocks.
6658         For joiner handling, if we see a backedge, do not try normal
6659         threading.
6661 2015-11-06  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
6663         * graphite-optimize-isl.c (optimize_isl): Call isl_union_map_is_equal.
6664         * graphite-poly.c (new_scop): Initialize original_schedule.
6665         (free_scop): Free original_schedule.
6666         * graphite-poly.h (struct scop): Add field original_schedule.
6667         * graphite-sese-to-poly.c (build_scop_original_schedule): New.
6668         (build_poly_scop): Call build_scop_original_schedule.
6670 2015-11-06  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
6672         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
6673         (build_pbb_minimal_scattering_polyhedrons): New.
6674         (build_scop_scattering): Remove.
6675         (build_scop_minimal_scattering): New.
6676         (build_scop_scattering): Call build_pbb_minimal_scattering_polyhedrons.
6677         (build_poly_scop): Call build_scop_minimal_scattering.
6679 2015-11-06  Jeff Law <law@redhat.com>
6681         * cfg-flags.def (IGNORE): New edge flag.
6682         * tree-vrp.c (identify_jump_threads): Mark and clear edges
6683         scheduled for removal with EDGE_IGNORE around call into
6684         jump threader.  Do no thread across edges with EDGE_IGNORE,
6685         but do allow threading across those with EDGE_DFS_BACK.
6687 2015-11-06  David Wohlferd  <dw@LimeGreenSocks.com>
6689         * doc/md.texi (multi-alternative constraints): Don't document
6690         alternatives inherently tied to reload for the user documentation.
6692 2015-11-06  Michael Collison  <michael.collison@linaro.org>
6693             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
6695         Revert:
6696         2015-08-01  Michael Collison  <michael.collison@linaro.org
6697                     Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
6699         * config/arm/arm.md (*arm_smin_cmp): New pattern.
6700         (*arm_umin_cmp): Likewise.
6702 2015-11-06  Jakub Jelinek  <jakub@redhat.com>
6704         * gimplify.c (gimplify_omp_ordered): Fix up diagnostics wording.
6705         * omp-low.c (check_omp_nesting_restrictions): Update for the
6706         various new OpenMP 4.5 nesting restrictions, clarified
6707         nesting glossary, closely nested region relationship clarified
6708         to mean explicit or implicit parallel regions (target/teams),
6709         use %</%> or %qs where appropriate.
6711 2015-11-06  Aditya Kumar  <aditya.k7@samsung.com>
6712             Sebastian Pop  <s.pop@samsung.com>
6714         * graphite-scop-detection.c (loop_is_valid_scop): Call
6715         optimize_loop_nest_for_speed_p.
6717 2015-11-06  Aditya Kumar  <aditya.k7@samsung.com>
6718             Sebastian Pop  <s.pop@samsung.com>
6720         * graphite-optimize-isl.c (optimize_isl): Call
6721         isl_options_set_schedule_maximize_band_depth.
6723 2015-11-06  Aditya Kumar  <aditya.k7@samsung.com>
6724             Sebastian Pop  <s.pop@samsung.com>
6726         * graphite-scop-detection.c (scop_detection::merge_sese): Entry
6727         and exit edges should not be a part of irreducible loop.
6728         (scop_detection::can_represent_loop_1): Loops should not be
6729         irreducible.
6730         (scop_detection::harmful_stmt_in_region): All the basic block
6731         should belong to reducible loops.
6733 2015-11-06  Christophe Lyon  <christophe.lyon@linaro.org>
6735         * config/aarch64/aarch64-simd-builtins.def: Update builtins
6736         tables: add tbl3v16qi, qtbl[34]*, tbx4v16qi, qtbx[34]*.
6737         * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): Rename to...
6738         (aarch64_tbl3<mode>) ... this, which supports v16qi too.
6739         (aarch64_tbx4v8qi): Rename to...
6740         aarch64_tbx4<mode>): ... this.
6741         (aarch64_qtbl3<mode>): New pattern.
6742         (aarch64_qtbx3<mode>): New pattern.
6743         (aarch64_qtbl4<mode>): New pattern.
6744         (aarch64_qtbx4<mode>): New pattern.
6745         * config/aarch64/arm_neon.h (vqtbl2_s8, vqtbl2_u8, vqtbl2_p8)
6746         (vqtbl2q_s8, vqtbl2q_u8, vqtbl2q_p8, vqtbl3_s8, vqtbl3_u8)
6747         (vqtbl3_p8, vqtbl3q_s8, vqtbl3q_u8, vqtbl3q_p8, vqtbl4_s8)
6748         (vqtbl4_u8, vqtbl4_p8, vqtbl4q_s8, vqtbl4q_u8, vqtbl4q_p8)
6749         (vqtbx2_s8, vqtbx2_u8, vqtbx2_p8, vqtbx2q_s8, vqtbx2q_u8)
6750         (vqtbx2q_p8, vqtbx3_s8, vqtbx3_u8, vqtbx3_p8, vqtbx3q_s8)
6751         (vqtbx3q_u8, vqtbx3q_p8, vqtbx4_s8, vqtbx4_u8, vqtbx4_p8)
6752         (vqtbx4q_s8, vqtbx4q_u8, vqtbx4q_p8): Rewrite using builtin
6753         functions.
6755 2015-11-06  Mike Stump  <mikestump@comcast.net>
6757         PR debug/66728
6758         * dwarf2out.c (get_full_len): Return a value based upon the actual
6759         precision needed for the value.
6760         (add_const_value_attribute): Use a maximal wide-int for
6761         CONST_WIDE_INTs, not VOIDmode.
6762         (output_die): Don't ever output NULL with printf.
6764         * rtl.h (get_precision of rtx_mode_t): Ensure we never process
6765         BLKmode nor VOIDmode values.
6767 2015-11-06  David Malcolm  <dmalcolm@redhat.com>
6769         * diagnostic-color.c (color_dict): Eliminate "caret"; add "range1"
6770         and "range2".
6771         (parse_gcc_colors): Update comment to describe default GCC_COLORS.
6772         * diagnostic-core.h (warning_at_rich_loc): New declaration.
6773         (error_at_rich_loc): New declaration.
6774         (permerror_at_rich_loc): New declaration.
6775         (inform_at_rich_loc): New declaration.
6776         * diagnostic-show-locus.c (adjust_line): Delete.
6777         (struct point_state): New struct.
6778         (class colorizer): New class.
6779         (class layout_point): New class.
6780         (class layout_range): New class.
6781         (struct line_bounds): New.
6782         (class layout): New class.
6783         (colorizer::colorizer): New ctor.
6784         (colorizer::~colorizer): New dtor.
6785         (layout::layout): New ctor.
6786         (layout::print_source_line): New method.
6787         (layout::print_annotation_line): New method.
6788         (layout::get_state_at_point): New method.
6789         (layout::get_x_bound_for_row): New method.
6790         (diagnostic_show_locus): Reimplement in terms of class layout.
6791         (diagnostic_print_caret_line): Delete.
6792         * diagnostic.c (diagnostic_initialize): Replace
6793         MAX_LOCATIONS_PER_MESSAGE with rich_location::MAX_RANGES.
6794         (diagnostic_set_info_translated): Convert param from location_t
6795         to rich_location *.  Eliminate calls to set_location on the
6796         message in favor of storing the rich_location ptr there.
6797         (diagnostic_set_info): Convert param from location_t to
6798         rich_location *.
6799         (diagnostic_build_prefix): Break out array into...
6800         (diagnostic_kind_color): New variable.
6801         (diagnostic_get_color_for_kind): New function.
6802         (diagnostic_report_diagnostic): Colorize the option_text
6803         using the color for the severity.
6804         (diagnostic_append_note): Update for change in signature of
6805         diagnostic_set_info.
6806         (diagnostic_append_note_at_rich_loc): New function.
6807         (emit_diagnostic): Update for change in signature of
6808         diagnostic_set_info.
6809         (inform): Likewise.
6810         (inform_at_rich_loc): New function.
6811         (inform_n): Update for change in signature of diagnostic_set_info.
6812         (warning): Likewise.
6813         (warning_at): Likewise.
6814         (warning_at_rich_loc): New function.
6815         (warning_n): Update for change in signature of diagnostic_set_info.
6816         (pedwarn): Likewise.
6817         (permerror): Likewise.
6818         (permerror_at_rich_loc): New function.
6819         (error): Update for change in signature of diagnostic_set_info.
6820         (error_n): Likewise.
6821         (error_at): Likewise.
6822         (error_at_rich_loc): New function.
6823         (sorry): Update for change in signature of diagnostic_set_info.
6824         (fatal_error): Likewise.
6825         (internal_error): Likewise.
6826         (internal_error_no_backtrace): Likewise.
6827         (source_range::debug): New function.
6828         * diagnostic.h (struct diagnostic_info): Eliminate field
6829         "override_column".  Add field "richloc".
6830         (struct diagnostic_context): Add field "colorize_source_p".
6831         (diagnostic_override_column): Delete.
6832         (diagnostic_set_info): Convert param from location_t to
6833         rich_location *.
6834         (diagnostic_set_info_translated): Likewise.
6835         (diagnostic_append_note_at_rich_loc): New function.
6836         (diagnostic_num_locations): New function.
6837         (diagnostic_expand_location): Get the location from the
6838         rich_location.
6839         (diagnostic_print_caret_line): Delete.
6840         (diagnostic_get_color_for_kind): New declaration.
6841         * genmatch.c (linemap_client_expand_location_to_spelling_point): New.
6842         (error_cb): Update for change in signature of "error" callback.
6843         (fatal_at): Likewise.
6844         (warning_at): Likewise.
6845         * input.c (linemap_client_expand_location_to_spelling_point): New.
6846         * pretty-print.c (text_info::set_range): New method.
6847         (text_info::get_location): New method.
6848         * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): Eliminate this macro.
6849         (struct text_info): Eliminate "locations" array in favor of
6850         "m_richloc", a rich_location *.
6851         (textinfo::set_location): Add a "caret_p" param, and reimplement
6852         in terms of a call to set_range.
6853         (textinfo::get_location): Eliminate inline implementation in favor of
6854         an out-of-line reimplementation.
6855         (textinfo::set_range): New method.
6856         * rtl-error.c (diagnostic_for_asm): Update for change in signature
6857         of diagnostic_set_info.
6858         * tree-diagnostic.c (default_tree_printer): Update for new
6859         "caret_p" param for textinfo::set_location.
6860         * tree-pretty-print.c (percent_K_format): Likewise.
6862 2015-11-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6864         Properly apply.
6865         2015-11-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6866         * config/aarch64/aarch64.c
6867         (aarch64_can_use_per_function_literal_pools_p): New.
6868         (aarch64_use_blocks_for_constant_p): Adjust declaration
6869         and use aarch64_can_use_function_literal_pools_p.
6870         (aarch64_select_rtx_section): Update.
6872 2015-11-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6874         * config/arm/arm-ldmstm.ml: Rewrite to generate unified asm templates.
6875         * config/arm/arm.c (arm_asm_trampoline_template): Make unified asm safe.
6876         (arm_output_multireg_pop): Likewise.
6877         (output_move_double):  Likewise.
6878         (output_move_quad):  Likewise.
6879         (output_return_instruction): Likewise.
6880         (arm_print_operand): Remove support for %( and %. print modifiers.
6881         (arm_output_shift): Make unified asm.
6882         (arm_declare_function_name): Likewise.
6883         * config/arm/arm.h (TARGET_UNIFIED_ASM): Delete.
6884         (ASM_APP_OFF): Adjust.
6885         (ASM_OUTPUT_REG_PUSH): Undo special casing for TARGET_ARM.
6886         (ASM_OUTPUT_REG_POP): Likewise.
6887         * config/arm/arm.md: Adjust uses of %., %(, %)
6888         * config/arm/sync.md: Likewise.
6889         * config/arm/thumb2.md: Likewise.
6890         * config/arm/ldmstm.md: Regenerate.
6891         * config/arm/arm.opt (masm-unified-syntax): Do not special case Thumb.
6892         * doc/invoke.texi (masm-unified-syntax): Update documentation.
6894 2015-11-06  David Malcolm  <dmalcolm@redhat.com>
6896         * input.c (dump_line_table_statistics): Dump stats on adhoc table.
6898 2015-11-07  Jan Hubicka  <hubicka@ucw.cz>
6900         * tree-core.h (size_type_kind): Remove OEP_CONSTANT_ADDRESS_OF and
6901         add OEP_MATCH_SIDE_EFFECTS.
6902         * fold-const.c (operand_equal_p): Update documentation; handle
6903         OEP_MATCH_SIDE_EFFECTS.
6904         * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Use
6905         OEP_MATCH_SIDE_EFFECTS.
6907 2015-11-06  Benedikt Huber  <benedikt.huber@theobroma-systems.com>
6908             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
6910         * config/aarch64/aarch64-builtins.c: Builtins for rsqrt and rsqrtf.
6911         * config/aarch64/aarch64-protos.h: Declare.
6912         * config/aarch64/aarch64-simd.md: Matching expressions for frsqrte and
6913         frsqrts.
6914         * config/aarch64/aarch64-tuning-flags.def: Added recip_sqrt.
6915         * config/aarch64/aarch64.c: New functions. Emit rsqrt estimation
6916         code when applicable.
6917         * config/aarch64/aarch64.md: Added enum entries.
6918         * config/aarch64/aarch64.opt: Added option -mlow-precision-recip-sqrt.
6920 2015-11-07  Jan Hubicka  <hubicka@ucw.cz>
6922         PR ipa/68057
6923         PR ipa/68220
6924         * ipa-polymorphic-call.c
6925         (ipa_polymorphic_call_context::restrict_to_inner_type): Fix ordering
6926         issue when offset is out of range.
6927         (contains_type_p): Fix out of range check, clear dynamic flag.
6929 2015-11-06  Arnout Vandecappelle  <arnout@mind.be>
6931         * config.gcc (e6500): Fix cpu_is_64bit typo.
6933 2015-11-06  Alan Lawrence  <alan.lawrence@arm.com>
6935         * tree-sra.c (completely_scalarize): Properly handle negative array
6936         indices using offset_int.
6938 2015-11-06  Richard Biener  <rguenther@suse.de>
6940         * alloc-pool.h (object_allocator::allocate): Default-initialize
6941         object.
6943 2015-11-06  Richard Biener  <rguenther@suse.de>
6945         * tree-ssa-sccvn.c (class sccvn_dom_walker): Add destructor.
6946         * lra.c (init_reg_info): Truncate copy_vec instead of
6947         re-allocating a new one and leaking the old.
6948         * ipa-inline-analysis.c (estimate_function_body_sizes): Free
6949         bb_infos vec.
6950         * sched-deps.c (sched_deps_finish): Free the dn/dl pools.
6951         * postreload-gcse.c (free_mem): Free modify_mem_list and
6952         canon_modify_mem_list.
6954 2015-11-06  Ilya Enkovich  <enkovich.gnu@gmail.com>
6956         PR tree-optimization/68145
6957         * tree-vect-stmts.c (vectorizable_operation): Fix
6958         determination for booleans.
6960 2015-11-06  Tom de Vries  <tom@codesourcery.com>
6962         * tree-cfg.c (gimple_split_block_before_cond_jump): Split before
6963         cond_jump, instead of split after last nondebug insn before cond_jump.
6964         * tree-parloops.c (transform_to_exit_first_loop_alt): Verify ssa before
6965         returning.
6967 2015-11-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6969         PR target/68088
6970         * config/arm/aarch-common.c (aarch_accumulator_forwarding): Strip
6971         subregs from accumulator and make sure it's a register.
6973 2015-11-06  Simon Dardis  <simon.dardis@imgtec.com>
6975         * config/mips/loongson.md (vec_loongson_extract_lo_<mode>): New, extract
6976         low part to scalar.
6977         (reduc_uplus_<mode>): Remove.
6978         (reduc_plus_scal_<mode>): Rename from reduc_splus_<mode>, Use vec
6979         loongson_extract_lo_<mode>.
6980         (reduc_smax_scal_<mode>, reduc_smin_scal_<mode>): Rename from
6981         reduc_smax_<mode>, reduc_smax_<mode>, use vec
6982         loongson_extract_lo_<mode>.
6983         (reduc_umax_scal_<mode>, reduc_umin_scal_<mode>): Rename.
6985 2015-11-06  Richard Biener  <rguenther@suse.de>
6987         * tree-vectorizer.h (struct _bb_vec_info): Add region_begin/end
6988         members.
6989         (vect_stmt_in_region_p): Declare.
6990         * tree-vect-slp.c (new_bb_vec_info): Work on a region.
6991         (destroy_bb_vec_info): Likewise.
6992         (vect_bb_slp_scalar_cost): Use vect_stmt_in_region_p.
6993         (vect_get_and_check_slp_defs): Likewise.
6994         (vect_slp_analyze_bb_1): Refactor to make it work on sub-BBs.
6995         (vect_slp_bb): Likewise.
6996         * tree-vect-patterns.c (vect_same_loop_or_bb_p): Implement
6997         in terms of vect_stmt_in_region_p.
6998         (vect_pattern_recog): Iterate over the BB region.
6999         * tree-vect-stmts.c (vect_is_simple_use): Use vect_stmt_in_region_p.
7000         * tree-vectorizer.c (vect_stmt_in_region_p): New function.
7001         (pass_slp_vectorize::execute): Initialize all stmt UIDs to -1.
7002         * config/i386/i386.c: Include gimple-iterator.h.
7003         * config/aarch64/aarch64.c: Likewise.
7005 2015-11-06  Alexandre Oliva <aoliva@redhat.com>
7007         PR rtl-optimization/67753
7008         PR rtl-optimization/64164
7009         * function.c (assign_parm_setup_block): Avoid allocating a
7010         stack slot if we don't have an ABI-reserved one.  Emit the
7011         copy to target_reg in the conversion seq if the copy from
7012         entry_parm is in it too.  Don't use the conversion seq to copy
7013         a PARALLEL to a REG or a CONCAT.
7015 2015-11-06  Richard Biener  <rguenther@suse.de>
7017         * tree-hash-traits.h (tree_operand_hash): Provide equal, not
7018         equal_keys.
7020 2015-11-05  Cesar Philippidis  <cesar@codesourcery.com>
7021             Thomas Schwinge  <thomas@codesourcery.com>
7022             James Norris  <jnorris@codesourcery.com>
7025         * gimplify.c (gimplify_scan_omp_clauses): Add support for
7026         OMP_CLAUSE_TILE.  Update handling of OMP_CLAUSE_INDEPENDENT.
7027         (gimplify_adjust_omp_clauses): Likewise.
7028         * omp-low.c (scan_sharing_clauses): Add support for OMP_CLAUSE_TILE.
7029         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_TILE.
7030         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_TILE.
7031         * tree.c (omp_clause_num_ops): Add an entry for OMP_CLAUSE_TILE.
7032         (omp_clause_code_name): Likewise.
7033         (walk_tree_1): Handle OMP_CLAUSE_TILE.
7034         * tree.h (OMP_TILE_LIST): New macro.
7036 2015-11-05  Martin Sebor  <msebor@redhat.com>
7038         PR c++/67942
7039         * doc/invoke.texi (-Wplacement-new): Document new option.
7041 2015-11-05  Alan Lawrence  <alan.lawrence@arm.com>
7043         PR tree-optimization/65963
7044         * tree-scalar-evolution.c (interpret_rhs_expr): Try to handle
7045         LSHIFT_EXPRs as equivalent unsigned MULT_EXPRs.
7047 2015-11-05  James Greenhalgh  <james.greenhalgh@arm.com>
7049         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): New.
7050         (noce_convert_multiple_sets): Likewise.
7051         (noce_process_if_block): Call them.
7053 2015-11-05  Nathan Sidwell  <nathan@codesourcery.com>
7055         * gimple-fold.c: Include omp-low.h.
7056         (fold_internal_goacc_dim): New.
7057         (gimple_fold_call): Call it.
7059 2015-11-05  Jakub Jelinek  <jakub@redhat.com>
7060             Ilya Verbin  <ilya.verbin@intel.com>
7062         * builtin-types.def
7063         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR): Remove.
7064         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): New.
7065         * cgraph.h (enum cgraph_simd_clone_arg_type): Add
7066         SIMD_CLONE_ARG_TYPE_LINEAR_REF_VARIABLE_STEP,
7067         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP and
7068         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP.
7069         (struct cgraph_simd_clone_arg): Adjust comment.
7070         * omp-builtins.def (BUILT_IN_GOMP_TARGET): Rename GOMP_target_41
7071         to GOMP_target_ext.  Add num_teams and thread_limit arguments.
7072         (BUILT_IN_GOMP_TARGET_DATA): Rename GOMP_target_data_41
7073         to GOMP_target_data_ext.
7074         (BUILT_IN_GOMP_TARGET_UPDATE): Rename GOMP_target_update_41
7075         to GOMP_target_update_ext.
7076         (BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_START,
7077         BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_START,
7078         BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_NEXT,
7079         BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_NEXT,
7080         BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_START,
7081         BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_START,
7082         BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_NEXT,
7083         BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_NEXT,
7084         BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_DYNAMIC,
7085         BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_GUIDED): New built-ins.
7086         * tree-core.h (enum omp_clause_schedule_kind): Add
7087         OMP_CLAUSE_SCHEDULE_MASK, OMP_CLAUSE_SCHEDULE_MONOTONIC,
7088         OMP_CLAUSE_SCHEDULE_NONMONOTONIC and change
7089         OMP_CLAUSE_SCHEDULE_LAST value.
7090         * tree.def (OMP_SIMD, CILK_SIMD, CILK_FOR, OMP_DISTRIBUTE,
7091         OMP_TASKLOOP, OACC_LOOP): Add OMP_FOR_ORIG_DECLS argument.
7092         * tree.h (OMP_FOR_ORIG_DECLS): Use OMP_LOOP_CHECK instead of
7093         OMP_FOR_CHECK.  Remove comment.
7094         * tree-pretty-print.c (dump_omp_clause): Handle
7095         GOMP_MAP_FIRSTPRIVATE_REFERENCE and GOMP_MAP_ALWAYS_POINTER.
7096         Simplify.  Print schedule clause modifiers.
7097         * tree-vect-stmts.c (vectorizable_simd_clone_call): Add
7098         SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_VARIABLE_STEP
7099         cases.
7100         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_ALWAYS_TO.
7101         (omp_default_clause): Tweak for
7102         private/firstprivate/is_device_ptr variables on target
7103         construct and use_device_ptr on target data.
7104         (omp_check_private): Likewise.
7105         (omp_notice_variable): For references check whether what it refers
7106         to has mappable type, rather than the reference itself.
7107         (omp_is_private): Diagnose linear iteration variables on non-simd
7108         constructs.
7109         (omp_no_lastprivate): Return true only for Fortran.
7110         (gimplify_scan_omp_clauses): Or in GOVD_MAP_ALWAYS_TO for
7111         GOMP_MAP_ALWAYS_TO or GOMP_MAP_ALWAYS_TOFROM kinds.
7112         Add support for GOMP_MAP_FIRSTPRIVATE_REFERENCE and
7113         GOMP_MAP_ALWAYS_POINTER, remove old handling of structure element
7114         based array sections.  Use GOMP_MAP_ALWAYS_P.  Fix up handling of
7115         lastprivate and linear when combined with distribute.  Gimplify
7116         variable low-bound for array reduction.  Look through
7117         POINTER_PLUS_EXPR when looking for ADDR_EXPR for array section
7118         reductions.
7119         (gimplify_adjust_omp_clauses_1): For implicit references to
7120         variables with reference type and when not ref to scalar or
7121         ref to pointer, map what they refer to using tofrom and
7122         use GOMP_MAP_FIRSTPRIVATE_REFERENCE for the reference.
7123         (gimplify_adjust_omp_clauses): Remove GOMP_MAP_ALWAYS_POINTER
7124         from target exit data.  Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE.
7125         Drop OMP_CLAUSE_MAP_PRIVATE support.  Use GOMP_MAP_ALWAYS_P.
7126         Diagnose the same var on both firstprivate and lastprivate on
7127         distribute construct.
7128         (gimplify_omp_for): Fix up handling of predetermined
7129         lastprivate or linear iter vars when combined with distribute.
7130         (find_omp_teams, computable_teams_clause, optimize_target_teams): New
7131         functions.
7132         (gimplify_omp_workshare): Call optimize_target_teams.
7133         * omp-low.c (struct omp_region): Add sched_modifiers field.
7134         (struct omp_for_data): Likewise.
7135         (omp_any_child_fn_dumped): New variable.
7136         (extract_omp_for_data): Fill in sched_modifiers, and mask out
7137         OMP_CLAUSE_SCHEDULE_KIND bits outside of OMP_CLAUSE_SCHEDULE_MASK
7138         from sched_kind.
7139         (determine_parallel_type): Use only OMP_CLAUSE_SCHEDULE_MASK
7140         bits of OMP_CLAUSE_SCHED_KIND.
7141         (scan_sharing_clauses): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE,
7142         drop OMP_CLAUSE_MAP_PRIVATE support.  Look through POINTER_PLUS_EXPR
7143         for array section reductions.
7144         (add_taskreg_looptemp_clauses): Add one extra _looptemp_ clause even
7145         for distribute parallel for, if there are lastprivate clauses on the
7146         for.
7147         (lower_rec_input_clauses): Handle non-zero low-bound on array
7148         section reductions.
7149         (lower_reduction_clauses): Likewise.
7150         (lower_send_clauses): Look through POINTER_PLUS_EXPR
7151         for array section reductions.
7152         (expand_parallel_call): Use nonmonotonic entrypoints for
7153         nonmonotonic: dynamic/guided.
7154         (expand_omp_taskreg): Call assign_assembler_name_if_neeeded on
7155         child_fn if current_function_decl has assembler name set, but child_fn
7156         does not.  Dump the header and IL of the child function when not in SSA
7157         form.
7158         (expand_omp_target): Likewise.  Pass num_teams and thread_limit
7159         arguments to BUILT_IN_GOMP_TARGET.
7160         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
7161         Initialize the extra _looptemp_ clause to fd->loop.n2.
7162         (expand_omp_for): Use nonmonotonic entrypoints for
7163         nonmonotonic: dynamic/guided.  Initialize region->sched_modifiers.
7164         (expand_omp): Clear omp_any_child_fn_dumped.  Dump function header
7165         again if we have dumped any child functions.
7166         (lower_omp_for_lastprivate): Determine the right count variable
7167         for distribute simd, or distribute parallel for{, simd}.
7168         (lower_omp_target): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE
7169         and GOMP_MAP_ALWAYS_POINTER.  Drop OMP_CLAUSE_MAP_PRIVATE
7170         support.
7171         (simd_clone_clauses_extract): Handle variable step
7172         for references and arguments passed by reference.
7173         (simd_clone_mangle): Mangle ref/uval/val variable steps.
7174         (simd_clone_adjust_argument_types): Handle
7175         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP like
7176         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
7177         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP like
7178         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
7179         (simd_clone_linear_addend): New function.
7180         (simd_clone_adjust): Handle variable step like similarly
7181         to constant step, use simd_clone_linear_addend to determine
7182         the actual step at runtime.
7184 2015-11-05  Nathan Sidwell  <nathan@codesourcery.com>
7186         * target.def (goacc.dim_limit): New hook.
7187         * targhooks.h (default_goacc_dim_limit): Declare.
7188         * doc/tm.texi.in (TARGET_GOACC_DIM_LIMIT): Add.
7189         * doc/tm.texi: Rebuilt.
7190         * omp-low.h (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): Declare.
7191         * omp-low.c (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): New.
7192         (default_goacc_dim_limit): New.
7193         * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
7194         (nvptx_goacc_dim_limit) New.
7195         (TARGET_GOACC_DIM_LIMIT): Override.
7196         * tree-vrp.c: Include omp-low.h, target.h.
7197         (extract_range_basic): Add handling for IFN_GOACC_DIM_SIZE &
7198         IFN_GOACC_DIM_POS.
7200 2015-11-05  Ilya Enkovich  <enkovich.gnu@gmail.com>
7202         * tree-vect-generic.c (do_compare): Use -1 for true
7203         result instead of 1.
7205 2015-11-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7207         * config/aarch64/aarch64.c
7208         (aarch64_can_use_per_function_literal_pools_p): New.
7209         (aarch64_use_blocks_for_constant_p): Adjust declaration
7210         and use aarch64_can_use_function_literal_pools_p.
7211         (aarch64_select_rtx_section): Update.
7213 2015-11-05  Ilya Enkovich  <enkovich.gnu@gmail.com>
7215         * targhooks.c (default_get_mask_mode): Use BLKmode in
7216         case target doesn't support required vector mode.
7217         * stor-layout.c (layout_type); Check for BLKmode.
7219 2015-11-04  Aditya Kumar  <aditya.k7@samsung.com>
7220             Sebastian Pop  <s.pop@samsung.com>
7222         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
7223         Remove use of parameter_rename_map.
7224         (copy_def): Remove.
7225         (copy_internal_parameters): Remove.
7226         (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
7227         * sese.c (new_sese_info): Do not initialize parameter_rename_map.
7228         (free_sese_info): Do not free parameter_rename_map.
7229         (set_rename): Do not use parameter_rename_map.
7230         (rename_uses): Update call to set_rename.
7231         (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
7232         * sese.h (parameter_rename_map_t): Remove.
7233         (struct sese_info_t): Remove field parameter_rename_map.
7235 2015-11-04  Aditya Kumar  <aditya.k7@samsung.com>
7236             Sebastian Pop  <s.pop@samsung.com>
7238         * graphite-isl-ast-to-gimple.c: Include tree-cfg.h.
7239         (translate_isl_ast_node_user): Add more dumps: call print_loops_bb.
7240         * graphite-scop-detection.c (dot_all_scops_1): Moved out of
7241         anonymous namespace.
7242         * graphite-sese-to-poly.c (ssa_name_version_typesize): Remove.
7243         (isl_id_for_pbb): Use a buffer of size 10.
7244         (isl_id_for_ssa_name): Same.
7245         * sese.c (set_rename): Add more dumps.
7247 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
7249         * omp-low.c (struct omp_context): Remove reduction_map field.
7250         (lookup_oacc_reduction, maybe_lookup_oacc_reduction): Delete.
7251         (new_omp_context, delete_omp_context, scan_omp_target): Remove
7252         reduction_map handling.
7253         (lower_omp_target): Remove obsolete openacc reduction handling.
7255 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
7257         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add checking.
7259 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
7260             Cesar Philippidis  <cesar@codesourcery.com>
7262         * config/nvptx/nvptx.c: Include gimple headers.
7263         (worker_red_size, worker_red_align, worker_red_name,
7264         worker_red_sym): New.
7265         (nvptx_option_override): Initialize worker reduction buffer.
7266         (nvptx_file_end): Write out worker reduction buffer var.
7267         (nvptx_expand_shuffle, nvptx_expand_worker_addr,
7268         nvptx_expand_cmp_swap): New builtin expanders.
7269         (enum nvptx_builtins): New.
7270         (nvptx_builtin_decls): New.
7271         (nvptx_builtin_decl, nvptx_init_builtins, nvptx_expand_builtin): New
7272         (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
7273         (nvptx_get_worker_red_addr, nvptx_generate_vector_shuffle,
7274         nvptx_lockless_update): New helpers.
7275         (nvptx_goacc_reduction_setup, nvptx_goacc_reduction_init,
7276         nvptx_goacc_reduction_fini, nvptx_goacc_reduction_teaddown): New.
7277         (nvptx_goacc_reduction): New.
7278         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN,
7279         TARGET_BUILTIN_DECL): Override.
7280         (TARGET_GOACC_REDUCTION): Override.
7282 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
7283             Cesar Philippidis  <cesar@codesourcery.com>
7285         * internal-fn.def (GOACC_REDUCTION): New.
7286         * internal-fn.h (enum ifn_goacc_reduction_kind): New.
7287         * internal-fn.c (expand_GOACC_REDUCTION): New.
7288         * target.def (goacc.reduction): New OpenACC hook.
7289         * targhooks.h (default_goacc_reduction): Declare.
7290         * doc/tm.texi.in: Add TARGET_GOACC_REDUCTION.
7291         * doc/tm.texi: Rebuilt.
7292         * omp-low.c (oacc_get_reduction_array_id, oacc_max_threads,
7293         scan_sharing_clauses): Remove oacc reduction handling here.
7294         (lower_rec_input_clauses): Don't handle OpenACC reductions here.
7295         (oacc_lower_reduction_var_helper): Delete.
7296         (lower_oacc_reductions): New.
7297         (lower_reduction_clauses): Don't handle OpenACC reductions here.
7298         (lower_oacc_head_tail): Call lower_oacc_reductions.
7299         (oacc_gimple_assign, oacc_init_reduction_array,
7300         oacc_initialize_reduction_data, oacc_finalize_reduction_data,
7301         oacc_process_reduction_data): Delete.
7302         (lower_omp_target): Remove old OpenACC reduction handling.  Insert
7303         dummy OpenACC gang reduction for reductions at outer level.
7304         (oacc_loop_xform_head_tail): Transform IFN_GOACC_REDUCTION.
7305         (default_goacc_reduction): New.
7306         (execute_oacc_device_lower): Handle IFN_GOACC_REDUCTION.
7308 2015-11-04  Martin Liska  <mliska@suse.cz>
7310         * cgraphunit.c (cgraph_node::expand_thunk): Call
7311         allocate_struct_function before init_function_start.
7312         (cgraph_node::expand): Use push_cfun and pop_cfun.
7313         * config/i386/i386.c (ix86_code_end): Call
7314         allocate_struct_function before init_function_start.
7315         * config/rs6000/rs6000.c (rs6000_code_end): Likewise.
7316         * function.c (init_function_start): Move preamble to all
7317         callers.
7318         * passes.c (do_per_function_toporder): Use push_cfun and pop_cfun.
7319         (execute_one_pass): Handle newly added TODO_discard_function.
7320         (execute_pass_list_1): Terminate if cfun equals to NULL.
7321         (execute_pass_list): Do not push and pop cfun, expect that
7322         cfun is set.
7323         * tree-pass.h (TODO_discard_function): Define.
7325 2015-11-04  Mikhail Maltsev  <maltsevm@gmail.com>
7327         * cfganal.c (inverted_post_order_compute): Remove conditional
7328         compilation, use flag_checking.
7329         * config.in: Regenerate.
7330         * configure: Regenerate.
7331         * configure.ac: Remove ENABLE_CHECKING.
7332         * genconditions.c: Do not #undef ENABLE_CHECKING.
7333         * sese.h (bb_in_region): Comment out broken check.
7334         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa_1): Remove
7335         conditional compilation, use flag_checking.
7337 2015-11-04  Tom de Vries  <tom@codesourcery.com>
7339         PR tree-optimization/67742
7340         * tree-ssa-structalias.c (struct fieldoff): Add restrict_pointed_type
7341         field.
7342         (push_fields_onto_fieldstack): Handle restrict_pointed_type field.
7343         (create_variable_info_for_1): Add and handle handle_param parameter.
7344         Add restrict handling.
7345         (create_variable_info_for): Call create_variable_info_for_1 with extra
7346         arg.
7347         (make_param_constraints): Drop restrict_name parameter.  Ignore
7348         vi->only_restrict_pointers.
7349         (intra_create_variable_infos): Call create_variable_info_for_1 with
7350         extra arg.  Remove restrict handling.  Call make_param_constraints with
7351         one fewer arg.
7353 2015-11-04  Tom de Vries  <tom@codesourcery.com>
7355         * tree-ssa-structalias.c (create_variable_info_for_1): Use decl_type
7356         variable.
7358 2015-11-03  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7360         * config/arm/coff.h: Remove.
7362 2015-11-03  Eric Botcazou  <ebotcazou@adacore.com>
7364         * gimple-expr.c (useless_type_conversion_p): Reinstate type canonical
7365         check for aggregate types and beef up comment for mode check.
7367 2015-11-03  Richard Biener  <rguenther@suse.de>
7369         * tree-vect-data-refs.c (vect_analyze_data_refs): Do not collect
7370         data references here.
7371         * tree-vect-loop.c: Include cgraph.h.
7372         (vect_analyze_loop_2): Collect data references here.
7373         * tree-vect-slp.c (find_bb_location): Inline ...
7374         (vect_slp_bb): ... here.  Renamed from vect_slp_analyze_bb.
7375         Factor in vect_slp_transform_bb.
7376         (vect_slp_transform_bb): Removed.
7377         (vect_slp_analyze_bb_1): Collect data references here.
7378         * tree-vectorizer.c (pass_slp_vectorize::execute): Call
7379         vect_slp_bb.
7380         * tree-vectorizer.h (vect_slp_bb): Declare.
7381         (vect_slp_analyze_bb): Remove.
7382         (vect_slp_transform_bb): Remove.
7383         (find_bb_location): Remove.
7384         (vect_analyze_data_refs): Remove stmt count reference parameter.
7386 2015-11-03  Evgeny Stupachenko  <evstupac@gmail.com>
7388         * multiple_target.c (create_dispatcher_calls): Add target check
7389         on ifunc.
7390         (create_target_clone): Change assembler name for versioned declarations.
7392 2015-11-03  Thomas Schwinge  <thomas@codesourcery.com>
7393             Chung-Lin Tang  <cltang@codesourcery.com>
7395         * builtins.def (DEF_GOMP_BUILTIN): Enable for flag_openacc.
7396         * omp-low.c (check_omp_nesting_restrictions): Allow
7397         GIMPLE_OMP_ATOMIC_LOAD, GIMPLE_OMP_ATOMIC_STORE inside OpenACC
7398         contexts.
7400 2015-11-03  Bilyan Borisov  <bilyan.borisov@arm.com>
7402         * config/aarch64/aarch64-simd-builtins.def (fmulx): New.
7403         * config/aarch64/aarch64-simd.md (aarch64_fmulx<mode>): New.
7404         * config/aarch64/arm_neon.h (vmulx_f32): Rewrite to call fmulx
7405         builtin.
7406         (vmulxq_f32): Likewise.
7407         (vmulx_f64): New.
7408         (vmulxq_f64): Rewrite to call fmulx builtin.
7409         (vmulxs_f32): Likewise.
7410         (vmulxd_f64): Likewise.
7411         (vmulx_lane_f32): Remove.
7412         * config/aarch64/iterators.md (UNSPEC): Add fmulx.
7414 2015-11-03  Alan Lawrence  <alan.lawrence@arm.com>
7416         * config/aarch64/aarch64.md (*movhf_aarch64): Use
7417         aarch64_reg_or_fp_zero for second operand.
7419 2015-11-03  Alexandre Oliva <aoliva@redhat.com>
7421         * gimple-expr.c: Include hash-set.h and rtl.h.
7422         (mark_addressable_queue): New var.
7423         (mark_addressable): Factor actual marking into...
7424         (mark_addressable_1): ... this.  Queue it up during expand.
7425         (mark_addressable_2): New.
7426         (flush_mark_addressable_queue): New.
7427         * gimple-expr.h (flush_mark_addressable_queue): Declare.
7428         * cfgexpand.c: Include gimple-expr.h.
7429         (pass_expand::execute): Flush mark_addressable queue.
7431 2015-11-02  Alexandre Oliva <aoliva@redhat.com>
7433         * tree-ssa-ifcombine.c (tree_ssa_ifcombine_bb_1): Factor out
7434         bb_no_side_effects_p tests...
7435         (tree_ssa_ifcombine_bb): ... here.
7437         PR tree-optimization/68083
7438         * tree-ssa-ifcombine.c: Include tree-ssa.h.
7439         (bb_no_side_effects_p): Test for undefined uses too.
7440         * tree-ssa.c (gimple_uses_undefined_value_p): New.
7441         * tree-ssa.h (gimple_uses_undefined_value_p): Declare.
7443 2015-11-02  Jeff Law <law@redhat.com>
7445         * tree-ssa-threadupdate.c (valid_jump_thread_path): Also detect
7446         cases where the loop latch edge is in the middle of an FSM path.
7448 2015-11-03  Tom de Vries  <tom@codesourcery.com>
7450         * tree-ssa-structalias.c (make_restrict_var_constraints): Rename to ...
7451         (make_param_constraints): ... this.  Add and handle restrict_name
7452         parameter.  Handle is_full_var case.
7453         (intra_create_variable_infos): Use make_param_constraints.
7455 2015-11-03  Tom de Vries  <tom@codesourcery.com>
7457         * tree-ssa-structalias.c (make_restrict_var_constraints): Replace
7458         make_copy_constraint call with make_constraint_from call.
7460 2015-11-02  Andreas Tobler  <andreast@gcc.gnu.org>
7462         * config/rs6000/freebsd64.h (ASM_SPEC32): Adust spec to handle
7463         PIE executables.
7465 2015-11-02  Richard Sandiford  <richard.sandiford@arm.com>
7467         * builtins.h (fold_fma): Move to fold-const-call.h.
7468         * builtins.c: Include fold-const-call.h.
7469         (mathfn_built_in_2): New function, split out from...
7470         (mathfn_built_in_1): ...here.
7471         (do_real_to_int_conversion, fold_const_builtin_pow)
7472         (fold_const_builtin_logb, fold_const_builtin_significand)
7473         (fold_const_builtin_load_exponent, do_mpfr_arg1, do_mpfr_arg2)
7474         (do_mpfr_arg3, do_mpfr_sincos, do_mpfr_bessel_n, do_mpc_arg1): Delete.
7475         (fold_builtin_sincos): Use fold_const_call to handle constants.
7476         (fold_builtin_1, fold_builtin_2, fold_builtin_3): Add explicit
7477         checks for ERROR_MARK.  Use fold_const_call to handle constant
7478         folds for math functions.
7479         (fold_fma): Move to fold-const-call.c.
7480         * fold-const.c: Include fold-const-call.h.
7481         * Makefile.in (OBJS): Add fold-const-call.o.
7482         (PLUGIN_HEADERS): Add fold-const-call.h.
7483         * realmpfr.h (real_from_mpfr): Allow the format to be specified
7484         directly.
7485         * realmpfr.c (real_from_mpfr): Likewise.
7486         * fold-const-call.h, fold-const-call.c: New files.
7488 2015-11-02  Julian Brown  <julian@codesourcery.com>
7490         * config/arm/neon-testgen.ml (emit_epilogue): Remove extraneous
7491         brackets and semicolon.
7493 2015-11-02  Alan Lawrence  <alan.lawrence@arm.com>
7495         Revert:
7496         2015-10-27  Alan Lawrence  <alan.lawrence@arm.com>
7498         PR tree-optimization/65963
7499         * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
7500         LSHIFT_EXPRs as equivalent MULT_EXPRs.
7502 2015-11-02  Thomas Schwinge  <thomas@codesourcery.com>
7504         PR middle-end/68166
7505         * fold-const.c: Include "md5.h".
7507 2015-11-01  Jeff Law <law@redhat.com>
7509         * vmsdbgout.c: Revert unused header file reduction patch.
7511         * config/mcore/mcore.c: Include regs.h.
7513 2015-10-31  Segher Boessenkool  <segher@kernel.crashing.org>
7515         * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Rewrite.
7517 2015-10-31  Segher Boessenkool  <segher@kernel.crashing.org>
7519         * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Use the
7520         same condition for testing whether RS6000_PIC_OFFSET_TABLE_REGNUM is
7521         live as for using it elsewhere, for TARGET_MINIMAL_TOC.
7523 2015-10-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
7525         * ggc-common.c: Restore needed header for checking=release.
7527 2015-10-31  Tom de Vries  <tom@codesourcery.com>
7529         * fold-const.c (fold_unary_loc): Tune POINTER_PLUS_EXPR folding.
7531 2015-10-31  Tom de Vries  <tom@codesourcery.com>
7533         * tree-ssa-structalias.c (intra_create_variable_infos): Don't expect
7534         existing varinfo for arguments.
7536 2015-10-31  Tom de Vries  <tom@codesourcery.com>
7538         * tree-ssa-structalias.c (ipa_pta_execute): Add extra arg to call to
7539         create_function_info_for.  Dump constraints generated during
7540         create_function_info_for. Move intra_create_variable_infos call and
7541         function-return-values-escape bit to ...
7542         (create_function_info_for): ... here, and merge
7543         intra_create_variable_infos call with argument loop.  Add and handle
7544         nonlocal_p parameter.
7546 2015-10-31  Tom de Vries  <tom@codesourcery.com>
7548         * tree-ssa-structalias.c (create_function_info_for): Make sure prev_vi
7549         updating is alap, and seperated from preceding code.  Make sure
7550         insert_vi_for_tree is seperated from surrounding code.
7552 2015-10-31  Tom de Vries  <tom@codesourcery.com>
7554         * tree-ssa-structalias.c (ipa_pta_execute): Use make_copy_constraint.
7556 2015-10-30  Jeff Law <law@redhat.com>
7557             Nathan Sidwell  <nathan@acm.org>
7559         * config/nvptx/nvptx.h (HARD_REGNO_NREGS): Avoid warning on unused
7560         args.
7561         (MOVE_MAX): Set to 8.
7563 2015-10-30  Cesar Philippidis  <cesar@codesourcery.com>
7565         * cgraph.c: Include context.h for offloading.
7566         * varpool.c: Include context.h and omp-low.h.
7568 2015-10-30  Anatoly Sokolov  <aesok@post.ru>
7570         * rtl.h (contains_symbol_ref_p): Declare.
7571         (SYMBOL_REF_P): Define.
7572         * rtlanal.c (contains_symbol_ref_p: New function.
7573         * lra-constraints.c (contains_symbol_ref_p): Remove.
7574         * var-tracking.c (contains_symbol_ref): Remove.
7575         (track_expr_p): Use contains_symbol_ref_p instead of
7576         contains_symbol_ref.
7578 2015-10-30  Alan Lawrence  <alan.lawrence@arm.com>
7580         * gimple-fold.c (fold_array_ctor_reference): Move searching code to:
7581         * fold-const.c (get_array_ctor_element_at_index): New.
7582         (fold): Remove binary-search through CONSTRUCTOR, call previous.
7584         * fold-const.h (get_array_ctor_element_at_index): New.
7586 2015-10-30  Evgeny Stupachenko  <evstupac@gmail.com>
7588         * Makefile.in (OBJS): Add multiple_target.o.
7589         * attrib.c (make_attribute): Moved from config/i386/i386.c
7590         * config/i386/i386.c (make_attribute): Deleted.
7591         * multiple_target.c (create_dispatcher_calls): New.
7592         (get_attr_len): Ditto.
7593         (get_attr_str): Ditto.
7594         (separate_attrs): Ditto.
7595         (is_valid_asm_symbol): Ditto.
7596         (create_new_asm_name): Ditto.
7597         (create_target_clone): Ditto.
7598         (expand_target_clones): Ditto.
7599         (ipa_target_clone): Ditto.
7600         (ipa_dispatcher_calls): Ditto.
7601         * passes.def (pass_target_clone): Two new ipa passes.
7602         * tree-pass.h (make_pass_target_clone): Ditto.
7603         * doc/extend.texi (target_clones): New attribute description.
7605 2015-10-30  Vladimir Makarov  <vmakarov@redhat.com>
7607         PR rtl-optimization/68106
7608         * lra-remat.c (input_regno_present_p): Process hard regs
7609         explicitly present in machine description insns.
7610         (call_used_input_regno_present_p): Ditto.
7611         (calculate_gen_cands): Ditto.
7612         (do_remat): Ditto.
7614 2015-10-30  Jim Wilson  <jim.wilson@linaro.org>
7616         * config/arm/neon-testgen.ml: Fix comment typo.
7618 2015-10-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7620         * rtlanal.c (reg_set_p): Expand function comment.
7622 2015-10-30  Andrew MacLeod  <amacleod@redhat.com>
7624         * alias.c: Remove unused headers.
7625         * asan.c: Likewise.
7626         * attribs.c: Likewise.
7627         * auto-inc-dec.c: Likewise.
7628         * auto-profile.c: Likewise.
7629         * bb-reorder.c: Likewise.
7630         * bitmap.c: Likewise.
7631         * bt-load.c: Likewise.
7632         * builtins.c: Likewise.
7633         * caller-save.c: Likewise.
7634         * calls.c: Likewise.
7635         * ccmp.c: Likewise.
7636         * cfg.c: Likewise.
7637         * cfganal.c: Likewise.
7638         * cfgbuild.c: Likewise.
7639         * cfgcleanup.c: Likewise.
7640         * cfgexpand.c: Likewise.
7641         * cfghooks.c: Likewise.
7642         * cfgloop.c: Likewise.
7643         * cfgloopanal.c: Likewise.
7644         * cfgloopmanip.c: Likewise.
7645         * cfgrtl.c: Likewise.
7646         * cgraph.c: Likewise.
7647         * cgraphbuild.c: Likewise.
7648         * cgraphclones.c: Likewise.
7649         * cgraphunit.c: Likewise.
7650         * cilk-common.c: Likewise.
7651         * combine-stack-adj.c: Likewise.
7652         * combine.c: Likewise.
7653         * compare-elim.c: Likewise.
7654         * convert.c: Likewise.
7655         * coverage.c: Likewise.
7656         * cppbuiltin.c: Likewise.
7657         * cprop.c: Likewise.
7658         * cse.c: Likewise.
7659         * cselib.c: Likewise.
7660         * data-streamer-in.c: Likewise.
7661         * data-streamer-out.c: Likewise.
7662         * data-streamer.c: Likewise.
7663         * dbxout.c: Likewise.
7664         * dce.c: Likewise.
7665         * ddg.c: Likewise.
7666         * debug.c: Likewise.
7667         * df-core.c: Likewise.
7668         * df-problems.c: Likewise.
7669         * df-scan.c: Likewise.
7670         * dfp.c: Likewise.
7671         * dojump.c: Likewise.
7672         * dominance.c: Likewise.
7673         * domwalk.c: Likewise.
7674         * double-int.c: Likewise.
7675         * dse.c: Likewise.
7676         * dumpfile.c: Likewise.
7677         * dwarf2asm.c: Likewise.
7678         * dwarf2cfi.c: Likewise.
7679         * dwarf2out.c: Likewise.
7680         * emit-rtl.c: Likewise.
7681         * except.c: Likewise.
7682         * explow.c: Likewise.
7683         * expmed.c: Likewise.
7684         * expr.c: Likewise.
7685         * final.c: Likewise.
7686         * fixed-value.c: Likewise.
7687         * fold-const.c: Likewise.
7688         * function.c: Likewise.
7689         * fwprop.c: Likewise.
7690         * gcse.c: Likewise.
7691         * generic-match-head.c: Likewise.
7692         * ggc-common.c: Likewise.
7693         * gimple-builder.c: Likewise.
7694         * gimple-expr.c: Likewise.
7695         * gimple-fold.c: Likewise.
7696         * gimple-iterator.c: Likewise.
7697         * gimple-low.c: Likewise.
7698         * gimple-match-head.c: Likewise.
7699         * gimple-pretty-print.c: Likewise.
7700         * gimple-ssa-isolate-paths.c: Likewise.
7701         * gimple-ssa-strength-reduction.c: Likewise.
7702         * gimple-streamer-in.c: Likewise.
7703         * gimple-streamer-out.c: Likewise.
7704         * gimple-walk.c: Likewise.
7705         * gimple.c: Likewise.
7706         * gimplify-me.c: Likewise.
7707         * gimplify.c: Likewise.
7708         * godump.c: Likewise.
7709         * graph.c: Likewise.
7710         * graphds.c: Likewise.
7711         * haifa-sched.c: Likewise.
7712         * hw-doloop.c: Likewise.
7713         * ifcvt.c: Likewise.
7714         * init-regs.c: Likewise.
7715         * internal-fn.c: Likewise.
7716         * ipa-chkp.c: Likewise.
7717         * ipa-comdats.c: Likewise.
7718         * ipa-cp.c: Likewise.
7719         * ipa-devirt.c: Likewise.
7720         * ipa-icf-gimple.c: Likewise.
7721         * ipa-icf.c: Likewise.
7722         * ipa-inline-analysis.c: Likewise.
7723         * ipa-inline-transform.c: Likewise.
7724         * ipa-inline.c: Likewise.
7725         * ipa-polymorphic-call.c: Likewise.
7726         * ipa-profile.c: Likewise.
7727         * ipa-prop.c: Likewise.
7728         * ipa-pure-const.c: Likewise.
7729         * ipa-ref.c: Likewise.
7730         * ipa-reference.c: Likewise.
7731         * ipa-split.c: Likewise.
7732         * ipa-utils.c: Likewise.
7733         * ipa-visibility.c: Likewise.
7734         * ipa.c: Likewise.
7735         * ira-build.c: Likewise.
7736         * ira-color.c: Likewise.
7737         * ira-conflicts.c: Likewise.
7738         * ira-costs.c: Likewise.
7739         * ira-emit.c: Likewise.
7740         * ira-lives.c: Likewise.
7741         * ira.c: Likewise.
7742         * jump.c: Likewise.
7743         * langhooks.c: Likewise.
7744         * lcm.c: Likewise.
7745         * lists.c: Likewise.
7746         * loop-doloop.c: Likewise.
7747         * loop-init.c: Likewise.
7748         * loop-invariant.c: Likewise.
7749         * loop-iv.c: Likewise.
7750         * loop-unroll.c: Likewise.
7751         * lower-subreg.c: Likewise.
7752         * lra-assigns.c: Likewise.
7753         * lra-coalesce.c: Likewise.
7754         * lra-constraints.c: Likewise.
7755         * lra-eliminations.c: Likewise.
7756         * lra-lives.c: Likewise.
7757         * lra-remat.c: Likewise.
7758         * lra-spills.c: Likewise.
7759         * lra.c: Likewise.
7760         * lto-cgraph.c: Likewise.
7761         * lto-compress.c: Likewise.
7762         * lto-opts.c: Likewise.
7763         * lto-section-in.c: Likewise.
7764         * lto-section-out.c: Likewise.
7765         * lto-streamer-in.c: Likewise.
7766         * lto-streamer-out.c: Likewise.
7767         * lto-streamer.c: Likewise.
7768         * mcf.c: Likewise.
7769         * mode-switching.c: Likewise.
7770         * modulo-sched.c: Likewise.
7771         * optabs.c: Likewise.
7772         * opts-global.c: Likewise.
7773         * passes.c: Likewise.
7774         * plugin.c: Likewise.
7775         * postreload-gcse.c: Likewise.
7776         * postreload.c: Likewise.
7777         * predict.c: Likewise.
7778         * print-tree.c: Likewise.
7779         * profile.c: Likewise.
7780         * real.c: Likewise.
7781         * realmpfr.c: Likewise.
7782         * recog.c: Likewise.
7783         * ree.c: Likewise.
7784         * reg-stack.c: Likewise.
7785         * regcprop.c: Likewise.
7786         * reginfo.c: Likewise.
7787         * regrename.c: Likewise.
7788         * regstat.c: Likewise.
7789         * reload.c: Likewise.
7790         * reload1.c: Likewise.
7791         * reorg.c: Likewise.
7792         * resource.c: Likewise.
7793         * rtl-chkp.c: Likewise.
7794         * rtl-error.c: Likewise.
7795         * rtlanal.c: Likewise.
7796         * rtlhooks.c: Likewise.
7797         * sanopt.c: Likewise.
7798         * sched-deps.c: Likewise.
7799         * sched-ebb.c: Likewise.
7800         * sched-rgn.c: Likewise.
7801         * sdbout.c: Likewise.
7802         * sel-sched-dump.c: Likewise.
7803         * sel-sched-ir.c: Likewise.
7804         * sel-sched.c: Likewise.
7805         * sese.c: Likewise.
7806         * shrink-wrap.c: Likewise.
7807         * simplify-rtx.c: Likewise.
7808         * stack-ptr-mod.c: Likewise.
7809         * statistics.c: Likewise.
7810         * stmt.c: Likewise.
7811         * stor-layout.c: Likewise.
7812         * store-motion.c: Likewise.
7813         * stringpool.c: Likewise.
7814         * symtab.c: Likewise.
7815         * target-globals.c: Likewise.
7816         * targhooks.c: Likewise.
7817         * toplev.c: Likewise.
7818         * tracer.c: Likewise.
7819         * trans-mem.c: Likewise.
7820         * tree-affine.c: Likewise.
7821         * tree-call-cdce.c: Likewise.
7822         * tree-cfg.c: Likewise.
7823         * tree-cfgcleanup.c: Likewise.
7824         * tree-chkp-opt.c: Likewise.
7825         * tree-chkp.c: Likewise.
7826         * tree-chrec.c: Likewise.
7827         * tree-complex.c: Likewise.
7828         * tree-data-ref.c: Likewise.
7829         * tree-dfa.c: Likewise.
7830         * tree-diagnostic.c: Likewise.
7831         * tree-dump.c: Likewise.
7832         * tree-eh.c: Likewise.
7833         * tree-emutls.c: Likewise.
7834         * tree-if-conv.c: Likewise.
7835         * tree-inline.c: Likewise.
7836         * tree-into-ssa.c: Likewise.
7837         * tree-iterator.c: Likewise.
7838         * tree-loop-distribution.c: Likewise.
7839         * tree-nested.c: Likewise.
7840         * tree-nrv.c: Likewise.
7841         * tree-object-size.c: Likewise.
7842         * tree-outof-ssa.c: Likewise.
7843         * tree-parloops.c: Likewise.
7844         * tree-phinodes.c: Likewise.
7845         * tree-predcom.c: Likewise.
7846         * tree-pretty-print.c: Likewise.
7847         * tree-profile.c: Likewise.
7848         * tree-scalar-evolution.c: Likewise.
7849         * tree-sra.c: Likewise.
7850         * tree-ssa-address.c: Likewise.
7851         * tree-ssa-alias.c: Likewise.
7852         * tree-ssa-ccp.c: Likewise.
7853         * tree-ssa-coalesce.c: Likewise.
7854         * tree-ssa-copy.c: Likewise.
7855         * tree-ssa-dce.c: Likewise.
7856         * tree-ssa-dse.c: Likewise.
7857         * tree-ssa-forwprop.c: Likewise.
7858         * tree-ssa-ifcombine.c: Likewise.
7859         * tree-ssa-live.c: Likewise.
7860         * tree-ssa-loop-ch.c: Likewise.
7861         * tree-ssa-loop-im.c: Likewise.
7862         * tree-ssa-loop-ivcanon.c: Likewise.
7863         * tree-ssa-loop-ivopts.c: Likewise.
7864         * tree-ssa-loop-manip.c: Likewise.
7865         * tree-ssa-loop-niter.c: Likewise.
7866         * tree-ssa-loop-prefetch.c: Likewise.
7867         * tree-ssa-loop-unswitch.c: Likewise.
7868         * tree-ssa-loop.c: Likewise.
7869         * tree-ssa-math-opts.c: Likewise.
7870         * tree-ssa-operands.c: Likewise.
7871         * tree-ssa-phiopt.c: Likewise.
7872         * tree-ssa-phiprop.c: Likewise.
7873         * tree-ssa-pre.c: Likewise.
7874         * tree-ssa-propagate.c: Likewise.
7875         * tree-ssa-reassoc.c: Likewise.
7876         * tree-ssa-scopedtables.c: Likewise.
7877         * tree-ssa-sink.c: Likewise.
7878         * tree-ssa-strlen.c: Likewise.
7879         * tree-ssa-structalias.c: Likewise.
7880         * tree-ssa-tail-merge.c: Likewise.
7881         * tree-ssa-ter.c: Likewise.
7882         * tree-ssa-threadupdate.c: Likewise.
7883         * tree-ssa-uncprop.c: Likewise.
7884         * tree-ssa-uninit.c: Likewise.
7885         * tree-ssa.c: Likewise.
7886         * tree-ssanames.c: Likewise.
7887         * tree-stdarg.c: Likewise.
7888         * tree-streamer-in.c: Likewise.
7889         * tree-streamer-out.c: Likewise.
7890         * tree-streamer.c: Likewise.
7891         * tree-switch-conversion.c: Likewise.
7892         * tree-tailcall.c: Likewise.
7893         * tree-vect-data-refs.c: Likewise.
7894         * tree-vect-generic.c: Likewise.
7895         * tree-vect-loop-manip.c: Likewise.
7896         * tree-vect-loop.c: Likewise.
7897         * tree-vect-patterns.c: Likewise.
7898         * tree-vect-slp.c: Likewise.
7899         * tree-vect-stmts.c: Likewise.
7900         * tree-vectorizer.c: Likewise.
7901         * tree-vrp.c: Likewise.
7902         * tree.c: Likewise.
7903         * tsan.c: Likewise.
7904         * ubsan.c: Likewise.
7905         * value-prof.c: Likewise.
7906         * var-tracking.c: Likewise.
7907         * varasm.c: Likewise.
7908         * varpool.c: Likewise.
7909         * vmsdbgout.c: Likewise.
7910         * vtable-verify.c: Likewise.
7911         * web.c: Likewise.
7912         * wide-int-print.cc: Likewise.
7913         * wide-int.cc: Likewise.
7914         * xcoffout.c: Likewise.
7916 2015-10-30  James Greenhalgh  <james.greenhalgh@arm.com>
7918         * doc/invoke.texi (fdump-rtl-@var{pass}): Clarify relationship
7919         between pass numbering and execution order.
7921 2015-10-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7923         * config/arm/arm.c (cortex_a9_sched_adjust_cost): Use reg_set_p to
7924         check for dependencies.
7926 2015-10-30  Richard Sandiford  <richard.sandiford@arm.com>
7928         * tree-ssa-math-opts.c (pass_cse_sincos::execute): Don't free
7929         CDI_DOMINATORS.
7931 2015-10-30  Richard Sandiford  <richard.sandiford@arm.com>
7933         * real.h (format_helper): New.
7934         (real_convert, exact_real_truncate, real_from_string3, real_to_target)
7935         (real_from_target, real_nan, real_2expN, real_value_truncate)
7936         (significand_size, real_from_string2, exact_real_inverse)
7937         (exact_real_inverse, real_powi, real_trunc, real_floor, real_ceil)
7938         (real_round, real_isinteger, real_from_integer): Replace
7939         machine_mode arguments with format_helper arguments.
7940         * real.c (exact_real_inverse, real_from_string2, real_from_string3)
7941         (real_from_integer, real_nan, real_2expN, real_convert)
7942         (real_value_truncate, exact_real_truncate, real_to_target)
7943         (real_from_target, significand_size, real_powi, real_trunc)
7944         (real_floor, real_ceil, real_round, real_isinteger): Replace
7945         machine_mode arguments with format_helper arguments.
7946         (real_to_target_fmt, real_from_target_fmt): Delete.
7947         * dfp.h (decimal_real_convert): Replace mode argument with real_format.
7948         * dfp.c (decimal_to_binary, decimal_real_convert): Replace mode
7949         argument with real_format.
7950         * builtins.c (do_real_to_int_conversion): Update type of fn argument.
7952 2015-10-30  Richard Sandiford  <richard.sandiford@arm.com>
7954         * fixed-value.c (check_real_for_fixed_mode, fixed_from_string)
7955         (fixed_to_decimal, fixed_convert_from_real)
7956         (real_convert_from_fixed): Fix mode arguments to real_2expN.
7958 2015-10-30  Richard Sandiford  <richard.sandiford@arm.com>
7960         * real.h (REAL_MODE_FORMAT): Abort if the mode isn't a
7961         SCALAR_FLOAT_MODE_P.
7963 2015-10-30  Alan Lawrence  <alan.lawrence@arm.com>
7965         * tree-sra.c (scalarizable_type_p): Comment variable-length arrays.
7966         (completely_scalarize): Comment zero-length arrays.
7967         (get_access_replacement): Correct comment re. precondition.
7969 2015-10-30  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
7971         * config/i386/i386.c (get_builtin_code_for_version): Set priority
7972         for PROCESSOR_ZNVER1.
7973         (enum processor_model): Add M_AMDFAM17H_znver1.
7974         (struct arch_names_table): Likewise.
7975         * doc/extend.texi: ADD znver1.
7977 2015-10-30  Richard Biener  <rguenther@suse.de>
7979         * gimple-fold.c (fold_gimple_assign): Do not dispatch to
7980         fold () on single RHSs.  Allow CONSTRUCTORS with trailing
7981         zeros to be folded to VECTOR_CSTs.
7982         * tree.c (build_vector_from_ctor): Handle VECTOR_CST elements.
7983         * fold-const.c (fold): Use build_vector_from_ctor.
7985 2015-10-30  Evandro Menezes  <e.menezes@samsung.com>
7987         * config/aarch64/aarch64.md (*movhf_aarch64): Change the type of
7988         "mov %0.h[0], %1.h[0] to "neon_move".
7989         (*movtf_aarch64): Change the type of "fmov %s0, wzr" to "f_mcr".
7990         (*cmov<mode>_insn): Change the types of "mov %<w>0, {-1,1}" to
7991         "mov_imm".
7992         (*cmovsi_insn_uxtw): Likewise.
7994 2015-10-30  Tom de Vries  <tom@codesourcery.com>
7996         * tree-ssa-structalias.c (ipa_pta_execute): Declare variable from as
7997         unsigned, and initialize, and use initial value instead of hardcoded
7998         constant.  Add generic constraints dumping section.  Don't dump global
7999         initializers constraints dumping section if empty.  Don't update
8000         variable from if unused.
8002 2015-10-29  Mikhail Maltsev  <maltsevm@gmail.com>
8004         * config/alpha/alpha.c (alpha_function_arg): Use gcc_checking_assert,
8005         flag_checking and/or CHECKING_P to eliminate conditional compilation
8006         on ENABLE_CHECKING.
8007         * config/arm/arm.c (arm_unwind_emit_sequence): Likewise.
8008         * config/bfin/bfin.c (hwloop_optimize): Likewise.
8009         * config/i386/i386.c (ix86_print_operand_address): Likewise.
8010         (output_387_binary_op): Likewise.
8011         * config/ia64/ia64.c (ia64_sched_init, bundling): Likewise.
8012         * config/m68k/m68k.c (m68k_sched_md_init_global): Likewise.
8013         * config/rs6000/rs6000.c (htm_expand_builtin, rs6000_emit_prologue):
8014         Likewise.
8015         * config/rs6000/rs6000.h: Likewise.
8016         * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
8018 2015-10-29  Kaz Kojima  <kkojima@gcc.gnu.org>
8020         * config/sh/sh.opt (mfdpic): Add missing period.
8022 2015-08-29  Anatoly Sokolov  <aesok@post.ru>
8024         * config/mcore/mcore.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
8025         BASE_REGISTER_RTX_P, INDEX_REGISTER_RTX_P,
8026         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
8027         * config/mcore/mcore.c (mcore_reg_ok_for_base_p,
8028         mcore_base_register_rtx_p, mcore_legitimate_index_p,
8029         mcore_legitimate_address_p): New functions.
8030         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
8032 2015-10-29  Jeff Law  <law@redhat.com>
8034         * tree-ssa-scopedtables.h (const_and_copies): Remove invalidate
8035         method.
8036         * tree-ssa-scopedtables.h (const_and_copies::invalidate): Remove.
8037         * tree-ssa-threadedge.c
8038         (record_temporary_equivalences_from_stmts_at_dest): Remove
8039         backedge_seen argument and associated code which invalidated
8040         equivalences based on the value of that argument.
8041         (thread_through_normal_block): Corresponding changes.
8043 2015-10-29  Segher Boessenkool  <segher@kernel.crashing.org>
8045         * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Move this
8046         function earlier in the file.
8047         (first_reg_to_save): Use rs6000_reg_live_or_pic_offset_p instead of
8048         df_regs_ever_live_p.
8050 2015-10-29  Segher Boessenkool  <segher@kernel.crashing.org>
8052         * lra-constraints.c (process_address_1): Handle (mem:BLK (scratch))
8053         by ignoring it.
8055 2015-10-29  Richard Henderson  <rth@redhat.com>
8057         PR target/68124
8058         PR rtl-opt/67609
8059         * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
8060         sse check to the exact conditions of PR 67609.
8062 2015-10-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
8064         * config/rs6000/rs6000.c (rs6000_init_libfuncs): Split libfunc
8065         setup into 3 functions: init_float128_ibm, init_float128_ieee, and
8066         rs6000_init_libfuncs. If -mfloat128, add IFmode functions for all
8067         of the traditional names that TFmode uses for handling IEEE
8068         extended double. If -mfloat128, add KFmode functions for all of
8069         the emulation functions. If -mabi=ieeelongdouble and -mfloat128,
8070         make TFmode use the same emulation functions as KFmode.
8071         (init_float128_ibm): Likewise.
8072         (init_float128_ieee): Likewise.
8073         (rs6000_generate_compare): For IEEE 128-bit floating point
8074         comparisons, call the unordered comparison function instead of the
8075         ordered comparison function.
8076         (rs6000_expand_float128_convert): Deal with operands that are
8077         memory operands. Restructure the code to use a switch statement on
8078         the mode. Add support for TFmode defaulting to either IBM extended
8079         double or IEEE 128-bit floating point. If the underlying types are
8080         the same, use a move instead of a conversion function.
8081         (TARGET_C_MODE_FOR_SUFFIX): Define 'q' and 'Q' as the suffix to
8082         use for IEEE 128-bit floating point constants with -mfloat128.
8083         (rs6000_c_mode_for_suffix): Likewise.
8084         (TARGET_INVALID_BINARY_OP): Do not allow inter-mixing of IEEE
8085         128-bit floating point with IBM extended double floating point.
8086         (rs6000_invalid_binary_op): Likewise.
8087         (rs6000_gen_le_vsx_permute): On little endian systems generate a
8088         ROTATE insn instead of VEC_SELECT for IEEE 128-bit floating point
8089         types that can go in vector registers.
8090         (chain_contains_only_swaps): Properly swap IEEE 128-bit floating
8091         point types that can go in vector registers on little endian
8092         PowerPC systems.
8093         (mark_swaps_for_removal): Likewise.
8094         (rs6000_analyze_swaps): Likewise.
8095         (rs6000_mangle_type): Use U10__float128 for IEEE 128-bit floating point.
8097         * config/rs6000/rs6000.md (FLOAT128_SFDFTF): Delete iterator,
8098         rework IEEE 128-bit floating point insns to deal with TFmode being
8099         either IBM extended double or IEEE 128-bit floating point.
8100         (IFKF): Likewise.
8101         (IBM128): Update iterator to add condition that the mode is IBM
8102         extended double.
8103         (IEEE128): New iterator for IEEE 128-bit floating point.
8104         (TFIFKF): Rename TFIFKF iterator to FLOAT128.
8105         (FLOAT128): Likewise.
8106         (signbit<mode>2): FLOAT128_IBM_P condition test moved into IBM128
8107         iterator.
8108         (neg<mode>2): Replace TFIFKF iterator with FLOAT128. Add support
8109         for TFmode being IEEE 128-bit floating point. Use IEEE128 iterator
8110         instead of hard coding TFmode or KFmode.
8111         (negtf2_internal): Likewise.
8112         (neg<mode>2_internal): Likewise.
8113         (abs<mode>2): Likewise.
8114         (abstf2_internal): Likewise.
8115         (abs<mode>2_internal): Likewise.
8116         (ieee_128bit_neg<mode>2): Likewise.
8117         (ieee_128bit_neg<mode>2_internal): Likewise.
8118         (ieee_128bit_abs<mode>2): Likewise.
8119         (ieee_128bit_abs<mode>2_internal): Likewise.
8120         (ieee_128bit_nabs<mode>2): Likewise.
8121         (ieee_128bit_nabs<mode>2_internal): Likewise.
8122         (extendiftf2): Add explicit conversions between 128-bit floating
8123         point types. Drop the old conversions that had become unwieldy.
8124         (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
8125         (extendifkf2): Likewise.
8126         (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
8127         (extendtfkf2): Likewise.
8128         (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
8129         (trunciftf2): Likewise.
8130         (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
8131         (truncifkf2): Likewise.
8132         (float<SDI:mode><IFKF:mode>2): Likewise.
8133         (trunckftf2): Likewise.
8134         (floatuns<SDI:mode><IFKF:mode>2): Likewise.
8135         (trunctfif2): Likewise.
8136         (FP iterator): Allow TFmode to be IEEE 128-bit floating point.
8137         (extenddftf2): Rework 128-bit floating point conversions to
8138         properly handle -mabi=ieeelongdouble. Merge IFmode, TFmode, and
8139         KFmode expanders into one function.
8140         (extenddf<mode>2): Likewise.
8141         (extenddftf2_fprs): Likewise.
8142         (extenddf<mode>2_fprs): Likewise.
8143         (extenddftf2_vsx): Likewise.
8144         (extenddf<mode>2_vsx): Likewise.
8145         (extendsftf2): Likewise.
8146         (extendsf<mode>2): Likewise.
8147         (trunctfdf2): Likewise.
8148         (trunc<mode>df2): Likewise.
8149         (trunctfdf2_internal1): Likewise.
8150         (trunc<mode>df2_internal1): Likewise.
8151         (trunctfdf2_internal2): Likewise.
8152         (trunc<mode>df2_internal2): Likewise.
8153         (trunctfsf2): Likewise.
8154         (trunc<mode>sf2): Likewise.
8155         (trunctfsf2_fprs): Likewise.
8156         (trunc<mode>sf2_fprs): Likewise.
8157         (floatsit2f): Likewise.
8158         (floatsi<mode>2): Likewise.
8159         (fix_trunc_helper): Likewise.
8160         (fix_trunc_helper<mode>): Likewise.
8161         (fix_trunctfsi2): Likewise.
8162         (fix_trunc<mode>si2): Likewise.
8163         (fix_trunctfsi2_fprs): Likewise.
8164         (fix_trunc<mode>si2_fprs): Likewise.
8165         (fix_trunctfsi2_internal): Likewise.
8166         (fix_trunc<mode>si2_internal): Likewise.
8167         (fix_trunctfdi2): Likewise.
8168         (fix_trunc<mode>di2): Likewise.
8169         (fixuns_trunctf<mode>2): Likewise.
8170         (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
8171         (floatditf2): Likewise.
8172         (floatdi<mode>2): Likewise.
8173         (floatuns<mode>tf2): Likewise.
8174         (floatuns<SDI:mode><IEEE128:mode>): Likewise.
8175         (cmptf_internal1): Use a mode iterator to add support for both
8176         types (IFmode, TFmode) that support IBM extended double.
8177         (cmp<mode>_internal1): Likewise.
8178         (cmptf_internal2): Likewise.
8179         (cmp<mode>_internal2): Likewise.
8181         * doc/extend.texi (Floating Types): Document __ibm128 and
8182         __float128 on PowerPC.
8184         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
8185         -mfloat128 and -mno-float128.
8187 2015-10-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
8189         * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Add IEEE 128-bit
8190         floating point modes that can go in vector registers.
8191         (MODES_TIEABLE_P): Move tests for vector modes before tests for
8192         scalar floating point, so that IEEE 128-bit floating point that
8193         can go in vector registers bind with vectors and not FP.
8194         (struct rs6000_args): Add libcall field.
8196         * config/rs6000/rs6000.opt (-mfloat128-*): Delete -mfloat128-none
8197         and -mfloat128-software switches.  Replace them with a binary
8198         -mfloat128 switch.
8199         (-mfloat128): Likewise.
8201         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
8202         128-bit floating point types in GPRs, even if the appropriate
8203         option enabling the type was not used.
8204         (rs6000_debug_reg_global): Remove -mfloat128-{software,none}
8205         debugging.
8206         (rs6000_setup_reg_addr_masks): Do not allow pre-increment and
8207         pre-decrement on IEEE 128-bit floating point values.
8208         (rs6000_init_hard_regno_mode_ok): Change test for whether TFmode
8209         is IEEE 128-bit floating point.
8210         (rs6000_init_hard_regno_mode_ok): Add reload handlers for IEEE
8211         128-bit floating point types that can go in vector registers.
8212         (rs6000_option_override_internal): Change -mfloat128-none and
8213         -mfloat128-software to -mfloat128, and move code to be near other
8214         VSX option handling.
8215         (rs6000_option_override_internal): Disable -mfloat128 if we don't
8216         have the Altivec ABI.
8217         (rs6000_init_builtins): Don't make TFmode use either IFmode or
8218         KFmode floating point nodes. Instead, have three separate nodes.
8219         (rs6000_scalar_mode_supported_p): Add support for IFmode to allow
8220         eventually moving the long double default to IEEE 128-bit floating
8221         point.
8222         (rs6000_opt_masks): Add -mfloat128.
8223         (struct rs6000_opt_var): Fix typo in comment.
8224         (init_cumulative_args): Initialize libcall field in
8225         CUMULATIVE_ARGS.
8226         (rs6000_function_arg): Treat library functions as if they had
8227         prototypes to prevent IEEE 128-bit support functions from passing
8228         arguments in both GPRs and vector registers.
8229         (rs6000_arg_partial_bytes): Likewise.
8231         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add -mfloat128 as
8232         an option that can be turned on via -mcpu=<xxx>.
8234         * config/rs6000/rs6000-opts.h (enum float128_type_t): Delete, no
8235         longer used.
8237         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
8238         __FLOAT128__ if -mfloat128. Define __LONG_DOUBLE_IEEE128__ if long
8239         double is IEEE 128-bit. Define __LONG_DOUBLE_IBM128__ if long
8240         double is IBM extended double.
8242         * config/rs6000/predicates.md (reg_or_indexed_operand): Allow
8243         SUBREGs.
8245 2015-10-29  Mikhail Maltsev  <maltsevm@gmail.com>
8247         * genautomata.c: Use CHECKING_P instead of ENABLE_CHECKING.
8248         * genconditions.c: Define CHECKING_P in the generated code.
8249         * genextract.c: Use flag_checking in insn_extract.
8250         * gengtype.c (main): Remove conditional compilation.
8251         * gengtype.h: Likewise.
8253 2015-10-29  Jeff Law  <law@redhat.com>
8255         PR tree-optimization/67892
8256         * tree-ssa-threadedge.c (simplify_controL_stmt_condition): Fix typo
8257         in comment.
8258         (thread_through_normal_block): If we have seen a backedge, then
8259         do nothing.  No longer call find_jump_threads_backwards here.
8260         (thread_across_edge): Use find_jump_threads_backwards to find
8261         jump threads if the old style threader was not successful.
8262         * tree-ssa-threadbackward.c (get_gimple_control_stmt): Use
8263         gsi_last_nondebug_bb.  Return NULL if the block does not end
8264         with a control statement.
8265         (find_jump_threads_backwards): Setup code moved here from
8266         tree-ssa-threadedge.c::thread_through_normal_block.  Accept
8267         single edge argument instead of name & block.
8268         * tree-ssa-threadbackward.h (find_jump_threads_backwards): Update
8269         prototype.
8271 2015-10-29  Tom de Vries  <tom@codesourcery.com>
8273         * fold-const.c (fold_unary_loc): Remove folding inhibition for restrict
8274         types.
8276 2015-10-29  Nathan Sidwell  <nathan@codesourcery.com>
8278         * omp-low.c (lower_omp_target): Remove unreachable code & merge
8279         ifs.
8281 2015-10-29  Marc Glisse  <marc.glisse@inria.fr>
8283         * match.pd (X-(X/Y)*Y): Properly handle conversions and commutativity.
8285 2015-10-29  Richard Sandiford  <richard.sandiford@arm.com>
8287         * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
8288         guard_bb0 and use guard_bb throughout.
8290 2015-10-29  Richard Sandiford  <richard.sandiford@arm.com>
8292         * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
8293         unnecessary label.
8295 2015-10-29  Richard Biener  <rguenther@suse.de>
8297         PR middle-end/68142
8298         * fold-const.c (extract_muldiv_1): Avoid introducing undefined
8299         overflow.
8301 2015-10-29  Andrew MacLeod  <amacleod@redhat.com>
8303         * alias.c: Reorder #include statements and remove duplicates.
8304         * asan.c: Likewise.
8305         * attribs.c: Likewise.
8306         * auto-inc-dec.c: Likewise.
8307         * auto-profile.c: Likewise.
8308         * bb-reorder.c: Likewise.
8309         * bt-load.c: Likewise.
8310         * builtins.c: Likewise.
8311         * caller-save.c: Likewise.
8312         * calls.c: Likewise.
8313         * ccmp.c: Likewise.
8314         * cfg.c: Likewise.
8315         * cfganal.c: Likewise.
8316         * cfgbuild.c: Likewise.
8317         * cfgcleanup.c: Likewise.
8318         * cfgexpand.c: Likewise.
8319         * cfghooks.c: Likewise.
8320         * cfgloop.c: Likewise.
8321         * cfgloopanal.c: Likewise.
8322         * cfgloopmanip.c: Likewise.
8323         * cfgrtl.c: Likewise.
8324         * cgraph.c: Likewise.
8325         * cgraphbuild.c: Likewise.
8326         * cgraphclones.c: Likewise.
8327         * cgraphunit.c: Likewise.
8328         * cilk-common.c: Likewise.
8329         * combine-stack-adj.c: Likewise.
8330         * combine.c: Likewise.
8331         * compare-elim.c: Likewise.
8332         * convert.c: Likewise.
8333         * coverage.c: Likewise.
8334         * cppbuiltin.c: Likewise.
8335         * cprop.c: Likewise.
8336         * cse.c: Likewise.
8337         * cselib.c: Likewise.
8338         * data-streamer-in.c: Likewise.
8339         * data-streamer-out.c: Likewise.
8340         * data-streamer.c: Likewise.
8341         * dbxout.c: Likewise.
8342         * dce.c: Likewise.
8343         * ddg.c: Likewise.
8344         * debug.c: Likewise.
8345         * df-core.c: Likewise.
8346         * df-problems.c: Likewise.
8347         * df-scan.c: Likewise.
8348         * dfp.c: Likewise.
8349         * dojump.c: Likewise.
8350         * dominance.c: Likewise.
8351         * double-int.c: Likewise.
8352         * dse.c: Likewise.
8353         * dumpfile.c: Likewise.
8354         * dwarf2asm.c: Likewise.
8355         * dwarf2cfi.c: Likewise.
8356         * dwarf2out.c: Likewise.
8357         * emit-rtl.c: Likewise.
8358         * except.c: Likewise.
8359         * explow.c: Likewise.
8360         * expmed.c: Likewise.
8361         * expr.c: Likewise.
8362         * final.c: Likewise.
8363         * fixed-value.c: Likewise.
8364         * fold-const.c: Likewise.
8365         * function.c: Likewise.
8366         * fwprop.c: Likewise.
8367         * gcse.c: Likewise.
8368         * generic-match-head.c: Likewise.
8369         * ggc-common.c: Likewise.
8370         * gimple-builder.c: Likewise.
8371         * gimple-expr.c: Likewise.
8372         * gimple-fold.c: Likewise.
8373         * gimple-iterator.c: Likewise.
8374         * gimple-low.c: Likewise.
8375         * gimple-match-head.c: Likewise.
8376         * gimple-pretty-print.c: Likewise.
8377         * gimple-ssa-isolate-paths.c: Likewise.
8378         * gimple-ssa-strength-reduction.c: Likewise.
8379         * gimple-streamer-in.c: Likewise.
8380         * gimple-streamer-out.c: Likewise.
8381         * gimple-walk.c: Likewise.
8382         * gimple.c: Likewise.
8383         * gimplify-me.c: Likewise.
8384         * gimplify.c: Likewise.
8385         * godump.c: Likewise.
8386         * graph.c: Likewise.
8387         * graphite-poly.c: Likewise.
8388         * haifa-sched.c: Likewise.
8389         * hw-doloop.c: Likewise.
8390         * ifcvt.c: Likewise.
8391         * incpath.c: Likewise.
8392         * init-regs.c: Likewise.
8393         * internal-fn.c: Likewise.
8394         * ipa-chkp.c: Likewise.
8395         * ipa-comdats.c: Likewise.
8396         * ipa-cp.c: Likewise.
8397         * ipa-devirt.c: Likewise.
8398         * ipa-icf-gimple.c: Likewise.
8399         * ipa-icf.c: Likewise.
8400         * ipa-inline-analysis.c: Likewise.
8401         * ipa-inline-transform.c: Likewise.
8402         * ipa-inline.c: Likewise.
8403         * ipa-polymorphic-call.c: Likewise.
8404         * ipa-profile.c: Likewise.
8405         * ipa-prop.c: Likewise.
8406         * ipa-pure-const.c: Likewise.
8407         * ipa-ref.c: Likewise.
8408         * ipa-reference.c: Likewise.
8409         * ipa-split.c: Likewise.
8410         * ipa-utils.c: Likewise.
8411         * ipa-visibility.c: Likewise.
8412         * ipa.c: Likewise.
8413         * ira-build.c: Likewise.
8414         * ira-color.c: Likewise.
8415         * ira-conflicts.c: Likewise.
8416         * ira-costs.c: Likewise.
8417         * ira-emit.c: Likewise.
8418         * ira-lives.c: Likewise.
8419         * ira.c: Likewise.
8420         * jump.c: Likewise.
8421         * langhooks.c: Likewise.
8422         * lcm.c: Likewise.
8423         * lists.c: Likewise.
8424         * loop-doloop.c: Likewise.
8425         * loop-init.c: Likewise.
8426         * loop-invariant.c: Likewise.
8427         * loop-iv.c: Likewise.
8428         * loop-unroll.c: Likewise.
8429         * lower-subreg.c: Likewise.
8430         * lra-assigns.c: Likewise.
8431         * lra-coalesce.c: Likewise.
8432         * lra-constraints.c: Likewise.
8433         * lra-eliminations.c: Likewise.
8434         * lra-lives.c: Likewise.
8435         * lra-remat.c: Likewise.
8436         * lra-spills.c: Likewise.
8437         * lra.c: Likewise.
8438         * lto-cgraph.c: Likewise.
8439         * lto-compress.c: Likewise.
8440         * lto-opts.c: Likewise.
8441         * lto-section-in.c: Likewise.
8442         * lto-section-out.c: Likewise.
8443         * lto-streamer-in.c: Likewise.
8444         * lto-streamer-out.c: Likewise.
8445         * lto-streamer.c: Likewise.
8446         * mode-switching.c: Likewise.
8447         * modulo-sched.c: Likewise.
8448         * omp-low.c: Likewise.
8449         * optabs.c: Likewise.
8450         * opts-global.c: Likewise.
8451         * passes.c: Likewise.
8452         * plugin.c: Likewise.
8453         * postreload-gcse.c: Likewise.
8454         * postreload.c: Likewise.
8455         * predict.c: Likewise.
8456         * print-tree.c: Likewise.
8457         * profile.c: Likewise.
8458         * real.c: Likewise.
8459         * realmpfr.c: Likewise.
8460         * recog.c: Likewise.
8461         * ree.c: Likewise.
8462         * reg-stack.c: Likewise.
8463         * regcprop.c: Likewise.
8464         * reginfo.c: Likewise.
8465         * regrename.c: Likewise.
8466         * regstat.c: Likewise.
8467         * reload.c: Likewise.
8468         * reload1.c: Likewise.
8469         * reorg.c: Likewise.
8470         * resource.c: Likewise.
8471         * rtl-chkp.c: Likewise.
8472         * rtl-error.c: Likewise.
8473         * rtlanal.c: Likewise.
8474         * rtlhooks.c: Likewise.
8475         * sanopt.c: Likewise.
8476         * sched-deps.c: Likewise.
8477         * sched-ebb.c: Likewise.
8478         * sched-rgn.c: Likewise.
8479         * sese.c: Likewise.
8480         * shrink-wrap.c: Likewise.
8481         * simplify-rtx.c: Likewise.
8482         * stack-ptr-mod.c: Likewise.
8483         * statistics.c: Likewise.
8484         * stmt.c: Likewise.
8485         * stor-layout.c: Likewise.
8486         * store-motion.c: Likewise.
8487         * stringpool.c: Likewise.
8488         * symtab.c: Likewise.
8489         * target-globals.c: Likewise.
8490         * targhooks.c: Likewise.
8491         * toplev.c: Likewise.
8492         * tracer.c: Likewise.
8493         * trans-mem.c: Likewise.
8494         * tree-affine.c: Likewise.
8495         * tree-call-cdce.c: Likewise.
8496         * tree-cfg.c: Likewise.
8497         * tree-cfgcleanup.c: Likewise.
8498         * tree-chkp-opt.c: Likewise.
8499         * tree-chkp.c: Likewise.
8500         * tree-chrec.c: Likewise.
8501         * tree-complex.c: Likewise.
8502         * tree-data-ref.c: Likewise.
8503         * tree-dfa.c: Likewise.
8504         * tree-diagnostic.c: Likewise.
8505         * tree-dump.c: Likewise.
8506         * tree-eh.c: Likewise.
8507         * tree-emutls.c: Likewise.
8508         * tree-if-conv.c: Likewise.
8509         * tree-inline.c: Likewise.
8510         * tree-into-ssa.c: Likewise.
8511         * tree-iterator.c: Likewise.
8512         * tree-loop-distribution.c: Likewise.
8513         * tree-nested.c: Likewise.
8514         * tree-nrv.c: Likewise.
8515         * tree-object-size.c: Likewise.
8516         * tree-outof-ssa.c: Likewise.
8517         * tree-parloops.c: Likewise.
8518         * tree-phinodes.c: Likewise.
8519         * tree-predcom.c: Likewise.
8520         * tree-pretty-print.c: Likewise.
8521         * tree-profile.c: Likewise.
8522         * tree-scalar-evolution.c: Likewise.
8523         * tree-sra.c: Likewise.
8524         * tree-ssa-address.c: Likewise.
8525         * tree-ssa-alias.c: Likewise.
8526         * tree-ssa-ccp.c: Likewise.
8527         * tree-ssa-coalesce.c: Likewise.
8528         * tree-ssa-copy.c: Likewise.
8529         * tree-ssa-dce.c: Likewise.
8530         * tree-ssa-dom.c: Likewise.
8531         * tree-ssa-dse.c: Likewise.
8532         * tree-ssa-forwprop.c: Likewise.
8533         * tree-ssa-ifcombine.c: Likewise.
8534         * tree-ssa-live.c: Likewise.
8535         * tree-ssa-loop-ch.c: Likewise.
8536         * tree-ssa-loop-im.c: Likewise.
8537         * tree-ssa-loop-ivcanon.c: Likewise.
8538         * tree-ssa-loop-ivopts.c: Likewise.
8539         * tree-ssa-loop-manip.c: Likewise.
8540         * tree-ssa-loop-niter.c: Likewise.
8541         * tree-ssa-loop-prefetch.c: Likewise.
8542         * tree-ssa-loop-unswitch.c: Likewise.
8543         * tree-ssa-loop.c: Likewise.
8544         * tree-ssa-math-opts.c: Likewise.
8545         * tree-ssa-operands.c: Likewise.
8546         * tree-ssa-phiopt.c: Likewise.
8547         * tree-ssa-phiprop.c: Likewise.
8548         * tree-ssa-pre.c: Likewise.
8549         * tree-ssa-propagate.c: Likewise.
8550         * tree-ssa-reassoc.c: Likewise.
8551         * tree-ssa-sccvn.c: Likewise.
8552         * tree-ssa-scopedtables.c: Likewise.
8553         * tree-ssa-sink.c: Likewise.
8554         * tree-ssa-strlen.c: Likewise.
8555         * tree-ssa-structalias.c: Likewise.
8556         * tree-ssa-tail-merge.c: Likewise.
8557         * tree-ssa-ter.c: Likewise.
8558         * tree-ssa-threadedge.c: Likewise.
8559         * tree-ssa-threadupdate.c: Likewise.
8560         * tree-ssa-uncprop.c: Likewise.
8561         * tree-ssa-uninit.c: Likewise.
8562         * tree-ssa.c: Likewise.
8563         * tree-ssanames.c: Likewise.
8564         * tree-stdarg.c: Likewise.
8565         * tree-streamer-in.c: Likewise.
8566         * tree-streamer-out.c: Likewise.
8567         * tree-streamer.c: Likewise.
8568         * tree-switch-conversion.c: Likewise.
8569         * tree-tailcall.c: Likewise.
8570         * tree-vect-data-refs.c: Likewise.
8571         * tree-vect-generic.c: Likewise.
8572         * tree-vect-loop-manip.c: Likewise.
8573         * tree-vect-loop.c: Likewise.
8574         * tree-vect-patterns.c: Likewise.
8575         * tree-vect-slp.c: Likewise.
8576         * tree-vect-stmts.c: Likewise.
8577         * tree-vectorizer.c: Likewise.
8578         * tree-vrp.c: Likewise.
8579         * tree.c: Likewise.
8580         * tsan.c: Likewise.
8581         * ubsan.c: Likewise.
8582         * value-prof.c: Likewise.
8583         * var-tracking.c: Likewise.
8584         * varasm.c: Likewise.
8585         * varpool.c: Likewise.
8586         * vtable-verify.c: Likewise.
8587         * web.c: Likewise.
8588         * wide-int-print.cc: Likewise.
8589         * wide-int.cc: Likewise.
8590         * xcoffout.c: Likewise.
8592 2015-10-29  H.J. Lu  <hongjiu.lu@intel.com>
8594         * Makefile.in (NO_PIE_CFLAGS): New.
8595         (NO_PIE_FLAG): Likewise.
8596         (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
8597         (NO_PIE_FLAG_FOR_BUILD): Likewise.
8598         (BUILD_NO_PIE_CFLAGS): Likewise.
8599         (BUILD_NO_PIE_FLAG): Likewise.
8600         (COMPILER): Replace @NO_PIE_CFLAGS@ with $(NO_PIE_CFLAGS).
8601         (LINKER): Replace @NO_PIE_FLAG@ with $(NO_PIE_FLAG).
8602         (BUILD_CFLAGS): Replace @NO_PIE_CFLAGS@ with
8603         $(BUILD_NO_PIE_CFLAGS).
8604         (BUILD_CXXFLAGS): Likewise.
8605         (BUILD_LDFLAGS ): Replace @NO_PIE_FLAG@ with
8606         $(BUILD_NO_PIE_FLAG).
8607         * configure.ac (BUILD_NO_PIE_CFLAGS): New.  AC_SUBST.
8608         (BUILD_NO_PIE_FLAG): Likewise.
8609         (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
8610         (NO_PIE_FLAG_FOR_BUILD): Likewise.
8611         * configure: Regenerated.
8613 2015-10-29  Richard Biener  <rguenther@suse.de>
8615         PR middle-end/56956
8616         * fold-const.c (fold_cond_expr_with_comparison): Do not fold
8617         unsigned conditonal negation to ABS_EXPR.
8619 2015-10-29  Richard Biener  <rguenther@suse.de>
8621         * gimple-match-head.c (gimple_simplify): Remove premature checking
8622         of builtin_decl_implicit of function calls we simplify.
8624 2015-10-29  Bin Cheng  <bin.cheng@arm.com>
8626         * tree-ssa-loop-ivopts.c (split_address_cost): Check depends_on.
8627         (get_computation_cost_at): Ditto.
8628         (determine_use_iv_cost_address): Pass NULL for arguments depends_on
8629         and inv_expr_id.
8631 2015-10-28  Tom de Vries  <tom@codesourcery.com>
8633         * tree-ssa-structalias.c (intra_create_variable_infos): Remove
8634         superfluous code.
8636 2015-10-28  Jason Merrill  <jason@redhat.com>
8638         * Makefile.in (TAGS): Include libcpp and libiberty.
8640 2015-10-28  Nathan Sidwell  <nathan@codesourcery.com>
8642         * omp-low.c (MASK_GANG, MASK_WORKER, MASK_VECTOR): Delete.
8643         (extract_omp_for_data): Remove OpenACC special handling of
8644         chunking.
8646         * config/nvptx/nvptx.c (nvptx_print_operand): Remove 'd' case.
8647         (struct parallel): Update comment.
8648         (nvptx_reorg): Likewise.
8649         (nvptx_neuter): Cleanup whitespace.
8651 2015-10-28  Richard Henderson  <rth@redhat.com>
8653         * tree-eh.c (mark_reachable_handlers): Fix typo in assert.
8655 2015-10-05  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
8657         PR target/67839
8658         * config/avr/predicates.md (low_io_address_operand): Don't
8659         consider MODE when computing upper bound.
8660         (io_address_operand): Likewise.
8662 2015-10-28  Jan Hubicka  <hubicka@ucw.cz>
8664         * fold-const.c (operand_equal_p): Do not verify that types are
8665         compatible for MEM_REFs.
8667 2015-10-28  Richard Biener  <rguenther@suse.de>
8669         * gimple-match-head.c (gimple_simplify): Allow VECTOR_CSTs
8670         in simplifying VEC_COND_EXPR conditions.
8672 2015-10-28  Tom de Vries  <tom@codesourcery.com>
8674         * tree-ssa-structalias.c (intra_create_variable_infos): Don't iterate
8675         into vi_next of a full_var.
8677 2015-10-28  Tom de Vries  <tom@codesourcery.com>
8679         * tree-ssa-structalias.c (new_var_info, make_heapvar)
8680         (make_constraint_from_restrict, make_constraint_from_global_restrict)
8681         (create_function_info_for, create_variable_info_for_1)
8682         (create_variable_info_for): Add and handle add_id parameter.
8683         (get_call_vi, new_scalar_tmp_constraint_exp, handle_rhs_call)
8684         (init_base_vars): Add extra argument to calls to new_var_info.
8685         (get_vi_for_tree): Add extra argument to call to
8686         create_variable_info_for.
8687         (process_constraint, do_deref, process_all_all_constraints): Add extra
8688         argument to calls to new_scalar_tmp_constraint_exp.
8689         (handle_lhs_call, find_func_aliases_for_builtin_call): Add extra
8690         argument to calls to make_heapvar.
8691         (make_restrict_var_constraints): Add extra argument to call to
8692         make_constraint_from_global_restrict.
8693         (intra_create_variable_infos): Add extra argument to call to
8694         create_variable_info_for_1.
8695         (ipa_pta_execute): Add extra argument to call to
8696         create_function_info_for.
8698 2015-10-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8700         * config/aarch64/aarch64.md (call, call_value, sibcall): Handle noplt.
8701         (sibcall_value): Likewise.
8703 2015-10-28  Nathan Sidwell  <nathan@codesourcery.com>
8705         * config/nvptx/nvptx.h (struct machine_function): Add
8706         axis_predicate.
8707         * config/nvptx/nvptx-protos.h (nvptx_expand_oacc_fork,
8708         nvptx_expand_oacc_join): Declare.
8709         * config/nvptx/nvptx.md (UNSPEC_NTID, UNSPEC_TID): Delete.
8710         (UNSPEC_DIM_SIZE, UNSPEC_SHARED_DATA, UNSPEC_BIT_CONV,
8711         UNSPEC_SHUFFLE, UNSPEC_BR_UNIFIED): New.
8712         (UNSPECV_BARSYNC, UNSPECV_DIM_POS, UNSPECV_FORK, UNSPECV_FORKED,
8713         UNSPECV_JOINING, UNSPECV_JOIN): New.
8714         (BITS, BITD): New mode iterators.
8715         (br_true_uni, br_false_uni): New.
8716         (*oacc_ntid_insn, oacc_ntid, *oacc_tid_insn, oacc_tid): Delete.
8717         (oacc_dim_size, oacc_dim_pos): New.
8718         (nvptx_fork, nvptx_forked, nvptx_joining, nvptx_join): New.
8719         (oacc_fork, oacc_join): New.
8720         (nvptx_shuffle<mode>, unpack<mode>si2, packsi<mode>2): New.
8721         (worker_load<mode>, worker_store<mode>): New.
8722         (nvptx_barsync): New.
8723         * config/nvptx/nvptx.c: Include gimple.h & dumpfile.h.
8724         (SHUFFLE_UP, SHUFFLE_DOWN, SHUFFLE_BFLY, SHUFFLE_IDX): Define.
8725         (worker_bcast_hwm, worker_bcast_align, worker_bcast_name,
8726         worker_bcast_sym): New.
8727         (nvptx_option_override): Initialize worker broadcast buffer.
8728         (nvptx_emit_forking, nvptx_emit_joining): New.
8729         (nvptx_init_axis_predicate): New.
8730         (nvptx_declare_function_name): Init axis predicates.
8731         (nvptx_expand_call): Add fork/join markers around routine call.
8732         (nvptx_expand_oacc_fork, nvptx_expand_oacc_join): New.
8733         (nvptx_gen_unpack, nvptx_gen_pack, nvptx_gen_shuffle): New.
8734         (nvptx_gen_vcast): New.
8735         (struct wcast_data_t): New.
8736         (enum propagate_mask): New.
8737         (nvptx_gen_wcast): New.
8738         (nvptx_print_operand): Add 'S' case.
8739         (struct parallel): New.
8740         (parallel::parallel, parallel::~parallel): New.
8741         (bb_insn_map_t, insn_bb_t, insn_bb_vec_t): New typedefs.
8742         (nvptx_split_blocks, nvptx_discover_pre, nvptx_dump_pars,
8743         nvptx_find_par, nvptx_discover_pars): New.
8744         (nvptx_propagate): New.
8745         (vprop_gen, nvptx_vpropagate): New.
8746         (wprop_gen, nvptx_wpropagate): New.
8747         (nvptx_wsync): New.
8748         (nvptx_single, nvptx_skip_par): New.
8749         (nvptx_process_pars, nvptx_neuter_pars): New.
8750         (ntptx_reorg): Split blocks, generate parallel structure, apply
8751         neutering.
8752         (nvptx_cannot_copy_insn_p): New.
8753         (nvptx_file_end): Emit worker broadcast decl.
8754         (nvptx_goacc_fork_join): New.
8755         (TARGET_CANNOT_COPY_INSN_P): Override.
8756         (TARGET_GOACC_FORK_JOIN): Override.
8758 2015-10-28  Richard Biener  <rguenther@suse.de>
8760         * fold-const.c (negate_expr_p): Adjust the division case to
8761         properly avoid introducing undefined overflow.
8762         (fold_negate_expr): Likewise.
8764 2015-10-28  Richard Biener  <rguenther@suse.de>
8766         PR tree-optimization/65962
8767         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
8768         Avoid creating loop carried dependences also for outer loops
8769         of the loop a use to replace is in.
8771 2015-10-28  Richard Biener  <rguenther@suse.de>
8773         * common.opt (fchecking): New flag controlling flag_checking.
8774         * passes.c (verify_curr_properties): Drop DEBUG_FUNCTION.
8775         * timevar.c (timer::print): Adjust output.
8776         * doc/invoke.texi (fchecking): Document.
8778 2015-10-28  Richard Biener  <rguenther@suse.de>
8780         PR middle-end/68067
8781         * fold-const.c (negate_expr_p): We cannot negate plus or minus
8782         if overflow is not wrapping.  Likewise multiplication unless
8783         one operand is constant and not power of two.
8784         (fold_negate_expr): Adjust accordingly.
8786 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
8788         * omp-low.c (struct omp_context): Remove gwv_below, gwv_this
8789         fields.
8790         (is_oacc_parallel, is_oacc_kernels): New.
8791         (enclosing_target_ctx): May return NULL.
8792         (ctx_in_oacc_kernels_region): New.
8793         (check_oacc_kernel_gwv): New.
8794         (oacc_loop_or_target_p): Delete.
8795         (scan_omp_for): Don't calculate gwv mask.  Check parallel clause
8796         operands.  Strip reductions fro kernels.
8797         (scan_omp_target): Don't calculate gwv mask.
8798         (lower_oacc_head_mark, lower_oacc_loop_marker,
8799         lower_oacc_head_tail): New.
8800         (struct oacc_collapse): New.
8801         (expand_oacc_collapse_init, expand_oacc_collapse_vars): New.
8802         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
8803         Remove OpenACC handling.
8804         (expand_oacc_for): New.
8805         (expand_omp_for): Call expand_oacc_for.
8806         (lower_omp_for): Call lower_oacc_head_tail.
8808 2015-10-27  Mikhail Maltsev  <maltsevm@gmail.com>
8810         * attribs.c (check_attribute_tables): New function, broken out from...
8811         (init_attributes): Use it.
8812         * cfgcleanup.c (try_optimize_cfg): Use flag_checking, CHECKING_P
8813         gcc_checking_assert and checking_* functions to eliminate
8814         ENABLE_CHECKING conditionals.
8815         * cfgexpand.c (expand_goto, expand_debug_expr): Likewise.
8816         (pass_expand::execute): Likewise.
8817         * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
8818         * cgraphunit.c (mark_functions_to_output): Likewise.
8819         (cgraph_node::expand_thunk): Likewise.
8820         (symbol_table::compile): Likewise.
8821         * ddg.c (add_cross_iteration_register_deps): Likewise.
8822         (create_ddg_all_sccs): Likewise.
8823         * df-core.c (df_finish_pass, df_analyze): Likewise.
8824         * diagnostic-core.h: Likewise.
8825         * diagnostic.c (diagnostic_report_diagnostic): Likewise.
8826         * dominance.c (calculate_dominance_info): Likewise.
8827         * dwarf2out.c (add_AT_die_ref): Likewise.
8828         (const_ok_for_output_1, mem_loc_descriptor): Likewise.
8829         (loc_list_from_tree, gen_lexical_block_die): Likewise.
8830         gen_type_die_with_usage, gen_type_die): Likewise.
8831         (dwarf2out_decl): Likewise.
8832         * emit-rtl.c (verify_rtx_sharing, reorder_insns_nobb): Likewise.
8833         * except.c (duplicate_eh_regions): Likewise.
8834         * fwprop.c (register_active_defs, update_df_init): Likewise.
8835         (fwprop_init, fwprop_done): Likewise.
8836         (update_uses): Likewise.
8837         * ggc-page.c (ggc_grow): Likewise.
8838         * gimplify.c (gimplify_body): Likewise.
8839         (gimplify_hasher::equal): Likewise.
8840         * graphite-isl-ast-to-gimple.c (graphite_verify): Likewise.
8841         * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form):
8842         Likewise.
8843         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Likewise.
8844         (rewrite_cross_bb_scalar_deps_out_of_ssa): Likwise.
8845         * hash-table.h (::find_empty_slot_for_expand): Likewise.
8846         * ifcvt.c (if_convert): Likewise.
8847         * ipa-cp.c (ipcp_propagate_stage): Likewise.
8848         * ipa-devirt.c (type_in_anonymous_namespace_p): Likewise.
8849         (odr_type_p, odr_types_equivalent_p): Likewise.
8850         (add_type_duplicate, get_odr_type): Likewise.
8851         * ipa-icf.c (sem_item_optimizer::execute): Likewise.
8852         (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
8853         (sem_item_optimizer::verify_classes): Likewise.
8854         (sem_item_optimizer::traverse_congruence_split): Likewise.
8855         (sem_item_optimizer::checking_verify_classes): New.
8856         * ipa-icf.h (sem_item_optimizer::checking_verify_classes): Add new
8857         method.
8858         * cfgrtl.c (commit_edge_insertions): Likewise.
8859         (fixup_reorder_chain, cfg_layout_finalize): Likewise.
8860         (rtl_flow_call_edges_add): Likewise.
8861         * cgraph.c (symbol_table::create_edge): Likewise.
8862         (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
8863         * cgraph.h (symtab_node): Likewise.
8864         (symtab_node::checking_verify_symtab_nodes): Define.
8865         (cgraph_node::checking_verify_cgraph_nodes): Define.
8866         * cfghooks.h (checking_verify_flow_info): Define.
8867         * cfgloop.h (checking_verify_loop_structure): Define.
8868         * dominance.h (checking_verify_dominators): Define.
8869         * et-forest.c: Fix comment.
8870         * ipa-inline-analysis.c (compute_inline_parameters): Use flag_checking,
8871         CHECKING_P gcc_checking_assert and checking_* functions to eliminate
8872         ENABLE_CHECKING conditionals.
8873         * ipa-inline-transform.c (save_inline_function_body): Likewise.
8874         * ipa-inline.c (inline_small_functions): Likewise.
8875         (early_inliner): Likewise.
8876         * ipa-inline.h (estimate_edge_growth): Likewise.
8877         * ipa-visibility.c (function_and_variable_visibility): Likewise.
8878         * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
8879         (ipa_single_use): Likewise.
8880         * ira-int.h: Likewise.
8881         * ira.c (ira): Likewise.
8882         * loop-doloop.c (doloop_optimize_loops): Likewise.
8883         * loop-init.c (loop_optimizer_init, fix_loop_structure): Likewise.
8884         * loop-invariant.c (move_loop_invariants): Likewise.
8885         * lra-assigns.c (lra_assign): Likewise.
8886         * lra-constraints.c (lra_constraints): Likewise.
8887         * lra-eliminations.c (lra_eliminate): Likewise.
8888         * lra-int.h (struct lra_reg): Likewise.
8889         * lra-lives.c (check_pseudos_live_through_calls): Likewise.
8890         (lra_create_live_ranges_1): Likewise.
8891         * lra-remat.c (create_remat_bb_data): Likewise.
8892         * lra.c (lra_update_insn_recog_data, restore_scratches): Likewise.
8893         (lra): Likewise.
8894         (check_rtl): Always define. Remove incorrect guard around
8895         extract_constrain_insn call.
8896         * lto-cgraph.c (input_cgraph_1: Use flag_checking,
8897         CHECKING_P gcc_checking_assert and checking_* functions to eliminate
8898         ENABLE_CHECKING conditionals.
8899         * lto-streamer-out.c (DFS::DFS): Likewise.
8900         (lto_output): Likewise.
8901         * lto-streamer.c (lto_streamer_init): Likewise.
8902         * omp-low.c (scan_omp_target, expand_omp_taskreg): Likewise.
8903         expand_omp_target, execute_expand_omp): Likewise.
8904         (lower_omp_target): Likewise.
8905         * passes.c (execute_function_todo): Likewise.
8906         (execute_todo, execute_one_pass): Likewise.
8907         (verify_curr_properties): Always define.
8908         * predict.c (tree_estimate_probability: Use flag_checking,
8909         CHECKING_P gcc_checking_assert and checking_* functions to eliminate
8910         ENABLE_CHECKING conditionals.
8911         (propagate_freq): Likewise.
8912         * pretty-print.c (pp_format): Likewise.
8913         * real.c (real_to_decimal_for_mode): Likewise.
8914         * recog.c (split_all_insns): Likewise.
8915         * regcprop.c (kill_value_one_regno): Likewise.
8916         (copy_value): Likewise.
8917         (validate_value_data): Define unconditionally.
8918         * reload.c: Fix comment.
8919         * timevar.c: Include options.h
8920         * tree-ssa.h (checking_verify_ssa): Define.
8921         * tree-ssa-loop-manip.h (checking_verify_loop_closed_ssa): Define.
8922         * sched-deps.c (CHECK): Remove unused macro.
8923         (add_or_update_dep_1, sd_add_dep: Use flag_checking, CHECKING_P
8924         gcc_checking_assert and checking_* functions to eliminate
8925         ENABLE_CHECKING conditionals.
8926         * sel-sched-ir.c (free_regset_pool, tidy_control_flow): Likewise.
8927         * sel-sched.c (struct moveop_static_params): Likewise.
8928         (find_best_reg_for_expr, move_cond_jump): Likewise.
8929         (move_op_orig_expr_not_found): Likewise.
8930         (code_motion_process_successors, move_op): Likewise.
8931         * ssa-iterators.h (first_readonly_imm_use): Likewise.
8932         (next_readonly_imm_use): Likewise.
8933         * store-motion.c (compute_store_table): Likewise.
8934         * symbol-summary.h (function_summary::function_summary): Likewise.
8935         * target.h (cumulative_args_t): Likewise.
8936         (get_cumulative_args, pack_cumulative_args): Likewise.
8937         * timevar.c: (timer::print): Likewise.
8938         * trans-mem.c (ipa_tm_execute): Likewise.
8939         * tree-cfg.c (move_stmt_op): Likewise.
8940         (move_sese_region_to_fn): Likewise.
8941         (gimple_flow_call_edges_add): Likewise.
8942         * tree-cfgcleanup.c (cleanup_tree_cfg_noloop, repair_loop_structures):
8943         Likewise.
8944         * tree-eh.c (remove_unreachable_handlers): Likewise.
8945         * tree-if-conv.c (pass_if_conversion::execute): Likewise.
8946         * tree-inline.c (expand_call_inline, optimize_inline_calls): Likewise.
8947         * tree-into-ssa.c (update_ssa): Likewise.
8948         * tree-loop-distribution.c (pass_loop_distribution::execute): Likewise.
8949         * tree-outof-ssa.c (eliminate_useless_phis, rewrite_trees): Likewise.
8950         * tree-parloops.c (pass_parallelize_loops::execute): Likewise.
8951         * tree-predcom.c (suitable_component_p): Likewise.
8952         * tree-profile.c (gimple_gen_const_delta_profiler): Likewise.
8953         * tree-ssa-alias.c (refs_may_alias_p_1): Likewise.
8954         * tree-ssa-live.c (verify_live_on_entry): Likewise.
8955         * tree-ssa-live.h (register_ssa_partition): Likewise.
8956         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Likewise.
8957         * tree-ssa-loop-manip.c (add_exit_phi): Likewise.
8958         (tree_transform_and_unroll_loop): Likewise.
8959         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
8960         * tree-ssa-operands.c (get_expr_operands): Likewise.
8961         * tree-ssa-propagate.c (replace_exp_1): Likewise.
8962         * tree-ssa-structalias.c (rewrite_constraints): Likewise.
8963         * tree-ssa-ter.c (free_temp_expr_table): Likewise.
8964         * tree-ssa-threadupdate.c (duplicate_thread_path): Likewise.
8965         * tree-ssanames.c (release_ssa_name_fn): Likewise.
8966         * tree-stdarg.c (expand_ifn_va_arg): Likewise.
8967         * tree-vect-loop-manip.c
8968         (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
8969         (slpeel_checking_verify_cfg_after_peeling): Likewise.
8970         (vect_do_peeling_for_loop_bound): Likewise.
8971         (vect_do_peeling_for_alignment): Likewise.
8972         * tree-vrp.c (supports_overflow_infinity): Likewise.
8973         (set_value_range): Likewise.
8974         * tree.c (free_lang_data_in_cgraph): Likewise.
8975         * value-prof.c (gimple_remove_histogram_value): Likewise.
8976         (free_hist): Likewise.
8977         * var-tracking.c (canonicalize_values_star): Likewise.
8978         (compute_bb_dataflow, vt_find_locations, vt_emit_notes): Likewise.
8980 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
8982         * internal-fn.def (IFN_GOACC_DIM_SIZE, IFN_GOACC_DIM_POS,
8983         IFN_GOACC_LOOP): New.
8984         * internal-fn.h (enum ifn_unique_kind): Add IFN_UNIQUE_OACC_FORK,
8985         IFN_UNIQUE_OACC_JOIN, IFN_UNIQUE_OACC_HEAD_MARK,
8986         IFN_UNIQUE_OACC_TAIL_MARK.
8987         (enum ifn_goacc_loop_kind): New.
8988         * internal-fn.c (expand_UNIQUE): Add IFN_UNIQUE_OACC_FORK,
8989         IFN_UNIQUE_OACC_JOIN cases.
8990         (expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS): New.
8991         (expand_GOACC_LOOP): New.
8992         * target-insns.def (oacc_dim_pos, oacc_dim_size): New.
8993         * omp-low.c: Include gimple-pretty-print.h.
8994         (struct oacc_loop): New.
8995         (enum oacc_loop_flags): New.
8996         (oacc_thread_numbers): New.
8997         (oacc_xform_loop): New.
8998         (new_oacc_loop_raw, new_oacc_loop_outer, new_oacc_loop,
8999         new_oacc_loop_routine, finish_oacc_loop, free_oacc_loop): New,
9000         (dump_oacc_loop_part, dump_oacc_loop, debug_oacc_loop): New,
9001         (oacc_loop_discover_walk, oacc_loop_sibling_nrevers,
9002         oacc_loop_discovery): New.
9003         (oacc_loop_xform_head_tail, oacc_loop_xform_loop,
9004         oacc_loop_process): New.
9005         (oacc_loop_fixed_partitions, oacc_loop_partition): New.
9006         (execute_oacc_device_lower): Discover & process loops.  Process
9007         internal fns.
9008         * target.def (goacc.fork_join): Change sense of hook, clarify
9009         documentation.
9010         * doc/tm.texi: Regenerated.
9012 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
9014         * target-insns.def (oacc_fork, oacc_join): Define.
9015         * target.def (goacc.validate_dims): Adjust doc to avoid warning.
9016         (goacc.fork_join): New GOACC hook.
9017         * targhooks.h (default_goacc_fork_join): Declare.
9018         * omp-low.c (default_goacc_forkjoin): New.
9019         * doc/tm.texi.in (TARGET_GOACC_FORK_JOIN): Add.
9020         * doc/tm.texi: Regenerate.
9022 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
9024         * omp-low.c (oacc_init_rediction_array): New.
9025         (oacc_initialize_reduction_data): Initialize array.
9027 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
9029         * omp-low.c (pass_oacc_device_lower::execute): Ignore errors.
9031 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
9033         * internal-fn.c (expand_UNIQUE): New.
9034         * internal-fn.h (enum ifn_unique_kind): New.
9035         * internal-fn.def (IFN_UNIQUE): New.
9036         * target-insns.def (unique): Define.
9037         * gimple.h (gimple_call_internal_unique_p): New.
9038         * gimple.c (gimple_call_same_target_p): Check internal fn
9039         uniqueness.
9040         * tracer.c (ignore_bb_p): Check for IFN_UNIQUE call.
9041         * tree-ssa-threadedge.c
9042         (record_temporary_equivalences_from_stmts): Likewise.
9043         * tree-cfg.c (gmple_call_initialize_ctrl_altering): Likewise.
9045 2015-10-27  Richard Henderson  <rth@redhat.com>
9047         PR rtl-opt/67609
9048         * config/i386/i386.c (ix86_cannot_change_mode_class): Disallow
9049         narrowing subregs on SSE and MMX registers.
9050         * doc/tm.texi.in (CANNOT_CHANGE_MODE_CLASS): Clarify when subregs that
9051         appear to be sub-words of multi-register pseudos must be rejected.
9052         * doc/tm.texi: Regenerate.
9054 2015-10-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9056         PR target/68102
9057         * config/aarch64/aarch64.md (*movsi_aarch64): Check that
9058         operands[0] is a reg before taking its REGNO in split condition.
9059         (*movdi_aarch64): Likewise.
9061 2015-10-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9063         * config/aarch64/aarch64.c (aarch64_output_simd_mov_immediate):
9064         Handle floating point inner modes properly.
9066 2015-10-27  Alan Hayward  <alan.hayward@arm.com>
9068         * tree-vect-looop.c
9069         (vectorizable_live_operation): Change iterator.
9071 2015-10-27  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
9072             Aditya Kumar  <aditya.k7@samsung.com>
9074         * graphite-optimize-isl.c (get_schedule_for_node_st): New callback
9075           function to schedule based on isl_schedule_node.
9076         (get_schedule_map_st): New schedule optimizer based on
9077         isl_schedule_node.
9078         (scop_get_domains): New. Return the isl_union_set containing the
9079         domains of all the pbbs.
9080         (optimize_isl): Call the new function get_schedule_map_st for isl-0.15
9082 2015-10-27  H.J. Lu  <hongjiu.lu@intel.com>
9084         PR target/67215
9085         * calls.c (prepare_call_address): Don't handle -fno-plt here.
9086         * config/i386/i386.c (ix86_expand_call): Generate indirect call
9087         via GOT for -fno-plt.  Support indirect call via GOT for x32.
9088         * config/i386/predicates.md (sibcall_memory_operand): Allow
9089         GOT memory operand.
9091 2015-10-27  Richard Biener  <rguenther@suse.de>
9093         PR tree-optimization/68104
9094         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
9095         strided access check ...
9096         (vect_compute_data_refs_alignment): ... here.
9098 2015-10-27  Daniel Jacobowitz  <dan@codesourcery.com>
9099             Joseph Myers  <joseph@codesourcery.com>
9100             Mark Shinwell  <shinwell@codesourcery.com>
9101             Andrew Stubbs  <ams@codesourcery.com>
9102             Rich Felker <dalias@libc.org>
9104         * config.gcc: Handle --enable-fdpic.
9105         * config/sh/constraints.md (Ccl): New constraint.
9106         * config/sh/linux.h (SUBTARGET_LINK_EMUL_SUFFIX): Handle -mfdpic.
9107         * config/sh/sh-c.c (sh_cpu_cpp_builtins): Add __FDPIC__ and
9108         __SH_FDPIC__.
9109         * config/sh/sh-mem.cc (expand_block_move): Support FDPIC for calls to
9110         library functions.
9111         * config/sh/sh-protos.h (function_symbol_result): New struct.
9112         (function_symbol): Return function_symbol_result.
9113         (sh_get_fdpic_reg_initial_val, sh_load_function_descriptor): New
9114         declarations.
9115         * config/sh/sh.c (TARGET_ASM_INTEGER, sh_assemble_integer): Implement
9116         target hook.
9117         (TARGET_CANNOT_FORCE_CONST_MEM, sh_cannot_force_const_mem_p): Likewise.
9118         (sh_option_override): Force -fPIC if FDPIC is in effect.
9119         (sh_asm_output_addr_const_extra): Add UNSPEC_GOTFUNCDESC and
9120         UNSPEC_GOTOFFFUNCDESC cases.
9121         (prepare_move_operands): Use FDPIC initial GOT register for
9122         TLS-related GOT access; inhibit cross-section address offset constants
9123         for FDPIC.
9124         (sh_assemble_integer): New function.
9125         (sh_cannot_copy_insn_p): Inhibit copying insns that are FDPIC
9126         PC-relative call sites.
9127         (expand_ashiftrt): Adapt invocation of function_symbol.
9128         (sh_expand_prologue): Inhibit PC-relative GOT address load for FDPIC.
9129         (nonpic_symbol_mentioned_p): Add cases for UNSPEC_GOTFUNCDESC and
9130         UNSPEC_GOTOFFFUNCDESC.
9131         (legitimize_pic_address): Resolve function symbols to function
9132         descriptors for FDPIC.  Do not use GOT-relative addressing for local
9133         data that may be read-only on FDPIC.
9134         (sh_emit_storesi, sh_emit_storehi): New functions.
9135         (sh_trampoline_init): Generate FDPIC trampolines.
9136         (sh_function_ok_for_sibcall): Add TARGET_FDPIC check.
9137         (sh_expand_sym_label2reg): Don't assume sibcalls are local.
9138         (sh_output_mi_thunk): Generate FDPIC call.
9139         (function_symbol): Return function_symbol_result.  For SFUNC_STATIC on
9140         FDPIC, generate call site labels to use PC-relative addressing rather
9141         than GOT-relative addressing.
9142         (sh_conditional_register_usage): Make PIC register fixed and call used
9143         when FDPIC is in effect.
9144         (sh_legitimate_constant_p): Impose FDPIC constant constraints.
9145         (sh_cannot_force_const_mem_p, sh_load_function_descriptor,
9146         sh_get_fdpic_reg_initial_val): New functions.
9147         * config/sh/sh.h (SUBTARGET_ASM_SPEC, SUBTARGET_LINK_EMUL_SUFFIX):
9148         Handle -mfdpic.
9149         (FDPIC_SELF_SPECS, SUBTARGET_DRIVER_SELF_SPECS,
9150         PIC_OFFSET_TABLE_REG_CALL_CLOBBERED,
9151         SH_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): New macros.
9152         (DRIVER_SELF_SPECS): Add SUBTARGET_DRIVER_SELF_SPECS and
9153         FDPIC_SELF_SPECS.
9154         (TRAMPOLINE_SIZE): Select trampoline size for FDPIC.
9155         (ASM_PREFERRED_EH_DATA_FORMAT): Add EH format constraints for FDPIC.
9156         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Handle FDPIC case.
9157         * config/sh/sh.md (UNSPEC_GOTFUNCDESC, UNSPEC_GOTOFFFUNCDESC): New
9158         constants.
9159         (calli_fdpic, call_valuei_fdpic, sibcalli_fdpic, sibcalli_pcrel_fdpic,
9160         sibcall_pcrel_fdpic, sibcall_valuei_fdpic, sibcall_valuei_pcrel_fdpic,
9161         sibcall_value_pcrel_fdpic, sym2GOTFUNCDESC, symGOTFUNCDESC2reg,
9162         sym2GOTOFFFUNCDESC, symGOTOFFFUNCDESC2reg): New patterns.
9163         (udivsi3_i1, udivsi3_i4, udivsi3_i4_single, udivsi3,
9164         *divsi_inv_call_combine, divsi3_i4, divsi3_i4_single, divsi3, ashlsi3,
9165         ashlsi3_d_call, ashrsi3_n, lshrsi3, lshrsi3_d_call, calli, call_valuei,
9166         call, call_value, sibcalli, sibcalli_pcrel, sibcall_pcrel, sibcall,
9167         sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
9168         sibcall_value, GOTaddr2picreg, symGOT_load, symGOTOFF2reg,
9169         block_move_real, block_lump_real, block_move_real_i4,
9170         block_lump_real_i4): Add support for FDPIC calls.
9171         (mulsi3, ic_invalidate_line, initialize_trampoline, call_pop,
9172         call_value_pop): Adjust for new function_symbol signature.
9173         * config/sh/sh.opt (-mfdpic): New option.
9174         * doc/install.texi (Options specification): Document --enable-fdpic.
9175         * doc/invoke.texi (SH Options): Document -mfdpic.
9178 2015-10-27  Alan Lawrence  <alan.lawrence@arm.com>
9180         PR tree-optimization/65963
9181         * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
9182         LSHIFT_EXPRs as equivalent MULT_EXPRs.
9184 2015-10-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9186         PR target/67929
9187         * config/arm/arm.c (vfp3_const_double_for_bits): Rewrite.
9188         * config/arm/constraints.md (Dp): Update callsite.
9189         * config/arm/predicates.md (const_double_vcvt_power_of_two): Likewise.
9191 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
9193         * builtins.c (fold_builtin_load_exponent): Rename to...
9194         (fold_const_builtin_load_exponent): ...this and only handle
9195         constant arguments.
9196         (fold_builtin_2): Update accordingly.
9197         * match.pd: Add rules previously handled by fold_builtin_load_exponent.
9199 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
9201         * builtins.c (fold_builtin_logb): Rename to...
9202         (fold_const_builtin_logb): ...this and remove STRIP_NOPS call.
9203         (fold_builtin_significand): Rename to...
9204         (fold_const_builtin_significand): ...this and remove STRIP_NOPS call.
9205         (fold_builtin_1): Update accordingly.
9207 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
9209         * builtins.c (fold_builtin_fmin_fmax): Delete.
9210         (fold_builtin_2): Handle constant fmin and fmax arguments here.
9211         * match.pd: Add rules previously handled by fold_builtin_fmin_fmax.
9213 2015-10-27  Evandro Menezes  <e.menezes@samsung.com>
9215         * config/aarch64/aarch64-protos.h (cpu_addrcost_table): Split member
9216         for register extension into sign and zero register extension.
9217         * config/aarch64/aarch64.c (generic_addrcost_table): Infer values
9218         for sign and zero register extension.
9219         (cortexa57_addrcost_table): Likewise.
9220         (xgene1_addrcost_table): Likewise.
9222 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
9224         * fold-const.c (fold_minmax): Delete.
9225         (fold_binary_loc): Don't call it.
9226         * match.pd: Add rules previously handled by fold_minmax.
9228 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
9230         * builtins.c (fold_builtin_fma): Remove constant handling.
9231         (fold_builtin_3): Handle constant fma arguments here.
9233 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
9235         * builtins.c (fold_builtin_fabs): Remove constant handling.
9236         (fold_builtin_abs): Likewise.
9238 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
9240         * builtins.c (fold_builtin_copysign): Delete.
9241         (fold_builtin_2): Handle constant copysign arguments here.
9242         * match.pd: Add rules previously handled by fold_builtin_copysign.
9244 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
9246         * builtins.c (fold_builtin_signbit): Delete.
9247         (fold_builtin_2): Handle constant signbit arguments here.
9248         * match.pd: Add rules previously handled by fold_builtin_signbit.
9250 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
9252         * match.pd: Handle sqrt(x) cmp 0 specially.
9254 2015-10-27  Ilya Enkovich  <enkovich.gnu@gmail.com>
9256         * tree-vect-generic.c (expand_vector_operations_1): Check
9257         optab type before using it.
9259 2015-10-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9261         * config/aarch64/aarch64-protos.h
9262         (struct tune_params): Add autoprefetcher_model field.
9263         * config/aarch64/aarch64.c: Include params.h
9264         (generic_tunings): Specify autoprefetcher_model value.
9265         (cortexa53_tunings): Likewise.
9266         (cortexa57_tunings): Likewise.
9267         (cortexa72_tunings): Likewise.
9268         (thunderx_tunings): Likewise.
9269         (xgene1_tunings): Likewise.
9270         (aarch64_first_cycle_multipass_dfa_lookahead_guard): New function.
9271         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define.
9272         (aarch64_override_options_internal): Set
9273         PARAM_SCHED_AUTOPREF_QUEUE_DEPTH param.
9275 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
9277         * builtins.c (fold_builtin_exponent): Delete.
9278         (fold_builtin_2): Handle constant expN arguments here.
9279         * match.pd: Fold expN(logN(x)) -> x.
9281 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
9283         * builtins.c (fold_builtin_powi): Delete.
9284         (fold_builtin_2): Handle constant powi arguments here.
9285         * match.pd: Add rules previously handled by fold_builtin_powi.
9287 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
9289         * builtins.c (fold_builtin_pow): Delete in favor of...
9290         (fold_const_builtin_pow): ...this new function.  Only handle constant
9291         arguments.
9292         (fold_builtin_2): Update accordingly.
9293         * match.pd: Add rules previously handled by fold_builtin_pow.
9295 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
9297         * builtins.c (fold_builtin_hypot): Delete.
9298         (fold_builtin_2): Handle constant hypot arguments here.
9299         * match.pd: Fold hypot(x, 0) and hypot(0, x) to x.  Canonicalize
9300         hypot(x, x) to fabs(x)*sqrt(2).
9302 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
9304         * gimple-match-head.c (maybe_push_res_to_seq): Use create_tmp_reg
9305         instead of make_ssa_name if not yet in SSA form.
9307 2015-10-27  Richard Biener  <rguenther@suse.de>
9309         * cfg.c (free_edge): Add function argument and use it instead of cfun.
9310         (clear_edges): Likewise.
9311         * cfg.h (clear_edges): Adjust prototype.
9312         * cfgexpand.c (pass_expand::execute): Adjust.
9313         * cfgloop.c (release_recorded_exits): Add function argument and use
9314         it instead of cfun.
9315         * cfgloop.h (release_recorded_exits): Adjust prototype.
9316         (loops_state_satisfies_p): Add overload with function argument.
9317         (loops_state_set): Likewise.
9318         (loops_state_clear): Likewise.
9319         (struct loop_iterator): Add function argument to constructor
9320         and iterator and use it instead of cfun.
9321         (FOR_EACH_LOOP_FN): New macro.
9322         (loop_optimizer_finalize): Add overload with function argument.
9323         * loop-init.c (loop_optimizer_init): Adjust.
9324         (fix_loop_structure): Likewise.
9325         (loop_optimizer_finaliz): Add function argument and use it
9326         instead of cfun.
9327         * tree-cfg.c (delete_tree_cfg_annotations): Likewise.
9328         * tree-cfg.h (delete_tree_cfg_annotations): Adjust prototype.
9329         * cgraph.c (release_function_body): Do not push/pop cfun.
9330         * final.c (rest_of_clean_state): Adjust.
9331         * graphite.c (graphite_finalize): Likewise.
9332         * tree-ssa-copy.c (fini_copy_prop): Likewise.
9333         * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
9334         * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Likewise.
9335         (tree_unroll_loops_completely): Likewise.
9336         (pass_complete_unrolli::execute): Likewise.
9337         * tree-ssa-loop-niter.c (free_numbers_of_iterations_estimates):
9338         Add function argument and use it instead of cfun.
9339         * tree-ssa-loop-niter.h (free_numbers_of_iterations_estimates):
9340         Adjust prototype.
9341         * tree-ssa-loop.c (tree_ssa_loop_done): Adjust.
9342         * tree-ssa.c (delete_tree_ssa): Add function argument and use it
9343         instead of cfun.
9344         * tree-ssa.h (delete_tree_ssa): Adjust prototype.
9345         * tree-ssanames.c (fini_ssanames): Add function argument and use it
9346         instead of cfun.
9347         * tree-ssanames.c (fini_ssanames): Adjust prototype.
9348         * tree-vrp.c (execute_vrp): Adjust.
9349         * value-prof.c (free_histograms): Add function argument and use it
9350         instead of cfun.
9351         * value-prof.h (free_histograms): Adjust prototype.
9353 2015-10-27  Thomas Schwinge  <thomas@codesourcery.com>
9355         * tree.h (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES)
9356         (OACC_KERNELS_BODY, OACC_KERNELS_CLAUSES, OACC_KERNELS_COMBINED)
9357         (OACC_PARALLEL_COMBINED): Don't define macros.  Adjust all users.
9359 2015-10-27  Tom de Vries  <tom@codesourcery.com>
9361         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Add and use var
9362         field_type.
9364 2015-10-27  Bin Cheng  <bin.cheng@arm.com>
9366         * loop-invariant.c (struct def): New field can_prop_to_addr_uses.
9367         (inv_can_prop_to_addr_use): New function.
9368         (record_use): Call can_prop_to_addr_uses, set the new field.
9369         (get_inv_cost): Count cost if inv can't be propagated into its
9370         address uses.
9372 2015-10-26  Doug Evans  <dje@google.com>
9374         * config/linux.h (INCLUDE_DEFAULTS): Add INCLUDE_DEFAULTS_MUSL_LOCAL.
9376 2015-10-26  Eric Botcazou  <ebotcazou@adacore.com>
9378         * match.pd (fold_widened_comparison): Apply simplifications to all
9379         integral types.
9381 2015-10-26  Simon Dardis  <simon.dardis@imgtec.com>
9383         * target.def (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): New hook.
9384         * doc/tm.texi.in (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): Document.
9385         * doc/tm.texi: Regenerated.
9386         * reorg.c (dbr_schedule): Use new hook.
9387         * config/mips/mips.c (mips_no_speculation_in_delay_slots_p): New.
9389 2015-10-26  Jeff Law  <law@redhat.com>
9391         PR tree-optimization/68013
9392         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
9393         Make sure the first block in the path is in VISITED_BBs.
9395 2015-10-26  Richard Biener  <rguenther@suse.de>
9396         Dominik Vogt  <vogt@linux.vnet.ibm.com>
9398         PR middle-end/67443
9399         * alias.c (ao_ref_from_mem): Remove promoted subreg handling.
9400         Properly prune ref->ref for accesses outside of ref.
9402 2015-10-26  Richard Sandiford  <richard.sandiford@arm.com>
9404         * gimple-fold.c (replace_stmt_with_simplification): Don't allow
9405         new statements to be inserted if inplace.  Allow calls to have
9406         nonempty sequences.
9408 2015-10-26  Richard Biener  <rguenther@suse.de>
9410         * tree-object-size.c: Remove builtins.h include, include tree-cfg.h.
9411         (do_valueize): New function.
9412         (pass_object_sizes::execute): Use gimple_fold_stmt_to_constant and
9413         replace_uses_by.
9414         * tree-ssa-threadedge.c: Remove builtins.h include, include
9415         gimple-fold.h
9416         (fold_assignment_stmt): Remove.
9417         (threadedge_valueize): New function.
9418         (record_temporary_equivalences_from_stmts): Use
9419         gimple_fold_stmt_to_constant_1, note additional cleanup
9420         opportunities.
9422 2015-10-26  Richard Biener  <rguenther@suse.de>
9424         * match.pd ((A & ~B) - (A & B) -> (A ^ B) - B): Add missing :c.
9425         ( (X & ~Y) | (~X & Y) -> X ^ Y): Remove redundant :c.
9427 2015-10-26  Alan Hayward <alan.hayward@arm.com>
9429         * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
9430         VEC_COND_EXPR types.
9432 2015-10-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9434         * auto-inc-dec.c (insert_move_insn_before): Delete.
9435         (attempt_change): Remember to cost the simple move in the
9436         FORM_PRE_ADD and FORM_POST_ADD cases.
9438 2015-10-26  Kaz Kojima  <kkojima@gcc.gnu.org>
9440         PR target/68091
9441         * config/sh/sh.c (sh_vector_mode_supported_p): Use
9442         TARGET_SHMEDIA_FPU instead of TARGET_FPU_ANY.
9444 2015-10-26  Tom de Vries  <tom@codesourcery.com>
9446         * tree-ssa-structalias.c (make_restrict_var_constraints): New function,
9447         factored out of ...
9448         (intra_create_variable_infos): ... here.
9450 2015-10-26  Tom de Vries  <tom@codesourcery.com>
9452         * tree-ssa-structalias.c (intra_create_variable_infos): Add
9453         restrict_pointer_p and recursive_restrict_p variables.
9455 2015-10-26  Tom de Vries  <tom@codesourcery.com>
9457         * tree-ssa-structalias.c (intra_create_variable_infos): Inline
9458         get_vi_for_tree call.
9460 2015-10-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9462         PR middle-end/67989
9463         * optabs.c (expand_atomic_compare_and_swap): Handle case when
9464         ptarget_oval or ptarget_bool are const0_rtx.
9466 2015-10-26  Christian Bruel  <christian.bruel@st.com>
9468         * function.h (MINIMUM_METHOD_BOUNDARY): New macro.
9469         * cp/decl.c (grokfndecl): Set DECL_ALIGN with MINIMUM_METHOD_BOUNDARY.
9470         * cp/method.c (implicitly_declare_fn): Likewise.
9471         * cp/lambda.c (maybe_add_lambda_conv_op): Likewise. Remove VBIT setting.
9472         * java/class.c (add_method_1): Likewise.
9474 2015-10-26  Richard Biener  <rguenther@suse.de>
9476         * alloc-pool.h (base_pool_allocator): Use placement new.
9477         (base_pool_allocator::remove): Likewise.  Compute size outside of
9478         flag_checking.
9480 2015-10-26  Richard Sandiford  <richard.sandiford@arm.com>
9482         * builtins.c (do_real_to_int_conversion): New function.
9483         (fold_fixed_mathfn, fold_builtin_int_roundingfn): Delete.
9484         (fold_builtin_1): Handle constant {i,l,ll}{ceil,floor,round}{f,,l}
9485         arguments here.
9486         * match.pd: Add rules previously handled by fold_fixed_mathfn
9487         and fold_builtin_int_roundingfn.
9489 2015-10-26  Richard Sandiford  <richard.sandiford@arm.com>
9491         * match.pd: Use macros to define built-in operator lists.
9493 2015-10-20  Richard Sandiford  <richard.sandiford@arm.com>
9494             Richard Biener  <rguenther@suse.de>
9496         * genmatch.c (dt_simplify::gen): Skip captures that are
9497         part of the result.
9498         (parser::parse_expr): Allow captures in results too.
9499         * builtins.c (fold_builtin_cexp): Delete.
9500         (fold_builtin_1): Handle constant cexp arguments here.
9501         * match.pd: Fold cexp(x+yi) to exp(x) * cexpi(y).
9503 2015-10-26  Mikhail Maltsev  <maltsevm@gmail.com>
9505         * alloc-pool.h (base_pool_allocator::initialize, ::allocate): Remove
9506         conditional compilation.
9507         (base_pool_allocator::remove): Use flag_checking.
9509 2015-10-25  John David Anglin  <danglin@gcc.gnu.org>
9511         * config/pa/som.h (EH_FRAME_THROUGH_COLLECT2): Define.
9513         PR middle-end/68079
9514         * dojump.c (do_compare_and_jump): Canonicalize both function and
9515         method types.
9517 2015-10-25  Uros Bizjak  <ubizjak@gmail.com>
9519         PR target/68084
9520         * config/i386/i386.c (ix86_md_asm_adjust) [case 'a']: Use NE code
9521         for =@ccae.
9523 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
9525         PR ipa/pr67600
9526         * ipa-polymorphic-call.c
9527         (ipa_polymorphic_call_context::get_dynamic_type): Do not confuse
9528         instance offset with offset of outer type.
9530 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
9532         * fold-const.c (operand_equal_p): Handle VIEW_CONVERT_EXPR.
9534 2015-10-23  Caroline Tice  <cmtice@google.com>
9536         (from Richard Biener
9537         * tree.c (int_cst_hasher::hash):  Replace XOR with more efficient
9538         call to iterative_hash_host_wide_int.
9540 2015-10-23  David Edelsohn  <dje.gcc@gmail.com>
9542         * config.gcc (powerpc-ibm-aix[6789]) [default_use_cxa_atexit]:
9543         Define as yes.
9545 2015-10-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
9547         * tree-vect-generic.c (expand_vector_operations_1): Check
9548         optab exists before use it.
9550 2015-10-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
9552         * tree-vect-generic.c (expand_vector_condition): Avoid
9553         uninitialized variable warning.
9555 2015-10-23  Jeff Law  <law@redhat.com>
9557         * passes.c (execute_function_todo): Do not call flush_ssaname_freelist
9558         here.  Instead...
9559         (execute_todo): Call it here.
9560         * tree-ssanames.c (make_ssa_name_fn): Unconditionally gather reuse
9561         statistics
9562         (pass_release_ssa_names::execute): Do not call flusH_ssaname_freelist.
9564 2015-10-23  Gregor Richards  <gregor.richards@uwaterloo.ca>
9565             Szabolcs Nagy  <szabolcs.nagy@arm.com>
9567         * config.gcc (enable_secureplt): Add *-linux*-musl*.
9569 2015-10-23  Jeff Law  <law@redhat.com>
9571         PR tree-optimization/67830
9572         * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
9573         Explicitly verify the mask has no bits outside the type of
9574         the innermost operands.
9576 2015-10-23  Gregor Richards  <gregor.richards@uwaterloo.ca>
9577             Szabolcs Nagy  <szabolcs.nagy@arm.com>
9579         * config/rs6000/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
9580         (MUSL_DYNAMIC_LINKER64): Define.
9581         (GNU_USER_DYNAMIC_LINKER32): Update.
9582         (GNU_USER_DYNAMIC_LINKER64): Update.
9583         (CHOOSE_DYNAMIC_LINKER): Update.
9585         * config/rs6000/sysv4.h (GNU_USER_DYNAMIC_LINKER): Update.
9586         (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER_E,)
9587         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
9588         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
9589         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
9590         (CHOOSE_DYNAMIC_LINKER): Update.
9591         (INCLUDE_DEFAULTS): Redefine.
9593         * config/rs6000/sysv4le.h (MUSL_DYNAMIC_LINKER_E): Define.
9595 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
9597         * fold-const.c (operand_equal_p): Do not compare TYPE_MODE when
9598         comparing addresses.
9600 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
9602         * fold-const.c (operand_equal_p): Handle matching of vector
9603         constructors.
9605 2015-10-23  David Edelsohn  <dje.gcc@gmail.com>
9607         * doc/install.texi (*-ibm-aix*): Additional information for AIX 7.1.
9609 2015-10-23  Steve Ellcey  <sellcey@imgtec.com>
9610             Andrew Pinski  <apinski@cavium.com>
9612         PR rtl-optimization/67736
9613         * combine.c (simplify_comparison): Use gen_lowpart_or_truncate instead
9614         of gen_lowpart.
9616 2015-10-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
9618         PR middle-end/68066
9619         * tree.c (build_truth_vector_type): Support BLK mode
9620         returned for boolean vector.
9622 2015-10-23  Alan Hayward <alan.hayward@arm.com>
9624         PR tree-optimization/65947
9625         * tree-vect-loop.c
9626         (vect_is_simple_reduction_1): Find condition reductions.
9627         (vect_model_reduction_cost): Add condition reduction costs.
9628         (get_initial_def_for_reduction): Add condition reduction initial var.
9629         (vect_create_epilog_for_reduction): Add condition reduction epilog.
9630         (vectorizable_reduction): Condition reduction support.
9631         * tree-vect-stmts.c (vectorizable_condition): Add vect reduction arg
9632         * doc/sourcebuild.texi (Vector-specific attributes): Document
9633         vect_max_reduc
9635 2015-10-23  Richard Biener  <rguenther@suse.de>
9637         * Makefile.in (build/genmatch.o): Properly depend on is-a.h, tree.def
9638         and builtins.def.
9640 2015-10-23  Richard Biener  <rguenther@suse.de>
9641             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
9643         * fold-const.c (fold_binary_loc) : Move Fold (A & ~B) - (A & B)
9644         into (A ^ B) - B to match.pd
9645         Move (X & ~Y) | (~X & Y) is X ^ Y to match.pd.
9647         * match.pd (minus (bit_and:cs @0 (bit_not @1)) (bit_and:s @0 @1)):
9648         New simplifier.
9649         (minus (bit_and:s @0 INTEGER_CST@2) (bit_and:s @0 INTEGER_CST@1)):
9650         New simplifier.
9651         (minus (bit_and:s @0 @1) (bit_and:cs @0 (bit_not @1))):
9652         New simplifier.
9653         (bit_ior:c (bit_and:c @0 (bit_not @1)) (bit_and:c (bit_not @0) @1)):
9654         New simplifier.
9655         (bit_ior:c (bit_and @0 INTEGER_CST@2) (bit_and (bit_not @0)
9656         INTEGER_CST@1)): New simplifier.
9658 2015-10-23  Richard Sandiford  <richard.sandiford@arm.com>
9660         * builtins.c (integer_valued_real_p): Move to fold-const.c.
9661         (fold_trunc_transparent_mathfn, fold_builtin_trunc, fold_builtin_floor)
9662         (fold_builtin_ceil, fold_builtin_round): Delete.
9663         (fold_builtin_1): Handle constant trunc, floor, ceil and round
9664         arguments here.
9665         * convert.c (convert_to_real): Remove narrowing of rounding
9666         functions.
9667         * fold-const.h (integer_valued_real_unary_p)
9668         (integer_valued_real_binary_p, integer_valued_real_call_p)
9669         (integer_valued_real_single_p, integer_valued_real_p): Declare.
9670         * fold-const.c (tree_single_nonnegative_warnv_p): Move
9671         name_registered_for_update_p check to SSA_NAME case statement.
9672         Don't call tree_simple_nonnegative_warnv_p for SSA names.
9673         (integer_valued_real_unary_p, integer_valued_real_binary_p)
9674         (integer_valued_real_call_p, integer_valued_real_single_p)
9675         (integer_valued_real_invalid_p): New functions.
9676         (integer_valued_real_p): Move from fold-const.c and rework
9677         to call the functions above.  Handle SSA names.
9678         * gimple-fold.h (gimple_stmt_integer_valued_real_p): Declare.
9679         * gimple-fold.c (gimple_assign_integer_valued_real_p)
9680         (gimple_call_integer_valued_real_p, gimple_phi_integer_valued_real_p)
9681         (gimple_stmt_integer_valued_real_p): New functions.
9682         * match.pd: Fold f(f(x))->f(x) for fp->fp rounding functions f.
9683         Fold f(x)->x for the same f if x is known to be integer-valued.
9684         Fold f(extend(x))->extend(f'(x)) if doing so doesn't affect
9685         the result.  Canonicalize floor(x) as trunc(x) if x is
9686         nonnegative.
9688 2015-10-23  Tom de Vries  <tom@codesourcery.com>
9690         * tree-ssa-structalias.c (intra_create_variable_infos): Use
9691         make_constraint_from.
9693 2015-10-23  Tom de Vries  <tom@codesourcery.com>
9695         * tree-ssa-structalias.c (create_variable_info_for_1): Add missing
9696         setting of is_full_var in case of a single field.
9698 2015-10-22  Martin Sebor  <msebor@redhat.com>
9700         PR driver/68043
9701         * config/i386/i386.opt: Add missing periods to the ends of sentences.
9702         * config/msp430/msp430.opt: Same.
9704 2015-10-21  David Wohlferd  <dw@LimeGreenSocks.com>
9706         * doc/extend.exp (Global Register Variables): Rewrite.
9708 2015-10-22  Jeff Law  <law@redhat.com>
9710         * genattrtab.c (main): If we do not have any annul-true or annul-false
9711         slots, then write out a dummy eligible_for_annul_true or
9712         eligible_for_annul_false as needed.
9714 2015-10-22  Nick Clifton  <nickc@redhat.com>
9716         * config/msp430/msp430.opt: Add -msilicon-errata and
9717         -msilicon-errata-warn.
9718         * config/msp430/msp430.h (ASM_SPEC): Pass new options on to
9719         assembler.
9720         * doc/invoke.texi: Document new options.
9722 2015-10-22  Richard Biener  <rguenther@suse.de>
9724         PR tree-optimization/58497
9725         * tree-vect-generic.c (ssa_uniform_vector_p): New helper.
9726         (expand_vector_operations_1): Use it.  Lower operations on
9727         all uniform vectors to scalar operations if the HW supports it.
9729 2015-10-22  Richard Biener  <rguenther@suse.de>
9731         PR tree-optimization/19049
9732         PR tree-optimization/65962
9733         * tree-vect-data-refs.c (vect_analyze_group_access_1): Fall back
9734         to strided accesses if single-element interleaving doesn't work.
9736 2015-10-22  Richard Biener  <rguenther@suse.de>
9738         PR middle-end/68046
9739         PR middle-end/61893
9740         * optabs.c (emit_libcall_block_1): Allow a NULL_RTX equiv.
9741         (expand_binop): For -ftrapv optabs do not record an REG_EQUAL note.
9742         (expand_unop): Likewise.
9744 2015-10-22  Richard Biener  <rguenther@suse.de>
9746         * fold-const.c (fold_addr_of_array_ref_difference): Properly
9747         convert operands before folding a MINUS_EXPR.
9748         (fold_binary_loc): Move simplification of MINUS_EXPR on
9749         converted POINTER_PLUS_EXPRs ...
9750         * match.pd: ... here.
9752 2015-10-22  Richard Sandiford  <richard.sandiford@arm.com>
9754         * builtins.c (fold_builtin_tan): Delete.
9755         (fold_builtin_1): Handle constant tan arguments here.
9756         * match.pd: Simplify (tan (atan x)) to x.
9758 2015-10-22  Richard Sandiford  <richard.sandiford@arm.com>
9760         * builtins.c (fold_builtin_cproj): Delete.
9761         (fold_builtin_1): Handle constant arguments here.
9762         (build_complex_cproj): Move and rename to...
9763         * tree.c: (build_complex_inf): ...this.
9764         * tree.h (build_complex_inf): Declare.
9765         * match.pd: Fold cproj(x)->x if x has no infinity.
9766         Use build_complex_inf for existing cproj rules.
9768 2015-10-22  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9770         PR target/68015
9771         * config/s390/s390.md (mov<mode>cc): Emit compare only if we don't
9772         already have a comparison result.
9774 2015-10-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9776         PR target/63304
9777         * config/aarch64/aarch64.c (aarch64_nopcrelative_literal_loads): New.
9778         (aarch64_expand_mov_immediate): Use aarch64_nopcrelative_literal_loads.
9779         (aarch64_classify_address): Likewise.
9780         (aarch64_secondary_reload): Likewise.
9781         (aarch64_override_options_after_change_1): Adjust.
9782         * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
9783         Use aarch64_nopcrelative_literal_loads.
9784         (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
9785         * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
9786         Declare.
9788 2015-10-21  Martin Sebor  <msebor@redhat.com>
9790         PR driver/68043
9791         * opts.c (undocumented_msg, use_diagnosed_msg): New globals.
9792         (print_filtered_help): Reference aliased option's name and encourage
9793         readers to use it in preference to the alias if the former is not
9794         documented.  Mention when using an option is diagnosed.
9795         * gcc.c (display_help): End each sentence with a period.
9797         * common.opt: End each sentence that describes an option with
9798         a period.
9799         * config/aarch64/aarch64.opt: Same.
9800         * config/alpha/alpha.opt: Same.
9801         * config/arc/arc.opt: Same.
9802         * config/arm/arm.opt: Same.
9803         * config/avr/avr.opt: Same.
9804         * config/bfin/bfin.opt: Same.
9805         * config/c6x/c6x.opt: Same.
9806         * config/cr16/cr16.opt: Same.
9807         * config/cris/cris.opt: Same.
9808         * config/cris/linux.opt: Same.
9809         * config/darwin.opt: Same.
9810         * config/epiphany/epiphany.opt: Same.
9811         * config/fr30/fr30.opt: Same.
9812         * config/frv/frv.opt: Same.
9813         * config/ft32/ft32.opt: Same.
9814         * config/g.opt: Same.
9815         * config/h8300/h8300.opt: Same.
9816         * config/i386/cygming.opt: Same.
9817         * config/i386/djgpp.opt: Same.
9818         * config/i386/i386.opt: Same.
9819         * config/i386/interix.opt: Same.
9820         * config/i386/mingw-w64.opt: Same.
9821         * config/i386/mingw.opt: Same.
9822         * config/ia64/ia64.opt: Same.
9823         * config/ia64/ilp32.opt: Same.
9824         * config/iq2000/iq2000.opt: Same.
9825         * config/linux.opt: Same.
9826         * config/lm32/lm32.opt: Same.
9827         * config/lynx.opt: Same.
9828         * config/m32c/m32c.opt: Same.
9829         * config/m32r/m32r.opt: Same.
9830         * config/m68k/ieee.opt: Same.
9831         * config/m68k/m68k.opt: Same.
9832         * config/mcore/mcore.opt: Same.
9833         * config/mep/mep.opt: Same.
9834         * config/microblaze/microblaze.opt: Same.
9835         * config/mips/mips.opt: Same.
9836         * config/mmix/mmix.opt: Same.
9837         * config/mn10300/mn10300.opt: Same.
9838         * config/moxie/moxie.opt: Same.
9839         * config/msp430/msp430.opt: Same.
9840         * config/nios2/elf.opt: Same.
9841         * config/nios2/nios2.opt: Same.
9842         * config/nvptx/nvptx.opt: Same.
9843         * config/pa/pa-hpux.opt: Same.
9844         * config/pa/pa-hpux1010.opt: Same.
9845         * config/pa/pa-hpux1111.opt: Same.
9846         * config/pa/pa-hpux1131.opt: Same.
9847         * config/pa/pa.opt: Same.
9848         * config/pa/pa64-hpux.opt: Same.
9849         * config/pdp11/pdp11.opt: Same.
9850         * config/rl78/rl78.opt: Same.
9851         * config/rs6000/476.opt: Same.
9852         * config/rs6000/aix64.opt: Same.
9853         * config/rs6000/darwin.opt: Same.
9854         * config/rs6000/linux64.opt: Same.
9855         * config/rs6000/rs6000.opt: Same.
9856         * config/rs6000/sysv4.opt: Same.
9857         * config/s390/s390.opt: Same.
9858         * config/s390/tpf.opt: Same.
9859         * config/sh/sh.opt: Same.
9860         * config/sol2.opt: Same.
9861         * config/sparc/long-double-switch.opt: Same.
9862         * config/sparc/sparc.opt: Same.
9863         * config/spu/spu.opt: Same.
9864         * config/stormy16/stormy16.opt: Same.
9865         * config/tilegx/tilegx.opt: Same.
9866         * config/tilepro/tilepro.opt: Same.
9867         * config/v850/v850.opt: Same.
9868         * config/vax/vax.opt: Same.
9869         * config/visium/visium.opt: Same.
9870         * config/vms/vms.opt: Same.
9871         * config/vxworks.opt: Same.
9872         * config/xtensa/xtensa.opt: Same.
9874 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
9875             Sebastian Pop  <s.pop@samsung.com>
9877         * graphite-scop-detection.c (parameter_index_in_region): Update call to
9878         invariant_in_sese_p_rec.
9879         * graphite-sese-to-poly.c (extract_affine): Same.
9880         * sese.c (invariant_in_sese_p_rec): Pass in an extra
9881         parameter has_vdefs.
9882         (scalar_evolution_in_region): Return chrec_dont_know when the scalar
9883         variable depends on virtual definitions in the current region.
9884         * sese.h (invariant_in_sese_p_rec): Update declaration.
9886 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
9887             Sebastian Pop  <s.pop@samsung.com>
9889         * graphite-scop-detection.c (build_scops): Do not handle scops
9890         with more than PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP arrays.
9891         * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP): New.
9893 2015-10-21  Mikhail Maltsev  <maltsevm@gmail.com>
9895         * config.in: Regenerate.
9896         * configure: Regenerate.
9897         * configure.ac (CHECKING_P): Define.
9898         * system.h: Use CHECKING_P.
9900 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
9902         PR ipa/67056
9903         * ipa-polymorphic-call.c (possible_placement_new): If cur_offset
9904         is negative we don't know the type.
9905         (check_stmt_for_type_change): Skip constructors of non-polymorphic
9906         types as those won't help devirutalization.
9908 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
9910         * fold-const.c (operand_equal_p): Add code matching empty constructors.
9912 2015-10-21  Eric Botcazou  <ebotcazou@adacore.com>
9914         * tree.def (CEIL_DIV_EXPR, FLOOR_DIV_EXPR, ROUND_DIV_EXPR): Tweak
9915         comments.
9916         (TRUNC_MOD_EXPR, CEIL_MOD_EXPR, FLOOR_MOD_EXPR, ROUND_MOD_EXPR):
9917         Add comments on sign of the result.
9918         * fold-const.c (tree_binary_nonnegative_warnv_p) <FLOOR_MOD_EXPR>:
9919         Recurse on operand #1 instead of operand #0.
9920         <CEIL_MOD_EXPR>: Do not recurse.
9921         <ROUND_MOD_EXPR>: Likewise.
9923 2015-10-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9925         * cfgrtl.c (pass_free_cfg::execute): Adjust.
9926         * final.c (dbr_sequence_length): Always define.
9927         (shorten_branches): Adjust.
9928         * genattr-common.c (main): Always define DELAY_SLOTS.
9929         * genattr.c (main): Unconditionally declare functions and define
9930         macros related to delay slots.
9931         * genattrtab.c (write_eligible_delay): Adjust.
9932         (main): Always write out delay slot functions.
9933         * opts.c (default_options_table): Adjust.
9934         * reorg.c (redirect_with_delay_slots_safe_p): Likewise.
9935         (redirect_with_delay_list_safe_p): Likewise.
9936         (fill_simple_delay_slots): Likewise.
9937         (fill_slots_from_thread): Likewise.
9938         (make_return_insns): Likewise.
9939         (dbr_schedule): Likewise.
9940         (rest_of_handle_delay_slots): Likewise.
9941         (pass_delay_slots::gate): Likewise.
9942         * toplev.c (process_options): Likewise.
9944 2015-10-21  Richard Henderson  <rth@redhat.com>
9946         * targhooks.c (default_addr_space_pointer_mode): Remove check
9947         for generic address space.
9948         (default_addr_space_address_mode): Likewise.
9949         (default_addr_space_valid_pointer_mode): Likewise.
9950         (default_addr_space_legitimate_address_p): Likewise.
9951         (default_addr_space_legitimize_address): Likewise.
9952         * target.def (addr_space.pointer_mode): Update documentation
9953         of default behavior.
9954         (addr_space.address_mode): Likewise.
9955         * tm.texi: Update.
9957         * expr.c (expand_expr_real_2): Use convert_modes on disjoint
9958         address spaces.
9960 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
9962         * builtins.c (fold_builtin_cabs): Delete.
9963         (fold_builtin_1): Update accordingly.  Handle constant arguments here.
9964         * match.pd: Add rules previously handled by fold_builtin_cabs.
9966 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
9968         * fold-const.h (fold_strip_sign_ops): Delete.
9969         * fold-const.c (fold_strip_sign_ops): Likewise.
9970         (fold_unary_loc, fold_binary_loc): Remove calls to it.
9971         * builtins.c (fold_builtin_cos, fold_builtin_cosh)
9972         (fold_builtin_ccos): Delete.
9973         (fold_builtin_pow): Don't call fold_strip_sign_ops.
9974         (fold_builtin_hypot, fold_builtin_copysign): Likewise.
9975         Remove fndecl argument.
9976         (fold_builtin_1): Update calls accordingly.  Handle constant
9977         cos, cosh, ccos and ccosh here.
9979 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
9981         * doc/invoke.texi (-fdump-tree-backprop, -fssa-backprop): Document.
9982         * Makefile.in (OBJS): Add gimple-ssa-backprop.o.
9983         * common.opt (fssa-backprop): New option.
9984         * fold-const.h (negate_mathfn_p): Declare.
9985         * fold-const.c (negate_mathfn_p): Make public.
9986         * timevar.def (TV_TREE_BACKPROP): New.
9987         * tree-pass.h (make_pass_backprop): Declare.
9988         * passes.def (pass_backprop): Add.
9989         * gimple-ssa-backprop.c: New file.
9991 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
9992             Sebastian Pop  <s.pop@samsung.com>
9994         * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard):
9995         Do not call create_empty_if_region_on_edge when cond_expr is true.
9996         (translate_isl_ast_node_for): Check whether a guard has been generated.
9998 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
10000         * graphite-poly.h (struct dr_info): Added invalid_alias_set number.
10001         (operator=): Removed.
10002         (dr_info): Make alias_set number the last argument with default
10003         value of invalid_alias_set.
10004         * graphite-sese-to-poly.c (build_scop_drs): Update constructor
10005         of dr_info.
10006         (rewrite_reductions_out_of_ssa): Iterate only through the
10007         basic blocks which are inside region.
10008         (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
10009         * sese.h (struct sese_l): Removed assignment operator.
10010         (split_region_for_bb): Removed dead code.
10012 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
10014         * graphite-poly.h (struct dr_info): Removed conversion constructor.
10015         (struct scop): Renamed scop::region to scop::scop_info
10016         (scop_set_region): Same.
10017         (SCOP_REGION): Removed
10018         (SCOP_CONTEXT): Removed.
10019         (POLY_SCOP_P): Removed.
10020         * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
10021         Rename scop->region to scop->scop_info.
10022         (add_parameters_to_ivs_params): Same.
10023         (graphite_regenerate_ast_isl): Same.
10024         * graphite-poly.c (new_scop): Same.
10025         (free_scop): Same.
10026         (print_scop_params): Same.
10027         * graphite-scop-detection.c (scop_detection::remove_subscops): Same.
10028         (scop_detection::remove_intersecting_scops): Use pointer to sese_l.
10029         (dot_all_scops_1): Rename scop->region to scop->scop_info.
10030         (scop_detection::nb_pbbs_in_loops): Same.
10031         (find_scop_parameters): Same.
10032         (try_generate_gimple_bb): Same.
10033         (gather_bbs::before_dom_children): Same.
10034         (gather_bbs::after_dom_children): Same.
10035         (build_scops): Same.
10036         * graphite-sese-to-poly.c (build_scop_scattering): Same.
10037         (extract_affine_chrec): Same.
10038         (extract_affine): Same.
10039         (set_scop_parameter_dim): Same.
10040         (build_loop_iteration_domains): Same.
10041         (create_pw_aff_from_tree): Same.
10042         (add_param_constraints): Same.
10043         (build_scop_iteration_domain): Same.
10044         (build_scop_drs): Same.
10045         (analyze_drs_in_stmts): Same.
10046         (insert_out_of_ssa_copy_on_edge): Same.
10047         (rewrite_close_phi_out_of_ssa):Same.
10048         (rewrite_reductions_out_of_ssa):Same.
10049         (handle_scalar_deps_crossing_scop_limits):Same.
10050         (rewrite_cross_bb_scalar_deps):Same.
10051         (rewrite_cross_bb_scalar_deps_out_of_ssa):Same.
10052         (build_poly_scop):Same.
10053         (build_alias_set): Use pointer to dr_info.
10054         * graphite.c (print_graphite_scop_statistics):
10055         (graphite_transform_loops):
10056         * sese.h (struct sese_l): Remove conversion constructor.
10058 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
10060         PR middle-end/67966
10061         * tree.c (verify_type): Verify that TYPE_MODE match
10062         between TYPE_CANONICAL and type.
10063         * expr.c (store_expr_with_bounds): Revert my previous change.
10064         * expmed.c (store_bit_field_1): Revert prevoius change.
10065         * gimple-expr.c (useless_type_conversion_p): Require TYPE_MODE
10066         to match for all types.
10068 2015-10-21  Nathan Sidwell  <nathan@codesourcery.com>
10070         * omp-low.c (check_omp_nesting_restrictions): Check OpenACC loop
10071         nesting.
10073 2015-10-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
10075         * doc/tm.texi: Regenerated.
10076         * doc/tm.texi.in (TARGET_VECTORIZE_GET_MASK_MODE): New.
10077         * stor-layout.c (layout_type): Use mode to get vector mask size.
10078         * target.def (get_mask_mode): New.
10079         * targhooks.c (default_get_mask_mode): New.
10080         * targhooks.h (default_get_mask_mode): New.
10081         * tree-vect-stmts.c (get_same_sized_vectype): Add special case
10082         for boolean vector.
10083         * tree.c (MAX_BOOL_CACHED_PREC): New.
10084         (nonstandard_boolean_type_cache): New.
10085         (build_nonstandard_boolean_type): New.
10086         (make_vector_type): Vector mask has no canonical type.
10087         (build_truth_vector_type): New.
10088         (build_same_sized_truth_vector_type): New.
10089         (truth_type_for): Support vector masks.
10090         * tree.h (VECTOR_BOOLEAN_TYPE_P): New.
10091         (build_truth_vector_type): New.
10092         (build_same_sized_truth_vector_type): New.
10093         (build_nonstandard_boolean_type): New.
10094         * tree-cfg.c (verify_gimple_comparison) Require boolean
10095         vector type for vector comparison.
10096         (verify_gimple_assign_ternary): Likewise.
10097         * optabs.c (expand_vec_cond_expr): Accept boolean vector as
10098         condition operand.
10099         * tree-vect-stmts.c (vectorizable_condition): Use boolean
10100         vector type for vector comparison.
10101         * tree-vect-generic.c (elem_op_func): Add new operand to hold
10102         vector type.
10103         (do_unop): Adjust to modified function type.
10104         (do_binop): Likewise.
10105         (do_plus_minus): Likewise.
10106         (do_negate); Likewise.
10107         (expand_vector_piecewise): Likewise.
10108         (do_cond): Likewise.
10109         (do_compare): Use comparison instead of condition.
10110         (expand_vector_divmod): Use boolean vector type for comparison.
10111         (expand_vector_operations_1): Skip scalar mask operations.
10113 2015-10-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
10115         * omp-low.c (simd_clone_create): Set in_other_partition
10116         for created clones.
10118 2015-10-21  David Wohlferd  <dw@LimeGreenSocks.com>
10120         * doc/extend.exp (Local Register Variables): Rewrite.
10122 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
10124         * match.pd: Add rules to simplify ccos, ccosh, hypot, copysign
10125         and x*x in cases where the operands are sign ops.  Extend these
10126         rules to handle copysign as a sign op (including for cos, cosh
10127         and pow, which already treated negate and abs as sign ops).
10129 2015-10-21  Uros Bizjak  <ubizjak@gmail.com>
10131         PR target/68018
10132         * config/i386/i386.c (ix86_compute_frame_layout): Realign the stack
10133         for 64-bit MS_ABI targets also when default incoming stack boundary
10134         is overriden.
10136 2015-10-21  Richard Biener  <rguenther@suse.de>
10138         * tree-ssa-sccvn.c (cond_stmts_equal_p): Compare two GIMPLE
10139         cond stmts, enhanced and split out from ...
10140         (vn_phi_eq): ... here.
10142 2015-10-21  Richard Biener  <rguenther@suse.de>
10144         PR middle-end/68031
10145         * fold-const.c: Include tree-ssa-operands.h and tree-into-ssa.h.
10146         (tree_ssa_name_nonnegative_warnv_p): Fold into ...
10147         (tree_single_nonnegative_warnv_p): ... here.  For SSA names
10148         make sure they are not registered for update.
10150 2015-10-21  Richard Biener  <rguenther@suse.de>
10152         PR tree-optimization/68026
10153         * tree-ssa-ccp.c (get_value_for_expr): Zero-extend mask for
10154         unsigned VARYING values.
10156 2015-10-21  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
10158         * asan.c (asan_emit_stack_protection): Don't pass local stack to
10159         asan_stack_malloc_[n] anymore. Check if asan_stack_malloc_[n] returned
10160         NULL and use local stack than.
10161         (asan_finish_file): Insert __asan_version_mismatch_check_v[n] call
10162         in addition to __asan_init.
10163         * sanitizer.def (BUILT_IN_ASAN_INIT): Rename to __asan_init.
10164         (BUILT_IN_ASAN_VERSION_MISMATCH_CHECK): Add new builtin call.
10165         * asan.h (asan_intercepted_p): Handle new string builtins.
10166         * ubsan.c (ubsan_use_new_style_p): New function.
10167         (ubsan_instrument_float_cast): If location is unknown, assign
10168         input_location to loc. Propagate loc to ubsan_create_data if
10169         ubsan_use_new_style_p returned true.
10171 2015-10-21  Jeff Law  <law@redhat.com>
10173         * Makefile.in (OBJS): Remove sched-vis.c
10174         * sched-vis.c: Removed.  Code moved into...
10175         * print-rtl.c: Here.  Include cfg.h, pretty-print.h and print-rtl.h.
10176         * rtl.h: Remove prototypes for functions now living in print-rtl.c
10177         * print-rtl.h Add prototypes for new functions in print-rtl.c.
10178         * auto-inc-dec.c: Include print-rtl.h
10179         * cfgrtl.c, combine.c, final.c haifa-sched.c: Likewise.
10180         * ira.c, lra-constraints.c, lra.c, sel-sched-dump.c: Likewise.
10182         * varasm.c (handle_vtv_comdat_section): Mark 2nd parameter with
10183         ATTRIBUTE_UNUSED.
10185 2015-10-21  Richard Biener  <rguenther@suse.de>
10186             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
10188         * fold-const.c (fold_binary_loc) : Move (-A) * (-B) -> A * B
10189         to match.pd.
10190 * doc/implement-c.texi (Integers Implementation): Make GCC's promises
10191 about signed left shift stronger and clarify the cases when they're
10192 broken.
10193         Move (a * (1 << b)) is (a << b) to match.pd.
10194         Move convert (C1/X)*C2 into (C1*C2)/X to match.pd.
10195         Move ~X & X, (X == 0) & X, and !X & X are zero to match.pd.
10196         Move X & ~X , X & (X == 0), and X & !X are zero to match.pd.
10198         * match.pd (mult:c @0 (convert? (lshift integer_onep@1 @2))):
10199         New simplifier.
10200         (mult (rdiv:s REAL_CST@0 @1) REAL_CST@2): New simplifier.
10201         (bit_and:c (convert? @0) (convert? (bit_not @0))): New simplifier.
10202         (bit_ior (bit_and:s @0 (bit_not:s @1)) (bit_and:s (bit_not:s @0) @1))
10203         : New simplifier.
10204         (mult:c (convert1? (negate @0)) (convert2? negate_expr_p@1)):
10205         New simplifier.
10206         (match (logical_inverted_value @0) (truth_not @0)) : New Predicate.
10208 2015-10-21  Gregor Richards  <gregor.richards@uwaterloo.ca>
10209             Szabolcs Nagy  <szabolcs.nagy@arm.com>
10210             Alan Modra  <amodra@gmail.com>
10212         * config/rs6000/secureplt.h (LINK_SECURE_PLT_DEFAULT_SPEC): Define.
10213         * config/rs6000/sysv4.h (LINK_SECURE_PLT_SPEC): Define.
10214         (LINK_SPEC): Add %(link_secure_plt).
10215         (SUBTARGET_EXTRA_SPECS): Add "link_secure_plt".
10216         * config/rs6000/linux64.h (LINK_SECURE_PLT_SPEC): Redefine.
10218 2015-10-20  Gregor Richards  <gregor.richards@uwaterloo.ca>
10219             Szabolcs Nagy  <szabolcs.nagy@arm.com>
10221         * config/sh/linux.h (MUSL_DYNAMIC_LINKER): Define.
10222         (MUSL_DYNAMIC_LINKER_E, MUSL_DYNAMIC_LINKER_FP): Define.
10224 2015-10-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10226         * config/aarch64/aarch64.c (aarch64_mode_valid_for_sched_fusion_p):
10227         New function.
10228         (fusion_load_store): Use it.
10229         * config/aarch64/aarch64-ldpstp.md: Add new peephole2s for
10230         ldp and stp in VD modes.
10231         * config/aarch64/aarch64-simd.md (load_pair<mode>, VD): New pattern.
10232         (store_pair<mode>, VD): Likewise.
10234 2015-10-20  Vladimir Makarov  <vmakarov@redhat.com>
10236         PR rtl-optimization/67609
10237         * lra-splill.c (lra_final_code_change): Don't remove all
10238         sub-registers.
10240 2015-10-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10242         * simplify-rtx.c (simplify_binary_operation): If either operand was
10243         a constant pool reference use them if all other simplifications failed.
10245 2015-10-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10247         * config/aarch64/aarch64.md
10248         (*aarch64_fcvt<su_optab><GPF:mode><GPI:mode>2_mult): New pattern.
10249         * config/aarch64/aarch64-simd.md
10250         (*aarch64_fcvt<su_optab><VDQF:mode><fcvt_target>2_mult): Likewise.
10251         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle above patterns.
10252         (aarch64_fpconst_pow_of_2): New function.
10253         (aarch64_vec_fpconst_pow_of_2): Likewise.
10254         * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow_of_2): Declare
10255         prototype.
10256         (aarch64_vec_fpconst_pow_of_2): Likewise.
10257         * config/aarch64/predicates.md (aarch64_fp_pow2): New predicate.
10258         (aarch64_fp_vec_pow2): Likewise.
10260 2015-10-20  Uros Bizjak  <ubizjak@gmail.com>
10262         * config/alpha/alpha.h (HARD_REGNO_NREGS): Use CEIL macro.
10263         (ALPHA_ARG_SIZE): Ditto.  Remove unused NAMED argument.
10264         * config/alpha/alpha.c (alpha_function_arg_advance): Update
10265         ALPHA_ARG_SIZE usage.
10266         (alpha_arg_partial_bytes): Ditto.
10268 2015-10-20  H.J. Lu  <hongjiu.lu@intel.com>
10270         PR target/66810
10271         * cgraphbuild.c (pass_build_cgraph_edges::execute): Skip local
10272         error_mark_node decls.
10274 2015-10-20  H.J. Lu  <hongjiu.lu@intel.com>
10276         PR target/67963
10277         PR target/67985
10278         * common/config/i386/i386-common.c (ix86_handle_option): Remove
10279         OPT_miamcu handling.
10280         * config/i386/i386.c (PTA_NO_80387): New macro.
10281         (processor_alias_table): Add PTA_NO_80387 to lakemont.
10282         (ix86_option_override_internal): Update MASK_80387 from
10283         PTA_NO_80387.  Don't warn x87/MMX/SSE/AVX for -miamcu.  Warn
10284         SSE math only if 80387 is supported.  Don't change
10285         MASK_FLOAT_RETURNS.
10286         (ix86_valid_target_attribute_tree): Enable FPMATH_387 only if
10287         80387 is supported.
10288         * config/i386/i386.h (TARGET_FLOAT_RETURNS_IN_80387): True only
10289         if TARGET_80387 is true and TARGET_IAMCU is false.
10290         (TARGET_FLOAT_RETURNS_IN_80387_P): True only if TARGET_80387_P
10291         is true and TARGET_IAMCU_P is false.
10293 2015-10-20  Richard Biener  <rguenther@suse.de>
10295         PR tree-optimization/68017
10296         * tree-tailcall.c (eliminate_tail_call): Remove stmts backwards.
10298 2015-10-20  Martin Liska  <mliska@suse.cz>
10300         * cgraphclones.c (cgraph_node::create_virtual_clone):
10301         Verify cgraph_node.local.versionable instead of calling
10302         tree_versionable_function_p.
10303         * ipa-cp.c (determine_versionability): Save the information
10304         to ipa_node_params summary.
10305         (ipcp_versionable_function_p): Use it.
10306         (ipcp_propagate_stage): Pass IPA_NODE_REF to a called function.
10307         (ipcp_generate_summary): Do not compute cgraph_node
10308         versionability.
10309         * ipa-inline-analysis.c (inline_generate_summary): Compute
10310         versionability for all cgraph nodes.
10311         * ipa-prop.c (ipa_node_params_t::duplicate): Duplicate
10312         ipa_node_params::versionability.
10313         * ipa-prop.h (struct ipa_node_params): Declare it.
10315 2015-10-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10317         PR other/67868
10318         * varasm.c (assemble_variable): Move special vtv handling to..
10319         (handle_vtv_comdat_sections): .. here. New function.
10320         (output_object_block): Handle vtv sections.
10322 2015-10-20  Szabolcs Nagy  <szabolcs.nagy@arm.com>
10324         PR target/66912
10325         * varasm.c (default_binds_local_p_2): Turn on extern_protected_data.
10327 2015-10-20  Arkadiusz Drabczyk  <arkadiusz@drabczyk.org>
10329         * doc/extend.texi: Update documentation WRT inline functions.
10331 2015-10-20  Alan Modra  <amodra@gmail.com>
10333         PR go/66870
10334         * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Don't define.
10335         * config/rs6000/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
10336         (TARGET_CAN_SPLIT_STACK_64BIT): Define.
10338 2015-10-19  Pierre-Marie de Rodat  <derodat@adacore.com>
10340         PR rtl-optimization/66790
10341         * df.h (DF_MIR): New macro.
10342         (DF_LAST_PROBLEM_PLUS1): Update to be past DF_MIR
10343         (DF_MIR_INFO_BB): New macro.
10344         (DF_MIR_IN, DF_MIR_OUT): New macros.
10345         (struct df_mir_bb_info): New.
10346         (df_mir): New macro.
10347         (df_mir_add_problem, df_mir_simulate_one_insn): New forward
10348         declarations.
10349         (df_mir_get_bb_info): New.
10350         * df-problems.c (struct df_mir_problem_data): New.
10351         (df_mir_free_bb_info, df_mir_alloc, df_mir_reset,
10352         df_mir_bb_local_compute, df_mir_local_compute, df_mir_init,
10353         df_mir_confluence_0, df_mir_confluence_n,
10354         df_mir_transfer_function, df_mir_free, df_mir_top_dump,
10355         df_mir_bottom_dump, df_mir_verify_solution_start,
10356         df_mir_verify_solution_end): New.
10357         (problem_MIR): New.
10358         (df_mir_add_problem, df_mir_simulate_one_insn): New.
10359         * timevar.def (TV_DF_MIR): New.
10360         * ree.c: Include bitmap.h
10361         (add_removable_extension): Add an INIT_REGS parameter.  Use it
10362         to skip zero-extensions that may get an uninitialized register.
10363         (find_removable_extensions): Compute must-initialized registers
10364         using the MIR dataflow problem. Update the call to
10365         add_removable_extension.
10366         (find_and_remove_re): Call df_mir_add_problem.
10368 2015-10-19  Segher Boessenkool  <segher@kernel.crashing.org>
10370         * common/config/mn10300/mn10300-common.c
10371         (mn10300_option_optimization_table) <OPT_freorder_blocks_algorithm_>:
10372         Use REORDER_BLOCKS_ALGORITHM_STC at -Os and up.
10374 2015-10-19  David Wohlferd  <dw@LimeGreenSocks.com>
10376         * doc/extend.texi (Explicit Register Variables): Simplify and
10377         avoid unnecessary and confusion abbreviations.  Update cross
10378         references.
10379         doc/implement-c.tex: Update cross reference.
10381 2015-10-19  Jeff Law  <law@redhat.com>
10383         * tree-ssa-threadupdate.c (valid_jump_thread_path): Reject paths
10384         that create irreducible loops unless the path elimiantes a multiway
10385         branch.
10387 2015-10-19  Richard Biener  <rguenther@suse.de>
10389         PR tree-optimization/67975
10390         * tree-cfg.h (extract_true_false_controlled_edges): Declare.
10391         * tree-cfg.c (extract_true_false_controlled_edges): Split out
10392         core worker from ...
10393         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): ... here.
10394         * tree-ssa-sccvn.c (vn_phi_compute_hash): Hash number of args
10395         instead of block number for PHIs with two or one args.
10396         (vn_phi_eq): Compare edge predicates of PHIs that are in different
10397         blocks.
10399 2015-10-19  Richard Biener  <rguenther@suse.de>
10401         * gimple-fold.c (gimple_phi_nonnegative_warnv_p): New function.
10402         (gimple_stmt_nonnegative_warnv_p): Use it.
10403         * match.pd (CPROJ): New operator list.
10404         (cproj (complex ...)): Move simplifications from ...
10405         * builtins.c (fold_builtin_cproj): ... here.
10407 2015-10-19  H.J. Lu  <hongjiu.lu@intel.com>
10409         * config/i386/i386.c (ix86_expand_vector_move): Use
10410         GET_MODE_BITSIZE for IA MCU psABI to get vector natural
10411         alignment.
10413 2015-10-19  H.J. Lu  <hongjiu.lu@intel.com>
10415         * doc/invoke.texi: Replace @optindex with @opindex.
10417 2015-10-19  H.J. Lu  <hongjiu.lu@intel.com>
10419         PR target/67995
10420         * config/i386/i386.c (ix86_valid_target_attribute_tree): If
10421         arch= is set,  clear all bits in x_ix86_isa_flags, except for
10422         ISA_64BIT, ABI_64, ABI_X32, and CODE16.
10424 2015-10-19  Joost VandeVondele  <vondele@gnu.gcc.org>
10426         PR middle-end/68002
10427         * common.opt (fkeep-static-functions): New option.
10428         * doc/invoke.texi: Document it.
10429         * cgraphunit.c (cgraph_node::finalize_function): Use it.
10431 2015-10-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10433         * sched-int.h (struct autopref_multipass_data_): Remove offset
10434         field.  Add min_offset, max_offset, multi_mem_insn_p fields.
10435         * haifa-sched.c (analyze_set_insn_for_autopref): New function.
10436         (autopref_multipass_init): Use it.  Handle PARALLEL sets.
10437         (autopref_rank_data): New function.
10438         (autopref_rank_for_schedule): Use it.
10439         (autopref_multipass_dfa_lookahead_guard_1): Likewise.
10441 2015-10-18  Mikhail Maltsev  <maltsevm@gmail.com>
10443         PR other/65800
10444         * gengtype.c (dump_type): Handle TYPE_UNDEFINED correctly.
10446 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
10448         * config/darwin.h (TARGET_SYSTEM_ROOT): Remove this from here,
10449         (HAVE_LD_SYSROOT): New.  (SYSROOT_SPEC): New.
10450         (LINK_SYSROOT_SPEC): Revise to remove the default for target sysroot.
10451         (STANDARD_STARTFILE_PREFIX_1): New.
10452         (STANDARD_STARTFILE_PREFIX_2): New.
10454 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
10456         * config/darwin-driver.c (darwin_default_min_version): Refactor code.
10457         (darwin_driver_init): Note a version-min when provided on the c/l.
10458         * config/darwin.h (%darwin_minversion): Remove.
10459         * config/i386/darwin.h: Likewise.
10460         * config/rs6000/darwin.h: Likewise.
10461         * config/darwin.opt (mmacosx-version-min=): Use the configured default,
10462         rather than an arbitrary constant.
10464 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
10466         * config/darwin-driver.c (darwin_driver_init): Handle '-arch' for
10467         PPC, detect conflicts between -arch and multilib settings.  Detect
10468         and warn about conflicts between multiple -arch definitions.
10470 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
10472         * config/darwin-driver.c: Adjust includes to add diagnostic-core.
10474 2015-10-16  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10476         * lra-constraints.c (add_next_usage_insn): Change argument type
10477         from rtx to rtx_insn *.
10479 2015-10-16  H.J. Lu  <hongjiu.lu@intel.com>
10481         * i386/x86-tune.def (X86_TUNE_ALWAYS_FANCY_MATH_387): Disable
10482         for Lakemont.
10484 2015-10-16  Andrew MacLeod  <amacleod@redhat.com>
10486         * config/tilepro/gen-mul-tables.cc: Adjust include files.
10487         * config/tilegx/mul-tables.c: Regenerate.
10488         * config/tilepro/mul-tables.c: Regenerate.
10490         * config/tilegx/tilegx-c.c: Adjust include files.
10491         * config/tilegx/tilegx.c: Likewise.
10492         * config/tilepro/tilepro-c.c: Likewise.
10493         * config/tilepro/tilepro.c: Likewise.
10494         * config/aarch64/aarch64-builtins.c: Likewise.
10495         * config/aarch64/aarch64.c: Likewise.
10496         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
10497         * config/alpha/alpha.c: Likewise.
10498         * config/arc/arc.c: Likewise.
10499         * config/arm/aarch-common.c: Likewise.
10500         * config/arm/arm-builtins.c: Likewise.
10501         * config/arm/arm-c.c: Likewise.
10502         * config/arm/arm.c: Likewise.
10503         * config/avr/avr-c.c: Likewise.
10504         * config/avr/avr-devices.c: Likewise.
10505         * config/avr/avr-log.c: Likewise.
10506         * config/avr/avr.c: Likewise.
10507         * config/bfin/bfin.c: Likewise.
10508         * config/c6x/c6x.c: Likewise.
10509         * config/cr16/cr16.c: Likewise.
10510         * config/cris/cris.c: Likewise.
10511         * config/darwin-c.c: Likewise.
10512         * config/darwin-driver.c: Likewise.
10513         * config/darwin.c: Likewise.
10514         * config/default-c.c: Likewise.
10515         * config/epiphany/epiphany.c: Likewise.
10516         * config/epiphany/mode-switch-use.c: Likewise.
10517         * config/epiphany/resolve-sw-modes.c: Likewise.
10518         * config/fr30/fr30.c: Likewise.
10519         * config/frv/frv.c: Likewise.
10520         * config/ft32/ft32.c: Likewise.
10521         * config/glibc-c.c: Likewise.
10522         * config/h8300/h8300.c: Likewise.
10523         * config/i386/host-cygwin.c: Likewise.
10524         * config/i386/host-mingw32.c: Likewise.
10525         * config/i386/i386-c.c: Likewise.
10526         * config/i386/i386.c: Likewise.
10527         * config/i386/msformat-c.c: Likewise.
10528         * config/i386/winnt-cxx.c: Likewise.
10529         * config/i386/winnt-stubs.c: Likewise.
10530         * config/i386/winnt.c: Likewise.
10531         * config/ia64/ia64-c.c: Likewise.
10532         * config/ia64/ia64.c: Likewise.
10533         * config/iq2000/iq2000.c: Likewise.
10534         * config/lm32/lm32.c: Likewise.
10535         * config/m32c/m32c-pragma.c: Likewise.
10536         * config/m32c/m32c.c: Likewise.
10537         * config/m32r/m32r.c: Likewise.
10538         * config/mcore/mcore.c: Likewise.
10539         * config/mep/mep-pragma.c: Likewise.
10540         * config/mep/mep.c: Likewise.
10541         * config/microblaze/microblaze-c.c: Likewise.
10542         * config/microblaze/microblaze.c: Likewise.
10543         * config/mips/mips-tables.opt
10544         * config/mips/mips.c: Likewise.
10545         * config/mmix/mmix.c: Likewise.
10546         * config/mn10300/mn10300.c: Likewise.
10547         * config/moxie/moxie.c: Likewise.
10548         * config/msp430/msp430-c.c: Likewise.
10549         * config/msp430/msp430.c: Likewise.
10550         * config/nds32/nds32-cost.c: Likewise.
10551         * config/nds32/nds32-fp-as-gp.c: Likewise.
10552         * config/nds32/nds32-intrinsic.c: Likewise.
10553         * config/nds32/nds32-isr.c: Likewise.
10554         * config/nds32/nds32-md-auxiliary.c: Likewise.
10555         * config/nds32/nds32-memory-manipulation.c: Likewise.
10556         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
10557         * config/nds32/nds32-predicates.c: Likewise.
10558         * config/nds32/nds32.c: Likewise.
10559         * config/nios2/nios2.c: Likewise.
10560         * config/nvptx/mkoffload.c: Likewise.
10561         * config/nvptx/nvptx.c: Likewise.
10562         * config/pa/pa.c: Likewise.
10563         * config/pdp11/pdp11.c: Likewise.
10564         * config/rl78/rl78-c.c: Likewise.
10565         * config/rl78/rl78.c: Likewise.
10566         * config/rs6000/host-darwin.c: Likewise.
10567         * config/rs6000/rs6000-c.c: Likewise.
10568         * config/rs6000/rs6000-linux.c: Likewise.
10569         * config/rs6000/rs6000.c: Likewise.
10570         * config/rx/rx.c: Likewise.
10571         * config/s390/s390-c.c: Likewise.
10572         * config/s390/s390.c: Likewise.
10573         * config/sh/sh-c.c: Likewise.
10574         * config/sh/sh-mem.cc: Likewise.
10575         * config/sh/sh.c: Likewise.
10576         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
10577         * config/sh/sh_treg_combine.cc: Likewise.
10578         * config/sol2-c.c: Likewise.
10579         * config/sol2-cxx.c: Likewise.
10580         * config/sol2-stubs.c: Likewise.
10581         * config/sol2.c: Likewise.
10582         * config/sparc/sparc-c.c: Likewise.
10583         * config/sparc/sparc.c: Likewise.
10584         * config/spu/spu-c.c: Likewise.
10585         * config/spu/spu.c: Likewise.
10586         * config/stormy16/stormy16.c: Likewise.
10587         * config/v850/v850-c.c: Likewise.
10588         * config/v850/v850.c: Likewise.
10589         * config/vax/vax.c: Likewise.
10590         * config/visium/visium.c: Likewise.
10591         * config/vms/vms-c.c: Likewise.
10592         * config/vms/vms.c: Likewise.
10593         * config/vxworks.c: Likewise.
10594         * config/winnt-c.c: Likewise.
10595         * config/xtensa/xtensa.c: Likewise.
10597 2015-10-16  Christian Bruel  <christian.bruel@st.com>
10599         PR target/67745
10600         * config/arm/arm.h (FUNCTION_BOUNDARY): Use FUNCTION_BOUNDARY_P.
10601         (FUNCTION_BOUNDARY_P): New macro:
10602         * config/arm/arm.c (TARGET_RELAYOUT_FUNCTION, arm_relayout_function):
10603         New hook.
10604         * doc/tm.texi.in (TARGET_RELAYOUT_FUNCTION): Document.
10605         * doc/tm.texi (TARGET_RELAYOUT_FUNCTION): New hook.
10606         * target.def (TARGET_RELAYOUT_FUNCTION): Likewise.
10607         * function.c (allocate_struct_function): Call
10608         relayout_function hook.
10609         * passes.c (rest_of_decl_compilation): Likewise.
10611 2015-10-16  Christian Bruel  <christian.bruel@st.com>
10613         PR target/67745
10614         * config/arm/arm.h (FUNCTION_BOUNDARY): Move optimize_size condition to:
10615         * config/arm/arm.c (arm_option_override_internal): Call
10616         arm_override_options_after_change_1.
10617         (arm_override_options_after_change): New function.
10618         (arm_override_options_after_change_1): Likewise.
10619         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define hook.
10621 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
10623         Revert:
10624         * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
10625         empty constructors.
10627 2015-10-16  Eric Botcazou  <ebotcazou@adacore.com>
10629         * tree.c (recompute_tree_invariant_for_addr_expr): Assert that the
10630         argument is an ADDR_EXPR.
10632 2015-10-16  Richard Biener  <rguenther@suse.de>
10634         * gimple-fold.c (gimple_fold_builtin_memory_op): Use gimple_build
10635         and get rid of force_gimple_operand_gsi.
10636         (gimple_fold_builtin_memory_chk): Likewise.
10637         (gimple_fold_builtin_stxcpy_chk): Likewise.
10638         (rewrite_to_defined_overflow): Likewise.
10639         (gimple_convert_to_ptrofftype): New function.
10640         * gimple-fold.h (gimple_convert_to_ptrofftype): New overload, declare.
10642 2015-10-16  Richard Biener  <rguenther@suse.de>
10644         * tree-nested.h (build_addr): Adjust prototype.
10645         * tree-nested.c (build_addr): Remove context argument and use
10646         mark_addressable.
10647         (get_static_chain): Adjust calls to build_addr.
10648         (convert_nl_goto_reference): Likewise.
10649         (convert_tramp_reference_op): Likewise.
10650         (finalize_nesting_tree_1): Likewise.
10651         * value-prof.c (gimple_ic): Likewise.
10652         * gimple-low.c (lower_builtin_setjmp): Likewise.
10653         * tree-parloops.c (take_address_of): Likewise.
10654         (create_call_for_reduction_1): Likewise.
10655         * tree-profile.c (gimple_gen_interval_profiler): Likewise.
10656         (gimple_gen_ic_func_profiler): Likewise.
10658 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
10660         * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
10661         empty constructors.
10663 2015-10-16  Michael Collison  <michael.collison@linaro.org>
10664             Andrew Pinski <andrew.pinski@caviumnetworks.com>
10666         * match.pd ((x < y) && (x < z) -> x < min (y,z),
10667         (x > y) and (x > z) -> x > max (y,z))
10669 2015-10-15  Gregor Richards  <gregor.richards@uwaterloo.ca>
10670             Szabolcs Nagy  <szabolcs.nagy@arm.com>
10672         * config/microblaze/linux.h (MUSL_DYNAMIC_LINKER): Define.
10673         (DYNAMIC_LINKER): Renamed to ...
10674         (GLIBC_DYNAMIC_LINKER): This.
10675         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_DYNAMIC_LINKER.
10677 2015-10-15  Marek Polacek  <polacek@redhat.com>
10679         * tree-ssa-reassoc.c (attempt_builtin_copysign): Call
10680         gimple_call_builtin instead of is_gimple_call.
10682 2015-10-15  Richard Biener  <rguenther@suse.de>
10684         * tree-vect-stmts.c (vect_init_vector): Remove unused vars.
10686 2015-10-15  Richard Biener  <rguenther@suse.de>
10688         * tree-vectorizer.h (vect_get_new_ssa_name): Declare.
10689         * tree-vect-data-refs.c (vect_get_new_ssa_name): New helper.
10690         * tree-vect-loop.c (get_initial_def_for_induction): Drop
10691         use of force_gimple_operand in favor of gimple_build.
10692         Use vect_get_new_ssa_name.
10693         * tree-vect-stmts.c (vect_init_vector): Use vect_get_new_ssa_name.
10694         (vectorizable_mask_load_store): Likewise.
10695         (vectorizable_call): Likewise.
10696         (vectorizable_store): Likewise.
10697         (vectorizable_load): Likewise.
10698         (vect_get_vec_def_for_stmt_copy): Remove redundant stmt.
10700 2015-10-15  Richard Sandiford  <richard.sandiford@arm.com>
10702         PR tree-optimization/67945
10703         * tree-pass.h (PROP_gimple_opt_math): New property flag.
10704         * generic-match-head.c (canonicalize_math_p): New function.
10705         * gimple-match-head.c: Include tree-pass.h.
10706         (canonicalize_math_p): New function.
10707         * match.pd: Group math built-in rules into simplifications
10708         and canonicalizations.  Guard the latter with canonicalize_math_p.
10709         * tree-ssa-math-opts.c (pass_data_cse_sincos): Provide the
10710         PROP_gimple_opt_math property.
10712 2015-10-15  Marek Polacek  <polacek@redhat.com>
10714         PR tree-optimization/67953
10715         * match.pd (X - (X / Y) * Y): Don't change signedness of @0.
10717 2015-10-15  Jiong Wang  <jiong.wang@arm.com>
10719         * config.gcc: Recognize "." in architecture base name for AArch64.
10721 2015-10-14  Uros Bizjak  <ubizjak@gmail.com>
10723         * config/mips/mips.h (MIPS_STACK_ALIGN): Implement using
10724         ROUND_UP macro.
10725         * config/mips/mips.c (mips_setup_incoming_varargs): Use
10726         ROUND_DOWN to calculate off.
10727         (mips_gimplify_va_arg_expr): Use ROUND_UP to calculate rsize.
10728         (mips_emit_probe_stack_range): Use ROUND_DOWN to calculate
10729         rounded_size.
10731 2015-10-14  Eric Botcazou  <ebotcazou@adacore.com>
10733         * gimplify.c (gimplify_addr_expr) <MEM_REF>: New case.
10735 2015-10-14  Peter Bergner  <bergner@vnet.ibm.com>
10736             Torvald Riegel  <triegel@redhat.com>
10738         PR target/67281
10739         * config/rs6000/htm.md (UNSPEC_HTM_FENCE): New.
10740         (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
10741         trechkpt, treclaim, tsr, ttest): Rename define_insns from this...
10742         (*tabort, *tabort<wd>c, *tabort<wd>ci, *tbegin, *tcheck, *tend,
10743         *trechkpt, *treclaim, *tsr, *ttest): ...to this.  Add memory barrier.
10744         (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
10745         trechkpt, treclaim, tsr, ttest): New define_expands.
10746         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
10747         __TM_FENCE__ for htm.
10748         * doc/extend.texi: Update documentation for htm builtins.
10750 2015-10-14  Uros Bizjak  <ubizjak@gmail.com>
10752         PR target/67967
10753         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Do not add
10754         REG_CFA_EXPRESSION to aligned SSE stores.
10756 2015-10-14  Jeff Law  <law@redhat.com>
10758         * tree-ssa-threadupdate.c (thread_through_all_blocks): Bump
10759         num_threaded_edges for successful FSM threads too.
10761 2015-10-14  Richard Biener  <rguenther@suse.de>
10763         * tree-vectorizer.h (vect_is_simple_use): Remove unused parameters.
10764         (vect_is_simple_use_1): Likewise.  Make overload of vect_is_simple_use.
10765         (vect_get_vec_def_for_operand): Remove unused parameter.
10766         * tree-vect-loop.c (get_initial_def_for_induction): Adjust.
10767         (vect_create_epilog_for_reduction): Likewise.
10768         (vectorizable_reduction): Likewise.
10769         (vectorizable_live_operation): Likewise.
10770         * tree-vect-patterns.c (type_conversion_p): Likewise.
10771         (vect_recog_vector_vector_shift_pattern): Likewise.
10772         (check_bool_pattern): Likewise.
10773         * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
10774         (vect_analyze_slp_cost_1): Likewise.
10775         * tree-vect-stmts.c (process_use): Likewise.
10776         (vect_get_vec_def_for_operand): Do not handle reductions.
10777         (vect_get_vec_defs): Adjust.
10778         (vectorizable_mask_load_store): Likewise.
10779         (vectorizable_call): Likewise.
10780         (vectorizable_simd_clone_call): Likewise.
10781         (vect_get_loop_based_defs): Likewise.
10782         (vectorizable_conversion): Likewise.
10783         (vectorizable_assignment): Likewise.
10784         (vectorizable_shift): Likewise.
10785         (vectorizable_operation): Likewise.
10786         (vectorizable_store): Likewise.
10787         (vectorizable_load): Likewise.
10788         (vect_is_simple_cond): Likewise.
10789         (vectorizable_condition): Likewise.
10790         (vect_is_simple_use): Remove unused parameters.
10791         (vect_is_simple_use_1): Adjust and rename.
10793 2015-10-14  Richard Biener  <rguenther@suse.de>
10795         PR tree-optimization/67915
10796         * match.pd: Handle comparisons of addresses of STRING_CSTs.
10797         * gimplify.c (gimplify_cond_expr): Fold the GIMPLE conds we build.
10798         * tree-cfgcleanup.c (cleanup_control_expr_graph): Remove GENERIC
10799         stmt folding in favor of GIMPLE one.
10801 2015-10-14  Marek Polacek  <polacek@redhat.com>
10803         PR tree-optimization/67815
10804         * tree-ssa-reassoc.c (attempt_builtin_copysign): New function.
10805         (reassociate_bb): Call it.
10807 2015-10-14  Richard Biener  <rguenther@suse.de>
10809         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
10810         Reset info at start.
10811         (vect_analyze_group_access_1): Add debug print.
10812         * tree-vect-loop.c (vect_get_single_scalar_iteration_cost): Rename ...
10813         (vect_compute_single_scalar_iteration_cost): ... to this.
10814         (vect_analyze_loop_2): Adjust.
10815         * tree-vect-slp.c (struct _slp_oprnd_info): Move from ...
10816         * tree-vectorizer.h: ... here.
10817         (add_stmt_info_to_vec): Remove.
10818         * tree-vect-stmts.c (record_stmt_cost): Inline add_stmt_info_to_vec.
10820 2015-10-14  Dominik Vogt  <vogt@linux.vnet.ibm.com>
10822         * targhooks.c (default_target_option_pragma_parse): Do not warn if
10823         called on behalf of "#pragma GCC pop_options".
10825 2015-10-14  Tom de Vries  <tom@codesourcery.com>
10827         * cfganal.c (verify_no_unreachable_blocks): New function.
10828         (inverted_post_order_compute) [ENABLE_CHECKING]: Call
10829         verify_no_unreachable_blocks.
10830         cfganal.h (verify_no_unreachable_blocks): Declare.
10832 2015-10-13  Mikhail Maltsev  <maltsevm@gmail.com>
10834         * common.opt: Add flag_checking.
10835         * system.h (CHECKING_P): Define.
10837 2015-10-13  Jakub Jelinek  <jakub@redhat.com>
10838             Aldy Hernandez  <aldyh@redhat.com>
10839             Ilya Verbin  <ilya.verbin@intel.com>
10841         * builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR,
10842         BT_FN_BOOL_UINT_ULLPTR_ULLPTR_ULLPTR,
10843         BT_FN_BOOL_UINT_LONGPTR_LONG_LONGPTR_LONGPTR,
10844         BT_FN_BOOL_UINT_ULLPTR_ULL_ULLPTR_ULLPTR,
10845         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_UINT_PTR,
10846         BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR,
10847         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT,
10848         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_LONG_LONG_LONG,
10849         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_ULL_ULL_ULL,
10850         BT_FN_VOID_LONG_VAR, BT_FN_VOID_ULL_VAR): New.
10851         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
10852         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
10853         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): Remove.
10854         * cgraph.h (enum cgraph_simd_clone_arg_type): Add
10855         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP,
10856         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
10857         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
10858         (struct cgraph_simd_clone_arg): Adjust comment.
10859         * coretypes.h (struct gomp_ordered): New forward decl.
10860         * gimple.c (gimple_build_omp_critical): Add CLAUSES argument,
10861         set critical clauses to it.
10862         (gimple_build_omp_ordered): Return gomp_ordered * instead of
10863         gimple *.  Add CLAUSES argument, set ordered clauses to it.
10864         (gimple_copy): Unshare clauses on GIMPLE_OMP_CRITICAL and
10865         GIMPLE_OMP_ORDERED.
10866         * gimple.def (GIMPLE_OMP_ORDERED): Change from GSS_OMP to
10867         GSS_OMP_SINGLE_LAYOUT, move it after GIMPLE_OMP_TEAMS.
10868         * gimple.h (enum gf_mask): Add GF_OMP_TASK_TASKLOOP.  Add another bit
10869         to GF_OMP_FOR_KIND_MASK mask. Add GF_OMP_FOR_KIND_TASKLOOP, renumber
10870         GF_OMP_FOR_KIND_CILKFOR and GF_OMP_FOR_KIND_OACC_LOOP.  Adjust
10871         GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED and GF_OMP_FOR_COMBINED_INTO.
10872         Add another bit to GF_OMP_TARGET_KIND_MASK mask.  Add
10873         GF_OMP_TARGET_KIND_ENTER_DATA and GF_OMP_TARGET_KIND_EXIT_DATA,
10874         renumber
10875         GF_OMP_TARGET_KIND_OACC_{PARALLEL,KERNELS,DATA,UPDATE,ENTER_EXIT_DATA}.
10876         (gomp_critical): Add clauses field.
10877         (gomp_ordered): New struct.
10878         (is_a_helper <gomp_ordered *>::test): New inline.
10879         (gimple_build_omp_critical): Add CLAUSES argument.
10880         (gimple_build_omp_ordered): Likewise.  Return gomp_ordered *
10881         instead of gimple *.
10882         (gimple_omp_critical_clauses, gimple_omp_critical_clauses_ptr,
10883         gimple_omp_critical_set_clauses, gimple_omp_ordered_clauses,
10884         gimple_omp_ordered_clauses_ptr, gimple_omp_ordered_set_clauses,
10885         gimple_omp_task_taskloop_p, gimple_omp_task_set_taskloop_p): New
10886         inline functions.
10887         * gimple-pretty-print.c (dump_gimple_omp_for): Handle taskloop.
10888         (dump_gimple_omp_target): Handle enter data and exit data.
10889         (dump_gimple_omp_block): Don't handle GIMPLE_OMP_ORDERED here.
10890         (dump_gimple_omp_critical): Print clauses.
10891         (dump_gimple_omp_ordered): New function.
10892         (dump_gimple_omp_task): Handle taskloop.
10893         (pp_gimple_stmt_1): Use dump_gimple_omp_ordered for
10894         GIMPLE_OMP_ORDERED.
10895         * gimple-walk.c (walk_gimple_op): Walk clauses on
10896         GIMPLE_OMP_CRITICAL and GIMPLE_OMP_ORDERED.
10897         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_0LEN_ARRAY.
10898         (enum omp_region_type): Add ORT_COMBINED_TARGET and ORT_NONE.
10899         (struct gimplify_omp_ctx): Add loop_iter_var,
10900         target_map_scalars_firstprivate, target_map_pointers_as_0len_arrays
10901         and target_firstprivatize_array_bases fields.
10902         (delete_omp_context): Release loop_iter_var.
10903         (gimplify_bind_expr): Handle ORT_NONE.
10904         (maybe_fold_stmt): Adjust check for ORT_TARGET for the addition of
10905         ORT_COMBINED_TARGET.
10906         (is_gimple_stmt): Return true for OMP_TASKLOOP, OMP_TEAMS and
10907         OMP_TARGET{,_DATA,_UPDATE,_ENTER_DATA,_EXIT_DATA}.
10908         (omp_firstprivatize_variable): Handle ORT_NONE.  Adjust check for
10909         ORT_TARGET for the addition of ORT_COMBINED_TARGET.  Handle
10910         ctx->target_map_scalars_firstprivate.
10911         (omp_add_variable): Handle ORT_NONE.  Allow map clause together with
10912         data sharing clauses.  For data sharing clause with VLA decl
10913         on omp target/target data don't add firstprivate for the pointer.
10914         Call omp_notice_variable on TYPE_SIZE_UNIT only if it is a DECL_P.
10915         (omp_notice_threadprivate_variable): Adjust check for ORT_TARGET for
10916         the addition of ORT_COMBINED_TARGET.
10917         (omp_notice_variable): Handle ORT_NONE.  Adjust check for ORT_TARGET
10918         for the addition of ORT_COMBINED_TARGET.  Handle implicit mapping of
10919         pointers as zero length array sections and
10920         ctx->target_map_scalars_firstprivate mapping of scalars as firstprivate
10921         data sharing.
10922         (omp_check_private): Handle omp_member_access_dummy_var vars.
10923         (find_decl_expr): New function.
10924         (gimplify_scan_omp_clauses): Add CODE argument.  For OMP_CLAUSE_IF
10925         complain if OMP_CLAUSE_IF_MODIFIER is present and does not match code.
10926         Handle OMP_CLAUSE_GANG separately.  Handle
10927         OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
10928         clauses.  Diagnose linear clause on combined
10929         distribute {, parallel for} simd construct, unless it is the loop
10930         iterator.  Handle struct element GOMP_MAP_FIRSTPRIVATE_POINTER.
10931         Handle map clauses with COMPONENT_REF.  Initialize
10932         ctx->target_map_scalars_firstprivate,
10933         ctx->target_firstprivatize_array_bases and
10934         ctx->target_map_pointers_as_0len_arrays.  Add firstprivate for
10935         linear clause even to target region if combined.  Remove
10936         map clauses with GOMP_MAP_FIRSTPRIVATE_POINTER kind from
10937         OMP_TARGET_{,ENTER_,EXIT_}DATA.  For GOMP_MAP_FIRSTPRIVATE_POINTER
10938         map kind with non-INTEGER_CST OMP_CLAUSE_SIZE firstprivatize the bias.
10939         Handle OMP_CLAUSE_DEPEND_{SINK,SOURCE}.  Handle
10940         OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.
10941         For linear clause on worksharing loop combined with parallel add
10942         shared clause on the parallel.  Handle OMP_CLAUSE_REDUCTION
10943         with MEM_REF OMP_CLAUSE_DECL.  Set DECL_NAME on
10944         omp_member_access_dummy_var vars.  Add lastprivate clause to outer
10945         taskloop if needed.
10946         (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_0LEN_ARRAY.
10947         If gimplify_omp_ctxp->target_firstprivatize_array_bases, use
10948         GOMP_MAP_FIRSTPRIVATE_POINTER map kind instead of
10949         GOMP_MAP_POINTER.
10950         (gimplify_adjust_omp_clauses): Add CODE argument.  Handle removal
10951         of GOMP_MAP_FIRSTPRIVATE_POINTER struct elements for struct not seen
10952         in target body.  Handle removal of struct mapping if struct is not
10953         seen in target body.  Remove GOMP_MAP_STRUCT map clause on
10954         OMP_TARGET_EXIT_DATA.  Adjust check for ORT_TARGET for the
10955         addition of ORT_COMBINED_TARGET.  Use GOMP_MAP_FIRSTPRIVATE_POINTER
10956         instead of GOMP_MAP_POINTER if ctx->target_firstprivatize_array_bases
10957         for VLAs.  Set OMP_CLAUSE_MAP_PRIVATE if both data sharing and map
10958         clause appear together.  Handle
10959         OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.  Don't remove map
10960         clause if it has map-type-modifier always.  Handle
10961         OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
10962         clauses.
10963         (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task):
10964         Adjust gimplify_scan_omp_clauses and gimplify_adjust_omp_clauses
10965         callers.
10966         (gimplify_omp_for): Likewise.  Handle OMP_TASKLOOP.  Initialize
10967         loop_iter_var.  Use OMP_FOR_ORIG_DECLS.  Fix handling of lastprivate
10968         iterators in doacross loops.
10969         (gimplify_omp_workshare): Adjust gimplify_scan_omp_clauses and
10970         gimplify_adjust_omp_clauses callers.  Use ORT_COMBINED_TARGET
10971         for OMP_TARGET_COMBINED.  Adjust check for ORT_TARGET
10972         for the addition of ORT_COMBINED_TARGET.
10973         (gimplify_omp_target_update): Adjust gimplify_scan_omp_clauses and
10974         gimplify_adjust_omp_clauses callers.  Handle OMP_TARGET_ENTER_DATA
10975         and OMP_TARGET_EXIT_DATA.
10976         (gimplify_omp_ordered): New function.
10977         (gimplify_expr): Handle OMP_TASKLOOP, OMP_TARGET_ENTER_DATA and
10978         OMP_TARGET_EXIT_DATA.  Use gimplify_omp_ordered for OMP_ORDERED.
10979         Gimplify clauses on OMP_CRITICAL.
10980         * internal-fn.c (expand_GOMP_SIMD_ORDERED_START,
10981         expand_GOMP_SIMD_ORDERED_END): New functions.
10982         * internal-fn.def (GOMP_SIMD_ORDERED_START,
10983         GOMP_SIMD_ORDERED_END): New internal functions.
10984         * omp-builtins.def (BUILT_IN_GOMP_LOOP_DOACROSS_STATIC_START,
10985         BUILT_IN_GOMP_LOOP_DOACROSS_DYNAMIC_START,
10986         BUILT_IN_GOMP_LOOP_DOACROSS_GUIDED_START,
10987         BUILT_IN_GOMP_LOOP_DOACROSS_RUNTIME_START,
10988         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_STATIC_START,
10989         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_DYNAMIC_START,
10990         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_GUIDED_START,
10991         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_RUNTIME_START,
10992         BUILT_IN_GOMP_DOACROSS_POST, BUILT_IN_GOMP_DOACROSS_WAIT,
10993         BUILT_IN_GOMP_DOACROSS_ULL_POST, BUILT_IN_GOMP_DOACROSS_ULL_WAIT,
10994         BUILT_IN_GOMP_TARGET_ENTER_EXIT_DATA, BUILT_IN_GOMP_TASKLOOP,
10995         BUILT_IN_GOMP_TASKLOOP_ULL): New built-ins.
10996         (BUILT_IN_GOMP_TASK): Add INT argument to the end.
10997         (BUILT_IN_GOMP_TARGET): Rename from GOMP_target to GOMP_target_41,
10998         adjust type.
10999         (BUILT_IN_GOMP_TARGET_DATA): Rename from GOMP_target_data to
11000         GOMP_target_data_41, adjust type.
11001         (BUILT_IN_GOMP_TARGET_UPDATE): Rename from GOMP_target_update to
11002         GOMP_target_update_41, adjust type.
11003         * omp-low.c (struct omp_region): Adjust comments, add ord_stmt
11004         field.
11005         (struct omp_for_data): Add ordered and simd_schedule fields.
11006         (omp_member_access_dummy_var, unshare_and_remap_1,
11007         unshare_and_remap, is_taskloop_ctx): New functions.
11008         (is_taskreg_ctx): Use is_parallel_ctx and is_task_ctx.
11009         (extract_omp_for_data): Handle taskloops and doacross loops
11010         and simd schedule modifier.
11011         (omp_adjust_chunk_size): New function.
11012         (get_ws_args_for): Use it.
11013         (lookup_sfield): Change first argument to splay_tree_key,
11014         add overload with first argument tree.
11015         (maybe_lookup_field): Likewise.
11016         (use_pointer_for_field): Handle omp_member_access_dummy_var.
11017         (omp_copy_decl_2): If var is TREE_ADDRESSABLE listed in
11018         task_shared_vars, clear TREE_ADDRESSABLE on the copy.
11019         (build_outer_var_ref): Add LASTPRIVATE argument, handle
11020         taskloops and omp_member_access_dummy_var vars.
11021         (build_sender_ref): Change first argument to splay_tree_key,
11022         add overload with first argument tree.
11023         (install_var_field): For mask & 8 use &DECL_UID as key instead
11024         of the tree itself.
11025         (fixup_child_record_type): Const qualify *.omp_data_i.
11026         (scan_sharing_clauses): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE,
11027         C/C++ array reductions, OMP_CLAUSE_{IS,USE}_DEVICE_PTR clauses,
11028         OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,SIMDLEN,THREADS,SIMD} and
11029         OMP_CLAUSE_{NOGROUP,DEFAULTMAP} clauses, OMP_CLAUSE__LOOPTEMP_ clause
11030         on taskloop, GOMP_MAP_FIRSTPRIVATE_POINTER, OMP_CLAUSE_MAP_PRIVATE.
11031         (create_omp_child_function): Set TREE_READONLY on .omp_data_i.
11032         (find_combined_for): Allow searching for different GIMPLE_OMP_FOR
11033         kinds.
11034         (add_taskreg_looptemp_clauses): New function.
11035         (scan_omp_parallel): Use it.
11036         (scan_omp_task): Likewise.
11037         (finish_taskreg_scan): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
11038         For taskloop, move fields for the first two _LOOPTEMP_ clauses first.
11039         (check_omp_nesting_restrictions): Handle GF_OMP_TARGET_KIND_ENTER_DATA
11040         and GF_OMP_TARGET_KIND_EXIT_DATA.  Formatting fixes.  Allow the
11041         sandwiched taskloop constructs.  Type check
11042         OMP_CLAUSE_DEPEND_{KIND,SOURCE}.  Allow ordered simd inside of simd
11043         region.  Diagnose depend(source) or depend(sink:...) on
11044         target constructs or task/taskloop.
11045         (handle_simd_reference): Use get_name.
11046         (lower_rec_input_clauses): Likewise.  Ignore all
11047         OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses on taskloop construct.
11048         Allow _LOOPTEMP_ clause on GOMP_TASK.  Unshare new_var
11049         before passing it to omp_clause_{default,copy}_ctor.  Handle
11050         OMP_CLAUSE_REDUCTION with MEM_REF OMP_CLAUSE_DECL.  Set
11051         lastprivate_firstprivate flag for linear that needs copyin and
11052         copyout.  Use BUILT_IN_ALLOCA_WITH_ALIGN instead of BUILT_IN_ALLOCA.
11053         (lower_lastprivate_clauses): For OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE
11054         on taskloop lookup decl in outer context.  Pass true to
11055         build_outer_var_ref lastprivate argument.  Handle
11056         OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV lastprivate if the decl is global
11057         outside of outer taskloop for.
11058         (lower_reduction_clauses): Handle OMP_CLAUSE_REDUCTION with MEM_REF
11059         OMP_CLAUSE_DECL.
11060         (lower_send_clauses): Ignore first two _LOOPTEMP_ clauses in taskloop
11061         GOMP_TASK.  Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.  Handle
11062         omp_member_access_dummy_var vars.  Handle OMP_CLAUSE_REDUCTION
11063         with MEM_REF OMP_CLAUSE_DECL.  Use new lookup_sfield overload.
11064         (lower_send_shared_vars): Ignore fields with NULL or FIELD_DECL
11065         abstract origin.  Handle omp_member_access_dummy_var vars.
11066         (expand_parallel_call): Use expand_omp_build_assign.
11067         (expand_task_call): Handle taskloop construct expansion.  Add
11068         REGION argument.  Use GOMP_TASK_* defines instead of hardcoded
11069         integers.  Add priority argument to GOMP_task* calls.  Or in
11070         GOMP_TASK_FLAG_PRIORITY into flags if priority is present for
11071         GOMP_task call.
11072         (expand_omp_build_assign): Add prototype.  Add AFTER
11073         argument, if true emit statements after *GSI_P and continue linking.
11074         (expand_omp_taskreg): Adjust expand_task_call caller.
11075         (expand_omp_for_init_counts): Rename zero_iter_bb argument to
11076         zero_iter1_bb and first_zero_iter to first_zero_iter1, add
11077         zero_iter2_bb and first_zero_iter2 arguments, handle computation
11078         of counts even for ordered loops.
11079         (expand_omp_for_init_vars): Handle GOMP_TASK inner_stmt.
11080         (expand_omp_ordered_source, expand_omp_ordered_sink,
11081         expand_omp_ordered_source_sink, expand_omp_for_ordered_loops): New
11082         functions.
11083         (expand_omp_for_generic): Use omp_adjust_chunk_size.  Handle linear
11084         clauses on worksharing loop.  Handle DOACROSS loop expansion.
11085         (expand_omp_for_static_nochunk): Handle linear clauses on
11086         worksharing loop.  Adjust expand_omp_for_init_counts
11087         callers.
11088         (expand_omp_for_static_chunk): Likewise.  Use omp_adjust_chunk_size.
11089         (expand_omp_simd): Handle addressable fd->loop.v.  Adjust
11090         expand_omp_for_init_counts callers.
11091         (expand_omp_taskloop_for_outer, expand_omp_taskloop_for_inner): New
11092         functions.
11093         (expand_omp_for): Call expand_omp_taskloop_for_* for taskloop.
11094         Handle doacross loops.
11095         (expand_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
11096         GF_OMP_TARGET_KIND_EXIT_DATA.  Pass flags and depend arguments to
11097         GOMP_target_{41,update_41,enter_exit_data} libcalls.
11098         (expand_omp): Don't expand ordered depend constructs here, record
11099         ord_stmt instead for later expand_omp_for_generic.
11100         (build_omp_regions_1): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
11101         GF_OMP_TARGET_KIND_EXIT_DATA.  Treat GIMPLE_OMP_ORDERED with depend
11102         clause as stand-alone directive.
11103         (lower_omp_ordered_clauses): New function.
11104         (lower_omp_ordered): Handle OMP_CLAUSE_SIMD, for OMP_CLAUSE_DEPEND
11105         don't lower anything.
11106         (lower_omp_for_lastprivate): Use last _looptemp_ clause
11107         on taskloop for comparison.
11108         (lower_omp_for): Handle taskloop constructs.  Adjust OMP_CLAUSE_DECL
11109         and OMP_CLAUSE_LINEAR_STEP so that expand_omp_for_* can use it during
11110         expansion for linear adjustments.
11111         (create_task_copyfn): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
11112         (lower_depend_clauses): Assert not seeing sink/source depend kinds.
11113         Set TREE_ADDRESSABLE on array.  Change first argument from gimple *
11114         to tree * pointing to the stmt's clauses.
11115         (lower_omp_taskreg): Adjust lower_depend_clauses caller.
11116         (lower_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA
11117         and GF_OMP_TARGET_KIND_EXIT_DATA, depend clauses,
11118         GOMP_MAP_{RELEASE,ALWAYS_{TO,FROM,TOFROM},FIRSTPRIVATE_POINTER,STRUCT}
11119         map kinds, OMP_CLAUSE_{FIRSTPRIVATE,PRIVATE,{IS,USE}_DEVICE_PTR
11120         clauses.  Always use short kind and 8-bit align shift.
11121         (lower_omp_regimplify_p): Use IS_TYPE_OR_DECL_P macro.
11122         (struct lower_omp_regimplify_operands_data): New type.
11123         (lower_omp_regimplify_operands_p, lower_omp_regimplify_operands):
11124         New functions.
11125         (lower_omp_1): Use lower_omp_regimplify_operands instead of
11126         gimple_regimplify_operands.
11127         (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
11128         GF_OMP_TARGET_KIND_EXIT_DATA.  Treat GIMPLE_OMP_ORDERED with depend
11129         clause as stand-alone directive.
11130         (simd_clone_clauses_extract): Honor OMP_CLAUSE_LINEAR_KIND.
11131         (simd_clone_mangle): Mangle the various linear kinds
11132         per the new ABI.
11133         (simd_clone_adjust_argument_types): Handle
11134         SIMD_CLONE_ARG_TYPE_LINEAR_*_CONSTANT_STEP.
11135         (simd_clone_init_simd_arrays): Don't do anything for uval.
11136         (simd_clone_adjust): Handle
11137         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
11138         SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.
11139         Handle SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP.
11140         * omp-low.h (omp_member_access_dummy_var): New prototype.
11141         * passes.def (pass_simduid_cleanup): Schedule another copy of the
11142         pass after all optimizations.
11143         * tree.c (omp_clause_code_name): Add entries for
11144         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
11145         and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
11146         (omp_clause_num_ops): Likewise.  Bump number of OMP_CLAUSE_REDUCTION
11147         arguments to 5 and for OMP_CLAUSE_ORDERED to 1.
11148         (walk_tree_1): Adjust for OMP_CLAUSE_ORDERED having 1 argument and
11149         OMP_CLAUSE_REDUCTION 5 arguments.  Handle
11150         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
11151         and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}
11152         clauses.
11153         * tree-core.h (enum omp_clause_linear_kind): New.
11154         (struct tree_omp_clause): Change type of map_kind
11155         from unsigned char to unsigned int.  Add subcode.if_modifier
11156         and subcode.linear_kind fields.
11157         (enum omp_clause_code): Add
11158         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
11159         and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
11160         (OMP_CLAUSE_REDUCTION): Document
11161         OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
11162         (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_{SOURCE,SINK}.
11163         * tree.def (OMP_FOR): Add OMP_FOR_ORIG_DECLS operand.
11164         (OMP_CRITICAL): Move before OMP_SINGLE.  Add OMP_CRITICAL_CLAUSES
11165         operand.
11166         (OMP_ORDERED): Move before OMP_SINGLE.  Add OMP_ORDERED_CLAUSES
11167         operand.
11168         (OMP_TASKLOOP, OMP_TARGET_ENTER_DATA, OMP_TARGET_EXIT_DATA): New tree
11169         codes.
11170         * tree.h (OMP_BODY): Replace OMP_CRITICAL with OMP_TASKGROUP.
11171         (OMP_CLAUSE_SET_MAP_KIND): Cast to unsigned int rather than unsigned
11172         char.
11173         (OMP_CRITICAL_NAME): Adjust to be 3rd operand instead of 2nd.
11174         (OMP_CLAUSE_NUM_TASKS_EXPR): Formatting fix.
11175         (OMP_STANDALONE_CLAUSES): Adjust to cover OMP_TARGET_{ENTER,EXIT}_DATA.
11176         (OMP_CLAUSE_DEPEND_SINK_NEGATIVE, OMP_TARGET_COMBINED,
11177         OMP_CLAUSE_MAP_PRIVATE, OMP_FOR_ORIG_DECLS, OMP_CLAUSE_IF_MODIFIER,
11178         OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION, OMP_CRITICAL_CLAUSES,
11179         OMP_CLAUSE_PRIVATE_TASKLOOP_IV, OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV,
11180         OMP_CLAUSE_HINT_EXPR, OMP_CLAUSE_SCHEDULE_SIMD,
11181         OMP_CLAUSE_LINEAR_KIND, OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER,
11182         OMP_CLAUSE_SHARED_FIRSTPRIVATE, OMP_ORDERED_CLAUSES,
11183         OMP_TARGET_ENTER_DATA_CLAUSES, OMP_TARGET_EXIT_DATA_CLAUSES,
11184         OMP_CLAUSE_NUM_TASKS_EXPR, OMP_CLAUSE_GRAINSIZE_EXPR,
11185         OMP_CLAUSE_PRIORITY_EXPR, OMP_CLAUSE_ORDERED_EXPR): Define.
11186         * tree-inline.c (remap_gimple_stmt): Handle clauses on
11187         GIMPLE_OMP_ORDERED and GIMPLE_OMP_CRITICAL.  For
11188         IFN_GOMP_SIMD_ORDERED_{START,END} set has_simduid_loops.
11189         * tree-nested.c (convert_nonlocal_omp_clauses): Handle
11190         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
11191         and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
11192         clauses.  Handle OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
11193         (convert_local_omp_clauses): Likewise.
11194         * tree-pretty-print.c (dump_omp_clause): Handle
11195         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
11196         and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
11197         clauses.  Handle OMP_CLAUSE_IF_MODIFIER, OMP_CLAUSE_ORDERED_EXPR,
11198         OMP_CLAUSE_SCHEDULE_SIMD, OMP_CLAUSE_LINEAR_KIND,
11199         OMP_CLAUSE_DEPEND_{SOURCE,SINK}.  Use "delete" for
11200         GOMP_MAP_FORCE_DEALLOC.  Handle
11201         GOMP_MAP_{ALWAYS_{TO,FROM,TOFROM},RELEASE,FIRSTPRIVATE_POINTER,STRUCT}.
11202         (dump_generic_node): Handle OMP_TASKLOOP, OMP_TARGET_{ENTER,EXIT}_DATA
11203         and clauses on OMP_ORDERED and OMP_CRITICAL.
11204         * tree-vectorizer.c (adjust_simduid_builtins): Adjust comment.
11205         Remove IFN_GOMP_SIMD_ORDERED_{START,END}.
11206         (vectorize_loops): Adjust comments.
11207         (pass_simduid_cleanup::execute): Likewise.
11208         * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
11209         SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_CONSTANT_STEP.
11210         * wide-int.h (wi::gcd): New.
11212 2015-10-13  Uros Bizjak  <ubizjak@gmail.com>
11214         * config/i386/i386.c (classify_argument): Use CEIL where applicable.
11215         (ix86_function_arg_advance): Ditto.
11216         (ix86_function_arg): Ditto.
11217         (ix86_gimplify_va_arg): Ditto.
11218         (ix86_class_max_nregs): Ditto.
11219         (inline_memory_move_cost): Ditto.
11220         (ix86_set_reg_reg_cost): Ditto.
11221         * config/i386/i386.h (HARD_REGNO_NREGS): Ditto.
11223 2015-10-13  Alexandre Oliva <aoliva@redhat.com>
11225         PR middle-end/67912
11226         * expmed.c (store_bit_field_1): Adjust mode of BLKmode inputs.
11228 2015-10-13  Uros Bizjak  <ubizjak@gmail.com>
11230         * config/sparc/sparc.h (SPARC_STACK_ALIGN): Implement using
11231         ROUND_UP macro and UNITS_PER_WORD * 2.
11232         * config/sparc/sparc.c (sparc_compute_frame_size):
11233         Use ROUND_UP and ROUND_DOWN macros where applicable.
11234         (function_arg_record_value, function_arg_record_value_1)
11235         (function_arg_record_value_1): Ditto.
11236         (emit_save_or_restore_regs): Use ROUND_DOWN to preserve offset
11237         alignment to double-word.
11238         (sparc_gimplify_va_arg): Use ROUND_UP to calculate rsize.
11239         (sparc_emit_probe_stack_range): Use ROUND_DOWN to calculate
11240         rounded_size.
11242 2015-10-13  Nikolai Bozhenov  <n.bozhenov@samsung.com>
11244         * rtl.h (print_insn): Fix prototype.
11246 2015-10-13  Tom de Vries  <tom@codesourcery.com>
11248         * tree-parloops.c (reduction_phi): Handle cases that gimple_uid is 0 or
11249         -1.  Add assert that returned entry matches phi argument.
11250         (parallelize_loops): Move calls to init_stmt_vec_info_vec and
11251         free_stmt_vec_info_vec ...
11252         (gather_scalar_reductions): ... here.  Initialize gimple_uids of phis
11253         with -1.
11255 2014-10-13  Yuri Rumyantsev  <ysrumyan@gmail.com>
11257         PR tree-optimization/67909, 67947
11258         * tree-ssa-loop-unswitch.c (find_loop_guard): Add check that GUARD_EDGE
11259         really skip the inner loop.
11261 2015-10-13  Jeff Law  <law@redhat.com>
11263         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
11264         Allow single block jump threading paths.
11266 2015-10-13  Tom de Vries  <tom@codesourcery.com>
11268         PR tree-optimization/67476
11269         * doc/invoke.texi (@item parloops-schedule): New item.
11270         * params.def (PARAM_PARLOOPS_SCHEDULE): New DEFPARAMENUM5.
11271         * tree-parloops.c: Include params-enum.h.
11272         (create_parallel_loop): Handle PARAM_PARLOOPS_SCHEDULE.
11274 2015-10-13  Tom de Vries  <tom@codesourcery.com>
11276         * Makefile.in (PARAMS_H, PLUGIN_HEADERS): Add params-enum.h.
11277         * params-enum.h: New file.
11278         * opts.c (handle_param): Handle case that param arg is a string.
11279         * params-list.h: Handle DEFPARAMENUM5 in params.def.
11280         * params.c (find_param): New function, factored out of ...
11281         (set_param_value): ... here.
11282         (param_string_value_p): New function.
11283         * params.h (struct param_info): Add value_names field.
11284         (find_param, param_string_value_p): Declare.
11286 2015-10-13  Tom de Vries  <tom@codesourcery.com>
11288         PR tree-optimization/67476
11289         * omp-low.c (expand_omp_for_generic): Handle original loop tree.
11291 2015-10-13  Richard Biener  <rguenther@suse.de>
11293         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences): Allocate
11294         the data dependence vector.
11295         (vect_peeling_hash_insert): Get the peeling hash table as argument.
11296         (vect_peeling_hash_get_lowest_cost): Likewise.
11297         (vect_enhance_data_refs_alignment): Adjust.
11298         (struct _vect_peel_info, struct _vect_peel_extended_info,
11299         struct peel_info_hasher): Move from ...
11300         * tree-vectorizer.h: ... here.
11301         (LOOP_VINFO_COST_MODEL_MIN_ITERS): Remove.
11302         (LOOP_VINFO_PEELING_HTAB): Likewise.
11303         (struct _loop_vec_info): Remove min_profitable_iters and
11304         peeling_htab members.
11305         * tree-vect-loop.c (new_loop_vec_info): Do not allocate vectors
11306         here.
11307         (destroy_loop_vec_info): Adjust.
11308         (vect_analyze_loop_2): Do not set LOOP_VINFO_COST_MODEL_MIN_ITERS.
11309         (vect_estimate_min_profitable_iters): Use LOOP_VINFO_COMP_ALIAS_DDRS
11310         to estimate alias versioning cost.
11311         * tree-vect-slp.c (vect_analyze_slp_cost): Dump header.
11313 2015-10-13  Richard Sandiford  <richard.sandiford@arm.com>
11315         * real.h (real_isinteger): Declare.
11316         * real.c (real_isinteger): New function.
11317         * match.pd: Simplify pow(|x|,y) and pow(-x,y) to pow(x,y)
11318         if y is an even integer.
11320 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
11322         revert:
11323         2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
11324         * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
11325         counts when these are more informative.
11327 2015-10-12  Jeff Law  <law@redhat.com>
11329         * tree-ssa-threadbackward.c (get_gimple_control_stmt): New function.
11330         (fsm_find_control_stmt_paths): Change name of first argument to
11331         more accurately relfect what it really is.  Handle simplification
11332         of GIMPLE_COND after finding a thread path for NAME.
11333         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Allow
11334         nontrivial conditions to be handled by FSM threader.
11335         (thread_through_normal_block): Extract the name to looup via
11336         FSM threader from COND_EXPR.
11338         * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove
11339         restriction that traced SSA_NAME is a user variable.
11341 2015-10-12  Tom de Vries  <tom@codesourcery.com>
11343         PR tree-optimization/67476
11344         * omp-low.c (expand_omp_for_generic): Add missing phis.
11346 2015-10-12  Tom de Vries  <tom@codesourcery.com>
11348         PR tree-optimization/67476
11349         * omp-low.c (expand_omp_for_generic): Handle simple latch.
11351 2015-10-12  Christophe Lyon  <christophe.lyon@linaro.org>
11353         * config/aarch64/aarch64-simd-builtins.def: Update builtins
11354         tables: add tbl3 and tbx4.
11355         * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): New.
11356         (aarch64_tbx4v8qi): New.
11357         * config/aarch64/arm_neon.h (vtbl3_s8, vtbl3_u8, vtbl3_p8)
11358         (vtbl4_s8, vtbl4_u8, vtbl4_p8, vtbx4_s8, vtbx4_u8, vtbx4_p8):
11359         Rewrite using builtin functions.
11360         * config/aarch64/iterators.md (UNSPEC_TBX): New.
11362 2015-10-12  Uros Bizjak  <ubizjak@gmail.com>
11364         * config/rs6000/rs6000.h (RS6000_ALIGN): Implement using
11365         ROUND_UP macro.
11366         * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
11367         Use ROUND_UP and ROUND_DOWN macros where applicable.
11368         (rs6000_darwin64_record_arg_flush): Ditto.
11369         (rs6000_function_arg): Use ROUND_UP to calculate align_words.
11370         (rs6000_emit_probe_stack_range): Use ROUND_DOWN to calculate
11371         rounded_size.
11373 2015-10-12  Uros Bizjak  <ubizjak@gmail.com>
11375         * config/aarch/aarch64.h (AARCH64_ROUND_UP): Remove.
11376         (AARCH64_ROUND_DOWN): Ditto.
11377         * config/aarch64/aarch64.c: Use ROUND_UP instead of AARCH64_ROUND_UP.
11379 2015-10-12  Richard Biener  <rguenther@suse.de>
11381         PR ipa/67783
11382         * ipa-inline-analysis.c (estimate_function_body_sizes): Re-add
11383         code that analyzes IVs on each stmt but in a cheaper way avoiding
11384         quadratic behavior.
11386 2015-10-12  Nick Clifton  <nickc@redhat.com>
11388         * config/msp430/msp430.c (msp430_mcu_names): Rename to
11389         msp430_mcu_data, add fields for ISA and hardware multiply
11390         support.  Import latest data from the devices.csv file.
11391         (msp430_override_option): Use the data from the new array.
11392         (msp430_use_f5_series_hwmult): Likewise.
11393         (use_32bit_hwmult): Likewise.
11394         (msp430_no_hwmult): Likewise.
11395         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for new
11396         MCU names.
11397         * doc/invoke.texi (MSP430 Options): Note that if the MCU name is
11398         not recognised then no hardware multiply support is assumed and
11399         that only the MSP430 ISA is allowed.
11401 2015-10-12  Richard Biener  <rguenther@suse.de>
11403         * tree-vect-loop.c (vect_analyze_loop_operations): Move cost
11404         related code ...
11405         (vect_analyze_loop_2): ... here.
11407 2015-10-11  Jason Merrill  <jason@redhat.com>
11409         PR c++/67557
11410         * expr.c (store_field): Call store_constructor directly when
11411         storing a CONSTRUCTOR into a target smaller than its type.
11412         Guard against unsafe bitwise copy.
11414 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
11416         * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
11417         counts when these are more informative.
11419 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
11421         * tree-profile.c (tree_profiling): Do not clear
11422         pure/const when not instrumenting.
11423         (pass tree_profile): Add dump of symtab.
11425 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
11427         * fold-const.c (fold_comparsion): Pass OEP_ADDRESS_OF when comparing
11428         addresses.
11429         (fold_addr_of_array_ref_difference): Likewise.
11431 2015-10-11  Jeff Law  <law@redhat.com>
11433         * tree-ssa-threadedge.c (fsm_find_thread_path): Moved from here into
11434         tree-ssa-threadbackward.c.
11435         (fsm_find_control_statement_thread_paths): Likewise.
11436         (thread_through_normal_block): Break out FSM bits and move them
11437         into a new function in tree-ssa-threadbackward.c.  Call new function
11438         instead.
11439         Minimize header file usage.
11440         * tree-ssa-threadbackward.h: New file.
11441         * tree-ssa-threadbackward.c: Likewise.
11442         * Makefile.in (OBJS): Add tree-ssa-threadbackward.o
11444 2015-10-11  Uros Bizjak  <ubizjak@gmail.com>
11446         * config/alpha/alpha.h (ALPHA_ROUND): Implement using ROUND_UP macro.
11448 2015-10-11  Segher Boessenkool  <segher@kernel.crashing.org>
11450         PR rtl-optimization/67864
11451         * bb-reorder (reorder_basic_blocks_simple): Prefer existing
11452         fallthrough edges for conditional jumps.  Don't sort candidate
11453         edges if not optimizing for speed.
11455 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11457         * defaults.h (REVERSE_CONDITION): New default definition.
11458         * jump.c (reversed_comparison_code_parts): Adjust.
11460 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11462         * builtins.c (expand_builtin_setjmp_receiver): Don't use #if to
11463         check HARD_FRAME_POINTER_IS_ARG_POINTER.
11465 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11467         * defaults.h (FRAME_ADDR_RTX): New default definition.
11468         * builtins.c (expand_builtin_return_addr): Adjust.
11470 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11472         * defaults.h (DYNAMIC_CHAIN_ADDRESS): New default definition.
11473         * builtins.c (expand_builtin_return_addr): Adjust.
11475 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11477         * defaults.h (SETUP_FRAME_ADDRESSES): New default definition.
11478         * builtins.c (expand_builtin_return_addr): Adjust.
11479         * doc/tm.texi: Likewise.
11480         * doc/tm.texi.in: Likewise.
11481         * except.c (expand_builtin_unwind_init): Likewise.
11483 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11485         * builtins.c (expand_builtin_return_addr): Adjust.
11486         * defaults.h (INITIAL_FRAME_ADDRESS_RTX): New default definition.
11488 2015-10-10  Jan Hubicka  <hubicka@ucw.cz>
11490         * tree.c (type_with_interoperable_signedness): New.
11491         (gimple_canonical_types_compatible_p): Use it.
11492         * tree.h (type_with_interoperable_signedness): Declare
11494 2015-10-10  Jan Hubicka  <hubicka@ucw.cz>
11496         * fold-const.c (operand_equal_p): Document OEP_ADDRESS_OF
11497         and OEP_CONSTANT_ADDRESS_OF; skip type compatibility checks
11498         when OEP_ADDRESS_OF is se.
11500 2015-10-10  Aditya Kumar  <aditya.k7@samsung.com>
11501             Sebastian Pop  <s.pop@samsung.com>
11503         * graphite-dependences.c (scop_get_dependences): Add dump of the
11504         data dependence graph.
11505         * graphite-poly.c (print_isl_union_map): New.
11506         (debug_isl_union_map): New.
11507         * graphite-poly.h (print_isl_union_map): Declare.
11508         (debug_isl_union_map): Declare.
11510 2015-10-10  Aditya Kumar  <aditya.k7@samsung.com>
11511             Sebastian Pop  <s.pop@samsung.com>
11513         * graphite-poly.c (print_iteration_domain): Remove verbosity.
11514         Remove OpenScop formatting.
11515         (print_iteration_domains): Same.
11516         (debug_iteration_domain): Same.
11517         (debug_iteration_domains): Same.
11518         (print_pdr): Same.
11519         (debug_pdr): Same.
11520         (dump_gbb_cases): Same.
11521         (dump_gbb_conditions): Same.
11522         (print_pdrs): Same.
11523         (debug_pdrs): Same.
11524         (print_pbb_body): Same.
11525         (print_pbb): Same.
11526         (print_scop_params): Same.
11527         (print_scop_context): Same.
11528         (print_scop): Same.
11529         (debug_pbb_domain): Same.
11530         (debug_pbb): Same.
11531         (debug_scop_context): Same.
11532         (debug_scop): Same.
11533         (debug_scop_params): Same.
11534         * graphite-poly.h: Same.
11535         * graphite.c (graphite_transform_loops): Same.
11537 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11539         * function.c (stack_protect_epilogue): Remove as_a<rtx_insn *> ()
11540         call that isn't needed.
11542 2015-10-09  Jeff Law  <law@redhat.com>
11544         * tree-ssanames.c (flush_ssaname_freelist): Use splice and truncate
11545         rather than moving each name to the freelist individually.
11547 2015-10-09  Steve Ellcey  <sellcey@imgtec.com>
11549         * config.gcc (mips*-*-*): Add frame-header-opt.o to extra_objs.
11550         * frame-header-opt.c: New file.
11551         * config/mips/mips-proto.h (mips_register_frame_header_opt):
11552         Add prototype.
11553         * config/mips/mips.c (mips_compute_frame_info): Check
11554         optimize_call_stack flag.
11555         (mips_option_override): Register new frame_header_opt pass.
11556         (mips_frame_info, mips_int_mask, mips_shadow_set,
11557         machine_function): Move these types to...
11558         * config/mips/mips.h: here.
11559         (machine_function): Add does_not_use_frame_header and
11560         optimize_call_stack fields.
11561         * config/mips/t-mips (frame-header-opt.o): Add new make rule.
11562         * doc/invoke.texi (-mframe-header-opt, -mno-frame-header-opt):
11563         Document new flags.
11564         * config/mips/mips.opt (mframe-header-opt): Add new option.
11566 2015-10-09  Uros Bizjak  <ubizjak@gmail.com>
11568         * config/i386/i386.c
11569         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Use
11570         ROUND_DOWN where applicable.
11572 2015-10-09  Jeff Law  <law@redhat.com>
11574         * tree-vect-stmts.c (free_stmt_vec_info): Free the LHS of the
11575         correct statement.
11577 2015-10-09  Renlin Li  <renlin.li@arm.com>
11579         * config/arm/neon.md (neon_vuzp<mode>_insn): Add & modifier for
11580         operands[0] and operands[2].
11581         (neon_vtrn<mode>_insn): Likewise.
11582         (neon_vzip<mode>_insn): Likewise.
11584 2015-10-09  Andre Vieira  <andre.simoesdiasvieira@arm.com>
11586         * match.pd: ((X inner_op C0) outer_op C1) New pattern.
11587         ((X & C2) << C1): Expand to...
11588         (X {&,^,|} C2 << C1): ...This.
11589         ((X & C2) >> C1): Expand to...
11590         (X {&,^,|} C2 >> C1): ...This.
11592 2015-10-09  Alexander Fomin  <alexander.fomin@intel.com>
11594         PR target/67895
11595         * config/i386/sse.md (define_insn "sse_cvtsi2ss<round_name>"):
11596         Adjust embedded rounding/SAE specifier position.
11597         (define_insn "sse_cvtsi2ssq<round_name>"): Likewise.
11598         (define_insn "cvtusi2<ssescalarmodesuffix>32<round_name>"): Likewise.
11599         (define_insn "cvtusi2<ssescalarmodesuffix>64<round_name>"): Likewise.
11600         (define_insn "sse2_cvtsi2sdq<round_name>"): Likewise.
11601         (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
11602         Likewise.
11603         (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Likewise.
11605 2015-10-09  Martin Jambor  <mjambor@suse.cz>
11607         tree-optimization/67794
11608         * tree-sra.c (replace_removed_params_ssa_names): Do not distinguish
11609         between types of state,ents but accept original definitions as a
11610         parameter.
11611         (ipa_sra_modify_function_body): Use FOR_EACH_SSA_DEF_OPERAND to
11612         iterate over definitions.
11614 2015-10-09  James Norris  <jnorris@codesourcery.com>
11616         * config/rs6000/rs6000.c (rs6000_offload_options): New.
11617         (TARGET_OFFLOAD_OPTIONS): New.
11619 2015-10-09  Alexandre Oliva <aoliva@redhat.com>
11621         PR middle-end/67891
11622         * cfgexpand.c (set_parm_rtl): Drop is_gimple_reg test.
11624         PR middle-end/67766
11625         * function.c (expand_function_end): Move return value
11626         promotion past the handling of PARALLELs and CONCATs.
11628         PR rtl-optimization/67828
11629         * tree-ssa-loop-unswitch.c: Include tree-ssa.h.
11630         (tree_may_unswitch_on): Don't unswitch on expressions
11631         involving undefined values.
11633 2015-10-09  Richard Biener  <rguenther@suse.de>
11635         * genmatch.c (print_operand): Fix formatting.
11636         (dt_node::append_simplify): Warn for multiple simplifiers
11637         that match the same pattern.
11638         * match.pd (log (exp @0)): Remove duplicates.
11640 2015-10-09  Richard Biener  <rguenth@suse.de>
11642         PR target/67366
11643         * gimple-fold.c (optabs-query.h): Include
11644         (gimple_fold_builtin_memory_op): Allow unaligned stores
11645         when movmisalign_optabs are available.
11647 2015-10-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11649         PR target/67366
11650         * config/arm/arm.md (movmisalign<mode>): New.
11651         * config/arm/iterators.md (HSI): New.
11653 2015-10-09  Richard Biener  <rguenther@suse.de>
11655         PR tree-optimization/67891
11656         * gimple-match.h (gimple_simplified_result_is_gimple_val):
11657         New helper.
11658         (gimple_resimplify1): Declare.
11659         (gimple_resimplify2): Likewise.
11660         (gimple_resimplify3): Likewise.
11661         * gimple-match-head.c (gimple_resimplify1): Export.
11662         (gimple_resimplify2): Likewise.
11663         (gimple_resimplify3): Likewise.
11664         (maybe_push_res_to_seq): Use gimple_simplified_result_is_gimple_val.
11665         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
11666         * tree-ssa-sccvn.c (visit_reference_op_load): Use gimple_resimplify1
11667         to avoid creating stmts without VN info.
11669 2015-10-08  Jan Hubicka  <hubicka@ucw.cz>
11671         * ipa-icf.c (sem_item::compare_symbol_references): Fix use
11672         of availability.
11674 2015-10-08  Jeff Law  <law@redhat.com>
11676         * value-prof.c (gimple_ic): Add missing calls to unlink_stmt_vdef
11677         and release_ssa_name in two places.
11678         (gimple_stringop_fixed_value): Similarly.
11680         * tree-ssa-loop-im.c (rewrite_bittest): Add missing call to
11681         release_defs.
11683         * tree-stdarg.c (expand_ifn_va_arg_1): Add missing call to
11684         unlink_stmt_vdef and release_ssa_name_fn.
11686         * tree-ssa-dse.c (dse_optimize_stmt): Add missing call to
11687         release_defs.
11689 2015-10-08  H.J. Lu  <hongjiu.lu@intel.com>
11691         * config/i386/i386.c (ix86_compute_frame_layout): Round up the
11692         SSE register save area to 16 bytes only if the incoming stack
11693         boundary is no less than 16 bytes.
11695 2015-10-08  Jeff Law  <law@redhat.com>
11697         * tree-ssa-phiopt.c (factor_out_conversion): Add missing calls to
11698         release_ssa_name.  Fix typo in comment.
11700 2015-10-08  Nathan Sidwell  <nathan@acm.org>
11702         * config/nvptx/nvptx.h (struct machine_function): Add comment.
11703         * config/nvptx/nvptx.c (nvptx_declare_function_name): Functions
11704         may return pointer as well as in memory.
11705         (nvptx_output_return): Likewise.
11707 2015-10-08  Richard Sandiford  <richard.sandiford@arm.com>
11709         * builtins.c (fold_builtin_sqrt, fold_builtin_cbrt): Delete.
11710         (fold_builtin_1): Update accordingly.  Handle constant arguments here.
11711         * match.pd: Add rules previously handled by fold_builtin_sqrt
11712         and fold_builtin_cbrt.
11714 2015-10-08  Richard Sandiford  <richard.sandiford@arm.com>
11716         * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): New param.
11717         * doc/invoke.texi (--param max-ssa-name-query-depth): Document.
11718         * fold-const.h (tree_unary_nonnegative_warnv_p)
11719         (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
11720         (tree_expr_nonnegative_warnv_p): Add depth parameters.
11721         * fold-const.c: Include gimple-fold.h and params.h.
11722         (tree_ssa_name_nonnegative_warnv_p): New function.
11723         (tree_unary_nonnegative_warnv_p, tree_binary_nonnegative_warnv_p)
11724         (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
11725         (tree_invalid_nonnegative_warnv_p, tree_expr_nonnegative_warnv_p):
11726         Add a depth parameter and increment it for recursive calls to
11727         tree_expr_nonnegative_warnv_p.  Use tree_ssa_name_nonnegative_warnv_p
11728         to handle SSA names.
11729         * gimple-fold.h (gimple_val_nonnegative_real_p): Delete.
11730         (gimple_stmt_nonnegative_warnv_p): Declare.
11731         * tree-vrp.c (remove_range_assertions): Remove assert that condition
11732         cannot be proven false.
11733         (gimple_assign_nonnegative_warnv_p, gimple_call_nonnegative_warnv_p)
11734         (gimple_stmt_nonnegative_warnv_p): Move to...
11735         * gimple-fold.c: ...here.  Add depth parameters and pass them
11736         down to the tree routines.  Accept statements that aren't
11737         assignments or calls but just return false for them.
11738         (gimple_val_nonnegative_real_p): Delete.
11739         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
11740         tree_expr_nonnegative_p instead of gimple_val_nonnegative_real_p.
11741         Check HONOR_NANs first.
11743 2015-10-08  Martin Jambor  <mjambor@suse.cz>
11745         * ipa-cp.c (meet_with_1): Make the argument of abs signed.  Remove
11746         unnecessary MIN.
11748 2015-10-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
11750         * tree-vect-loop.c (vect_analyze_loop_operations): Skip virtual phi
11751         in the tail of outer-loop.
11753 2015-10-08  David Edelsohn  <dje.gcc@gmail.com>
11755         * config/rs6000/rs6000.c (rs6000_xcoff_debug_unwind_info): Always
11756         return UI_NONE.
11758 2015-10-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
11760         * tree-ssa-loop-unswitch.c: Include "gimple-iterator.h" and
11761         "cfghooks.h", add prototypes for introduced new functions.
11762         (tree_ssa_unswitch_loops): Use from innermost loop iterator, move all
11763         checks on ability of loop unswitching to tree_unswitch_single_loop;
11764         invoke tree_unswitch_single_loop or tree_unswitch_outer_loop depending
11765         on innermost loop check.
11766         (tree_unswitch_single_loop): Add all required checks on ability of
11767         loop unswitching under zero recursive level guard.
11768         (tree_unswitch_outer_loop): New function.
11769         (find_loop_guard): Likewise.
11770         (empty_bb_without_guard_p): Likewise.
11771         (used_outside_loop_p): Likewise.
11772         (get_vop_from_header): Likewise.
11773         (hoist_guard): Likewise.
11774         (check_exit_phi): Likewise.
11776 2015-10-08  Marek Polacek  <polacek@redhat.com>
11778         * tree-ssa-reassoc.c (dump_ops_vector): Print newline after each
11779         ops element.
11781 2015-10-08  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11783         PR c/65345
11784         * config/s390/s390.c (s390_atomic_assign_expand_fenv): Use
11785         create_tmp_var_raw instead of create_tmp_var.
11787 2015-10-07  Jan Hubicka  <hubicka@ucw.cz>
11789         * expr.c (store_expr_with_bounds): Handle aggregate moves from
11790         BLKmode.
11791         * gimple-expr.c (useless_type_conversion_p): Do not use TYPE_CANONICAL
11792         to define gimple type system; compare aggregates only by size.
11794 2015-10-07  Jeff Law  <law@redhat.com>
11796         * tree-ssa-dom.c (optimize_stmt): Don't set LOOPS_NEED_FIXUP here.
11797         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Do it
11798         here instead.  Tighten test to avoid setting LOOPS_NEED_FIXUP
11799         unnecessarily.
11801 2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
11802             Sebastian Pop  <s.pop@samsung.com>
11804         * graphite-dependences.c (scop_get_dependences): Do not use SCOP_BBS.
11805         * graphite-isl-ast-to-gimple.c (get_max_schedule_dimensions): Same.
11806         (generate_isl_schedule): Same.
11807         * graphite-optimize-isl.c (scop_get_domains): Same.
11808         (apply_schedule_map_to_scop): Same.
11809         * graphite-poly.c (print_iteration_domains): Same.
11810         (remove_gbbs_in_scop): Same.
11811         (new_scop): Same.
11812         (free_scop): Same.
11813         (print_scop): Same.
11814         * graphite-poly.h (struct scop): Rename bbs to pbbs.
11815         (SCOP_BBS): Remove.
11816         * graphite-scop-detection.c (compare_bb_depths): Remove.
11817         (graphite_sort_dominated_info): Remove.
11818         (try_generate_gimple_bb): Move out of scop_detection.
11819         (all_non_dominated_preds_marked_p): Remove.
11820         (build_scop_bbs_1): Remove.
11821         (build_scop_bbs): Remove.
11822         (nb_pbbs_in_loops): Do not use SCOP_BBS.
11823         (find_scop_parameters): Same.
11824         (sese_dom_walker): Rename gather_bbs.
11825         (before_dom_children): Call try_generate_gimple_bb and collect gbb
11826         and pbb.
11827         (build_scops): Call gather_bbs.
11828         * graphite-sese-to-poly.c (build_scop_scattering): Do not use SCOP_BBS.
11829         (add_conditions_to_constraints): Same.
11830         (build_scop_iteration_domain): Same.
11831         (build_scop_drs): Same.
11832         (new_pbb_from_pbb): Same.
11833         * sese.c (new_sese_info): Create bbs.
11834         * sese.h (struct sese_info_t): Add bbs.
11836 2015-10-07  David Edelsohn  <dje.gcc@gmail.com>
11838         * config/rs6000/xcoff.h (ASM_PREFERRED_EH_DATA_FORMAT): Use 64-bit
11839         encoding in 64-bit mode.
11841 2015-10-07  Uros Bizjak  <ubizjak@gmail.com>
11843         PR target/66697
11844         * config/i386/i386.c (ix86_option_override_internal): Always use
11845         8-byte minimum stack boundary in 64-bit mode.
11846         (ix86_compute_frame_layout): Remove assert on INCOMING_STACK_BOUNDARY.
11847         (ix86_emit_save_reg_using_mov): Support unaligned SSE store.
11848         Add a REG_CFA_EXPRESSION note if needed.
11849         (ix86_emit_restore_sse_regs_using_mov): Support unaligned SSE load.
11850         (ix86_handle_force_align_arg_pointer_attribute): New.
11851         (ix86_minimum_incoming_stack_boundary): Remove TARGET_64BIT check.
11852         (ix86_attribute_table): Set ix86_force_align_arg_pointer_string
11853         with ix86_handle_force_align_arg_pointer_attribute.
11854         * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to BITS_PER_WORD.
11856 2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
11857             Sebastian Pop  <s.pop@samsung.com>
11859         * graphite-scop-detection.c (parameter_index_in_region): Remove
11860         use of SESE_ADD_PARAMS.
11861         (find_scop_parameters): Same.
11862         * sese.c (new_sese_info): Same.
11863         * sese.h (struct sese_info_t): Remove add_params.
11864         (SESE_ADD_PARAMS): Remove.
11866 2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
11867             Sebastian Pop  <s.pop@samsung.com>
11869         * graphite-isl-ast-to-gimple.c (translate_isl_ast_to_gimple): Use
11870         an sese_info_p.
11871         (copy_def): Same.
11872         (copy_internal_parameters): Same.
11873         (translate_isl_ast_to_gimple): Use an sese_l.
11874         (build_iv_mapping): Same.
11875         * graphite-poly.c (new_sese): Rename new_sese_info.
11876         (free_sese): Rename free_sese_info.
11877         * graphite-poly.h (struct scop): Use an sese_info_p.
11878         (scop_set_region): Same.
11879         * graphite-scop-detection.c (struct sese_l): Moved...
11880         (get_entry_bb): Moved...
11881         (get_exit_bb): Moved...
11882         (parameter_index_in_region_1): Use an sese_info_p.
11883         (parameter_index_in_region): Same.
11884         (scan_tree_for_params): Same.
11885         (find_params_in_bb): Same.
11886         (sese_dom_walker): Use an sese_l.
11887         * graphite-sese-to-poly.c (remove_invariant_phi): Same.
11888         (reduction_phi_p): Same.
11889         (parameter_index_in_region_1): Use an sese_info_p.
11890         (propagate_expr_outside_region): Use an sese_l.
11891         * graphite.c: Replace uses of SCOP_REGION.
11892         * sese.c (sese_record_loop): Use an sese_info_p.
11893         (build_sese_loop_nests): Same.
11894         (sese_build_liveouts_use): Same.
11895         (sese_build_liveouts_bb): Same.
11896         (sese_build_liveouts_bb): Same.
11897         (sese_bad_liveouts_use): Same.
11898         (sese_reset_debug_liveouts_bb): Same.
11899         (sese_build_liveouts): Same.
11900         (new_sese): Renamed new_sese_info.
11901         (free_sese): Renamed free_sese_info.
11902         (set_rename): Use an sese_info_p.
11903         (graphite_copy_stmts_from_block): Same.
11904         (copy_bb_and_scalar_dependences): Same.
11905         (outermost_loop_in_sese_1): Use an sese_l.
11906         (outermost_loop_in_sese): Same.
11907         (if_region_set_false_region): Use an sese_info_p.
11908         (move_sese_in_condition): Same.
11909         (scalar_evolution_in_region): Use an sese_l.
11910         * sese.h (struct sese_l): ... here.
11911         (SESE_ENTRY): Remove.
11912         (SESE_ENTRY_BB): Remove.
11913         (SESE_EXIT): Remove.
11914         (SESE_EXIT_BB): Remove.
11915         (sese_contains_loop): Use an sese_info_p.
11916         (sese_nb_params): Same.
11917         (bb_in_sese_p): Use an sese_l.
11918         (stmt_in_sese_p): Same.
11919         (defined_in_sese_p): Same.
11920         (loop_in_sese_p): Same.
11921         (sese_loop_depth): Same.
11922         (struct ifsese_s): Use an sese_info_p.
11923         (gbb_loop_at_index): Use an sese_l.
11924         (nb_common_loops): Same.
11925         (scev_analyzable_p): Same.
11927 2015-10-07  H.J. Lu  <hongjiu.lu@intel.com>
11929         * config/i386/i386.c (ix86_conditional_register_usage): Use
11930         CALL_USED_REGISTERS_MASK.
11931         * config/i386/i386.h (CALL_USED_REGISTERS_MASK): New macro.
11933 2015-10-07  H.J. Lu  <hongjiu.lu@intel.com>
11935         PR bootstrap/67385
11936         * configure.ac (gcc_cv_readelf): Check $READELF_FOR_TARGET.
11937         * configure: Regenerated.
11939 2015-10-07  H.J. Lu  <hongjiu.lu@intel.com>
11941         PR target/67850
11942         * config/i386/i386.c (ix86_maybe_switch_abi): Merged with ...
11943         (ix86_set_current_function): This.
11944         (TARGET_EXPAND_TO_RTL_HOOK): Removed.
11946 2015-10-07  Richard Biener  <rguenther@suse.de>
11948         * tree-vectorizer.h (stmt_vec_info_vec): Use vec<stmt_vec_info>.
11949         (vinfo_for_stmt): Adjust.
11950         (set_vinfo_for_stmt): Likewise.
11951         * tree-vectorizer.c (stmt_vec_info_vec): Likewise.
11952         * tree-vect-stmts.c (free_stmt_vec_info_vec): Likewise.
11953         * tree-vect-loop.c (new_loop_vec_info): Remove special-casing
11954         of inner loop.
11955         (vect_analyze_loop_1): Remove.
11956         (vect_analyze_loop_form_1): Avoid building a loop_vec_info for
11957         inner loop when vectorizing an outer loop by splitting out from ...
11958         (vect_analyze_loop_form): ... here.
11960 2015-10-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11962         PR c/65345
11963         * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv):
11964         Use create_tmp_var_raw instead of create_tmp_var.
11966 2015-10-07  Richard Sandiford  <richard.sandiford@arm.com>
11968         * real.h (dconst_quarter, dconst_sixth, dconst_ninth): New macros.
11969         (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): Declare.
11970         * real.c (CACHED_FRACTION): New helper macro.
11971         (dconst_third_ptr): Use it.
11972         (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): New.
11973         * builtins.c (fold_builtin_sqrt): Use dconst_quarter and
11974         dconst_sixth.
11975         (fold_builtin_cbrt): Use dconst_sixth and dconst_ninth.
11977 2015-10-06  Jeff Law  <law@redhat.com>
11979         PR tree-optimization/67816
11980         * tree-ssa-threadupdate.h (remove_jump_threads_including): Renamed
11981         from remove_jump_threads_starting_at.  Accept an edge rather than
11982         a basic block.
11983         * tree-ssa-threadupdate.c (removed_edges): New hash table.
11984         (remove_jump_threads_including): Note edges that get removed from
11985         the CFG for later pruning of jump threading paths including them.
11986         (thread_through_all_blocks): Remove paths which include edges that
11987         have been removed.
11988         * tree-ssa-dom.c (optimize_stmt): Call remove_jump_threads_including
11989         on each outgoing edges when optimizing away a control statement.
11991 2015-10-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11993         * reorg.c (emit_delay_sequence): Store list of delay slot insns
11994         in a vector instead of rtx_insn_list.
11995         (add_to_delay_list): Likewise.
11996         (delete_from_delay_slot): Likewise.
11997         (optimize_skip): Likewise.
11998         (redirect_with_delay_list_safe_p): Likewise.
11999         (check_annul_list_true_false): Likewise.
12000         (steal_delay_list_from_target): Likewise.
12001         (steal_delay_list_from_fallthrough): Likewise.
12002         (redundant_insn): Likewise.
12003         (fill_simple_delay_slots): Likewise.
12004         (fill_slots_from_thread): Likewise.
12005         (fill_eager_delay_slots): Likewise.
12006         (relax_delay_slots): Likewise.
12008 2015-10-06  Sandra Loosemore  <sandra@codesourcery.com>
12010         * config/nios2/nios2.c (nios2_symbol_ref_in_small_data_p):
12011         For -mgpopt=local, also exclude unintialized common symbols.
12012         * doc/invoke.texi (Nios II Options): Document the change.
12014 2015-10-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
12016         * config/aarch64/iterators.md (vwcore): Add missing cases for
12017          V4HF/V8HF modes.
12019 2015-10-06  Aditya Kumar  <aditya.k7@samsung.com>
12020             Sebastian Pop  <s.pop@samsung.com>
12022         * graphite-poly.c (new_scop): Initialize drs.
12023         * graphite-poly.h (struct dr_info): New.
12024         (struct scop): Add drs.
12025         * graphite-sese-to-poly.c (pdr_add_alias_set): Use dr_info.
12026         (pdr_add_memory_accesses): Same.
12027         (build_poly_dr): Same.
12028         (build_alias_set): Same.
12029         (build_scop_drs): Same.
12030         (build_pbb_drs): Remove.
12031         * tree-data-ref.c (create_data_ref): Do not initialize alias_set.
12032         * tree-data-ref.h (data_reference): Remove alias_set.
12034 2015-10-06  Aditya Kumar  <aditya.k7@samsung.com>
12035             Sebastian Pop  <s.pop@samsung.com>
12037         * graphite-poly.c (free_data_refs_aux): Remove.
12038         (free_gimple_poly_bb): Do not call free_data_refs_aux.
12039         * graphite-poly.h (struct base_alias_pair): Remove.
12040         * graphite-sese-to-poly.c (pdr_add_alias_set): Remove all uses of
12041         base_alias_pair and dr->aux.
12042         (build_alias_set): Same.
12043         * tree-data-ref.c (create_data_ref): Initialize alias_set.
12044         * tree-data-ref.h (data_reference): Add alias_set.
12046 2015-10-06  Aditya Kumar  <aditya.k7@samsung.com>
12047             Sebastian Pop  <s.pop@samsung.com>
12049         * graphite-poly.c (new_poly_dr): Remove dr_base_object_set.
12050         Do not set PDR_BASE_OBJECT_SET.
12051         * graphite-poly.h (poly_dr): Same.
12052         (PDR_BASE_OBJECT_SET): Remove.
12053         (new_poly_dr): Update decl.
12054         * graphite-sese-to-poly.c (build_poly_dr): Update call to
12055         new_poly_dr.
12056         (write_alias_graph_to_ascii_dimacs): Remove.
12057         (write_alias_graph_to_ascii_dot): Remove.
12058         (write_alias_graph_to_ascii_ecc): Remove.
12059         (dr_same_base_object_p): Remove.
12060         (build_alias_set_optimal_p): Rename build_alias_set.  Remove dead
12061         code.
12062         (build_base_obj_set_for_drs): Remove.
12063         (dump_alias_graphs): Remove.
12064         (build_scop_drs): Remove dead code.
12066 2015-10-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
12067             Peter Bergner  <bergner@vnet.ibm.com>
12069         PR target/67808
12070         * config/rs6000/rs6000.md (extenddftf2): In the expander, only
12071         allow registers, but provide insns for the combiner to create for
12072         loads from memory. Separate VSX code from non-VSX code. For
12073         non-VSX code, combine extenddftf2_fprs into extenddftf2 and rename
12074         externaldftf2_internal to externaldftf2_fprs. Reorder constraints
12075         so that registers come before memory operations. Drop support from
12076         converting DFmode to TFmode, if the DFmode value is in a GPR
12077         register.
12078         (extenddftf2_fprs): Likewise.
12079         (extenddftf2_internal): Likewise.
12080         (extenddftf2_vsx): Likewise.
12081         (extendsftf2): In the expander, only allow registers, but provide
12082         insns for the combiner to create for stores and loads.
12084 2015-10-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12086         * varasm.c (default_elf_asm_named_section): Remove ATTRIBUTE_UNUSED
12087         from the decl parameter.
12089 2015-10-06  Nathan Sidwell  <nathan@codesourcery.com>
12091         PR 67861
12092         * gimple-fold.c (gimple_fold_builtin): Add break after
12093         BUILT_IN_PRINTF_CHK, BUILT_IN_VPRINTF_CHK folding.
12095 2015-10-06  H.J. Lu  <hongjiu.lu@intel.com>
12097         * graphite-optimize-isl.c (optimize_isl): Rename scop->ctx
12098         to scop->isl_context.
12100 2015-10-06  Eric Botcazou  <ebotcazou@adacore.com>
12102         * config/arm/arm.c (arm_emit_probe_stack_range): Adjust comment.
12103         (output_probe_stack_range): Rotate the loop and simplify.
12104         (thumb1_expand_prologue): Tweak sorry message.
12105         * config/arm/arm.md (probe_stack): Use bare string.
12107 2015-10-06  Nick Clifton  <nickc@redhat.com>
12109         * config.gcc (lm32-elf): Add newlib-stdint.h to tm_file.
12111 2015-10-06  Nick Clifton  <nickc@redhat.com>
12113         * config/msp430/msp430.c (ATTR_NOINIT): New constant.
12114         (ATTR_PERSIST): New constant.
12115         (msp430_data_attr): New function - verifies an attribute that only
12116         applies to variables.
12117         (msp430_attributes): Add noinit and persistent attributes.
12118         (noinit_section): New variable.
12119         (presis_section): New variable.
12120         (TARGET_ASM_INIT_SECTIONS): Define.
12121         (msp430_init_sections): New function - initialises the noinit and
12122         persist section variables.
12123         (msp430_select_section): Add support for noinit and persist
12124         attributes.
12125         (msp430_section_type_flags): Likewise.
12126         * doc/extend.texi:  Document the reent, critical, wakeup, noinit
12127         and persistent attributes.
12129 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
12130             Sebastian Pop  <s.pop@samsung.com>
12132         * graphite-dependences.c (scop_get_transformed_schedule): Remove.
12133         (no_violations): Remove.
12134         (subtract_commutative_associative_deps): Remove.
12135         (compute_deps): Do not call subtract_commutative_associative_deps.
12136         (transform_is_safe): Remove.
12137         (graphite_legal_transform): Remove.
12138         * graphite-poly.h (graphite_legal_transform): Remove.
12140 2015-10-05  Aditya Kumar  <hiraditya@msn.com>
12142         * graphite-sese-to-poly.c (build_loop_iteration_domains): Only loops
12143         which are in this region are passed so gcc_assert and remove redundant
12144         computation.
12145         * sese.c (sese_build_liveouts): Pass only those bbs which are not
12146         in region.
12147         (sese_bad_liveouts_use): Only BBs which are not in region are passed so
12148         gcc_assert on that and remove unnecessary computation.
12149         (sese_build_liveouts_use): Same.
12151 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
12153         * graphite-dependences.c (scop_get_reads): Renamed scop->context
12154         to scop->param_context.
12155         (scop_get_must_writes): Same.
12156         (scop_get_may_writes): Same.
12157         (scop_get_original_schedule): Same.
12158         (scop_get_transformed_schedule): Same.
12159         (subtract_commutative_associative_deps): Same.
12160         * graphite-isl-ast-to-gimple.c (add_parameters_to_ivs_params): Same.
12161         (generate_isl_context): Same.
12162         (generate_isl_schedule): Same.
12163         (scop_to_isl_ast): Same.
12164         (graphite_regenerate_ast_isl): Same.
12165         * graphite-optimize-isl.c (scop_get_domains): Same.
12166         (optimize_isl): Renamed scop->context to scop->param_context.
12167         * graphite-poly.c (new_poly_bb): Change the type of argument to
12168         gimple_poly_bb_p.
12169         (new_scop): Renamed scop->context to scop->param_context.
12170         (free_scop): Same.
12171         (print_scop_context): Same.
12172         * graphite-poly.h (new_poly_dr): Change the type of argument from
12173         void* to data_reference_p.
12174         (struct poly_bb): Change the type of black_box to gimple_poly_bb_p.
12175         (new_poly_bb): Change the type of argument from void* to
12176         gimple_poly_bb_p.
12177         (pbb_set_black_box): Same.
12178         (struct scop): Rename context to param_context, ctx to isl_context.
12179         * graphite-scop-detection.c (scop_detection::build_scop_bbs_1):
12180         Move declarations closer to assignment.
12181         (find_params_in_bb): Same.
12182         (find_scop_parameters): Same.
12183         * graphite-sese-to-poly.c (unsigned ssa_name_version_typesize):
12184         Global to be used for statement IDs.
12185         (isl_id_for_pbb): Use ssa_name_version_typesize.
12186         (simple_copy_phi_p): Move declarations closer to assignment.
12187         (build_pbb_scattering_polyhedrons): Same.
12188         (build_scop_scattering): Same.
12189         (isl_id_for_ssa_name): Same.
12190         (extract_affine_name): Same.
12191         (extract_affine_int): Same.
12192         (extract_affine): Same.
12193         (set_scop_parameter_dim): Use renamed member.
12194         (build_loop_iteration_domains): Same.
12195         (add_param_constraints): Same.
12196         (build_scop_iteration_domain): Same.
12197         (pdr_add_data_dimensions): Same.
12198         (build_poly_dr): Same.
12199         (build_scop_drs): Move declarations closer to assignment.
12200         (analyze_drs_in_stmts): Same.
12201         (insert_out_of_ssa_copy): Same.
12202         (insert_out_of_ssa_copy_on_edge): Same.
12203         (propagate_expr_outside_region): Same.
12204         (rewrite_phi_out_of_ssa): Same.
12205         (rewrite_degenerate_phi): Same.
12206         (rewrite_reductions_out_of_ssa): Same.
12207         (rewrite_cross_bb_scalar_dependence): Same.
12208         (handle_scalar_deps_crossing_scop_limits): Same.
12209         (rewrite_cross_bb_scalar_deps): Same.
12210         * graphite.c (graphite_transform_loops): Use renamed member.
12212 2015-10-06  Uros Bizjak  <ubizjak@gmail.com>
12214         PR c/65345
12215         * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Use
12216         create_tmp_var_raw instead of create_tmp_var.
12218 2015-10-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12220         PR c/65345
12221         * config/aarch64/aarch64-builtins.c (aarch64_atomic_assign_expand_fenv):
12222         Use create_tmp_var_raw instead of create_tmp_var.
12224 2015-10-06  Alexander Fomin  <alexander.fomin@intel.com>
12226         PR target/67849
12227         * config/i386/sse.md (define_split vec_select/V8FI): Restrict
12228         split for upper-bank registers when target does not support
12229         AVX512VL.
12230         (define_insn "vec_extract_lo_<mode><mask_name>"): Restrict
12231         split when target does not support AVX512VL.
12233 2015-10-06  David Edelsohn  <dje.gcc@gmail.com>
12235         PR c/65345
12236         * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv):
12237         Adjust to use create_tmp_var_raw instead of create_tmp_var.
12239 2015-10-06  Nick Clifton  <nickc@redhat.com>
12241         * config/rl78/rl78.c (rl78_rtx_costs): Improve cost estimates for
12242         multiplication.
12244 2015-10-06  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
12246         * config.gcc (i[34567]86-*-linux* | ...): Add znver1.
12247         (case ${target}): Add znver1.
12248         * config/i386/cpuid.h(bit_CLZERO):  Define.
12249         * config/i386/driver-i386.c: (host_detect_local_cpu): Let
12250         -march=native recognize znver1 processors.
12251         * config/i386/i386-c.c (ix86_target_macros_internal): Add
12252         znver1, clzero def_and_undef.
12253         * config/i386/i386.c (struct processor_costs znver1_cost): New.
12254         (m_znver1): New definition.
12255         (m_AMD_MULTIPLE): Includes m_znver1.
12256         (processor_target_table): Add znver1 entry.
12257         (ix86_target_string) : Add clzero entry.
12258         (static const char *const cpu_names): Add znver1 entry.
12259         (ix86_option_override_internal): Add znver1 instruction sets.
12260         (PTA_CLZERO) :  New definition.
12261         (ix86_option_override_internal): Handle new clzerooption.
12262         (ix86_issue_rate): Add znver1.
12263         (ix86_adjust_cost): Add znver1.
12264         (ia32_multipass_dfa_lookahead): Add znver1.
12265         (has_dispatch): Add znver1.
12266         * config/i386/i386.h (TARGET_znver1): New definition.
12267         (TARGET_CLZERO): Define.
12268         (TARGET_CLZERO_P): Define.
12269         (struct ix86_size_cost): Add TARGET_ZNVER1.
12270         (enum processor_type): Add PROCESSOR_znver1.
12271         * config/i386/i386.md (define_attr "cpu"): Add znver1.
12272         (set_attr znver1_decode): New definitions for znver1.
12273         * config/i386/i386.opt (flag_dispatch_scheduler): Add znver1.
12274         (mclzero): New.
12275         * config/i386/mmx.md (set_attr znver1_decode): New definitions
12276         for znver1.
12277         * config/i386/sse.md (set_attr znver1_decode): Likewise.
12278         * config/i386/x86-tune.def:  Add znver1 tunings.
12279         * config/i386/znver1.md: Introduce znver1 cpu and include new md file.
12280         * doc/invoke.texi: Add details about znver1
12282 2015-10-06  Richard Biener  <rguenther@suse.de>
12284         PR tree-optimization/67859
12285         * tree-ssa-pre.c (create_expression_by_pieces): Properly
12286         discard not inserted stmts.
12288 2015-10-06  Jonathan Wakely  <jwakely@redhat.com>
12290         * doc/extend.texi (Template Instantiation): Reorder options and
12291         de-emphasize -frepo.
12292         * doc/invoke.texi (C++ Dialect Options): Use -fstrict-enums in
12293         example instead of -frepo.
12295 2015-10-06  Eric Botcazou  <ebotcazou@adacore.com>
12297         PR c/65345
12298         * config/sparc/sparc.c (sparc_atomic_assign_expand_fenv): Adjust to
12299         use create_tmp_var_raw rather than create_tmp_var.
12301 2015-10-06  Richard Biener  <rguenther@suse.de>
12303         * tree-vectorizer.h (vec_info): New base class for...
12304         (_loop_vec_info): ... this and ...
12305         (_bb_vec_info): ... this.
12306         (vect_is_simple_use, vect_is_simple_use_1, new_stmt_vec_info,
12307         vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
12308         vect_analyze_data_ref_accesses, vect_analyze_data_refs,
12309         vect_schedule_slp, vect_analyze_slp, vect_pattern_recog,
12310         vect_destroy_datarefs): Adjust interface to take a vec_info *
12311         rather than both a loop_vec_info and a bb_vec_info argument.
12312         * tree-vect-data-refs.c (vect_compute_data_refs_alignment,
12313         vect_verify_datarefs_alignment, vect_enhance_data_refs_alignment,
12314         vect_analyze_data_refs_alignment, vect_analyze_data_ref_accesses,
12315         vect_analyze_data_refs, vect_create_data_ref_ptr): Adjust
12316         accordingly.
12317         * tree-vect-loop.c (new_loop_vec_info): Initialize base class.
12318         (destroy_loop_vec_info, vect_analyze_loop_2,
12319         vect_is_simple_reduction_1, get_initial_def_for_induction,
12320         vect_create_epilog_for_reduction, vectorizable_reduction,
12321         vectorizable_live_operation, vect_transform_loop): Adjust.
12322         * tree-vect-patterns.c (type_conversion_p,
12323         vect_recog_widen_mult_pattern, vect_recog_widen_shift_pattern,
12324         vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern,
12325         vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern,
12326         check_bool_pattern, vect_recog_bool_pattern,
12327         vect_mark_pattern_stmts, vect_pattern_recog): Likewise.
12328         * tree-vect-slp.c (vect_get_and_check_slp_defs,
12329         vect_build_slp_tree_1, vect_build_slp_tree, vect_analyze_slp_cost_1,
12330         vect_analyze_slp_instance, vect_analyze_slp, destroy_bb_vec_info,
12331         vect_slp_analyze_bb_1, vect_schedule_slp): Likewise.
12332         (new_bb_vec_info): Initialize base classs.
12333         * tree-vect-stmts.c (record_stmt_cost, process_use,
12334         vect_get_vec_def_for_operand, vect_finish_stmt_generation,
12335         vectorizable_mask_load_store, vectorizable_call,
12336         vectorizable_simd_clone_call, vectorizable_conversion,
12337         vectorizable_assignment, vectorizable_shift,
12338         vectorizable_operation, vectorizable_store,
12339         vectorizable_load, vect_is_simple_cond, vectorizable_condition,
12340         new_stmt_vec_info, vect_is_simple_use, vect_is_simple_use_1): Likewise.
12341         * tree-vectorizer.c (vect_destroy_datarefs): Likewise.
12343 2015-10-05  Kaz Kojima  <kkojima@gcc.gnu.org>
12345         PR c/65345
12346         * config/sh/sh.c (sh_atomic_assign_expand_fenv): Adjust to use
12347         create_tmp_var_raw rather than create_tmp_var.
12349 2015-10-05  Marek Polacek  <polacek@redhat.com>
12351         * tree-ssa-loop-im.c
12352         (move_computations_dom_walker::before_dom_children): Don't set
12353         SSA_NAME_ANTI_RANGE_P.
12354         * tree-ssa-phiopt.c (value_replacement): Likewise.
12356 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
12357             Sebastian Pop  <s.pop@samsung.com>
12359         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Increase to 7.
12361 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
12362             Sebastian Pop  <s.pop@samsung.com>
12364         * graphite-poly.c (new_gimple_poly_bb): ... here.
12365         (free_data_refs_aux): ... here.
12366         (free_gimple_poly_bb): ... here.
12367         (remove_gbbs_in_scop): ... here.
12368         (new_scop): Call new_sese.
12369         (free_scop): Call remove_gbbs_in_scop and free_sese.
12370         * graphite-poly.h (base_alias_pair): ... here.
12371         (new_gimple_poly_bb): Declare.
12372         (free_gimple_poly_bb): Declare.
12373         * graphite-scop-detection.c (parameter_index_in_region_1):
12374         (parameter_index_in_region): ... here.
12375         (scan_tree_for_params): ... here.
12376         (find_params_in_bb): ... here.
12377         (find_scop_parameters): ... here.
12378         (build_scops): Call find_scop_parameters.
12379         * graphite-sese-to-poly.c (free_gimple_poly_bb): Move...
12380         (free_scops): Move...
12381         (single_pred_cond_non_loop_exit): Move...
12382         (sese_dom_walker::before_dom_children): Move...
12383         (sese_dom_walker::after_dom_children): Move...
12384         (build_poly_scop): Move...
12385         * graphite-sese-to-poly.h (base_alias_pair): Move...
12386         * graphite.c (free_scops): ... here.
12388 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
12389             Sebastian Pop  <s.pop@samsung.com>
12391         * graphite-scop-detection.c: Include domwalk.h and tree-cfg.h.
12392         (trivially_empty_bb_p): Move...
12393         (same_close_phi_node): Move...
12394         (new_gimple_poly_bb): Move...
12395         (compare_bb_depths): Move...
12396         (graphite_sort_dominated_info): Move...
12397         (remove_duplicate_close_phi): Move...
12398         (make_close_phi_nodes_unique): Move...
12399         (canonicalize_loop_closed_ssa): Move...
12400         (canonicalize_loop_closed_ssa_form): Move...
12401         (loop_ivs_can_be_represented): Move...
12402         (single_pred_cond_non_loop_exit): Move...
12403         (graphite_can_represent_init): Move...
12404         (graphite_can_represent_scev): Move...
12405         (stmt_has_simple_data_refs_p): Move...
12406         (stmt_has_side_effects):  Move...
12407         (graphite_can_represent_stmt): Move...
12408         (scop_detection): ... here.
12409         (sese_dom_walker): ... and here.
12410         (build_scops): Call all moved functions.
12411         * graphite-sese-to-poly.c (try_generate_gimple_bb): Move...
12412         (all_non_dominated_preds_marked_p): Move...
12413         (build_scop_bbs_1): Move...
12414         (build_scop_bbs): Move...
12415         (set_scop_parameter_dim): Move...
12416         (nb_pbbs_in_loops): Move...
12417         (build_poly_scop): Do not call all the moved functions.
12419 2015-10-05  Martin Jambor  <mjambor@suse.cz>
12420             Jan Hubicka  <hubicka@ucw.cz>
12422         * ipa-cp.c (ipcp_alignment_lattice): New type.
12423         (ipcp_param_lattices): Use the above to represent alignment.
12424         (ipcp_alignment_lattice::print): New function.
12425         (print_all_lattices): Use it to print alignment information.
12426         (ipcp_alignment_lattice::top_p): New function.
12427         (ipcp_alignment_lattice::bottom_p): Likewise.
12428         (ipcp_alignment_lattice::set_to_bottom): Likewise.
12429         (ipcp_alignment_lattice::meet_with_1): Likewise.
12430         (ipcp_alignment_lattice::meet_with): Two new overloaded functions.
12431         (set_all_contains_variable): Use set_to_bottom of alignment lattice.
12432         (initialize_node_lattices): Likewise.
12433         (propagate_alignment_accross_jump_function): Work with the new class
12434         for alignment lattices.
12435         (propagate_constants_accross_call): Pass only the alignment lattice to
12436         propagate_alignment_accross_jump_function.
12437         (ipcp_store_alignment_results): Work with the new class for alignment
12438         lattices.
12440 2015-10-05  Marek Polacek  <polacek@redhat.com>
12442         PR tree-optimization/67821
12443         * tree-ssanames.c (duplicate_ssa_name_range_info): Remove an assert.
12445 2015-10-05  Thomas Schwinge  <thomas@codesourcery.com>
12447         PR other/65021
12448         * config/i386/intelmic-mkoffload.c (mkoffload_atexit): Rename
12449         function to...
12450         (mkoffload_cleanup): ... this.  Adjust all users.
12451         (maybe_unlink): Look at save_temps and verbose flags instead of
12452         debug flag.
12453         (main): Parse "-save-temps" flag.
12454         (generate_target_descr_file, generate_target_offloadend_file)
12455         (generate_host_descr_file, prepare_target_image): Pass it on.
12456         * config/nvptx/mkoffload.c (tool_cleanup): Implement.
12457         (mkoffload_cleanup): New function.
12458         (maybe_unlink): Look at save_temps and verbose flags instead of
12459         debug flag.
12460         (main): Instead of calling utils_cleanup, register atexit handler
12461         for mkoffload_cleanup.
12462         (main): Parse "-save-temps" flag.
12463         (compile_native, main): Pass it on.
12464         * lto-wrapper.c (compile_offload_image): Likewise.
12466 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12468         * gimple.h (gimple_op_ptr): Require a non const gimple *.
12469         (gimple_assign_lhs_ptr): Likewise.
12470         (gimple_assign_rhs1_ptr): Likewise.
12471         (gimple_assign_rhs2_ptr): Likewise.
12472         (gimple_assign_rhs3_ptr): Likewise.
12473         (gimple_call_lhs_ptr): Likewise.
12474         (gimple_call_fn_ptr): Likewise.
12475         (gimple_call_chain_ptr): Likewise.
12476                 (gimple_call_arg_ptr): Likewise.
12477                 (gimple_cond_lhs_ptr): Likewise.
12478         (gimple_cond_rhs_ptr): Likewise.
12479         (gimple_switch_index_ptr): Likewise.
12480         (gimple_return_retval_ptr): Likewise.
12482 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12484         * gimple.h (gimple_asm_input_op_ptr): Remove.
12485         (gimple_asm_output_op_ptr): Likewise.
12487 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12489         * gimple.h (gimple_location_ptr): Remove.
12490         * tree-vrp.c (check_all_array_refs): Adjust.
12492 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12494         * tree-ssa-operands.c (build_uses): store tree * instead of
12495         tree.
12496         (finalize_ssa_uses): Adjust.
12497         (append_use): Likewise.
12498         (verify_ssa_operands): Likewise.
12500 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
12502         * real.h (build_real_truncate): Declare.
12503         * tree.c (build_real_truncate): New function.
12504         (strip_float_extensions): Use it.
12505         * builtins.c (fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_cbrt)
12506         (fold_builtin_hypot, fold_builtin_pow): Likewise.
12507         * match.pd: Likewise.
12509 2015-10-05 James Greenhalgh <james.greenhalgh@arm.com>
12510            Jiong Wang  <jiong.wang@arm.com>
12512         * config/aarch64/aarch64.md (tlsie_tiny_sidi): Replace "<w>" with "w".
12514 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
12516         * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Delete.
12517         * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p)
12518         (aarch64_print_operand, aarch64_float_const_representable_p)
12519         (aarch64_output_simd_mov_immediate): Use CONST_DOUBLE_REAL_VALUE
12520         instead of REAL_VALUE_FROM_CONST_DOUBLE.
12521         * config/arc/arc.c (arc_print_operand): Likewise.
12522         * config/arm/arm.c (arm_const_double_rtx, vfp3_const_double_index)
12523         (neon_valid_immediate, arm_print_operand, arm_emit_fp16_const)
12524         (vfp3_const_double_for_fract_bits, vfp3_const_double_for_bits):
12525         Likewise.
12526         * config/arm/arm.md (*arm32_movhf, consttable_4, consttable_8)
12527         (consttable_16): Likewise.
12528         * config/arm/vfp.md (*movhf_vfp_neon, *movhf_vfp): Likewise.
12529         * config/avr/avr.c (avr_print_operand): Likewise.
12530         * config/bfin/bfin.md: Likewise (in a define_split).
12531         * config/c6x/c6x.md: Likewise (in a define_split).
12532         * config/cr16/cr16.c (cr16_const_double_ok): Likewise.
12533         (cr16_print_operand): Likewise.
12534         * config/cris/cris.c (cris_print_operand): Likewise.
12535         * config/epiphany/epiphany.c (epiphany_print_operand): Likewise.
12536         * config/fr30/fr30.c (fr30_print_operand): Likewise.
12537         (fr30_const_double_is_zero): Likewise.
12538         * config/frv/frv.c (frv_print_operand, output_move_single): Likewise.
12539         * config/frv/frv.md: Likewise (in a define_split).
12540         * config/frv/predicates.md (int_2word_operand): Likewise.
12541         * config/h8300/h8300.c (h8300_print_operand): Likewise.
12542         * config/i386/i386.c (standard_80387_constant_p): Likewise.
12543         (ix86_print_operand, ix86_split_to_parts): Likewise.
12544         * config/i386/i386.md: Likewise (in a define_split).
12545         * config/ia64/ia64.c (ia64_split_tmode, ia64_print_operand): Likewise.
12546         * config/iq2000/iq2000.md (movsf_lo_sum, movsf_high): Likewise.
12547         * config/m32r/m32r.c (easy_df_const, m32r_print_operand): Likewise.
12548         * config/m68k/m68k.c (handle_move_double, standard_68881_constant_p)
12549         (print_operand): Likewise.
12550         * config/m68k/m68k.md (movsf_cf_hard, movdf_cf_hard): Likewise.
12551         * config/mep/mep.md: Likewise (in define_split).
12552         * config/microblaze/microblaze.c (microblaze_const_double_ok)
12553         (print_operand): Likewise.
12554         * config/mips/mips.md (consttable_float): Likewise.
12555         * config/mmix/mmix.c (mmix_intval): Likewise.
12556         * config/mn10300/mn10300.c (mn10300_print_operand): Likewise.
12557         * config/nvptx/nvptx.c (nvptx_print_operand): Likewise.
12558         * config/pa/pa.c (pa_singlemove_string): Likewise.
12559         * config/pdp11/pdp11.c (pdp11_expand_operands): Likewise.
12560         (pdp11_asm_print_operand, legitimate_const_double_p): Likewise.
12561         * config/rs6000/rs6000.c (num_insns_constant, rs6000_emit_cmove)
12562         (output_toc): Likewise.
12563         * config/rs6000/rs6000.md: Likewise (in define_splits).
12564         * config/rx/rx.c (rx_print_operand): Likewise.
12565         * config/s390/s390.c (s390_output_pool_entry): Likewise.
12566         * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
12567         * config/sh/sh.md (consttable_sf, consttable_df): Likewise
12568         (and also in define_splits).
12569         * config/sparc/sparc.c (fp_sethi_p, fp_mov_p): Likewise.
12570         (fp_high_losum_p): Likewise.
12571         * config/sparc/sparc.md (*movsf_insn, *movsf_lo_sum): Likewise.
12572         (*movsf_high): Likewise.
12573         * config/spu/spu.c (const_double_to_hwint): Likewise.
12574         * config/v850/v850.c (const_double_split): Likewise.
12575         * config/vax/vax.c (vax_float_literal): Likewise.
12576         * config/visium/visium.c (visium_expand_copysign): Likewise.
12577         * config/visium/visium.md: Likewise (in define_split).
12578         * config/xtensa/predicates.md (const_float_1_operand): Likewise.
12579         * config/xtensa/xtensa.c (print_operand): Likewise.
12580         (xtensa_output_literal): Likewise.
12581         * cprop.c (implicit_set_cond_p): Likewise.
12582         * dwarf2out.c (insert_float): Likewise.
12583         * expmed.c (expand_mult, make_tree): Likewise.
12584         * expr.c (compress_float_constant): Likewise.
12585         * rtlanal.c (split_double): Likewise.
12586         * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
12587         (simplify_const_unary_operation, simplify_binary_operation_1)
12588         (simplify_const_binary_operation): Likewise.
12589         (simplify_const_relational_operation): Likewise.
12590         * varasm.c (output_constant_pool_2): Likewise.
12592 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
12594         * real.h (CONST_DOUBLE_ATOF): Use const_double_from_real_value
12595         instead of CONST_DOUBLE_FROM_REAL_VALUE.
12596         (CONST_DOUBLE_FROM_REAL_VALUE): Delete.
12597         * config/c6x/c6x.md (divsf3, divdf3): Use const_double_from_real_value
12598         instead of CONST_DOUBLE_FROM_REAL_VALUE.
12599         * config/epiphany/epiphany.md (fixuns_truncsfsi2): Likewise.
12600         * config/i386/i386.c (standard_80387_constant_rtx): Likewise.
12601         (ix86_expand_builtin, ix86_emit_i387_log1p, ix86_emit_i387_round)
12602         (ix86_emit_swsqrtsf): Likewise.
12603         * config/ia64/ia64.c (ia64_expand_builtin): Likewise.
12604         * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
12605         (fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
12606         * config/pa/pa.c (pa_expand_builtin): Likewise.
12607         * config/rs6000/rs6000.c (rs6000_load_constant_and_splat): Likewise.
12608         (rs6000_scale_v2df): Likewise.
12609         * config/rs6000/rs6000.md (*cmptf_internal2): Likewise.
12610         * config/s390/s390.md (fixuns_truncdddi2, fixuns_trunctddi2)
12611         (fixuns_trunc<BFP:mode><GPR:mode>2): Likewise.
12612         * config/s390/vx-builtins.md (vec_ctd_s64, vec_ctd_u64, vec_ctsl)
12613         (vec_ctul): Likewise.
12614         * config/sparc/sparc.c (sparc_emit_fixunsdi): Likewise.
12615         * config/spu/spu.c (hwint_to_const_double, spu_float_const): Likewise.
12616         * config/spu/spu.md (floatunsdisf2, floatunstisf2): Likewise.
12617         * cse.c (fold_rtx): Likewise.
12618         * emit-rtl.c (immed_double_const): Likewise (in comments).
12619         (init_emit_once): Likewise.
12620         * expr.c (compress_float_constant, expand_expr_real_1)
12621         (const_vector_from_tree): Likewise.
12622         * optabs.c (expand_float, expand_fix): Likewise.
12623         * reg-stack.c (reg_to_stack): Likewise.
12624         * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
12625         (simplify_const_unary_operation, simplify_binary_operation_1)
12626         (simplify_const_binary_operation, simplify_relational_operation)
12627         (simplify_immed_subreg): Likewise.
12629 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
12631         * doc/tm.texi.in (REAL_ARITHMETIC): Delete.
12632         * doc/tm.texi: Regenerate.
12633         * real.h (REAL_ARITHMETIC): Delete.
12634         * config/i386/i386.c (ix86_expand_lround, ix86_expand_round)
12635         (ix86_expand_round_sse4): Use real_arithmetic instead of
12636         REAL_ARITHMETIC.
12637         * config/i386/sse.md (round<mode>2): Likewise.
12638         * rtl.h (rtx_to_tree_code): Likewise (in comment).
12639         * explow.c (rtx_to_tree_code): Likewise (in comment).
12640         * match.pd: Likewise.
12641         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
12642         * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
12643         (expand_pow_as_sqrts): Likewise.
12644         * tree-pretty-print.c (dump_generic_node): Remove code that
12645         was conditional on REAL_ARITHMETIC being undefined.
12647 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
12649         * doc/tm.texi.in (REAL_VALUES_LESS): Delete.
12650         * doc/tm.texi: Regenerate.
12651         * real.h (real_less): Declare.
12652         (REAL_VALUES_LESS): Delete.
12653         * real.c (real_less): New function.
12654         (real_compare): Use it.
12655         * config/m68k/m68k.c (floating_exact_log2): Use real_less instead
12656         of REAL_VALUES_LESS.
12657         * config/microblaze/microblaze.c (microblaze_const_double_ok):
12658         Likewise.
12659         * fold-const.c (fold_convert_const_int_from_real): Likewise.
12660         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
12661         (simplify_const_relational_operation): Likewise.
12662         * tree-call-cdce.c (check_pow): Likewise.
12663         (gen_conditions_for_pow_cst_base): Likewise.
12665 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
12667         * real.h (REAL_VALUES_IDENTICAL): Delete.
12668         * config/m68k/m68k.c (standard_68881_constant_p): Use real_identical
12669         instead of REAL_VALUES_IDENTICAL.
12670         * fold-const.c (operand_equal_p): Likewise.
12671         * ipa-icf.c (sem_variable::equals): Likewise.
12672         * tree-complex.c (some_nonzerop): Likewise.
12673         (expand_complex_multiplication): Likewise.
12674         * tree.c (simple_cst_equal): Likewise.
12675         * varasm.c (compare_constant): Likewise.
12677 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
12679         * real.h (real_equal): Declare.
12680         (REAL_VALUES_EQUAL): Delete.
12681         * real.c (real_equal): New function.
12682         (real_compare): Use it.
12683         * doc/tm.texi.in (REAL_VALUES_EQUAL): Delete.
12684         * doc/tm.texi: Regenerate.
12685         * builtins.c (fold_builtin_pow, fold_builtin_load_exponent): Use
12686         real_equal instead of REAL_VALUES_EQUAL.
12687         * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p): Likewise.
12688         * config/arm/arm.c (arm_const_double_rtx, neon_valid_immediate)
12689         (fp_const_from_val): Likewise.
12690         * config/fr30/fr30.c (fr30_const_double_is_zero): Likewise.
12691         * config/m68k/m68k.c (standard_68881_constant_p): Likewise.
12692         (floating_exact_log2): Likewise.
12693         * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
12694         * config/vax/vax.c (vax_float_literal): Likewise.
12695         * config/xtensa/predicates.md (const_float_1_operand): Likewise.
12696         * cprop.c (implicit_set_cond_p): Likewise.
12697         * expmed.c (expand_mult): Likewise.
12698         * fold-const.c (const_binop): Likewise.
12699         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
12700         (simplify_const_binary_operation): Likewise.
12701         (simplify_const_relational_operation): Likewise.
12702         * tree-call-cdce.c (check_pow): Likewise.
12703         (gen_conditions_for_pow_cst_base): Likewise.
12704         * tree-inline.c (estimate_num_insns): Likewise.
12705         * tree-ssa-dom.c (record_equality): Likewise.
12706         * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
12707         (gimple_expand_builtin_pow): Likewise.
12708         (pass_optimize_widening_mul::execute): Likewise.
12709         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
12710         * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
12711         * tree.c (real_zerop, real_onep, real_minus_onep): Likewise.
12713 2015-10-05  Richard Biener  <rguenther@suse.de>
12715         PR ipa/67783
12716         * ipa-inline-analysis.c (estimate_function_body_sizes): Only
12717         consider loop header PHI defs as IVs.
12719 2015-10-05  Richard Biener  <rguenther@suse.de>
12721         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Move
12722         call handling ...
12723         (create_expression_by_pieces): ... here and build GIMPLE
12724         calls directly.  Use gimple_build API and avoid force_gimple_operand.
12725         (insert_into_preds_of_block): Simplify.
12726         (do_regular_insertion): Add comment.
12728 2015-10-04  Jason Merrill  <jason@redhat.com>
12730         * builtins.def (BUILT_IN_ABORT): Add transaction_pure attribute.
12732 2015-10-04  Uros Bizjak  <ubizjak@gmail.com>
12734         * config/i386/i386.c (ix86_nsaved_regs): Use GENERAL_REGNO_P to
12735         check for general register.
12736         (ix86_emit_save_regs): Ditto.
12737         (ix86_emit_save_regs_using_mov): Ditto.
12738         (ix86_emit_restore_regs_using_pop): Ditto.
12739         (ix86_emit_restore_regs_using_mov): Ditto.
12741 2015-10-03  Marek Polacek  <polacek@redhat.com>
12743         * Makefile.in (insn-latencytab.o): Remove -Wno-duplicated-cond.
12744         (insn-dfatab.o): Likewise.
12746 2015-10-03  Max Filippov  <jcmvbkbc@gmail.com>
12748         * config.gcc (xtensa*-*-uclinux*): New configuration.
12749         * config/xtensa/uclinux.h: New file.
12750         * config/xtensa/uclinux.opt: New file.
12752 2015-10-03  Jonathan Wakely  <jwakely@redhat.com>
12754         * doc/cpp.texi (Standard Predefined Macros): Document value of
12755         __cplusplus for C++14.
12757 2015-10-02  Bernd Schmidt  <bernds@codesourcery.com>
12759         * gcc.c (process_command): Use spec_machine rather than
12760         spec_host_machine to build tooldir_prefix2.
12762 2015-10-02  Thomas Schwinge  <thomas@codesourcery.com>
12763             Bernd Schmidt  <bernds@codesourcery.com>
12765         * config/nvptx/mkoffload.c (Kind, Vis): Remove enums.
12766         (Token, Stmt): Remove structs.
12767         (decls, vars, fns): Remove variables.
12768         (alloc_comment, append_stmt, is_keyword): Remove macros.
12769         (tokenize, write_token, write_tokens, alloc_stmt, rev_stmts)
12770         (write_stmt, write_stmts, parse_insn, parse_list_nosemi)
12771         (parse_init, parse_file): Remove functions.
12772         (read_file): Accept a pointer to a length and store into it.
12773         (process): Don't try to parse the input file, just write it out as
12774         a string, but looking for maps.  Also write out the length.
12775         (main): Don't use "-S" to compile PTX code.
12777 2015-10-02  Jeff Law  <law@redhat.com>
12779         * tree-ssa-dom.c (optimize_stmt): Note when loop structures need
12780         fixups.
12782 2015-10-02  Thomas Schwinge  <thomas@codesourcery.com>
12784         PR target/67822
12785         * config/nvptx/mkoffload.c (main): Scan the argument vector for
12786         -fopenmp, and skip generating an offloading image if specified.
12788 2015-10-02  Uros Bizjak  <ubizjak@gmail.com>
12790         * system.h (ROUND_UP): New macro definition.
12791         (ROUND_DOWN): Ditto.
12792         * ggc-page.c (ROUND_UP): Remove local macro definition.
12793         (PAGE_ALIGN): Implement using ROUND_UP macro.
12795         * config/i386/i386.h (PUSH_ROUNDING): Implement using ROUND_UP macro.
12796         * config/i386/i386.c (function_arg_advance_64): Use ROUND_UP macro
12797         to align values.
12798         (ix86_compute_frame_layout): Ditto.
12799         (ix86_expand_prologue): Ditto.
12800         (ix86_adjust_stack_and_probe): Use ROUND_DOWN macro
12801         to round down values.
12802         (expand_set_or_movmem_via_rep): Ditto.
12804 2015-10-02  Marek Polacek  <polacek@redhat.com>
12806         * genemit.c (gen_exp): Remove -Wduplicated-cond hack.
12808 2015-10-02  Aditya Kumar  <aditya.k7@samsung.com>
12810         * graphite-scop-detection.c (loop_ivs_can_be_represented): New.
12811         (loop_body_is_valid_scop): Call loop_ivs_can_be_represented.
12812         * graphite-sese-to-poly.c (new_gimple_bb): Renamed new_gimple_poly_bb.
12813         (free_gimple_bb): Renamed free_gimple_poly_bb.
12814         (try_generate_gimple_bb): Hoist loop invariant code.
12815         (analyze_drs_in_stmts): Same.
12816         (build_scop_drs): Call renamed functions.
12817         (new_pbb_from_pbb): Same.
12818         (scop_ivs_can_be_represented): Delete as functionality now moved to
12819         graphite-scop-detection.c
12820         (build_poly_scop): Remove call to scop_ivs_can_be_represented.
12822 2015-10-02  Aditya Kumar  <hiraditya@msn.com>
12824         * graphite-scop-detection.c (stmt_has_side_effects): New function
12825           outlined from stmt_simple_for_scop_p.
12826         (graphite_can_represent_stmt): Same.
12827         (stmt_simple_for_scop_p): Moved code out of this function for better
12828         readability.
12830 2015-10-02  Kirill Yukhin  <kirill.yukhin@intel.com>
12832         * config/i386/i386.c (processor_features): Add F_AVX512VBMI,
12833         F_AVX512IFMA.
12834         (isa_names_table): Handle F_AVX512VBMI and F_AVX512IFMA.
12836 2015-10-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12838         * config/aarch64/aarch64-elf.h (TARGET_ASM_NAMED_SECTION): Delete.
12840 2015-10-02  Vladimir Makarov  <vmakarov@redhat.com>
12842         PR rtl-optimization/67756
12843         * lra-constraints.c (match_reload): Add a new parameter.  Use it
12844         for creating a pseudo with the same value.
12845         (curr_insn_transform): Pass a new argument to match_reload.
12847 2015-10-02  Kirill Yukhin  <kirill.yukhin@intel.com>
12849         * config/i386/i386.c (expand_vec_perm_even_odd_trunc): New.
12850         (expand_vec_perm_even_odd_1): Handle V64QImode.
12851         (ix86_expand_vec_perm_const_1): Try expansion with
12852         expand_vec_perm_even_odd_trunc as well.
12853         * config/i386/sse.md (VI124_AVX512F): Rename to ...
12854         (define_mode_iterator VI124_AVX2_24_AVX512F_1_AVX512BW): This. Extend
12855         to V54QI.
12856         (define_mode_iterator VI248_AVX2_8_AVX512F): Rename to ...
12857         (define_mode_iterator VI248_AVX2_8_AVX512F_24_AVX512BW): This. Extend
12858         to V32HI and V16SI.
12859         (define_insn "avx512bw_<code>v32hiv32qi2"): Unhide pattern name.
12860         (define_expand "vec_pack_trunc_<mode>"): Update iterator name.
12861         (define_expand "vec_unpacks_lo_<mode>"): Ditto.
12862         (define_expand "vec_unpacks_hi_<mode>"): Ditto.
12863         (define_expand "vec_unpacku_lo_<mode>"): Ditto.
12864         (define_expand "vec_unpacku_hi_<mode>"): Ditto.
12866 2015-10-02  Kirill Yukhin  <kirill.yukhin@intel.com>
12868         * doc/invoke.texi: Mention -mavx512vl, -mavx512bw, -mavx512dq,
12869         -mavx521vbmi, -mavx512ifma. Add missing opindex-es.
12871 2015-10-02  Jason Merrill  <jason@redhat.com>
12873         PR c/59218
12874         * trans-mem.c (volatile_lvalue_p): Rename from volatile_var_p.
12875         (diagnose_tm_1_op): Also diagnose volatile accesses in
12876         transaction_safe function.
12878 2015-10-02  Jonathan Wakely  <jwakely@redhat.com>
12880         * system.h (malloc.h): Don't include obsolete header.
12882 2015-10-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12884         * config/aarch64/aarch64.c (aarch64_elf_asm_named_section): Delete.
12885         (TLS_SECTION_ASM_FLAG): Delete.
12887 2015-10-02  Marek Polacek  <polacek@redhat.com>
12889         PR c/64249
12890         * doc/invoke.texi: Document -Wduplicated-cond.
12891         * Makefile.in (insn-latencytab.o): Use -Wno-duplicated-cond.
12892         (insn-dfatab.o): Likewise.
12893         * genemit.c (gen_exp): Rewrite condition to avoid -Wduplicated-cond
12894         warning.
12896 2015-10-02  Oleg Endo  <olegendo@gcc.gnu.org>
12898         * config/sh/sh.md: Add new unnamed split pattern to handle movt-movt
12899         sequences.
12901 2015-10-02  Renlin Li  <renlin.li@arm.com>
12903         * config/aarch64/aarch64.md (csneg3_insn_uxtw): New pattern.
12905 2015-10-02  Renlin Li  <renlin.li@arm.com>
12907         PR target/66776
12908         * config/aarch64/aarch64.md (cmovdi_insn_uxtw): New pattern.
12910 2015-10-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12912         PR rtl-optimization/67786
12913         PR rtl-optimization/67787
12914         * ifcvt.c (bb_valid_for_noce_process_p): Reject basic block if
12915         it modifies a reg used in the condition calculation.
12917 2015-10-02  James Greenhalgh  <james.greenhalgh@arm.com>
12919         * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Add
12920         alternatives for reads from memory and moves from general-purpose
12921         registers.
12922         (*aarch64_combinez_be<mode>): Likewise.
12924 2015-10-02  Kai Tietz  <ktietz70@googlemail.com>
12926         PR target/51726
12927         * config/i386/winnt.c (ix86_handle_selectany_attribute): Handle
12928         selectany within this function without need to keep attribute.
12929         (i386_pe_encode_section_info): Remove selectany-code.
12931 2015-10-02  Richard Biener  <rguenther@suse.de>
12933         * tree-ssa-sccvn.c (has_VN_INFO): New function.
12934         (free_scc_vn): Use it.
12935         (visit_use): Remove dead code and refactor to use gassign
12936         and use less indentation.
12938 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
12940         PR target/67788
12941         PR target/67789
12942         * config/rs6000/rs6000.c (TARGET_CANNOT_COPY_INSN_P): New.
12943         (rs6000_cannot_copy_insn_p): New function.
12944         * config/rs6000/rs6000.md (cannot_copy): New attribute.
12945         (load_toc_v4_PIC_1_normal): Set cannot_copy.
12946         (load_toc_v4_PIC_1_476): Ditto.
12948 2015-10-01  Aditya Kumar  <aditya.k7@samsung.com>
12950         * graphite-scop-detection.c (struct sese_l): New conversion constructor
12951         so that this type can be pushed into a vec.
12952         (class scop_builder): use sese_l to collect scops.
12953         (get_scops): New getter function.
12954         (remove_intersecting_scops): Use sese_l instead of scops_p.
12955         (intersects): Same.
12956         (add_scop): Same.
12957         (subsumes): Same.
12958         (remove_subscops): Same.
12959         (build_scops): Add scops to vec<scops_p> once all the scops have been
12960         detected.
12962 2015-10-01  Aditya Kumar  <aditya.k7@samsung.com>
12964         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
12965         Renamed type from gimple_bb_p to gimple_poly_bb_p.
12966         (translate_isl_ast_node_user): Same.
12967         * graphite-poly.c (new_poly_bb): Same.
12968         * graphite-poly.h (gbb_from_bb): Same.
12969         * sese.h: Same.
12970         * graphite-sese-to-poly.c (new_gimple_bb):
12971         gimple_bb_p -> gimple_poly_bb_p
12972         (build_scop_scattering): Same.
12973         (find_params_in_bb): Same.
12974         (add_conditions_to_domain): Same.
12975         (sese_dom_walker::before_dom_children): Same.
12976         (analyze_drs_in_stmts): Same.
12977         (new_pbb_from_pbb): Same.
12978         (free_data_refs_aux): New pointer to type base_alias_pair.
12979         * graphite-sese-to-poly.h: Same.
12980         * sese.c (if_region_set_false_region): Fixed Indentation.
12981         (move_sese_in_condition): Same.
12983 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
12984             Aditya Kumar  <aditya.k7@samsung.com>
12986         PR tree-optimization/66980
12987         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Return false
12988         when data reference analysis has failed.
12990 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
12991             Aditya Kumar  <aditya.k7@samsung.com>
12993         PR tree-optimization/67754
12994         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Call
12995         scev analysis on the same loop nest as analyze_drs_in_stmts.
12996         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): Moved and
12997         renamed...
12998         (try_generate_gimple_bb): Call outermost_loop_in_sese.
12999         (analyze_drs_in_stmts): Same.
13000         * sese.c (outermost_loop_in_sese): ...here.
13002 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
13003             Aditya Kumar  <aditya.k7@samsung.com>
13005         PR tree-optimization/67754
13006         * graphite-scop-detection.c (loop_body_is_valid_scop): Add missing
13007         recursion on the inner loops.
13009 2015-10-01  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13011         * cfganal.c, compare-elim.c, coverage.c, cprop.c, df-scan.c,
13012         function.c, read-rtl.c, statistics.c, trans-mem.c, tree-if-conv.c,
13013         tree-into-ssa.c, tree-loop-distribution.c, tree-ssa-coalesce.c,
13014         tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-strlen.c,
13015         tree-ssa-tail-merge.c, tree-vrp.c, var-tracking.c: Remove
13017 2015-10-01  Marek Polacek  <polacek@redhat.com>
13019         PR c/65345
13020         * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Adjust to use
13021         create_tmp_var_raw rather than create_tmp_var.
13023 2015-10-01  Marek Polacek  <polacek@redhat.com>
13025         PR tree-optimization/67769
13026         * tree-ssa-phiopt.c (conditional_replacement): Call
13027         reset_flow_sensitive_info_in_bb.
13028         (minmax_replacement): Likewise.
13029         (abs_replacement): Likewise.
13031 2015-10-01  Nathan Sidwell  <nathan@codesourcery.com>
13033         * builtins.c: Don't include gomp-constants.h.
13034         (fold_builtin_1): Don't fold acc_on_device here.
13035         * gimple-fold.c: Include gomp-constants.h.
13036         (gimple_fold_builtin_acc_on_device): New.
13037         (gimple_fold_builtin): Call it.
13039 2015-10-01  H.J. Lu  <hongjiu.lu@intel.com>
13041         * config/i386/x86-tune.def (X86_TUNE_USE_BT): Enable for Lakemont.
13042         (X86_TUNE_ZERO_EXTEND_WITH_AND): Disable for Lakemont.
13044 2015-10-01  James Greenhalgh  <james.greenhalgh@arm.com>
13046         * config/arm/aarch-common-protos.h
13047         (aarch_accumulator_forwarding): New.
13048         (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
13049         * config/arm/aarch-common.c (aarch_accumulator_forwarding): New.
13050         (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
13051         * config/arm/cortex-a53.md: Rewrite.
13053 2015-10-01  Richard Biener  <rguenther@suse.de>
13055         * gimple-match.h (mprts_hook): Declare.
13056         * gimple-match.head.c (mprts_hook): Define.
13057         (maybe_push_res_to_seq): Use new hook.
13058         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
13059         * tree-ssa-sccvn.h (vn_ssa_aux::expr): Change to a gimple_seq.
13060         (vn_ssa_aux::has_constants): Remove.
13061         * tree-ssa-sccvn.c: Include gimple-match.h.
13062         (VN_INFO_GET): Assert we don't re-use SSA names.
13063         (vn_get_expr_for): Remove.
13064         (expr_has_constants): Likewise.
13065         (stmt_has_constants): Likewise.
13066         (simplify_binary_expression): Likewise.
13067         (simplify_unary_expression): Likewise.
13068         (vn_lookup_simplify_result): New hook.
13069         (visit_copy): Adjust.
13070         (visit_reference_op_call): Likewise.
13071         (visit_phi): Likewise.
13072         (visit_use): Likewise.
13073         (process_scc): Likewise.
13074         (init_scc_vn): Likewise.
13075         (visit_reference_op_load): Likewise.  Use match-and-simplify and
13076         a gimple seq for inserted expressions.
13077         (try_to_simplify): Remove GENERIC stmt combining code.
13078         (sccvn_dom_walker::before_dom_children): Use match-and-simplify.
13079         * tree-ssa-pre.c (eliminate_insert): Adjust.
13080         (eliminate_dom_walker::before_dom_children): Likewise.
13082 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
13084         * doc/invoke.texi (Optimization Options): Add
13085         -freorder-blocks-algorithm=.
13086         (Optimize Options) <-O>: Add -freorder-blocks.
13087         <-O2>: Remove -freorder-blocks.  Add -freorder-blocks-algorithm=stc.
13088         <-Os>: Add -freorder-blocks-algorithm=stc as not enabled.
13089         <-freorder-blocks>: Also enabled at levels -O and -Os.
13090         <-freorder-blocks-algorithm=>: Document new option.
13092 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
13094         * bb-reorder.c (reorder_basic_blocks): Use the algorithm selected
13095         with flag_reorder_blocks_algorithm.
13096         * common.opt (freorder-blocks-algorithm=): New flag.
13097         (reorder_blocks_algorithm): New enum.
13098         * flag-types.h (reorder_blocks_algorithm): New enum.
13099         * opts.c (default_options_table): Use -freorder-blocks at -O1 and up,
13100         and -freorder-blocks-algorithm=stc at -O2 and up (not at -Os).
13102 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
13104         * bb-reorder.c: Add intro comment.
13105         (reorder_basic_blocks_software_trace_cache): Print a header to
13106         the dump file.
13107         (edge_order): New function.
13108         (reorder_basic_blocks_simple): New function.
13109         (reorder_basic_blocks): Choose between the STC and the simple
13110         algorithms (always choose the former).
13112 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
13114         * bb-reorder.c (reorder_basic_blocks_software_trace_cache): New
13115         function, factored out from ...
13116         (reorder_basic_blocks): ... here.
13118 2015-10-01  Tom de Vries  <tom@codesourcery.com>
13120         * tree-cfg.c (dump_function_to_file): Dump function attributes using
13121         __attribute__(()) string.  Move dumping of function attributes to before
13122         function name.
13124 2015-10-01  Lynn Boger  <laboger@linux.vnet.ibm.com>
13126         PR target/66870
13127         * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Define.
13128         * configure.ac: Define HAVE_GOLD_ALTERNATE_SPLIT_STACK on Power
13129         based on gold linker version.
13130         * gcc.c: Add -fuse-ld=gold to STACK_SPLIT_SPEC if
13131         HAVE_GOLD_ALTERNATE_SPLIT_STACK defined.
13132         * configure, config.in: Regenerate.
13134 2015-10-01  Alan Modra  <amodra@gmail.com>
13136         * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't set
13137         r2_setup_needed when TARGET_SINGLE_PIC_BASE.
13138         (rs6000_output_mi_thunk): Likewise.
13140 2015-09-30  Nathan Sidwell  <nathan@codesourcery.com>
13142         * config/nvptx/mkoffload.c (process): Change offload data format.
13144 2015-09-30  Jeff Law  <law@redhat.com>
13146         * tree-ssa-dom.c (optimize_stmt): Collapse control flow statements
13147         with constant conditions.
13148         * tree-ssa-threadupdate.c (remove_jump_threads_starting_at): New.
13149         (remove_ctrl_stmt_and_useless_edges): No longer static.
13150         * tree-ssa-threadupdate.h (remove_jump_threads_starting_at): Prototype.
13151         (remove_ctrl_stmt_and_useless_edges): Likewise.
13153 2015-09-30  Nathan Sidwell  <nathan@codesourcery.com>
13154             Cesar Philippidis  <cesar@codesourcery.com>
13156         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): New.
13157         (TARGET_GOACC_VALIDATE_DIMS): Override.
13158         * target.def (TARGET_GOACC): New target hook prefix.
13159         (validate_dims): New hook.
13160         * targhooks.h (default_goacc_validate_dims): New.
13161         * omp-low.c (oacc_validate_dims): New.
13162         (execute_oacc_device_lower): New.
13163         (default_goacc_validate_dims): New.
13164         (pass_data_oacc_device_lower): New.
13165         (pass_oacc_device_lower): New pass.
13166         (make_pass_oacc_device_lower): New.
13167         * tree-pass.h (make_pass_oacc_device_lower): Declare.
13168         * passes.def (pass_oacc_device_lower): Add it.
13169         * doc/tm.texi: Rebuilt.
13170         * doc/tm.texi.in (TARGET_GOACC_VALIDATE_DIMS): Add hook.
13171         * doc/invoke.texi (oaccdevlow): Document tree dump flag.
13173 2015-09-30  Bernd Edlinger  <bernd.edlinger@hotmail.de>
13175         PR rtl-optimization/67037
13176         * lra-constraints.c (process_addr_reg): Use copy_rtx when necessary.
13178 2015-09-30  Bernd Schmidt  <bernds@redhat.com>
13180         * gimple-ssa.h (gimple_df): Add free_ssanames_queue field.
13181         * passes.c: Include tree-ssanames.h.
13182         (execute_function_todo): Flush the pending free SSA_NAMEs after
13183         eliminating unreachable basic blocks.
13184         * tree-ssanames.c (FREE_SSANAMES_QUEUE): new.
13185         (init_ssanames): Initialize FREE_SSANAMES_QUEUE.
13186         (fini_ssanames): Finalize FREE_SSANAMES_QUEUE.
13187         (flush_ssanames_freelist): New function.
13188         (release_ssaname_fn): Put released names on the queue.
13189         (pass_release_ssa_names::execute): Call flush_ssanames_freelist.
13190         * tree-ssanames.h (flush_ssanames_freelist): Declare.
13192 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
13194         * config/i386/intelmic-mkoffload.c (main): Parse "-v" flag.
13195         (generate_target_descr_file, generate_target_offloadend_file)
13196         (generate_host_descr_file, prepare_target_image): Pass it on.
13197         * config/nvptx/mkoffload.c (main): Parse "-v" flag.
13198         (compile_native, main): Pass it on.
13199         * lto-wrapper.c (compile_offload_image): Likewise.
13201 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
13202             Ilya Verbin  <ilya.verbin@intel.com>
13203             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13205         * config/i386/intelmic-mkoffload.c (generate_host_descr_file)
13206         (prepare_target_image, main): Refactor argv building to use
13207         obstacks.
13209 2015-09-30  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13211         * config/spu/spu-protos.h (spu_expand_atomic_op): Add prototype.
13212         * config/spu/spu.c (spu_expand_atomic_op): New function.
13213         * config/spu/spu.md (AINT): New mode iterator.
13214         (ATOMIC): New code iterator.
13215         (atomic_name, atomic_pred): New code predicates.
13216         ("atomic_load<mode>", "atomic_store<mode>"): New expanders.
13217         ("atomic_compare_and_swap<mode>", "atomic_exchange<mode>"): Likewise.
13218         (""atomic_<atomic_name><mode>", "atomic_fetch_<atomic_name><mode>",
13219         "atomic_<atomic_name>_fetch<mode>"): Likewise.
13221 2015-09-30  Ilya Enkovich  <enkovich.gnu@gmail.com>
13223         * config/i386/i386.c (scalar_chain::analyze_register_chain): Ignore
13224         debug insns.
13225         (scalar_chain::convert_reg): Likewise.
13227 2015-09-30  Richard Biener  <rguenther@suse.de>
13229         * builtins.c: Add comment that no new simplifications should
13230         be added here.
13232 2015-09-30  Marek Polacek  <polacek@redhat.com>
13234         PR tree-optimization/67690
13235         * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): Call
13236         reset_flow_sensitive_info_in_bb.
13237         * tree-ssa-tail-merge.c (replace_block_by): Likewise.
13238         * tree-ssanames.c: Include "gimple-iterator.h".
13239         (reset_flow_sensitive_info_in_bb): New function.
13240         * tree-ssanames.h (reset_flow_sensitive_info_in_bb): Declare.
13242 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
13244         * config/i386/intelmic-mkoffload.c (target_ilp32): Remove
13245         variable, replacing it with...
13246         (offload_abi): ... this new variable.  Adjust all users.
13247         * config/nvptx/mkoffload.c (target_ilp32, offload_abi): Likewise.
13249 2015-09-30  Matthias Klose  <doko@ubuntu.com>
13251         * configure.ac: Remove extraneous ;;.
13252         * configure: Regenerate.
13254 2015-09-29  James Bowman  <james.bowman@ftdichip.com>
13256         * config/ft32/predicates.md (ft32_imm_operand): New predicate.
13257         * config/ft32/ft32.md (movmemsi, setmemsi): Use ft32_imm_operand
13258         predicate, disallow register for operand 2.
13260 2015-09-29  Aditya Kumar  <aditya.k7@samsung.com>
13262         * graphite-dependences.c (scop_get_dependences): Moved in down
13263         in order to be visible to its caller.
13264         * graphite-poly.h: Removed compute_deps, and extend_schedule.
13266 2015-09-29  Sebastian Pop  <s.pop@samsung.com>
13267             Aditya Kumar  <aditya.k7@samsung.com>
13269         PR tree-optimization/67754
13270         * graphite-optimize-isl.c (optimize_isl): Call
13271         isl_options_set_schedule_fuse with ISL_SCHEDULE_FUSE_MIN for ISL-14.
13273 2015-09-29  Nathan Sidwell  <nathan@codesourcery.com>
13275         * builtins.c (expand_builtin_acc_on_device): Delete.
13276         (expand_builtin): Don't call it.
13277         (fold_builtin_1): Fold acc_on_device.
13279 2015-09-29  H.J. Lu  <hongjiu.lu@intel.com>
13281         * config/i386/i386.c (ix86_function_arg): Fix typo in comments.
13282         (ix86_nsaved_sseregs): Likewise.
13284 2015-09-29  Jeff Law  <law@redhat.com>
13286         * config/microblaze/microblaze.c (microblaze_version_to_int): Remove
13287         computation of unused value.
13289         * config/pdp11/pdp11.c (pdp11_branch_cost): New function.
13290         * config/pdp11/pdp11.h (BRANCH_COST): Call function rather than
13291         inline macro expansion.
13293         * config/i386/t-interix (winnt-stubs.o): Fix compilation rule.
13295         * config/sh/sh.c (gen_shl_and): Fix undefined left shift behaviour.
13296         (gen_shl_sext): Likewise.
13297         * config/sh/sh.md (divsi3): Likewise.
13298         (imm->ext_dest_operand splitter): Likewise.
13300 2015-09-29  Sebastian Pop  <s.pop@samsung.com>
13301             Aditya Kumar  <aditya.k7@samsung.com>
13303         * graphite-sese-to-poly.c (gsi_for_phi_node): Remove.
13304         (nb_data_writes_in_bb): Remove.
13305         (split_pbb): Remove.
13306         (split_reduction_stmt): Remove.
13307         (is_reduction_operation_p): Remove.
13308         (phi_contains_arg): Remove.
13309         (follow_ssa_with_commutative_ops): Remove.
13310         (detect_commutative_reduction_arg): Remove.
13311         (detect_commutative_reduction_assign): Remove.
13312         (follow_inital_value_to_phi): Remove.
13313         (edge_initial_value_for_loop_phi): Remove.
13314         (initial_value_for_loop_phi): Remove.
13315         (used_outside_reduction): Remove.
13316         (detect_commutative_reduction): Remove.
13317         (translate_scalar_reduction_to_array_for_stmt): Remove.
13318         (remove_phi): Remove.
13319         (dr_indices_valid_in_loop): Remove.
13320         (close_phi_written_to_memory): Remove.
13321         (translate_scalar_reduction_to_array): Remove.
13322         (rewrite_commutative_reductions_out_of_ssa_close_phi): Remove.
13323         (rewrite_commutative_reductions_out_of_ssa_loop): Remove.
13324         (rewrite_commutative_reductions_out_of_ssa): Remove.
13325         (build_poly_scop): Remove call to
13326         rewrite_commutative_reductions_out_of_ssa.
13328 2015-09-29  Evandro Menezes  <e.menezes@samsung.com>
13330         * config/arm/types.md (neon_ldp, neon_ldp_q, neon_stp, neon_stp_q):
13331         Add new insn types for vector load and store pairs.
13332         * config/arm/cortex-a53.md (cortex_a53_f_load_2reg): Add insn
13333         types "neon_ldp{,_q}".
13334         * config/arm/cortex-a57.md (neon_load_c): Add insn types
13335         "neon_ldp{,_q}".
13336         (neon_store_complex): Add insn types "neon_stp{,_q}".
13337         * config/aarch64/aarch64-simd.md (aarch64_be_movoi): Add insn types
13338         "neon_{ldp,stp}_q".
13340 2015-09-29  Jeff Law  <law@redhat.com>
13342         * config/rx/constraints.md (Int08): Fix undefined left shift
13343         behaviour.
13344         (Sint08, Sint16, Sint24): Likewise.
13345         * config/rx/rx.c (rx_get_stack_layout): Likewise.
13347         * config/rl78/rl78-expand.md (movqi): Fix undefined left shift
13348         behaviour.
13350         * config/msp430/msp430.c (msp430_legitimate_constant): Fix undefined
13351         left shift behaviour.
13352         * config/msp430/constraints.md ('L' constraint): Similarly.
13353         ('Ys' constraint): Similarly.
13355 2015-09-29  Richard Biener  <rguenther@suse.de>
13357         PR tree-optimization/67170
13358         * tree-ssa-alias.h (get_continuation_for_phi): Adjust
13359         the translate function pointer parameter to get the
13360         bool whether to disambiguate only by reference.
13361         (walk_non_aliased_vuses): Likewise.
13362         * tree-ssa-alias.c (maybe_skip_until): Adjust.
13363         (get_continuation_for_phi_1): Likewise.
13364         (get_continuation_for_phi): Likewise.
13365         (walk_non_aliased_vuses): Likewise.
13366         * tree-ssa-sccvn.c (const_parms): New bitmap.
13367         (vn_reference_lookup_3): Adjust for interface change.
13368         Disambiguate parameters pointing to readonly memory.
13369         (free_scc_vn): Free const_parms.
13370         (run_scc_vn): Initialize const_parms from a fn spec attribute.
13372 2015-09-29  Richard Biener  <rguenther@suse.de>
13374         PR tree-optimization/67741
13375         * tree-ssa-math-opts.c (pass_cse_sincos::execute): Only recognize
13376         builtin calls with correct signature.
13378 2015-09-29  Ilya Enkovich  <enkovich.gnu@gmail.com>
13380         PR target/65105
13381         * config/i386/i386.c: Include dbgcnt.h.
13382         (has_non_address_hard_reg): New.
13383         (convertible_comparison_p): New.
13384         (scalar_to_vector_candidate_p): New.
13385         (remove_non_convertible_regs): New.
13386         (scalar_chain): New.
13387         (scalar_chain::scalar_chain): New.
13388         (scalar_chain::~scalar_chain): New.
13389         (scalar_chain::add_to_queue): New.
13390         (scalar_chain::mark_dual_mode_def): New.
13391         (scalar_chain::analyze_register_chain): New.
13392         (scalar_chain::add_insn): New.
13393         (scalar_chain::build): New.
13394         (scalar_chain::compute_convert_gain): New.
13395         (scalar_chain::replace_with_subreg): New.
13396         (scalar_chain::replace_with_subreg_in_insn): New.
13397         (scalar_chain::emit_conversion_insns): New.
13398         (scalar_chain::make_vector_copies): New.
13399         (scalar_chain::convert_reg): New.
13400         (scalar_chain::convert_op): New.
13401         (scalar_chain::convert_insn): New.
13402         (scalar_chain::convert): New.
13403         (convert_scalars_to_vector): New.
13404         (pass_data_stv): New.
13405         (pass_stv): New.
13406         (make_pass_stv): New.
13407         (ix86_option_override): Created and register stv pass.
13408         (flag_opts): Add -mstv.
13409         (ix86_option_override_internal): Likewise.
13410         * config/i386/i386.md (SWIM1248x): New.
13411         (*movdi_internal): Add xmm to mem alternative for TARGET_STV.
13412         (and<mode>3): Use SWIM1248x iterator instead of SWIM.
13413         (*anddi3_doubleword): New.
13414         (*zext<mode>_doubleword): New.
13415         (*zextsi_doubleword): New.
13416         (<code><mode>3): Use SWIM1248x iterator instead of SWIM.
13417         (*<code>di3_doubleword): New.
13418         * config/i386/i386.opt (mstv): New.
13419         * dbgcnt.def (stv_conversion): New.
13421 2015-09-29  Tom de Vries  <tom@codesourcery.com>
13423         * tree-cfg.c (dump_function_to_file): Dump function attributes.
13425 2015-09-29  Kaz Kojima  <kkojima@gcc.gnu.org>
13427         PR target/67716
13428         * config/sh/sh.c (sh_override_options_after_change): New.
13429         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
13430         (sh_option_override): Move align_loops, align_jumps and
13431         align_functions handling into sh_override_options_after_change.
13433 2015-09-28  Nathan Sidwell  <nathan@codesourcery.com>
13435         * config/nvptx/nvptx.c: Include omp-low.h and gomp-constants.h.
13436         (nvptx_record_offload_symbol): Record function execution geometry.
13437         * config/nvptx/mkoffload.c (process): Include launch geometry in
13438         function data.
13439         * omp-low.c (oacc_launch_pack): New.
13440         (replace_oacc_fn_attrib): New.
13441         (set_oacc_fn_attrib): New.
13442         (get_oacc_fn_attrib): New.
13443         (expand_omp_target): Create keyed varargs for GOACC_parallel call
13444         generation.
13445         * omp-low.h (get_oacc_fn_attrib): Declare.
13446         * builtin-types.def (DEF_FUNCTION_TyPE_VAR_6): New.
13447         (DEF_FUNCTION_TYPE_VAR_11): Delete.
13448         * tree.h (OMP_CLAUSE_EXPR): New.
13449         * omp-builtins.def (BUILT_IN_GOACC_PARALLEL): Change target fn name.
13451 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
13452             Sebastian Pop  <s.pop@samsung.com>
13454         * sese.c (invariant_in_sese_p_rec): Remove unused variable.
13456 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
13457             Sebastian Pop  <s.pop@samsung.com>
13459         * graphite-optimize-isl.c (optimize_isl): Use ISL_SCHEDULE_FUSE_MAX.
13460         * graphite-scop-detection.c (struct sese_l): New type.
13461         (get_entry_bb): API for getting entry bb of SESE.
13462         (get_exit_bb): API for getting exit bb of SESE.
13463         (class debug_printer): New type.  Simple printer in debug mode.
13464         (trivially_empty_bb_p): New.  Return true when BB is empty or
13465         contains only debug instructions.
13466         (graphite_can_represent_expr): Call scalar_evoution_in_region
13467         instead of analyze_scalar_evolution.  Pass in scop instead of only
13468         the scop entry.
13469         (stmt_has_simple_data_refs_p): Pass in scop instead of only the
13470         scop entry.
13471         (stmt_simple_for_scop_p): Same.
13472         (harmful_stmt_in_bb): Same.
13473         (graphite_can_represent_loop): Deleted.
13474         (struct scopdet_info): Deleted.
13475         (scopdet_basic_block_info): Deleted.
13476         (build_scops_1): Deleted.
13477         (bb_in_sd_region): Deleted.
13478         (find_single_entry_edge): Deleted.
13479         (find_single_exit_edge): Deleted.
13480         (create_single_entry_edge): Deleted.
13481         (sd_region_without_exit): Deleted.
13482         (create_single_exit_edge): Deleted.
13483         (unmark_exit_edges): Deleted.
13484         (mark_exit_edges): Deleted.
13485         (create_sese_edges): Deleted.
13486         (build_graphite_scops): Deleted.
13487         (canonicalize_loop_closed_ssa): Recompute all dominators at the end.
13488         (build_scops): Use the new scop_builder to build scops.
13489         (dot_all_scops_1): Use the new pretty printer.  Print loop father
13490         as well.
13491         (loop_body_is_valid_scop): New.  Return true if loop body is a
13492         valid scop.
13493         (class scop_builder): New.  Builds SCoPs for polyhedral
13494         optimizations.
13495         (scop_builder): New constructor.
13496         (static sese_l invalid_sese): sese_l with invalid edges.
13497         (get_sese): Get an sese (from a loop) if possible, invalid_sese
13498         otherwise.
13499         (get_nearest_dom_with_single_entry): Get nearest dominator of a
13500         basic_block with single entry.  Return NULL if we get to the
13501         beginning of a function.
13502         (get_nearest_pdom_with_single_exit): Get nearest post-dominator of
13503         a basic_block with single exit.  Return NULL if we get to the
13504         beginning of a function.
13505         (print_sese): Pretty-print SESE.
13506         (merge_sese): Merge two SESEs if possible and return the new SESE.
13507         (build_scop_depth): Start building the SCoP within a loop nest.
13508         (build_scop_breadth): Start building the SCoP at a single loop
13509         depth.  Merge adjacent SESEs if valid.
13510         (can_represent_loop_1): Returns true if Graphite can represent
13511         loop inside SCoP.  Helper for can_represent_loop.
13512         (can_represent_loop): Returns true if Graphite can represent LOOP
13513         and all its nested loops in SCoP.
13514         (loop_is_valid_scop): Returns true if LOOP and all its nests
13515         constitute a valid SCoP.
13516         (region_has_one_loop): Returns true of a region has only one loop.
13517         (add_scop): Add SCoP to the list of valid scops.  Removes an
13518         already existing scop if it intersects with or subsumed by this one.
13519         (harmful_stmt_in_region): Returns true if SCoP has any statment
13520         which cannot be represented by Graphite.
13521         (subsumes): Returns true of SCoP S1 subsumes SCoP S2.
13522         (remove_subscops): Remove any SCoP from the list of already found
13523         SCoPs, if subsumed by S1.
13524         (intersects): Return true if region bounded by SCoPs S1 and S2
13525         intersect.
13526         (remove_intersecting_scops): Remove any SCoP which intersects with S1.
13527         * graphite.c (print_graphite_scop_statistics):
13528         (print_graphite_statistics): Print SCoP info while debugging.
13529         (graphite_initialize): Early exit in case number of loops in a
13530         function is less than PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION or
13531         basic blocks are more than PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
13532         (graphite_finalize):
13533         * params.def: Add PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION.
13534         * sese.h (sese_loop_depth): Remove unnecessary gcc_assert.
13535         (recompute_all_dominators): Recalculate POST_DOMINATORS.
13536         * tree-cfg.c (print_loops): Print the function name while printing
13537         loops.
13539 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
13540             Sebastian Pop  <s.pop@samsung.com>
13542         PR tree-optimization/67700
13543         * graphite-sese-to-poly.c (parameter_index_in_region): Call
13544         invariant_in_sese_p_rec.
13545         (extract_affine): Same.
13546         (rewrite_cross_bb_scalar_deps): Call update_ssa.
13547         * sese.c (invariant_in_sese_p_rec): Export.  Handle vdefs and vuses.
13548         * sese.h (invariant_in_sese_p_rec): Declare.
13550 2015-09-28  David Wohlferd  <dw@LimeGreenSocks.com>
13552         * doc/extend.texi (Asm Labels): Break out text for data vs functions.
13554 2015-09-28  Jiong Wang  <jiong.wang@arm.com>
13556         Revert:
13557         2015-08-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13558                     Jiong Wang  <jiong.wang@arm.com>
13560         * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
13561         * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
13562         (REG_CLASS_NAMES): Likewise.
13563         (REG_CLASS_CONTENTS): Likewise.
13564         * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
13565         (aarch64_register_move_cost): Likewise.
13566         (aarch64_load_symref_appropriately): Invoke the new added pattern if
13567         possible.
13568         * config/aarch64/constraints.md (Uc0): New constraint.
13570 2015-09-28  Daniel Hellstrom  <daniel@gaisler.com>
13572         * config/sparc/t-rtems: Remove -muser-mode. Add ut699, at697f and leon.
13574 2015-09-28  David Edelsohn  <dje.gcc@gmail.com>
13576         * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
13577         SECTION_EXCLUDE in XO mapping class.
13579 2015-09-28  Oleg Endo  <olegendo@gcc.gnu.org>
13581         PR target/54236
13582         * config/sh/predicates.md (t_reg_operand, negt_reg_operand): Allow
13583         and handle ne and eq codes.
13584         * config/sh/sh.c (sh_rtx_costs): Adjust matching of tst #imm,r0 insn.
13585         (sh_recog_treg_set_expr): Early accept negt_reg_operand.  Eearly reject
13586         CONST_INT_P.  Use reverse_condition.
13587         (sh_split_treg_set_expr): Likewise.
13589 2015-09-28  James Greenhalgh  <james.greenhalgh@arm.com>
13591         * config/arm/types.md (type): Add rotate_imm.
13592         * config/aarch64/aarch64.md (*ror<mode>3_insn): Split out the
13593         ROR immediate case.
13594         (*rorsi3_insn_uxtw): Likewise.
13595         * config/aarch64/thunderx.md (thunderx_shift): Add rotate_imm.
13596         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add rotate_imm.
13597         * config/arm/cortex-a57.md (cortex_a53_alu): Add rotate_imm.
13599 2015-09-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13601         PR rtl-optimization/67481
13602         * ifcvt.c (contains_ccmode_rtx_p): New function.
13603         (insn_valid_noce_process_p): Use it.
13605 2015-09-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13607         PR rtl-optimization/67456
13608         PR rtl-optimization/67464
13609         PR rtl-optimization/67465
13610         * ifcvt.c (noce_try_cmove_arith): Bail out if cannot conditionally
13611         move in the mode of x.  Handle combination of complex and simple
13612         block pairs as well as the case when one is empty.
13614 2015-09-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13616         * doc/gimple.texi: Update references to gimple_statement_base.
13617         * gdbhooks.py: Likewise.
13618         * gimple.h: Likewise.
13620 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
13622         * config/sparc/driver-sparc.c: map LEON to leon3
13624 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
13626         * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
13627           and make it inverse to change default
13628         * config/sparc/sync.md: Only use supervisor ASI for CASA when in
13629           supervisor mode
13630         * doc/invoke.texi: Document change of default
13632 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
13634         * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
13635         true on %f0 for a target without FPU.
13636         * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
13637         without FPU.
13638         (untyped_return): Do not load %f0 for a target without FPU.
13640 2015-09-28  Andrew Pinski  <apinski@cavium.com>
13642         * config/aarch64/aarch64.md (prefetch):
13643         Change the predicate of operand 0 to register_operand.
13645 2015-09-27  Uros Bizjak  <ubizjak@gmail.com>
13647         * config/i386/predicates.md (register_sse4nonimm_operand): New
13648         predicate.
13649         * config/i386/sse.md (PEXTR_MODE12): New mode iterator.
13650         (*vec_extract<mode>): Use PEXTR_MODE12 instead of VI12_128 mode.
13651         Use register_sse4nonimm_operand as operand 0 predicate.
13652         (*vec_extractv8hi_sse2): Remove insn pattern.
13653         (*vec_extract<PEXTR_MODE12:mode>_zext): Merge insn pattern from
13654         *vec_extractv8hi_zext and *vec_extractv16qi_zext patterns.
13656 2015-09-27  Oleg Endo  <olegendo@gcc.gnu.org>
13657             Kaz Kojima  <kkojima@gcc.gnu.org>
13659         PR target/67391
13660         * config/sh/sh-protos.h (sh_lra_p): Declare.
13661         * config/sh/sh.c (sh_lra_p): Make non-static.
13662         * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
13663         arith_reg_operand for operands[1].  Remove TARGET_SHMEDIA case.
13664         Expand into addsi3_scr if operands[2] if needed.
13665         (*addsi3_compact): Rename to *addsi3_compact_lra.  Use
13666         arith_reg_operand for operands[1].  Allow it only when LRA is enabled.
13667         (addsi3_scr, *addsi3): New insn_and_split patterns.
13669 2015-09-27  Alexandre Oliva <aoliva@redhat.com>
13671         PR rtl-optimization/64164
13672         PR tree-optimization/67312
13673         PR middle-end/67340
13674         PR middle-end/67490
13675         PR bootstrap/67597
13676         * cfgexpand.c (parm_in_stack_slot_p): Remove.
13677         (ssa_default_def_partition): Remove.
13678         (get_rtl_for_parm_ssa_default_def): Remove.
13679         (set_rtl): Check that RTL assignments match expectations.
13680         Loop on SUBREGs, CONCATs and PARALLELs subexprs.  Set only the
13681         default def location for params and results.  Record SSA names
13682         or types in REG and MEM attrs, respectively.
13683         (set_parm_rtl): New.
13684         (expand_one_ssa_partition): Drop logic that assigned MEMs with
13685         unassigned addresses.
13686         (adjust_one_expanded_partition_var): Don't accept NULL RTL on
13687         deferred stack alloc vars.
13688         (expand_used_vars): Skip partitions holding parm default defs.
13689         Move adjust_one_expanded_partition_var loop...
13690         (pass_expand::execute): ... here.  Drop redundant assert.
13691         Adjust comments before the final loop over all ssa names.
13692         Require assigned rtl of parms and results to match exactly.
13693         Reset its attributes to match them, not any other variables in
13694         the same partition.
13695         (expand_debug_expr): Use entry value for PARM's default defs
13696         only iff they have zero nondebug uses.
13697         * cfgexpand.h (parm_in_stack_slot_p): Remove.
13698         (get_rtl_for_parm_ssa_default_def): Remove.
13699         (set_parm_rtl): Declare.
13700         * doc/invoke.texi: Improve wording.
13701         * explow.c (promote_decl_mode): Fix promote_function_mode for
13702         result decls not by reference.
13703         (promote_ssa_mode): Disregard BLKmode from promote_decl, and
13704         bypass TYPE_MODE to get the actual vector mode.
13705         * function.c: Include tree-dfa.h.  Revert 2015-08-14's and
13706         2015-08-19's changes as follows.  Drop include of
13707         basic-block.h and df.h.
13708         (rtl_for_parm): Remove.
13709         (maybe_reset_rtl_for_parm): Remove.
13710         (parm_in_unassigned_mem_p): Remove.
13711         (use_register_for_decl): Add logic for RESULT_DECLs matching
13712         assign_parms' behavior.
13713         (split_complex_args): Revert.
13714         (assign_parms_augmented_arg_list): Revert.  Add comment
13715         referencing the logic above.
13716         (assign_parm_adjust_stack_rtl): Revert.
13717         (assign_parm_setup_block): Revert.  Use set_parm_rtl instead
13718         of SET_DECL_RTL.  Set up a REG if the parm demands so.
13719         (assign_parm_setup_reg): Revert.  Consolidated SET_DECL_RTL
13720         calls into a single set_parm_rtl.  Set up a temporary RTL
13721         temporarily for expand_assignment.
13722         (assign_parm_setup_stack): Revert.  Use set_parm_rtl.
13723         (assign_parms_unsplit_complex): Revert.  Use set_parm_rtl.
13724         (assign_bounds): Revert.
13725         (assign_parms): Revert.  Use set_parm_rtl.
13726         (allocate_struct_function): Relayout result and parms of
13727         non-abstruct functions.
13728         (expand_function_start): Revert.  Use set_parm_rtl.  If the
13729         result is not a hard reg, create a pseudo from the promoted
13730         mode of the default def.  Promote static chain mode.
13731         * tree-outof-ssa.c (remove_ssa_form): Drop unused
13732         partition_has_default_def.  Set up
13733         partitions_for_parm_default_defs.
13734         (finish_out_of_ssa): Remove partition_has_default_def.
13735         Release partitions_for_parm_default_defs.
13736         * tree-outof-ssa.h (struct ssaexpand): Remove
13737         partition_has_default_def.  Add
13738         partitions_for_parm_default_defs.
13739         * tree-ssa-coalesce.c: Include tree-dfa.h, tm_p.h and
13740         stor-layout.h.
13741         (build_ssa_conflict_graph): Fix conflict-detection of default
13742         defs of even unused default defs of params and results.
13743         (for_all_parms): New.
13744         (create_default_def): New.
13745         (register_default_def): New.
13746         (coalesce_with_default): New.
13747         (create_outofssa_var_map): Create default defs for all parms
13748         and results, and register their partitions.  Add GIMPLE_RETURN
13749         operands as coalesce candidates with results.  Add default
13750         defs of each parm or result as coalesce candidates with its
13751         other defs.  Mark each result def, and each default def of
13752         parms, as used_in_copy.
13753         (gimple_can_coalesce_p): Call it.  Call use_register_for_decl
13754         with the ssa names, even anonymous ones.  Drop
13755         parm_in_stack_slot_p calls.  Require same signedness and
13756         alignment.
13757         (coalesce_ssa_name): Add coalesce candidates for all defs of
13758         each parm and result, even unused ones.
13759         (parm_default_def_partition_arg): New type.
13760         (set_parm_default_def_partition): New.
13761         (get_parm_default_def_partitions): New.
13762         * tree-ssa-coalesce.h (get_parm_default_def_partitions): New.
13763         * tree-ssa-live.c (partition_view_init): Regard unused defs of
13764         parms and results as used.
13765         (verify_live_on_entry): Don't error out just because they're
13766         not live.
13768 2015-09-26  David Edelsohn  <dje.gcc@gmail.com>
13770         * dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
13771         (HAVE_XCOFF_DWARF_EXTRAS): Default to 0 definition.
13772         (output_fde): Don't output length for debug_frame on AIX.
13773         (output_call_frame_info): Don't output length for debug_frame on AIX.
13774         (have_macinfo): Force to False for XCOFF_DEBUGGING_INFO and not
13775         HAVE_XCOFF_DWARF_EXTRAS.
13776         (add_AT_loc_list): Return early if XCOFF_DEBUGGING_INFO and not
13777         HAVE_XCOFF_DWARF_EXTRAS.
13778         (output_compilation_unit_header): Don't output length on AIX.
13779         (output_pubnames): Don't output length on AIX.
13780         (output_aranges): Delete argument. Compute length locally. Don't
13781         output length on AIX.
13782         (output_line_info): Don't output length on AIX.
13783         (dwarf2out_finish): Don't compute aranges_length.
13784         * dwarf2asm.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
13785         (dw2_asm_output_nstring): Emit .byte not .ascii on AIX.
13786         * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Emit correct
13787         symbol decoration for AIX.
13788         (rs6000_xcoff_debug_unwind_info): New.
13789         (rs6000_xcoff_asm_named_section): Emit .dwsect pseudo-op
13790         for SECTION_DEBUG.
13791         (rs6000_xcoff_declare_function_name): Emit different
13792         .function pseudo-op when DWARF2_DEBUG. Don't call
13793         xcoffout_declare_function for DWARF2_DEBUG.
13794         * config/rs6000/xcoff.h (TARGET_DEBUG_UNWIND_INFO):
13795         Redefine.
13796         * config/rs6000/aix71.h: New.
13797         * configure.ac (gcc_cv_as_aix_dwloc): Check AIX as for DWARF
13798         locations support.
13799         * configure: Regenerate.
13800         * config.gcc (powerpc-ibm-aix[789]+): New stanza for AIX 7.1+ with
13801         DWARF support.
13803 2015-09-26  Jeff Law  <law@redhat.com>
13805         * config/arc/arc.c (arc_output_addsi): Fix left shift undefined
13806         behaviour.
13807         * config/arc/constraints.md (Cca, C2a): Fix left shift undefined
13808         behaviour.
13810         * config/sh/sh.h (CONST_OK_FOR_J16): Fix left shift undefined
13811         behaviour
13813         * config/mips/mips.c (mips_compute_frame_info): Fix left shift
13814         undefined behaviour.
13816         * config/cris/cris.md (asrandb): Fix left shift undefined
13817         behaviour.
13818         (asrandw): Likewise.
13820 2015-09-25  Vladimir Makarov  <vmakarov@redhat.com>
13822         PR target/61578
13823         * lra-constarints.c (match_reload): Check presence of the input pseudo
13824         in the output operand.
13826 2015-09-25  Tobias Burnus  <burnus@net-b.de>
13828         * doc/invoke.texi (-fsanitize): Minor wording tweak.
13830 2015-09-25  Tobias Burnus  <burnus@net-b.de>
13832         * doc/invoke.texi (-fsanitize): Update URLs.
13834 2015-09-25  Teresa Johnson  <tejohnson@google.com>
13836         * opts.c (finish_options): Unset -freorder-blocks-and-partition
13837         if not using profile.
13839 2015-09-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13841         PR pretty-print/67567
13842         * pretty-print.c (pp_string): Add gcc_checking_assert.
13843         * pretty-print.h (output_buffer_append_r): Likewise.
13845 2015-09-25  Oleg Endo  <olegendo@gcc.gnu.org>
13847         PR target/67675
13848         * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
13849         addr2 individually.  Don't emit logical or insn if one is known to
13850         be aligned approriately.
13851         (sh_expand_cmpnstr): Likewise.
13853 2015-09-25  Richard Sandiford  <richard.sandiford@arm.com>
13855         * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
13856         __builtin_aarch64_fp[sc]r arguments into a register.
13858 2015-09-25  H.J. Lu  <hongjiu.lu@intel.com>
13860         * config.gcc (x86_archs): Replace lakemount with lakemont.
13861         (with_cpu): Likewise.
13862         (with_arch): Likewise.
13863         * config/i386/i386-c.c (ix86_target_macros_internal): Replace
13864         PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT.  Replace
13865         __tune_lakemount__ with __tune_lakemont__.
13866         * config/i386/i386.c (lakemount_cost): Renamed to ...
13867         (lakemont_cost): This.
13868         (m_LAKEMOUNT): Renamed to ...
13869         (m_LAKEMONT): This.
13870         (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
13871         (processor_target_table): Replace "lakemount" with "lakemont".
13872         (processor_alias_table): Likewise.
13873         (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
13874         PROCESSOR_LAKEMONT.
13875         (ix86_adjust_cost): Likewise.
13876         (ia32_multipass_dfa_lookahead): Likewise.
13877         * config/i386/i386.h (processor_type): Likewise.
13878         * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
13879         * doc/invoke.texi: Replace lakemount with lakemont.  Replace
13880         Lakemount with Lakemont.
13882 2015-09-24  H.J. Lu  <hongjiu.lu@intel.com>
13884         * config.gcc (x86_archs): Replace iamcu with lakemount.
13885         (with_cpu): Likewise.
13886         (with_arch): Likewise.
13887         * doc/invoke.texi: Likewise.
13888         * config/i386/i386-c.c (ix86_target_macros_internal): Replace
13889         PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT.  Replace
13890         __tune_iamcu__ with __tune_lakemount__.
13891         * config/i386/i386.c (iamcu_cost): Renamed to ...
13892         (lakemount_cost): This.
13893         (m_IAMCU): Renamed to ...
13894         (m_LAKEMOUNT): This.
13895         (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
13896         (processor_target_table): Replace "iamcu" with "lakemount".
13897         (processor_alias_table): Likewise.
13898         (ix86_issue_rate): Replace PROCESSOR_IAMCU with
13899         PROCESSOR_LAKEMOUNT.
13900         (ix86_adjust_cost): Likewise.
13901         (ia32_multipass_dfa_lookahead): Likewise.
13902         * config/i386/i386.h (processor_type): Likewise.
13903         * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
13905 2015-09-24  John David Anglin  <danglin@gcc.gnu.org>
13907         * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
13908         * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
13909         Declare.
13910         * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
13911         (pa_expand_compare_and_swap_loop): New.
13912         (pa_maybe_emit_compare_and_swap_exchange_loop): New.
13913         * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
13914         atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
13915         (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
13916         (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
13917         Revise.
13919 2015-09-24  Michael Collison  <michael.collison@linaro.org>
13921         PR other/57195
13922         * read-md.c (read_name): Allow mode iterators inside angle
13923         brackets in rtl expressions.
13925 2015-09-24  Vladimir Makarov  <vmakarov@redhat.com>
13927         PR target/61578
13928         * ira-color.c (update_allocno_cost): Add parameter.
13929         (update_costs_from_allocno): Decrease conflict cost.  Pass the new
13930         parameter.
13932 2015-09-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13934         PR driver/67640
13935         * opts-common.c (prune_options): Discard all -fdiagnostics-color
13936         but the last one, which is moved to the front to be processed
13937         first.
13938         * opts.c (enable_warning_as_error): Reject options that do not
13939         control warnings.
13941 2015-09-24  Jiong Wang  <jiong.wang@arm.com>
13943         * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
13945 2015-09-24  Jiong Wang  <jiong.wang@arm.com>
13947         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
13948         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
13949         (aarch64_cannot_force_const_mem): Likewise.
13950         (aarch64_classify_address): Likewise.
13951         (aarch64_classify_symbolic_expression): Likewise.
13952         (aarch64_print_operand): Likewise.
13953         (aarch64_classify_symbol): Likewise.
13954         (aarch64_mov_operand_p): Likewise.
13955         * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
13956         (aarch64_mov_operand): Likewise.
13958 2015-09-24  Segher Boessenkool  <segher@kernel.crashing.org>
13960         * config/rs6000/rs6000.c (debug_stack_info): Invert the test
13961         for info->spe_gp_size.
13963 2015-09-24  Richard Biener  <rguenther@suse.de>
13965         PR lto/67699
13966         * lto-cgraph.c (compute_ltrans_boundary): Do not stream
13967         abstract origins.
13969 2015-09-24  Thomas Schwinge  <thomas@codesourcery.com>
13971         * tree-object-size.c (plus_stmt_object_size)
13972         (cond_expr_object_size): Change the formal parameters from gimple
13973         to gimple *.
13974         * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
13975         * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
13976         * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
13978 2015-09-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13980         * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
13981         Check for ld -type pie on Solaris 11.x and 12.
13982         * configure: Regenerate.
13983         * config.in: Regenerate.
13985         * gcc.c (LD_PIE_SPEC): Allow redefinition.
13987         * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
13988         (STARTFILE_SPEC): Use it.
13989         (ENDFILE_CRTEND_SPEC): Define.
13990         (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
13991         (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
13992         ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
13993         [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
13994         (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
13995         * config/i386/sol2.h (ENDFILE_SPEC): Remove.
13996         (ENDFILE_ARCH_SPEC): Define.
13997         * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
13999 2015-09-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14001         * configure.ac (gcc_cv_solaris_crts): New test.
14002         * configure. Regenerate.
14003         * config.in: Regenerate.
14004         * config/sol2.h (STARTFILE_SPEC): Simplify, provide
14005         HAVE_SOLARIS_CRTS variant.
14007 2015-09-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14009         * tree-inline.h (count_insns_seq): Delete prototype.
14010         (estimate_num_insns_seq): Define prototype.
14011         * tree-inline.c (count_insns_seq): Delete.
14012         (estimate_num_insns_seq): Remove static qualifier.
14013         * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
14014         with estimate_num_insns_seq.
14016 2015-09-24  Richard Biener  <rguenther@suse.de>
14018         * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
14019         members.
14020         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
14021         and base for MEM_REF and TARGET_MEM_REF.  Handle BIT_FIELD_REF
14022         offset.
14023         (ao_ref_init_from_vn_reference): Record clique and base in the
14024         built base.
14025         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
14027 2015-09-24  Richard Biener  <rguenther@suse.de>
14029         PR tree-optimization/48885
14030         * tree-ssa-structalias.c (visit_loadstore): Handle default defs
14031         as not including any restrict tags from other pointers.
14033 2015-09-23  Thomas Schwinge  <thomas@codesourcery.com>
14035         * gcc.c (handle_foffload_option): Don't lose the trailing NUL
14036         character when appending to offload_targets.
14038         * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
14039         offload targets by commas, not colons.
14040         * config.in: Regenerate.
14041         * configure: Likewise.
14042         * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
14043         instead of setting up the default offload targets here...
14044         (process_command): ..., do it here.
14045         libgomp/
14046         * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
14047         targets are separated by commas.
14048         * config.h.in: Regenerate.
14050 2015-09-23  Thomas Schwinge  <thomas@codesourcery.com>
14051             Nathan Sidwell  <nathan@codesourcery.com>
14053         * omp-low.h (omp_reduction_init_op): Declare.
14054         * omp-low.c (omp_reduction_init_op): New, broken out of ...
14055         (omp_reduction_init): ... here.  Call it.
14056         * tree-parloops.c (initialize_reductions): Use
14057         omp_reduction_init_op.
14059 2015-09-23   Richard Biener  <rguenther@suse.de>
14061         PR middle-end/67662
14062         * fold-const.c (fold_binary_loc): Do not reassociate two vars with
14063         undefined overflow unless they will cancel out.
14065 2015-09-23  Kirill Yukhin  <kirill.yukhin@intel.com>
14067         * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
14068         insn emit.
14070 2015-09-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14072         PR c/49655
14073         * opts.h (write_langs): Declare.
14074         * opts-global.c (write_langs): Make it extern.
14076 2015-09-23  Oleg Endo  <olegendo@gcc.gnu.org>
14078         PR target/67391
14079         * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
14080         overlapping regs when matching the pattern.
14082 2015-09-23  James Greenhalgh  <james.greenhalgh@arm.com>
14084         * config/aarch64/aarch64-simd.md
14085         (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
14086         (aarch64_float_truncate_hi_v4sf_le): New.
14087         (aarch64_float_truncate_hi_v4sf_be): Likewise.
14089 2015-09-23  Richard Biener  <rguenther@suse.de>
14091         * tree-ssa-structalias.c (intra_create_variable_infos): Build
14092         representatives for all restrict qualified pointer destinations.
14094 2015-09-23  Kirill Yukhin  <kirill.yukhin@intel.com>
14096         * config/i386/i386.md (define_code_attr mshift): New.
14097         (define_mode_iterator SWI1248_AVX512BW): Rename ...
14098         (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
14099         only.
14100         (define_insn "*k<logic><mode>"): Use new iterator name.
14101         (define_insn "*<mshift><mode>3"): New.
14103 2015-09-23  Mikhail Maltsev  <maltsevm@gmail.com>
14105         PR middle-end/67649
14106         * memory-block.h (memory_block_pool::allocate): Use valgrind API to
14107         mark the block as accessible.
14109 2015-09-22  Segher Boessenkool  <segher@kernel.crashing.org>
14111         * function.c (thread_prologue_and_epilogue_insns): Delete
14112         orig_entry_edge argument to try_shrink_wrapping.
14113         * shrink-wrap.c (can_get_prologue): New function.
14114         (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
14115         (try_shrink_wrapping): Delete orig_entry_edge argument.  Use
14116         can_get_prologue where needed.  Remove code that finds a single
14117         edge for the prologue.  Remove code that tests if any reg clobbered
14118         by the prologue is live on the prologue edge.  Remove code that finds
14119         the new prologue edge after duplicating blocks.  Make a new prologue
14120         block and edge.
14121         * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
14123 2015-09-22  Jeff Law  <law@redhat.com>
14125         * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
14126         behavior.
14128 2015-09-22  Nathan Sidwell  <nathan@codesourcery.com>
14130         * doc/invoke.texi  (-Wmultiple-inheritance, -Wvirtual-inheritance,
14131         -Wtemplates, -Wnamespaces): Document.
14133 2015-09-22  Tom de Vries  <tom@codesourcery.com>
14135         PR tree-optimization/67671
14136         * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
14137         pointer references as restrict.
14139 2015-09-22  Chung-Lin Tang  <cltang@codesourcery.com>
14141         * config/nios2/nios2.c (nios2_legitimize_address): When handling
14142         'reg + reloc' cases, allow first operand to be non-REG, and use
14143         force_reg() to enforce address pattern.
14145 2015-09-22  Alexander Fomin <alexander.fomin@intel.com>
14147         PR target/67480
14148         * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
14149         (define_mode_iterator VI12_AVX_AVX512F): New.
14150         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
14151         all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
14152         (define_insn "*<code><mode>3"): ... Into new pattern using
14153         VI12_AVX_AVX512F iterators without masking.
14155 2015-09-22  Kirill Yukhin  <kirill.yukhin@intel.com>
14157         * config.gcc: Support "skylake-avx512".
14158         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
14159         PROCESSOR_SKYLAKE_AVX512.
14160         * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
14161         (processor_target_table): Add "skylake-avx512".
14162         (PTA_SKYLAKE_AVX512): Define.
14163         (ix86_option_override_internal): Add "skylake_avx512".
14164         (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
14165         F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
14166         * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
14167         (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
14168         * doc/invoke.texi (skylake-avx512): New.
14170 2015-09-22  Kirill Yukhin  <kirill.yukhin@intel.com>
14172         * config/i386/i386.md (define_insn "kunpckhi"): Fix
14173         operand in pattern.
14174         (define_insn "kunpcksi"): Ditto.
14175         (define_insn "kunpckdi"): Ditto.
14177 2015-09-22  Kirill Yukhin  <kirill.yukhin@intel.com>
14179         * config/i386/i386.md (define_split not/xor SWI1248x): Use
14180         iterator instead of fixed modes.
14182 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
14184         * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
14185         Adjust declaration.
14186         * config/aarch64/aarch64.c (aarch64_emit_bic): New.
14187         (aarch64_gen_atomic_ldop): Adjust comment.  Add parameter
14188         out_result.  Update to support update-fetch operations.
14189         * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
14190         Adjust for change to aarch64_gen_atomic_ldop.
14191         (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
14192         (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
14193         (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
14194         (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
14195         (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
14197 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
14199         * config/aarch64/aarch64-protos.h
14200         (aarch64_atomic_ldop_supported_p): Declare.
14201         * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
14202         (enum aarch64_atomic_load_op_code): New.
14203         (aarch64_emit_atomic_load_op): New.
14204         (aarch64_gen_atomic_ldop): Update to support load-operate
14205         patterns.
14206         * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
14207         to an expander.
14208         (aarch64_atomic_<atomic_optab><mode>): New.
14209         (aarch64_atomic_<atomic_optab><mode>_lse): New.
14210         (atomic_fetch_<atomic_optab><mode>): Change to an expander.
14211         (aarch64_atomic_fetch_<atomic_optab><mode>): New.
14212         (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
14214 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
14216         * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
14217         (UNSPECV_ATOMIC_LDOP_OR): New.
14218         (UNSPECV_ATOMIC_LDOP_BIC): New.
14219         (UNSPECV_ATOMIC_LDOP_XOR): New.
14220         (UNSPECV_ATOMIC_LDOP_PLUS): New.
14221         (ATOMIC_LDOP): New.
14222         (atomic_ldop): New.
14223         (aarch64_atomic_load<atomic_ldop><mode>): New.
14225 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
14227         * config/aarch64/aarch64.md
14228         (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
14229         pattern.
14231 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
14233         * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
14234         Declare.
14235         * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
14236         (aarch64_gen_atomic_ldop): New.
14237         (aarch64_split_atomic_op): Fix whitespace and add a comment.
14238         * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
14239         (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
14240         (atomic_exchange<mode>): Replace with an expander.
14241         (aarch64_atomic_exchange<mode>): New.
14242         (aarch64_atomic_exchange<mode>_lse): New.
14243         (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
14244         (aarch64_atomic_swp<mode>): New.
14246 2015-09-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14248         * tree-inline.c (expand_call_inline): Use inform for extra note.
14249         Do not give a note with UNKNOWN_LOCATION.
14250         Replace input_location with gimple_location (stmt).
14251         Use true/false instead of TRUE/FALSE.
14253 2015-09-22  Tom de Vries  <tom@codesourcery.com>
14255         PR tree-optimization/67666
14256         * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
14257         with single field non-conservative.
14259 2015-09-21  David S. Miller  <davem@davemloft.net>
14261         PR/67622
14262         Revert:
14263         2015-09-11  David S. Miller  <davem@davemloft.net>
14265         * config/sparc/constraints.md: Make "U" constraint a real register
14266         constraint.
14267         * config/sparc/sparc.c (TARGET_LRA_P): Define.
14268         (D_MODES, DF_MODES): Add missing cast.
14269         (TF_MODES, TF_MODES_NO_S): Include T_MODE.
14270         (OF_MODES, OF_MODES_NO_S): Include O_MODE.
14271         (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
14272         cost to 8.
14273         * config/sparc/sparc.h (PROMOTE_MODE): Define.
14274         * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
14275         provide these insn when flag_pic.
14277         2015-09-17  David S. Miller  <davem@davemloft.net>
14279         * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
14280         Declare.
14281         * config/sparc/sparc.c (sparc_secondary_memory_needed): New
14282         function.
14283         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
14284         (HARD_REGNO_CALLER_SAVE_MODE): Define.
14285         * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
14286         (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
14287         (embmedany_losum, embmedany_brsum, embmedany_textuhi)
14288         (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
14289         provide when flag_pic.
14291 2015-09-21  Jeff Law  <law@redhat.com>
14293         * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
14294         behavior.
14296 2015-09-21  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14298         * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
14300 2015-09-21  Richard Biener  <rguenther@suse.de>
14302         * passes.c (rest_of_decl_compilation): Do not call
14303         dwarf2out_early_global_decl for aliases.
14305 2015-09-21  Richard Biener  <rguenther@suse.de>
14307         PR debug/67664
14308         * dwarf2out.c (add_location_or_const_value_attribute): Remove
14309         attribute parameter.  Early exit if either DW_AT_const_value
14310         or DW_AT_location are present already.
14311         (gen_variable_die): Adjust caller.
14312         (dwarf2out_late_global_decl): Likewise.
14314 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
14316         PR target/67657
14317         * config/sh/sh.c (sh_remove_overlapping_post_inc,
14318         sh_peephole_emit_move_insn): Add new functions.
14319         * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
14320         sh_peephole_emit_move_insn): Declere them.
14321         * config/sh/sh.md: Use them in various peephole2 patterns.
14323 2015-09-21  Richard Biener  <rguenther@suse.de>
14325         PR middle-end/67651
14326         * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
14327         address with -fno-delete-null-pointer-checks.
14329 2015-09-21  Alan Lawrence  <alan.lawrence@arm.com>
14331         * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
14332         (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
14333         (reduc_uplus_v16qi): Remove.
14335         * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
14336         (reduc_<VEC_reduc_name>_v2df): Remove.
14337         (reduc_<VEC_reduc_name>_v4sf): Remove.
14338         (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
14340         * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
14341         gen_ function by removing * prefix.
14342         (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
14344 2015-09-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14346         PR middle-end/60832
14347         * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
14348         Print i_bound without converting it to a tree.
14350 2015-09-21  Bilyan Borisov  <bilyan.borisov@arm.com>
14352         * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
14353         operands[4] operands[5] swap with std::swap, removed tmp variable.
14354         (arm_evpc_neon_vzip): Replaced in0/in1 and
14355         out0/out1 swaps with std::swap, removed x variable.
14356         (arm_evpc_neon_vtrn): Replaced in0/int1 and
14357         out0/out1 swaos with std::swap, removed x variable.
14358         (arm_expand_vec_perm_const_1): Replaced
14359         d->op0/d->op1 swap with std::swap, removed x variable.
14360         (arm_evpc_neon_vuzp): Replaced in0/in1 and
14361         out0/out1 swaps with std::swap, removed x variable.
14363 2015-09-21  Jonathan Yong  <10walls@gmail.com>
14365         * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
14366         sysroot/usr/lib/32api for additional win32 libraries,
14367         fixes failing Cygwin bootstrapping.
14369 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
14371         * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
14373 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
14375         PR target/67126
14376         * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
14377         (*mov_t_msb_neg): Rewrite negc pattern.
14379 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
14381         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
14382         immediate generation code.
14384 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
14386         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
14387         redundant immediate generation code.
14389 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
14391         * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
14392         (AARCH64_NUM_BITMASKS): Remove.
14393         (aarch64_bitmasks_cmp): Remove.
14394         (aarch64_build_bitmask_table): Remove.
14396 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
14398         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
14399         slow immediate matching loops with a faster algorithm.
14401 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
14403         * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
14404         faster algorithm.
14406 2015-09-20  Jeff Law  <law@redhat.com>
14408         PR tree-optimization/47679
14409         * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
14410         * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
14411         * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
14412         (thread_through_normal_block): Use record_temporary_equivalences.
14414 2015-09-19  Trevor Saunders  <tbsaunde@tbsaunde.org>
14416         * coretypes.h (gimple): Change typedef to be a forward declaration.
14417         * gimple.h (gimple_statement_base): rename to gimple.
14418         * (all functions and types using gimple): Adjust.
14419         * *.[ch]: Likewise.
14421 2015-09-19  Andrew Dixie  <andrewd@gentrack.com>
14422             David Edelsohn  <dje.gcc@gmail.com>
14424         * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
14425         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
14426         (EH_FRAME_THROUGH_COLLECT2): Define.
14427         (EH_TABLES_CAN_BE_READ_ONLY): Define.
14428         (ASM_OUTPUT_DWARF_PCREL): Define.
14429         (ASM_OUTPUT_DWARF_DATAREL): Define.
14431 2015-09-19  John David Anglin  <danglin@gcc.gnu.org>
14433         * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
14434         of TARGET_ELF32.
14436 2015-09-18  Jeff Law  <law@redhat.com>
14438         PR tree-optimization/47679
14439         * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped.  Move
14440         it here ...
14441         (dom_opt_dom_walker): New private member holding the avail_exprs_stack
14442         object.  Update constructor.
14443         (pass_dominator::execute):  Corresponding chagnes to declaration
14444         and initialization of avail_exprs_stack.  Update constructor call
14445         for dom_opt_dom_walker object.
14446         (lookup_avail_expr, record_cond): Accept additional argument.  Pass
14447         it down to children as needed.
14448         (record_equivalences_from_incoming_edge): Likewise.
14449         (eliminate_redundant_computations): Likewise.
14450         (record_equivalences_from_stmt): Likewise.
14451         (simplify_stmt_for_jump_threading): Likewise.
14452         (record_temporary_equivalences): Likewise.
14453         (optimize_stmt): Likewise.
14454         (dom_opt_dom_walker::thread_across_edge): Update access to
14455         avail_exprs_stack object and pass it to children as needed.
14456         (dom_opt_dom_walker::before_dom_children): Similarly.
14457         (dom_opt_dom_walker::after_dom_children): Similarly.
14458         * tree-ssa-threadedge.c (pfn_simplify): New typedef.
14459         (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
14460         Add avail_expr_stack argument.  Pass it to children as needed.
14461         (dummy_simplify): Likewise.
14462         (simplify_control_stmt_condition): Likewise.
14463         (thread_around_empty_blocks): Likewise.
14464         (thread_through_normal_block): Likewise.
14465         (thread_across_edge): Likewise.
14466         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
14467         * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
14469         PR tree-optimization/47679
14470         * tree-ssa-dom.c (const_and_copies): No longer file scoped.  Move
14471         it here ...
14472         (dom_opt_dom_walker): New private member holding the const_and_copies
14473         object.  Update constructor.
14474         (pass_dominator::execute): Corresponding changes to declaration
14475         and initialization of const_and_copies.  Update constructor call
14476         for the dom_opt_dom_walker object.
14477         (record_temporary_equivalences): Accept const_and_copies argument
14478         pass it down to children as needed.
14479         (record_equality): Likewise.
14480         (record_equivalences_from_incoming_edge): Likewise.
14481         (cprop_into_successor_phis, optimize_stmt): Likewise.
14482         (eliminate_redundant_computations): Likewise.
14483         (dom_opt_dom_walker::thread_across_edge): Update access to
14484         const_and_copies object and pass it to children as needed.
14485         (dom_opt_dom_walker::before_dom_children): Similarly.
14486         (dom_opt_dom_walker::after_dom_children): Similarly.
14488         PR tree-optimization/47679
14489         * tree-ssa-dom.c (avail_exprs): No longer file scoped.  Bury
14490         it into the avail_exprs_stack class.
14491         (pass_dominator::execute): Corresponding changes to declaration
14492         and initialization of avail_exprs.  Pass avail_exprs to
14493         dump_dominator_optimization_stats.
14494         (record_cond): Extract avail_exprs from avail_exprs_stack.
14495         (lookup_avail_expr): Similarly.
14496         (htab_staticstics): Remove unnecessary prototype.  Move to earlier
14497         position in file.
14498         (dump_dominator_optimization_stats): Make static and prototype.
14499         Add argument for the hash table to dump.
14500         (debug_dominator_optimization_stats): Remove.
14501         * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
14502         prototype.
14503         (debug_dominator_optimization_stats): Similarly.
14504         * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
14505         "void" in prototype for pop_to_marker method.  Add accessor method
14506         for the underlying avail_exprs table.
14508         * tree-ssa-threadedge.c: Remove trailing whitespace.
14510 2014-09-18  John David Anglin  <danglin@gcc.gnu.org>
14512         * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
14513         unsigned.
14514         (pa_ldil_cint_p): Likewise.
14515         * config/pa/pa.c (pa_cint_ok_for_move): likewise.
14516         (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
14517         Update callers.
14518         * config/pa/pa.md: Likewise.
14520 2015-09-18  David Malcolm  <dmalcolm@redhat.com>
14522         * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
14523         * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
14524         (diagnostic_show_locus): Likewise.
14525         (diagnostic_print_caret_line): Likewise.
14526         * diagnostic-show-locus.c: New file.
14528 2015-09-18  David Edelsohn  <dje.gcc@gmail.com>
14530         * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
14531         "back" parameter. Declare label in #if block.
14533 2015-09-18  Uros Bizjak  <ubizjak@gmail.com>
14535         PR middle-end/67619
14536         * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
14537         the address to a register.
14539 2015-09-18  Jeff Law  <law@redhat.com>
14541         PR tree-optimization/47679
14542         * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
14543         * tree-ssa-dom.c: Remove unnecessary header includes.
14544         (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
14545         (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
14546         (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
14547         (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
14548         (pass_phi_only_cprop::execute): Likewise.
14549         (make_pass_phi_only_cprop): Likewise.
14550         * tree-ssa-phionlycprop.c: New file with moved code.  Eliminate
14551         uses of file scoped statics by passing the required objects
14552         as parameters wherever needed.
14554 2015-09-18  Andrew Dixie  <andrewd@gentrack.com>
14555             David Edelsohn  <dje.gcc@gmail.com>
14557         * defaults.h (EH_FRAME_SECTION_NAME): Depend on
14558         EH_FRAME_THROUGH_COLLECT2.
14559         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
14560         DW_EH_PE_datarel.
14561         * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
14562         even if EH_FRAME_SECTION_NAME is undefined.  Restrict special
14563         collect2 labels to EH_FRAME_THROUGH_COLLECT2.
14564         * except.c (switch_to_exception_section): Use a read-only section
14565         even if EH_FRAME_SECTION_NAME is undefined.
14566         * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
14567         * collect2.c (write_c_file_stat): Provide dbase on AIX.
14568         (scan_prog_file): Don't export __dso_handle nor
14569         __gcc_unwind_dbase.
14570         * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
14571         (EH_TABLES_CAN_BE_READ_ONLY): Define.
14572         (ASM_OUTPUT_DWARF_PCREL): Define.
14573         (ASM_OUTPUT_DWARF_DATAREL): Define.
14574         (EH_FRAME_THROUGH_COLLECT2): Define.
14575         (EH_FRAME_IN_DATA_SECTION): Delete.
14576         * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
14577         * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
14578         Declare.
14579         (rs6000_asm_output_dwarf_datarel): Declare.
14580         * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
14581         (rs6000_aix_asm_output_dwarf_datarel): New.
14582         (rs6000_xcoff_asm_init_sections): Don't set exception_section.
14583         * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
14584         (EH_FRAME_THROUGH_COLLECT2): Define.
14585         * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
14586         (EH_FRAME_THROUGH_COLLECT2): Define.
14587         (EH_TABLES_CAN_BE_READ_ONLY): Define.
14588         * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
14589         (EH_FRAME_THROUGH_COLLECT2): New.
14590         (ASM_OUTPUT_DWARF_DATAREL): New.
14591         * doc/tm.texi: Regenerate.
14593 2015-09-18  Richard Biener  <rguenther@suse.de>
14595         * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
14596         we're in early phase.
14597         (schedule_generic_params_dies_gen): Likewise.
14598         (gen_remaining_tmpl_value_param_die_attribute): Do only as much
14599         work as possible, retaining unhandled cases.
14600         (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
14601         clear out generic_type_instances at the end.
14602         (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
14603         (dwarf2out_early_finish): ... here.  Do most of
14604         gen_remaining_tmpl_value_param_die_attribute here.
14606 2015-09-18  Alan Lawrence  <alan.lawrence@arm.com>
14608         PR tree-optimization/67283
14609         * tree-sra.c (type_consists_of_records_p): Rename to...
14610         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
14611         (completely_scalarize_record): Rename to...
14612         (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
14613         (scalarize_elem): New.
14614         (analyze_all_variable_accesses): Follow renamings.
14616 2015-09-18  Richard Biener  <rguenther@suse.de>
14618         * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
14619         in early-dwarf.
14621 2015-09-18  Richard Biener  <rguenther@suse.de>
14623         PR tree-optimization/66142
14624         * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
14625         treat MEM[&x] and x the same.
14626         * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
14627         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
14628         when we simplified sth.
14629         (vn_reference_maybe_forwprop_address): Likewise.
14630         (valueize_refs_1): When we simplified through
14631         vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
14632         set valueized_anything to true.
14633         (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
14634         one ref kills the other instead of just a offset-based test.
14635         * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
14636         for the operand_equal_p test to compare bases and also compare
14637         sizes.
14639 2015-09-17  Christian Bruel  <christian.bruel@st.com>
14641         * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
14643 2015-09-17  Richard Henderson  <rth@redhat.com>
14645         PR libstdc++/65913
14646         * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
14647         pointers that encode the alignment of the object.
14649 2015-09-17  Eric Botcazou  <ebotcazou@adacore.com>
14651         PR rtl-optimization/66790
14652         * df-problems.c (LIVE): Amend documentation.
14654 2015-09-17  Richard Sandiford  <richard.sandiford@arm.com>
14656         * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
14657         and optabs-tree.o.
14658         (GTFILES): Replace optabs.c with optabs-libfunc.c.
14659         * genopinit.c (main): Add an include guard to insn-opinit.h.
14660         Protect the rtx_code parts with NUM_RTX_CODE.
14661         * optabs.h: Split parts out to...
14662         * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
14663         * optabs.c: Split parts out to...
14664         * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
14665         * cilk-common.c: Include optabs-query.h rather than optabs.h.
14666         * fold-const.c: Likewise.
14667         * target-globals.c: Likewise.
14668         * tree-if-conv.c: Likewise.
14669         * tree-ssa-forwprop.c: Likewise.
14670         * tree-ssa-loop-prefetch.c: Likewise.
14671         * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
14672         Remove unncessary include files.
14673         * tree-ssa-phiopt.c: Likewise.
14674         * tree-ssa-reassoc.c: Likewise.
14675         * tree-switch-conversion.c: Likewise.
14676         * tree-vect-data-refs.c: Likewise.
14677         * tree-vect-generic.c: Likewise.
14678         * tree-vect-loop.c: Likewise.
14679         * tree-vect-patterns.c: Likewise.
14680         * tree-vect-slp.c: Likewise.
14681         * tree-vect-stmts.c: Likewise.
14682         * tree-vrp.c: Likewise.
14683         * toplev.c: Include optabs-query.h and optabs-libfuncs.h
14684         rather than optabs.h.
14685         * expr.c: Include optabs-tree.h.
14686         * function.c: Likewise.
14688 2015-09-17  Eric Botcazou  <ebotcazou@adacore.com>
14690         PR middle-end/65958
14691         * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
14692         * config/arm/arm-protos.h (output_probe_stack_range): Declare.
14693         * config/arm/arm.c: Include common/common-target.h.
14694         (use_return_insn): Return 0 if the static chain register was saved
14695         above a non-APCS frame.
14696         (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
14697         (struct scratch_reg): New.
14698         (get_scratch_register_on_entry): New function.
14699         (release_scratch_register_on_entry): Likewise.
14700         (arm_emit_probe_stack_range): Likewise.
14701         (output_probe_stack_range): Likewise.
14702         (arm_expand_prologue): Factor out code dealing with the IP register
14703         for nested function and adjust it for stack checking.
14704         Invoke arm_emit_probe_stack_range if static builtin stack checking
14705         is enabled.
14706         (thumb1_expand_prologue): Sorry out if static builtin stack checking
14707         is enabled.
14708         (arm_expand_epilogue): Add the saved static chain register, if any, to
14709         the amount of pre-pushed registers to pop.
14710         (arm_frame_pointer_required): Return true if static stack checking is
14711         enabled and we want to catch the exception with the EABI unwinder.
14712         * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
14713         (UNSPEC_PROBE_STACK_RANGE): Likewise.
14714         * config/arm/arm.md (probe_stack): New insn.
14715         (probe_stack_range): Likewise.
14717 2015-09-17  Richard Biener  <rguenther@suse.de>
14719         * genmatch.c (parser::parse_expr): Improve error message
14720         for mis-placed flags.
14722 2015-09-17  Richard Biener  <rguenther@suse.de>
14724         * passes.c (rest_of_decl_compilation): Always call early_global_decl
14725         debug hook when we created a varpool node.
14726         * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
14727         dwarf2out_early_global_decl, when not just add location or
14728         value attributes to existing DIEs.
14730 2015-09-17  James Greenhalgh  <james.greenhalgh@arm.com>
14732         * config/aarch64/aarch64.md (copysigndf3): New.
14733         (copysignsf3): Likewise.
14735 2015-09-17  David S. Miller  <davem@davemloft.net>
14737         * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
14738         * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
14739         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
14740         (HARD_REGNO_CALLER_SAVE_MODE): Define.
14741         * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
14742         (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
14743         (embmedany_losum, embmedany_brsum, embmedany_textuhi)
14744         (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
14745         provide when flag_pic.
14747 2015-09-17  Kaz Kojima  <kkojima@gcc.gnu.org>
14749         * config/sh/sh.c (label_ref_list_d_pool): Adjust to
14750         object_allocator change.
14752 2015-09-17  Bin Cheng  <bin.cheng@arm.com>
14754         PR tree-optimization/66388
14755         * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
14756         (dump_iv): Dump no_overflow information.
14757         (alloc_iv): Initialize new field for struct iv.
14758         (mark_bivs): Count number of no_overflow bivs.
14759         (find_deriving_biv_for_expr, record_biv_for_address_use): New
14760         functions.
14761         (idx_find_step): Call new functions above.
14762         (add_candidate_1, add_candidate): New paramter.
14763         (add_iv_candidate_for_biv): Add sizetype cand for BIV.
14764         (get_computation_aff): Simplify convertion of cand for BIV.
14765         (get_computation_cost_at): Step cand's base if necessary.
14767 2015-09-17  Bin Cheng  <bin.cheng@arm.com>
14769         * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
14770         parameter.
14771         (tree_simplify_using_condition): Ditto.
14772         (simplify_using_initial_conditions): Ditto.
14773         (loop_exits_before_overflow): Pass new argument to function
14774         simplify_using_initial_conditions.  Remove case for type conversions
14775         simplification.
14776         * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
14777         parameter.
14778         * tree-scalar-evolution.c (simple_iv): Simplify type conversions
14779         in iv base using loop initial conditions.
14781 2015-09-16  Jeff Law  <law@redhat.com>
14783         PR tree-optimization/47679
14784         * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
14785         (free_all_edge_infos): Use it.
14786         (allocate_edge_info): Free preexisting edge info data.
14787         (pass_dominator::execute): Set up initial edge info structures.
14788         (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
14789         thread_across_edge.
14790         * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
14791         If non-null, then push/pop markers appropriately.
14792         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
14793         * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
14794         thread-across_edge.
14796 2015-09-16  James Bowman  <james.bowman@ftdichip.com>
14798         * config/ft32/ft32.c: Fix the memory address space predicate.
14800 2015-09-16  Kaz Kojima  <kkojima@gcc.gnu.org>
14802         PR target/67573
14803         * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
14804         (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
14806 2015-09-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14808         * toplev.h (check_global_declaration): Remove declaration.
14809         * toplev.c (check_global_declaration): Move to ...
14810         * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
14811         (analyze_functions): Update call.
14813 2015-09-16  David S. Miller  <davem@davemloft.net>
14815         * lra-constraints.c (simplify_operand_subreg): Do not assume that
14816         lowpart of a SUBREG has offset zero.
14818 2015-09-16  Jeff Law  <law@redhat.com>
14820         PR tree-optimization/47679
14821         * tree-ssa-dom.c (enum expr_kind): Moved from here to
14822         tree-ssa-scopedtables.h.
14823         (struct hashable_expr, class expr_hash_elt): Likewise.
14824         (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
14825         Move associated methods into tree-ssa-scopedtables.c.
14826         (avail_expr_hash, initialize_expr_from_cond): Similarly.
14827         (hashable_expr_equal_p, add_expr_commutative): Likewise.
14828         (add_hashable_expr): Likewise.
14829         (record_cond): Delete element directly.
14830         * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
14831         private copy ctor and assignment operator methods.
14832         (expr_elt_hasher): Inline trivial methods.
14833         (initialize_expr_from_cond): Prototype.
14834         * tree-ssa-scopedtables.c: Add necessary includes, functions and
14835         methods that were previously in tree-ssa-dom.c.  Improve various
14836         comments.
14838 2015-09-16  Paolo Carlini  <paolo.carlini@oracle.com>
14840         * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
14842 2015-09-16  Segher Boessenkool  <segher@kernel.crashing.org>
14844         PR bootstrap/67587
14845         * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
14846         fixup_partitions.
14848 2015-09-16  Richard Biener  <rguenther@suse.de>
14850         PR middle-end/67253
14851         * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
14852         location of possibly shared trees.
14854 2015-09-16  Richard Biener  <rguenther@suse.de>
14856         PR middle-end/67271
14857         * fold-const.c (native_encode_expr): Bail out on bogus offsets.
14859 2015-09-16  Eric Botcazou  <ebotcazou@adacore.com>
14861         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
14862         offset and size computations instead of HOST_WIDE_INT.
14864 2015-09-16  Richard Biener  <rguenther@suse.de>
14866         PR middle-end/67442
14867         * fold-const.c (extract_muldiv_1): Properly extend multiplication
14868         result before builting a tree via wide_int_to_tree.
14870 2015-09-16  Mikhail Maltsev  <maltsevm@gmail.com>
14872         * Makefile.in: Add memory-block.cc
14873         (pool_allocator::initialize): Use fixed block size.
14874         (pool_allocator::release): Use memory_block_pool.
14875         (pool_allocator::allocate): Likewise.
14876         * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
14877         object pools.
14878         * cfg.c (initialize_original_copy_tables): Likewise.
14879         * cselib.c (elt_list_pool, elt_loc_list_pool,
14880         cselib_val_pool): Likewise.
14881         * df-problems.c (df_chain_alloc): Likewise.
14882         * df-scan.c (df_scan_alloc): Likewise.
14883         * dse.c (cse_store_info_pool, rtx_store_info_pool,
14884         read_info_type_pool, insn_info_type_pool, bb_info_pool,
14885         group_info_pool, deferred_change_pool): Likewise.
14886         * et-forest.c (et_nodes, et_occurrences): Likewise.
14887         * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
14888         ipcp_agg_lattice_pool): Likewise.
14889         * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
14890         * ipa-profile.c (histogram_pool): Likewise.
14891         * ipa-prop.c (ipa_refdesc_pool): Likewise.
14892         * ira-build.c (live_range_pool, allocno_pool, object_pool,
14893         initiate_cost_vectors, pref_pool, copy_pool): Likewise.
14894         * ira-color.c (update_cost_record_pool): Likewise.
14895         * lra-lives.c (lra_live_range_pool): Likewise.
14896         * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
14897         * memory-block.cc: New file.
14898         * memory-block.h: New file.
14899         * regcprop.c (queued_debug_insn_change_pool): Use common block size.
14900         * sched-deps.c (sched_deps_init): Likewise.
14901         * sel-sched-ir.c (sched_lists_pool): Likewise.
14902         * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
14903         * tree-sra.c (access_pool): Likewise.
14904         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
14905         * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
14906         * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
14907         * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
14908         * tree-ssa-strlen.c (strinfo_pool): Likewise.
14909         * tree-ssa-structalias.c (variable_info_pool): Likewise.
14910         * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
14911         location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
14913 2015-09-15  Max Filippov  <jcmvbkbc@gmail.com>
14915         * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
14916         definition.
14917         (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
14918         call0 ABI.
14920 2015-09-15  Max Filippov  <jcmvbkbc@gmail.com>
14922         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
14923         to pass TLS call argument, according to current ABI.
14924         * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
14925         callx0 for TLS call, according to current ABI.
14927 2015-09-15  Eric Botcazou  <ebotcazou@adacore.com>
14929         * tree-eh.c (lower_try_finally_dup_block): Clear location information
14930         on stack restore statements.
14931         (decide_copy_try_finally): Do not consider a stack restore statement as
14932         coming from sources.
14934 2015-09-15  Uros Bizjak  <ubizjak@gmail.com>
14936         * config/alpha/alpha.c (alpha_expand_block_clear): Use
14937         HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
14939 2015-09-15  Jeff Law  <law@redhat.com>
14941         PR tree-optimization/47679
14942         * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
14943         methods and private members.
14944         (avail_exprs_stack): Similarly.  Change type of global
14945         from a pair of expr_hash_elt_t to the new class.
14946         (expr_elt_hasher::hash): Corresponding changes.
14947         (expr_elt_hasher::equal): Similarly.
14948         (avail_expr_hash): Similarly.
14949         (pass_dominator::execute): Similarly.
14950         (dom_opt_dom_walker::thread_across_edge): Similarly.
14951         (record_cond): Similarly.
14952         (dom_opt_dom_walker::before_dom_children): Similarly.
14953         (dom_opt_dom_walker::after_dom_children): Similarly.
14954         (lookup_avail_expr): Likewise.
14955         (initialize_hash_element): Now a expr_hash_elt constructor.
14956         (initialize_hash_element_from_expr): Similarly.
14957         (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
14958         (free_expr_hash_elt): Call dtor for the element.
14959         (remove_local_expressions_from_table): Now the "pop_to_marker"
14960         method in the available_exprs_stack class.
14961         (avail_expr_stack::record_expr): Method factored out.
14962         (print_expr_hash_elt): Now a method in the expr_hash_elt class.
14963         Fix formatting.
14964         (hashable_expr_equal_p): Fix formatting.
14966 2015-09-15  David Malcolm  <dmalcolm@redhat.com>
14968         * input.h (location_get_source_line): Drop "expanded_location"
14969         param in favor of a file and line number.
14970         * input.c (location_get_source_line): Likewise.
14971         (dump_location_info): Update for change in signature of
14972         location_get_source_line.
14973         * diagnostic.c (diagnostic_print_caret_line): Likewise.
14975 2015-09-15  Eric Botcazou  <ebotcazou@adacore.com>
14977         * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
14978         Bump to 4KB for SJLJ exceptions.
14979         (STACK_CHECK_PROTECT): Likewise.  Bump to 8KB for SJLJ exceptions.
14980         * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
14981         * doc/tm.texi: Regenerate.
14983 2015-09-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14985         * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
14986         of -1 when shifting.  Change type of val to unsigned HOST_WIDE_INT.
14987         Update prototype.
14989 2015-09-15  Richard Biener  <rguenther@suse.de>
14991         PR tree-optimization/67470
14992         * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
14993         structure for PHI hoisting by inserting a forwarder block
14994         if appropriate.
14996 2015-09-15  Christian Bruel  <christian.bruel@st.com>
14998         * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
14999         (arm_option_print): New function.
15001 2015-09-15  Christian Bruel  <christian.bruel@st.com>
15003         PR target/52144
15004         * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
15005         * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
15006         Remove flags parameter.
15007         * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
15008         (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
15009         (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
15010         (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
15011         (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
15012         (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
15013         (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
15014         * config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
15016 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
15018         * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
15020         * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
15021         AARCH64_VALID_SIMD_DREG_MODE.
15023 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
15025         * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
15026         aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
15027         (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
15028         (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
15029         aarch64_ld4_lane<mode>): Combine together, making...
15030         (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
15031         (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
15032         aarch64_st4_lane<mode>): Combine together, making...
15033         (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
15034         * config/aarch64/iterators.md (nregs): Add comment.
15036 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
15038         * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
15039         Change operand mode from <V_TWO_ELEM> to BLK.
15040         (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
15041         (aarch64_vec_store_lanesoi_lane<mode): Likewise
15042         (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
15043         (aarch64_ld2_lane<mode>): Likewise.
15044         (aarch64_st2_lane<VQ:mode>): Likewise.
15045         * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
15047 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
15049         * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
15050         Change operand mode from <V_FOUR_ELEM> to BLK.
15051         (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
15052         (aarch64_vec_store_lanesxi_lane<mode): Likewise.
15053         (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
15054         (aarch64_ld4_lane<mode>): Likewise.
15055         (aarch64_st4_lane<mode>): Likewise.
15056         * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
15058 2015-09-15  Richard Biener  <rguenther@suse.de>
15060         PR middle-end/67563
15061         * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
15062         transfer EH info from old to new stmt.
15063         (replace_call_with_value): Likewise.
15064         (replace_call_with_call_and_fold): Likewise.
15065         (gimple_fold_builtin_memory_op): Likewise.
15066         (gimple_fold_builtin_memset): Likewise.
15067         (gimple_fold_builtin_stpcpy): Likewise.
15068         (gimple_fold_call): Likewise.
15070 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
15072         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
15073         comment.
15074         * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
15075         (aarch64_simd_intEI_type_node): Likewise.
15076         (aarch64_simd_builtin_std_type): Remove EImode case.
15077         (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
15078         * config/aarch64/aarch64-modes.def: Remove EImode.
15080 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
15082         * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
15083         Change operand mode from <V_THREE_ELEM> to BLK.
15084         (aarch64_vec_load_lanesci_lane<mode>): Likewise.
15085         (aarch64_vec_store_lanesci_lane<mode>): Likewise.
15086         (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
15087         (aarch64_ld3_lane<mode>): Likewise.
15088         (aarch64_st3_lane<mode>): Likewise.
15089         * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
15091 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
15093         * config/aarch64/aarch64-simd.md
15094         (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
15095         Change all TImode operands to BLKmode.
15096         (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
15097         Change all EImode operands to BLKmode.
15098         (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
15099         Change all OImode operands to BLKmode.
15101         (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
15102         and call set_mem_size.
15103         (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
15105         * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
15107 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
15109         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
15110         to...
15111         (aarch64_vec_store_lanesoi_lane<mode>): ...this.
15113         (vec_store_lanesci_lane<mode>): Rename to...
15114         (aarch64_vec_store_lanesci_lane<mode>): ...this.
15116         (vec_store_lanesxi_lane<mode>): Rename to...
15117         (aarch64_vec_store_lanesxi_lane<mode>): ...this.
15119         (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
15120         aarch64_st4_lane<mode>): Follow renaming.
15122 2015-09-15  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15124         * config/s390/s390.c (s390_const_operand_ok): Add missing
15125         brackets.
15127 2015-09-15  Richard Biener  <rguenther@suse.de>
15129         PR lto/67568
15130         * lto-streamer.h (lto_location_cache::current_sysp): Properly
15131         initialize.
15132         * lto-streamer-out.c (clear_line_info): Likewise.
15134 2015-09-15  Richard Biener  <rguenther@suse.de>
15136         * doc/match-and-simplify.texi: Fix wording.
15138 2015-09-15  Bin Cheng  <bin.cheng@arm.com>
15140         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
15141         unnecessary type conversion in op1.
15143 2015-09-14  Segher Boessenkool  <segher@kernel.crashing.org>
15145         * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
15146         (dup_block_and_redirect): Delete function.
15147         (can_dup_for_shrink_wrapping): New function.
15148         (fix_fake_fallthrough_edge): New function.
15149         (try_shrink_wrapping): Rewrite function.
15150         (convert_to_simple_return): Call fix_fake_fallthrough_edge.
15152 2015-09-14  Rich Felker  <dalias@libc.org>
15154         * configure.ac: Change target pattern for sh TLS support
15155         test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
15156         * configure: Regenerate.
15158 2015-09-14  Jeff Law  <law@redhat.com>
15160         PR tree-optimization/47679
15161         * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
15162         type rather than void *.
15164 2015-09-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15166         PR fortran/67460
15167         * diagnostic.c (diagnostic_initialize): Do not set
15168         some_warnings_are_errors.
15169         (diagnostic_finish): Use DK_WERROR count instead.
15170         (diagnostic_report_diagnostic): Do not set
15171         some_warnings_are_errors.
15172         * diagnostic.h (struct diagnostic_context): Remove
15173         some_warnings_are_errors.
15175 2015-09-14  Richard Sandiford  <richard.sandiford@arm.com>
15177         * config/sparc/predicates.md (const_all_ones_operand): Use
15178         CONSTM1_RTX to simplify definition.
15180 2015-09-14  Oleg Endo  <olegendo@gcc.gnu.org>
15182         PR target/67061
15183         * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
15184         Handle call insns.
15186 2015-09-14  Chung-Lin Tang  <cltang@codesourcery.com>
15188         * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
15189         OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
15190         OPT_fshow_column to handled saved option cases.
15191         (append_compiler_options): Do not skip the above added options.
15193 2015-09-14  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15195         PR target/63304
15196         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
15197         nopcrelative_literal_loads.
15198         (aarch64_classify_address): Likewise.
15199         (aarch64_constant_pool_reload_icode): Define.
15200         (aarch64_secondary_reload): Handle secondary reloads for
15201         literal pools.
15202         (aarch64_override_options): Handle nopcrelative_literal_loads.
15203         (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
15204         * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
15205         Define.
15206         (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
15207         * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
15208         * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
15209         predicate.
15210         * doc/invoke.texi (mpc-relative-literal-loads): Document.
15212 2015-09-14  John David Anglin  <danglin@gcc.gnu.org>
15214         PR middle-end/67401
15215         * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
15216         sync_compare_and_swap_optab libcall to target_oval.
15218 2015-09-14  Marek Polacek  <polacek@redhat.com>
15220         * rtlanal.c (split_double): Cast to unsigned when shifting a negative
15221         value.
15222         * sched-int.h (UNKNOWN_DEP_COST): Likewise.
15224 2015-09-11  Mark Wielaard  <mjw@redhat.com>
15226         PR c/28901
15227         * toplev.c (check_global_declaration): Check and use
15228         warn_unused_const_variable.
15229         * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
15230         (-Wunused-variable): Remove non-constant. For C implies
15231         -Wunused-const-variable.
15232         (-Wunused-const-variable): New.
15234 2015-09-14  Richard Biener  <rguenther@suse.de>
15236         * doc/match-and-simplify.texi: Update for changed syntax
15237         of inner ifs and the new switch expression.
15239 2015-09-14  Yuri Rumyantsev  <ysrumyan@gmail.com>
15241         * config/i386/haswell.md: New file describing Haswell pipeline.
15242         * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
15243         haswell-like processors.
15244         (ix86_reassociation_width): Increase reassociation width for 64-bit
15245         Haswell processor family.
15246         * config/i386/i386.md: Introduce haswell cpu and include new md file.
15248 2015-09-14  Richard Biener  <rguenther@suse.de>
15250         * doc/match-and-simplify.texi: Fixup some formatting issues
15251         and document the 's' flag.
15253 2015-09-13  Olivier Hainque  <hainque@adacore.com>
15254             Eric Botcazou  <ebotcazou@adacore.com>
15256         * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
15257         gr6 as possible values, defaulting to gr5.  Set target_cpu_default2.
15258         * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
15259         (TARGET_CPU_gr5): Likewise.
15260         (TARGET_CPU_gr6): Likewise.
15261         (MULTILIB_DEFAULTS): Likewise.
15262         * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
15263         for mcpu=gr5 and mcpu=gr6.
15264         (MULTILIB_DIRNAMES): Adjust accordingly.
15266 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15268         * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
15269         (mem_ref_p): Likewise.
15270         (outermost_indep_loop): Adjust.
15271         (mem_ref_in_stmt): Likewise.
15272         (determine_max_movement): Likewise.
15273         (mem_ref_alloc): Likewise.
15274         (record_mem_ref_loc): Likewise.
15275         (set_ref_stored_in_loop): Likewise.
15276         (mark_ref_stored): Likewise.
15277         (gather_mem_refs_stmt): Likewise.
15278         (mem_refs_may_alias_p): Likewise.
15279         (for_all_locs_in_loop): Likewise.
15280         (struct rewrite_mem_ref_loc): Likewise.
15281         (rewrite_mem_refs): Likewise.
15282         (struct first_mem_ref_loc_1): Likewise.
15283         (first_mem_ref_loc): Likewise.
15284         (struct sm_set_flag_if_changed): Likewise.
15285         (execute_sm_if_changed_flag_set): Likewise.
15286         (execute_sm): Likewise.
15287         (hoist_memory_references):
15288         (struct ref_always_accessed): Likewise.
15289         (ref_always_accessed_p): Likewise.
15290         (refs_independent_p): Likewise.
15291         (record_dep_loop): Likewise.
15292         (ref_indep_loop_p_1): Likewise.
15293         (ref_indep_loop_p_2): Likewise.
15294         (ref_indep_loop_p): Likewise.
15295         (can_sm_ref_p): Likewise.
15296         (find_refs_for_sm): Likewise.
15297         (tree_ssa_lim_finalize): Likewise.
15299 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15301         * dwarf2out.c (dw_attr_ref): Remove typedef.
15302         (dw_line_info_ref): Likewise.
15303         (pubname_ref): Likewise.
15304         (dw_ranges_ref): Likewise.
15305         (dw_ranges_by_label_ref): Likewise.
15306         (comdat_type_node_ref): Likewise.
15307         (get_AT): Adjust.
15308         (get_AT_low_pc): Likewise.
15309         (get_AT_hi_pc): Likewise.
15310         (get_AT_string): Likewise.
15311         (get_AT_flag): Likewise.
15312         (get_AT_unsigned): Likewise.
15313         (get_AT_ref): Likewise.
15314         (get_AT_file): Likewise.
15315         (remove_AT): Likewise.
15316         (print_die): Likewise.
15317         (check_die): Likewise.
15318         (die_checksum): Likewise.
15319         (attr_checksum_ordered): Likewise.
15320         (struct checksum_attributes): Likewise.
15321         (collect_checksum_attributes): Likewise.
15322         (die_checksum_ordered): Likewise.
15323         (same_die_p): Likewise.
15324         (is_declaration_die): Likewise.
15325         (clone_die): Likewise.
15326         (clone_as_declaration): Likewise.
15327         (copy_declaration_context): Likewise.
15328         (break_out_comdat_types): Likewise.
15329         (copy_decls_walk): Likewise.
15330         (output_location_lists): Likewise.
15331         (external_ref_hasher::hash): Likewise.
15332         (optimize_external_refs_1): Likewise.
15333         (build_abbrev_table): Likewise.
15334         (size_of_die): Likewise.
15335         (unmark_all_dies): Likewise.
15336         (size_of_pubnames): Likewise.
15337         (output_die_abbrevs): Likewise.
15338         (output_die): Likewise.
15339         (output_pubnames): Likewise.
15340         (add_ranges_num): Likewise.
15341         (add_ranges_by_labels): Likewise.
15342         (add_high_low_attributes): Likewise.
15343         (gen_producer_string): Likewise.
15344         (dwarf2out_set_name): Likewise.
15345         (new_line_info_table): Likewise.
15346         (prune_unused_types_walk_attribs): Likewise.
15347         (prune_unused_types_update_strings): Likewise.
15348         (prune_unused_types): Likewise.
15349         (resolve_addr): Likewise.
15350         (optimize_location_lists_1): Likewise.
15351         (index_location_lists): Likewise.
15352         (dwarf2out_finish): Likewise.
15354 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15356         * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
15358 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15360         * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
15361         (dump_asserts_for): Adjust.
15362         (register_new_assert_for): Likewise.
15363         (process_assert_insertions): Likewise.
15364         (insert_range_assertions): Likewise.
15366 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15368         * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
15369         and remove typedef.
15370         (new_temp_expr_table): Adjust.
15371         (free_temp_expr_table): Likewise.
15372         (version_to_be_replaced_p): Likewise.
15373         (make_dependent_on_partition): Likewise.
15374         (add_to_partition_kill_list): Likewise.
15375         (remove_from_partition_kill_list): Likewise.
15376         (add_dependence): Likewise.
15377         (finished_with_expr): Likewise.
15378         (process_replaceable): Likewise.
15379         (kill_expr): Likewise.
15380         (kill_virtual_exprs): Likewise.
15381         (mark_replaceable): Likewise.
15382         (find_replaceable_in_bb): Likewise.
15383         (find_replaceable_exprs): Likewise.
15384         (debug_ter): Likewise.
15386 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15388         * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
15389         (struct btr_user): Rename from btr_user_s.
15390         (struct btr_def): Rename from btr_def_s.
15391         (find_btr_def_group): Adjust.
15392         (add_btr_def): Likewise.
15393         (new_btr_user): Likewise.
15394         (note_other_use_this_block): Likewise.
15395         (compute_defs_uses_and_gen): Likewise.
15396         (link_btr_uses): Likewise.
15397         (build_btr_def_use_webs): Likewise.
15398         (block_at_edge_of_live_range_p): Likewise.
15399         (btr_def_live_range): Likewise.
15400         (combine_btr_defs): Likewise.
15401         (move_btr_def): Likewise.
15402         (migrate_btr_def): Likewise.
15403         (migrate_btr_defs): Likewise.
15405 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15407         * var-tracking.c (shared_hash_def): Rename to shared_hash.
15408         (shared_hash): Remove typedef.
15409         (struct dataflow_set): Adjust.
15410         (shared_hash_unshare): Likewise.
15411         (dataflow_set_merge): Likewise.
15412         (vt_initialize): Likewise.
15413         (vt_finalize): Likewise.
15415 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15417         * var-tracking.c (struct location_chain): Rename from
15418         location_chain_def.
15419         (struct variable_part): Adjust.
15420         (variable_htab_free): Likewise.
15421         (unshare_variable): Likewise.
15422         (get_init_value): Likewise.
15423         (get_addr_from_local_cache): Likewise.
15424         (drop_overlapping_mem_locs): Likewise.
15425         (val_reset): Likewise.
15426         (struct variable_union_info): Likewise.
15427         (variable_union): Likewise.
15428         (find_loc_in_1pdv): Likewise.
15429         (insert_into_intersection): Likewise.
15430         (intersect_loc_chains): Likewise.
15431         (canonicalize_loc_order_check): Likewise.
15432         (canonicalize_values_mark): Likewise.
15433         (canonicalize_values_star): Likewise.
15434         (canonicalize_vars_star): Likewise.
15435         (variable_merge_over_cur): Likewise.
15436         (remove_duplicate_values): Likewise.
15437         (variable_post_merge_new_vals): Likewise.
15438         (variable_post_merge_perm_vals): Likewise.
15439         (find_mem_expr_in_1pdv): Likewise.
15440         (dataflow_set_preserve_mem_locs): Likewise.
15441         (dataflow_set_remove_mem_locs): Likewise.
15442         (variable_part_different_p): Likewise.
15443         (onepart_variable_different_p): Likewise.
15444         (find_src_set_src): Likewise.
15445         (dump_var): Likewise.
15446         (set_slot_part): Likewise.
15447         (clobber_slot_part): Likewise.
15448         (delete_slot_part): Likewise.
15449         (vt_expand_var_loc_chain): Likewise.
15450         (emit_note_insn_var_location): Likewise.
15451         (vt_finalize): Likewise.
15453 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15455         * dse.c (store_info_t): Remove typedef.
15456         (group_info_t): Likewise.
15457         (const_group_info_t): Likewise.
15458         (deferred_change_t): Likewise.
15459         (get_group_info): Adjust.
15460         (free_store_info): Likewise.
15461         (canon_address): Likewise.
15462         (clear_rhs_from_active_local_stores): Likewise.
15463         (record_store): Likewise.
15464         (replace_read): Likewise.
15465         (check_mem_read_rtx): Likewise.
15466         (scan_insn): Likewise.
15467         (remove_useless_values): Likewise.
15468         (dse_step1): Likewise.
15469         (dse_step2_init): Likewise.
15470         (dse_step2_nospill): Likewise.
15471         (scan_stores_nospill): Likewise.
15472         (scan_reads_nospill): Likewise.
15473         (dse_step3_exit_block_scan): Likewise.
15474         (dse_step3): Likewise.
15475         (dse_step5_nospill): Likewise.
15476         (dse_step6): Likewise.
15478 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15480         * alias.c (alias_set_entry_d): Rename to alias_set_entry.
15481         (alias_set_entry): Remove typedef.
15482         (alias_set_subset_of): Adjust.
15483         (alias_sets_conflict_p): Likewise.
15484         (init_alias_set_entry): Likewise.
15485         (get_alias_set): Likewise.
15486         (new_alias_set): Likewise.
15487         (record_alias_subset): Likewise.
15489 2015-09-13  Gerald Pfeifer  <gerald@pfeifer.com>
15491         * doc/install.texi (Downloading the source): Mark up
15492         contrib/download_prerequisites properly and drop leading "./".
15494 2015-09-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15496         * config/arc/arc.h: Remove define of STRUCT_VALUE.
15497         * config/lm32/lm32.h: Likewise.
15498         * config/mep/mep.h: Likewise.
15499         * config/visium/visium.h: Likewise.
15500         * system.h: Poison STRUCT_VALUE macro.
15502 2015-09-12  John David Anglin  <danglin@gcc.gnu.org>
15504         * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
15505         CONSTANT_P operands.
15507 2015-09-11  David S. Miller  <davem@davemloft.net>
15509         * config/sparc/constraints.md: Make "U" constraint a real register
15510         constraint.
15511         * config/sparc/sparc.c (TARGET_LRA_P): Define.
15512         (D_MODES, DF_MODES): Add missing cast.
15513         (TF_MODES, TF_MODES_NO_S): Include T_MODE.
15514         (OF_MODES, OF_MODES_NO_S): Include O_MODE.
15515         (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
15516         cost to 8.
15517         * config/sparc/sparc.h (PROMOTE_MODE): Define.
15518         * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
15519         provide these insn when flag_pic.
15521 2015-09-11  Jeff Law  <law@redhat.com>
15523         PR tree-optimization/47679
15524         * tree-ssa-dom.c (struct cond_equivalence): Update comment.
15525         * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
15526         member with m_.  Update inline member functions as necessary.  Add
15527         toplevel comment.
15528         * tree-ssa-scopedtables.c: Update const_and_copies's member
15529         functions to use m_ prefix to access the stack.
15531 2015-09-11  Aditya Kumar  <aditya.k7@samsung.com>
15533         * graphite-optimize-isl.c (disable_tiling): Remove.
15534         (get_schedule_for_band): Do not use disable_tiling.
15535         (get_prevector_map): Delete function.
15536         (enable_polly_vector): Remove.
15537         (get_schedule_for_band_list): Remove dead code.
15539 2015-09-11  Aditya Kumar  <aditya.k7@samsung.com>
15541         * graphite-optimize-isl.c (get_tile_map): Refactor.
15542         (get_schedule_for_band): Same.
15543         (getScheduleForBand): Same.
15544         (get_prevector_map): Same.
15545         (get_schedule_for_band_list): Same.
15546         (get_schedule_map): Same.
15547         (get_single_map): Same.
15548         (apply_schedule_map_to_scop): Same.
15549         (optimize_isl): Same.
15551 2015-09-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15553         PR target/63304
15554         * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
15555         (movtf): Delete.
15556         * config/aarch64/iterators.md (GPF_TF_F16): New.
15557         (GPF_F16): Delete.
15559 2015-09-10  Nathan Sidwell  <nathan@acm.org>
15561         * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
15562         (nvptx_reorg): Adjust comments.
15564 2015-09-15  John David Anglin  <danglin@gcc.gnu.org>
15566         PR bootstrap/67363
15567         * configure.ac: Check if setenv and unsetenv are declared.
15568         * configure: Rebuild.
15569         * config.in: Rebuild.
15570         * system.h: Declare setenv and unsetenv if not declared.
15572 2015-09-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15574         * config/rs6000/rs6000.c (swap_web_entry): Update preceding
15575         commentary to simplify permute mask adjustment equation.
15576         (special_handling_values): Add SH_VPERM.
15577         (const_load_sequence_p): New function.
15578         (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
15579         the mask loaded from the constant pool.
15580         (adjust_vperm): New function.
15581         (handle_special_swappables): Call adjust_vperm.
15582         (dump_swap_insn_table): Handle SH_VPERM.
15584 2015-09-10  H.J. Lu  <hongjiu.lu@intel.com>
15586         * shrink-wrap.c (requires_stack_frame_p): Remove static.
15587         * shrink-wrap.h (requires_stack_frame_p): Put back.
15589 2015-09-10  Richard Sandiford  <richard.sandiford@arm.com>
15591         * reload1.c (elimination_costs_in_insn): Locally turn
15592         -Wmaybe-uninitialized into a warning.
15594 2015-09-10  Segher Boessenkool  <segher@kernel.crashing.org>
15596         * shrink-wrap.c (requires_stack_frame_p): Make static.
15597         (prepare_shrink_wrap): Likewise.
15598         (dup_block_and_redirect): Likewise.
15599         * shrink-wrap.h: Remove declarations of those functions.
15601 2015-09-10  Mark Wielaard  <mjw@redhat.com>
15603         * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
15605 2015-09-10  Oleg Endo  <olegendo@gcc.gnu.org>
15607         PR target/67506
15608         * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
15609         missing simplify_gen_subreg.
15611 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15613         * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
15614         the vector element is bigger than 64 bit.
15616 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15618         * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
15619         ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
15621 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15623         * config/s390/s390.c: Add V1TImode to constant pool modes.
15625 2015-09-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15627         PR target/67439
15628         * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
15629         predicate.  Set predicable_short_it attr to "no".
15631 2015-09-10  Jiong Wang  <jiong.wang@arm.com>
15633         PR rtl-optimization/67421
15634         * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
15635         left wide shift tranformation.
15637 2015-09-10  Claudiu Zissulescu  <claziss@synopsys.com>
15639         * common/config/arc/arc-common.c: Remove references to A5.
15640         * config/arc/arc-opts.h: Likewise.
15641         * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
15642         * config/arc/arc.opt, config/arc/constraints.md: Likewise.
15643         * config/arc/t-arc-newlib: Likewise.
15645 2015-09-10  Claudiu Zissulescu <claziss@synopsys.com>
15647         * config/arc/arc.md (length): Fix attribute length for conditional
15648         executed instructions with long immediate.
15650 2015-09-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15652         * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
15653         type for second alternative.
15655 2015-09-10  Markus Trippelsdorf  <markus@trippelsdorf.de>
15657         * doc/invoke.texi (Downloading GCC): Mention
15658         contrib/download_prerequisites script.
15660 2015-09-10  Jakub Jelinek  <jakub@redhat.com>
15662         PR c++/67523
15663         * gimplify.c (gimplify_omp_for): If inner stmt is not found
15664         for combined loop, assert seen_error () and return GS_ERROR.
15666         PR middle-end/67521
15667         * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
15668         if decl is already in outer->variables.
15670         PR middle-end/67517
15671         * gimplify.c (gimplify_scan_omp_clauses): Instead of
15672         asserting that decl is not specified in octx->variables,
15673         break out of the loop if it is.
15675         PR c++/67514
15676         * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
15677         iterator is not explicitly determined, but is defined inside
15678         of the combined workshare region, handle it like if it has
15679         DECL_EXPR in OMP_FOR_PRE_BODY.
15681 2015-09-09  Nathan Sidwell  <nathan@acm.org>
15683         * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
15684         (*cmp<mode>): Add assembler spacing.
15685         (setcc_int<mode>, set_cc_float<mode>): Likewise.
15686         * config/nvptx/nvptx.c (nvptx_option_override): Override debug
15687         level.
15688         (write_func_decl_from_insn): Refactor argument loops & comma emission.
15689         (nvptx_expand_call): Likewise.
15690         (nvptx_output_call_insn): Likewise.
15691         (nvptx_reorg_subreg): Add spacing.
15693 2015-09-09  Marek Polacek  <polacek@redhat.com>
15695         PR middle-end/67512
15696         * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
15697         for comparisons.
15699 2015-09-09  Paolo Carlini  <paolo.carlini@oracle.com>
15701         PR c++/53184
15702         * doc/invoke.texi ([Wsubobject-linkage]): Document.
15704 2015-09-09  Tom de Vries  <tom@codesourcery.com>
15706         * params-list.h: Add missing copyright notice.
15708 2015-09-09  Nathan Sidwell  <nathan@acm.org>
15710         * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
15711         sel_truesi, not andsi.
15713 2015-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15715         * config/arm/arm.md (*subsi3_compare0): Rename to...
15716         (subsi3_compare0): ... This.
15717         (modsi3): New define_expand.
15718         * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
15719         when operand is power of 2.
15721 2015-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15723         * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
15724         (*neg<mode>2_compare0): Rename to...
15725         (neg<mode>2_compare0): ... This.
15726         * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
15727         Move check for speed inside the if-then-elses.  Reflect
15728         CSNEG sequence in MOD by power of 2 case.
15730 2015-09-09  Alan Modra  <amodra@gmail.com>
15732         PR target/67378
15733         * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
15734         reload replacement for PRE_MODIFY address reg.
15736 2015-09-09  Sebastian Pop  <s.pop@samsung.com>
15738         PR tree-optimization/53852
15739         * config.in: Regenerate.
15740         * configure: Regenerate.
15741         * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
15742         * graphite-optimize-isl.c (optimize_isl): Stop computation when
15743         PARAM_MAX_ISL_OPERATIONS is reached.
15744         * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
15745         * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
15746         result equal to isl_stat_ok as the status now can be isl_error_quota.
15747         (subtract_commutative_associative_deps): Same.
15748         (compute_deps): Same.
15750 2015-09-08  Aditya Kumar  <hiraditya@msn.com>
15751             Sebastian Pop  <s.pop@samsung.com>
15753         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
15754         Return the parameter if it was saved in corresponding
15755         parameter_rename_map of the region.
15756         (copy_def): Copy def from sese region to the newly created region.
15757         (copy_internal_parameters): Copy all the internal parameters defined
15758         within a region to the newly created region.
15759         (graphite_regenerate_ast_isl): Copy parameters to the new region before
15760         translating isl to gimple.
15761         * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
15762         the loop-nest does not have any data-references.
15763         (build_graphite_scops): Create a scop only when there is at least one
15764         loop inside it.
15765         (contains_only_close_phi_nodes): Deleted.
15766         (print_graphite_scop_statistics): Deleted
15767         (print_graphite_statistics): Deleted
15768         (limit_scops): Deleted.
15769         (build_scops): Removed call to limit_scops.
15770         * sese.c (new_sese): Construct.
15771         (free_sese): Destruct.
15772         (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
15773         added.
15774         (set_rename): Pass sese region so that parameters inside the region can
15775         be added to its parameter_rename_map.
15776         (rename_uses): Pass sese region.
15777         (graphite_copy_stmts_from_block): Do not copy parameters that have been
15778         generated in the header of the scop. For each SSA_NAME in the
15779         parameter_rename_map rename its usage.
15780         (invariant_in_sese_p_rec): Return false if tree t is defined outside
15781         sese region.
15782         (scalar_evolution_in_region): If the tree t is invariant just return t.
15783         * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
15784         struct sese to keep track of all the parameters which need renaming.
15785         * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
15786         any data-refs.
15787         * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
15789 2015-09-08  Tom de Vries  <tom@codesourcery.com>
15791         * Makefile.in (generated_files): Add params.list.
15792         (params.list, s-params.list): Add rule.
15793         * params.h (enum compiler_param): Include params-list.h.  Move define
15794         DEFPARAM, include params.def and undef DEFPARAM ...
15795         * params-list.h: ... here.  New file.
15797 2015-09-08  David Malcolm  <dmalcolm@redhat.com>
15799         * pretty-print.h (printer_fn): Fix typo in comment.
15801 2015-09-07  Jeff Law  <law@redhat.com>
15803         * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
15805 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
15807         * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
15808         (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
15809         (arm_neon_fp16_hw): New.
15811 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
15813         * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
15814         UNITS_PER_WORD >= 4.
15816 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
15818         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
15819         aarch64_simd_vec_unpacks_hi_<mode>): New insn.
15820         (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
15821         (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
15822         (aarch64_float_extend_lo_v2df): Rename to...
15823         (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
15825         * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
15826         (float_extend_lo): Add v4sf.
15828         * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
15829         * config/aarch64/iterators.md (VQ_HSF): New iterator.
15830         (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
15831         (Vwide): New mode_attr.
15833 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
15835         * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
15836         aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
15837         aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
15838         vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
15839         V4HF and V8HF variants to iterator.
15841         * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
15843         * config/aarch64/iterators.md (VDQF_F16): New.
15844         (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
15846 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
15848         * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
15849         vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
15850         vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
15851         vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
15852         vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
15853         vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
15854         vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
15855         vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
15856         vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
15857         vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
15858         vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
15859         vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
15860         vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
15861         vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
15862         vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
15863         vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
15864         vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
15865         vld1q_dup_f16): New.
15867 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
15869         * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
15870         Reparameterize to...
15871         (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
15872         (aarch64_float_truncate_hi_v4sf): Reparameterize to...
15873         (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
15875         * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
15876         v8hf variant.
15877         (float_truncate_lo_): Use BUILTIN_VDF iterator.
15879         * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
15881         * config/aarch64/iterators.md (VDF, Vdtype): New.
15882         (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
15884 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
15886         * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
15887         * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
15888         (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
15889         Add __builtin_aarch64_simd_hf.
15890         * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
15891         float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
15892         vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
15893         vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
15894         vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
15895         vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
15896         vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
15897         vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
15898         vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
15900         * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
15901         V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
15902         (VDC, Vdbl): Add V4HF.
15904 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
15906         * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
15907         V4HFmode and V8HFmode.
15908         (aarch64_split_simd_move): Add case for V8HFmode.
15909         * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
15910         (aarch64_simd_builtin_std_type): Handle HFmode.
15911         (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
15913         * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
15914         aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
15915         (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
15917         * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
15918         Float16x8_t.
15920         * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
15921         * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
15922         New typedefs.
15923         (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
15924         vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
15925         vst1q_lane_f16): New.
15926         * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
15927         (VALLDI_F16, VALL_F16): New.
15928         (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
15929         Add cases for V4HF and V8HF.
15930         (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
15932 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
15934         * config/arm/arm-builtins.c (VAR11, VAR12): New.
15935         * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
15936         vld4_dup): Add v4hf variant.
15937         (vget_high, vget_low): Add v8hf variant.
15938         (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
15939         vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
15940         v4hf and v8hf variants.
15942         * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
15943         (VDX): Add V4HF.
15944         (V_DOUBLE): Add case for V4HF.
15945         (VQX): Add V8HF.
15946         (V_HALF): Add case for V8HF.
15947         (VDQX): Add V4HF, V8HF.
15948         (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
15949         V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
15951         * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
15952         neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
15953         vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
15954         neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
15955         neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
15956         neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
15957         vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
15958         neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
15959         neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
15961         (neon_vcreate, neon_vreinterpretv8qi<mode>,
15962         neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
15963         neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
15964         Change VDX to VD_RE.
15966         (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
15967         neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
15968         Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
15970         * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
15971         float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
15972         vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
15973         vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
15974         vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
15975         vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
15976         vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
15977         vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
15978         vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
15980 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
15982         * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
15983         vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
15984         vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
15985         vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
15986         vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
15987         vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
15988         vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
15989         vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
15990         vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
15991         vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
15992         New.
15994 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
15996         * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
15998         * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
16000         * config/arm/arm-builtins.c (v8hf_UP): New.
16001         (arm_init_simd_builtin_types): Initialise Float16x8_t.
16003         * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
16005         * config/arm/arm_neon.h (float16x8_t): New typedef.
16007 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
16009         * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
16010         vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
16011         vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
16012         vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
16013         vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
16014         vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
16015         vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
16016         vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
16017         vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
16018         vreinterpret_u16_f16, vreinterpret_u32_f16): New.
16020 2015-09-07  Ilya Verbin  <ilya.verbin@intel.com>
16022         * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
16023         non-alphanumeric characters in the symbol name.
16025 2015-09-07  Marek Polacek  <polacek@redhat.com>
16027         PR inline-asm/67448
16028         * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
16029         a memory input.
16031 2015-09-07  Marek Polacek  <polacek@redhat.com>
16033         * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
16035 2015-09-04  Paolo Bonzini  <bonzini@gnu.org>
16037         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
16038         not warn.
16040 2015-09-04  Jakub Jelinek  <jakub@redhat.com>
16042         PR middle-end/67452
16043         * tree-ssa-live.c: Include cfgloop.h.
16044         (remove_unused_locals): Clear loop->simduid if simduid is about
16045         to be removed from cfun->local_decls.
16047 2015-09-02  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
16049         PR target/65210
16050         * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
16051         attribute as well.
16053 2015-09-04  Tom de Vries  <tom@codesourcery.com>
16055         * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
16057 2015-09-04  Jeff Law  <law@redhat.com>
16059         * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
16060         unnecessary constructor.  It's now trivial and implemented inside...
16061         * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
16062         constructor.  Add comments to various methods.  Remove unused
16063         private fields.
16064         * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
16065         * tree-vrp.c (identify_jump_threads): Likewise.
16066         * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
16067         indentation issues.
16068         (thread_across_edge): Similarly.
16069         (record_temporary_equivalences_from_stmts_at_dest): Remove unused
16070         arguments in constructor call.
16072 2015-09-04  Jonas Hahnfeld  <Hahnfeld@itc.rwth-aachen.de>
16074         * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
16075         temp path contains a '-'.
16077 2015-09-04  Andrey Turetskiy  <andrey.turetskiy@intel.com>
16078             Petr Murzin  <petr.murzin@intel.com>
16079             Kirill Yukhin  <kirill.yukhin@intel.com>
16081         * config/i386/i386-builtin-types.def
16082         (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
16083         (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
16084         (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
16085         (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
16086         * config/i386/i386.c
16087         (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
16088         IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
16089         IX86_BUILTIN_SCATTERALTDIV16SI.
16090         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
16091         __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
16092         __builtin_ia32_scatteraltdiv8si.
16093         (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
16094         IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
16095         IX86_BUILTIN_SCATTERALTDIV16SI.
16096         (ix86_vectorize_builtin_scatter): New.
16097         (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
16098         ix86_vectorize_builtin_scatter.
16100 2015-09-04  Andrey Turetskiy  <andrey.turetskiy@intel.com>
16101             Petr Murzin  <petr.murzin@intel.com>
16102             Kirill Yukhin  <kirill.yukhin@intel.com>
16104         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
16105         * doc/tm.texi: Regenerate.
16106         * target.def: Add scatter builtin.
16107         * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
16108         for loads/stores in case of gather/scatter accordingly.
16109         (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
16110         STMT_VINFO_GATHER_P(S).
16111         (vect_check_gather): Rename to ...
16112         (vect_check_gather_scatter): this.
16113         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
16114         STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
16115         (vect_check_gather_scatter): Use it instead of vect_check_gather.
16116         (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
16117         variable and new checkings for it accordingly.
16118         * tree-vect-stmts.c
16119         (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
16120         STMT_VINFO_GATHER_P(S).
16121         (vect_check_gather_scatter): Use it instead of vect_check_gather.
16122         (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
16124 2015-09-03  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
16126         * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
16127         define_insn.
16128         (mulv16qi3): New define_expand.
16130 2015-09-03  Martin Sebor  <msebor@redhat.com>
16132         PR c/66516
16133         * doc/extend.texi (Other Builtins): Document when the address
16134         of a built-in function can be taken.
16136 2015-09-03  Richard Biener  <rguenther@suse.de>
16138         * dwarf2out.c (flush_limbo_die_list): Split out from ...
16139         (dwarf2out_early_finish): ... here.
16140         (dwarf2out_finish): Do not call dwarf2out_early_finish but
16141         flush_limbo_die_list.  Assert we have no deferred asm names.
16143 2015-09-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16145         * optabs.c (expand_binop): Don't create a broadcast vector with a
16146         source element wider than the inner mode.
16148 2015-09-03  Richard Biener  <rguenther@suse.de>
16150         * varasm.c (output_constant): Use fold_convert instead of
16151         wide_int_to_tree.
16153 2015-09-03  Tom de Vries  <tom@codesourcery.com>
16155         PR tree-optimization/65637
16156         * omp-low.c (expand_omp_for_static_chunk): Handle case that
16157         fin_bb has 2 predecessors.
16159 2015-09-03  Tom de Vries  <tom@codesourcery.com>
16161         PR tree-optimization/65637
16162         * omp-low.c (find_phi_with_arg_on_edge): New function.
16163         (expand_omp_for_static_chunk): Fix inner loop phi.
16165 2015-09-03  Tom de Vries  <tom@codesourcery.com>
16167         PR tree-optimization/65637
16168         * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
16169         that head is NULL.
16171 2015-09-03  Tom de Vries  <tom@codesourcery.com>
16173         * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
16175 2015-09-03  Tom de Vries  <tom@codesourcery.com>
16177         * doc/invoke.texi (parloops-chunk-size): Add item.
16178         * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
16179         * tree-parloops.c: Include params.h.
16180         (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
16181         param parloops-chunk-size is used.
16183 2015-09-03  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
16185         PR middle-end/67351
16186         * fold-const.c (fold_binary_loc) : Move
16187         Transform (x >> c) << c into x & (-1<<c) or
16188         transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
16189         types using simplify and match.
16190         * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
16191         (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
16193 2015-09-03  Richard Biener  <rguenther@suse.de>
16195         PR ipa/66705
16196         * tree-ssa-structalias.c (ctor_for_analysis): New function.
16197         (create_variable_info_for_1): Use ctor_for_analysis instead
16198         of get_constructor.
16199         (create_variable_info_for): Likewise.
16201 2015-09-02  Charles Baylis  <charles.baylis@linaro.org>
16203         PR ipa/67280
16204         * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
16205         in new callgraph edge.
16207 2015-09-02  Christophe Lyon  <christophe.lyon@linaro.org>
16209         PR target/59810
16210         PR target/63652
16211         PR target/63653
16212         * config/aarch64/aarch64-simd.md
16213         (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
16214         gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
16215         (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
16216         gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
16218 2015-09-02  Alan Modra  <amodra@gmail.com>
16220         * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
16221         * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
16222         (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
16224 2015-09-02  Alan Modra  <amodra@gmail.com>
16226         PR target/67417
16227         * config/rs6000/predicates.md (current_file_function_operand): Don't
16228         return true for weak symbols.
16229         * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
16231 2015-09-01  Matthew Fortune  <matthew.fortune@imgtec.com>
16232             Andrew Bennett  <andrew.bennett@imgtec.com>
16234         * config/mips/mips-opts.h (mips_cb_setting): New enum.
16235         * config/mips/mips-protos.h: Add definitions for
16236         mips_output_jump and mips_output_equal_conditional_branch
16237         * config/mips/mips.c (MIPS_JR): Change to support the
16238         JIC instruction.
16239         (mips_emit_compare): Add support for the MIPS R6 conditional
16240         compact branches.
16241         (mips_process_sync_loop): Likewise.
16242         (mips_output_order_conditional_branch): Likewise.
16243         (mips16_build_call_stub): Change MIPS_CALL to
16244         mips_output_jump.
16245         (mips_print_operand_punctuation): Update 's' case to only
16246         apply to micromips r2.
16247         (mips_adjust_insn_length): Add support for forbidden slot
16248         hazards.
16249         (mips_avoid_hazard): Likewise.
16250         (mips_reorg_process_insns): Likewise.
16251         (mips_output_jump): New function.
16252         (mips_output_equal_conditional_branch): Likewise.
16253         (mips_output_conditional_branch): Use jrc/bc if compact
16254         branch support is enabled.  Ensure the forbidden slots
16255         between the two branch instructions is filled with a nop.
16256         (mips_option_override): Add support to process the compact
16257         branch option and set the correct defaults.  Prevent
16258         non-explict relocs being using for MIPS R6.
16259         (mips_trampoline_init): Add compact branch support.
16260         (mips_mult_zero_zero_cost): Allow zero initialisation of
16261         accumulators with TARGET_DSP.
16262         * config/mips/mips.h (TARGET_CB_NEVER): New define.
16263         (TARGET_CB_MAYBE): New define.
16264         (TARGET_CB_ALWAYS): New define.
16265         (ISA_HAS_DELAY_SLOTS): New define.
16266         (ISA_HAS_COMPACT_BRANCHES): New define.
16267         (ISA_HAS_JRC): New define.
16268         (MIPS_BRANCH_C): New define.
16269         (MIPS_CALL): Removed.
16270         (MICROMIPS_J): Removed.
16271         * config/mips/mips.md (compact_form): New attr.
16272         (hazard): Add support for forbidden slots.
16273         (define_delay): Add support for compact branches.
16274         (*branch_order<mode>): Likewise.
16275         (*branch_order<mode>_inverted): Likewise.
16276         (*branch_equality<mode>): Likewise.
16277         (*branch_equality<mode>_inverted): Likewise.
16278         (*jump_absolute): Likewise.
16279         (*jump_pic): Likewise.
16280         (indirect_jump): Use mips_output_jump to produce assembly output.
16281         (tablejump_<mode>"): Likewise.
16282         (*<optab>"): Likewise.
16283         (<optab>_internal): Likewise.
16284         (sibcall_internal): Likewise.
16285         (sibcall_value_internal): Likewise.
16286         (sibcall_value_multiple_internal): Likewise.
16287         (call_internal): Likewise.
16288         (call_split): Likewise.
16289         (call_internal_direct): Likewise.
16290         (call_direct_split): Likewise.
16291         (call_value_internal): Likewise.
16292         (call_value_split): Likewise.
16293         (call_value_internal_direct): Likewise.
16294         (call_value_direct_split): Likewise.
16295         (call_value_multiple_internal): Likewise.
16296         (call_value_multiple_split): Likewise.
16297         (mips_get_fcsr_mips16_<mode>): Likewise.
16298         (mips_set_fcsr_mips16_<mode>): Likewise.
16299         (tls_get_tp_mips16_<mode>): Likewise.
16300         * config/mips/mips.opt: Add -mcompact-branches option.
16301         * config/mips/predicates.md (order_operator): Ensure the
16302         conditional compact branches are only used if the ISA them.
16303         * doc/invoke.texi: Document -mcompact-branches option.
16305 2015-09-01  Vladimir Makarov  <vmakarov@redhat.com>
16307         PR target/61578
16308         * lra-lives.c (process_bb_lives): Process move pseudos with the
16309         same value for copies and preferences
16310         * lra-constraints.c (match_reload): Create match reload pseudo
16311         with the same value from single dying input pseudo.
16313 2015-09-01  Ilya Enkovich  <enkovich.gnu@gmail.com>
16315         PR target/67405
16316         * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
16318 2015-09-01  Aldy Hernandez  <aldyh@redhat.com>
16320         * trans-mem.c: Add contributed-by.
16321         * trans-mem.h: Same.
16323 2015-09-01  Richard Biener  <rguenther@suse.de>
16325         * expr.c (expand_expr_real_1): For expanding TERed defs
16326         set the current location to that of the def if not UNKNOWN.
16328 2015-09-01  David Sherwood  <david.sherwood@arm.com>
16330         * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
16332 2015-09-01  Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16334         * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
16335         then_cost, else_cost fields.  Change branch_cost field to unsigned int.
16336         (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
16337         Include rtl-iter.h.
16338         (noce_simple_bbs): New function.
16339         (noce_try_move): Bail if basic blocks are not simple.
16340         (noce_try_store_flag): Likewise.
16341         (noce_try_store_flag_constants): Likewise.
16342         (noce_try_addcc): Likewise.
16343         (noce_try_store_flag_mask): Likewise.
16344         (noce_try_cmove): Likewise.
16345         (noce_try_minmax): Likewise.
16346         (noce_try_abs): Likewise.
16347         (noce_try_sign_mask): Likewise.
16348         (noce_try_bitop): Likewise.
16349         (bbs_ok_for_cmove_arith): New function.
16350         (noce_emit_all_but_last): Likewise.
16351         (noce_emit_insn): Likewise.
16352         (noce_emit_bb): Likewise.
16353         (noce_try_cmove_arith): Handle non-simple basic blocks.
16354         (insn_valid_noce_process_p): New function.
16355         (contains_mem_rtx_p): Likewise.
16356         (bb_valid_for_noce_process_p): Likewise.
16357         (noce_process_if_block): Allow non-simple basic blocks
16358         where appropriate.
16360 2015-08-31  Alan Lawrence  <alan.lawrence@arm.com>
16362         * tree-ssa-dom.c (record_equivalences_from_phis,
16363         record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
16364         (lookup_avail_expr): Likewise, and remove comment and unused temp.
16366 2015-09-01  Nick Clifton  <nickc@redhat.com>
16368         * config/msp430/msp430.opt (mcpu): Fix typo.
16370 2015-09-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16372         * config/aarch64/aarch64.c (aarch64_set_current_function):
16373         Re-layout any vector parameters have non-simd layout.
16374         * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
16375         Delete.
16376         (aarch64_simd_expand_args): Delete call to the above.
16378 2015-08-31  Mike Frysinger  <vapier@gentoo.org>
16380         * doc/invoke.texi (asan-stack): Add space before option.
16382 2015-08-31  Marc Glisse  <marc.glisse@inria.fr>
16384         * tree.h (zerop): New function.
16385         * tree.c (zerop): Likewise.
16386         (element_precision): Handle expressions.
16387         * match.pd (define_predicates): Add zerop.
16388         (x <= +Inf): Fix comment.
16389         (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
16390         * fold-const.c (fold_binary_loc): ... here. Remove.
16392 2015-08-31  Richard Biener  <rguenther@suse.de>
16394         PR middle-end/67381
16395         * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
16397 2015-08-31  Marc Glisse  <marc.glisse@inria.fr>
16399         * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
16400         (CEXPI): New operator list.
16401         (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
16402         imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
16403         Converted from ...
16404         * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
16406 2015-08-31  Tom de Vries  <tom@codesourcery.com>
16408         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
16409         (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
16410         parameter.
16411         (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
16412         (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
16413         (rewrite_into_loop_closed_ssa): ... here.
16414         (replace_uses_in_dominated_bbs): Remove function.
16415         (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
16416         rewrite_into_loop_closed_ssa_1.
16418 2015-08-31  Michael Matz  <matz@suse.de>
16420         * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
16421         enter entry and exit blocks for reverse post order.
16423 2015-08-31  Richard Biener  <rguenther@suse.de>
16425         * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
16426         (lto_location_cache::current_sysp): Likewise.
16427         (output_block::current_sysp): Likewise.
16428         * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
16429         (lto_location_cache::apply_location_cache): Properly record
16430         system header locations.
16431         (lto_location_cache::input_location): Input whether a file
16432         is a system header.
16433         * lto-streamer-out.c (lto_output_location): Stream whether a file
16434         is a system header.
16436 2015-08-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16438         PR bootstrap/67363
16439         * gcc.c (env_manager::xput): Replace strndup by xstrndup.
16441 2015-08-31  Tom de Vries  <tom@codesourcery.com>
16443         * tree-ssa-loop-manip.c (find_uses_to_rename_use)
16444         (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
16445         Improve function header comments.
16447 2015-08-30  Michael Collison  <michael.collison@linaro.org>
16449         PR other/67320
16450         * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
16451         standard names
16453 2015-08-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16455         * config/rs6000/rs6000.c (swap_web_entry): Enlarge
16456         special_handling bitfield.
16457         (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
16458         (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
16459         that represents a general xxpermdi.
16460         (insn_is_swappable_p): Add handling for vec_concat of two
16461         doublewords, which maps to a specific xxpermdi.
16462         (adjust_xxpermdi): New function.
16463         (adjust_concat): Likewise.
16464         (handle_special_swappables): Call adjust_xxpermdi and
16465         adjust_concat.
16466         (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
16468 2015-08-30  Rich Felker <dalias@libc.org>
16470         * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
16471         case instead of sh[123456ble]-*-*.
16473 2015-08-29  Anatoly Sokolov  <aesok@post.ru>
16475         * ira.c (print_unform_and_important_classes,
16476         print_translated_classes): Remove reg_class_names static array.
16477         (print_unform_and_important_classes): Rename to ...
16478         (print_uniform_and_important_classes): ... this.
16479         (ira_debug_allocno_classes): Update accordingly.
16481 2015-08-29  Tom de Vries  <tom@codesourcery.com>
16483         PR tree-optimization/46193
16484         * omp-low.c (omp_reduction_init): Handle pointer type for min or max
16485         clause.
16487 2015-08-28  Jeff Law  <law@redhat.com>
16489         PR lto/66752
16490         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
16491         unable to find X NE 0 in the tables, return X as the simplified
16492         condition.
16493         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
16494         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
16495         to VISISTED_BBS.
16496         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
16497         after removing the control flow statement and unnecessary edges.
16499 2015-08-28  Alan Lawrence  <alan.lawrence@arm.com>
16501         Revert:
16502         2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
16504         PR tree-optimization/67283
16505         * tree-sra.c (type_consists_of_records_p): Rename to...
16506         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
16508         (completely_scalarize_record): Rename to...
16509         (completely_scalarize): ...this, add ARRAY_TYPE case, move some
16510         code to:
16511         (scalarize_elem): New.
16513 2015-08-28  Jiong Wang  <jiong.wang@arm.com>
16515         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
16516         SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
16517         (aarch64_symbol_type): Likewise.
16518         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
16519         Likewise.
16520         (aarch64_expand_mov_immediate): Likewise.
16521         (aarch64_print_operand): Likewise.
16522         (aarch64_classify_tls_symbol): Likewise.
16524 2015-08-28  Richard Biener  <rguenther@suse.de>
16526         * cgraphunit.c (symbol_table::compile): Move early debug generation
16527         and finish...
16528         (symbol_table::finalize_compilation_unit): ... back here and
16529         add a !seen_error () guard.
16531 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
16533         * toplev.c (process_options): Do not use flag_loop_block,
16534         flag_loop_interchange, and flag_loop_strip_mine.  Add check for
16535         flag_loop_optimize_isl.
16537 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
16539         * Makefile.in (OBJS): Remove graphite-blocking.o and
16540         graphite-interchange.o.
16541         * common.opt (floop-strip-mine, floop-interchange, floop-block):
16542         Alias of floop-nest-optimize.
16543         * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
16544         Document as alias of -floop-nest-optimize.
16545         * graphite-blocking.c: Remove.
16546         * graphite-interchange.c: Remove.
16547         * graphite-optimize-isl.c: Include dumpfile.h.
16548         (getScheduleForBand): Add dump for tiled loops.  Use
16549         PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
16550         * graphite-poly.c (scop_max_loop_depth): Remove.
16551         (print_scattering_function_1): Remove.
16552         (print_scattering_function): Remove.
16553         (print_scattering_functions): Remove.
16554         (debug_scattering_function): Remove.
16555         (debug_scattering_functions): Remove.
16556         (apply_poly_transforms): Remove use of flag_loop_block,
16557         flag_loop_strip_mine, and flag_loop_interchange.
16558         (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
16559         PBB_ORIGINAL.
16560         (print_pdr_access_layout): Remove.
16561         (print_pdr): Print ISL representation.
16562         (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
16563         SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
16564         (free_scop): Same.
16565         (openscop_print_pbb_domain): Remove.
16566         (print_pbb): Remove call to print_scattering_function.
16567         (openscop_print_scop_context): Remove.
16568         (print_scop_context): Do not print matrices anymore.
16569         (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
16570         SCOP_TRANSFORMED_SCHEDULE.
16571         (print_isl_set): Add printing of a new line.
16572         (print_isl_map): Same.
16573         (print_isl_aff): Same.
16574         (print_isl_constraint): Same.
16575         (loop_to_lst): Remove.
16576         (scop_to_lst): Remove.
16577         (lst_indent_to): Remove.
16578         (print_lst): Remove.
16579         (debug_lst): Remove.
16580         (dot_lst_1): Remove.
16581         (dot_lst): Remove.
16582         (reverse_loop_at_level): Remove.
16583         (reverse_loop_for_pbbs): Remove.
16584         * graphite-poly.h (pdr_dim_iter_domain): Remove.
16585         (pdr_nb_params): Remove.
16586         (pdr_alias_set_dim): Remove.
16587         (pdr_subscript_dim): Remove.
16588         (pdr_iterator_dim): Remove.
16589         (pdr_parameter_dim): Remove.
16590         (same_pdr_p): Remove.
16591         (struct poly_scattering): Remove.
16592         (struct poly_bb): Remove _original, _transformed, _saved.
16593         (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
16594         (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
16595         (PBB_NB_LOCAL_VARIABLES): Remove.
16596         (PBB_NB_SCATTERING_TRANSFORM): Remove.
16597         (schedule_to_scattering): Remove.
16598         (number_of_write_pdrs): Remove.
16599         (pbb_dim_iter_domain): Remove.
16600         (pbb_nb_params): Remove.
16601         (pbb_nb_scattering_orig): Remove.
16602         (pbb_nb_scattering_transform): Remove.
16603         (pbb_nb_dynamic_scattering_transform): Remove.
16604         (pbb_nb_local_vars): Remove.
16605         (pbb_iterator_dim): Remove.
16606         (pbb_parameter_dim): Remove.
16607         (psco_scattering_dim): Remove.
16608         (psct_scattering_dim): Remove.
16609         (psct_local_var_dim): Remove.
16610         (psco_iterator_dim): Remove.
16611         (psct_iterator_dim): Remove.
16612         (psco_parameter_dim): Remove.
16613         (psct_parameter_dim): Remove.
16614         (psct_dynamic_dim): Remove.
16615         (psct_static_dim): Remove.
16616         (psct_add_local_variable): Remove.
16617         (new_lst_loop): Remove.
16618         (new_lst_stmt): Remove.
16619         (free_lst): Remove.
16620         (copy_lst): Remove.
16621         (lst_add_loop_under_loop): Remove.
16622         (lst_depth): Remove.
16623         (lst_dewey_number): Remove.
16624         (lst_dewey_number_at_depth): Remove.
16625         (lst_pred): Remove.
16626         (lst_succ): Remove.
16627         (lst_find_pbb): Remove.
16628         (find_lst_loop): Remove.
16629         (lst_find_first_pbb): Remove.
16630         (lst_empty_p): Remove.
16631         (lst_find_last_pbb): Remove.
16632         (lst_contains_p): Remove.
16633         (lst_contains_pbb): Remove.
16634         (lst_create_nest): Remove.
16635         (lst_remove_from_sequence): Remove.
16636         (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
16637         (lst_niter_for_loop): Remove.
16638         (pbb_update_scattering): Remove.
16639         (lst_update_scattering_under): Remove.
16640         (lst_update_scattering): Remove.
16641         (lst_insert_in_sequence): Remove.
16642         (lst_replace): Remove.
16643         (lst_substitute_3): Remove.
16644         (lst_distribute_lst): Remove.
16645         (lst_remove_all_before_including_pbb): Remove.
16646         (lst_remove_all_before_excluding_pbb): Remove.
16647         (struct scop): Remove original_schedule, transformed_schedule, and
16648         saved_schedule.
16649         (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
16650         (SCOP_SAVED_SCHEDULE): Remove.
16651         (poly_scattering_new): Remove.
16652         (poly_scattering_free): Remove.
16653         (poly_scattering_copy): Remove.
16654         (store_scattering_pbb): Remove.
16655         (store_lst_schedule): Remove.
16656         (restore_lst_schedule): Remove.
16657         (store_scattering): Remove.
16658         (restore_scattering_pbb): Remove.
16659         (restore_scattering): Remove.
16660         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
16661         Remove scattering_dimensions.  Do not use pbb_dim_iter_domain:
16662         compute the scattering polyhedron dimension from the dimension of
16663         pbb->domain.
16664         (build_scop_scattering): Update call to
16665         build_pbb_scattering_polyhedrons.
16666         (build_poly_scop): Remove call to scop_to_lst.
16667         * graphite.c (graphite_transform_loops): Add call to print_scop.
16668         (gate_graphite_transforms): Remove use of flag_loop_block,
16669         flag_loop_interchange, and flag_loop_strip_mine.
16671 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
16673         * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
16674         * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
16675         -floop-nest-optimize.
16676         * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
16677         (generate_luj_sepclass): Remove.
16678         (generate_luj_options): Remove.
16679         (set_options): Remove opt_luj.
16680         (scop_to_isl_ast): Remove opt_luj.
16681         * graphite-optimize-isl.c (getScheduleForBand): Remove check for
16682         flag_loop_unroll_jam.
16683         (getPrevectorMap_full): Remove.
16684         (getScheduleForBandList): Remove map_sepcl.
16685         (getScheduleMap): Same.
16686         (apply_schedule_map_to_scop): Remove sepcl.
16687         (optimize_isl): Same.
16688         * graphite-poly.c (apply_poly_transforms): Remove check for
16689         flag_loop_unroll_jam.
16690         (new_poly_bb): Remove map_sepclass.
16691         * graphite-poly.h (struct poly_bb): Same.
16692         * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
16693         * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
16694         (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
16695         * toplev.c (process_options): Remove flag_loop_unroll_jam.
16697 2015-08-27  Uros Bizjak  <ubizjak@gmail.com>
16699         PR target/67317
16700         * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
16701         (addqi3_cc): Ditto.
16702         (UNSPEC_ADD_CARRY): Remove.
16703         (addqi3_cconly_overflow): New expander.
16704         (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
16705         Adjust for changed add<mode>3_carry.
16706         (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
16707         (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
16708         (<plusminus_insn><mode>3_carry): Remove expander.
16709         (*<plusminus_insn><mode>3_carry): Split insn pattern to
16710         add<mode>3_carry and sub<mode>3_carry.
16711         (plusminus_carry_mnemonic): Remove code attribute.
16712         (add<mode>3_carry): Canonicalize insn pattern.
16713         (*addsi3_carry_zext): Ditto.
16714         (sub<mode>3_carry): Ditto.
16715         (*subsi3_carry_zext): Ditto.
16716         (adcx<mode>3): Remove insn pattern.
16717         (addcarry<mode>): New insn pattern.
16718         (subborrow<mode>): Ditto.
16719         * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
16720         gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
16721         (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
16722         case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
16723         case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
16724         CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
16725         Rewrite expander to not clobber carry flag chains.
16727 2015-08-27  Pat Haugen  <pthaugen@us.ibm.com>
16729         * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
16730         instead of a rotate.
16732 2015-08-27  Marek Polacek  <polacek@redhat.com>
16734         PR middle-end/67005
16735         * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
16736         an entry into an irreducible region.
16738 2015-08-27  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
16740         * configure: Regenerate.
16742 2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
16744         PR tree-optimization/67283
16745         * tree-sra.c (type_consists_of_records_p): Rename to...
16746         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
16748         (completely_scalarize_record): Rename to...
16749         (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
16750         (scalarize_elem): New.
16752 2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
16754         * tree-sra.c (completely_scalarize_var): Rename to...
16755         (create_total_scalarization_access): ... Here. Drop call to
16756         completely_scalarize_record.
16758         (analyze_all_variable_accesses): Replace completely_scalarize_var
16759         with create_total_scalarization_access and completely_scalarize_record.
16761 2015-08-27  Alan Modra  <amodra@gmail.com>
16763         PR target/67356
16764         * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
16765         for operand 1.
16767 2015-08-27  Richard Biener  <rguenther@suse.de>
16769         * passes.c (rest_of_decl_compilation): Guard early_global_decl
16770         call with !seen_error ().
16771         * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
16772         early debug generation and finish...
16773         (symbol_table::compile): ... here to put it after a !seen_error ()
16774         guard.
16776 2015-08-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16778         * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
16779         Solaris 12+.
16781 2015-08-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
16782             Andre Vieira  <andre.simoesdiasvieira@arm.com>
16784         * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
16785         (*cb<optab><mode>1): Likewise.
16786         (*tb<optab><mode>1): Likewise.
16787         (*cb<optab><mode>1): Likewise.
16788         * config/aarch64/iterators.md (inv_cb): New code attribute.
16789         (inv_tb): Likewise.
16790         * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
16791         * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
16793 2015-08-27  Richard Biener  <rguenther@suse.de>
16795         * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
16797 2015-08-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
16799         * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
16800         trap to fix ICE.
16802 2015-08-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
16804         * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
16805         Add declaration.
16807         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
16808         comment.
16809         (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
16810         floating point in VSX registers.
16811         (rs6000_output_move_128bit): Always print out the set insn if we
16812         can't generate an appropriate 128-bit move.
16813         (rs6000_generate_compare): Add support for IEEE 128-bit floating
16814         point in VSX registers comparisons.
16815         (rs6000_expand_float128_convert): Likewise.
16817         * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
16818         predicate for only GPR hard registers.
16820         * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
16821         modes to iterators. Add new iterators for moving 128-bit values in
16822         scalar FPR registers and VSX registers.
16823         (FMOVE128): Likewise.
16824         (FMOVE128_FPR): Likewise.
16825         (FMOVE128_GPR): Likewise.
16826         (FMOVE128_VSX): Likewise.
16827         (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
16828         in VSX registers.
16829         (IFKF): Likewise.
16830         (IBM128): Likewise.
16831         (TFIFKF): Likewise.
16832         (RELOAD): Add IEEE 128-bit floating point modes.
16833         (signbittf2): Convert TF insns to add support for new IEEE 128-bit
16834         floating point in VSX registers modes.
16835         (signbit<mode>2, IBM128 iterator): Likewise.
16836         (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
16837         (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
16838         (negtf2): Likewise.
16839         (neg<mode>2, TFIFKF iterator): Likewise.
16840         (negtf2_internal): Likewise.
16841         (abstf2): Likewise.
16842         (abs<mode>2, TFIFKF iterator): Likewise.
16843         (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
16844         VSX insn support for negate, absolute value, and negative absolute
16845         value.
16846         (ieee_128bit_vsx_neg<mode>2): Likewise.
16847         (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
16848         (ieee_128bit_vsx_abs<mode>2): Likewise.
16849         (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
16850         (ieee_128bit_vsx_nabs<mode>2): Likewise.
16851         (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
16852         (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
16853         floating point in VSX registers.
16854         (unpack<mode>_dm): Likewise.
16855         (unpack<mode>_nodm): Likewise.
16856         (pack<mode>): Likewise.
16857         (unpackv1ti): Likewise.
16858         (unpack<mode>, FMOVE128_VSX iterator): Likewise.
16859         (packv1ti): Likewise.
16860         (pack<mode>, FMOVE128_VSX iterator): Likewise.
16861         (extenddftf2): Add support for IEEE 128-bit floating point in VSX
16862         registers.
16863         (extenddftf2_internal): Likewise.
16864         (trunctfdf2): Likewise.
16865         (trunctfdf2_internal2): Likewise.
16866         (fix_trunc_helper): Likewise.
16867         (fix_trunctfdi2"): Likewise.
16868         (floatditf2): Likewise.
16869         (floatuns<mode>tf2): Likewise.
16870         (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
16871         (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
16872         (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
16873         (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
16874         (float<SDI:mode><IFKF:mode>2): Likewise.
16875         (floatuns<SDI:mode><IFKF:mode>2): Likewise.
16877 2015-08-26  Renlin Li  <renlin.li@arm.com>
16879         * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
16881 2015-08-26  Marcus Shawcroft  <marcus.shawcroft@arm.com>
16882             Jiong Wang  <jiong.wang@arm.com>
16884         * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
16885         (tlsie_tiny_<mode>): New define_insn.
16886         (tlsie_tiny_sidi): Likewise.
16887         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
16888         SYMBOL_TINY_TLSIE.
16889         (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
16890         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
16891         SYMBOL_TINY_TLSIE.
16892         (aarch64_expand_mov_immediate): Likewise.
16893         (aarch64_print_operand): Likewise.
16894         (arch64_classify_tls_symbol): Likewise.
16896 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
16898         * config/arm/arm-arches.def: Replace single value flags with
16899         an initializer built from ARM_FSET_MAKE_CPU1.
16900         * config/arm/arm-cores.def: Likewise.
16901         * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
16902         derivation from the ARM_CORE macro definition, use the given value
16903         instead.
16904         (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
16905         ARM_ARCH macro definition, use the given value instead.
16907 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
16909         * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
16910         feature set.
16911         (struct builtin_description): Replace field mask with field
16912         features.
16913         (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
16914         (IWMMXT2_BUILTIN): Likewise.
16915         (IWMMXT2_BUILTIN2): Likewise.
16916         (FP_BUILTIN): Likewise.
16917         (CRC32_BUILTIN): Likewise.
16918         (CRYPTO_BUILTIN): Likewise.
16919         (iwmmx_mbuiltin): Likewise.
16920         (iwmmx2_mbuiltin): Likewise.
16921         (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
16922         struct builtin_description.
16924 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
16926         * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
16927         (struct builtin_description): Change type of mask to unsigned
16928         long.
16929         * config/arm/arm-protos.h (insn_flags): Declare as type
16930         arm_feature_set.
16931         (tune_flags): Likewise.
16932         * config/arm/arm.c (feature_count): New.
16933         (insn_flags): Define as type arm_feature_set.
16934         (tune_flags): Likewise.
16935         (struct processors): Define field flags as type arm_feature_set.
16936         (all_cores): Update for change to struct processors.
16937         (all_architectures): Likewise.
16938         (arm_option_check_internal): Use arm_feature_set and ARM_FSET
16939         macros.
16940         (arm_option_override_internal): Likewise.
16941         (arm_option_override): Likewise.
16943 2015-08-26  Marcus Shawcroft  <marcus.shawcroft@arm.com>
16944             Jiong Wang  <jiong.wang@arm.com>
16946         * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
16947         tls size for tiny, small, large memory model.
16948         (aarch64_load_symref_appropriately): Support new symbol types.
16949         (aarch64_expand_mov_immediate): Likewise.
16950         (aarch64_print_operand): Likewise.
16951         (aarch64_classify_tls_symbol): Likewise.
16952         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
16953         (aarch64_symbol_type): Likewise.
16954         * config/aarch64/aarch64.md (tlsle): Deleted.
16955         (tlsle12_<mode>): New define_insn.
16956         (tlsle24_<mode>): Likewise.
16957         (tlsle32_<mode>): Likewise.
16958         (tlsle48_<mode>): Likewise.
16959         * doc/sourcebuild.texi (AArch64-specific attributes): Document
16960         "aarch64_tlsle32".
16962 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
16964         * config/arm/arm-protos.h (FL_NONE): New.
16965         (FL_ANY): New.
16966         (arm_feature_set): New.
16967         (ARM_FSET_MAKE): New.
16968         (ARM_FSET_MAKE_CPU1): New.
16969         (ARM_FSET_MAKE_CPU2): New.
16970         (ARM_FSET_CPU1): New.
16971         (ARM_FSET_CPU2): New.
16972         (ARM_FSET_EMPTY): New.
16973         (ARM_FSET_ANY): New.
16974         (ARM_FSET_HAS_CPU1): New.
16975         (ARM_FSET_HAS_CPU2): New.
16976         (ARM_FSET_HAS_CPU): New.
16977         (ARM_FSET_ADD_CPU1): New.
16978         (ARM_FSET_ADD_CPU2): New.
16979         (ARM_FSET_DEL_CPU1): New.
16980         (ARM_FSET_DEL_CPU2): New.
16981         (ARM_FSET_UNION): New.
16982         (ARM_FSET_INTER): New.
16983         (ARM_FSET_XOR): New.
16984         (ARM_FSET_EXCLUDE): New.
16985         (AFM_FSET_IS_EMPTY): New.
16986         (ARM_FSET_CPU_SUBSET): New.
16988 2015-08-26  Jiong Wang  <jiong.wang@arm.com>
16990         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
16991         SYMBOL_TLSLE to SYMBOL_TLSLE24.
16992         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
16993         Likewise.
16994         (aarch64_expand_mov_immediate): Likewise.
16995         (aarch64_print_operand): Likewise.
16996         (aarch64_classify_symbol): Likewise.
16998 2015-08-26  Jiong Wang  <jiong.wang@arm.com>
17000         * config/aarch64/aarch64.opt (mtls-size): New entry.
17001         * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
17002         (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
17003         * doc/invoke.texi (AArch64 Options): Document -mtls-size.
17005 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
17007         * config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
17008         ARM_CORE entry.  Fix some white-space.
17009         * config/arm/arm.c: Remove FL_FOR_ARCH derivation from
17010         ARM_CORE definition.
17012 2015-08-26  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
17014         * fold-const.c (fold_binary_loc) : Move Optimize
17015         root(x)*root(y) as root(x*y) to match.pd.
17016         Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
17017         Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
17018         Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
17019         Move Optimize x/expN(y) into x*expN(-y) to match.pd.
17020         * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
17021         (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
17022         (mult (exps:s @0) (exps:s @1)) : New simplifier.
17023         (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
17024         (rdiv @0 (exps:s @1)) : New simplifier.
17026 2015-08-25  Joseph Myers  <joseph@codesourcery.com>
17028         * gcc.c (driver::finalize): Only assign to extra_specs if
17029         [EXTRA_SPECS].
17031 2015-08-25  Marek Polacek  <polacek@redhat.com>
17033         PR middle-end/67330
17034         * varasm.c (declare_weak): Return after giving an error.
17036 2015-08-25  David Malcolm  <dmalcolm@redhat.com>
17038         * gcc-main.c (main): Add params to driver ctor.
17039         * gcc.c (class env_manager): New.
17040         (env): New global.
17041         (env_manager::init): New.
17042         (env_manager::get): New.
17043         (env_manager::xput): New.
17044         (env_manager::restore): New.
17045         Poison getenv and putenv.
17046         (DEFAULT_TARGET_SYSTEM_ROOT): New.
17047         (target_system_root): Update initialization to use
17048         DEFAULT_TARGET_SYSTEM_ROOT.
17049         (struct spec_list): Add field "default_ptr".
17050         (INIT_STATIC_SPEC): Initialize new field "default_ptr".
17051         (init_spec): Likewise.
17052         (set_spec): Clear field "default_ptr".
17053         (read_specs): Free "spec" and "buffer".
17054         (xputenv): Reimplement in terms of env_manager.
17055         (process_command): Replace ::getenv calls with calls to the
17056         env_manager singleton.
17057         (process_brace_body): Free string in three places.
17058         (driver::driver): New.
17059         (driver::~driver): New.
17060         (used_arg): Convert from a function to...
17061         (class used_arg_t): ...this class, and...
17062         (used_arg): ...this new global instance.
17063         (used_arg_t::finalize): New function.
17064         (getenv_spec_function): Add "const" to local "value".  Replace
17065         ::getenv call with call to the env_manager singleton.
17066         (path_prefix_reset): New function.
17067         (driver::finalize): New function.
17068         * gcc.h (driver::driver): New.
17069         (driver::~driver): New.
17070         (driver::finalize): New.
17072 2015-08-25  Nathan Sidwell  <nathan@acm.org>
17074         * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
17075         target doesn't have one.
17077 2015-08-25  Segher Boessenkool  <segher@kernel.crashing.org>
17079         PR target/67346
17080         * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
17082 2015-08-25  Segher Boessenkool  <segher@kernel.crashing.org>
17084         PR target/67344
17085         * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
17086         a define_insn, remove second alternative.
17088 2015-08-25  Thomas Schwinge  <thomas@codesourcery.com>
17089             Joseph Myers  <joseph@codesourcery.com>
17091         * gcc.c (struct switchstr): Expand comment.
17093 2015-08-25  Nathan Sidwell  <nathan@acm.org>
17095         * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
17096         (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
17098 2015-08-25  Richard Biener  <rguenther@suse.de>
17100         PR middle-end/67306
17101         * genmatch.c (expr::gen_transform): Verify the result of
17102         builtin_decl_implicit.
17103         (dt_simplify::gen_1): Likewise.
17105 2015-08-25  Thomas Preud'homme  <thomas.preudhomme@arm.com>
17107         * config/arm/constraints.md: Also list Cs and US ARM-specific
17108         constraints as used.
17110 2015-08-24  Kaz Kojima  <kkojima@gcc.gnu.org>
17112         PR target/66609
17113         * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
17114         UNSPEC_PCREL.
17115         (nonpic_symbol_mentioned_p): Likewise.
17116         (sh_delegitimize_address): Likewise.
17117         (sh_function_ok_for_sibcall): Take into account weak symbols.
17118         (sh_expand_sym_label2reg): New.
17119         * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
17120         * config/sh/sh.md (UNSPEC_PCREL): New enum.
17121         (call_pcrel): Use sh_expand_sym_label2reg.
17122         (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
17123         (symPCREL_label2reg) New expand.
17125 2015-08-24  Aditya Kumar  <aditya.k7@samsung.com>
17127         * graphite-poly.c: Change type of region from void* to sese.
17128         * graphite-poly.h (struct scop): Changing the type of scop::region
17129         from void* to sese. Change accessor macro accordingly.
17130         * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
17132 2015-08-24  Aditya Kumar  <aditya.k7@samsung.com>
17134         * graphite-scop-detection.c (stmt_simple_for_scop_p):
17135         Constrain only on INTEGER_TYPE.
17137 2015-08-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
17139         PR target/67211
17140         * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
17141         -mefficient-unaligned-vsx on ISA 2.7.
17143         * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
17144         option to a masked option.
17146         * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
17147         logic for -mefficient-unaligned-vsx so that it is set via an arch
17148         ISA option, instead of being set if -mtune=power8 is set. Move
17149         -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
17150         near other default option handling.
17152 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
17154         * genflags.c (gen_macro): Delete.
17155         (gen_proto): Don't create GEN.*CALL.* macros.
17156         * gensupport.h (get_file_location): Declare.
17157         * gensupport.c (rtx_locs): New variable.
17158         (read_md_rtx): Record rtx locations.
17159         (get_file_location): New function.
17160         * target-insns.def (call, call_pop, call_value, call_value_pop)
17161         (sibcall, sibcall_value): New patterns.
17162         * gentarget-def.c (parse_argument): New function.
17163         (def_target_insn): Use it.  Handle optional operands.  Raise an
17164         error if an .md pattern has the wrong number of operands for the
17165         pattern name.  Remove the names of unused operands from the prototype.
17166         * builtins.c (expand_builtin_apply): Use targetm functions
17167         instead of HAVE_call_value and GEN_CALL_VALUE.
17168         * calls.c (emit_call_1): Likewise.  Remove support for sibcall_pop
17169         and sibcall_value_pop.
17170         * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
17171         of GEN_CALL.
17172         * config/alpha/alpha.md (untyped_call): Likewise.
17173         * config/iq2000/iq2000.md (untyped_call): Likewise.
17174         * config/m68k/m68k.md (untyped_call): Likewise.
17175         * config/mips/mips.md (untyped_call): Likewise.
17176         * config/pa/pa.md (untyped_call): Likewise.
17177         * config/rs6000/rs6000.md (untyped_call): Likewise.
17178         * config/sparc/sparc.md (untyped_call): Likewise.
17179         * config/tilegx/tilegx.md (untyped_call): Likewise.
17180         * config/tilepro/tilepro.md (untyped_call): Likewise.
17181         * config/visium/visium.md (untyped_call): Likewise.
17182         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
17183         gen_call_value instead of GEN_CALL_VALUE.
17184         * config/arm/arm.md (untyped_call): Likewise.
17185         * config/cr16/cr16.c (cr16_function_arg): Remove reference to
17186         GEN_CALL.
17188 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
17190         * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
17191         (have_cbranchcc4): New variable.
17192         (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
17193         (noce_get_condition): Use it instead of HAVE_cbranchcc4.
17194         (if_convert): Initialize have_cbranchcc4.
17196 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
17198         * builtins.c (expand_cmpstrn): Rename to...
17199         (expand_cmpstrn_or_cmpmem): ...this.
17200         (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
17201         (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
17202         Remove mode argument.
17203         (expand_builtin): Update accordingly.
17205 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
17207         * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
17208         (expand_builtin_strcmp, expand_builtin_strncmp): Use them.  Remove
17209         references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
17210         * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
17211         Add predicates for operands 0 and 3.
17212         * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
17213         operand.
17214         * config/sh/sh.md (cmpstrnsi): Change the length predicate from
17215         immediate_operand to nonmemory_operand.
17217 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
17219         * df-scan.c (df_insn_info_init_fields): New function, split out
17220         from...
17221         (df_insn_create_insn_record): ...here.
17222         (df_insn_info_free_fields): New function, split out from...
17223         (df_insn_info_delete): ...here.
17224         (df_insn_rescan): Use the new functions instead of freeing and
17225         reallocating the df_insn_info.
17227 2015-08-24  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
17229         * doc/install.texi (Binaries): Remove links no longer valid.
17231 2015-08-24  Nathan Sidwell  <nathan@codesourcery.com>
17233         * config/nvptx/mkoffload.c (process): Replace
17234         GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
17236 2015-08-24  H.J. Lu  <hongjiu.lu@intel.com>
17238         PR target/67329
17239         * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
17241 2015-08-24  Renlin Li  <renlin.li@arm.com>
17243         * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
17244         * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
17245         * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
17246         * config/arm/constraints.md ("j"): Add check for high code.
17248 2015-08-24  Tom de Vries  <tom@codesourcery.com>
17250         PR tree-optimization/65468
17251         * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
17252         chunk_size is one.
17254 2015-08-24  Nathan Sidwell  <nathan@acm.org>
17256         * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
17257         change to nvptx_type_from_mode call. Use arg_promotion for both
17258         split and non-split args.
17260 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
17262         * target-insns.def (movstr): New pattern.
17263         * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
17264         (expand_movstr): Use targetm rather than HAVE_movstr/
17265         CODE_FOR_movstr.
17267 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
17269         * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
17270         cast syntax.
17272 2015-08-24  Andrew Pinski  <apinski@cavium.com>
17274         * config/aarch64/aarch64-tuning-flags.def: Remove all index to
17275         AARCH64_EXTRA_TUNING_OPTION.
17276         * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
17277         New enum.
17278         (aarch64_extra_tuning_flags): Base the shifted value on the index
17279         instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
17280         * config/aarch64/aarch64.c: Remove the last argument to
17281         AARCH64_EXTRA_TUNING_OPTION.
17283 2015-08-23  Nathan Sidwell  <nathan@acm.org>
17285         * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
17286         decls.
17287         (nvptx_declare_function_name): Insert formatting tabs for
17288         consistency.
17290 2015-08-23  Tom de Vries  <tom@codesourcery.com>
17292         * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
17293         parm_decl, rather than generating a dummy default def in cfun.
17294         * tree-cfg.c (replace_ssa_name): Assume no default defs.  Make sure
17295         ssa_name from cfun and child_fn do not share a stmt as def stmt.
17296         (move_stmt_op): Handle PARM_DECl.
17297         (gather_ssa_name_hash_map_from): New function.
17298         (move_sese_region_to_fn): Add default defs for function params, and add
17299         them to vars_map.  Release copied ssa names.
17300         * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
17302 2015-08-23  Tom de Vries  <tom@codesourcery.com>
17304         * doc/sourcebuild.texi: Rename vect_no_int_max with
17305         vect_no_int_min_max.  Update description.
17307 2015-08-22  Andrew Pinski  <apinski@cavium.com>
17309          * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
17310         * config/aarch64/aarch64-protos.h
17311         (aarch64_fusion_pairs_index): New enum.
17312         (aarch64_fusion_pairs): Base the shifted value on the index instead
17313         Rewrite AARCH64_FUSE_ALL to be based on the end index.
17314         of the argument to AARCH64_FUSION_PAIR.
17315         * config/aarch64/aarch64.c: Remove the last argument to
17316         AARCH64_FUSION_PAIR.
17318 2015-08-22  Mikhail Maltsev <maltsevm@gmail.com>
17320         * dominance.c (new_zero_array): Define.
17321         (dom_info): Redefine as class with proper encapsulation.
17322         (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
17323         Add new members.
17324         (dom_info::dom_info, ~dom_info): Define.  Use new/delete for memory
17325         allocations/deallocations.  Pass function as parameter (instead of
17326         using cfun).
17327         (dom_info::get_idom): Define accessor method.
17328         (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
17329         link_roots, calc_idoms): Redefine as class members.  Do not use cfun.
17330         (calculate_dominance_info): Adjust to use dom_info class.
17331         (verify_dominators): Likewise.
17333 2015-08-21  Alexandre Oliva  <aoliva@redhat.com>
17335         * print-rtl.c (print_rtx): Check the correct range for
17336         flag_dump_unnumbered_links to behave as documented.
17338         PR rtl-optimization/67227
17339         PR rtl-optimization/64164
17340         * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
17341         (nonoverlapping_memrefs_p): Test offsets and sizes when given
17342         identical gimple_reg exprs.
17344 2015-08-21  Nathan Sidwell  <nathan@acm.org>
17346         * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
17347         expansion.
17348         * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
17349         crtl->stack_alignment_needed to determine alignment.
17350         (nvptx_get_drap_rtx): New.
17351         (TARGET_GET_DRAP_RTX): Override.
17352         * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
17354 2015-08-21  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
17356         * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
17358 2015-08-21  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
17360         * configure.ac: Remove uwin* cases.
17361         * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
17362         i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
17363         i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
17364         i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
17365         * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
17366         i[34567]86-*-uwin*, powerpc-*-beos*.
17368 2015-08-21  Richard Sandiford  <richard.sandiford@arm.com>
17370         * gencodes.c (gencodes): Print the comma for the preceding
17371         enum value rather than the current one.  Use aliased enum values
17372         rather than #defines for compiled-out patterns.
17373         (main): Update accordingly.  Replace LAST_INSN_CODE with
17374         NUM_INSN_CODES.
17375         * lra.c (insn_code_data): Update accordingly.
17376         (finish_insn_code_data_once, get_static_insn_data): Likewise.
17377         * recog.h (target_recog): Likewise.
17378         (preprocess_insn_constraints): Change parameter to unsigned int.
17379         * recog.c (preprocess_insn_constraints): Likewise.
17380         (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
17381         * tree-vect-stmts.c (vectorizable_operation): Simplify.
17383 2015-08-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
17385         PR rtl-optimization/61657
17386         * loop-iv.c (iv_number_of_iterations): Declare up and down as
17387         unsigned.  Remove superflous uint64_t cast.
17389 2014-08-21  Felix Yang  <felix.yang@huawei.com>
17390             Jiji Jiang  <jiangjiji@huawei.com>
17392         * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
17393         argument and get builtin function code directly from CALL.
17394         (gimple_stringop_fixed_value): Modified accordingly.
17395         (gimple_stringops_transform, gimple_stringops_values_to_profile):
17396         Modified accordingly and only accept BUILT_IN_NORMAL string operations.
17398 2015-08-21  Dominik Vogt  <vogt@linux.vnet.ibm.com>
17400         * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
17402 2015-08-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
17404         * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
17405         to match.pd.
17406         Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
17407         Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
17408         Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
17409         Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
17410         Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
17411         Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
17412         Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
17413         Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
17414         Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
17415         Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
17417         * match.pd (SIN ) : New Operator.
17418         (TAN) : New Operator.
17419         (mult (SQRT@1 @0) @1) : New simplifier.
17420         (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
17421         (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
17422         (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
17423         (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
17424         (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
17425         (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
17426         (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
17427         (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
17428         (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
17429         (rdiv @0 (POW:s @1 @2)) : New simplifier.
17431 2015-08-21  Bin Cheng  <bin.cheng@arm.com>
17433         * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
17434         loop if EXPR is simplified to const value.
17436 2015-08-21  Yury Gribov  <y.gribov@samsung.com>
17438         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
17439         BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
17441 2015-08-21  Richard Biener  <rguenther@suse.de>
17443         PR middle-end/67285
17444         * gimple-fold.c (replace_stmt_with_simplification): Assert
17445         seq is empty when replacing a call with itself but different
17446         arguments.
17447         * gimple-match-head.c (maybe_push_res_to_seq): When pushing
17448         a call require that it is const.
17450 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17452         * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
17453         * builtins.c (get_object_alignment_2): Adjust.
17454         * varasm.c (align_variable): Likewise.
17455         (get_variable_align): Likewise.
17456         (build_constant_desc): Likewise.
17457         (force_const_mem): Likewise.
17458         * doc/tm.texi.in: Likewise.
17459         * doc/tm.texi: Regenerate.
17461 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17463         * genconfig.c (main): Always define HAVE_cc0.
17464         * recog.c (rest_of_handle_peephole2): Adjust.
17466 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17468         * reorg.c (relax_delay_slots): Don't use #if to check value of
17469         HAVE_cc0.
17471 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17473         * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
17474         * targhooks.c (default_have_conditional_execution): Adjust.
17476 2015-08-20  Richard Sandiford  <richard.sandiford@arm.com>
17478         * rtl.h (rtvec_all_equal_p): Declare.
17479         (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
17480         * rtl.c (rtvec_all_equal_p): New function.
17481         * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
17482         * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
17483         (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
17484         * config/arm/arm.c (neon_vdup_constant): Likewise.
17485         * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
17486         * config/tilegx/constraints.md (W, Y): Likewise.
17487         * config/tilepro/constraints.md (W, Y): Likewise.
17488         * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
17489         (classify_immediate): Use unwrap_const_vec_duplicate.
17490         * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
17491         (reg_or_v2s8bit_operand): Likewise.
17492         * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
17493         (reg_or_v4s8bit_operand): Likewise.
17495 2015-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17497         * config/rs6000/altivec.h (vec_pmsum_be): New #define.
17498         (vec_shasigma_be): New #define.
17499         * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
17500         (VPMSUMH): Likewise.
17501         (VPMSUMW): Likewise.
17502         (VPMSUMD): Likewise.
17503         (VPMSUM): New BU_P8V_OVERLOAD_2.
17504         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
17505         entries for VEC_MADD and VEC_VPMSUM.
17507 2015-08-20  Georg-Johann Lay  <avr@gjlay.de>
17509         * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
17510         Multiply argument avr_n_flash by 64 to match unit of "KiB".
17511         (avr_pgm_check_var_decl): Same.
17513 2015-08-20  Alan Lawrence  <alan.lawrence@arm.com>
17515         * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
17516         initialization of HFmode scalar type (float16_t) to...
17517         (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
17518         code.
17520         (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
17522         * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
17523         having an -mfp16-format.
17525 2015-08-20  Richard Sandiford  <richard.sandiford@arm.com>
17527         * config/i386/predicates.md (vector_all_ones_operand): Use
17528         CONSTM1_RTX to simplify definition.
17530 2015-08-20  Richard Biener  <rguenther@suse.de>
17532         * toplev.c (compile_file): Remove loop calling late_global_decl
17533         on all symbols.
17534         * varpool.c (varpool_node::assemble_decl): Call late_global_decl
17535         on decls we assembled.
17537 2015-08-20  James Greenhalgh  <james.greenhalgh@arm.com>
17539         * common/config/aarch64/aarch64-common.c
17540         (AARCH64_CPU_NAME_LENGTH): Delete.
17541         (aarch64_option_extension): New.
17542         (all_extensions): Likewise.
17543         (processor_name_to_arch): Likewise.
17544         (arch_to_arch_name): Likewise.
17545         (all_cores): New.
17546         (all_architectures): Likewise.
17547         (aarch64_get_extension_string_for_isa_flags): Likewise.
17548         (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
17549         architecture names.
17550         * config/aarch64/aarch64-protos.h
17551         (aarch64_get_extension_string_for_isa_flags): New.
17552         * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
17553         (aarch64_option_print): Get the string to print from
17554         aarch64_get_extension_string_for_isa_flags.
17555         (aarch64_declare_function_name): Likewise.
17556         * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
17557         (MCPU_TO_MARCH_SPEC): This.
17558         (ASM_CPU_SPEC): Use it.
17559         (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
17560         (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
17561         (EXTRA_SPEC_FUNCTIONS): Use it.
17563 2015-08-20  Simon Dardis  <simon.dardis@imgtec.com>
17565         * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
17566         expansion when !ISA_HAS_LWL_LWR.
17567         (mips_block_move_straight): Update the size of elements copied to
17568         account for alignment when !ISA_HAS_LWL_LWR.
17569         * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
17571 2015-08-19  Jiong Wang  <jiong.wang@arm.com>
17573         * expr.c (expand_expr_real_2): Check gimple statement during
17574         LSHIFT_EXPR expand.
17576 2015-08-19  Magnus Granberg  <zorry@gentoo.org>
17578         * common.opt (fstack-protector): Initialize to -1.
17579         (fstack-protector-all): Likewise.
17580         (fstack-protector-strong): Likewise.
17581         (fstack-protector-explicit): Likewise.
17582         * configure.ac: Add --enable-default-ssp.
17583         * defaults.h (DEFAULT_FLAG_SSP): New.  Default SSP to strong.
17584         * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
17585         -1.
17586         * doc/install.texi: Document --enable-default-ssp.
17587         * config.in: Regenerated.
17588         * configure: Likewise.
17590 2015-08-19  Alexandre Oliva  <aoliva@redhat.com>
17592         PR rtl-optimization/64164
17593         * cfgexpand.c (parm_maybe_byref_p): Renamed to...
17594         (parm_in_stack_slot_p): ... this.  Disregard mode, what
17595         matters is whether the parm will live in a pseudo or a stack
17596         slot.
17597         (expand_one_ssa_partition): Deal with params without a default
17598         def.  Disregard mode.
17599         * cfgexpand.h: Renamed function declaration.
17600         * tree-ssa-coalesce.c: Adjust.
17601         * function.c (split_complex_args): Allocate stack slot for
17602         unassigned parms before splitting.
17603         (parm_in_unassigned_mem_p): New.  Use it instead of
17604         parm_maybe_byref_p throughout this file.
17605         (assign_parm_setup_block): Use it.  Accept pseudos in the
17606         expand-assigned rtl.
17607         (assign_parm_setup_reg): Drop BLKmode requirement.
17608         (assign_parm_setup_stack): Allocate and fill in the address of
17609         unassigned MEM parms.
17611 2015-08-19  David Sherwood  <david.sherwood@arm.com>
17613         * genmodes.c (emit_mode_unit_size_inline): New function.
17614         (emit_mode_unit_precision_inline): New function.
17615         (emit_insn_modes_h): Emit new #define.  Emit new functions.
17616         (emit_mode_unit_size): New function.
17617         (emit_mode_unit_precision): New function.
17618         (emit_mode_adjustments): Add mode_unit_size adjustments.
17619         (emit_insn_modes_c): Emit new arrays.
17620         * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
17621         use new inline methods.
17623 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17625         * config/aarch64/aarch64.c (bit_count): Delete prototype
17626         and definition.
17627         (aarch64_print_operand): Use popcount_hwi instead of the above.
17629 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17631         * config/aarch64/aarch64-option-extensions.def: Delete obsolete
17632         comment.
17634 2015-08-19  Marek Polacek  <polacek@redhat.com>
17636         PR middle-end/67133
17637         * gimple-ssa-isolate-paths.c
17638         (insert_trap_and_remove_trailing_statements): Rename to ...
17639         (insert_trap): ... this.  Don't remove trailing statements; split
17640         block instead.
17641         (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
17643 2015-08-19  Mikael Morin  <mikael@gcc.gnu.org>
17645         PR other/67042
17646         * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
17647         conditionalize the whole on __GNUC__.  Add fallback code
17648         depending neither on undefined nor implementation-defined behaviour.
17650 2015-08-19  Jiong Wang  <jiong.wang@arm.com>
17652         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
17653         whitespaces with tab.
17655 2015-08-19  Florian Weimer  <fweimer@redhat.com>
17657         * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
17658         Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
17659         * prj-proc.adb (Process.Process_Expression_Variable_Decl):
17660         Move Name_Ids instantiation to the Prj.Proc package, to avoid
17661         trampolines.
17663 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17665         * config/arm/arm.c (bounds_check): Use %wd print format
17666         for HOST_WIDE_INT arguments.
17668 2015-08-18  Trevor Saunders  <tbsaunde@tbsaunde.org>
17670         * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
17671         dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
17672         mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
17673         signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
17674         tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
17675         tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
17676         tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
17677         tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
17678         tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
17679         typedefs.
17681 2015-08-18  trevor Saunders  <tbsaunde@tbsaunde.org>
17683         * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
17684         function.c, graphite-scop-detection.c, haifa-sched.c,
17685         ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
17686         tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
17687         varasm.c: Remove typedefs of structs.
17689 2015-08-18  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
17691         * config/rs6000/altivec.h (vec_adde): New define.
17692         (vec_addec): Likewise.
17693         (vec_double): Likewise.
17694         (vec_bperm): Likewise.
17695         (vec_gb): Likewise.
17696         * config/rs6000/rs6000-builtin.def (ADDE): New
17697         BU_ALTIVEC_OVERLOAD_3.
17698         (ADDEC): Likewise.
17699         (DOUBLE): New BU_VSX_OVERLOAD_1.
17700         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
17701         entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
17702         ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
17703         VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
17704         ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
17705         ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
17706         ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
17707         P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
17708         and P8V_BUILTIN_VEC_VBPERMQ.
17710 2015-08-18  Jason Merrill  <jason@redhat.com>
17712         * print-tree.c (print_node): Handle TREE_BINFO.
17714 2015-08-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
17716         PR middle-end/36757
17717         * builtins.c (expand_builtin_signbit): Add asserts to make sure
17718         we can expand BUILT_IN_SIGNBIT inline.
17719         * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
17720         * doc/extend.texi: Document the type-generic __builtin_signbit.
17722 2015-08-18  Richard Sandiford  <richard.sandiford@arm.com>
17724         PR rtl-optimization/67218
17725         * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
17726         (simplify_unary_operation_1): Use it.
17728 2015-08-18  Marek Polacek  <polacek@redhat.com>
17730         PR middle-end/67222
17731         * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
17732         if the call isn't valid.
17733         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
17734         gimple_call_builtin_p.
17735         (call_may_clobber_ref_p_1): Likewise.
17736         (stmt_kills_ref_p): Likewise.
17738 2015-08-18  Robert Suchanek  <robert.suchanek@imgtec.com>
17740         * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
17741         * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
17742         (mips_hard_regno_scratch_ok): Likewise.
17743         (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
17744         * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
17746 2015-08-18  Bin Cheng  <bin.cheng@arm.com>
17748         * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
17749         (determine_value_range): Call refine_value_range_using_guard for
17750         each loop initial condition to improve value range.
17752 2015-08-17  Aldy Hernandez  <aldyh@redhat.com>
17754         * config/i386/i386.c: Remove include of fibheap.h.
17756 2015-08-17  Richard Biener  <rguenther@suse.de>
17758         PR tree-optimization/67221
17759         * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
17760         (sccvn_dom_walker::before_dom_children): Mark backedges of
17761         non-executable blocks as not executable.
17763 2015-08-17  David Sherwood  <david.sherwood@arm.com>
17765         * config/arm/arm.c (neon_element_bits): Replace call to
17766         GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
17767         * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
17768         (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
17769         (neon_vdup_lane<mode>): Likewise.
17770         * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
17771         (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
17772         (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
17773         * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
17774         * config/spu/spu.c (arith_immediate_p): Likewise.
17775         * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
17776         * expr.c (expand_expr_real_2): Likewise.
17777         * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
17778         * simplify-rtx.c (simplify_immed_subreg): Likewise.
17779         * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
17780         * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
17781         New variable.
17782         * fold-const.c (fold_binary_loc): Replace call to
17783         GET_MODE_PRECISION (GET_MODE_INNER (m)) with
17784         GET_MODE_UNIT_PRECISION (m).
17786 2015-08-17  Mike Stump  <mikestump@comcast.net>
17788         * config/arm/arm.c (arm_block_move_unaligned_straight):
17789         Emit normal move instead of unaligned load when source or destination
17790         are appropriately aligned.
17792 2015-08-17  Richard Biener  <rguenther@suse.de>
17793             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
17795         PR middle-end/16107
17796         * match.pd (div (coss (op @0) : New simplifier.
17798 2015-08-14  Alexandre Oliva  <aoliva@redhat.com>
17800         PR rtl-optimization/64164
17801         PR bootstrap/66978
17802         PR middle-end/66983
17803         PR rtl-optimization/67000
17804         PR middle-end/67034
17805         PR middle-end/67035
17806         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
17807         * tree-ssa-copyrename.c: Removed.
17808         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
17809         -ftree-coalesce-vars.
17810         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
17811         * common.opt (ftree-copyrename): Ignore.
17812         (ftree-coalesce-inlined-vars): Likewise.
17813         * doc/invoke.texi: Remove the ignored options above.
17814         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
17815         * tree-ssa-coalesce.h: ... here.
17816         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
17817         headers required by it.
17818         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
17819         across variables when flag_tree_coalesce_vars.  Check register
17820         use and promoted modes to allow coalescing.  Do not coalesce
17821         maybe-byref parms with SSA_NAMEs of other variables, or
17822         anonymous SSA_NAMEs.  Moved to tree-ssa-coalesce.c.
17823         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
17824         with its member functions to tree-ssa-coalesce.c.
17825         (var_map_base_init): Likewise.  Renamed to
17826         compute_samebase_partition_bases.
17827         (partition_view_normal): Drop want_bases parameter.
17828         (partition_view_bitmap): Likewise.
17829         * tree-ssa-live.h: Adjust declarations.
17830         * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
17831         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
17832         default defs at the entry point.
17833         (dump_part_var_map): New.
17834         (compute_optimized_partition_bases): New, called by...
17835         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
17836         of compute_samebase_partition_bases.  Adjust.
17837         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
17838         * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
17839         (ssa_default_def_partition): New.
17840         (get_rtl_for_parm_ssa_default_def): New.
17841         (align_local_variable, add_stack_var): Support anonymous SSA
17842         names.
17843         (defer_stack_allocation): Likewise.  Declare earlier.
17844         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
17845         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
17846         Do no record deferred-allocation marker in
17847         SA.partition_to_pseudo.
17848         (expand_stack_vars): Adjust check for the marker in it.
17849         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
17850         redundant MEM attr setting.
17851         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
17852         from...
17853         (expand_one_stack_var): ... this.  New wrapper to check and
17854         skip already expanded SSA partitions.
17855         (record_alignment_for_reg_var): New, factored out of...
17856         (expand_one_var): ... this.
17857         (expand_one_ssa_partition): New.
17858         (adjust_one_expanded_partition_var): New.
17859         (expand_one_register_var): Check and skip already expanded SSA
17860         partitions.
17861         (expand_used_vars): Don't create DECLs for anonymous SSA
17862         names.  Expand all SSA partitions, then adjust all SSA names.
17863         (pass::execute): Replace the loops that set
17864         SA.partition_to_pseudo from partition leaders and cleared
17865         DECL_RTL for multi-location variables, and that which used to
17866         rename vars and set attrs, with one that clears DECL_RTL and
17867         checks that PARMs and RESULTs default_defs match DECL_RTL.
17868         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
17869         * emit-rtl.c: Include stor-layout.h.
17870         (set_reg_attrs_for_parm): Handle NULL decl.
17871         (set_reg_attrs_for_decl_rtl): Take mode from expression if
17872         it's not a DECL.
17873         * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
17874         rather than its possibly-NULL DECL.
17875         * explow.c (promote_ssa_mode): New.
17876         * explow.h (promote_ssa_mode): Declare.
17877         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
17878         (read_complex_part): Export.
17879         * expr.h (read_complex_part): Declare.
17880         * cfgexpand.h (parm_maybe_byref_p): Declare.
17881         * function.c: Include cfgexpand.h.
17882         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
17883         (use_register_for_parm_decl): Wrapper for the above to
17884         special-case the result_ptr.
17885         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
17886         (split_complex_args): Take assign_parm_data_all argument.
17887         Pass it to rtl_for_parm.  Set up rtl and context for split
17888         args.  Reset complex parm before fetching its default decl
17889         rtl.
17890         (assign_parms_unsplit_complex): Use the default-def complex
17891         parm rtl if it matches the components.
17892         (assign_parms_augmented_arg_list): Adjust.
17893         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
17894         multiple locations.  Recognize split complex args.
17895         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
17896         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
17897         (assign_parm_setup_block): Prefer SSA-assigned location, and
17898         fill in its address if the memory location of a maybe-byref
17899         parm was not assigned by cfgexpand.
17900         (assign_parm_setup_reg): Likewise.  Adjust its mode as
17901         needed.  Use entry_parm for equiv if stack_parm is NULL.  Make
17902         sure passed_pointer parms don't need conversion.  Copy address
17903         or value as needed.
17904         (assign_parm_setup_stack): Prefer SSA-assigned location.
17905         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
17906         rtl before testing for pointer bounds.  Special-case result_ptr.
17907         (expand_function_start): Maybe reset DECL_RTL of result.
17908         Prefer SSA-assigned location for result and static chain.
17909         Factor out DECL_RESULT and SET_DECL_RTL.  Convert static chain
17910         to Pmode if needed, from H.J. Lu  <hongjiu.lu@intel.com>.
17911         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
17912         anonymous SSA names.  Use promote_ssa_mode.
17913         (get_temp_reg): Likewise.
17914         (remove_ssa_form): Adjust.
17915         * stor-layout.c (layout_decl): Don't set mem attributes of
17916         non-MEMs.
17917         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
17918         and get its reg_usage for reg invalidation.
17919         (compute_bb_dataflow): Pass it insn.
17920         (emit_notes_in_bb): Likewise.
17922 2015-08-14  Marek Polacek  <polacek@redhat.com>
17924         * tree-core.h (tree_base): Fix typo.
17926 2015-08-14  Marek Polacek  <polacek@redhat.com>
17928         PR middle-end/67133
17929         * gimple.c (infer_nonnull_range_by_attribute): Check that the
17930         nonnull argument position is not outside function arguments.
17932 2015-08-14  Matthew Wahab  <matthew.wahab@arm.com>
17934         PR target/67143
17935         * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
17936         'lconst_atomic' with 'const_atomic'.
17937         (atomic_fetch_<optab><mode>): Likewise.
17938         (atomic_<optab>_fetch<mode>): Likewise.
17939         * config/aarch64/iterators.md (lconst-atomic): Move below
17940         'const_atomic'.
17941         (const_atomic): New.
17943 2015-08-14  Thomas Schwinge  <thomas@codesourcery.com>
17944             Bernd Schmidt  <bernds@codesourcery.com>
17946         * config/nvptx/nvptx.c (nvptx_option_override): Don't override
17947         debug options.
17948         * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
17949         (DWARF2_DEBUGGING_INFO): Don't define.
17950         * debug.h (dwarf2_lineno_debug_hooks): Declare.
17951         * toplev.c (process_options): Add a case for it.
17952         * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
17953         (dwarf2out_init): Skip most initializations if
17954         DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
17955         case.
17956         * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
17957         DWARF2_LINENO_DEBUGGING_INFO.
17958         * opts.c (set_debug_level): Likewise.
17960 2015-08-14  James Greenhalgh  <james.greenhalgh@arm.com>
17962         * config/arm/types.md (is_neon_type): Add missing types.
17964 2015-08-14  Yuri Rumyantsev  <ysrumyan@gmail.com>
17966         * config/i386/driver-i386.c (host_detect_local_cpu): Add support
17967         for skylake.
17968         * config/i386/i386.c (PTA_SKYLAKE): New macros.
17969         (processor_alias_table): Add skylake description.
17970         (enum processor_model): Add skylake processor.
17971         (arch_names_table): Add skylake record.
17972         * doc/invoke.texi: Add skylake item.
17974 2015-08-13  Andrew MacLeod  <amacleod@redhat.com>
17976         * ira-int.h: Include recog.h.
17977         * ira-build.c: Don't include recog.h.
17978         * ira-color.c: Likewise.
17979         * ira-conflicts.c: Likewise.
17980         * ira-costs.c: Likewise.
17981         * ira-emit.c: Likewise.
17982         * ira-lives.c: Likewise.
17983         * ira.c: Likewise.
17984         * sched-deps.c: Likewise.
17985         * sel-sched.c: Likewise.
17986         * target-globals.c: Likewise.
17988 2015-08-13  Richard Sandiford  <richard.sandiford@arm.com>
17990         PR bootstrap/55035
17991         * reload1.c (elimination_costs_in_insn): Make it obvious to the
17992         compiler that the n_dups and n_operands loop bounds are invariant.
17994 2015-08-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17996         * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
17997         expressions in A and B.
17999 2015-08-13  Richard Biener  <rguenther@suse.de>
18001         * tree.c (nonnull_arg_p): Move from ...
18002         * tree-vrp.c (nonnull_arg_p): ... here.
18003         * tree.h (nonnull_arg_p): Declare.
18004         * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
18005         here, register ptr != 0 for nonnull_arg_p pointer arguments.
18006         Properly initialize static chain and by-reference result pointer.
18007         (run_scc_vn): Adjust.
18009 2015-08-13  Robert Suchanek  <robert.suchanek@imgtec.com>
18011         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
18012         TUNE_I6400.
18014 2015-08-13  Matthew Wahab  <matthew.wahab@arm.com>
18016         * config/aarch64/aarch64-protos.h
18017         (aarch64_gen_atomic_cas): Declare.
18018         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
18019         Choose appropriate instruction pattern for the target.
18020         (aarch64_gen_atomic_cas): New.
18021         * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
18022         (atomic_compare_and_swap<mode>_1): Rename to
18023         aarch64_compare_and_swap<mode>.  Fix some indentation.
18024         (aarch64_compare_and_swap<mode>_lse): New.
18025         (aarch64_atomic_cas<mode>): New.
18027 2015-08-13  Matthew Wahab  <matthew.wahab@arm.com>
18029         * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
18030         (TARGET_LSE): New.
18032 2015-08-13  Richard Biener  <rguenther@suse.de>
18034         PR tree-optimization/67191
18035         * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
18036         assert we value-numbered last stmts operand because it can validly
18037         trigger for unreachable code.
18039 2015-08-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18041         PR rtl-optimization/67103
18042         * ifcvt.c (noce_try_store_flag_constants): Move
18043         x = (-(test != 0) & (b - a)) + a transformation to...
18044         (noce_try_cmove): ... Here.  Try it if normal conditional
18045         move fails.
18047 2015-08-13  Robert Suchanek  <robert.suchanek@imgtec.com>
18049         * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
18050         pseudo-processors.
18051         * config/mips/mips.md (processor): Remove w32 and w64.
18053 2015-08-13  Richard Biener  <rguenther@suse.de>
18055         PR tree-optimization/66502
18056         PR tree-optimization/67167
18057         * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
18058         backedge arguments.
18059         (vn_phi_lookup): Adjust.
18060         (vn_phi_insert): Likewise.
18061         (visit_phi): Prefer to value-number to another PHI node
18062         over value-numbering to a PHI argument.
18063         (init_scc_vn): Mark DFS back edges.
18065 2015-08-13  Richard Biener  <rguenther@suse.de>
18067         * gimple.h (gcall::code_): New constant static member.
18068         (gcond::code_): Likewise.
18069         * gimple.c (gcall::code_): Define.
18070         (gcond::code_): Likewise.
18071         (is_a_helper <const gcond *>): Add.
18072         (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
18073         and forward to a new gcall overload with less checking and a
18074         cheaper way to access the operand.
18075         (gimple_call_lhs_ptr): Likewise.
18076         (gimple_call_set_lhs): Likewise.
18077         (gimple_call_internal_p): Likewise.
18078         (gimple_call_with_bounds_p): Likewise.
18079         (gimple_call_set_with_bounds): Likewise.
18080         (gimple_call_internal_fn): Likewise.
18081         (gimple_call_set_ctrl_altering): Likewise.
18082         (gimple_call_ctrl_altering_p): Likewise.
18083         (gimple_call_fntype): Likewise.
18084         (gimple_call_fn): Likewise.
18085         (gimple_call_fn_ptr): Likewise.
18086         (gimple_call_set_fndecl): Likewise.
18087         (gimple_call_fndecl): Likewise.
18088         (gimple_call_chain): Likewise.
18089         (gimple_call_num_args): Likewise.
18090         (gimple_call_arg): Likewise.
18091         (gimple_call_arg_ptr): Likewise.
18092         (gimple_call_set_arg): Likewise.
18093         (gimple_call_noreturn_p): Likewise.
18094         (gimple_cond_code): Likewise.
18095         (gimple_cond_lhs): Likewise.
18096         (gimple_cond_rhs): Likewise.
18097         (gimple_has_lhs): Reduce checking.
18099 2015-08-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
18101         PR middle-end/25529
18102         * match.pd (div (mult @0 @1) @1) : New simplifier.
18104 2015-08-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
18106         PR target/67071
18107         * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
18108         predicate to allow construction of vector constants using the
18109         VSLDOI vector shift instruction.
18111         * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
18112         declaration.
18114         * config/rs6000/rs6000.c (vspltis_shifted): New function to return
18115         the number of bytes to be shifted left and filled in with either
18116         all zero or all one bits.
18117         (gen_easy_altivec_constant): Call vsplitis_shifted if no other
18118         methods exist.
18119         (output_vec_const_move): On power8, generate XXLORC to generate
18120         a vector constant with all 1's. Do a split if we need to use a
18121         VSLDOI instruction.
18123         * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
18124         properly test for the MSB.
18126         * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
18127         vector constants that can be created with VSLDOI.
18129 2015-08-11  Trevor Saunders  <tbsaunde@tbsaunde.org>
18131         revert:
18132         * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
18133         gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
18134         ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
18135         omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
18136         tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
18137         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
18138         tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
18139         tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
18140         vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
18142 2015-08-12  Max Filippov  <jcmvbkbc@gmail.com>
18144         * config/xtensa/constraints.md (define_constraint "Y"): New
18145         constraint.
18146         * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
18147         * config/xtensa/linux.h (ASM_SPEC): Likewise.
18148         * config/xtensa/predicates.md (move_operand): Match constants
18149         and symbols in the presence of TARGET_AUTO_LITPOOLS.
18150         * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
18151         immediate references to TLS data.
18152         (xtensa_emit_move_sequence): Don't force constants to memory in
18153         the presence of TARGET_AUTO_LITPOOLS.
18154         (print_operand): Add 'y' format, same as default, but capable of
18155         printing SF mode constants as well.
18156         * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
18157         (movsf_internal): Add movi pattern that loads literal.
18158         (movsf, movdf): Don't force constants to memory in the presence
18159         of TARGET_AUTO_LITPOOLS.
18160         (movdf_internal): Add 'Y' constraint.
18161         * config/xtensa/xtensa.opt (mauto-litpools): New option.
18162         * doc/invoke.text (Xtensa options): Document -mauto-litpools.
18164 2015-08-12  Matthew Wahab  <matthew.wahab@arm.com>
18166         * config/arm/arm-fpus.def: Replace booleans with feature flags.
18167         Update comment.
18168         * config/arm/arm.c (ARM_FPU): Update macro.
18169         * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
18170         (TARGET_FP16): Likewise.
18171         (TARGET_CRYPTO): Likewise.
18172         (TARGET_NEON): Likewise.
18173         (struct arm_fpu_desc): Remove fields neon, fp16 and crypto.  Add
18174         field features.
18176 2015-08-12  Tom de Vries  <tom@codesourcery.com>
18178         PR other/67092
18179         PR other/67098
18180         * doc/install.texi: Remove --with_host_libstdcxx item.  Update
18181         --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
18182         accordingly.  Mention default for --with-stage1-ldflags.
18184 2015-08-12  Matthew Wahab  <matthew.wahab@arm.com>
18186         * config/arm/arm.h (arm_fpu_feature_set): New.
18187         (ARM_FPU_FSET_HAS): New.
18188         (FPU_FL_NONE): New.
18189         (FPU_FL_NEON): New.
18190         (FPU_FL_FP16): New.
18191         (FPU_FL_CRYPTO): New.
18193 2015-08-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18195         * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
18196         after -mcmodel=large -fPIC sorry.
18198 2015-08-12  Richard Biener  <rguenther@suse.de>
18200         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
18201         comparison operand order and commutative ternary op operand order.
18202         (sccvn_dom_walker::cond_stack): New state to track temporary
18203         expressions.
18204         (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
18205         no longer valid.
18206         (sccvn_dom_walker::record_cond): Add a single temporary conditional
18207         expression.
18208         (sccvn_dom_walker::record_conds): Add a temporary conditional
18209         expressions and all related expressions also true/false.
18210         (sccvn_dom_walker::before_dom_children): Record temporary
18211         expressions based on the controlling condition of a single
18212         predecessor.  When trying to simplify a conditional statement
18213         lookup expressions we might have inserted earlier.
18215 2015-08-12  Yvan Roux  <yvan.roux@linaro.org>
18217         PR target/67127
18218         * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
18219         to ARM core registers.
18221 2015-08-12  Nathan Sidwell  <nathan@acm.org>
18223         * tree-vrp.c (simplify_min_or_max_using_ranges): New.
18224         (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
18226 2015-08-12  Simon Dardis  <simon.dardis@imgtec.com>
18228         * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
18229         line with comments.
18230         * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
18232 2015-08-12  Richard Biener  <rguenther@suse.de>
18234         * gimple.h (remove_pointer): New trait.
18235         (GIMPLE_CHECK2): New inline template function.
18236         (gassign::code_): New constant static member.
18237         (is_a_helper<const gassign *>): Add.
18238         (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
18239         and forward to a new gassign overload with less checking and a
18240         cheaper way to access the operand.
18241         (gimple_assign_lhs_ptr): Likewise.
18242         (gimple_assign_set_lhs): Likewise.
18243         (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
18244         Likewise.
18245         (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
18246         Likewise.
18247         (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
18248         Likewise.
18249         (gimple_assign_rhs_code): Likewise.
18250         * gimple.c (gassign::code_): Define.
18252 2015-08-12  Richard Biener  <rguenther@suse.de>
18254         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
18255         Eliminate edges marked as not executable by SCCVN.
18256         * tree-ssa-sccvn.c: Include gimple-iterator.h.
18257         (cond_dom_walker): Rename to sccvn_dom_walker.
18258         (sccvn_dom_walker::before_dom_children): Value-number defs
18259         of all stmts.
18260         (run_scc_vn): Remove loop value-numbering all SSA names.
18261         Drop not visited SSA names to varying.
18263 2015-08-11  Trevor Saunders  <tbsaunde@tbsaunde.org>
18265         * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
18266         gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
18267         ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
18268         omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
18269         tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
18270         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
18271         tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
18272         tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
18273         vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
18275 2015-08-11  Uros Bizjak  <ubizjak@gmail.com>
18277         PR target/66954
18278         * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
18279         to enum feature_priority and feature_list.
18280         (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
18281         and isa_names_table.
18283 2015-08-11  Yuri Rumyantsev  <ysrumyan@gmail.com>
18285         * tree-vect-stmts.c (vectorizable_shift): Add missed test on
18286         vect_induction_def.
18288 2015-08-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18290         PR c/66098
18291         PR c/66711
18292         * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
18293         account when deciding what was the command-line status.
18295 2015-08-11  Nathan Sidwell  <nathan@acm.org>
18297         * tree-vrp.c (simplify_abs_using_ranges): Simplify.
18299         * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
18300         we're not the only contributor to target phi.
18302 2015-08-11  Jiong Wang  <jiong.wang@arm.com>
18304         * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
18305         FIXED_REG0.
18307 2015-08-11  Tom de Vries  <tom@codesourcery.com>
18309         * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
18311 2015-08-10  H.J. Lu  <hongjiu.lu@intel.com>
18313         * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
18314         with CPU_SLM.
18315         * config/i386/i386.md (cpu): Remove knl.
18317 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
18319         PR libgomp/65742
18320         PR middle-end/66332
18321         * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
18322         open-coded sequence.
18323         * omp-low.c (oacc_process_reduction_data): Remove handline of
18324         GOMP_DEVICE_HOST_NONSHM.
18326         * lto-streamer-in.c (lto_input_mode_table): Adjust to
18327         GET_MODE_INNER changes.
18329 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
18330             Ilya Verbin  <ilya.verbin@intel.com>
18332         * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
18334 2015-08-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18336         * doc/options.texi (EnabledBy): Document that the argument must be
18337         a Common option.
18338         * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
18339         Not enabled by -Wall.
18340         * optc-gen.awk: Give nicer error messages. Detect if the argument
18341         of EnabledBy is not a Common option.
18342         * common.opt (Wnull-dereference): Not enabled by -Wall.
18343         * opt-functions.awk (lang_enabled_by): Nicer error messages.
18345 2015-08-09  H.J. Lu  <hongjiu.lu@intel.com>
18347         * config/i386/driver-i386.c (host_detect_local_cpu): Treat
18348         model == 0x4f as Broadwell.
18350 2015-08-08  Segher Boessenkool  <segher@kernel.crashing.org>
18352         PR rtl-optimization/67028
18353         * combine.c (simplify_comparison): Fix comment.  Rearrange code.
18354         Add test to see if a const_int fits in the new mode.
18356 2015-08-07  DJ Delorie  <dj@redhat.com>
18358         * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
18360 2015-08-07  H.J. Lu  <hongjiu.lu@intel.com>
18362         PR rtl-optimization/67029
18363         * ira-color.c: Include "recog.h" before including "ira-int.h".
18364         * target-globals.c: Likewise.
18365         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
18366         adds an alternative_mask argument and use it instead of
18367         preferred_alternatives.
18368         * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
18369         * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
18370         * sched-deps.c: Include "ira-int.h" after including "ira.h".
18371         (sched_analyze_insn): Update call to
18372         ira_implicitly_set_insn_hard_regs.
18373         * sel-sched.c: Include "ira-int.h" after including "ira.h".
18374         (implicit_clobber_conflict_p): Update call to
18375         ira_implicitly_set_insn_hard_regs.
18377 2015-08-06  Uros Bizjak  <ubizjak@gmail.com>
18379         * Makefile.in (.INTERMEDIATE): Add gpl.pod.
18381 2015-08-07  Kaz Kojima  <kkojima@gcc.gnu.org>
18383         PR target/67002
18384         * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
18385         currently_expanding_to_rtl is set.
18387 2015-08-06  Yaakov Selkowitz  <yselkowi@redhat.com>
18389         * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
18390         * configure: Regenerate.
18392 2015-08-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18393             Jiong Wang  <jiong.wang@arm.com>
18395         * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
18396         * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
18397         (REG_CLASS_NAMES): Likewise.
18398         (REG_CLASS_CONTENTS): Likewise.
18399         * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
18400         (aarch64_register_move_cost): Likewise.
18401         (aarch64_load_symref_appropriately): Invoke the new added pattern if
18402         possible.
18403         * config/aarch64/constraints.md (Uc0): New constraint.
18405 2015-08-06  Jiong Wang  <jiong.wang@arm.com>
18407         * config/aarch64/constraints.md (Usf): Add the test of
18408         aarch64_is_noplt_call_p.
18410 2015-08-06  Jiong Wang  <jiong.wang@arm.com>
18412         * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
18413         declaration.
18414         * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
18415         * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
18416         (call_symbol): Likewise.
18418 2015-08-06  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
18420         * tree-vect-patterns.c (vect_recog_mult_pattern): New function
18421         for vectorizing multiplication patterns.
18422         * tree-vectorizer.h: Adjust the number of patterns.
18424 2015-08-06  Uros Bizjak  <ubizjak@gmail.com>
18426         * config/i386/sse.md (*vec_concatv2df): Declare added
18427         alternatives as sselog type.
18429 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
18431         * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
18432         all GPRs.
18434 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
18436         * config/s390/s390.c (s390_expand_tbegin): Expand either
18437         tbegin_1_z13 or tbegin_1 depending on VX flag.
18438         * config/s390/s390.md ("tbegin_1_z13"): New expander.
18440 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
18442         * config/s390/s390.opt: Clarify description for -mzvector
18443         * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
18444         -mzvector.
18446 2015-08-06  Richard Biener  <rguenther@suse.de>
18448         * gimple.h (gimple_call_set_fn): Access op member directly.
18449         (gimple_call_chain_ptr): Likewise.
18450         (gimple_call_set_chain): Likewise.
18451         (gimple_cond_lhs_ptr): Likewise.
18452         (gimple_cond_set_lhs): Likewise.
18453         (gimple_cond_rhs_ptr): Likewise.
18454         (gimple_cond_set_rhs): Likewise.
18455         (gimple_cond_true_label): Likewise.
18456         (gimple_cond_set_true_label): Likewise.
18457         (gimple_cond_set_false_label): Likewise.
18458         (gimple_cond_false_label): Likewise.
18459         (gimple_label_label): Likewise.
18460         (gimple_label_set_label): Likewise.
18461         (gimple_goto_set_dest): Likewise.
18462         (gimple_asm_input_op): Likewise.
18463         (gimple_asm_input_op_ptr): Likewise.
18464         (gimple_asm_set_input_op): Likewise.
18465         (gimple_asm_output_op): Likewise.
18466         (gimple_asm_output_op_ptr): Likewise.
18467         (gimple_asm_set_output_op): Likewise.
18468         (gimple_asm_clobber_op): Likewise.
18469         (gimple_asm_set_clobber_op): Likewise.
18470         (gimple_asm_label_op): Likewise.
18471         (gimple_asm_set_label_op): Likewise.
18472         (gimple_switch_index): Likewise.
18473         (gimple_switch_index_ptr): Likewise.
18474         (gimple_return_retval_ptr): Likewise.
18475         (gimple_return_retval): Likewise.
18476         (gimple_return_set_retval): Likewise.
18477         (gimple_switch_set_index): Likewise.  Remove superfluous GIMPLE_CHECK.
18478         (gimple_switch_label): Likewise.
18479         (gimple_switch_set_label): Likewise.
18481 2015-08-06  Richard Biener  <rguenther@suse.de>
18483         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
18484         bool comparison canonicalization and restrict to integers.
18486 2015-08-05  Andrew MacLeod  <amacleod@redhat.com>
18488         * coretypes.h (enum symbol_visibility): Relocate here.
18489         * flag-types.h (enum symbol_visibility): Remove.
18490         * tree-core.h (enum symbol_visibility): Remove.
18492 2015-08-05  Lynn Boger  <laboger@linux.vnet.ibm.com>
18494         PR target/66870
18495         * config/rs6000/rs6000.c (rs6000_emit_prologue): Check
18496         for no_split_stack function attribute along with
18497         flag_split_stack.
18498         (rs6000_expand_split_stack_prologue): Likewise.
18500 2015-08-05  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18501             Jeff Law  <law@redhat.com>
18503         PR c/16351
18504         * doc/invoke.texi (Wnull-dereference): New.
18505         * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
18506         * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
18507         Warn for potential NULL dereferences.
18508         (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
18509         * ubsan.c (instrument_nonnull_arg): Call
18510         infer_nonnull_range_by_attribute.
18511         (instrument_nonnull_return): Likewise.
18512         * common.opt (Wnull-dereference); New.
18513         * gimple.c (infer_nonnull_range): Remove bool arguments.
18514         (infer_nonnull_range_by_dereference): New.
18515         (infer_nonnull_range_by_attribute): New.
18516         * gimple.h: Update declarations.
18518 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
18520         * gensupport.c (sequence_num): Replace with...
18521         (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
18522         ...these new variables.
18523         (init_rtx_reader_args_cb): Update accordingly.
18524         (get_num_code_insns): Likewise.
18525         (read_md_rtx): Rework to use a while loop and get_c_test.
18526         Use the new counters.  Remove redundant DEFINE_SUBST case.
18527         * genoutput.c (gen_split): Delete.
18528         (main): Don't call it.
18530 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
18532         * gensupport.h (get_c_test): Declare.
18533         * gensupport.c (get_c_test): New function.
18534         * genconditions.c (main): Use it.
18535         * genrecog.c (validate_pattern): Likewise.
18536         (match_pattern_1): Likewise.  Remove c_test argument.
18537         (match_pattern): Update accordingly and remove c_test argument.
18538         (main): Update accordingly.
18540 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
18542         * gensupport.h (get_num_insn_codes): Declare.
18543         * gensupport.c (get_num_insn_codes): New function.
18544         * genattrtab.c (optimize_attrs): Rename max_insn_code to
18545         num_insn_codes.
18546         (main): Likewise.  Use get_num_insn_codes.
18547         * gencodes.c (main): Remove "last" and use get_num_insn_codes.
18549 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
18551         PR middle-end/66311
18552         * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
18553         is zero- rather than sign-extended.
18555 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
18557         * target-insns.def (can_extend): Delete.
18559 2015-08-05  Richard Biener  <rguenther@suse.de>
18561         PR tree-optimization/67121
18562         * tree-if-conv.c (combine_blocks): Clear range-info produced
18563         by stmts no longer executed conditionally.
18565 2015-08-05  Nick Clifton  <nickc@redhat.com>
18567         * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
18568         to allow identical far pointers to remain.
18570 2015-08-05  Richard Biener  <rguenther@suse.de>
18572         PR middle-end/67120
18573         * match.pd: Compare address bases with == if they are decls
18574         or SSA names, not operand_equal_p.  Otherwise fail.
18576 2015-08-05  Richard Biener  <rguenther@suse.de>
18578         PR tree-optimization/67055
18579         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
18580         NULL gimple_block.
18582         * g++.dg/torture/pr67055.C: New testcase.
18584 2015-08-05  Kirill Yukhin  <kirill.yukhin@intel.com>
18586         * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
18587         noavx512vl.
18588         (define_attr "enabled"): Handle avx521vl and noavx512vl.
18589         * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
18590         AVX-512 alternative out of SSE.
18591         (define_insn "*vec_concatv2df"): Ditto.
18593 2015-08-05  Kirill Yukhin  <kirill.yukhin@intel.com>
18595         * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
18596         CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
18597         CODE_FOR_avx_ptestv4di.
18598         * config/i386/sse.md (define_mode_iterator V_AVX): New.
18599         (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
18600         (define_insn "avx_ptest256"): Merge this ...
18601         (define_insn "sse4_1_ptest"): And this ...
18602         (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
18604 2015-08-05  Richard Biener  <rguenther@suse.de>
18606         PR tree-optimization/67109
18607         * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
18608         against too big groups.  Print whether this is a load or store
18609         group.  Rename from ...
18610         (vect_analyze_group_access): ... this which is now a wrapper
18611         dissolving an invalid group.
18612         (vect_analyze_data_ref_accesses): Print whether this is a load
18613         or store group.
18615 2015-08-05  Richard Biener  <rguenther@suse.de>
18617         PR middle-end/67107
18618         * match.pd: Guard const_binop result checking against NULL_TREE
18619         result.
18621 2015-08-05  Kugan Vivekanandarajah  <kuganv@linaro.org>
18623         * cse.c (cse_insn): Restoring old behaviour for src_eqv
18624          when dest and value in the REG_EQUAL are same and dest
18625          is STRICT_LOW_PART.
18627 2015-08-04  Anatoly Sokolov  <aesok@post.ru>
18629         * config/moxie/moxie.h (PRINT_OPERAND,
18630           PRINT_OPERAND_ADDRESS): Remove macros.
18631         * config/moxie/moxie-protos.h (moxie_print_operand,
18632           moxie_print_operand_address): Remove declaration.
18633         * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
18634           TARGET_PRINT_OPERAND_ADDRESS): Define.
18635           (moxie_print_operand, moxie_print_operand_address): Make static.
18637 2015-08-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18639         PR target/66731
18640         * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
18641         (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
18643 2015-08-04  Richard Biener  <rguenther@suse.de>
18645         * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
18646         generated code.
18647         (dt_operand::gen_gimple_expr): Adjust.
18649 2015-08-04  Richard Biener  <rguenther@suse.de>
18651         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
18652         bool compares on RHS.
18653         * match.pd: Add X ==/!= !X is false/true pattern.
18655 2015-08-04  Pawel Kupidura  <pawel.kupidura@arm.com>
18657         * config/aarch64/aarch64.c: Change inner loop statement cost
18658         to be consistent with other targets.
18660 2015-08-04  Christophe Lyon  <christophe.lyon@linaro.org>
18662         * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
18663         targets.
18665 2015-08-04  Nathan Sidwell  <nathan@codesourcery.com>
18667         * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
18668         (machine_function): Remove pseudos field.
18670 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18672         * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
18673         Exit early and use target_option_current_node if processing current
18674         pragma.
18676 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18678         * doc/extend.texi (AArch64 Function Attributes): New node.
18679         (AArch64 Pragmas): Likewise.
18681 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18683         * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
18684         Initialize simd builtins if TARGET_SIMD.
18685         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
18686         Make sure that the builtins are initialized only once no matter how
18687         many times the function is called.
18688         (aarch64_init_builtins): Unconditionally initialize crc builtins.
18689         (aarch64_relayout_simd_param): New function.
18690         (aarch64_simd_expand_args): Use above during argument expansion.
18691         * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
18692         simd builtins if TARGET_SIMD.
18693         * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
18694         prototype.
18695         (aarch64_relayout_simd_types): Likewise.
18697 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18699         * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
18700         * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
18701         (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
18702         * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
18703         static keyword.
18704         (aarch64_reset_previous_fndecl): New function.
18705         (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
18706         the string.
18707         * config/aarch64/aarch64-c.c: New file.
18708         * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
18709         Push and pop options at beginning and end.  Remove ifdef
18710         __ARM_FEATURE_CRC32.
18711         * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
18712         Add pragma +nothing+simd and +nothing+crypto where appropriate.
18713         * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
18714         * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
18715         Define prototype.
18716         (aarch64_register_pragmas): Likewise.
18717         (aarch64_reset_previous_fndecl): Likewise.
18718         (aarch64_process_target_attr): Likewise.
18719         (aarch64_override_options_internal): Likewise.
18721 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18723         * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
18724         New function.
18725         (aarch64_can_inline_p): Likewise.
18726         (TARGET_CAN_INLINE_P): Define.
18728 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18730         * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
18731         Remove static.  Handle OPT_mgeneral_regs_only,
18732         OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
18733         OPT_momit_leaf_frame_pointer.
18734         * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
18735         (aarch64_attr_opt_type): New enum.
18736         (aarch64_attribute_info): New struct.
18737         (aarch64_handle_attr_arch): New function.
18738         (aarch64_handle_attr_cpu): Likewise.
18739         (aarch64_handle_attr_tune): Likewise.
18740         (aarch64_handle_attr_isa_flags): Likewise.
18741         (aarch64_attributes): New table.
18742         (aarch64_process_one_target_attr): New function.
18743         (num_occurences_in_str): Likewise.
18744         (aarch64_process_target_attr): Likewise.
18745         (aarch64_option_valid_attribute_p): Likewise.
18746         (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
18747         * config/aarch64/aarch64-protos.h: Include input.h
18748         (aarch64_handle_option): Declare prototype.
18750 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18752         * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
18753         * config/aarch64/aarch64.c: Include target-globals.h
18754         (aarch64_previous_fndecl): New variable.
18755         (aarch64_set_current_function): New function.
18756         (TARGET_SET_CURRENT_FUNCTION): Define.
18758 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18760         * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
18761         (explicit_arch): Likewise.
18762         (x_aarch64_isa_flags): Likewise.
18763         (mgeneral-regs-only): Mark as Save.
18764         (mfix-cortex-a53-835769): Likewise.
18765         (mcmodel=): Likewise.
18766         (mstrict-align): Likewise.
18767         (momit-leaf-frame-pointer): Likewise.
18768         (mtls-dialect): Likewise.
18769         (master=): Likewise.
18770         * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
18771         (aarch64_isa_flags): Remove extern declaration.
18772         * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
18773         to indicate success or failure.
18774         (aarch64_validate_march): Likewise.
18775         (aarch64_validate_mtune): Likewise.
18776         (aarch64_isa_flags): Delete.
18777         (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
18778         instead of aarch64_isa_flags.
18779         (aarch64_get_tune_cpu): New function.
18780         (aarch64_get_arch): Likewise.
18781         (aarch64_override_options): Use above and set up explicit_tune_core
18782         and explicit_arch.
18783         (aarch64_print_extension): Move earlier in file.  Add isa_flags
18784         argument and use that instead of the global aarch64_isa_flags.
18785         (aarch64_option_save): New function.
18786         (aarch64_option_restore): Likewise.
18787         (aarch64_option_print): Likewise.
18788         (aarch64_declare_function_name): Likewise.
18789         (aarch64_start_file): Delete.
18790         (TARGET_ASM_FILE_START): Do not define.
18791         (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
18792         * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
18793         Declare prototype.
18795 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18797         * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
18798         flag_omit_leaf_frame_pointer to 2.
18800 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18802         * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
18803         define to 0 or 1.
18804         (TARGET_FIX_ERR_A53_835769): New macro.
18805         * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
18806         handling of opts->x_aarch64_fix_a53_err835769.
18807         (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
18808         than aarch64_fix_a53_err835769.
18809         * config/aarch64/aarch64-elf-raw.h: Update for above changes.
18810         * config/aarch64/aarch64-linux.h: Likewise.
18812 2015-08-04  Uros Bizjak  <ubizjak@gmail.com>
18814         * config/i386/i386.c (ix86_expand_int_movcc): Check result of
18815         ix86_expand_int_movcc as boolean.
18817 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18819         * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
18820         (aarch64_cpu_string): Likewise.
18821         (aarch64_tune_string): Likewise.
18822         * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
18823         (aarch64_parse_extension): Return aarch64_parse_opt_result.
18824         Add extra argument to put result into.
18825         (aarch64_parse_arch): Likewise.  Do not set selected_cpu.
18826         (aarch64_parse_cpu): Add arguments to put results into. Return
18827         aarch64_parse_opt_result.
18828         (aarch64_parse_tune): Likewise.
18829         (aarch64_override_options_after_change_1): New function.
18830         (aarch64_override_options_internal): New function.
18831         (aarch64_validate_mcpu): Likewise.
18832         (aarch64_validate_march): Likewise.
18833         (aarch64_validate_mtune): Likewise.
18834         (aarch64_override_options): Update to reflect above changes.
18835         Move some logic into aarch64_override_options_internal.
18836         Initialize target_option_default_node and target_option_current_node.
18837         (aarch64_override_options_after_change): Move logic into
18838         aarch64_override_options_after_change_1 and call it with global_options.
18839         (initialize_aarch64_code_model): Take a gcc_options pointer and use the
18840         flag values from that.
18842 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18844         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
18845         __ARM_ARCH_8A directly rather than with cpp_define_formatted.
18846         * config/aarch64/aarch64.c (struct processor): Add arch field.
18847         (all_architectures): Handle above, move above all_cores.
18848         (all_cores): Handle above.
18849         (aarch64_parse_arch): Handle above changes.
18850         * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
18851         above.  Update comments.
18852         (armv8.1-a): Likewise.
18853         * config/aarch64/aarch64-cores.def: Update according to above.
18854         * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
18855         * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
18856         aarch64_arch_driver_info.
18858 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18860         * config/aarch64/aarch64.c (struct processor): Add ident field.
18861         Rename core sched_core.
18862         (all_cores): Handle above changes.
18863         (all_architectures): Likewise.
18864         (aarch64_parse_arch): Likewise.
18865         (aarch64_override_options): Likewise.
18867 2015-08-04  Richard Biener  <rguenther@suse.de>
18869         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
18870         dispatching to fold_binary for GIMPLE_BINARY_RHS and for
18871         comparisons embedded in [VEC_]COND_EXPRs.
18873 2015-08-03  Abe Skolnik  <a.skolnik@samsung.com>
18875         * tree-if-conv.c: Fix various typos in comments.
18876         * tree-vect-stmts.c: Likewise.
18878 2015-08-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
18880         PR tree-optimization/67043
18881         * loop-invariant.c (move_invariant_reg): Recompute luids in loop
18882         preheader after hoisting invariant in it.
18883         (find_defs): Force recomputation of all luids.
18885 2015-08-03  Peter Bergner  <bergner@vnet.ibm.com>
18887         * config/rs6000/htm.md (tabort.): Restrict the source operand to
18888         using a base register.
18890 2015-08-03  David Malcolm  <dmalcolm@redhat.com>
18892         * main.c (main): Pass in NULL for toplev's external_timer.
18893         * timevar.c: Include coretypes.h.
18894         (class timer::named_items): New.
18895         (timer::named_items::named_items): New.
18896         (timer::named_items::~named_items): New.
18897         (timer::named_items::push): New.
18898         (timer::named_items::pop): New.
18899         (timer::named_items::print): New.
18900         (timer::timer): Initialize field "m_jit_client_items".
18901         (timer::~timer): New.
18902         (timer::push): Move bulk of implementation to...
18903         (timer::push_internal): ...here.  New function.
18904         (timer::pop): Move bulk of implementation to...
18905         (timer::pop_internal): ...here.  New function.
18906         (timer::push_client_item): New.
18907         (timer::pop_client_item): New.
18908         (timer::print_row): New function, taken from timer::print.
18909         (timer::print): Print "GCC items" header if we also have client
18910         items.  Move row-printing to timer::print_row.  Print any client
18911         items.
18912         (timer::get_topmost_item_name): New method.
18913         * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
18914         (TV_JIT_CLIENT_CODE): New.
18915         * timevar.h (timer::push_client_item): New declaration.
18916         (timer::pop_client_item): New declaration.
18917         (timer::get_topmost_item_name): New method.
18918         (timer::push_internal): New declaration.
18919         (timer::pop_internal): New declaration.
18920         (timer::print_row): New declaration.
18921         (timer::named_items): New declaration.
18922         (timer::m_jit_client_items): New field.
18923         (timer): Add friend class named_items.
18924         (auto_timevar::auto_timevar): Add timer param.
18925         (auto_timevar::~auto_timevar): Use field "m_timer".
18926         (auto_timevar::m_timer): New field.
18927         * toplev.c (initialize_rtl): Add g_timer as param when
18928         constructing auto_timevar instance.
18929         (toplev::toplev): Add "external_timer" param, and use it to
18930         initialize the "g_timer" global if non-NULL.
18931         (toplev::~toplev): If this created "g_timer", delete it.
18932         * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
18933         with "external_timer" timer *.
18935 2015-08-03  Alexander Basov <coohpt@gmail.com>
18937         PR middle-end/64744
18938         PR middle-end/48470
18939         PR middle-end/43404
18940         * cfgexpand.c (expand_one_var): Add check if stack is going to
18941         be used in naked function.
18942         * expr.c (expand_expr_addr_expr_1): Remove excess checking
18943         whether expression should not reside in MEM.
18944         * function.c (use_register_for_decl): Do not use registers for
18945         non-register things (volatile, float, BLKMode) in naked functions.
18947 2015-08-03  John David Anglin  <danglin@gcc.gnu.org>
18949         PR target/67060
18950         * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
18951         Adjust splits to match new pattern.
18953 2015-08-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
18955         * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
18956         (VEC_M): Likewise.
18957         (VEC_N): Likewise.
18958         (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
18959         point in VSX registers.
18961         * config/rs6000/constraints.md (wb constraint): Document unused
18962         w<x> constraint.
18963         (we constraint): Likewise.
18964         (wo constraint): Likewise.
18965         (wp constraint): New constraint for IEEE 128-bit floating point in
18966         VSX registers.
18967         (wq constraint): Likewise.
18969         * config/rs6000/predicates.md (easy_fp_constant): Add support for
18970         IEEE 128-bit floating point in VSX registers.
18971         (easy_scalar_constant): Likewise.
18973         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
18974         constraints (wp, wq) for IEEE 128-bit floating point in VSX
18975         registers.
18976         (rs6000_init_hard_regno_mode_ok): Likewise.
18978         * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
18979         floating point in VSX registers.
18980         (VSX_L): Likewise.
18981         (VSX_M): Likewise.
18982         (VSX_M2): Likewise.
18983         (VSm): Likewise.
18984         (VSs): Likewise.
18985         (VSr): Likewise.
18986         (VSa): Likewise.
18987         (VSv): Likewise.
18988         (vsx_le_permute_<mode>): Add support to properly swap bytes for
18989         IEEE 128-bit floating point in VSX registers on little endian.
18990         (vsx_le_undo_permute_<mode>): Likewise.
18991         (vsx_le_perm_load_<mode>): Likewise.
18992         (vsx_le_perm_store_<mode>): Likewise.
18993         (splitters for IEEE 128-bit fp moves): Likewise.
18995         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
18996         wq constraints.
18998         * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
18999         floating point in VSX registers.
19000         (VM2): Likewise.
19002         * doc/md.text (Machine Constraints): Document wp and wq
19003         constraints on PowerPC.
19005 2015-08-03  Jeff Law  <law@redhat.com>
19007         PR middle-end/66314
19008         PR gcov-profile/66899
19009         * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
19010         iterate over the jump threading paths when an element in the
19011         jump threading paths array is eliminated.
19013 2015-08-03  Segher Boessenkool  <segher@kernel.crashing.org>
19015         * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
19017 2015-08-03  Patrick Palka  <ppalka@gcc.gnu.org>
19019         * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
19020         is_use_properly_guarded the variable def_preds.  Free its
19021         contents before returning.
19022         (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
19023         (is_use_properly_guarded): Replace local variable def_preds with
19024         a parameter.  Adjust accordingly.  Only update *def_preds if it's
19025         the empty vector.
19027 2015-08-03  Richard Biener  <rguenther@suse.de>
19029         * genmatch.c (simplify::for_subst_vec): New member.
19030         (binary_ok): New helper for for lowering.
19031         (lower_for): Delay substituting operators into result expressions
19032         if we can merge the results eventually again.
19033         (capture_info::walk_result): Adjust for user_id appearing as
19034         result expression operator.
19035         (expr::gen_transform): Likewise.
19036         (dt_simplify::gen_1): Likewise.
19037         (dt_simplify::gen): Pass not substituted operators to tail
19038         functions or initialize local variable with it.
19039         (decision_tree::gen): Adjust function signature.
19040         * match.pd: Fix tests against global code and add default
19041         cases to switch stmts.
19043 2015-08-03  Richard Biener  <rguenther@suse.de>
19045         * genmatch.c (dt_simplify::gen): Create captures array
19046         with an initializer.
19048 2015-08-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19050         * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
19051         the host compiler is affected by placement new aliasing bug.
19052         * configure: Regenerate.
19053         * Makefile.in (ALIASING_FLAGS): New variable.
19054         (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
19056 2015-08-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
19058         PR target/66731
19059         * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
19060         (negmulsf3_vfp): Likewise.
19061         (muldf3negdf_vfp): Disable for -frounding-math.
19062         (mulsf3negsf_vfp): Likewise.
19063         * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
19064         fix MULT cost with -frounding-math.
19066 2015-08-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19068         * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
19069         when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
19070         explicit.  Prefer to add the flag whenever possible.
19071         (noce_process_if_block): Try noce_try_store_flag_constants before
19072         noce_try_cmove.
19074 2015-08-03  Richard Biener  <rguenther@suse.de>
19076         * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
19077         New hash-map to record equivalent transforms.
19078         (dt_node::analyze): Populate the equivalent transforms hash-map.
19079         (dt_simplify::info): Add reference to hash-map entry.
19080         (dt_simplify::gen): If we have split out a function for the
19081         transform, generate a call to it.
19082         (sinfo_hashmap_traits::hash): New function.
19083         (compare_op): New helper function for ...
19084         (sinfo_hashmap_traits::equal_keys): ... this new function.
19085         (decision_tree::gen): Split out common equivalent transforms
19086         into functions.
19088 2015-08-03  Richard Biener  <rguenther@suse.de>
19090         * gimple-fold.c (fold_gimple_assign): Remove folding of
19091         the comparison in COND_EXPRs.
19093 2015-08-03  Richard Biener  <rguenther@suse.de>
19095         * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
19096         on the rhs of assignments first simplify the embedded
19097         GENERIC condition.
19099 2015-08-03  Richard Biener  <rguenther@suse.de>
19101         PR tree-optimization/66917
19102         * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
19103         field.
19104         (DR_VECT_AUX): New macro.
19105         (set_dr_misalignment): Adjust.
19106         (dr_misalignment): Likewise.
19107         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
19108         Compute whether the base is at least element aligned.
19109         * tree-vect-stmts.c (ensure_base_align): Adjust.
19110         (vectorizable_store): If the base is not element aligned
19111         preserve alignment of the original access if misalignment is unknown.
19112         (vectorizable_load): Likewise.
19114 2015-08-02  Martin Sebor  <msebor@redhat.com>
19116         * doc/invoke.texi (Wframe-address): Document it.
19117         * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
19118         Clarify possible effects of calling the functions with non-zero
19119         arguments and mention -Wframe-address.
19120         * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
19122 2015-08-01  Michael Collison  <michael.collison@linaro.org
19123             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
19125         * config/arm/arm.md (*arm_smin_cmp): New pattern.
19126         (*arm_umin_cmp): Likewise.
19128 2015-08-01  Caroline Tice  <cmtice@google.com>
19130         PR 66521
19131         * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
19132         global variables.
19133         (vtbl_find_mangled_name):  New function.
19134         (vtbl_register_mangled_name):  New function.
19135         (vtbl_map_get_node):  If DECL_ASSEMBLER_NAME is "<anon>", look up
19136         mangled name in mangled name vectors.
19137         (find_or_create_vtbl_map_node):  Ditto.
19138         (var_is_used_for_virtual_call_p):  Add recursion_depth parameter;
19139         update recursion_depth on function entry; pass it to every recursive
19140         call; automatically exit if depth > 25 (give up looking at that point).
19141         (verify_bb_vtables):  Initialize recursion_depth and pass it to
19142         var_is_used_for_virtual_call_p.
19143         * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
19144         global variable decls.
19145         (vtbl_register_mangled_name): New extern function decl.
19147 2015-08-01  Tom de Vries  <tom@codesourcery.com>
19149         * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
19150         function.
19151         * tree.h (operation_can_overflow, operation_no_trapping_overflow):
19152         Declare.
19153         * tree-vect-loop.c (vect_is_simple_reduction_1): Use
19154         operation_no_trapping_overflow.  Allow non-overflow operations.
19155         * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
19156         operations.
19158 2015-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
19160         PR target/67049
19161         * config/sh/sh.md (GOTaddr2picreg): Fix typo.
19163 2015-07-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19165         * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
19166         Enable for TARGET_32BIT.
19167         (*if_move_neg): Likewise.
19169 2015-07-31  Nick Clifton  <nickc@redhat.com>
19171         * config/m32r/m32r.c (m32r_attribute_identifier): New function.
19172         Returns true for __model__.
19173         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
19175 2015-07-31  Alan Modra  <amodra@gmail.com>
19177         PR target/66870
19178         * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
19179         (rs6000_emit_prologue): Set it.
19180         (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
19182 2015-07-31  Richard Biener  <rguenther@suse.de>
19184         * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
19185         -> X == (C1 ^ C2) which is already implemented in match.pd.
19186         Remove redundant dispatching to fold_relational_const.
19187         Move unordered self and NaN compares ...
19188         * match.pd: ... as patterns here.  Remove some stray captures
19189         and add a comment.
19191 2015-07-31  Petr Murzin  <petr.murzin@intel.com>
19193         * config/i386/i386.c
19194         (bdesc_special_args): Convert mask type from signed to unsigned for
19195         masked builtins.
19196         (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
19197         UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
19198         V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
19199         V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
19200         V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
19201         V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
19202         V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
19203         V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
19204         V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
19205         HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
19206         V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
19207         V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
19208         V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
19209         V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
19210         V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
19211         V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
19212         V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
19213         V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
19214         V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
19215         V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
19216         V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
19217         HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
19218         VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
19219         V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
19220         * config/i386/i386-builtin-types.def
19221         (V16QI_FTYPE_V16SI): Remove.
19222         (V8DF_FTYPE_V8SI): Ditto.
19223         (V8HI_FTYPE_V8DI): Ditto.
19224         (V8SI_FTYPE_V8DI): Ditto.
19225         (V8SF_FTYPE_V8DF): Ditto.
19226         (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
19227         (V16HI_FTYPE_V16SI): Ditto.
19228         (V16SF_FTYPE_V16HI): Ditto.
19229         (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
19230         (V16SF_FTYPE_V16SI): Ditto.
19231         (V4DI_FTYPE_V4DI): Ditto.
19232         (V16SI_FTYPE_V16SF): Ditto.
19233         (V16SF_FTYPE_FLOAT): Ditto.
19234         (V8DF_FTYPE_DOUBLE): Ditto.
19235         (V8DI_FTYPE_INT64): Ditto.
19236         (V8DI_FTYPE_V4DI): Ditto.
19237         (V16QI_FTYPE_V8DI): Ditto.
19238         (UINT_FTYPE_V4SF): Ditto.
19239         (UINT64_FTYPE_V4SF): Ditto.
19240         (UINT_FTYPE_V2DF): Ditto.
19241         (UINT64_FTYPE_V2DF): Ditto.
19242         (V16SI_FTYPE_V16SI): Ditto.
19243         (V8DI_FTYPE_V8DI): Ditto.
19244         (V16SI_FTYPE_PV4SI): Ditto.
19245         (V16SF_FTYPE_PV4SF): Ditto.
19246         (V8DI_FTYPE_PV2DI): Ditto.
19247         (V8DF_FTYPE_PV2DF): Ditto.
19248         (V4DI_FTYPE_PV2DI): Ditto.
19249         (V4DF_FTYPE_PV2DF): Ditto.
19250         (V16SI_FTYPE_PV2SI): Ditto.
19251         (V16SF_FTYPE_PV2SF): Ditto.
19252         (V8DI_FTYPE_PV4DI): Ditto.
19253         (V8DF_FTYPE_PV4DF): Ditto.
19254         (V8SF_FTYPE_FLOAT): Ditto.
19255         (V4SF_FTYPE_FLOAT): Ditto.
19256         (V4DF_FTYPE_DOUBLE): Ditto.
19257         (V8SF_FTYPE_PV4SF): Ditto.
19258         (V8SI_FTYPE_PV4SI): Ditto.
19259         (V4SI_FTYPE_PV2SI): Ditto.
19260         (V8SF_FTYPE_PV2SF): Ditto.
19261         (V8SI_FTYPE_PV2SI): Ditto.
19262         (V16SF_FTYPE_PV8SF): Ditto.
19263         (V16SI_FTYPE_PV8SI): Ditto.
19264         (V8DI_FTYPE_V8SF): Ditto.
19265         (V4DI_FTYPE_V4SF): Ditto.
19266         (V2DI_FTYPE_V4SF): Ditto.
19267         (V64QI_FTYPE_QI): Ditto.
19268         (V32HI_FTYPE_HI): Ditto.
19269         (V8UHI_FTYPE_V8UHI): Ditto.
19270         (V16UHI_FTYPE_V16UHI): Ditto.
19271         (V32UHI_FTYPE_V32UHI): Ditto.
19272         (V2UDI_FTYPE_V2UDI): Ditto.
19273         (V4UDI_FTYPE_V4UDI): Ditto.
19274         (V8UDI_FTYPE_V8UDI): Ditto.
19275         (V4USI_FTYPE_V4USI): Ditto.
19276         (V8USI_FTYPE_V8USI): Ditto.
19277         (V16USI_FTYPE_V16USI): Ditto.
19278         (V2DF_FTYPE_V2DF_UINT64): Ditto.
19279         (V2DI_FTYPE_V2DF_V2DF): Ditto.
19280         (V2UDI_FTYPE_V4USI_V4USI): Ditto.
19281         (V8DF_FTYPE_V8DF_V8DI): Ditto.
19282         (V4SF_FTYPE_V4SF_UINT64): Ditto.
19283         (V4SI_FTYPE_V4SF_V4SF): Ditto.
19284         (V16SF_FTYPE_V16SF_V16SI): Ditto.
19285         (V64QI_FTYPE_V32HI_V32HI): Ditto.
19286         (V32HI_FTYPE_V16SI_V16SI): Ditto.
19287         (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
19288         (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
19289         (V32HI_FTYPE_V64QI_V64QI): Ditto.
19290         (V32HI_FTYPE_V32HI_V32HI): Ditto.
19291         (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
19292         (V16SI_FTYPE_V16SI_V4SI): Ditto.
19293         (V16SI_FTYPE_V16SI_V16SI): Ditto.
19294         (V16SI_FTYPE_V32HI_V32HI): Ditto.
19295         (V16SI_FTYPE_V16SI_SI): Ditto.
19296         (V8DI_FTYPE_V8DI_V8DI): Ditto.
19297         (V4UDI_FTYPE_V8USI_V8USI): Ditto.
19298         (V8DI_FTYPE_V16SI_V16SI): Ditto.
19299         (V8DI_FTYPE_V8DI_V2DI): Ditto.
19300         (QI_FTYPE_QI): Ditto.
19301         (SI_FTYPE_SI): Ditto.
19302         (DI_FTYPE_DI): Ditto.
19303         (QI_FTYPE_QI_QI): Ditto.
19304         (QI_FTYPE_QI_INT): Ditto.
19305         (HI_FTYPE_HI_INT): Ditto.
19306         (SI_FTYPE_SI_INT): Ditto.
19307         (DI_FTYPE_DI_INT): Ditto.
19308         (HI_FTYPE_V16QI_V16QI): Ditto.
19309         (SI_FTYPE_V32QI_V32QI): Ditto.
19310         (DI_FTYPE_V64QI_V64QI): Ditto.
19311         (QI_FTYPE_V8HI_V8HI): Ditto.
19312         (HI_FTYPE_V16HI_V16HI): Ditto.
19313         (SI_FTYPE_V32HI_V32HI): Ditto.
19314         (QI_FTYPE_V4SI_V4SI): Ditto.
19315         (QI_FTYPE_V8SI_V8SI): Ditto.
19316         (QI_FTYPE_V2DI_V2DI): Ditto.
19317         (QI_FTYPE_V4DI_V4DI): Ditto.
19318         (QI_FTYPE_V8DI_V8DI): Ditto.
19319         (HI_FTYPE_V16SI_V16SI): Ditto.
19320         (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
19321         (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
19322         (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
19323         (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
19324         (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
19325         (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
19326         (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
19327         (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
19328         (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
19329         (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
19330         (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
19331         (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
19332         (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
19333         (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
19334         (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
19335         (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
19336         (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
19337         (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
19338         (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
19339         (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
19340         (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
19341         (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
19342         (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
19343         (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
19344         (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
19345         (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
19346         (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
19347         (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
19348         (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
19349         (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
19350         (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
19351         (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
19352         (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
19353         (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
19354         (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
19355         (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
19356         (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
19357         (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
19358         (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
19359         (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
19360         (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
19361         (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
19362         (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
19363         (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
19364         (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
19365         (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
19366         (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
19367         (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
19368         (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
19369         (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
19370         (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
19371         (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
19372         (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
19373         (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
19374         (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
19375         (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
19376         (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
19377         (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
19378         (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
19379         (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
19380         (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
19381         (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
19382         (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
19383         (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
19384         (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
19385         (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
19386         (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
19387         (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
19388         (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
19389         (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
19390         (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
19391         (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
19392         (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
19393         (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
19394         (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
19395         (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
19396         (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
19397         (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
19398         (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
19399         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
19400         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
19401         (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
19402         (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
19403         (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
19404         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
19405         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
19406         (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
19407         (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
19408         (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
19409         (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
19410         (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
19411         (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
19412         (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
19413         (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
19414         (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
19415         (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
19416         (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
19417         (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
19418         (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
19419         (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
19420         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
19421         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
19422         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
19423         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
19424         (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
19425         (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
19426         (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
19427         (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
19428         (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
19429         (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
19430         (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
19431         (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
19432         (HI_FTYPE_HI): Ditto.
19433         (HI_FTYPE_V16QI): Ditto.
19434         (SI_FTYPE_V32QI): Ditto.
19435         (DI_FTYPE_V64QI): Ditto.
19436         (QI_FTYPE_V8HI): Ditto.
19437         (HI_FTYPE_V16HI): Ditto.
19438         (SI_FTYPE_V32HI): Ditto.
19439         (QI_FTYPE_V4SI): Ditto.
19440         (QI_FTYPE_V8SI): Ditto.
19441         (HI_FTYPE_V16SI): Ditto.
19442         (QI_FTYPE_V2DI): Ditto.
19443         (QI_FTYPE_V4DI): Ditto.
19444         (QI_FTYPE_V8DI): Ditto.
19445         (V16QI_FTYPE_HI): Ditto.
19446         (V32QI_FTYPE_SI): Ditto.
19447         (V64QI_FTYPE_DI): Ditto.
19448         (V8HI_FTYPE_QI): Ditto.
19449         (V16HI_FTYPE_HI): Ditto.
19450         (V32HI_FTYPE_SI): Ditto.
19451         (V4SI_FTYPE_QI): Ditto.
19452         (V4SI_FTYPE_HI): Ditto.
19453         (V8SI_FTYPE_QI): Ditto.
19454         (V8SI_FTYPE_HI): Ditto.
19455         (V2DI_FTYPE_QI): Ditto.
19456         (V4DI_FTYPE_QI): Ditto.
19457         (HI_FTYPE_HI_HI): Ditto.
19458         (SI_FTYPE_SI_SI): Ditto.
19459         (DI_FTYPE_DI_DI): Ditto.
19460         (HI_FTYPE_V16QI_V16QI_HI): Ditto.
19461         (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
19462         (SI_FTYPE_V32QI_V32QI_SI): Ditto.
19463         (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
19464         (DI_FTYPE_V64QI_V64QI_DI): Ditto.
19465         (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
19466         (QI_FTYPE_V8HI_V8HI_QI): Ditto.
19467         (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
19468         (HI_FTYPE_V16HI_V16HI_HI): Ditto.
19469         (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
19470         (SI_FTYPE_V32HI_V32HI_SI): Ditto.
19471         (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
19472         (QI_FTYPE_V4SI_V4SI_QI): Ditto.
19473         (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
19474         (QI_FTYPE_V8SI_V8SI_QI): Ditto.
19475         (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
19476         (QI_FTYPE_V2DI_V2DI_QI): Ditto.
19477         (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
19478         (QI_FTYPE_V4DI_V4DI_QI): Ditto.
19479         (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
19480         (QI_FTYPE_V8DI_V8DI_QI): Ditto.
19481         (HI_FTYPE_V16SI_V16SI_HI): Ditto.
19482         (QI_FTYPE_V8DI_V8DI_INT): Ditto.
19483         (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
19484         (HI_FTYPE_V16SI_V16SI_INT): Ditto.
19485         (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
19486         (QI_FTYPE_V8DF_V8DF_INT): Ditto.
19487         (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
19488         (HI_FTYPE_V16SF_V16SF_INT): Ditto.
19489         (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
19490         (QI_FTYPE_V2DF_V2DF_INT): Ditto.
19491         (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
19492         (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
19493         (QI_FTYPE_V4SF_V4SF_INT): Ditto.
19494         (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
19495         (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
19496         (V16SI_FTYPE_HI): Ditto.
19497         (V8DI_FTYPE_QI): Ditto.
19498         (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
19499         (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
19500         (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
19501         (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
19502         (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
19503         (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
19504         (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
19505         (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
19506         (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
19507         (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
19508         (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
19509         (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
19510         (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
19511         (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
19512         (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
19513         (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
19514         (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
19515         (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
19516         (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
19517         (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
19518         (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
19519         (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
19520         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
19521         (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
19522         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
19523         (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
19524         (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
19525         (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
19526         (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
19527         (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
19528         (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
19529         (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
19530         (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
19531         (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
19532         (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
19533         (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
19534         (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
19535         (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
19536         (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
19537         (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
19538         (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
19539         (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
19540         (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
19541         (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
19542         (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
19543         (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
19544         (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
19545         (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
19546         (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
19547         (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
19548         (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
19549         (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
19550         (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
19551         (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
19552         (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
19553         (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
19554         (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
19555         (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
19556         (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
19557         (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
19558         (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
19559         (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
19560         (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
19561         (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
19562         (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
19563         (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
19564         (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
19565         (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
19566         (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
19567         (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
19568         (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
19569         (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
19570         (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
19571         (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
19572         (V16SI_FTYPE_SI_V16SI_HI): Ditto.
19573         (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
19574         (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
19575         (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
19576         (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
19577         (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
19578         (V8DI_FTYPE_DI_V8DI_QI): Ditto.
19579         (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
19580         (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
19581         (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
19582         (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
19583         (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
19584         (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
19585         (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
19586         (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
19587         (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
19588         (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
19589         (V8SI_FTYPE_SI_V8SI_QI): Ditto.
19590         (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
19591         (V4SI_FTYPE_SI_V4SI_QI): Ditto.
19592         (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
19593         (V4DI_FTYPE_DI_V4DI_QI): Ditto.
19594         (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
19595         (V2DI_FTYPE_DI_V2DI_QI): Ditto.
19596         (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
19597         (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
19598         (V64QI_FTYPE_QI_V64QI_DI): Ditto.
19599         (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
19600         (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
19601         (V32QI_FTYPE_QI_V32QI_SI): Ditto.
19602         (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
19603         (V16QI_FTYPE_QI_V16QI_HI): Ditto.
19604         (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
19605         (V32HI_FTYPE_HI_V32HI_SI): Ditto.
19606         (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
19607         (V16HI_FTYPE_HI_V16HI_HI): Ditto.
19608         (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
19609         (V8HI_FTYPE_HI_V8HI_QI): Ditto.
19610         (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
19611         (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
19612         (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
19613         (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
19614         (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
19615         (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
19616         (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
19617         (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
19618         (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
19619         (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
19620         (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
19621         (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
19622         (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
19623         (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
19624         (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
19625         (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
19626         (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
19627         (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
19628         (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
19629         (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
19630         (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
19631         (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
19632         (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
19633         (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
19634         (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
19635         (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
19636         (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
19637         (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
19638         (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
19639         (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
19640         (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
19641         (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
19642         (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
19643         (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
19644         (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
19645         (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
19646         (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
19647         (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
19648         (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
19649         (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
19650         (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
19651         (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
19652         (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
19653         (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
19654         (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
19655         (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
19656         (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
19657         (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
19658         (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
19659         (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
19660         (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
19661         (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
19662         (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
19663         (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
19664         (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
19665         (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
19666         (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
19667         (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
19668         (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
19669         (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
19670         (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
19671         (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
19672         (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
19673         (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
19674         (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
19675         (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
19676         (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
19677         (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
19678         (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
19679         (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
19680         (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
19681         (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
19682         (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
19683         (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
19684         (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
19685         (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
19686         (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
19687         (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
19688         (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
19689         (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
19690         (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
19691         (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
19692         (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
19693         (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
19694         (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
19695         (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
19696         (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
19697         (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
19698         (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
19699         (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
19700         (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
19701         (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
19702         (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
19703         (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
19704         (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
19705         (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
19706         (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
19707         (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
19708         (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
19709         (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
19710         (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
19711         (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
19712         (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
19713         (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
19714         (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
19715         (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
19716         (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
19717         (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
19718         (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
19719         (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
19720         (QI_FTYPE_V8DF_INT_QI): Ditto.
19721         (QI_FTYPE_V4DF_INT_QI): Ditto.
19722         (QI_FTYPE_V2DF_INT_QI): Ditto.
19723         (HI_FTYPE_V16SF_INT_HI): Ditto.
19724         (QI_FTYPE_V8SF_INT_QI): Ditto.
19725         (QI_FTYPE_V4SF_INT_QI): Ditto.
19726         (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
19728 2015-07-31  Richard Biener  <rguenther@suse.de>
19730         * gimple-fold.c (fold_gimple_assign): Remove folding of
19731         GIMPLE_BINARY_RHS.
19733 2015-07-31  Tom de Vries  <tom@codesourcery.com>
19735         PR tree-optimization/66846
19736         * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
19737         verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
19738         (expand_omp_target) [ENABLE_CHECKING]: Same.
19739         (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
19740         cfun if !LOOPS_NEED_FIXUP.
19741         (expand_omp_for_static_nochunk): Handle simple latch bb.  Handle case
19742         that omp_for already has its own loop struct.
19743         * tree-parloops.c (create_phi_for_local_result)
19744         (create_call_for_reduction): Handle simple latch bb.
19745         (create_parallel_loop): Add simple latch bb to preserve
19746         LOOPS_HAVE_SIMPLE_LATCHES.  Record new exit.  Handle simple latch bb.
19747         (gen_parallel_loop): Remove call to cancel_loop_tree.
19748         (parallelize_loops): Skip loops that are inner loops of parallelized
19749         loops.
19750         (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
19751         verify_loop_structure.
19753 2015-07-30  Anatoly Sokolov  <aesok@post.ru>
19755         * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
19756         * config/v850/v850.md (RV_REGNUM): New constants.
19757         * config/v850/v850.c (v850_libcall_value): New functions.
19758         (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
19759         (TARGET_LIBCALL_VALUE): Define.
19761 2015-07-30  Anatoly Sokolov  <aesok@post.ru>
19763         * rtl.h (lowpart_subreg): Move in file.
19764         * loop-iv.c (lowpart_subreg): Move to...
19765         * simplify-rtx.c (lowpart_subreg): ...here.
19766           (simplify_binary_operation_1): Use lowpart_subreg instead of
19767           simplify_gen_subreg.
19768         * expr.c (expand_expr_real_2): Ditto.
19769         * emit-rtl.c (gen_lowpart_common): Ditto.
19770         * combine.c (gen_lowpart_for_combine): Ditto.
19771         * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
19772           expand_debug_source_expr): Ditto.
19774 2015-07-30  Richard Sandiford  <richard.sandiford@arm.com>
19776         * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
19777         (expand_builtin_atomic_clear): Remove support for atomic_clear
19778         pattern.
19780 2015-07-30  Richard Biener  <rguenther@suse.de>
19782         * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
19783         binaries.  Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
19784         (fold_stmt_1): ... here and work on GIMPLE directly.  Remove
19785         redundant operand canonicalization.
19787 2015-07-30  David Sherwood  <david.sherwood@arm.com>
19789         * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
19790         GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
19791         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
19792         * config/arm/arm.c (neon_valid_immediate): Likewise.
19793         * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
19794         (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
19795         (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
19796         (expand_vec_perm_vpshufb2_vpermq): Likewise.
19797         (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
19798         (expand_vec_perm_vpshufb4_vpermq2): Likewise.
19799         * config/i386/sse.md
19800         (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
19801         (*ssse3_palignr<mode>_perm): Likewise.
19802         * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
19803         * config/spu/spu.c (arith_immediate_p): Likewise.
19804         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
19805         (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
19807 2015-07-30  Richard Biener  <rguenther@suse.de>
19809         * genmatch.c (decision_tree::gen_gimple): Merge with ...
19810         (decision_tree::gen_generic): ... this into ...
19811         (decision_tree::gen): ... this.
19812         (main): Adjust callers.
19814 2015-07-30  Richard Biener  <rguenther@suse.de>
19816         * genmatch.c (verbose): New global.
19817         (warning_at): Add overload with source_location.
19818         (capture_info::capture_info): Add bool whether generating gimple
19819         or generic.  Add gimple member.
19820         (capture_info::cinfo): Add capture member.
19821         (capture_info::walk_match): Record capture.  Warn on
19822         non-captured leafs.
19823         (capture_info::walk_c_expr): Add more fragments captures cannot
19824         escape through.  Warn on escaped captures.
19825         (dt_simplify::gen_1): Warn on operands we force to have no
19826         side-effects.
19827         (main): Initialize verbose.
19828         * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
19830 2015-07-30  Richard Biener  <rguenther@suse.de>
19832         PR middle-end/67053
19833         * match.pd: Allow both operands to independently have conversion
19834         when simplifying compares of addresses.
19836 2015-07-29  Segher Boessenkool  <segher@kernel.crashing.org>
19838         PR target/66217
19839         PR target/67045
19840         * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
19841         around those cases that need one.
19843 2015-07-29  Aditya Kumar  <hiraditya@msn.com>
19845         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
19847 2015-07-29  H.J. Lu  <hongjiu.lu@intel.com>
19849         * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
19850         New.  Copied from config/i386/gnu-user.h.
19851         (ASM_COMMENT_START): Likewise.
19852         (DBX_REGISTER_NUMBER): Likewise.
19854 2015-07-29  Richard Biener  <rguenther@suse.de>
19856         * gimple-fold.c (fold_gimple_cond): Remove.
19857         (fold_stmt_1): Do not call it.
19859 2015-07-29  Alan Lawrence  <alan.lawrence@arm.com>
19861         * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
19862         (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
19864         * config/aarch64/aarch64-modes.def: Add HFmode.
19866         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
19867         __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
19869         * config/aarch64/aarch64.c (aarch64_init_libfuncs,
19870         aarch64_promoted_type): New.
19872         (aarch64_float_const_representable_p): Disable HFmode.
19873         (aarch64_mangle_type): Mangle half-precision floats to "Dh".
19874         (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
19875         (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
19877         * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
19878         (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
19880         * config/aarch64/iterators.md (GPF_F16): New.
19882 2015-07-29  Richard Biener  <rguenther@suse.de>
19884         * match.pd: Merge address comparison patterns and make them
19885         handle some more cases.
19887 2015-07-29  Richard Biener  <rguenther@suse.de>
19889         * genmatch.c (c_expr::gen_transform): Error on unknown captures.
19890         (parser::parse_capture): Add bool argument on whether to reject
19891         unknown captures.
19892         (parser::parse_expr): Adjust.
19893         (parser::parse_op): Likewise.
19894         (parser::parse_pattern): Likewise.
19896 2015-07-29  Richard Biener  <rguenther@suse.de>
19898         * gimple-fold.c (has_use_on_stmt): New function.
19899         (replace_stmt_with_simplification): Use it to allow
19900         abnormals originally referenced in the stmt.
19901         (fold_stmt_1): Canonicalize operand order.
19903 2015-07-28  David Sherwood  <david.sherwood@arm.com>
19905         * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
19906         GET_MODE_INNER unconditionally.
19907         * config/spu/spu.c (arith_immediate_p): Likewise.
19908         * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
19909         * expmed.c (synth_mult): Remove check for VOIDmode result from
19910         GET_MODE_INNER.
19911         (expand_mult_const): Likewise.
19912         * fold-const.c (fold_binary_loc): Replace call to element_precision
19913         with call to GET_MODE_PRECISION.
19914         * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
19915         m->name.
19916         (emit_mode_inner): Likewise.
19917         * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
19918         result check.
19919         * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
19920         (GET_MODE_UNIT_PRECISION): Likewise.
19921         * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
19922         * simplify-rtx.c (simplify_immed_subreg): Likewise.
19923         * stor-layout.c (bitwise_type_for_mode): Update assert.
19924         (element_precision): Remove.
19926 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
19928         * target-insns.def (reload_load_address): New targetm instruction
19929         pattern.
19930         * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
19932 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
19934         * target-insns.def (atomic_test_and_set): New targetm instruction
19935         pattern.
19936         * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
19937         HAVE_*/gen_* interface.
19939 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
19941         * target-insns.def (can_extend, ptr_extend): New targetm instruction
19942         patterns.
19943         * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
19944         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
19945         * emit-rtl.c (set_reg_attrs_from_value): Likewise.
19946         * rtlanal.c (nonzero_bits1): Likewise.
19947         (num_sign_bit_copies1): Likewise.
19949 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
19951         * target-insns.def (eh_return): New targetm instruction pattern.
19952         * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
19953         interface.
19954         * function.c (thread_prologue_and_epilogue_insns): Remove
19955         preprocessor condition.
19957 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
19959         * target-insns.def (indirect_jump): New targetm instruction pattern.
19960         * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
19961         interface.
19963 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
19965         * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
19966         instead of nonimmediate_operand.  Remove C condiition.
19968 2015-07-28  Richard Biener  <rguenther@suse.de>
19970         * match.pd: Add more simplification of address comparisons.
19972 2015-07-28  Richard Biener  <rguenther@suse.de>
19974         * match.pd: Re-order two cases in comparison with max/min
19975         value simplification to make it apply for bools.
19977 2015-07-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19979         * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
19980         Handle simple SIGN_EXTEND or ZERO_EXTEND.
19981         (aarch64_rtx_costs): Properly strip extend or extract before
19982         passing down to rtx costs again.
19984 2015-07-28  Nick Clifton  <nickc@redhat.com>
19986         * config/rl78/rl78.c (rl78_addsi3_internal): New function.
19987         Optimizes the case where -mes0 is active and a constant symbolic
19988         address is used.
19989         * config/rl78/rl78-protos.h: Prototype the new function.
19990         * config/rl78/rl78.md (addsi3_internal_real): Call new function.
19992 2015-07-28  Tom de Vries  <tom@codesourcery.com>
19994         * tree-parloops.c (reduc_stmt_res): New function.
19995         (initialize_reductions, add_field_for_reduction)
19996         (create_phi_for_local_result, create_loads_for_reductions)
19997         (create_stores_for_reduction, build_new_reduction): Handle case that
19998         reduc_stmt is a phi.
19999         (gather_scalar_reductions): Allow double_reduc reductions.
20001 2015-07-28  Richard Biener  <rguenther@suse.de>
20003         * fold-const.c (fold_comparison): Remove equality folding
20004         of decl addresses ...
20005         * match.pd: ... here and merge with existing pattern.
20007 2015-07-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
20009         PR tree-optimization/66828
20010         * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
20011         from int64_t to uint64_t.
20013 2015-07-28  Dominik Vogt  <vogt@linux.vnet.ibm.com>
20015         * opts-common.c (read_cmdline_option): List DriverOnly enum values
20016         as valid only in the error message of the driver, not in the
20017         messages of the language compilers.
20019 2015-07-27  Tom de Vries  <tom@codesourcery.com>
20021         * tree-parloops.c (gather_scalar_reductions): Simplify function
20022         structure.
20024 2015-07-27  Marek Polacek  <polacek@redhat.com>
20026         * ipa-devirt.c (types_same_for_odr): Fix typo.
20028 2015-07-27  Jason Merrill  <jason@redhat.com>
20030         PR debug/66468
20031         * dwarf2out.c (gen_inlined_subroutine_die): Check
20032         cgraph_function_possibly_inlined_p.
20034 2015-07-27  Wilco Dijkstra  <wdijkstr@arm.com>
20036         * config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
20037         Place integer variant first.
20038         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
20040 2015-07-27  Alan Lawrence  <alan.lawrence@arm.com>
20042         PR/63870
20043         * config/arm/arm-builtins.c (enum arm_builtins):
20044         Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
20045         (ARM_BUILTIN_NEON_BASE): Rename macro to....
20046         (ARM_BUILTIN_NEON_PATTERN_START): ...this.
20047         (arm_init_neon_builtins): Register __builtin_arm_lane_check.
20048         (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
20050 2015-07-27  Alan Lawrence  <alan.lawrence@arm.com>
20052         PR/63870
20053         * config/arm/arm-builtins.c (enum arm_type_qualifiers):
20054         Add qualifier_lane_index.
20055         (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
20056         (arm_getlane_qualifiers): Use qualifier_lane_index.
20057         (arm_lanemac_qualifiers): Rename to...
20058         (arm_mac_n_qualifiers): ...this.
20059         (LANEMAC_QUALIFIERS): Rename to...
20060         (MAC_N_QUALIFIERS): ...this.
20061         (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
20062         (arm_setlane_qualifiers): Use qualifier_lane_index.
20063         (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
20064         (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
20065         (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
20066         (arm_expand_neon_builtin): Handle qualifier_lane_index.
20068         * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
20069         * config/arm/arm.c (bounds_check): Likewise, improve error message.
20070         (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
20071         * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
20072         vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
20073         vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
20074         vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
20075         (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
20076         qualifiers to TERNOP_IMM.
20077         (vdup_lane): Change qualifiers to GETLANE.
20078         (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
20079         vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
20080         (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
20081         vqdmlsl_n): Change qualifiers to MAC_N.
20083         * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
20084         neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
20085         neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
20086         neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
20087         neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
20088         neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
20089         neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
20090         neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
20091         neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
20092         Remove call to neon_lane_bounds.
20094 2015-07-27  Wilco Dijkstra  <wdijkstr@arm.com>
20096         * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
20097         Place integer variant first.
20099 2015-07-27  Matthew Wahab  <matthew.wahab@arm.com>
20101         * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
20102         and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
20103         * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
20104         for armv6kz targets.
20105         * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
20106         * config/arm/arm-protos.h (FL_ARCH6KZ): New.
20107         (FL_FOR_ARCH6ZK): Remove.
20108         (FL_FOR_ARCH6KZ): New.
20109         (arm_arch6zk): New declaration.
20110         * config/arm/arm-tables.opt: Regenerate.
20111         * config/arm/arm.c (arm_arch6kz): New.
20112         (arm_option_override): Set arm_arch6kz.
20113         * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
20114         * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
20115         * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
20117 2015-07-27  Marek Polacek  <polacek@redhat.com>
20119         PR c++/66555
20120         PR c/54979
20121         * doc/invoke.texi: Document -Wtautological-compare.
20123 2015-07-27  Richard Biener  <rguenther@suse.de>
20125         * genmatch.c (decision_tree::gen_gimple): Split out large
20126         subtrees into separate functions.
20127         (decision_tree::gen_generic): Likewise.
20129 2015-07-26  Uros Bizjak  <ubizjak@gmail.com>
20131         * config/alpha/alpha.c: Use SUBREG_P predicate.
20132         * config/alpha/predicates.md: Ditto.
20134 2015-07-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
20136         * config.host (s390*-*-*): Include driver-native.c only when
20137         building with s390* as host *and* target.
20139 2015-07-25  Oleg Endo  <olegendo@gcc.gnu.org>
20141         PR target/66930
20142         * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
20143         T bit register modified_between_p check.
20145 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
20147         * config/i386/i386.c: Use SUBREG_P predicate.
20148         * config/i386/i386.md: Ditto.
20149         * config/i386/sse.md: Ditto.
20150         * config/i386/predicates.md: Ditto.
20152 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
20154         PR target/67004
20155         * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
20156         predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
20158 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
20160         * Makefile.in: Remove use of TREEBROWSER.
20161         * config.in: Regenerated.
20162         * configure: Regenerated.
20163         * configure.ac: Remove definition of TREEBROWSER.
20164         * tree-browser.c: Removed.
20165         * tree-browser.def: Removed.
20167 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
20169         * graphite-scop-detection.c: Include gimple-pretty-print.h.
20170         (stmt_simple_for_scop_p): Print when a stmt is not handled in
20171         Graphite.
20172         (scopdet_basic_block_info): Print when a loop or bb cannot be
20173         represented in Graphite.
20175 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
20177         PR target/66648
20178         * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
20179         execution guard when min_size is less than size_needed.
20181 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
20183         * doc/install.texi: Document supported versions of ISL.
20185 2015-07-25  Jeff Law  <law@redhat.com>
20187         Revert:
20188         PR lto/66752
20189         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
20190         unable to find X NE 0 in the tables, return X as the simplified
20191         condition.
20192         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
20193         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
20194         to VISISTED_BBS.  */
20195         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
20196         after removing the control flow statement and unnecessary edges.
20198 2015-07-25  David Edelsohn  <dje.gcc@gmail.com>
20200         Revert:
20201         2015-07-23  Alexandre Oliva  <aoliva@redhat.com>
20203         PR rtl-optimization/64164
20204         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
20205         * tree-ssa-copyrename.c: Removed.
20206         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
20207         -ftree-coalesce-vars.
20208         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
20209         * common.opt (ftree-copyrename): Ignore.
20210         (ftree-coalesce-inlined-vars): Likewise.
20211         * doc/invoke.texi: Remove the ignored options above.
20212         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
20213         * tree-ssa-coalesce.h: ... here.
20214         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
20215         headers required by it.
20216         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
20217         across variables when flag_tree_coalesce_vars.  Check register
20218         use and promoted modes to allow coalescing.  Moved to
20219         tree-ssa-coalesce.c.
20220         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
20221         with its member functions to tree-ssa-coalesce.c.
20222         (var_map_base_init): Likewise.  Renamed to
20223         compute_samebase_partition_bases.
20224         (partition_view_normal): Drop want_bases parameter.
20225         (partition_view_bitmap): Likewise.
20226         * tree-ssa-live.h: Adjust declarations.
20227         * tree-ssa-coalesce.c: Include explow.h.
20228         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
20229         default defs at the entry point.
20230         (dump_part_var_map): New.
20231         (compute_optimized_partition_bases): New, called by...
20232         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
20233         of compute_samebase_partition_bases.  Adjust.
20234         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
20235         * cfgexpand.c (leader_merge): New.
20236         (get_rtl_for_parm_ssa_default_def): New.
20237         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
20238         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
20239         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
20240         redundant MEM attr setting.
20241         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
20242         from...
20243         (expand_one_stack_var): ... this.  New wrapper to check and
20244         skip already expanded SSA partitions.
20245         (record_alignment_for_reg_var): New, factored out of...
20246         (expand_one_var): ... this.
20247         (expand_one_ssa_partition): New.
20248         (adjust_one_expanded_partition_var): New.
20249         (expand_one_register_var): Check and skip already expanded SSA
20250         partitions.
20251         (expand_used_vars): Don't create DECLs for anonymous SSA
20252         names.  Expand all SSA partitions, then adjust all SSA names.
20253         (pass::execute): Replace the loops that set
20254         SA.partition_to_pseudo from partition leaders and cleared
20255         DECL_RTL for multi-location variables, and that which used to
20256         rename vars and set attrs, with one that clears DECL_RTL and
20257         checks that PARMs and RESULTs default_defs match DECL_RTL.
20258         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
20259         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
20260         * explow.c (promote_ssa_mode): New.
20261         * explow.h (promote_ssa_mode): Declare.
20262         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
20263         * function.c: Include cfgexpand.h.
20264         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
20265         (use_register_for_parm_decl): Wrapper for the above to
20266         special-case the result_ptr.
20267         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
20268         (split_complex_args): Take assign_parm_data_all argument.
20269         Pass it to rtl_for_parm.  Set up rtl and context for split
20270         args.
20271         (assign_parms_augmented_arg_list): Adjust.
20272         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
20273         multiple locations.  Recognize split complex args.
20274         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
20275         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
20276         (assign_parm_setup_block): Prefer SSA-assigned location.
20277         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
20278         if stack_parm is NULL.
20279         (assign_parm_setup_stack): Prefer SSA-assigned location.
20280         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
20281         rtl before testing for pointer bounds.  Special-case result_ptr.
20282         (expand_function_start): Maybe reset DECL_RTL of result.
20283         Prefer SSA-assigned location for result and static chain.
20284         Factor out DECL_RESULT and SET_DECL_RTL.
20285         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
20286         anonymous SSA names.  Use promote_ssa_mode.
20287         (get_temp_reg): Likewise.
20288         (remove_ssa_form): Adjust.
20289         * stor-layout.c (layout_decl): Don't set mem attributes of
20290         non-MEMs.
20291         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
20292         and get its reg_usage for reg invalidation.
20293         (compute_bb_dataflow): Pass it insn.
20294         (emit_notes_in_bb): Likewise.
20296 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
20298         * config/i386/i386.c (ix86_va_start): Remove
20299         unneeded !TARGET_64BIT check.
20300         (ix86_gimplify_va_arg): Ditto.
20302 2015-07-24  Tom de Vries  <tom@codesourcery.com>
20304         * graphite-sese-to-poly.c (build_poly_scop): Always call
20305         rewrite_commutative_reductions_out_of_ssa.
20307 2015-07-24  Tom de Vries  <tom@codesourcery.com>
20309         * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
20310         flag_associative_math to FLOAT_TYPE_P.  Honour
20311         TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
20313 2015-07-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
20315         PR c++/64079
20316         * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
20317         and "%qD" in warning_at instead of "%q+D" in warning.
20319 2015-07-24  Uros Bizjak  <ubizjak@gmail.com>
20321         * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
20322         (ix86_function_abi): Cleanup.
20324 2015-07-24  Michael Darling  <darlingm@gmail.com>
20326         PR other/66259
20327         * acinclude.m4: Reflects renaming of configure.in to configure.ac
20328         * configure: Likewise
20329         * configure.ac: Likewise
20330         * doc/install.texi: Likewise
20331         * doc/tm.texi: Likewise
20332         * doc/tm.texi.in: Likewise
20334 2015-07-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20336         * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
20337         manually swapping values.
20338         * cse.c (fold_rtx): Likewise.
20339         * lra-eliminations.c (form_sum): Likewise.
20341 2015-07-24  Uros Bizjak  <ubizjak@gmail.com>
20343         PR target/64003
20344         * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
20345         * config/i386/i386.md (maybe_prefix_bnd): New attribute.
20346         (*jcc_1, *jcc_2, jump, simple_return_internal)
20347         (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
20348         Set length_nobnd attribute instead of length attribute.
20349         (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
20350         (length_nobnd): Remove attribute.
20351         (length): Remove length_nobnd processing.
20353 2015-07-24  Nathan Sidwell  <nathan@codesourcery.com>
20355         * gimplify.c (omp_default_clause): New function.  Reorganize flow
20356         for clarity. Broken out of ...
20357         (omp_notice_variable): ... here.
20359 2015-07-24  Gary Funck  <gary@intrepid.com>
20361         PR middle-end/66984
20362         * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
20363         fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
20365 2015-07-24  Tom de Vries  <tom@codesourcery.com>
20367         * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
20368         exit-first loop transform.
20370 2015-07-24  Cesar Philippidis  <cesar@codesourcery.com>
20372         PR 66714
20373         * tree-cfg.c (struct replace_decls_d): New struct.
20374         (replace_block_vars_by_duplicates_1): New function.
20375         (replace_block_vars_by_duplicates): Use it to replace the decls
20376         in the value exprs by duplicates.
20378 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
20380         * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
20381         -shared, -symbolic, -rdynamic.
20383 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
20385         PR target/65711
20386         * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
20387         -dynamic-linker within %{!static %{!shared, and -rdynamic within
20388         %{!static.
20390 2015-07-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
20392         PR ipa/66566
20393         * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
20394         edge summary is available.
20396 2015-07-24  Richard Biener  <rguenther@suse.de>
20398         * genmatch.c (struct dt_node): Add statistic fields.
20399         (dt_node::analyze): New method.
20400         (decision_tree::gen_gimple): Call analyze on the root node
20401         and print statistics to stderr.
20402         (decision_tree::gen_generic): Likewise.
20404 2015-07-24  Richard Biener  <rguenther@suse.de>
20406         * fold-const.c (fold_binary_loc): Move simplifying of comparisons
20407         against the highest or lowest possible integer ...
20408         * match.pd: ... as patterns here.
20410 2015-07-24  Richard Biener  <rguenther@suse.de>
20412         * genmatch.c (struct capture_info): Add same_as field.
20413         (capture_info::capture_info): Initialize same_as.
20414         (capture_info::walk_match): Compute same_as.
20415         (capture_info::walk_result): Compute stuff for the leader.
20416         (capture_info::walk_c_expr): Likewise.
20417         (dt_simplify::gen_1): Only look at leaders when deciding
20418         to force no side-effects or emit side-effects of omitted operands.
20420 2015-07-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20422         * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
20423         reg note to the GPR -> FPR save instructions.
20425 2015-07-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20427         * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
20428         cheaper.
20429         (s390_expand_insv): Don't generate risbg pattern for constant zero
20430         sources.
20431         * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
20432         ("*insv<mode>_z10_appendbitsleft"): New pattern definitions.  New
20433         splitters.
20435 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
20437         * config/s390/s390.c (s390_reorg): Clean up handling of processors
20438         with
20439         -mtune=
20440         (s390_issue_rate): Likewise.
20441         (s390_sched_reorder): Likewise.
20442         (s390_sched_variable_issue): Likewise.
20443         (s390_loop_unroll_adjust): Likewise.
20444         (s390_option_override):  Likewise.
20446 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
20448         * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
20449         processor capabilities with -march=native.
20450         * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
20451         (DRIVER_SELF_SPECS): Likewise.  Join specs for 31 and 64 bit.
20452         (S390_TARGET_BITS_STRING): Macro to simplify specs.
20454 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
20456         * config/s390/s390.c (s390_issue_rate): Handle
20457         PROCESSOR_2094_Z9_EC.
20458         (s390_option_override): Likewise.
20459         (s390_adjust_priority): Likewise.
20461 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
20463         * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
20464         when cross compiling.
20466 2015-07-24  Richard Biener  <rguenther@suse.de>
20468         * fold-const.c (maybe_canonicalize_comparison_1): Move
20469         A code CST canonicalization ...
20470         * match.pd: ... to a pattern here.
20472 2015-07-24  Jiong Wang  <jiong.wang@arm.com>
20474         Revert:
20475         2015-07-22  Jiong Wang  <jiong.wang@arm.com>
20476         PR target/63521
20477         * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
20478         (HONOR_REG_ALLOC_ORDER): Define.
20480 2015-07-24  Richard Biener  <rguenther@suse.de>
20482         * genmatch.c (add_operator): Allow SSA_NAME as predicate.
20483         * fold-const.c (fold_comparison): Move parameter does not
20484         alias &local simplification ...
20485         * match.pd: ... as a pattern here.
20487 2015-07-24  Richard Biener  <rguenther@suse.de>
20489         * gimple-fold.c (replace_stmt_with_simplification): Special-case
20490         valueizing call operands.
20491         * gimple-match-head.c (maybe_push_res_to_seq): Take
20492         number of call arguments from ops array.
20493         (do_valueize): New function.
20494         (gimple_simplify): Return true if valueization changed
20495         any operand even if the result didn't simplify further.
20497 2015-07-24  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
20499         PR middle-end/25530
20500         * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
20502 2015-07-24  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
20504         PR middle-end/25529
20505         * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
20507 2015-07-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
20509         * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
20510         instruction.
20512 2015-07-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
20514         * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
20515         clean up.
20517 2015-07-23  Uros Bizjak  <ubizjak@gmail.com>
20519         * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
20520         from ix86_build_builtin_va_list_abi.  Handle only 64bit non-MS_ABI
20521         targets here.
20522         (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
20523         ms_va_list_type_node initialization.
20525 2015-07-23  Jeff Law  <law@redhat.com>
20527         PR lto/66752
20528         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
20529         unable to find X NE 0 in the tables, return X as the simplified
20530         condition.
20531         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
20532         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
20533         to VISISTED_BBS.  */
20534         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
20535         after removing the control flow statement and unnecessary edges.
20537 2015-07-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
20539         * tree-pass.h (get_current_pass_name): Removed.
20541 2015-07-23  Alexandre Oliva  <aoliva@redhat.com>
20543         PR rtl-optimization/64164
20544         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
20545         * tree-ssa-copyrename.c: Removed.
20546         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
20547         -ftree-coalesce-vars.
20548         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
20549         * common.opt (ftree-copyrename): Ignore.
20550         (ftree-coalesce-inlined-vars): Likewise.
20551         * doc/invoke.texi: Remove the ignored options above.
20552         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
20553         * tree-ssa-coalesce.h: ... here.
20554         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
20555         headers required by it.
20556         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
20557         across variables when flag_tree_coalesce_vars.  Check register
20558         use and promoted modes to allow coalescing.  Moved to
20559         tree-ssa-coalesce.c.
20560         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
20561         with its member functions to tree-ssa-coalesce.c.
20562         (var_map_base_init): Likewise.  Renamed to
20563         compute_samebase_partition_bases.
20564         (partition_view_normal): Drop want_bases parameter.
20565         (partition_view_bitmap): Likewise.
20566         * tree-ssa-live.h: Adjust declarations.
20567         * tree-ssa-coalesce.c: Include explow.h.
20568         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
20569         default defs at the entry point.
20570         (dump_part_var_map): New.
20571         (compute_optimized_partition_bases): New, called by...
20572         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
20573         of compute_samebase_partition_bases.  Adjust.
20574         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
20575         * cfgexpand.c (leader_merge): New.
20576         (get_rtl_for_parm_ssa_default_def): New.
20577         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
20578         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
20579         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
20580         redundant MEM attr setting.
20581         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
20582         from...
20583         (expand_one_stack_var): ... this.  New wrapper to check and
20584         skip already expanded SSA partitions.
20585         (record_alignment_for_reg_var): New, factored out of...
20586         (expand_one_var): ... this.
20587         (expand_one_ssa_partition): New.
20588         (adjust_one_expanded_partition_var): New.
20589         (expand_one_register_var): Check and skip already expanded SSA
20590         partitions.
20591         (expand_used_vars): Don't create DECLs for anonymous SSA
20592         names.  Expand all SSA partitions, then adjust all SSA names.
20593         (pass::execute): Replace the loops that set
20594         SA.partition_to_pseudo from partition leaders and cleared
20595         DECL_RTL for multi-location variables, and that which used to
20596         rename vars and set attrs, with one that clears DECL_RTL and
20597         checks that PARMs and RESULTs default_defs match DECL_RTL.
20598         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
20599         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
20600         * explow.c (promote_ssa_mode): New.
20601         * explow.h (promote_ssa_mode): Declare.
20602         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
20603         * function.c: Include cfgexpand.h.
20604         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
20605         (use_register_for_parm_decl): Wrapper for the above to
20606         special-case the result_ptr.
20607         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
20608         (split_complex_args): Take assign_parm_data_all argument.
20609         Pass it to rtl_for_parm.  Set up rtl and context for split
20610         args.
20611         (assign_parms_augmented_arg_list): Adjust.
20612         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
20613         multiple locations.  Recognize split complex args.
20614         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
20615         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
20616         (assign_parm_setup_block): Prefer SSA-assigned location.
20617         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
20618         if stack_parm is NULL.
20619         (assign_parm_setup_stack): Prefer SSA-assigned location.
20620         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
20621         rtl before testing for pointer bounds.  Special-case result_ptr.
20622         (expand_function_start): Maybe reset DECL_RTL of result.
20623         Prefer SSA-assigned location for result and static chain.
20624         Factor out DECL_RESULT and SET_DECL_RTL.
20625         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
20626         anonymous SSA names.  Use promote_ssa_mode.
20627         (get_temp_reg): Likewise.
20628         (remove_ssa_form): Adjust.
20629         * stor-layout.c (layout_decl): Don't set mem attributes of
20630         non-MEMs.
20631         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
20632         and get its reg_usage for reg invalidation.
20633         (compute_bb_dataflow): Pass it insn.
20634         (emit_notes_in_bb): Likewise.
20636 2015-07-23  Segher Boessenkool  <segher@kernel.crashing.org>
20638         PR target/66217
20639         * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
20640         prototype.
20641         * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
20642         (rs6000_emit_2insn_and): Handle dot forms.
20643         * config/rs6000/rs6000.md (and<mode>3): Adjust.
20644         (*and<mode>3_2insn): Remove TODO.  Adjust.  Add "type" attr.
20645         (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
20647 2015-07-23  Richard Biener  <rguenther@suse.de>
20649         * generic-match-head.c: Include cgraph.h.
20650         * gimple-match-head.c: Likewise.
20651         * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
20652         SSA names.
20653         * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
20654         * match.pd: ...to a pattern here.  Add &A ==/!= 0 simplification
20655         pattern.
20657 2015-07-23  Richard Biener  <rguenther@suse.de>
20659         * gimple-fold.c (fold_gimple_cond): Do not require folding
20660         results to pass valid_gimple_rhs_p.
20661         * tree-cfg.h (fold_cond_expr_cond): Remove.
20662         * tree-cfg.c (fold_cond_expr_cond): Likewise.
20663         (make_edges): Do not call it.
20664         * tree-inline.c (tree_function_versioning): Likewise.
20666 2015-07-23  Tom de Vries  <tom@codesourcery.com>
20668         * tree-parloops.c (gather_scalar_reductions): Add arg to call to
20669         vect_force_simple_reduction.
20670         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
20671         (vect_is_simple_reduction_1): Add and handle
20672         need_wrapping_integral_overflow parameter.
20673         (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
20674         need_wrapping_integral_overflow parameter.
20675         (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
20676         * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
20677         decl.
20679 2015-07-23  Yuri Rumyantsev  <ysrumyan@gmail.com>
20681         PR tree-optimization/66926,66951
20682         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
20683         INNER_LOOP and fix up condition for renaming virtual operands.
20685 2015-07-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20687         * combine.c (try_combine): Use std::swap instead of manually
20688         swapping.
20690 2015-07-23  Prachi Godbole  <prachi.godbole@imgtec.com>
20692         * config/mips/i6400.md: New file.
20693         * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
20694         (mips64r6): Likewise.
20695         (i6400): Define.
20696         * config/mips/mips-tables.opt: Regenerate.
20697         * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
20698         (mips_issue_rate): Add support for i6400.
20699         (mips_multipass_dfa_lookahead): Likewise.
20700         * config/mips/mips.h (TUNE_I6400): Define.
20701         * config/mips/mips.md: Include i6400.md.
20702         (processor): Add i6400.
20703         * doc/invoke.texi (-march=@var{arch}): Add i6400.
20705 2015-07-23  Richard Biener  <rguenther@suse.de>
20707         PR middle-end/66916
20708         * match.pd: Guard widen and sign-change comparison simplification
20709         with single_use.
20711 2015-07-23  Richard Biener  <rguenther@suse.de>
20713         PR tree-optimization/66945
20714         * tree-ssa-propagate.c (substitute_and_fold_dom_walker
20715         ::before_dom_children): Force the propagators idea of
20716         non-executable edges to materialize, not what the folder
20717         chooses.
20719 2015-07-23  Richard Biener  <rguenther@suse.de>
20721         * gimple.h (gimple_cond_make_false): Use 0 != 0.
20722         (gimple_cond_make_true): Use 1 != 0.
20724 2015-07-22  DJ Delorie  <dj@redhat.com>
20726         * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
20727         slashes.
20729         * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
20730         (ashrhi3): Likewise.
20731         (lshrhi3): Likewise.
20732         (movhi): Take advantage of zero-extend to load small constants.
20733         (movpsi): Likewise.
20734         (and<mode>3): Likewise.
20735         (zero_extendqihi2): Likewise.
20736         (zero_extendqisi2): New.
20737         * config/msp430/constraints.md (N,O): New.
20738         * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
20740 2015-07-22  Uros Bizjak  <ubizjak@gmail.com>
20742         PR target/66954
20743         * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
20744         to enum feature_priority and feature_list.
20745         (fold_builtin_cpu): Add F_AES to enum processor_features
20746         and isa_names_table.
20748 2015-07-22  Ilya Enkovich  <enkovich.gnu@gmail.com>
20750         PR driver/66737
20751         * config/i386/linux-common.h (MPX_SPEC): Use linker option
20752         for 64bit target only.
20754 2015-07-22  Bernd Schmidt  <bernds@codesourcery.com>
20756         * config/nvptx/nvptx.c: Expand some comments.
20758 2015-07-22  James Greenhalgh  <james.greenhalgh@arm.com>
20760         * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
20761         (cortex_a53_advsimd): ...This.
20763 2015-07-22  Richard Biener  <rguenther@suse.de>
20765         * genmatch.c (expr::gen_transform): Clarify error message
20766         and display location.
20768 2015-07-22  Richard Biener  <rguenther@suse.de>
20770         * genmatch.c (struct operand): Add location member.
20771         (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
20772         constructors.
20773         (struct simplify): Remove match_location and result_location
20774         members.
20775         (elsehwere): Adjust.
20777 2015-07-22  Prachi Godbole  <prachi.godbole@imgtec.com>
20779         * config/mips/m5100.md: New file.
20780         * config/mips/mips-cpus.def (m5100, m5101): Define.
20781         * config/mips/mips-tables.opt: Regenerate.
20782         * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
20783         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
20784         -march=m5101 to -mips32r5.
20785         (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
20786         (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
20787         !-msoft-float.
20788         * config/mips/mips.md: Include m5100.md.
20789         (processor): Add m5100.
20790         * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
20792 2015-07-22  Robert Suchanek  <robert.suchanek@imgtec.com>
20794         * config/mips/mips-cpus.def (interaptiv): Define.
20795         * config/mips/mips-tables.opt: Regenerate.
20796         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
20797         -mips32r2.
20798         (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
20799         * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
20801 2015-07-22  Jiong Wang  <jiong.wang@arm.com>
20803         PR target/63521
20804         * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
20805         (HONOR_REG_ALLOC_ORDER): Define.
20807 2015-07-22  Richard Biener  <rguenther@suse.de>
20809         PR tree-optimization/66952
20810         * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
20811         blocks we end up executing unconditionally reset all SSA
20812         info such as range and alignment.
20813         * tree-ssanames.h (reset_flow_sensitive_info): Declare.
20814         * tree-ssanames.c (reset_flow_sensitive_info): New function.
20816 2015-07-22  Charles Baylis  <charles.baylis@linaro.org>
20818         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
20819         typo in attribute.
20821 2015-07-22  Richard Biener  <rguenther@suse.de>
20823         * genmatch.c (parser::parse_result): Properly handle
20824         match with result operands and conditions.
20826 2015-07-22  Charles Baylis  <charles.baylis@linaro.org>
20828         PR target/63870
20829         * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
20830         Add qualifier_struct_load_store_lane_index.
20831         (aarch64_types_loadstruct_lane_qualifiers): Use
20832         qualifier_struct_load_store_lane_index for lane index argument for
20833         last argument.
20834         (aarch64_types_storestruct_lane_qualifiers): Ditto.
20835         (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
20836         (aarch64_simd_expand_args): Add new argument describing mode of
20837         builtin. Check lane bounds for arguments with
20838         SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
20839         (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
20840         if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
20841         (aarch64_simd_expand_builtin): Handle arguments with
20842         qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
20843         aarch64_simd_expand_args.
20844         * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
20845         vst[234]_lane with BUILTIN_VALLDIF.
20846         * config/aarch64/aarch64-simd.md:
20847         (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
20848         endianness reversal on lane index.
20849         (aarch64_vec_load_lanesci_lane<mode>): Ditto.
20850         (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
20851         (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
20852         (vec_store_lanesci_lane<mode>): Ditto.
20853         (vec_store_lanesxi_lane<mode>): Ditto.
20854         (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
20855         reversal of lane index.
20856         (aarch64_ld3_lane<mode>): Ditto.
20857         (aarch64_ld4_lane<mode>): Ditto.
20858         (aarch64_st2_lane<mode>): Ditto.
20859         (aarch64_st3_lane<mode>): Ditto.
20860         (aarch64_st4_lane<mode>): Ditto.
20861         * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
20862         to qmode. Add new mode parameter. Update uses.
20863         (__LD3_LANE_FUNC): Ditto.
20864         (__LD4_LANE_FUNC): Ditto.
20865         (__ST2_LANE_FUNC): Ditto.
20866         (__ST3_LANE_FUNC): Ditto.
20867         (__ST4_LANE_FUNC): Ditto.
20869 2015-07-22  Jonathan Wakely  <jwakely@redhat.com>
20871         * doc/invoke.texi (Language Independent Options): Rename node to
20872         Diagnostic Message Formatting Options.
20874 2015-07-21  Vladimir Makarov  <vmakarov@redhat.com>
20876         PR ipa/66424.
20877         * lra-remat.c (operand_to_remat): Prevent using insns with input
20878         subregs processed separately by IRA.
20880 2015-07-21  Andrew MacLeod  <amacleod@redhat.com>
20882         * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
20883         straight loops.
20884         (single_imm_use): Check for iterator node.
20885         (num_imm_uses): Likewise.
20886         * tree-ssa-operands.c (has_zero_uses_1): Delete.
20887         (single_imm_use_1): Check for iterator node.
20889 2015-07-21  Mike Frysinger  <vapier@gentoo.org>
20890             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
20892         * configure.ac: Add check for new options in isl-0.15.
20893         * config.in, configure: Rebuilt.
20894         * graphite-blocking.c: Include <isl/constraint.h>
20895         * graphite-interchange.c,  graphite-poly.c: Likewise.
20896         * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
20897         * graphite.c: Likewise.
20898         * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
20899         <isl/union_set.h>.
20900         * graphite-dependences.c: Include <isl/constraint.h>.
20901         (max_number_of_out_dimensions): Returns isl_stat.
20902         (extend_schedule_1): Likewise
20903         (extend_schedule): Corresponding changes.
20904         * graphite-optimize-isl.c: Include <isl/constraint.h> and
20905         <isl/union_set.h>.
20906         (getSingleMap): Change return type of isl_stat.
20907         (optimize_isl): Conditionally use
20908         isl_options_set_schedule_serialize_sccs.
20909         * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
20910         if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
20912 2015-07-21  Georg-Johann Lay  <avr@gjlay.de>
20914         PR target/66956
20915         * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
20916         (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
20918 2015-07-21  Richard Biener  <rguenther@suse.de>
20920         PR tree-optimization/66948
20921         * genmatch.c (capture_info::walk_match): Also recurse to
20922         captures.  Properly compute expr state from captures of
20923         captures.
20924         * match.pd: Add single-use guards to
20925         (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
20927 2015-07-21  Nathan Sidwell  <nathan@codesourcery.com>
20929         * config/nvptx/mkoffload.c (process): Add static destructor call.
20931 2015-07-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20933         PR middle-end/66915
20934         * match.pd (A - B -> A + (-B)): Don't allow folding
20935         when type if a fixed-point type.
20937 2015-07-20  DJ Delorie  <dj@redhat.com>
20939         * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
20940         (iorqi3_real): Likewise for set1.
20942 2015-07-20  Uros Bizjak  <ubizjak@gmail.com>
20944         * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
20945         for !TARGET_64BIT.
20947 2015-07-20  Aditya Kumar  <hiraditya@msn.com>
20949         * graphite-isl-ast-to-gimple.c:
20950         Refactor so that each function can access 'region'. This will help
20951         maintain a parameter rename_map within a region.
20953 2015-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
20955         * config/rs6000/rs6000.md (*lt0_disi): New.
20957 2015-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
20959         PR target/66217
20960         * config/rs6000/constraints.md ("S", "T", "t"): Delete.  Update
20961         "available letters" comment.
20962         * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
20963         mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
20964         and_2rld_operand):  Delete.
20965         (and_operand): Adjust.
20966         (rotate_mask_operator): New.
20967         * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
20968         includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
20969         includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
20970         extract_ME): Delete.
20971         (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
20972         rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
20973         rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
20974         rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
20975         rs6000_emit_2insn_and): New.
20976         * config/rs6000/rs6000.c (num_insns_constant): Adjust.
20977         (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
20978         includes_rldic_lshift_p, includes_rldicr_lshift_p,
20979         insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
20980         (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
20981         rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
20982         s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
20983         rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
20984         rs6000_emit_2insn_and): New.
20985         (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
20986         (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
20987         handling.
20988         <NOT>: Don't fall through to next case.
20989         <AND>: Handle the various rotate-and-mask cases directly.
20990         <IOR>: Always cost as one insn.
20991         * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
20992         (and<mode>3): Adjust expander for the new patterns.
20993         (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
20994         and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
20995         (*and<mode>3_imm_dot_shifted): New.
20996         (*and<mode>3_mask): Delete, rewrite as ...
20997         (and<mode>3_mask): ... New.
20998         (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
20999         (andsi3_internal0_nomc): Delete.
21000         (*andsi3_internal6): Delete.
21001         (*and<mode>3_2insn): New.
21002         (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
21003         *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
21004         *insvsi_internal6, insvdi_internal, *insvdi_internal2,
21005         *insvdi_internal3): Delete.
21006         (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
21007         *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
21008         *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
21009         *ior<mode>_mask): New.
21010         (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
21011         *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
21012         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
21013         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
21014         Delete.
21015         (ashr<mode>3): Delete expander.
21016         (*ashr<mode>3): Rename to ...
21017         (ashr<mode>3): ... This.
21018         (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
21019         (*rotldi3_internal4, *rotldi3_internal5 and split,
21020         *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
21021         and split, *ashldi3_internal6 and split, *ashldi3_internal7,
21022         ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
21023         (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
21024         (splitter for loading a mask): Adjust.
21025         * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
21027 2015-07-20  Marek Polacek  <polacek@redhat.com>
21029         * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
21030         output_add_clobbers, output_added_clobbers_hard_reg_p,
21031         gen_rtx_scratch): Remove declarations.
21033 2015-07-20  Marek Polacek  <polacek@redhat.com>
21035         PR c++/55095
21036         * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
21038 2015-07-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21040         * simplify-rtx.c (simplify_unary_operation_1, NEG case):
21041         (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
21043 2015-07-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21045         * combine.c (combine_simplify_rtx): Move simplification step
21046         before various transformations/substitutions.
21048 2015-07-20  Mikhail Maltsev  <maltsevm@gmail.com>
21050         * wide-int.h (struct binary_traits): Fix partial specialization syntax.
21051         (struct int_traits): Likewise.
21053 2015-07-18  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21055         * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
21056         function to vmsdbgout_function_decl.
21058 2015-07-18  Uros Bizjak  <ubizjak@gmail.com>
21060         PR target/66922
21061         * config/i386/i386.c (ix86_expand_pextr): Reject extractions
21062         from misaligned positions.
21063         (ix86_expand_pinsr): Reject insertions to misaligned positions.
21065 2015-07-18  Sebastian Pop  <s.pop@samsung.com>
21067         PR middle-end/46851
21068         PR middle-end/60340
21069         * Makefile.in: Removed omega.o.
21070         * common.opt: Document flag fcheck-data-deps as deprecated.
21071         * doc/invoke.texi: Remove documentation for fcheck-data-deps and
21072         its associated params: omega-max-vars, omega-max-geqs,
21073         omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
21074         omega-max-keys, omega-eliminate-redundant-constraints.
21075         * doc/loop.texi: Remove all the section on Omega.
21076         * graphite-blocking.c: Include missing params.h: it used to be
21077         included through tree-data-ref.h and omega.h.
21078         * graphite-isl-ast-to-gimple.c: Same.
21079         * graphite-optimize-isl.c: Same.
21080         * graphite-sese-to-poly.c: Same.
21081         * graphite.c: Same.
21082         * omega.c: Remove.
21083         * omega.h: Remove.
21084         * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
21085         PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
21086         PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
21087         PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
21088         * passes.def: Remove pass_check_data_deps.
21089         * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
21090         (dump_conflict_function): Same.
21091         (dump_subscript): Same.
21092         (print_direction_vector): Same.
21093         (print_dir_vectors): Same.
21094         (print_lambda_vector): Same.
21095         (print_dist_vectors): Same.
21096         (dump_data_dependence_relation): Same.
21097         (dump_data_dependence_relations): Same.
21098         (dump_dist_dir_vectors): Same.
21099         (dump_ddrs): Same.
21100         (init_omega_eq_with_af): Removed.
21101         (omega_extract_distance_vectors): Removed.
21102         (omega_setup_subscript): Removed.
21103         (init_omega_for_ddr_1): Removed.
21104         (init_omega_for_ddr): Removed.
21105         (ddr_consistent_p): Removed.
21106         (compute_affine_dependence): Do not use omega to check data
21107         dependences.
21108         (compute_data_dependences_for_bb): Removed.
21109         (analyze_all_data_dependences): Removed.
21110         (tree_check_data_deps): Removed.
21111         * tree-data-ref.h: Do not include omega.h.
21112         (compute_data_dependences_for_bb): Removed.
21113         (tree_check_data_deps): Removed.
21114         * tree-ssa-loop.c (pass_check_data_deps): Removed.
21115         (make_pass_check_data_deps): Removed.
21116         * tree-ssa-phiopt.c: Include params.h.
21117         * tree-vect-data-refs.c: Same.
21118         * tree-vect-slp.c: Same.
21120 2015-07-18  Uros Bizjak  <ubizjak@gmail.com>
21122         * config/i386/i386.md (pushsf splitter): Pass curr_insn to
21123         find_constant_src.  FAIL if find_constant_src returns NULL_RTX.
21124         (mem->fpreg splitters): Ditto.
21125         (general_operand->nonimmediate_operand splitter): Use explicit modes.
21126         Disable DFmode for TARGET_64BIT.
21128 2015-07-17  H.J. Lu  <hongjiu.lu@intel.com>
21130         PR target/66906
21131         * config/i386/i386.c (ix86_expand_prologue): Replicate static
21132         chain on the stack.
21134 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
21136         * config/nvptx/mkoffload.c (process): Constify host data.
21137         * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
21138         Constify host data.
21139         (generate_host_descr_file): Likewise.
21141 2015-07-17  Aditya Kumar  <aditya.k7@samsung.com>
21142             Sebastian Pop  <s.pop@samsung.com>
21144         PR middle-end/61929
21145         * graphite-dependences.c (add_pdr_constraints): Renamed
21146         pdr->extent to pdr->subscript_sizes.
21147         * graphite-interchange.c (build_linearized_memory_access): Add
21148         back all gcc_assert's that the "isl_int to isl_val conversion"
21149         patch has removed.  Refactored.
21150         (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
21151         * graphite-poly.c (new_poly_dr): Same.
21152         (free_poly_dr): Same.
21153         * graphite-poly.h (struct poly_dr): Same.
21154         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
21155         all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
21156         * graphite-scop-detection.h: Fix space.
21157         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
21158         back all gcc_assert's removed by a previous patch.
21159         (wrap): Remove the_isl_ctx global variable that the same patch has
21160         added.
21161         (build_loop_iteration_domains): Same.
21162         (add_param_constraints): Same.
21163         (pdr_add_data_dimensions): Same.  Refactored.
21164         (build_poly_dr): Renamed extent to subscript_sizes.
21166 2015-07-17  Marek Polacek  <polacek@redhat.com>
21168         * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
21169         * match.pd: ... here.
21171 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
21173         * config/nvptx/mkoffload.c (process): Constify target data.
21174         * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
21175         Constify target data.
21176         (generate_target_offloadend_file): Likewise.
21178 2015-07-17  Yuri Rumyantsev  <ysrumyan@gmail.com>
21180         * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
21181         to allow renaming of PHI arguments on edges incoming from outer
21182         loop header, add corresponding check before start PHI iterator.
21183         (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
21184         variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
21185         with true force_vectorize.  Set-up dominator for outer loop too.
21186         Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
21187         (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
21188         was marked with force_vectorize and has restricted cfg.
21189         (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
21190         inner loop.
21191         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
21192         do peeling for outer loops.
21194 2015-07-17  Yvan Roux  <yvan.roux@linaro.org>
21195             Matthias Klose  <doko@ubuntu.com>
21197         * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
21198         build-sysroot, sysroot from the `Miscenalleous configure options' to
21199         the `Directories' section and strip trailing `/' from with_sysroot.
21200         (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
21201         * configure: Regenerated.
21203 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
21205         PR target/66824
21206         * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
21207         (TARGET_HARD_DF_REGS): Ditto.
21208         (TARGET_HARD_XF_REGS): Ditto.
21209         * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
21210         Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
21211         (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
21212         alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
21213         (*movsf_internal): Add alternatives 16 and 17. Enable
21214         alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
21216 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
21218         PR rtl-optimization/66891
21219         * calls.c (expand_call): Wrap precompute_register_parameters with
21220         NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
21222 2015-07-16  Nathan Sidwell  <nathan@codesourcery.com>
21224         * config/nvptx/mkoffload.c (process): Constify mapping variables.
21225         Define target data struct and initialize it.
21227 2015-07-16  Vladimir Makarov  <vmakarov@redhat.com>
21229         PR rtl-optimization/66626
21230         * ira.h (emit-rtl.h): Include.
21231         (non_spilled_static_chain_regno_p): New.
21232         * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
21233         unless it is non spilled static chain pseudo.
21234         (assign_hard_rego): Spill memory profitable allocno unless it is
21235         non spilled static chain pseudo.
21236         (allocno_spill_priority_compare): Put non spilled static chain
21237         pseudo at the end of sorted array.
21238         (improve_allocation): Do nothing if we have static chain and
21239         non-local goto.
21240         (allocno__priority_compare_func): Put non spilled static chain
21241         pseudo at the beginning of sorted array.
21242         (move_spill_restore): Ignore non spilled static chain pseudo.
21243         * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
21244         to non spilled static chain pseudo.
21245         * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
21246         pseudo at the beginning of sorted array.
21247         (spill_for): Spill non spilled static chain pseudo last.
21248         * lra-constraints.c (lra_constraints): Remove static chain pseudo
21249         check for equivalence.
21251 2015-07-16  Martin Liska  <mliska@suse.cz>
21253         PR ipa/66896.
21254         * ipa-prop.c (update_jump_functions_after_inlining): Create properly
21255         dst_ctx if it does not exist.
21257 2015-07-16  Martin Liska  <mliska@suse.cz>
21259         * hash-set.h (remove): New function.
21260         (iterator): New iteration class for hash_set.
21262 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
21264         * genattrtab.c (make_canonical): Add a file_location parameter.
21265         Use fatal_at rather than fatal.
21266         (get_attr_value): Likewise.  Update call to make_canonical.
21267         (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
21268         (make_internal_attr): Update calls accordingly.
21270 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
21272         * read-md.h (message_with_line, error_with_line): Delete.
21273         * read-md.c (message_with_line, error_with_line): Delete.
21274         * gensupport.h: Include read-md.h.
21275         (md_rtx_info): New structure.
21276         (read_md_rtx): Use it.  Return a bool success value.
21277         * gensupport.c (read_md_rtx): Likewise.
21278         * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
21279         (main): Update after interface changes.
21280         * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
21281         (main): Update after interface changes.
21282         * genattrtab.c (insn_code_number): Delete.
21283         (optimize_attrs): Add a max_insn_code parameter and use it instead
21284         of insn_code_number.
21285         (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
21286         Use *_at rather than *_with_line functions.
21287         (gen_insn): Likewise.
21288         (gen_delay): Likewise.
21289         (gen_insn_reserv): Likewise.
21290         (gen_bypass): Take an md_rtx_info rather than an rtx.
21291         (main): Update after interface changes.  Use a local max_insn_code
21292         variable instead of insn_code_number.
21293         * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
21294         an rtx.  Use fatal_at rather than fatal.
21295         (gen_query_cpu_unit, gen_bypass, gen_excl_set)
21296         (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
21297         (gen_absence_set, gen_final_absence_set, gen_automaton)
21298         (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
21299         (main): Update after interface changes.
21300         * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
21301         and code number.
21302         (main): Update after interface changes.
21303         * genconditions.c (main): Use new read_md_rtx interface.
21304         * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
21305         (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
21306         (main): Update after interface changes.
21307         * genemit.c (insn_code_number, insn_index_number): Delete.
21308         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
21309         Use fatal_at rather than fatal.
21310         (gen_expand): Take an md_rtx_info rather than an rtx.  Use fatal_at
21311         rather than fatal.
21312         (gen_split): Likewise.
21313         (main): Update after interface changes.
21314         * genextract.c (line_no): Delete.
21315         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
21316         Update call to walk_rtx.
21317         (VEC_safe_set_locstr): Add an md_rtx_info argument.  Use message_at
21318         rather than message_with_line.
21319         (walk_rtx): Add an md_rtx_info argument.  Update call to
21320         VEC_safe_set_locstr.
21321         (main): Update after interface changes.
21322         * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
21323         and lineno.  Use error_at rather than separate message_with_line
21324         calls and have_error assignments.
21325         (main): Update after interface changes.
21326         * genmddump.c (main): Use new read_md_rtx interface.
21327         * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
21328         (main): Update after interface changes.
21329         * genoutput.c (next_code_number): Delete.
21330         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
21331         (gen_peephole, gen_expand, gen_split): Likewise.
21332         (note_constraint): Likewise.  Use *_at rather than *_with_line
21333         functions.
21334         (main): Update after interface changes.
21335         * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
21336         rtx and lineno.
21337         (main): Update after interface changes.
21338         * genpreds.c (process_define_predicate): Take an md_rtx_info rather
21339         than an rtx and lineno.
21340         (process_define_constraint): Likewise.
21341         (process_define_register_constraint): Likewise.
21342         (main): Update after interface changes.
21343         * genrecog.c (next_insn_code, pattern_lineno): Delete.
21344         (validate_pattern): Replace top-level rtx with an md_rtx_info.
21345         Use *_at rather than *_with_line functions.
21346         (match_pattern_2): Likewise.
21347         (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
21348         (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
21349         Use *_at rather than *_with_line functions.
21350         * gentarget-def.c (add_insn): New function.
21351         (main): Use it.  Use new read_md_rtx interface.
21353 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
21355         * gensupport.h (compute_test_codes): Take a file_location rather
21356         than a line number.
21357         * gensupport.c (compute_test_codes): Likewise.  Use *_at functions
21358         rather than *_with_line functions.
21359         (process_define_predicate): Update call to compute_test_codes.
21360         * genpreds.c (validate_exp): Take a file_location rather than a
21361         line number.  Use *_at functions rather than *_with_line functions.
21362         (process_define_predicate): Update call to validate_exp.
21363         (constraint_data): Replace lineno field with a file_location.
21364         (add_constraint): Take a file_location rather than a line number.
21365         Use *_at functions rather than *_with_line functions.  Fix error
21366         message for address constraints.  Update after changes to
21367         validate_exp, constraint_data and compute_test_codes.
21368         (process_define_constraint): Update accordingly.
21369         (process_define_register_constraint): Likewise.
21371 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
21373         * genoutput.c (data): Use a file_location to record the source
21374         position.
21375         (nothing): Delete.
21376         (idata, idata_end): Remove initialization.
21377         (constraint_data): Replace lineno with a file_location.
21378         (output_insn_data): Update after changes to data.
21379         (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
21380         (scan_operands): Likewise, using *_at rather than *_with_line
21381         functions.
21382         (process_template): Likewise.
21383         (validate_insn_alternatives): Likewise.
21384         (validate_insn_operands): Likewise.
21385         (validate_optab_operands): Likewise.
21386         (init_insn_for_nothing): Initialize idata and idata_end.
21387         (note_constraint): Update after changes to constraint_data,
21388         using at rather than with_line functions.
21389         (mdep_constraint_len): Take a file_location rather than a
21390         line number.  Use at rather than with_line functions.
21392 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
21394         * read-md.h (fatal_at): Declare.
21395         * read-md.c (fatal_at): New function.
21396         * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
21397         to record the source position.
21398         (check_attr_test): Take a file_location instead of a line number.
21399         Use fatal_at instead of fatal.
21400         (check_attr_value): Update after above changes, using "at"
21401         rather than "with_line" reporting functions.
21402         (convert_set_attr_alternative): Likewise.
21403         (gen_attr): Likewise.
21404         (check_defs): Likewise.  Don't assign to read_md_filename.
21405         (gen_insn): Update initialization after above changes.
21406         (gen_delay): Likewise.
21407         (write_insn_cases): Print the filename for a define_peephole.
21408         (gen_insn_reserv): Take a line number as argument and update
21409         the call to check_attr_test.
21410         (main): Pass a line number to gen_insn_reserv.
21412 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
21414         * read-md.h (file_location): New structure.
21415         (directive_handler_t): Take a file_location rather than a line number.
21416         (message_at, error_at): Declare.
21417         (read_skip_construct): Delete.
21418         * read-md.c (message_with_line_1): Replace with...
21419         (message_at_1): ...this new function.
21420         (message_at, error_at): New functions.
21421         (message_with_line, error_with_line): Update to use message_at_1.
21422         (handle_enum): Take a file_location rather than a line number
21423         and use error_at for error reporting.
21424         (handle_include): Likewise.
21425         (read_skip_construct): Likewise.  Make static.
21426         (handle_file): Update after above changes.  Pass a file_location
21427         rather than a line number to handle_directive.
21428         * gensupport.c (queue_elem): Replace separate filename and lineno
21429         with a file_location.
21430         (queue_pattern): Replace filename and lineno arguments with a
21431         file_location.  Update after change to queue_elem.
21432         (process_define_predicate): Replace lineno argument with a
21433         file_location and use error_at for error reporting.  Update
21434         after above changes.
21435         (process_rtx): Likewise.
21436         (subst_pattern_match): Likewise.
21437         (get_alternatives_number): Likewise.
21438         (alter_predicate_for_insn): Likewise.
21439         (rtx_handle_directive): Likewise.
21440         (is_predicable): Update after above changes, using error_at rather
21441         than error_with_line.
21442         (has_subst_attribute): Likewise.
21443         (identify_predicable_attribute): Likewise.
21444         (alter_attrs_for_subst_insn): Likewise.
21445         (process_one_cond_exec): Likewise.
21446         (process_substs_on_one_elem): Likewise.
21447         (process_define_subst): Likewise.
21448         (check_define_attr_duplicates): Likewise.
21449         (read_md_rtx): Update after change to queue_elem.
21451 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
21453         * genoutput.c (next_index_number): Delete.
21454         (data): Remove index_number.
21455         (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
21456         (main): Remove manipulation of next_index_number.
21458 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
21460         * genattrtab.c (check_attr_value): Remove handling of null attrs.
21461         (make_canonical): Likewise.
21463 2015-07-16  Eric Botcazou  <ebotcazou@adacore.com>
21465         * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
21466         instead of adjust_address_nv.
21467         (restore_stack_nonlocal): Likewise.
21468         (nonlocal_goto): Likewise.
21470 2015-07-16  Tom de Vries  <tom@codesourcery.com>
21472         * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
21473         not have a corresponding loop header phi.
21475 2015-07-16  Tom de Vries  <tom@codesourcery.com>
21477         * tree-parloops.c (create_loads_for_reductions): Handle case that
21478         reduction is unused.
21480 2015-07-16  Richard Biener  <rguenther@suse.de>
21482         PR tree-optimization/66894
21483         * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
21484         about deriving NE_EXPR from truncated values.
21486 2015-07-16  Martin Liska  <mliska@suse.cz>
21488         * alloc-pool.h
21489         (object_allocator): Add new class.
21490         (pool_allocator::initialize): Use the underlying class.
21491         (pool_allocator::allocate): Likewise.
21492         (pool_allocator::remove): Likewise.
21493         (operator new): A new generic allocator.
21494         * asan.c (struct asan_mem_ref): Remove unused members.
21495         (asan_mem_ref_new): Replace new operator with
21496         object_allocator::allocate.
21497         (free_mem_ref_resources): Change deallocation.
21498         * cfg.c (initialize_original_copy_tables): Replace pool_allocator
21499         with object_allocator.
21500         * config/sh/sh.c (add_constant): Replace new operator with
21501         object_allocator::allocate.
21502         (sh_reorg): Change call to a release method.
21503         * cselib.c (struct elt_list): Remove unused members.
21504         (new_elt_list): Replace new operator with
21505         object_allocator::allocate.
21506         (new_elt_loc_list): Likewise.
21507         (new_cselib_val): Likewise.
21508         (unchain_one_elt_list): Change delete operator with remove method.
21509         (unchain_one_elt_loc_list): Likewise.
21510         (unchain_one_value): Likewise.
21511         (cselib_finish): Release newly added static allocators.
21512         * cselib.h (struct cselib_val): Remove unused members.
21513         (struct elt_loc_list): Likewise.
21514         * df-problems.c (df_chain_alloc): Replace pool_allocator with
21515         object_allocator.
21516         * df-scan.c (struct df_scan_problem_data): Likewise.
21517         (df_scan_alloc): Likewise.
21518         * df.h (struct dataflow): Likewise.
21519         * dse.c (struct read_info_type): Likewise.
21520         (struct insn_info_type): Likewise.
21521         (struct dse_bb_info_type): Likewise.
21522         (struct group_info): Likewise.
21523         (struct deferred_change): Likewise.
21524         (get_group_info): Likewise.
21525         (delete_dead_store_insn): Likewise.
21526         (free_read_records): Likewise.
21527         (replace_read): Likewise.
21528         (check_mem_read_rtx): Likewise.
21529         (scan_insn): Likewise.
21530         (dse_step1): Likewise.
21531         (dse_step7): Likewise.
21532         * et-forest.c (struct et_occ): Remove unused members.
21533         (et_new_occ): Use allocate instead of new operator.
21534         (et_new_tree): Likewise.
21535         (et_free_tree): Call release method explicitly.
21536         (et_free_tree_force): Likewise.
21537         (et_free_pools): Likewise.
21538         (et_split): Use remove instead of delete operator.
21539         * et-forest.h (struct et_node): Remove unused members.
21540         * ipa-cp.c: Change pool_allocator to object_allocator.
21541         * ipa-inline-analysis.c: Likewise.
21542         * ipa-profile.c: Likewise.
21543         * ipa-prop.c: Likewise.
21544         * ipa-prop.h: Likewise.
21545         * ira-build.c (initiate_cost_vectors): Cast return value.
21546         (ira_allocate_cost_vector): Likewise.
21547         * ira-color.c (struct update_cost_record): Remove unused members.
21548         * lra-int.h (struct lra_live_range): Likewise.
21549         (struct lra_copy): Likewise.
21550         (struct lra_insn_reg): Likewise.
21551         * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
21552         * lra.c (new_insn_reg): Replace new operator with allocate method.
21553         (free_insn_regs): Same for operator delete.
21554         (finish_insn_regs): Release new static allocator.
21555         (finish_insn_recog_data): Likewise.
21556         (lra_free_copies): Replace delete operator with remove method.
21557         (lra_create_copy): Replace operator new with allocate method.
21558         (invalidate_insn_data_regno_info): Same for remove method.
21559         * regcprop.c (struct queued_debug_insn_change): Remove unused members.
21560         (free_debug_insn_changes): Replace delete operator with remove method.
21561         (replace_oldest_value_reg): Replace operator new with allocate method.
21562         (pass_cprop_hardreg::execute): Release new static variable.
21563         * sched-deps.c (sched_deps_init): Change pool_allocator to
21564         object_allocator.
21565         * sel-sched-ir.c: Likewise.
21566         * sel-sched-ir.h: Likewise.
21567         * stmt.c (expand_case): Likewise.
21568         (expand_sjlj_dispatch_table): Likewise.
21569         * tree-sra.c (struct access): Remove unused members.
21570         (struct assign_link): Likewise.
21571         (sra_deinitialize): Release newly added static pools.
21572         (create_access_1):Replace operator new with allocate method.
21573         (build_accesses_from_assign): Likewise.
21574         (create_artificial_child_access): Likewise.
21575         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
21576         pool_allocator to object_allocator.
21577         * tree-ssa-pre.c: Likewise.
21578         * tree-ssa-reassoc.c: Likewise.
21579         * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
21580         * tree-ssa-strlen.c: Likewise.
21581         * tree-ssa-structalias.c: Likewise.
21582         * var-tracking.c (onepart_pool_allocate): New function.
21583         (unshare_variable): Use the newly added function.
21584         (variable_merge_over_cur): Likewise.
21585         (variable_from_dropped): Likewise.
21586         (variable_was_changed): Likewise.
21587         (set_slot_part): Likewise.
21588         (emit_notes_for_differences_1): Likewise.
21589         (vt_finalize): Release newly added static pools.
21591 2015-07-16  Martin Jambor  <mjambor@suse.cz>
21593         * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status.  Adjust
21594         all uses.  Fix two typos in its general comment.
21595         (func_body_info): Rename to ipa_func_body_info.  Adjust all uses.
21597 2015-07-16  Ilya Enkovich  <enkovich.gnu@gmail.com>
21599         * config/i386/linux-common.h (LINK_MPX): New.
21600         (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
21601         * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
21602         indicating '-z bndplt' support by linker.
21603         * configure: Regenerate.
21604         * config.in: Regenerate.
21606 2015-07-16  Richard Biener  <rguenther@suse.de>
21608         * fold-const.c (fold_widened_comparison): Remove.
21609         (fold_sign_changed_comparison): Likewise.
21610         (fold_comparison): Move widened and sign-changed comparison
21611         simplification ...
21612         * match.pd: ... to patterns here.
21613         * generic-match-head.c: Include target.h.
21614         * gimple-match-head.c: Likewise.
21616 2015-07-16  Richard Biener  <rguenther@suse.de>
21618         * tree-ssa-dom.c (dom_valueize): New function.
21619         (record_temporary_equivalences): Also record equivalences
21620         for dominating stmts that have uses of equivalences we are
21621         about to record.
21623 2015-07-16  Bin Cheng  <bin.cheng@arm.com>
21625         * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
21626         add_autoinc_candidates.
21627         (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
21628         (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
21629         (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
21630         (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
21631         Call new function.
21632         (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
21633         (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
21634         Remove parameter struct iv*.  Call add_autoinc_candidates here.
21635         (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
21636         (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
21637         Call new function.
21638         (find_iv_candidates): Call new functions.
21640 2015-07-16  Sandra Loosemore  <sandra@codesourcery.com>
21642         * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
21643         uninitialized-variable warning.
21645 2015-07-16  Kaz Kojima  <kkojima@gcc.gnu.org>
21647         PR target/65249
21648         * config/sh/sh.md (movdi): Split simple reg move to two movsi
21649         when the destination is R0.
21651 2015-07-16  Uros Bizjak  <ubizjak@gmail.com>
21653         PR target/66866
21654         * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
21655         * config/i386/i386.c (ix86_expand_pextr): New function.
21656         (ix86_expand_pinsr): Handle V1TI and TI modes.  Call ix86_expand_pextr
21657         for non-lowpart subregs.
21658         * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
21659         (insv<mode>): Use SWI248 mode iterator.
21660         (insv<mode>_1): Ditto.
21662 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
21663             Sebastian Pop  <s.pop@samsung.com>
21665         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
21666         iterator to use_stmt.
21668 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
21669             Sebastian Pop <s.pop@samsung.com>
21671         * graphite-scop-detection.c (build_scops_1): Discard scops for
21672         which entry==exit.
21674 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
21675             Sebastian Pop <s.pop@samsung.com>
21677         * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
21678         case of a return statement in scop.
21680 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
21681             Sebastian Pop <s.pop@samsung.com>
21683         * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
21684         INTEGER_TYPE parameters.
21685         (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
21686         VECTOR_CST in scan_tree_for_params.
21687         (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
21689 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
21691         * gimple-pretty-print.h: Don't include pretty-print.h.
21692         * tree-streamer.h: Don't include lto-streamer.h.
21693         * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
21694         * gimple-streamer-in.c: Remove redundant includes.
21695         * gimple-streamer-out.c: Likewise.
21696         * ipa-devirt.c: Likewise.
21697         * ipa-icf.c: Likewise.
21698         * ipa-inline-analysis.c: Likewise.
21699         * ipa-polymorphic-call.c: Likewise.
21700         * ipa-profile.c: Likewise.
21701         * ipa-prop.c: Likewise.
21702         * ipa-pure-const.c: Likewise.
21703         * lto-cgraph.c: Likewise.
21704         * lto-streamer-in.c: Likewise.
21705         * lto-streamer-out.c: Likewise.
21706         * lto-streamer.c: Likewise.
21707         * tree-streamer-in.c: Likewise.
21708         * tree-streamer-out.c: Likewise.
21709         * tree-streamer.c: Likewise.
21711 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
21713         * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
21714         include input.h.
21715         * opts.c: Remove multiline #include comment.
21717 2015-07-15  Nathan Sidwell  <nathan@codesourcery.com>
21719         * config/nvptx/mkoffload.c (process): Add C++ protection to
21720         emitted code.
21722 2015-07-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
21724         PR target/66854
21725         * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
21726         null before IEEE 128-bit floating point support patch.
21728 2015-07-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
21730         * simplify-rtx.c (simplify_ternary_operation): Add simplification
21731         for (!c) != {0,...,0} ? a : b for vector modes.
21733 2015-07-15  Paolo Bonzini  <bonzini@gnu.org>
21734             Martin Jambor  <mjambor@suse.cz>
21736         * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
21737         struct func_body_info* instead of struct ipa_node_params*, expecting
21738         fbi->info to be filled in.  Replace throughout.  Adjust call to
21739         ipa_load_from_parm_agg.
21740         (set_cond_stmt_execution_predicate): Accept struct func_body_info*
21741         instead of struct ipa_node_params*.  Adjust calls to other functions
21742         so that they pass either fbi or fbi->info.
21743         (set_switch_stmt_execution_predicate): Likewise.
21744         (will_be_nonconstant_predicate): Likewise.
21745         (compute_bb_predicates): Likewise.
21746         (estimate_function_body_sizes): Move asserts earlier.  Fill in
21747         struct func_body_info, replace parms_info with fbi.info.  Adjust
21748         calls to functions that now accept struct func_body_info.
21749         * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
21750         (struct func_body_info): Likewise.
21751         (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
21752         remove static.  Adjust callers.
21753         (ipa_load_from_parm_agg): Remove.
21754         * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
21755         (func_body_info): Likewise.
21756         (ipa_load_from_parm_agg): Adjust prototype.
21758 2015-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21760         * gensupport.c (rtx_handle_directive): Adjust.
21761         * read-rtl.c (apply_iterators): Take vector to add rtxs to
21762         instead of expr list rtx.
21763         (add_define_attr_for_define_subst): Likewise.
21764         (add_define_subst_attr): Likewise.
21765         (read_subst_mapping): Likewise.
21766         (read_rtx): Likewise.
21767         * rtl.h (read_rtx): Adjust.
21769 2015-07-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21771         * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
21773 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
21775         PR target/58066
21776         * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
21777         (*tls_local_dynamic_base_64_<mode>): Ditto.
21778         (*tls_local_dynamic_base_64_largepic): Ditto.
21779         (tls_global_dynamic_64_<mode>): Update expander pattern.
21780         (tls_local_dynamic_base_64_<mode>): Ditto.
21782 2015-07-15  Richard Biener  <rguenther@suse.de>
21784         * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
21785         and bool_var == 1 -> bool_var simplifications ...
21786         * match.pd: ... to patterns here.  Factor out negate_expr_p
21787         cases from the A - B -> A + (-B) patterns as negate_expr_p
21788         predicate and add a -(A + B) -> (-B) - A pattern.
21790 2015-07-15  Robert Suchanek  <robert.suchanek@imgtec.com>
21792         * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
21794 2015-07-15  Matthew Fortune  <matthew.fortune@imgtec.com>
21795             Robert Suchanek  <robert.suchanek@imgtec.com>
21797         * config/mips/mips.c (mips_int_mask): New enum.
21798         (mips_shadow_set): Likewise.
21799         (int_mask): New variable.
21800         (use_shadow_register_set_p): Change type to enum mips_shadow_set.
21801         (machine_function): Add int_mask and use_shadow_register_set.
21802         (mips_attribute_table): Add attribute handlers for interrupt and
21803         use_shadow_register_set.
21804         (mips_interrupt_mask): New static function.
21805         (mips_handle_interrupt_attr): Likewise.
21806         (mips_handle_use_shadow_register_set_attr): Likewise.
21807         (mips_use_shadow_register_set): Change return type to enum
21808         mips_shadow_set.  Add argument handling for use_shadow_register_set
21809         attribute.
21810         (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
21811         compare with mips_shadow_set enum.
21812         (mips_compute_frame_info): Add interrupt mask and
21813         use_shadow_register_set to per-function information structure.
21814         Add a stack slot for EPC unconditionally.
21815         (mips_expand_prologue): Compare use_shadow_register_set value
21816         with mips_shadow_set enum.  Save EPC always in K1, clobber only K1 for
21817         masked interrupt register but in EIC mode use K0 and save Cause in K0.
21818         EPC saved and restored unconditionally.  Use PMODE_INSN macro when
21819         copying the stack pointer from the shadow register set.
21820         * config/mips/mips.h (SR_IM0): New define.
21821         * config/mips/mips.md (mips_rdpgpr): Rename to...
21822         (mips_rdpgpr_<mode>): ...this.  Use the Pmode iterator.
21823         * doc/extend.texi (Declaring Attributes of Functions): Document
21824         optional arguments for interrupt and use_shadow_register_set
21825         attributes.
21827 2015-07-15  Robert Suchanek  <robert.suchanek@imgtec.com>
21829         * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
21830         interrupt attribute.
21831         (mips_expand_prologue): Disable the floating point unit in an ISR.
21832         * config/mips/mips.h (SR_COP1): New define.
21834 2015-07-15  Richard Biener  <rguenther@suse.de>
21836         * genmatch.c (parser::peek, parser::peek_ident): Add argument
21837         to tell how many tokens to peek ahead (default 1).
21838         (parser::eat_token, parser::eat_ident): Return token consumed.
21839         (parser::parse_result): Parse new switch statement.
21840         * match.pd: Use case statements where appropriate.
21842 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
21844         PR rtl-optimization/58066
21845         * calls.c (expand_call): Precompute register parameters before stack
21846         alignment is performed.
21848 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
21850         PR rtl-optimization/66838
21851         * postreload.c (reload_cse_move2add): Also process
21852         CALL_INSN_FUNCTION_USAGE when resetting information of
21853         call-clobbered registers.
21855 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
21856             Cesar Philippidis  <cesar@codesourcery.com>
21857             Chung-Lin Tang  <cltang@codesourcery.com>
21859         * config/nios2/constraints.md (U, v): New constraints.
21860         * config/nios2/predicates.md (rdprs_dcache_operand): New.
21861         (ldstex_memory_operand): New.
21862         * config/nios2/sync.md: New file.
21863         * config/nios2/nios2.md (unspecv): Add new builtin function
21864         UNSPECV codes.
21865         (rdprs, flushd, flushda, wrpie, eni): New patterns.
21866         (top-level): Include sync.md.
21867         * config/nios2/nios2.c (N2_FTYPES): Add function types for
21868         new builtins.
21869         (N2_BUILTINS): Add arch field setting, add new builtins.
21870         (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
21871         for arch field.
21872         (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
21873         Also handle ldex/stex/ldsex/stsex builtins.
21874         (nios2_expand_rdprs_builtin): New function.
21875         (nios2_expand_cache_builtin): New function.
21876         (nios2_expand_wrpie_builtin): New function.
21877         (nios2_expand_eni_builtin): New function.
21878         (nios2_expand_builtin): Add arch field handling and new builtin
21879         cases.
21880         * doc/extend.texi (Altera Nios II Built-in Functions): Document
21881         new builtins.
21882         * doc/md.texi (Machine Constraints): Document U and v constraints.
21884 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
21885             Cesar Philippidis  <cesar@codesourcery.com>
21886             Chung-Lin Tang  <cltang@codesourcery.com>
21888         * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
21889         * config/nios2/nios2.c (struct GTY (()) machine_function): Add
21890         callee_save_reg_size and uses_anonymous_args fields.
21891         (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
21892         (nios2_create_cfa_notes): New function.
21893         (nios2_adjust_stack): New function for adjusting stack.
21894         (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
21895         Use nios2_adjust_stack.
21896         (nios2_expand_epilogue): Likewise.
21897         (nios2_expand_return): New function.
21898         (nios2_can_use_return_insn): Update for CDX pop.n usage.
21899         (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
21900         If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
21901         * config/nios2/nios2.md (return): Use nios2_expand_return.
21903 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
21904             Cesar Philippidis  <cesar@codesourcery.com>
21905             Chung-Lin Tang  <cltang@codesourcery.com>
21907         * config/nios2/predicates.md (pop_operation): New.
21908         (ldwm_operation, stwm_operation): New.
21909         (nios2_hard_register_operand): New.
21910         * config/nios2/nios2-protos.h (pop_operation_p): Declare.
21911         (ldstwm_operation_p): Declare.
21912         (gen_ldstwm_peep): Declare.
21913         * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
21914         (base_reg_adjustment_p): New.
21915         (pop_operation_p): New.
21916         (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
21917         (nios2_ldstwm_regset_p): New.
21918         (ldstwm_operation_p): New.
21919         (gen_ldst): New.
21920         (nios2_ldst_parallel): New.
21921         (struct ldswm_operand): Declare.
21922         (compare_ldstwm_operands): New.
21923         (can_use_cdx_ldstw): New.
21924         (gen_ldstwm_peep): New.
21925         * config/nios2/nios2-ldstwm.sml: New.
21926         * config/nios2/nios2.md: Include ldstwm.md.
21927         * config/nios2/ldstwm.md: Generated.
21929 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
21930             Cesar Philippidis  <cesar@codesourcery.com>
21931             Chung-Lin Tang  <cltang@codesourcery.com>
21933         * config/nios2/nios2.h (LABEL_ALIGN): Define.
21934         (REG_ALLOC_ORDER): Define.
21935         (ADJUST_REG_ALLOC_ORDER): Define.
21936         (HONOR_REG_ALLOC_ORDER): Define.
21937         (CDX_REG_P): Define.
21938         (ANDCLEAR_INT): Define.
21939         * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
21940         (nios2_label_align): Declare.
21941         (nios2_cdx_narrow_form_p): Declare.
21942         (nios2_adjust_reg_alloc_order): Declare.
21943         * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
21944         operation.
21945         (nios2_large_unspec_reloc_p): New function, split from...
21946         (nios2_legitimate_pic_operand_p): ...here.
21947         (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
21948         (nios2_print_operand_punct_valid_p): New.
21949         (nios2_print_operand): Add %., %!, %x, %y, %A.  Remove %U.
21950         (split_mem_address): New.
21951         (split_alu_insn): New.
21952         (cdxreg): New.
21953         (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
21954         (enum nios2_add_insn_kind): New.
21955         (nios2_add_insn_names, nios2_add_insn_narrow): New.
21956         (nios2_add_insn_classify): New.
21957         (nios2_add_insn_asm): New.
21958         (nios2_cdx_narrow_form_p): New.
21959         (label_align, min_labelno, max_labelno): New.
21960         (nios2_reorg): New.
21961         (nios2_label_align): New.
21962         (nios2_adjust_reg_alloc_order): New.
21963         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
21964         (TARGET_MACHINE_DEPENDENT_REORG): Define.
21965         * config/nios2/constraints.md (P): New constraint.
21966         * config/nios2/predicates.md (const_and_operand): New.
21967         (and_operand): New.
21968         (stack_memory_operand): New.
21969         * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
21970         (length): Update to use nios2_cdx_narrow_form_p().
21971         (type): Add new insn type values.
21972         (control, alu, st, ld, shift): Update insn reservations with
21973         new insn type values.
21974         (*high, *lo_sum): Define new insn patterns for constant generation.
21975         (movqi_internal, movhi_internal, movsi_internal): Reduce
21976         alternatives, update asm template to handle CDX variants, update
21977         type attributes.
21978         (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
21979         template, update type attributes.
21980         (extendhisi2, extendqi<mode>2): Likewise.
21981         (addsi3): Change to use function for asm string.
21982         (subsi3): Add CDX notation to asm template, update type attributes.
21983         (negsi3, one_cmplsi3): Likewise.
21984         (andsi3): New pattern, specialized from logical patterns.
21985         (<code>si3): Remove and case, combine alternatives, update asm
21986         template.
21987         (<shift_op>si3): Add CDX notation, update type attributes.
21988         (rotrsi3): Update type attribute.
21989         (*merge, extzv, insv): New insn patterns.
21990         (return): Change to define_expand.
21991         (simple_return): Add CDX notation, update type attributes.
21992         (indirect_jump): Add CDX notation.
21993         (jump): Update asm cases, update length attribute expression.
21994         (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
21995         (nios2_cbranch): Update asm cases and length attribute expression
21996         to handle CDX variants.
21997         (nios2_cmp<code>): Update asm template.
21998         (nop): Add CDX notation, update type attributes.
21999         (trap): Add CDX notation.
22000         (ctrapsi4): Update asm cases and length attribute expression to
22001         handle CDX variant.
22002         * doc/md.texi (Machine Constraints): Document P constraint.
22004 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
22005             Cesar Philippidis  <cesar@codesourcery.com>
22006             Chung-Lin Tang  <cltang@codesourcery.com>
22008         * config/nios2/nios2.h (SMALL_INT12): New macro.
22009         * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
22010         (nios2_valid_addr_expr_p): Use it.
22011         (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
22012         with implicit "io" instructions on R2.
22013         * config/nios2/constraints.md (w): New constraint.
22014         * config/nios2/predicates.md (ldstio_memory_operand): New.
22015         * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
22016         operand predicate and constraint.
22017         (ld<bh>io_signed, st<bhw>io>): Likewise.
22018         * doc/md.texi (Machine Constraints): Document w constraint.
22020 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
22021             Cesar Philippidis  <cesar@codesourcery.com>
22022             Chung-Lin Tang  <cltang@codesourcery.com>
22024         * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
22025         * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
22026         Nios II architecture level.
22027         * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
22028         (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
22029         (OPTION_DEFAULT_SPECS): Define.
22030         (ASM_SPEC): Add -march= spec strings.
22031         * config/nios2/nios2.c (nios2_option_override): Check for
22032         conflicts involving new options.
22033         * config.gcc (nios2*-*-*): Support --with-arch=.
22034         * doc/invoke.texi (Option Summary, Nios II Options): Document
22035         -march=, -mbmx, and -mcdx.
22037 2015-07-14  Vladimir Makarov  <vmakarov@redhat.com>
22039         PR rtl-optimization/66626
22040         * lra-constraints.c (lra_constraints): Prevent equivalence
22041         substitution for static chain pseudo in functions with nonlocal
22042         goto.
22044 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
22046         * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
22047         (nios2_emit_stack_limit_check): Add size parameter.  Handle
22048         -fstack-limit-symbol as well as -fstack-limit-register.
22049         (nios2_expand_prologue): Emit only a single stack limit check,
22050         even if multiple stack adjustments are required.
22051         (nios2_option_override): Diagnose unsupported combination of -fpic
22052         and -stack-limit-symbol.
22054 2015-07-14  H.J. Lu  <hongjiu.lu@intel.com>
22056         * Makefile.in (top_srcdir): New.
22057         * configure.ac: Use AM_ZLIB.
22058         * configure: Regeneated.
22060 2015-07-14  Matthias Klose  <doko@ubuntu.com>
22062         PR target/66840
22063         * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
22065 2015-07-14  Richard Biener  <rguenther@suse.de>
22067         PR tree-optimization/66863
22068         * tree-vrp.c (register_edge_assert_for_2): Properly restrict
22069         what we record for conversion use stmt lhs inequalities.
22071 2015-07-14  Richard Biener  <rguenther@suse.de>
22073         * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
22074         (decision_tree::gen_gimple): Likewise.
22076 2015-07-14  Tom de Vries  <tom@codesourcery.com>
22078         * gcc.c (greater_than_spec_func): Declare forward.
22079         (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
22080         -ftree-parallelize-loops={0,1}.
22081         (static_spec_functions): Add greater_than_spec_func function with name
22082         "gt".
22083         (greater_than_spec_func): New function.
22085 2015-07-14  Richard Biener  <rguenther@suse.de>
22087         * tree-ssa-dom.c (record_temporary_equivalences): Merge
22088         wideing type conversion case from record_equivalences_from_incoming_edge
22089         and use record_equality to record equivalences.
22090         (record_equivalences_from_incoming_edge): Call
22091         record_temporary_equivalences.
22093 2015-07-14  Richard Biener  <rguenther@suse.de>
22095         * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
22096         (struct if_expr): New.
22097         (struct with_expr): Likewise.
22098         (is_a_helper): Add helpers for if_expr and with_expr.
22099         (struct simplify): Add simplify_kind enum and member.  Remove
22100         ifexpr_vec member.
22101         (simplify::simplify): Adjust.
22102         (lower_commutative): Adjust.
22103         (lower_opt_convert): Likewise.
22104         (lower_cond): Likewise.
22105         (replace_id): Handle with_expr and if_expr.
22106         (lower_for): Adjust.
22107         (dt_simplify::gen_1): New recursive worker, split out from ...
22108         (dt_simplify::gen): ... here.  Deal with if and with expansion
22109         recursively.
22110         (capture_info::capture_info): Take context argument
22111         (capture_info::walk_result): Only analyze specific result.
22112         (parser::parse_result): New function.
22113         (parser::parse_simplify): Adjust to parse ifs with then end
22114         else case.
22115         (parser::parse_if): Simplify.
22116         (parser::parse_pattern): Pass down simplify kind.
22117         * match.pd: Convert if structure to new syntax.
22119 2015-07-13  Marek Polacek  <polacek@redhat.com>
22121         * rtl.c (rtx_equal_p_cb): Fix typo.
22123 2015-07-13  Andrew MacLeod  <amacleod@redhat.com>
22125         * omega.h: Don't include config.h, don't include params.h again if
22126         omega.h has already been included.
22127         * graphite-poly.h: Include sese.h.
22128         * graphite.c: Don't include sese.h, remove needless includes and
22129         minimize includes outside #ifdef HAVE_isl block.
22130         * graphite-blocking.c: Don't include sese.h, remove needless includes,
22131         and wrap entire file in #ifdef HAVE_isl
22132         * graphite-dependences.c: Likewise.
22133         * graphite-interchange.c: Likewise.
22134         * graphite-isl-ast-to-gimple.c: Likewise.
22135         * graphite-optimize-isl.c: Likewise.
22136         * graphite-poly.c: Likewise.
22137         * graphite-scop-detection.c: Likewise.
22138         * graphite-sese-to-poly.c: Likewise.
22140 2015-07-13  Tom de Vries  <tom@codesourcery.com>
22142         * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
22144 2015-07-13  Renlin Li  <renlin.li@arm.com>
22146         PR rtl/66556
22147         * simplify-rtx.c (simplify_const_relational_operation): Add
22148         side_effects_p checks.
22150 2015-07-12  Aldy Hernandez  <aldyh@redhat.com>
22152         * bitmap.h: Fix double word typos.
22153         * builtins.c: Same.
22154         * calls.c: Same.
22155         * cfgloopmanip.c: Same.
22156         * cgraph.c: Same.
22157         * cgraph.h: Same.
22158         * cgraphclones.c: Same.
22159         * combine.c: Same.
22160         * config/aarch64/aarch64-protos.h: Same.
22161         * config/aarch64/aarch64.c: Same.
22162         * config/aarch64/aarch64.md: Same.
22163         * config/arm/arm.md: Same.
22164         * config/arm/arm1020e.md: Same.
22165         * config/arm/arm1026ejs.md: Same.
22166         * config/arm/arm926ejs.md: Same.
22167         * config/arm/fa526.md: Same.
22168         * config/arm/fa606te.md: Same.
22169         * config/arm/fa626te.md: Same.
22170         * config/arm/fa726te.md: Same.
22171         * config/arm/fmp626.md: Same.
22172         * config/darwin.c: Same.
22173         * config/epiphany/epiphany.c: Same.
22174         * config/frv/frv.c: Same.
22175         * config/ft32/ft32.c: Same.
22176         * config/gnu-user.h: Same.
22177         * config/h8300/constraints.md: Same.
22178         * config/i386/i386.c: Same.
22179         * config/i386/i386.md: Same.
22180         * config/iq2000/iq2000.md: Same.
22181         * config/mips/mips.c: Same.
22182         * config/mmix/mmix.md: Same.
22183         * config/moxie/moxie.c: Same.
22184         * config/nds32/nds32.md: Same.
22185         * config/pa/pa.h: Same.
22186         * config/rs6000/aix.h: Same.
22187         * config/rs6000/rs6000.h: Same.
22188         * config/sh/sh.c: Same.
22189         * config/tilegx/tilegx.md: Same.
22190         * config/tilepro/gen-mul-tables.cc: Same.
22191         * cse.c: Same.
22192         * dbxout.c: Same.
22193         * doc/invoke.texi: Same.
22194         * dse.c: Same.
22195         * dwarf2out.c: Same.
22196         * final.c: Same.
22197         * gcc.c: Same.
22198         * genmatch.c: Same.
22199         * gimplify.c: Same.
22200         * hash-table.h: Same.
22201         * internal-fn.c: Same.
22202         * ipa-cp.c: Same.
22203         * ipa-devirt.c: Same.
22204         * ipa-icf.c: Same.
22205         * ipa-icf.h: Same.
22206         * ipa-profile.c: Same.
22207         * ipa-prop.c: Same.
22208         * ipa-prop.h: Same.
22209         * ira.c: Same.
22210         * omp-low.c: Same.
22211         * reg-stack.c: Same.
22212         * regcprop.c: Same.
22213         * reorg.c: Same.
22214         * rtl.h: Same.
22215         * sbitmap.h: Same.
22216         * tree-eh.c: Same.
22217         * tree-inline.c: Same.
22218         * tree-sra.c: Same.
22219         * tree-ssa-dom.c: Same.
22220         * tree-ssa-loop-ivopts.c: Same.
22221         * tree-ssa-structalias.c: Same.
22222         * tree-ssa-tail-merge.c: Same.
22223         * tree-ssa-ter.c: Same.
22224         * tree-ssa-threadupdate.c: Same.
22225         * tree-ssa-uninit.c: Same.
22226         * tree-ssanames.c: Same.
22227         * tree-vect-loop-manip.c: Same.
22228         * tree-vrp.c: Same.
22229         * tree.c: Same.
22230         * valtrack.c: Same.
22231         * vec.h: Same.
22233 2015-07-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
22235         PR middle-end/66726
22236         * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
22237         tree_ssa_phiopt_worker): Call it.
22239 2015-07-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
22241         * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
22242         * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
22243         REG_EQUAL note.
22245 2015-07-11  Marek Polacek  <polacek@redhat.com>
22247         PR middle-end/66353
22248         * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
22249         * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
22250         (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
22251         rather than bb_has_abnormal_call_pred.
22252         * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
22253         (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
22254         rather than bb_has_abnormal_call_pred.
22256 2015-07-10  Anatoly Sokolov  <aesok@post.ru>
22258         * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
22259         REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
22260         RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
22261         * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
22262         v850_legitimate_address_p): New functions.
22263         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
22265 2015-07-10  H.J. Lu  <hongjiu.lu@intel.com>
22267         PR target/66819
22268         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
22269         indirect sibcall with register arguments if register available
22270         for argument passing.
22271         (init_cumulative_args): Set cfun->machine->arg_reg_available
22272         to (cum->nregs > 0) or to true if function has a variable
22273         argument list.
22274         (function_arg_advance_32): Set cfun->machine->arg_reg_available
22275         to false if cum->nregs <= 0.
22276         * config/i386/i386.h (machine_function): Add arg_reg_available.
22278 2015-07-10  Uros Bizjak  <ubizjak@gmail.com>
22280         * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
22281         and gen_higpart instead of gen_rtx_SUBREG.
22282         * config/i386/i386.md
22283         (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
22284         (read-modify peephole2): Use gen_lowpart instead of
22285         gen_rtx_SUBREG for operand 5.
22287 2015-07-10  Andrew MacLeod  <amacleod@redhat.com>
22289         * config/tilepro/gen-mul-tables.cc (main): Change include list for
22290         generated files.
22291         * config/tilepro/mul-tables.c: Regenerate.
22292         * config/tilegx/mul-tables.c: Regenerate.
22294 2015-07-10  Richard Biener  <rguenther@suse.de>
22296         * fold-const.c (distribute_bit_expr): Remove.
22297         (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
22298         to (A & C1) | (B & C2), distributing (A & B) | (A & C)
22299         to A & (B | C) and simplifying A << C1 << C2 to ...
22300         * match.pd: ... patterns here.
22302 2015-07-10  Jiong Wang  <jiong.wang@arm.com>
22304         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
22305         Mark mem as READONLY and NOTRAP for PIC symbol.
22307 2015-07-10  Andrew MacLeod  <amacleod@redhat.com>
22309         * gimple-predict.h: New file.
22310         (gimple_predict_predictor, gimple_predict_set_predictor,
22311         gimple_predict_outcome, gimple_predict_set_outcome,
22312         gimple_build_predict): Relocate here.
22313         * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
22314         gimple_predict_outcome, gimple_predict_set_outcome): Move to
22315         gimple-predict.h.
22316         * gimple.c (gimple_build_predict): Move to gimple-predict.h
22317         * basic-block.h: Don't include cfghooks.h.
22318         * backend.h: Don't include predict.h.
22319         * cfghooks.h: Include predict.h.
22320         * gimple-pretty-print.c: Include gimple-predict.h.
22321         * gimplify.c: Likwise.
22322         * predict.c: Adjust includes.
22323         * tree-inline.c: Likewise.
22324         * asan.c: Likewise.
22325         * auto-inc-dec.c: Likewise.
22326         * auto-profile.c: Likewise.
22327         * bb-reorder.c: Likewise.
22328         * builtins.c: Likewise.
22329         * caller-save.c: Likewise.
22330         * calls.c: Likewise.
22331         * cfganal.c: Likewise.
22332         * cfgbuild.c: Likewise.
22333         * cfg.c: Likewise.
22334         * cfgcleanup.c: Likewise.
22335         * cfgexpand.c: Likewise.
22336         * cfghooks.c: Likewise.
22337         * cfgloopanal.c: Likewise.
22338         * cfgloop.c: Likewise.
22339         * cfgloopmanip.c: Likewise.
22340         * cfgrtl.c: Likewise.
22341         * cgraph.c: Likewise.
22342         * cgraphunit.c: Likewise.
22343         * combine.c: Likewise.
22344         * cprop.c: Likewise.
22345         * cse.c: Likewise.
22346         * dce.c: Likewise.
22347         * dojump.c: Likewise.
22348         * dse.c: Likewise.
22349         * except.c: Likewise.
22350         * expmed.c: Likewise.
22351         * expr.c: Likewise.
22352         * final.c: Likewise.
22353         * fold-const.c: Likewise.
22354         * function.c: Likewise.
22355         * fwprop.c: Likewise.
22356         * gcc-plugin.h: Likewise.
22357         * gcse.c: Likewise.
22358         * genattrtab.c: Likewise.
22359         * genemit.c: Likewise.
22360         * gengtype.c: Likewise.
22361         * genopinit.c: Likewise.
22362         * genoutput.c: Likewise.
22363         * genpreds.c: Likewise.
22364         * genrecog.c: Likewise.
22365         * gimple-fold.c: Likewise.
22366         * gimple-iterator.c: Likewise.
22367         * gimple-ssa-isolate-paths.c: Likewise.
22368         * gimple-ssa-strength-reduction.c: Likewise.
22369         * graph.c: Likewise.
22370         * graphite-blocking.c: Likewise.
22371         * graphite.c: Likewise.
22372         * graphite-dependences.c: Likewise.
22373         * graphite-interchange.c: Likewise.
22374         * graphite-isl-ast-to-gimple.c: Likewise.
22375         * graphite-optimize-isl.c: Likewise.
22376         * graphite-poly.c: Likewise.
22377         * graphite-scop-detection.c: Likewise.
22378         * graphite-sese-to-poly.c: Likewise.
22379         * haifa-sched.c: Likewise.
22380         * ifcvt.c: Likewise.
22381         * internal-fn.c: Likewise.
22382         * ipa-cp.c: Likewise.
22383         * ipa-profile.c: Likewise.
22384         * ipa-split.c: Likewise.
22385         * ipa-utils.c: Likewise.
22386         * ira-build.c: Likewise.
22387         * ira-color.c: Likewise.
22388         * ira-conflicts.c: Likewise.
22389         * ira-costs.c: Likewise.
22390         * ira-emit.c: Likewise.
22391         * ira-lives.c: Likewise.
22392         * jump.c: Likewise.
22393         * loop-doloop.c: Likewise.
22394         * loop-init.c: Likewise.
22395         * loop-invariant.c: Likewise.
22396         * loop-unroll.c: Likewise.
22397         * lower-subreg.c: Likewise.
22398         * lra-assigns.c: Likewise.
22399         * lra.c: Likewise.
22400         * lra-coalesce.c: Likewise.
22401         * lra-constraints.c: Likewise.
22402         * lra-lives.c: Likewise.
22403         * lto-cgraph.c: Likewise.
22404         * lto-streamer-in.c: Likewise.
22405         * mode-switching.c: Likewise.
22406         * modulo-sched.c: Likewise.
22407         * omp-low.c: Likewise.
22408         * optabs.c: Likewise.
22409         * passes.c: Likewise.
22410         * postreload.c: Likewise.
22411         * postreload-gcse.c: Likewise.
22412         * profile.c: Likewise.
22413         * recog.c: Likewise.
22414         * regstat.c: Likewise.
22415         * reload1.c: Likewise.
22416         * reorg.c: Likewise.
22417         * rtlanal.c: Likewise.
22418         * sched-ebb.c: Likewise.
22419         * sel-sched-ir.c: Likewise.
22420         * sese.c: Likewise.
22421         * shrink-wrap.c: Likewise.
22422         * simplify-rtx.c: Likewise.
22423         * stmt.c: Likewise.
22424         * store-motion.c: Likewise.
22425         * tracer.c: Likewise.
22426         * trans-mem.c: Likewise.
22427         * tree-call-cdce.c: Likewise.
22428         * tree-cfg.c: Likewise.
22429         * tree-cfgcleanup.c: Likewise.
22430         * tree-chkp.c: Likewise.
22431         * tree-complex.c: Likewise.
22432         * tree-eh.c: Likewise.
22433         * tree-if-conv.c: Likewise.
22434         * tree-loop-distribution.c: Likewise.
22435         * tree-outof-ssa.c: Likewise.
22436         * tree-parloops.c: Likewise.
22437         * tree-predcom.c: Likewise.
22438         * tree-pretty-print.c: Likewise.
22439         * tree-profile.c: Likewise.
22440         * tree-sra.c: Likewise.
22441         * tree-ssa.c: Likewise.
22442         * tree-ssa-coalesce.c: Likewise.
22443         * tree-ssa-dce.c: Likewise.
22444         * tree-ssa-dom.c: Likewise.
22445         * tree-ssa-forwprop.c: Likewise.
22446         * tree-ssa-ifcombine.c: Likewise.
22447         * tree-ssa-loop-ch.c: Likewise.
22448         * tree-ssa-loop-im.c: Likewise.
22449         * tree-ssa-loop-ivcanon.c: Likewise.
22450         * tree-ssa-loop-ivopts.c: Likewise.
22451         * tree-ssa-loop-manip.c: Likewise.
22452         * tree-ssa-loop-prefetch.c: Likewise.
22453         * tree-ssa-loop-unswitch.c: Likewise.
22454         * tree-ssa-math-opts.c: Likewise.
22455         * tree-ssa-phiopt.c: Likewise.
22456         * tree-ssa-pre.c: Likewise.
22457         * tree-ssa-reassoc.c: Likewise.
22458         * tree-ssa-sink.c: Likewise.
22459         * tree-ssa-tail-merge.c: Likewise.
22460         * tree-ssa-threadedge.c: Likewise.
22461         * tree-ssa-threadupdate.c: Likewise.
22462         * tree-switch-conversion.c: Likewise.
22463         * tree-tailcall.c: Likewise.
22464         * tree-vect-data-refs.c: Likewise.
22465         * tree-vect-loop.c: Likewise.
22466         * tree-vect-loop-manip.c: Likewise.
22467         * tree-vectorizer.c: Likewise.
22468         * tree-vrp.c: Likewise.
22469         * ubsan.c: Likewise.
22470         * value-prof.c: Likewise.
22471         * varasm.c: Likewise.
22472         * var-tracking.c: Likewise.
22473         * config/aarch64/aarch64-builtins.c: Likewise.
22474         * config/aarch64/aarch64.c: Likewise.
22475         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
22476         * config/alpha/alpha.c: Likewise.
22477         * config/arc/arc.c: Likewise.
22478         * config/arm/arm.c: Likewise.
22479         * config/avr/avr.c: Likewise.
22480         * config/bfin/bfin.c: Likewise.
22481         * config/c6x/c6x.c: Likewise.
22482         * config/cr16/cr16.c: Likewise.
22483         * config/cris/cris.c: Likewise.
22484         * config/darwin.c: Likewise.
22485         * config/darwin-c.c: Likewise.
22486         * config/epiphany/epiphany.c: Likewise.
22487         * config/epiphany/mode-switch-use.c: Likewise.
22488         * config/epiphany/resolve-sw-modes.c: Likewise.
22489         * config/fr30/fr30.c: Likewise.
22490         * config/frv/frv.c: Likewise.
22491         * config/ft32/ft32.c: Likewise.
22492         * config/h8300/h8300.c: Likewise.
22493         * config/i386/i386.c: Likewise.
22494         * config/i386/winnt.c: Likewise.
22495         * config/ia64/ia64.c: Likewise.
22496         * config/iq2000/iq2000.c: Likewise.
22497         * config/lm32/lm32.c: Likewise.
22498         * config/m32c/m32c.c: Likewise.
22499         * config/m32r/m32r.c: Likewise.
22500         * config/m68k/m68k.c: Likewise.
22501         * config/mcore/mcore.c: Likewise.
22502         * config/mep/mep.c: Likewise.
22503         * config/microblaze/microblaze.c: Likewise.
22504         * config/mips/mips.c: Likewise.
22505         * config/mmix/mmix.c: Likewise.
22506         * config/mn10300/mn10300.c: Likewise.
22507         * config/moxie/moxie.c: Likewise.
22508         * config/msp430/msp430.c: Likewise.
22509         * config/nds32/nds32.c: Likewise.
22510         * config/nds32/nds32-cost.c: Likewise.
22511         * config/nds32/nds32-fp-as-gp.c: Likewise.
22512         * config/nds32/nds32-intrinsic.c: Likewise.
22513         * config/nds32/nds32-isr.c: Likewise.
22514         * config/nds32/nds32-md-auxiliary.c: Likewise.
22515         * config/nds32/nds32-memory-manipulation.c: Likewise.
22516         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
22517         * config/nds32/nds32-predicates.c: Likewise.
22518         * config/nios2/nios2.c: Likewise.
22519         * config/nvptx/nvptx.c: Likewise.
22520         * config/pa/pa.c: Likewise.
22521         * config/pdp11/pdp11.c: Likewise.
22522         * config/rl78/rl78.c: Likewise.
22523         * config/rs6000/rs6000.c: Likewise.
22524         * config/rx/rx.c: Likewise.
22525         * config/s390/s390.c: Likewise.
22526         * config/sh/sh.c: Likewise.
22527         * config/sh/sh-mem.cc: Likewise.
22528         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
22529         * config/sh/sh_treg_combine.cc: Likewise.
22530         * config/sparc/sparc.c: Likewise.
22531         * config/spu/spu.c: Likewise.
22532         * config/stormy16/stormy16.c: Likewise.
22533         * config/tilegx/tilegx.c: Likewise.
22534         * config/tilepro/tilepro.c: Likewise.
22535         * config/v850/v850.c: Likewise.
22536         * config/vax/vax.c: Likewise.
22537         * config/visium/visium.c: Likewise.
22538         * config/xtensa/xtensa.c: Likewise.
22540 2015-07-10  Richard Biener  <rguenther@suse.de>
22542         * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
22543         (decision_tree::gen_gimple): Likewise.
22544         (decision_tree::gen_generic): Likewise.
22546 2015-07-10  Uros Bizjak  <ubizjak@gmail.com>
22548         PR target/66813
22549         * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
22550         sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
22552 2015-07-10  Jakub Jelinek  <jakub@redhat.com>
22554         PR middle-end/66820
22555         * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
22556         or ORT_TASK contexts.
22557         * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
22558         is non-zero.
22560 2015-07-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22562         * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
22563         above function.
22565 2015-07-10  Tom de Vries  <tom@codesourcery.com>
22567         * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
22568         insert nit + 1 bound.
22570 2015-07-10  Richard Biener  <rguenther@suse.de>
22572         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
22573         Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
22574         (if_convertible_loop_p_1): For this always compute bb predicates.
22575         (if_convertible_loop_p): And free them.
22577 2015-07-10  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
22579         * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
22580         in dump message.
22582 2015-07-10  Richard Biener  <rguenther@suse.de>
22584         PR tree-optimization/66823
22585         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
22586         inverted predicate.
22588 2015-07-09  Steve Ellcey  <sellcey@imgtec.com>
22590         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
22591         to handle mips[32|64]r3 and mips[32|64]r5.
22593 2015-07-09  Jakub Jelinek  <jakub@redhat.com>
22595         PR middle-end/66633
22596         * tree-nested.c (get_static_chain): Or in a flag into
22597         info->static_chain_added.
22598         (get_frame_field, get_nonlocal_debug_decl): Likewise.
22599         (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
22600         2015-07-01 changes.
22601         (convert_tramp_reference_stmt): If a frame_decl or chain_decl
22602         is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
22603         add it to clauses.
22605         PR tree-optimization/66718
22606         * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
22607         field.
22608         (vect_simd_lane_linear): New function.
22609         (vectorizable_simd_clone_call): Support using linear arguments for
22610         addresses of arrays elements indexed by GOMP_SIMD_LANE result.
22612 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
22614         PR target/66821
22615         * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
22617 2015-07-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
22619         * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
22620         Use machine mode, not enum machine_mode in the prototype.
22622         * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
22623         classify 128-bit floating point support.
22624         (FLOAT128_IBM_P): Likewise.
22625         (FLOAT128_VECTOR_P): Likewise.
22626         (FLOAT128_2REG_P): Likewise.
22627         (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
22628         (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
22629         (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
22630         (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
22632         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
22633         tests against TFmode/TDmode, since those modes do not use VSX
22634         addresses.
22635         (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
22636         support.
22637         (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
22638         tests against TFmode, etc.
22639         (invalid_e500_subreg): Add tests against IFmode/KFmode.
22640         (reg_offset_addressing_ok_p): Likewise.
22641         (rs6000_legitimate_offset_address_p): Likewise.
22642         (rs6000_legitimize_address): Likewise.
22643         (rs6000_legitimize_reload_address): Likewise.
22644         (rs6000_legitimate_address_p): Clean up tests against TFmode and
22645         TDmode to use the new helper macros, which will include IFmode and
22646         KFmode.
22647         (rs6000_emit_move): Likewise.
22648         (rs6000_darwin64_record_arg_recurse): Likewise.
22649         (print_operand): Likewise.
22650         (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
22651         that uses a single vector register as a vector and not as a
22652         floating point register in terms of the calling sequence.
22653         (rs6000_discover_homogeneous_aggregate): Likewise.
22654         (rs6000_return_in_memory): Likewise.
22655         (init_cumulative_args): Likewise.
22656         (rs6000_function_arg_boundary): Likewise.
22657         (rs6000_function_arg_advance_1): Likewise.
22658         (rs6000_function_arg): Likewise.
22659         (rs6000_pass_by_reference): Likewise.
22660         (rs6000_gimplify_va_arg): Likewise.
22661         (rs6000_secondary_reload_memory): Use machine_mode not enum
22662         machine mode.
22663         (rs6000_split_multireg_move): Use new helper macros.
22664         (spe_func_has_64bit_regs_p): Likewise.
22665         (rs6000_output_function_epilogue): Add IFmode/KFmode support.
22666         (output_toc): Use new helper macros.
22667         (rs6000_register_move_cost): Likewise.
22668         (rs6000_function_value): Add IEEE 128-bit floating point calling
22669         sequence support.
22670         (rs6000_libcall_value): Likewise.
22671         (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
22672         floating point support.
22673         (rs6000_vector_mode_supported_p): Likewise.
22675 2015-07-09  Vladimir Makarov  <vmakarov@redhat.com>
22677         PR rtl-optimization/66782
22678         * lra-int.h (struct lra_insn_recog_data): Add comment about
22679         clobbered hard regs for arg_hard_regs.
22680         * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
22681         * lra-lives.c (process_bb_lives): Process clobbered hard regs.
22682         Add condition for processing used hard regs.
22683         * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
22684         Process clobbered hard regs.
22686 2015-07-09  Michael Matz  <matz@suse.de>
22688         * genmatch.c (fprintf_indent): New function.
22689         (operand::gen_transform): Add indent parameter.
22690         (expr::gen_transform, c_expr::gen_transform,
22691         capture::gen_transform): Ditto and use fprintf_indent.
22692         (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
22693         (dt_operand::gen, dt_operand::gen_predicate,
22694         dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
22695         dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
22696         (decision_tree::gen_gimple): Adjust calls and indent generated
22697         code.
22698         (decision_tree::gen_generic): Ditto.
22699         (write_predicate): Ditto.
22701 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
22703         PR target/66814
22704         * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
22705         * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
22706         (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
22707         {GENERAL,SSE,MMX}_REG_P where appropriate.
22709 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
22711         * lto-streamer.h: Don't include target.h and alloc-pool.h.
22712         * builtins.c: Adjust includes.
22713         * gimple.c: Likewise.
22714         * ipa-icf.c: Likewise.
22715         * lto-opts.c: Likewise.
22716         * ipa-reference.c: Likewise.
22717         * lto-section-out.c: Likewise.
22718         * lto-streamer-in.c: Likewise.
22719         * lto-streamer-out.c: Likewise.
22720         * opts-global.c: Likewise.
22721         * symtab.c: Likewise.
22722         * tree-chkp.c: Likewise.
22723         * tree-ssa-live.c: Likewise.
22724         * tree-streamer-in.c: Likewise.
22725         * tree-streamer-out.c: Likewise.
22726         * config/darwin.c: Likewise.
22727         * config/i386/winnt.c: Likewise.
22729 2015-07-09  Richard Biener  <rguenther@suse.de>
22731         * genmatch.c (struct expr): Add force_single_use flag.
22732         (expr::expr): Add copy constructor.
22733         (capture_info::walk_match): Gather force_single_use captures.
22734         (expr::gen_transform): Use possibly NULLified sequence.
22735         (dt_simplify::gen): Apply single-use restrictions by NULLifying
22736         seq if any constrained expr is not single-use.
22737         (parser::parse_expr): Refactor to allow multiple flags.  Handle
22738         's' flag to force an expression have a single-use if the pattern
22739         simplifies to more than one statement.
22740         * match.pd: Convert most single_use conditionals to :s flags.
22742 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
22744         * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
22745         (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
22746         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
22748 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
22750         * flags.h: Don't include flag-types.h or options.h.
22751         * opts-common.c: Adjust includes.
22752         * opts-global.c: Likewise.
22753         * common/config/epiphany/epiphany-common.c: Likewise.
22755 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
22757         PR target/66818
22758         * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
22759         for IA MCU.
22761 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
22763         PR target/66817
22764         * config/i386/i386.c (ix86_return_in_memory): Return true
22765         if int_size_in_bytes returns negative for IA MCU.
22767 2015-07-09  Marek Polacek  <polacek@redhat.com>
22769         PR tree-optimization/66718
22770         * Makefile.in (OBJS): Add gimple-laddress.o.
22771         * passes.def: Schedule pass_laddress.
22772         * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
22773         * tree-pass.h (make_pass_laddress): Declare.
22774         * gimple-laddress.c: New file.
22776 2015-07-09  Richard Biener  <rguenther@suse.de>
22778         * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
22780 2015-07-09  Richard Biener  <rguenther@suse.de>
22782         PR tree-optimization/66807
22783         * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
22785 2015-07-08  Kito Cheng  <kito.cheng@gmail.com>
22787         * function.c (stack_protect_epilogue): Use if rather than switch for
22788         check targetm.have_stack_protect_test.
22790 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22792         * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
22793         * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
22794         * config/arc/arc.h: Likewise.
22795         * config/arm/arm.h: Likewise.
22796         * config/bfin/bfin.h: Likewise.
22797         * config/epiphany/epiphany.h: Likewise.
22798         * config/frv/frv.h: Likewise.
22799         * config/ia64/ia64.h: Likewise.
22800         * config/iq2000/iq2000.h: Likewise.
22801         * config/lm32/lm32.h: Likewise.
22802         * config/m32r/m32r.h: Likewise.
22803         * config/mcore/mcore.h: Likewise.
22804         * config/mep/mep.h: Likewise.
22805         * config/microblaze/microblaze.h: Likewise.
22806         * config/mips/mips.h: Likewise.
22807         * config/mmix/mmix.h: Likewise.
22808         * config/mn10300/mn10300.h: Likewise.
22809         * config/nds32/nds32.h: Likewise.
22810         * config/nios2/nios2.h: Likewise.
22811         * config/pa/pa.h: Likewise.
22812         * config/rl78/rl78.h: Likewise.
22813         * config/sh/sh.h: Likewise.
22814         * config/sparc/sparc.h: Likewise.
22815         * config/stormy16/stormy16.h: Likewise.
22816         * config/tilegx/tilegx.h: Likewise.
22817         * config/tilepro/tilepro.h: Likewise.
22818         * config/v850/v850.h: Likewise.
22819         * config/xtensa/xtensa.h: Likewise.
22820         * doc/tm.texi: Regenerate.
22821         * doc/tm.texi.in: Adjust.
22822         * combine.c (simplify_set): Likewise.
22823         (simplify_comparison): Likewise.
22824         * expr.c (store_constructor): Likewise.
22825         * internal-fn.c (expand_arith_overflow): Likewise.
22826         * reload.c (push_reload): Likewise.
22827         (find_reloads): Likewise.
22828         (find_reloads_subreg_address): Likewise.
22829         * reload1.c (eliminate_regs_1): Likewise.
22830         * rtlanal.c (nonzero_bits1): Likewise.
22831         (num_sign_bit_copies1): Likewise.
22832         * simplify-rtx.c (simplify_truncation): Likewise.
22834 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22836         * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
22837         of AUTO_INC_DEC with the preprocessor.
22838         * combine.c (combine_instructions): Likewise.
22839         (can_combine_p): Likewise.
22840         (try_combine): Likewise.
22841         * emit-rtl.c (try_split): Likewise.
22842         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
22843         * lower-subreg.c (resolve_simple_move): Likewise.
22844         * lra.c (update_inc_notes): Likewise.
22845         * recog.c (asm_operand_ok): Likewise.
22846         (constrain_operands): Likewise.
22847         * regrename.c (scan_rtx_address): Likewise.
22848         * reload.c (update_auto_inc_notes): Likewise.
22849         (reg_inc_found_and_valid_p): Likewise.
22850         * reload1.c (reload): Likewise.
22851         (emit_input_reload_insns): Likewise.
22852         (delete_output_reload): Likewise.
22853         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
22854         * valtrack.c (cleanup_auto_inc_dec): Likewise.
22856 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22858         * rtl.h: Always define AUTO_INC_DEC.
22859         * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
22860         * combine.c (combine_instructions): Likewise.
22861         (can_combine_p): Likewise.
22862         (try_combine): Likewise.
22863         * emit-rtl.c (try_split): Likewise.
22864         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
22865         * lower-subreg.c (resolve_simple_move): Likewise.
22866         * lra.c (update_inc_notes): Likewise.
22867         * recog.c (asm_operand_ok): Likewise.
22868         (constrain_operands): Likewise.
22869         * regrename.c (scan_rtx_address): Likewise.
22870         * reload.c (update_auto_inc_notes): Likewise.
22871         (find_equiv_reg): Likewise.
22872         * reload1.c (reload): Likewise.
22873         (reload_as_needed): Likewise.
22874         (choose_reload_regs): Likewise.
22875         (emit_input_reload_insns): Likewise.
22876         (delete_output_reload): Likewise.
22877         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
22878         * valtrack.c (cleanup_auto_inc_dec): Likewise.
22880 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22882         * combine.c (can_combine_def_p): Don't check the value of
22883         HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
22884         (combinable_i3pat): Likewise.
22885         (mark_used_regs_combine): Likewise.
22886         * regrename.c (rename_chains): Likewise.
22887         * reload.c (find_reloads_address): Likewise.
22888         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
22890 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22892         * combine.c (update_rsp_from_reg_equal): Don't check if
22893         SHORT_IMMEDIATES_SIGN_EXTEND is defined.
22894         (reg_nonzero_bits_for_combine): Likewise.
22895         * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
22896         1.
22897         * config/frv/frv.h: Likewise.
22898         * config/lm32/lm32.h: Likewise.
22899         * config/mep/mep.h: Likewise.
22900         * config/mips/mips.h: Likewise.
22901         * config/rs6000/rs6000.h: Likewise.
22902         * config/sh/sh.h: Likewise.
22903         * config/tilegx/tilegx.h (enum reg_class): Likewise.
22904         * config/tilepro/tilepro.h: Likewise.
22905         * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
22906         * doc/tm.texi: Regenerate.
22907         * doc/tm.texi.in: Adjust.
22908         * rtlanal.c (nonzero_bits1): Likewise.
22910 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22912         * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
22913         with the preprocessor.
22914         (combine_instructions): Likewise.
22915         (try_combine): Likewise.
22916         (subst): Likewise.
22917         (distribute_notes): Likewise.
22919 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22921         * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
22922         defined.
22923         (simplify_set): Likewise.
22924         * cse.c (cse_insn): Likewise.
22925         * fold-const.c (fold_single_bit_test): Likewise.
22926         (fold_unary_loc): Likewise.
22927         * postreload.c (reload_cse_simplify_set): Likewise.
22928         (reload_cse_simplify_operands): Likewise.
22930 2015-07-08  Jiong Wang  <jiong.wang@arm.com>
22932         * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
22933         (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
22935 2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
22937         PR target/66746
22938         * config/i386/x86intrin.h: Include <adxintrin.h> even if
22939         __iamcu__ is defined.
22941 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
22943         * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
22945 2015-07-08  Iain Sandoe  <iain@codesourcery.com>
22947         PR target/66523
22948         * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
22949         names from preservation.
22951 2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
22953         PR target/66806
22954         * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
22955         change for IAMCU.
22956         (function_arg_advance_32): Don't pass vectors in registers for
22957         IAMCU.
22958         (function_arg_32): Likewise.
22959         (ix86_return_in_memory): Don't return vectors in registers for
22960         IAMCU.
22962 2015-07-08  Vladimir Makarov  <vmakarov@redhat.com>
22964         PR middle-end/66334
22965         * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
22966         hard regno live at the start of BB with incoming abnormal edges.
22967         * lra-lives.c (process_bb_lives): Ditto.
22969 2015-07-08  Thomas Schwinge  <thomas@codesourcery.com>
22971         PR libgomp/65099
22972         * config/nvptx/mkoffload.c (main): Create an offload image only in
22973         64-bit configurations.
22975 2015-07-08  Martin Liska  <mliska@suse.cz>
22977         PR bootstrap/66744
22978         * tree-sra.c (create_access_1): Call ctor without brackets.
22979         (create_artificial_child_access): Likewise.
22981 2015-07-08  Richard Biener  <rguenther@suse.de>
22983         PR tree-optimization/66793
22984         * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
22985         Properly split the block after stmts ending it.
22987 2015-07-08  Richard Biener  <rguenther@suse.de>
22989         PR tree-optimization/66794
22990         * passes.c (execute_function_todo): Assert that post-dominators
22991         are not computed.
22992         * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
22993         Free post-dominators.
22995 2015-07-08  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
22997         * config/s390/s390.c (s390_init_frame_layout): Replace assertion
22998         with early exit.
23000 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
23002         * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
23003         more than or equal 8 and less than 32 when optimizing for size.
23005 2015-07-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23007         * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
23008         COSTS_N_INSNS (1) and increment it appropriately throughout the
23009         function.
23011 2015-07-08  Richard Biener  <rguenther@suse.de>
23013         * fold-const.c (fold_widened_comparison): Fix inverted comparison.
23015 2015-07-08  Alan Modra  <amodra@gmail.com>
23017         * target.def (rtx_costs): Remove "code" param, add "mode".
23018         * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
23019         (set_src_cost, get_full_set_src_cost): Likewise.  Move later in file.
23020         (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
23021         * rtlanal.c (rtx_cost): Add "mode" parameter.  Update targetm.rtx_costs
23022         call.  Track mode when given in rtx.
23023         (get_full_rtx_cost): Add "mode" parameter.  Update rtx_cost calls.
23024         (default_address_cost): Pass Pmode to rtx_cost.
23025         (insn_rtx_cost): Pass dest mode of set to set_src_cost.
23026         * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
23027         with NULL set.
23028         * cse.c (COST, COST_IN): Add MODE param.  Update all uses.
23029         (notreg_cost): Add mode param.  Use it.
23030         * gcse.c (want_to_gcse_p): Delete forward declaration.  Add
23031         mode param and pass to set_src_cost.  Update all calls.
23032         (hash_scan_set): Formatting.
23033         * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
23034         (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
23035         * hooks.h: Ditto.
23036         * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
23037         init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
23038         emit_store_flag): Update set_src_cost and rtx_cost calls.
23039         * auto-inc-dec.c (attempt_change): Likewise.
23040         * calls.c (precompute_register_parameters): Likewise.
23041         * combine.c (expand_compound_operation, make_extraction,
23042         force_to_mode, distribute_and_simplify_rtx): Likewise.
23043         * dojump.c (prefer_and_bit_test): Likewise.
23044         * dse.c (find_shift_sequence): Likewise.
23045         * expr.c (compress_float_constant): Likewise.
23046         * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
23047         * ifcvt.c (noce_try_sign_mask): Likewise.
23048         * loop-doloop.c (doloop_optimize): Likewise.
23049         * loop-invariant.c (create_new_invariant): Likewise.
23050         * lower-subreg.c (shift_cost, compute_costs): Likewise.
23051         * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
23052         lshift_cheap_p): Likewise.
23053         * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
23054         try_replace_in_use, reload_cse_move2add): Likewise.
23055         * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
23056         Likewise.
23057         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
23058         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
23059         * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
23060         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
23061         * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
23062         add "mode" param.  Use "mode: in place of GET_MODE (x).  Pass mode
23063         to rtx_cost calls.
23064         * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
23065         * config/arc/arc.c (arc_rtx_costs): Likewise.
23066         * config/arm/arm.c (arm_rtx_costs): Likewise.
23067         * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
23068         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
23069         * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
23070         * config/cris/cris.c (cris_rtx_costs): Likewise.
23071         * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
23072         * config/frv/frv.c (frv_rtx_costs): Likewise.
23073         * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
23074         * config/i386/i386.c (ix86_rtx_costs): Likewise.
23075         * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
23076         * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
23077         * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
23078         * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
23079         * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
23080         * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
23081         * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
23082         * config/mep/mep.c (mep_rtx_cost): Likewise.
23083         * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
23084         * config/mips/mips.c (mips_rtx_costs): Likewise.
23085         * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
23086         * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
23087         * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
23088         * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
23089         * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
23090         * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
23091         * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
23092         * config/pa/pa.c (hppa_rtx_costs): Likewise.
23093         * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
23094         * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
23095         * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
23096         * config/s390/s390.c (s390_rtx_costs): Likewise.
23097         * config/sh/sh.c (sh_rtx_costs): Likewise.
23098         * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
23099         * config/spu/spu.c (spu_rtx_costs): Likewise.
23100         * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
23101         * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
23102         * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
23103         * config/v850/v850.c (v850_rtx_costs): Likewise.
23104         * config/vax/vax.c (vax_rtx_costs): Likewise.
23105         * config/visium/visium.c (visium_rtx_costs): Likewise.
23106         * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
23107         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
23108         "code" param, and pass as outer_code to first rtx_cost call.  Pass
23109         mode to rtx_cost calls.
23110         (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
23111         calls.
23112         (aarch64_rtx_costs_wrapper): Update.
23113         * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
23114         arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
23115         rtx_cost calls.
23116         * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
23117         and rtx_cost calls.
23118         (avr_operand_rtx_cost): Similarly.
23119         (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
23120         for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
23121         * config/mips/mips.c (mips_stack_address_p): Comment typo.
23122         (mips_binary_cost): Update rtx_cost and set_src_cost calls.
23123         (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
23124         * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
23125         rtx_cost.
23126         (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
23127         * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
23128         * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
23129         * doc/tm.texi: Regenerate.
23131 2015-07-07  Andrew MacLeod  <amacleod@redhat.com>
23133         * tree-core.h: Include symtab.h.
23134         * rtl.h: Include hard-reg-set.h but not flags.h.
23135         (HARD_CONST): Remove condition compilation involving HARD_CONST since
23136         hard-reg-set.h is always included.
23137         * regs.h: Don't include hard-reg-set.h or rtl.h.
23138         * cfg.h: Include dominance.h.
23139         * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
23140         * backend.h: New.  Aggregate commonly used backend header files.
23141         * gimple-ssa.h: Don't include tree-hasher.h.
23142         * ssa.h: New.  Aggregate commonly used SSA header files.
23143         * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
23144         * sel-sched-ir.h: Flatten includes.
23145         * lra-int.h: Flatten completely.
23146         * sel-sched-dump.h: Flatten includes.
23147         * ira-int.h: Flatten includes.
23148         * gimple-streamer.h: Remove all includes.
23149         * cfgloop.h: Remove all #includes except cfgloopmanip.h.
23150         * resource.h: Flatten hard-reg-set.h and df.h.
23151         * sched-int.h: Flatten insn-arrt.h and df.h.
23152         * valtrack.h: flatten bitmap.h, df.h, and rtl.h
23153         * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
23154         * genattrtab.c (write_header): Adjust generated includes.
23155         * genautomata.c (main): Likewise.
23156         * genconditions.c (write-header): Likewise.
23157         * genemit.c (main): Likewise.
23158         * gengtype.c (open_base_files): Likewise.
23159         * genopinit.c (main): Likewise.
23160         * genoutput.c (output_prologue): Likewise.
23161         * genpeep.c (main): Likewise.
23162         * genpreds.c (write_insn_preds_c): Likewise.
23163         * genrecog.c (write_header): Likewise.
23164         * alias.c: Adjust includes.
23165         * asan.c: Likewise.
23166         * attribs.c: Likewise.
23167         * auto-inc-dec.c: Likewise.
23168         * auto-profile.c: Likewise.
23169         * bb-reorder.c: Likewise.
23170         * bt-load.c: Likewise.
23171         * builtins.c: Likewise.
23172         * caller-save.c: Likewise.
23173         * calls.c: Likewise.
23174         * ccmp.c: Likewise.
23175         * cfg.c: Likewise.
23176         * cfganal.c: Likewise.
23177         * cfgbuild.c: Likewise.
23178         * cfgcleanup.c: Likewise.
23179         * cfgexpand.c: Likewise.
23180         * cfghooks.c: Likewise.
23181         * cfgloop.c: Likewise.
23182         * cfgloopanal.c: Likewise.
23183         * cfgloopmanip.c: Likewise.
23184         * cfgrtl.c: Likewise.
23185         * cgraph.c: Likewise.
23186         * cgraphbuild.c: Likewise.
23187         * cgraphclones.c: Likewise.
23188         * cgraphunit.c: Likewise.
23189         * cilk-common.c: Likewise.
23190         * combine-stack-adj.c: Likewise.
23191         * combine.c: Likewise.
23192         * compare-elim.c: Likewise.
23193         * convert.c: Likewise.
23194         * coverage.c: Likewise.
23195         * cppbuiltin.c: Likewise.
23196         * cprop.c: Likewise.
23197         * cse.c: Likewise.
23198         * cselib.c: Likewise.
23199         * data-streamer-in.c: Likewise.
23200         * data-streamer-out.c: Likewise.
23201         * data-streamer.c: Likewise.
23202         * dbxout.c: Likewise.
23203         * dce.c: Likewise.
23204         * ddg.c: Likewise.
23205         * debug.c: Likewise.
23206         * df-core.c: Likewise.
23207         * df-problems.c: Likewise.
23208         * df-scan.c: Likewise.
23209         * dfp.c: Likewise.
23210         * dojump.c: Likewise.
23211         * dominance.c: Likewise.
23212         * domwalk.c: Likewise.
23213         * double-int.c: Likewise.
23214         * dse.c: Likewise.
23215         * dumpfile.c: Likewise.
23216         * dwarf2asm.c: Likewise.
23217         * dwarf2cfi.c: Likewise.
23218         * dwarf2out.c: Likewise.
23219         * emit-rtl.c: Likewise.
23220         * et-forest.c: Likewise.
23221         * except.c: Likewise.
23222         * explow.c: Likewise.
23223         * expmed.c: Likewise.
23224         * expr.c: Likewise.
23225         * final.c: Likewise.
23226         * fixed-value.c: Likewise.
23227         * fold-const.c: Likewise.
23228         * function.c: Likewise.
23229         * fwprop.c: Likewise.
23230         * gcc-plugin.h: Likewise.
23231         * gcse-common.c: Likewise.
23232         * gcse.c: Likewise.
23233         * generic-match-head.c: Likewise.
23234         * ggc-page.c: Likewise.
23235         * gimple-builder.c: Likewise.
23236         * gimple-expr.c: Likewise.
23237         * gimple-fold.c: Likewise.
23238         * gimple-iterator.c: Likewise.
23239         * gimple-low.c: Likewise.
23240         * gimple-match-head.c: Likewise.
23241         * gimple-pretty-print.c: Likewise.
23242         * gimple-ssa-isolate-paths.c: Likewise.
23243         * gimple-ssa-strength-reduction.c: Likewise.
23244         * gimple-streamer-in.c: Likewise.
23245         * gimple-streamer-out.c: Likewise.
23246         * gimple-walk.c: Likewise.
23247         * gimple.c: Likewise.
23248         * gimplify-me.c: Likewise.
23249         * gimplify.c: Likewise.
23250         * godump.c: Likewise.
23251         * graph.c: Likewise.
23252         * graphite-blocking.c: Likewise.
23253         * graphite-dependences.c: Likewise.
23254         * graphite-interchange.c: Likewise.
23255         * graphite-isl-ast-to-gimple.c: Likewise.
23256         * graphite-optimize-isl.c: Likewise.
23257         * graphite-poly.c: Likewise.
23258         * graphite-scop-detection.c: Likewise.
23259         * graphite-sese-to-poly.c: Likewise.
23260         * graphite.c: Likewise.
23261         * haifa-sched.c: Likewise.
23262         * hw-doloop.c: Likewise.
23263         * ifcvt.c: Likewise.
23264         * init-regs.c: Likewise.
23265         * internal-fn.c: Likewise.
23266         * ipa-chkp.c: Likewise.
23267         * ipa-comdats.c: Likewise.
23268         * ipa-cp.c: Likewise.
23269         * ipa-devirt.c: Likewise.
23270         * ipa-icf-gimple.c: Likewise.
23271         * ipa-icf.c: Likewise.
23272         * ipa-inline-analysis.c: Likewise.
23273         * ipa-inline-transform.c: Likewise.
23274         * ipa-inline.c: Likewise.
23275         * ipa-polymorphic-call.c: Likewise.
23276         * ipa-profile.c: Likewise.
23277         * ipa-prop.c: Likewise.
23278         * ipa-pure-const.c: Likewise.
23279         * ipa-ref.c: Likewise.
23280         * ipa-reference.c: Likewise.
23281         * ipa-split.c: Likewise.
23282         * ipa-utils.c: Likewise.
23283         * ipa-visibility.c: Likewise.
23284         * ipa.c: Likewise.
23285         * ira-build.c: Likewise.
23286         * ira-color.c: Likewise.
23287         * ira-conflicts.c: Likewise.
23288         * ira-costs.c: Likewise.
23289         * ira-emit.c: Likewise.
23290         * ira-lives.c: Likewise.
23291         * ira.c: Likewise.
23292         * jump.c: Likewise.
23293         * langhooks.c: Likewise.
23294         * lcm.c: Likewise.
23295         * loop-doloop.c: Likewise.
23296         * loop-init.c: Likewise.
23297         * loop-invariant.c: Likewise.
23298         * loop-iv.c: Likewise.
23299         * loop-unroll.c: Likewise.
23300         * lower-subreg.c: Likewise.
23301         * lra-assigns.c: Likewise.
23302         * lra-coalesce.c: Likewise.
23303         * lra-constraints.c: Likewise.
23304         * lra-eliminations.c: Likewise.
23305         * lra-lives.c: Likewise.
23306         * lra-remat.c: Likewise.
23307         * lra-spills.c: Likewise.
23308         * lra.c: Likewise.
23309         * lto-cgraph.c: Likewise.
23310         * lto-compress.c: Likewise.
23311         * lto-opts.c: Likewise.
23312         * lto-section-in.c: Likewise.
23313         * lto-section-out.c: Likewise.
23314         * lto-streamer-in.c: Likewise.
23315         * lto-streamer-out.c: Likewise.
23316         * lto-streamer.c: Likewise.
23317         * mcf.c: Likewise.
23318         * mode-switching.c: Likewise.
23319         * modulo-sched.c: Likewise.
23320         * omega.c: Likewise.
23321         * omp-low.c: Likewise.
23322         * optabs.c: Likewise.
23323         * opts-global.c: Likewise.
23324         * passes.c: Likewise.
23325         * plugin.c: Likewise.
23326         * postreload-gcse.c: Likewise.
23327         * postreload.c: Likewise.
23328         * predict.c: Likewise.
23329         * print-rtl.c: Likewise.
23330         * print-tree.c: Likewise.
23331         * profile.c: Likewise.
23332         * real.c: Likewise.
23333         * realmpfr.c: Likewise.
23334         * recog.c: Likewise.
23335         * ree.c: Likewise.
23336         * reg-stack.c: Likewise.
23337         * regcprop.c: Likewise.
23338         * reginfo.c: Likewise.
23339         * regrename.c: Likewise.
23340         * regstat.c: Likewise.
23341         * reload.c: Likewise.
23342         * reload1.c: Likewise.
23343         * reorg.c: Likewise.
23344         * resource.c: Likewise.
23345         * rtl-chkp.c: Likewise.
23346         * rtlanal.c: Likewise.
23347         * rtlhooks.c: Likewise.
23348         * sanopt.c: Likewise.
23349         * sched-deps.c: Likewise.
23350         * sched-ebb.c: Likewise.
23351         * sched-rgn.c: Likewise.
23352         * sched-vis.c: Likewise.
23353         * sdbout.c: Likewise.
23354         * sel-sched-dump.c: Likewise.
23355         * sel-sched-ir.c: Likewise.
23356         * sel-sched.c: Likewise.
23357         * sese.c: Likewise.
23358         * shrink-wrap.c: Likewise.
23359         * simplify-rtx.c: Likewise.
23360         * stack-ptr-mod.c: Likewise.
23361         * stmt.c: Likewise.
23362         * stor-layout.c: Likewise.
23363         * store-motion.c: Likewise.
23364         * stringpool.c: Likewise.
23365         * symtab.c: Likewise.
23366         * target-globals.c: Likewise.
23367         * targhooks.c: Likewise.
23368         * toplev.c: Likewise.
23369         * tracer.c: Likewise.
23370         * trans-mem.c: Likewise.
23371         * tree-affine.c: Likewise.
23372         * tree-browser.c: Likewise.
23373         * tree-call-cdce.c: Likewise.
23374         * tree-cfg.c: Likewise.
23375         * tree-cfgcleanup.c: Likewise.
23376         * tree-chkp-opt.c: Likewise.
23377         * tree-chkp.c: Likewise.
23378         * tree-chrec.c: Likewise.
23379         * tree-complex.c: Likewise.
23380         * tree-data-ref.c: Likewise.
23381         * tree-dfa.c: Likewise.
23382         * tree-diagnostic.c: Likewise.
23383         * tree-dump.c: Likewise.
23384         * tree-eh.c: Likewise.
23385         * tree-emutls.c: Likewise.
23386         * tree-if-conv.c: Likewise.
23387         * tree-inline.c: Likewise.
23388         * tree-into-ssa.c: Likewise.
23389         * tree-iterator.c: Likewise.
23390         * tree-loop-distribution.c: Likewise.
23391         * tree-nested.c: Likewise.
23392         * tree-nrv.c: Likewise.
23393         * tree-object-size.c: Likewise.
23394         * tree-outof-ssa.c: Likewise.
23395         * tree-parloops.c: Likewise.
23396         * tree-phinodes.c: Likewise.
23397         * tree-predcom.c: Likewise.
23398         * tree-pretty-print.c: Likewise.
23399         * tree-profile.c: Likewise.
23400         * tree-scalar-evolution.c: Likewise.
23401         * tree-sra.c: Likewise.
23402         * tree-ssa-address.c: Likewise.
23403         * tree-ssa-alias.c: Likewise.
23404         * tree-ssa-ccp.c: Likewise.
23405         * tree-ssa-coalesce.c: Likewise.
23406         * tree-ssa-copy.c: Likewise.
23407         * tree-ssa-copyrename.c: Likewise.
23408         * tree-ssa-dce.c: Likewise.
23409         * tree-ssa-dom.c: Likewise.
23410         * tree-ssa-dse.c: Likewise.
23411         * tree-ssa-forwprop.c: Likewise.
23412         * tree-ssa-ifcombine.c: Likewise.
23413         * tree-ssa-live.c: Likewise.
23414         * tree-ssa-loop-ch.c: Likewise.
23415         * tree-ssa-loop-im.c: Likewise.
23416         * tree-ssa-loop-ivcanon.c: Likewise.
23417         * tree-ssa-loop-ivopts.c: Likewise.
23418         * tree-ssa-loop-manip.c: Likewise.
23419         * tree-ssa-loop-niter.c: Likewise.
23420         * tree-ssa-loop-prefetch.c: Likewise.
23421         * tree-ssa-loop-unswitch.c: Likewise.
23422         * tree-ssa-loop.c: Likewise.
23423         * tree-ssa-math-opts.c: Likewise.
23424         * tree-ssa-operands.c: Likewise.
23425         * tree-ssa-phiopt.c: Likewise.
23426         * tree-ssa-phiprop.c: Likewise.
23427         * tree-ssa-pre.c: Likewise.
23428         * tree-ssa-propagate.c: Likewise.
23429         * tree-ssa-reassoc.c: Likewise.
23430         * tree-ssa-sccvn.c: Likewise.
23431         * tree-ssa-scopedtables.c: Likewise.
23432         * tree-ssa-sink.c: Likewise.
23433         * tree-ssa-strlen.c: Likewise.
23434         * tree-ssa-structalias.c: Likewise.
23435         * tree-ssa-tail-merge.c: Likewise.
23436         * tree-ssa-ter.c: Likewise.
23437         * tree-ssa-threadedge.c: Likewise.
23438         * tree-ssa-threadupdate.c: Likewise.
23439         * tree-ssa-uncprop.c: Likewise.
23440         * tree-ssa-uninit.c: Likewise.
23441         * tree-ssa.c: Likewise.
23442         * tree-ssanames.c: Likewise.
23443         * tree-stdarg.c: Likewise.
23444         * tree-streamer-in.c: Likewise.
23445         * tree-streamer-out.c: Likewise.
23446         * tree-streamer.c: Likewise.
23447         * tree-switch-conversion.c: Likewise.
23448         * tree-tailcall.c: Likewise.
23449         * tree-vect-data-refs.c: Likewise.
23450         * tree-vect-generic.c: Likewise.
23451         * tree-vect-loop-manip.c: Likewise.
23452         * tree-vect-loop.c: Likewise.
23453         * tree-vect-patterns.c: Likewise.
23454         * tree-vect-slp.c: Likewise.
23455         * tree-vect-stmts.c: Likewise.
23456         * tree-vectorizer.c: Likewise.
23457         * tree-vrp.c: Likewise.
23458         * tree.c: Likewise.
23459         * tsan.c: Likewise.
23460         * ubsan.c: Likewise.
23461         * valtrack.c: Likewise.
23462         * value-prof.c: Likewise.
23463         * var-tracking.c: Likewise.
23464         * varasm.c: Likewise.
23465         * varpool.c: Likewise.
23466         * vmsdbgout.c: Likewise.
23467         * vtable-verify.c: Likewise.
23468         * web.c: Likewise.
23469         * wide-int.cc: Likewise.
23470         * xcoffout.c: Likewise.
23471         * config/aarch64/aarch64-builtins.c: Likewise.
23472         * config/aarch64/aarch64.c: Likewise.
23473         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
23474         * config/alpha/alpha.c: Likewise.
23475         * config/arc/arc.c: Likewise.
23476         * config/arm/aarch-common.c: Likewise.
23477         * config/arm/arm-builtins.c: Likewise.
23478         * config/arm/arm-c.c: Likewise.
23479         * config/arm/arm.c: Likewise.
23480         * config/avr/avr-c.c: Likewise.
23481         * config/avr/avr-log.c: Likewise.
23482         * config/avr/avr.c: Likewise.
23483         * config/bfin/bfin.c: Likewise.
23484         * config/c6x/c6x.c: Likewise.
23485         * config/cr16/cr16.c: Likewise.
23486         * config/cris/cris.c: Likewise.
23487         * config/darwin-c.c: Likewise.
23488         * config/darwin.c: Likewise.
23489         * config/epiphany/epiphany.c: Likewise.
23490         * config/epiphany/mode-switch-use.c: Likewise.
23491         * config/epiphany/resolve-sw-modes.c: Likewise.
23492         * config/fr30/fr30.c: Likewise.
23493         * config/frv/frv.c: Likewise.
23494         * config/ft32/ft32.c: Likewise.
23495         * config/h8300/h8300.c: Likewise.
23496         * config/i386/i386-c.c: Likewise.
23497         * config/i386/i386.c: Likewise.
23498         * config/i386/msformat-c.c: Likewise.
23499         * config/i386/winnt-cxx.c: Likewise.
23500         * config/i386/winnt-stubs.c: Likewise.
23501         * config/i386/winnt.c: Likewise.
23502         * config/ia64/ia64-c.c: Likewise.
23503         * config/ia64/ia64.c: Likewise.
23504         * config/iq2000/iq2000.c: Likewise.
23505         * config/lm32/lm32.c: Likewise.
23506         * config/m32c/m32c-pragma.c: Likewise.
23507         * config/m32c/m32c.c: Likewise.
23508         * config/m32r/m32r.c: Likewise.
23509         * config/m68k/m68k.c: Likewise.
23510         * config/mcore/mcore.c: Likewise.
23511         * config/mep/mep-pragma.c: Likewise.
23512         * config/mep/mep.c: Likewise.
23513         * config/microblaze/microblaze-c.c: Likewise.
23514         * config/microblaze/microblaze.c: Likewise.
23515         * config/mips/mips.c: Likewise.
23516         * config/mmix/mmix.c: Likewise.
23517         * config/mn10300/mn10300.c: Likewise.
23518         * config/moxie/moxie.c: Likewise.
23519         * config/msp430/msp430-c.c: Likewise.
23520         * config/msp430/msp430.c: Likewise.
23521         * config/nds32/nds32-cost.c: Likewise.
23522         * config/nds32/nds32-fp-as-gp.c: Likewise.
23523         * config/nds32/nds32-intrinsic.c: Likewise.
23524         * config/nds32/nds32-isr.c: Likewise.
23525         * config/nds32/nds32-md-auxiliary.c: Likewise.
23526         * config/nds32/nds32-memory-manipulation.c: Likewise.
23527         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
23528         * config/nds32/nds32-predicates.c: Likewise.
23529         * config/nds32/nds32.c: Likewise.
23530         * config/nios2/nios2.c: Likewise.
23531         * config/nvptx/nvptx.c: Likewise.
23532         * config/pa/pa.c: Likewise.
23533         * config/pdp11/pdp11.c: Likewise.
23534         * config/rl78/rl78-c.c: Likewise.
23535         * config/rl78/rl78.c: Likewise.
23536         * config/rs6000/rs6000-c.c: Likewise.
23537         * config/rs6000/rs6000.c: Likewise.
23538         * config/rx/rx.c: Likewise.
23539         * config/s390/s390-c.c: Likewise.
23540         * config/s390/s390.c: Likewise.
23541         * config/sh/sh-c.c: Likewise.
23542         * config/sh/sh-mem.cc: Likewise.
23543         * config/sh/sh.c: Likewise.
23544         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
23545         * config/sh/sh_treg_combine.cc: Likewise.
23546         * config/sol2-c.c: Likewise.
23547         * config/sol2-cxx.c: Likewise.
23548         * config/sol2-stubs.c: Likewise.
23549         * config/sol2.c: Likewise.
23550         * config/sparc/sparc-c.c: Likewise.
23551         * config/sparc/sparc.c: Likewise.
23552         * config/spu/spu-c.c: Likewise.
23553         * config/spu/spu.c: Likewise.
23554         * config/stormy16/stormy16.c: Likewise.
23555         * config/tilegx/mul-tables.c: Likewise.
23556         * config/tilegx/tilegx-c.c: Likewise.
23557         * config/tilegx/tilegx.c: Likewise.
23558         * config/tilepro/mul-tables.c: Likewise.
23559         * config/tilepro/tilepro-c.c: Likewise.
23560         * config/tilepro/tilepro.c: Likewise.
23561         * config/v850/v850-c.c: Likewise.
23562         * config/v850/v850.c: Likewise.
23563         * config/vax/vax.c: Likewise.
23564         * config/visium/visium.c: Likewise.
23565         * config/vms/vms-c.c: Likewise.
23566         * config/vms/vms.c: Likewise.
23567         * config/vxworks.c: Likewise.
23568         * config/xtensa/xtensa.c: Likewise.
23570 2015-07-07  Uros Bizjak  <ubizjak@gmail.com>
23572         * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
23573         Remove operand constraints.  Change operand 2 predicate to
23574         nonmemory operand.  Limit const_int values to mode bitsize.  Only
23575         allow const_int values less than 32 when optimizing for size.
23576         (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
23577         Remove operand constraints.
23578         (*bt<mode>): Use SImode for const_int values less than 32.
23579         (regmode): Remove mode attribute.
23581 2015-07-07  Anatoly Sokolov  <aesok@post.ru>
23583         * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
23584         * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
23585           moxie_legitimate_address_p): New functions.
23586           (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
23588 2015-07-07  Tom de Vries  <tom@codesourcery.com>
23590         PR tree-optimization/66642
23591         * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
23592         header comment.  Rename split_edge variable to edge_at_split.  Split
23593         exit edge to create new loop exit bb.  Insert loop exit phis in new
23594         loop exit bb.
23596 2015-07-07  Tom de Vries  <tom@codesourcery.com>
23598         * tree-cfg.c (get_virtual_phi): New function.
23599         * tree-cfg.h (get_virtual_phi): Declare.
23600         * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
23601         (rewrite_virtuals_into_loop_closed_ssa): New function.
23602         * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
23603         Declare.
23604         * tree-parloops.c (replace_uses_in_bbs_by): Remove.
23605         (transform_to_exit_first_loop_alt): Use
23606         rewrite_virtuals_into_loop_closed_ssa.
23608 2015-07-07  Richard Biener  <rguenther@suse.de>
23610         * fold-const.c (fold_binary_loc): Move
23611         (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
23612         * match.pd: ... here.
23613         Add (X * C1) % C2 -> 0 simplification pattern derived from
23614         extract_muldiv_1.
23616 2015-07-07  Kaz Kojima  <kkojima@gcc.gnu.org>
23618         PR target/66780
23619         * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
23620         change for target/65249.
23622 2015-07-07  Paulo Matos  <pmatos@broadcom.com>
23624         * symtab.c (address_matters_1): Fix typo in comment above.
23625         (can_increase_alignment_p): Likewise.
23627 2015-07-07  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
23629         * function.c (free_after_compilation): Clear PROP_cfg in
23630         f->curr_properties.
23632 2015-07-07  Richard Biener  <rguenther@suse.de>
23634         * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
23635         add which use to.
23636         (add_control_edge): Remove excessive vertical space in dumping.
23637         (process_ssa_edge_worklist): Simulate at most one statement and
23638         return whether we did.  Do not simulate PHIs if they are in a
23639         BB not yet simulated.
23640         (ssa_propagate): Adjust to always drain the BB worklist whenever
23641         a BB is available there, likewise the VARYING edges list before
23642         the interesting edge list.
23644 2015-07-07  Christian Bruel  <christian.bruel@st.com>
23646         PR target/52144
23647         * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
23649 2015-07-07  Richard Biener  <rguenther@suse.de>
23651         PR middle-end/66739
23652         * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
23653         A - B.
23655 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
23657         * config/i386/i386.md (insv<mode>): Rename from insv.  Use SWI48
23658         modes for operands 0 and 3.  Use SImode for operands 2 and 3.
23659         Copy operand 0 to a temporary if !ext_register_operand.  Remove
23660         ancient extract_bit_field workaround.
23661         (insv<mode>_1): Rename from mov<mode>_insv_1.
23662         (*insvqi): Rename from *movqi_insv_2.
23663         * config/i386/i386.c (emit_i386_cw_initialization): Update calls
23664         for renamed insvsi_1.
23665         (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
23667 2015-07-06  Nathan Sidwell  <nathan@codesourcery.com>
23669         * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars.  Fix
23670         call to nvptx_reorg_subreg.
23672 2015-07-06  Jim Wilson  <jim.wilson@linaro.org>
23674         * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
23675         * graphite-dependencies.c, graphite-interchange.c,
23676         graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
23677         graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
23678         Likewise.
23680 2015-07-06  Marc Glisse  <marc.glisse@inria.fr>
23682         * match.pd: Remove element_mode inside HONOR_*.
23683         (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
23684         (~X | X -> -1, ~X ^ X -> -1): Merge.
23685         * tree.c (build_each_one_cst): New function.
23686         * tree.h (build_each_one_cst): Likewise.
23688 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
23690         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
23691         PROCESSOR_IAMCU.
23693 2015-07-06  Steve Ellcey  <sellcey@imgtec.com>
23695         * config.gcc <mips*-*-*>: Add fused-madd.opt.
23696         * config/mips/mips.opt (mfused-madd): Remove.
23697         * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
23698         * config/mips/mips.h (TARGET_MIPS8000): New.
23699         (ISA_HAS_FP_MADD4_MSUB4): Remove.
23700         (ISA_HAS_FP_MADDF_MSUBF): Remove.
23701         (ISA_HAS_FP_MADD3_MSUB3): Remove.
23702         (ISA_HAS_NMADD4_NMSUB4): Remove.
23703         (ISA_HAS_NMADD3_NMSUB3): Remove.
23704         (ISA_HAS_FUSED_MADD4): New.
23705         (ISA_HAS_UNFUSED_MADD4): New.
23706         (ISA_HAS_FUSED_MADDF): New.
23707         (ISA_HAS_FUSED_MADD3): New.
23708         * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
23709         (*fma<mode>4_madd3) New.
23710         (*fma<mode>4_madd4) New.
23711         (*fma<mode>4_maddf) New.
23712         (fms<mode>4) New.
23713         (*fms<mode>4_msub3) New.
23714         (*fms<mode>4_msub4) New.
23715         (fnma<mode>4) New.
23716         (*fnma<mode>4_nmadd3) New.
23717         (*fnma<mode>4_nmadd4) New.
23718         (fnms<mode>4) New.
23719         (*fnms<mode>4_nmsub3) New.
23720         (*fnms<mode>4_nmsub4) New.
23721         (*madd4<mode>) Modify to be unfused only.
23722         (*msub4<mode>) Modify to be unfused only.
23723         (*nmadd4<mode>) Modify to be unfused only.
23724         (*nmsub4<mode>) Modify to be unfused only.
23725         (*madd3<mode>) Remove.
23726         (*msub3<mode>) Remove.
23727         (*nmadd3<mode>) Remove.
23728         (*nmsub3<mode>) Remove.
23729         (*nmadd3<mode>_fastmath) Remove.
23730         (*nmsub3<mode>_fastmath) Remove.
23731         (*nmadd4<mode>_fastmath) Update condition.
23732         (*nmsub4<mode>_fastmath) Update condition.
23734 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
23736         PR target/65956
23737         * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
23738         alignment attribute, exploring one level down for records and arrays.
23740 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
23742         * config/i386/i386.md (extv<mode>): Rename from extv.  Use SWI24
23743         modes for operands 0 and 1.  Use SImode for operands 2 and 3.
23744         Copy operand 1 to a temporary if !ext_register_operand.  Remove
23745         ancient extract_bit_field workaround.
23746         (*extv<mode>): Rename from *mov<mode>_extv_1.
23747         (*extvqi): Rename from *movqi_extv_1.
23748         (extzv<mode>): Rename from extzv.  Use SWI248 modes for
23749         operands 0 and 1.  Use SImode for operands 2 and 3. Copy operand 1
23750         to a temporary if !ext_register_operand.  Remove ancient
23751         extract_bit_field workaround.
23752         (*extzv<mode>): Rename from *mov<mode>_extzv_1.
23753         (*extzvqi): Rename from *movqi_extzv_2.
23754         (*testqi_ext_3): Remove modes from const_int_operand predicated
23755         operands.  Add "n" constraint.
23756         (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
23757         operand.  Add "J" constraint.
23758         (*btsq, *btrq, *btcq peephole2s): Remove mode from
23759         const_0_to_63 predicated operand.
23760         (regmode): New insn attribute.
23761         (*bt<mode>): Use SImode for operand 1.  Change operand 1 predicate
23762         to nonmemory_operand.  Use regmode insn attribute.
23763         (*jcc_bt<mode>_1): Convert operand 2 to SImode.
23764         (*jcc_bt<mode>_mask): Remove mode from operand 3.
23765         (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
23766         (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
23767         operands.  Use "N" constraint instead of "n".
23769 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
23771         * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
23773 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
23775         PR target/66749
23776         * config/i386/i386.c (iamcu_cost): New.
23777         (m_IAMCU): Likewise.
23778         (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
23779         (processor_target_table): Add an entry for "iamcu".
23780         (processor_alias_table): Likewise.
23781         (ix86_issue_rate): Handle PROCESSOR_IAMCU.
23782         (ix86_adjust_cost): Likewise.
23783         (ia32_multipass_dfa_lookahead): Likewise.
23784         * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
23785         * config/i386/x86-tune.def: Updated for m_IAMCU.
23787 2015-07-06  Richard Biener  <rguenther@suse.de>
23789         PR tree-optimization/66772
23790         * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
23791         values are available in the PHI node BB when there are
23792         still unexecutable edges.
23794 2015-07-06  Richard Biener  <rguenther@suse.de>
23796         PR tree-optimization/66767
23797         * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
23798         Make sure to build the alignment test on a SSA name without
23799         final alignment info valid only if the alignment test
23800         evaluates to true.
23802 2015-07-06  Bernd Schmidt  <bernds@codesourcery.com>
23804         PR target/66620
23805         * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
23806         loop start when inserting LSETUP.
23808 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
23810         PR target/53383
23811         * config/i386/i386.c (ix86_option_override_internal): Allow
23812         -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
23814 2015-07-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23816         * read-md.c (decimal_string): Rename to ...
23817         (md_decimal_string): ... this.
23818         (handle_enum): Reflect this.
23820 2015-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
23822         PR target/66731
23823         * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
23825 2015-07-06  Richard Biener  <rguenther@suse.de>
23827         PR middle-end/66759
23828         * match.pd: Add missing constraint of y to REAL_CST in
23829         REAL_CST - x CMP y to y - CST CMP x simplification.
23831 2015-07-06  Eric Botcazou  <ebotcazou@adacore.com>
23833         PR tree-optimization/66757
23834         * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
23836 2015-07-05  Chung-Lin Tang  <cltang@codesourcery.com>
23837             Sandra Loosemore <sandra@codesourcery.com>
23839         * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
23840         Delete extern declaration.
23841         (gprel_constant_p): Add extern declaration.
23842         * config/nios2/constraints.md ("S"): Use gprel_constant_p
23843         instead of nios2_symbol_ref_in_small_data_p.
23844         * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
23845         (nios2_symbol_ref_in_small_data_p): Make static.
23846         (gprel_constant_p): Make non-static.
23848 2015-07-05  Gerald Pfeifer  <gerald@pfeifer.com>
23850         * doc/fragments.texi (Target Fragment): Convert debian.org
23851         link to use https.
23852         * doc/install.texi (Configuration): Ditto.
23854 2015-07-05  Jakub Jelinek  <jakub@redhat.com>
23856         PR tree-optimization/66718
23857         * tree-vect-stmts.c (vectorizable_call): Replace uses of
23858         GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
23860         PR tree-optimization/66718
23861         * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
23862         vectorizable_load, vectorizable_condition): Move vectype,
23863         nunits, ncopies computation after checking what kind of statement
23864         stmt is.
23866 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
23868         * target-insns.def (extv, extzv, insv): New targetm instruction
23869         patterns.
23870         * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
23871         interface.
23872         * recog.c (simplify_while_replacing): Likewise.
23874 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
23876         * target-insns.def (doloop_begin, doloop_end): New targetm
23877         instruction patterns.
23878         * loop-init.c: Include target.h.
23879         (pass_loop2::gate): Use the new targetm patterns instead of
23880         HAVE_*/gen_* interface.
23881         (pass_rtl_doloop::gate): Likewise.
23882         (pass_rtl_doloop::execute): Remove preprocessor condition.
23883         * hw-doloop.c: Build unconditionally.
23884         * loop-doloop.c: Likewise.
23885         (doloop_optimize): Use the new targetm patterns instead of
23886         HAVE_*/gen_* interface.
23887         (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
23888         * modulo-sched.c (doloop_register_get): Likewise.
23890 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
23892         * target-insns.def (clear_cache): New targetm instruction pattern.
23893         * builtins.c (expand_builtin___clear_cache): Use it instead of
23894         HAVE_*/gen_* interface.
23896 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
23898         * target-insns.def (allocate_stack, check_stack, probe_stack)
23899         (probe_stack_address, split_stack_prologue, split_stack_space_check):
23900         New targetm instruction patterns.
23901         * explow.c (allocate_dynamic_stack_space): Use them instead of
23902         HAVE_*/gen_* interface.
23903         (emit_stack_probe): Likewise.
23904         (probe_stack_range): Likewise.
23905         * function.c (thread_prologue_and_epilogue_insns): Likewise.
23907 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
23909         * target-insns.def (stack_protect_set, stack_protect_test): New
23910         targetm instruction patterns.
23911         * cfgexpand.c (stack_protect_prologue): Use them instead of
23912         HAVE_*/gen_* interface.
23913         * function.c (stack_protect_epilogue): Likewise.
23915 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
23917         * expr.h (gen_move_insn_uncast): Delete.
23918         * expr.c (gen_move_insn_uncast): Delete.
23920 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
23922         * target-insns.def (restore_stack_block, restore_stack_function)
23923         (restore_stack_nonlocal, save_stack_block, save_stack_function)
23924         (save_stack_nonlocal): New targetm instruction patterns.
23925         * builtins.c (expand_builtin_apply): Use them instead of
23926         HAVE_*/gen_* interface.
23927         * explow.c (emit_stack_save, emit_stack_restore): Likewise.
23929 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
23931         * target-insns.def (trap): New targetm instruction pattern.
23932         * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
23933         interface.
23934         * explow.c (allocate_dynamic_stack_space): Likewise.
23935         * ifcvt.c (find_if_header): Likewise.
23937 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
23939         * target-insns.def (prefetch): New targetm instruction pattern.
23940         * tree-ssa-loop-prefetch.c: Include targeth.
23941         (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
23942         of HAVE_*/gen_* interface.
23943         * builtins.c (expand_builtin_prefetch): Likewise.
23944         * toplev.c (process_options): Likewise.
23946 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
23948         * target-insns.def (untyped_call, untyped_return): New targetm
23949         instruction patterns.
23950         * builtins.c (expand_builtin_apply): Use them instead of
23951         HAVE_*/gen_* interface.
23952         (result_vector): Define unconditionally.
23954 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
23956         * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
23957         (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
23958         (nonlocal_goto_receiver): New targetm instruction patterns.
23959         * builtins.c (expand_builtin_setjmp_setup): Use them instead
23960         of HAVE_*/gen_* interface.
23961         (expand_builtin_setjmp_receiver): Likewise.
23962         (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
23963         * except.c (expand_dw2_landing_pad_for_region): Likewise.
23965 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
23967         * target.def: Add code_for_* hooks.
23968         * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
23969         * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
23970         * target-insns.def (casesi, tablejump): New targetm instruction
23971         patterns.
23972         * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
23973         (do_tablejump): Likewise.
23974         * stmt.c (expand_switch_as_decision_tree_p): Likewise.
23975         (expand_sjlj_dispatch_table): Likewise.
23976         * targhooks.c (default_case_values_threshold): Likewise.
23978 2015-07-04  Sandra Loosemore  <sandra@codesourcery.com>
23980         * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
23981         Use rtx_insn * instead of rtx.
23982         (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
23983         (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
23984         (nios2_call_tls_get_addr): Likewise.
23985         (nios2_emit_expensive_div): Likewise.
23986         (nios2_emit_move_sequence): Change return type to bool.
23987         * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
23988         Change return type to bool.
23990 2015-07-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
23992         PR target/66747
23993         * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
23995 2015-07-04  John David Anglin  <danglin@gcc.gnu.org>
23997         PR target/66114
23998         * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
23999         of register_operand.  Remove constraint.
24001 2015-07-04  Marc Glisse  <marc.glisse@inria.fr>
24003         * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
24004         the first argument.
24006 2015-07-03  Paolo Carlini  <paolo.carlini@oracle.com>
24008         * attribs.c (decl_attributes): Guard inform with the return value
24009         of the preceding warning.
24011 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
24013         * doc/invoke.texi (moverride): Move to correct section.
24015 2015-07-03  Richard Biener  <rguenther@suse.de>
24017         * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
24018         Copy from tree.c
24019         (dt_operand::gen_gimple_expr): After valueizing operands
24020         re-canonicalize operand order for commutative tree codes.
24022 2015-07-03  H.J. Lu  <hongjiu.lu@intel.com>
24024         PR target/66746.
24025         * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
24026         is defined.
24027         (__crc32w): Likewise.
24028         (__crc32d): Likewise.
24029         (__rdpmc): Likewise.
24030         (__rdtscp): Likewise.
24031         (_rdpmc): Likewise.
24032         (_rdtscp): Likewise.
24033         * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
24034         is defined.
24036 2015-07-03  Richard Biener  <rguenther@suse.de>
24038         * fold-const.c (fold_mathfn_compare): Remove.
24039         (fold_inf_compare): Likewise.
24040         (fold_comparison): Move floating point comparison simplifications...
24041         * match.pd: ... to patterns here.  Introduce simple_comparisons
24042         operator list and use it for patterns formerly in fold_comparison.
24044 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
24046         PR tree-optimization/66119
24047         * toplev.c (process_options): Don't set up default values for
24048         the sra_max_scalarization_size_{speed,size} parameters.
24049         * tree-sra (analyze_all_variable_accesses): If no values
24050         have been set for the sra_max_scalarization_size_{speed,size}
24051         parameters, call get_move_ratio to get target defaults.
24053 2015-07-03  Richard Biener  <rguenther@suse.de>
24055         * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
24056         * match.pd: ... here.
24058 2015-07-03  Gerald Pfeifer  <gerald@pfeifer.com>
24060         PR target/37072
24061         * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
24062         is not actually the default on FreeBSD.
24064 2015-07-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24066         * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
24067         definition.
24068         (CMPGE_8HI): Likewise.
24069         (CMPGE_4SI): Likewise.
24070         (CMPGE_2DI): Likewise.
24071         (CMPGE_U16QI): Likewise.
24072         (CMPGE_U8HI): Likewise.
24073         (CMPGE_U4SI): Likewise.
24074         (CMPGE_U2DI): Likewise.
24075         (CMPLE_16QI): Likewise.
24076         (CMPLE_8HI): Likewise.
24077         (CMPLE_4SI): Likewise.
24078         (CMPLE_2DI): Likewise.
24079         (CMPLE_U16QI): Likewise.
24080         (CMPLE_U8HI): Likewise.
24081         (CMPLE_U4SI): Likewise.
24082         (CMPLE_U2DI): Likewise.
24083         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
24084         overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
24085         ALTIVEC_BUILTIN_VEC_CMPLE.
24086         * config/rs6000/vector.md (vector_ge<mode>): Restrict to
24087         floating-point vector modes.
24088         (vector_nlt<mode>): New define_expand.
24089         (vector_nltu<mode>): Likewise.
24090         (vector_ngt<mode>): Likewise.
24091         (vector_ngtu<mode>): Likewise.
24093 2015-07-02  Segher Boessenkool  <segher@kernel.crashing.org>
24095         PR rtl-optimization/66706
24096         * combine.c (make_compound_operation): If an AND of SUBREG of
24097         LSHIFTRT does not simplify, see if just the AND of SUBREG does.
24099 2015-07-02  Alan Lawrence  <alan.lawrence@arm.com>
24101         * tree-pass.h (make_pass_ch_vect): New.
24102         * passes.def: Add pass_ch_vect just before pass_if_conversion.
24104         * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
24105         pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
24106         make_pass_ch_vect): New.
24107         (pass_ch): Extend ch_base.
24109         (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
24110         (ch_base::copy_headers): ...here.
24112 2015-07-02  Richard Biener  <rguenther@suse.de>
24114         * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
24115         * fold-const.c (get_pointer_modulus_and_residue): Remove.
24116         (fold_binary_loc): Implement (T)ptr & CST in terms of
24117         get_pointer_alignment_1.
24118         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
24119         Make sure to build the alignment test on a SSA name without
24120         final alignment info valid only after the prologue.
24122 2015-07-02  Hans-Peter Nilsson  <hp@axis.com>
24124         * config/cris/cris.md ("epilogue"): Remove condition.
24125         ("prologue"): Ditto.
24127 2015-07-02  Richard Biener  <rguenther@suse.de>
24129         * tree-ssa-dom.c (build_and_record_new_cond): Add optional
24130         parameter to record a condition that is false.
24131         (record_conditions): When recording an extra NE_EXPR that is
24132         true also record a EQ_EXPR that is false.
24134 2015-07-02  Bin Cheng  <bin.cheng@arm.com>
24136         * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
24137         (tree_ssa_iv_optimize_init): Initialize iv_obstack.
24138         (alloc_iv): New parameter.  Allocate struct iv using obstack_alloc.
24139         (set_iv, find_interesting_uses_address, add_candidate_1): New
24140         argument to alloc_iv.
24141         (find_interesting_uses_op, find_interesting_uses_cond): Don't
24142         duplicate struct iv.
24143         (free_loop_data): Don't free struct iv explicitly.
24144         (tree_ssa_iv_optimize_finalize): Free iv_obstack.
24146 2015-07-01  DJ Delorie  <dj@redhat.com>
24148         * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
24149         (LIB_SPEC): Add.
24150         (SUPPORTS_DISCRIMINATOR): Define.
24152 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
24154         PR bootstrap/66685
24155         * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
24156         there are no CALLs in the same pattern.
24158 2015-07-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
24160         PR rtl-optimization/61047
24161         * rtlanal.c (get_initial_register_offset): New function.
24162         (rtx_addr_can_trap_p_1): Check offsets of stack references.
24164 2015-07-01  Richard Biener  <rguenther@suse.de>
24166         * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
24167         X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
24168         ~X CMP C -> X CMP' ~C to ...
24169         * match.pd: ... patterns here.
24171 2015-07-01  Nick Clifton  <nickc@redhat.com>
24173         * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
24174         a 16-bit value into a 20-bit memory slot.
24176 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
24178         * doc/sourcebuild.texi (AArch64-specific attributes): Document
24179         "aarch64_tiny", "aarch64_small", "aarch64_large",
24180         "aarch64_little_endian", "aarch64_big_endian".
24182 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
24184         * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
24185         Document "aarch64_small_fpic".
24187 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
24189         * configure.ac: Add check for aarch64 assembler -fpic relocation
24190         modifier support.
24191         * configure: Regenerate.
24192         * config.in: Regenerate.
24193         * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
24194         to -fPIC if not support of -fpic relocation modifier in assembler.
24196 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
24198         PR bootstrap/66685
24199         * rtl.c (classify_insn): Handle returns in PARALLELs.
24201 2015-07-01  Eric Botcazou  <ebotcazou@adacore.com>
24203         PR middle-end/66633
24204         * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
24205         to true if the function is nested and if not optimizing.
24206         (convert_local_omp_clauses): Initialize need_frame to true if the
24207         function contains nested functions and if not optimizing.
24209 2015-07-01  Richard Biener  <rguenther@suse.de>
24211         * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
24212         (X & Y) ^ Y -> ~X & Y transforms to ...
24213         * match.pd: ... here.
24215 2015-07-01  Richard Biener <rguenther@suse.de>
24217         * genmatch.c (expr::gen_transform): Shortcut re-simplifying
24218         of converts to avoid uninteresting noise from the conversion
24219         simplifying patterns.
24221 2015-06-30  Sandra Loosemore <sandra@codesourcery.com>
24223         * config/c6x/c6x.c (try_rename_operands): Do not depend on
24224         gcc_assert evaluating its argument for side-effect.
24226 2015-06-30  Kaz Kojima  <kkojima@gcc.gnu.org>
24228         PR target/64833
24229         * config/sh/sh.md (casesi_worker_1): Set length to 8 when
24230         flag_pic is set.
24232 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
24234         * lto-streamer-out.c (class DFS): Adjust hash_scc method.
24235         (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
24236         (hash_scc): Add this_ref_p and ref_p parameters and pass them
24237         to the inner DFS walk.
24239 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
24241         * target-insns.def (jump): New targetm instruction pattern.
24242         * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
24243         instead of gen_jump.
24244         (fix_up_crossing_landing_pad): Likewise.
24245         (add_labels_and_missing_jumps): Likewise.
24246         (fix_crossing_conditional_branches): Likewise.
24247         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
24248         (force_nonfallthru_and_redirect): Likewise.
24249         * cse.c (cse_insn): Likewise.
24250         * expmed.c (expand_divmod): Likewise.
24251         * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
24252         * haifa-sched.c (init_before_recovery): Likewise.
24253         (sched_create_recovery_edges): Likewise.
24254         * ifcvt.c (find_cond_trap): Likewise.
24255         * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
24256         (expand_float, expand_fix): Likewise.
24257         * stmt.c (emit_jump): Likewise.
24259 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
24261         * defaults.h (HAVE_load_multiple, gen_load_multiple)
24262         (HAVE_store_multiple, gen_store_multiple): Delete.
24263         * target-insns.def (load_multiple, store_multiple): New targetm
24264         instruction patterns.
24265         * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
24266         of HAVE_*/gen_* interface.
24268 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
24270         * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
24271         (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
24272         (gen_mem_signal_fence): Delete.
24273         * target-insns.def (mem_signal_fence, mem_thread_fence)
24274         (memory_barrier): New targetm instruction patterns.
24275         * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
24276         interface.
24277         (expand_mem_signal_fence): Likewise.
24279 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
24281         * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
24282         * target-insns.def (epilogue, prologue, sibcall_prologue): New
24283         targetm instruction patterns.
24284         * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
24285         interface.
24286         * calls.c (expand_call): Likewise.
24287         * cfgrtl.c (cfg_layout_finalize): Likewise.
24288         * df-scan.c (df_get_entry_block_def_set): Likewise.
24289         (df_get_exit_block_use_set): Likewise.
24290         * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
24291         * final.c (final_start_function): Likewise.
24292         * function.c (thread_prologue_and_epilogue_insns): Likewise.
24293         (reposition_prologue_and_epilogue_notes): Likewise.
24294         * reorg.c (find_end_label): Likewise.
24295         * toplev.c (process_options): Likewise.
24297 2015-06-30  David Malcolm  <dmalcolm@redhat.com>
24299         * typed-splay-tree.h: New file.
24301 2015-06-30  Vladimir Makarov  <vmakarov@redhat.com>
24303         PR debug/66691
24304         * lra-int.h (lra_substitute_pseudo): Add a parameter.
24305         (lra_substitute_pseudo_within_insn): Ditto.
24306         * lra.c (lra_substitute_pseudo): Add a parameter.  Simplify subreg
24307         of constant.
24308         (lra_substitute_pseudo_within_insn): Add a parameter.  Transfer it
24309         to lra_substitute_pseudo.
24310         * lra-lives.c (process_bb_lives): Add an argument to
24311         lra_substitute_pseudo_within_insn call.
24312         * lra-constraints.c (inherit_reload_reg, split_reg): Add an
24313         argument to lra_substitute_pseudo and
24314         lra_substitute_pseudo_within_insn calls.
24315         (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
24317 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
24319         * configure: Regenerated.
24321 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
24323         * config.gcc: Support i[34567]86-*-elfiamcu target.
24324         * config/i386/iamcu.h: New.
24325         * config/i386/i386.opt: Add -miamcu.
24326         * doc/invoke.texi: Document -miamcu.
24327         * common/config/i386/i386-common.c  (ix86_handle_option): Turn
24328         off x87/MMX/SSE/AVX codegen for -miamcu.
24329         * config/i386/i386-c.c (ix86_target_macros_internal): Define
24330         __iamcu/__iamcu__ for -miamcu.
24331         * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
24332         to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
24333         (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
24334         * config/i386/i386.c (ix86_option_override_internal): Ignore and
24335         warn -mregparm for Intel MCU.  Turn on -mregparm=3 for Intel
24336         MCU by default.  Default long double to 64-bit for Intel MCU.
24337         Turn on -freg-struct-return for Intel MCU.  Issue an error when
24338         -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
24339         AVX is turned on.
24340         (function_arg_advance_32): Pass value whose size is no larger
24341         than 8 bytes in registers for Intel MCU.
24342         (function_arg_32): Likewise.
24343         (ix86_return_in_memory): Return value whose size is no larger
24344         than 8 bytes in registers for Intel MCU.
24345         (iamcu_alignment): New function.
24346         (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
24347         true.
24348         (ix86_local_alignment): Don't increase alignment for Intel MCU.
24349         (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
24350         true.
24352 2015-06-30  Marek Polacek  <polacek@redhat.com>
24354         * match.pd (X - (X / Y) * Y): Use convert1 and convert2.  Convert
24355         both operands of the resulting expression.
24357         * match.pd (~x | x): Don't use tree_nop_conversion_p.  Build
24358         the final expression with the operand's type and then convert
24359         it to the type of the expression.
24361 2015-06-30  Richard Biener  <rguenther@suse.de>
24363         * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
24364         ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
24365         (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
24366         * match.pd: ... to patterns here.
24368 2015-06-30  Richard Biener  <rguenther@suse.de>
24370         PR tree-optimization/66704
24371         * tree-vect-data-refs.c (vect_setup_realignment): Use
24372         make_ssa_name for non-SSA name source.
24374 2015-06-30  Jakub Jelinek  <jakub@redhat.com>
24376         PR middle-end/66702
24377         * omp-low.c (simd_clone_adjust): Handle addressable linear
24378         or uniform parameters or non-gimple type uniform parameters.
24380 2015-06-30  Richard Biener  <rguenther@suse.de>
24382         * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
24383         ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
24384         ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
24385         * match.pd: ... here.
24386         Add a few cases of A - B -> A + (-B) when B "easily" negates.
24387         Move (x & y) | x -> x and friends before
24388         (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
24390 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
24392         * config/sparc/leon.md (leon_load): Enable for all LEON variants if
24393         -mfix-ut699 is not specified.
24394         (leon3_load): Rename into...
24395         (ut699_load): ...this.  Enable for all LEON variants if -mfix-ut699
24396         is specified.
24398 2015-06-30  Marek Polacek  <polacek@redhat.com>
24400         * fold-const.c (fold_binary_loc): Move ~X | X folding ...
24401         * match.pd: ... here.
24403 2015-06-30  Richard Biener  <rguenther@suse.de>
24405         * target-insns.def (canonicalize_funcptr_for_compare): Add.
24406         * fold-const.c (build_range_check): Replace uses of
24407         HAVE_canonicalize_funcptr_for_compare.
24408         (fold_widened_comparison): Likewise.
24409         (fold_sign_changed_comparison): Likewise.
24410         * dojump.c: Include "target.h".
24411         (do_compare_and_jump): Replace uses of
24412         HAVE_canonicalize_funcptr_for_compare and
24413         gen_canonicalize_funcptr_for_compare.
24414         * expr.c (do_store_flag): Likewise.
24416 2015-06-30  Tom de Vries  <tom@codesourcery.com>
24418         PR tree-optimization/66652
24419         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
24420         max_loop_iterations to determine if nit + 1 overflows.
24422 2015-06-30  Richard Biener  <rguenther@suse.de>
24424         * tree-vrp.c (register_edge_assert_for_2): Also register
24425         asserts for dominating conversion results.
24427 2015-06-30  Bin Cheng  <bin.cheng@arm.com>
24429         * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
24430         field in struct iv.
24432 2015-06-29  Jack Howarth  <howarth.at.gcc@gmail.com>
24434         PR target/66509
24435         * configure.ac: Fix filds and fildq test for 64-bit.
24436         * configure: Regenerated.
24438 2015-06-29  Nathan Sidwell  <nathan@codesourcery.com>
24440         * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
24441         (nvptx_reorg): Here.  Keep the non-subreg pieces.
24443 2015-06-29  H.J. Lu  <hongjiu.lu@intel.com>
24445         * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
24446         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
24448 2015-06-29  Uros Bizjak  <ubizjak@gmail.com>
24450         * config/i386/i386.md (*jcc_1): Use %! in asm template.
24451         Set attribute "length_nobnd" instead of "length".
24452         (*jcc_2): Ditto.
24453         (jump): Ditto.
24454         (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
24456 2015-06-29  Sandra Loosemore  <sandra@codesourcery.com>
24458         * config/nios2/nios2.c (nios2_delegitimize_address): Make
24459         assert less restrictive.
24461 2015-06-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
24463         PR fortran/66605
24464         * cgraphunit.c (cgraph_node::finalize_function): Do not call
24465         do_warn_unused_parameter.
24466         * function.c (do_warn_unused_parameter): Move from here.
24467         * function.h (do_warn_unused_parameter): Do not declare.
24469 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
24471         PR target/65697
24472         * gcc.target/arm/armv-sync-comp-swap.c: New.
24473         * gcc.target/arm/armv-sync-op-acquire.c: New.
24474         * gcc.target/arm/armv-sync-op-full.c: New.
24475         * gcc.target/arm/armv-sync-op-release.c: New.
24477 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
24479         PR target/65697
24480         * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
24481         initial acquire barrier with final barrier.
24483 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
24485         PR target/65697
24486         * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
24487         initial acquire barrier with final barrier.
24489 2015-06-29  Richard Henderson  <rth@redhat.com>
24491         * config/i386/constraints.md (Bf): New constraint.
24492         * config/i386/i386-c.c (ix86_target_macros): Define
24493         __GCC_ASM_FLAG_OUTPUTS__.
24494         * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
24495         as flags outputs.
24496         * doc/extend.texi (FlagOutputOperands): Document them.
24498 2015-06-29  Jiong Wang  <jiong.wang@arm.com>
24500         * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
24501         * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
24502         unspec name.
24503         (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
24504         * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
24505         SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
24506         (aarch64_symbol_context): Ditto.
24507         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
24508         and use new pattern name.
24509         (aarch64_expand_mov_immediate): Ditto.
24510         (aarch64_print_operand): Ditto.
24511         (aarch64_classify_tls_symbol): Ditto.
24513 2015-06-29  Marek Polacek  <polacek@redhat.com>
24514             Marc Glisse  <marc.glisse@inria.fr>
24516         * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
24517         * match.pd: ... pattern here.
24519 2015-06-29  Tom de Vries  <tom@codesourcery.com>
24521         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
24522         function structure.
24524 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
24526         * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
24527         feature description, split out the native option, add a link to
24528         the feature documentation, rearrange and slightly rewrite text.
24529         (Aarch64 options, -mcpu): Likewise.
24530         (Aarch64 options, Feature Modifiers): Add an anchor.  Mention
24531         +rdma implies Adv. SIMD.
24533 2015-06-29  Marek Polacek  <polacek@redhat.com>
24535         PR c/66322
24536         * function.c (stack_protect_epilogue): Remove a cast to int.
24537         * doc/invoke.texi: Update -Wswitch-bool description.
24539 2015-06-29  Richard Biener  <rguenther@suse.de>
24541         * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
24542         * fold-const.c (fold_binary_loc): Move &A - &B simplification
24543         via ptr_difference_const ...
24544         * match.pd: ... here.
24545         When matching (X ^ Y) == Y also match with swapped operands.
24547 2015-06-29  Richard Biener  <rguenther@suse.de>
24549         * lto-streamer.h (LTO_major_version): Bump to 5.
24551 2015-06-29  Richard Biener  <rguenther@suse.de>
24553         PR tree-optimization/66677
24554         * tree-vect-stmts.c (vect_transform_stmt): Make assert about
24555         STMT_VINFO_VEC_STMT clobbering less strict.
24557 2015-06-29  Kugan Vivekanandarajah  <kuganv@linaro.org>
24559         PR middle-end/64130
24560         * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
24561         division, compute max and min when value ranges for dividend and
24562         divisor are available.
24564 2015-06-28  Chung-Lin Tang <cltang@codesourcery.com>
24565             Sandra Loosemore <sandra@codesourcery.com>
24567         * regrename.h (regrename_do_replace): Change to return bool.
24568         * regrename.c (rename_chains): Check return value of
24569         regname_do_replace.
24570         (regrename_do_replace): Re-validate the modified insns and
24571         return bool status.
24572         * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
24573         Update to match rename_chains changes.
24574         * config/c6x/c6x.c (try_rename_operands): Assert that
24575         regrename_do_replace returns true.
24577 2015-06-28  Uros Bizjak  <ubizjak@gmail.com>
24579         * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
24580         operand 2 here.  Use copy_addr_to_reg to copy non-index
24581         register operand 2 to a temporary.
24582         (<mode>_stx): Ditto for operand 1.
24583         (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
24584         * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
24585         (ix86_store_bounds): Ditto.
24587 2015-06-27  Patrick Palka  <ppalka@gcc.gnu.org>
24589         * print-tree.c (print_node) [TREE_VEC]: Print its length.
24591 2015-06-26  Andrew MacLeod  <amacleod@redhat.com>
24593         * gimple.c (gimple_call_set_fndecl): Remove.
24594         * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
24595         build1_loc directly instead of build_fold_addr_expr_loc.
24597 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
24599         * hash-map.h (hash_map::traverse): Use the definition of the
24600         Key typedef rather than the typedef itself.
24602 2015-06-26  Martin Jambor  <mjambor@suse.cz>
24604         PR debug/66301
24605         * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
24606         NULL instead of calling dump_enabled_p.
24608 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
24610         * config/aarch64/aarch64.opt: (override): New.
24611         * doc/invoke.texi (override): Document.
24612         * config/aarch64/aarch64.c (aarch64_flag_desc): New
24613         (aarch64_fusible_pairs): Likewise.
24614         (aarch64_tuning_flags): Likewise.
24615         (aarch64_tuning_override_function): Likewise.
24616         (aarch64_tuning_override_functions): Likewise.
24617         (aarch64_parse_one_option_token): Likewise.
24618         (aarch64_parse_boolean_options): Likewise.
24619         (aarch64_parse_fuse_string): Likewise.
24620         (aarch64_parse_tune_string): Likewise.
24621         (aarch64_parse_one_override_token): Likewise.
24622         (aarch64_parse_override_string): Likewise.
24623         (aarch64_override_options): Parse the -override string if it
24624         is present.
24626 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
24628         * config/aarch64/aarch64-protos.h (tune_params): Remove
24629         const from members.
24630         (aarch64_tune_params): Remove const, change to no longer be
24631         a pointer.
24632         * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
24633         change to no longer be a pointer, initialize to generic_tunings.
24634         (aarch64_min_divisions_for_recip_mul): Change dereference of
24635         aarch64_tune_params to member access.
24636         (aarch64_reassociation_width): Likewise.
24637         (aarch64_rtx_mult_cost): Likewise.
24638         (aarch64_address_cost): Likewise.
24639         (aarch64_branch_cost): Likewise.
24640         (aarch64_rtx_costs): Likewise.
24641         (aarch64_register_move_cost): Likewise.
24642         (aarch64_memory_move_cost): Likewise.
24643         (aarch64_sched_issue_rate): Likewise.
24644         (aarch64_builtin_vectorization_cost): Likewise.
24645         (aarch64_override_options): Take a copy of the selected tuning
24646         struct in to aarch64_tune_params, rather than just setting
24647         a pointer, change dereferences of aarch64_tune_params to member
24648         accesses.
24649         (aarch64_override_options_after_change): Change dereferences of
24650         aarch64_tune_params to member access.
24651         (aarch64_macro_fusion_p): Likewise.
24652         (aarch_macro_fusion_pair_p): Likewise.
24653         * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
24655 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
24657         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
24658         (aarch64_tune_flags): Likewise.
24659         (AARCH64_TUNE_FMA_STEERING): Likewise.
24660         * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
24661         to AARCH64_FL_USE_FMA_STEERING_PASS.
24662         (cortex-a57.cortex-a53): Likewise.
24663         (cortex-a72): Use cortexa72_tunings.
24664         (cortex-a72.cortex-a53): Likewise.
24665         (exynos-m1): Likewise.
24666         * config/aarch64/aarch64-protos.h (tune_params): Add
24667         a field: extra_tuning_flags.
24668         * config/aarch64/aarch64-tuning-flags.def: New.
24669         * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
24670         (aarch64_extra_tuning_flags): Likewise.
24671         (aarch64_tune_params): Declare here.
24672         * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
24673         (cortexa53_tunings): Likewise.
24674         (cortexa57_tunings): Likewise.
24675         (thunderx_tunings): Likewise.
24676         (xgene1_tunings): Likewise.
24677         (cortexa72_tunings): New.
24678         * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
24679          (gate): Check against aarch64_tune_params.
24680         * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
24681         aarch64-protos.h.
24683 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
24685         * config/aarch64/aarch64-fusion-pairs.def: New.
24686         * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
24687         * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
24688         aarch64_fusion_pairs.
24689         (AARCH64_FUSE_MOV_MOVK): Likewise.
24690         (AARCH64_FUSE_ADRP_ADD): Likewise.
24691         (AARCH64_FUSE_MOVK_MOVK): Likewise.
24692         (AARCH64_FUSE_ADRP_LDR): Likewise.
24693         (AARCH64_FUSE_CMP_BRANCH): Likewise.
24695 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
24697         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
24698         SYMBOL_SMALL_GOT_28K.
24699         * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
24700         relocation modifiers.
24701         (unspec): New enum "UNSPEC_GOTMALLPIC28K.
24702         (ldr_got_small_28k_<mode>): New.
24703         (ldr_got_small_28k_sidi): New.
24704         * config/aarch64/iterators.md (got_modifier): New mode iterator.
24705         * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
24706         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
24707         SYMBOL_SMALL_GOT_28K.
24708         (aarch64_rtx_costs): Add costs for new instruction sequences.
24709         (initialize_aarch64_code_model): Initialize new model.
24710         (aarch64_classify_symbol): Recognize new model and new symbol classification.
24711         (aarch64_asm_preferred_eh_data_format): Support new model.
24712         (aarch64_load_symref_appropriately): Generate new instruction
24713         sequences for -fpic.
24714         (TARGET_USE_PSEUDO_PIC_REG): New definition.
24715         (aarch64_use_pseudo_pic_reg): New function.
24717 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
24719         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
24720         SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
24721         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
24722         (aarch64_expand_mov_immediate): Ditto.
24723         (aarch64_print_operand): Ditto.
24724         (aarch64_classify_symbol): Ditto.
24726 2015-06-26  Nathan Sidwell  <nathan@codesourcery.com>
24728         * config/nvptx/nvptx.md (call_operation): Remove unused variables.
24730 2015-06-26  Bin Cheng  <bin.cheng@arm.com>
24732         PR bootstrap/66638
24733         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
24734         assertion failed.  Remove assertion itself.
24736 2015-06-26  Richard Biener  <rguenther@suse.de>
24738         * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
24739         and -A CMP CST -> A CMP -CST which is redundant with a pattern
24740         in match.pd.
24741         Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
24742         (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
24743         (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
24744         * match.pd: ... patterns here.
24746 2015-06-26  Marek Polacek  <polacek@redhat.com>
24748         * match.pd ((x | y) & ~(x & y) -> x ^ y,
24749         (x | y) & (~x ^ y) -> x & y): New patterns.
24751 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
24753         * rtl.h (emit): Add an optional boolean parameter to control
24754         whether barriers are emitted.
24755         * emit-rtl.c (emit): Likewise.
24756         * gensupport.c (get_emit_function): Return null rather than "emit".
24757         * genemit.c (gen_emit_seq): Handle the null return value.
24758         Don't emit barriers after the final instruction in the sequence.
24759         * gentarget-def.c (main): Don't emit barriers after the instruction.
24761 2015-06-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24763         * config/arm/arm.c (arm_output_multireg_pop): Fix use of
24764         TARGET_UNIFIED_ASM.
24766 2015-06-26  Richard Biener  <rguenther@suse.de>
24768         * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
24770 2015-06-26  Richard Biener  <rguenther@suse.de>
24772         * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
24773         irrespective on whether the inner operation has a single use
24774         of both off are constant.
24776 2015-06-26  Uros Bizjak  <ubizjak@gmail.com>
24777             Segher Boessenkool  <segher@kernel.crashing.org>
24779         PR target/66412
24780         * config/i386/i386.md (various splitters): Use shallow_copy_rtx
24781         before doing PUT_MODE or PUT_CODE on operands to avoid
24782         in-place RTX modification.
24784 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
24786         * gentarget-def.c (def_target_insn): Cast return of strtol to
24787         unsigned int.
24789 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
24791         * gimple.h (gimple_call_set_fn): Move inline function.
24792         * gimple.c (gimple_call_set_fn): Relocate here.
24794 2015-06-25  Oleg Endo  <olegendo@gcc.gnu.org>
24796         PR target/65979
24797         PR target/66611
24798         * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
24799         the replacement insn will work.
24801 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
24803         * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
24804         by default.
24806 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
24808         * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
24809         * cgraph.h: Include ipa-ref.h and plugin-api.h.
24810         (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
24811         (symtab_node::address_can_be_compared_p): Move function.
24812         * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
24813         definition here.
24814         * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
24815         * auto-profile.c: Likewise.
24816         * bb-reorder.c: Likewise.
24817         * builtins.c: Likewise.
24818         * calls.c: Likewise.
24819         * cfgexpand.c: Likewise.
24820         * cgraphbuild.c: Likewise.
24821         * cgraphclones.c: Likewise.
24822         * cgraphunit.c: Likewise.
24823         * combine.c: Likewise.
24824         * coverage.c: Likewise.
24825         * data-streamer-in.c: Likewise.
24826         * data-streamer-out.c: Likewise.
24827         * data-streamer.c: Likewise.
24828         * dbxout.c: Likewise.
24829         * dwarf2out.c: Likewise.
24830         * except.c: Likewise.
24831         * expr.c: Likewise.
24832         * final.c: Likewise.
24833         * fold-const.c: Likewise.
24834         * ggc-page.c: Likewise.
24835         * gimple-fold.c: Likewise.
24836         * gimple-iterator.c: Likewise.
24837         * gimple-pretty-print.c: Likewise.
24838         * gimple-streamer-in.c: Likewise.
24839         * gimple-streamer-out.c: Likewise.
24840         * gimple.c: Likewise.
24841         * gimplify.c: Likewise.
24842         * ipa-chkp.c: Likewise.
24843         * ipa-comdats.c: Likewise.
24844         * ipa-cp.c: Likewise.
24845         * ipa-devirt.c: Likewise.
24846         * ipa-icf-gimple.c: Likewise.
24847         * ipa-icf.c: Likewise.
24848         * ipa-inline-analysis.c: Likewise.
24849         * ipa-inline-transform.c: Likewise.
24850         * ipa-inline.c: Likewise.
24851         * ipa-polymorphic-call.c: Likewise.
24852         * ipa-profile.c: Likewise.
24853         * ipa-prop.c: Likewise.
24854         * ipa-pure-const.c: Likewise.
24855         * ipa-ref.c: Likewise.
24856         * ipa-reference.c: Likewise.
24857         * ipa-split.c: Likewise.
24858         * ipa-utils.c: Likewise.
24859         * ipa-visibility.c: Likewise.
24860         * ipa.c: Likewise.
24861         * langhooks.c: Likewise.
24862         * lto-cgraph.c: Likewise.
24863         * lto-compress.c: Likewise.
24864         * lto-opts.c: Likewise.
24865         * lto-section-in.c: Likewise.
24866         * lto-section-out.c: Likewise.
24867         * lto-streamer-in.c: Likewise.
24868         * lto-streamer-out.c: Likewise.
24869         * lto-streamer.c: Likewise.
24870         * omp-low.c: Likewise.
24871         * opts-global.c: Likewise.
24872         * passes.c: Likewise.
24873         * predict.c: Likewise.
24874         * print-tree.c: Likewise.
24875         * profile.c: Likewise.
24876         * ree.c: Likewise.
24877         * sanopt.c: Likewise.
24878         * stor-layout.c: Likewise.
24879         * symtab.c: Likewise.
24880         * toplev.c: Likewise.
24881         * trans-mem.c: Likewise.
24882         * tree-cfg.c: Likewise.
24883         * tree-chkp.c: Likewise.
24884         * tree-eh.c: Likewise.
24885         * tree-emutls.c: Likewise.
24886         * tree-inline.c: Likewise.
24887         * tree-nested.c: Likewise.
24888         * tree-parloops.c: Likewise.
24889         * tree-pretty-print.c: Likewise.
24890         * tree-profile.c: Likewise.
24891         * tree-sra.c: Likewise.
24892         * tree-ssa-alias.c: Likewise.
24893         * tree-ssa-live.c: Likewise.
24894         * tree-ssa-loop-ivcanon.c: Likewise.
24895         * tree-ssa-loop-ivopts.c: Likewise.
24896         * tree-ssa-pre.c: Likewise.
24897         * tree-ssa-sccvn.c: Likewise.
24898         * tree-ssa-strlen.c: Likewise.
24899         * tree-ssa-structalias.c: Likewise.
24900         * tree-streamer-in.c: Likewise.
24901         * tree-streamer-out.c: Likewise.
24902         * tree-streamer.c: Likewise.
24903         * tree-switch-conversion.c: Likewise.
24904         * tree-tailcall.c: Likewise.
24905         * tree-vect-data-refs.c: Likewise.
24906         * tree-vect-stmts.c: Likewise.
24907         * tree-vectorizer.c: Likewise.
24908         * tree.c: Likewise.
24909         * tsan.c: Likewise.
24910         * ubsan.c: Likewise.
24911         * value-prof.c: Likewise.
24912         * varasm.c: Likewise.
24913         * varpool.c: Likewise.
24914         * config/arm/arm.c: Likewise.
24915         * config/bfin/bfin.c: Likewise.
24916         * config/c6x/c6x.c: Likewise.
24917         * config/cris/cris.c: Likewise.
24918         * config/darwin-c.c: Likewise.
24919         * config/darwin.c: Likewise.
24920         * config/i386/i386.c: Likewise.
24921         * config/i386/winnt.c: Likewise.
24922         * config/microblaze/microblaze.c: Likewise.
24923         * config/mips/mips.c: Likewise.
24924         * config/rs6000/rs6000.c: Likewise.
24925         * config/rx/rx.c: Likewise.
24926         * config/s390/s390.c: Likewise.
24927         * config/tilegx/mul-tables.c: Likewise.
24929 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
24931         * config/aarch64/aarch64.c, config/alpha/alpha.c,
24932         config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
24933         config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
24934         config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
24935         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
24936         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
24937         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
24938         config/microblaze/microblaze.c, config/mips/mips.c,
24939         config/mmix/mmix.c, config/mn10300/mn10300.c,
24940         config/moxie/moxie.c, config/msp430/msp430.c,
24941         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
24942         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
24943         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
24944         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
24945         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
24946         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
24947         config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
24948         target-def.h include.
24949         * config/ft32/ft32.c: Likewise.  Fix misapplied hunk.
24951 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
24953         * Makefile.in (TARGET_DEF): Add target-insns.def.
24954         (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
24955         (build/gentarget-def.o): New rule.
24956         (genprogrtl): Add target-def.
24957         * target-insns.def, gentarget-def.c: New files.
24958         * target.def: Add targetm.have_* and targetm.gen_* hooks,
24959         based on the contents of target-insns.def.
24960         * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
24961         (HAVE_return, gen_return): Delete.
24962         * target-def.h: Include insn-target-def.h.
24963         * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
24964         instead of direct calls.  Rely on them to do the appropriate assertions.
24965         * function.c (gen_return_pattern): Likewise.  Return an rtx_insn *.
24966         (convert_jumps_to_returns): Use targetm interface instead of
24967         direct calls.
24968         (thread_prologue_and_epilogue_insns): Likewise.
24969         * reorg.c (find_end_label, dbr_schedule): Likewise.
24970         * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
24971         * shrink-wrap.c (convert_to_simple_return): Likewise.
24972         (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
24974 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
24976         * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
24977         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
24978         config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
24979         config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
24980         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
24981         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
24982         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
24983         config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
24984         config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
24985         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
24986         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
24987         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
24988         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
24989         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
24990         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
24991         config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
24992         includes to end.
24994 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
24996         * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
24997         (unbounded_int_hashmap_traits::key_type): Likewise.
24998         * hash-map.h (hash_map): Get the key type from the traits.
24999         * hash-traits.h (default_hash_traits): By default, inherit from the
25000         template parameter.
25001         * alias.c (alias_set_traits): Delete.
25002         (alias_set_entry_d::children): Use alias_set_hash as the first
25003         template parameter.
25004         (record_alias_subset): Update accordingly.
25005         * except.c (tree_hash_traits): Delete.
25006         (type_to_runtime_map): Use tree_hash as the first template parameter.
25007         (init_eh): Update accordingly.
25008         * genmatch.c (capture_id_map_hasher): Delete.
25009         (cid_map_t): Use nofree_string_hash as first template parameter.
25010         * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
25011         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
25012         Use symbol_compare_hash as the first template parameter in
25013         subdivide_hash_map.
25014         * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
25015         (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
25016         template parameter.
25017         * passes.c (pass_registry_hasher): Delete.
25018         (name_to_pass_map): Use nofree_string_hash as the first template
25019         parameter.
25020         (register_pass_name): Update accordingly.
25021         * sanopt.c (sanopt_tree_map_traits): Delete.
25022         (sanopt_tree_triplet_map_traits): Delete.
25023         (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
25024         template parameter.
25025         (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
25026         the first template parameter.
25027         * sese.c (rename_map_hasher): Delete.
25028         (rename_map_type): Use tree_ssa_name_hash as the first template
25029         parameter.
25030         * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
25031         (function_summary::m_map): Use map_hash as the first template
25032         parameter.
25033         (function_summary::release): Update accordingly.
25034         * tree-if-conv.c (phi_args_hash_traits): Delete.
25035         (predicate_scalar_phi): Use tree_operand_hash as the first template
25036         parameter to phi_arg_map.
25037         * tree-inline.h (dependence_hasher): Delete.
25038         (copy_body_data::dependence_map): Use dependence_hash as the first
25039         template parameter.
25040         * tree-inline.c (remap_dependence_clique): Update accordingly.
25041         * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
25042         (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
25043         parameter.
25044         (addr_stridxptr): Update accordingly.
25045         * value-prof.c (profile_id_traits): Delete.
25046         (cgraph_node_map): Use profile_id_hash as the first template
25047         parameter.
25048         (init_node_map): Update accordingly.
25049         * config/alpha/alpha.c (string_traits): Delete.
25050         (machine_function::links): Use nofree_string_hash as the first
25051         template parameter.
25052         (alpha_use_linkage, alpha_write_linkage): Update accordingly.
25053         * config/m32c/m32c.c (pragma_traits): Delete.
25054         (pragma_htab): Use nofree_string_hash as the first template parameter.
25055         (m32c_note_pragma_address): Update accordingly.
25056         * config/mep/mep.c (pragma_traits): Delete.
25057         (pragma_htab): Use nofree_string_hash as the first template parameter.
25058         (mep_note_pragma_flag): Update accordingly.
25059         * config/mips/mips.c (mips16_flip_traits): Delete.
25060         (mflip_mips16_htab): Use nofree_string_hash as the first template
25061         parameter.
25062         (mflip_mips16_use_mips16_p): Update accordingly.
25063         (local_alias_traits): Delete.
25064         (mips16_local_aliases): Use nofree_string_hash as the first template
25065         parameter.
25066         (mips16_local_alias): Update accordingly.
25068 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
25070         * hash-map-traits.h (default_hashmap_traits): Delete.
25072 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
25074         * hash-map-traits.h (unbounded_hashmap_traits): New class.
25075         (unbounded_int_hashmap_traits): Likewise.
25076         * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
25078 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
25080         * ipa-icf.h (symbol_compare_hash): New class.
25081         (symbol_compare_hashmap_traits): Use it.
25082         * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
25083         (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
25084         (mem_alloc_description::reverse_mem_map_t): Remove redundant
25085         default_hashmap_traits.
25086         * sanopt.c (sanopt_tree_triplet_hash): New class.
25087         (sanopt_tree_triplet_map_traits): Use it.
25089 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
25091         * gengtype-parse.c (require_template_declaration): Allow '+' in
25092         template parameters.  Consolidate cases.
25093         * hash-traits.h (int_hash): New class.
25094         * alias.c (alias_set_hash): New structure.
25095         (alias_set_traits): Use it.
25096         * symbol-summary.h (function_summary::map_hash): New class.
25097         (function_summary::summary_hashmap_traits): Use it.
25098         * tree-inline.h (dependence_hash): New class.
25099         (dependence_hasher): Use it.
25100         * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
25101         * value-prof.c (profile_id_hash): New class.
25102         (profile_id_traits): Use it.
25104 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
25106         * config/mips/mips.c (mips16_flip_traits): Use it.
25107         (local_alias_traits, mips16_local_aliases): Convert from a map of
25108         rtxes to a map of symbol names.
25109         (mips16_local_alias): Update accordingly.
25111 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
25113         * hash-traits.h (string_hash, nofree_string_hash): New classes.
25114         * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
25115         * passes.c (pass_registry_hasher): Likewise.
25116         * config/alpha/alpha.c (string_traits): Likewise.
25117         * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
25118         * config/m32c/m32c.c (pragma_traits): Likewise.
25119         * config/mep/mep.c (pragma_traits): Likewise.
25121 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
25123         * tree-hash-traits.h (tree_hash): New class.
25124         * except.c: Include tree-hash-traits.h.
25125         (tree_hash_traits): Use tree_hash.
25127 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
25129         * tree-hash-traits.h (tree_ssa_name_hasher): New class.
25130         * sese.c: Include tree-hash-traits.h.
25131         (rename_map_hasher): Use tree_ssa_name_hasher.
25133 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
25135         * tree-hash-traits.h (tree_decl_hash): New class.
25136         * tree-ssa-strlen.c: Include tree-hash-traits.h.
25137         (stridxlist_hash_traits): Use tree_decl_hash.
25139 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
25141         * tree-hash-traits.h: New file.
25142         (tree_operand_hash): New class.
25143         * sanopt.c: Include tree-hash-traits.h.
25144         (sanopt_tree_map_traits): Use tree_operand_hash.
25145         * tree-if-conv.c: Include tree-hash-traits.h.
25146         (phi_args_hash_traits): Use tree_operand_hash.
25147         * tree-ssa-uncprop.c: Include tree-hash-traits.h.
25148         (val_ssa_equiv_hash_traits): Use tree_operand_hash.
25150 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
25152         * hash-map-traits.h: Include hash-traits.h.
25153         (simple_hashmap_traits): New class.
25154         * mem-stats.h (hash_map): Change the default traits to
25155         simple_hashmap_traits<default_hash_traits<Key> >.
25157 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
25159         * hash-table.h: Update comments.
25161 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
25163         * hash-traits.h (default_hash_traits): New structure.
25164         * hash-set.h (default_hashset_traits): Delete.
25165         (hash_set): Use default_hash_traits<Key> instead of
25166         default_hashset_traits.  Delete hash_entry type and use Key directly.
25167         * ipa-devirt.c (pair_traits): Delete.
25168         (default_hash_traits <type_pair>): Override.
25169         (odr_subtypes_equivalent_p): Remove pair_types template parameter.
25170         (odr_types_equivalent_p, add_type_duplicate): Likewise.
25172 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
25174         * hash-traits.h (typed_noop_remove): Don't require a pointer type.
25176 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
25178         * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
25179         (has_is_empty, is_empty_helper): Delete.
25180         (has_mark_deleted, mark_deleted_helper): Delete.
25181         (has_mark_empty, mark_empty_helper): Delete.
25182         (hash_table::is_deleted): Call the Descriptor unconditionally.
25183         (hash_table::is_empty): Likewise.
25184         (hash_table::mark_deleted): Likewise.
25185         (hash_table::mark_empty): Likewise.
25187 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
25189         * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash.  Remove
25190         redundant typedefs and members.
25191         * coverage.c (counts_entry): Inherit from pointer_hash.  Remove
25192         redundant typedefs.
25193         * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
25194         * ipa-devirt.c (odr_name_hasher): Likewise.
25195         (polymorphic_call_target_hasher): Likewise.
25196         * ira-costs.c (cost_classes_hasher): Likewise.
25197         * statistics.c (stats_counter_hasher): Likewise.
25198         * trans-mem.c (log_entry_hasher): Likewise.
25199         * tree-ssa-dom.c (expr_elt_hasher): Likewise.
25200         * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
25201         * tree-ssa-tail-merge.c (same_succ_def): Likewise.
25202         * var-tracking.c (variable_hasher): Likewise.
25203         * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
25204         Remove redundant typedefs and members.
25206 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
25208         * hash-traits.h (ggc_cache_hasher): Rename to...
25209         (ggc_cache_remove): ...this and remove typedefs.
25210         (ggc_cache_ptr_hash): New class.
25211         * hash-table.h: Update commentary.
25212         * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
25213         rather than ggc_cache_hasher.
25214         (const_wide_int_hasher, reg_attr_hasher): Likewise.
25215         (const_double_hasher, const_fixed_hasher): Likewise.
25216         * function.c (insn_cache_hasher): Likewise.
25217         * trans-mem.c (tm_wrapper_hasher): Likewise.
25218         * tree.h (tree_decl_map_cache_hasher): Likewise.
25219         * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
25220         (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
25221         * ubsan.c (tree_type_map_cache_hasher): Likewise.
25222         * varasm.c (tm_clone_hasher): Likewise.
25223         * config/i386/i386.c (dllimport_hasher): Likewise.
25224         * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
25225         (tree_hasher): Likewise.
25227 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
25229         * hash-traits.h (ggc_hasher): Rename to...
25230         (ggc_remover): ...this and remove typedefs.
25231         (ggc_cache_hasher): Update accordingly.  Add typedefs.
25232         (ggc_ptr_hash): New class.
25233         * hash-table.h: Update comment.
25234         * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
25235         ggc_hasher.
25236         * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
25237         (tree_descriptor_hasher): Likewise.
25238         * cgraph.c (function_version_hasher): Likewise.
25239         * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
25240         (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
25241         (dw_loc_list_hasher, addr_hasher): Likewise.
25242         * function.h (used_type_hasher): Likewise.
25243         * function.c (temp_address_hasher): Likewise.
25244         * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
25245         * libfuncs.h (libfunc_hasher): Likewise.
25246         * lto-streamer.h (decl_state_hasher): Likewise.
25247         * optabs.c (libfunc_decl_hasher): Likewise.
25248         * tree-scalar-evolution.c (scev_info_hasher): Likewise.
25249         * varasm.c (section_hasher, object_block_hasher): Likewise.
25250         (const_rtx_desc_hasher): Likewise.
25251         * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
25252         * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
25254 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
25256         * hash-traits.h (free_ptr_hash): New class.
25257         * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
25258         rather than typed_free_remove.  Remove redudant typedefs.
25259         (external_ref_hasher): Likewise.
25260         * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
25261         (ehspec_hasher): Likewise.
25262         * ggc-common.c (saving_hasher): Likewise.
25263         * gimplify.c (gimplify_hasher): Likewise.
25264         * haifa-sched.c (delay_i2_hasher): Likewise.
25265         * loop-invariant.c (invariant_expr_hasher): Likewise.
25266         * loop-iv.c (biv_entry_hasher): Likewise.
25267         * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
25268         * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
25269         * tree-cfg.c (locus_discrim_hasher): Likewise.
25270         * tree-eh.c (finally_tree_hasher): Likewise.
25271         * tree-into-ssa.c (var_info_hasher): Likewise.
25272         * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
25273         * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
25274         * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
25275         * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
25276         * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
25277         * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
25278         (shared_bitmap_hasher): Likewise.
25279         * tree-ssa-threadupdate.c (redirection_data): Likewise.
25280         * tree-vectorizer.h (peel_info_hasher): Likewise.
25281         * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
25282         * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
25284 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
25286         * hash-table.h: Update comments.
25287         * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
25288         (nofree_ptr_hash): New class.
25289         * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
25290         than typed_noop_remove.  Remove redudant typedefs.
25291         * attribs.c (attribute_hasher): Likewise.
25292         * cfg.c (bb_copy_hasher): Likewise.
25293         * cselib.c (cselib_hasher): Likewise.
25294         * dse.c (invariant_group_base_hasher): Likewise.
25295         * dwarf2cfi.c (trace_info_hasher): Likewise.
25296         * dwarf2out.c (macinfo_entry_hasher): Likewise.
25297         (comdat_type_hasher, loc_list_hasher): Likewise.
25298         * gcse.c (pre_ldst_expr_hasher): Likewise.
25299         * genmatch.c (id_base): Likewise.
25300         * genrecog.c (test_pattern_hasher): Likewise.
25301         * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
25302         * haifa-sched.c (delay_i1_hasher): Likewise.
25303         * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
25304         * ipa-icf.h (congruence_class_group_hash): Likewise.
25305         * ipa-profile.c (histogram_hash): Likewise.
25306         * ira-color.c (allocno_hard_regs_hasher): Likewise.
25307         * lto-streamer.h (string_slot_hasher): Likewise.
25308         * lto-streamer.c (tree_entry_hasher): Likewise.
25309         * plugin.c (event_hasher): Likewise.
25310         * postreload-gcse.c (expr_hasher): Likewise.
25311         * store-motion.c (st_expr_hasher): Likewise.
25312         * tree-sra.c (uid_decl_hasher): Likewise.
25313         * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
25314         (ssa_name_var_hash): Likewise.
25315         * tree-ssa-live.c (tree_int_map_hasher): Likewise.
25316         * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
25317         * tree-ssa-pre.c (pre_expr_d): Likewise.
25318         * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
25319         * vtable-verify.h (registration_hasher): Likewise.
25320         * vtable-verify.c (vtbl_map_hasher): Likewise.
25321         * config/arm/arm.c (libcall_hasher): Likewise.
25322         * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
25323         * config/ia64/ia64.c (bundle_state_hasher): Likewise.
25324         * config/sol2.c (comdat_entry_hasher): Likewise.
25325         * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
25326         (print_fold_checksum, fold_checksum_tree): Likewise.
25327         (debug_fold_checksum, fold_build1_stat_loc): Likewise.
25328         (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
25329         (fold_build_call_array_loc): Likewise.
25330         * tree-ssa-ccp.c (gimple_htab): Likewise.
25331         * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
25332         rather than pointer_type.
25334 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
25336         * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
25337         (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
25339 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
25341         * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
25342         (ggc_hasher::ggc_mx): Likewise.
25343         (ggc_cache_hasher): Inherit from ggc_hasher.  Remove definitions
25344         that duplicate ggc_hasher ones.
25346 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
25348         * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
25349         (gt_cleare_cache): Check here for deleted and empty entries.
25350         Replace handle_cache_entry with a call to keep_cache_entry.
25351         * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
25352         (ggc_cache_hasher::keep_cache_entry): New function.
25353         * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
25354         (tm_wrapper_hasher::keep_cache_entry): New function.
25355         * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
25356         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
25357         * tree.c (type_cache_hasher::handle_cache_entry): Delete.
25358         (type_cache_hasher::keep_cache_entry): New function.
25359         (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
25360         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
25361         * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
25362         (tree_type_map_cache_hasher::keep_cache_entry): New function.
25363         * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
25364         (tm_clone_hasher::keep_cache_entry): New function.
25365         * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
25366         (dllimport_hasher::keep_cache_entry): New function.
25368 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
25370         * hash-table.h: Include hash-traits.h.
25371         (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
25372         (ggc_cache_hasher): Move to...
25373         * hash-traits.h: ...this new file.
25375 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
25377         * tree-core.h (struct tree_optimization_option): Make opts a pointer to
25378         struct cl_optimization.
25379         * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
25380         * tree.c (make_node_stat): Allocate cl_optimization struct.
25381         (copy_node_stat): Allocate and copy cl_optimization struct.
25383 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
25385         * function.h (struct incoming_args): Move struct.
25386         (pass_by_reference, reference_callee_copied): Remove prototypes.
25387         * emit-rtl.h (struct incoming_args): Relocate struct here.
25388         * calls.h (pass_by_reference, reference_callee_copied): Relocate
25389         prototypes here.
25390         * function.c (pass_by_reference, reference_callee_copied): Move.
25391         * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
25392         * cfgloop.h: Don't include tm.h or hard-reg-set.h.
25393         * ipa-chkp.c: Include calls.h.
25395 2015-06-25  Andrew Macleod  <amacleod@redhat.com>
25397         * alias.h (alias_set_type): Move typedef.
25398         * coretypes.h (alias_set_type): Relocate typedef here.
25399         * rtl.h: Don't include alias.h.
25401 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
25403         * cgraph.h (cgraph_rtl_info): Move to rtl.h
25404         (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
25405         and instance.
25406         * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
25407         * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
25408         doesn't exist.
25409         * calls.c: Include hard-reg-set.h before rtl.h.
25410         * ira.c: Likewise.
25412 2015-06-25  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
25413             Vladimir Makarov  <vmakarov@redhat.com>
25415         * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
25416         Add assert.
25418 2015-06-25  Richard Biener  <rguenther@suse.de>
25420         * fold-const.c (fold_binary_loc): Move simplification of
25421         (X <<>> C1) & C2 ...
25422         * match.pd: ... here.
25424 2015-06-25  Eric Botcazou  <ebotcazou@adacore.com>
25426         * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
25428 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
25430         * match.pd: Add patterns for vec_conds between 1 and 0.
25432 2015-06-25  Richard Biener  <rguenther@suse.de>
25434         * tree-vect-stmts.c (vectorizable_conversion): Do not set
25435         STMT_VINFO_VEC_STMT for SLP.
25436         (vectorizable_store): Likewise.
25437         (vectorizable_load): Likewise.
25438         (vect_transform_stmt): Catch SLP vectorization clobbering
25439         STMT_VINFO_VEC_STMT.
25441 2015-06-25  Richard Biener  <rguenther@suse.de>
25443         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
25444         dumping.
25445         (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
25446         cleanup resulting dead code and parameters.
25447         (vect_transform_slp_perm_load): Adjust.
25449 2015-06-25  Nick Clifton  <nickc@redhat.com>
25451         * config/bfin/bfin.c (bfin_expand_prologue): Set
25452         current_function_static_stack_size if flag_stack_usage_info is set.
25453         * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
25454         * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
25455         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
25456         * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
25458 2015-06-25  Tom de Vries  <tom@codesourcery.com>
25460         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
25461         comment that the generated IV is unsigned.
25463 2015-06-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25465         PR target/29693
25466         * config/arm/arm.c (arm_dbx_register_number): Return
25467         DWARF_FRAME_REGISTERS by default.
25469 2015-06-25  Tom de Vries  <tom@codesourcery.com>
25471         * dominance.c (calculate_dominance_info): Fix verify_dominators call
25472         argument.  Call verify_dominator when reusing dominator info.
25474 2015-06-24  Kaz Kojima  <kkojima@gcc.gnu.org>
25476         PR target/66563
25477         * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
25478         an additional element of the unspec vector.  Modify indices
25479         of operands.
25480         (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
25481         * config/sh/sh.c (prepare_move_operands): Pass incremented
25482         const_int to gen_GOTaddr2picreg.
25483         (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
25485 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
25487         * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
25488         Condition on TARGET_FLOAT.
25490 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
25492         * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
25493         and (no)crypto.
25495 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
25497         * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
25499         * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
25500         aarch64_err_no_fpadvsimd.
25502         * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
25503         (aarch64_layout_arg, aarch64_init_cumulative_args): Use
25504         aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
25505         (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
25506         Turn error into assert, test TARGET_FLOAT.
25507         (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
25508         TARGET_FLOAT.
25510 2015-06-24  Aldy Hernandez  <aldyh@redhat.com>
25512         PR debug/66482
25513         * dwarf2out.c (gen_formal_parameter_die): Remove assert.
25515 2015-06-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
25517         * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
25519 2015-06-24  Renlin Li <renlin.li@arm.com>
25521         * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
25522         __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
25524 2015-06-24  Richard Biener  <rguenther@suse.de>
25526         * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
25527         (main): Likewise.
25528         (lower_opt_convert): Support lowering of conditional view_convert.
25529         (parser::parse_operation): Likewise.
25530         (parser::parse_for): Likewise.
25532 2015-06-24  Renlin Li  <renlin.li@arm.com>
25534         * varasm.c (emit_local): Use unsigned int for align variable.
25536 2015-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25538         PR target/63408
25539         * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
25540         for negative numbers.
25542 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
25544         PR rtl-optimization/66306
25545         * reload.c (find_reloads): Swap the match_dup info for
25546         commutative operands.
25548 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
25550         * config/s390/vx-builtins.md
25551         ("vec_scatter_element<mode>_<non_vec_int>")
25552         ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
25553         attribute with bhfgq.
25555 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
25557         * config/s390/s390-builtins.def: Fix vpopct instruction comments.
25559 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
25561         * config/s390/s390-builtin-types.def: Add flag to indicate the
25562         options under which the function type is needed.
25563         * config/s390/s390-builtins.def: Add flag to indicate the options
25564         under which the builtin is enabled.
25565         * config/s390/s390-builtins.h: Add flags parameter to macro
25566         definitions.
25567         (bflags_for_builtin): New function.
25568         (flags_for_builtin): Renamed to ...
25569         (opflags_for_builtin): ... this.
25570         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
25571         flags_for_builtin to bflags_for_builtin and
25572         flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
25573         * config/s390/s390.c: Add initialization of bflags_builtin and
25574         opflags_builtin arrays.
25575         Remove code for flags_builtin.
25576         (s390_init_builtins): Only create builtin function types if one of
25577         their flags is active.
25578         Only create builtins if all of their flags are active.
25579         (s390_expand_builtin): Rename flags_for_builtin to
25580         opflags_for_builtin.
25582 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
25584         * config/s390/vecintrin.h: Remove internal builtins.
25586 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
25588         * config/s390/s390.c (s390_secondary_reload): Fix check for
25589         GENERAL_REGS register class.
25591 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
25593         * config/s390/s390.c (s390_support_vector_misalignment): Call
25594         default implementation for !TARGET_VX.
25596 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
25598         * config/s390/s390.c (s390_legitimate_constant_p): Add
25599         TARGET_VX check.
25601 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
25603         * config/s390/s390.c (s390_vector_abi): New variable definition.
25604         (s390_check_type_for_vector_abi): New function.
25605         (TARGET_ASM_FILE_END): New macro definition.
25606         (s390_asm_file_end): New function.
25607         (s390_function_arg): Call s390_check_type_for_vector_abi.
25608         (s390_gimplify_va_arg): Likewise.
25609         * configure: Regenerate.
25610         * configure.ac: Check for .gnu_attribute Binutils feature.
25612 2015-06-23  Chen Gang  <gang.chen.5i5j@gmail.com>
25614         PR target/65803
25615         * config/bfin/bfin.c (hwloop_optimize): Initialize
25616         JUMP_LABEL for newly created jump.
25618 2015-06-23  Tristan Gingold  <gingold@adacore.com>
25620         * collect-utils.c (collect_wait): Unlink the response file here
25621         instead of...
25622         (do_wait): ...here.
25623         (utils_cleanup): ...and here.
25625 2015-06-23  Richard Sandiford  <richard.sandiford@arm.com>
25627         * df-scan.c: Don't include target-def.h.
25628         * targhooks.c: Likewise.
25629         * config/arm/arm-c.c: Likewise.
25630         * config/i386/i386-c.c: Likewise.
25631         * config/nds32/nds32-cost.c: Likewise.
25632         * config/nds32/nds32-fp-as-gp.c: Likewise.
25633         * config/nds32/nds32-intrinsic.c: Likewise.
25634         * config/nds32/nds32-isr.c: Likewise.
25635         * config/nds32/nds32-md-auxiliary.c: Likewise.
25636         * config/nds32/nds32-memory-manipulation.c: Likewise.
25637         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
25638         * config/nds32/nds32-predicates.c: Likewise.
25640 2015-06-23  Richard Biener  <rguenther@suse.de>
25642         PR tree-optimization/66636
25643         * tree-vect-stmts.c (vectorizable_store): Properly compute the
25644         def type for further defs for strided stores.
25646 2015-06-23  Nathan Sidwell  <nathan@codesourcery.com>
25648         * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
25649         conditional selects.
25650         (setcc_int<mode>, setcc_float<mode>): Reformat.
25652 2015-06-23  Marek Polacek  <polacek@redhat.com>
25654         * match.pd ((x + y) - (x | y) -> x & y,
25655         (x + y) - (x & y) -> x | y): New patterns.
25657 2015-06-23  Ludovic Courtès  <ludo@gnu.org>
25659         PR 65711
25660         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
25661         '-dynamic-linker' within %{!shared: ...}.
25663 2015-06-23  Uros Bizjak  <ubizjak@gmail.com>
25665         PR target/66560
25666         * config/i386/predicates.md (addsub_vm_operator): New predicate.
25667         (addsub_vs_operator): Ditto.
25668         (addsub_vs_parallel): Ditto.
25669         * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
25670         (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
25671         Put minus RTX before plus and adjust vec_merge selector.
25672         (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
25673         (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
25674         (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
25675         (addsub vec_merge splitters): New combiner splitters.
25676         (addsub vec_select/vec_concat splitters): Ditto.
25678 2015-06-23  Bin Cheng  <bin.cheng@arm.com>
25680         PR tree-optimization/66449
25681         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
25682         POINTER_PLUS_EXPR for pointers.
25684 2015-06-23  Alan Modra  <amodra@gmail.com>
25686         * rtlanal.c (commutative_operand_precedence): Correct comments.
25687         * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
25688         declaration.  Return an int.  Distinguish REG,REG return from
25689         others.
25690         (struct simplify_plus_minus_op_data): Make local to function.
25691         (simplify_plus_minus): Don't set canonicalized if merely sorting
25692         registers.  Avoid packing ops if nothing changes.  White space fixes.
25694 2015-06-22  Pierre-Marie de Rodat  <derodat@adacore.com>
25696         * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
25697         -fdump-ada-spec is passed but not if -fsyntax-only is.
25699 2015-06-22  Vladimir Makarov  <vmakarov@redhat.com>
25701         PR bootstrap/63740
25702         * lra-lives.c (process_bb_lives): Check insn copying the same
25703         reload pseudo and don't create a copy for it.
25705 2015-06-22  Tom de Vries  <tom@codesourcery.com>
25707         * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
25708         for cond_stmt.
25710 2015-06-22  Tom de Vries  <tom@codesourcery.com>
25712         * builtins.def (DEF_GOMP_BUILTIN): Test
25713         'flag_tree_parallelize_loops > 1' instead of
25714         'flag_tree_parallelize_loops'.  Test flag_cilkplus.
25716 2015-06-22  Tom de Vries  <tom@codesourcery.com>
25718         * dominance.c (calculate_dominance_info): Verify dominators if
25719         early-out.
25721 2015-06-22  Marek Polacek  <polacek@redhat.com>
25723         * match.pd ((x ^ y) ^ (x | y) -> x & y,
25724         (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
25725         (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
25726         (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
25728 2015-06-22  Uros Bizjak  <ubizjak@gmail.com>
25730         PR target/65871
25731         * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
25732         cost of embedded comparison.
25734 2015-06-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25736         PR target/65914
25737         * config/rs6000/predicates.md (altivec_register_operand): Permit
25738         virtual stack registers.
25739         (vsx_register_operand): Likewise.
25740         (vfloat_operand): Likewise.
25741         (vint_operand): Likewise.
25742         (vlogical_operand): Likewise.
25744 2015-06-22  Richard Biener  <rguenther@suse.de>
25746         * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
25747         and single_scalar_iteration_cost members.
25748         (LOOP_VINFO_SCALAR_ITERATION_COST): New.
25749         (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
25750         (vect_get_single_scalar_iteration_cost): Remove.
25751         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
25752         Use LOOP_VINFO_SCALAR_ITERATION_COST.
25753         * tree-vect-loop.c (destroy_loop_vec_info): Free
25754         scalar_cost_vec.
25755         (vect_get_single_scalar_iteration_cost): Compute result into
25756         LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
25757         LOOP_VINFO_SCALAR_ITERATION_COST.  Make static.
25758         (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
25759         (vect_estimate_min_profitable_iters): Use them.
25761 2015-06-22  Christian Bruel  <christian.bruel@st.com>
25763         PR target/52144
25764         * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
25765         (TARGET_INSERT_ATTRIBUTES): Define.
25766         (thumb_flipper): New var.
25767         * config/arm/arm.opt (-mflip-thumb): New switch.
25769 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
25770             Martin Liska  <mliska@suse.cz>
25772         PR ipa/65908
25773         * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
25774         construction of arg_types.
25775         (sem_function::sem_function): Likewise.
25776         (sem_function::~sem_function): Remove destruction of arg_types.
25777         (sem_function::compatible_parm_types_p): New function.
25778         (sem_function::equals_wpa): Reorg matching of return values
25779         and parameter types.
25780         (sem_function::equals_private): Reorg mathcing of argument types.
25781         (sem_function::parse_tree_args): Remove.
25782         * ipa-icf.h (init_wpa): Do not call it.
25783         (parse_tree_args): Remove.
25784         (compatible_parm_types_p): Declare.
25785         (result_type): Remove.
25786         (arg_types): Remove.
25788 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
25790         PR ipa/66351
25791         * ipa-polymorphic-call.c
25792         (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
25793         initializing alias oracle; fix formating; set base_alias_set if it
25794         is known.
25796 2015-06-22  Mikhail Maltsev  <maltsevm@gmail.com>
25798         * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
25799         (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
25800         (find_inc): Likewise.
25801         * combine.c (combine_simplify_rtx): Use std::swap instead of manually
25802         swapping.
25803         * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
25804         * df-scan.c (df_swap_refs): Remove.
25805         (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
25806         * dominance.c (link_roots): Use std::swap instead of manually swapping.
25807         * expr.c (expand_expr_real_2, do_store_flag): Likewise.
25808         * fold-const.c (fold_relational_const): Likewise.
25809         * genattrtab.c (simplify_test_exp): Likewise.
25810         * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
25811         gimple_simplify): Likewise.
25812         * ifcvt.c (noce_try_abs, find_if_header): Likewise.
25813         * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
25814         * ipa-devirt.c (add_type_duplicate): Likewise.
25815         * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
25816         * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
25817         * lra.c (lra_create_copy): Likewise.
25818         * lto-streamer-out.c (DFS::DFS): Likewise.
25819         * modulo-sched.c (get_sched_window): Likewise.
25820         * omega.c (omega_pretty_print_problem): Likewise.
25821         * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
25822         * reload1.c (reloads_unique_chain_p): Likewise.
25823         * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
25824         (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
25825         use std::swap.
25826         * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
25827         manually swapping.
25828         * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
25829         predicate_mem_writes): Likewise.
25830         * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
25831         * tree-predcom.c (combine_chains): Likewise.
25832         * tree-ssa-alias.c (nonoverlapping_component_refs_p,
25833         refs_may_alias_p_1): Likewise.
25834         * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
25835         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
25836         * tree-ssa-loop-niter.c (refine_bounds_using_guard,
25837         number_of_iterations_cond): Likewise.
25838         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
25839         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
25840         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
25841         * tree-vect-stmts.c (supportable_widening_operation): Likewise.
25842         * tree-vrp.c (extract_range_from_binary_expr_1,
25843         extract_range_from_unary_expr_1): Likewise.
25845 2015-06-20  Marek Polacek  <polacek@redhat.com>
25847         * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
25849 2015-06-19  Kaz Kojima  <kkojima@gcc.gnu.org>
25851         PR target/66591
25852         * config/sh/sh.c (prepare_move_operands): Replace subreg
25853         index term with R0 for base and index addressing.
25855 2015-06-19  Jim Wilson  <jim.wilson@linaro.org>
25857         * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
25858         op1 is an fp zero.
25859         (movsf_aarch64): Change condition from register_operand to
25860         aarch64_reg_or_fp_zero for op1.  Change type for alternative 6 to
25861         load1.  Change type for alternative 7 to store1.
25862         (movdf_aarch64): Likewise.
25864 2015-06-19  James Greenhalgh  <james.greenhalgh@arm.com>
25866         * config/vax/vax.md: Adjust sign/zero extend patterns to
25867         handle SUBREGs in operands[1].
25869 2015-06-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25871         * config/i386/i386.c (ix86_function_versions): Use std::swap instead
25872         of manually swapping.
25873         (expand_vec_perm_interleave2): Likewise.
25875 2015-06-19  Ilya Enkovich  <enkovich.gnu@gmail.com>
25877         * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
25878         reuse bounds created for abnormal ssa names.
25880 2015-06-19  Jakub Jelinek  <jakub@redhat.com>
25882         * config/nvptx/nvptx.md (allocate_stack): Rename to...
25883         (allocate_stack_<mode>): ... this, and add :P on both
25884         match_operand and unspec.
25885         (allocate_stack): New expander.
25887 2015-06-19  Christian Bruel  <christian.bruel@st.com>
25889         PR target/66541
25890         PR target/52144
25891         * config/arm/arm.c (arm_set_current_function): Handle
25892         explicit default options.
25894 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
25896         * config/i386/i386.md (*movsicc_noc_zext): New insn.
25897         (zero-extended cmove with mem peephole2): New pattern.
25898         (cmove with mem peephole2): Merge patterns.
25900 2015-06-18  Segher Boessenkool  <segher@kernel.crashing.org>
25902         * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
25904 2015-06-18  Steve Ellcey  <sellcey@imgtec.com>
25906         * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
25907         * config/mips/mips.md (*madd4<mode>): Ditto.
25908         (*nmadd3<mode>) Ditto.
25909         (*nmadd4<mode>_fastmath): Ditto.
25910         (*nmadd3<mode>_fastmath): Ditto.
25911         (*nmsub4<mode>): Ditto.
25912         (*nmsub3<mode>): Ditto.
25913         (*nmsub4<mode>_fastmath): Ditto.
25914         (*nmsub3<mode>_fastmath): Ditto.
25916 2015-06-18  Michael Matz  <matz@suse.de>
25918         PR middle-end/66253
25919         * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
25920         grouped strided stores.
25921         (vectorizable_load): Don't use the DR from first_stmt in
25922         the non-SLP grouped strided case.
25924 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
25926         PR target/66569
25927         * function.c (assign_bounds): Add arguments assign_regs,
25928         assign_special, assign_bt.
25929         (assign_parms): For vararg functions handle bounds in BT
25930         and special slots after incoming vararg bounds.
25932 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
25934         PR middle-end/66568
25935         * cfgexpand.c (expand_return): Handle missing bounds.
25936         (expand_gimple_stmt_1): Likewise.
25937         * tree-chkp.c (chkp_expand_zero_bounds): New.
25938         * tree-chkp.h (chkp_expand_zero_bounds): New.
25940 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
25942         PR middle-end/66567
25943         * ipa-chkp.c (chkp_maybe_create_clone): Require
25944         functions to be instrumentable.
25945         * tree-chkp.c (chkp_replace_function_pointer): Use
25946         chkp_instrumentable_p instead of attribute check.
25948 2015-06-18  Richard Biener  <rguenther@suse.de>
25950         PR tree-optimization/66510
25951         * tree-vect-stmts.c (vectorizable_load): Properly compute the
25952         number of vector loads for SLP permuted loads.
25953         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
25954         check the stride for loop vectorization.
25955         (vect_enhance_data_refs_alignment): Deal with SLP adjusted
25956         vectorization factor.
25957         (vect_analyze_group_access): If the group size is not a power
25958         of two require a epilogue loop.
25959         * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
25960         compute and optimizing and alias test pruning after final
25961         vectorization factor computation.
25962         * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
25963         vector alignment.
25964         (vect_transform_slp_perm_load): Properly compute the original
25965         number of vector load stmts.
25967 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
25969         * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
25970         "unlikely character , in @var" warning.
25972 2015-06-17  Uros Bizjak  <ubizjak@gmail.com>
25974         * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
25975         (ix86_function_arg_advance): Ditto.
25976         (ix86_pass_by_reference): Ditto.  Rewrite MS_ABI part.
25978 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
25980         * function.h (struct rtl_data): Remove struct and accessor macros.
25981         * emit-rtl.h (struct rtl_data): Relocate to here.
25982         * Makefile.in (GTFILES): Add emit-rtl.h.
25983         * df-core.c: Include emit-rtl.h.
25984         * genattrtab.c: Likewise.
25985         * genconditions.c: Likewise.
25986         * genpreds.c: Likewise.
25987         * genrecog.c: Likewise.
25988         * regcprop.c: Likewise.
25989         * resource.c: Likewise.
25990         * sched-rgn.c: Likewise.
25991         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
25992         * config/i386/winnt.c: Likewise.
25994 2015-06-17  Jakub Jelinek  <jakub@redhat.com>
25996         PR middle-end/66429
25997         * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
25998         instead of DECL_STRUCT_FUNCTION (child_fn).  Or in has_simduid_loops
25999         and has_force_vectorize_loops flags from cfun into
26000         child_cfun.
26001         (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
26002         if simduid is non-NULL.
26003         * tree-pass.h (make_pass_simduid_cleanup): New prototype.
26004         * passes.def (pass_simduid_cleanup): Add new pass after loop
26005         passes.
26006         * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
26007         indirection from htab argument's type.
26008         (shrink_simd_arrays): New function.
26009         (vectorize_loops): Use it.  Adjust adjust_simduid_builtins caller.
26010         Don't call adjust_simduid_builtins if there are no loops.
26011         (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
26012         (pass_simduid_cleanup::execute): New method.
26013         (make_pass_simduid_cleanup): New function.
26015 2017-06-17  Andrew MacLeod  <amacleod@redhat.com>
26017         * tree-core.h (tree_target_option): Make opts field a pointer to a
26018         cl_target_option instead of an instance of the struct.
26019         * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
26020         the structure.
26021         * tree.c (make_node_stat ): Allocate a cl_target_option struct for
26022         TARGET_OPTION_NODE.
26023         (copy_node_stat): Allocate and copy struct cl_target_option.
26025 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
26027         * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
26028         Remove conditional exposure of prototypes.
26029         (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
26030         * tree.c (anon_aggrname_format, anon_aggrname_p): New.  Replace macro
26031         definitions in tree.h with functions.
26032         * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
26033         anon_aggrname_p.
26034         * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
26036 2015-06-17  Segher Boessenkool  <segher@kernel.crashing.org>
26038         * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
26039         (*cmp<mode>_signed): ... this.
26040         (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
26041         (*cmp<mode>_unsigned): ... this.  Remove %b.
26043 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
26045         * coretypes.h: Include input.h and as-a.h.
26046         * rtl.h: Include input.h and as-a.h for generator files.
26047         * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
26048         * vec.c: Don't include diagnostic-core.h.
26049         * alias.c: Do not include input.h, line-map.h or is-a.h.
26050         * asan.c: Likewise.
26051         * attribs.c: Likewise.
26052         * auto-inc-dec.c: Likewise.
26053         * auto-profile.c: Likewise.
26054         * bb-reorder.c: Likewise.
26055         * bt-load.c: Likewise.
26056         * builtins.c: Likewise.
26057         * caller-save.c: Likewise.
26058         * calls.c: Likewise.
26059         * ccmp.c: Likewise.
26060         * cfg.c: Likewise.
26061         * cfganal.c: Likewise.
26062         * cfgbuild.c: Likewise.
26063         * cfgcleanup.c: Likewise.
26064         * cfgexpand.c: Likewise.
26065         * cfghooks.c: Likewise.
26066         * cfgloop.c: Likewise.
26067         * cfgloop.h: Likewise.
26068         * cfgloopanal.c: Likewise.
26069         * cfgloopmanip.c: Likewise.
26070         * cfgrtl.c: Likewise.
26071         * cgraph.c: Likewise.
26072         * cgraphbuild.c: Likewise.
26073         * cgraphclones.c: Likewise.
26074         * cgraphunit.c: Likewise.
26075         * cilk-common.c: Likewise.
26076         * combine-stack-adj.c: Likewise.
26077         * combine.c: Likewise.
26078         * compare-elim.c: Likewise.
26079         * convert.c: Likewise.
26080         * coverage.c: Likewise.
26081         * cppbuiltin.c: Likewise.
26082         * cprop.c: Likewise.
26083         * cse.c: Likewise.
26084         * cselib.c: Likewise.
26085         * data-streamer-in.c: Likewise.
26086         * data-streamer-out.c: Likewise.
26087         * data-streamer.c: Likewise.
26088         * dbxout.c: Likewise.
26089         * dce.c: Likewise.
26090         * ddg.c: Likewise.
26091         * debug.c: Likewise.
26092         * df-core.c: Likewise.
26093         * df-problems.c: Likewise.
26094         * df-scan.c: Likewise.
26095         * df.h: Likewise.
26096         * dfp.c: Likewise.
26097         * diagnostic-core.h: Likewise.
26098         * diagnostic.c: Likewise.
26099         * dojump.c: Likewise.
26100         * dominance.c: Likewise.
26101         * domwalk.c: Likewise.
26102         * double-int.c: Likewise.
26103         * dse.c: Likewise.
26104         * dumpfile.c: Likewise.
26105         * dumpfile.h: Likewise.
26106         * dwarf2asm.c: Likewise.
26107         * dwarf2cfi.c: Likewise.
26108         * dwarf2out.c: Likewise.
26109         * emit-rtl.c: Likewise.
26110         * et-forest.c: Likewise.
26111         * except.c: Likewise.
26112         * explow.c: Likewise.
26113         * expmed.c: Likewise.
26114         * expr.c: Likewise.
26115         * final.c: Likewise.
26116         * fixed-value.c: Likewise.
26117         * fold-const.c: Likewise.
26118         * function.c: Likewise.
26119         * fwprop.c: Likewise.
26120         * gcc-plugin.h: Likewise.
26121         * gcse.c: Likewise.
26122         * generic-match-head.c: Likewise.
26123         * ggc-page.c: Likewise.
26124         * gimple-builder.c: Likewise.
26125         * gimple-expr.c: Likewise.
26126         * gimple-fold.c: Likewise.
26127         * gimple-iterator.c: Likewise.
26128         * gimple-low.c: Likewise.
26129         * gimple-match-head.c: Likewise.
26130         * gimple-pretty-print.c: Likewise.
26131         * gimple-ssa-isolate-paths.c: Likewise.
26132         * gimple-ssa-strength-reduction.c: Likewise.
26133         * gimple-streamer-in.c: Likewise.
26134         * gimple-streamer-out.c: Likewise.
26135         * gimple-streamer.h: Likewise.
26136         * gimple-walk.c: Likewise.
26137         * gimple.c: Likewise.
26138         * gimplify-me.c: Likewise.
26139         * gimplify.c: Likewise.
26140         * godump.c: Likewise.
26141         * graph.c: Likewise.
26142         * graphite-blocking.c: Likewise.
26143         * graphite-dependences.c: Likewise.
26144         * graphite-interchange.c: Likewise.
26145         * graphite-isl-ast-to-gimple.c: Likewise.
26146         * graphite-optimize-isl.c: Likewise.
26147         * graphite-poly.c: Likewise.
26148         * graphite-scop-detection.c: Likewise.
26149         * graphite-sese-to-poly.c: Likewise.
26150         * graphite.c: Likewise.
26151         * haifa-sched.c: Likewise.
26152         * hw-doloop.c: Likewise.
26153         * ifcvt.c: Likewise.
26154         * init-regs.c: Likewise.
26155         * input.c: Likewise.
26156         * internal-fn.c: Likewise.
26157         * ipa-chkp.c: Likewise.
26158         * ipa-comdats.c: Likewise.
26159         * ipa-cp.c: Likewise.
26160         * ipa-devirt.c: Likewise.
26161         * ipa-icf-gimple.c: Likewise.
26162         * ipa-icf.c: Likewise.
26163         * ipa-inline-analysis.c: Likewise.
26164         * ipa-inline-transform.c: Likewise.
26165         * ipa-inline.c: Likewise.
26166         * ipa-polymorphic-call.c: Likewise.
26167         * ipa-profile.c: Likewise.
26168         * ipa-prop.c: Likewise.
26169         * ipa-pure-const.c: Likewise.
26170         * ipa-ref.c: Likewise.
26171         * ipa-reference.c: Likewise.
26172         * ipa-split.c: Likewise.
26173         * ipa-utils.c: Likewise.
26174         * ipa-visibility.c: Likewise.
26175         * ipa.c: Likewise.
26176         * ira-build.c: Likewise.
26177         * ira-color.c: Likewise.
26178         * ira-conflicts.c: Likewise.
26179         * ira-costs.c: Likewise.
26180         * ira-emit.c: Likewise.
26181         * ira-lives.c: Likewise.
26182         * ira.c: Likewise.
26183         * jump.c: Likewise.
26184         * langhooks.c: Likewise.
26185         * lcm.c: Likewise.
26186         * loop-doloop.c: Likewise.
26187         * loop-init.c: Likewise.
26188         * loop-invariant.c: Likewise.
26189         * loop-iv.c: Likewise.
26190         * loop-unroll.c: Likewise.
26191         * lower-subreg.c: Likewise.
26192         * lra-assigns.c: Likewise.
26193         * lra-coalesce.c: Likewise.
26194         * lra-constraints.c: Likewise.
26195         * lra-eliminations.c: Likewise.
26196         * lra-lives.c: Likewise.
26197         * lra-remat.c: Likewise.
26198         * lra-spills.c: Likewise.
26199         * lra.c: Likewise.
26200         * lto-cgraph.c: Likewise.
26201         * lto-compress.c: Likewise.
26202         * lto-opts.c: Likewise.
26203         * lto-section-in.c: Likewise.
26204         * lto-section-out.c: Likewise.
26205         * lto-streamer-in.c: Likewise.
26206         * lto-streamer-out.c: Likewise.
26207         * lto-streamer.c: Likewise.
26208         * mcf.c: Likewise.
26209         * mode-switching.c: Likewise.
26210         * modulo-sched.c: Likewise.
26211         * omega.c: Likewise.
26212         * omp-low.c: Likewise.
26213         * optabs.c: Likewise.
26214         * opts-global.c: Likewise.
26215         * opts.h: Likewise.
26216         * passes.c: Likewise.
26217         * plugin.c: Likewise.
26218         * postreload-gcse.c: Likewise.
26219         * postreload.c: Likewise.
26220         * predict.c: Likewise.
26221         * pretty-print.h: Likewise.
26222         * print-rtl.c: Likewise.
26223         * print-tree.c: Likewise.
26224         * profile.c: Likewise.
26225         * real.c: Likewise.
26226         * realmpfr.c: Likewise.
26227         * recog.c: Likewise.
26228         * ree.c: Likewise.
26229         * reg-stack.c: Likewise.
26230         * regcprop.c: Likewise.
26231         * reginfo.c: Likewise.
26232         * regrename.c: Likewise.
26233         * regstat.c: Likewise.
26234         * reload.c: Likewise.
26235         * reload1.c: Likewise.
26236         * reorg.c: Likewise.
26237         * resource.c: Likewise.
26238         * rtl-chkp.c: Likewise.
26239         * rtl-error.c: Likewise.
26240         * rtlanal.c: Likewise.
26241         * rtlhooks.c: Likewise.
26242         * sanopt.c: Likewise.
26243         * sched-deps.c: Likewise.
26244         * sched-ebb.c: Likewise.
26245         * sched-rgn.c: Likewise.
26246         * sched-vis.c: Likewise.
26247         * sdbout.c: Likewise.
26248         * sel-sched-dump.c: Likewise.
26249         * sel-sched-ir.c: Likewise.
26250         * sel-sched.c: Likewise.
26251         * sese.c: Likewise.
26252         * shrink-wrap.c: Likewise.
26253         * simplify-rtx.c: Likewise.
26254         * stack-ptr-mod.c: Likewise.
26255         * statistics.c: Likewise.
26256         * stmt.c: Likewise.
26257         * stor-layout.c: Likewise.
26258         * store-motion.c: Likewise.
26259         * streamer-hooks.c: Likewise.
26260         * stringpool.c: Likewise.
26261         * symtab.c: Likewise.
26262         * target-globals.c: Likewise.
26263         * targhooks.c: Likewise.
26264         * toplev.c: Likewise.
26265         * tracer.c: Likewise.
26266         * trans-mem.c: Likewise.
26267         * tree-affine.c: Likewise.
26268         * tree-browser.c: Likewise.
26269         * tree-call-cdce.c: Likewise.
26270         * tree-cfg.c: Likewise.
26271         * tree-cfgcleanup.c: Likewise.
26272         * tree-chkp-opt.c: Likewise.
26273         * tree-chkp.c: Likewise.
26274         * tree-chrec.c: Likewise.
26275         * tree-complex.c: Likewise.
26276         * tree-data-ref.c: Likewise.
26277         * tree-dfa.c: Likewise.
26278         * tree-diagnostic.c: Likewise.
26279         * tree-dump.c: Likewise.
26280         * tree-eh.c: Likewise.
26281         * tree-emutls.c: Likewise.
26282         * tree-if-conv.c: Likewise.
26283         * tree-inline.c: Likewise.
26284         * tree-into-ssa.c: Likewise.
26285         * tree-iterator.c: Likewise.
26286         * tree-loop-distribution.c: Likewise.
26287         * tree-nested.c: Likewise.
26288         * tree-nrv.c: Likewise.
26289         * tree-object-size.c: Likewise.
26290         * tree-outof-ssa.c: Likewise.
26291         * tree-parloops.c: Likewise.
26292         * tree-phinodes.c: Likewise.
26293         * tree-predcom.c: Likewise.
26294         * tree-pretty-print.c: Likewise.
26295         * tree-profile.c: Likewise.
26296         * tree-scalar-evolution.c: Likewise.
26297         * tree-sra.c: Likewise.
26298         * tree-ssa-address.c: Likewise.
26299         * tree-ssa-alias.c: Likewise.
26300         * tree-ssa-ccp.c: Likewise.
26301         * tree-ssa-coalesce.c: Likewise.
26302         * tree-ssa-copy.c: Likewise.
26303         * tree-ssa-copyrename.c: Likewise.
26304         * tree-ssa-dce.c: Likewise.
26305         * tree-ssa-dom.c: Likewise.
26306         * tree-ssa-dse.c: Likewise.
26307         * tree-ssa-forwprop.c: Likewise.
26308         * tree-ssa-ifcombine.c: Likewise.
26309         * tree-ssa-live.c: Likewise.
26310         * tree-ssa-loop-ch.c: Likewise.
26311         * tree-ssa-loop-im.c: Likewise.
26312         * tree-ssa-loop-ivcanon.c: Likewise.
26313         * tree-ssa-loop-ivopts.c: Likewise.
26314         * tree-ssa-loop-manip.c: Likewise.
26315         * tree-ssa-loop-niter.c: Likewise.
26316         * tree-ssa-loop-prefetch.c: Likewise.
26317         * tree-ssa-loop-unswitch.c: Likewise.
26318         * tree-ssa-loop.c: Likewise.
26319         * tree-ssa-math-opts.c: Likewise.
26320         * tree-ssa-operands.c: Likewise.
26321         * tree-ssa-phiopt.c: Likewise.
26322         * tree-ssa-phiprop.c: Likewise.
26323         * tree-ssa-pre.c: Likewise.
26324         * tree-ssa-propagate.c: Likewise.
26325         * tree-ssa-reassoc.c: Likewise.
26326         * tree-ssa-sccvn.c: Likewise.
26327         * tree-ssa-scopedtables.c: Likewise.
26328         * tree-ssa-sink.c: Likewise.
26329         * tree-ssa-strlen.c: Likewise.
26330         * tree-ssa-structalias.c: Likewise.
26331         * tree-ssa-tail-merge.c: Likewise.
26332         * tree-ssa-ter.c: Likewise.
26333         * tree-ssa-threadedge.c: Likewise.
26334         * tree-ssa-threadupdate.c: Likewise.
26335         * tree-ssa-uncprop.c: Likewise.
26336         * tree-ssa-uninit.c: Likewise.
26337         * tree-ssa.c: Likewise.
26338         * tree-ssanames.c: Likewise.
26339         * tree-stdarg.c: Likewise.
26340         * tree-streamer-in.c: Likewise.
26341         * tree-streamer-out.c: Likewise.
26342         * tree-streamer.c: Likewise.
26343         * tree-switch-conversion.c: Likewise.
26344         * tree-tailcall.c: Likewise.
26345         * tree-vect-data-refs.c: Likewise.
26346         * tree-vect-generic.c: Likewise.
26347         * tree-vect-loop-manip.c: Likewise.
26348         * tree-vect-loop.c: Likewise.
26349         * tree-vect-patterns.c: Likewise.
26350         * tree-vect-slp.c: Likewise.
26351         * tree-vect-stmts.c: Likewise.
26352         * tree-vectorizer.c: Likewise.
26353         * tree-vrp.c: Likewise.
26354         * tree.c: Likewise.
26355         * tsan.c: Likewise.
26356         * ubsan.c: Likewise.
26357         * valtrack.c: Likewise.
26358         * value-prof.c: Likewise.
26359         * var-tracking.c: Likewise.
26360         * varasm.c: Likewise.
26361         * varpool.c: Likewise.
26362         * vmsdbgout.c: Likewise.
26363         * vtable-verify.c: Likewise.
26364         * web.c: Likewise.
26365         * wide-int.cc: Likewise.
26366         * xcoffout.c: Likewise.
26367         * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
26368         * common/common-targhooks.c: Likewise.
26369         * config/aarch64/aarch64-builtins.c: Likewise.
26370         * config/aarch64/aarch64.c: Likewise.
26371         * config/alpha/alpha.c: Likewise.
26372         * config/arc/arc.c: Likewise.
26373         * config/arm/aarch-common.c: Likewise.
26374         * config/arm/arm-builtins.c: Likewise.
26375         * config/arm/arm-c.c: Likewise.
26376         * config/arm/arm.c: Likewise.
26377         * config/avr/avr-c.c: Likewise.
26378         * config/avr/avr-log.c: Likewise.
26379         * config/avr/avr.c: Likewise.
26380         * config/bfin/bfin.c: Likewise.
26381         * config/c6x/c6x.c: Likewise.
26382         * config/cr16/cr16.c: Likewise.
26383         * config/cris/cris.c: Likewise.
26384         * config/darwin-c.c: Likewise.
26385         * config/darwin.c: Likewise.
26386         * config/default-c.c: Likewise.
26387         * config/epiphany/epiphany.c: Likewise.
26388         * config/epiphany/mode-switch-use.c: Likewise.
26389         * config/epiphany/resolve-sw-modes.c: Likewise.
26390         * config/fr30/fr30.c: Likewise.
26391         * config/frv/frv.c: Likewise.
26392         * config/ft32/ft32.c: Likewise.
26393         * config/glibc-c.c: Likewise.
26394         * config/h8300/h8300.c: Likewise.
26395         * config/i386/i386-c.c: Likewise.
26396         * config/i386/i386.c: Likewise.
26397         * config/i386/msformat-c.c: Likewise.
26398         * config/i386/winnt-cxx.c: Likewise.
26399         * config/i386/winnt-stubs.c: Likewise.
26400         * config/i386/winnt.c: Likewise.
26401         * config/ia64/ia64-c.c: Likewise.
26402         * config/ia64/ia64.c: Likewise.
26403         * config/iq2000/iq2000.c: Likewise.
26404         * config/lm32/lm32.c: Likewise.
26405         * config/m32c/m32c-pragma.c: Likewise.
26406         * config/m32c/m32c.c: Likewise.
26407         * config/m32r/m32r.c: Likewise.
26408         * config/m68k/m68k.c: Likewise.
26409         * config/mcore/mcore.c: Likewise.
26410         * config/mep/mep-pragma.c: Likewise.
26411         * config/mep/mep.c: Likewise.
26412         * config/microblaze/microblaze-c.c: Likewise.
26413         * config/microblaze/microblaze.c: Likewise.
26414         * config/mips/mips.c: Likewise.
26415         * config/mmix/mmix.c: Likewise.
26416         * config/mn10300/mn10300.c: Likewise.
26417         * config/moxie/moxie.c: Likewise.
26418         * config/msp430/msp430-c.c: Likewise.
26419         * config/msp430/msp430.c: Likewise.
26420         * config/nds32/nds32-cost.c: Likewise.
26421         * config/nds32/nds32-fp-as-gp.c: Likewise.
26422         * config/nds32/nds32-intrinsic.c: Likewise.
26423         * config/nds32/nds32-isr.c: Likewise.
26424         * config/nds32/nds32-md-auxiliary.c: Likewise.
26425         * config/nds32/nds32-memory-manipulation.c: Likewise.
26426         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
26427         * config/nds32/nds32-predicates.c: Likewise.
26428         * config/nds32/nds32.c: Likewise.
26429         * config/nios2/nios2.c: Likewise.
26430         * config/nvptx/nvptx.c: Likewise.
26431         * config/pa/pa.c: Likewise.
26432         * config/pdp11/pdp11.c: Likewise.
26433         * config/rl78/rl78-c.c: Likewise.
26434         * config/rl78/rl78.c: Likewise.
26435         * config/rs6000/rs6000-c.c: Likewise.
26436         * config/rs6000/rs6000.c: Likewise.
26437         * config/rx/rx.c: Likewise.
26438         * config/s390/s390-c.c: Likewise.
26439         * config/s390/s390.c: Likewise.
26440         * config/sh/sh-c.c: Likewise.
26441         * config/sh/sh-mem.cc: Likewise.
26442         * config/sh/sh.c: Likewise.
26443         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
26444         * config/sh/sh_treg_combine.cc: Likewise.
26445         * config/sol2-c.c: Likewise.
26446         * config/sol2-cxx.c: Likewise.
26447         * config/sol2-stubs.c: Likewise.
26448         * config/sol2.c: Likewise.
26449         * config/sparc/sparc-c.c: Likewise.
26450         * config/sparc/sparc.c: Likewise.
26451         * config/spu/spu-c.c: Likewise.
26452         * config/spu/spu.c: Likewise.
26453         * config/stormy16/stormy16.c: Likewise.
26454         * config/tilegx/mul-tables.c: Likewise.
26455         * config/tilegx/tilegx-c.c: Likewise.
26456         * config/tilegx/tilegx.c: Likewise.
26457         * config/tilepro/mul-tables.c: Likewise.
26458         * config/tilepro/tilepro-c.c: Likewise.
26459         * config/tilepro/tilepro.c: Likewise.
26460         * config/v850/v850-c.c: Likewise.
26461         * config/v850/v850.c: Likewise.
26462         * config/vax/vax.c: Likewise.
26463         * config/visium/visium.c: Likewise.
26464         * config/vms/vms-c.c: Likewise.
26465         * config/vms/vms.c: Likewise.
26466         * config/vxworks.c: Likewise.
26467         * config/winnt-c.c: Likewise.
26468         * config/xtensa/xtensa.c: Likewise.
26470 2015-06-17  Robert Suchanek  <robert.suchanek@imgtec.com>
26472         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
26473         function.
26474         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
26476 2015-06-17  Richard Biener  <rguenther@suse.de>
26478         PR tree-optimization/66251
26479         * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
26480         stmts for SLP strided stores.
26482         Revert
26483         2015-05-22  Richard Biener  <rguenther@suse.de>
26485         PR tree-optimization/66251
26486         * tree-vect-stmts.c (vectorizable_conversion): Properly
26487         set STMT_VINFO_VEC_STMT even for the SLP case.
26489         2015-05-26  Michael Matz  <matz@suse.de>
26491         PR middle-end/66251
26492         * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
26493         STMT_VINFO_VEC_STMT, also with SLP.
26495 2015-06-16  Uros Bizjak  <ubizjak@gmail.com>
26497         PR target/56766
26498         * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
26499         (*avx_addsubv4df3_1s): Ditto.
26500         (*sse3_addsubv2df3_1): Ditto.
26501         (*sse3_addsubv2df3_1s): Ditto.
26502         (*avx_addsubv8sf3_1): Ditto.
26503         (*avx_addsubv8sf3_1s): Ditto.
26504         (*sse3_addsubv4sf3_1): Ditto.
26505         (*sse3_addsubv4sf3_1s): Ditto.
26507 2015-06-16  Steve Ellcey  <sellcey@imgtec.com>
26509         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
26510         (SYSROOT_SUFFIX_SPEC): Update.
26511         (SYSROOT_HEADERS_SUFFIX_SPEC): New.
26512         (STARTFILE_PREFIX_SPEC): Update.
26513         * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
26514         (MULTILIB_REQUIRED): New.
26515         (MULTILIB_OSDIRNAMES): New.
26516         * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
26517         (MULTILIB_REQUIRED): New.
26518         (MULTILIB_OSDIRNAMES): New.
26520 2015-06-16  Matthew Wahab  <matthew.wahab@arm.com>
26522         * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
26523         * config/aarch64/aarch64-options-extensions.def: Update "fP",
26524         "simd" and "crypto".  Add "lse", "pan", "lor" and "rdma".
26525         * config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
26526         (AARCH64_FL_PAN): New.
26527         (AARCH64_FL_LOR): New.
26528         (AARCH64_FL_RDMA): New.
26529         (AARCH64_FL_FOR_ARCH8_1): New.
26530         * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
26531         -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
26533 2015-06-16  Martin Liska  <mliska@suse.cz>
26535         * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
26536         * hash-table.c (void dump_hash_table_loc_statistics): Add missing
26537         guard.
26539 2015-06-16  Richard Biener  <rguenther@suse.de>
26541         * tree-vect-stmts.c (vectorizable_store): Adjust.
26542         (vectorizable_load): Likewise.
26543         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
26544         Simplify.
26545         (vect_create_data_ref_ptr): Likewise.
26546         (bump_vector_ptr): Adjust.
26548 2015-06-16  Richard Biener  <rguenther@suse.de>
26550         * tree-vect-stmts.c (vectorizable_load): Properly start loads
26551         with the first element if this is grouped loads.
26553 2015-06-16  James Greenhalgh  <james.greenhalgh@arm.com>
26555         * config/arm/arm-protos.h (struct tune_params): Rename
26556         log_op_non_sc to log_op_non_short_circuit, and rename enum
26557         values to expand SC to SHORT_CIRCUIT.
26558         * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
26559         to LOG_OP_NON_SHORT_CIRCUIT.
26560         (arm_fastmul_tune):Likewise
26561         (arm_strongarm_tune): Likewise.
26562         (arm_xscale_tune): Likewise.
26563         (arm_9e_tune): Likewise.
26564         (arm_marvell_pj4_tune): Likewise.
26565         (arm_v6t2_tune): Likewise.
26566         (arm_cortex_tune): Likewise.
26567         (arm_cortex_a8_tune): Likewise.
26568         (arm_cortex_a7_tune): Likewise.
26569         (arm_cortex_a15_tune): Likewise.
26570         (arm_cortex_a53_tune): Likewise.
26571         (arm_cortex_a57_tune): Likewise.
26572         (arm_xgene1_tune): Likewise.
26573         (arm_cortex_a5_tune): Likewise.
26574         (arm_cortex_a9_tune): Likewise.
26575         (arm_cortex_a12_tune): Likewise.
26576         (arm_v7m_tune): Likewise.
26577         (arm_cortex_m7_tune): Likewise.
26578         (arm_v6m_tune): Likewise.
26579         (arm_fa726te_tune): Likewise.
26581 2015-06-15  David Edelsohn  <dje.gcc@gmail.com>
26583         * altivec.md: Delete UNSPEC_VMLADDUHM.
26584         (mulv4si3_p8): New pattern.
26585         (mulv4si3): Use it for POWER8.
26586         (mulv8hi3): Use vmladduhm with zero addend.
26587         (altivec_vmladduhm): Descriptive RTL.
26589 2015-06-15  Jim Wilson  <jim.wilson@linaro.org>
26591         * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
26592         to use neon_move instead of mov_imm.
26593         (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
26594         (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
26596         * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
26597         aarch64_float_const_zero_rtx_p check before TFmode check.
26598         * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
26599         an fp zero.
26600         (movtf_aarch64): Separate ?rY alternative into two.  Adjust assembly
26601         code and attributes to match.  Change condition from register_operand
26602         to aarch64_reg_or_fp_zero for op1.  Change type for ldp from
26603         neon_load1_2reg to load2.  Change type for stp from neon_store1_2reg
26604         to store2.
26606 2015-06-15  Aldy Hernandez  <aldyh@redhat.com>
26608         PR debug/66535
26609         * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
26610         there is no parent.
26612 2015-06-14  Shiva Chen  <shiva0217@gmail.com>
26614         * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
26615         HOST_WIDE_INT parameter.
26617 2015-06-14  Jan Hubicka  <hubicka@ucw.cz>
26619         PR ipa/66181
26620         * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
26621         * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
26622         TYPE_NO_FORCE_BLK.
26623         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
26625 2015-06-14  Richard Sandiford  <richard.sandiford@arm.com>
26627         * rtl.h (classify_insn): Declare.
26628         * emit-rtl.c (classify_insn): Move to...
26629         * rtl.c: ...here and add generator support.
26630         * gensupport.h (get_emit_function, needs_barrier_p): Declare.
26631         * gensupport.c (get_emit_function, needs_barrier_p): New functions.
26632         * genemit.c (gen_emit_seq): New function.
26633         (gen_expand, gen_split): Use it.
26635 2015-06-13  Patrick Palka  <ppalka@gcc.gnu.org>
26637         * tree.c (make_vector_stat): Fix comment to state that the
26638         function returns a VECTOR_CST.
26640 2015-06-13  Richard Sandiford  <richard.sandiford@arm.com>
26642         * gensupport.h (add_implicit_parallel): Declare.
26643         * genrecog.c (add_implicit_parallel): Move to...
26644         * gensupport.c (add_implicit_parallel): ...here.
26645         (process_one_cond_exec): Use it.
26646         * genemit.c (gen_insn): Likewise.
26648 2015-06-13  Iain Sandoe  <iain@codesourcery.com>
26650         PR bootstrap/66448
26651         * passes.c (rest_of_decl_compilation): Do not register globals for
26652         early debug if they are declared in built-ins.
26654 2015-06-12  Aldy Hernandez  <aldyh@redhat.com>
26656         * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
26658 2015-06-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26660         * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
26661         manually swapping.
26662         (noce_try_cmove_arith): Likewise.
26663         (noce_get_alt_condition): Likewise.
26665 2015-06-12  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
26667         * common/config/i386/i386-common.c
26668         (OPTION_MASK_ISA_MWAITX_SET): New.
26669         (ix86_handle_option): Handle mwaitx.
26670         * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
26671         (x86_64-*-*): Likewise.
26672         * config/i386/mwaitxintrin.h: New header.
26673         * config/i386/cpuid.h (bit_MWAITX):  Define.
26674         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
26675         MWAITX support.
26676         * config/i386/i386.opt (mwaitx): New.
26677         * config/i386/i386-builtin-types.def
26678         (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
26679         * config/i386/i386-c.c: Define __MWAITX__ if needed.
26680         * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
26681         (PTA_MWAITX): New.
26682         (ix86_option_override_internal): Handle new option.
26683         (processor_alias_table): Added PTA_MWAITX.
26684         (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
26685         (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
26686         (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
26687         IX86_BUILTIN_MONITORX  built-ins.
26688         * config/i386/i386.h (TARGET_MWAITX): New.
26689         * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
26690         UNSPEC_MONITORX.
26691         (mwaitx):  New pattern.
26692         (monitorx_<mode>): New pattern.
26693         * config/i386/x86intrin.h: Include mwaitxintrin.h.
26694         * doc/extend.texi: Document monitorx and mwaitx builtins.
26695         * doc/invoke.texi: Document -mmwaitx option.
26697 2015-06-12  Uros Bizjak  <ubizjak@gmail.com>
26699         * emit-rtl.c (need_atomic_barrier_p): Mask model with
26700         MEMMODEL_BASE_MASK.  Remove MEMMODEL_SYNC_* cases.
26702 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
26704         * dbxout.c (xcoff_debug_hooks): Provide a function for
26705         register_main_translation_unit hook.
26707 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
26709         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
26710         variants cases from switch.
26711         (rs6000_post_atomic_barrier): Same.
26712         (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
26713         (rs6000_expand_atomic_exchange): Same.
26714         (rs6000_expand_atomic_op): Same.
26715         * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
26716         SYNC variants cases from switch.
26717         (atomic_load): Same.
26718         (atomic_store): Same.
26720 2015-06-11  John David Anglin  <danglin@gcc.gnu.org>
26722         * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
26723         CONST_INT for goto.
26725 2015-06-11  Aldy Hernandez  <aldyh@redhat.com>
26727         PR bootstrap/66448
26728         * dwarf2out.c (check_die): Check for common duplicate attributes.
26729         (add_location_or_const_value_attribute): Do not add duplicate
26730         attributes.
26731         (gen_formal_parameter_die): Do not add DW_AT_artificial the second
26732         time around.
26733         (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
26734         (gen_type_die_with_usage): Call check_die.
26735         (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
26737 2015-06-11  Jason Merrill  <jason@redhat.com>
26739         * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
26740         dies.
26742 2015-06-11  Marek Polacek  <polacek@redhat.com>
26744         * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
26746 2015-06-11  Eric Botcazou  <ebotcazou@adacore.com>
26748         PR bootstrap/66252
26749         * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
26750         * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
26751         (*addx_extend_sp32): Fix pasto.
26752         (*subx_extend): Rename into...
26753         (*subx_extend_sp32): ...this.
26754         (*adddi3_extend_sp32): Add earlyclobber.
26755         (*subdi3_insn_sp32): Likewise.
26756         (*subdi3_extend_sp32): Likewise.
26757         (*and_not_di_sp32): Likewise.
26758         (*or_not_di_sp32): Likewise.
26759         (*xor_not_di_sp32): Likewise.
26760         (*negdi2_sp32): Likewise.
26761         (*one_cmpldi2_sp32): Likewise.
26763 2015-06-11  Pierre-Marie de Rodat  <derodat@adacore.com>
26765         * debug.h (struct gcc_debug_hooks): Add a
26766         register_main_translation_unit hook.
26767         * debug.c (do_nothing_debug_hooks): Provide a function for this
26768         new hook.
26769         * dbxout.c (dbx_debug_hooks): Likewise.
26770         * sdbout.c (sdb_debug_hooks): Likewise.
26771         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
26772         * dwarf2out.c (main_translation_unit): New global variable.
26773         (dwarf2out_register_main_translation_unit): New function
26774         implementing the new hook.
26775         (dwarf2_debug_hooks): Assign
26776         dwarf2out_register_main_translation_unit to this new hook.
26777         (dwarf2out_init): Associate any main translation unit to
26778         comp_unit_die ().
26780 2015-06-11  Marek Polacek  <polacek@redhat.com>
26782         * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
26784 2015-06-11  Marek Polacek  <polacek@redhat.com>
26786         * match.pd: Use single_use throughout.
26788 2015-06-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26790         * config/arm/arm.c (arm_option_params_internal): When optimising
26791         for speed set max_insns_skipped when arm_restrict_it.
26793 2015-06-11  Christian Bruel  <christian.bruel@st.com>
26795         PR target/52144
26796         * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
26797          macros in ...
26798         (arm_cpu_builtins): New function.
26799         (arm_pragma_target_parse): Call arm_cpu_builtins.
26800         * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
26801         (arm_register_target_pragmas): Likewise.
26802         * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
26803          Call arm_register_target_pragmas.
26804         * config/arm/arm-c.c (arm_register_target_pragmas): New function.
26805         (arm_pragma_target_parse): Likewise.
26807 2015-06-10  Kaz Kojima  <kkojima@gcc.gnu.org>
26809         * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
26810         of the second operand.
26812 2015-06-10  Uros Bizjak  <ubizjak@gmail.com>
26814         PR target/66473
26815         * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
26816         to prepare mask operand for AVX512 modes.
26818 2015-06-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
26820         PR target/66474
26821         * doc/md.texi (Machine Constraints): Document that on the PowerPC
26822         if you use a constraint that targets a VSX register, you must use
26823         %x<n> in the template.
26825 2015-06-10  Max Filippov  <jcmvbkbc@gmail.com>
26827         * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
26828         * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
26829         (define_insn "trap"): New definition.
26831 2015-06-10  Richard Biener  <rguenther@suse.de>
26833         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
26834         out from ...
26835         (vect_supported_load_permutation_p): ... here.  Handle
26836         supportable permutations in reductions.
26837         * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
26838         for vectorizing strided group loads.
26840 2015-06-10  Jakub Jelinek  <jakub@redhat.com>
26842         PR target/66470
26843         * config/i386/i386.c (ix86_split_long_move): For collisions
26844         involving direct tls segment refs, move the UNSPEC_TP possibly
26845         wrapped in ZERO_EXTEND out of the address for lea, to each of
26846         the memory loads.
26848 2015-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26850         * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
26851         dmb sy. Adjust tabs.
26853 2015-06-10  Tom de Vries  <tom@codesourcery.com>
26855         * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
26857 2015-06-10  Martin Liska  <mliska@suse.cz>
26859         PR bootstrap/66471
26860         * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
26861         all enum values in mem_alloc_origin.
26862         * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
26863         name.
26864         * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
26865         * bitmap.c (bitmap_register): Likewise.
26866         (dump_bitmap_statistics): Likewise.
26867         * ggc-common.c (dump_ggc_loc_statistics): Likewise.
26868         (ggc_record_overhead): Likewise.
26869         * hash-map.h: Likewise.
26870         * hash-set.h: Likewise.
26871         * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
26872         * hash-table.h: Likewise.
26873         * vec.c (vec_prefix::register_overhead): Likewise.
26874         (vec_prefix::release_overhead): Likewise.
26875         (dump_vec_loc_statistics): Likewise.
26877 2015-06-09  Christian Bruel  <christian.bruel@st.com>
26879         PR target/52144
26880         * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
26881         * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
26882         (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
26883         * config/arm/arm.h (SWITCHABLE_TARGET): Define.
26884         * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
26885         (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
26886         (arm_valid_target_attribute_p): Likewise.
26887         (arm_set_current_function, arm_can_inline_p): Likewise.
26888         (arm_valid_target_attribute_rec): Likewise.
26889         (arm_previous_fndecl): New variable.
26890         (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
26891         (TARGET_CAN_INLINE_P): Define.
26892         (arm_asm_trampoline_template): Emit mode.
26893         (arm_file_start): Don't set unified syntax.
26894         (arm_declare_function_name): Set unified syntax and mode.
26895         (arm_option_override): Init target_option_default_node.
26896         and target_option_current_node.
26897         * config/arm/arm.md (*call_value_symbol): Set mode when possible.
26898         (*call_symbol): Likewise.
26899         * doc/extend.texi: Document ARM/Thumb target attribute.
26900         * doc/invoke.texi: Likewise.
26902 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
26904         Revert:
26905         2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
26906         PR rtl-optimization/64164
26907         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
26908         * tree-ssa-copyrename.c: Removed.
26909         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
26910         -ftree-coalesce-vars.
26911         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
26912         * common.opt (ftree-copyrename): Ignore.
26913         (ftree-coalesce-inlined-vars): Likewise.
26914         * doc/invoke.texi: Remove the ignored options above.
26915         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
26916         * tree-ssa-coalesce.h: ... here.
26917         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
26918         headers required by it.
26919         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
26920         across variables when flag_tree_coalesce_vars.  Check register
26921         use and promoted modes to allow coalescing.  Moved to
26922         tree-ssa-coalesce.c.
26923         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
26924         with its member functions to tree-ssa-coalesce.c.
26925         (var_map_base_init): Likewise.  Renamed to
26926         compute_samebase_partition_bases.
26927         (partition_view_normal): Drop want_bases parameter.
26928         (partition_view_bitmap): Likewise.
26929         * tree-ssa-live.h: Adjust declarations.
26930         * tree-ssa-coalesce.c: Include explow.h.
26931         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
26932         default defs at the entry point.
26933         (dump_part_var_map): New.
26934         (compute_optimized_partition_bases): New, called by...
26935         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
26936         of compute_samebase_partition_bases.  Adjust.
26937         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
26938         * cfgexpand.c (leader_merge): New.
26939         (get_rtl_for_parm_ssa_default_def): New.
26940         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
26941         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
26942         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
26943         redundant MEM attr setting.
26944         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
26945         from...
26946         (expand_one_stack_var): ... this.  New wrapper to check and
26947         skip already expanded SSA partitions.
26948         (record_alignment_for_reg_var): New, factored out of...
26949         (expand_one_var): ... this.
26950         (expand_one_ssa_partition): New.
26951         (adjust_one_expanded_partition_var): New.
26952         (expand_one_register_var): Check and skip already expanded SSA
26953         partitions.
26954         (expand_used_vars): Don't create DECLs for anonymous SSA
26955         names.  Expand all SSA partitions, then adjust all SSA names.
26956         (pass::execute): Replace the loops that set
26957         SA.partition_to_pseudo from partition leaders and cleared
26958         DECL_RTL for multi-location variables, and that which used to
26959         rename vars and set attrs, with one that clears DECL_RTL and
26960         checks that PARMs and RESULTs default_defs match DECL_RTL.
26961         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
26962         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
26963         * explow.c (promote_ssa_mode): New.
26964         * explow.h (promote_ssa_mode): Declare.
26965         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
26966         * function.c: Include cfgexpand.h.
26967         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
26968         (use_register_for_parm_decl): Wrapper for the above to
26969         special-case the result_ptr.
26970         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
26971         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
26972         multiple locations.
26973         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
26974         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
26975         (assign_parm_setup_block): Prefer SSA-assigned location.
26976         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
26977         if stack_parm is NULL.
26978         (assign_parm_setup_stack): Prefer SSA-assigned location.
26979         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
26980         rtl before testing for pointer bounds.  Special-case result_ptr.
26981         (expand_function_start): Maybe reset DECL_RTL of result.
26982         Prefer SSA-assigned location for result and static chain.
26983         Factor out DECL_RESULT and SET_DECL_RTL.
26984         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
26985         anonymous SSA names.  Use promote_ssa_mode.
26986         (get_temp_reg): Likewise.
26987         (remove_ssa_form): Adjust.
26988         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
26989         and get its reg_usage for reg invalidation.
26990         (compute_bb_dataflow): Pass it insn.
26991         (emit_notes_in_bb): Likewise.
26992         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
26993         fail assert on conversion between unsigned types.
26995 2015-06-09  Tom de Vries  <tom@codesourcery.com>
26997         PR tree-optimization/65460
26998         * omp-low.c (expand_omp_target): Set parallelized_function on
26999         cgraph_node for child_fn.
27001 2015-06-09  Tom de Vries  <tom@codesourcery.com>
27003         * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
27004         parallelized_function before add_new_function.
27006 2015-06-09  Andrew MacLeod  <amacleod@redhat.com>
27008         * gcc-plugin.h: Move decls to plugin.h and include it.
27009         * plugin.h: Relocate decls from gcc-plugin.h
27010         * ggc-page.c: Include required header files.
27011         * passes.c: Likewise.
27012         * cgraphunit.c: Likewise.
27014 2015-06-09  Tom de Vries  <tom@codesourcery.com>
27016         * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
27018 2015-06-09  Jason Merrill  <jason@redhat.com>
27020         PR bootstrap/66448
27021         * toplev.c (check_global_declaration): Don't warn about a clone.
27023 2015-06-09  Marek Polacek  <polacek@redhat.com>
27025         PR tree-optimization/66299
27026         * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
27027         ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
27028         patterns.
27030 2015-06-09  Richard Biener  <rguenther@suse.de>
27032         * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
27033         (vect_analyze_slp_instance): Instead do not falsely drop
27034         load permutations.
27036 2015-06-09  Richard Biener  <rguenther@suse.de>
27038         PR middle-end/66423
27039         * match.pd: Handle A % (unsigned)(1 << B).
27041 2015-06-09  Aldy Hernandez  <aldyh@redhat.com>
27043         * varasm.c (output_object_block_htab): Remove.
27044         (output_object_block_compare): New.
27045         (output_object_blocks): Sort named object_blocks before outputting
27046         them.
27048 2015-06-09  Richard Biener  <rguenther@suse.de>
27050         PR tree-optimization/66419
27051         * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
27052         consider GROUP_GAP when detecting a perfect subchain.
27054 2015-06-09  Nick Clifton  <nickc@redhat.com>
27056         * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
27057         place read only data in the .frodata section.
27059 2015-06-09  Shiva Chen  <shiva0217@gmail.com>
27061         * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
27062         (atomic_store<mode>): Likewise.
27064 2015-06-09  Richard Biener  <rguenther@suse.de>
27066         * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
27068 2015-06-09  Richard Biener  <rguenther@suse.de>
27070         PR middle-end/66413
27071         * tree-inline.c (insert_init_debug_bind): Unshare value.
27073 2015-06-09  Richard Biener  <rguenther@suse.de>
27075         PR tree-optimization/66396
27076         * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
27077         Rename virtual operands.
27079 2015-06-09  Tom de Vries  <tom@codesourcery.com>
27081         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
27082         always return false.
27084 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
27086         PR rtl-optimization/64164
27087         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
27088         * tree-ssa-copyrename.c: Removed.
27089         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
27090         -ftree-coalesce-vars.
27091         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
27092         * common.opt (ftree-copyrename): Ignore.
27093         (ftree-coalesce-inlined-vars): Likewise.
27094         * doc/invoke.texi: Remove the ignored options above.
27095         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
27096         * tree-ssa-coalesce.h: ... here.
27097         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
27098         headers required by it.
27099         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
27100         across variables when flag_tree_coalesce_vars.  Check register
27101         use and promoted modes to allow coalescing.  Moved to
27102         tree-ssa-coalesce.c.
27103         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
27104         with its member functions to tree-ssa-coalesce.c.
27105         (var_map_base_init): Likewise.  Renamed to
27106         compute_samebase_partition_bases.
27107         (partition_view_normal): Drop want_bases parameter.
27108         (partition_view_bitmap): Likewise.
27109         * tree-ssa-live.h: Adjust declarations.
27110         * tree-ssa-coalesce.c: Include explow.h.
27111         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
27112         default defs at the entry point.
27113         (dump_part_var_map): New.
27114         (compute_optimized_partition_bases): New, called by...
27115         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
27116         of compute_samebase_partition_bases.  Adjust.
27117         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
27118         * cfgexpand.c (leader_merge): New.
27119         (get_rtl_for_parm_ssa_default_def): New.
27120         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
27121         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
27122         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
27123         redundant MEM attr setting.
27124         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
27125         from...
27126         (expand_one_stack_var): ... this.  New wrapper to check and
27127         skip already expanded SSA partitions.
27128         (record_alignment_for_reg_var): New, factored out of...
27129         (expand_one_var): ... this.
27130         (expand_one_ssa_partition): New.
27131         (adjust_one_expanded_partition_var): New.
27132         (expand_one_register_var): Check and skip already expanded SSA
27133         partitions.
27134         (expand_used_vars): Don't create DECLs for anonymous SSA
27135         names.  Expand all SSA partitions, then adjust all SSA names.
27136         (pass::execute): Replace the loops that set
27137         SA.partition_to_pseudo from partition leaders and cleared
27138         DECL_RTL for multi-location variables, and that which used to
27139         rename vars and set attrs, with one that clears DECL_RTL and
27140         checks that PARMs and RESULTs default_defs match DECL_RTL.
27141         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
27142         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
27143         * explow.c (promote_ssa_mode): New.
27144         * explow.h (promote_ssa_mode): Declare.
27145         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
27146         * function.c: Include cfgexpand.h.
27147         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
27148         (use_register_for_parm_decl): Wrapper for the above to
27149         special-case the result_ptr.
27150         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
27151         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
27152         multiple locations.
27153         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
27154         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
27155         (assign_parm_setup_block): Prefer SSA-assigned location.
27156         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
27157         if stack_parm is NULL.
27158         (assign_parm_setup_stack): Prefer SSA-assigned location.
27159         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
27160         rtl before testing for pointer bounds.  Special-case result_ptr.
27161         (expand_function_start): Maybe reset DECL_RTL of result.
27162         Prefer SSA-assigned location for result and static chain.
27163         Factor out DECL_RESULT and SET_DECL_RTL.
27164         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
27165         anonymous SSA names.  Use promote_ssa_mode.
27166         (get_temp_reg): Likewise.
27167         (remove_ssa_form): Adjust.
27168         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
27169         and get its reg_usage for reg invalidation.
27170         (compute_bb_dataflow): Pass it insn.
27171         (emit_notes_in_bb): Likewise.
27172         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
27173         fail assert on conversion between unsigned types.
27175 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
27177         PR debug/58315
27178         * tree-inline.c (reset_debug_binding): New.
27179         (reset_debug_bindings): Likewise.
27180         (expand_call_inline): Call it.
27182 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
27184         * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
27185         TYPE_STRING_FLAG.
27187 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
27189         * lto-streamer-out.c (lto_output_location): Stream
27190         reserved locations correctly.
27191         * lto-streamer-in.c (lto_output_location): Likewise.
27193 2015-06-08  Andrew MacLeod  <amacleod@redhat.com>
27195         * coretypes.h: Include hash-table.h and hash-set.h for host files.
27196         * ggc.h: Don't include statistics.h>
27197         * hash-map.h: Remove all includes.
27198         * hash-set.h: Likewise.
27199         * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
27200         the include list. Remove <new>.
27201         * inchash.h: Remove all includes.
27202         * mem-stats.h: Likewise.
27203         * vec.h: No special processing for generators or ggc.
27204         * alias.c : Adjust include files.
27205         * alloc-pool.c : Likewise.
27206         * alloc-pool.h : Likewise.
27207         * asan.c : Likewise.
27208         * attribs.c : Likewise.
27209         * auto-inc-dec.c : Likewise.
27210         * auto-profile.c : Likewise.
27211         * bb-reorder.c : Likewise.
27212         * bitmap.c : Likewise.
27213         * bitmap.h : Likewise.
27214         * bt-load.c : Likewise.
27215         * builtins.c : Likewise.
27216         * caller-save.c : Likewise.
27217         * calls.c : Likewise.
27218         * ccmp.c : Likewise.
27219         * cfg.c : Likewise.
27220         * cfganal.c : Likewise.
27221         * cfgbuild.c : Likewise.
27222         * cfgcleanup.c : Likewise.
27223         * cfgexpand.c : Likewise.
27224         * cfghooks.c : Likewise.
27225         * cfgloop.c : Likewise.
27226         * cfgloop.h : Likewise.
27227         * cfgloopanal.c : Likewise.
27228         * cfgloopmanip.c : Likewise.
27229         * cfgrtl.c : Likewise.
27230         * cgraph.c : Likewise.
27231         * cgraphbuild.c : Likewise.
27232         * cgraphclones.c : Likewise.
27233         * cgraphunit.c : Likewise.
27234         * cilk-common.c : Likewise.
27235         * combine-stack-adj.c : Likewise.
27236         * combine.c : Likewise.
27237         * compare-elim.c : Likewise.
27238         * context.c : Likewise.
27239         * convert.c : Likewise.
27240         * coverage.c : Likewise.
27241         * cppbuiltin.c : Likewise.
27242         * cprop.c : Likewise.
27243         * cse.c : Likewise.
27244         * cselib.c : Likewise.
27245         * data-streamer-in.c : Likewise.
27246         * data-streamer-out.c : Likewise.
27247         * data-streamer.c : Likewise.
27248         * data-streamer.h : Likewise.
27249         * dbxout.c : Likewise.
27250         * dce.c : Likewise.
27251         * ddg.c : Likewise.
27252         * debug.c : Likewise.
27253         * df-core.c : Likewise.
27254         * df-problems.c : Likewise.
27255         * df-scan.c : Likewise.
27256         * df.h : Likewise.
27257         * dfp.c : Likewise.
27258         * dojump.c : Likewise.
27259         * dominance.c : Likewise.
27260         * domwalk.c : Likewise.
27261         * double-int.c : Likewise.
27262         * dse.c : Likewise.
27263         * dumpfile.c : Likewise.
27264         * dwarf2asm.c : Likewise.
27265         * dwarf2cfi.c : Likewise.
27266         * dwarf2out.c : Likewise.
27267         * emit-rtl.c : Likewise.
27268         * et-forest.c : Likewise.
27269         * except.c : Likewise.
27270         * except.h : Likewise.
27271         * explow.c : Likewise.
27272         * expmed.c : Likewise.
27273         * expr.c : Likewise.
27274         * final.c : Likewise.
27275         * fixed-value.c : Likewise.
27276         * fold-const.c : Likewise.
27277         * function.c : Likewise.
27278         * fwprop.c : Likewise.
27279         * gcc-plugin.h : Likewise.
27280         * gcc.c : Likewise.
27281         * gcse-common.c : Likewise.
27282         * gcse.c : Likewise.
27283         * genattrtab.c : Likewise.
27284         * genautomata.c : Likewise.
27285         * genconditions.c : Likewise.
27286         * genemit.c : Likewise.
27287         * generic-match-head.c : Likewise.
27288         * genextract.c : Likewise.
27289         * gengtype-state.c : Likewise.
27290         * gengtype.c : Likewise.
27291         * genhooks.c : Likewise.
27292         * genmatch.c : Likewise.
27293         * genmodes.c : Likewise.
27294         * genrecog.c : Likewise.
27295         * gensupport.c : Likewise.
27296         * ggc-common.c : Likewise.
27297         * ggc-internal.h : Likewise.
27298         * ggc-none.c : Likewise.
27299         * ggc-page.c : Likewise.
27300         * gimple-builder.c : Likewise.
27301         * gimple-expr.c : Likewise.
27302         * gimple-fold.c : Likewise.
27303         * gimple-iterator.c : Likewise.
27304         * gimple-low.c : Likewise.
27305         * gimple-match-head.c : Likewise.
27306         * gimple-pretty-print.c : Likewise.
27307         * gimple-ssa-isolate-paths.c : Likewise.
27308         * gimple-ssa-strength-reduction.c : Likewise.
27309         * gimple-ssa.h : Likewise.
27310         * gimple-streamer-in.c : Likewise.
27311         * gimple-streamer-out.c : Likewise.
27312         * gimple-streamer.h : Likewise.
27313         * gimple-walk.c : Likewise.
27314         * gimple.c : Likewise.
27315         * gimplify-me.c : Likewise.
27316         * gimplify.c : Likewise.
27317         * godump.c : Likewise.
27318         * graph.c : Likewise.
27319         * graphds.c : Likewise.
27320         * graphite-blocking.c : Likewise.
27321         * graphite-dependences.c : Likewise.
27322         * graphite-interchange.c : Likewise.
27323         * graphite-isl-ast-to-gimple.c : Likewise.
27324         * graphite-optimize-isl.c : Likewise.
27325         * graphite-poly.c : Likewise.
27326         * graphite-scop-detection.c : Likewise.
27327         * graphite-sese-to-poly.c : Likewise.
27328         * graphite.c : Likewise.
27329         * haifa-sched.c : Likewise.
27330         * hard-reg-set.h : Likewise.
27331         * hw-doloop.c : Likewise.
27332         * ifcvt.c : Likewise.
27333         * inchash.c : Likewise.
27334         * incpath.c : Likewise.
27335         * init-regs.c : Likewise.
27336         * input.c : Likewise.
27337         * internal-fn.c : Likewise.
27338         * ipa-chkp.c : Likewise.
27339         * ipa-comdats.c : Likewise.
27340         * ipa-cp.c : Likewise.
27341         * ipa-devirt.c : Likewise.
27342         * ipa-icf-gimple.c : Likewise.
27343         * ipa-icf.c : Likewise.
27344         * ipa-inline-analysis.c : Likewise.
27345         * ipa-inline-transform.c : Likewise.
27346         * ipa-inline.c : Likewise.
27347         * ipa-polymorphic-call.c : Likewise.
27348         * ipa-profile.c : Likewise.
27349         * ipa-prop.c : Likewise.
27350         * ipa-pure-const.c : Likewise.
27351         * ipa-ref.c : Likewise.
27352         * ipa-reference.c : Likewise.
27353         * ipa-split.c : Likewise.
27354         * ipa-utils.c : Likewise.
27355         * ipa-visibility.c : Likewise.
27356         * ipa.c : Likewise.
27357         * ira-build.c : Likewise.
27358         * ira-color.c : Likewise.
27359         * ira-conflicts.c : Likewise.
27360         * ira-costs.c : Likewise.
27361         * ira-emit.c : Likewise.
27362         * ira-lives.c : Likewise.
27363         * ira.c : Likewise.
27364         * jump.c : Likewise.
27365         * langhooks.c : Likewise.
27366         * lcm.c : Likewise.
27367         * libfuncs.h : Likewise.
27368         * lists.c : Likewise.
27369         * loop-doloop.c : Likewise.
27370         * loop-init.c : Likewise.
27371         * loop-invariant.c : Likewise.
27372         * loop-iv.c : Likewise.
27373         * loop-unroll.c : Likewise.
27374         * lower-subreg.c : Likewise.
27375         * lra-assigns.c : Likewise.
27376         * lra-coalesce.c : Likewise.
27377         * lra-constraints.c : Likewise.
27378         * lra-eliminations.c : Likewise.
27379         * lra-lives.c : Likewise.
27380         * lra-remat.c : Likewise.
27381         * lra-spills.c : Likewise.
27382         * lra.c : Likewise.
27383         * lto-cgraph.c : Likewise.
27384         * lto-compress.c : Likewise.
27385         * lto-opts.c : Likewise.
27386         * lto-section-in.c : Likewise.
27387         * lto-section-out.c : Likewise.
27388         * lto-streamer-in.c : Likewise.
27389         * lto-streamer-out.c : Likewise.
27390         * lto-streamer.c : Likewise.
27391         * lto-streamer.h : Likewise.
27392         * mcf.c : Likewise.
27393         * mode-switching.c : Likewise.
27394         * modulo-sched.c : Likewise.
27395         * omega.c : Likewise.
27396         * omp-low.c : Likewise.
27397         * optabs.c : Likewise.
27398         * opts-global.c : Likewise.
27399         * opts.h : Likewise.
27400         * passes.c : Likewise.
27401         * plugin.c : Likewise.
27402         * postreload-gcse.c : Likewise.
27403         * postreload.c : Likewise.
27404         * predict.c : Likewise.
27405         * print-rtl.c : Likewise.
27406         * print-tree.c : Likewise.
27407         * profile.c : Likewise.
27408         * read-md.c : Likewise.
27409         * read-md.h : Likewise.
27410         * read-rtl.c : Likewise.
27411         * real.c : Likewise.
27412         * realmpfr.c : Likewise.
27413         * recog.c : Likewise.
27414         * ree.c : Likewise.
27415         * reg-stack.c : Likewise.
27416         * regcprop.c : Likewise.
27417         * reginfo.c : Likewise.
27418         * regrename.c : Likewise.
27419         * regstat.c : Likewise.
27420         * reload.c : Likewise.
27421         * reload1.c : Likewise.
27422         * reorg.c : Likewise.
27423         * resource.c : Likewise.
27424         * rtl-chkp.c : Likewise.
27425         * rtl.c : Likewise.
27426         * rtl.h : Likewise.
27427         * rtlanal.c : Likewise.
27428         * rtlhash.c : Likewise.
27429         * rtlhash.h : Likewise.
27430         * rtlhooks.c : Likewise.
27431         * sanopt.c : Likewise.
27432         * sched-deps.c : Likewise.
27433         * sched-ebb.c : Likewise.
27434         * sched-rgn.c : Likewise.
27435         * sched-vis.c : Likewise.
27436         * sdbout.c : Likewise.
27437         * sel-sched-dump.c : Likewise.
27438         * sel-sched-ir.c : Likewise.
27439         * sel-sched-ir.h : Likewise.
27440         * sel-sched.c : Likewise.
27441         * sese.c : Likewise.
27442         * shrink-wrap.c : Likewise.
27443         * shrink-wrap.h : Likewise.
27444         * simplify-rtx.c : Likewise.
27445         * stack-ptr-mod.c : Likewise.
27446         * statistics.c : Likewise.
27447         * stmt.c : Likewise.
27448         * stor-layout.c : Likewise.
27449         * store-motion.c : Likewise.
27450         * stringpool.c : Likewise.
27451         * symtab.c : Likewise.
27452         * target-globals.c : Likewise.
27453         * targhooks.c : Likewise.
27454         * tlink.c : Likewise.
27455         * toplev.c : Likewise.
27456         * tracer.c : Likewise.
27457         * trans-mem.c : Likewise.
27458         * tree-affine.c : Likewise.
27459         * tree-affine.h : Likewise.
27460         * tree-browser.c : Likewise.
27461         * tree-call-cdce.c : Likewise.
27462         * tree-cfg.c : Likewise.
27463         * tree-cfgcleanup.c : Likewise.
27464         * tree-chkp-opt.c : Likewise.
27465         * tree-chkp.c : Likewise.
27466         * tree-chrec.c : Likewise.
27467         * tree-complex.c : Likewise.
27468         * tree-data-ref.c : Likewise.
27469         * tree-dfa.c : Likewise.
27470         * tree-diagnostic.c : Likewise.
27471         * tree-dump.c : Likewise.
27472         * tree-eh.c : Likewise.
27473         * tree-eh.h : Likewise.
27474         * tree-emutls.c : Likewise.
27475         * tree-hasher.h : Likewise.
27476         * tree-if-conv.c : Likewise.
27477         * tree-inline.c : Likewise.
27478         * tree-inline.h : Likewise.
27479         * tree-into-ssa.c : Likewise.
27480         * tree-iterator.c : Likewise.
27481         * tree-loop-distribution.c : Likewise.
27482         * tree-nested.c : Likewise.
27483         * tree-nrv.c : Likewise.
27484         * tree-object-size.c : Likewise.
27485         * tree-outof-ssa.c : Likewise.
27486         * tree-parloops.c : Likewise.
27487         * tree-phinodes.c : Likewise.
27488         * tree-predcom.c : Likewise.
27489         * tree-pretty-print.c : Likewise.
27490         * tree-profile.c : Likewise.
27491         * tree-scalar-evolution.c : Likewise.
27492         * tree-sra.c : Likewise.
27493         * tree-ssa-address.c : Likewise.
27494         * tree-ssa-alias.c : Likewise.
27495         * tree-ssa-ccp.c : Likewise.
27496         * tree-ssa-coalesce.c : Likewise.
27497         * tree-ssa-copy.c : Likewise.
27498         * tree-ssa-copyrename.c : Likewise.
27499         * tree-ssa-dce.c : Likewise.
27500         * tree-ssa-dom.c : Likewise.
27501         * tree-ssa-dse.c : Likewise.
27502         * tree-ssa-forwprop.c : Likewise.
27503         * tree-ssa-ifcombine.c : Likewise.
27504         * tree-ssa-live.c : Likewise.
27505         * tree-ssa-loop-ch.c : Likewise.
27506         * tree-ssa-loop-im.c : Likewise.
27507         * tree-ssa-loop-ivcanon.c : Likewise.
27508         * tree-ssa-loop-ivopts.c : Likewise.
27509         * tree-ssa-loop-manip.c : Likewise.
27510         * tree-ssa-loop-niter.c : Likewise.
27511         * tree-ssa-loop-prefetch.c : Likewise.
27512         * tree-ssa-loop-unswitch.c : Likewise.
27513         * tree-ssa-loop.c : Likewise.
27514         * tree-ssa-math-opts.c : Likewise.
27515         * tree-ssa-operands.c : Likewise.
27516         * tree-ssa-phiopt.c : Likewise.
27517         * tree-ssa-phiprop.c : Likewise.
27518         * tree-ssa-pre.c : Likewise.
27519         * tree-ssa-propagate.c : Likewise.
27520         * tree-ssa-reassoc.c : Likewise.
27521         * tree-ssa-sccvn.c : Likewise.
27522         * tree-ssa-scopedtables.c : Likewise.
27523         * tree-ssa-sink.c : Likewise.
27524         * tree-ssa-strlen.c : Likewise.
27525         * tree-ssa-structalias.c : Likewise.
27526         * tree-ssa-tail-merge.c : Likewise.
27527         * tree-ssa-ter.c : Likewise.
27528         * tree-ssa-threadedge.c : Likewise.
27529         * tree-ssa-threadupdate.c : Likewise.
27530         * tree-ssa-uncprop.c : Likewise.
27531         * tree-ssa-uninit.c : Likewise.
27532         * tree-ssa.c : Likewise.
27533         * tree-ssanames.c : Likewise.
27534         * tree-stdarg.c : Likewise.
27535         * tree-streamer-in.c : Likewise.
27536         * tree-streamer-out.c : Likewise.
27537         * tree-streamer.c : Likewise.
27538         * tree-streamer.h : Likewise.
27539         * tree-switch-conversion.c : Likewise.
27540         * tree-tailcall.c : Likewise.
27541         * tree-vect-data-refs.c : Likewise.
27542         * tree-vect-generic.c : Likewise.
27543         * tree-vect-loop-manip.c : Likewise.
27544         * tree-vect-loop.c : Likewise.
27545         * tree-vect-patterns.c : Likewise.
27546         * tree-vect-slp.c : Likewise.
27547         * tree-vect-stmts.c : Likewise.
27548         * tree-vectorizer.c : Likewise.
27549         * tree-vectorizer.h : Likewise.
27550         * tree-vrp.c : Likewise.
27551         * tree.c : Likewise.
27552         * tsan.c : Likewise.
27553         * ubsan.c : Likewise.
27554         * valtrack.c : Likewise.
27555         * valtrack.h : Likewise.
27556         * value-prof.c : Likewise.
27557         * var-tracking.c : Likewise.
27558         * varasm.c : Likewise.
27559         * varpool.c : Likewise.
27560         * vec.c: Likewise.
27561         * vmsdbgout.c : Likewise.
27562         * vtable-verify.c : Likewise.
27563         * vtable-verify.h : Likewise.
27564         * web.c : Likewise.
27565         * wide-int.cc : Likewise.
27566         * xcoffout.c : Likewise.
27567         * config/aarch64/aarch64-builtins.c : Likewise.
27568         * config/aarch64/aarch64.c : Likewise.
27569         * config/aarch64/cortex-a57-fma-steering.c : Likewise.
27570         * config/alpha/alpha.c : Likewise.
27571         * config/arc/arc.c : Likewise.
27572         * config/arm/aarch-common.c : Likewise.
27573         * config/arm/arm-builtins.c : Likewise.
27574         * config/arm/arm-c.c : Likewise.
27575         * config/arm/arm.c : Likewise.
27576         * config/avr/avr-c.c : Likewise.
27577         * config/avr/avr-log.c : Likewise.
27578         * config/avr/avr.c : Likewise.
27579         * config/bfin/bfin.c : Likewise.
27580         * config/c6x/c6x.c : Likewise.
27581         * config/cr16/cr16.c : Likewise.
27582         * config/cris/cris.c : Likewise.
27583         * config/darwin-c.c : Likewise.
27584         * config/darwin.c : Likewise.
27585         * config/default-c.c : Likewise.
27586         * config/epiphany/epiphany.c : Likewise.
27587         * config/epiphany/mode-switch-use.c : Likewise.
27588         * config/epiphany/resolve-sw-modes.c : Likewise.
27589         * config/fr30/fr30.c : Likewise.
27590         * config/frv/frv.c : Likewise.
27591         * config/ft32/ft32.c : Likewise.
27592         * config/glibc-c.c : Likewise.
27593         * config/h8300/h8300.c : Likewise.
27594         * config/i386/i386-c.c : Likewise.
27595         * config/i386/i386.c : Likewise.
27596         * config/i386/msformat-c.c : Likewise.
27597         * config/i386/winnt-cxx.c : Likewise.
27598         * config/i386/winnt-stubs.c : Likewise.
27599         * config/i386/winnt.c : Likewise.
27600         * config/ia64/ia64-c.c : Likewise.
27601         * config/ia64/ia64.c : Likewise.
27602         * config/iq2000/iq2000.c : Likewise.
27603         * config/lm32/lm32.c : Likewise.
27604         * config/m32c/m32c-pragma.c : Likewise.
27605         * config/m32c/m32c.c : Likewise.
27606         * config/m32r/m32r.c : Likewise.
27607         * config/m68k/m68k.c : Likewise.
27608         * config/mcore/mcore.c : Likewise.
27609         * config/mep/mep-pragma.c : Likewise.
27610         * config/mep/mep.c : Likewise.
27611         * config/microblaze/microblaze-c.c : Likewise.
27612         * config/microblaze/microblaze.c : Likewise.
27613         * config/mips/mips.c : Likewise.
27614         * config/mmix/mmix.c : Likewise.
27615         * config/mn10300/mn10300.c : Likewise.
27616         * config/moxie/moxie.c : Likewise.
27617         * config/msp430/msp430-c.c : Likewise.
27618         * config/msp430/msp430.c : Likewise.
27619         * config/nds32/nds32-cost.c : Likewise.
27620         * config/nds32/nds32-fp-as-gp.c : Likewise.
27621         * config/nds32/nds32-intrinsic.c : Likewise.
27622         * config/nds32/nds32-isr.c : Likewise.
27623         * config/nds32/nds32-md-auxiliary.c : Likewise.
27624         * config/nds32/nds32-memory-manipulation.c : Likewise.
27625         * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
27626         * config/nds32/nds32-predicates.c : Likewise.
27627         * config/nds32/nds32.c : Likewise.
27628         * config/nios2/nios2.c : Likewise.
27629         * config/nvptx/nvptx.c : Likewise.
27630         * config/pa/pa.c : Likewise.
27631         * config/pdp11/pdp11.c : Likewise.
27632         * config/rl78/rl78-c.c : Likewise.
27633         * config/rl78/rl78.c : Likewise.
27634         * config/rs6000/rs6000-c.c : Likewise.
27635         * config/rs6000/rs6000.c : Likewise.
27636         * config/rx/rx.c : Likewise.
27637         * config/s390/s390-c.c : Likewise.
27638         * config/s390/s390.c : Likewise.
27639         * config/sh/sh-c.c : Likewise.
27640         * config/sh/sh-mem.cc : Likewise.
27641         * config/sh/sh.c : Likewise.
27642         * config/sh/sh_optimize_sett_clrt.cc : Likewise.
27643         * config/sh/sh_treg_combine.cc : Likewise.
27644         * config/sol2-c.c : Likewise.
27645         * config/sol2-cxx.c : Likewise.
27646         * config/sol2-stubs.c : Likewise.
27647         * config/sol2.c : Likewise.
27648         * config/sparc/sparc-c.c : Likewise.
27649         * config/sparc/sparc.c : Likewise.
27650         * config/spu/spu-c.c : Likewise.
27651         * config/spu/spu.c : Likewise.
27652         * config/stormy16/stormy16.c : Likewise.
27653         * config/tilegx/mul-tables.c : Likewise.
27654         * config/tilegx/tilegx-c.c : Likewise.
27655         * config/tilegx/tilegx.c : Likewise.
27656         * config/tilepro/mul-tables.c : Likewise.
27657         * config/tilepro/tilepro-c.c : Likewise.
27658         * config/tilepro/tilepro.c : Likewise.
27659         * config/v850/v850-c.c : Likewise.
27660         * config/v850/v850.c : Likewise.
27661         * config/vax/vax.c : Likewise.
27662         * config/visium/visium.c : Likewise.
27663         * config/vms/vms-c.c : Likewise.
27664         * config/vms/vms.c : Likewise.
27665         * config/vxworks.c : Likewise.
27666         * config/winnt-c.c : Likewise.
27667         * config/xtensa/xtensa.c : Likewise.
27669 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
27671         PR lto/65378
27672         * ipa-utils.h (warn_types_mismatch): Update prototype.
27673         * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
27674         parameters.
27675         (type_mismatch_p): New function.
27676         (warn_types_mismatch): Reorg to work better on non-C++ types.
27677         (odr_types_equivalent_p): Add loc1/loc2 parameters.
27678         (add_type_duplicate): Update.
27680 2015-06-08  Tom de Vries  <tom@codesourcery.com>
27682         PR rtl-optimization/66444
27683         * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
27684         call_used_regs.
27686 2015-06-08  Richard Biener  <rguenther@suse.de>
27688         PR tree-optimization/66422
27689         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
27690         block after inserted gcc_unreachable.
27692 2015-06-08  Nick Clifton  <nickc@redhat.com>
27694         * config/rx/rx.c (rx_function_value): Do not promote vector types.
27695         (rx_promote_function_mode): Likewise.
27696         * config/rx/rx.h (LIBCALL_VALUE): Likewise.
27698 2015-06-08  Jakub Jelinek  <jakub@redhat.com>
27700         * genattrtab.c (insn_alternatives): Change type from int *
27701         to uint64_t *.
27702         (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
27703         (get_attr_value): Change type of num_alt to uint64_t.
27704         (compute_alternative_mask): Change return type from
27705         int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
27706         (make_alternative_compare, mk_attr_alt): Change argument type
27707         from int to uint64_t.
27708         (simplify_test_exp): Change type of i from int to uint64_t.
27709         Shift ((uint64_t) 1) instead of 1 up.
27710         (main): Adjust oballocvec first argument from int to uint64_t.
27711         Shift ((uint64_t) 1) instead of 1 up.
27713 2015-06-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
27715         PR other/65366
27716         * gdbhooks.py: Import sys.
27717         (intptr): New function.  Replace int(...) by intptr(...).
27719 2015-06-08  Richard Biener  <rguenther@suse.de>
27721         * tree-vect-stmts.c (vectorizable_load): Compute the pointer
27722         adjustment for gaps at the end of a SLP load group properly.
27723         * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
27724         all permutations we can generate.
27725         (vect_transform_slp_perm_load): Use the correct group-size.
27727 2015-06-08  Marc Glisse  <marc.glisse@inria.fr>
27729         * genmatch.c (expr::gen_transform): For conditions, guess the type
27730         from the second operand.
27732 2015-06-08  Tom de Vries  <tom@codesourcery.com>
27734         PR tree-optimization/66442
27735         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
27736         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
27737         if the loop latch is not a singleton.  Use
27738         gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
27740 2015-06-08  Marek Polacek  <polacek@redhat.com>
27742         PR sanitizer/66452
27743         * toplev.c (check_global_declaration): Don't warn about artificial
27744         decls.
27746 2015-06-08  Tom de Vries  <tom@codesourcery.com>
27748         PR tree-optimization/66436
27749         * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
27750         dump file.
27751         * gimplify.c: Add tree-dump.h include.
27752         (gimplify_function_tree): Dump function to gimple dump file.
27753         * stor-layout.c (finalize_size_functions): Don't dump function to gimple
27754         dump file.
27756 2015-06-08  Tom de Vries  <tom@codesourcery.com>
27758         PR tree-optimization/66435
27759         * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
27760         function.
27762 2015-06-06  Jan Hubicka  <hubicka@ucw.cz>
27764         * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
27765         of ptr_type_node to not be ptr_to_node.
27766         * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
27767         TREE_TYPE of pointers.
27768         * gimple-expr.c (useless_type_conversion): Reorder the check for
27769         function pointers and TYPE_CANONICAL.
27771 2015-06-06  John David Anglin  <danglin@gcc.gnu.org>
27773         PR bootstrap/66319
27774         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
27775         defines.  Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
27776         Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
27777         later.
27778         * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
27779         Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
27780         _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
27781         _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
27782         and non iso if unix2003.
27784 2015-06-06  Aldy Hernandez  <aldyh@redhat.com>
27786         * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
27788 2015-06-06  Richard Sandiford  <richard.sandiford@arm.com>
27790         * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
27791         rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
27792         cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
27793         except.c, final.c, function.c, gcse-common.c, genemit.c,
27794         haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
27795         lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
27796         sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
27797         shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
27798         more derived ones.
27800 2015-06-06  Mikhail Maltsev  <maltsevm@gmail.com>
27802         * combine.c (combine_split_insns): Remove cast.
27803         * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
27804         * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
27805         * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
27806         * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
27807         * genemit.c (gen_split): Change return type of generated functions to
27808         rtx_insn.
27809         * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
27810         (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
27811         gen_peephole2_* functions.
27812         (print_subroutine, main): Likewise.
27813         * recog.c (peephole2_optimize): Remove cast.
27814         (peep2_next_insn): Promote return type to rtx_insn.
27815         * recog.h (peep2_next_insn): Fix prototype.
27816         * rtl.h (try_split, split_insns): Likewise.
27818 2015-06-06  DJ Delorie  <dj@redhat.com>
27820         * config/msp430/msp430.c (msp430_asm_integer): Support addition
27821         and subtraction too.
27823 2015-06-05  Kaz Kojima  <kkojima@gcc.gnu.org>
27825         PR target/66410
27826         * config/sh/constraints.md (Sid, Ssd): New memory constraints.
27827         * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
27828         instead of Snd.  Disparage Sid/z alternative with '^'.
27830 2015-06-05  Aldy Hernandez  <aldyh@redhat.com>
27832         * dwarf2out.c: Remove deferred_locations*.
27833         (dwarf2_debug_hooks): Add early_finish hook.
27834         Remove global_decl hook.
27835         Add early_global_decl and late_global_decl hook.
27836         New global early_dwarf.
27837         New structure set_early_dwarf.
27838         (output_die): Indicate whether a DIE was generated early
27839         when generating assembly with -dA.
27840         (struct limbo_die_struct): Document created_for field.
27841         Remove file_table_last_lookup.
27842         (remove_AT): Return TRUE if successful.
27843         (remove_child_TAG): Clear die_parent.
27844         (reparent_child): New function abstracted from...
27845         (splice_child_die): ...here.
27846         (new_die): ICE if a DIE ends up in limbo too late.
27847         (check_die): New.
27848         (defer_location): Remove.
27849         (add_subscript_info): Reuse DW_TAG_subrange_type if available.
27850         (fill_variable_array_bounds): New.
27851         (decl_start_label): Call fill_variable_array_bounds.
27852         (gen_formal_parameter_die): Rewrite to reuse previously generated
27853         DIEs.
27854         (gen_subprogram_die): Same.
27855         (gen_variable_die): Same.
27856         (gen_const_die): Same.
27857         (gen_label_die): Same.
27858         (gen_lexical_block_die): Same.
27859         (decl_will_get_specification_p): New.
27860         (local_function_static): New.
27861         (gen_struct_or_union_type_die): Fill in variable-length fields.
27862         (gen_typedef_die): Fill in variable-length typedefs.
27863         (gen_tagged_type_die): Gracefully return on error_mark_node.
27864         Handle re-entrancy.
27865         (gen_type_die_with_usage): Handle variable-length types.
27866         Remove duplicate code for ARRAY_TYPE case.
27867         (process_scope_var): Only process imported modules during early
27868         dwarf.
27869         (dwarf2out_early_global_decl): New.
27870         (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
27871         (dwarf2out_type_decl): Set early_dwarf while calling
27872         dwarf2out_decl.
27873         (dwarf2out_decl): Verify that we did not recreate a previously
27874         generated DIE.
27875         Do not return on DECL_EXTERNALs in VAR_DECLs.
27876         Abstract some code to local_function_static.
27877         (lookup_filename): Remove use of file_table_last_lookup.
27878         Gracefully exit on missing file_name.
27879         (dwarf2out_finish): Verify limbo list.
27880         Remove deferred_locations_list use.
27881         Move deferred_asm_name and limbo flushing to...
27882         (dwarf2out_early_finish): ...here.  New.
27883         (dwarf2out_c_finalize): Remove set of deferred_location_list,
27884         deferred_asm_name, and file_table_last_lookup.
27885         * cgraph.h (referred_to_p): Add default argument.
27886         * cgraphunit.c (referred_to_p): Add and handle include_self
27887         argument.
27888         (analyze_functions): Add first_time argument.
27889         Call check_global_declaration for all symbols.
27890         Call late_global_decl for nodes for moribund nodes.
27891         (finalize_compilation_unit): Add new argument to
27892         analyze_functions.
27893         Call early_global_decl for functions.
27894         Call early_finish debug hook.
27895         * dbxout.c (dbxout_early_global_decl): New.
27896         (dbxout_late_global_decl): New.  Adapted from dbxout_global_decl.
27897         (dbx_debug_hooks): Add new hooks.
27898         (xcoff_debug_hooks): Same.
27899         * debug.c (do_nothing_debug_hooks): Add early_finish field.
27900         Add early and late debug hooks.
27901         Remove global_decl hook.
27902         * debug.h (struct gcc_debug_hooks): Add early_finish,
27903         early_global_decl, and late_global_decl fields.
27904         Remove global_decl field.
27905         Document gcc_debug_hooks.
27906         * gengtype.c (output_typename): Remove.
27907         * godump.c (go_early_global_decl): New.
27908         (go_late_global_decl): New.
27909         (go_global_decl): Remove.
27910         (dump_go_spec_init): Remove global_decl.  Add
27911         {early,late}_global_decl.
27912         * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
27913         (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
27914         * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
27915         (write_global_declarations): Remove.
27916         (global_decl_processing): New.
27917         * langhooks.h (struct lang_hooks_for_decls): Remove
27918         final_write_globals field.
27919         Add post_compilation_parsing_cleanups field.
27920         * passes.c (rest_of_decl_compilation): Call early_global_decl.
27921         * sdbout.c: Add early and late_global_decl hooks.  Remove
27922         sdbout_global_decl hook.
27923         Add early_finish field for sdb_debug_hooks.
27924         (sdbout_global_decl): Remove.
27925         (sdbout_early_global_decl): New.
27926         (sdbout_late_global_decl): New.
27927         * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
27928         * toplev.c (check_global_declaration): Rename from
27929         check_global_declaration_1.
27930         Adapt to use symtab infrastructure.
27931         (check_global_declarations): Remove.
27932         (emit_debug_global_declarations): Remove.
27933         (compile_file): Remove call to final_write_globals langhook.
27934         Run the actual compilation process.
27935         Perform any post compilation parser cleanups.
27936         Generate late debug info.
27937         * toplev.h (check_global_declaration): New.
27938         (check_global_declaration_1): Remove.
27939         (check_global_declarations): Remove.
27940         (write_global_declarations): Remove.
27941         (emit_debug_global_declarations): Remove.
27942         (global_decl_processing): New.
27943         * tree-core.h (struct tree_block): Add DIE field.
27944         * tree.h (BLOCK_DIE): New.
27945         * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
27946         throughout.
27947         (vmsdbgout_early_global_decl): New.
27948         (vmsdbgout_late_global_decl): New.
27949         Add early_finish debug hook field to vmsdbg_debug_hooks.
27950         Remove vmsdbgout_decl to vmsdbgout_function_decl.
27951         Add early and late_global_decl debug hooks.
27953 2015-06-05  Julian Brown  <julian@codesourcery.com>
27954             Sandra Loosemore  <sandra@codesourcery.com>
27956         * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
27957         * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
27958         to print-sysroot-suffix.sh script.
27960 2015-06-05  Tom de Vries  <tom@codesourcery.com>
27962         merge from gomp4 branch:
27963         2015-05-28  Tom de Vries  <tom@codesourcery.com>
27965         PR tree-optimization/65443
27966         * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
27967         (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
27968         (try_transform_to_exit_first_loop_alt): New function.
27969         (transform_to_exit_first_loop): Use
27970         try_transform_to_exit_first_loop_alt.
27972 2015-06-05  James Greenhalgh  <james.greenhalgh@arm.com>
27974         * builtins.c (expand_builtin_atomic_compare_exchange): Call
27975         emit_cmp_and_jump_insns with the mode of target.
27977 2015-06-05  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
27979         * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
27981 2015-06-04  DJ Delorie  <dj@redhat.com>
27983         * config/msp430/msp430.md (movsi_s): New.  Special case for
27984         storing a 20-bit symbol into a 32-bit register.
27985         * config/msp430/msp430.c (msp430_subreg): Add support for it.
27986         * config/msp430/predicates.md (msp430_symbol_operand): New.
27988 2015-06-04  Sriraman Tallam  <tmsriram@google.com>
27990         * calls.c (prepare_call_address): Check for noplt
27991         attribute.
27992         * config/i386/i386.c (ix86_expand_call): Check
27993         for noplt attribute.
27994         (ix86_nopic_noplt_attribute_p): New function.
27995         (ix86_output_call_insn): Output indirect call for non-pic
27996         no plt calls.
27997         * doc/extend.texi (noplt): Document new attribute.
27998         * doc/invoke.texi: Document new attribute.
28000 2015-06-04  Andrew MacLeod  <amacleod@redhat.com>
28002         * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
28003         real.h, and fixed-value.h when included in host source files.
28004         * double-int.h: Remove redundant #includes listed above.
28005         * fixed-value.h: Likewise.
28006         * real.h: Likewise.
28007         * wide-int.h: Likewise.
28008         * inchash.h: Likewise.
28009         * rtl.h: Add some include files When included from a generator file.
28010         * target.h: Remove wide-int.h and insn-modes.h from the include list.
28011         * internal-fn.h: Don't include coretypes.h.
28012         * alias.c: Adjust includes for restructured coretypes.h.
28013         * asan.c: Likewise.
28014         * attribs.c: Likewise.
28015         * auto-inc-dec.c: Likewise.
28016         * auto-profile.c: Likewise.
28017         * bb-reorder.c: Likewise.
28018         * bt-load.c: Likewise.
28019         * builtins.c: Likewise.
28020         * caller-save.c: Likewise.
28021         * calls.c: Likewise.
28022         * ccmp.c: Likewise.
28023         * cfg.c: Likewise.
28024         * cfganal.c: Likewise.
28025         * cfgbuild.c: Likewise.
28026         * cfgcleanup.c: Likewise.
28027         * cfgexpand.c: Likewise.
28028         * cfghooks.c: Likewise.
28029         * cfgloop.c: Likewise.
28030         * cfgloop.h: Likewise.
28031         * cfgloopanal.c: Likewise.
28032         * cfgloopmanip.c: Likewise.
28033         * cfgrtl.c: Likewise.
28034         * cgraph.c: Likewise.
28035         * cgraphbuild.c: Likewise.
28036         * cgraphclones.c: Likewise.
28037         * cgraphunit.c: Likewise.
28038         * cilk-common.c: Likewise.
28039         * combine-stack-adj.c: Likewise.
28040         * combine.c: Likewise.
28041         * compare-elim.c: Likewise.
28042         * convert.c: Likewise.
28043         * coverage.c: Likewise.
28044         * cppbuiltin.c: Likewise.
28045         * cprop.c: Likewise.
28046         * cse.c: Likewise.
28047         * cselib.c: Likewise.
28048         * data-streamer-in.c: Likewise.
28049         * data-streamer-out.c: Likewise.
28050         * data-streamer.c: Likewise.
28051         * dbxout.c: Likewise.
28052         * dce.c: Likewise.
28053         * ddg.c: Likewise.
28054         * debug.c: Likewise.
28055         * df-core.c: Likewise.
28056         * df-problems.c: Likewise.
28057         * df-scan.c: Likewise.
28058         * df.h: Likewise.
28059         * dfp.c: Likewise.
28060         * dojump.c: Likewise.
28061         * dominance.c: Likewise.
28062         * domwalk.c: Likewise.
28063         * double-int.c: Likewise.
28064         * dse.c: Likewise.
28065         * dumpfile.c: Likewise.
28066         * dwarf2asm.c: Likewise.
28067         * dwarf2cfi.c: Likewise.
28068         * dwarf2out.c: Likewise.
28069         * dwarf2out.h: Likewise.
28070         * emit-rtl.c: Likewise.
28071         * et-forest.c: Likewise.
28072         * except.c: Likewise.
28073         * explow.c: Likewise.
28074         * expmed.c: Likewise.
28075         * expr.c: Likewise.
28076         * final.c: Likewise.
28077         * fixed-value.c: Likewise.
28078         * fold-const.c: Likewise.
28079         * function.c: Likewise.
28080         * fwprop.c: Likewise.
28081         * gcc-plugin.h: Likewise.
28082         * gcse.c: Likewise.
28083         * generic-match-head.c: Likewise.
28084         * ggc-page.c: Likewise.
28085         * gimple-builder.c: Likewise.
28086         * gimple-expr.c: Likewise.
28087         * gimple-fold.c: Likewise.
28088         * gimple-iterator.c: Likewise.
28089         * gimple-low.c: Likewise.
28090         * gimple-match-head.c: Likewise.
28091         * gimple-pretty-print.c: Likewise.
28092         * gimple-ssa-isolate-paths.c: Likewise.
28093         * gimple-ssa-strength-reduction.c: Likewise.
28094         * gimple-streamer-in.c: Likewise.
28095         * gimple-streamer-out.c: Likewise.
28096         * gimple-streamer.h: Likewise.
28097         * gimple-walk.c: Likewise.
28098         * gimple.c: Likewise.
28099         * gimplify-me.c: Likewise.
28100         * gimplify.c: Likewise.
28101         * godump.c: Likewise.
28102         * graph.c: Likewise.
28103         * graphite-blocking.c: Likewise.
28104         * graphite-dependences.c: Likewise.
28105         * graphite-interchange.c: Likewise.
28106         * graphite-isl-ast-to-gimple.c: Likewise.
28107         * graphite-optimize-isl.c: Likewise.
28108         * graphite-poly.c: Likewise.
28109         * graphite-scop-detection.c: Likewise.
28110         * graphite-sese-to-poly.c: Likewise.
28111         * graphite.c: Likewise.
28112         * haifa-sched.c: Likewise.
28113         * hooks.h: Likewise.
28114         * hw-doloop.c: Likewise.
28115         * ifcvt.c: Likewise.
28116         * incpath.c: Likewise.
28117         * init-regs.c: Likewise.
28118         * internal-fn.c: Likewise.
28119         * ipa-chkp.c: Likewise.
28120         * ipa-comdats.c: Likewise.
28121         * ipa-cp.c: Likewise.
28122         * ipa-devirt.c: Likewise.
28123         * ipa-icf-gimple.c: Likewise.
28124         * ipa-icf.c: Likewise.
28125         * ipa-inline-analysis.c: Likewise.
28126         * ipa-inline-transform.c: Likewise.
28127         * ipa-inline.c: Likewise.
28128         * ipa-polymorphic-call.c: Likewise.
28129         * ipa-profile.c: Likewise.
28130         * ipa-prop.c: Likewise.
28131         * ipa-pure-const.c: Likewise.
28132         * ipa-ref.c: Likewise.
28133         * ipa-reference.c: Likewise.
28134         * ipa-split.c: Likewise.
28135         * ipa-utils.c: Likewise.
28136         * ipa-visibility.c: Likewise.
28137         * ipa.c: Likewise.
28138         * ira-build.c: Likewise.
28139         * ira-color.c: Likewise.
28140         * ira-conflicts.c: Likewise.
28141         * ira-costs.c: Likewise.
28142         * ira-emit.c: Likewise.
28143         * ira-lives.c: Likewise.
28144         * ira.c: Likewise.
28145         * jump.c: Likewise.
28146         * langhooks.c: Likewise.
28147         * lcm.c: Likewise.
28148         * loop-doloop.c: Likewise.
28149         * loop-init.c: Likewise.
28150         * loop-invariant.c: Likewise.
28151         * loop-iv.c: Likewise.
28152         * loop-unroll.c: Likewise.
28153         * lower-subreg.c: Likewise.
28154         * lra-assigns.c: Likewise.
28155         * lra-coalesce.c: Likewise.
28156         * lra-constraints.c: Likewise.
28157         * lra-eliminations.c: Likewise.
28158         * lra-lives.c: Likewise.
28159         * lra-remat.c: Likewise.
28160         * lra-spills.c: Likewise.
28161         * lra.c: Likewise.
28162         * lto-cgraph.c: Likewise.
28163         * lto-compress.c: Likewise.
28164         * lto-opts.c: Likewise.
28165         * lto-section-in.c: Likewise.
28166         * lto-section-out.c: Likewise.
28167         * lto-streamer-in.c: Likewise.
28168         * lto-streamer-out.c: Likewise.
28169         * lto-streamer.c: Likewise.
28170         * mcf.c: Likewise.
28171         * mode-switching.c: Likewise.
28172         * modulo-sched.c: Likewise.
28173         * omega.c: Likewise.
28174         * omp-low.c: Likewise.
28175         * optabs.c: Likewise.
28176         * opts-global.c: Likewise.
28177         * passes.c: Likewise.
28178         * plugin.c: Likewise.
28179         * postreload-gcse.c: Likewise.
28180         * postreload.c: Likewise.
28181         * predict.c: Likewise.
28182         * print-rtl.c: Likewise.
28183         * print-tree.c: Likewise.
28184         * profile.c: Likewise.
28185         * real.c: Likewise.
28186         * realmpfr.c: Likewise.
28187         * realmpfr.h: Likewise.
28188         * recog.c: Likewise.
28189         * ree.c: Likewise.
28190         * reg-stack.c: Likewise.
28191         * regcprop.c: Likewise.
28192         * reginfo.c: Likewise.
28193         * regrename.c: Likewise.
28194         * regs.h: Likewise.
28195         * regstat.c: Likewise.
28196         * reload.c: Likewise.
28197         * reload1.c: Likewise.
28198         * reorg.c: Likewise.
28199         * resource.c: Likewise.
28200         * rtl-chkp.c: Likewise.
28201         * rtlanal.c: Likewise.
28202         * rtlhooks.c: Likewise.
28203         * sanopt.c: Likewise.
28204         * sched-deps.c: Likewise.
28205         * sched-ebb.c: Likewise.
28206         * sched-rgn.c: Likewise.
28207         * sched-vis.c: Likewise.
28208         * sdbout.c: Likewise.
28209         * sel-sched-dump.c: Likewise.
28210         * sel-sched-ir.c: Likewise.
28211         * sel-sched.c: Likewise.
28212         * sese.c: Likewise.
28213         * shrink-wrap.c: Likewise.
28214         * shrink-wrap.h: Likewise.
28215         * simplify-rtx.c: Likewise.
28216         * stack-ptr-mod.c: Likewise.
28217         * statistics.c: Likewise.
28218         * stmt.c: Likewise.
28219         * stor-layout.c: Likewise.
28220         * store-motion.c: Likewise.
28221         * stringpool.c: Likewise.
28222         * symtab.c: Likewise.
28223         * target-globals.c: Likewise.
28224         * targhooks.c: Likewise.
28225         * toplev.c: Likewise.
28226         * tracer.c: Likewise.
28227         * trans-mem.c: Likewise.
28228         * tree-affine.c: Likewise.
28229         * tree-affine.h: Likewise.
28230         * tree-browser.c: Likewise.
28231         * tree-call-cdce.c: Likewise.
28232         * tree-cfg.c: Likewise.
28233         * tree-cfgcleanup.c: Likewise.
28234         * tree-chkp-opt.c: Likewise.
28235         * tree-chkp.c: Likewise.
28236         * tree-chrec.c: Likewise.
28237         * tree-complex.c: Likewise.
28238         * tree-data-ref.c: Likewise.
28239         * tree-dfa.c: Likewise.
28240         * tree-diagnostic.c: Likewise.
28241         * tree-dump.c: Likewise.
28242         * tree-eh.c: Likewise.
28243         * tree-emutls.c: Likewise.
28244         * tree-if-conv.c: Likewise.
28245         * tree-inline.c: Likewise.
28246         * tree-into-ssa.c: Likewise.
28247         * tree-iterator.c: Likewise.
28248         * tree-loop-distribution.c: Likewise.
28249         * tree-nested.c: Likewise.
28250         * tree-nrv.c: Likewise.
28251         * tree-object-size.c: Likewise.
28252         * tree-outof-ssa.c: Likewise.
28253         * tree-parloops.c: Likewise.
28254         * tree-phinodes.c: Likewise.
28255         * tree-predcom.c: Likewise.
28256         * tree-pretty-print.c: Likewise.
28257         * tree-pretty-print.h: Likewise.
28258         * tree-profile.c: Likewise.
28259         * tree-scalar-evolution.c: Likewise.
28260         * tree-sra.c: Likewise.
28261         * tree-ssa-address.c: Likewise.
28262         * tree-ssa-alias.c: Likewise.
28263         * tree-ssa-ccp.c: Likewise.
28264         * tree-ssa-coalesce.c: Likewise.
28265         * tree-ssa-copy.c: Likewise.
28266         * tree-ssa-copyrename.c: Likewise.
28267         * tree-ssa-dce.c: Likewise.
28268         * tree-ssa-dom.c: Likewise.
28269         * tree-ssa-dse.c: Likewise.
28270         * tree-ssa-forwprop.c: Likewise.
28271         * tree-ssa-ifcombine.c: Likewise.
28272         * tree-ssa-live.c: Likewise.
28273         * tree-ssa-loop-ch.c: Likewise.
28274         * tree-ssa-loop-im.c: Likewise.
28275         * tree-ssa-loop-ivcanon.c: Likewise.
28276         * tree-ssa-loop-ivopts.c: Likewise.
28277         * tree-ssa-loop-manip.c: Likewise.
28278         * tree-ssa-loop-niter.c: Likewise.
28279         * tree-ssa-loop-prefetch.c: Likewise.
28280         * tree-ssa-loop-unswitch.c: Likewise.
28281         * tree-ssa-loop.c: Likewise.
28282         * tree-ssa-loop.h: Likewise.
28283         * tree-ssa-math-opts.c: Likewise.
28284         * tree-ssa-operands.c: Likewise.
28285         * tree-ssa-phiopt.c: Likewise.
28286         * tree-ssa-phiprop.c: Likewise.
28287         * tree-ssa-pre.c: Likewise.
28288         * tree-ssa-propagate.c: Likewise.
28289         * tree-ssa-reassoc.c: Likewise.
28290         * tree-ssa-sccvn.c: Likewise.
28291         * tree-ssa-scopedtables.c: Likewise.
28292         * tree-ssa-sink.c: Likewise.
28293         * tree-ssa-strlen.c: Likewise.
28294         * tree-ssa-structalias.c: Likewise.
28295         * tree-ssa-tail-merge.c: Likewise.
28296         * tree-ssa-ter.c: Likewise.
28297         * tree-ssa-threadedge.c: Likewise.
28298         * tree-ssa-threadupdate.c: Likewise.
28299         * tree-ssa-uncprop.c: Likewise.
28300         * tree-ssa-uninit.c: Likewise.
28301         * tree-ssa.c: Likewise.
28302         * tree-ssanames.c: Likewise.
28303         * tree-stdarg.c: Likewise.
28304         * tree-streamer-in.c: Likewise.
28305         * tree-streamer-out.c: Likewise.
28306         * tree-streamer.c: Likewise.
28307         * tree-switch-conversion.c: Likewise.
28308         * tree-tailcall.c: Likewise.
28309         * tree-vect-data-refs.c: Likewise.
28310         * tree-vect-generic.c: Likewise.
28311         * tree-vect-loop-manip.c: Likewise.
28312         * tree-vect-loop.c: Likewise.
28313         * tree-vect-patterns.c: Likewise.
28314         * tree-vect-slp.c: Likewise.
28315         * tree-vect-stmts.c: Likewise.
28316         * tree-vectorizer.c: Likewise.
28317         * tree-vrp.c: Likewise.
28318         * tree.c: Likewise.
28319         * tsan.c: Likewise.
28320         * ubsan.c: Likewise.
28321         * valtrack.c: Likewise.
28322         * value-prof.c: Likewise.
28323         * var-tracking.c: Likewise.
28324         * varasm.c: Likewise.
28325         * varpool.c: Likewise.
28326         * vmsdbgout.c: Likewise.
28327         * vtable-verify.c: Likewise.
28328         * web.c: Likewise.
28329         * wide-int-print.cc: Likewise.
28330         * wide-int-print.h: Likewise.
28331         * wide-int.cc: Likewise.
28332         * xcoffout.c: Likewise.
28333         * config/aarch64/aarch64-builtins.c: Likewise.
28334         * config/aarch64/aarch64.c: Likewise.
28335         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
28336         * config/alpha/alpha.c: Likewise.
28337         * config/arc/arc.c: Likewise.
28338         * config/arm/aarch-common.c: Likewise.
28339         * config/arm/arm-builtins.c: Likewise.
28340         * config/arm/arm-c.c: Likewise.
28341         * config/arm/arm.c: Likewise.
28342         * config/avr/avr-c.c: Likewise.
28343         * config/avr/avr-log.c: Likewise.
28344         * config/avr/avr.c: Likewise.
28345         * config/bfin/bfin.c: Likewise.
28346         * config/c6x/c6x.c: Likewise.
28347         * config/cr16/cr16.c: Likewise.
28348         * config/cris/cris.c: Likewise.
28349         * config/darwin-c.c: Likewise.
28350         * config/darwin.c: Likewise.
28351         * config/default-c.c: Likewise.
28352         * config/epiphany/epiphany.c: Likewise.
28353         * config/epiphany/mode-switch-use.c: Likewise.
28354         * config/epiphany/resolve-sw-modes.c: Likewise.
28355         * config/fr30/fr30.c: Likewise.
28356         * config/frv/frv.c: Likewise.
28357         * config/ft32/ft32.c: Likewise.
28358         * config/glibc-c.c: Likewise.
28359         * config/h8300/h8300.c: Likewise.
28360         * config/i386/i386-c.c: Likewise.
28361         * config/i386/i386.c: Likewise.
28362         * config/i386/msformat-c.c: Likewise.
28363         * config/i386/winnt-cxx.c: Likewise.
28364         * config/i386/winnt-stubs.c: Likewise.
28365         * config/i386/winnt.c: Likewise.
28366         * config/ia64/ia64-c.c: Likewise.
28367         * config/ia64/ia64.c: Likewise.
28368         * config/iq2000/iq2000.c: Likewise.
28369         * config/lm32/lm32.c: Likewise.
28370         * config/m32c/m32c-pragma.c: Likewise.
28371         * config/m32c/m32c.c: Likewise.
28372         * config/m32r/m32r.c: Likewise.
28373         * config/m68k/m68k.c: Likewise.
28374         * config/mcore/mcore.c: Likewise.
28375         * config/mep/mep-pragma.c: Likewise.
28376         * config/mep/mep.c: Likewise.
28377         * config/microblaze/microblaze-c.c: Likewise.
28378         * config/microblaze/microblaze.c: Likewise.
28379         * config/mips/mips.c: Likewise.
28380         * config/mmix/mmix.c: Likewise.
28381         * config/mn10300/mn10300.c: Likewise.
28382         * config/moxie/moxie.c: Likewise.
28383         * config/msp430/msp430-c.c: Likewise.
28384         * config/msp430/msp430.c: Likewise.
28385         * config/nds32/nds32-cost.c: Likewise.
28386         * config/nds32/nds32-fp-as-gp.c: Likewise.
28387         * config/nds32/nds32-intrinsic.c: Likewise.
28388         * config/nds32/nds32-isr.c: Likewise.
28389         * config/nds32/nds32-md-auxiliary.c: Likewise.
28390         * config/nds32/nds32-memory-manipulation.c: Likewise.
28391         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
28392         * config/nds32/nds32-predicates.c: Likewise.
28393         * config/nds32/nds32.c: Likewise.
28394         * config/nios2/nios2.c: Likewise.
28395         * config/nvptx/nvptx.c: Likewise.
28396         * config/pa/pa.c: Likewise.
28397         * config/pdp11/pdp11.c: Likewise.
28398         * config/rl78/rl78-c.c: Likewise.
28399         * config/rl78/rl78.c: Likewise.
28400         * config/rs6000/rs6000-c.c: Likewise.
28401         * config/rs6000/rs6000.c: Likewise.
28402         * config/rx/rx.c: Likewise.
28403         * config/s390/s390-c.c: Likewise.
28404         * config/s390/s390.c: Likewise.
28405         * config/sh/sh-c.c: Likewise.
28406         * config/sh/sh-mem.cc: Likewise.
28407         * config/sh/sh.c: Likewise.
28408         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
28409         * config/sh/sh_treg_combine.cc: Likewise.
28410         * config/sol2-c.c: Likewise.
28411         * config/sol2-cxx.c: Likewise.
28412         * config/sol2-stubs.c: Likewise.
28413         * config/sol2.c: Likewise.
28414         * config/sparc/sparc-c.c: Likewise.
28415         * config/sparc/sparc.c: Likewise.
28416         * config/spu/spu-c.c: Likewise.
28417         * config/spu/spu.c: Likewise.
28418         * config/stormy16/stormy16.c: Likewise.
28419         * config/tilegx/mul-tables.c: Likewise.
28420         * config/tilegx/tilegx-c.c: Likewise.
28421         * config/tilegx/tilegx.c: Likewise.
28422         * config/tilepro/mul-tables.c: Likewise.
28423         * config/tilepro/tilepro-c.c: Likewise.
28424         * config/tilepro/tilepro.c: Likewise.
28425         * config/v850/v850-c.c: Likewise.
28426         * config/v850/v850.c: Likewise.
28427         * config/vax/vax.c: Likewise.
28428         * config/visium/visium.c: Likewise.
28429         * config/vms/vms-c.c: Likewise.
28430         * config/vms/vms.c: Likewise.
28431         * config/vxworks.c: Likewise.
28432         * config/winnt-c.c: Likewise.
28433         * config/xtensa/xtensa.c: Likewise.
28434         * common/config/bfin/bfin-common.c: Likewise.
28436 2015-06-04  Jan Hubicka  <hubicka@ucw.cz>
28438         * tree.h (tree_code_for_canonical_type_merging): New function.
28439         * tree.c (gimple_canonical_types_compatible_p): Use
28440         tree_code_for_canonical_type_merging..
28442 2015-06-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
28444         PR c++/66192
28445         PR target/66200
28446         * doc/tm.texi: Regenerate.
28447         * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
28448         * target.def (TARGET_RELAXED_ORDERING): Likewise.
28449         * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
28450         * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
28451         * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
28452         * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
28453         * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
28454         * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
28455         * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
28457 2015-06-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28459         * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
28460         register fma steering pass.
28461         * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
28462         AARCH64_TUNE_FMA_STEERING.
28464 2015-06-03  Jan Hubicka  <hubicka@ucw.cz>
28466         * tree.c (verify_type_variant): Verify that type and variant is
28467         compatible.
28468         (gimple_canonical_types_compatible_p): Look for main variants.
28470 2015-06-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
28472         * config.gcc (powerpc*-*-*): Add support for a new configure
28473         option --with-advance-toolchain=<xxx> which overrides using the
28474         default header files, libraries and dynamic linker.
28476         * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
28477         specs to support the configure --with-advance-toolchain=<xxx>
28478         option.
28479         (INCLUDE_EXTRA_SPEC): Likewise.
28480         (LINK_OS_EXTRA_SPEC32): Likewise.
28481         (LINK_OK_EXTRA_SPEC64): Likewise.
28482         (LINK_OS_NEW_DTAGS_SPEC): Likewise.
28483         (DYNAMIC_LINKER_PREFIX): Likewise.
28484         (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
28485         toolchain support.
28486         (GLIBC_DYNAMIC_LINKER32): Likewise.
28487         (GLIBC_DYNAMIC_LINKER64): Likewise.
28488         (LINK_OS_LINUX_SPEC32): Likewise.
28489         (LINK_OS_LINUX_SPEC64): Likewise.
28491         * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
28492         configuration option.
28494 2015-06-03  Uros Bizjak  <ubizjak@gmail.com>
28496         PR target/66275
28497         * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
28498         to determine current function ABI.
28499         (ix86_function_value_regno_p): Ditto.
28501 2015-06-03  Martin Liska  <mliska@suse.cz>
28503         * alloc-pool.h (struct pool_usage): Correct GNU coding style.
28504         * bitmap.h (struct bitmap_usage): Likewise.
28505         * ggc-common.c (struct ggc_usage): Likewise.
28506         * mem-stats.h (struct mem_location): Likewise.
28507         (struct mem_usage): Likewise.
28508         * vec.c (struct vec_usage): Likewise.
28510 2015-06-03  Benigno B. Junior  <bbj@gentoo.org>
28512         * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
28513         -Bsymbolic.
28515 2015-06-02  Andres Tiraboschi  <andres.tiraboschi@tallertechnologies.com>
28517         * doc/plugins.texi (enum plugin_event): New event.
28518         * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
28519         and PLUGIN_FINISH_FUNCTION.
28520         * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
28521         (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
28523 2015-06-03  Richard Biener  <rguenther@suse.de>
28525         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
28526         compute GROUP_GAP for the first element.
28527         * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
28528         on in-group gaps.
28530 2015-06-03  Nick Clifton  <nickc@redhat.com>
28532         * config/rl78/rl78-real.md: Add peepholes to avoid a register
28533         copy when calling a function.
28534         * config/rl78/rl78.c (need_to_save): Do not push the frame
28535         pointer in an interrupt handler prologue if it is never used.
28537 2015-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28539         * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
28541 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
28543         * ipa-chkp.c (chkp_maybe_create_clone): Create alias
28544         reference when cloning alias node.
28546 2015-06-03  Martin Liska  <mliska@suse.cz>
28548         * alloc-pool.h (struct pool_usage): Correct space padding.
28549         * ggc-page.c (ggc_print_statistics): Align columns in a report.
28550         * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
28551         * tree.c (dump_tree_statistics): Align columns in a report.
28553 2015-06-03  Martin Liska  <mliska@suse.cz>
28555         * alloc-pool.c (allocate_pool_descriptor): Remove.
28556         (struct pool_output_info): Likewise.
28557         (print_alloc_pool_statistics): Likewise.
28558         (dump_alloc_pool_statistics): Likewise.
28559         * alloc-pool.h (struct pool_usage): New struct.
28560         (pool_allocator::initialize): Change usage of memory statistics
28561         to a new interface.
28562         (pool_allocator::release): Likewise.
28563         (pool_allocator::allocate): Likewise.
28564         (pool_allocator::remove): Likewise.
28565         * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
28566         for a pool allocator.
28567         * mem-stats.h (struct mem_location): Add new ctor.
28568         (struct mem_usage): Add counter for number of
28569         instances.
28570         (mem_alloc_description::register_descriptor): New overload of
28571         * mem-stats.h (mem_location::to_string): New function.
28572         * bitmap.h (struct bitmap_usage): Use this new function.
28573         * ggc-common.c (struct ggc_usage): Likewise.
28574         the function.
28576 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
28578         * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
28579         of GCC_INSN_FLAGS_H block.
28581 2015-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
28583         * explow.c (plus_constant): Update check after force_const_mem call
28584         to see if the value returned is not a NULL_RTX.
28586 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
28588         * ipa.c (symbol_table::remove_unreachable_nodes): Don't
28589         remove instumentation thunks calling reachable functions.
28590         * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
28591         * lto/lto-partition.c (privatize_symbol_name_1): New.
28592         (privatize_symbol_name): Privatize both decl and orig_decl
28593         names for instrumented functions.
28594         * cgraph.c (cgraph_node::verify_node): Add transparent
28595         alias chain check for instrumented node.
28597 2015-06-03  Marek Polacek  <polacek@redhat.com>
28599         PR c/64223
28600         PR c/29358
28601         * tree.c (attribute_value_equal): Handle attribute format.
28602         (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
28604 2015-06-03  Richard Biener  <rguenther@suse.de>
28606         PR tree-optimization/63916
28607         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
28608         Forward-propagate non-invariant addresses by splicing their
28609         reference ops if the result isn't going to be used by PRE.
28610         (vn_reference_lookup_3): Remove pointless assert.
28612 2015-06-03  Richard Biener  <rguenther@suse.de>
28614         PR tree-optimization/66375
28615         * tree-scalar-evolution.c (follow_ssa_edge_binary): First
28616         add to the evolution before following SSA edges.
28618 2015-06-03  Bin Cheng  <bin.cheng@arm.com>
28620         * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
28621         (dump_use, dump_cand, find_induction_variables): Pass new argument
28622         to dump_iv.
28623         (record_use): Preserve the ssa name information in IV.
28625 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
28627         * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
28628         NO_MODE_TEST.
28629         (add_mode_tests): Don't add mode tests if the predicate only
28630         accepts scalar constant integers.  Otherwise, allow the mode
28631         of "op" to be VOIDmode if the predicate does accept such integers.
28633 2015-06-02  Jim Wilson  <jim.wilson@linaro.org>
28635         PR target/66258
28636         * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
28637         !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
28638         (aarch64_secondary_reload): Likewise
28639         (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
28640         to !TARGET_FLOAT.
28641         (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
28642         Likewise.
28644 2015-06-03  Kugan Vivekanandarajah  <kuganv@linaro.org>
28645             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
28647         PR target/65768
28648         * cprop.c (try_replace_reg): Check cost of constants before propagating.
28650 2015-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
28652         * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
28653         provide access to the IBM extended double floating point mode if
28654         long double is IEEE 128-bit floating point.
28655         (KFmode): Define KFmode to provide access to IEEE 128-bit floating
28656         point if long double is the IBM extended double type.
28658         * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
28659         enable adding IEEE 128-bit floating point support.
28660         (-mfloat128-software): Likewise.
28661         (-mfloat128-sw): Likewise.
28663         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
28664         128-bit floating point types to occupy any register if
28665         -mlong-double-64.  Do not allow use of IFmode/KFmode unless
28666         -mfloat128-software is enabled.
28667         (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
28668         support.
28669         (rs6000_option_override_internal): Add -mfloat128-* support.
28670         (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
28672         * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
28673         and float128 type nodes.
28674         (ieee128_float_type_node): Likewise.
28675         (ibm128_float_type_node): Likewise.
28677 2015-06-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
28679         PR target/66136
28680         * config/aarch64/geniterators.sh: Rewrite in awk.
28682 2015-06-02  Martin Liska  <mliska@suse.cz>
28684         * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
28685         values to avoid -Wmaybe-uninitialized errors.
28687 2015-06-02  Richard Biener  <rguenther@suse.de>
28689         PR debug/65549
28690         * dwarf2out.c (lookup_context_die): New function.
28691         (resolve_addr): Avoid forcing a full DIE for the
28692         target of a DW_TAG_GNU_call_site during late compilation.
28693         Instead create a stub DIE without a type if we have a
28694         context DIE present.
28696 2015-06-02  Uros Bizjak  <ubizjak@gmail.com>
28698         * df-scan.c (df_scan_start_dump): Add space between regno and regname.
28700 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
28702         PR tree-optimization/48052
28703         * cfgloop.h (struct control_iv): New.
28704         (struct loop): New field control_ivs.
28705         * tree-ssa-loop-niter.c : Include "stor-layout.h".
28706         (number_of_iterations_lt): Set no_overflow information.
28707         (number_of_iterations_exit): Init control iv in niter struct.
28708         (record_control_iv): New.
28709         (estimate_numbers_of_iterations_loop): Call record_control_iv.
28710         (loop_exits_before_overflow): New.  Interface factored out of
28711         scev_probably_wraps_p.
28712         (scev_probably_wraps_p): Factor loop niter related code into
28713         loop_exits_before_overflow.
28714         (free_numbers_of_iterations_estimates_loop): Free control ivs.
28715         * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
28717 2015-06-02  Eric Botcazou  <ebotcazou@adacore.com>
28719         * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
28720         the target doesn't belong to the current function.
28722 2015-06-02  Marek Polacek  <polacek@redhat.com>
28724         PR middle-end/66345
28725         * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
28726         get_maxval_strlen does not produce an INTEGER_CST.
28728 2015-06-02  Richard Sandiford  <richard.sandiford@arm.com>
28730         * config/arc/constraints.md: Use lower-case names in match_code.
28731         * config/mmix/constraints.md: Likewise.
28733 2015-06-02  Richard Biener  <rguenther@suse.de>
28735         PR tree-optimization/65961
28736         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
28737         check and clarify dump message.
28738         (vect_build_slp_tree): If all children are built up from scalars
28739         build up the parent from scalars instead.
28740         * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
28742 2015-06-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
28744         PR other/65366
28745         * gdbhooks.py: Use int(...) instead of long(...).  Use print(...)
28746         instead of print ... .
28748 2015-06-02  Alan Modra  <amodra@gmail.com>
28750         * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
28751         2014-08-11 change.
28753 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
28755         PR tree-optimization/52563
28756         PR tree-optimization/62173
28757         * tree-ssa-loop-ivopts.c (struct iv): New field.  Reorder fields.
28758         (alloc_iv, set_iv): New parameter.
28759         (determine_biv_step): Delete.
28760         (find_bivs): Inline original determine_biv_step.  Pass new
28761         argument to set_iv.
28762         (idx_find_step): Use no_overflow information for conversion.
28763         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
28764         resolve_mixers handle folded_casts.
28765         (instantiate_scev_name): Change bool parameter to bool pointer.
28766         (instantiate_scev_poly, instantiate_scev_binary): Ditto.
28767         (instantiate_array_ref, instantiate_scev_not): Ditto.
28768         (instantiate_scev_3, instantiate_scev_2): Ditto.
28769         (instantiate_scev_1, instantiate_scev_r): Ditto.
28770         (instantiate_scev_convert, ): Change parameter.  Pass argument
28771         to chrec_convert_aggressive.
28772         (instantiate_scev): Change argument.
28773         (resolve_mixers): New parameter and set it.
28774         (scev_const_prop): New argument.
28775         * tree-scalar-evolution.h (resolve_mixers): New parameter.
28776         * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
28777         of chrec_conert_1.
28778         (chrec_convert): New parameter.  Move definition below.
28779         (chrec_convert_aggressive): New parameter and set it.  Call
28780         convert_affine_scev.
28781         * tree-chrec.h (chrec_convert): New parameter.
28782         (chrec_convert_aggressive): Ditto.
28784 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
28786         * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
28787         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
28788         the LHS of a no-return call if its type has variable size.
28789         * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
28790         * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
28792 2015-06-01  Andreas Tobler  <andreast@gcc.gnu.org>
28794         * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
28795         * config.in: Regenerate.
28797 2015-06-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
28799         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
28800         consecutive accesses within outer-loop with force_vectorize
28801         for references with zero step in inner-loop.
28803 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
28805         * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
28806         rather than from gcc/build directory.
28808 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
28810         PR target/65697
28811         * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
28812         for __sync memory models, emit initial loads and final barriers as
28813         appropriate.
28815 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
28817         PR target/65697
28818         * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
28819         (aarch64_split_atomic_op): Check for __sync memory models, emit
28820         appropriate initial loads and final barriers.
28822 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
28824         * Makefile.in: Fix gcov dependencies that should
28825         not point to a build folder.
28827 2015-06-01  Richard Biener  <rguenther@suse.de>
28829         Revert
28830         2015-05-29  Richard Biener  <rguenther@suse.de>
28832         PR tree-optimization/66314
28833         * tree-ssa-threadupdate.c (create_block_for_threading): Add
28834         parameter that says which loop the new block belongs to.
28835         (ssa_create_duplicates): Blocks duplicated for the threaded
28836         path belong to the loop of the thread destination.
28838 2015-06-01  Martin Liska  <mliska@suse.cz>
28840         * sched-deps.c: Include pool-alloc.h before
28841         cselib.h header file is included.
28843 2015-06-01  Richard Biener  <rguenther@suse.de>
28845         * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
28846         functions.
28848 2015-06-01  Martin Liska  <mliska@suse.cz>
28850         * alloc-pool.h: Add ATTRIBUTE_UNUSED for
28851         a function local variable.
28853 2015-06-01  Martin Liska  <mliska@suse.cz>
28855         * alloc-pool.c (create_alloc_pool): Remove.
28856         (empty_alloc_pool): Likewise.
28857         (free_alloc_pool): Likewise.
28858         (free_alloc_pool_if_empty): Likewise.
28859         (pool_alloc): Likewise.
28860         (pool_free): Likewise.
28861         * alloc-pool.h: Remove old declarations.
28863 2015-06-01  Martin Liska  <mliska@suse.cz>
28865         * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
28866         (ira_create_object): Likewise.
28867         (ira_create_allocno): Likewise.
28868         (ira_create_live_range): Likewise.
28869         (copy_live_range): Likewise.
28870         (ira_finish_live_range): Likewise.
28871         (ira_free_allocno_costs): Likewise.
28872         (finish_allocno): Likewise.
28873         (finish_allocnos): Likewise.
28874         (initiate_prefs): Likewise.
28875         (ira_create_pref): Likewise.
28876         (finish_pref): Likewise.
28877         (finish_prefs): Likewise.
28878         (initiate_copies): Likewise.
28879         (ira_create_copy): Likewise.
28880         (finish_copy): Likewise.
28881         (finish_copies): Likewise.
28882         (finish_prefs): Likewise.
28884 2015-06-01  Martin Liska  <mliska@suse.cz>
28886         * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
28887         (allocate_and_init_ipcp_value): Likewise.
28888         (ipcp_lattice::add_value): Likewise.
28889         (merge_agg_lats_step): Likewise.
28890         (ipcp_driver): Likewise.
28891         * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
28892         (ipa_free_all_structures_after_iinln): Likewise.
28893         * ipa-prop.h: Likewise.
28895 2015-06-01  Martin Liska  <mliska@suse.cz>
28897         * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
28898         pool allocator.
28899         (set_hint_predicate): Likewise.
28900         (inline_summary_alloc): Likewise.
28901         (reset_inline_edge_summary): Likewise.
28902         (reset_inline_summary): Likewise.
28903         (set_cond_stmt_execution_predicate): Likewise.
28904         (set_switch_stmt_execution_predicate): Likewise.
28905         (compute_bb_predicates): Likewise.
28906         (estimate_function_body_sizes): Likewise.
28907         (inline_free_summary): Likewise.
28909 2015-06-01  Martin Liska  <mliska@suse.cz>
28911         * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
28912         (ipa_edge_duplication_hook): Likewise.
28913         (ipa_free_all_structures_after_ipa_cp): Likewise.
28914         (ipa_free_all_structures_after_iinln): Likewise.
28916 2015-06-01  Martin Liska  <mliska@suse.cz>
28918         * ipa-profile.c (account_time_size): Use new type-based pool allocator.
28919         (ipa_profile_generate_summary): Likewise.
28920         (ipa_profile_read_summary): Likewise.
28921         (ipa_profile): Likewise.
28923 2015-06-01  Martin Liska  <mliska@suse.cz>
28925         * tree-ssa-structalias.c (new_var_info): Use new type-based
28926         pool allocator.
28927         (new_constraint): Likewise.
28928         (init_alias_vars): Likewise.
28929         (delete_points_to_sets): Likewise.
28931 2015-06-01  Martin Liska  <mliska@suse.cz>
28933         * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
28934         (free_strinfo): Likewise.
28935         (pass_strlen::execute): Likewise.
28937 2015-06-01  Martin Liska  <mliska@suse.cz>
28939         * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
28940         pool allocator.
28941         (vn_reference_insert_pieces): Likewise.
28942         (vn_phi_insert): Likewise.
28943         (visit_reference_op_call): Likewise.
28944         (copy_phi): Likewise.
28945         (copy_reference): Likewise.
28946         (process_scc): Likewise.
28947         (allocate_vn_table): Likewise.
28948         (free_vn_table): Likewise.
28950 2015-06-01  Martin Liska  <mliska@suse.cz>
28952         * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
28953         pool allocator.
28954         (add_repeat_to_ops_vec): Likewise.
28955         (get_ops): Likewise.
28956         (maybe_optimize_range_tests): Likewise.
28957         (init_reassoc): Likewise.
28958         (fini_reassoc): Likewise.
28960 2015-06-01  Martin Liska  <mliska@suse.cz>
28962         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
28963         pool allocator.
28964         (bitmap_set_new): Likewise.
28965         (get_or_alloc_expr_for_constant): Likewise.
28966         (get_or_alloc_expr_for): Likewise.
28967         (phi_translate_1): Likewise.
28968         (compute_avail): Likewise.
28969         (init_pre): Likewise.
28970         (fini_pre): Likewise.
28972 2015-06-01  Martin Liska  <mliska@suse.cz>
28974         * sched-deps.c (create_dep_node): Use new type-based pool allocator.
28975         (delete_dep_node): Likewise.
28976         (create_deps_list): Likewise.
28977         (free_deps_list): Likewise.
28978         (sched_deps_init): Likewise.
28979         (sched_deps_finish): Likewise.
28981 2015-06-01  Martin Liska  <mliska@suse.cz>
28983         * regcprop.c (free_debug_insn_changes): Use new type-based
28984         pool allocator.
28985         (replace_oldest_value_reg): Likewise.
28986         (pass_cprop_hardreg::execute): Likewise.
28988 2015-06-01  Martin Liska  <mliska@suse.cz>
28990         * ira-build.c (initiate_cost_vectors): Use new type-based
28991         pool allocator.
28992         (ira_allocate_cost_vector): Likewise.
28993         (ira_free_cost_vector): Likewise.
28994         (finish_cost_vectors): Likewise.
28996 2015-06-01  Martin Liska  <mliska@suse.cz>
28998         * sel-sched-ir.c (alloc_sched_pools): Use new type-based
28999         pool allocator.
29000         (free_sched_pools): Likewise.
29001         * sel-sched-ir.h (_list_alloc): Likewise.
29002         (_list_remove): Likewise.
29004 2015-06-01  Martin Liska  <mliska@suse.cz>
29006         * stmt.c (add_case_node): Use new type-based pool allocator.
29007         (expand_case): Likewise.
29008         (expand_sjlj_dispatch_table): Likewise.
29010 2015-06-01  Martin Liska  <mliska@suse.cz>
29012         * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
29013         (free_bb): Likewise.
29014         (pass_cse_reciprocals::execute): Likewise.
29016 2015-06-01  Martin Liska  <mliska@suse.cz>
29018         * tree-sra.c (sra_initialize): Use new type-based pool allocator.
29019         (sra_deinitialize) Likewise.
29020         (create_access_1) Likewise.
29021         (build_accesses_from_assign) Likewise.
29022         (create_artificial_child_access) Likewise.
29024 2015-06-01  Martin Liska  <mliska@suse.cz>
29026         * dse.c (get_group_info):Use new type-based pool allocator.
29027         (dse_step0) Likewise.
29028         (free_store_info) Likewise.
29029         (delete_dead_store_insn) Likewise.
29030         (free_read_records) Likewise.
29031         (record_store) Likewise.
29032         (replace_read) Likewise.
29033         (check_mem_read_rtx) Likewise.
29034         (scan_insn) Likewise.
29035         (dse_step1) Likewise.
29036         (dse_step7) Likewise.
29038 2015-06-01  Martin Liska  <mliska@suse.cz>
29040         * df-scan.c (struct df_scan_problem_data):Use new type-based
29041         pool allocator.
29042         (df_scan_free_internal) Likewise.
29043         (df_scan_alloc) Likewise.
29044         (df_grow_reg_info) Likewise.
29045         (df_free_ref) Likewise.
29046         (df_insn_create_insn_record) Likewise.
29047         (df_mw_hardreg_chain_delete) Likewise.
29048         (df_insn_info_delete) Likewise.
29049         (df_free_collection_rec) Likewise.
29050         (df_mw_hardreg_chain_delete_eq_uses) Likewise.
29051         (df_sort_and_compress_mws) Likewise.
29052         (df_ref_create_structure) Likewise.
29053         (df_ref_record) Likewise.
29055 2015-06-01  Martin Liska  <mliska@suse.cz>
29057         * df-problems.c (df_chain_create):Use new type-based pool allocator.
29058         (df_chain_unlink_1) Likewise.
29059         (df_chain_unlink) Likewise.
29060         (df_chain_remove_problem) Likewise.
29061         (df_chain_alloc) Likewise.
29062         (df_chain_free) Likewise.
29063         * df.h (struct dataflow) Likewise.
29065 2015-06-01  Martin Liska  <mliska@suse.cz>
29067         * cselib.c (new_elt_list):Use new type-based pool allocator.
29068         (new_elt_loc_list) Likewise.
29069         (unchain_one_elt_list) Likewise.
29070         (unchain_one_elt_loc_list) Likewise.
29071         (unchain_one_value) Likewise.
29072         (new_cselib_val) Likewise.
29073         (cselib_init) Likewise.
29074         (cselib_finish) Likewise.
29076 2015-06-01  Martin Liska  <mliska@suse.cz>
29078         * config/sh/sh.c (add_constant):Use new type-based pool allocator.
29079         (sh_reorg) Likewise.
29081 2015-06-01  Martin Liska  <mliska@suse.cz>
29083         * cfg.c (initialize_original_copy_tables):Use new type-based
29084         pool allocator.
29085         (free_original_copy_tables) Likewise.
29086         (copy_original_table_clear) Likewise.
29087         (copy_original_table_set) Likewise.
29089 2015-06-01  Martin Liska  <mliska@suse.cz>
29091         * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
29092         pool allocator.
29093         (asan_mem_ref_new) Likewise.
29094         (free_mem_ref_resources) Likewise.
29096 2015-06-01  Martin Liska  <mliska@suse.cz>
29098         * var-tracking.c (variable_htab_free):Use new type-based
29099         pool allocator.
29100         (attrs_list_clear) Likewise.
29101         (attrs_list_insert) Likewise.
29102         (attrs_list_copy) Likewise.
29103         (shared_hash_unshare) Likewise.
29104         (shared_hash_destroy) Likewise.
29105         (unshare_variable) Likewise.
29106         (var_reg_delete_and_set) Likewise.
29107         (var_reg_delete) Likewise.
29108         (var_regno_delete) Likewise.
29109         (drop_overlapping_mem_locs) Likewise.
29110         (variable_union) Likewise.
29111         (insert_into_intersection) Likewise.
29112         (canonicalize_values_star) Likewise.
29113         (variable_merge_over_cur) Likewise.
29114         (dataflow_set_merge) Likewise.
29115         (remove_duplicate_values) Likewise.
29116         (variable_post_merge_new_vals) Likewise.
29117         (dataflow_set_preserve_mem_locs) Likewise.
29118         (dataflow_set_remove_mem_locs) Likewise.
29119         (variable_from_dropped) Likewise.
29120         (variable_was_changed) Likewise.
29121         (set_slot_part) Likewise.
29122         (clobber_slot_part) Likewise.
29123         (delete_slot_part) Likewise.
29124         (loc_exp_insert_dep) Likewise.
29125         (notify_dependents_of_changed_value) Likewise.
29126         (emit_notes_for_differences_1) Likewise.
29127         (vt_emit_notes) Likewise.
29128         (vt_initialize) Likewise.
29129         (vt_finalize) Likewise.
29131 2015-06-01  Martin Liska  <mliska@suse.cz>
29133         * ira-color.c (init_update_cost_records):Use new type-based
29134         pool allocator.
29135         (get_update_cost_record) Likewise.
29136         (free_update_cost_record_list) Likewise.
29137         (finish_update_cost_records) Likewise.
29138         (initiate_cost_update) Likewise.
29140 2015-06-01  Martin Liska  <mliska@suse.cz>
29142         * lra.c (init_insn_regs): Use new type-based pool allocator.
29143         (new_insn_reg) Likewise.
29144         (free_insn_reg) Likewise.
29145         (free_insn_regs) Likewise.
29146         (finish_insn_regs) Likewise.
29147         (init_insn_recog_data) Likewise.
29148         (init_reg_info) Likewise.
29149         (finish_reg_info) Likewise.
29150         (lra_free_copies) Likewise.
29151         (lra_create_copy) Likewise.
29152         (invalidate_insn_data_regno_info) Likewise.
29154 2015-06-01  Martin Liska  <mliska@suse.cz>
29156         * lra-lives.c (free_live_range): Use new type-based pool allocator.
29157         (free_live_range_list) Likewise.
29158         (create_live_range) Likewise.
29159         (copy_live_range) Likewise.
29160         (lra_merge_live_ranges) Likewise.
29161         (remove_some_program_points_and_update_live_ranges) Likewise.
29162         (lra_live_ranges_init) Likewise.
29163         (lra_live_ranges_finish) Likewise.
29165 2015-06-01  Martin Liska  <mliska@suse.cz>
29167         * et-forest.c (et_new_occ): Use new type-based pool allocator.
29168         (et_new_tree): Likewise.
29169         (et_free_tree): Likewise.
29170         (et_free_tree_force): Likewise.
29171         (et_free_pools): Likewise.
29172         (et_split): Likewise.
29174 2015-06-01  Martin Liska  <mliska@suse.cz>
29176         * alloc-pool.c (struct alloc_pool_descriptor): Move definition
29177         to header file.
29178         * alloc-pool.h (pool_allocator::pool_allocator): New function.
29179         (pool_allocator::release): Likewise.
29180         (inline pool_allocator::release_if_empty): Likewise.
29181         (inline pool_allocator::~pool_allocator): Likewise.
29182         (pool_allocator::allocate): Likewise.
29183         (pool_allocator::remove): Likewise.
29185 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
29187         * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
29188         in comment.
29190 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
29192         * config/arm/arm-protos.h (tune_params): Rename fuseable_ops
29193         to fusible_ops.
29194         * config/arm/arm.c (arm_print_tune_info): Likewise.
29195         (arm_macro_fusion_p): Likewise.
29196         (arm_macro_fusion_pair_p): Likewise.
29198 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
29200         * config/aarch64/aarch64-protos.h (tune_params): Rename
29201         fuseable_ops to fusible_ops.
29202         * config/aarch64/aarch64.c (generic_tunings): Rename
29203         fuseable_ops to fusible_ops.
29204         (cortexa53_tunings): Likewise.
29205         (cortexa57_tunings): Likewise.
29206         (thunderx_tunings): Likewise.
29207         (xgene1_tunings): Likewise.
29208         (aarch64_macro_fusion_p): Likewise.
29209         (aarch64_macro_fusion_pair_p): Likewise.
29211 2015-06-01  Dominik Vogt  <vogt@linux.vnet.ibm.com>
29213         * config/s390/driver-native.c: New file.
29214         * config/s390/x-native: New file.
29215         * config.host: Add new files for s390.
29216         * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
29217         and -march=native
29218         * config.gcc: Likewise.
29219         * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
29220         * config/s390/s390-opts.h (enum processor_type): Ditto.
29221         * config/s390/s390.c (s390_option_override): Catch unhandled
29222         PROCESSOR_NATIVE
29224 2015-06-01  Ilya Enkovich  <ilya.enkovich@intel.com>
29226         PR target/65527
29227         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
29228         redirection for instrumented calls.
29229         * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
29230         (append_compiler_options): Append -fcheck-pointer-bounds.
29231         * tree-chkp.h (chkp_copy_call_skip_bounds): New.
29232         (chkp_redirect_edge): New.
29233         * tree-chkp.c (chkp_copy_call_skip_bounds): New.
29234         (chkp_redirect_edge): New.
29236 2015-06-01  Richard Biener  <rguenther@suse.de>
29238         PR tree-optimization/66280
29239         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
29240         def-use walking.
29242 2015-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29244         * config/aarch64/aarch64.md
29245         (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
29246         logic_shift_imm.
29248 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
29250         * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
29251         Remove obsolete kludge.
29253 2015-06-01  Richard Biener  <rguenther@suse.de>
29255         * tree-ssa-reassoc.c (get_rank): Simplify.
29257 2015-05-31  H.J. Lu  <hongjiu.lu@intel.com>
29259         * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
29260         * configure: Regenerated.
29262 2015-05-31  Mikhail Maltsev  <maltsevm@gmail.com>
29264         * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
29265         issue (add space between string literal and macro).
29266         * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
29268 2015-05-30  Andreas Schwab  <schwab@linux-m68k.org>
29270         * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
29271         implict or explicit -fPIE or -fpie.
29273 2015-05-30  Mike Frysinger  <vapier@gentoo.org>
29275         * config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
29277 2015-05-28  DJ Delorie  <dj@redhat.com>
29279         * expmed.c (extract_bit_field_1): Avoid clobbering a
29280         yet-to-be-used base/index register.
29282 2015-05-30  Jan Hubicka  <hubicka@ucw.cz>
29284         * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
29285         (alias_stats): Add num_universal.
29286         (alias_set_subset_of): Special case pointers; be ready for NULL
29287         children.
29288         (alias_sets_conflict_p): Special case pointers; be ready for NULL
29289         children.
29290         (init_alias_set_entry): Break out from ...
29291         (record_alias_subset): ... here; propagate new fields;
29292         allocate children only when really needed.
29293         (get_alias_set): Do less generous pointer globbing.
29294         (dump_alias_stats_in_alias_c): Update statistics.
29296 2015-05-30  Alan Modra  <amodra@gmail.com>
29298         * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
29299         correct block for use of r12.
29300         (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
29302 2015-05-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
29304         PR target/66215
29305         * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
29306         with -mhotpatch=.
29308 2015-05-29  Jakub Jelinek  <jakub@redhat.com>
29310         PR tree-optimization/66142
29311         * tree-if-conv.c (if_convertible_phi_p): Don't give up on
29312         virtual phis that feed themselves.
29314 2015-05-29  Richard Biener  <rguenther@suse.de>
29316         PR tree-optimization/66314
29317         * tree-ssa-threadupdate.c (create_block_for_threading): Add
29318         parameter that says which loop the new block belongs to.
29319         (ssa_create_duplicates): Blocks duplicated for the threaded
29320         path belong to the loop of the thread destination.
29322 2015-05-29  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
29324         * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
29325         to cleanup-saved-temps.
29326         * doc/sourcebuild.texi (Clean up generated test files): Expand
29327         introduction.
29328         (dg-keep-saved-temps): Document new proc.
29329         (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
29330         cleanup-saved-temps): Remove.
29332 2015-05-28  Andreas Tobler  <andreast@gcc.gnu.org>
29334         * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
29335         gcc_AC_CHECK_DECLS.
29336         * configure: Regenerate.
29338 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
29340         * config/nios2/linux.h (CPP_SPEC): Define.
29342 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
29344         * config/microblaze/linux.h (CPP_SPEC): Define.
29346 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
29348         * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
29349         -pthread is specified.
29351 2015-05-28  Richard Biener  <rguenther@suse.de>
29353         * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
29354         (vect_fixup_scalar_cycles_with_patterns): Likewise.
29355         (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
29356         after pattern recog.
29357         (vect_create_epilog_for_reduction): Properly handle reductions
29358         with patterns.
29359         (vectorizable_reduction): Likewise.
29360         * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
29361         reduction chains.
29362         (vect_get_constant_vectors): Create the correct number of
29363         initial values for reductions.
29364         (vect_schedule_slp_instance): Handle reduction chains that are
29365         type changing properly.
29366         * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
29368 2015-05-28  Richard Biener  <rguenther@suse.de>
29370         PR tree-optimization/66142
29371         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
29372         values better in memcpy destination handling.  Handle non-aliasing
29373         we discover here.
29375 2015-05-28  Lawrence Velázquez  <vq@larryv.me>
29377         PR target/63810
29378         * config/darwin-c.c (version_components): New global enum.
29379         (parse_version, version_as_legacy_macro)
29380         (version_as_modern_macro, macosx_version_as_macro): New functions.
29381         (version_as_macro): Remove.
29382         (darwin_cpp_builtins): Use new function.
29384 2015-05-28  H.J. Lu  <hongjiu.lu@intel.com>
29386         * builtins.c (expand_builtin_acc_on_device): Mark parameters
29387         with ATTRIBUTE_UNUSED.
29389 2015-05-28  Julian Brown  <julian@codesourcery.com>
29391         PR libgomp/65742
29393         * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
29394         sequence for !ACCEL_COMPILER.
29396 2015-05-28  Nick Clifton  <nickc@redhat.com>
29398         * config/rx/rx.c (push_regs): New function.  Extracts code from...
29399         (rx_expand_prologue): ... here.  Use push_regs to push even small
29400         spans of registers.
29401         (pop_regs): New function.
29402         (rx_expand_epilogue):  Use pop_regs to pop even small spans of
29403         registers.
29405 2015-05-28  Richard Biener  <rguenther@suse.de>
29407         * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
29408         member.
29409         (SLP_INSTANCE_BODY_COST_VEC): Remove.
29410         (vect_update_slp_costs_according_to_vf): Likewise.
29411         (vect_slp_analyze_operations): Update prototype.
29412         * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
29413         vect_update_slp_costs_according_to_vf, adjust.
29414         * tree-vect-slp.c (vect_free_slp_instance): Adjust.
29415         (vect_analyze_slp_cost_1): Likewise.
29416         (vect_analyze_slp_cost): Likewise.  Properly deal with
29417         widening reduction ops.  Commit body costs.
29418         (vect_analyze_slp_instance): Adjust.  Do not analyze SLP
29419         cost for loops from here.
29420         (vect_slp_analyze_operations): But do it from here when
29421         the vectorization factor is known and stmts are analyzed.
29422         (vect_bb_vectorization_profitable_p): Simplify.
29423         (vect_slp_analyze_bb_1): Do not compute SLP cost here.
29424         (vect_update_slp_costs_according_to_vf): Remove.
29426 2015-05-27  Magnus Granberg  <zorry@gentoo.org>
29427             H.J. Lu  <hongjiu.lu@intel.com>
29429         * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
29430         (BUILD_CFLAGS): Likewise.
29431         (BUILD_CXXFLAGS): Likewise.
29432         (LINKER): Add @NO_PIE_FLAG@.
29433         (BUILD_LDFLAGS): Likewise.
29434         (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
29435         --enable-default-pie.
29436         * common.opt (fPIE): Initialize to -1.
29437         (fpie): Likewise.
29438         (no-pie): New option.
29439         (pie): Replace "Negative(shared)" with "Negative(no-pie)".
29440         * configure.ac: Add --enable-default-pie.
29441         (NO_PIE_CFLAGS): New.  Check if -fno-PIE works.  AC_SUBST.
29442         (NO_PIE_FLAG): New.  Check if -no-pie works.  AC_SUBST.
29443         * defaults.h (DEFAULT_FLAG_PIE): New.  Default PIE to -fPIE.
29444         * gcc.c (NO_PIE_SPEC): New.
29445         (PIE_SPEC): Likewise.
29446         (NO_FPIE1_SPEC): Likewise.
29447         (FPIE1_SPEC): Likewise.
29448         (NO_FPIE2_SPEC): Likewise.
29449         (FPIE2_SPEC): Likewise.
29450         (NO_FPIE2_SPEC): Likewise.
29451         (FPIE_SPEC): Likewise.
29452         (NO_FPIE_SPEC): Likewise.
29453         (NO_FPIC1_SPEC): Likewise.
29454         (FPIC1_SPEC): Likewise.
29455         (NO_FPIC2_SPEC): Likewise.
29456         (FPIC2_SPEC): Likewise.
29457         (NO_FPIC2_SPEC): Likewise.
29458         (FPIC_SPEC): Likewise.
29459         (NO_FPIC_SPEC): Likewise.
29460         (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
29461         (FPIE1_OR_FPIC1_SPEC): Likewise.
29462         (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
29463         (FPIE2_OR_FPIC2_SPEC): Likewise.
29464         (NO_FPIE_AND_FPIC_SPEC): Likewise.
29465         (FPIE_OR_FPIC_SPEC): Likewise.
29466         (LD_PIE_SPEC): Likewise.
29467         (LINK_PIE_SPEC): Handle -no-pie.  Use PIE_SPEC and LD_PIE_SPEC.
29468         * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
29469         * config/darwin.h (PIE_SPEC): Renamed to ...
29470         (DARWIN_PIE_SPEC): This.
29471         (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
29472         * config/darwin9.h (PIE_SPEC): Renamed to ...
29473         (DARWIN_PIE_SPEC): This.
29474         * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
29475         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
29476         * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
29477         FPIE2_OR_FPIC2_SPEC.
29478         * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
29479         * config/m68k/openbsd.h (ASM_SPEC): Likewise.
29480         * config/sol2.h (ASM_PIC_SPEC): Likewise.
29481         * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
29482         * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
29483         * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
29484         * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
29485         * config/m32r/m32r.h (ASM_SPEC): Likewise.
29486         * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
29487         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
29488         * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
29489         * config/sparc/freebsd.h (ASM_SPEC): Likewise.
29490         * config/sparc/linux.h (ASM_SPEC): Likewise.
29491         * config/sparc/linux64.h (ASM_SPEC): Likewise.
29492         * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
29493         * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
29494         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
29495         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
29496         * config/sparc/sparc.h (ASM_SPEC): Likewise.
29497         * config/sparc/sysv4.h (ASM_SPEC): Likewise.
29498         * config/sparc/vxworks.h (ASM_SPEC): Likewise.
29499         * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
29500         FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
29501         * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
29502         * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
29503         NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
29504         (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
29505         * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
29506         * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
29507         * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
29508         * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
29509         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
29510         * config/vax/linux.h (ASM_SPEC): Likewise.
29511         * doc/install.texi: Document --enable-default-pie.
29512         * doc/invoke.texi: Document -no-pie.
29513         * config.in: Regenerated.
29514         * configure: Likewise.
29516 2015-05-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
29518         PR rtl-optimization/66168
29519         * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
29520         can_move_invariant_reg.
29522 2015-05-27  John David Anglin  <danglin@gcc.gnu.org>
29524         PR target/66148
29525         * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
29526         REG_EQUAL note when doing insert.
29528         * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
29529         instead of "%d" for 'o' operand.
29531 2015-05-27  Nathan Sidwell  <nathan@acm.org>
29533         PR c++/66270
29534         * tree.c (build_pointer_type_for_mode): Canonical type does not
29535         inherit can_alias_all.
29536         (build_reference_type_for_mode): Likewise.
29538 2015-05-27  Eric Botcazou  <ebotcazou@adacore.com>
29540         * expr.h (array_at_struct_end_p): Move to...
29541         (array_ref_element_size): Likewise.
29542         (component_ref_field_offset): Likewise.
29543         * tree.h (array_ref_element_size): ...here.
29544         (array_at_struct_end_p): Likewise.
29545         (component_ref_field_offset): Likewise.
29546         * expr.c (array_ref_element_size): Move to...
29547         (array_ref_low_bound): Likewise.
29548         (array_at_struct_end_p): Likewise.
29549         (array_ref_up_bound): Likewise.
29550         (component_ref_field_offset): Likewise.
29551         * tree.c (array_ref_element_size): ...here.
29552         (array_ref_low_bound): Likewise.
29553         (array_ref_up_bound): Likewise.
29554         (array_at_struct_end_p): Likewise.
29555         (component_ref_field_offset): Likewise.
29557 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
29558             Szabolcs Nagy  <szabolcs.nagy@arm.com>
29560         * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
29562 2015-05-27  Jason Merrill  <jason@redhat.com>
29564         PR bootstrap/66304
29565         * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
29566         ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
29567         ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
29569 2015-05-22  Aditya Kumar  <hiraditya@msn.com>
29571         * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
29572         is true.
29574         * statistics.c (statistics_fini_pass): Print pass name.
29576 2015-05-27  Richard Biener  <rguenther@suse.de>
29578         PR tree-optimization/66272
29579         Revert parts of
29580         2014-08-15  Richard Biener  <rguenther@suse.de>
29582         PR tree-optimization/62031
29583         * tree-data-ref.c (dr_analyze_indices): Do not set
29584         DR_UNCONSTRAINED_BASE.
29585         (dr_may_alias_p): All indirect accesses have to go the
29586         formerly DR_UNCONSTRAINED_BASE path.
29587         * tree-data-ref.h (struct indices): Remove
29588         unconstrained_base member.
29589         (DR_UNCONSTRAINED_BASE): Remove.
29591 2015-05-27  Aldy Hernandez  <aldyh@redhat.com>
29593         * dwarf2out.c: Remove block_map.
29594         (gen_call_site_die): Replace block_map use with BLOCK_DIE.
29595         (gen_lexical_block_die): Same.
29596         (dwarf2out_function_decl): Remove block_map use.
29597         (dwarf2out_c_finalize): Same.
29598         * tree-core.h (struct tree_block): Add die field.
29599         * tree.h (BLOCK_DIE): New.
29601 2015-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29603         PR target/65358
29604         * expr.c (memory_load_overlap): New function.
29605         (emit_push_insn): When pushing partial args to the stack would
29606         clobber the register part load the overlapping part into a pseudo
29607         and put it into the hard reg after pushing.  Change return type
29608         to bool.  Add bool argument.
29609         * expr.h (emit_push_insn): Change return type to bool.
29610         Add bool argument.
29611         * calls.c (expand_call): Cancel sibcall optimization when encountering
29612         partial argument on targets with ARGS_GROW_DOWNWARD and
29613         !STACK_GROWS_DOWNWARD.
29614         (emit_library_call_value_1): Update callsite of emit_push_insn.
29615         (store_one_arg): Likewise.
29617 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
29619         * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
29621 2015-05-27  Martin Liska  <mliska@suse.cz>
29623         * Makefile.in: Add additional dependencies related to memory report
29624         enhancement.
29625         * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
29626         * bitmap.c (struct bitmap_descriptor_d): Remove.
29627         (struct loc): Likewise.
29628         (struct bitmap_desc_hasher): Likewise.
29629         (bitmap_desc_hasher::hash): Likewise.
29630         (bitmap_desc_hasher::equal): Likewise.
29631         (get_bitmap_descriptor): Likewise.
29632         (bitmap_register): User new memory descriptor API.
29633         (register_overhead): Likewise.
29634         (bitmap_find_bit): Register nsearches and search_iter statistics.
29635         (struct bitmap_output_info): Remove.
29636         (print_statistics): Likewise.
29637         (dump_bitmap_statistics): Use new memory descriptor.
29638         * bitmap.h (struct bitmap_usage): New class.
29639         * genmatch.c: Extend header file inclusion.
29640         * genpreds.c: Likewise.
29641         * ggc-common.c (struct ggc_usage): New class.
29642         (struct ggc_loc_desc_hasher): Remove.
29643         (ggc_loc_desc_hasher::hash): Likewise.
29644         (ggc_loc_desc_hasher::equal): Likewise.
29645         (struct ggc_ptr_hash_entry): Likewise.
29646         (struct ptr_hash_hasher): Likewise.
29647         (ptr_hash_hasher::hash): Likewise.
29648         (ptr_hash_hasher::equal): Likewise.
29649         (make_loc_descriptor): Likewise.
29650         (ggc_prune_ptr): Likewise.
29651         (dump_ggc_loc_statistics): Use new memory descriptor.
29652         (ggc_record_overhead): Likewise.
29653         (ggc_free_overhead): Likewise.
29654         (final_cmp_statistic): Remove.
29655         (cmp_statistic): Likewise.
29656         (ggc_add_statistics): Liekwise.
29657         (ggc_prune_overhead_list): Likewise.
29658         * hash-map-traits.h: New file.
29659         * hash-map.h (struct default_hashmap_traits): Move the traits to a
29660         separate header file.
29661         * hash-set.h: Pass memory statistics info to ctor.
29662         * hash-table.c (void dump_hash_table_loc_statistics): New function.
29663         * hash-table.h (hash_table::hash_table): Add new ctor arguments.
29664         (hash_table::~hash_table): Register memory release operation.
29665         (hash_table::alloc_entries): Handle memory allocation operation.
29666         (hash_table::expand): Likewise.
29667         * inchash.c (iterative_hash_hashval_t): Move implementation to header
29668         file.
29669         (iterative_hash_host_wide_int): Likewise.
29670         * inchash.h (class hash): Likewise.
29671         * mem-stats-traits.h: New file.
29672         * mem-stats.h: New file.
29673         (mem_location): Add new class.
29674         (mem_usage): Likewise.
29675         (mem_alloc_description): Likewise.
29676         * sese.c: Add new header file inclusision.
29677         * toplev.c (dump_memory_report): Add report for hash_table, hash_map
29678         and hash_set.
29679         * tree-sra.c: Add new header file inclusision.
29680         * vec.c (struct vec_descriptor): Remove.
29681         (hash_descriptor): Likewise.
29682         (struct vec_usage): Likewise.
29683         (struct ptr_hash_entry): Likewise.
29684         (hash_ptr): Likewise.
29685         (eq_ptr): Likewise.
29686         (vec_prefix::register_overhead): Use new memory descriptor API.
29687         (vec_prefix::release_overhead): Likewise.
29688         (add_statistics): Remove.
29689         (dump_vec_loc_statistics): Use new memory descriptor API.
29690         * vec.h (struct vec_prefix): Likewise.
29691         (va_heap::reserve): Likewise.
29692         (va_heap::release): Likewise.
29693         * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
29695 2015-05-27  Richard Biener  <rguenther@suse.de>
29697         * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
29698         earlier and remove ??? comment.
29699         (vect_analyze_stmt): If we are analyzing a pure SLP stmt
29700         and got called from loop analysis bail out.  Always pass the SLP
29701         node to the vectorizable_* functions.
29702         * tree-vect-loop.c (vect_analyze_loop_operations): Remove
29703         the premature SLP check here.
29704         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
29705         detected SLP stmts.
29706         (vect_detect_hybrid_slp_1): Likewise.
29708 2015-05-26  Jeff Law  <law@redhat.com>
29710         * combine.c (find_split_point): Verify that the shift count is a
29711         constant when choosing (plus (ashift ...)) as a split point.
29713         * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
29714         No functional changes.
29716 2015-05-26  Jan Hubicka  <hubicka@ucw.cz>
29718         * ipa-polymorphic-call.c
29719         (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
29720         case when call target is already known.
29722 2015-05-26  Oleg Endo  <olegendo@gcc.gnu.org>
29724         PR target/65979
29725         * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
29726         take into account the case that operands[1] and operands[2]
29727         are the same register.
29729 2015-05-26  Michael Matz  <matz@suse.de>
29731         PR middle-end/66251
29733         * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
29734         stores.
29735         (vect_create_vectorized_demotion_stmts): Always set
29736         STMT_VINFO_VEC_STMT, also with SLP.
29737         (vectorizable_store): Handle strided group stores.
29739 2015-05-26  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
29741         PR target/66049
29742         * config/aarch64/aarch64.md
29743         (*adds_shift_imm_<mode>):  New pattern.
29744         (*subs_shift_imm_<mode>):  Likewise.
29745         (*adds_<optab><ALLX:mode>_shift_<GPI:mode>):  Likewise.
29746         (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
29747         (*add_uxt<mode>_shift2): Likewise.
29748         (*add_uxtsi_shift2_uxtw): Likewise.
29749         (*sub_uxt<mode>_shift2): Likewise.
29750         (*sub_uxtsi_shift2_uxtw): Likewise.
29752 2015-05-26  David Edelsohn  <dje.gcc@gmail.com>
29754         * config/rs6000/constraints.md (Y, U): Use match_test.
29756 2015-05-26  Christian Bruel  <christian.bruel@st.com>
29758         PR target/52144
29759         * config/arm/arm.c (arm_option_check_internal)
29760         (arm_option_params_internal): Check opts->target_flags to set macros.
29761         (TREE_TARGET_ARM, TREE_TARGET_THUMB)
29762         (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
29763         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
29764         (builtin_define): Replaced with def_or_undef_macro.
29765         * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
29766         TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
29767         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
29768         (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
29769         (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
29770         (TARGET_ARM_FEATURE_LDREX_P)
29771         (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
29772         * config/arm/arm-c.c (def_or_undef_macro): New function.
29773         (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
29775 2015-05-26  Christian Bruel  <christian.bruel@st.com>
29777         * c-common.h (builtin_define_with_int_value)
29778         (builtin_define_type_sizeof): Declare.
29779         * c-cppbuiltin.c (builtin_define_with_int_value)
29780         (builtin_define_type_sizeof): Externalize.
29781         (builtin_define_std): Cleanup declaration.
29782         * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
29783         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
29784         * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
29785         (builtin_define, builtin_assert): New macros.
29787 2015-05-26  Richard Biener  <rguenther@suse.de>
29789         PR tree-optimization/66142
29790         * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
29791         MEM_REFs for the same base address.
29793 2015-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
29795         PR ipa/66181
29796         * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
29798 2015-05-26  Jason Merrill  <jason@redhat.com>
29800         * configure.ac: Set CXXFLAGS for ISL test.
29801         * configure: Regenerate.
29803         * configure.ac: Use C++ for all tests.  Use AC_CHECK_DECLS for
29804         strstr and basename.
29805         * configure: Regenerate.
29807 2015-05-26  Richard Biener  <rguenther@suse.de>
29809         * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
29810         X % C -> X & (C - 1) for C being a power-of two to ...
29811         * match.pd: ... patterns.
29813 2015-05-26  Marc Glisse  <marc.glisse@inria.fr>
29815         * match.pd (swapped_tcc_comparison): New operator list.
29816         (-A CMP -B): New simplification.
29817         * fold-const.c (fold_comparison): Remove corresponding code.
29819 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
29821         * caller-save.c (init_caller_save): Base temporary register numbers
29822         on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
29823         * cfgloopanal.c (init_set_costs): Likewise.
29824         * dojump.c (prefer_and_bit_test): Likewise.
29825         * expr.c (init_expr_target): Likewise.
29826         * ira.c (setup_prohibited_mode_move_regs): Likewise.
29827         * lower-subreg.c (init_lower_subreg): Likewise.
29828         * postreload.c (reload_cse_regs_1): Likewise.
29830 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
29832         * gensupport.h (compute_test_codes): Declare.
29833         * gensupport.c (compute_predicate_codes): Rename to...
29834         (compute_test_codes): ...this.  Generalize error message.
29835         (process_define_predicate): Update accordingly.
29836         * genpreds.c (compute_maybe_allows): Delete.
29837         (add_constraint): Use compute_test_codes to determine whether
29838         something can accept a SUBREG, REG or MEM.
29840 2015-05-26  Torvald Riegel  <triegel@redhat.com>
29842         * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
29843         'memory model' to align with C++11; fix description of memory orders;
29844         fix a few typos.
29846 2015-05-26  Richard Biener  <rguenther@suse.de>
29848         * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
29849         (vect_analyze_loop_operations): ... here.  Remove slp parameter,
29850         detect whether we apply SLP.  Remove call to
29851         vect_update_slp_costs_according_to_vf.
29852         (vect_analyze_loop_2): Call vect_update_vf_for_slp and
29853         vect_update_slp_costs_according_to_vf from here.  Dispatch
29854         to vect_slp_analyze_operations to analyze SLP stmts.
29855         * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
29856         unused bb_vec_info parameter, adjust assert.
29857         (vect_slp_analyze_operations): Pass in the slp instance tree
29858         instead of bb_vec_info.
29859         (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
29860         * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
29862 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
29864         * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
29865         Q_REGS.  Expand comment.
29866         (REG_CLASS_NAMES): Ditto.
29867         (REG_CLASS_CONTENTS): Ditto.
29869 2015-05-25  Uros Bizjak  <ubizjak@gmail.com>
29871         PR target/66274
29872         * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
29873         when LEGACY_INT_REGNO_P is processed.
29875 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
29877         * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
29879 2015-05-25  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
29881         * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
29882         register if not marked dead/unused, before return.
29884 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
29886         PR lto/66180
29887         * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
29888         is set; check for assembler name at LTO time.
29889         (type_in_anonymous_namespace): Remove hacks, check that all
29890         anonymous types are called "<anon>"
29891         (odr_type_p): Simplify; add check for "<anon>"
29892         (odr_subtypes_equivalent): Add odr_type_p check.
29893         * tree.c (need_assembler_name_p): Even anonymous namespace needs
29894         assembler name.
29896 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
29898         * ipa-utils.h (method_class_type): Remove.
29899         * cgraphunit.c (walk_polymorphic_call_targets): Use
29900         TYPE_METHOD_BASETYPE.
29901         * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
29902         on main variants only.
29903         (method_class_type): Remove.
29904         (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
29905         (build_type_inheritance_graph): Likewise.
29906         * ipa-icf.c (sem_function::equals_wpa): Likewise.
29907         * pa-polymorphic-call.c (decl_maybe_in_construction_p,
29908         check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
29910 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
29912         * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
29913         is_typedef_decl, typedef_variant_p): Constify.
29914         * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
29915         is_typedef_decl, typedef_variant_p): Constify.
29917 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29919         * defaults.h (gen_tablejump): New function.
29920         (HAVE_tablejump): Add default value.
29921         * expr.c: Adjust.
29922         * stmt.c: Likewise.
29924 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29926         * defaults.h (gen_store_multiple): New function.
29927         (HAVE_store_multiple): Add default value.
29928         * expr.c (move_block_from_reg): Adjust.
29930 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29932         * defaults.h (gen_load_multiple): New function.
29933         (HAVE_load_multiple): Add default value.
29934         * expr.c (move_block_to_reg): Adjust.
29936 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29938         * defaults.h (gen_mem_signal_fence): New function.
29939         (HAVE_mem_signal_fence): Add default value.
29940         * optabs.c: Adjust.
29942 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29944         * defaults.h (gen_memory_barrier): New function.
29945         (HAVE_memory_barrier): Add default value.
29946         * optabs.c: Adjust.
29948 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29950         * defaults.h (gen_mem_thread_fence): New function.
29951         (HAVE_mem_thread_fence): Add default definition.
29952         * optabs.c: Adjust.
29954 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
29956         * combine.c (find_split_point): Check the value of HAVE_lo_sum
29957         instead of if it is defined.
29958         (combine_simplify_rtx): Likewise.
29959         * lra-constraints.c (process_address_1): Likewise.
29960         * config/darwin.c: Adjust.
29961         * genconfig.c (main): Always define HAVE_lo_sum.
29963 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
29965         * genmatch.c (parser::parse_operation): Reject expanding
29966         operator-list inside 'for'.
29968 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
29970         * genmatch.c (parser::parse_for): Reject iterator if used as
29971         operator-list.
29973 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
29975         * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
29976         after end of id-list.
29978 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
29980         * tree.c (gimple_canonical_types_compatible_p): Sanity check that
29981         we do not try to compute canonical type for type that does not need
29982         alias set.
29983         (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
29984         FUNCITON_TYPE.
29985         * tree.h (type_with_alias_set_p): New.
29987 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
29989         * tree.c (gimple_canonical_types_compatible_p):  Do not compare
29990         function attributes.
29991         (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
29993 2015-05-22  Jim Wilson  <jim.wilson@linaro.org>
29995         * Makefile.in (check_gcc_parallelize): Delete.
29996         (lang_checks_parallelized): Update comment.
29998 2015-05-22  Mikhail Maltsev  <maltsevm@gmail.com>
30000         PR rtl-optimization/66237
30001         * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
30002         location of an "as_a" cast.
30004 2015-05-22  Jeff Law  <law@redhat.com>
30006         * config/pa/pa.md (non-canonical shift-add insns): Remove.
30007         (peepholes with non-canonical RTL sources): Remove.
30008         (peepholes for indexed stores of FP regs in integer modes): Match and
30009         generate canonical RTL.
30011 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
30013         PR tree-optimization/63387
30014         * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
30015         ((x ord x) & (y ord y) -> (x ord y),
30016         (x ord x) & (x ord y) -> (x ord y)): New simplifications.
30017         * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
30018         vectors like scalars.
30020 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
30022         * convert.c (convert_to_integer, convert_to_vector): Include the
30023         types in the error message.
30025 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
30027         * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
30028         simplifications.
30030 2015-05-22  Jeff Law  <law@redhat.com>
30032         * config/pa/pa.md (integer_indexed_store splitters): Use
30033         mem_shadd_operand.  Use ASHIFT rather than MULT in the resulting
30034         insns -- adjusting the constant 2nd operand accordingly.
30036         * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
30037         (plus (ashift X log2) Y) if it is a split point.
30039         * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
30040         out of hppa_legitimize_address to handle both forms of a multiply
30041         by 2, 4 or 8.
30042         (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
30043         Always generate the ASHIFT variant as the result is not directly
30044         used in a MEM.  Update comments and refactor slightly to improve
30045         readability.
30047 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30049         PR target/65491
30050         * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
30051         aarch64_composite_type_p.  Remove check for aarch64_composite_type_p.
30052         (aarch64_composite_type_p): Return false if given type and mode are
30053         for a short vector.
30055 2015-05-22  Richard Biener  <rguenther@suse.de>
30057         * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
30058         member.
30059         * tree-vect-loop.c (vect_analyze_loop_operations): Look at
30060         patterns when determining whether SLP is pure.
30061         (vect_is_slp_reduction): Remove check for pattern stmts.
30062         (vect_is_simple_reduction_1): Remove dead code.
30063         * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
30064         (vect_get_and_check_slp_defs): Pass in the stmt number.
30065         Allow the first def in a reduction to be not a pattern stmt when
30066         the rest of the stmts def are patterns.
30067         (vect_build_slp_tree_1): Allow tcc_expression codes like
30068         SAD_EXPR and DOT_PROD_EXPR.
30069         (vect_build_slp_tree): Adjust.
30070         (vect_analyze_slp): Refactor and move BB vect error message ...
30071         (vect_slp_analyze_bb_1): ... here.
30073 2015-05-22  Aldy Hernandez  <aldyh@redhat.com>
30075         * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
30076         for CSWTCH temporary.
30078 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30080         * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
30081         (arm_unspec_cost): Allow UNSPEC_VOLATILE.  Do not recurse inside
30082         unknown unspecs.
30084 2015-05-22  Richard Biener  <rguenther@suse.de>
30086         PR tree-optimization/66251
30087         * tree-vect-stmts.c (vectorizable_conversion): Properly
30088         set STMT_VINFO_VEC_STMT even for the SLP case.
30090 2015-05-22  Marek Polacek  <polacek@redhat.com>
30092         * doc/extend.texi: Use @pxref instead of @xref.
30094 2015-05-22  hiraditya  <hiraditya@msn.com>
30096         * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
30097         redundant if.
30099 2015-05-22  Richard Biener  <rguenther@suse.de>
30101         PR tree-optimization/65701
30102         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
30103         Move peeling cost models into one place.  Peel for alignment
30104         for single loads only if an aligned load is cheaper than
30105         an unaligned load.
30107 2015-05-22  Marek Polacek  <polacek@redhat.com>
30109         PR c/47043
30110         * doc/extend.texi (Enumerator Attributes): New section.
30111         Document syntax of enumerator attributes.
30113 2015-05-22  Richard Biener  <rguenther@suse.de>
30115         * tree-vect-loop.c (get_reduction_op): New function.
30116         (vect_model_reduction_cost): Use it, add reduc_index parameter.
30117         Make ready for BB reductions.
30118         (vect_create_epilog_for_reduction): Use get_reduction_op.
30119         (vectorizable_reduction): Init reduc_index to a valid value.
30120         Adjust vect_model_reduction_cost call.
30121         * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
30122         operand for reduction defaults.  Add SAD_EXPR support.
30123         Assert we have a neutral op for SLP reductions.
30124         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
30125         walking pattern stmt ops only recurse to SSA names.
30127 2015-05-22  Richard Biener  <rguenther@suse.de>
30129         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
30130         assert with guard, remove check on detected reduction.
30131         (vect_recog_sad_pattern): Likewise.
30132         (vect_recog_widen_sum_pattern): Likewise.
30134 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30136         * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
30137         __always_inline__ attribute.
30138         (vaesdq_u8): Likewise.
30139         (vaesmcq_u8): Likewise.
30140         (vaesimcq_u8): Likewise.
30141         (vsha1cq_u32): Likewise.
30142         (vsha1mq_u32): Likewise.
30143         (vsha1pq_u32): Likewise.
30144         (vsha1h_u32): Likewise.
30145         (vsha1su0q_u32): Likewise.
30146         (vsha1su1q_u32): Likewise.
30147         (vsha256hq_u32): Likewise.
30148         (vsha256h2q_u32): Likewise.
30149         (vsha256su0q_u32): Likewise.
30150         (vsha256su1q_u32): Likewise.
30151         (vmull_p64): Likewise.
30152         (vmull_high_p64): Likewise.
30154 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30156         * final.c (final_scan_insn): Don't check HAVE_peephole with the
30157         preprocessor.
30158         * output.h: Likewise.
30159         * genconfig.c (main): Alwways define HAVE_peephole.
30160         * genpeep.c: Don't emit checks of HAVE_peephole.
30162 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30164         * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
30165         check HAVE_conditional_move with the preprocessor.
30167 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30169         * genconfig.c (main): Always define HAVE_conditional_move.
30170         * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
30171         toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
30172         is defined.
30174 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30176         * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
30177         reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
30178         and FRAME_POINTER_REGNUM with the preprocessor.
30180 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30182         * defaults.h: Add default for STACK_PUSH_CODE.
30183         * expr.c: Don't redefine STACK_PUSH_CODE.
30184         * recog.c: Likewise.
30186 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30188         * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
30189         sched-deps.c: Use if instead of preprocessor checks with
30190         STACK_GROWS_DOWNWARD.
30192 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30194         * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
30195         is defined.
30196         * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
30197         * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
30198         * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
30199         * doc/tm.texi: Regenerate.
30201 2015-05-21  H.J. Lu  <hongjiu.lu@intel.com>
30203         PR target/66232
30204         * config/i386/constraints.md (Bg): New constraint for GOT memory
30205         operand.
30206         * config/i386/i386.md (*call_got_x32): New pattern.
30207         (*call_value_got_x32): Likewise.
30208         * config/i386/predicates.md (GOT_memory_operand): New predicate.
30210 2015-05-21  Jakub Jelinek  <jakub@redhat.com>
30212         PR tree-optimization/66233
30213         * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
30214         Simplify.
30216 2015-05-21  Jeff Law  <law@redhat.com>
30218         * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
30219         than MULT for shadd sequences.
30221 2015-05-08  Jan Hubicka  <hubicka@ucw.cz>
30223         * alias.c (alias_stats): New static var.
30224         (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
30225         (dump_alias_stats_in_alias_c): New function.
30226         * alias.h (dump_alias_stats_in_alias_c): Declare.
30227         * tree-ssa-alias.c (dump_alias_stats): Call it.
30229 2015-05-08  Michael Matz  <matz@suse.de>
30231         * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
30232         to strided_p.
30233         (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
30234         (STMT_VINFO_STRIDED_P): ... this.
30235         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
30236         (vect_verify_datarefs_alignment): Likewise.
30237         (vect_enhance_data_refs_alignment): Likewise.
30238         (vect_analyze_data_ref_access): Likewise.
30239         (vect_analyze_data_refs): Accept strided stores.
30240         * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
30241         (vect_model_load_cost): Adjust for macro rename.
30242         (vectorizable_mask_load_store): Likewise.
30243         (vectorizable_load): Likewise.
30244         (vectorizable_store): Open code strided stores.
30246 2015-05-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30248         * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
30249         Document sqrt_insn.
30251 2015-05-21  Richard Biener  <rguenther@suse.de>
30253         PR c++/66211
30254         * match.pd: Guard pattern optimzing (int)(float)int
30255         conversions to apply only on GIMPLE.
30257 2015-05-21  Jeff Law  <law@redhat.com>
30259         * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
30260         multiply-accumulate/shift-add insn generation.
30262 2015-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
30264         PR target/54236
30265         * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
30266         operands[1] are the same.
30268 2015-05-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
30270         PR middle-end/66221
30271         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
30272         build_distinct_type_copy to copy bounds.
30274 2015-05-21  Thomas Schwinge  <thomas@codesourcery.com>
30276         * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
30277         Change to unsigned int.
30279 2015-05-20  Jeff Law  <law@redhat.com>
30281         * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
30282         (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
30283         (pa_shadd_constant_p): Allow constants for shadd insns rather
30284         than valid scaling constants for memory addresses.
30285         * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
30286         * config/pa/predicates.md (mem_shadd_operand): New predicate.
30287         * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
30288         (shift-add insns using ASHIFT): New patterns.
30290 2015-05-20  Mikhail Maltsev  <maltsevm@gmail.com>
30292         * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
30293         feasible.
30294         (fix_up_fall_thru_edges): Likewise.
30295         (fix_crossing_conditional_branches): Likewise. Promote jump targets
30296         from to rtx_insn to rtx_code_label where feasible.
30297         * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
30298         gen_move_insn (returned type changed to rtx_insn).
30299         * builtins.c (expand_errno_check): Fix arguments of
30300         do_compare_rtx_and_jump (now expects rtx_code_label).
30301         (expand_builtin_acc_on_device): Likewise.
30302         * cfgcleanup.c (try_simplify_condjump): Add cast when calling
30303         invert_jump (now exprects rtx_jump_insn).
30304         * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
30305         (construct_init_block): Use rtx_code_label.
30306         * cfgrtl.c (block_label): Promote return type to rtx_code_label.
30307         (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
30308         calling redirect_jump.
30309         (patch_jump_insn): Likewise.
30310         (redirect_branch_edge): Likewise.
30311         (force_nonfallthru_and_redirect): Likewise.
30312         (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
30313         when suitable.
30314         (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
30315         * cfgrtl.h: Promote return type of block_label to rtx_code_label.
30316         * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
30317         * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
30318         to store the value retured by gen_label_rtx.
30319         * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
30320         rtx_jump_insn.
30321         * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
30322         (split_branches): Fix calls of redirect_jump.
30323         * dojump.c (jumpifnot): Promote argument type from rtx to
30324         rtx_code_label.
30325         (jumpifnot_1): Likewise.
30326         (jumpif): Likewise.
30327         (jumpif_1): Likewise.
30328         (do_jump_1): Likewise.
30329         (do_jump): Likewise. Use rtx_code_label when feasible.
30330         (do_jump_by_parts_greater_rtx): Likewise.
30331         (do_jump_by_parts_zero_rtx): Likewise.
30332         (do_jump_by_parts_equality_rtx): Likewise.
30333         (do_compare_rtx_and_jump): Likewise.
30334         * dojump.h: Update function prototypes.
30335         * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
30336         returns rtx_insn).
30337         * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
30338         rtx_jump_insn.
30339         (emit_label_before): Likewise.
30340         (emit_jump_insn_after_noloc): Likewise.
30341         (emit_jump_insn_after_setloc): Likewise.
30342         (emit_jump_insn_after): Likewise
30343         (emit_jump_insn_before_setloc): Likewise.
30344         (emit_jump_insn_before): Likewise.
30345         (emit_label_before): Promote return type to rtx_code_label.
30346         (emit_label): Likewise.
30347         * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
30348         * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
30349         gen_move_insn.
30350         (emit_stack_restore): Likewise.
30351         * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
30352         (do_cmp_and_jump): Likewise.
30353         * expr.c (expand_expr_real_2): Likewise. Promote some local variables
30354         from rtx to rtx_code_label.
30355         (gen_move_insn_uncast): New function.
30356         * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
30357         * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
30358         * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
30359         * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
30360         invert_jump_1 and redirect_jump_1.
30361         * internal-fn.c (expand_arith_overflow_result_store): Fix call of
30362         do_compare_rtx_and_jump.
30363         (expand_addsub_overflow): Likewise.
30364         (expand_neg_overflow): Likewise.
30365         (expand_mul_overflow): Likewise.
30366         * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
30367         return value of gen_move_insn.
30368         * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
30369         * loop-doloop.c (add_test): Use rtx_code_label.
30370         (doloop_modify): Likewise.
30371         (doloop_optimize): Likewise.
30372         * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
30373         * lra-constraints.c (emit_spill_move): Remove cast of value returned
30374         by gen_move_insn.
30375         (inherit_reload_reg): Add cast when calling dump_insn_slim.
30376         (split_reg): Likewise.
30377         * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
30378         gen_move_insn.
30379         * optabs.c (expand_binop_directly): Remove casts of values returned by
30380         maybe_gen_insn.
30381         (expand_unop_direct): Likewise.
30382         (expand_abs): Likewise.
30383         (maybe_emit_unop_insn): Likewise.
30384         (maybe_gen_insn): Promote return type to rtx_insn.
30385         * optabs.h: Update prototype of maybe_gen_insn.
30386         * postreload-gcse.c (eliminate_partially_redundant_load): Remove
30387         redundant cast.
30388         * recog.c (struct peep2_insn_data): Promote type of insn field to
30389         rtx_insn.
30390         (peep2_reinit_state): Use NULL instead of NULL_RTX.
30391         (peep2_attempt): Remove casts of insn in peep2_insn_data.
30392         (peep2_fill_buffer): Promote argument from rtx to rtx_insn
30393         * recog.h (struct insn_gen_fn): Promote return types of function
30394         pointers and operator ().from rtx to rtx_insn.
30395         * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
30396         (fill_eager_delay_slots): Likewise.
30397         (relax_delay_slots): Likewise.
30398         (make_return_insns): Likewise.
30399         (dbr_schedule): Likewise.
30400         (optimize_skips): Likewise.
30401         (reorg_redirect_jump): Likewise.
30402         (fill_slots_from_thread): Likewise.
30403         * reorg.h: Update prototypes.
30404         * resource.c (find_dead_or_set_registers): Use dyn_cast to
30405         rtx_jump_insn instead of check.  Use it's jump_target method.
30406         * rtl.h (rtx_jump_insn::jump_label): Define new method.
30407         (rtx_jump_insn::jump_target): Define new method.
30408         (rtx_jump_insn::set_jump_target): Define new method.
30409         * rtlanal.c (tablejump_p): Promote type of one local variable.
30410         * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
30411         (sched_analyze_insn): Likewise.
30412         * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
30413         (print_insn): Likewise.
30414         * stmt.c (label_rtx): Promote return type to rtx_insn.
30415         (force_label_rtx): Likewise.
30416         (jump_target_rtx): Define new function.
30417         (expand_label): Use it, get rid of one cast.
30418         (expand_naked_return): Promote rtx to rtx_code_label.
30419         (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
30420         (expand_case): Use rtx_code_label instread of rtx where feasible.
30421         (expand_sjlj_dispatch_table): Likewise.
30422         (emit_case_nodes): Likewise.
30423         * stmt.h: Declare jump_target_rtx.  Update prototypes.  Fix comments.
30424         * store-motion.c (insert_store): Make use of new return type of
30425         gen_move_insn and remove a cast.
30426         (replace_store_insn): Likewise.
30428 2015-05-20  Max Filippov  <jcmvbkbc@gmail.com>
30430         * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
30431         by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
30433 2015-05-20  Jeff Law  <law@redhat.com>
30435         * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
30436         dispose of the jump thread path when the jump threading
30437         opportunity is cancelled.
30439 2015-05-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
30441         * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
30442         when printing the caret character.
30444 2015-05-20  Marek Polacek  <polacek@redhat.com>
30446         * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
30448 2015-05-20  Marek Polacek  <polacek@redhat.com>
30450         * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
30451         * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
30452         * gimple-fold.c (canonicalize_bool): Likewise.
30453         (same_bool_result_p): Likewise.
30454         * tree-if-conv.c (parse_predicate): Likewise.
30456 2015-05-20  Marek Polacek  <polacek@redhat.com>
30458         * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
30459         * gimplify.c (gimplify_modify_expr_rhs): Likewise.
30461 2015-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30463         * config/aarch64/aarch64.c (aarch64_class_max_nregs):
30464         Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
30465         values.
30467 2015-05-20  Robert Suchanek  <robert.suchanek@imgtec.com>
30469         * config/mips/mips.h (micromips_globals): Declare.
30471 2015-05-20  David Malcolm  <dmalcolm@redhat.com>
30473         * timevar.def (TV_INITIALIZE_RTL): New.
30474         * toplev.c (initialize_rtl): Use an auto_timevar to account this
30475         function's time to TV_INITIALIZE_RTL.
30477 2015-05-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
30479         * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
30480         gimple_build_nop calls.
30481         (chkp_find_bounds_for_elem): Likewise.
30482         (chkp_get_zero_bounds): Likewise.
30483         (chkp_get_none_bounds): Likewise.
30484         (chkp_get_bounds_by_definition): Likewise.
30485         (chkp_generate_extern_var_bounds): Likewise.
30486         (chkp_get_bounds_for_decl_addr): Likewise.
30487         (chkp_get_bounds_for_string_cst): Likewise.
30489 2015-05-20  Bin Cheng  <bin.cheng@arm.com>
30491         PR tree-optimization/65447
30492         * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
30493         (dump_use, dump_uses): Support to dump sub use.
30494         (record_use): New parameters to support sub use.  Remove call to
30495         dump_use.
30496         (record_sub_use, record_group_use): New functions.
30497         (compute_max_addr_offset, split_all_small_groups): New functions.
30498         (group_address_uses, rewrite_use_address): New functions.
30499         (strip_offset): New declaration.
30500         (find_interesting_uses_address): Call record_group_use.
30501         (add_candidate): New assertion.
30502         (infinite_cost_p): Move definition forward.
30503         (add_costs): Check INFTY cost and return immediately.
30504         (get_computation_cost_at): Clear setup cost and dependent bitmap
30505         for sub uses.
30506         (determine_use_iv_cost_address): Compute cost for sub uses.
30507         (rewrite_use_address_1): Rename from old rewrite_use_address.
30508         (free_loop_data): Free sub uses.
30509         (tree_ssa_iv_optimize_loop): Call group_address_uses.
30511 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
30512             Jim Wilson  <jim.wilson@linaro.org>
30514         * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
30515         new  fields loadv and storev.
30516         * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
30517         Initialize loadv and storev.
30518         * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
30519         (cortexa53_extra_costs): Likewise.
30520         (cortexa57_extra_costs): Likewise.
30521         (xgene1_extra_costs): Likewise.
30522         * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
30523         rtx_costs.
30525 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
30527         * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
30528          storev.
30529         (cortexa8_extra_costs): Likewise.
30530         (cortexa5_extra_costs): Likewise.
30531         (cortexa7_extra_costs): Likewise.
30532         (cortexa12_extra_costs): Likewise.
30533         (cortexa15_extra_costs): Likewise.
30534         (v7m_extra_costs): Likewise.
30536 2015-05-20  Jeff Law  <law@redhat.com>
30538         * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
30539         instead of open-coded version.  Also delete the jump thread created
30540         within this function.
30542 2015-05-20  Alan Modra  <amodra@gmail.com>
30544         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
30545         stack adjusting insn.  Formatting.
30546         (rs6000_emit_prologue): Track stack adjusting insn, and use of
30547         r12.  If possible, emit first -fsplit-stack arg pointer insn
30548         before stack adjust.  Don't use r12 to save cr if split-stack.
30550 2015-05-20  Alan Modra  <amodra@gmail.com>
30552         * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
30553         Define.
30554         (rs6000_supports_split_stack): New function.
30555         * config/rs6000/rs6000.c (machine_function): Add
30556         split_stack_arg_pointer.
30557         (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
30558         (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
30559         rather than virtual_incoming_args_rtx.
30560         (rs6000_va_start): Likewise.
30561         (split_stack_arg_pointer_used_p): New function.
30562         (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
30563         (morestack_ref): New var.
30564         (gen_add3_const, rs6000_expand_split_stack_prologue,
30565         rs6000_internal_arg_pointer, rs6000_live_on_entry,
30566         rs6000_split_stack_space_check): New functions.
30567         (rs6000_elf_file_end): Call file_end_indicate_split_stack.
30568         * config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
30569         (UNSPECV_SPLIT_STACK_RETURN): Define.
30570         (split_stack_prologue, load_split_stack_limit,
30571         load_split_stack_limit_di, load_split_stack_limit_si,
30572         split_stack_return, split_stack_space_check): New expands and insns.
30573         * config/rs6000/rs6000-protos.h
30574         (rs6000_expand_split_stack_prologue): Declare.
30575         (rs6000_split_stack_space_check): Declare.
30577 2015-05-20  Alan Modra  <amodra@gmail.com>
30579         * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
30580         (direct_return): Test vrsave_size rather than vrsave_mask.
30581         (rs6000_emit_prologue): Likewise.  Remove redundant altivec tests.
30582         (rs6000_emit_epilogue): Likewise.
30584 2015-05-20  Alan Modra  <amodra@gmail.com>
30586         * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
30587         when not saving registers.
30588         (debug_stack_info): Adjust to omit printing unused offsets,
30589         as before.
30590         (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
30591         expression.
30593 2015-05-19  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30595         PR c++/65835
30596         * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
30597         value_type to const char *.
30599 2015-05-19  Sandra Loosemore  <sandra@codesourcery.com>
30601         * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
30602         to build a biarch toolchain again.
30604 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
30606         * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
30607         or implicit declarations.
30608         (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
30609         into it.
30610         (get_odr_type): Check type has linkage before adding bases.
30611         (register_odr_type): Check that type has linkage before adding it.
30612         (type_known_to_have_no_deriavations_p): Rename to ..
30613         (type_known_to_have_no_derivations_p): This one.
30614         * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
30615         (type_known_to_have_no_derivations_p): This one.
30616         * ipa-polymorphic-call.c
30617         (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
30618         type has linkage.
30620 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
30622         * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
30623         (layout_type): Use RECORD_OR_UNION_TYPE_P.
30625 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
30627         * config/s390/s390.c (s390_vector_bool_type_p): New function.
30628         (s390_invalid_binary_op): New function.
30629         (TARGET_INVALID_BINARY_OP): Define macro.
30631 2015-05-19  David Sherwood  <david.sherwood@arm.com>
30633         * loop-invariant.c (create_new_invariant): Don't calculate address cost
30634         if mode is not a scalar integer.
30635         (get_inv_cost): Increase computational cost for unused invariants.
30637 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
30639         * config.gcc: Add vecintrin.h to extra_headers.  Add s390-c.o to
30640         c_target_objs and cxx_target_objs.  Add t-s390 to tmake_file.
30641         * config/s390/s390-builtin-types.def: New file.
30642         * config/s390/s390-builtins.def: New file.
30643         * config/s390/s390-builtins.h: New file.
30644         * config/s390/s390-c.c: New file.
30645         * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
30646         CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
30647         * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
30648         (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
30649         prototypes.
30650         * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
30651         Include.
30652         (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
30653         (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
30654         variable definitions.
30655         (s390_const_operand_ok): New function.
30656         (s390_expand_builtin): Rewrite.
30657         (s390_init_builtins): New function.
30658         (s390_handle_vectorbool_attribute): New function.
30659         (s390_attribute_table): Add s390_vector_bool attribute.
30660         (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
30661         (s390_branch_condition_mask): Generate masks for new modes.
30662         (s390_expand_vec_compare_cc): New function.
30663         (s390_mangle_type): Add mangling for vector bool types.
30664         (enum s390_builtin): Remove.
30665         (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
30666         efpc builtins.
30667         * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
30668         s390_cpu_cpp_builtins.
30669         (REGISTER_TARGET_PRAGMAS): New macro.
30670         * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
30671         (insn_cmp mode attribute): Add new CC modes.
30672         (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
30673         (lcbb): New pattern definition.
30674         * config/s390/s390intrin.h: Include vecintrin.h.
30675         * config/s390/t-s390: New file.
30676         * config/s390/vecintrin.h: New file.
30677         * config/s390/vector.md: Include vx-builtins.md.
30678         * config/s390/vx-builtins.md: New file.S/390 zvector builtin
30679         support.
30681 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
30683         * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
30684         CCVFHE.
30685         * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
30686         (s390_select_ccmode): Likewise.
30687         (s390_canonicalize_comparison): Swap operands if necessary.
30688         (s390_expand_vec_compare_scalar): Expand DFmode compare using
30689         single element vector instructions.
30690         (s390_emit_compare): Call s390_expand_vec_compare_scalar.
30691         (s390_branch_condition_mask): Generate CC masks for the new modes.
30692         * config/s390/s390.md (v0, vf, vd): New mode attributes.
30693         (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
30694         (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
30695         (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
30696         (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
30697         (*extend<DSF:mode><BFP:mode>2): New insn definition.
30698         (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
30699         (extend<DSF:mode><BFP:mode>2): Turn into expander.
30700         (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
30701         (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
30702         (sqrt<mode>2): Add vector instruction.
30704 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
30706         * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
30707         constraints.
30708         * config/s390/predicates.md (const0_operand, constm1_operand)
30709         (constable_operand): Accept vector operands.
30710         * config/s390/s390-modes.def: Add supported vector modes.
30711         * config/s390/s390-protos.h (s390_cannot_change_mode_class)
30712         (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
30713         (s390_bytemask_vector_p, s390_expand_vec_strlen)
30714         (s390_expand_vec_compare, s390_expand_vcond)
30715         (s390_expand_vec_init): Add prototypes.
30716         * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
30717         (s390_vector_mode_supported_p): New function.
30718         (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
30719         (s390_contiguous_bitmask_vector_p): New function.
30720         (s390_bytemask_vector_p): New function.
30721         (s390_split_ok_p): Vector regs don't work either.
30722         (regclass_map): Add VEC_REGS.
30723         (s390_legitimate_constant_p): Handle vector constants.
30724         (s390_cannot_force_const_mem): Handle CONST_VECTOR.
30725         (legitimate_reload_vector_constant_p): New function.
30726         (s390_preferred_reload_class): Handle CONST_VECTOR.
30727         (s390_reload_symref_address):  Likewise.
30728         (s390_secondary_reload): Vector memory instructions only support
30729         short displacements.  Rename reload*_nonoffmem* to reload*_la*.
30730         (s390_emit_ccraw_jump): New function.
30731         (s390_expand_vec_strlen): New function.
30732         (s390_expand_vec_compare): New function.
30733         (s390_expand_vcond): New function.
30734         (s390_expand_vec_init): New function.
30735         (s390_dwarf_frame_reg_mode): New function.
30736         (print_operand): Handle addresses with 'O' and 'R' constraints.
30737         (NR_C_MODES, constant_modes): Add vector modes.
30738         (s390_output_pool_entry): Handle vector constants.
30739         (s390_hard_regno_mode_ok): Handle vector registers.
30740         (s390_class_max_nregs): Likewise.
30741         (s390_cannot_change_mode_class): New function.
30742         (s390_invalid_arg_for_unprototyped_fn): New function.
30743         (s390_function_arg_vector): New function.
30744         (s390_function_arg_float): Remove size variable.
30745         (s390_pass_by_reference): Handle vector arguments.
30746         (s390_function_arg_advance): Likewise.
30747         (s390_function_arg): Likewise.
30748         (s390_return_in_memory): Vector values are returned in a VR if
30749         possible.
30750         (s390_function_and_libcall_value): Handle vector arguments.
30751         (s390_gimplify_va_arg): Likewise.
30752         (s390_call_saved_register_used): Consider the arguments named.
30753         (s390_conditional_register_usage): Disable v16-v31 for non-vec
30754         targets.
30755         (s390_preferred_simd_mode): New function.
30756         (s390_support_vector_misalignment): New function.
30757         (s390_vector_alignment): New function.
30758         (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
30759         (TARGET_VECTOR_MODE_SUPPORTED_P)
30760         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
30761         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
30762         (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
30763         (TARGET_VECTOR_ALIGNMENT): Define target macro.
30764         * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
30765         (FIRST_PSEUDO_REGISTER): Increase value.
30766         (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
30767         (VECTOR_REG_P): Define macros.
30768         (FIXED_REGISTERS, CALL_USED_REGISTERS)
30769         (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
30770         (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
30771         (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
30772         Add vector registers.
30773         (CANNOT_CHANGE_MODE_CLASS): Call C function.
30774         (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
30775         (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
30776         memory.
30777         (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
30778         (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
30779         * config/s390/s390.md (UNSPEC_VEC_*): New constants.
30780         (VR*_REGNUM): New constants.
30781         (ALL): New mode iterator.
30782         (INTALL): Remove mode iterator.
30783         Include vector.md.
30784         (movti): Implement TImode moves for VRs.
30785         Disable TImode splitter for VR targets.
30786         Implement splitting TImode GPR<->VR moves.
30787         (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
30788         (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
30789         reload<mode>_la_in, reload<mode>_la_out.
30790         (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
30791         (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
30792         (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
30793         (mov<mode> SF SD): Prefer lder, lde for loading.
30794         Add lrl and strl instructions.
30795         Add vector instructions.
30796         (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
30797         Call s390_expand_vec_strlen on z13.
30798         (*cc_to_int): Change predicate to nonimmediate_operand.
30799         (addti3): Rename to *addti3.  New expander.
30800         (subti3): Rename to *subti3.  New expander.
30801         * config/s390/vector.md: New file.
30803 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
30805         * common/config/s390/s390-common.c (processor_flags_table): Add
30806         z13.
30807         * config.gcc: Add z13.
30808         * config/s390/s390-opts.h (enum processor_type): Add
30809         PROCESSOR_2964_Z13.
30810         * config/s390/s390.c (s390_adjust_priority): Check for
30811         PROCESSOR_2964_Z13.
30812         (s390_reorg): Likewise.
30813         (s390_sched_reorder): Likewise.
30814         (s390_sched_variable_issue): Likewise.
30815         (s390_loop_unroll_adjust): Likewise.
30816         (s390_option_override): Likewise. Default to -mvx when available.
30817         * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
30818         (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
30819         (TARGET_VX_ABI): Define macros.
30820         macros.
30821         (TARGET_DEFAULT): Add MASK_OPT_VX.
30822         * config/s390/s390.md ("cpu" attribute): Add z13.
30823         ("cpu_facility" attribute): Add vec.
30824         * config/s390/s390.opt (processor_type): Add z13.
30825         (mvx): New options.
30826         * doc/invoke.texi: Add z13 option for -march.
30828 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
30830         * config/s390/predicates.md (shift_count_or_setmem_operand): Add
30831         mode check to make sure that only scalar integer values are
30832         accepted.
30834 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
30836         * tree.c (verify_type_variant): Fix #undef.
30837         (gimple_canonical_types_compatible_p): Move here from lto.c
30838         (verify_type): Verify TYPE_CANONICAL compatibility.
30839         * tree.h (gimple_canonical_types_compatible_p): Declare.
30841 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
30843         PR middle-end/66199
30844         * tree.h (OMP_TEAMS_COMBINED): Define.
30845         * gimplify.c (enum gimplify_omp_var_data): Add
30846         GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
30847         (enum omp_region_type): Add ORT_COMBINED_TEAMS.
30848         (omp_notice_variable): Accept both ORT_TEAMS
30849         and ORT_COMBINED_TEAMS.  Don't recurse if
30850         GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
30851         GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
30852         GOVD_FIRSTPRIVATE.
30853         (omp_no_lastprivate): New function.
30854         (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
30855         and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
30856         notice_outer and set appropriate bits, otherwise make
30857         sure default(none) combined constructs won't complain.
30858         (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
30859         outer special casing, for OMP_CLAUSE_LASTPRIVATE if
30860         omp_no_lastprivate either remove the clause or turn it
30861         into OMP_CLAUSE_PRIVATE.
30862         (gimplify_omp_for): Fix up handling of implicit
30863         lastprivate or linear iterators.
30864         (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
30865         ORT_COMBINED_TEAMS.
30866         * omp-low.c (lower_omp_for_lastprivate): For combined
30867         for simd use fd.loop.n2 from the for rather than simd.
30869 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
30871         * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
30872         instead of gen_rtx_raw_REG.
30873         (cris_expand_epilogue): Likewise.
30874         * config/microblaze/microblaze.c (microblaze_classify_address):
30875         Likewise.
30876         * config/sparc/sparc.md: Likewise.
30878 2015-05-19  Uros Bizjak  <ubizjak@gmail.com>
30880         * config/alpha/alpha.c (alpha_legitimize_reload_address)
30881         (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
30882         CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
30883         (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
30884         Use CASE_CONST_SCALAR_INT.
30885         (print_operand) <case 'M'>: Use mode_width_operand to check the
30886         value of the constant.
30887         * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
30888         * config/alpha/predicates.md (input_operand): Use general_operand
30889         instead of match_code as operand check.
30890         (symbolic_operand): Use match_code with subexpression digits.
30891         * config/alpha/constraints.md (Q): Ditto.
30893 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
30895         * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
30897 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
30899         * config/s390/s390.c (s390_secondary_reload): Fix check for
30900         load/store relative.
30902 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
30904         * recog.h: Increase MAX_RECOG_ALTERNATIVES.  Change type of
30905         alternative_mask to uint64_t.
30907 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
30909         PR tree-optimization/66187
30910         * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
30911         Pass TYPE_SIGN to tree_int_cst_min_precision.  If
30912         !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
30914 2015-05-19  David Malcolm  <dmalcolm@redhat.com>
30916         * diagnostic.c (diagnostic_report_current_module): Strengthen
30917         local "new_map" from const line_map * to
30918         const line_map_ordinary *.
30919         * genmatch.c (error_cb): Likewise for local "map".
30920         (output_line_directive): Likewise for local "map".
30921         * input.c (expand_location_1): Likewise for local "map".
30922         Pass NULL rather than &map to
30923         linemap_unwind_to_first_non_reserved_loc, since the value is never
30924         read from there, and the value written back not read from here.
30925         (is_location_from_builtin_token): Strengthen local "map" from
30926         const line_map * to const line_map_ordinary *.
30927         (dump_location_info): Strengthen locals "map" from
30928         line_map *, one to const line_map_ordinary *, the other
30929         to const line_map_macro *.
30930         * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
30931         const line_map * to const line_map_macro *.
30932         (maybe_unwind_expanded_macro_loc): Add a call to
30933         linemap_check_macro when writing to the "map" field of the
30934         loc_map_pair.
30935         Introduce local const line_map_ordinary * "ord_map", using it in
30936         place of "map" in the part of the function where we know we have
30937         an ordinary map.  Strengthen local "m" from const line_map * to
30938         const line_map_ordinary *.
30940 2015-05-19  Nick Clifton  <nickc@redhat.com>
30942         PR target/66156
30943         * config/msp430/msp430.md (zero_extendhisi2): Add support for
30944         separate source and destination registers.
30946 2015-05-19  Richard Biener  <rguenther@suse.de>
30948         PR tree-optimization/66165
30949         * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
30950         for no load permutation.
30952         PR tree-optimization/66185
30953         * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
30954         when building the SLP node from scalars.
30956 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
30957             Tristan Gingold  <gingold@adacore.com>
30959         * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
30960         * builtins.c (expand_builtin_update_setjmp_buf): Make global.
30961         (expand_stack_restore): Call record_new_stack_level.
30962         (expand_stack_save): Do not call do_pending_stack_adjust.
30963         * builtins.h (expand_builtin_update_setjmp_buf): Declare.
30964         * calls.c (expand_call): Call record_new_stack_level for alloca.
30965         * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
30966         wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
30967         (update_sjlj_context): New global function.
30968         * except.h (update_sjlj_context): Declare.
30969         * explow.c (record_new_stack_level): New global function.
30970         (allocate_dynamic_stack_space): Call record_new_stack_level.
30971         * explow.h (record_new_stack_level): Declare.
30972         * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
30973         * cfgrtl.c (duplicate_insn_chain): Likewise.
30975 2015-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30977         * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
30978         (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
30979         STACK_GROWS_DOWNWARD as normal if.
30980         (expand_call): Likewise.
30982 2015-05-19  Oleg Endo  <olegendo@gcc.gnu.org>
30984         PR target/54236
30985         * config/sh/sh.md (*round_int_even): New insn_and_split and
30986         accompanying new unnamed split.
30988 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
30990         * bitmap.c (bitmap_set_range): Handle count==1 specially.
30991         (bitmap_clear_range): Likewise.
30992         * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
30993         bitmap_set_range unconditionally.
30994         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
30995         * df-scan.c (df_mark_reg): Likewise.
30996         * haifa-sched.c (setup_ref_regs): Likewise.
30997         * sched-rgn.c (update_live_1): Likewise.
30999 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
31001         * regs.h (END_HARD_REGNO): Delete.
31002         (END_REGNO): Move to...
31003         * rtl.h: ...here.
31004         * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
31005         * caller-save.c (mark_set_regs): Likewise.
31006         * combine.c (move_deaths, distribute_notes): Likewise.
31007         * cse.c (invalidate, invalidate_for_call): Likewise.
31008         * df-scan.c (df_ref_record): Likewise.
31009         * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
31010         (record_last_reg_set_info): Likewise.
31011         * reg-stack.c (convert_regs_exit): Likewise.
31012         * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
31013         * resource.c (update_live_status): Likewise.
31014         * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
31016 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
31018         * rtl.h (reg_info): Add an nregs field.
31019         (REG_NREGS): Use it.
31020         (SET_REGNO_RAW): Delete.
31021         (set_regno_raw): New function.
31022         * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
31023         (END_REGNO): Redefine in terms of REG_NREGS.
31024         * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
31025         SET_REGNO_RAW.
31026         * emit-rtl.c (set_mode_and_regno): Likewise.
31027         * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
31028         instead of SET_REGNO_RAW.
31030 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
31032         * rtl.h (PUT_MODE_RAW): New macro.
31033         (PUT_REG_NOTE_KIND): Use it.
31034         (set_mode_and_regno): Declare.
31035         (gen_raw_REG): Change regno to "unsigned int".
31036         (gen_rtx_REG): Change "unsigned" to "unsigned int".
31037         (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
31038         use set_mode_and_regno to change the mode of registers.
31039         * gengenrtl.c (gendef): Use PUT_MODE_RAW.
31040         * emit-rtl.c (set_mode_and_regno): New function.
31041         (gen_raw_REG): Change regno to unsigned int.  Use set_mode_and_regno.
31042         * caller-save.c (reg_save_code): Use set_mode_and_regno.
31043         * expr.c (init_expr_target): Likewise.
31044         * ira.c (setup_prohibited_mode_move_regs): Likewise.
31045         * postreload.c (reload_cse_simplify_operands): Likewise.
31047 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
31049         * caller-save.c (init_caller_save): Use word_mode and
31050         FIRST_PSEUDO_REGISTER when creating temporary rtxes.
31051         * expr.c (init_expr_target): Likewise.
31052         * ira.c (setup_prohibited_mode_move_regs): Likewise.
31053         * postreload.c (reload_cse_regs_1): Likewise.
31055 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
31057         * rtl.def (REG): Change format to "r".
31058         * rtl.h (rtunion): Remove rt_reg.
31059         (reg_info): New structure.
31060         (rtx_def): Add reg field to main union.
31061         (X0REGATTR): Delete.
31062         (REG_CHECK): New macro.
31063         (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
31064         * rtl.c (rtx_format): Document "r".
31065         (rtx_code_size): Handle REG specially.
31066         * gengenrtl.c (special_format): Return true for formats
31067         that include 'r'.
31068         * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
31069         Deal with REG_ATTRS after the field loop.
31070         * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
31071         * expmed.c (init_expmed): Call gen_raw_REG instead of
31072         gen_rtx_raw_REG.
31073         * expr.c (init_expr_target): Likewise.
31074         * regcprop.c (maybe_mode_change): Likewise.
31075         * varasm.c (make_decl_rtl): Likewise.
31076         * final.c (leaf_renumber_regs_insn): Return early after
31077         handling REGs.
31078         * genemit.c (gen_exp): Handle 'r' fields.
31079         * genpeep.c (match_rtx): Likewise.
31080         * gensupport.c (subst_pattern_match): Likewise.
31081         (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
31082         (alter_constraints, subst_dup): Likewise.
31083         * read-rtl.c (read_rtx_code): Likewise.
31084         * print-rtl.c (print_rtx): Likewise.
31085         * genrecog.c (find_operand, find_matching_operand): Likewise.
31086         (validate_pattern, match_pattern_2): Likewise.
31087         (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
31088         (rtx_test::regno_field): New function.
31089         (operator ==, safe_to_hoist_p, transition_parameter_type)
31090         (parameter_type_string, print_parameter_value)
31091         (print_nonbool_test, print_test): Handle new enum values.
31092         * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
31093         * lra-constraints.c (operands_match_p): Likewise.
31095 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
31097         * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
31098         Change type of new_regno to unsigned int.
31099         * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
31100         new_regno to unsigned int.
31101         (df_ref_change_reg_with_loc): Remove old_regno parameter.
31102         Change type of new_regno to unsigned int.  Use SET_REGNO_RAW.
31103         * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
31104         (SET_REGNO_RAW): Add space after ",".
31106 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
31108         * rtl.h (REG_NREGS): New macro
31109         * alias.c (record_set): Use it.
31110         * cfgcleanup.c (mark_effect): Likewise.
31111         * combine.c (likely_spilled_retval_1): Likewise.
31112         (likely_spilled_retval_p, can_change_dest_mode): Likewise.
31113         (move_deaths, distribute_notes): Likewise.
31114         * cselib.c (cselib_record_set): Likewise.
31115         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
31116         * df-scan.c (df_mark_reg): Likewise.
31117         * dse.c (look_for_hardregs): Likewise.
31118         * dwarf2out.c (reg_loc_descriptor): Likewise.
31119         (multiple_reg_loc_descriptor): Likewise.
31120         * expr.c (write_complex_part, read_complex_part): Likewise.
31121         (emit_move_complex): Likewise.
31122         * haifa-sched.c (setup_ref_regs): Likewise.
31123         * ira-lives.c (mark_hard_reg_live): Likewise.
31124         * lra.c (lra_set_insn_recog_data): Likewise.
31125         * mode-switching.c (create_pre_exit): Likewise.
31126         * postreload.c (reload_combine_recognize_const_pattern): Likewise.
31127         (reload_combine_recognize_pattern): Likewise.
31128         (reload_combine_note_use, move2add_record_mode): Likewise.
31129         (reload_cse_move2add): Likewise.
31130         * reg-stack.c (subst_stack_regs_pat): Likewise.
31131         * regcprop.c (kill_value, copy_value): Likewise.
31132         (copyprop_hardreg_forward_1): Likewise.
31133         * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
31134         (build_def_use): Likewise.
31135         * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
31136         (deps_analyze_insn): Likewise.
31137         * sched-rgn.c (check_live_1, update_live_1): Likewise.
31138         * sel-sched.c (count_occurrences_equiv): Likewise.
31139         * valtrack.c (dead_debug_insert_temp): Likewise.
31141 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
31143         * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
31144         * dse.c (note_add_store): Likewise.
31145         * ira-lives.c (mark_hard_reg_dead): Likewise.
31146         * loop-invariant.c (mark_reg_store): Likewise.
31147         (mark_reg_death): Likewise.
31148         * postreload.c (reload_combine): Likewise.
31149         (reload_combine_note_store): Likewise.
31150         (reload_combine_note_use): Likewise.
31151         * recog.c (peep2_reg_dead_p): Likewise.
31153 2015-05-19  Alan Modra  <amodra@gmail.com>
31155         * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
31156         hard registers numbered greater or equal to ARG_POINTER_REGNUM.
31157         (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
31158         unused predicates.
31159         * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
31160         Use altivec_register_operand.  Make insn predicate TARGET_ALTIVEC.
31161         * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
31162         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
31164 2015-05-19  Sameera Deshpande  <Sameera.Deshpande@imgtec.com>
31166         * config/mips/mips.md (JOIN_MODE): New mode iterator.
31167         (join2_load_Store<JOIN_MODE:mode>): New pattern.
31168         (join2_loadhi): Likewise.
31169         (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
31170         load-load and store-stores.
31171         * config/mips/mips.opt (mload-store-pairs): New option.
31172         (TARGET_LOAD_STORE_PAIRS): New macro.
31173         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
31174         * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
31175         * config/mips/mips.c (mips_load_store_bonding_p): New function.
31177 2015-05-19  Mikhail Maltsev  <maltsevm@gmail.com>
31179         * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
31180         explicit swaps.
31181         * dojump.c (do_compare_rtx_and_jump): Likewise.
31182         * expmed.c (emit_store_flag_1): Likewise.
31183         * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
31184         * final.c (sprint_ul): Use std::reverse for reversing a string.
31185         * fold-const.c (extract_muldiv_1): Use std::swap.
31186         * genmodes.c (emit_mode_int_n): Likewise.
31187         * ifcvt.c (dead_or_predicable): Likewise.
31188         * ira-build.c (ira_merge_live_ranges): Likewise.
31189         (swap_allocno_copy_ends_if_necessary): Likewise.
31190         * ira.c (ira_setup_alts): Likewise.
31191         * loop-iv.c (iv_analyze_expr): Likewise.
31192         (implies_p): Likewise.
31193         (canon_condition): Likewise.
31194         * lra-constraints.c (swap_operands): Likewise.
31195         * lra-lives.c (lra_merge_live_ranges): Likewise.
31196         * omega.c (swap): Remove.
31197         (bswap): Remove.
31198         (omega_unprotect_1): Use std::swap.
31199         (omega_solve_geq): Likewise.
31200         * optabs.c (expand_binop_directly): Likewise.
31201         (expand_binop): Likewise.
31202         (emit_conditional_move): Likewise.
31203         (emit_conditional_add): Likewise.
31204         * postreload.c (reload_cse_simplify_operands): Likewise.
31205         * reg-stack.c (emit_swap_insn): Likewise.
31206         (swap_to_top): Likewise.
31207         (compare_for_stack_reg): Likewise.
31208         (subst_asm_stack_regs): Likewise.
31209         * reload.c (find_reloads): Likewise.
31210         * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
31211         * sel-sched.c (invoke_reorder_hooks): Likewise.
31212         (create_block_for_bookkeeping): Likewise.
31213         * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
31214         (lambda_matrix_right_hermite): Use std::swap.
31215         * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
31216         * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
31217         * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
31218         * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
31219         * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
31220         * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
31221         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
31222         * tree-vrp.c (compare_ranges): Likewise.
31223         * var-tracking.c (add_with_sets): Likewise.
31224         (vt_find_locations): Likewise.
31226 2015-05-18  Andreas Tobler  <andreast@gcc.gnu.org>
31228         * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
31229         pie executables.
31230         (FBSD_ENDFILE_SPEC): Likewise.
31231         * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
31232         config/freebsd-spec.h.
31233         (ENDFILE_SPEC): Likewise.
31235 2015-05-18  Uros Bizjak  <ubizjak@gmail.com>
31236             Richard Henderson  <rth@redhat.com>
31238         PR target/57032
31239         * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
31240         Check for a memory location that is not a reference (using an AND)
31241         to an unaligned location here.
31242         * config/alpha/predicates.md (normal_memory_operand): Remove.
31244 2015-05-18  Alex Velenko  <Alex.Velenko@arm.com>
31246         * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
31247         (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
31249 2015-05-18  Robert Suchanek  <robert.suchanek@imgtec.com>
31251         * config/mips/mips.c (micromips_globals): New variable.
31252         (mips_set_compression_mode): Save and reinitialize target-dependent
31253         state for microMIPS.
31255 2015-05-18  Martin Liska  <mliska@suse.cz>
31257         * dbgcnt.def: Add new counter.
31258         * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
31260 2015-05-18  Martin Liska  <mliska@suse.cz>
31262         * dbgcnt.def: Sort counters.
31263         * opts.c (common_handle_option): Do not compile if
31264         -fdbg-cnt-list is enabled.
31266 2015-05-18  Tom de Vries  <tom@codesourcery.com>
31268         * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
31269         (gimplify_va_arg_expr): Remove do_deref handling.  Remove adding of
31270         address operator to va_list operand.
31271         * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
31272         unconditionally.
31273         * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
31274         operand.
31275         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
31276         * config/s390/s390.c (s390_gimplify_va_arg): Same.
31277         * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
31279 2015-05-18  Tom de Vries  <tom@codesourcery.com>
31281         * tree-ssa-tail-merge.c: Fix whitespace.
31283 2015-05-17  Jim Wilson  <jim.wilson@linaro.org>
31285         * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
31286         cortex-a17, and cortex-a17.cortex-a7.
31288 2015-05-17  Oleg Endo  <olegendo@gcc.gnu.org>
31290         PR target/54236
31291         * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
31293 2015-05-17  Uros Bizjak  <ubizjak@gmail.com>
31295         PR target/66174
31296         * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
31297         QImode inner modes for TARGET_AVX512BW.  Force mask operand
31298         to a register for AVX512F modes.
31300 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
31302         * toplev.c (emit_debug_global_declarations): Do not output debug info
31303         when doing slim LTO objects.
31305 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
31307         * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
31308         odr_types_equivalent_p): Declare.
31309         (odr_type_p): Use gcc_checking_assert.
31310         (type_in_anonymous_namespace_p) Declare.
31311         (type_with_linkage_p): Declare.
31312         * common.opt (Wlto-type-mismatch): New warning.
31313         * ipa-devirt.c (compound_type_base): New function.
31314         (odr_or_derived_type_p): New function.
31315         (odr_types_equivalent_p): New function.
31316         (add_type_duplicate): Simplify.
31317         (type_with_linkage_p): Add hack to prevent false positives on C types
31318         (type_in_anonymous_namespace_p): Likewise.
31319         * tree.c (need_assembler_name_p): Use type_with_linkage.
31320         * tree.h (type_in_anonymous_namespace_p): Remove.
31321         * doc/invoke.texi (-Wlto-type-mismatch): Document
31323 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
31325         * tree.c (verify_type_variant): Verify tree_base and type_common flags.
31326         (verify_type): Verify STRING_FLAG.
31328 2015-05-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
31330         PR fortran/44054
31331         * tree-pretty-print.c (percent_K_format): Replace locus pointer
31332         with accessor function.
31333         * tree-diagnostic.c (diagnostic_report_current_function): Use
31334         diagnostic_location function.
31335         (maybe_unwind_expanded_macro_loc): Likewise.
31336         (virt_loc_aware_diagnostic_finalizer): Likewise.
31337         (default_tree_printer): Replace locus pointer with accessor function.
31338         * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
31339         (diagnostic_set_info_translated): Initialize second location.
31340         (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
31341         (diagnostic_show_locus): Handle two locations. Call
31342         diagnostic_print_caret_line.
31343         (diagnostic_print_caret_line): New.
31344         (default_diagnostic_starter): Use diagnostic_location function.
31345         (diagnostic_report_diagnostic): Use diagnostic_location function.
31346         (verbatim): Do not set text.locus.
31347         * diagnostic.h (struct diagnostic_info): Remove location field.
31348         (struct diagnostic_context): Make caret_chars an array of two.
31349         (diagnostic_location): New inline.
31350         (diagnostic_expand_location): Handle two locations.
31351         (diagnostic_same_line): New inline.
31352         (diagnostic_print_caret_line): Declare.
31353         (CARET_LINE_MARGIN): New constant.
31354         * pretty-print.c (pp_printf): Do not set text.locus.
31355         (pp_verbatim): Do not set text.locus.
31356         * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
31357         (struct text_info): Replace locus pointer with locations
31358         array. Add accessor functions.
31360 2015-05-16  Kugan Vivekanandarajah  <kuganv@linaro.org>
31361             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
31363         PR target/65768
31364         * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
31365         * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
31366          large constants in register instead of splitting them.
31368 2015-05-16  Uros Bizjak  <ubizjak@gmail.com>
31370         PR target/66140
31371         * config/alpha/alpha.c (get_aligned_mem): Also look for reload
31372         replacements in memory addresses.
31373         (get_unaligned_address): Ditto.
31375 2015-05-16  James Bowman  <james.bowman@ftdichip.com>
31377         * config/ft32/*: New files for FT32 port.
31378         * doc/install.texi: Add FT32 information.
31379         * doc/invoke.texi: Add FT32 information.
31380         * doc/md.texi: Add FT32 information.
31381         * doc/contrib.texi: Self added.
31383 2015-05-15  Marc Glisse  <marc.glisse@inria.fr>
31385         PR tree-optimization/64454
31386         * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
31387         (-1 - A -> ~A): Remove unnecessary condition.
31389 2015-05-15  Gregor Richards  <gregor.richards@uwaterloo.ca>
31391         * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
31392         * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
31393         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
31395 2015-05-15  Ilya Enkovich  <ilya.enkovich@intel.com>
31397         * ipa-chkp.h (chkp_wrap_function): New.
31398         * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
31399         (chkp_wrap_function_name): New.
31400         (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
31401         to get wrapper name.
31402         * lto-cgraph.c: Include ipa-chkp.h.
31403         (input_cgraph_1): Avoid alias chain for wrappers.
31405 2015-05-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
31407         PR middle-end/66134
31408         * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
31409         (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
31411 2015-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31413         * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
31414         (AARCH64_FL_SLOWMUL): Delete.
31415         (AARCH64_FL_CRC): Redefine to 1<<3.
31416         (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
31418 2015-05-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
31420         * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
31421         casting.
31423 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
31425         * config/alpha/alpha.md (extendqidi2): Use general_operand
31426         instead of some_operand for operand[1] predicate.
31427         (extendhidi2): Ditto.
31428         (cbranchdi4): Use general_operand instead of some_operand
31429         for operand[1] and operands[2] predicates.
31430         (cstoredi4): Ditto.
31431         * config/alpha/predicates.md (some_operand): Remove unused predicate.
31432         (some_ni_operand): Ditto.
31434 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
31436         * config/alpha/alpha.c (alpha_extract_integer): Do not handle
31437         CONST_WIDE_INT and CONST_DOUBLE.  Assert CONST_INT_P (x).
31438         (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
31439         low part of the constant using alpha_emit_set_const_1.
31440         (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
31442 2015-05-14  Rohit Arul Raj  <rohitrulraj@freescale.com>
31444         * varasm.c (output_constant_pool_1): Pass down alignment from
31445         constant pool entry's descriptor to output_constant_pool_2.
31446         (output_object_block): Add comment prior to call to
31447         output_constant_pool_1.
31449 2015-05-14  Vladimir Makarov  <vmakarov@redhat.com>
31451         PR rtl-optimization/65862
31452         * target.def (ira_change_pseudo_allocno_class): New hook.
31453         * targhooks.c (default_ira_change_pseudo_allocno_class): Default
31454         value of the hook.
31455         * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
31456         * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
31457         hook.
31458         * ira-costs.c (find_costs_and_classes): Call the hook and change
31459         classes when it is necessary.
31460         * doc/tm.texi: Update.
31462 2015-05-14  Alexander Monakov  <amonakov@ispras.ru>
31464         * config/i386/i386.md (sibcall_memory): Check that register with
31465         callee address is not also used as one of the arguments, instead
31466         of checking that it is not live after the sibcall.
31467         (sibcall_pop_memory): Ditto.
31468         (sibcall_value_memory): Ditto.
31469         (sibcall_value_pop_memory): Ditto.
31471 2015-05-14  Marc Glisse  <marc.glisse@inria.fr>
31473         * generic-match-head.c (types_match): Handle non-types.
31474         * gimple-match-head.c (types_match): Likewise.
31475         * match.pd: Remove unnecessary TREE_TYPE for types_match.
31477 2015-05-14  Wilco Dijkstra  <wdijkstr@arm.com>
31479         * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
31480         (csneg3<mode>_insn): Enable expansion of pattern.
31482 2015-05-14  Nick Clifton  <nickc@redhat.com>
31484         * config/rl78/rl78.c (rl78_select_section): Select the correct
31485         default section based upon the category of the decl.
31487 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
31489         PR rtl-optimization/30967
31490         * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
31491         destination mode for the cost of scc patterns.
31493 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
31495         * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
31496         using SWIM248 mode iterator.
31497         (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
31498         (*mulvhi4): mark operand[1] as commutative.  Use nonimmediate_operand
31499         for operand[2] constraint.
31500         (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
31502 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
31504         PR middle-end/66133
31505         * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
31506         make sure it is never noreturn, even when the task body does not
31507         return.
31508         (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
31509         right before GIMPLE_OMP_RETURN.
31510         (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
31511         for GIMPLE_OMP_TASK.  For GIMPLE_OMP_RETURN corresponding to
31512         GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
31514 2015-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31516         * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
31517         * tree-ssa-math-opts.c: Include params.h
31518         (pow_synth_sqrt_info): New struct.
31519         (representable_as_half_series_p): New function.
31520         (get_fn_chain): Likewise.
31521         (print_nested_fn): Likewise.
31522         (dump_fractional_sqrt_sequence): Likewise.
31523         (dump_integer_part): Likewise.
31524         (expand_pow_as_sqrts): Likewise.
31525         (gimple_expand_builtin_pow): Use above to attempt to expand
31526         pow as series of square roots.  Removed now unused variables.
31528 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
31530         * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
31531         (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
31532         Remove *p0 and *p1 arguments.  Rewrite function.
31533         (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
31534         (alpha_split_const_mov): Update calls to alpha_extract_integer and
31535         alpha_emit_set_long_const.
31536         (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
31537         (alpha_output_mi_thunk_osf): Ditto.
31538         * config/alpha/alpha.md (movti): Do not check operands[1]
31539         for CONST_DOUBLE.
31541 2015-05-13  Richard Biener  <rguenther@suse.de>
31543         PR tree-optimization/66129
31544         * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
31545         commutative.
31546         (vect_schedule_slp_instance): Fix typo.
31548 2015-05-13  David Malcolm  <dmalcolm@redhat.com>
31550         * common.opt (fdump-internal-locations): New option.
31551         * input.c: Include diagnostic-core.h.
31552         (get_end_location): New function.
31553         (write_digit): New function.
31554         (write_digit_row): New function.
31555         (dump_location_range): New function.
31556         (dump_labelled_location_range): New function.
31557         (dump_location_info): New function.
31558         * input.h (dump_location_info): New prototype.
31559         * toplev.c (compile_file): Handle flag_dump_locations.
31561 2015-05-13  Eric Botcazou  <ebotcazou@adacore.com>
31563         * gimple-expr.h (is_gimple_constant): Reorder.
31564         * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
31566 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
31568         * combine.c (simplify_set): When generating a CC set, if the
31569         source already is in the correct mode, do not wrap it in a
31570         compare.  Simplify the rest of that code.
31572 2015-05-13  Richard Biener  <rguenther@suse.de>
31574         PR tree-optimization/66123
31575         * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
31576         a taken edge.
31578 2015-05-13  Richard Biener  <rguenther@suse.de>
31580         PR middle-end/66110
31581         * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
31582         specially.
31583         * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
31585 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
31587         * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
31588         * aclocal.m4: Regenerated with automake-1.11.6.
31590 2015-05-13  Tom de Vries  <tom@codesourcery.com>
31592         PR tree-optimization/66010
31593         * gimplify.h (gimplify_va_arg_internal): Remove declaration.
31594         * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
31595         * tree-stdarg.c (expand_ifn_va_arg_1): ... here.  Choose between lval
31596         and rval based on do_deref.
31598 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
31600         PR target/65103
31601         * config/i386/i386.c (ix86_rtx_costs): We want to propagate
31602         link time constants into adress expressions and therefore set
31603         their cost to 0.
31605 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
31607         PR target/66112
31608         * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
31609         Use SWI248 iterator instead of SWI.
31610         (*mulv<mode>4_1): Use SWI48 instead of SWI.  Simplify output template.
31611         Use eq_attr "alternative" "0" instead of match_test in
31612         length_immediate attribute computation.
31613         (*mulvhi4, *mulvhi4_1): New define_insns.
31615         PR target/66112
31616         * internal-fn.c (get_min_precision): Use UNSIGNED instead of
31617         SIGNED to get precision of non-negative value.
31619 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
31621         PR target/66048
31622         * function.c (diddle_return_value_1): Process bounds first.
31623         * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
31624         register.
31626 2015-05-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
31628         PR rtl-optimization/64616
31629         * loop-invariant.c (can_move_invariant_reg): New.
31630         (move_invariant_reg): Call above new function to decide whether
31631         instruction can just be moved, skipping creation of temporary
31632         register.
31634 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
31636         PR target/pr66047.c
31637         * i386.c (ix86_function_sseregparm): Only return -1 if local function
31638         with implied regparm is called from -mno-sse function.
31639         (init_cumulative_args): Output error if ix86_function_sseregparm
31640         return -1 and SSE register would be needed.
31641         (function_arg_advance_32): Likewise.
31642         (function_arg_32): Likewise.
31643         * i386.h (ix86_args): Add decl field.
31645 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
31647         PR ipa/65873
31648         * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
31649         inlines across optimization boundary.
31651 2015-05-12  Jason Merrill  <jason@redhat.com>
31653         * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
31654         string literal and macro name.
31656 2015-05-12  Steve Ellcey  <sellcey@imgtec.com>
31658         * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
31659         * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
31660         * config/mips/predicates.md (const_immlsa_operand): Remove log call.
31662 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
31664         * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
31665         (-Wmisleading-indentation): New option.
31666         * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
31668 2015-05-12  Uros Bizjak  <ubizjak@gmail.com>
31670         * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
31671         * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
31672         (alpha_extract_integer): Ditto.
31673         (alpha_legitimate_constant_p): Ditto.
31674         (alpha_split_tmode_pair): Ditto.
31675         (alpha_preferred_reload_class): Add CONST_WIDE_INT.
31676         (alpha_expand_mov): Ditto.
31677         (print_operand): Remove handling of 'H' modifier.
31678         <case 'm'>: Remove CONST_DOUBLE handling.
31679         (summarize_insn): Handle CONST_WIDE_INT.
31680         * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
31681         (anddi3): Ditto.
31682         (movti): Handle CONST_WIDE_INT.
31683         * config/alpha/constraints.md ('H'): Remove constraint definition.
31684         ('G'): Do not match MODE_FLOAT class.
31685         * config/alpha/predicates.md (const0_operand): Also match
31686         const_wide_int.
31687         (non_add_const_operand): Ditto.
31688         (non_zero_const_operand): Ditto.
31689         (some_operand): Ditto.
31690         (input_operand): Ditto.  Handle CONST_WIDE_INT.
31691         (and_operand): Do not match const_double.
31692         * config/alpha/sync.md (fetchop_constr): Remove H constraint.
31694 2015-05-12  Andrew MacLeod  <amacleod@redhat.com>
31696         PR target/65697
31697         * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
31698         (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
31699         * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
31700         is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
31701         is_mm_seq_cst, is_mm_sync): New accessor functions.
31702         * builtins.c (expand_builtin_sync_operation,
31703         expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
31704         (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
31705         (get_memmodel,  expand_builtin_atomic_compare_exchange,
31706         expand_builtin_atomic_load, expand_builtin_atomic_store,
31707         expand_builtin_atomic_clear): Use new accessor routines.
31708         (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
31709         * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
31710         (maybe_emit_sync_lock_test_and_set): Use new accessors and
31711         MEMMODEL_SYNC_ACQUIRE.
31712         (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
31713         (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
31714         expand_atomic_store): Use new accessors.
31715         * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
31716         * tsan.c (instrument_builtin_call): Update check for memory model beyond
31717         final enum to use MEMMODEL_LAST.
31718         * c-family/c-common.c: Use new accessor for memmodel_base.
31719         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
31720         accessors.
31721         * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
31722         arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
31723         mem_thread_fence, *dmb): Likewise.
31724         * config/alpha/alpha.c (alpha_split_compare_and_swap,
31725         alpha_split_compare_and_swap_12): Likewise.
31726         * config/arm/arm.c (arm_expand_compare_and_swap,
31727         arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
31728         * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
31729         atomic_loaddi): Likewise.
31730         * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
31731         Likewise.
31732         * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
31733         * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
31734         use new accessors.
31735         * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
31736         atomic_store<mode>, atomic_compare_and_swap<mode>,
31737         atomic_exchange<mode>): Use new accessors.
31738         * config/mips/mips.c (mips_process_sync_loop): Likewise.
31739         * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
31740         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
31741         rs6000_post_atomic_barrier): Add new cases.
31742         (rs6000_expand_atomic_compare_and_swap): Use new accessors.
31743         * config/rs6000/sync.md (mem_thread_fence): Add new cases.
31744         (atomic_load<mode>): Add new cases and use new accessors.
31745         (store_quadpti): Add new cases.
31746         * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
31747         accessors.
31748         * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
31749         * doc/extend.texi: Update docs to indicate 16 bits are used for memory
31750         model, not 8.
31752 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
31754         * ipa-devirt.c (type_with_linkage_p): New function.
31755         (type_in_anonymous_namespace_p): Move here from tree.c; assert that
31756         type has linkage.
31757         (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
31758         (can_be_name_hashed_p): Simplify.
31759         (hash_odr_name): Check that type has linkage before checking if it is
31760         anonymous.
31761         (types_same_for_odr): Likewise.
31762         (odr_name_hasher::equal): Likewise.
31763         (odr_subtypes_equivalent_p): Likewise.
31764         (warn_types_mismatch): Likewise.
31765         (get_odr_type): Likewise.
31766         (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
31767         * ipa-utils.h (odr_type_p): Move offline.
31768         * tree.c (need_assembler_name_p): Fix handling of types
31769         without linkages.
31770         (type_in_anonymous_namespace_p): Move to ipa-devirt.c
31772 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
31774         * timevar.c (timevar_enable): Delete in favor of...
31775         (g_timer): New global.
31776         (struct timevar_def): Move to timevar.h inside class timer.
31777         (struct timevar_stack_def): Likewise.
31778         (timevars): Delete global in favor of field "m_timevars" within
31779         class timer in timevar.h
31780         (stack): Likewise, in favor of field "m_stack".
31781         (unused_stack_instances): Likewise, in favor of field
31782         "m_unused_stack_instances".
31783         (start_time): Likewise, in favor of field "m_start_time".
31784         (get_time): Eliminate check for timevar_enable.
31785         (timer::timer): New function, built from part of timevar_init.
31786         (timevar_init): Rewrite idempotency test from using
31787         "timevar_enable" bool to using dynamic allocation of "g_timer".
31788         Move rest of implementation into timer's constructor.
31789         (timevar_push_1): Rename to...
31790         (timer::push): ...this, adding "m_" prefixes to variables that
31791         are now fields of timer.
31792         (timevar_pop_1): Likewise, rename to...
31793         (timer::pop): ...this, and add "m_" prefixes.
31794         (timevar_start): Replace test for "timevar_enable" with one for
31795         "g_timer", and move bulk of implementation to...
31796         (timer::start): ...here, adding "m_" prefixes.
31797         (timevar_stop): Likewise, from here...
31798         (timer::stop): ...to here.
31799         (timevar_cond_start): Likewise, from here...
31800         (timer::cond_start): ...to here.
31801         (timevar_cond_stop): Likewise, from here...
31802         (timer::cond_stop): ...to here.
31803         (validate_phases): Rename to...
31804         (timer::validate_phases): ...this, and add "m_" prefixes.  Make
31805         locals "total" and "tv" const.
31806         (timevar_print): Rename to...
31807         (timer::print): ...this, and add "m_" prefixes.  Make locals
31808         "total" and "tv" const.  Eliminate test for timevar_enable.
31809         * timevar.h (timevar_enable): Eliminate.
31810         (g_timer): New declaration.
31811         (timevar_push_1): Eliminate.
31812         (timevar_pop_1): Eliminate.
31813         (timevar_print): Eliminate.
31814         (class timer): New class.
31815         (timevar_push): Rewrite to use g_timer.
31816         (timevar_pop): Likewise.
31817         * toplev.c (toplev::~toplev): Likewise.
31819 2015-05-12  Richard Earnshaw  <rearnsha@arm.com>
31821         * arm-protos.h (arm_sched_autopref): Delete.
31822         (tune_params): Re-organize, use enums for flag values.
31823         (FUSE_OPS): New macro.
31824         * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
31825         (ARM_PREFETCH_BENEFICIAL): Likewise.
31826         (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
31827         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
31828         (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
31829         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
31830         (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
31831         (arm_cortex_a57_tune,  arm_xgene1_tune, arm_cortex_a5_tune)
31832         (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
31833         (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
31834         format.
31835         (arm_option_override, thumb2_reorg, arm_print_tune_info)
31836         (aarch_macro_fusion_pair_p): Update uses of current_tune.
31837         * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
31839 2015-05-12  Sandra Loosemore  <sandra@codesourcery.com>
31841         * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
31842         "break".
31844 2015-05-12  Chung-Lin Tang  <cltang@codesourcery.com>
31845             Sandra Loosemore <sandra@codesourcery.com>
31847         * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
31848         value.
31849         (REG_CLASS_NAMES): Add "IJMP_REGS".
31850         (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
31851         * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
31852         use new "c" register constraint.
31853         * config/nios2/constraint.md (c): New register constraint
31854         corresponding to IJMP_REGS.
31856 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
31858         * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
31859         *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
31860         define_splits): Delete, revamp, transmogrify into ...
31861         (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
31862         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
31863         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
31864         New.
31866 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
31868         * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
31869         gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
31871 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
31873         * config/rs6000/rs6000.md (extzv): FAIL for SImode.
31874         (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
31875         *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
31876         *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
31877         *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
31878         *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
31879         *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
31880         *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
31881         *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
31882         *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
31883         *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
31884         *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
31885         *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
31886         *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
31887         *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
31888         *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
31889         and 30 corresponding splitters): Delete.
31891 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
31893         * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
31894         zero_extract.
31896 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
31898         * combine.c (recog_for_combine_1): New function, factored out
31899         from recog_for_combine.
31900         (change_zero_ext): New function.
31901         (recog_for_combine): If recog fails, try again with the pattern
31902         modified by change_zero_ext; if that still fails, restore the
31903         pattern.
31905 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
31907         * combine.c (get_undo_marker): New function.
31908         (undo_to_marker): New function, largely factored out from ...
31909         (undo_all): ... this.  Adjust.
31911 2015-05-12  Richard Biener  <rguenther@suse.de>
31913         PR tree-optimization/66101
31914         * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
31915         fixup if we turn a loop exit edge to a fallthru edge.
31917 2015-05-12  Richard Biener  <rguenther@suse.de>
31919         PR tree-optimization/37021
31920         * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
31921         (SLP_TREE_TWO_OPERATORS): New define.
31922         * tree-vect-slp.c (vect_create_new_slp_node): Initialize
31923         SLP_TREE_TWO_OPERATORS.
31924         (vect_build_slp_tree_1): Allow two mixing plus/minus in an
31925         SLP node.
31926         (vect_build_slp_tree): Adjust.
31927         (vect_analyze_slp_cost_1): Likewise.
31928         (vect_schedule_slp_instance): Vectorize mixing plus/minus by
31929         emitting two vector stmts and mixing the results.
31931 2015-05-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
31933         * call.c (print_z_candidates): Remove dead code.
31935 2015-05-12  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
31937         * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
31938         and zEC12_simple_fp.
31939         * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
31940         to 1.
31942 2015-05-12  Tom de Vries  <tom@codesourcery.com>
31944         PR tree-optimization/66010
31945         * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
31946         ifn_va_arg.
31947         * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
31948         (gimplify_va_arg_internal): Remove loc parameter.  Assert no array-typed
31949         va_lists are passed, and remove corresponding handling.
31950         (gimplify_va_arg_expr): Only take address of ap if necessary.  Add
31951         do_deref argument to ifn_va_arg.
31952         * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
31953         ifn_va_arg.
31955 2015-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31957         PR target/65955
31958         * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
31959         REG before taking its REGNO.
31961 2015-05-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
31963         * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
31964         rsp->sign_bit_copies and rsp->nonzero_bits into ...
31965         (update_rsp_from_reg_equal): This.  Also use REG_EQUAL note on src if
31966         present to get more accurate information about the number of sign bit
31967         copies and non zero bits.
31969 2015-05-12  Richard Biener  <rguenther@suse.de>
31971         * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
31972         do not allow unrolling.
31974 2015-05-11  Richard Henderson  <rth@redhat.com>
31976         * config/i386/i386-modes.def (CCP): New.
31977         * config/i386/i386.c (put_condition_code): Handle it.
31978         (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
31980 2015-05-11  Richard Henderson  <rth@redhat.com>
31982         * target.def (md_asm_clobbers): Replace with...
31983         (md_asm_adjust): this.
31984         * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
31985         (TARGET_MD_ASM_ADJUST): New.
31986         * tm.texi: Rebuild.
31987         * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
31988         * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
31989         * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
31991         * cfgexpand.c (check_operand_nalternatives): Accept vector of
31992         constraints instead of lists of outputs and inputs.
31993         (expand_asm_stmt): Save and restore input_location around the
31994         body of the function.  Move asm data into vectors instead of
31995         building tree lists.  Generate cleanup sequences as needed,
31996         rather than waiting til the end.  Use new md_asm_adjust hook.
31998         * config/vxworks.c: Include vec.h before target.h.
31999         * gimple.c: Likewise.
32000         * incpath.c: Likewise.
32001         * mode-switching.c: Likewise.
32003         * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
32004         (cris_md_asm_adjust): this.
32005         (TARGET_MD_ASM_CLOBBERS): Remove.
32006         (TARGET_MD_ASM_ADJUST): New.
32007         * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
32008         (ix86_md_asm_adjust): this.
32009         (TARGET_MD_ASM_CLOBBERS): Remove.
32010         (TARGET_MD_ASM_ADJUST): New.
32011         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
32012         (mn10300_md_asm_adjust): this.
32013         (TARGET_MD_ASM_CLOBBERS): Remove.
32014         (TARGET_MD_ASM_ADJUST): New.
32015         * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
32016         (rs6000_md_asm_adjust): this.
32017         (TARGET_MD_ASM_CLOBBERS): Remove.
32018         (TARGET_MD_ASM_ADJUST): New.
32019         * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
32020         (visium_md_asm_adjust): this.
32021         (TARGET_MD_ASM_CLOBBERS): Remove.
32022         (TARGET_MD_ASM_ADJUST): New.
32024 2015-05-11  Richard Henderson  <rth@redhat.com>
32026         * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
32027         if noutputs is zero.
32028         * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
32030         * cfgexpand.c (expand_asm_operands): Merge into...
32031         (expand_asm_stmt): ... here.
32033         * cfgexpand.c (expand_asm_operands): Don't call
32034         resolve_asm_operand_names.
32035         * stmt.c (resolve_asm_operand_names): Clarify block comment.
32037 2015-05-11  Jan Hubicka  <hubicka@ucw.cz>
32039         * dwarf2out.c (gen_member_die): Sanity check that we access
32040         TYPE_MAIN_VARIANT for TYPE_METHODS.
32041         * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
32042         checking TYPE_METHODS.
32043         * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
32044         if non-null.
32045         (build_distinct_type_copy): Clear TYPE_METHODS.
32046         (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
32047         (verify_type): Allow TYPE_METHODS to be error_mark_node.
32048         * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
32050 2015-05-11  Eric Botcazou  <ebotcazou@adacore.com>
32052         * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
32053         (emit_pattern_before_setloc): Likewise.
32055 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
32057         * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
32058         for define_peephole2s.
32059         (get_peephole2_pattern): New function.
32060         (main): Use it.  Call validate_pattern.
32062 2015-05-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
32064         * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
32065         LAST_CALLEE_SAVED_REG instead of hard-coded register number.
32066         (Last callee saved reg is different for AVR_TINY architecture)
32068 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
32070         * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
32071         when looking for memory references.
32073 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
32075         PR target/65753
32076         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
32077         via function pointers.
32079 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
32081         * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
32082         indirect call by forcing address into a pseudo with -fno-plt.
32083         * common.opt (flag_plt): New option.
32084         * doc/invoke.texi (Code Generation Options): Add -fno-plt.
32085         ([-fno-plt]): Document.
32087 2015-05-11  Markus Trippelsdorf  <markus@trippelsdorf.de>
32089         PR bootstrap/66105
32090         * config/rs6000/option-defaults.h: Add space between string literal
32091         and macro name.
32093 2015-05-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
32095         * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
32096         accross ARM targets.
32098 2015-05-11  Christian Bruel  <christian.bruel@st.com>
32100         * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
32101         * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
32103 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
32105         PR rtl-optimization/66076
32106         * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
32107         Don't grow the heap array if it is already big enough from a
32108         previous iteration.
32110 2015-05-11  Christian Bruel  <christian.bruel@st.com>
32112         * config/arm/arm-protos.h (arm_declare_function_name): Declare.
32113         (is_called_in_ARM_mode): Remove.
32114         * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
32115         (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
32116         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
32117          arm_declare_function_name.
32119 2015-05-11  Christian Bruel  <christian.bruel@st.com>
32121         * config/arm/arm.c (arm_option_override): Reoganized and split into :
32122         (arm_option_params_internal); New function.
32123         (arm_option_check_internal): New function.
32124         (arm_option_override_internal): New function.
32125         (thumb_code, thumb1_code): Remove.
32126         * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
32127         (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
32128         (thumb_code, thumb1_code): Remove.
32129         * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
32131 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
32133         * config/alpha/alpha.c (alpha_emit_set_const_1)
32134         (alpha_emit_set_long_const, alpha_extract_integer)
32135         (alpha_legitimate_constant_p, alpha_split_const_mov)
32136         (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
32137         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
32138         (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
32139         HOST_WIDE_INT_1U.
32140         * config/alpha/predicates.md (mode_mask_operand): Do not match
32141         const_double RTX.
32142         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
32143         * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
32144         Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
32145         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
32146         (*negtf_internal): Use gen_int_mode instead of immed_double_const.
32148 2015-05-11  Jakub Jelinek  <jakub@redhat.com>
32150         PR target/65780
32151         * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
32152         default_binds_local_p_2.
32153         * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
32154         * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
32156 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
32158         * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
32160 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
32162         Patch by Richard Biener
32163         * coverage.c (coverage_obj_init): Delay building of type variant
32164         until the type is finished.
32166 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
32168         * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
32169         mismatch between C and C++ type; compoare correctly ARG_TYPES
32170         for non-prototypes and output correctly parameter index for METHOD_TYPE.
32171         (odr_types_equivalent_p): Fix wording of warning about attributes;
32172         it is OK to match prototype and non-prototype.
32174 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
32176         * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
32177         TYPE_ARG_TYPES list.
32178         (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
32179         * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
32181 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
32183         * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
32184         * tree.h (is_lang_specific): Constify.
32186 2015-05-09  Marc Glisse  <marc.glisse@inria.fr>
32188         PR tree-optimization/64454
32189         * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
32190         Rewrite.
32192 2015-05-08  Jason Merrill  <jason@redhat.com>
32194         * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
32195         config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
32196         config/darwin.h, config/darwin9.h, config/elfos.h,
32197         config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
32198         config/microblaze/microblaze.h, config/mips/mips.h,
32199         config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
32200         config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
32201         config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
32202         config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
32203         config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
32204         cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
32205         dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
32206         ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
32207         ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
32208         modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
32209         tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
32210         between string literal and macro name.
32212 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32214         * jump.c: Change argument types to rtx_insn *.
32215         * rtl.h: Adjust.
32217 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32219         * lra-constraints.c: Change argument type to rtx_insn *.
32221 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32223         * df-problems.c: Change argument type to rtx_insn *.
32225 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32227         * combine.c: Change argument type to rtx_insn *.
32229 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32231         * rtl.h: Adjust.
32232         * rtlanal.c: Change argument type to rtx_insn *.
32234 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32236         * sched-deps.c: Change argument types to rtx_insn *.
32237         * sched-int.h: Adjust.
32239 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32241         * dwarf2cfi.c: Change argument type to rtx_insn *.
32243 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32245         * ira.c (decrease_live_ranges_number): Changetype of local
32246         variable to rtx_insn *.
32247         * recog.c: Change argument types to rtx_insn *.
32248         * recog.h: Adjust.
32250 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32252         * reorg.c: Change argument types to rtx_insn *.
32254 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32256         * ira-color.c: Change argument types to rtx_insn *.
32257         * lra-eliminations.c: Likewise.
32258         * ira.h: Adjust.
32260 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32262         * gcse.c: Change argument types to rtx_insn *.
32264 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32266         * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
32268 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32270         * emit-rtl.c (emit_debug_insn_before): Change argument type to
32271         rtx_insn *.
32272         * rtl.h: Adjust.
32274 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32276         * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
32277         * rtl.h: Adjust.
32279 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32281         * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
32282         * rtl.h: Adjust.
32284 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32286         * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
32287         * rtl.h: Adjust.
32289 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32291         * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
32292         * rtl.h: Adjust.
32294 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32296         * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
32297         to rtx_insn *.
32298         * rtl.h: Adjust.
32300 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32302         * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
32303         to rtx_insn *.
32304         * rtl.h: Likewise.
32306 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32308         * except.c (can_nonlocal_goto): Change type of argument to
32309         rtx_insn *.
32310         * rtl.h: Adjust.
32312 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32314         * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
32315         * rtl.h: Adjust.
32317 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32319         * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
32320         * cfgrtl.c (can_delete_label_p): Adjust.
32321         * rtl.h: likewise.
32323 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32325         * reorg.c (stop_search_p): Change argument to rtx_insn *.
32327 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32329         * except.c (make_reg_eh_region_note): Change argument to
32330         rtx_insn *.
32331         (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
32332         * except.h: Adjust.
32334 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32336         * mode-switching.c (commit_mode_sets): Change type of local
32337         variable from rtx to rtx_insn *.
32339 2015-05-08  Jim Wilson  <jim.wilson@linaro.org>
32341         * doc/install.texi (--enable-languages): Add missing jit and lto info.
32342         Add ^ to grep command.
32343         * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
32344         arg to last gimple_simplify declaration.  Add missing gimple_build
32345         declaration for built-in function case with four tree args.
32347 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
32348             Szabolcs Nagy  <szabolcs.nagy@arm.com>
32350         * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
32351         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
32352         (GNU_USER_DYNAMIC_LINKERN32): Update.
32354 2015-05-08  Richard Biener  <rguenther@suse.de>
32356         PR tree-optimization/66036
32357         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
32358         Handle strided group loads.
32359         (vect_verify_datarefs_alignment): Likewise.
32360         (vect_enhance_data_refs_alignment): Likewise.
32361         (vect_analyze_group_access): Likewise.
32362         (vect_analyze_data_ref_access): Likewise.
32363         (vect_analyze_data_ref_accesses): Likewise.
32364         * tree-vect-stmts.c (vect_model_load_cost): Likewise.
32365         (vectorizable_load): Likewise.
32367 2015-05-08  Segher Boessenkool  <segher@kernel.crashing.org>
32369         * config/rs6000/rs6000.md: Require operand inequality in one
32370         of the peepholes.
32372 2015-05-08  Richard Sandiford  <richard.sandiford@arm.com>
32373             Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
32375         * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
32376         from (set ...).
32377         * config/rx/rx.md (movdi, movdf): Likewise.
32378         Likewise for define_peephole2s.
32380 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
32382         * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
32383         vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
32384         vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
32385         vtst_u64): Rewrite using gcc vector extensions.
32387 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
32389         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
32390         vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
32392 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
32394         * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
32396 2015-05-08  Szabolcs Nagy  <szabolcs.nagy@arm.com>
32398         * config/glibc-stdint.h (OPTION_MUSL): Define.
32399         (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
32400         Change the definition based on OPTION_MUSL for 64 bit targets.
32401         * config/linux.h (OPTION_MUSL): Redefine.
32402         * config/alpha/linux.h (OPTION_MUSL): Redefine.
32403         * config/rs6000/linux.h (OPTION_MUSL): Redefine.
32404         * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
32406 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
32407             Szabolcs Nagy  <szabolcs.nagy@arm.com>
32409         * config.gcc (LIBC_MUSL): New tm_defines macro.
32410         * config/linux.h (OPTION_MUSL): Define.
32411         (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
32412         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
32413         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
32414         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
32415         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
32416         * config/linux.opt (mmusl): New option.
32417         * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
32418         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
32419         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
32420         * configure: Regenerate.
32422 2015-05-08  H.J. Lu  <hongjiu.lu@intel.com>
32423             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
32425         PR target/48904
32426         * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
32427         * config/i386/knetbsd-gnu64.h: New file.
32429 2015-05-08  Marek Polacek  <polacek@redhat.com>
32431         PR c/64918
32432         * doc/invoke.texi: Document -Woverride-init-side-effects.
32434 2015-05-07  Marek Polacek  <polacek@redhat.com>
32436         PR c/65179
32437         * doc/invoke.texi: Document -Wshift-negative-value.
32439 2015-05-06  Aditya Kumar  <hiraditya@msn.com>
32441         * gcov-tool.c (do_merge): Refactore to remove int ret.
32442         * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
32443         !type == FUNC to type != FUNC.
32444         * reload.h (struct target_reload): Changee to type of
32445         x_spill_indirect_levels from bool to unsigned char.
32447 2015-05-07  Richard Sandiford  <richard.sandiford@arm.com>
32449         * rtl.h (always_void_p): New function.
32450         * gengenrtl.c (always_void_p): Likewise.
32451         (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
32452         with code foo are always VOIDmode.
32453         * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
32454         * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
32455         compare-elim.c, config/aarch64/aarch64.c,
32456         config/aarch64/aarch64.md, config/alpha/alpha.c,
32457         config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
32458         config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
32459         config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
32460         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
32461         config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
32462         config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
32463         config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
32464         config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
32465         config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
32466         config/ia64/vect.md, config/iq2000/iq2000.c,
32467         config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
32468         config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
32469         config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
32470         config/mep/mep.c, config/microblaze/microblaze.c,
32471         config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
32472         config/mn10300/mn10300.c, config/msp430/msp430.c,
32473         config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
32474         config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
32475         config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
32476         config/rs6000/altivec.md, config/rs6000/rs6000.c,
32477         config/rs6000/rs6000.md, config/rs6000/vector.md,
32478         config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
32479         config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
32480         config/sh/sh.md, config/sh/sh_treg_combine.cc,
32481         config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
32482         config/spu/spu.md, config/stormy16/stormy16.c,
32483         config/tilegx/tilegx.c, config/tilegx/tilegx.md,
32484         config/tilepro/tilepro.c, config/tilepro/tilepro.md,
32485         config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
32486         config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
32487         expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
32488         lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
32489         reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
32490         var-tracking.c: Update calls accordingly.
32492 2015-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
32494         PR middle-end/192
32495         PR middle-end/54303
32496         * varasm.c (function_mergeable_rodata_prefix): New function.
32497         (mergeable_string_section): Use it.
32498         (mergeable_constant_section): Use it.
32500 2015-05-07  Jeff Law  <law@redhat.com>
32502         PR target/39726
32503         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
32504         simplifier to narrow arithmetic.
32505         * generic-match-head.c: (types_match, single_use): New functions.
32506         * gimple-match-head.c: (types_match, single_use): New functions.
32508 2015-05-07  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
32510         * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
32511         rtx type.
32513 2015-05-07  Richard Biener  <rguenther@suse.de>
32515         PR tree-optimization/66002
32516         * passes.def: Schedule another pass_merge_phi after ifcombine, right
32517         before phiopt.
32519 2015-05-07  Marek Polacek  <polacek@redhat.com>
32520             Martin Uecker  <uecker@eecs.berkeley.edu>
32522         * doc/invoke.texi: Document -fsanitize=bounds-strict.
32523         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
32524         into SANITIZE_NONDEFAULT.
32525         * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
32527 2015-05-07  Uros Bizjak  <ubizjak@gmail.com>
32529         PR target/66015
32530         * config/alpha/alpha.c (alpha_override_options_after_change): New.
32531         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
32532         (alpha_override_options): Move align_loops, align_jumps and
32533         align_functions handling into alpha_override_options_after_change.
32535 2015-05-06  Sandra Loosemore  <sandra@codesourcery.com>
32536             Chris Jones  <chrisj@nvidia.com>
32537             Joshua Conner  <jconner@nvidia.com>
32539         * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
32540         linking of crtfastmath.o.
32541         * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
32543 2015-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
32545         * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
32546         (cstore<mode>4_unsigned_imm): New expander.
32547         (cstore<mode>4): Remove empty constraint strings.  Use the new
32548         expanders.
32550 2015-05-06  Yvan Roux  <yvan.roux@linaro.org>
32552         PR target/64208
32553         * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
32554         alternatives.
32556 2015-05-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
32558         * config/aarch64/geniterators.sh: Use standard BRE in sed.
32560 2015-05-06  Alan Modra  <amodra@gmail.com>
32562         PR target/66033
32563         * config/rs6000/rs6000.md (nop): Use an unspec pattern.
32564         (UNSPEC_NOP): Define.
32565         (reload_vsx_from_gpr<mode>): Add missing DONE.
32566         (reload_gpr_from_vsx<mode>): Likewise.
32567         * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
32568         (vsx_div_v2di, vsx_udiv_v2di): Likewise.
32570 2015-05-06  Christian Bruel  <christian.bruel@st.com>
32572         PR target/66015
32573         * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
32574         align_jumps, align_functions into aarch64_override_options_after_change.
32576 2015-05-06  Richard Biener  <rguenther@suse.de>
32578         * tree-vect-slp.c (vect_supported_load_permutation_p): Use
32579         vect_transform_slp_perm_load to check if we support a permutation
32580         for basic-block vectorization.
32582 2015-05-06  Nick Clifton  <nickc@redhat.com>
32584         * config/rl78/rl78.c (need_to_save): Save register 22 if it is
32585         used, even if it is not being used as a frame pointer.
32587 2015-05-05  Jason Merrill  <jason@redhat.com>
32589         * dwarf2out.c (gen_member_die): Don't emit anything for an
32590         anonymous class constructor.
32592 2015-05-05  David Malcolm  <dmalcolm@redhat.com>
32594         * auto-profile.c (afdo_find_equiv_class): Fix indentation so
32595         that it reflects the block structure.
32596         (afdo_propagate_edge): Likewise.
32597         (afdo_calculate_branch_prob): Likewise.
32598         (afdo_annotate_cfg): Likewise.
32599         * cfgcleanup.c (equal_different_set_p): Likewise.
32600         (try_crossjump_to_edge): Likewise.
32601         * cgraph.c (cgraph_node::verify_node): Likewise.
32602         * cgraphunit.c (expand_all_functions): Likewise.
32603         * config/i386/i386.c (ix86_expand_copysign): Likewise.
32604         (exact_dependency_1): Likewise.
32605         * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
32606         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
32607         * gensupport.c (process_define_subst): Likewise.
32608         * lto-wrapper.c (merge_and_complain): Likewise.
32609         * tree-if-conv.c (if_convertible_bb_p): Likewise.
32610         * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
32611         * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
32612         * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
32613         * tree-vect-loop.c (vectorizable_reduction): Likewise.
32614         * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
32615         * tree-vect-stmts.c (vectorizable_shift): Likewise.
32616         * tree-vrp.c (vrp_finalize): Likewise.
32617         * tree.c (variably_modified_type_p): Likewise.
32619 2015-05-05  Jack Howarth  <howarth.at.gcc@gmail.com>
32621         * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
32622         on darwin12 and later.
32623         * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
32624         file to pass -rdynamic on darwin12 and later.
32625         * config/darwin.opt (rdynamic): Add.
32627 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
32629         * doc/extend.texi (C Extensions): Update menu for moved Variable
32630         Attributes and Type Attributes sections.
32632 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
32634         PR target/65990
32635         * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
32636         if rep_8byte stringop strategy was specified for 32-bit target.
32638 2015-05-05  Ilya Tocar  <ilya.tocar@intel.com>
32640         PR target/65915
32641         * config/i386/i386.md (vector convert to float spltiter): Check for
32642         xmm16+, when splitting scalar float conversion.
32643         * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
32645 2015-05-05  Nick Clifton  <nickc@redhat.com>
32647         * config/msp430/msp430-opts.h (enum msp430_regions): New.
32648         * config/msp430/msp430.c (msp430_override_options): Complain if
32649         -mcode-region or -mdata-region is used on a non MSP430X.
32650         (msp430_section_attr): New function.  Checks lower, upper and
32651         either attributes.
32652         (msp430_attribute_table): Add lower, upper and either.
32653         (gen_prefix): New function.  Generates a prefix for a section
32654         name.
32655         (msp430_select_section): New function - handles the choice of
32656         section for an object.  Takes into account memory region
32657         attributes and options.
32658         (msp430_function_section): Use gen_prefix.
32659         (TARGET_SECTION_TYPE_FLAGS): Define.
32660         (msp430_section_type_flags): New function.
32661         (TARGET_ASM_UNIQUE_SECTION): Define.
32662         (msp430_unique_section): New function.
32663         (msp430_output_aligned_decl_common): New function.
32664         (msp430_do_not_relax_short_jumps): New function.
32665         * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
32666         Define.
32667         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
32668         * config/msp430/msp430-protos.h
32669         (msp430_do_not_relax_short_jumps): New prototype.
32670         (msp430_output_aligned_decl_common): New prototype.
32671         * config/msp430/msp430.md (length): New attribute.
32672         (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
32673         then use a long code sequence for short jumps.
32674         * config/msp430/msp430.opt (mcode-region): New.
32675         (mdata-region): New.
32676         * doc/invoke.texi: Document new options.
32677         * doc/extend.texi: Document new attributes.
32679 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
32681         * config/aarch64-protos.h (struct cpu_branch_cost): New.
32682         (tune_params): Add field branch_costs.
32683         (aarch64_branch_cost): Declare.
32684         * config/aarch64.c (generic_branch_cost): New.
32685         (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
32686         (cortexa53_tunings): Likewise.
32687         (cortexa57_tunings): Likewise.
32688         (thunderx_tunings): Likewise.
32689         (xgene1_tunings): Likewise.
32690         (aarch64_branch_cost): Define.
32691         * config/aarch64/aarch64.h (BRANCH_COST): Redefine.
32693 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
32695         * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
32696         and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
32697         * config/i386/i386.md: Ditto.
32698         * config/i386/winnt.c: Ditto.
32700 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
32702         * doc/extend.texi (__atomic Builtins): Move implementation details
32703         to the end of the description, rewrite opening paragraphs, state
32704         difference with __sync builtins, state C11/C++11 assumptions,
32705         weaken itemized descriptions, add explanation of memory model
32706         behaviour, expand description of compare-exchange, simplify text.
32708 2015-05-05  Renlin Li  <renlin.li@arm.com>
32710         * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
32712 2015-05-05  Yvan Roux  <yvan.roux@linaro.org>
32714         * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
32715         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
32716         * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
32717         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
32718         * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
32719         * configure: Regenerate.
32720         * configure.ac: Add --enable-fix-cortex-a53-843419 option.
32721         * doc/install.texi (aarch64*-*-*): Document new
32722         --enable-fix-cortex-a53-843419 option.
32723         * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
32724         and -mno-fix-cortex-a53-843419 options.
32726 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
32728         PR target/65871
32729         * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
32731 2015-05-04  Jan Hubicka  <hubicka@ucw.cz>
32733         * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
32734         fix overactive TYPE_MIN_VALUE check and add FIXME for type
32735         compatibility problems.
32737 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
32739         * config/microblaze/microblaze.md (cbranchsi4): Added immediate
32740         constraints.
32741         (cbranchsi4_reg): New.
32742         * config/microblaze/microblaze.c
32743         (microblaze_expand_conditional_branch_reg): New.
32744         * config/microblaze/microblaze-protos.h
32745         (microblaze_expand_conditional_branch_reg): New prototype.
32747 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
32749         * config/microblaze/microblaze.md (peephole2): New.
32751 2015-05-04  Jeff Law  <law@redhat.com>
32753         Revert:
32754         2015-05-04  Jeff Law  <law@redhat.com>
32756         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
32757         simplifier to narrow arithmetic.
32758         * generic-match-head.c: (types_match, single_use): New functions.
32759         * gimple-match-head.c: (types_match, single_use): New functions.
32761 2015-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
32763         PR target/65987
32764         * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
32765         (split_branches): Likewise.
32767 2015-05-04  Sandra Loosemore  <sandra@codesourcery.com>
32769         * common.opt (fdelete-null-pointer-checks): Init to -1.
32770         * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
32771         override flag_delete_null_pointer_checks default.
32772         * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
32773         behavior re address zero.  Better document target-specific behavior.
32774         (-fisolate-errneous-paths-dereference): Mention relationship to
32775         -fdelete-null-pointer-checks.
32777 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
32779         PR tree-optimization/65984
32780         * ubsan.c: Include tree-cfg.h.
32781         (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
32782         stmt_could_throw_p test, rename can_throw variable to ends_bb.
32784 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
32786         * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
32787         to CONST_DOUBLE_P predicate.
32788         (standard_sse_constant_p): Return 0 for !TARGET_SSE.
32789         (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
32790         allow only operands that satisfy standard_sse_constant_p predicate.
32791         * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
32792         to CONST_DOUBLE_P predicate.
32794 2015-05-04  Jeff Law  <law@redhat.com>
32796         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
32797         simplifier to narrow arithmetic.
32798         * generic-match-head.c: (types_match, single_use): New functions.
32799         * gimple-match-head.c: (types_match, single_use): New functions.
32801 2015-05-04  Andreas Tobler  <andreast@gcc.gnu.org>
32803         * config/arm/arm.c: Restore bootstrap.
32805 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
32807         * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
32808         * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
32809         as CONST_WIDE_INT, not CONST_DOUBLE.
32810         (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
32811         (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
32812         (ix86_find_base_term): Do not check for CONST_DOUBLE.
32813         (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
32814         (ix86_build_signbit_mask): Rewrite using wide ints.
32815         (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
32816         (ix86_rtx_costs): Handle CONST_WIDE_INT.
32817         (find_constant): Ditto.
32818         * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
32819         using gen_int_mode.
32820         * config/i386/predicates.md (x86_64_immediate_operand)
32821         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
32822         (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
32823         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
32824         (const0_operand): Also match const_wide_int.
32825         (constm1_operand): Ditto.
32826         (const1_operand): Ditto.
32828 2015-05-04  Richard Biener  <rguenther@suse.de>
32830         PR tree-optimization/65965
32831         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
32832         store groups at gaps.
32834 2015-05-04  Richard Biener  <rguenther@suse.de>
32836         PR tree-optimization/65935
32837         * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
32838         then make sure to apply that swapping to the IL.
32840 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
32842         * Makefile.in (PATCHLEVEL_c): New variable.
32843         (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
32844         expand the same way as if DEVPHASE_c was non-empty.
32846 2015-05-04  Kai Tietz  <ktietz@redhat.com>
32848         PR target/65559
32849         * lto-wrapper.c (run_gcc): Open filename
32850         in binary-mode.
32852 2015-05-03  Sandra Loosemore  <sandra@codesourcery.com>
32854         * doc/extend.texi (Variable Attributes, Type Attributes):  Move
32855         sections up in file, to immediately after the Function Attributes
32856         section.
32858 2015-05-02  Jan Hubicka  <hubicka@ucw.cz>
32860         * tree.c (verify_type): Check various uses of TYPE_MINVAL.
32862 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32864         * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
32865         (insert_partition_copy_on_edge): Adjust.
32866         (insert_rtx_to_part_on_edge): Likewise.
32867         (insert_part_to_rtx_on_edge): Likewise.
32869 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32871         * function.c (set_return_jump_label): Change type of argument to
32872         rtx_insn *.
32873         * function.h (set_return_jump_label): Adjust.
32875 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32877         * reload.h (struct reg_equivs_t): Change type of init to
32878         rtx_insn *.
32879         * ira.c (fix_reg_equiv_init): Adjust.
32880         * reload1.c (eliminate_regs_1): Likewise.
32881         (init_eliminable_invariants): Likewise.
32883 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32885         * cselib.c (fp_setter_insn): Take a rtx_insn *.
32886         * cselib.h (fp_setter_insn): Adjust.
32888 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32890         * recog.c (struct validate_replace_src_data): Change type of
32891         insn field to rtx_insn *.
32892         (validate_replace_src_group): Change type of argument to rtx_insn *.
32893         * recog.h (validate_replace_src_group): Adjust.
32895 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32897         * haifa-sched.c: Change the type of some variables to rtx_insn *.
32898         * sched-deps.c: Likewise.
32899         * sched-int.h: Likewise.
32900         * sched-rgn.c: Likewise.
32901         * sel-sched.c: Likewise.
32903 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32905         to rtx_insn *.
32906         * config/i386/i386.c: Change the type of some arguments to
32907         rtx_insn *.
32908         * config/arm/arm.c: Likewise.
32910 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32912         * lra-constraints.c: Change type of some arguments to rtx_insn *.
32914 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32916         * regcprop.c (kill_autoinc_value): Change type of argument to
32917         rtx_insn *.
32919 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32921         * genrecog.c (print_subroutine): Adjust.
32922         * recog.c (get_bool_attr_mask_uncached): Likewise.
32923         * recog.h (struct recog_data_d): Change the type of insn to
32924         rtx_insn *.
32926 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32928         * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
32930 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32932         * df-problems.c (df_set_note): Change type of argument to
32933         rtx_insn *.
32935 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32937         * builtins.c (expand_builtin_trap): Change type of local
32938         variable to rtx_insn *.
32939         (add_sched_insns_for_speculation): Likewise.
32940         (ix86_emit_save_regs): Likewise.
32941         (get_scratch_register_on_entry): Likewise.
32942         (ix86_emit_restore_reg_using_pop): Likewise.
32943         (ix86_emit_leave): Likewise.
32944         (ix86_emit_restore_regs_using_mov): Likewise.
32945         (ix86_expand_epilogue): Likewise.
32946         Likewise.
32947         (rl78_alloc_physical_registers_umul): Likewise.
32948         * cselib.c (discard_useless_locs): Likewise.
32949         (cselib_invalidate_regno): Likewise.
32950         (cselib_invalidate_mem): Likewise.
32951         * function.c (expand_function_start): Likewise.
32952         (emit_use_return_register_into_block): Likewise.
32953         * gcse.c: Likewise.
32954         * haifa-sched.c (ok_for_early_queue_removal): Likewise.
32955         * ifcvt.c (noce_get_alt_condition): Likewise.
32956         * loop-doloop.c (doloop_condition_get): Likewise.
32957         * lra-constraints.c (inherit_in_ebb): Likewise.
32958         * modulo-sched.c (sms_schedule_by_order): Likewise.
32959         * recog.c (next_insn_tests_no_inequality): Likewise.
32960         * reorg.c (emit_delay_sequence): Likewise.
32961         (update_reg_dead_notes): Likewise.
32962         (fix_reg_dead_note): Likewise.
32963         (fill_slots_from_thread): Likewise.
32964         (delete_computation): Likewise.
32966 2015-05-01  Sandra Loosemore  <sandra@codesourcery.com>
32968         * doc/extend.texi (Variable Attributes): Add menu and proper
32969         @nodes to subsections.  Move Microsoft Windows attributes to
32970         their own subsection.
32971         (Type Attributes): Reorganize introduction to remove duplicate
32972         list of attributes.  Add menu and proper @nodes to subsections.
32973         Alphabetize the main table of common attributes.
32975 2015-05-01  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
32977         * match.pd: New simplification patterns.
32978         (x + (x & 1))  -> ((x + 1) & ~1)
32979         (x & ~(x & y)) -> ((x & ~y))
32980         (x | ~(x | y)) -> ((x | ~y))
32982 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32984         * target.def (attribute_table): Mention that struct attribute_spec
32985         is defined in tree-core.h rather than tree.h
32986         * doc/tm.texi: Regenerate.
32988 2015-05-01  Richard Sandiford  <richard.sandiford@arm.com>
32990         * genrecog.c (test): Rename to rtx_test.  Update rest of file
32991         accordingly.
32993 2015-05-01  Andreas Schwab  <schwab@linux-m68k.org>
32995         PR translation/65959
32996         * params.h (DEFPARAM): Rename msgid to nocmsgid.
32998 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
33000         * config/aarch64/aarch64-protos.h (tune_params):
33001         Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
33002         * config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
33003         Return value depending on target.
33004         (generic_tunings): Initialize new target settings.
33005         (cortexa53_tunings): Likewise.
33006         (cortexa57_tunings): Likewise.
33007         (thunderx_tunings): Likewise.
33008         (xgene1_tunings): Likewise.
33010 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
33012         * config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
33013         Make Cortex-A53 shift costs more accurate.
33015 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33017         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
33018         UNSIGNED_FLOAT.
33020 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
33022         * config/aarch64/aarch64.c (aarch64_rtx_costs):
33023         Calculate cost of op0 and op1 in PLUS and MINUS cases.
33025 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33027         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
33028         Add cost of op0 in the compare-with-fpzero case.
33030 2015-04-30  David Malcolm  <dmalcolm@redhat.com>
33032         * builtins.c (fold_builtin_1): Remove spurious second
33033         semicolon.
33034         * cgraph.h (symtab_node::get_availability): Likewise.
33035         * opts.c (common_handle_option): Remove spurious second semicolon.
33036         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
33037         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
33039 2015-04-30  Caroline Tice  <cmtice@google.com>
33041         PR gcov-profile/65929
33042         * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
33043         (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
33044         * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
33045         (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
33046         * doc/tm.texi: Regenerate.
33047         * final.c (final_scan_insn):  Use ASM_DECLARE_COLD_FUNCTION_NAME
33048         instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
33049         * varasm.c (assemble_end_function):  Use ASM_DECLARE_COLD_FUNCTION_SIZE
33050         instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
33052 2015-04-30  Marek Polacek  <polacek@redhat.com>
33054         * varasm.c (handle_cache_entry): Fix logic.
33056 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33058         * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
33059         (*extrsi5_insn_uxtw_alt): Likewise.
33060         * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
33061         (aarch64_rtx_costs, IOR case): Use above to properly cost extr
33062         operations.
33064 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33066         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
33067         fabd in ABS case.
33069 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33071         * config/aarch64/aarch64.md
33072         (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
33073         (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
33074         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
33075         appropriately.  Handle alternative EON form.
33077 2015-04-30  Renlin Li  <renlin.li@arm.com>
33079         * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
33080         * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
33082 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
33084         PR ipa/65873
33085         * ipa-inline.c (can_inline_edge_p): It is safe to inline across
33086         -fstrict-aliasing boundaries.
33088 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33090         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
33091         and [SU]MNEGL patterns.
33093 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33095         * config/aarch64/aarch64.c (aarch64_shift_p): New function.
33096         (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
33097         combined arithmetic-shift ops.  Properly handle all shift and extend
33098         operations that can occur in combination with PLUS/MINUS.
33099         Rename maybe_fma to compound_p.
33100         (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
33101         arithmetic and shift operations.
33103 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33105         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
33106         rather than arith_shift cost when costing ADD/MINUS of an
33107         extended value.
33109 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
33111         PR lto/65948
33112         * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
33113         to itself.
33115 2015-04-30  Richard Sandiford  <richard.sandiford@arm.com>
33117         * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
33118         are for the same position.
33120 2015-04-29  Aditya Kumar  <hiraditya@hotmail.com>
33122         * tree-vectorizer.c (set_uid_loop_bbs): New.  Factored out of
33123         vectorize_loops.
33124         (vectorize_loops): Use it.
33126 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
33128         * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
33129         for aggregate types.
33130         (register_odr_type): Be ready for MAIN_VARIANT of ODR type
33131         type to be non_ODR.
33132         * tree.c (need_assembler_name_p): Compute mangled name for
33133         non-fundamental types and integer types.
33135 2015-04-29  Mikhail Maltsev  <maltsevm@gmail.com>
33137         * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
33138         manual swaps.
33139         * expr.c (expand_expr_real_2): Likewise.
33141 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
33143         * tree.c (build_common_builtin_nodes): Do not build
33144         __builtin_alloca_with_align as equivalent of library alloca.
33146 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
33148         * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
33149         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
33150         bugus variants.
33151         * tree.c: Include print-tree.h and ipa-utils.h
33152         (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
33153         (free_lang_data_in_cgraph): Call verify_type.
33154         (verify_type_variant): New function.
33155         (verify_type): New function.
33156         * tree.h (verify_type): Declare.
33158 2015-04-29  Steve Ellcey  <sellcey@imgtec.com>
33160         * config/mips/mips-cpus.def: (mips4): Change default processor
33161         from PROCESSOR_R8000 to PROCESSOR_R10000.
33163 2015-04-29  Petar Jovanovic  <petar.jovanovic@rt-rk.com>
33165         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
33166         la/jalr instead of jal.
33168 2015-04-29  Uros Bizjak  <ubizjak@gmail.com>
33170         PR target/65871
33171         * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
33172         (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
33173         (setcc+movzbl peephole2): Check also clobbered reg.
33174         (setcc+andl peephole2): Ditto.
33176 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
33178         PR libgomp/65099
33179         * config/nvptx/mkoffload.c (target_ilp32): New variable.
33180         (main): Set it depending on "-foffload-abi=[...]".
33181         (compile_native, main): Use it to pass "-m32" or "-m64" to the
33182         compiler.
33184 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
33186         PR target/65770
33187         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
33188         vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
33189         Flip lane index back at assembly time for bigendian.
33191 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
33193         * tree.h (OMP_STANDALONE_CLAUSES): New macro.
33194         * gimplify.c (gimplify_omp_workshare): Use it.
33196 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
33198         * Makefile.in (build/genrecog.o): Depend on inchash.h.
33199         (build/genrecog$(build_exeext): Depend on build/hash-table.o and
33200         build/inchash.o
33201         * genrecog.c: Rewrite most of the code except for the third page.
33203 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
33205         * inchash.h, inchash.c: Include bconfig.h for build objects.
33206         * Makefile.in (build/inchash.o): New rule.
33208 2015-04-29  Yvan Roux  <yvan.roux@linaro.org>
33210         PR target/65924
33211         * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
33212         number in type attribute expression.
33214 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
33216         * loop-iv.c (canon_condition): Generalize to all types of integer
33217         constant.
33219 2015-04-29  Bernhard Reuther-Fischer  <aldot@gcc.gnu.org>
33221         * gimple-walk.c: Prune duplicate or unneeded includes.
33222         (walk_gimple_asm): Only call parse_input_constraint or
33223         parse_output_constraint if their findings are used.
33224         Honour parse_input_constraint and parse_output_constraint
33225         result.
33227 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
33229         * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
33231 2015-04-29  Tom de Vries  <tom@codesourcery.com>
33233         PR tree-optimization/65893
33234         * passes.def (pass_all_optimizations): Move pass_stdarg to after
33235         pass_dce.
33237 2015-04-29  Richard Biener  <rguenther@suse.de>
33239         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
33240         compute GROUP_SIZE for basic-block SLP.
33241         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
33242         take into account gaps.
33243         (vect_get_mask_element): Properly reject references to previous
33244         vectors.
33245         (vect_transform_slp_perm_load): Likewise.
33247 2015-04-29  Christian Bruel  <christian.bruel@st.com>
33249         PR target/64835
33250         * config/i386/i386.c (ix86_default_align): New function.
33251         (ix86_override_options_after_change): Call ix86_default_align.
33252         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
33253         (ix86_override_options_after_change): New function.
33255 2015-04-28  Jeff Law  <law@redhat.com>
33257         * tree-ssa-dom.c (record_equality); Fix comment typos.
33259 2015-04-28  Tom de Vries  <tom@codesourcery.com>
33261         PR tree-optimization/65887
33262         * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
33264 2015-04-28  Sandra Loosemore  <sandra@codesourcery.com>
33266         * doc/extend.texi (Declaring Attributes of Functions): Split into
33267         subsections by target.  Alphabetize the table of common attributes.
33268         Rewrite some of the introductory text to reflect the new structure.
33269         Update some cross-references to point to the new subsections.
33270         (Attribute Syntax): Put paragraph about "__" naming here.  Remove
33271         duplicate copies in the discussion of function, label, and type
33272         attributes.
33274 2015-04-28  Dominique d'Humieres  <dominiq@lps.ens.fr>
33276         PR bootstrap/65910
33277         * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
33279 2015-04-28  Jason Merrill  <jason@redhat.com>
33281         PR c++/65734
33282         * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
33283         (finalize_type_size): Respect TYPE_USER_ALIGN.
33284         (layout_type) [ARRAY_TYPE]: Likewise.
33286 2015-04-28  Yvan Roux  <yvan.roux@linaro.org>
33288         * config/arm/arm.md (*arm_movt): Fix type attribute.
33289         (*cmpsi_shiftsi): Likewise.
33290         (*cmpsi_shiftsi_swp): Likewise.
33291         (*movsicc_insn): Likewise.
33292         (*cond_move): Likewise.
33293         (*if_plus_move): Likewise.
33294         (*if_move_plus): Likewise.
33295         (*if_arith_move): Likewise.
33296         (*if_move_arith): Likewise.
33297         (*if_shift_move): Likewise.
33298         (*if_move_shift): Likewise.
33299         (*arm_movtas_ze): Likewise.
33300         * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
33301         redundancy and type attribute.
33302         (*thumb2_movsi_insn): Fix type attribute.
33303         (*thumb2_addsi_short): Likewise.
33304         (thumb2_addsi3_compare0): Likewise.
33305         (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
33306         attributes accordingly.
33308 2015-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
33310         PR other/65911
33311         * function.c (pad_to_arg_alignment): Add parentheses.
33313 2015-04-28  Uros Bizjak  <ubizjak@gmail.com>
33315         * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
33316         libgcc/config/frv/elf-lib.h.
33318 2015-04-28  Tom de Vries  <tom@codesourcery.com>
33320         * tree-call-cdce.c: Fix example in header comment.
33322 2015-04-28  Richard Biener  <rguenther@suse.de>
33324         PR tree-optimization/62283
33325         * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
33326         fails fatally and we are vectorizing a basic-block simply
33327         cause the child to be constructed piecewise.
33328         (vect_analyze_slp_cost_1): Adjust.
33329         (vect_detect_hybrid_slp_stmts): Likewise.
33330         (vect_bb_slp_scalar_cost): Likewise.
33331         (vect_get_constant_vectors): For piecewise constructed
33332         constants place them after the last def.
33333         (vect_get_slp_defs): Adjust.
33334         * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
33335         externals for basic-block vectorization.
33337 2015-04-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
33339         PR target/63503
33340         * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
33341         aarch64-*-*.
33342         * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
33343         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
33344         (AARCH64_TUNE_FMA_STEERING): Likewise.
33345         * config/aarch64/aarch64-cores.def: Set
33346         AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
33347         FMUL/FMADD instructions.
33348         * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
33349         (aarch64_override_options): Include cortex-a57-fma-steering.h.  Call
33350         aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
33351         * config/aarch64/cortex-a57-fma-steering.h: New file.
33352         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
33354 2015-04-28  Richard Sandiford  <richard.sandiford@arm.com>
33356         * gensupport.c (std_preds): Add missing codes to address_operand entry.
33358 2015-04-28  Richard Biener  <rguenther@suse.de>
33360         PR tree-optimization/65851
33361         * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
33362         changing CONSTANT to CONSTANT non-copy.  Get new_val by reference.
33363         (ccp_lattice_meet): Remove stray argument.  Use operand_equal_p
33364         rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
33365         (ccp_visit_phi_node): Adjust.
33366         (evaluate_stmt): For simplifications to SSA names return its
33367         lattice value if that isn't VARYING.  Return immediately when
33368         simplified to a constant.
33369         (visit_assignment): Adjust.
33370         (ccp_visit_stmt): Likewise.
33372 2015-04-28  Tom de Vries  <tom@codesourcery.com>
33374         PR tree-optimization/65818
33375         * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
33376         evaluated.
33378 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33380         * calls.c (save_fixed_argument_area): Don't check
33381         ARGS_GROW_DOWNWARD with the preprocessor.
33382         (restore_fixed_argument_area): Likewise.
33383         (mem_overlaps_already_clobbered_arg_p): Likewise.
33384         (check_sibcall_argument_overlap): Likewise.
33385         (expand_call): Likewise.
33386         (emit_library_call_value_1): Likewise.
33387         (store_one_arg): Likewise.
33388         * function.c (assign_parms): Likewise.
33389         (locate_and_pad_parm): Likewise.
33390         (pad_to_arg_alignment): Likewise.
33391         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
33393 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33395         * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
33396         * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
33397         * calls.c (save_fixed_argument_area): Don't chekc if
33398         ARGS_GROW_DOWNWARD is defined.
33399         (restore_fixed_argument_area): Likewise.
33400         (mem_overlaps_already_clobbered_arg_p): Likewise.
33401         (check_sibcall_argument_overlap): Likewise.
33402         (expand_call): Likewise.
33403         (emit_library_call_value_1): Likewise.
33404         (store_one_arg): Likewise.
33405         * function.c (assign_parms): Likewise.
33406         (locate_and_pad_parm): Likewise.
33407         (pad_to_arg_alignment): Likewise.
33408         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
33410 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33412         * defaults.h (gen_epilogue): New function.
33413         * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
33414         defined.
33415         * cfgrtl.c (cfg_layout_finalize): Likewise.
33416         * df-scan.c: Likewise.
33417         * function.c (thread_prologue_and_epilogue_insns): Likewise.
33418         (reposition_prologue_and_epilogue_notes): Likewise.
33419         * reorg.c (find_end_label): Likewise.
33420         * toplev.c: Likewise.
33422 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33424         * bb-reorder.c (HAVE_return): Don't check if its undefined.
33425         * defaults.h (gen_simple_return): New function.
33426         (gen_simple_return): Likewise.
33427         (HAVE_return): Add default definition to false.
33428         (HAVE_simple_return): Likewise.
33429         * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
33430         HAVE_return and HAVE_simple_return are defined.
33431         * function.c (gen_return_pattern): Likewise.
33432         (convert_jumps_to_returns): Likewise.
33433         (thread_prologue_and_epilogue_insns): Likewise.
33434         * reorg.c (find_end_label): Likewise.
33435         (dbr_schedule): Likewise.
33436         * shrink-wrap.c: Likewise.
33437         * shrink-wrap.h: Likewise.
33439 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33441         * defaults.h (EPILOGUE_USES): Add default definition of false.
33442         * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
33443         * resource.c (init_resource_info): Likewise.
33445 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33447         * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
33448         to false.
33449         * dwarf2out.c (field_byte_offset): REmove check if
33450         PCC_BITFIELD_TYPE_MATTERS is defined.
33451         * stor-layout.c (layout_decl): Likewise.
33452         (update_alignment_for_field): Likewise.
33453         (place_field): Likewise.
33455 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33457         * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
33458         true.
33459         * regrename.c (check_new_reg_p): Remove check if
33460         HARD_REGNO_RENAME_OK is defined.
33461         * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
33463 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33465         * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
33466         * cse.c (fold_rtx): Likewise.
33467         * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
33468         * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
33469         * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
33470         * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
33471         * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
33472         * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
33473         * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
33474         * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
33475         * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
33476         * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
33477         * Likewise.
33478         * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
33479         * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
33480         * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
33481         * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
33482         * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
33483         * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
33484         * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
33485         * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
33486         * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
33487         * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
33488         * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
33489         * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
33490         * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
33491         * doc/tm.texi: Regenerate.
33492         * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
33493         either true or false.
33495 2015-04-27  Jeff Law  <law@redhat.com>
33497         PR tree-optimization/65217
33498         * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
33499         of them has a single use, make sure it is the LHS of the implied
33500         copy.
33502 2015-04-28  Alan Modra  <amodra@gmail.com>
33504         PR target/65810
33505         * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
33506         (offsettable_ok_by_alignment): Use minimum of decl and toc
33507         pointer alignment.  Replace dead code with assertion.
33508         (use_toc_relative_ref): Add mode arg.  Return false in -mcmodel=medium
33509         case if size exceeds toc pointer alignment.
33510         (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
33511         (rs6000_emit_move): Likewise.
33512         * configure.ac: Add linker toc pointer alignment check.
33513         * configure: Regenerate.
33514         * config.in: Regenerate.
33516 2015-04-27  Yoshinori Sato <ysato@users.sourceforge.jp>
33518         * config.gcc: Add h8300-*-linux.
33519         * config/h8300/linux.h: New.
33520         * config/h8300/t-linux: New.
33521         * config/h8300/h8300.c (h8300_option_override): Normal mode
33522         is not supported for h8300-*-linux.
33523         (h8300_file_start): Target priority change.
33524         (get_shift_alg): Likewise.
33525         (h8300_shift_need_scratch_p): Likewise.
33526         * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
33527         * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
33529 2015-04-27  Caroline Tice  <cmtice@google.com>
33531         * final.c (final_scan_insn):  Output cold_function_name as function
33532         type.
33533         * varasm.c (cold_function_name):  Make global.
33534         (assemble_start_function):  Re-set cold_function_name.
33535         (assemble_end_function): Output cold partition size.
33536         * varasm.h (cold_function_name):  Declare global.
33538 2015-04-27  Ilya Tocar  <ilya.tocar@intel.com>
33540         * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
33541         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
33542         constraint.
33543         (*movxi_internal_avx512f): Ditto.
33544         (define_split): Check for xmm16+, when splitting scalar float_extend.
33545         (*extendsfdf2_mixed): Use "v" constraint.
33546         (define_split): Check for xmm16+, when splitting scalar float_truncate.
33547         (*truncdfsf_fast_sse): Use "v" constraint.
33548         (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
33549         (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
33550         (define_peephole2): Check for xmm16+, when converting scalar
33551         float_truncate.
33552         (define_peephole2): Check for xmm16+, when converting scalar
33553         float_extend.
33554         (*fop_<mode>_comm_mixed): Use "v" constraint.
33555         (*fop_<mode>_comm_sse): Ditto.
33556         (*fop_<mode>_1_mixed): Ditto.
33557         (*sqrt<mode>2_sse): Ditto.
33558         (*ieee_s<ieee_maxmin><mode>3): Ditto.
33560 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33562         * combine.c (simplify_if_then_else): Use std::swap instead
33563         of manually swapping.
33564         (known_cond): Likewise.
33565         (simplify_comparison): Likewise.
33567 2015-04-27  Peter Bergner  <bergner@vnet.ibm.com>
33569         PR target/64579
33570         * config/rs6000/htm.md: Remove all define_expands.
33571         (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
33572         UNSPECV_HTM_TABORTWCI): Remove.
33573         (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
33574         (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
33575         trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
33576         (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
33577         (tabortdc_internal, tabortdci_internal, tabortwc_internal,
33578         tabortwci_internal): Remove define_insns.
33579         (tabort<wd>c, tabort<wd>ci): New define_insns.
33580         (tabort): Use gpc_reg_operand.
33581         (tcheck): Remove operand.
33582         (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
33583         * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
33584         expected value.
33585         * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
33586         (BU_HTM_SPR1): Rename to BU_HTM_V1.  Remove use of RS6000_BTC_SPR.
33587         (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
33588         tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
33589         tsr, ttest): Pass in the RS6000_BTC_CR attribute.
33590         (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
33591         get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
33592         (tcheck): Remove builtin argument.
33593         * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
33594         not TARGET_64BIT.
33595         (htm_expand_builtin): Fix usage of expandedp.  Disallow usage of the
33596         tabortdc and tabortdci builtins when not in 64-bit mode.
33597         Modify code to handle the loss of the HTM define_expands.
33598         Emit code to copy the CR register to TARGET.
33599         (htm_init_builtins): Modify code to handle the loss of the HTM
33600         define_expands.
33601         * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
33602         (RS6000_BTC_64BIT): Likewise.
33603         (RS6000_BTC_CR): New macro.
33604         * doc/extend.texi: Update documentation for htm builtins.
33606 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33608         * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
33609         of manually swapping.
33610         (simplify_associative_operation): Likewise.
33611         (simplify_binary_operation): Likewise.
33612         (simplify_plus_minus): Likewise.
33613         (simplify_relational_operation): Likewise.
33614         (simplify_ternary_operation): Likewise.
33616 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
33618         * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
33619         (xs_hi_nonmemory_operand): Remove error.
33620         * config/stormy16/stormy16.md (movhi, movhi_internal): Use
33621         general_operand rather than xs_hi_general_operand.
33623 2015-04-27  Richard Biener  <rguenther@suse.de>
33625         * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
33626         (record_equivalences_from_stmt): Valueize rhs.
33627         (record_equality): Canonicalize x and y order via
33628         tree_swap_operands_p.  Do not swap operands for same loop depth.
33630 2015-04-27  Georg-Johann Lay  <avr@gjlay.de>
33632         PR target/65296
33633         PR target/65895
33634         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
33635         Add hint how to use own spec file.
33637 2015-04-27  Jakub Jelinek  <jakub@redhat.com>
33639         PR tree-optimization/65875
33640         * tree-vrp.c (update_value_range): If in is_new case setting
33641         old_vr to VR_VARYING, also set new_vr to it.  Remove
33642         old_vr->type == VR_VARYING test.
33643         (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
33644         SSA_PROP_INTERESTING if update_value_range returned true,
33645         but new range is VR_VARYING.
33647 2015-04-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
33649         * combine.c (sign_extend_short_imm): New.
33650         (set_nonzero_bits_and_sign_copies): Use above new function for sign
33651         extension of src short immediate.
33652         (reg_nonzero_bits_for_combine): Likewise for tem.
33654 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
33656         * stor-layout.c (self_referential_component_ref_p): New predicate.
33657         (copy_self_referential_tree_r): Use it.
33658         (self_referential_size): Punt for simple operations directly involving
33659         self-referential component references.
33660         * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
33662 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
33664         * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
33666 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
33668         * vec.h (vec): Make splice arguments const.  Update definitions
33669         accordingly.
33671 2015-04-27  Yvan Roux  <yvan.roux@linaro.org>
33673         * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
33674         alternatives.
33676 2015-04-26  Tom de Vries  <tom@codesourcery.com>
33678         PR tree-optimization/65826
33679         * internal-fn.def: Mark VA_ARG with ECF_LEAF.
33681 2015-04-24  Steve Ellcey  <sellcey@imgtec.com>
33683         * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
33684         (*madd3<mode>): Ditto.
33685         (*msub4<mode>): Ditto.
33686         (*msub3<mode>): Ditto.
33687         (*nmadd4<mode>): Ditto.
33688         (*nmadd3<mode>): Ditto.
33689         (*nmadd4<mode>_fastmath): Ditto.
33690         (*nmadd3<mode>_fastmath): Ditto.
33691         (*nmsub4<mode>): Ditto.
33692         (*nmsub3<mode>): Ditto.
33693         (*nmsub4<mode>_fastmath): Ditto.
33694         (*nmsub3<mode>_fastmath): Ditto.
33696 2015-04-24  Jason Merrill  <jason@redhat.com>
33698         PR c++/50800
33699         * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
33700         down when building TYPE_CANONICAL.
33701         (build_pointer_type_for_mode): Likewise.
33703 2015-04-24  Chen Gang  <gang.chen.5i5j@gmail.com>
33705         * genrecog.c (validate_pattern): Check matching constraint refers
33706         to a lower numbered operand.
33708 2015-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
33710         PR target/65849
33711         * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
33712         save to independent variables use the Save attribute.  This will
33713         allow these options to be modified with the #pragma/attribute
33714         target support.
33715         (-mallow-movmisalign): Likewise.
33716         (-mallow-df-permute): Likewise.
33717         (-msched-groups): Likewise.
33718         (-malways-hint): Likewise.
33719         (-malign-branch-targets): Likewise.
33720         (-mvectorize-builtins): Likewise.
33721         (-msave-toc-indirect): Likewise.
33723         * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
33724         can be set via the #pragma/attribute target support.
33725         (rs6000_opt_vars): Likewise.
33726         (rs6000_inner_target_options): If VSX was set, also set
33727         -mno-avoid-indexed-addresses.
33729 2015-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33731         * config/arm/iterators.md (shiftable_ops): Rename to...
33732         (SHIFTABLE_OPS): ... This.  Update use in comments.
33733         (ior_xor): Rename to...
33734         (IOR_XOR): ... This.
33735         (vqh_ops): Rename to...
33736         (VQH_OPS): ... This.
33737         (vqhs_ops): Rename to...
33738         (VQHS_OPS): ... This.
33739         (rshifts): Rename to...
33740         (RSHIFTS): ... This.
33741         (returns): Rename to...
33742         (RETURNS): ... This.
33743         * config/arm/arm.md: Update uses of the above.
33744         * config/arm/neon.md: Likewise.
33746 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33748         * config.host (case ${host}): Add aarch64*-*-linux case.
33749         * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
33750         fields to all the cores.
33751         * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
33752         Add MCPU_MTUNE_NATIVE_SPECS.
33753         * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
33754         field to all extensions.
33755         * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
33756         * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
33757         Adjust definition of AARCH64_OPT_EXTENSION.
33758         * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
33759         (MCPU_MTUNE_NATIVE_SPECS): Define.
33760         * config/aarch64/driver-aarch64.c: New file.
33761         * config/aarch64/x-arch64: New file.
33762         * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
33763         -mtune and -march.
33765 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
33766             Wei Mi  <wmi@google.com>
33768         * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
33769         * config/i386/i386.c (extract_base_offset_in_addr): New function.
33770         (ix86_operands_ok_for_move_multiple): Ditto.
33771         * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
33772         (movlpd/movhpd to movupd peephole2): Ditto.
33774 2015-04-24  Marek Polacek  <polacek@redhat.com>
33776         PR c/61534
33777         * input.h (from_macro_expansion_at): Define.
33779         PR c/63357
33780         * doc/invoke.texi: Update description of -Wlogical-op.
33782 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
33784         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
33785         ternary operator in fprintf and harmonize spacing.
33787 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
33789         * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
33790         Mark operand1 commutative.
33792 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
33794         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
33795         input operands in memory.
33796         (*vec_concatv2si_sse4_1): Ditto.
33797         (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
33798         (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
33799         register_operand.
33800         (vec_extract_hi_v32hi): Ditto.
33801         (vec_extract_hi_v64hi): Ditto.
33802         (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
33804 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
33805             Steven Bosscher <steven@gcc.gnu.org>
33807         PR rtl-optimization/34503
33808         * cprop.c (cprop_reg_p): New.
33809         (hash_scan_set): Use above function to check if register can be
33810         propagated.
33811         (find_avail_set): Return up to two sets, one whose source is a
33812         register and one whose source is a constant.  Sets are returned in an
33813         array passed as parameter rather than as a return value.
33814         (cprop_insn): Use a do while loop rather than a goto.  Try each of the
33815         sets returned by find_avail_set, starting with the one whose source is
33816         a constant. Use cprop_reg_p to check if register can be propagated.
33817         (do_local_cprop): Use cprop_reg_p to check if register can be
33818         propagated.
33819         (implicit_set_cond_p): Likewise.
33821 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
33823         * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
33824         (sem_function::equals): IGNORED_NODES parameter is now unused;
33825         update call of equals_private.
33826         (sem_function::equals_private): Do not call equals_wpa; skip
33827         gimple body matching if there is no body.
33828         (sem_function::init): Add logic to hash tthunk info.
33829         (sem_function::parse): Also parse thunks.
33830         * ipa-icf.h (equals_private): Update declaration.
33832 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
33834         * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
33835         asterisk from name so this can be generated directly.
33836         (*altivec_stvx_<mode>_internal): Likewise.
33837         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
33838         that this is never called during or after reload/lra.
33839         (rs6000_frame_related): Remove split_reg
33840         argument and logic that references it.
33841         (emit_frame_save): Remove last parameter from call to
33842         rs6000_frame_related.
33843         (rs6000_emit_prologue): Remove last parameter from eight calls to
33844         rs6000_frame_related.  Force generation of stvx instruction for
33845         Altivec register saves.  Remove split_reg handling, which is no
33846         longer needed.
33847         (rs6000_emit_epilogue):  Force generation of lvx instruction for
33848         Altivec register restores.
33850 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
33852         * config/rs6000/rs6000.opt (mcrypto): Change option description to
33853         match category changes in ISA 2.07B.
33855 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33857         * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
33858         iterators.
33859         (cmp_op, cmp_type): New code attributes.
33860         (NEON_VCMP, NEON_VACMP): New int iterators.
33861         (cmp_op_unsp): New int attribute.
33862         * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
33863         (neon_vceq<mode>): Delete.
33864         (neon_vc<cmp_op><mode>_insn): New pattern.
33865         (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
33866         (neon_vcgeu<mode>): Delete.
33867         (neon_vcle<mode>): Likewise.
33868         (neon_vclt<mode>: Likewise.
33869         (neon_vcage<mode>): Likewise.
33870         (neon_vcagt<mode>): Likewise.
33871         (neon_vca<cmp_op><mode>): New define_expand.
33872         (neon_vca<cmp_op><mode>_insn): New pattern.
33873         (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
33875 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
33877         * tree.h (attribute_value_equal): Declare.
33878         * tree.c (attribute_value_equal): Export.
33880 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
33882         * ipa-icf.c (sem_item::compare_attributes): New function.
33883         (sem_item::compare_referenced_symbol_properties): Compare variable
33884         attributes.
33885         (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
33886         (sem_function::param_used_p): New function.
33887         (sem_function::equals_wpa): Fix attribute comparsion; match
33888         parameter type codes; do not compare paremter flags when
33889         they are not used; compare edge flags; compare indirect calls.
33890         (sem_item::update_hash_by_addr_refs): Hash reference type.
33891         (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
33892         (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
33893         reference use type.
33894         (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
33895         * ipa-icf.h (compare_attributes, param_used_p): Declare.
33897 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
33899         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
33900         cleanup.
33901         (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
33902         DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
33903         (sem_item::compare_referenced_symbol_properties): New.
33904         (sem_item::hash_referenced_symbol_properties): New.
33905         (sem_item::compare_cgraph_references): Rename to ...
33906         (sem_item::compare_symbol_references): ... this one; use
33907         compare_referenced_symbol_properties.
33908         (sem_function::equals_wpa): Do not compare
33909         DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
33910         DECL_IS_OPERATOR_NEW; compare pointer sizes.
33911         (sem_item::update_hash_by_addr_refs): Call
33912         hash_referenced_symbol_properties.
33913         (sem_item::update_hash_by_local_refs): Cleanup.
33914         (sem_function::merge): Do not mix up symbol properties.
33915         (sem_variable::equals_wpa): Use compare_symbol_references.
33916         * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
33917         (sem_item::hash_referenced_symbol_properties): New.
33918         (sem_item::compare_symbol_references): New.
33919         (sem_item::compare_cgraph_references): Remove.
33921 2015-04-23  Kwok Cheung Yeung  <kcy@codesourcery.com>
33923         PR target/26702
33924         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
33925         Emit size of local.
33927 2015-04-23  Nick Clifton  <nickc@redhat.com>
33929         * config/rl78/rl78.c (rl78_preferred_reload_class): Add
33930         ATTRIBUTE_UNUSED to x parameter.
33931         * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
33933 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
33935         * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
33936         TARGET_CRYPTO to TARGET_P8_VECTOR>
33937         (crypto_vpermxor_<mode>): Likewise.
33938         * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
33939         (BU_CRYPTO_3A): Likewise.
33940         (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
33941         (BU_CRYPTO_OVERLOAD_3A): New #define.
33942         (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
33943         (VPMSUMH): Likewise.
33944         (VPMSUMW): Likewise.
33945         (VPMSUMD): Likewise.
33946         (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
33947         (VPERMXOR_V4SI): Likewise.
33948         (VPERMXOR_V8HI): Likewise.
33949         (VPERMXOR_V16QI): Likewise.
33950         (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
33951         BU_CRYPTO_OVERLOAD_2A.
33952         (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
33953         BU_CRYPTO_OVERLOAD_3A.
33954         * config/rs6000/rs6000.opt (mcrypto): Change description of
33955         option.
33957 2015-04-23  Richard Biener  <rguenther@suse.de>
33959         * passes.def: Remove copy propagation passes run directly after CCP.
33960         * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
33961         SSA names.
33962         (ccp_visit_phi_node): Rework to handle first executable edge
33963         specially.
33965 2015-04-23  Matthew Wahab  <matthew.wahab@arm.com>
33967         * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
33968         (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
33969         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
33970         * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
33971         (thumb_legimitimize_reload_address): Remove.
33972         * config/arm/arm-protos.h (arm_legimitimize_reload_address):
33973         Remove.
33974         (thumb_legimitimize_reload_address): Remove.
33976 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33978         * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
33980 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33982         * config/arm/arm.md (load_multiple): Reject operand 2 greater than
33983         MAX_LDM_STM_OPS.
33984         (store_multiple): Likewise.
33986 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33988         * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
33989         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
33990         arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
33991         arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
33992         arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
33993         arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
33994         arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
33995         Specify issue_rate value.
33996         (arm_issue_rate): Look up issue rate from tuning structs. Remove
33997         large switch statement.
33998         (arm_marvell_pj4_tune): New struct.
33999         * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
34000         struct.
34002 2015-04-23  Richard Biener  <rguenther@suse.de>
34004         * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
34005         (vect_find_last_store_in_slp_instance): Rename to ...
34006         (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
34007         (vect_analyze_slp_cost_1): Use vector_load for constant defs
34008         and vec_construct for external defs when estimating prologue cost.
34009         (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
34010         Compute costs here only when vectorizing loops.
34011         (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
34012         have been determined.
34013         (vect_schedule_slp_instance): Simplify vectorized code placement
34014         and prepare for in-BB external defs.
34015         * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
34016         (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
34017         * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
34018         guard.
34019         (vect_model_load_cost): Likewise.
34020         (vectorizable_store): Instead add it here.
34021         (vectorizable_load): Likewise.
34022         (vect_is_simple_use): Dump def type textually.
34024 2015-04-23  Richard Biener  <rguenther@suse.de>
34026         * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
34027         * cfgloop.c (verify_loop_structure): Verify the root loop node.
34028         * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
34029         instead of get_eh_region_from_lp_number.
34030         * loop-init.c (fix_loop_structure): If we removed a loop, reset
34031         the SCEV cache.
34033 2015-04-23  Anton Blanchard  <anton@samba.org>
34035         * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
34036         need for -mprofile-kernel to save LR to stack.
34038 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
34040         * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
34041         adjustments.
34042         (insn_is_swappable_p): Return 1 for a convert from double to
34043         single precision when all of its uses are splats of BE element
34044         zero.
34046 2015-04-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
34048         * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
34050 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
34052         PR target/65456
34053         * config/rs6000/rs6000.c (rs6000_option_override_internal):  For
34054         VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
34055         TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
34056         option.
34057         (rs6000_builtin_mask_for_load): Return 0 for targets with
34058         efficient unaligned VSX accesses so that the vectorizer will use
34059         direct unaligned loads.
34060         (rs6000_builtin_support_vector_misalignment): Always return true
34061         for targets with efficient unaligned VSX accesses.
34062         (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
34063         stores on targets with efficient unaligned VSX accesses is almost
34064         always the same as the cost of an aligned load or store, so model
34065         it that way.
34066         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
34067         unaligned vectors if we have efficient unaligned VSX accesses.
34068         * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
34069         undocumented option.
34071 2015-04-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34073         Revert:
34074         2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
34076         * config.gcc (LIBC_MUSL): New tm_defines macro.
34077         * config/linux.h (OPTION_MUSL): Define.
34078         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
34079         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
34080         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
34082         * config/linux.opt (mmusl): New option.
34083         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
34084         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
34086         * configure: Regenerate.
34088 2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
34090         * config.gcc (LIBC_MUSL): New tm_defines macro.
34091         * config/linux.h (OPTION_MUSL): Define.
34092         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
34093         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
34094         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
34096         * config/linux.opt (mmusl): New option.
34097         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
34098         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
34100         * configure: Regenerate.
34102 2015-04-22  Yury Gribov  <y.gribov@samsung.com>
34104         * doc/invoke.texi (-fsanitize-sections): Update description.
34105         * asan.c (set_sanitized_sections): Parse incoming arg.
34106         (section_sanitized_p): Support wildcards.
34108 2015-04-22  Tom de Vries  <tom@codesourcery.com>
34110         PR tree-optimization/65823
34111         * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
34112         equality between ap_copy and ap.
34114 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
34116         PR target/47098
34117         * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
34119 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
34121         PR target/47122
34122         * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
34124 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
34126         PR target/55144
34127         * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
34128         remove already contained t-files.
34130 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
34132         * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
34133         Remove unneeded forward declarations.
34134         (suitable_for_tail_call_opt_p): Commentary typo fix.
34136 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
34138         * varasm.c (emit_bss): Remove redundant guard.
34140 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
34142         * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
34144 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
34146         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
34148 2015-04-22  Hale Wang  <hale.wang@arm.com>
34149             Terry Guo  <terry.guo@arm.com>
34151         PR rtl-optimization/64818
34152         * combine.c (can_combine_p): Don't combine user-specified
34153         register if it is in an asm input.
34155 2015-04-21  Jan Hubicka  <hubicka@ucw.cz>
34157         PR ipa/65076
34158         * passes.def (early_optimizations): Add pass_dse.
34160 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
34162         * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
34163         * reorg.c (redundant_insn): Remove ifdef
34164         INSN_REFERENCES_ARE_DELAYED.
34165         * resource.c (mark_referenced_resources): Likewise.
34167 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
34169         * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
34170         * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
34171         * resource.c (mark_set_resources): Likewise.
34173 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
34175         * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
34176         * cfgcleanup.c (flow_find_cross_jump): Likewise.
34177         (flow_find_head_matching_sequence): Likewise.
34178         (try_head_merge_bb): Likewise.
34179         * combine.c (can_combine_p): Likewise.
34180         (try_combine): Likewise.
34181         (distribute_notes): Likewise.
34182         * df-problems.c (can_move_insns_across): Likewise.
34183         * final.c (final): Likewise.
34184         * gcse.c (insert_insn_end_basic_block): Likewise.
34185         * ira.c (find_moveable_pseudos): Likewise.
34186         * reorg.c (try_merge_delay_insns): Likewise.
34187         (fill_simple_delay_slots): Likewise.
34188         (fill_slots_from_thread): Likewise.
34189         * sched-deps.c (sched_analyze_2): Likewise.
34191 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
34193         * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
34194         PIC_OFFSET_TABLE_REGNUM.
34196 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
34198         * alias.c (init_alias_target): Remove ifdef
34199         * HARD_FRAME_POINTER_IS_FRAME_POINTER.
34200         * df-scan.c (df_insn_refs_collect): Likewise.
34201         (df_get_regular_block_artificial_uses): Likewise.
34202         (df_get_eh_block_artificial_uses): Likewise.
34203         (df_get_entry_block_def_set): Likewise.
34204         (df_get_exit_block_use_set): Likewise.
34205         * emit-rtl.c (gen_rtx_REG): Likewise.
34206         * ira.c (ira_setup_eliminable_regset): Likewise.
34207         * reginfo.c (init_reg_sets_1): Likewise.
34208         * regrename.c (rename_chains): Likewise.
34209         * reload1.c (reload): Likewise.
34210         (eliminate_regs_in_insn): Likewise.
34211         * resource.c (mark_referenced_resources): Likewise.
34212         (init_resource_info): Likewise.
34214 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
34216         * defaults.h (MASK_RETURN_ADDR): New definition.
34217         * except.c (expand_builtin_extract_return_addr): Remove ifdef
34218         MASK_RETURN_ADDR.
34220 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
34222         * defaults.h (RETURN_ADDR_OFFSET): New definition.
34223         * except.c (expand_builtin_extract_return_addr): Remove ifdef
34224         RETURN_ADDR_OFFSET.
34225         (expand_builtin_frob_return_addr): Likewise.
34227 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
34229         * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
34230         (try_redirect_by_replacing_jump): Likewise.
34231         (rtl_tidy_fallthru_edge): Likewise.
34232         * combine.c (insn_a_feeds_b): Likewise.
34233         (find_split_point): Likewise.
34234         (simplify_set): Likewise.
34235         * cprop.c (cprop_jump): Likewise.
34236         * cse.c (cse_extended_basic_block): Likewise.
34237         * df-problems.c (can_move_insns_across): Likewise.
34238         * function.c (emit_use_return_register_into_block): Likewise.
34239         * haifa-sched.c (sched_init): Likewise.
34240         * ira.c (find_moveable_pseudos): Likewise.
34241         * loop-invariant.c (find_invariant_insn): Likewise.
34242         * lra-constraints.c (curr_insn_transform): Likewise.
34243         * postreload.c (reload_combine_recognize_const_pattern):
34244         * Likewise.
34245         * reload.c (find_reloads): Likewise.
34246         * reorg.c (delete_scheduled_jump): Likewise.
34247         (steal_delay_list_from_target): Likewise.
34248         (steal_delay_list_from_fallthrough): Likewise.
34249         (redundant_insn): Likewise.
34250         (fill_simple_delay_slots): Likewise.
34251         (fill_slots_from_thread): Likewise.
34252         (delete_computation): Likewise.
34253         * sched-rgn.c (add_branch_dependences): Likewise.
34255 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
34257         * genconfig.c (main): Always define HAVE_cc0.
34258         * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
34259         HAVE_cc0.
34260         * cfgcleanup.c (flow_find_cross_jump): Likewise.
34261         (flow_find_head_matching_sequence): Likewise.
34262         (try_head_merge_bb): Likewise.
34263         * cfgrtl.c (rtl_merge_blocks): Likewise.
34264         (try_redirect_by_replacing_jump): Likewise.
34265         (rtl_tidy_fallthru_edge): Likewise.
34266         * combine.c (do_SUBST_MODE): Likewise.
34267         (insn_a_feeds_b): Likewise.
34268         (combine_instructions): Likewise.
34269         (can_combine_p): Likewise.
34270         (try_combine): Likewise.
34271         (find_split_point): Likewise.
34272         (subst): Likewise.
34273         (simplify_set): Likewise.
34274         (distribute_notes): Likewise.
34275         * cprop.c (cprop_jump): Likewise.
34276         * cse.c (cse_extended_basic_block): Likewise.
34277         * df-problems.c (can_move_insns_across): Likewise.
34278         * final.c (final): Likewise.
34279         (final_scan_insn): Likewise.
34280         * function.c (emit_use_return_register_into_block): Likewise.
34281         * gcse.c (insert_insn_end_basic_block): Likewise.
34282         * haifa-sched.c (sched_init): Likewise.
34283         * ira.c (find_moveable_pseudos): Likewise.
34284         * loop-invariant.c (find_invariant_insn): Likewise.
34285         * lra-constraints.c (curr_insn_transform): Likewise.
34286         * optabs.c (prepare_cmp_insn): Likewise.
34287         * postreload.c (reload_combine_recognize_const_pattern):
34288         * Likewise.
34289         * reload.c (find_reloads): Likewise.
34290         (find_reloads_address_1): Likewise.
34291         * reorg.c (delete_scheduled_jump): Likewise.
34292         (steal_delay_list_from_target): Likewise.
34293         (steal_delay_list_from_fallthrough): Likewise.
34294         (try_merge_delay_insns): Likewise.
34295         (redundant_insn): Likewise.
34296         (fill_simple_delay_slots): Likewise.
34297         (fill_slots_from_thread): Likewise.
34298         (delete_computation): Likewise.
34299         (relax_delay_slots): Likewise.
34300         * sched-deps.c (sched_analyze_2): Likewise.
34301         * sched-rgn.c (add_branch_dependences): Likewise.
34303 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
34305         * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
34306         that is trivially ded on non cc0 targets.
34307         (simplify_set): Likewise.
34308         (mark_used_regs_combine): Likewise.
34309         * cse.c (new_basic_block): Likewise.
34310         (fold_rtx): Likewise.
34311         (cse_insn): Likewise.
34312         (cse_extended_basic_block): Likewise.
34313         (set_live_p): Likewise.
34314         * rtlanal.c (canonicalize_condition): Likewise.
34315         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
34317 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
34319         * conditions.h: Define macros even if HAVE_cc0 is undefined.
34320         * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
34321         * final.c: Likewise.
34322         * jump.c: Likewise.
34323         * recog.c: Likewise.
34324         * recog.h: Declare functions even when HAVE_cc0 is undefined.
34325         * sched-deps.c (sched_analyze_2): Always compile case for cc0.
34327 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
34329         * defaults.h: New definition of EH_RETURN_DATA_REGNO.
34330         * except.c: Remove definition of EH_RETURN_DATA_REGNO.
34331         * builtins.c (expand_builtin): Remove check if
34332         EH_RETURN_DATA_REGNO is defined.
34333         * df-scan.c (df_bb_refs_collect): Likewise.
34334         (df_get_exit_block_use_set): Likewise.
34335         * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
34336         * ira-lives.c (process_bb_node_lives): Likewise.
34337         * lra-lives.c (process_bb_lives): Likewise.
34339 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
34341         * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
34342         FIRST_PSEUDO_REG): New.
34343         * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
34344         (ARG_POINTER_REGNUM): Define to ARGP_REG.
34345         (FRAME_POINTER_REGNUM): Define to FRAME_REG.
34346         (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
34347         (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
34348         (FIRST_INT_REG): New.
34349         (LAST_INT_REG): New.
34350         (FIRST_*_REG): Define using *_REG.
34351         (LAST_*_REG): Ditto.
34352         (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
34353         (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
34354         (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
34356 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34358         * expmed.c: (synth_mult): Only assume overlapping
34359         shift with previous steps in alg_sub_t_m2 case.
34361 2015-04-21  Richard Biener  <rguenther@suse.de>
34363         PR tree-optimization/65650
34364         * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
34365         transitions involving copies.
34366         (set_lattice_value): Adjust for copy lattice state.
34367         (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
34368         if that doesn't dominate the merge point.
34369         (bit_value_unop): Adjust what we treat as varying mask.
34370         (bit_value_binop): Likewise.
34371         (bit_value_assume_aligned): Likewise.
34372         (evaluate_stmt): When we simplified to a SSA name record a copy
34373         instead of dropping to varying.
34374         (visit_assignment): Simplify.
34376         * gimple-match.h (gimple_simplify): Add another callback.
34377         * gimple-fold.c (fold_stmt_1): Adjust caller.
34378         (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
34379         for the 2nd callback.
34380         * gimple-match-head.c (gimple_simplify): Add a callback that is
34381         used to valueize the stmt operands and use it that way.
34383 2015-04-21  Richard Biener  <rguenther@suse.de>
34385         PR tree-optimization/65788
34386         * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
34388 2015-04-21  Richard Biener  <rguenther@suse.de>
34390         * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
34391         vec_construct cost by vec_stmt_cost.
34393 2015-04-21  Richard Biener  <rguenther@suse.de>
34395         * cfghooks.h (create_basic_block): Replace with two overloads
34396         for RTL and GIMPLE.
34397         (split_block): Likewise.
34398         * cfghooks.c (split_block): Rename to ...
34399         (split_block_1): ... this.
34400         (split_block): Add two type-safe overloads for RTL and GIMPLE.
34401         (split_block_after_labels): Call split_block_1.
34402         (create_basic_block): Rename to ...
34403         (create_basic_block_1): ... this.
34404         (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
34405         (create_empty_bb): Call create_basic_block_1.
34406         * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
34407         split_block_after_labels.
34408         * omp-low.c (expand_parallel_call): Likewise.
34409         (expand_omp_target): Likewise.
34410         (simd_clone_adjust): Likewise.
34411         * tree-chkp.c (chkp_get_entry_block): Likewise.
34412         * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
34413         create_basic_block overload.
34414         (cgraph_node::expand_thunk): Likewise.
34415         * tree-cfg.c (make_blocks): Likewise.
34416         (handle_abnormal_edges): Likewise.
34417         * tree-inline.c (copy_bb): Likewise.
34419 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34421         * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
34422         New pattern.
34423         (*xor_one_cmplsidi3_ze): Likewise.
34425 2015-04-21  Thomas Preud'homme  <thomas.preudhomme@arm.com>
34427         * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
34428         use df_remove_problem rather than manually removing problems, leaving
34429         holes in df->problems_in_order[].
34431 2015-04-21  Tom de Vries  <tom@codesourcery.com>
34433         PR tree-optimization/65802
34434         * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
34436 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34438         * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
34439         Increase to 128.
34440         (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
34441         at '.'.  Assert that there's enough space for everything.
34443 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
34445         PR tree-optimization/64950
34446         Revert:
34447         2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
34449         PR target/41089
34450         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
34451         as volatile.
34453 2015-04-20  Shiva Chen  <shiva0217@gmail.com>
34455         PR rtl-optimization/64916
34456         * cfgcleanup.c (values_equal_p): New function.
34457         (can_replace_by): Use it.
34459 2015-04-20  Paolo Carlini  <paolo.carlini@oracle.com>
34461         PR c++/65801
34462         * doc/invoke.texi ([-Wnarrowing]): Update.
34464 2015-04-20  Jeff Law  <law@redhat.com>
34466         PR tree-optimization/65658
34467         * tree-ssa-threadupdate.c (redirection_block_p): Remove
34468         redundant test for GIMPLE_ASSIGN in last change.
34470 2015-04-20  Uros Bizjak  <ubizjak@gmail.com>
34472         * config/i386/i386.c (set_pic_reg_ever_live): Remove.
34473         (legitimize_pic_address): Do not call set_pic_reg_ever_live.
34474         (legitimize_tls_address): Ditto.
34475         (ix86_expand_move): Ditto.
34476         (ix86_expand_binary_operator): Remove reload_in_progress checks.
34477         (ix86_expand_unary_operator): Ditto.
34478         * config/i386/predicates.md (index_register_operand): Ditto.
34480 2015-04-20  Selim Belbachir  <selim.belbachir@fr.thalesgroup.com>
34482         * reorg.c (try_merge_delay_insns): Improve correctness checking
34483         for targets with multiple delay slots.
34485 2015-04-20  Jeff Law  <law@redhat.com>
34487         PR tree-optimization/65658
34488         * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
34489         statements too.
34491 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
34493         * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
34494         * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
34495         Delete.
34497 2015-04-20  Jakub Jelinek  <jakub@redhat.com>
34499         PR debug/65807
34500         * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
34502 2015-04-20  Richard Biener  <rguenther@suse.de>
34504         * gimple-fold.h (gimple_build): Remove optional valueize arguments.
34505         * gimple-fold.c (gimple_build_valueize): New function.
34506         (gimple_build): Always use gimple_build_valueize as valueize hook.
34508 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
34510         PR target/64134
34511         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
34512         and overwrite variable parts if <= 1/2 the elements are variable.
34514 2015-04-19  Vladimir Makarov  <vmakarov@redhat.com>
34516         PR rtl-optimization/65805
34517         * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
34518         Don't use difference of offset and previous offset if
34519         update_sp_offset is non-zero.
34520         (eliminate_regs_in_insn): Ditto.
34521         * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
34522         lra_eliminate_regs_1 call.
34523         * lra-constraints.c (get_equiv_with_elimination): Ditto.
34525 2015-04-18  Trevor Saunders  <tsaunders@mozilla.com>
34527         * hash-table.h: Remove version of hash_table that stored value_type *.
34528         * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
34529         config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
34530         config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
34531         dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
34532         gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
34533         hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
34534         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
34535         loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
34536         reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
34537         tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
34538         tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
34539         tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
34540         tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
34541         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
34542         tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
34543         valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
34545 2015-04-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
34546             Jakub Jelinek  <jakub@redhat.com>
34548         PR target/65787
34549         * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
34550         subsequent SH_NONE operand does not overwrite an existing *special
34551         value.
34552         (adjust_extract): Handle case where a vec_extract operation is
34553         wrapped in a PARALLEL.
34555 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
34557         PR target/65780
34558         * config/i386/i386.c (ix86_binds_local_p): Define only if
34559         TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
34561 2015-04-17  Jeff Law  <law@redhat.com>
34563         PR tree-optimization/47679
34564         * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
34565         * tree-ssa-scopedtables.c: New file.
34566         * tree-ssa-scopedtables.h: New file.
34567         * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
34568         (const_and_copies): Change name/type.
34569         (record_const_or_copy): Move into tree-ssa-scopedtables.c
34570         (record_const_or_copy_1): Similarly.
34571         (restore_vars_to_original_value): Similarly.
34572         (pass_dominator::execute): Create and destroy const_and_copies table.
34573         (thread_across_edge): Update passing of const_and_copies.
34574         (record_temporary_equivalence): Use method calls rather than
34575         manipulating const_and_copies directly.
34576         (record_equality, cprop_into_successor_phis): Similarly.
34577         (dom_opt_dom_walker::before_dom_children): Similarly.
34578         (dom_opt_dom_walker::after_dom_children): Similarly.
34579         (eliminate_redundant_computations): Similarly.
34580         * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
34581         (record_temporary_equivalence): Likewise.
34582         (invalidate_equivalences): Likewise.
34583         (record_temporary_equivalences_from_phis): Update due to type
34584         change of const_and_copies.  Use method calls rather than
34585         manipulating the stack directly.
34586         (record_temporary_equivalences_from_stmts_at_dest): Likewise.
34587         (thread_through_normal_block, thread_across_edge): Likewise.
34588         (thread_across_edge): Likewise.
34589         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
34590         * tree-vrp.c: Include tree-ssa-scopedtables.h.  Change type
34591         of equiv_stack.
34592         (identify_jump_threads): Update due to type change of equiv_stack.
34593         (finalize_jump_threads): Delete the equiv_stack when complete.
34595 2015-04-17  Uros Bizjak  <ubizjak@gmail.com>
34597         * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
34598         * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
34599         * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
34601 2015-04-17  Andreas Tobler  <andreast@gcc.gnu.org>
34603         PR target/65535
34604         * config.gcc: Exit with a comment when we do not have a major version
34605         number for the FreeBSD target.
34607 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
34609         PR target/65689
34610         * genpreds.c (struct constraint_data): Add maybe_allows_reg and
34611         maybe_allows_mem bitfields.
34612         (maybe_allows_none_start, maybe_allows_none_end,
34613         maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
34614         maybe_allows_mem_end): New variables.
34615         (compute_maybe_allows): New function.
34616         (add_constraint): Use it to initialize maybe_allows_reg and
34617         maybe_allows_mem fields.
34618         (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
34619         is_address constraints such that those that allow neither mem nor
34620         reg come first, then those that only allow reg but not mem, then
34621         those that only allow mem but not reg, then the rest.
34622         (write_allows_reg_mem_function): New function.
34623         (write_tm_preds_h): Call it.
34624         * stmt.c (parse_output_constraint, parse_input_constraint): Use
34625         the generated insn_extra_constraint_allows_reg_mem function
34626         instead of always setting *allows_reg = true; *allows_mem = true;
34627         for unknown extra constraints.
34629 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
34631         PR target/65780
34632         * output.h (default_binds_local_p_3): New.
34633         * varasm.c (default_binds_local_p_3): Make it public.  Take an
34634         argument to indicate if common symbol may be local.  If common
34635         symbol may be local, treat non-external variable as defined
34636         locally.
34637         (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
34638         (default_binds_local_p_1): Pass false to default_binds_local_p_3.
34639         * config/i386/i386.c (ix86_binds_local_p): New.
34640         (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
34641         ix86_binds_local_p.
34643 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
34645         PR debug/65771
34646         * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
34647         trying mem_loc_descriptor on XEXP (rtl, 0).
34649 2015-04-17  Martin Liska  <mliska@suse.cz>
34651         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
34652         Release symbol_compare_collection.
34653         * ipa-reference.c: Add TODO that a vector should be released.
34655 2015-04-17  Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
34657         PR target/65296
34658         * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
34659         to new AVR-LibC file layout (bug #44574).
34660         (*avrlibc_devicelib): Same.
34661         * config/avr/avr-mcus.def: Adjust comments.
34662         * config/avr/avr.opt (nodevicelib): Adjust help.
34664 2015-04-17  Alan Lawrence  <alan.lawrence@arm.com>
34666         * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
34668 2015-04-17  Patrick Palka  <ppalka@gcc.gnu.org>
34670         PR c++/64527
34671         * gimplify.c (gimplify_init_constructor): Always emit a
34672         side-effecting constructor.
34674 2015-04-17  Tom de Vries  <tom@codesourcery.com>
34676         PR tree-optimization/64950
34677         * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
34678         in cfun->curr_properties.
34679         (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
34680         if we generate an IFN_VA_ARG.
34681         * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
34682         function if PROP_gimple_lva is not set in src function.
34684 2015-04-17  Tom de Vries  <tom@codesourcery.com>
34685             Michael Matz  <matz@suse.de>
34687         PR tree-optimization/64950
34688         * gimple-iterator.c (update_modified_stmts): Remove static.
34689         * gimple-iterator.h (update_modified_stmts): Declare.
34690         * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
34691         (gimplify_va_arg_internal): New function.
34692         (gimplify_va_arg_expr): Use IFN_VA_ARG.
34693         * gimplify.h (gimplify_va_arg_internal): Declare.
34694         * internal-fn.c (expand_VA_ARG): New unreachable function.
34695         * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
34696         * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
34697         (expand_ifn_va_arg): New function.
34698         (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
34699         (pass_stdarg::execute): Call expand_ifn_va_arg.
34700         (pass_data_lower_vaarg): New pass_data.
34701         (pass_lower_vaarg): New gimple_opt_pass.
34702         (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
34703         (make_pass_lower_vaarg): New function.
34704         * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
34705         properties_required field.
34706         * passes.def (all_passes): Add pass_lower_vaarg.
34707         * tree-pass.h (PROP_gimple_lva): Add define.
34708         (make_pass_lower_vaarg): Declare.
34710 2015-04-17  Tom de Vries  <tom@codesourcery.com>
34712         * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
34713         * calls.c (call_expr_flags): Same.
34715 2015-04-17  Tom de Vries  <tom@codesourcery.com>
34717         * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
34718         (pass_stdarg::execute): ... here.
34720 2015-04-17  Tom de Vries  <tom@codesourcery.com>
34721             Michael Matz  <matz@suse.de>
34723         * tree-cfg.c (make_blocks_1): Factor out of ...
34724         (make_blocks): ... here.
34725         (make_edges_bb): Factor out of ...
34726         (make_edges): ... here.
34727         (gimple_find_sub_bbs): New function.
34728         * tree-cfg.h (gimple_find_sub_bbs): Declare.
34730 2015-04-17  Tom de Vries  <tom@codesourcery.com>
34732         * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
34734 2015-04-17  Yury Gribov  <y.gribov@samsung.com>
34736         * asan.c (set_sanitized_sections): New function.
34737         (section_sanitized_p): Ditto.
34738         (asan_protect_global): Optionally sanitize user-defined
34739         sections.
34740         * asan.h (set_sanitized_sections): Declare new function.
34741         * common.opt (fsanitize-sections): New option.
34742         * doc/invoke.texi (-fsanitize-sections): Document new option.
34743         * opts-global.c (handle_common_deferred_options): Handle new
34744         option.
34746 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
34748         PR debug/65771
34749         * dwarf2out.c (loc_list_from_tree): Return NULL
34750         for DEBUG_EXPR_DECL.
34752 2015-04-17  Christian Bruel  <christian.bruel@st.com>
34754         * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
34755         same attributes.
34757 2015-04-16  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
34759         * ira-color.c (setup_left_conflict_sizes_p): Do not process
34760         node itself when computing left conflict subnode size.
34762 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
34764         * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
34765         * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
34766         *fop_<mode>_1_sse using enabled attribute.  Use
34767         register_mixssei387nonimm_operand operand 1 predicate. Change
34768         alternative 3 constraints from "x" to "v".
34770 2015-04-16  Richard Biener  <rguenther@suse.de>
34772         PR tree-optimization/65774
34773         * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
34774         bit-value tracking on.
34776 2015-04-16  Richard Biener  <rguenther@suse.de>
34778         PR tree-optimization/64277
34779         * tree-vrp.c (check_array_ref): Fix anti-range handling,
34780         simplify upper bound handling.
34781         (search_for_addr_array): Simplify.
34782         (check_array_bounds): Handle ADDR_EXPRs here.
34783         (check_all_array_refs): Simplify.
34785 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
34787         * config/i386/i386.c (print_reg): Rewrite function.
34789 2015-04-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
34791         * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
34792         Invert the condition.
34794 2015-04-16  Renlin Li  <renlin.li@arm.com>
34796         * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
34797         simplifications for UNSIGNED_FLOAT.
34799 2015-04-16  Nick Clifton  <nickc@redhat.com>
34801         * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
34802         MUL_UNINIT.
34803         (enum rl78_cpu_type): New.
34804         * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
34805         (umulhi3_shift_virt): Remove m constraint from operand 1.
34806         (umulqihi3_virt): Likewise.
34807         * config/rl78/rl78.c (rl78_option_override): Add code to process
34808         -mcpu and -mmul options.
34809         (rl78_alloc_physical_registers): Add code to handle divhi and
34810         divsi valloc attributes.
34811         (set_origin): Likewise.
34812         * config/rl78/rl78.h (RL78_MUL_G14): Define.
34813         (TARGET_G10, TARGET_G13, TARGET_G14): Define.
34814         (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
34815         __RL78_Gxx__.
34816         (ASM_SPEC): Pass -mcpu on to assembler.
34817         * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
34818         (mulqi3_rl78): Likewise.
34819         (mulhi3_g13): Likewise.
34820         (mulhi3): Generate the G13 or G14 versions of the insn directly.
34821         (mulsi3): Likewise.
34822         (mulhi3_g14): Add clobbers of AX and BC.
34823         (mulsi3_g14): Likewise.
34824         (mulsi3_g13): Likewise.
34825         (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
34826         (udivmodsi4_g14, udivmodsi4_g13): New patterns.
34827         * config/rl78/rl78.opt (mmul): Initialise value to
34828         RL78_MUL_UNINIT.
34829         (mcpu): New option.
34830         (m13, m14, mrl78): New option aliases.
34831         * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
34832         (MULTILIB_DIRNAMES): Add g13 and g14.
34833         * doc/invoke.texi: Document -mcpu and -mmul options.
34835 2015-04-16  Richard Biener  <rguenther@suse.de>
34837         * tree-ssa-ccp.c (likely_value): See if we have operands that
34838         are marked as never simulate again and return CONSTANT in this
34839         case.
34840         * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
34841         not have any operands that will be simulated again as
34842         not being simulated again.
34844 2015-04-15  Uros Bizjak  <ubizjak@gmail.com>
34846         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
34847         Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
34848         (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
34849         attribute.
34850         (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
34851         enabled attribute.
34852         (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
34853         *float<SWI48:mode><MODEF:mode>2_sse.
34854         (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
34855         enabled attribute.
34856         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
34857         enabled attribute.
34859 2015-04-15  Tom de Vries  <tom@codesourcery.com>
34861         PR other/65487
34862         * function.c (push_dummy_function): New function.
34863         (init_dummy_function_start): Use push_dummy_function.
34864         (pop_dummy_function): New function.  Factored out of ...
34865         (expand_dummy_function_end): ... here.
34866         * function.h (push_dummy_function, pop_dummy_function): Declare.
34867         * passes.c (pass_manager::dump_passes): Use push_dummy_function and
34868         pop_dummy_function.
34869         * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
34871 2015-04-15  Jeff Law  <law@redhat.com>
34873         PR tree-optimization/47679
34874         * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
34875         need for forward declaration in upcoming changes.
34876         (record_conditions, record_edge_info): Likewise.
34878         PR rtl-optimization/42522
34879         * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
34880         SIGN_EXTRACT as a whole object rather than simplifying
34881         its operand.
34883 2015-04-15  Jakub Jelinek  <jakub@redhat.com>
34885         PR ipa/65765
34886         * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
34887         and GIMPLE_PREDICT use break instead of return true. For
34888         GIMPLE_EH_DISPATCH, compare dispatch region.
34890 2015-04-14  Matthew Wahab  <matthew.wahab@arm.com>
34892         * doc/extend.texi (__sync Builtins): Simplify some text.  Update
34893         details about the implementation.  Make clear preference for
34894         __atomic builtins.  Reduce possibility of future change.
34896 2015-04-15  Nick Clifton  <nickc@redhat.com>
34898         * config/rx/rx.opt (mallow-string-insns): New option.
34899         * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
34900         builtin if string instructions are denied.
34901         * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
34902         __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
34903         appropriate.
34904         (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
34905         * config/rx/rx.md (movstr): Enable pattern only if string
34906         instructions are allowed.
34907         (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
34908         (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
34909         * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
34910         (MULTILIB_DIRNAMES): Add no-strings.
34911         * doc/invoke.texi: Document -mno-allow-string-insns.
34913 2015-04-15  Alan Modra  <amodra@gmail.com>
34915         PR target/65408
34916         PR target/58744
34917         PR middle-end/36043
34918         * calls.c (load_register_parameters): Don't load past end of
34919         mem unless suitably aligned.
34921 2015-04-15  Nick Clifton  <nickc@redhat.com>
34923         * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
34924         decrement instruction as being frame related.
34925         (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
34926         based addresses.
34927         If zero extending a function address enclose the operation in
34928         %code(...).
34929         (rl78_preferred_reload_class): New function.
34930         (TARGET_PREFERRED_RELOAD_CLASS): Define.
34931         * config/rl78/rl78.md: Remove useless constraints in expanders.
34932         (mulqi3_rl78): Remove + qualifier on input-only operand 1.
34933         (mulhi3_rl78): Likewise.
34934         (mulhi3_g13): Likewise.
34935         (mulsi3_rl78): Likewise.
34936         (es_addr): Move to before the multiply patterns.
34938 2015-04-15  Alan Modra  <amodra@gmail.com>
34940         * function.h (struct emit_status): Delete x_first_insn, x_last_insn
34941         and sequence_stack.  Add seq.
34942         (seq_stack): Delete.
34943         * function.c (prepare_function_start): Don't access x_last_insn.
34944         * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
34945         (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
34946         * emit_rtl.c (start_sequence, push_topmost_sequence,
34947         pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
34948         sequence accessors.
34949         (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
34950         remove_insn): Likewise.  Simplify.
34951         * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
34952         and pop_topmost_sequence.
34953         (m32c_function_needs_enter): Use get_topmost_sequence.  Ignore
34954         debug insns.
34955         * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
34957 2015-04-14  Yvan Roux  <yvan.roux@linaro.org>
34959         PR target/65729
34960         * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
34961         the assertiion.
34963 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
34965         * config/i386/i386.h (LEGACY_INT_REG_P): New define.
34966         (LEGACY_INT_REGNO_P): Ditto.
34967         (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
34968         (ANY_MASK_REG_P): Remove.
34969         (BND_REG_P): Rename from ANY_BND_REG_P.
34970         * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
34971         legacy integer registers.  Do not handle MMX_REG_P in a special way.
34972         Merge 64byte and 32byte SSE handling.
34974 2015-04-14  Nick Clifton  <nickc@redhat.com>
34976         * expr.c (expand_assignment): Force an address offset computation
34977         into a register before changing its mode.
34978         (expand_expr_real_1): Likewise.
34980 2015-04-14  Alan Lawrence  <alan.lawrence@arm.com>
34982         * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
34983         vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
34984         vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
34985         vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
34986         vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
34987         vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
34988         vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
34989         and __aarch64_vget_lane_any.
34991 2015-04-14  Jakub Jelinek  <jakub@redhat.com>
34993         PR rtl-optimization/65761
34994         * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
34995         get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
34997 2015-04-14  Richard Biener  <rguenther@suse.de>
34999         * graphite-scop-detection.c: Do not include cp/cp-tree.h.
35000         (graphite_can_represent_scev): Use POINTER_TYPE_P.
35002 2015-04-14  Richard Biener  <rguenther@suse.de>
35004         PR tree-optimization/65758
35005         * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
35006         against -1.
35007         (ccp_lattice_meet): Likewise.
35008         (bit_value_unop): Likewise.
35009         (bit_value_binop): Likewise.
35010         (bit_value_assume_aligned): Likewise.
35012 2015-04-14  Christian Bruel  <christian.bruel@st.com>
35014         * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
35015         function.
35017 2015-04-14  Marc Glisse  <marc.glisse@inria.fr>
35019         PR tree-optimization/63387
35020         * match.pd ((x unord x) | (y unord y) -> (x unord y),
35021         (x unord x) | (x unord y) -> (x unord y)): New simplifications.
35023 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
35025         * config/i386/predicates.md (any_QIreg_operand): Rename from
35026         q_regs_operand.  Do not process subregs.
35027         (QIreg_operand): Use QI_REGNO_P predicate.
35028         (ext_QIreg_operand): Ditto.
35029         (ext_register_operand): Ditto.
35030         * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
35031         (AND splitters): Ditto.
35032         (AND with -65536 splitter): Add SWI48 mode for operand 0.
35033         (AND with -256 splitter): Use any_QIreg_operand predicate and
35034         SWI248 mode for operand 0.
35035         (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
35036         mode for operand 0.
35037         (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
35039 2015-04-13  Gerald Pfeifer  <gerald@pfeifer.com>
35041         * doc/plugins.texi: Rewrite first introductory paragraph.
35043 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
35045         * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
35046         (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
35048 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
35050         * ipa-profie.c (ipa_profile): Check number of parameters
35051         and possible polymorphic call targets before
35052         devirtualizing.
35054 2015-04-13  Uros Bizjak  <ubizjak@gmail.com>
35056         * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
35057         *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
35059 2015-04-13  Richard Biener  <rguenther@suse.de>
35061         PR tree-optimization/65204
35062         * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
35063         takens for bit-CCP.
35065 2015-04-13  Richard Biener  <rguenther@suse.de>
35067         PR target/65660
35068         * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
35069         and cond_not_taken_branch_cost to 4 and 2.
35070         (bdver2_cost): Likewise.
35071         (bdver3_cost): Likewise.
35072         (bdver4_cost): Likewise.
35074 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
35076         * hash-table.h (hash_table constructor): Add mem stats.
35077         (alloc_entries): Likewise.
35079 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
35081         * ipa-cp.c (ipcp_driver): Relase prev_edge.
35082         * passes.c (execute_one_pass): Only add transform if pass has one.
35084 2015-04-12  Joseph Myers  <joseph@codesourcery.com>
35086         * config/i386/i386.c (ix86_option_override_internal): Don't set
35087         -fprefetch-loop-arrays if optimizing for size.
35089 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
35090             Gerald Pfeifer  <gerald@pfeifer.com>
35092         * doc/contrib.texi (Contributors): Add Martin Jambor and
35093         Michael Matz.
35095 2015-04-12  Jakub Jelinek  <jakub@redhat.com>
35097         * BASE-VER: Set to 6.0.0.
35099         PR tree-optimization/65747
35100         * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
35101         rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
35103 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
35105         * doc/invoke.texi (-Wmemset-transposed-args): Break a long
35106         sentence.  Improve grammar.
35108 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
35110         * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
35112 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
35114         PR ipa/65743
35115         * ipa-inline-transform.c (speculation_removed): Remove static var.
35116         (check_speculations): New function.
35117         (clone_inlined_nodes): Do not check spculations.
35118         (inline_call): Call check_speculations.
35119         * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
35120         consider non-invariants.
35122 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
35123             Martin Liska  <mliska@suse.cz>
35125         PR ipa/65722
35126         * ipa-icf.c (sem_item::compare_cgraph_references): function and
35127         variable can not match.
35128         (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
35129         (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
35131 2015-04-11  Jakub Jelinek  <jakub@redhat.com>
35133         PR tree-optimization/65735
35134         * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
35135         Remove visited_phis argument, add visited_bbs, avoid recursing into the
35136         same bb rather than just into the same phi node.
35137         (thread_through_normal_block): Adjust caller.
35139 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
35141         * doc/contrib.texi (Contributors): Add Ira Rosen.
35143 2015-04-11  Benno Schulenberg  <bensberg@justemail.net>
35145         * gcov.c (find_source): Fix miswording in error message.
35146         * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
35147         (ix86_expand_sse_comi_round): Fix typo in error message.
35149 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
35151         * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
35153 2015-04-10  Gerald Pfeifer  <gerald@pfeifer.com>
35155         * doc/contrib.texi (Contributors): Update Joe Buck's entry.
35157 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
35159         PR target/65710
35160         * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
35161         Print bad_spills_num and insn_pseudos_num.
35163 2015-04-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
35165         PR target/65694
35166         * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
35167         when creating +1 values for SImode.
35169 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
35171         PR target/65729
35172         * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
35173         assert.
35175 2015-04-10  Jakub Jelinek  <jakub@redhat.com>
35176             Iain Sandoe  <iain@codesourcery.com>
35178         PR target/65351
35179         * configure: Regenerate.
35181 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
35183         PR target/65671
35184         * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
35186 2015-04-09  Gerald Pfeifer  <gerald@pfeifer.com>
35188         * doc/contrib.texi (Contributors): Add John Marino.
35190 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
35192         PR tree-optimization/65709
35193         * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
35194         TREE_TYPE (TREE_TYPE (t)).
35196 2015-04-09  Vladimir Makarov  <vmakarov@redhat.com>
35198         PR target/65710
35199         * lra-int.h (lra_bad_spill_regno_start): New.
35200         * lra.c (lra_bad_spill_regno_start): New.
35201         (lra): Set up lra_bad_spill_regno_start.  Set up
35202         lra_constraint_new_regno_start unconditionally.
35203         * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
35204         spill preferences.
35206 2015-04-09  Marek Polacek  <polacek@redhat.com>
35207             Jakub Jelinek  <jakub@redhat.com>
35209         PR middle-end/65554
35210         * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
35211         (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
35212         of STRIP_NOPS.
35214 2015-04-09  Segher Boessenkool  <segher@kernel.crashing.org>
35216         PR rtl-optimization/65693
35217         * combine.c (is_parallel_of_n_reg_sets): Move outside of
35218         #ifndef HAVE_cc0.
35220 2015-04-09  Georg-Johann Lay  <avr@gjlay.de>
35222         PR target/65296
35223         * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
35224         device specs file if "device-specs%s" didn't resolve to a path.
35226 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
35228         PR target/65676
35229         * config/i386/i386.c (fixup_modeless_constant): New.
35230         (ix86_expand_args_builtin): Fixup modeless constant operand.
35231         (ix86_expand_round_builtin): Ditto.
35232         (ix86_expand_special_args_builtin): Ditto.
35233         (ix86_expand_builtin): Ditto.
35235 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
35237         PR target/65693
35238         * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
35239         any pow2 integer in between 2 and 0x80000000U inclusive.
35241 2015-04-08  Segher Boessenkool  <segher@kernel.crashing.org>
35243         PR rtl-optimization/65693
35244         * combine.c (is_parallel_of_n_reg_sets): Change first argument
35245         from an rtx_insn * to an rtx.
35246         (try_combine): Adjust both callers.  Use it once more.
35248 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
35250         * tree-chkp.c (chkp_find_const_bounds_var): Remove.
35251         (chkp_make_static_const_bounds): Search existing
35252         symbol by assembler name.  Use make_decl_one_only.
35253         (chkp_get_zero_bounds_var): Remove node search which
35254         is now performed in chkp_make_static_const_bounds.
35255         (chkp_get_none_bounds_var): Likewise.
35257 2015-04-08  Michael Witten  <mfwitten@gmail.com>
35259         * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
35260         to an example.
35262 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
35264         * tree.h (CONVERT_EXPR_P): Commentary typo fix.
35266 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
35268         * doc/extend.texi (__sync Builtins): Fix grammar.
35270 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
35272         * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
35274 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
35276         * varasm.c (emit_local): Move definition of align.
35278 2015-04-08  Julian Brown  <julian@codesourcery.com>
35280         * config/nvptx/mkoffload.c (process): Support variable mapping.
35282 2015-03-27  Trevor Saunders  <tbsaunde@tbsaunde.org>
35284         * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
35285         alpha_links **.
35286         (alpha_write_one_linkage): Correct typo.
35288 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
35290         * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
35292 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
35294         * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
35296 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
35298         * tree-chkp.h (chkp_insert_retbnd_call): New.
35299         * tree-chkp.c (chkp_insert_retbnd_call): New.
35300         * ipa-split.c (insert_bndret_call_after): Remove.
35301         (split_function): Use chkp_insert_retbnd_call.
35302         * cgraphunit.c (cgraph_node::expand_thunk): Build returned
35303         bounds for instrumented functions.
35305 2015-04-07  Jan Hubicka  <hubicka@ucw.cz>
35307         PR ipa/65540
35308         * calls.c (initialize_argument_information): When producing tail
35309         call also turn SSA_NAMES passed by references to original PARM_DECLs
35311 2015-04-07  Vladimir Makarov  <vmakarov@redhat.com>
35313         PR target/65648
35314         * lra-remat.c (do_remat): Process input and non-input insn
35315         registers separately.
35317 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
35319         PR debug/65678
35320         * valtrack.c (debug_lowpart_subreg): New function.
35321         (dead_debug_insert_temp): Use it.
35323         PR middle-end/65680
35324         * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
35325         into signed HOST_WIDE_INT the same as negative bit_offset.
35327 2015-04-07  Ilya Enkovich  <ilya.enkovich@intel.com>
35329         * ipa-comdats.c (ipa_comdats): Visit all thunks
35330         to set proper comdat group.
35332 2015-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
35334         PR target/65489
35335         * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
35336         on constants for NEON VSTRUCT modes.
35338 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
35339             Iain Sandoe  <iain@codesourcery.com>
35341         PR target/65351
35342         * configure: Regenerate.
35344 2015-04-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
35346         PR target/65614
35347         * config/rs6000/rs6000.c (struct processor_costs): Add cost field
35348         for SF->DF conversions to make FLOAT_EXTEND more expensive, so
35349         that LFD is used to load double constants instead of LFS.  Add
35350         defaults for all costs structures.  Add comments for missing
35351         initialization fields.
35352         (size32_cost): Likewise.
35353         (size64_cost): Likewise.
35354         (rs64a_cost): Likewise.
35355         (mpccore_cost): Likewise.
35356         (ppc403_cost): Likewise.
35357         (ppc405_cost): Likewise.
35358         (ppc440_cost): Likewise.
35359         (ppc476_cost): Likewise.
35360         (ppc601_cost): Likewise.
35361         (ppc603_cost): Likewise.
35362         (ppc604_cost): Likewise.
35363         (ppc604e_cost): Likewise.
35364         (ppc620_cost): Likewise.
35365         (ppc630_cost): Likewise.
35366         (ppccell_cost): Likewise.
35367         (ppc750_cost): Likewise.
35368         (ppc7450_cost): Likewise.
35369         (ppc8540_cost): Likewise.
35370         (ppce300c2c3_cost): Likewise.
35371         (ppce500mc_cost): Likewise.
35372         (ppce500mc64_cost): Likewise.
35373         (ppce5500_cost): Likewise.
35374         (ppce6500_cost): Likewise.
35375         (titan_cost): Likewise.
35376         (power4_cost): Likewise.
35377         (power6_cost): Likewise.
35378         (power7_cost): Likewise.
35379         (power8_cost): Likewise.
35380         (ppca2_cost): Likewise.
35381         (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
35383         * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
35384         instead of XXLOR to copy SFmode to clear out dirty bits created
35385         when SFmode denormals are generated.
35386         (mov<mode>_hardfloat, FMOVE32 case): Likewise.
35387         (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
35389 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
35391         * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
35392         * config/aarch64/aarch64-cores.def (exynos-m1): New core.
35393         * config/aarch64/aarch64-tune.md: Regenerate.
35395 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
35397         * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
35398         * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
35399         * config/arm/arm-cores.def (exynos-m1): New core.
35400         * config/arm/arm-tune.md: Regenerate.
35401         * config/arm/arm-tables.opt: Add entry for "exynos-m1".
35402         * config/arm/bpabi.h: Likewise.
35404 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
35406         * ipa-cp (set_single_call_flag): Remove too
35407         restrictive assert.
35409 2015-04-06  Ilya Verbin  <ilya.verbin@intel.com>
35411         * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
35412         GOMP_offload_unregister from the destructor.
35414 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
35416         * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
35417         flags for instrumentation thunk.
35418         (chkp_produce_thunks): Likewise.
35420 2015-04-05  Martin Liska  <mliska@suse.cz>
35422         PR ipa/65665
35423         * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
35424         has computed data structure.
35425         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
35427 2015-04-04  Jan Hubicka  <hubicka@ucw.cz>
35429         * invoke.texi (inline-unit-growth): Increase growth to 20%
35430         * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
35432 2015-04-04  Vladimir Makarov  <vmakarov@redhat.com>
35434         PR target/65647
35435         * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New.  Add its
35436         value checking.
35437         (lra_rematerialization_iter): New.
35438         * lra.c (lra): Initialize lra_rematerialization_iter.
35439         Stop updating lra_constraint_new_regno_start after switching of
35440         inheritance and rematerialization.
35441         * lra-remat.c (lra_rematerialization_iter): New.
35442         (lra_remat): Add printing pass iteration.  Do rematerialization
35443         only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
35445 2015-04-04  Richard Biener  <rguenther@suse.de>
35447         PR tree-optimization/64909
35448         PR tree-optimization/65660
35449         * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
35450         to take a cost vector for scalar iteration cost.
35451         (vect_get_single_scalar_iteration_cost): Likewise.
35452         * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
35453         Compute the scalar iteration cost into a cost vector.
35454         (vect_get_known_peeling_cost): Use the scalar cost vector to
35455         account for the cost of the peeled iterations.
35456         (vect_estimate_min_profitable_iters): Likewise.
35457         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
35458         Likewise.
35460 2015-04-04  Alan Modra  <amodra@gmail.com>
35462         PR target/65576
35463         PR target/65240
35464         * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
35465         0.0 constant unless TARGET_VSX.
35466         * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
35467         alternative.
35469 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
35471         PR ipa/65654
35472         * ipa-inline-transform.c (inline_call): Skip sanity check to work
35473         around the ICE
35475 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
35477         PR ipa/65655
35478         * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
35479         speculative indirect edges to avoid ordering issue.
35481 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
35483         PR ipa/65076
35484         * ipa-inline.c (edge_badness): Add combined size to the denominator.
35486 2015-04-03  Jakub Jelinek  <jakub@redhat.com>
35488         * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
35489         TYPE_ARTIFICIAL on the .omp_data* types.
35491 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
35493         * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
35494         instrumentation thunks.
35496 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
35498         * config/i386/i386.c (ix86_expand_call): Avoid nested
35499         PARALLEL in returned call value.
35501 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
35503         * lto-cgraph.c (input_cgraph_1): Always link instrumented
35504         assembler name with original one.
35506 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
35508         * config/i386/i386.c (ix86_register_priority): Use AX_REG.
35510 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
35512         Revert parts of r216820.
35513         * config/i386/i386.md (movqi_internal): Correct type calculation
35514         for alternatives 3 and 5.
35516 2015-04-02  Jakub Jelinek  <jakub@redhat.com>
35518         PR preprocessor/61977
35519         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
35520         predefine __vector/__bool/__pixel macros nor context sensitive
35521         macros for CLK_ASM.
35522         * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
35524 2015-04-02  John David Anglin  <danglin@gcc.gnu.org>
35526         * config/pa/pa.c (pa_output_move_double): Directly handle register
35527         indexed memory operand.  Simplify handling of scaled register indexed
35528         memory operands.
35530 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
35532         PR driver/65444
35533         * config/i386/linux-common.h (MPX_SPEC): New.
35534         (CHKP_SPEC): Add MPX_SPEC.
35535         * doc/invoke.texi (-fcheck-pointer-boudns): Document
35536         possible issues with '-z bndplt' support in linker.
35538 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
35540         * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
35541         (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
35542         (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
35543         * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
35544         (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
35546 2015-04-01  Uros Bizjak  <ubizjak@gmail.com>
35548         * config/i386/sync.md (UNSPEC_MOVA): Remove.
35549         (atomic_load<mode>): Change operand 0 predicate to
35550         nonimmediate_operand and fix up the destination when needed.
35551         Use UNSPEC_LDA.
35552         (atomic_loaddi_fpu): Use UNSPEC_LDA.
35553         (atomic_store<mode>): Change operand 1 predicate to
35554         nonimmendate_operand and move the source to register when needed.
35555         Use UNSPEC_STA.
35556         (atomic_store<mode>_1): Use UNSPEC_STA.
35557         (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
35558         Fix moves from memory operand.  Use UNSPEC_STA.
35560 2015-04-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
35562         * expmed.c (strict_volatile_bitfield_p): Check that the access will
35563         not cross a MODESIZE boundary.
35564         (store_bit_field, extract_bit_field): Added assertions in the
35565         strict volatile bitfields code path.
35567 2015-04-01  Max Ostapenko  <m.ostapenko@partner.samsung.com>
35569         PR target/65624
35570         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
35571         Increase args array size by one to avoid buffer overflow.
35573 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
35575         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
35576         split_part.
35577         * ipa-inline.c (edge_badness): Add wrapper penalty.
35578         (sum_callers): Move up.
35579         (inline_small_functions): Set single_caller.
35580         * ipa-inline.h (inline_summary): Add single_caller.
35581         * ipa-split.c (split_function): Set split_part.
35582         (cgraph_node::create_clone): Do not shadow decl; copy split_part.
35583         * cgraph.h (cgraph_node): Add split_part.
35585 2015-03-31  Uros Bizjak  <ubizjak@gmail.com>
35587         PR target/58945
35588         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
35589         Do not split operands 0 and operands 2 to halfmode.
35590         (atomic_compare_and_swap<mode>): Update for
35591         atomic_compare_and_swap<dwi>_doubleword changes.
35593 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
35595         * tree.c (need_assembler_name_p): Artificial types have no ODR names.
35596         * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
35597         no caching is done.
35599 2015-03-31  Martin Liska  <mliska@suse.cz>
35601         PR ipa/65557
35602         * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
35603         has already filled up function summary.
35604         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
35606 2015-03-31  Richard Biener  <rguenther@suse.de>
35608         * tree-sra.c (create_access_replacement): Drop under-/over-alignment
35609         of types.
35611 2015-03-31  Dominik Vogt  <vogt@linux.vnet.ibm.com>
35613         * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
35614         nested functions.
35615         (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
35616         (s390_asm_output_function_label): Adapt to new signature of
35617         s390_function_num_hotpatch_hw
35618         Optimise the code generating assembler output.
35619         Add comments to assembler file.
35621 2015-03-31  Richard Biener  <rguenther@suse.de>
35623         PR middle-end/65626
35624         * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
35625         of the noreturn call so it is last and cleanup_control_flow_bb
35626         can do the CFG part.
35628 2015-03-31  Ilya Enkovich  <ilya.enkovich@intel.com>
35630         PR target/65531
35631         * ipa-chkp.c (chkp_maybe_create_clone): Don't set
35632         same_comdat_group for external symbols.
35633         * symtab.c (symtab_node::verify_symtab_nodes): Avoid
35634         infinite same_comdat_group traversal loop.
35636 2015-03-31  Jakub Jelinek  <jakub@redhat.com>
35638         PR plugins/61176
35639         * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
35640         automatically to $headers.
35642 2015-03-30  Jakub Jelinek  <jakub@redhat.com>
35644         PR ipa/65610
35645         * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
35646         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
35647         function.
35648         (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
35649         Use it.
35650         * ipa-prop.c (param_type_may_change_p): Likewise.
35651         * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
35652         (remove_unused_scope_block_p): Add in_ctor_dtor_block
35653         argument.  Before inlining, preserve
35654         inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
35655         with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them.  Adjust
35656         recursive calls.
35657         (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
35659 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
35661         PR ipa/65076
35662         * ipa-inline.c (edge_badness): Base denominator on callee's
35663         grwoth squared.
35665 2015-03-27  Martin Jambor  <mjambor@suse.cz>
35667         PR ipa/65478
35668         * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
35669         (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
35670         * ipa-prop.h (ipa_node_params): New flags node_within_scc and
35671         node_calling_single_call.
35672         * ipa-cp.c (count_callers): New function.
35673         (set_single_call_flag): Likewise.
35674         (initialize_node_lattices): Count callers and set single_flag_call if
35675         necessary.
35676         (incorporate_penalties): New function.
35677         (good_cloning_opportunity_p): Use it, dump new flags.
35678         (propagate_constants_topo): Set node_within_scc flag if appropriate.
35679         * doc/invoke.texi (ipa-cp-recursion-penalty,
35680         ipa-cp-single-call-pentalty): Document.
35682 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
35684         PR ipa/65588
35685         * symtab.c (symtab_node::get_partitioning_class): Register vars
35686         are duplicated.
35687         * varpool.c (symbol_table::output_variables) Do not assemble unefined
35688         decls for non-symbols.
35690 2015-03-27  H.J. Lu  <hongjiu.lu@intel.com>
35692         PR target/65248
35693         * output.h (default_binds_local_p_2): New.
35694         * varasm.c (default_binds_local_p_2): Renamed to ...
35695         (default_binds_local_p_3): This.  Don't return true on protected
35696         data symbol if protected data may be external.
35697         (default_binds_local_p): Use default_binds_local_p_3.
35698         (default_binds_local_p_1): Likewise.
35699         (default_binds_local_p_2): New.
35700         * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
35701         default_binds_local_p_2 if TARGET_MACHO is undefined.
35703 2015-03-27  Jakub Jelinek  <jakub@redhat.com>
35705         PR target/65593
35706         * config/i386/i386.c (legitimize_pic_address): If base
35707         is SYMBOL_REF or LABEL_REF using %rip addressing, force
35708         it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
35710 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
35712         PR target/65531
35713         * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
35714         comdat groups.
35716 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
35718         PR ipa/65600
35719         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
35720         of optimized out indirect call.
35721         (redirect_to_unreachable): Always build symbol table node for
35722         BUILT_IN_UNREACHABLE
35724 2015-03-27  Vladimir Makarov  <vmakarov@redhat.com>
35726         PR target/65407
35727         * ira-costs.c (record_reg_classes): Process all constraint string
35728         containing 0-9.
35730 2015-03-27  Bernd Schmidt  <bernds@codesourcery.com>
35732         * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
35733         memory_operand.
35735         PR target/65052
35736         * config/c6x/constraints.md (S3): New constraint.
35737         * config/c6x/c6x.md (real_jump): Use it.
35739 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
35741         PR middle-end/65595
35742         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
35743         do redirection if the call is not optimized out.
35745 2015-03-27  Ilya Enkovich  <ilya.enkovich@intel.com>
35747         PR target/65495
35748         * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
35749         (fchkp-check-incomplete-type): Add LTO.
35750         (fchkp-zero-input-bounds-for-main): Likewise.
35751         (fchkp-first-field-has-own-bounds): Likewise.
35752         (fchkp-narrow-bounds): Likewise.
35753         (fchkp-narrow-to-innermost-array): Likewise.
35754         (fchkp-use-static-bounds): Likewise.
35755         (fchkp-use-static-const-bounds): Likewise.
35756         (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
35758 2015-03-27  Marek Polacek  <polacek@redhat.com>
35760         * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
35762 2015-03-27  Marek Polacek  <polacek@redhat.com>
35764         PR sanitizer/65583
35765         * ubsan.c (ubsan_create_edge): New function.
35766         (instrument_bool_enum_load): Call it.
35767         (instrument_nonnull_arg): Likewise.
35768         (instrument_nonnull_return): Likewise.
35769         (instrument_object_size): Likewise.
35771 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
35773         * lto-streamer.h (class lto_location_cache): Turn loc_cache into
35774         auto_vec.
35776 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
35778         PR lto/65536
35779         * lto-streamer.h (class lto_location_cache): New.
35780         (struct data_in): Add location_cache.
35781         (lto_input_location): Update prototype.
35782         (stream_input_location_now): New.
35783         * streamer-hooks.h (struct streamer_hooks): Make input_location to take
35784         pointer to location.
35785         (stream_input_location): Update.
35786         * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
35787         (warn_odr): Apply location cache before warning.
35788         (lto_input_location): Update prototype.
35789         * gimple-streamer-in.c (input_phi, input_gimple_stmt):
35790         Use stream_input_location_now.
35791         * lto-streamer-in.c (lto_location_cache::current_cache): New static
35792         variable.
35793         (lto_location_cache::cmp_loc): New function.
35794         (lto_location_cache::apply_location_cache): New function.
35795         (lto_location_cache::accept_location_cache): New function.
35796         (lto_location_cache::revert_location_cache): New function.
35797         (lto_location_cache::input_location): New function.
35798         (lto_input_location): Do location caching.
35799         (stream_input_location_now): New function.
35800         (input_eh_region, input_struct_function_base): Use
35801         stream_input_location_now.
35802         (lto_data_in_create): use new.
35803         (lto_data_in_delete): Use delete.
35804         * tree-streamer-in.c (unpack_ts_block_value_fields,
35805         unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
35806         lto_input_ts_exp_tree_pointers): Update for cached location api.
35808 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
35810         PR ipa/65076
35811         * passes.def: Add pass_nothrow.
35812         * ipa-pure-const.c: (pass_data_nothrow): New.
35813         (pass_nothrow): New.
35814         (pass_nothrow::execute): New.
35815         (make_pass_nothrow): New.
35816         * tree-pass.h (make_pass_nothrow): Declare.
35818 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
35820         * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
35821         edge to change by speculation resolution or redirection.
35822         (edge_set_predicate): Likewise.
35823         (inline_summary_t::duplicate): Likewise.
35824         (remap_edge_summaries): Likewise.
35826 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
35828         * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
35829         New macros.
35830         (can_inline_edge_p): Relax option matching for always inline functions.
35832 2015-03-26  Uros Bizjak  <ubizjak@gmail.com>
35834         PR target/65561
35835         * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
35836         Check operand 4 and operand 0 for equality.
35837         (avx512f_vextract<shuffletype>32x4_1_maskm):
35838         Check operand 6 and operand 0 for equality.
35839         (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
35840         for equality.
35841         (vec_extract_hi_<mode>_maskm): Ditto.
35843 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
35845         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
35846         dead calls back to live.
35847         (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
35848         cross check to ...
35849         (cgraph_node::verify_node): ... here; verify only callee edges,
35850         not caller.
35851         * cif-code.def (CILK_SPAWN): New code.
35853 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
35855         * ipa-inline-analysis.c (redirect_to_unreachable): New function.
35856         (edge_set_predicate): Use it to mark unreachable edges.
35857         (inline_summary_t::duplicate): Remove unnecesary code.
35858         (remap_edge_summaries): Likewise.
35859         (dump_inline_summary): Report contains_cilk_spawn.
35860         (compute_inline_parameters): Compute contains_cilk_spawn.
35861         (inline_read_section, inline_write_summary): Stream
35862         contains_cilk_spawn.
35863         * ipa-inline.c (can_inline_edge_p): Do not touch
35864         DECL_STRUCT_FUNCTION that may not be available;
35865         use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
35866         remove check for callee_fun->can_throw_non_call_exceptions and
35867         replace it by optimization attribute check; check for flag_exceptions.
35868         * ipa-inline-transform.c (inline_call): Maintain
35869         DECL_FUNCTION_PERSONALITY
35870         * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
35872 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
35874         PR tree-optimization/65551
35875         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
35876         TYPE_PRECISION only for INTEGRAL_TYPE_P types.
35878 2015-03-26  Richard Biener  <rguenther@suse.de>
35880         PR middle-end/65555
35881         * tree-cfg.c (verify_gimple_call): Do not require a call to
35882         have no LHS if it wasn't recognized as control altering yet.
35884 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
35886         PR tree-optimization/64715
35887         * passes.def: Add another instance of pass_object_sizes before ccp1.
35888         * tree-object-size.c (pass_object_sizes::execute): In
35889         first_pass_instance, only handle __bos (, 1) and __bos (, 3)
35890         calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
35891         __bos result and the computed constant.  Remove redundant
35892         checks, obsoleted by gimple_call_builtin_p test.
35894         * var-tracking.c (variable_tracking_main_1): Don't track
35895         variables for targetm.no_register_allocation targets.
35897 2015-03-26  Oleg Endo  <olegendo@gcc.gnu.org>
35899         * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
35900         * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
35902 2015-03-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
35904         PR target/65569
35905         * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
35906         XXLXOR to create 0.0.  On pre-VSX systems make sure the constant
35907         0.0 is correctly setup.
35908         (extenddftf2_internal): Likewise.
35910 2015-03-25  Sebastian Pop  <s.pop@samsung.com>
35912         PR tree-optimization/65177
35913         * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
35914         (bb_in_bbs): New.
35915         (duplicate_seme_region): Renamed duplicate_thread_path.  Redirect all
35916         edges not adjacent on the path to the original code.
35918 2015-03-25  Uros Bizjak  <ubizjak@gmail.com>
35920         PR bootstrap/65537
35921         * doc/install.texi (Building a native compiler): Document new
35922         bootstrap-lto-noplugin configuration.  Mention that bootstrap-lto
35923         configuration assumes that the host supports the linker plugin.
35925 2015-03-25  Ilya Enkovich  <ilya.enkovich@intel.com>
35927         PR target/65508
35928         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
35929         chain for generated call.
35931 2015-03-25  Richard Biener  <rguenther@suse.de>
35933         * passes.c (pass_manager::execute_early_local_passes): Guard
35934         execution of pass_chkp_instrumentation_passes with
35935         flag_check_pointer_bounds.
35936         (pass_chkp_instrumentation_passes::gate): Likewise.
35938 2015-03-25  Martin Liska  <mliska@suse.cz>
35940         PR tree-optimization/65538
35941         * symbol-summary.h (function_summary::~function_summary):
35942         Relese memory for allocated summaries.
35943         (function_summary::release): New function.
35945 2015-03-25  Jakub Jelinek  <jakub@redhat.com>
35947         PR lto/65515
35948         * lto-streamer-out.c (DFS::worklist): New struct.
35949         (DFS::worklist_vec): New data member.
35950         (DFS::next_dfs_num): Remove.
35951         (DFS::DFS): Rewritten using worklist instead of recursion,
35952         using most of code from DFS::DFS_write_tree.
35953         (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
35954         pass it to DFS_write_tree calls.
35955         (DFS::DFS_write_tree): Remove SINGLE_P argument, after
35956         quick initial checks push it into worklist_vec and return.
35958 2015-03-25  Richard Biener  <rguenther@suse.de>
35960         PR middle-end/65519
35961         * genmatch.c (expr::gen_transform): Re-write to avoid
35962         using gimple_build.
35964 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
35966         * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
35968 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
35970         * config/arm/arm.opt (print_tune_info): New option.
35971         * config/arm/arm.c (arm_print_tune_info): New function.
35972         (arm_file_start): Call arm_print_tune_info.
35973         * config/arm/arm-protos.h (struct tune_params): Add comment.
35974         * doc/invoke.texi (@item -mprint-tune-info): New item.
35975         (-mtune): mention it in ARM Option Summary.
35977 2015-03-25  DJ Delorie  <dj@redhat.com>
35979         * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
35980         correct clause.
35982 2015-03-24  Jan Hubicka  <hubicka@ucw.cz>
35983             Martin Liska  <mliska@suse.cz>
35985         * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
35986         * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
35987         (sem_item::add_type): New function.
35988         (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
35989         (sem_function::compare_polymorphic_p): Do not consider indirect calls.
35990         (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
35991         (sem_function::equals_wpa): Fix typo.
35992         * ipa-icf.h (sem_item::add_type): New function.
35993         (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
35994         order.
35996 2015-03-24  Jakub Jelinek  <jakub@redhat.com>
35998         PR tree-optimization/65533
35999         * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
36000         with swapped operands, call vect_free_slp_tree on
36001         SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
36002         vector.
36004 2015-03-24  Richard Biener  <rguenther@suse.de>
36006         PR middle-end/65517
36007         * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
36008         for fixup if necessary.
36010 2015-03-23  Sandra Loosemore  <sandra@codesourcery.com>
36012         * doc/extend.texi (Function Attributes): Add @cindex entries
36013         for all attributes and regularize their format.  Delete text
36014         about long-obsolete 68HC11 and 68HC12 targets.  Move misplaced
36015         information about "eightbit_data", "tiny_data", and "model"
36016         variable attributes to the Variable Attributes section.  Fix
36017         some obvious typos and copy-editing issues.
36018         (Variable Attributes, Type Attributes): Likewise add/fix
36019         @cindex entries for all attributes.
36021 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
36023         PR target/65523
36024         * tree-chkp.c (chkp_build_returned_bound): Ignore
36025         ERF_RETURNS_ARG calls if they have fewer than needed arguments.
36027 2015-03-23  Oleg Endo  <olegendo@gcc.gnu.org>
36029         PR target/65505
36030         * config/sh/predicates.md (simple_mem_operand,
36031         displacement_mem_operand): Add test for reg.
36032         (short_displacement_mem_operand): Test for displacement_mem_operand
36033         before invoking sh_disp_addr_displacement.
36034         * config/sh/constraints.md (Sdd, Sra): Simplify.
36035         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
36036         Remove redundant displacement_mem_operand tests.
36038 2015-03-23  Georg-Johann Lay  <avr@gjlay.de>
36040         PR target/65296
36041         * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
36042         the same -mmcu=MCU more than once.
36044 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
36046         PR bootstrap/65522
36047         * ipa-devirt.c: Remove duplicate demangle.h include.
36049         PR target/65504
36050         * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
36051         on the pseudo.
36052         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
36053         REG_POINTER on *destptr after adjusting it for prologue size.
36055         PR ipa/65521
36056         * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
36057         ultimate_alias_target ()->order ints instead of
36058         ultimate_alias_target () pointers.
36060 2015-03-23  Richard Biener  <rguenther@suse.de>
36062         PR tree-optimization/65518
36063         * tree-vect-stmts.c (vectorizable_load): Reject single-element
36064         interleaving cases we generate absymal code for.
36066 2015-03-23  Richard Biener  <rguenther@suse.de>
36068         PR tree-optimization/65494
36069         * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
36070         matches here.
36071         (vect_analyze_slp_instance): But do that here, always and once.
36073 2015-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
36075         * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
36076         adding T or multiplying by T+1 and subracting T.
36078 2015-03-22  Jeff Law  <law@redhat.com>
36080         PR rtl-optimization/64317
36081         * Makefile.in (OBJS): Add gcse-common.c
36082         * gcse.c: Include gcse-common.h
36083         (struct modify_pair_s): Move structure definition to gcse-common.h
36084         (compute_transp): Move function to gcse-common.c.
36085         (canon_list_insert): Similarly.
36086         (record_last_mem_set_info): Break out some code and put it into
36087         gcse-common.c.  Call into the new common code.
36088         (compute_local_properties): Pass additional arguments to compute_transp.
36089         * postreload-gcse.c: Include gcse-common.h and df.h
36090         (modify_mem_list_set, blocks_with_calls): New variables.
36091         (modify_mem_list, canon_modify_mem_list, transp): Likewise.
36092         (get_bb_avail_insn): Pass in the expression index too.
36093         (alloc_mem): Allocate memory for the new bitmaps and lists.
36094         (free_mem): Free memory for the new bitmaps and lists.
36095         (insert_expr_in_table): Record a bitmap index for each entry we
36096         add to the table.
36097         (record_last_mem_set_info): Call into common code in gcse-common.c.
36098         (get_bb_avail_insn): If no available insn was found in the requested
36099         BB.  If BB has a single predecessor, see if the expression is
36100         transparent in BB and available in that single predecessor.
36101         (compute_expr_transp): New wrapper for compute_transp.
36102         (eliminate_partially_redundant_load): Pass expression's bitmap_index
36103         to get_bb_avail_insn.  Compute next_pred_bb_end a bit later.
36104         (gcse_after_reload_main): If there are elements in the hash table,
36105         then compute transparency for all the elements in the hash table.
36106         * gcse-common.h: New file.
36107         * gcse-common.c: New file.
36109 2015-03-22  Sandra Loosemore  <sandra@codesourcery.com>
36111         * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
36112         as an adjective.
36113         (System Headers): Likewise.
36114         (Ifdef): Likewise.
36115         (Traditional macros): Likewise.
36116         (Invocation): Likewise.
36117         (Option Index): Likewise.
36118         * doc/cppopts.texi (-M): Likewise.
36119         (-finput-charset): Likewise.
36120         (--help): Likewise.
36121         * doc.invoke.texi (AVR Options): Likewise.
36122         (V850 Options): Likewise.
36124 2015-03-22  Jan Hubicka  <hubicka@ucw.cz>
36126         PR ipa/65475
36127         * ipa-devirt.c: Include demangle.h
36128         (odr_type_d): Add field rtti_broken.
36129         (odr_subtypes_equivalent_p): Do not require name to match.
36130         (compare_virtual_tables): Fix typo; if type already has ODR violation,
36131         bypass the tests; be ready for function referneces in vtables that are
36132         not DECL_VIRTUAL; make warnings to be OPT_Wodr.
36133         (warn_odr): Give up for nameless types.
36134         (warn_types_mismatch): Report mismatch in mangled names;
36135         report mismatch in anonymous namespaces; look into component types to
36136         give useful error; report when mismatch is dragged in from other ODR
36137         type.
36138         (odr_types_equivalent_p): Match types for being polymorphic; avoid
36139         duplicated diagnostics.
36140         (add_type_duplicate): Reorder checks so more informative ones come
36141         first; fix typo; do not output "the extra base is defined here" when
36142         we did not warn.
36143         (BINFO_N_BASE_BINFOS): Relax sanity check.
36145 2015-03-22  Martin Liska  <mliska@suse.cz>
36146             Jakub Jelinek  <jakub@redhat.com>
36148         * config/i386/i386.c (def_builtin): Set deferred_isa_values for
36149         masks that can potentially include a builtin.
36150         (ix86_add_new_builtins): Introduce fast filter for isa values
36151         that cannot trigger builtin inclusion.
36153 2015-03-22  Martin Liska  <mliska@suse.cz>
36155         * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
36156         (sem_item::update_hash_by_local_refs): Likewise.
36157         (sem_variable::get_hash): Empty line is fixed.
36158         (sem_item_optimizer::execute): Include adding of hash references.
36159         (sem_item_optimizer::update_hash_by_addr_refs): New function.
36160         (sem_item_optimizer::build_hash_based_classes): Use local hash.
36161         * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
36162         (sem_item::update_hash_by_local_refs): Likewise.
36164 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
36166         PR ipa/65502
36167         * ipa-comdats.c (enqueue_references): Walk through thunks.
36168         (ipa_comdats): Likewise.
36169         (set_comdat_group_1): New function.
36171 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
36173         PR ipa/65475
36174         * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
36175         non-polymorphic
36177 2015-03-22  Dave Korn  <dave.korn.cygwin@gmail.com>
36178             Gerald Pfeifer  <gerald@pfeifer.com>
36180         * doc/contrib.texi (Contributors): Update entry for Danny Smith.
36182 2015-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
36183             Sandra Loosemore  <sandra@codesourcery.com>
36185         * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
36186         function parameter declaration.
36187         * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
36188         Update arguments to nios2_adjust_call_address().
36189         (sibcall_internal): Rename from *sibcall.
36190         (sibcall_value_internal): Rename from *sibcall_value.
36191         * config/nios2/nios2.c (nios2_emit_add_constant): New function.
36192         (nios2_large_got_address): Add target temp reg parameter.
36193         (nios2_got_address): Adjust call to nios2_large_got_address, add
36194         force_reg around it.
36195         (nios2_load_pic_address): Add target temp reg parameter, replace call
36196         to nios2_got_address with corresponding code.
36197         (nios2_legitimize_constant_address): Update call to
36198         nios2_load_pic_address.
36199         (nios2_adjust_call_address): Add temp reg parameter, update PIC case
36200         to use temp reg for PIC loading purposes.
36201         (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
36202         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
36203         (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
36205 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
36207         * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
36208         usage of "the @option{...}".
36209         (-Wopenmp-simd): Likewise.
36210         (-fsanitize-recover): Likewise.
36211         (-fsanitize-undefined-trap-on-error): Likewise.
36212         (-flto): Likewise.
36213         (tracer-dynamic-coverage-feedback): Likewise.
36214         (reorder-block-duplicate-feedback): Likewise.
36215         (loop-unroll-jam-size): Likewise.
36216         (-B): Likewise.
36217         (-I-): Likewise.
36218         (-mabs=legacy): Likewise.
36219         (-mupper-regs-df): Likewise.
36220         (-mupper-regs-sf): Likewise.
36221         (-mpointers-to-nested-functions): Likewise.
36223 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
36225         * doc/extend.texi (Cilk Plus Builtins): Add markup.
36227 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
36229         * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
36230         additional index entries and cross-references.
36231         (-fchkp-check-incomplete-type): Likewise.
36232         (-fchkp-first-field-has-own-bounds): Likewise.
36233         (-fchkp-narrow-to-innermost-array): Likewise.
36234         (-fchkp-use-fast-string-functions): Likewise.
36235         (-fchkp-use-nochk-string-functions): Likewise.
36236         (-fchkp-use-static-const-bounds): Likewise.
36237         (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
36238         (-fchkp-instrument-marked-only): Likewise.
36239         (-fchkp-use-wrappers): Likewise.
36240         (-static-libmpx): Likewise.
36241         (-static-libmpxwrappers): Likewise.
36242         * doc/extend.texi (bnd_legacy): Likewise.
36243         (bnd_instrument): Likewise.
36244         (bnd_variable_size): Likewise.
36245         (Pointer Bounds Checker builtins): Likewise.
36247 2015-03-21  Tom de Vries  <tom@codesourcery.com>
36249         PR tree-optimization/65458
36250         * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
36251         * cgraph.h (cgraph_node): Add parallelized_function field.
36252         * lto-cgraph.c (lto_output_node): Write parallelized_function field.
36253         (input_overwrite_node): Read parallelized_function field.
36254         * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
36255         parallelized_function on cgraph_node for child_fn.
36256         * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
36257         Remove include of gt-tree-parloops.h.
36258         (parallelized_functions): Remove static variable.
36259         (parallelized_function_p): Rewrite using parallelized_function field of
36260         cgraph_node.
36261         (create_loop_fn): Remove adding to parallelized_functions.
36262         * Makefile.in (GTFILES): Remove tree-parloops.c
36264 2015-03-20  Vladimir Makarov  <vmakarov@redhat.com>
36266         PR rtl-optimization/64366
36267         * lra.c (lra_update_insn_regno_info): Consider regs in
36268         CALL_INSN_FUNCTION_USAGE memory.
36270 2015-03-20  Richard Biener  <rguenther@suse.de>
36272         PR middle-end/64715
36273         * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
36274         for type comparison and gcc_checking_assert.
36275         (chrec_fold_plus_poly_poly): Likewise.
36276         (chrec_fold_multiply_poly_poly): Likewise.
36277         (chrec_convert_1): Likewise.
36278         * gimplify.c (gimplify_expr): Remove premature folding of
36279         &X + CST to &MEM[&X, CST].
36281 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
36283         * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
36284         already is final.
36285         (ipa_inline): Recompute inline_failed codes.
36286         * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
36287         USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
36288         CIF_FINAL_ERROR.
36290 2015-03-20  Uros Bizjak  <ubizjak@gmail.com>
36292         PR rtl-optimization/60851
36293         * recog.c (constrain_operands): Accept a pseudo register before reload
36294         for LRA enabled targets.
36296 2015-03-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
36298         PR target/65240
36299         * config/rs6000/predicates.md (easy_fp_constant): Remove special
36300         -ffast-math handling that kept non-0 constants live in the RTL
36301         until reload.  Remove logic testing the number of instructions it
36302         took to create a constant in a GPR that was never used, due to a
36303         test for soft-float earlier.
36304         (memory_fp_constant): Delete, no longer used.
36306         * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
36307         alternatives for loading non-0 constants into GPRs for hard
36308         floating point that is no longer needed due to changes in
36309         easy_fp_constant.  Add support for loading 0.0 into GPRs.
36310         (mov<mode>_hardfloat32): Likewise.
36311         (mov<mode>_hardfloat64): Likewise.
36312         (mov<mode>_64bit_dm): Likewise.
36313         (movtd_64bit_nodm): Likewise.
36314         (pre-reload move FP constant define_split): Delete define_split,
36315         since it is no longer used.
36316         (extenddftf2_internal): Remove GHF constraints that are not valid
36317         for extenddftf2.
36319 2015-03-19  Vladimir Makarov  <vmakarov@redhat.com>
36321         PR rtl-optimization/63491
36322         * lra-constraints.c (check_and_process_move): Use src instead of
36323         sreg.  Remove some dead code.
36325 2015-03-19  Jan Hubicka  <hubicka@ucw.cz>
36327         PR ipa/65380
36328         * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
36329         (sem_variable::merge): Likewise.
36331 2015-03-19  Martin Liska  <mliska@suse.cz>
36333         PR ipa/65465
36334         * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
36335         all fields of cgraph_thunk_info.
36337 2015-03-19  Ilya Enkovich  <ilya.enkovich@intel.com>
36339         * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
36340         clone instrumented thunks.
36342 2015-03-19  Richard Biener  <rguenther@suse.de>
36344         Revert
36345         2015-03-10  Richard Biener  <rguenther@suse.de>
36347         PR middle-end/63155
36348         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
36349         * tree-ssa-coalesce.c: Include timevar.h.
36350         (attempt_coalesce): Handle graph being NULL.
36351         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
36352         Split out abnormal coalescing to ...
36353         (perform_abnormal_coalescing): ... this function.
36354         (coalesce_ssa_name): Perform abnormal coalescing without computing
36355         live/conflict.
36356         (verify_ssa_coalescing_worker): New function.
36357         (verify_ssa_coalescing): Likewise.
36359 2015-03-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
36360             Jakub Jelinek  <jakub@redhat.com>
36362         PR sanitizer/65400
36363         * tsan.c (instrument_gimple): Clear tail call flag on
36364         calls.
36366 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
36368         PR sanitizer/65400
36369         * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
36370         call in the return bb.
36371         (find_split_points): Add RETURN_BB argument, don't call
36372         find_return_bb.
36373         (split_function): Likewise.  Add ADD_TSAN_FUNC_EXIT argument,
36374         if true append TSAN_FUNC_EXIT internal call after the call to
36375         the split off function.
36376         (execute_split_functions): Call find_return_bb here.
36377         Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
36378         Adjust find_split_points and split_function calls.
36380 2015-03-18  DJ Delorie  <dj@redhat.com>
36382         * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
36383         (iorqi3_virt): Likewise.
36385 2015-03-18  Tom de Vries  <tom@codesourcery.com>
36387         * tree-parloops.c (parallelize_loops): Make static.
36388         * tree-parloops.h (parallelize_loops): Remove extern declaration.
36390 2015-03-18  Andrew Stubbs  <ams@codesourcery.com>
36392         PR middle-end/64491
36393         Revert:
36394         2014-11-20  Andrew Stubbs  <ams@codesourcery.com>
36396         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
36397         condition would be removed due to undefined behaviour.
36399 2015-03-18  Martin Liska  <mliska@suse.cz>
36401         PR ipa/65432
36402         * cgraph.c (cgraph_node::get_create): Remove unnecessary
36403         xstrdup_for_dump wrapper.
36404         * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
36405         sem_item::name.
36406         (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
36407         with xstrdup_for_dump.
36408         (sem_variable::equals): Likewise.
36409         (sem_item_optimizer::read_section): Use symtab_node::name instead of
36410         sem_item::name.
36411         (sem_item_optimizer::parse_funcs_and_vars): Likewise.
36412         (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
36413         symtab_node::asm_name with xstrdup_for_dump.
36414         (congruence_class::dump): Use symtab_node::name instead of
36415         sem_item::name.
36416         * ipa-icf.h (symtab_node::name): Remove.
36417         (symtab_node::asm_name): Likewise.
36419 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
36421         PR tree-optimization/65450
36422         * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
36423         function.
36424         (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
36425         it instead of duplicate_ssa_name_ptr_info.
36427         PR target/65222
36428         * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
36430 2015-03-18  Richard Biener  <rguenther@suse.de>
36432         * tree-data-ref.h (struct access_matrix): Remove.
36433         (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
36434         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
36435         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
36436         (am_vector_index_for_loop): Likewise.
36437         (struct data_reference): Remove access_matrix member.
36438         (DR_ACCESS_MATRIX): Remove.
36439         (lambda_vector_new): Add comment.
36440         (lambda_matrix_new): Use XOBNEWVEC.
36442 2015-03-18  Richard Biener  <rguenther@suse.de>
36444         * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
36445         (pass_ch::execute): Cleanup the CFG only if we did sth.
36446         * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
36448 2015-03-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
36450         * expmed.c (synth_mult): Use std::swap instead of manually
36451         swapping algorithms.
36453 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
36455         PR target/65078
36456         * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
36458 2015-03-16  Georg-Johann Lay  <avr@gjlay.de>
36460         PR target/65296
36461         * config/avr/avr.opt (-nodevicelib): New option.
36462         * doc/invoke.texi (AVR Options): Document it.
36463         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
36464         libgcc.a, libc.a, libm.a.
36465         * config/avr/specs.h: Same.
36466         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
36467         which don't (directly) depend on the device.  Print more help.
36468         (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
36469         (*cpp): Don't define __AVR_DEV_LIB_NAME__.
36470         * config/avr/driver-avr.c: Remove -nodevicelib from option list in
36471         case of an error.
36472         (avr_devicespecs_file): Use suffix "%s" instead of absolute path
36473         for specs file name.
36474         * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
36475         * config/avr/avr-mcus.def: Adjust initializers and comments.
36477 2015-03-16  Jan Hubicka  <hubicka@ucw.cz>
36479         * tree-sra.c (ipa_sra_preliminary_function_checks): Use
36480         DECL_ONE_ONLY to check if decl is one only.
36481         * ipa-split.c (consider_split): Limit splitt of one only functions.
36483 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
36485         PR tree-optimization/65427
36486         * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
36487         functions.
36488         (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
36490 2015-03-16  Marek Polacek  <polacek@redhat.com>
36492         * cgraph.h (add_new_static_var): Remove declaration.
36493         * varpool.c (add_new_static_var): Remove function.
36495 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
36497         * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
36498         instead of vec<tree> * with vec_alloc and release for args.
36499         Adjust all users.
36501         PR middle-end/65431
36502         * omp-low.c (delete_omp_context): Only splay_tree_delete
36503         reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
36504         is_gimple_omp_oacc contexts.  Don't look at ctx->outer.
36506 2015-03-16  Max Ostapenko  <m.ostapenko@partner.samsung.com>
36508         PR sanitizer/64820
36509         * cfgexpand.c (align_base): New function.
36510         (alloc_stack_frame_space): Call it.
36511         (expand_stack_vars): Align prev_frame to be sure
36512         data->asan_vec elements aligned properly.
36514 2015-03-16  Eric Botcazou  <ebotcazou@adacore.com>
36516         PR middle-end/65409
36517         * expr.c (store_field): Do not do a direct block copy if the source is
36518         a PARALLEL with BLKmode.
36520 2015-03-16  Tom de Vries  <tom@codesourcery.com>
36522         PR middle-end/65414
36523         Revert:
36524         2015-03-12  Tom de Vries  <tom@codesourcery.com>
36526         PR rtl-optimization/64895
36527         * lra-lives.c (check_pseudos_live_through_calls): Use
36528         actual_call_used_reg_set instead of call_used_reg_set, if available.
36530 2015-03-16  Alan Modra  <amodra@gmail.com>
36532         PR target/63150
36533         * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
36534         Modify Z->r bswapdi splitter to use dest in place of scratch.
36535         In r->Z and Z->r bswapdi splitter rename word_high, word_low
36536         to word1, word2 and rearrange logic to suit.
36537         (bswapdi2_64bit): Remove early clobber on Z->r alternative.
36538         (bswapdi2_ldbrx): Likewise.  Remove '??' on r->r.
36539         (bswapdi2_32bit): Remove early clobber on Z->r alternative.
36540         Add one '?' on r->r.  Modify Z->r splitter to avoid need for
36541         early clobber.
36543 2015-03-14  Jakub Jelinek  <jakub@redhat.com>
36545         PR tree-optimization/65369
36546         * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
36547         Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
36548         (vs - 1) * TYPE_SIZE_UNIT (elem_type).
36550         PR tree-optimization/65418
36551         * tree-ssa-reassoc.c (extract_bit_test_mask): If there
36552         are casts in the first PLUS_EXPR operand, ensure tbias and
36553         *totallowp are in the inner type.
36555         PR rtl-optimization/65401
36556         * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
36557         argument.  If true, adjust_address_nv of x with big-endian
36558         correction for the mode widening to GET_MODE (y).
36559         (make_field_assignment): Don't do MEM mode widening here.
36560         Use MEM_P instead of GET_CODE == MEM.
36562 2015-03-13  Ilya Verbin  <ilya.verbin@intel.com>
36564         * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
36565         the external decls.
36567 2015-03-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
36569         PR target/64600
36570         * config/arm/arm.c (arm_gen_constant, AND case): Use
36571         ARM_SIGN_EXTEND when constructing AND mask.
36573 2015-03-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
36575         * graph.c (print_graph_cfg): Make function names visible and append
36576         parenthesis to it.  Also make groups of basic blocks belonging to the
36577         same function visible.
36579 2015-03-12  Richard Biener  <rguenther@suse.de>
36581         PR middle-end/44563
36582         * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
36583         to avoid quadratic behavior with inline expansion splitting blocks.
36584         * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
36585         with the successor if the predecessor will be merged with it.
36586         * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
36587         entry block with its successor.
36589 2015-03-13  Richard Biener  <rguenther@suse.de>
36591         PR middle-end/44563
36592         * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
36593         (cleanup_tree_cfg_1): Do not call it.
36594         (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
36595         (fixup_noreturn_call): Mark the stmt as control altering.
36596         * tree-cfg.c (execute_fixup_cfg): Do not dump the function
36597         here.
36598         (pass_data_fixup_cfg): Produce a dump file.
36599         * tree-ssa-dom.c: Include tree-cfgcleanup.h.
36600         (need_noreturn_fixup): New global.
36601         (pass_dominator::execute): Fixup queued noreturn calls.
36602         (optimize_stmt): Queue calls that became noreturn for fixup.
36603         * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
36604         * tree-ssa-pre.c: Include tree-cfgcleanup.h.
36605         (el_to_fixup): New global.
36606         (eliminate_dom_walker::before_dom_childre): Queue calls that
36607         became noreturn for fixup.
36608         (eliminate): Fixup queued noreturn calls.
36609         * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
36610         (substitute_and_fold_dom_walker): New member stmts_to_fixup.
36611         (substitute_and_fold_dom_walker::before_dom_children): Queue
36612         alls that became noreturn for fixup.
36613         (substitute_and_fold): Fixup queued noreturn calls.
36615 2015-03-12  Jan Hubicka  <hubicka@ucw.cz>
36617         * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
36618         and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
36619         are building; for methods check ODR type of class they belong to if
36620         they may lead to a polymorphic call.
36621         (sem_function::compare_polymorphic_p): Be bit smarter about testing
36622         when function may lead to a polymorphic call.
36623         (sem_function::compare_type_list): Remove.
36624         (sem_variable::equals): Update use of compatible_types_p.
36625         (sem_variable::parse_tree_refs): Remove.
36626         (sem_item_optimizer::filter_removed_items): Do not filter out CXX
36627         cdtor.
36628         * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
36629         matching here.
36630         (func_checker::compatible_polymorphic_types_p): Break out from ...
36631         (unc_checker::compatible_types_p): ... here.
36632         * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
36633         Declare.
36634         (unc_checker::compatible_types_p): Update.
36635         * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
36636         Remove.
36638 2015-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
36640         PR rtl-optimization/65235
36641         * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
36642         When first element of vec_concat is const_int, calculate its size
36643         using second element.
36645 2015-03-12  Richard Biener  <rguenther@suse.de>
36647         PR middle-end/65270
36648         * fold-const.c (operand_equal_p): Fix ordering of resetting
36649         OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
36651 2015-03-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
36653         * config/s390/s390.c (s390_reorg): Move code to output nops after label
36654         to s390_reorg ().
36655         (s390_asm_output_function_label): Likewise.
36656         * config/s390/s390.c (s390_asm_output_function_label):
36657         Fix function label alignment with -mhtopatch.
36658         * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
36659         UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
36660         ("nop_2_byte"): New define_insn.
36661         ("nop_4_byte"): Likewise.
36662         ("nop_6_byte"): Likewise.
36663         * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
36664         * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
36666 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
36668         PR target/65103
36669         * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
36670         register.
36672 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
36674         PR target/65044
36675         * toplev.c (process_options): Restrict Pointer Bounds Checker
36676         usage with Address Sanitizer.
36678 2015-03-12  Richard Biener  <rguenther@suse.de>
36680         * tree-cfg.c (gimple_split_block): Remove loop finding stmt
36681         to split on.
36682         * omp-low.c (expand_omp_taskreg): Split block before removing
36683         the stmt.
36684         (expand_omp_target): Likewise.
36685         * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
36686         * tree-parloops.c (create_call_for_reduction_1): Pass a proper
36687         stmt to split_block.
36689 2015-03-12  Tom de Vries  <tom@codesourcery.com>
36691         PR rtl-optimization/64895
36692         * lra-lives.c (check_pseudos_live_through_calls): Use
36693         actual_call_used_reg_set instead of call_used_reg_set, if available.
36695 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
36697         * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
36698         (cgraph_node::remove): Likewise.
36699         (cgraph_node::get_untransformed_body): Likewise.
36700         * varpool.c (varpool_node::remove): Likewise.
36701         (varpool_node::get_constructor): Add sanity check.
36703 2015-03-11  Sandra Loosemore  <sandra@codesourcery.com>
36705         * doc/invoke.texi (-fgnu89-inline): Remove discussion about
36706         old GCC versions.
36707         (-fabi-compat-version): Likewise.
36708         (-ffriend-injection): Likewise.
36709         (-Wdeclaration-after-statement): Likewise.
36710         (-fomit-frame-pointer): Likewise.
36711         (-ftree-coalesce-inlined-vars): Likewise.
36712         (-fvisibility=): Likewise.
36713         * doc/extend.texi (Typeof): Likewise.
36714         (Zero Length): Likewise.
36715         (Escaped Newlines): Likewise.
36716         (Compound Literals): Likewise.
36717         (Function Attributes): Likewise.
36718         (Label Attributes): Likewise.
36719         (Type Attributes): Likewise.
36720         (Function Names): Likewise.
36721         (Other Builtins): Likewise.
36722         (Function Specific Option Pragmas): Likewise.
36723         (C++ Interface): Likewise.
36725 2015-03-11  Thomas Schwinge  <thomas@codesourcery.com>
36727         * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
36729 2015-03-11  Marek Polacek  <polacek@redhat.com>
36731         PR tree-optimization/65388
36732         * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
36734 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
36736         PR target/65296
36737         * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
36738         * configure: Regenerate.
36739         * config.in: Regenerate.
36740         * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
36741         [-mn-flash]: Document it.
36742         [__AVR_ARCH__]: Document avrtiny.
36744         * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
36745         (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
36746         (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
36748 2015-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
36750         * doc/invoke.texi: Add missing cpu values (z196, zEC12).
36752 2015-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
36754         PR target/65242
36755         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
36756         allow reloads of PLUS in floating point/VSX registers.
36758 2015-03-11  Junmo Park  <junmoz.park@samsung.com>
36760         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
36761         crypto_sha256_fast.
36762         (cortex_a57_crypto_complex): Add crypto_sha256_slow.
36764 2015-03-11  Richard Biener  <rguenther@suse.de>
36766         PR tree-optimization/65310
36767         * tree-sra.c (build_ref_for_offset): Also preserve larger
36768         alignment.
36770 2015-03-11  Marat Zakirov  <m.zakirov@samsung.com>
36772         * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
36774 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
36776         PR target/65368
36777         * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
36778         new define_expand.
36779         (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
36781 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
36783         * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
36784         (sem_function::equals_wpa): ... here.
36786 2015-03-10  Marek Polacek  <polacek@redhat.com>
36787             Jakub Jelinek  <jakub@redhat.com>
36789         PR sanitizer/65367
36790         * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
36791         when only removing the statement.  Handle expanding UBSAN_OBJECT_SIZE
36792         separately.
36794 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
36796         PR target/65286
36797         * config/rs6000/t-linux: For powerpc64* target set
36798         MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
36800 2015-03-10  Richard Biener  <rguenther@suse.de>
36802         PR middle-end/44563
36803         * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
36804         for redirect_all_calls.
36806 2015-03-10  Marek Polacek  <polacek@redhat.com>
36808         * gdbinit.in (pcfun): Define and document.
36810 2015-03-10  Ilya Verbin  <ilya.verbin@intel.com>
36812         * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
36813         of libgomp-plugin.h.
36814         (find_target_compiler): Support a case when the path to gcc is
36815         specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
36816         (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
36817         intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
36818         libgomp-plugin.h.
36819         (main): Use GCC_INSTALL_NAME as target_driver_name.
36820         * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
36821         define.
36822         (mkoffload.o): Remove obsolete include path and defines.
36823         (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
36825 2015-03-10  Richard Biener  <rguenther@suse.de>
36827         PR middle-end/63155
36828         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
36829         * tree-ssa-coalesce.c: Include timevar.h.
36830         (attempt_coalesce): Handle graph being NULL.
36831         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
36832         Split out abnormal coalescing to ...
36833         (perform_abnormal_coalescing): ... this function.
36834         (coalesce_ssa_name): Perform abnormal coalescing without computing
36835         live/conflict.
36836         (verify_ssa_coalescing_worker): New function.
36837         (verify_ssa_coalescing): Likewise.
36839 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
36841         PR target/65296
36842         * config.gcc (extra_options) [avr]: Remove.
36843         (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
36844         (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
36845         (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
36847         * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
36848         (-mmcu=): Add Var and MissingArgError properties.
36849         (-march=): Remove.
36850         * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
36851         * config/avr/t-multilib: Regenerate.
36852         * config/avr/specs.h: New file.
36853         * config/avr/driver-avr.c: New file.
36854         * config/avr/genopt.sh: Remove file.
36855         * config/avr/avr-tables.opt: Remove file.
36856         * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
36857         * config/avr/avr-c.c: Same.
36858         * avr-arch.h: Same.
36859         (avr_current_device): Remove proto.
36860         * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
36861         (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
36862         (EXTRA_SPEC_FUNCTIONS): Define.
36863         (avr_devicespecs_file): New specs function proto.
36864         (DRIVER_SELF_SPECS): Use device-specs-file spec function.
36865         * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
36866         (avr_current_device): Remove definition and usage.
36867         (avr_set_core_architecture): New static function.
36868         (avr_option_override): Use it.
36869         * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
36870         (mcu_name): New static array.
36871         (comparator, avr_archs_str, avr_mcus_str): New static functions.
36872         (avr_inform_devices, avr_inform_core_architectures): New functions.
36873         * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
36874         (avrlibc.h) [WITH_AVRLIBC]: Include.
36875         (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
36876         (print_mcu): Rewrite from scratch.
36877         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
36878         Forward to avr-specific specs defined in device-specs file.
36879         * config/avr/t-avr (driver-avr.o): New rule.
36880         (avr-devices.o): Depend on avr-arch.h.
36881         (avr-mcus): No more depend on avr-tables.opt.
36882         (avr-tables.opt): Remove rule.
36883         (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
36885 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
36887         * c-family/c.opt (fchkp-use-wrappers): New.
36888         * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
36889         (chkp_wrap_function): New.
36890         (chkp_build_instrumented_fndecl): Support wrapped
36891         functions.
36892         * doc/invoke.texi (-fcheck-pointer-bounds): New.
36893         (-fchkp-check-incomplete-type): New.
36894         (-fchkp-first-field-has-own-bounds): New.
36895         (-fchkp-narrow-bounds): New.
36896         (-fchkp-narrow-to-innermost-array): New.
36897         (-fchkp-optimize): New.
36898         (-fchkp-use-fast-string-functions): New.
36899         (-fchkp-use-nochk-string-functions): New.
36900         (-fchkp-use-static-bounds): New.
36901         (-fchkp-use-static-const-bounds): New.
36902         (-fchkp-treat-zero-dynamic-size-as-infinite): New.
36903         (-fchkp-check-read): New.
36904         (-fchkp-check-write): New.
36905         (-fchkp-store-bounds): New.
36906         (-fchkp-instrument-calls): New.
36907         (-fchkp-instrument-marked-only): New.
36908         (-fchkp-use-wrappers): New.
36909         (-static-libmpx): New.
36910         (-static-libmpxwrappers): New.
36912 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
36914         * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
36915         (CHKP_SPEC): Add wrappers library.
36916         * c-family/c.opt (static-libmpxwrappers): New.
36918 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
36920         * config/i386/linux-common.h (LIBMPX_LIBS): New.
36921         (LIBMPX_SPEC): New.
36922         (CHKP_SPEC): New.
36923         * gcc.c (CHKP_SPEC): New.
36924         (LINK_COMMAND_SPEC): Add CHKP_SPEC.
36925         * c-family/c.opt (static-libmpx): New.
36927 2015-03-10  Richard Biener  <rguenther@suse.de>
36929         PR middle-end/44563
36930         * cgraph.h (struct cgraph_edge_hasher): Add hash overload
36931         for compare_type.
36932         * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
36933         (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
36934         (cgraph_add_edge_to_call_site_hash): Likewise.
36935         (cgraph_node::get_edge): Likewise.
36936         (cgraph_edge::set_call_stmt): Likewise.
36937         (cgraph_edge::remove_caller): Likewise.
36939 2015-03-10  Chung-Ju Wu  <jasonwucj@gmail.com>
36941         * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
36942         (callee_saved_gpr_regs_size): ... this.
36943         (callee_saved_regs_first_regno): Rename to ...
36944         (callee_saved_first_gpr_regno): ... this.
36945         (callee_saved_regs_last_regno) Rename to ...
36946         (callee_saved_last_gpr_regno): ... this.
36947         * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
36948         variables.
36949         (nds32_initial_elimination_offset): Likewise.
36950         (nds32_expand_prologue): Likewise.
36951         (nds32_expand_epilogue): Likewise.
36952         (nds32_expand_prologue_v3push): Likewise.
36953         (nds32_expand_epilogue_v3pop): Likewise.
36954         * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
36955         Adjust renamed variables.
36956         (nds32_output_stack_pop): Likewise.
36958 2015-03-10  Thomas Preud'homme  <thomas.preudhomme@arm.com>
36960         * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
36961         code in comment.
36963 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
36965         PR rtl-optimization/65321
36966         * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
36967         than shift mode.
36968         * var-tracking.c (use_narrower_mode): Likewise.
36970 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
36972         PR tree-optimization/65355
36973         * varasm.c (notice_global_symbol): Do not produce RTL.
36974         * symtab.c (symtab_node::can_increase_alignment_p): Check for section
36975         anchor.
36976         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
36977         check for section anchors.
36979 2015-03-10  Alan Modra  <amodra@gmail.com>
36981         PR target/65286
36982         * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
36983         to be single-arch by default.  Set cpu_is_64bit for powerpc64
36984         given --with-cpu=native.
36985         * config/rs6000/t-fprules: Do not set default MULTILIB vars.
36986         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
36987         and powerpc64le.
36988         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
36989         rs6000_isa_flags rather than TARGET_64BIT.
36991 2015-03-09  Yoshinori Sato  <ysato@users.sourceforge.jp>
36992             Kaz Kojima  <kkojima@gcc.gnu.org>
36994         * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
36996 2015-03-09  Jakub Jelinek  <jakub@redhat.com>
36998         PR lto/65361
36999         * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
37000         on a TREE_BINFO, instead use BINFO_TYPE.
37002 2015-03-09  Richard Biener  <rguenther@suse.de>
37004         PR middle-end/65270
37005         * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
37006         * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
37007         operand set OEP_ADDRESS_OF.  Clear it when recursing to non-bases
37008         of that.  When comparing dereferences compare alignment.
37009         When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
37011 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
37013         * ipa-inline-analysis.c (check_callers): Check
37014         node->can_remove_if_no_direct_calls_and_refs_p.
37015         (growth_likely_positive): Reorganize to call
37016         can_remove_if_no_direct_calls_p later.
37017         * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
37018         will_be_removed_from_program_if_no_direct_calls_p): Add
37019         will_inline parameter.
37020         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
37021         cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
37022         Handle inliner case correctly.
37024 2015-03-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
37026         PR tree-optimization/63743
37027         * cfgexpand.c (reorder_operands): Also reorder if only second operand
37028         had its definition forwarded by TER.
37030 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
37032         PR lto/65316
37033         * ipa-utils.h (types_odr_comparable): Add strict argument.
37034         * ipa-devirt.c: Fix whitespace;
37035         (odr_hasher): Remove.
37036         (odr_name_hasher, odr_vtable_hasher): New hashers.
37037         (can_be_name_hashed_p): New predicate.
37038         (hash_type_name): remove.
37039         (hash_odr_name): New.
37040         (odr_name_hasher::hash): new.
37041         (can_be_vtable_hashed_p): New.
37042         (hash_odr_vtable): New.
37043         (odr_vtable_hasher::hash): New.
37044         (types_same_for_odr): Add strict parameter.
37045         (types_odr_comparable): Likewise.
37046         (odr_name_hasher::equal): New.
37047         (odr_vtable_hasher::equal): New.
37048         (odr_name_hasher::remove): New.
37049         (odr_hash_type): Change to hash_table<odr_name_hasher>.
37050         (odr_vtable_hash_type): New.
37051         (odr_vtable_hash): New.
37052         (odr_subtypes_equivalent_p): Do strict comparsion.
37053         (add_type_duplicate): Merge type names; cleanup; avoid type
37054         duplicates.
37055         (register_odr_type): Initialize vtable hash.
37056         (build_type_inheritance_graph): Likewise
37057         (get_odr_type): Reorg to use two hashes.
37058         (dump_possible_polymorphic_call_targets): Move sanity check after debug
37059         output.
37060         (ipa_devirt): Dump type_inheritance_graph.
37061         (types_same_for_odr): Add strict mode.
37063 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
37065         PR ipa/65334
37066         * cgraph.h (symtab_node): Add definition_alignment,
37067         can_increase_alignment_p and increase_alignment.
37068         * symtab.c (symtab_node::can_increase_alignment_p,
37069         increase_alignment_1, symtab_node::increase_alignment,
37070         symtab_node::definition_alignment): New.
37071         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
37072         can_increase_alignment_p.
37073         * tree-vectorizer.c (increase_alignment): Use increase_alignment.
37074         * tree-vect-stmts.c (ensure_base_align): Likewise.
37075         * varasm.c (function_section_1): Use definition_alignment.
37076         (assemble_start_function): Likewise.
37077         (emit_local): likewise.
37078         (build_constant_desc): Likewsie.
37079         (output_constant_def_contents): Likewise.
37080         (place_block_symbol): Likewise.
37081         (output_object_block): Likewise.
37083 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
37085         PR ipa/65316
37086         * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
37087         when outputting debug.
37089 2015-03-07  Marek Polacek  <polacek@redhat.com>
37090             Martin Uecker  <uecker@eecs.berkeley.edu>
37092         PR sanitizer/65280
37093         * doc/invoke.texi: Update description of -fsanitize=bounds.
37095 2015-03-06  Wilco Dijkstra  <wilco.dijkstra@arm.com>
37097         * tree-ssa-phiopt.c (neg_replacement): Remove.
37098         (tree_ssa_phiopt_worker): Remove negate optimization.
37100 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
37102         PR ipa/65302
37103         * value-prof.c (gimple_ic): Pure dead eh edges when needed.
37105 2015-03-06  Richard Biener  <rguenther@suse.de>
37107         PR middle-end/64928
37108         * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
37109         and liveout_obstack members.
37110         (calculate_live_on_exit): Remove.
37111         (calculate_live_ranges): Change declaration.
37112         * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
37113         (new_tree_live_info): Adjust.
37114         (calculate_live_ranges): Delete livein when not wanted.
37115         (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
37116         Deal with partly deleted live info.
37117         (loe_visit_block): Remove temporary bitmap by using
37118         bitmap_ior_and_compl_into.
37119         (live_worklist): Adjust accordingly.
37120         (calculate_live_on_exit): Make static.
37121         * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
37122         we do not need livein.
37124 2015-03-06  Jonathan Wakely  <jwakely@redhat.com>
37126         * real.c (real_from_string): Fix typo in assertion.
37128 2015-03-06  Alex Velenko  <alex.velenko@arm.com>
37130         * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
37131         the patch.
37133 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
37135         * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
37137 2015-03-05  Vladimir Makarov  <vmakarov@redhat.com>
37139         PR target/64342
37140         * lra-assigns.c (find_hard_regno_for): Rename to
37141         find_hard_regno_for_1.  Add a new parameter.
37142         (find_hard_regno_for): New function using find_hard_regno_for_1.
37144 2015-03-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
37146         PR rtl-optimization/65067
37147         * expmed.c (store_bit_field, extract_bit_field): Reworked the
37148         strict volatile bitfield handling.
37150 2015-03-05  Martin Liska  <mliska@suse.cz>
37152         PR ipa/65318
37153         * ipa-icf.c (sem_variable::equals): Compare variables types.
37155 2015-03-05  Richard Henderson  <rth@redhat.com>
37157         PR target/65121
37158         * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
37159         correctly check weak symbol binding.
37161 2015-03-05  Steve Ellcey  <sellcey@imgtec.com>
37163         PR middle-end/65315
37164         * cfgexpand.c (expand_stack_vars): Update large_align to maximum
37165         needed alignment.
37167 2015-03-05  Martin Liska  <mliska@suse.cz>
37169         * ipa-inline.c (inline_small_functions): Set default value to
37170         prevent warning during bootstrap.
37171         * tree.h: Add pragma guard that ignores false positives during
37172         bootstrap.
37174 2015-03-05  Richard Biener  <rguenther@suse.de>
37176         PR tree-optimization/65310
37177         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
37178         Properly preserve alignment of the base of the access.
37180 2015-03-05  Richard Biener  <rguenther@suse.de>
37182         PR ipa/65270
37183         * ipa-icf-gimple.c (func_checker::compare_memory_operand):
37184         Compare dependence info.
37186 2015-03-05  Richard Biener  <rguenther@suse.de>
37188         PR middle-end/65233
37189         * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
37190         tree-into-ssa.h.
37191         (walk_ssa_copies): Revert last chage.  Instead do not walk
37192         SSA names registered for SSA update.
37194 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
37196         PR ipa/65270
37197         * ipa-icf.c (sem_item::compare_cgraph_references): Compare
37198         vtable references for their containing type.
37199         (sem_function::equals_wpa): Compare TYPE_RESTRICT
37200         and type attributes.
37202 2015-03-04  Eric Botcazou  <ebotcazou@adacore.com>
37204         * fold-const.c (round_up_loc): Cast divisor to signed on all paths
37205         before negating it.
37206         * stor-layout.c (finalize_record_size): Revert latest change.
37208 2015-03-04  Andreas Tobler  <andreast@gcc.gnu.org>
37210         * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
37212 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
37214         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
37215         for correct comdat handling.
37216         (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
37217         Likewise.
37218         * cgraph.h (call_for_symbol_and_aliases): Fix formating.
37219         (used_from_object_file_p_worker): Remove.
37220         (cgraph_node::only_called_directly_or_alised): Add
37221         used_from_object_file_p.
37222         * ipa-inline-analysis.c (growth_likely_positive): Optimie.
37223         * ipa-inline-transform.c (can_remove_node_now_p_1): Use
37224         can_remove_if_no_direct_calls_and_refs_p.
37226 2015-03-04  Nick Clifton  <nickc@redhat.com>
37228         * config/rl78/rl78.h (enum reg_class): Remove real registers from
37229         General register class.
37230         * config/rl78/rl78-real.md: Replace general register constraints
37231         with real+virtual register constraints.
37233 2015-03-04  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
37235         * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
37236         from checking for -mhtm option.
37238 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
37240         * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
37241         (struct ipa_sra_check_caller_data): Add has_thunk field.
37242         (ipa_sra_check_caller): Check for thunk.
37243         (ipa_sra_preliminary_function_checks): Give up on function with
37244         thunks.
37245         (ipa_early_sra): Use call_for_symbol_and_aliases.
37247 2015-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>
37249         PR target/65249
37250         * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
37251         called for __stack_chk_guard symbol.
37253 2015-03-03  DJ Delorie  <dj@redhat.com>
37255         * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
37256         inc/dec.
37257         (*addhi3_real): Likewise.
37258         * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
37259         pattern to match incrementing memory.
37260         * config/rl78/predicates.md (rl78_1_2_operand): New.
37261         * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
37262         it's the same and only mem.
37263         (rl78_alloc_physical_registers_op2): If there's effectively only
37264         one MEM, transcode it into HL.
37265         (rl78_far_p): Reject addresses that aren't legitimate.
37267 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
37269         * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
37270         negating it.
37272         * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
37274 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
37276         Implement call0 ABI for xtensa
37277         * config/xtensa/constraints.md ("a" constraint): Include stack
37278         pointer in case of call0 ABI.
37279         ("q" constraint): Make empty in case of call0 ABI.
37280         ("D" constraint): Include stack pointer in case of call0 ABI.
37281         * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
37282         xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
37283         prototypes.
37284         * config/xtensa/xtensa.c (xtensa_callee_save_size): New
37285         variable.
37286         (xtensa_regno_to_class): Make it a local variable in the
37287         function xtensa_regno_to_class.
37288         (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
37289         macro, function prototype and implementation.
37290         (reg_nonleaf_alloc_order): Make it a local variable in the
37291         function order_regs_for_local_alloc.
37292         (xtensa_conditional_register_usage): New function.
37293         (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
37294         (xtensa_valid_move): Allow direct moves to stack pointer
37295         register in call0 ABI.
37296         (xtensa_setup_frame_addresses): Only spill register windows in
37297         windowed ABI.
37298         (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
37299         call0 ABI respectively.
37300         (xtensa_function_arg_1): Only mark a7 register for copying in
37301         windowed ABI.
37302         (xtensa_call_save_reg): New function.
37303         (compute_frame_size): Add space for callee saved register
37304         storage to the frame size in call0 ABI.
37305         (xtensa_expand_prologue): Generate code to set up stack frame
37306         and save callee-saved registers in call0 ABI.
37307         (xtensa_expand_epilogue): New function.
37308         (xtensa_set_return_address): New function.
37309         (xtensa_return_addr): Calculate return address in call0 ABI.
37310         (xtensa_builtin_saveregs): Only mark a7 register for copying and
37311         emit copying code in windowed ABI.
37312         (order_regs_for_local_alloc): Add preferred register allocation
37313         order for non-leaf function in call0 ABI.
37314         (xtensa_static_chain): Add atatic chain passing for call0 ABI.
37315         (xtensa_asm_trampoline_template): Add trampoline generation for
37316         call0 ABI.
37317         (xtensa_trampoline_init): Add trampoline initialization for
37318         call0 ABI.
37319         (xtensa_conditional_register_usage, xtensa_regno_to_class): New
37320         functions.
37321         * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
37322         (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
37323         (CALL_USED_REGISTERS): Modify to encode both windowed and call0
37324         ABI call-used registers.
37325         (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
37326         (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
37327         call0 ABI.
37328         (REG_CLASS_CONTENTS): Include all registers into the preferred
37329         reload registers set, adjust the set in the
37330         xtensa_conditional_register_usage.
37331         (xtensa_regno_to_class): Drop variable declaration.
37332         (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
37333         function.
37334         (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
37335         respectively.
37336         (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
37337         (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
37338         (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
37339         (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
37340         location in call0 ABI.
37341         (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
37342         stack adjustment size when handling exception.
37343         (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
37344         * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
37345         definitions.
37346         ("return" pattern): Generate ret.n/ret in call0 ABI.
37347         ("epilogue" pattern): Expand epilogue.
37348         ("nonlocal_goto" pattern): Use default in call0 ABI.
37349         ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
37350         emit eh_set_a0_* depending on ABI.
37351         ("eh_set_a0_windowed" pattern): Former eh_return pattern.
37352         ("eh_set_a0_call0", "blockage"): New patterns.
37354 2015-03-03  Martin Liska  <mliska@suse.cz>
37356         PR ipa/65287
37357         * ipa-icf.c (sem_variable::parse): Skip all alias variables.
37359 2015-03-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
37361         PR 65138/target
37362         * config/rs6000/rs6000-tables.opt: Regenerate table.
37364 2015-03-03  Renlin Li  <renlin.li@arm.com>
37366         * doc/md.texi (@item ^): Change ? into ^.
37368 2015-03-03  H.J. Lu  <hongjiu.lu@intel.com>
37370         * doc/tm.texi: Regenerated.
37372 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
37374         * builtins.c (expand_builtin_return_addr): Add
37375         RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
37376         surrounding #ifdef.
37377         * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
37378         definition to 1.
37379         * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
37380         Likewise.
37381         * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
37382         undefined.
37383         * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
37384         paragraph.
37386 2015-03-03  Martin Jambor  <mjambor@suse.cz>
37387             Eric Botcazou  <ebotcazou@adacore.com>
37389         * tree-sra.c (ipa_sra_check_caller_data): New type.
37390         (has_caller_p): Removed.
37391         (ipa_sra_check_caller): New function.
37392         (ipa_sra_preliminary_function_checks): Use it.
37394 2015-03-03  Martin Liska  <mliska@suse.cz>
37396         * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
37397         instead of if branch.
37399 2015-03-03  Martin Liska  <mliska@suse.cz>
37401         PR ipa/65282
37402         * ipa-icf.c (sem_variable::equals): Fix wrong condition.
37404 2015-03-23  Jeff Law  <law@redhat.com>
37406         PR tree-optimization/65241
37407         * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
37408         hash table if INSERT is true.
37410 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
37412         PR target/65296
37413         * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
37415 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
37417         PR target/64331
37418         * config/avr/avr.c (context.h, tree-pass.h): Include them.
37419         (avr_pass_data_recompute_notes): New static variable.
37420         (avr_pass_recompute_notes): New class.
37421         (avr_register_passes): New static function.
37422         (avr_option_override): Call it.
37424 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
37426         Fix various problems with specs file generation.
37428         PR target/65296
37429         * config.gcc (extra_gcc_objs) [avr]: Remove.
37430         * config/avr/driver-avr.c: Remove file.
37431         * config/avr/t-avr (driver-avr.o): Remove rule.
37432         (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
37433         INCLUDES to build.  Depend on TM_H.
37434         * config/avr/gen-avr-mmcu-specs.c: Tidy up code.  Fix various
37435         build warnings.  Fix non-matching types and non-existing %-codes.
37436         (tm.h): Include.
37437         (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
37438         (*libgcc) [WITH_AVRLIBC]: Add "-lm".
37439         * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
37440         * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
37441         (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
37442         (LIBGCC_SPEC): Remove definitions.
37444 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
37446         * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
37447         to create a register in testing mode.
37449 2015-03-03  Martin Liska  <mliska@suse.cz>
37450             Jan Hubicka  <hubicka@ucw.cz>
37452         PR ipa/65263
37453         * cgraph.c (cgraph_node::has_thunk_p): New function.
37454         * cgraph.h (cgraph_node::has_thunk_p: Likewise.
37455         * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
37456         (sem_function::merge): Assert is changed.
37458 2015-03-03  Martin Liska  <mliska@suse.cz>
37459             Martin Jambor  <mjambor@suse.cz>
37461         PR ipa/65087
37462         * ipa-icf.c (sem_item_optimizer::execute): Change function
37463         return value to boolean.
37464         (sem_item_optimizer::merge_classes): Likewise.
37465         (ipa_icf_driver): Return TODO_remove_functions in case there's
37466         a merge operation processed.
37467         * ipa-icf.h: Change function return value to boolean.
37469 2015-03-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
37471         PR 65138/target
37472         * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
37473         processor type for 64-bit little endian PowerPC.
37475         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
37476         -mdebug=reg, print TARGET_DEFAULT.  Fix logic to use
37477         TARGET_DEFAULT if there is no default cpu.  Fix -mdebug=reg
37478         printing built-in mask so it does not pass NULL pointers.
37480         * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
37481         -mcpu=powerpc64le.
37483 2015-03-02  Steve Ellcey  <sellcey@imgtec.com>
37485         PR target/58158
37486         * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
37487         !ISA_HAS_FP_CONDMOVE.
37489 2015-03-02  Aldy Hernandez  <aldyh@redhat.com>
37491         * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
37492         reload_completed.
37494 2015-03-02  Ulrich Drepper  <drepper@gmail.com>
37496         * doc/invoke.texi (Options for Code Generation Conventions):
37497         Fix URL of DSO paper.
37499 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
37501         PR ipa/65130
37502         * ipa-inline.c (check_callers): Looks for recursion.
37503         (inline_to_all_callers): Give up on uninlinable or recursive edges.
37504         * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
37505         summary of inline clones.
37506         (do_estimate_growth_1): Fix recursion check.
37508 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
37510         PR ipa/64988
37511         * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
37512         comdat groups.
37514 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
37515             Aldy Hernandez  <aldyh@redhat.com>
37517         PR lto/65276
37518         * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
37519         when checking TYPE_BINFO.
37521 2015-03-02  Richard Biener  <rguenther@suse.de>
37523         PR ipa/65270
37524         * ipa-icf-gimple.c: Include builtins.h.
37525         (func_checker::compare_memory_operand): Compare base alignment.
37527 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
37529         PR target/65184
37530         * config/i386/i386.c (ix86_pass_by_reference): Bounds are never
37531         passed by reference.
37533 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
37535         PR target/65183
37536         * tree-chkp.c (chkp_check_lower): Don't check against
37537         zero bounds for already instrumented functions.
37538         (chkp_check_upper): Likewise.
37539         (chkp_fini): Clean pass local data to avoid wrong reusage.
37541 2015-02-28  Martin Liska  <mliska@suse.cz>
37542             Jan Hubicka  <hubicka@ucw.cz>
37544         * ipa-icf.c (sem_variable::equals): Improve debug output;
37545         get variable constructor.
37546         (sem_variable::parse): Do not filter out too early; give up on
37547         volatile and register vars.
37548         (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
37549         variables.
37550         * ipa-icf.h (sem_variable::init): Do not set ctor.
37551         (sem_variable::ctor): Remove.
37553 2015-03-01  Aldy Hernandez  <aldyh@redhat.com>
37555         PR middle-end/65233
37556         * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
37558 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
37560         * ipa-icf.c: Include stor-layout.h
37561         (sem_function::compare_cgraph_references): Rename to ...
37562         (sem_item::compare_cgraph_references): ... this one.
37563         (sem_variable::equals_wpa): New function
37564         (sem_variable::equals): Do not check stuff already verified by
37565         equals_wpa.
37566         (sem_variable::equals): Reorg based on varasm.c:compare_constant.
37567         * ipa-icf.h (sem_item): Add compare_cgraph_references.
37568         (sem_function): Remove compare_cgraph_references.
37569         (sem_variable): Turns equals_wpa into non-inline.
37571 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
37573         * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
37574         (sem_item::add_expr): New function.
37575         (sem_function::hash_stmt): Handle operands of most statements.
37576         (sem_variable::get_hash): Hash the actual constructor.
37577         * ipa-icf.h (sem_item): Add add_expr.
37578         (sem_function): Update prototype of hash_stmt
37580 2015-02-28  Martin Liska  <mliska@suse.cz>
37581             Jan Hubicka  <hubicka@ucw.cz>
37583         PR ipa/65245
37584         * ipa-icf-gimple.c (func_checker::compare_function_decl):
37585         Remove.
37586         (func_checker::compare_variable_decl): Skip symtab vars.
37587         (func_checker::compare_cst_or_decl): Update.
37588         * ipa-icf.c (sem_function::parse): Do not consider aliases.
37589         (sem_function::compare_cgraph_references): Add ADDRESS parameter;
37590         use correct symtab predicates.
37591         (sem_function::equals_wpa): Update uses of compare_cgraph_references.
37592         (sem_variable::parse):  Update comment.
37593         (sem_item_optimizer::build_graph): Consider ultimate aliases
37594         for references.
37596 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
37598         * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
37599         of OBJ_TYPE_REF.
37601 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
37603         * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
37604         (sem_variable::merge) Likewise.
37606 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
37608         * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
37609         target; also match flag_ipa_devirt.
37611 2015-03-01  Martin Liska  <mliska@suse.cz>
37612             Jan Hubicka  <hubicka@ucw.cz>
37614         * ipa-icf-gimple.c (func_checker::compare_variable_decl):
37615         Validate variable alignment.
37616         * ipa-icf.c (sem_function::equals_private): Be more precise
37617         about non-common function attributes.
37618         (sem_variable::equals): Likewise.
37620 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
37622         PR ipa/65237
37623         * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
37624         across COMDAT group boundary.
37626 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
37628         PR ipa/65232
37629         * ipa-icf.c (clear_decl_rtl): New function.
37630         (sem_function::merge): Clear RTL before forming alias.
37631         (sem_variable::merge): Clear RTL before forming alias.
37633 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
37635         PR ipa/65236
37636         * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
37638 2015-02-28  Xingxing Pan  <xxingpan@marvell.com>
37640         * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
37641         to neon_to_gp<q>.
37643 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
37645         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
37646         a typo in the description.
37648 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
37650         PR target/64317
37651         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
37652         * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
37653         * lra-constraints.c: Include "params.h".
37654         (EBB_PROBABILITY_CUTOFF): Use
37655         LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
37656         (lra_inheritance): Use '<' instead of '<=' for
37657         EBB_PROBABILITY_CUTOFF.
37658         * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
37659         Document change.
37661 2015-02-27  Martin Liska  <mliska@suse.cz>
37663         * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
37664         vector length condition.
37666 2015-02-27  Sandra Loosemore  <sandra@codesourcery.com>
37668         * doc/extend.texi (x86 transactional memory intrinsics):
37669         Reorganize discussion of _xbegin.  Clarify that the return
37670         value is a bit mask.  Expand example and move to end of section.
37672 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
37673             Aldy Hernandez  <aldyh@redhat.com>
37675         PR rtl-optimization/65220
37676         * config/i386/i386.md (*udivmod<mode>4_pow2): New.
37678 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
37680         PR target/65032
37681         * lra-remat.c (update_scratch_ops): New.
37682         (do_remat): Call it.
37683         * lra.c (lra_register_new_scratch_op): New. Take code from ...
37684         (remove_scratches): ... here.
37685         * lra-int.h (lra_register_new_scratch_op): New prototype.
37687 2015-02-27  Marek Polacek  <polacek@redhat.com>
37689         PR c/65040
37690         * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
37691         -Wformat-signedness anymore.
37693 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
37695         * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
37696         function.
37697         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
37699 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
37701         * config/s390/s390.c (enum s390_builtin):
37702         Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
37703         (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
37704         (s390_init_builtins): Generate new builtin functions.
37705         * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
37706         (s390_sfpc, s390_efpc): New pattern definitions.
37708 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
37710         * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
37711         Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
37712         (s390_builtin_decls): New array.
37713         (s390_init_builtins): Put builtin decls into s390_builtin_decls.
37714         (s390_builtin_decl): New function.
37715         (TARGET_BUILTIN_DECL): Define macro.
37717 2015-02-27  Richard Biener  <rguenther@suse.de>
37719         PR middle-end/63175
37720         * builtins.c (get_object_alignment_2): Make sure to re-apply
37721         the ANDed mask after recursing to its operand gets us a new
37722         misalignment bit position.
37724 2015-02-26  Jan Hubicka  <hubicka@ucw.cz>
37725             Martin Liska  <mliska@suse.cz>
37727         PR bootstrap/65150
37728         * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
37729         Use address_matters_p.
37730         (redirect_all_callers, set_addressable): New functions.
37731         (sem_function::merge): Reorganize and fix merging issues.
37732         (sem_variable::merge): Likewise.
37733         (sem_variable::compare_sections): Remove.
37734         * common.opt (fmerge-all-constants, fmerge-constants): Remove
37735         Optimization flag.
37736         * symtab.c (symtab_node::resolve_alias): When alias has aliases,
37737         redirect them.
37738         (symtab_node::make_decl_local): Set ADDRESSABLE bit when
37739         decl is used.
37740         (address_matters_1): New function.
37741         (symtab_node::address_matters_p): New function.
37742         * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
37743         check for merged flag.
37744         * cgraph.h (address_matters_p): Declare.
37745         (symtab_node::address_taken_from_non_vtable_p): Remove.
37746         (symtab_node::address_can_be_compared_p): New method.
37747         (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
37748         * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
37749         Remove.
37750         (comdat_can_be_unshared_p_1) Use address_matters_p.
37751         (update_vtable_references): Fix formating.
37752         * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
37753         * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
37754         * cgraphclones.c: Preserve merged and icf_merged flags.
37756 2015-02-26  Sandra Loosemore  <sandra@codesourcery.com>
37758         * doc/extend.texi (Function Attributes): Fix spelling and typos.
37759         (Label Attributes): Likewise.
37760         (Cilk Plus Builtins): Likewise.
37761         (ARC SIMD Built-in Functions): Likewise.
37762         (ARM C Language Extensions (ACLE)): Likewise.
37763         (PowerPC Built-in Functions): Likewise.
37764         (PowerPC Hardware Transactional Memory Built-in Functions):
37765         Likewise.
37767 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
37769         PR tree-optimization/65216
37770         * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
37771         new stmt and new SSA_NAME for lhs whenever the arguments have
37772         changed and weren't just swapped.  Fix comment typo.
37774         PR tree-optimization/65215
37775         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
37776         for PDP endian targets.
37777         (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
37778         Fix up formatting issues.
37779         (bswap_replace): Likewise.  For BYTES_BIG_ENDIAN, if the final access
37780         size is smaller than the original, adjust MEM_REF offset by the
37781         difference of sizes.  Use is_gimple_mem_ref_addr instead of
37782         is_gimple_min_invariant test to avoid adding address temporaries.
37784 2015-02-26  Martin Liska  <mliska@suse.cz>
37785             Jan Hubicka  <hubicka@ucw.cz>
37787         PR ipa/64693
37788         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
37789         (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
37790         (sem_item_optimizer::process_cong_reduction): Include division by
37791         sensitive references.
37792         * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
37793         * ipa-ref.c (ipa_ref::address_matters_p): New function.
37794         * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
37796 2015-02-26  Georg-Johann Lay  <avr@gjlay.de>
37798         PR target/65192
37799         * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
37800         Remove.
37801         * config/avr/avr.c: Same.
37802         (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
37803         Refuse any constant address not in 0..0xbf.
37804         * config/avr/avr.md (*mov<mode>, *movsf): Remove
37805         tiny_valid_direct_memory_access_range from insn conditions.
37806         (mov<mode>): Don't special-case expansion of avrtiny addresses.
37808 2015-02-26  Oleg Endo  <olegendo@gcc.gnu.org>
37810         PR target/61142
37811         * config/sh/sh.c (sh_check_add_incdec_notes): New function.
37812         * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
37813         * config/sh/predicates.md (const_logical_operand): New predicate.
37814         * config/sh/sh.md: Add new peephole2 patterns.
37816 2015-02-26  Marek Polacek  <polacek@redhat.com>
37818         PR ipa/65008
37819         * ipa-inline.c (early_inliner): Recompute inline parameters.
37821 2015-02-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
37823         PR target/65171
37824         * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
37825         instructions with TImode operands are included in the analysis.
37827 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
37829         * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
37830         of an EDGE_FSM_THREAD.
37832 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
37834         * config/rs6000/htm.md (tcheck): Fix assembly encoding.
37836 2015-02-25  Aldy Hernandez  <aldyh@redhat.com>
37838         PR debug/46102
37839         * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
37841 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
37843         PR tree-optimization/65048
37844         * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
37845         (thread_through_all_blocks): Call valid_jump_thread_path.
37846         Remove invalid FSM jump-thread paths.
37848 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
37850         * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
37851         (ipa_write_optimization_summaries): Likewise.
37852         * tree-streamer.h: Include data-streamer.h.
37853         (streamer_mode_table): Declare extern variable.
37854         (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
37855         * lto-streamer-out.c (lto_output_init_mode_table,
37856         lto_write_mode_table): New functions.
37857         (produce_asm_for_decls): Call lto_write_mode_table when streaming
37858         offloading LTO.
37859         * lto-section-in.c (lto_section_name): Add "mode_table" entry.
37860         (lto_create_simple_input_block): Add mode_table argument to the
37861         lto_input_block constructors.
37862         * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
37863         Likewise.
37864         * data-streamer-in.c (string_for_index): Likewise.
37865         * ipa-inline-analysis.c (inline_read_section): Likewise.
37866         * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
37867         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
37868         * lto-streamer-in.c (lto_read_body_or_constructor,
37869         lto_input_toplevel_asms): Likewise.
37870         (lto_input_mode_table): New function.
37871         * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
37872         pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
37873         Use bp_pack_machine_mode.
37874         * real.h (struct real_format): Add name field.
37875         * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
37876         (class lto_input_block): Add mode_table member.
37877         (lto_input_block::lto_input_block): Add mode_table_ argument,
37878         initialize mode_table.
37879         (struct lto_file_decl_data): Add mode_table field.
37880         (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
37881         * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
37882         unpack_ts_decl_common_value_fields,
37883         unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
37884         * tree-streamer.c (streamer_mode_table): New variable.
37885         * real.c (ieee_single_format, mips_single_format,
37886         motorola_single_format, spu_single_format, ieee_double_format,
37887         mips_double_format, motorola_double_format,
37888         ieee_extended_motorola_format, ieee_extended_intel_96_format,
37889         ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
37890         ibm_extended_format, mips_extended_format, ieee_quad_format,
37891         mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
37892         decimal_single_format, decimal_double_format, decimal_quad_format,
37893         ieee_half_format, arm_half_format, real_internal_format): Add name
37894         field.
37895         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
37897 2015-02-26  Yuri Rumyantsev  <ysrumyan@gmail.com>
37899         PR target/65161
37900         * config/i386/i386.c (ix86_sched_reorder): Skip instruction
37901         reordering for selective scheduling.
37903 2015-02-26  Terry Guo  <terry.guo@arm.com>
37905         * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
37906         * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
37907         (arm_arch_no_volatile_ce): Declare new global variable.
37908         * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
37909         (arm_option_override): Assign value to arm_arch_no_volatile_ce.
37910         * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
37911         (TARGET_NO_VOLATILE_CE): New macro.
37912         * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
37913         volatile memory access in IT block
37915 2015-02-25  Kai Tietz  <ktietz@redhat.com>
37917         PR tree-optimization/61917
37918         * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
37919         that reduc_def_stmt is null.
37921 2015-02-25  Martin Liska  <mliska@suse.cz>
37923         * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
37924         hard register variables.
37926 2015-02-25  Kai Tietz  <ktietz@redhat.com>
37928         PR target/64212
37929         * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
37930         (symtab::noninterposable_alias): Likewise.
37932 2015-02-25  Ilya Enkovich  <ilya.enkovich@intel.com>
37934         PR target/65167
37935         * config/i386/i386.c (ix86_function_arg_regno_p): Support
37936         bounds registers.
37937         (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
37939 2015-02-25  Alan Lawrence  <alan.lawrence@arm.com>
37941         PR target/64997
37942         * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
37943         as split condition; force split via '#' in output pattern.
37945 2015-02-25  Richard Biener  <rguenther@suse.de>
37946             Kai Tietz  <ktietz@redhat.com>
37948         PR tree-optimization/61917
37949         * tree-vect-loop.c (vectorizable_reduction): Allow
37950         vect_internal_def without reduction to exit graceful.
37952 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
37954         PR target/65196
37955         * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
37956         only with NONDEBUG_INSN_P.
37958 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
37960         Use variadic macros with avr-log.c.
37962         * config/avr/avr-protos.h (avr_vdump): New prototype.
37963         (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
37964         (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
37965         * config/avr/avr-log.c: Adjust comments.
37966         (avr_vdump): New function.
37967         (avr_vadump): Pass caller as 2nd argument instead of format string.
37968         (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
37969         (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
37971 2015-02-25  Jakub Jelinek  <jakub@redhat.com>
37973         PR lto/64374
37974         * target.def (target_option_stream_in): New target hook.
37975         * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
37976         targetm.target_option.post_stream_in if non-NULL.
37977         * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
37978         * doc/tm.texi: Updated.
37979         * config/i386/i386.c (ix86_function_specific_post_stream_in): New
37980         function.
37981         (TARGET_OPTION_POST_STREAM_IN): Redefine.
37983 2015-02-24  Jeff Law  <law@redhat.com>
37985         PR target/65117
37986         * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
37987         of operand 0 and operand 2.
37988         (zero_cost_loop_end, loop_end): Similarly.
37990 2015-02-24  Aldy Hernandez  <aldyh@redhat.com>
37992         * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
37993         CXX_MEM_STAT_INFO.
37995 2015-02-24  DJ Delorie  <dj@redhat.com>
37997         * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
37998         * config/rl78/rl78-expand.md (movsf): New, same as movsi.
37999         * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
38000         instead of hardcoding SImode.
38002 2015-02-24  Bernd Schmidt  <bernds@codesourcery.com>
38004         * omp-low.c (create_omp_child_function): Tag entrypoint
38005         functions with a special attribute.
38007 2015-02-24  Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
38009         PR target/65058
38010         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
38012 2015-02-24  Vladimir Makarov  <vmakarov@redhat.com>
38014         PR rtl-optimization/65123
38015         * lra-remat.c (operand_to_remat): Check hard regs in insn
38016         definition too.
38018 2015-02-24  Nick Clifton  <nickc@redhat.com>
38020         * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
38021         to the assembler.
38023 2015-02-24  Thomas Schwinge  <thomas@codesourcery.com>
38025         PR libgomp/64625
38026         * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
38027         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
38028         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
38029         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
38030         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
38031         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
38032         (BUILT_IN_GOACC_PARALLEL): Specify as
38033         BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
38034         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
38035         * builtin-types.def
38036         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
38037         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
38038         Remove function types.
38039         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
38040         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
38041         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
38042         New function types.
38044 2015-02-24  Georg-Johann Lay  <avr@gjlay.de>
38046         * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
38048 2015-02-24  Jakub Jelinek  <jakub@redhat.com>
38050         PR tree-optimization/65170
38051         * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
38052         if val[1] < 0, clear also val[2] and return 3.
38054 2015-02-24  Alan Modra  <amodra@gmail.com>
38056         PR target/65172
38057         * config/rs6000/rs6000.c (get_memref_parts): Only return true
38058         when *base is a reg.  Handle nested plus addresses.  Simplify
38059         pre_modify test.
38061 2015-02-22  Max Filippov  <jcmvbkbc@gmail.com>
38063         * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
38064         use natural alignment when optimizing for size.
38066 2015-02-23  Kaz Kojima  <kkojima@gcc.gnu.org>
38068         PR target/65153
38069         * config/sh/sh.md (movsicc_true+3): Remove peephole.
38070         * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
38071         * config/sh/sh.c (replace_n_hard_rtx): Remove.
38073 2015-02-23  Richard Sandiford  <richard.sandiford@arm.com>
38075         PR fortran/63427
38076         * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
38077         too big for a wide_int.  Implement missing wrapping operation.
38079 2015-02-23  Oleg Endo  <olegendo@gcc.gnu.org>
38081         PR target/65163
38082         * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
38083         instead of const_int 4294901760.
38085 2015-02-23  Georg-Johann Lay  <avr@gjlay.de>
38087         * config/avr/t-avr: Fix typo in comment.
38089 2015-02-21  Richard Sandiford  <richard.sandiford@arm.com>
38091         * doc/rtl.texi (fma): Clarify documentation.
38093 2015-02-20  Aldy Hernandez  <aldyh@redhat.com>
38095         PR debug/58123
38096         * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
38097         over input_location.
38099 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
38101         * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
38102         unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
38103         restrict alignments to absolute_biggest_alignment.
38104         * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
38105         Define.
38106         * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
38107         * doc/tm.texi: Regenerate.
38108         * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
38110 2015-02-20  Vladimir Makarov  <vmakarov@redhat.com>
38112         PR target/64172
38113         * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
38115 2015-02-20  Richard Biener  <rguenther@suse.de>
38117         PR tree-optimization/65136
38118         * tree-ssa-propagate.c: Include cfgloop.h.
38119         (replace_phi_args_in): Avoid replacing loop latch edge PHI
38120         arguments with constants.
38122 2015-02-20  Jakub Jelinek  <jakub@redhat.com>
38123             Martin Liska  <mliska@suse.cz>
38125         PR target/63892
38126         * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
38127         don't try to create_thunk if stdarg_p.  If
38128         !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
38129         redirect_callers if possible.
38130         (sem_item_optimizer::execute): Call unregister_hooks here...
38131         (ipa_icf_driver): ... instead of here.
38133 2015-02-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
38135         * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
38136         Mark operand 0 as earlyclobber in 2nd alternative.
38137         (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
38138         Write negated shift amount into QI lowpart operand 0 and use it
38139         in the shift step.
38140         (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
38142 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
38144         * cgraph.h (clone_function_name_1): Declare.
38145         * cgraphclones.c (clone_function_name_1): New function.
38146         (clone_function_name): Use it.
38147         * lto-partition.c: Include "stringpool.h".
38148         (must_not_rename, maybe_rewrite_identifier)
38149         (validize_symbol_for_target): New static functions.
38150         (privatize_symbol_name): Use must_not_rename.
38151         (promote_symbol): Call validize_symbol_for_target.
38152         (lto_promote_cross_file_statics): Likewise.
38153         (lto_promote_statics_nonwpa): Likewise.
38155 2015-02-20  Georg-Johann Lay  <avr@gjlay.de>
38157         PR target/64452
38158         * config/avr/avr.md (pushhi_insn): New insn.
38159         (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
38161 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
38162             Jakub Jelinek  <jakub@redhat.com>
38164         * tree-streamer.c (preload_common_nodes): Don't preload
38165         TI_VA_LIST* for offloading.
38166         * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
38167         in_lto_p.
38169 2015-02-19  John David Anglin  <danlgin@gcc.gnu.org>
38171         * config/pa/pa.c (pa_emit_move_sequence): Always force
38172         (const (plus (symbol) (const_int))) to const mem.  Put REG_EQUAL
38173         note on insn.
38175         * config/pa/pa.c (pa_reloc_rw_mask): New function.
38176         (TARGET_ASM_RELOC_RW_MASK): Define.
38177         (pa_cannot_force_const_mem): Revert previous change.
38179 2015-02-19  Martin Jambor  <mjmabor@suse.cz>
38180             Jan Hubicka  <hubicka@ucw.cz>
38182         PR ipa/65028
38183         * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
38184         across jump functions.
38186 2015-02-19  Uros Bizjak  <ubizjak@gmail.com>
38188         * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
38190 2015-02-19  Sandra Loosemore  <sandra@codesourcery.com>
38192         * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
38194 2015-02-19  Richard Henderson  <rth@redhat.com>
38196         PR middle-end/65074
38197         * varasm.c (default_binds_local_p_2): Don't test node->definition;
38198         test DECL_EXTERNAL independent of symtab_node.
38200 2015-02-19  Jakub Jelinek  <jakub@redhat.com>
38202         PR lto/65012
38203         * varpool.c (varpool_node::get_constructor): Return early
38204         if this->lto_file_data is NULL.
38206 2015-02-19  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
38208         * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
38209         (rank_for_schedule_debug): Update.
38210         (ready_sort): Make static.  Move sorting logic to ...
38211         (ready_sort_debug, ready_sort_real): New static functions.
38212         (schedule_block): Sort both debug insns and real insns in preparation
38213         for ready list trimming.  Improve debug output.
38214         * sched-int.h (ready_sort): Remove global declaration.
38216 2015-02-18  Trevor Saunders  <tsaunders@mozilla.com>
38218         * ipa-icf.c (sem_function::equals_private): Adjust.
38219         (sem_function::bb_dict_test): Take a vec<int> * instead of
38220         auto_vec<int>.
38221         * ipa-icf.h (bb_dict_test): Likewise.
38223 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
38225         PR gcov-profile/64634
38226         * tree-eh.c (frob_into_branch_around): Fix up typos
38227         in function comment.
38228         (lower_catch): Put eh_seq resulting from EH lowering of
38229         the cleanup sequence after the cleanup rather than before it.
38231 2015-02-18  Tom de Vries  <tom@codesourcery.com>
38233         * common.opt (fstdarg-opt): New option.
38234         * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
38235         * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
38236         (@item -fstdarg-opt): New item.
38238 2015-02-18  H.J. Lu  <hongjiu.lu@intel.com>
38240         PR target/65064
38241         * config/ia64/predicates.md (sdata_symbolic_operand): Return false
38242         for common symbols.
38244 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
38246         * config/i386/t-intelmic (mkoffload.o): Remove dependency on
38247         insn-modes.h.
38248         (ALL_HOST_OBJS): Add mkoffload.o.
38249         * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
38251 2015-02-18  Jan Hubicka  <hubicka@ucw.cz>
38253         * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
38254         (compare_virtual_tables): Be smarter about skipping typeinfos;
38255         do sane output on virtual table table mismatch.
38256         (warn_odr): Be ready for forward declarations of enums;
38257         output sane info on base mismatch and virtual table mismatch.
38258         (add_type_duplicate): Fix code choosing prevailing type; do not ICE
38259         when only one type is polymorphic.
38260         (get_odr_type): Fix hashtable corruption.
38261         (dump_odr_type): Dump mangled names.
38263 2015-02-18  Richard Biener  <rguenther@suse.de>
38265         PR tree-optimization/65063
38266         * tree-predcom.c (determine_unroll_factor): Return 1 if we
38267         have replaced looparound PHIs.
38269 2015-02-18  Martin Liska  <mliska@suse.cz>
38271         * lto-streamer.c (lto_streamer_init): Encapsulate
38272         streamer_check_handled_ts_structures with checking macro.
38274 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
38276         PR ipa/65087
38277         * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
38278         section if !implicit_section.
38279         (cgraph_node::create_version_clone_with_body): Likewise.
38280         * trans-mem.c (ipa_tm_create_version): Likewise.
38282 2015-02-18  Richard Biener  <rguenther@suse.de>
38284         PR tree-optimization/62217
38285         * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
38286         into BIVs.
38288 2015-02-18  Marek Polacek  <polacek@redhat.com>
38290         PR sanitizer/65081
38291         * ubsan.c (OBJSZ_MAX_OFFSET): Define.
38292         (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
38293         is in range [-16K, -1].  Don't issue run-time error if
38294         (ptr > ptr + offset).
38296 2015-02-18  Thomas Schwinge  <thomas@codesourcery.com>
38298         * doc/install.texi (nvptx-*-none): New section.
38299         * doc/invoke.texi (Nvidia PTX Options): Likewise.
38300         * config/nvptx/nvptx.opt: Update.
38302         * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
38303         (access_check): New functions, copied from
38304         config/i386/intelmic-mkoffload.c.
38305         (main): For non-installed testing, look in all COMPILER_PATHs for
38306         GCC_INSTALL_NAME.
38308         * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
38310 2015-02-18  Andrew Pinski  <apinski@cavium.com>
38311             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
38313         * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
38314         Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
38316 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
38318         * ipa-visibility.c (function_and_variable_visibility): Only
38319         check locality if node is not already local.
38320         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
38321         call_for_symbol_and_aliases instead of
38322         call_for_symbol_thunks_and_aliases.
38323         (ipa_inline): Likewise.
38324         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
38325         first walk aliases.
38326         * ipa.c (symbol_table::remove_unreachable_nodes): Use
38327         call_for_symbol_and_aliases.
38328         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
38329         (ipa_propagate_frequency_1): Use it; use opt_for_fn
38330         (ipa_propagate_frequency): Update.
38331         (ipa_profile): Add opt_for_fn gueards.
38333 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
38335         * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
38336         * doc/invoke.texi (SH options): Document it.
38337         * config/sh/sh.c (sh_insn_length_adjustment): Check
38338         TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
38340 2015-02-17  H.J. Lu  <hongjiu.lu@intel.com>
38342         * common.opt (fipa-cp-alignment): New.
38343         * ipa-cp.c (ipcp_store_alignment_results): Check
38344         flag_ipa_cp_alignment.
38345         * opts.c (default_options_table): Enable -fipa-cp-alignment for
38346         -O2.
38347         (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
38348         * doc/invoke.texi: Document -fipa-cp-alignment.
38350 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
38352         PR target/64793
38353         * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
38354         to nil.  Adjust comments.
38356 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
38358         * ipa-visibility.c (function_and_variable_visibility): Only
38359         check locality if node is not already local.
38360         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
38361         call_for_symbol_and_aliases instead of
38362         call_for_symbol_thunks_and_aliases.
38363         (ipa_inline): Likewise.
38364         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
38365         first walk aliases.
38366         * ipa.c (symbol_table::remove_unreachable_nodes): Use
38367         call_for_symbol_and_aliases.
38368         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
38369         (ipa_propagate_frequency_1): Use it; use opt_for_fn
38370         (ipa_propagate_frequency): Update.
38371         (ipa_profile): Add opt_for_fn guards.
38373 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
38375         * config/nvptx/mkoffload.c (parse_file): Fix logic error in
38376         skipping of "strange" tokens.
38378 2015-02-17  Jeff Law  <law@redhat.com>
38380         * tree-vrp.c (identify_jump_threads): Use last_stmt.  Remove
38381         obsolete comment.
38383 2015-02-17  James Greenhalgh  <james.greenhalgh@arm.com>
38385         * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
38386         as forcing a HARD_DEP between instructions, thereby
38387         disallowing rewriting to break dependencies.
38389 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
38391         * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
38392         * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
38393         variables in boundary that have no inlitalizer encoded and are
38394         not aliases.
38395         * varasm.c (default_binds_local_p_2): External definitions do not
38396         count as definitions here.
38398 2015-02-16  Jeff Law  <law@redhat.com>
38400         PR tree-optimization/64823
38401         * tree-vrp.c (identify_jump_threads): Handle blocks with no real
38402         statements.
38403         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
38404         threading through blocks with PHIs, but no statements.
38405         (thread_through_normal_block): Distinguish between blocks where
38406         we did not process all the statements and blocks with no statements.
38408 2015-02-16  Jakub Jelinek  <jakub@redhat.com>
38409             James Greenhalgh  <james.greenhalgh@arm.com>
38411         PR ipa/64963
38412         * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
38413         section if not linkonce.  Fix up formatting.
38414         (cgraph_node::create_version_clone_with_body): Copy section.
38415         * trans-mem.c (ipa_tm_create_version): Likewise.
38417 2015-02-16  Richard Biener  <rguenther@suse.de>
38419         PR tree-optimization/65077
38420         * tree-ssa-structalias.c (get_constraint_for_1): Handle
38421         IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
38422         (find_func_aliases): Allow float values to carry pointers again.
38424 2015-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
38426         * doc/install.texi (Specific): Reorder targets list to put
38427         aarch64 in alphabetical order.  Add a link to aarch64*-*-*
38428         from the top menu.
38430 2015-02-16  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
38431             David Edelsohn  <dje.gcc@gmail.com>
38433         PR target/65058
38434         * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
38435         mapping class to external variable or function reference.
38436         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
38437         mapping class.
38439 2015-02-16  David Eelsohn  <dje.gcc@gmail.com>
38441         PR target/53348
38442         * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
38443         ASM_WEAKEN_DECL if defined.
38445 2015-02-16  Richard Biener  <rguenther@suse.de>
38447         PR lto/65015
38448         * varasm.c (default_file_start): For LTO produced units
38449         emit <artificial> as file directive.
38451 2015-02-16  Richard Biener  <rguenther@suse.de>
38453         PR tree-optimization/63593
38454         * tree-predcom.c (execute_pred_commoning_chain): Delay removing
38455         stmts and releasing SSA names until...
38456         (execute_pred_commoning): ... after processing all chains.
38458 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
38460         PR ipa/65059
38461         * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
38462         external functions.
38464 2015-02-15  Sandra Loosemore  <sandra@codesourcery.com>
38466         * doc/bugreport.texi: Adjust section titles throughout the file
38467         to use "Title Case".
38468         * doc/extend.texi: Likewise.
38469         * doc/gcov.texi: Likewise.
38470         * doc/implement-c.texi: Likewise.
38471         * doc/implement-cxx.texi: Likewise.
38472         * doc/invoke.texi: Likewise.
38473         * doc/objc.texi: Likewise.
38474         * doc/standards.texi: Likewise.
38475         * doc/trouble.texi: Likewise.
38477 2015-02-15  Jan Hubicka  <hubicka@ucw.cz>
38479         * cgraph.h (symtab_node::has_aliases_p): Simplify.
38480         (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
38481         * tree.c (lookup_binfo_at_offset): Make static.
38482         (get_binfo_at_offset): Do not shadow offset; add explanatory
38483         comment.
38485 2015-02-15  John David Anglin  <danglin@gcc.gnu.org>
38487         * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
38488         for all floading point loads and stores except those using a register
38489         index address.
38490         * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
38491         to a register.
38493 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
38495         * ipa-inline-analysis.c (growth_data): Add uninlinable field.
38496         (do_estimate_growth_1): Record if any uninlinable edge was seen.
38497         (estimate_growth): Handle uninlinable edges correctly.
38498         (check_callers): New.
38499         (growth_likely_positive): Handle aliases correctly.
38501 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
38503         * ipa-chkp.c: Use iterate_direct_aliases.
38504         * symtab.c (resolution_used_from_other_file_p): Move inline.
38505         (symtab_node::create_reference): Fix formating.
38506         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
38507         (symtab_node::iterate_reference): Move inline.
38508         (symtab_node::iterate_referring): Move inline.
38509         (symtab_node::iterate_direct_aliases): Move inline.
38510         (symtab_node::used_from_object_file_p_worker): Inline into ...
38511         (symtab_node::used_from_object_file_p): ... this one; move inline.
38512         (symtab_node::call_for_symbol_and_aliases): Move inline;
38513         use iterate_direct_aliases.
38514         (symtab_node::call_for_symbol_and_aliases_1): New method.
38515         (cgraph_node::call_for_symbol_and_aliases): Move inline;
38516         use iterate_direct_aliases.
38517         (cgraph_node::call_for_symbol_and_aliases_1): New method.
38518         (varpool_node::call_for_node_and_aliases): Rename to ...
38519         (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
38520         use iterate_direct_aliases.
38521         (varpool_node::call_for_symbol_and_aliases_1): New method.
38522         * ipa.c (ipa_single_use): Use iterate_direct_aliases.
38523         (ipa_discover_readonly_nonaddressable_var): Update.
38524         * ipa-devirt.c: Fix formating.
38525         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
38526         Move inline.
38527         (cgraph_node::call_for_symbol_and_aliases): Move inline.
38528         (cgraph_node::call_for_symbol_and_aliases_1): New function..
38529         * cgraph.h (used_from_object_file_p_worker): Remove.
38530         (resolution_used_from_other_file_p): Move inline.
38531         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
38532         (symtab_node::iterate_reference): Move inline.
38533         (symtab_node::iterate_referring): Move inline.
38534         (symtab_node::iterate_direct_aliases): Move inline.
38535         (symtab_node::used_from_object_file_p_worker): Inline into ...
38536         (symtab_node::used_from_object_file_p): Move inline.
38537         * tree-emutls.c (ipa_lower_emutls): Update.
38538         * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
38539         (varpool_node::call_for_node_and_aliases): Remove.
38541 2015-02-14  Jakub Jelinek  <jakub@redhat.com>
38543         PR tree-optimization/62209
38544         * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
38545         op == range->exp, insert seq and gimplified code after labels
38546         instead of after the phi.
38548 2015-02-13  Jeff Law  <law@redhat.com>
38550         PR bootstrap/65060
38551         Revert my change for tree-optimization/64823.
38553 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
38555         PR tree-optimization/65053
38556         * tree-ssa-phiopt.c (value_replacement): When moving assign before
38557         cond, either reset VR on lhs or set it to phi result VR.
38559 2015-02-13  Jeff Law  <law@redhat.com>
38561         PR tree-optimization/64823
38562         * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
38563         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
38564         threading through blocks with PHIs, but no statements.
38565         (thread_through_normal_block): Distinguish between blocks where
38566         we did not process all the statements and blocks with no statements.
38568         PR rtl-optimization/47477
38569         * match.pd (convert (plus/minus (convert @0) (convert @1): New
38570         simplifier to narrow arithmetic.
38572 2015-02-13  Jan Hubicka  <hubicka@ucw.cz>
38574         PR ipa/65028
38575         * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
38576         polymorphic call info when type is not known to be preserved.
38578 2015-02-13  Maritn Jambor  <mjambor@suse.cz>
38580         PR ipa/65028
38581         * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
38582         (inline_call): Use it.
38584 2015-02-13  Thomas Schwinge  <thomas@codesourcery.com>
38586         * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
38587         GOMP_DEVICE_NVIDIA_PTX.
38589 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
38591         PR ipa/65034
38592         * stmt.c (emit_case_nodes): Use void_type_node instead of
38593         NULL_TREE as LABEL_DECL type.
38595 2015-02-13  John David Anglin  <danglin@gcc.gnu.org>
38597         * config/pa/constraints.md: Change "Q" and "T" constraints to memory
38598         constraints.
38599         * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
38600         symbolic references to data to be forced to constant memory on the
38601         SOM target.
38603 2015-02-13  Ilya Enkovich  <ilya.enkovich@intel.com>
38605         PR tree-optimization/65002
38606         * tree-cfg.c (pass_data_fixup_cfg): Don't update
38607         SSA on start.
38608         * tree-sra.c (some_callers_have_no_vuse_p): New.
38609         (ipa_early_sra): Reject functions whose callers
38610         assume function is read only.
38612 2015-02-13  Richard Biener  <rguenther@suse.de>
38614         PR lto/65015
38615         * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
38616         for LTO produced CUs.
38618 2015-02-13  Bin Cheng  <bin.cheng@arm.com>
38620         PR tree-optimization/64705
38621         * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
38622         * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
38623         * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
38624         (find_bivs, find_givs_in_stmt_scev): Pass new argument to
38625         expand_simple_operations.
38627 2015-02-13  H.J. Lu  <hongjiu.lu@intel.com>
38628             Richard Henderson  <rth@redhat.com>
38630         PR rtl/32219
38631         * cgraphunit.c (cgraph_node::finalize_function): Set definition
38632         before notice_global_symbol.
38633         (varpool_node::finalize_decl): Likewise.
38634         * varasm.c (default_binds_local_p_2): Rename from
38635         default_binds_local_p_1, add weak_dominate argument.  Use direct
38636         returns instead of assigning to local variable.  Unify varpool and
38637         cgraph paths via symtab_node.  Reject undef weak variables before
38638         testing visibility.  Reorder tests for simplicity.
38639         (default_binds_local_p): Use default_binds_local_p_2.
38640         (default_binds_local_p_1): Likewise.
38641         (decl_binds_to_current_def_p): Unify varpool and cgraph paths
38642         via symtab_node.
38643         (default_elf_asm_output_external): Emit visibility when specified.
38645 2015-02-13  Alan Modra  <amodra@gmail.com>
38647         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
38648         code setting up r11 for out-of-line fp restore.
38650 2015-02-13  Eric Botcazou  <ebotcazou@adacore.com>
38652         * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
38653         (muser-mode): Likewise.
38655 2015-02-13  Alan Modra  <amodra@gmail.com>
38657         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
38658         or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
38660 2015-02-12  David Howells  <dhowells@redhat.com>
38662         * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
38663         warning.
38664         * tree-ssa-uninit.c (dump_predicates): Likewise.
38665         * opts.c (print_filtered_help): Likewise.
38667 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
38669         * dwarf2out.c (output_die): Use "%s", name instead of name to
38670         avoid -Wformat-security warning.
38672         * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
38673         if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
38674         * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
38675         only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
38677 2015-02-12  Jason Merrill  <jason@redhat.com>
38679         * common.opt (-flifetime-dse): New.
38681 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
38683         PR sanitizer/65019
38684         * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
38686         PR tree-optimization/65014
38687         * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
38688         use original second operand of arg0 or arg1 instead of
38689         that adjusted by STRIP_NOPS.
38691 2015-02-11  Jeff Law  <law@redhat.com>
38693         PR target/63347
38694         * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
38695         that needs to be queued, just queue it for a single cycle.
38697 2015-02-11  Jan Hubicka  <hubicka@ucw.cz>
38699         * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
38700         bodies of thunks; comment on why.
38701         * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
38702         symbols are extern.
38704 2015-02-11  Richard Henderson  <rth@redhat.com>
38706         PR sanitize/65000
38707         * tree-eh.c (mark_reachable_handlers): Mark source and destination
38708         regions of __builtin_eh_copy_values.
38710 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
38712         PR middle-end/65003
38713         * varasm.c (place_block_symbol): Assert that DECL_RTL of the
38714         ultimate alias is MEM with SYMBOL_REF satisfying
38715         SYMBOL_REF_HAS_BLOCK_INFO_P as its operand.  Don't pass the MEM
38716         to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
38718 2015-02-11  Thomas Schwinge  <thomas@codesourcery.com>
38720         * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
38721         "diagnostic-core.h".
38722         (main): Initialize progname, and call diagnostic_initialize.
38724         * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
38725         instead of __OPENMP_TARGET__.
38727         * config/nvptx/mkoffload.c: Include "gomp-constants.h".
38728         (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
38729         hard-coding PTX_ID.
38731 2015-02-11  H.J. Lu  <hongjiu.lu@intel.com>
38733         * doc/sourcebuild.texi (pie_enabled): Document.
38735 2015-02-11  Martin Liska  <mliska@suse.cz>
38737         PR ipa/64813
38738         * cgraphunit.c (cgraph_node::expand_thunk): Do not create
38739         a return value for call to a function that is noreturn.
38741 2015-02-11  Richard Biener  <rguenther@suse.de>
38743         PR lto/65015
38744         * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
38745         and -fresolution.
38747 2015-02-11  Andrew Pinski  <apinski@cavium.com>
38749         PR target/64893
38750         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
38751         Change the first argument type to size_type_node and add another
38752         size_type_node.
38753         (aarch64_simd_expand_builtin): Handle the new argument to
38754         AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
38755         print an out when the first two arguments are not
38756         nonzero integer constants.
38757         * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
38758         Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
38760 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
38762         PR target/61925
38763         * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
38764         (ix86_reset_previous_fndecl): Restore it here, unconditionally.
38765         (ix86_set_current_function): Rewritten.
38766         (ix86_add_new_builtins): Temporarily clear current_target_pragma
38767         when creating builtin fndecls.
38769 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
38771         PR ipa/65005
38772         * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
38773         function.
38774         * symtab.c (symtab_node::verify_base): Remove check that non-definitions
38775         have no comdat group.
38776         * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
38777         (lto_output_varpool_node): Always output alias info.
38778         (output_refs): Output refs of boundary aliases, too.
38779         (compute_ltrans_boundary): Add alias and thunk target into boundaries.
38780         (output_symtab): Output call eges in thunks in boundary.
38781         (get_alias_symbol): Remove.
38782         (input_node, input_varpool_node): Do not special case weakrefs.
38783         * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
38784         alias and thunks targets in the boundary; do not take removed symbols
38785         from their comdat groups.
38786         * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
38787         (cgraph_node::global_info): Remove.
38788         (cgraph_node::rtl_info): Look through aliases and thunks.
38789         * cgrpah.h (global_info): Remove.
38790         (non_local_p): Remove.
38792 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
38793             Sandra Loosemore  <sandra@codesourcery.com>
38795         * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
38796         to inline asm.  List dialects in proper order.
38798 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
38799             Sandra Loosemore  <sandra@codesourcery.com>
38801         * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
38803 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
38805         * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
38806         modified) reference to Solaris.
38808 2015-02-10  Sandra Loosemore  <sandra@codesourcery.com>
38810         * doc/extend.texi (Extended Asm): Fix typos.
38812 2015-02-10  Jakub Jelinek  <jakub@redhat.com>
38814         PR sanitizer/65004
38815         * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
38817 2015-02-10  Oleg Endo  <olegendo@gcc.gnu.org>
38819         PR target/64661
38820         * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
38821         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
38822         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
38823         * config/sh/constraints.md (Ara, Add): New constraints.
38824         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
38825         predicates.
38826         (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
38827         atomic_mem_operand_0.  Don't use force_reg on the memory address.
38828         (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
38829         Sra constraint.  Convert to insn_and_split.  Add workaround for
38830         PR 64974.
38831         (atomic_compare_and_swap<mode>_hard): Copy to
38832         atomic_compare_and_swap<mode>_hard_1.  Convert to insn_and_split.
38833         Use atomic_mem_operand_0 predicate.
38834         (atomic_compare_and_swap<mode>_soft_gusa,
38835         atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
38836         AraAdd constraints.
38837         (atomic_compare_and_swap<mode>_soft_tcb,
38838         atomic_compare_and_swap<mode>_soft_imask,
38839         atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
38840         atomic_mem_operand_0 predicate and SraSdd constraints.
38841         (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
38842         constraint.
38843         (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
38844         Convert to insn_and_split.  Use atomic_mem_operand_0 predicate.
38845         (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
38846         atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1.  Don't use
38847         force_reg on the memory address.
38848         (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
38849         atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
38850         atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
38851         atomic_mem_operand_1 predicate and Sra constraint.
38852         (atomic_fetch_<fetchop_name><mode>_hard): Copy to
38853         atomic_fetch_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
38854         Use atomic_mem_operand_1 predicate.
38855         (atomic_<fetchop_name><mode>_hard): Copy to
38856         atomic_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
38857         Use atomic_mem_operand_1 predicate.
38858         (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
38859         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
38860         (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1.  Convert to
38861         insn_and_split.  Use atomic_mem_operand_1 predicate.
38862         (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
38863         atomic_<fetchop_name>_fetch<mode>_hard_1.  Convert to insn_and_split.
38864         Use atomic_mem_operand_1 predicate.
38865         (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
38866         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
38867         (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
38868         in generated insn with original mem operand before emitting the insn.
38869         (atomic_fetch_<fetchop_name><mode>_soft_gusa,
38870         atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
38871         atomic_<fetchop_name>_fetch<mode>_soft_gusa,
38872         atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
38873         Use atomic_mem_operand_1 predicate and AraAdd constraints.
38874         (atomic_fetch_<fetchop_name><mode>_soft_tcb,
38875         atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
38876         atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
38877         atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
38878         atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
38879         atomic_<fetchop_name>_fetch<mode>_soft_tcb,
38880         atomic_not_fetch<mode>_soft_tcb,
38881         atomic_<fetchop_name>_fetch<mode>_soft_imask,
38882         atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
38883         atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
38884         Use atomic_mem_operand_1 predicate and SraSdd constraints.
38886 2015-02-10  Uros Bizjak  <ubizjak@gmail.com>
38888         * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
38889         and 3 earlyclobber operands.
38891 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
38893         * common.opt (fstack-reuse): Mark as optimization.
38895 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
38897         PR ipa/64982
38898         * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
38900 2015-02-10  Trevor Saunders  <tsaunders@mozilla.com>
38902         PR tree-optimization/64326
38903         * cfghooks.c (make_forwarder_block): Cap frequency of created block.
38905 2015-02-10  Rainer Emrich  <rainer@emrich-ebersheim.de>
38907         PR gcov-profile/61889
38908         * gcov-tool.c: Remove wrong #if !defined(_WIN32)
38910 2015-02-10  Richard Biener  <rguenther@suse.de>
38912         PR tree-optimization/64995
38913         * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
38914         value we use is final.
38915         (visit_reference_op_store): Always valueize op.
38916         (visit_use): Properly valueize vuses.
38918 2015-02-10  Richard Biener  <rguenther@suse.de>
38920         PR tree-optimization/64909
38921         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
38922         pass a scalar-stmt count estimate to the cost model.
38923         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
38925 2015-02-10  Alexander Monakov  <amonakov@ispras.ru>
38927         * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
38928         enabled by default together with var-tracking.
38930 2015-02-10  Nick Clifton  <nickc@redhat.com>
38932         * config/rl78/rl78.c: Remove DIV attribute code accidentally
38933         included in previous rl78 commit.
38935 2015-02-10  Richard Biener  <rguenther@suse.de>
38937         * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
38938         * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
38939         return the bitpack.
38941 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
38943         PR gcov-profile/61889
38944         * config.in: regenerate.
38945         * configure.in: Likewise.
38946         * configure.ac: Check for ftw.h.
38947         * gcov-tool.c: Check for ftw.h before using nftw.
38949 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
38951         PR lto/64076
38952         * ipa-visibility.c (update_visibility_by_resolution_info): Only
38953         assert when not in lto mode.
38955 2015-02-09  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
38957         * ira-color.c (setup_left_conflict_sizes_p): Simplify
38958         initialization/assignment of conflict_size.
38960 2015-02-09  Jan Hubicka  <hubicka@ucw.cz>
38962         PR ipa/64978
38963         * ipa-cp.c (gather_caller_stats): Skip thunks.
38964         (propagate_constants_topo): Skip aliases.
38966 2015-02-09  Kaz Kojima  <kkojima@gcc.gnu.org>
38968         PR target/64761
38969         * config/sh/sh.c (sh_option_override): Don't change
38970         -freorder-blocks-and-partition to -freorder-blocks even when
38971         unwinding is enabled.
38972         (sh_can_follow_jump): Return false if the followee jump is
38973         a crossing jump when -freorder-blocks-and-partition is specified.
38974         * config/sh/sh.md (*jump_compact_crossing): New insn.
38976 2015-02-09  Joern Rennecke  <joern.rennecke@embecosm.com>
38977             Kaz Kojima  <kkojima@gcc.gnu.org>
38979         PR target/64761
38980         * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
38981         * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
38982         (sh_can_redirect_branch): Rename to ...
38983         (sh_can_follow_jump): ... this.  Constify argument types.
38984         * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
38985         * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
38986         * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
38987         * doc/tm.texi: Regenerate.
38989 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
38991         PR sanitizer/64981
38992         * builtins.c (expand_builtin): Call targetm.expand_builtin
38993         for BUILT_IN_MD builtins regardless of asan_intercepted_p.
38995 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
38997         PR ipa/61548
38998         * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
39000 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
39002         PR ipa/63566
39003         * ipa-icf.c (set_local): New function.
39004         (sem_function::merge): Use it.
39006 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
39008         * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
39009         (add_type_duplicate): Fix comparison of BINFOs.
39011 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
39013         * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
39014         on getting VOID pointer.
39016 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
39018         PR target/64979
39019         * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
39020         va_list escapes.
39022 2015-02-09  Richard Biener  <rguenther@suse.de>
39024         * genmatch.c (replace_id): Copy expr_type.
39026 2015-02-09  Richard Biener  <rguenther@suse.de>
39028         * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
39029         (streamer_write_tree_bitfields): Declare.
39030         * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
39031         properly unpack padding.
39032         (unpack_value_fields): Inline ...
39033         (streamer_read_tree_bitfields): ... here.
39034         * tree-streamer-out.c (pack_ts_base_value_fields): Inline
39035         and properly add padding bits.
39036         (streamer_pack_tree_bitfields): Fold into ...
39037         (streamer_write_tree_bitfields): ... this new function,
39038         exposing the bitpack object.
39039         * lto-streamer-out.c (lto_write_tree_1): Call
39040         streamer_write_tree_bitfields.
39042 2015-02-09  Richard Biener  <rguenther@suse.de>
39044         PR tree-optimization/54000
39045         * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
39046         (struct ivopts_data): Add loop_loc member.
39047         (tree_ssa_iv_optimize_loop): Dump loop location.
39048         (create_new_ivs): Likewise, also dump number of IVs generated.
39050 2015-02-09  Martin Liska  <mliska@suse.cz>
39052         * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
39053         just if not yet registered.
39054         (ipa_icf_generate_summary): Register callgraph hooks.
39056 2015-02-08  Andrew Pinski  <apinski@cavium.com>
39058         * config/aarch64/aarch64.c (gty_dummy): Delete.
39060 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
39062         PR ipa/63566
39063         * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
39064         (cgraph_node::local_p): Remove thunk related FIXME.
39066 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
39068         PR ipa/63566
39069         * i386.c (ix86_function_regparm): Look through aliases to see if callee
39070         is local and optimized.
39071         (ix86_function_sseregparm): Likewise; also use target's SSE math
39072         settings; error out instead of silently generating wrong code
39073         on mismatches.
39074         (init_cumulative_args): Look through aliases.
39076 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
39078         PR ipa/63566
39079         * ipa-split.c (execute_split_functions): Split if function has aliases.
39081 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
39083         PR ipa/63566
39084         * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
39085         aliases before trying to expand it.
39086         (cgraph_node::expand_thunk): Fix formating.
39088 2015-02-07  Sandra Loosemore  <sandra@codesourcery.com>
39090         * doc/extend.texi (Function Attributes [naked]): Copy-edit.
39091         (Using Assembly Language with C): Expand introduction.
39092         (Basic Asm): Copy-edit.  Add more information about uses of
39093         basic asm.
39094         (Extended Asm): Copy-edit.  Document new escape syntax and
39095         %l[label] syntax.
39096         (Global Reg Vars): Copy-edit.
39097         (Local Reg Vars): Likewise.
39099 2015-02-06  David Edelsohn  <dje.gcc@gmail.com>
39101         PR debug/2714
39102         PR bootstrap/64256
39103         * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
39104         (DBX_CONTIN_CHAR): Define.
39106 2015-02-06  Sebastian Pop  <s.pop@samsung.com>
39107             Brian Rzycki  <b.rzycki@samsung.com>
39109         PR tree-optimization/64878
39110         * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
39111         (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
39112         Stop recursion at loop phi nodes after having visited a loop phi node.
39114 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
39116         * toplev.c (process_options): Change flag_ipa_ra before creating
39117         optimization_{default,current}_node.
39119         PR ipa/64896
39120         * cgraphunit.c (cgraph_node::expand_thunk): If
39121         restype is not is_gimple_reg_type nor the thunk_fndecl
39122         returns aggregate_value_p, set restmp to a temporary variable
39123         instead of resdecl.
39125 2015-02-06  Vladimir Makarov  <vmakarov@redhat.com>
39127         * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
39129 2015-02-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
39131         PR target/64205
39132         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
39133         add a general secondary reload handler for SDmode, unless we have
39134         both read/write support for SDmode.
39136 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
39138         PR middle-end/64937
39139         * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
39140         Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
39141         or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
39142         1 before, push it to abstract_vec.
39143         (dwarf2out_abstract_function): Adjust caller.  Don't call
39144         set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
39145         DECL_ABSTRACT_P flags for all abstract_vec elts.
39147 2015-02-06  Renlin Li  <renlin.li@arm.com>
39149         * tree-ssa-forwprop.c (execute): Keep location info while rewrite
39150         complex gimple.
39151         * tree-ssa.c (execute_update_addresses_taken): Likewise.
39153 2015-02-06  Jeff Law  <law@redhat.com>
39155         PR target/64889
39156         * config/h8300/h8300.c (push): New argument "in_prologue".
39157         Pass "in_prologue" along to "F".
39158         (h8300_push_pop): Corresponding changes.
39159         (h8300_expand_prologue): Likewise.
39160         (h8300_swap_into_er6): Likewise.  Do not set RTX_FRAME_RELATED_P.
39162 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
39164         PR rtl-optimization/64957
39165         PR debug/64817
39166         * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
39167         IOR rather than for AND.
39169 2015-02-06  Eric Botcazou  <ebotcazou@adacore.com>
39171         PR target/62631
39172         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
39173         of shift-add and (add + shift) operations.  Rename local variable.
39175 2015-02-05  Jeff Law  <law@redhat.com>
39177         PR target/17306
39178         * config/h8300/constraints.md (U): Correctly dectect
39179         "eightbit_data" memory addresses.
39180         * config/h8300/h8300.c (eightbit_constant_address_p): Also
39181         handle (const (plus (symbol_ref (x)))) where x is declared
39182         as an 8-bit data memory address.
39183         * config/h8300/h8300.md (call, call_value): Correctly detect
39184         "funcvec" functions.
39186         PR target/43264
39187         * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
39188         24 to 28 bits for the H8/300.
39190 2015-02-06  Alan Modra  <amodra@gmail.com>
39192         PR target/64876
39193         * config/rs6000/rs6000.c (chain_already_loaded): New function.
39194         (rs6000_call_aix): Use it.
39196 2015-02-05  Jan Hubicka <hubicka@ucw.cz>
39198         * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
39199         check.
39201 2015-02-05  Joern Rennecke  <joern.rennecke@embecosm.com>
39203         * config/h8300/constraints.md ("U" constraint): Use strict
39204         variant of REG_OK_FOR_BASE_P after reload has started.
39206 2015-02-04  Mantas Mikaitis  <mantas.mikaitis@arm.com>
39208         * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
39209         define to zero if !TARGET_NEON.
39210         (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
39212 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
39213             Trevor Saunders  <tsaunders@mozilla.com>
39215         PR ipa/61548
39216         * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
39218 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
39220         PR ipa/61548
39221         * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
39222         when removing varpool nodes.
39224 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
39226         PR ipa/61548
39227         * varpool.c (varpool_node::remove): Fix order of variables.
39229 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
39231         PR ipa/64686
39232         * ipa-inline.c (inline_small_functions): Fix ordering issue between
39233         speculation resolution and key updates.
39235 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
39237         * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
39238         about not letting any speculative edges unupdated.
39240 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
39242         PR gcov/64123
39243         * gcov-io.c (gcov_var): Export.
39245 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
39247         PR middle-end/64922
39248         * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
39249         edges that become speculative.
39251 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
39253         * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
39254         or DW_LANG_Fortran08.
39255         (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
39256         DW_LANG_Fortran08.
39257         (gen_compile_unit_die): Handle "GNU Fortran2003" and
39258         "GNU Fortran2008" language strings.
39259         * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
39260         * langhooks.h (lang_GNU_Fortran): New prototype.
39261         * langhooks.c (lang_GNU_Fortran): New function.
39262         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
39263         lang_GNU_Fortran.
39265 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
39267         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
39268         (RTX_OK_FOR_OLO10_P): Likewise.
39270 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
39272         * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
39274 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
39276         PR middle-end/64922
39277         * gimple.c: Include gimple-ssa.h.
39278         (maybe_remove_unused_call_args): New function.
39279         * gimple.h (maybe_remove_unused_call_args): Declare.
39280         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
39281         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
39282         * gimple-fold.c (gimple_fold_call): Likewise.
39284 2015-02-04  H.J. Lu  <hongjiu.lu@intel.com>
39286         PR rtl-optimization/64905
39287         * lra-eliminations.c (setup_can_eliminate): Clear hard frame
39288         pointer alignment if it isn't needed.
39290 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
39292         * config/aarch64/aarch64-cores.def: Add cortex-a72 and
39293         cortex-a72.cortex-a53.
39294         * config/aarch64/aarch64-tune.md: Regenerate.
39295         * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
39297 2015-02-04  Nick Clifton  <nickc@redhat.com>
39299         * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
39300         inside a MEM.
39302 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
39304         * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
39305         (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
39306         (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
39307         of DEF_BUILTIN.
39308         (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
39309         BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
39310         DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
39311         (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
39312         BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
39313         BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
39314         DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
39315         * tree-core.h (enum built_in_function): In between
39316         BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
39317         for builtins that use DEF_BUILTIN_CHKP macro.
39319 2015-02-04  Alexandre Oliva  <aoliva@redhat.com>
39321         PR debug/64817
39322         * cfgexpand.c (expand_debug_expr): Compute unsignedp from
39323         operands for tcc_comparison exprs.  Fix typos.
39325         PR debug/64817
39326         * simplify-rtx.c (simplify_binary_operation_1): Simplify one
39327         of two XORs that have an intervening AND or IOR.
39329         PR debug/64817
39330         * simplify-rtx.c (simplify_binary_operation_1): Rewrite
39331         simplification of XOR of AND to not allocate new rtx before
39332         committing to a simplification.
39334 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
39336         * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
39337         manual swaps in all peepholes.
39339 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
39341         * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
39342         of manual swapping implementation.
39343         (aarch64_expand_vec_perm_const_1): Likewise.
39345 2015-02-04  James Greenhalgh <james.greenhalgh@arm.com>
39347         * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
39348         (generic_addrcost_table): Remove NAMED_PARAM.
39349         (cortexa57_addrcost_table): Likewise.
39350         (xgene1_addrcost_table): Likewise.
39351         (generic_regmove_table): Likewise.
39352         (cortexa53_regmove_table): Likewise.
39353         (xgene1_regmove_table): Likewise.
39354         (generic_vector_table): Likewise.
39355         (cortexa57_vector_table): Likewise.
39356         (xgene1_vector_table): Likewise.
39357         (generic_tunings): Likewise.
39358         (cortexa53_tunings): Likewise.
39359         (cortexa57_tunings): Likewise.
39360         (xgene1_tunings): Likewise.
39362 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
39364         * config/arm/arm-cores.def: Add cortex-a72 and
39365         cortex-a72.cortex-a53.
39366         * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
39367         * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
39368         * config/arm/arm-tune.md: Regenerate.
39369         * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
39370         "cortex-a72.cortex-a53".
39371         * doc/invoke.texi (ARM Options/-mtune): Likewise.
39373 2015-02-04  Nick Clifton  <nickc@redhat.com>
39375         PR target/64408
39376         * config/fr30/predicates.md (di_operand): Add SUBREG to the list
39377         of accepted codes.
39378         (nonimmediate_di_operand): Likewise.
39380         * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
39381         prefixes of known F5 using MSP430 MCUs.
39383 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
39385         * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
39386         * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
39387         instead of __builtin_sqrt.
39389 2015-02-04  Ilya Enkovich  <ilya.enkovich@intel.com>
39391         * varasm.c (do_assemble_alias): Follow transparent alias
39392         chain for target.
39393         (default_assemble_visibility): Follow transparent alias
39394         chain for decl name.
39396 2015-02-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
39398         PR middle-end/62103
39399         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
39400         to compute size of referenced value in the constant case.
39402 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
39404         PR rtl-optimization/64756
39405         * cse.c (invalidate_dest): New function.
39406         (cse_insn): Use it.  If dest != SET_DEST (sets[i].rtl) and
39407         HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
39408         invalidate and do not record it.
39410 2015-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
39412         PR target/64660
39413         * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
39414         atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
39415         atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
39416         atomic_nand<mode>_soft_tcb): New insns.
39417         (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
39418         Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
39419         (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
39420         Split into atomic_not_fetchsi_hard if operands[0] is unused.
39421         (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
39422         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
39423         (atomic_fetch_not<mode>_hard): Convert to insn_and_split.  Split into
39424         atomic_not<mode>_hard if operands[0] is unused.
39425         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
39426         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
39427         if operands[0] is unused.
39428         (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split.  Split
39429         into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
39430         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
39431         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
39432         unused.
39433         (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split.  Split
39434         into atomic_not<mode>_soft_tcb if operands[0] is unused.
39435         (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
39436         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
39437         if operands[0] is unused.
39438         (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split.  Split
39439         into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
39440         (atomic_fetch_nandsi_hard): Convert to insn_and_split.  Split into
39441         atomic_nand_fetchsi_hard if operands[0] is unused.
39442         (atomic_fetch_nand<mode>_hard): Convert to insn_and_split.  Split into
39443         atomic_nand<mode>_hard if operands[0] is unused.
39444         (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split.  Split
39445         into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
39446         (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split.  Split
39447         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
39448         (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split.  Split
39449         into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
39450         (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
39451         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
39452         (atomic_not_fetch<mode>_hard): Convert to insn_and_split.  Split into
39453         atomic_not<mode>_hard if operands[0] is unused.
39454         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
39455         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
39456         unused.
39457         (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
39458         into atomic_not<mode>_soft_tcb if operands[0] is unused.
39459         (atomic_nand_fetch<mode>_hard): Convert to insn_and_split.  Split into
39460         atomic_nand<mode>_hard if operands[0] is unused.
39461         (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
39462         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
39464 2015-02-03  David Malcolm  <dmalcolm@redhat.com>
39466         PR jit/64810
39467         * Makefile.in (GCC_OBJS): Add gcc-main.o.
39468         * gcc-main.c: New file, containing "main" taken from gcc.c.
39469         * gcc.c (do_self_spec): Free decoded_options.
39470         (class driver): Move declaration to gcc.h.
39471         (main): Move declaration and implementation to new file
39472         gcc-main.c.
39473         (driver_get_configure_time_options): New function.
39474         * gcc.h (class driver): Move this declaration here, from
39475         gcc.c.
39476         (driver_get_configure_time_options): New declaration.
39478 2015-02-03  Jan Hubicka  <hubicka@ucw.cz>
39480         * ipa-inline-analysis.c (simple_edge_hints): Fix check for
39481         cross-module inlining.
39482         * cgraph.h (cgraph_node): Add flag merged.
39483         * ipa-icf.c (sem_function::merge): Maintain it.
39485 2015-02-03  Richard Sandiford  <richard.sandiford@arm.com>
39487         * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
39488         instead of OBJECT_P.
39490 2015-02-03  Eric Botcazou  <ebotcazou@adacore.com>
39492         PR target/62631
39493         * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
39494         (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
39495         * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
39496         int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
39498 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
39500         PR other/63504
39501         * combine.c (reg_n_sets_max): New variable.
39502         (can_change_dest_mode, reg_nonzero_bits_for_combine,
39503         reg_num_sign_bit_copies_for_combine, get_last_value_validate,
39504         get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
39505         (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
39506         (rest_of_handle_combine): Initialize reg_n_sets_max.
39508 2015-02-02  Jan Hubicka  <hubicka@ucw.cz>
39510         * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
39511         if some always_inline was inlined, apply changes before inlining
39512         heuristically.
39514 2015-02-02  David Malcolm  <dmalcolm@redhat.com>
39516         PR jit/64810
39517         * config/arm/arm.c (arm_option_override): Set
39518         arm_selected_arch/cpu/tune to NULL on entry.
39520 2015-02-02  Tejas Belagod  <tejas.belagod@arm.com>
39521             Andrew Pinski  <pinskia@gcc.gnu.org>
39522             Jakub Jelinek  <jakub@gcc.gnu.org>
39524         PR target/64231
39525         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
39526         integer typing for small model. Use IN_RANGE.
39528 2015-02-02  Richard Biener  <rguenther@suse.de>
39530         * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
39531         * tree-vrp.c (vrp_valueize_1): Likewise.
39533 2015-02-02  Alan Modra  <amodra@gmail.com>
39535         * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
39536         than mem for toc_restore.
39537         * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
39538         (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
39539         (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
39541 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
39543         PR target/64047
39544         * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
39545         explicit default options.
39547 2015-02-01  Jan Hubicka  <hubicka@ucw.cz>
39549         PR ipa/64872
39550         * ipa-utils.c (ipa_merge_profiles): Add release argument.
39551         * ipa-icf.c (sem_function::merge): Do not release body when merging.
39552         * ipa-utils.h (ipa_merge_profiles): Update prototype.
39554 2015-02-01  Jakub Jelinek  <jakub@redhat.com>
39556         PR debug/64817
39557         * cfgexpand.c (deep_ter_debug_map): New variable.
39558         (avoid_deep_ter_for_debug): New function.
39559         (expand_debug_expr): If TERed SSA_NAME is in
39560         deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
39561         instead of trying to expand SSA_NAME's def stmt.
39562         (expand_debug_locations): When expanding debug bind
39563         of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
39564         temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
39565         value.
39566         (pass_expand::execute): Call avoid_deep_ter_for_debug on
39567         all debug bind stmts.  Delete deep_ter_debug_map after
39568         expand_debug_location if non-NULL and clear it.
39570 2015-02-01  Oleg Endo  <olegendo@gcc.gnu.org>
39572         PR target/64851
39573         * config/sh/sync.md (atomic_fetch_notsi_hard,
39574         atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
39575         atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
39576         atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
39577         atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
39578         atomic_not_fetch<mode>_soft_imask): New insns.
39580 2015-02-01  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
39582         * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
39583         (rank_for_schedule_debug): Split from ...
39584         (rank_for_schedule): ... this.
39585         (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
39586         * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
39588 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
39590         * doc/md.texi (Machine Constraints): Alphabetize table by target.
39591         * doc/extend.texi (x86 Variable Attributes): Move section to
39592         correct alphabetization after renaming.
39593         (x86 Type Attributes): Likewise.
39594         (Target Builtins): Re-alphabetize menu.
39595         (x86 Built-in Functions): Move section to correct alphabetization
39596         after renaming.
39597         (x86 transactional memory intrinsics): Likewise.
39598         * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
39599         and x86 Windows Options in table and menu.
39600         (x86 Options): Move section to correct alphabetization after
39601         renaming.
39602         (x86 Windows Options): Likewise.
39604 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
39606         * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
39607         preferred names of the architecture and its 32- and 64-bit
39608         variants.
39609         * doc/invoke.texi: Likewise.
39610         * doc/md.texi: Likewise.
39612 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
39614         PR target/64882
39615         * config/i386/predicates.md (address_no_seg_operand): Reject
39616         non-CONST_INT_P operands in invalid mode.
39618 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
39620         * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
39621         address_operand 0.  Rename from *prefetch_prefetchwt1_<mode>.
39622         * config/i386/predicates.md (address_no_seg_operand): Call
39623         address_operand with VOIDmode.
39624         (vsib_address_operand): Ditto.
39625         (address_mpx_no_base_operand): Ditto.
39626         (address_mpx_no_index_operand): Ditto.
39628 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
39630         PR target/64688
39631         * lra-constraints.c (original_subreg_reg_mode): New.
39632         (simplify_operand_subreg): Try to simplify subreg of const.  Use
39633         original_subreg_reg_mode for it.
39634         (swap_operands): Update original_subreg_reg_mode.
39635         (curr_insn_transform): Set up original_subreg_reg_mode.
39637 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
39639         PR target/64617
39640         * lra-constraints.c (prohibited_class_reg_set_mode_p): New
39641         function.
39642         (process_alt_operands): Use it.
39643         (curr_insn_transform): Check the optional reload pseudo class is
39644         ok for the mode.
39646 2015-01-30  Joseph Myers  <joseph@codesourcery.com>
39648         * diagnostic.c (fatal_error (const char *, ...)): Remove function.
39649         * diagnostic-core.h (fatal_error (const char *, ...)): Remove
39650         prototype.
39651         * toplev.h (init_asm_output): Update comment on use of
39652         UNKNOWN_LOCATION with fatal_error.
39653         * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
39654         config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
39655         config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
39656         config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
39657         config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
39658         config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
39659         config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
39660         ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
39661         lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
39662         lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
39663         tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
39664         fatal_error changed to pass input_location as first argument.
39666 2015-01-30  Martin Liska  <mliska@suse.cz>
39668         * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
39669         in #pragma GCC diagnostic guards.
39671 2015-01-30  Richard Biener  <rguenther@suse.de>
39673         PR tree-optimization/64829
39674         * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
39675         not add a widening conversion pattern but hand off extra
39676         widenings to callers.
39677         (vect_recog_widen_mult_pattern): Handle extra widening produced
39678         by vect_handle_widen_op_by_const.
39679         (vect_recog_widen_shift_pattern): Likewise.
39680         (vect_pattern_recog_1): Remove excess vertical space in dumping.
39681         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
39682         (vect_init_vector_1): Likewise.
39683         (vect_get_vec_def_for_operand): Likewise.
39684         (vect_finish_stmt_generation): Likewise.
39685         (vectorizable_load): Likewise.
39686         (vect_analyze_stmt): Likewise.
39687         (vect_is_simple_use): Likewise.
39689 2015-01-29  Jeff Law  <law@redhat.com>
39691         * combine.c (try_combine): Fix typo in comment.
39693 2015-01-29  Segher Boessenkool  <segher@kernel.crashing.org>
39695         PR target/64580
39696         * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
39697         (rs6000_stack_info): Add assert.
39698         (rs6000_output_savres_externs): New function, split off from...
39699         (rs6000_output_function_prologue): ... here.  Do not call it for
39700         thunks.
39702 2015-01-29  Jeff Law  <law@redhat.com>
39704         PR target/15184
39705         * combine.c (try_combine): If I0 is a memory load and I3 a store
39706         to a related address, increase the "goodness" of doing a 4-insn
39707         combination with I0-I3.
39708         (make_field_assignment): Handle SUBREGs in the ior+and case.
39710 2015-01-29  Yuri Rumyantsev  <ysrumyan@gmail.com>
39712         PR tree-optimization/64746
39713         * tree-if-conv.c (mask_exists): New function.
39714         (predicate_mem_writes): Save created mask with given size for further
39715         use.
39716         (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
39717         (ifcvt_repair_bool_pattern): Collect all statements that are root
39718         of bool pattern and use iterative algorithm to remove multiple uses
39719         of predicates, display number of required iterations.
39721 2015-01-29  Richard Biener  <rguenther@suse.de>
39723         PR tree-optimization/64853
39724         * tree-vrp.c (vrp_valueize_1): Do not return anything if the
39725         stmt will get simulated again.
39726         * tree-ssa-ccp.c (valueize_op_1): Likewise.
39728 2015-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
39730         * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
39731         return_in_pc.  Remove redundant assignments.
39732         (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
39733         (arm_expand_epilogue): Don't compare boolean with true in if condition.
39735 2015-01-29  Uros Bizjak  <ubizjak@gmail.com>
39737         * config/i386/i386.c (ix86_mode_after): Make static.
39739 2015-01-29  Richard Biener  <rguenther@suse.de>
39741         PR tree-optimization/64844
39742         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
39743         dump cost model analysis.
39744         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
39745         Do not register adjusted load/store costs here.
39747 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
39748             Uros Bizjak  <ubizjak@gmail.com>
39750         * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
39751         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
39752         using x86_use_pseudo_pic_reg.
39753         * config/i386/i386.c (ix86_conditional_register_usage): Remove
39754         support for fixed PIC register.
39755         (ix86_use_pseudo_pic_reg): Not static any more.
39757 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
39759         PR middle-end/64805
39760         * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
39761         to avoid error in cgraph node verification.
39763 2015-01-29  Marek Polacek  <polacek@redhat.com>
39765         * doc/standards.texi: Reflect that the default for C is gnu11.
39767 2015-01-29  Kaz Kojima  <kkojima@gcc.gnu.org>
39769         PR target/64761
39770         * reorg.c (switch_text_sections_between_p): New function.
39771         (relax_delay_slots): Call it when testing if the jump insn
39772         is removable.  Use targetm.can_follow_jump when testing if
39773         the conditional branch can follow an unconditional jump.
39775 2015-01-27  Caroline Tice  <cmtice@google.com>
39777         Committing VTV Cywin/Ming patch for Patrick Wollgast
39778         * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
39779         if -fvtable-verify=preinit/std is used.
39780         * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
39781         * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
39782         * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
39783         if -fvtable-verify=preinit/std is used.
39784         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
39785         * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
39786         if -fvtable-verify=preinit/std is used.
39787         * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
39788         * config/i386/mingw32.h (LIB_SPEC): Likewise.
39789         * varasm.c (assemble_variable): Add code to properly set the comdat
39790         section and name for the .vtable_map_vars section in case the
39791         target is PE or COFF.
39793 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
39795         PR ipa/64801
39796         * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
39797         make sane BB profile.
39798         (cgraph_node::expand_thunk): Make sane BB profile.
39799         (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
39800         * cgraph.h (init_lowered_empty_function): Update prototype.
39801         * config/i386/i386.c (make_resolver_func): Update call.
39802         * predict.c (gate): Disable branch prediction pass if
39803         profile is already there.
39805 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
39807         * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
39808         * opth-gen.awk: Likewise.
39809         * common.opt: Mark flag_fp_contract_mode as Optimization.
39811 2015-01-29  Bernd Edlinger  <bernd.edlinger@hotmail.de>
39813         * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
39814         * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
39816 2015-01-28  Oleg Endo  <olegendo@gcc.gnu.org>
39818         PR target/64659
39819         * config/sh/predicates.md (atomic_arith_operand,
39820         atomic_logical_operand): Remove.
39821         * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
39822         (atomic_arith_operand_0): New predicate.
39823         (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
39824         Use atomic_arith_operand_0 for input values.
39825         (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
39826         atomic_compare_and_swap<mode>_soft_gusa,
39827         atomic_compare_and_swap<mode>_soft_tcb,
39828         atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
39829         arith_reg_operand instead of register_operand.
39830         (atomic_exchange<mode>): Use arith_reg_dest for output value.  Use
39831         atomic_arith_operand_0 for newval input.
39832         (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
39833         atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
39834         atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
39835         arith_reg_operand instead of register_operand.
39836         (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
39837         fetchop_predicate_1, fetchop_constraint_1_llcs,
39838         fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
39839         fetchop_constraint_1_imask): New code iterator attributes.
39840         (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
39841         register_operand.  Use fetchop_predicate_1.
39842         (atomic_fetch_<fetchop_name>si_hard,
39843         atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
39844         register_operand.  Use fetchop_predicate_1, fetchop_constraint_1_llcs.
39845         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
39846         and arith_reg_operand instead of register_operand.  Use
39847         fetchop_predicate_1, fetchop_constraint_1_gusa.
39848         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
39849         and arith_reg_operand instead of register_operand.  Use
39850         fetchop_predicate_1, fetchop_constraint_1_tcb.  Adjust asm sequence
39851         to allow R0 usage.
39852         (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
39853         and arith_reg_operand instead of register_operand.  Use
39854         fetchop_predicate_1, fetchop_constraint_1_imask.  Adjust asm sequence
39855         to allow R0 usage.
39856         (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
39857         register_operand.  Use atomic_logical_operand_1.
39858         (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
39859         atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
39860         arith_reg_operand instead of register_operand.
39861         (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
39862         Use arith_reg_dest and arith_reg_operand instead of register_operand.
39863         Use logical_operand and rK08.  Adjust asm sequence to allow R0 usage.
39864         (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
39865         register_operand.  Use fetchop_predicate_1.
39866         (atomic_<fetchop_name>_fetchsi_hard,
39867         atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
39868         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
39869         fetchop_constraint_1_llcs.
39870         (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
39871         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
39872         fetchop_constraint_1_gusa.
39873         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
39874         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
39875         fetchop_constraint_1_tcb.  Adjust asm sequence to allow R0 usage.
39876         (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
39877         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
39878         fetchop_constraint_1_imask.  Adjust asm sequence to allow R0 usage.
39879         (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
39880         register_operand.  Use atomic_logical_operand_1.
39881         (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
39882         atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
39883         arith_reg_operand instead of register_operand.
39884         (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
39885         arith_reg_operand instead of register_operand.  Use logical_operand
39886         and K08.  Adjust asm sequence to allow R0 usage.
39887         (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
39888         arith_reg_operand instead of register_operand.  Use logical_operand
39889         and K08.
39891 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
39893         PR other/63504
39894         * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
39895         Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
39896         (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
39897         only get_full_len HOST_WIDE_INTs from get_val () array rather than
39898         all bits in *val_wide.
39900 2015-01-28  Jan Hubicka  <hubicka@ucw.cz>
39902         * varpool.c (tls_model_names): Fix names.
39903         (varpool_node::dump): Dump tls- prefix for tls models.
39905 2015-01-28  Thomas Schwinge  <thomas@codesourcery.com>
39906             Bernd Schmidt  <bernds@codesourcery.com>
39907             Nathan Sidwell  <nathan@codesourcery.com>
39909         * config/nvptx/mkoffload.c: New file.
39910         * config/nvptx/t-nvptx: Add build rules for it.
39911         * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
39912         (extra_programs): Add mkoffload.
39913         * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
39914         function.
39915         (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
39917 2015-01-28  Yuri Rumyantsev  <ysrumyan@gmail.com>
39919         PR middle-end/64809
39920         * cfgexpand.c (reorder_operands): Skip debug gimples.
39922 2015-01-28  Ilya Enkovich  <ilya.enkovich@intel.com>
39924         PR tree-optimization/64277
39925         * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
39926         range info when possible to refine estimation.
39928 2015-01-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
39930         PR tree-optimization/64718
39931         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
39932         be a 16bit unsigned integer when n->range is 16.
39933         (bswap_replace): Convert src to that type if necessary for all bswap
39934         sizes.  Fix rotation right notation in nearby comment.  Use bswap_type
39935         set in pass_optimize_bswap::execute ().
39937 2015-01-28  James Greenhalgh  <james.greenhalgh@arm.com>
39939         * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
39940         * config/aarch64/aarch64-simd-builtins.def (abs): Split by
39941         integer and floating point variants.
39942         * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
39944 2015-01-28  Robert Suchanek  <robert.suchanek@imgtec.com>
39946         * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
39947         for all vector modes.
39949 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
39951         PR bootstrap/64612
39952         * doc/sourcebuild.texi (comdat_group): Document.
39954 2015-01-28  Terry Guo  <terry.guo@arm.com>
39956         * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
39958 2015-01-27  David Malcolm  <dmalcolm@redhat.com>
39960         * toplev.c (print_version): Add param "show_global_state", and
39961         only print GGC and plugin information if it is true.
39962         (init_asm_output): Pass in "true" for the new param when calling
39963         print_version.
39964         (process_options): Likewise.
39965         (toplev::main): Likewise.
39966         * toplev.h (print_version): Add new param to decl.
39968 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
39970         PR ipa/60871
39971         PR ipa/64139
39972         * tree.c (lookup_binfo_at_offset): New function.
39973         (get_binfo_at_offset): Use it.
39975 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
39977         PR ipa/64282
39978         * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
39979         on vtable being vtable.
39981 2015-01-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
39983         * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
39984         * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
39985         -mhotpatch= option.
39986         * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
39987         -mno-hotpatch options.  Change syntax of -mhotpatch= option.
39988         * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
39989         Renamed.
39990         (s390_hotpatch_trampoline_halfwords_max): Renamed.
39991         (s390_hotpatch_hw_max): New name.
39992         (s390_hotpatch_trampoline_halfwords): Renamed.
39993         (s390_hotpatch_hw_before_label): New name.
39994         (get_hotpatch_attribute): Removed.
39995         (s390_hotpatch_hw_after_label): New name.
39996         (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
39997         attribute.
39998         (s390_attribute_table): Ditto.
39999         (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
40000         (s390_function_num_hotpatch_hw): New name.
40001         Remove special handling of inline functions and hotpatching.
40002         Return number of nops before and after the function label.
40003         (s390_can_inline_p): Removed.
40004         (s390_asm_output_function_label): Emit a configurable number of nops
40005         after the function label.
40006         (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
40007         (TARGET_CAN_INLINE_P) Removed.
40008         (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
40010 2015-01-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
40011             Jiong Wang  <jiong.wang@arm.com>
40013         * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
40014         of scratch reg.
40015         (cb<optab><mode>1): Likewise.
40016         * config/aarch64/iterators.md (bcond): New define_code_attr.
40018 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
40020         * config/s390/s390.c (s390_memory_move_cost): Increase costs for
40021         memory accesses.
40023 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
40025         * config/s390/s390.c (s390_register_move_cost): Increase costs for
40026         FPR->GPR moves.
40028 2015-01-27  Richard Biener  <rguenther@suse.de>
40030         * tree-vrp.c (update_value_range): Intersect the range with
40031         old recorded SSA name range information.
40033 2015-01-27  Nick Clifton  <nickc@redhat.com>
40035         * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
40036         BC, DE and HL registers directly, not via AX.
40037         When decrementing the stack pointer by a large amount, transfer SP
40038         into AX and perform the subtraction there.
40039         (rl78_expand_epilogue): Perform the inverse of the above
40040         enhancements.
40042 2015-01-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
40044         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
40046 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
40047             Yury Gribov  <y.gribov@samsung.com>
40049         PR ubsan/64741
40050         * ubsan.c (ubsan_source_location): Refactor code.
40051         (ubsan_type_descriptor): Update type size. Refactor code.
40053 2015-01-27  Richard Biener  <rguenther@suse.de>
40055         PR tree-optimization/56273
40056         PR tree-optimization/59124
40057         PR tree-optimization/64277
40058         * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
40059         from the first VRP pass.
40061 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
40063         PR ipa/64776
40064         * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
40065         handle the first argument in the same loop as all the other arguments.
40067         PR rtl-optimization/61058
40068         * jump.c (cleanup_barriers): Update basic block boundaries
40069         if BLOCK_FOR_INSN is non-NULL on PREV.
40071 2015-01-27  Ilya Enkovich  <ilya.enkovich@intel.com>
40073         * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
40074         bounds narrowing, already instrumented calls and calls to
40075         not instrumentable functions.
40077 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
40079         PR tree-optimization/64807
40080         * wide-int.cc (wi::divmod_internal): Clear
40081         b_dividend[dividend_blocks_needed].
40083 2015-01-26  DJ Delorie  <dj@redhat.com>
40085         * config/rl78/rl78.c (move_elim_pass): Don't optimize away
40086         volatile memory references.
40088 2015-01-26  Oleg Endo  <olegendo@gcc.gnu.org>
40090         PR target/49263
40091         * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
40092         remove_insn.
40093         * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
40094         shifts if it already fits into K08.
40096 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
40098         PR ipa/64730
40099         * ipa-inline.c (inline_small_functions): Print "unknown" even
40100         if edge->call_stmt is non-NULL, but has builtins or unknown
40101         location.
40103         PR middle-end/64421
40104         * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
40105         with asterisk, skip the first character.
40107 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
40109         PR target/64806
40110         * config/i386/i386 (feature_priority): Revert the last P_POPCNT
40111         order change.
40113 2015-01-26  Uros Bizjak  <ubizjak@gmail.com>
40115         PR target/64795
40116         * config/i386/i386.md (*movdi_internal): Also check operand 0
40117         to determine TYPE_LEA operand.
40118         (*movsi_internal): Ditto.
40120 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
40122         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
40123         OPTION_MASK_QUAD_MEMORY_ATOMIC.
40125 2015-01-26  Renlin Li  <renlin.li@arm.com>
40127         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
40128         the comment.
40129         * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
40130         for higher part.
40132 2015-01-26  Richard Biener  <rguenther@suse.de>
40134         PR middle-end/64764
40135         * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
40136         combining two BIT_AND_EXPR predicates.
40138 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
40140         PR bootstrap/64754
40141         * tree-ssa-structalias.c (new_var_info): Initialize ruid.
40143 2015-01-26  Terry Guo  <terry.guo@arm.com>
40145         * config/arm/arm.c (arm_file_start): Update the assignment of
40146         Tag_ABI_HardFP_use.
40148 2015-01-25  James Greenhalgh  <james.greenhalgh@arm.com>
40150         * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
40151         pipeline model.
40152         config/arm/arm.md: Include the new Cortex-A57 model.
40153         (generic_sched): Don't use generic_sched when tuning for
40154         Cortex-A57.
40156 2015-01-25  Allan Sandfeld Jensen  <sandfeld@kde.org>
40157             Uros Bizjak  <ubizjak@gmail.com>
40159         * config/i386/i386.c (get_builtin_code_for_version): Add
40160         support for BMI and BMI2 multiversion functions.
40162 2015-01-25  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
40164         * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
40165         (extract_bit_field): Likewise.
40166         (extract_low_bits): Likewise.
40167         (expand_mult): Likewise.
40168         (expand_mult_highpart_adjust): Likewise.
40170 2015-01-24  H.J. Lu  <hongjiu.lu@intel.com>
40172         * config/i386/driver-i386.c (host_detect_local_cpu): Check new
40173         Silvermont, Haswell, Broadwell and Knights Landing model numbers.
40174         * config/i386/i386.c (processor_model): Add
40175         M_INTEL_COREI7_BROADWELL.
40176         (arch_names_table): Add "broadwell".
40178 2015-01-24  Oleg Endo  <olegendo@gcc.gnu.org>
40180         PR target/49263
40181         PR target/53987
40182         PR target/64345
40183         PR target/59533
40184         PR target/52933
40185         PR target/54236
40186         PR target/51244
40187         * config/sh/sh-protos.h
40188         (sh_extending_set_of_reg::can_use_as_unextended_reg,
40189         sh_extending_set_of_reg::use_as_unextended_reg,
40190         sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
40191         sh_is_movrt_insn, sh_insn_operands_modified_between_p,
40192         sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
40193         sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
40194         (sh_treg_insns): New class.
40195         * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
40196         (scope_counter): New class.
40197         (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
40198         sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
40199         sh_extending_set_of_reg::can_use_as_unextended_reg,
40200         sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
40201         sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
40202         sh_split_treg_set_expr): New functions.
40203         (addsubcosts): Handle treg_set_expr.
40204         (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
40205         (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
40206         (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
40207         (sh_insn_operands_modified_between_p): Make non-static.
40208         * config/sh/predicates.md (zero_extend_movu_operand): Allow
40209         simple_mem_operand in addition to displacement_mem_operand.
40210         (zero_extend_operand): Don't allow zero_extend_movu_operand.
40211         (treg_set_expr, treg_set_expr_not_const01,
40212         arith_reg_or_treg_set_expr): New predicates.
40213         * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
40214         arith_or_int_operand instead of logical_operand.  Convert to
40215         insn_and_split.  Try to optimize constant operand in splitter.
40216         (tsthi_t, tstqi_t): Fold into *tst<mode>_t.  Convert to insn_and_split.
40217         (*tstqi_t_zero): Delete.
40218         (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
40219         (tstsi_t_and_not): Delete.
40220         (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
40221         Convert to insn_and_split.
40222         (unnamed split, tstsi_t_zero_extract_xor,
40223         tstsi_t_zero_extract_subreg_xor_little,
40224         tstsi_t_zero_extract_subreg_xor_big): Delete.
40225         (*tstsi_t_shift_mask): New insn_and_split.
40226         (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
40227         to recombine with surrounding insns when splitting.
40228         (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
40229         (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
40230         (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
40231         *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
40232         (*cbranch_div0s: Delete.
40233         (*addc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
40234         Try to recombine with surrounding insns when splitting.  Add operand
40235         order variants.
40236         (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
40237         (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
40238         *addc_r_r_msb, *addc_2r_msb): Delete.
40239         (*addc_2r_lsb): Rename to *addc_2r_t.  Use treg_set_expr.  Add operand
40240         order variant.
40241         (*addc_negreg_t): New insn_and_split.
40242         (*subc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
40243         Try to recombine with surrounding insns when splitting.
40244         Add operand order variants.
40245         (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
40246         insn_and_split patterns.
40247         (*rotcr): Use arith_reg_or_treg_set_expr.  Try to recombine with
40248         surrounding insns when splitting.
40249         (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
40250         (*rotcl): Likewise.  Add zero_extract variant.
40251         (*ashrsi2_31): New insn_and_split.
40252         (*negc): Convert to insn_and_split.  Use treg_set_expr.
40253         (*zero_extend<mode>si2_disp_mem): Update comment.
40254         (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
40255         condition.
40256         (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr.  Try to recombine
40257         with surrounding insns when splitting.
40258         (any_treg_expr_to_reg): New insn_and_split.
40259         (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
40260         *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
40261         *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
40262         *zero_extract_2): New single bit zero extract patterns.
40263         (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
40264         (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
40265         *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
40266         *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
40267         set destination.
40268         (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
40269         register_operand for set source.
40271 2015-01-23  Jan Hubicka  <hubicka@ucw.cz>
40273         * i386.opt (prefetch_sse): New targetsave.
40274         * i386.c (ix86_function_specific_save): Save prefetch_sse.
40275         (ix86_function_specific_restore): Restore prefetch_sse and initialize
40276         ix86_cost/ix86_tune_cost.
40278 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
40280         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
40281         Support the JIT by using 0 as the language type.
40283 2015-01-23  Vladimir Makarov  <vmakarov@redhat.com>
40285         PR target/64317
40286         * lra-lives.c (make_hard_regno_born): Add parameter.  Don't make
40287         REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
40288         (mark_regno_live, process_bb_lives): Pass new parameter value to
40289         make_hard_regno_born.
40291 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
40293         PR rtl-optimization/63637
40294         PR rtl-optimization/60663
40295         * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
40296         if elt->cost is MAX_COST for ASM_OPERANDS.
40297         (find_sets_in_insn): Fix up comment typo.
40298         (cse_insn): Don't set src_volatile for all non-volatile
40299         ASM_OPERANDS in PARALLELs, but just those with multiple outputs
40300         or with "memory" clobber.  Set elt->cost to MAX_COST
40301         for ASM_OPERANDS in PARALLEL.  Set src_elt->cost to MAX_COST
40302         if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
40304 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
40306         * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
40307         alternative 1.
40309 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
40311         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
40312         libgcc/config/i386/elf-lib.h.
40314 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
40316         PR driver/64737
40317         * gcc.c (print_configuration): Don't print a blank line at the end
40318         here...
40319         (run_attempt): ... but here unstead.
40321         PR middle-end/64734
40322         * omp-low.c (scan_sharing_clauses): Don't ignore
40323         OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
40324         on target data/update constructs.
40326 2015-01-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
40328         PR target/50928
40329         * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
40330         (DEBUG_RELOAD): Removed define.
40331         (m32c_limit_reload_class): Enable traces with if DEBUG0.
40332         (m32c_function_arg): Added a type cast.
40333         (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
40334         * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
40335         * config/m32c/bitops.md (andqi3_16): Likewise.
40336         * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
40337         (push_a01_l): Likewise.
40339 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
40341         PR jit/64721
40342         * main.c (main): Construct toplev instances with init_signals=true.
40343         * toplev.c (general_init): Add param "init_signals", and use it to
40344         conditionalize the calls to signal and host_hooks.extra_signals.
40345         (toplev::toplev): Add param "init_signals".
40346         (toplev::main): When invoking general_init, pass m_init_signals
40347         to control whether signal-handlers are installed.
40348         * toplev.h (toplev::toplev): Add param "init_signals".
40349         (toplev::m_init_signals): New field.
40351 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
40353         PR jit/64722
40354         * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
40355         NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
40356         latter may be affected by the former (e.g. on i686).
40358 2015-01-23  Martin Liska  <mliska@suse.cz>
40360         * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
40361         false positive during profiledbootstrap.
40363 2015-01-23  Tom de Vries  <tom@codesourcery.com>
40365         PR libgomp/64672
40366         * lto-opts.c (lto_write_options): Output non-explicit conservative
40367         -fno-openacc.
40368         * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
40369         (append_compiler_options): Pass -fopenacc through.
40371 2015-01-23  Tom de Vries  <tom@codesourcery.com>
40373         PR libgomp/64707
40374         * lto-opts.c (lto_write_options): Output non-explicit conservative
40375         -fno-openmp.
40376         * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
40377         (append_compiler_options): Pass -fopenmp through.
40379 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
40381         PR debug/64511
40382         * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
40383         GTY markup.
40385         * diagnostic-core.h (internal_error_no_backtrace): New prototype.
40386         * diagnostic.def (DK_ICE_NOBT): New kind.
40387         * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
40388         like DK_ICE, but never print backtrace.
40389         (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
40390         (internal_error_no_backtrace): New function.
40391         * gcc.c (execute): Use internal_error_no_backtrace instead of
40392         internal_error.
40394 2015-01-22  Jeff Law  <law@redhat.com>
40396         PR target/52076
40397         * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
40398         improve code density for small immediate to memory case.
40399         (insv): Better handle bitfield assignments when the field is
40400         being set to all ones.
40401         * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
40402         operand predicate.
40404 2015-01-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
40405             Jakub Jelinek  <jakub@redhat.com>
40407         PR middle-end/64729
40408         * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
40409         for !TARGET_LIBC_PROVIDES_SSP version and
40410         -fstack-protector-{all,strong,explicit} otherwise.
40411         * config/freebsd.h (LINK_SSP_SPEC): Handle
40412         -fstack-protector-{strong,explicit}.
40414 2015-01-22  Jan Hubicka  <hubicka@ucw.cz>
40415             H.J. Lu  <hongjiu.lu@intel.com>
40417         PR ipa/64694
40418         * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
40419         heap.
40421 2015-01-22  Wei Mi  <wmi@google.com>
40423         PR rtl-optimization/64557
40424         * dse.c (record_store): Call get_addr for mem_addr.
40425         (check_mem_read_rtx): Likewise.
40427 2015-01-22  Eric Botcazou  <ebotcazou@adacore.com>
40429         * fold-const.c (const_binop): Add early return for non-tcc_binary.
40431 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
40433         * toplev.c (init_local_tick): Process the failure when read
40434         fails for random_seed.
40436         * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
40437         'pretty_name' to avoid memory overflow.
40439 2015-01-22  Richard Biener  <rguenther@suse.de>
40441         PR middle-end/64728
40442         * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
40443         abnormal coalescing on undefined SSA names.
40445 2015-22-01  Uros Bizjak  <ubizjak@gmail.com>
40447         PR target/64688
40448         PR target/64477
40449         * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
40450         for alternative 3.
40451         (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
40453 2015-01-22  Trevor Saunders  <tsaunders@mozilla.com>
40455         PR middle-end/63325
40456         * fold-const.c (fold_checksum_tree): Don't include value of
40457         expr->decl_with_vis.symtab_node in the checksum.
40459 2015-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
40461         * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
40463 2015-01-22  Max Ostapenko  <m.ostapenko@partner.samsung.com>
40465         PR driver/64690
40466         * gcc.c (insert_comments): New function.
40467         (try_generate_repro): Call it.
40468         (append_text): Removed.
40470 2015-01-22  Richard Biener  <rguenther@suse.de>
40472         * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
40473         with IL incompatible options.  Properly honor user optimize
40474         attributes.
40476 2015-01-21  Segher Boessenkool  <segher@kernel.crashing.org>
40478         PR rtl-optimization/64682
40479         * combine.c (distribute_notes): When moving a death note for
40480         a register that is set in the new I2, make sure to put it
40481         before that new I2.
40483 2015-01-21  David Edelsohn  <dje.gcc@gmail.com>
40485         * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
40486         not TARGET_DEFAULT.
40488 2015-01-21  Jakub Jelinek  <jakub@redhat.com>
40490         PR debug/64511
40491         * simplify-rtx.c (simplify_relational_operation_1): Don't try to
40492         optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
40493         into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
40495         PR sanitizer/64706
40496         * doc/invoke.texi (-fsanitize=vptr): Document.
40498         PR rtl-optimization/62078
40499         * dse.c: Include cfgcleanup.h.
40500         (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
40501         anything call purge_all_dead_edges and cleanup_cfg at the end
40502         of the pass.
40504 2015-01-21  Jan Hubicka  <hubicka@ucw.cz>
40506         * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
40507         edges.
40509 2015-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
40511         * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
40512         decl attribute.
40514 2015-01-21  David Sherwood  <david.sherwood@arm.com>
40515             Tejas Belagod <Tejas.Belagod@arm.com>
40517         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
40518         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
40519         * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
40520         Removed.
40522 2015-01-21  David Sherwood  <david.sherwood@arm.com>
40523             Tejas Belagod <Tejas.Belagod@arm.com>
40525         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
40526         (aarch64_reverse_mask): New decls.
40527         * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
40528         (insn_count): New mode_attr.
40529         * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
40530         (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
40531         (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
40532         (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
40533         (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
40534         (aarch64_simd_st4): New patterns.
40535         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
40536         (aarch64_reverse_mask): New functions.
40538 2015-01-21  Alan Hayward  <alan.hayward@arm.com>
40540         * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
40541         Declare.
40542         * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
40543         addressing modes for BE.
40544         (aarch64_print_operand): Add 'R' specifier.
40545         (aarch64_simd_disambiguate_copy): Delete.
40546         (aarch64_simd_emit_reg_reg_move): New function.
40547         * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
40548         in define_splits for structural moves.
40549         (mov<mode>): Use less restrictive predicates.
40550         (*aarch64_mov<mode>): Simplify and only allow for LE.
40551         (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
40553 2015-01-21  Alan Hayward  <alan.hayward@arm.com>
40555         * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
40557 2015-01-21  Richard Henderson  <rth@redhat.com>
40559         PR target/64669
40560         * ccmp.c (used_in_cond_stmt_p): Remove.
40561         (expand_ccmp_expr): Don't use it.
40563 2015-01-21  Nick Clifton  <nickc@redhat.com>
40565         * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
40566         PARALLELs.
40568 2015-01-21  Richard Biener  <rguenther@suse.de>
40570         PR middle-end/64313
40571         * tree-core.h (builtin_info, builtin_info_type): Turn from
40572         an object with two arrays into an array of an object with
40573         decl and two flags, implicit_p and declared_p.
40574         * tree.h (builtin_decl_explicit, builtin_decl_implicit,
40575         set_builtin_decl, set_builtin_decl_implicit_p,
40576         builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
40577         (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
40578         * builtins.c (builtin_info): Adjust.
40579         * gimplify.c (gimplify_addr_expr): References to builtins
40580         that have been declared by the user makes them eligible for
40581         use by the compiler.  Call set_builtin_decl_implicit_p on them.
40583 2015-01-20  Jeff Law  <law@redhat.com>
40585         PR target/59946
40586         * config/m68k/m68k.md (Comparison expanders and patterns): Do not
40587         allow pc-relative addresses in operand predicates or constraints.
40589 2015-01-21  Bin Cheng  <bin.cheng@arm.com>
40591         * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
40592         neon on aarch32 processors for stringops.
40594 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
40596         PR ipa/63576
40597         * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
40599 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
40601         PR lto/45375
40602         * ipa-inline.c: Include lto-streamer.h
40603         (report_inline_failed_reason): Output source file differences and
40604         flags on optimization/target node mismatch.
40605         (can_inline_edge_p): Consider caller to be the outer inline function;
40606         be less restrictive about matching opimize and optimize_size attributes.
40607         (inline_account_function_p): Break out from ...
40608         (inline_small_functions): ... here.
40609         * ipa-inline-transform.c (clone_inlined_nodes): Use
40610         inline_account_function_p.
40611         (inline_call): Use optimize attribution; use inline_account_function_p.
40612         (inline_transform): Use opt_for_fn.
40613         * ipa-inline.h (inline_account_function_p): Declare.
40615 2015-01-20  Jakub Jelinek  <jakub@redhat.com>
40617         PR debug/64663
40618         * dwarf2out.c (decl_piece_node): Don't put bitsize into
40619         mode if bitsize <= 0.
40620         (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
40621         dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
40622         sizes and positions.
40624 2015-01-20  Chung-Lin Tang  <cltang@codesourcery.com>
40626         * config/nios2/nios2.c (nios2_asm_file_end): Implement
40627         TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
40628         needed.
40629         (TARGET_ASM_FILE_END): Define.
40631 2015-01-20  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
40633         * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
40634         (struct tune_params): Use the enum.
40635         * arm.c (arm_*_tune): Update.
40636         (arm_option_override): Update.
40638 2015-01-20  Richard Biener  <rguenther@suse.de>
40640         PR ipa/64684
40641         * ipa-reference.c (add_static_var): Inline ...
40642         (analyze_function): ... here after splitting out from ...
40643         (is_proper_for_analysis): ... this.
40645 2015-01-20  Matthew Wahab  <matthew.wahab@arm.com>
40647         PR target/64149
40648         * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
40649         * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
40650         replace the conditional with it's true branch.
40651         * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
40652         (arm_lra_p): Remove.
40654 2015-01-20  Eric Botcazou  <ebotcazou@adacore.com>
40656         * config/visium/visium.h (LIB_SPEC): Adjust in default case.
40658 2015-01-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
40660         * config/tilegx/mul-tables.c: Move symtab.h include after
40661         coretypes.h include.
40662         * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
40663         vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
40664         flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
40665         wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
40666         explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
40668 2015-01-20  Igor Zamyatin  <igor.zamyatin@intel.com>
40670         PR bootstrap/64676
40671         Revert:
40672         2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
40674         PR rtl-optimization/64081
40675         * loop-iv.c (def_pred_latch_p): New function.
40676         (latch_dominating_def): Allow specific cases with non-single
40677         definitions.
40678         (iv_get_reaching_def): Likewise.
40679         (check_complex_exit_p): New function.
40680         (check_simple_exit): Use check_complex_exit_p to allow certain cases
40681         with exits not executing on any iteration.
40683 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
40685         PR lto/45375
40686         * i386.c (ix86_option_override_internal): Use ix86_tune_cost
40687         to set branch cost.
40689 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
40691         PR lto/45375
40692         * i386.c (gate): Check flag_expensive_optimizations and
40693         optimize_size.
40694         (ix86_option_override_internal): Drop optimize_size condition
40695         on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
40696         MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
40697         MASK_PREFER_AVX128.
40698         (ix86_avx256_split_vector_move_misalign,
40699         ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
40700         * sse.md (all uses of TARGET_PREFER_AVX128): Add
40701         optimize_insn_for_speed_p check.
40703 2015-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
40705         * config/mips/mips.h (FP_ASM_SPEC): New define.
40706         (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
40707         instead.
40709 2015-01-19  Oleg Endo  <olegendo@gcc.gnu.org>
40711         PR target/53988
40712         * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
40713         nullptr for insn when reaching the first insn.
40714         * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
40715         (sh_insn_operands_modified_between_p): Add nullptr check.
40716         (sh_find_extending_set_of_reg): Fix log message.  Don't accept
40717         sign extending mem load if the insn contains any UNSPEC or
40718         UNSPEC_VOLATILE.
40720 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
40722         * params.def (inline-unit-growth): Drop to 15%.
40723         * invoke.texi (inline-unit-growth): Document change.
40725 2015-01-19  Martin Liska  <mliska@suse.cz>
40727         PR ipa/64668
40728         * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
40729         function for second argument of OBJ_TYPE_REF.
40731 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
40733         PR ipa/64218
40734         * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
40735         whether function is an alias.
40737 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
40739         * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
40740         cases.
40742 2015-01-19  Vladimir Makarov  <vmakarov@redhat.com>
40744         PR rtl-optimization/64671
40745         * lra-remat.c (operand_to_remat): Don't consider jump and call
40746         insns.
40748 2015-01-19  David Edelsohn  <dje.gcc@gmail.com>
40750         PR target/59828
40751         * config/rs6000/default64.h: Include rs6000-cpus.def.
40752         (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
40753         (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
40754         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
40755         and POWER8.
40756         * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
40757         POWER8.
40758         * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
40759         pseudo-op to specify assembler dialect.
40761 2015-01-19  Martin Liska  <mliska@suse.cz>
40763         PR ipa/64664
40764         * ipa-icf.c (sem_item_optimizer::filter_removed_items):
40765         Handle safe potentially removed nodes during filtering.
40767 2015-01-19  Martin Liska  <mliska@suse.cz>
40769         * doc/extend.texi (no_icf): Add new attribute description.
40770         * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
40771         where the pass attempts to merge a function with no_icf attribute.
40773 2015-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
40775         PR target/64532
40776         * doc/md.texi (ARM Options): Document register constraints.
40778 2015-01-19  Jiong Wang  <jiong.wang@arm.com>
40779             Andrew Pinski  <apinski@cavium.com>
40781         PR target/64304
40782         * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
40783         (ashl<mode>3): Don't expand if operands[2] is not constant.
40785 2015-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
40787         PR target/64448
40788         * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
40789         Match xor-and-xor RTL pattern.
40791 2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
40793         PR rtl-optimization/64081
40794         * loop-iv.c (def_pred_latch_p): New function.
40795         (latch_dominating_def): Allow specific cases with non-single
40796         definitions.
40797         (iv_get_reaching_def): Likewise.
40798         (check_complex_exit_p): New function.
40799         (check_simple_exit): Use check_complex_exit_p to allow certain cases
40800         with exits not executing on any iteration.
40802 2015-01-19  Jakub Jelinek  <jakub@redhat.com>
40804         * common.opt (fgraphite): Fix a typo.
40806 2015-01-19  Felix Yang  <felix.yang@huawei.com>
40808         * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
40809         pattern.
40810         * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
40811         uminp, smax_nanp, smin_nanp): New builtins.
40812         * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
40813         vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
40814         vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
40815         vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
40816         vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
40817         vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
40818         vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
40819         vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
40820         vpminnms_f32): Rewrite using builtin functions.
40822 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
40824         PR libgomp/64625
40825         * omp-low.c (offload_symbol_decl): Remove variable.
40826         (get_offload_symbol_decl): Remove function.
40827         (expand_omp_target): For BUILT_IN_GOMP_TARGET,
40828         BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
40829         instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
40830         BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
40831         BUILT_IN_GOACC_UPDATE don't pass it at all.
40833 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
40835         * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
40836         callers.
40838 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
40840         * ipa-chkp.c (chkp_produce_thunks): Add early param
40841         to split thunks production into two passes.  Keep
40842         'always_inline' function bodies after the first pass.
40843         (pass_data_ipa_chkp_early_produce_thunks): New.
40844         (pass_ipa_chkp_early_produce_thunks): New.
40845         (pass_ipa_chkp_produce_thunks::execute): Adjust to new
40846         chkp_produce_thunks signature.
40847         (make_pass_ipa_chkp_early_produce_thunks): New.
40848         * passes.def (pass_ipa_chkp_early_produce_thunks): New.
40849         (pass_ipa_chkp_produce_thunks): Move after local optimizations.
40850         * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
40852 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
40854         * cgraph.c (cgraph_node::dump): Dump profile flags.
40856 2015-01-18  Oleg Endo  <olegendo@gcc.gnu.org>
40858         PR target/64652
40859         * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
40860         reg appear first in the parallel.
40862 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
40864         * ipa-reference.c (set_reference_optimization_summary,
40865         ipa_reference_get_not_written_global): Do nothing if ipa-reference is
40866         disabled.
40867         (ignore_module_statics): New static var.
40868         (propagate_bits): If ipa-reference is disabled, do not look into local
40869         properties.
40870         (analyze_function): Disable analysis when ipa_reference is disabled.
40871         (generate_summary): Do not dump when reference is disabled;
40872         collect vars accessed from functions with ipa-reference disabled.
40873         (get_read_write_all_from_node): When ipa-reference is disabled, use the
40874         node flags.
40875         (gate): Enable for LTO.
40876         (ignore_edge_p): New function.
40877         (propagate): Skip functions w/o ipa-reference analysis.
40878         * optc-save-gen.awk: Handle optimize_debug correctly.
40879         * opth-gen.awk: Likewise.
40880         * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
40881         fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
40882         fira-share-save-slots, fira-share-spill-slots,
40883         fmodulo-sched-allow-regmoves, fpartial-inlining,
40884         sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
40885         ftracer, ftree-parallelize-loops, fassociative-math,
40886         freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
40887         Optimization
40888         (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
40889         ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
40890         Optimization.
40891         * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
40892         Fix for IPA.
40894 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
40896         PR ipa/64378
40897         * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
40898         flag correctly.
40899         * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
40901 2015-01-18  Sandra Loosemore  <sandra@codesourcery.com>
40903         * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
40904         Remove duplicate option listings.
40906 2015-01-18  Felix Yang  <felix.yang@huawei.com>
40908         * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
40909         (autofdo_source_profile::get_callsite_total_count,
40910         function_instance::get_function_instance_by_decl,
40911         string_table::get_index, string_table::get_index_by_decl,
40912         afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
40913         Fix comment typos. Reformatting and minor code rearrangement.
40915 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
40917         * config/rs6000/rs6000.md (probe_stack): Delete.
40918         (probe_stack_address): New.
40920 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
40922         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
40923         to test for 32-bit ABIs, not !TARGET_POWERPC64.
40925 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
40927         * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
40928         (rs6000_function_value): Use it.  Handle SCmode and TCmode as well,
40929         for TARGET_32BIT && TARGET_POWERPC64.  Fix another BITS_PER_WORD
40930         snafu.
40931         (rs6000_libcall_value): Use the new function.
40933 2015-01-17  Sandra Loosemore  <sandra@codesourcery.com>
40935         * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
40937 2015-01-17  Eric Botcazou  <ebotcazou@adacore.com>
40939         * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
40940         implement a more precise life analysis for it during backward scan.
40942 2015-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
40944         * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
40946 2015-01-17  Bernd Schmidt  <bernds@codesourcery.com>
40948         PR rtl-optimization/52773
40949         * calls.c (emit_library_call_value): When pushing arguments use
40950         stack_pointer_rtx rather than virtual_outgoing_args_rtx in
40951         CALL_INSN_FUNCTION_USAGE.  Only emit one of use of the magic
40952         stack pointer reference into CALL_INSN_FUNCTION_USAGE.
40954 2015-01-17  Jeff Law  <law@redhat.com>
40956         PR rtl-optimization/32790
40957         * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
40958         not ZERO_EXTEND in SET_DESTs.
40960 2015-01-17  Alan Modra  <amodra@gmail.com>
40962         * cprop.c (do_local_cprop): Revert last change.
40964 2015-01-16  DJ Delorie  <dj@redhat.com>
40965             Nick Clifton  <nickc@redhat.com>
40967         * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
40968         (addhi3_real): Likewise.  Fix [HL+0] syntax.
40969         (subqi3_real): Likewise.
40970         (subhi3_real): Likewise.
40971         (cbranchqi4_real): Likewise.  Allow saddr,#imm.
40972         (cbranchhi4_real): Likewise.
40973         (cbranchhi4_real_inverted): Likewise.
40974         (cbranchsi4_real_lt): Likewise.
40975         (cbranchsi4_real_ge): Likewise.
40976         (cbranchsi4_real_ge): Likewise.
40977         * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
40978         (sub<mode>3_virt): Likewise.
40979         (cbranchqi4_virt): Likewise.
40980         (cbranchhi4_virt): Likewise.
40981         * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
40982         always use '[reg+imm]' even when imm is zero.
40983         * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
40984         (rl78_general_operand): New.
40985         (rl78_nonimmediate_operand): New.
40986         (rl78_nonfar_operand): Use them.
40987         (rl78_nonfar_nonimm_operand): Likewise.
40988         (rl78_stack_based_mem): Fix.
40989         * config/rl78/constraints.md (Ibqi): New.
40990         (IBqi): New.
40991         (Wsa): New.
40992         (Wsf): New.
40993         (Cs1): Fix.
40994         * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
40995         (iorqi3): Likewise.
40996         (xorqi3): Likewise.
40997         * config/rl78/rl78-protos.h (rl78_sfr_p): New.
40999         * config/rl78/constrains (Qs8): New constraint.
41000         * config/rl78/rl78.c (rl78_flags_already_set): New function.
41001         * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
41002         * config/rl78/rl78-real.md (update_Z): New attribute.
41003         Update patterns to set it.
41004         (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
41005         shorter compare and branch sequence can be used.
41006         (cbranchhi4_real): Likewise.
41007         (cbranchhi4_real_inverted): Likewise.
41009         * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
41010         * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
41011         address space.
41012         * config/rl78/rl78.c (rl78_get_name_encoding): New.
41013         (rl78_option_override): Allow -mes0 only if C.
41014         (characterize_address): Support subregs of symbol_refs.
41015         (rl78_addr_space_address_mode): Move.  Add __near.
41016         (rl78_far_p): Likewise.
41017         (rl78_addr_space_pointer_mode): Likewise.
41018         (rl78_as_legitimate_address): Likewise.
41019         (rl78_addr_space_subset_p): Likewise.
41020         (rl78_addr_space_convert): Likewise.
41021         (rl78_print_operand_1): Support 16-bit addressing of 32-bit
41022         symbols with -mes0.
41023         (transcode_memory_rtx): Don't copy ES if -mes0.  Allow symbol[BC]
41024         addressing.
41025         (rl78_alloc_physical_registers_op1): Change logic to prefer
41026         symbol[BC] addressing.
41027         (frodata_section): New.
41028         (rl78_asm_init_sections): Initialize it.
41029         (rl78_select_section): Put __far readonly symbols in .frodata.
41030         (rl78_make_type_far): New.
41031         (rl78_insert_attributes): Force all readonly symbols to be
41032         __far when -mes0.
41033         (rl78_asm_out_integer): New.
41034         * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
41035         * config/rl78/rl78.opt (-mes0): New.
41037         * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
41038         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
41039         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
41040         * config/rl78/rl78-protos.h (rl78_output_labelref): New.
41041         (rl78_saddr_p): New.
41042         (rl78_output_aligned_common): New.
41043         * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
41044         (rl78_handle_saddr_attribute): New.
41045         (rl78_handle_naked_attribute): New.
41046         (rl78_attribute_table): Add saddr.
41047         (rl78_print_operand_1): Don't print '!' on saddr operands.
41048         (rl78_print_operand_1): Strip encodings.
41049         (rl78_sfr_p): New.
41050         (rl78_strip_name_encoding): New.
41051         (rl78_attrlist_to_encoding): New.
41052         (rl78_encode_section_info): New.
41053         (rl78_asm_init_sections): New.
41054         (rl78_select_section): New.
41055         (rl78_output_labelref): New.
41056         (rl78_output_aligned_common): New.
41057         (rl78_asm_out_integer): New.
41058         (rl78_asm_ctor_dtor): New.
41059         (rl78_asm_constructor): New.
41060         (rl78_asm_destructor): New.
41062         * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
41063         * config/rl78/rl78.c (rl78_expand_epilogue): Update.
41064         (transcode_memory_rtx): Update.
41065         (rl78_expand_epilogue): Use A_REG instead of 0.
41067 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
41069         * config/arm/arm-protos.h (struct tune_params): New field
41070         sched_autopref_queue_depth.
41071         * config/arm/arm.c (sched-int.h): Include header.
41072         (arm_first_cycle_multipass_dfa_lookahead_guard,)
41073         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
41074         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
41075         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
41076         (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
41077         (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
41078         (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
41079         (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
41080         Specify sched_autopref_queue_depth value.  Enabled for A15 and A57.
41081         * config/arm/t-arm (arm.o): Update.
41082         * haifa-sched.c (update_insn_after_change): Update.
41083         (rank_for_schedule): Use auto-prefetcher model, if requested.
41084         (autopref_multipass_init): New static function.
41085         (autopref_rank_for_schedule): New rank_for_schedule heuristic.
41086         (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
41087         variable for debug dumps.
41088         (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
41089         (autopref_multipass_dfa_lookahead_guard): New global function that
41090         implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
41091         (init_h_i_d): Update.
41092         * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
41093         * sched-int.h (enum autopref_multipass_data_status): New const enum.
41094         (autopref_multipass_data_): Structure for auto-prefetcher data.
41095         (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
41096         (struct _haifa_insn_data:autopref_multipass_data): New field.
41097         (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
41098         (autopref_multipass_dfa_lookahead_guard): Declare.
41100 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
41102         * rtlanal.c (get_base_term): Handle SCRATCH.
41104 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
41106         * config/aarch64/aarch64.c
41107         (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
41108         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
41109         * config/arm/arm.c
41110         (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
41111         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
41113 2015-01-17  Alan Modra  <amodra@gmail.com>
41115         * cprop.c (do_local_cprop): Disallow replacement of fixed
41116         hard registers.
41118 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
41120         PR target/62066
41121         * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
41122         early return 0.
41124 2015-01-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
41126         * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
41127         * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
41129 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
41131         * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
41132         * config/arm/thumb1.md: ... Here.
41134 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
41136         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
41137         TImode for TARGET_32BIT.
41139 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
41141         * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
41142         TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
41143         as ...
41144         (rs6000_abi_word_mode): New function.
41146 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
41148         * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
41149         instead of UNITS_PER_WORD to describe the size of stack slots.
41151 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
41153         * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
41154         as rs6000_promote_function_mode.  Move comment to there.
41155         (rs6000_promote_function_mode): New function.
41157 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
41159         * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
41160         -mpowerpc64 is active.
41162 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
41164         PR middle-end/64353
41165         * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
41166         virtuals on start.
41168 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
41170         * config/arm/cortex-a57.md: Remove duplicate of file accidentally
41171         introduced in revision 219724.
41173 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
41174             Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
41176         PR target/64263
41177         * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
41178         destination is not a GP reg.
41179         (*movdi_aarch64): Likewise.
41181 2015-01-16  David Edelsohn  <dje.gcc@gmail.com>
41183         PR target/64623
41184         * config/rs6000/default64.h: Revert ISA change.
41186 2015-01-16  Richard Biener  <rguenther@suse.de>
41188         PR middle-end/64614
41189         * tree-ssa-uninit.c: Include tree-cfg.h.
41190         (MAX_SWITCH_CASES): New define.
41191         (convert_control_dep_chain_into_preds): Handle switch statements.
41192         (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
41193         (normalize_one_pred_1): Do not split bit-manipulations.
41194         Record (x & CST).
41196 2015-01-16  Richard Biener  <rguenther@suse.de>
41198         PR tree-optimization/64568
41199         * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
41200         complex load rewriting for TARGET_MEM_REFs.
41202 2015-01-16  Uros Bizjak  <ubizjak@gmail.com>
41204         * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
41206 2015-01-16  Matthew Wahab  <matthew.wahab@arm.com>
41208         PR target/64149
41209         * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
41210         variable.
41211         * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
41212         (aarch64_lra_p): Remove.
41214 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
41216         PR target/64363
41217         * ipa-chkp.h (chkp_instrumentable_p): New.
41218         * ipa-chkp.c: Include tree-inline.h.
41219         (chkp_instrumentable_p): New.
41220         (chkp_maybe_create_clone): Use chkp_instrumentable_p.
41221         Fix processing of not instrumentable functions.
41222         (chkp_versioning): Use chkp_instrumentable_p. Warn about
41223         not instrumentable functions.
41224         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
41225         chkp_instrumentable_p.
41226         * tree-inline.h (copy_forbidden): New.
41227         * tree-inline.c (copy_forbidden): Not static anymore.
41229 2015-01-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
41231         * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
41232         ptr1, ptr2 unused.
41234 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
41236         * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
41237         type OP_OUT to OP_INOUT.
41239 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
41241         * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
41242         (high x) y) to y if x and y have the same base.
41244 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
41246         * config/arm/cortex-a57.md: New.
41247         * config/aarch64/aarch64.md: Include it.
41248         * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
41249         * config/aarch64/aarch64-tune.md: Regenerate.
41251 2015-01-16  Zhenqiang Chen  <zhenqiang.chen@arm.com>
41253         PR target/64015
41254         * ccmp.c (expand_ccmp_next): New function.
41255         (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
41256         and compare insn sequence.
41257         * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
41258         aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
41259         (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
41260         * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
41261         (*ccmp_ior): Changed to ccmp_ior<mode>.
41262         (cmp<mode>): New pattern.
41263         * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
41264         parameters.
41265         * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
41267 2015-01-16  Ilya Tocar  <ilya.tocar@intel.com>
41269         * config/i386/avx2intrin.h (_mm256_bslli_epi128,
41270         _mm256_bsrli_epi128): New.
41271         * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
41273 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
41275         * expmed.c (store_bit_field_using_insv): Improve warning message.
41276         Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
41278 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
41280         PR rtl-optimization/64011
41281         * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
41282         there is partial overflow.
41284 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
41286         * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
41287         prototype.
41288         (nds32_expand_epilogue_v3pop): Likewise.
41289         * config/nds32/nds32.md (sibcall): Define this for sibling call
41290         optimization.
41291         (sibcall_register): Likewise.
41292         (sibcall_immediate): Likewise.
41293         (sibcall_value): Likewise.
41294         (sibcall_value_register): Likewise.
41295         (sibcall_value_immediate): Likewise.
41296         (sibcall_epilogue): Likewise.
41297         (epilogue): Pass false to indicate this is not a sibcall epilogue.
41298         * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
41299         (nds32_expand_epilogue_v3pop): Likewise.
41301 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
41303         * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
41304         * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
41305         (return_internal): New.
41306         (return): Define this named pattern.
41307         (simple_return): Define this named pattern.
41308         * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
41309         pattern instead of unspec_volatile_func_return.
41310         (nds32_expand_epilogue_v3pop): Likewise.
41311         (nds32_can_use_return_insn): New function.
41313 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
41315         * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
41316         * config/nds32/nds32.md (pop25return): New.
41317         * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
41318         pop25return pattern.
41320 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
41322         * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
41323         -mforbid-fp-as-gp, and -mex9 options.
41325 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
41327         * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
41328         remove -mgp-direct option.
41330 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
41332         * doc/invoke.texi (--param early-inlining-insns): Update default value.
41333         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
41335 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
41337         * ipa-inline.c (inline_small_functions): Work around hints
41338         cache issue.
41340 2015-01-15  Sandra Loosemore  <sandra@codesourcery.com>
41342         PR target/59710
41343         * doc/invoke.texi (Option Summary): Document new Nios II
41344         -mgpopt= syntax.
41345         (Nios II Options): Likewise.
41346         * config/nios2/nios2.opt: Add -mgpopt= option support.
41347         Modify existing -mgpopt and -mno-gpopt options to be aliases.
41348         * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
41349         * config/nios2/nios2.c (nios2_option_override): Adjust
41350         -mgpopt defaulting.
41351         (nios2_in_small_data_p): Return true for explicit small data
41352         sections even with -G0.
41353         (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
41354         option choices.
41356 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
41358         PR ipa/64612
41359         * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
41360         of comdat locals.
41361         (inline_call): Fix removal of aliases.
41363 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
41365         * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
41366         include SANITIZE_VPTR in SANITIZE_UNDEFINED.
41367         * opts.c (common_handle_option): Add -fsanitize=vptr.
41368         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
41369         BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
41370         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
41371         UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
41372         (ubsan_expand_vptr_ifn): New prototype.
41373         * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
41374         expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
41375         expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
41376         expand_LOOP_VECTORIZED): Make argument nameless, remove
41377         ATTRIBUTE_UNUSED.
41378         (expand_UBSAN_VPTR): New function.
41379         * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
41380         in fn spec.
41381         (UBSAN_VPTR): New internal function.
41382         * sanopt.c (tree_map_traits): Renamed to ...
41383         (sanopt_tree_map_traits): ... this.
41384         (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
41385         (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
41386         to sanopt_tree_map_traits renaming.  Add vptr_check_map field.
41387         (maybe_optimize_ubsan_vptr_ifn): New function.
41388         (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
41389         (pass_sanopt::execute): Likewise.  Call sanopt_optimize even for
41390         -fsanitize=vptr.
41391         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
41392         internal calls like pure functions for aliasing, even when they
41393         have other side-effects that prevent making them ECF_PURE.
41394         * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
41395         (ubsan_expand_vptr_ifn): New function.
41397 2015-01-15  Vladimir Makarov  <vmakarov@redhat.com>
41399         PR rtl-optimization/64110
41400         * stmt.c (parse_output_constraint): Process '^' and '$'.
41401         (parse_input_constraint): Ditto.
41402         * lra-constraints.c (process_alt_operands): Process the new
41403         constraints.
41404         * ira-costs.c (record_reg_classes): Process the new constraint
41405         '^'.
41406         * genoutput.c (indep_constraints): Add '^' and '$'.
41407         * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
41408         * doc/md.texi: Add description of the new constraints.
41410 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
41411             Bernd Schmidt  <bernds@codesourcery.com>
41412             Cesar Philippidis  <cesar@codesourcery.com>
41413             James Norris  <jnorris@codesourcery.com>
41414             Tom de Vries  <tom@codesourcery.com>
41415             Ilmir Usmanov  <i.usmanov@samsung.com>
41416             Dmitry Bocharnikov  <dmitry.b@samsung.com>
41417             Evgeny Gavrin  <e.gavrin@samsung.com>
41418             Jakub Jelinek  <jakub@redhat.com>
41420         * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
41421         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
41422         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
41423         New function types.
41424         * builtins.c: Include "gomp-constants.h".
41425         (expand_builtin_acc_on_device): New function.
41426         (expand_builtin, is_inexpensive_builtin): Handle
41427         BUILT_IN_ACC_ON_DEVICE.
41428         * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
41429         New macros.
41430         * cgraph.c (cgraph_node::create): Consider flag_openacc next to
41431         flag_openmp.
41432         * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
41433         <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
41434         i386/intelmic-offload.h.
41435         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
41436         to libgomp and its dependencies.
41437         * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
41438         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
41439         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
41440         * config/ia64/hpux.h (LIB_SPEC): Likewise.
41441         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
41442         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
41443         * doc/generic.texi: Update for OpenACC changes.
41444         * doc/gimple.texi: Likewise.
41445         * doc/invoke.texi: Likewise.
41446         * doc/sourcebuild.texi: Likewise.
41447         * gimple-pretty-print.c (dump_gimple_omp_for): Handle
41448         GF_OMP_FOR_KIND_OACC_LOOP.
41449         (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
41450         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
41451         GF_OMP_TARGET_KIND_OACC_UPDATE,
41452         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
41453         Dump more data.
41454         * gimple.c: Update comments for OpenACC changes.
41455         * gimple.def: Likewise.
41456         * gimple.h: Likewise.
41457         (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
41458         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
41459         GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
41460         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
41461         (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
41462         appropriate place.
41463         (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
41464         * gimplify.c: Include "gomp-constants.h".
41465         Update comments for OpenACC changes.
41466         (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
41467         OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
41468         OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
41469         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
41470         OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
41471         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
41472         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
41473         OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
41474         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
41475         OMP_CLAUSE_SEQ.
41476         (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
41477         GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
41478         OMP_CLAUSE_SET_MAP_KIND.
41479         (gimplify_oacc_cache): New function.
41480         (gimplify_omp_for): Handle OACC_LOOP.
41481         (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
41482         OACC_DATA.
41483         (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
41484         OACC_EXIT_DATA, OACC_UPDATE.
41485         (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
41486         OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
41487         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
41488         (gimplify_body): Consider flag_openacc next to flag_openmp.
41489         * lto-streamer-out.c: Include "gomp-constants.h".
41490         * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
41491         (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
41492         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
41493         (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
41494         (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
41495         (BUILT_IN_ACC_ON_DEVICE): New builtins.
41496         * omp-low.c: Include "gomp-constants.h".
41497         Update comments for OpenACC changes.
41498         (struct omp_context): Add reduction_map, gwv_below, gwv_this
41499         members.
41500         (extract_omp_for_data, use_pointer_for_field, install_var_field)
41501         (new_omp_context, delete_omp_context, scan_sharing_clauses)
41502         (create_omp_child_function, scan_omp_for, scan_omp_target)
41503         (check_omp_nesting_restrictions, lower_reduction_clauses)
41504         (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
41505         Update for OpenACC changes.
41506         (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
41507         OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
41508         OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
41509         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
41510         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
41511         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ.  Use GOMP_MAP_* instead of
41512         OMP_CLAUSE_MAP_*.
41513         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
41514         Handle GF_OMP_FOR_KIND_OACC_LOOP.
41515         (expand_omp_target, lower_omp_target): Handle
41516         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
41517         GF_OMP_TARGET_KIND_OACC_UPDATE,
41518         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
41519         GF_OMP_TARGET_KIND_OACC_DATA.
41520         (pass_expand_omp::execute, execute_lower_omp)
41521         (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
41522         flag_openmp.
41523         (offload_symbol_decl): New variable.
41524         (oacc_get_reduction_array_id, oacc_max_threads)
41525         (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
41526         (maybe_lookup_oacc_reduction, enclosing_target_ctx)
41527         (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
41528         (oacc_gimple_assign, oacc_initialize_reduction_data)
41529         (oacc_finalize_reduction_data, oacc_process_reduction_data): New
41530         functions.
41531         (is_targetreg_ctx): Remove function.
41532         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
41533         OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
41534         OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
41535         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
41536         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
41537         OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
41538         * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
41539         * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
41540         (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
41541         (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
41542         (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
41543         (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
41544         * tree-core.h: Update comments for OpenACC changes.
41545         (enum omp_clause_map_kind): Remove.
41546         (struct tree_omp_clause): Change type of map_kind member from enum
41547         omp_clause_map_kind to unsigned char.
41548         * tree-inline.c: Update comments for OpenACC changes.
41549         * tree-nested.c: Likewise.  Include "gomp-constants.h".
41550         (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
41551         (convert_tramp_reference_stmt, convert_gimple_call): Update for
41552         OpenACC changes.  Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
41553         OMP_CLAUSE_SET_MAP_KIND.
41554         * tree-pretty-print.c: Include "gomp-constants.h".
41555         (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
41556         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
41557         OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
41558         OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
41559         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
41560         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT.  Use GOMP_MAP_*
41561         instead of OMP_CLAUSE_MAP_*.
41562         (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
41563         OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
41564         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
41565         * tree-streamer-in.c: Include "gomp-constants.h".
41566         (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
41567         OMP_CLAUSE_MAP_*.  Use OMP_CLAUSE_SET_MAP_KIND.
41568         * tree-streamer-out.c: Include "gomp-constants.h".
41569         (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
41570         OMP_CLAUSE_MAP_*.
41571         * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
41572         (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
41573         (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
41574         * tree.c (omp_clause_num_ops): Update accordingly.
41575         * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
41576         Likewise.
41577         (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
41578         (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
41579         (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
41580         (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
41581         (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
41582         (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
41583         * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
41584         (OMP_CLAUSE_SET_MAP_KIND): New macro.
41585         * varpool.c (varpool_node::get_create): Consider flag_openacc next
41586         to flag_openmp.
41587         * config/i386/intelmic-offload.h: New file.
41588         * config/nvptx/offload.h: Likewise.
41590 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
41592         * explow.h: Remove duplicate contents.
41593         * dojump.h: Likewise.
41595 2015-01-15  Richard Earnshaw  <rearnsha@arm.com>
41597         * arm.c (arm_xgene_tune): Add default initializer for instruction
41598         fusion.
41600 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
41602         PR ipa/64068
41603         PR ipa/64559
41604         * ipa.c (symbol_table::remove_unreachable_nodes):
41605         Do not put abstract origins into boundary.
41607 2015-01-15  Evgeny Stupachenko  <evstupac@gmail.com>
41609         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
41610         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
41612 2015-01-15  Steve Ellcey  <sellcey@mips.com>
41614         * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
41615         cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
41616         builtins.def, and chkp-builtins.def.
41618 2015-01-15  David Edelsohn  <dje.gcc@gmail.com>
41620         * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
41621         ISA 2.7 (POWER8).
41623 2015-01-15  Richard Biener  <rguenther@suse.de>
41625         PR tree-optimization/61743
41626         * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
41627         information on PHIs for some simple cases.
41629 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
41631         * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
41632         Include xgene1.md.
41633         * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
41634         * config/arm/arm-cores.def (xgene1): New entry.
41635         * config/arm/arm-tables.opt: Regenerate.
41636         * config/arm/arm-tune.md: Regenerate.
41637         * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
41639 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
41641         * tree-if-conv.c: Include hash-map.h.
41642         (aggressive_if_conv): New variable.
41643         (fold_build_cond_expr): Add simplification of non-zero condition.
41644         (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
41645         destination block is not always executed.
41646         (if_convertible_phi_p): Fix commentary, allow phi nodes have more
41647         than two predecessors if AGGRESSIVE_IF_CONV is true.
41648         (if_convertible_stmt_p): Fix commentary.
41649         (all_preds_critical_p): New function.
41650         (has_pred_critical_p): New function.
41651         (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
41652         BB can have more than two predecessors and all incoming edges can be
41653         critical.
41654         (predicate_bbs): Skip predication for loop exit block, use build2_loc
41655         to compute predicate for true edge.
41656         (find_phi_replacement_condition): Delete this function.
41657         (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
41658         Allow interchange PHI arguments if EXTENDED is false.
41659         Change check that block containing reduction statement candidate
41660         is predecessor of phi-block since phi may have more than two arguments.
41661         (phi_args_hash_traits): New helper structure.
41662         (struct phi_args_hash_traits): New type.
41663         (phi_args_hash_traits::hash): New function.
41664         (phi_args_hash_traits::equal_keys): New function.
41665         (gen_phi_arg_condition): New function.
41666         (predicate_scalar_phi): Add handling of phi nodes with more than two
41667         arguments, delete COND and TRUE_BB arguments, insert body of
41668         find_phi_replacement_condition to predicate ordinary phi nodes.
41669         (predicate_all_scalar_phis): Skip blocks with the only predecessor,
41670         delete call of find_phi_replacement_condition and invoke
41671         predicate_scalar_phi with two arguments.
41672         (insert_gimplified_predicates): Add assert that non-predicated block
41673         don't have statements to insert.
41674         (ifcvt_split_critical_edges): New function.
41675         (ifcvt_split_def_stmt): Likewise.
41676         (ifcvt_walk_pattern_tree): Likewise.
41677         (stmt_is_root_of_bool_pattern): Likewise.
41678         (ifcvt_repair_bool_pattern): Likewise.
41679         (ifcvt_local_dce): Likewise.
41680         (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
41681         is copy of inner or outer loop force_vectorize field, invoke
41682         ifcvt_split_critical_edges, ifcvt_local_dce and
41683         ifcvt_repair_bool_pattern for aggressive if-conversion.
41685 2015-01-15  Philipp Tomsich  <ptomsich@theobroma-systems.com>
41687         * config/aarch64/aarch64.md: Include xgene1.md.
41688         * config/aarch64/xgene1.md: New file.
41690 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
41692         * config/aarch64/aarch64-cores.def (xgene1): Update/add the
41693         xgene1 (APM XGene-1) core definition.
41694         * config/aarch64/aarch64.c: Add cost tables for APM XGene-1
41695         * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
41696         * doc/invoke.texi: Document -mcpu=xgene1.
41698 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
41700         * dojump.h: New header file.
41701         * explow.h: Likewise.
41702         * expr.h: Remove includes.
41703         Move expmed.c prototypes to expmed.h.
41704         Move dojump.c prototypes to dojump.h.
41705         Move alias.c prototypes to alias.h.
41706         Move explow.c prototypes to explow.h.
41707         Move calls.c prototypes to calls.h.
41708         Move emit-rtl.c prototypes to emit-rtl.h.
41709         Move varasm.c prototypes to varasm.h.
41710         Move stmt.c prototypes to stmt.h.
41711         (saved_pending_stack_adjust): Move to dojump.h.
41712         (adjust_address): Move to explow.h.
41713         (adjust_address_nv): Move to emit-rtl.h.
41714         (adjust_bitfield_address): Likewise.
41715         (adjust_bitfield_address_size): Likewise.
41716         (adjust_bitfield_address_nv): Likewise.
41717         (adjust_automodify_address_nv): Likewise.
41718         * explow.c (expr_size): Move to expr.c.
41719         (int_expr_size): Likewise.
41720         (tree_expr_size): Likewise.
41721         Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41722         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
41723         * genemit.c (main): Generate includes statistics.h, real.h,
41724         fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
41725         stmt.h.
41726         * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
41727         function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
41728         explow.h, emit-rtl.h, stmt.h.
41729         * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
41730         fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
41731         * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
41732         real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
41733         emit-rtl.h, varasm.h, stmt.h.
41734         * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
41735         hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
41736         function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
41737         fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
41738         expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
41739         * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
41740         double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
41741         function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
41742         insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
41743         tm.h tree.h varasm.h vec.h wide-int.h.
41744         * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
41745         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
41746         hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
41747         real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
41748         * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
41749         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
41750         insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
41751         * loop-iv.c: Likewise.
41752         * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
41753         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
41754         statistics.h stmt.h tree.h varasm.h wide-int.h.
41755         * lra-constraints.c: Likewise.
41756         * lra-eliminations.c: Likewise.
41757         * lra-lives.c: Likewise.
41758         * lra-remat.c: Likewise.
41759         * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
41760         explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
41761         statistics.h stmt.h tree.h varasm.h wide-int.h.
41762         * hw-doloop.c: Likewise.
41763         * ira-color.c: Likewise.
41764         * ira-emit.c: Likewise.
41765         * loop-doloop.c: Likewise.
41766         * loop-invariant.c: Likewise.
41767         * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
41768         explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
41769         statistics.h stmt.h tree.h varasm.h wide-int.h.
41770         * caller-save.c: Include alias.h calls.h dojump.h double-int.h
41771         emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
41772         statistics.h stmt.h tree.h varasm.h wide-int.h.
41773         * combine-stack-adj.c: Likewise.
41774         * cse.c: Likewise.
41775         * ddg.c: Likewise.
41776         * ifcvt.c: Likewise.
41777         * ira-costs.c: Likewise.
41778         * jump.c: Likewise.
41779         * lra-coalesce.c: Likewise.
41780         * lra-spills.c: Likewise.
41781         * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
41782         explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
41783         stmt.h varasm.h wide-int.h.
41784         * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
41785         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
41786         varasm.h.
41787         * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
41788         double-int.h explow.h expmed.h fixed-value.h flags.h real.h
41789         statistics.h stmt.h varasm.h wide-int.h.
41790         * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
41791         expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
41792         varasm.h wide-int.h.
41793         * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
41794         expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
41795         * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
41796         emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
41797         statistics.h stmt.h.
41798         * config/tilepro/tilepro.c: Likewise.
41799         * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
41800         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
41801         * config/pdp11/pdp11.c: Likewise.
41802         * config/xtensa/xtensa.c: Likewise.
41803         * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
41804         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
41805         varasm.h.
41806         * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41807         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
41808         insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
41809         * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41810         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
41811         insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
41812         * rtl-chkp.c: Likewise.
41813         * tree-chkp-opt.c: Likewise.
41814         * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
41815         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
41816         hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
41817         * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41818         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
41819         statistics.h stmt.h.
41820         * tree-vect-data-refs.c: Likewise.
41821         * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
41822         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
41823         rtl.h statistics.h stmt.h varasm.h.
41824         * internal-fn.c: Likewise.
41825         * ipa-icf-gimple.c: Likewise.
41826         * lto-section-out.c: Likewise.
41827         * tree-data-ref.c: Likewise.
41828         * tree-nested.c: Likewise.
41829         * tree-outof-ssa.c: Likewise.
41830         * tree-predcom.c: Likewise.
41831         * tree-pretty-print.c: Likewise.
41832         * tree-scalar-evolution.c: Likewise.
41833         * tree-ssa-strlen.c: Likewise.
41834         * tree-vect-loop.c: Likewise.
41835         * tree-vect-patterns.c: Likewise.
41836         * tree-vect-slp.c: Likewise.
41837         * tree-vect-stmts.c: Likewise.
41838         * tsan.c: Likewise.
41839         * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41840         fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
41841         stmt.h.
41842         * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
41843         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
41844         statistics.h stmt.h varasm.h.
41845         * loop-unroll.c: Likewise.
41846         * ubsan.c: Likewise.
41847         * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
41848         expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
41849         stmt.h varasm.h.
41850         * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41851         fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
41852         * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
41853         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
41854         statistics.h stmt.h.
41855         * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
41856         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
41857         statistics.h stmt.h varasm.h.
41858         * gimple-match-head.c: Likewise.
41859         * lto-cgraph.c: Likewise.
41860         * lto-section-in.c: Likewise.
41861         * lto-streamer-in.c: Likewise.
41862         * lto-streamer-out.c: Likewise.
41863         * tree-affine.c: Likewise.
41864         * tree-cfg.c: Likewise.
41865         * tree-cfgcleanup.c: Likewise.
41866         * tree-if-conv.c: Likewise.
41867         * tree-into-ssa.c: Likewise.
41868         * tree-ssa-alias.c: Likewise.
41869         * tree-ssa-copyrename.c: Likewise.
41870         * tree-ssa-dse.c: Likewise.
41871         * tree-ssa-forwprop.c: Likewise.
41872         * tree-ssa-live.c: Likewise.
41873         * tree-ssa-math-opts.c: Likewise.
41874         * tree-ssa-pre.c: Likewise.
41875         * tree-ssa-sccvn.c: Likewise.
41876         * tree-tailcall.c: Likewise.
41877         * tree-vect-generic.c: Likewise.
41878         * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41879         fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
41880         * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41881         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
41882         * varasm.c: Likewise.
41883         * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41884         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
41885         varasm.h.
41886         * init-regs.c: Likewise.
41887         * ira.c: Likewise.
41888         * omp-low.c: Likewise.
41889         * stack-ptr-mod.c: Likewise.
41890         * tree-ssa-reassoc.c: Likewise.
41891         * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41892         fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
41893         varasm.h.
41894         * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41895         fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
41896         * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41897         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
41898         * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41899         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
41900         * tree-ssa-phiopt.c: Likewise.
41901         * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41902         fixed-value.h hashtab.h real.h statistics.h stmt.h.
41903         * config/fr30/fr30.c: Likewise.
41904         * config/frv/frv.c: Likewise.
41905         * expr.c: Likewise.
41906         * final.c: Likewise.
41907         * optabs.c: Likewise.
41908         * passes.c: Likewise.
41909         * simplify-rtx.c: Likewise.
41910         * stmt.c: Likewise.
41911         * toplev.c: Likewise.
41912         * var-tracking.c: Likewise.
41913         * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41914         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
41915         * lower-subreg.c: Likewise.
41916         * postreload-gcse.c: Likewise.
41917         * ree.c: Likewise.
41918         * reginfo.c: Likewise.
41919         * store-motion.c: Likewise.
41920         * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41921         fixed-value.h hashtab.h real.h stmt.h varasm.h.
41922         * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41923         fixed-value.h hashtab.h statistics.h stmt.h.
41924         * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41925         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
41926         * except.c: Likewise.
41927         * explow.c: Likewise.
41928         * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41929         fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
41930         varasm.h.
41931         * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41932         fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
41933         * tree-ssa-structalias.c: Likewise.
41934         * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41935         fixed-value.h insn-config.h real.h statistics.h.
41936         * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41937         fixed-value.h insn-config.h real.h statistics.h stmt.h.
41938         * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41939         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
41940         * cfgbuild.c: Likewise.
41941         * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41942         fixed-value.h real.h rtl.h statistics.h stmt.h.
41943         * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41944         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
41945         * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41946         fixed-value.h real.h statistics.h stmt.h.
41947         * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41948         fixed-value.h real.h statistics.h stmt.h varasm.h.
41949         * cprop.c: Likewise.
41950         * modulo-sched.c: Likewise.
41951         * postreload.c: Likewise.
41952         * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
41953         flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
41954         statistics.h stmt.h varasm.h.
41955         * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
41956         explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
41957         rtl.h statistics.h stmt.h varasm.h.
41958         * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
41959         fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
41960         varasm.h.
41961         * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
41962         function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
41963         varasm.h.
41964         * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
41965         fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
41966         varasm.h.
41967         * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
41968         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
41969         * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
41970         function.h real.h statistics.h stmt.h varasm.h.
41971         * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
41972         insn-config.h real.h statistics.h stmt.h.
41973         * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
41974         statistics.h stmt.h.
41975         * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
41976         fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
41977         statistics.h stmt.h varasm.h.
41978         * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
41979         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
41980         * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
41981         flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
41982         * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
41983         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
41984         statistics.h stmt.h varasm.h.
41985         * ipa-polymorphic-call.c: Likewise.
41986         * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
41987         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
41988         statistics.h stmt.h.
41989         * config/c6x/c6x.c: Likewise.
41990         * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
41991         explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
41992         statistics.h stmt.h varasm.h.
41993         * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
41994         fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
41995         stmt.h varasm.h.
41996         * ipa-split.c: Likewise.
41997         * tree-eh.c: Likewise.
41998         * tree-ssa-dce.c: Likewise.
41999         * tree-ssa-loop-niter.c: Likewise.
42000         * tree-vrp.c: Likewise.
42001         * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
42002         expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
42003         stmt.h.
42004         * config/nds32/nds32-fp-as-gp.c: Likewise.
42005         * config/nds32/nds32-intrinsic.c: Likewise.
42006         * config/nds32/nds32-isr.c: Likewise.
42007         * config/nds32/nds32-md-auxiliary.c: Likewise.
42008         * config/nds32/nds32-memory-manipulation.c: Likewise.
42009         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
42010         * config/nds32/nds32-predicates.c: Likewise.
42011         * config/nds32/nds32.c: Likewise.
42012         * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
42013         fixed-value.h hashtab.h real.h statistics.h.
42014         * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
42015         fixed-value.h hashtab.h real.h statistics.h stmt.h.
42016         * config/arm/arm.c: Likewise.
42017         * config/avr/avr.c: Likewise.
42018         * config/bfin/bfin.c: Likewise.
42019         * config/h8300/h8300.c: Likewise.
42020         * config/i386/i386.c: Likewise.
42021         * config/ia64/ia64.c: Likewise.
42022         * config/iq2000/iq2000.c: Likewise.
42023         * config/m32c/m32c.c: Likewise.
42024         * config/m32r/m32r.c: Likewise.
42025         * config/m68k/m68k.c: Likewise.
42026         * config/mcore/mcore.c: Likewise.
42027         * config/mep/mep.c: Likewise.
42028         * config/mips/mips.c: Likewise.
42029         * config/mn10300/mn10300.c: Likewise.
42030         * config/moxie/moxie.c: Likewise.
42031         * config/pa/pa.c: Likewise.
42032         * config/rl78/rl78.c: Likewise.
42033         * config/rx/rx.c: Likewise.
42034         * config/s390/s390.c: Likewise.
42035         * config/sh/sh.c: Likewise.
42036         * config/sparc/sparc.c: Likewise.
42037         * config/spu/spu.c: Likewise.
42038         * config/stormy16/stormy16.c: Likewise.
42039         * config/v850/v850.c: Likewise.
42040         * config/vax/vax.c: Likewise.
42041         * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
42042         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
42043         * config/msp430/msp430.c: Likewise.
42044         * predict.c: Likewise.
42045         * value-prof.c: Likewise.
42046         * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
42047         expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
42048         * config/microblaze/microblaze.c: Likewise.
42049         * config/nios2/nios2.c: Likewise.
42050         * config/rs6000/rs6000.c: Likewise.
42051         * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
42052         insn-config.h real.h rtl.h statistics.h stmt.h.
42053         * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
42054         insn-config.h real.h statistics.h stmt.h.
42055         * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
42056         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
42057         * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
42058         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
42059         * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
42060         fixed-value.h real.h statistics.h stmt.h.
42061         * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
42062         fixed-value.h statistics.h stmt.h.
42063         * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
42064         stmt.h.
42066 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
42068         * gengtype.c (create_user_defined_type): Workaround
42069         -Wmaybe-uninitialized false positives.
42070         * cse.c (fold_rtx): Likewise.
42071         * loop-invariant.c (gain_for_invariant): Likewise.
42073 2015-01-15  Eric Botcazou  <ebotcazou@adacore.com>
42075         * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
42076         set the memory attributes in all cases but clear MEM_EXPR if need be.
42078 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
42080         PR tree-optimization/64434
42081         * cfgexpand.c (reorder_operands): New function.
42082         (expand_gimple_basic_block): Insert call of reorder_operands if
42083         optimized is true.
42085 2015-01-15  Matthew Fortune  <matthew.fortune@imgtec.com>
42087         * config/mips/micromips.md (*swp): Remove explicit parallel.
42088         (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
42089         * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
42090         (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
42091         (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
42092         (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
42093         (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
42094         (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
42095         (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
42096         (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
42097         (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
42098         (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
42099         (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
42100         (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
42101         (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
42102         (mips_wrdsp): Likewise.
42103         * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
42104         parallel.
42105         (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
42106         (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
42107         (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
42108         (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
42109         (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
42110         (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
42111         * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
42112         (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
42113         (ssmaddsqdq4, ssmsubsqdq4): Likewise.
42115 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
42117         * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
42118         (mips_print_operand): Support 'y' to print exact log2 in decimal
42119         of a const_int.
42120         * config/mips/mips.h (ISA_HAS_LSA): New define.
42121         (ISA_HAS_DLSA): Likewise.
42122         * config/mips/mips.md (<GPR:d>lsa): New define_insn.
42123         * config/mips/predicates.md (const_immlsa_operand): New predicate.
42125 2015-01-15  Martin Liska  <mliska@suse.cz>
42127         PR target/64377
42128         * optc-save-gen.awk: Add support for array types.
42130 2015-01-15  Richard Biener  <rguenther@suse.de>
42132         PR middle-end/64365
42133         * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
42134         for MEM_REF access functions with the same base can never partially
42135         overlap.
42137 2015-01-14  Marcos Diaz <marcos.diaz@tallertechnologies.com>
42139         * common.opt: New option -fstack-protector-explicit.
42140         * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
42141         (stack_protect_decl_phase): Handle stack_protect attribute for
42142         explicit stack protection requests.
42143         (expand_used_vars): Similarly.
42144         * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
42145         * doc/extend.texi: Add documentation for "stack_protect" attribute.
42146         * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
42148 2015-01-14  Oleg Endo  <olegendo@gcc.gnu.org>
42150         PR target/53988
42151         * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
42152         reg-reg copies.
42153         (sh_extending_set_of_reg): New struct.
42154         (sh_find_extending_set_of_reg, sh_split_tst_subregs,
42155         sh_remove_reg_dead_or_unused_notes): New Declarations.
42156         * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
42157         sh_find_extending_set_of_reg, sh_split_tst_subregs,
42158         sh_extending_set_of_reg::use_as_extended_reg): New functions.
42159         * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
42160         convert to insn_and_split and use new function sh_split_tst_subregs.
42162 2015-01-14  Sandra Loosemore  <sandra@codesourcery.com>
42164         * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
42165         option.
42166         (Optimization Options): Move -fuse-ld documentation to...
42167         (Link Options): ...here.
42169 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
42171         * config/mips/constraints.md (ZC): Add support for R6 LL/SC
42172         offsets.
42173         (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
42174         * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
42175         (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
42176         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
42177         instead of ZR for the memory operand of LL/SC.
42178         (compare_and_swap_12, sync_add<mode>): Likewise.
42179         (sync_<optab>_12, sync_old_<optab>_12): Likewise.
42180         (sync_new_<optab>_12, sync_nand_12): Likewise.
42181         (sync_old_nand_12, sync_new_nand_12): Likewise.
42182         (sync_sub<mode>, sync_old_add<mode>): Likewise.
42183         (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
42184         (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
42185         (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
42186         (sync_nand<mode>, sync_old_nand<mode>): Likewise.
42187         (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
42188         (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
42189         (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
42190         * doc/md.texi (ZC): Update description.
42192 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
42194         * builtins.c (expand_builtin_atomic_exchange): Remove error when
42195         memory model is CONSUME.
42196         (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
42197         expand_builtin_atomic_store): Change invalid memory model errors to
42198         warnings.
42199         (expand_builtin_atomic_clear): Change invalid model errors to warnings
42200         and issue warning for CONSUME.
42202 2015-01-14  Aldy Hernandez  <aldyh@redhat.com>
42204         * lto-cgraph: Update function comments for
42205         lto_symtab_encoder_encode_*.
42207 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
42209         * Makefile.in (site.exp): Do not set ENABLE_LTO.
42211 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
42213         * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
42214         * lto-cgraph.c (select_what_to_stream): Remove argument, use
42215         lto_stream_offload_p instead.
42216         * lto-streamer.h (select_what_to_stream): Remove argument.
42217         * passes.c (ipa_write_summaries): Likewise.
42218         * tree-pass.h (ipa_write_summaries): Likewise.
42220 2015-01-14  Richard Biener  <rguenther@suse.de>
42222         PR tree-optimization/59354
42223         * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
42224         groups larger than the slp group size as having gaps.
42226 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
42228         PR middle-end/59448
42229         * builtins.c (get_memmodel): Promote consume to acquire always.
42231 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
42233         PR target/64386
42234         * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
42235         V32HImode.
42237 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
42239         PR target/64393
42240         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
42241         Enable AVX512BW.
42242         (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
42243         * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
42244         AVX512VBMI, as it implies AVX512BW.
42246 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
42248         PR target/64387
42249         * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
42250         (vec_unpacks_hi_v16sf): Ditto.
42252 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
42254         * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
42255         is not available.
42257 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
42259         * doc/invoke.texi (mapcs): Mention deprecation.
42260         (mapcs-frame): Likewise.
42262 2015-01-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
42264         PR target/64453
42265         * config/arm/arm.c (callee_saved_reg_p): Define.
42266         (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
42267         register is callee saved instead of !call_used_regs[reg].
42268         (thumb1_compute_save_reg_mask): Likewise.
42270 2015-01-14  Hale Wang  <hale.wang@arm.com>
42272         * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
42273         Cortex-M7.
42275 2015-01-14  Richard Biener  <rguenther@suse.de>
42277         PR lto/64415
42278         * tree-inline.c (insert_debug_decl_map): Check destination
42279         function MAY_HAVE_DEBUG_STMTS.
42280         (insert_init_debug_bind): Likewise.
42281         (insert_init_stmt): Remove redundant check.
42282         (remap_gimple_stmt): Drop debug stmts if the destination
42283         function has var-tracking assignments disabled.
42285 2015-01-14  Martin Liska  <mliska@suse.cz>
42287         * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
42288         IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
42290 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
42292         PR target/64460
42293         * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
42294         (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
42296 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
42298         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
42299         level from an ARCH; do not inject the default.
42300         (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
42301         MIPS_ISA_LEVEL_SPEC.
42302         (MIPS_ISA_NAN2008_SPEC): Update comment.
42303         (BASE_DRIVER_SELF_SPECS): Likewise.
42304         * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
42305         MIPS_DEFAULT_ISA_LEVEL_SPEC.
42306         * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
42307         * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
42308         * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
42310 2015-01-14  Richard Biener  <rguenther@suse.de>
42312         PR tree-optimization/64493
42313         PR tree-optimization/64495
42314         * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
42315         assign the proper vectorized PHI to the inner loop exit PHIs.
42317 2015-01-14  Joey Ye  <joey.ye@arm.com>
42319         * config/arm/arm.c (arm_compute_save_reg_mask):
42320         Do not save lr in case of tail call.
42321         * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
42323 2015-01-14  Martin Uecker <uecker@eecs.berkeley.edu>
42325         * tree-vrp.c (check_array_ref): Emit more warnings
42326         for warn_array_bounds >= 2.
42327         * common.opt: New option -Warray-bounds=.
42328         * doc/invoke.texi: Document -Warray-bounds=.
42330 2015-01-14  Chung-Ju Wu  <jasonwucj@gmail.com>
42332         * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
42333         (mforbid-fp-as-gp): Remove.
42334         (mex9): Remove.
42335         * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
42336         (nds32_symbol_load_store_p): Remove.
42337         (nds32_fp_as_gp_check_available): Clean up implementation.
42338         * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
42339         cases.
42340         * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
42341         fp-as-gp and ex9 cases.
42343 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
42345         * tree-profile.c (init_ic_make_global_vars): Drop workaround
42346         for bintuils bug 14342.
42347         (init_ic_make_global_vars): Likewise.
42348         (gimple_init_edge_profiler): Likewise.
42349         (gimple_gen_ic_func_profiler): Likewise.
42351 2015-01-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
42353         * ipa-inline.c (inline_small_functions): Swap the operands in
42354         enum.
42356 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
42358         PR ipa/64481
42359         * ipa-inline-analysis.c (node_growth_cache): Remove.
42360         (initialize_growth_caches): Do not initialize it.
42361         (free_growth_caches): Do not free it.
42362         (do_estimate_growth): Rename to ...
42363         (estimate_growth): ... this one; drop growth cache code.
42364         (growth_likely_positive): Always go the heuristics way.
42365         * ipa-inline.c (can_inline_edge_p): Walk through aliases.
42366         (reset_edge_caches): Do not reset node growth.
42367         (heap_edge_removal_hook): Do not maintain cache.
42368         (inline_small_functions): Likewise; strenghten sanity check.
42369         (ipa_inline): Do not maintain caches.
42370         * ipa-inline.h (node_growth_cache): Remove.
42371         (do_estimate_growth): Remove to ...
42372         (estimate_growth): this one; remove inline version.
42373         (reset_node_growth_cache): Remove.
42375 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
42377         PR ipa/64565
42378         * ipa-inline.c (inline_small_functions): Update callee keys after
42379         resolving speculation
42380         (inline_small_functions): Always check monotonicity of the queue.
42382 2015-01-13  Marek Polacek  <polacek@redhat.com>
42384         PR middle-end/64391
42385         * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
42387 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
42389         PR rtl-optimization/64286
42390         * ree.c (combine_reaching_defs): Move part of comment earlier,
42391         remove !SCALAR_INT_MODE_P check.
42392         (add_removable_extension): Don't add vector mode
42393         extensions if all uses of the source register aren't the same
42394         vector extensions.
42396 2015-01-13  Renlin Li  <renlin.li@arm.com>
42398         * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
42399         (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
42401 2015-01-13  Martin Liska  <mliska@suse.cz>
42403         * ipa-icf.c (sem_function::equals_private): Call new functions
42404         cl_target_option_print_diff and cl_optimization_print_diff.
42405         * optc-save-gen.awk (cl_target_option_print_diff): New function.
42406         (cl_optimization_print_diff): Likewise.
42407         * opth-gen.awk: Likewise.
42409 2015-01-13  Richard Sandiford  <richard.sandiford@arm.com>
42411         * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
42412         (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
42413         (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
42414         (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
42415         (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
42416         (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
42418 2015-01-13  Andrew Pinski  <apinski@cavium.com>
42420         * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
42421         instead of src mode.
42423 2015-01-13  Richard Biener  <rguenther@suse.de>
42425         PR lto/64373
42426         * lto-streamer-out.c (tree_is_indexable): Guard for NULL
42427         DECL_CONTEXT.
42429 2015-01-13  Andrew Pinski  <apinski@cavium.com>
42431         * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
42432         volatile mems.
42433         (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
42435 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
42437         PR middle-end/63974
42438         * cfgexpand.c (expand_computed_goto): Don't call
42439         convert_memory_address here.
42441 2015-01-13  Richard Biener  <rguenther@suse.de>
42443         PR tree-optimization/64406
42444         * tree-loop-distibution.c (pass_loop_distribution::execute):
42445         Reset the SCEV hashtable if we distributed anything.
42447 2015-01-13  Richard Biener  <rguenther@suse.de>
42449         PR tree-optimization/64404
42450         * tree-vect-stmts.c (vectorizable_load): Reject conflicting
42451         SLP types for CSEd loads.
42453 2015-01-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
42455         PR tree-optimization/64436
42456         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
42457         merge of two symbolic numbers for a bitwise OR to ...
42458         (perform_symbolic_merge): This. Also fix computation of the range and
42459         end of the symbolic number corresponding to the result of a bitwise OR.
42461 2015-01-13  Richard Biener  <rguenther@suse.de>
42463         PR tree-optimization/64568
42464         * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
42465         release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
42467 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
42469         * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
42470         TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
42472 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
42474         * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
42475         target-specific symbol_ref flag.
42476         (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
42477         resides in rodata section.
42478         * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
42479         (nds32_encode_section_info): New function.
42481 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
42483         * config/nds32/nds32.md (call): Use pseudo instruction bal which
42484         clobbers TA_REGNUM if large code model is specified.
42485         (call_register): Likewise.
42486         (call_immediate): Likewise.
42487         (call_value): Likewise.
42488         (call_value_register): Likewise.
42489         (call_value_immediate): Likewise.
42491 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
42493         * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
42494         (TARGET_CMODEL_MEDIUM): New macro.
42495         (TARGET_CMODEL_LARGE): New macro.
42496         * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
42497         code model setting in assembly code.
42499 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
42501         * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
42502         Remove MASK_GP_DIRECT flag.
42503         * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
42504         one of the multilib default options.
42505         * config/nds32/nds32.opt (mgp-direct): Remove.
42506         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
42507         -mgp-direct.  We also remove unnecessary -mlittle-endian/-mbig-endian.
42509 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
42511         * config/nds32/nds32.opt (mcmodel): Add new option.
42512         * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
42513         to describe code model.
42515 2015-01-13  Oleg Endo  <olegendo@gcc.gnu.org>
42517         PR target/64479
42518         * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
42520 2015-01-12  Kaz Kojima  <kkojima@gcc.gnu.org>
42522         * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
42523         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
42524         (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
42525         (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
42526         __builtin_sh_set_fpscr.
42528 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
42530         * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
42531         after a funtion name just to indicate it is a function.
42532         ([-fsanitize-undefined-trap-on-error]): Likewise.
42533         ([-fdbg-cnt=]): Likewise.
42534         ([-mmemcpy]): Likewise.
42535         ([-mflush-func]): Likewise.
42536         ([-msynci]): Likewise.
42538 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
42540         * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
42541         example.
42543 2015-01-12  Jakub Jelinek  <jakub@redhat.com>
42545         PR tree-optimization/64563
42546         * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
42547         instead of != VR_VARYING.
42549         PR target/64513
42550         * config/i386/i386.c (ix86_expand_prologue): Add
42551         REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
42553         PR tree-optimization/64454
42554         * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
42555         op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
42556         for signed or [0, op1 - 1] for unsigned modulo.
42557         (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
42558         even if op1 does not satisfy integer_pow2p.
42560         PR other/64370
42561         * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
42563 2015-01-12  Jeff Law  <law@redhat.com>
42565         PR target/64461
42566         * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
42567         (trunchiqi2, truncsihi2): Similarly.
42569         * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
42570         rather than calling F.
42572 2015-01-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
42574         * tsan.c (instrument_expr): Use force_gimple_operand.
42575         Use may_be_nonaddressable_p instead of is_gimple_addressable.
42577 2015-01-12  Richard Biener  <rguenther@suse.de>
42579         PR tree-optimization/64530
42580         * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
42581         back dr1.
42583 2015-01-12  Richard Biener  <rguenther@suse.de>
42585         PR middle-end/64357
42586         * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
42587         latches properly.
42589 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
42591         * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
42592         Cortex-A17 tuning parameters.
42593         * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
42595 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
42597         * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
42598         * config/arm/arm.c (arm_macro_fusion_p): New function.
42599         (arm_macro_fusion_pair_p): Likewise.
42600         (TARGET_SCHED_MACRO_FUSION_P): Define.
42601         (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
42602         (ARM_FUSE_NOTHING): Likewise.
42603         (ARM_FUSE_MOVW_MOVT): Likewise.
42604         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
42605         arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
42606         arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
42607         arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
42608         arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
42609         arm_cortex_a5_tune): Specify fuseable_ops value.
42611 2015-01-12  H.J. Lu  <hongjiu.lu@intel.com>
42613         PR bootstrap/64561
42614         * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
42615         test for PIE with copy reloc.
42616         * configure: Regenerated.
42618 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
42620         * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
42621         in gen_rtx_REG.
42622         (arm_tls_descseq_addr): Likewise.
42623         (arm_gen_movmemqi): Likewise.
42624         (arm_expand_epilogue_apcs_frame): Likewise.
42625         (arm_expand_epilogue): Likewise.
42626         (arm_expand_prologue): Likewise.  Use R1_REGNUM instead of constant 1
42627         in gen_rtx_REG.
42629 2015-01-12  Martin Liska  <mliska@suse.cz>
42631         PR ipa/64550
42632         * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
42633         volatility for correct operands.
42635 2015-01-12  Martin Liska  <mliska@suse.cz>
42637         * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
42638         indication that a function is not leaf.
42639         (sem_function::compare_polymorphic_p): Likewise.
42641 2015-01-12  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
42643         * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
42644         machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
42645         fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
42646         fold-const.h, tree-check.h.
42648 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
42650         PR ipa/63967
42651         PR ipa/64425
42652         * ipa-inline.c (compute_uninlined_call_time,
42653         compute_inlined_call_time): Use counts for extra precision when
42654         needed possible.
42655         (big_speedup_p): Fix formating.
42656         (RELATIVE_TIME_BENEFIT_RANGE): Remove.
42657         (relative_time_benefit): Remove.
42658         (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
42659         merge guessed and read profile paths.
42660         (inline_small_functions): Count only !optimize_size functions into
42661         initial size; be more lax about sanity check when profile is used;
42662         be sure to update inlined function profile when profile is read.
42664 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
42666         PR ipa/63470
42667         * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
42668         cost when edge becomes direct.
42669         * ipa-prop.c (make_edge_direct): Do not adjust when speculation
42670         is resolved or when introducing new speculation.
42672 2015-01-12  Chen Gang  <gang.chen.5i5j@gmail.com>
42674         PR ipa/64551
42675         PR ipa/64552
42676         * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
42677         '||' to fix typo issue.
42679         * tree.h (target_opts_for_fn): Check NULL_TREE since it can
42680         accept and return NULL.
42682 2015-01-12  Martin Liska  <mliska@suse.cz>
42684         * cgraph.c (cgraph_edge::remove_callee): Move function to header
42685         file for being inlined.
42686         (cgraph_set_edge_callee): Delete.
42687         (cgraph_edge::redirect_callee): Move function to header file
42688         for being inlined.
42689         (cgraph_edge::make_direct): Use new function.
42690         (cgraph_edge::dump_edge_flags): New function created from
42691         static dump_edge_flags function.
42692         (cgraph_node::dump): Use new function.
42693         (cgraph_edge::verify_count_and_frequency): New function created
42694         from verify_edge_count_and_frequency.
42695         (cgraph_edge::verify_corresponds_to_fndecl): New function created
42696         from verify_edge_corresponds_to_fndecl.
42697         (verify_edge_corresponds_to_fndecl): Delete.
42698         (cgraph_node::verify_node): Use new function.
42699         * cgraph.h (cgraph_edge::set_callee): New function.
42700         (cgraph_edge::dump_edge_flags): Likewise.
42701         (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
42703 2015-01-11  Jan Hubicka  <hubicka@ucw.cz>
42705         * ipa-utils.c (estimate_function_body_sizes): Do not
42706         free node params when called late with early=true.
42708 2015-01-11  James Greenhalgh  <james.greenhalgh@arm.com>
42710         * doc/md.texi (Instruction Patterns): Rewrite text for
42711         clarity.
42712         (Example): Likewise.
42714 2015-01-10  Sandra Loosemore  <sandra@codesourcery.com>
42716         * doc/invoke.texi (Option Summary): Break long lines.
42717         [(-fdiagnostics-color)]: Put long literal in @smallexample
42718         instead of inline.
42719         [(-fsanitize-recover)]: Likewise.
42720         [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
42721         [(-ffast-math)]: Likewise.
42722         [(--param max-inline-insns-recursive)]: Likewise.
42723         [(--param max-inline-recursive-depth)]: Likewise.
42724         [(-mno-text-section-literals)]: Likewise.
42726 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
42728         * doc/install.texi: Update for libgomp being renamed from "GNU
42729         OpenMP Runtime Library" to "GNU Offloading and Multi Processing
42730         Runtime Library".
42731         * doc/sourcebuild.texi: Likewise.
42733 2015-01-10  Anthony Green  <green@moxielogic.com>
42735         * config/moxie/moxie.c (moxie_option_override): Fix forcing of
42736         mul.x availability for moxiebox configuration.
42738 2015-01-09  Anthony Green  <green@moxielogic.com>
42740         * config/moxie/moxie.md: Tabify assembly output.
42742 2015-01-09  Anthony Green  <green@moxielogic.com>
42744         * config/moxie/moxie.md (CC_REG): Correct register definition.
42746 2015-01-09  Sandra Loosemore  <sandra@codesourcery.com>
42748         * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
42749         ([-fvtv-debug], [-fvtv-counts]): Likewise.  Correct location
42750         of log files.
42752 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
42754         * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
42756 2015-01-09  Bernd Schmidt  <bernds@codesourcery.com>
42757             Jakub Jelinek  <jakub@redhat.com>
42759         PR middle-end/64412
42760         * lto-streamer.h (lto_stream_offload_p): New declaration.
42761         * lto-streamer.c (lto_stream_offload_p): New variable.
42762         * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
42763         at the same time as section_name_prefix.
42764         * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
42765         if lto_stream_offload_p.
42766         * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
42767         stream TREE_TARGET_OPTION if lto_stream_offload_p.
42768         (write_ts_function_decl_tree_pointers): Don't
42769         stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
42770         * tree-streamer-in.c (unpack_value_fields): Don't stream
42771         TREE_TARGET_OPTION in if ACCEL_COMPILER.
42772         (lto_input_ts_function_decl_tree_pointers): Don't stream
42773         DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
42774         * lto-opts.c (lto_write_options): Use lto_stream_offload_p
42775         instead of section_name_prefix string comparisons.
42777 2015-01-09  Jakub Jelinek  <jakub@redhat.com>
42779         PR rtl-optimization/64536
42780         * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
42781         tablejumps.
42783 2015-01-09  Michael Collison  <michael.collison@linaro.org>
42785         PR tree-optimization/64322
42786         * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
42787         range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
42789 2015-01-09  Tom de Vries  <tom@codesourcery.com>
42791         PR rtl-optimization/64539
42792         * regcprop.c (kill_clobbered_values): Factor out of ...
42793         (copyprop_hardreg_forward_1): ... here.  Use kill_clobbered_values
42794         instead of note_stores with kill_clobbered_value.
42796 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
42798          * ginclude/unwind-arm-common.h: Revert previous commit.
42800 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
42802         * config.gcc (arm*-*-freebsd*): New configuration.
42803         * config/arm/freebsd.h: New file.
42804         * config.host: Add extra components for arm*-*-freebsd*.
42805         * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
42806         * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
42808 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
42810         * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
42811         for -mcpu=e6500.
42812         * config/rs6000/t-rtems: Add e6500 multilibs.
42814 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
42816         * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
42817         MPC8540.
42819 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
42821         * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
42822         MULTILIB_EXCEPTIONS.
42824 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
42826         * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
42827         MULTILIB_EXCEPTIONS.
42829 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
42831         * config/arm/t-rtems-eabi: Rename to...
42832         * config/arm/t-rtems: ...this.
42833         * config/arm/rtems-eabi.h: Rename to...
42834         * config/arm/rtems.h: ...this.
42835         * config.gcc (arm*-*-rtems*): Reflect changes above.
42837 2015-01-09  Richard Biener  <rguenther@suse.de>
42839         PR tree-optimization/64410
42840         * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
42841         on the LHS.
42842         (execute_update_addresses_taken): Deal with that.
42843         * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
42844         loads/stores for complex variables.
42846 2015-01-09  Martin Liska  <mliska@suse.cz>
42848         * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
42849         name comparison.
42850         (func_checker::compare_memory_operand): New function.
42851         (func_checker::compare_operand): Split case to newly
42852         added functions.
42853         (func_checker::compare_cst_or_decl): New function.
42854         (func_checker::compare_gimple_call): Identify
42855         memory operands.
42856         (func_checker::compare_gimple_assign): Likewise.
42857         * ipa-icf-gimple.h: New function.
42859 2015-01-09  Martin Liska  <mliska@suse.cz>
42861         PR ipa/64503
42862         * sreal.c (sreal::dump): Change unsigned format to signed for
42863         m_exp value.
42864         (sreal::to_double): Replace exp2 with scalbln.
42866 2015-01-09  Martin Liska  <mliska@suse.cz>
42868         * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
42869         * ipa-icf.c (sem_function::equals_private): Add support for target and
42870         (sem_item_optimizer::merge_classes): Remove redundant function
42871         optimization flags comparison.
42872         * tree.h (target_opts_for_fn): New function.
42874 2015-01-09  Tom de Vries  <tom@codesourcery.com>
42876         * omp-low.c (expand_omp_for_static_chunk): Fix assert.
42878 2015-01-09  Kito Cheng  <kito@0xlab.org>
42880         PR rtl-optimization/64348
42881         * lra-constraints.c (split_reg): Fix caller-save store/restore
42882         instruction generation.
42884 2015-01-08  John David Anglin  <danglin@gcc.gnu.org>
42886         PR gcov-profile/61790
42887         * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
42888         long long.  Fallback to int64_t if host doesn't have long long and
42889         use strtol if int64_t is long.  Otherwise, use sscanf for conversion.
42891 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
42893         PR tree-optimization/63989
42894         * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
42895         from 1000 to 10000.
42896         * tree-ssa-strlen.c (get_strinfo): Moved earlier.
42897         (get_stridx): If we don't have a record for certain SSA_NAME,
42898         but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
42899         constant offset, call get_stridx_plus_constant.
42900         (get_stridx_plus_constant): New function.
42901         (zero_length_string): Don't use get_stridx here.
42903         PR target/55023
42904         PR middle-end/64388
42905         * dse.c (struct insn_info): Mention frame_read set also
42906         before reload for tail calls on some targets.
42907         (scan_insn): Revert 2014-12-22 change.  Set frame_read
42908         also before reload for tail calls if
42909         HARD_FRAME_POINTER_IS_ARG_POINTER.  Call add_wild_read
42910         instead of add_non_frame_wild_read for non-const/memset
42911         tail calls after reload.
42913 2015-01-08  Jason Merrill  <jason@redhat.com>
42915         * ubsan.c (do_ubsan_in_current_function): New.
42916         (pass_ubsan::gate): Use it.
42917         * ubsan.h: Declare it.
42918         * convert.c (convert_to_integer): Use it.
42920 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
42922         PR target/64338
42923         * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
42924         compare_code when it is unconditionally overwritten afterwards.
42925         Use ix86_reverse_condition instead of reverse_condition.  Don't
42926         change code if *reverse_condition* returned UNKNOWN and don't
42927         swap ct/cf and negate diff in that case.
42929 2015-01-08  Mike Stump  <mikestump@comcast.net>
42931         * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
42932         (pass_tsan_O0::gate): Likewise.
42933         * extend.texi (Function Attributes): Add no_sanitize_thread
42934         documentation.
42936 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
42938         * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
42939         for registering builtins.
42940         * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
42941         add -fopenmp to the argv_obstack used when invoking
42942         compile_for_target.
42944         * config/i386/intelmic-mkoffload.c (compile_for_target): Always
42945         add "-m32" or "-m64" to argv_obstack.
42946         (generate_host_descr_file): Likewise, when invoking host_compiler.
42947         (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
42948         ld.
42950 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
42952         * config/sh/sh-mem.cc: Use constant as second operand when emitting
42953         tstsi_t insns.
42955 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
42957         PR target/55212
42958         * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
42959         constant load if constant operand fits into I08.
42961 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
42963         PR sanitizer/64336
42964         * tree.c (build2_stat): Fix up initialization of TREE_READONLY
42965         and TREE_THIS_VOLATILE for MEM_REFs.
42966         (build5_stat): Fix up initialization of TREE_READONLY and
42967         TREE_THIS_VOLATILE for TARGET_MEM_REFs.
42969 2015-01-08  Kaz Kojima  <kkojima@gcc.gnu.org>
42971         PR target/64533
42972         * config/sh/sh.md (*addsi3_compact): Use u constraint instead
42973         of r for the second alternative of the destination operand.
42975 2015-01-07  Segher Boessenkool  <segher@kernel.crashing.org>
42977         PR target/36557
42978         * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
42980 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
42982         * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
42983         keywords.
42984         ([-fivar-visibility], [-fvisibility]): Likewise.
42986 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
42988         * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
42989         the file where @code, @command, etc is more appropriate.
42991 2015-01-06  Sandra Loosemore  <sandra@codesourcery.com>
42993         * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
42994         of -mrecip= documentation.
42996 2015-01-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
42998         PR target/64505
42999         * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
43000         correct reload handler if -m32 -mpowerpc64 is used.
43002 2015-01-06  Tom de Vries  <tom@codesourcery.com>
43004         * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
43006 2015-01-08  Christian Bruel  <christian.bruel@st.com>
43008         PR target/64507
43009         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
43011 2015-01-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
43013         PR tree-optimization/63259
43014         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
43015         if optab exists for 16bit byteswap.
43017 2015-01-06  Jakub Jelinek  <jakub@redhat.com>
43019         * opts.c (common_handle_option): Add support for
43020         -fno-sanitize=all and -f{,no-}sanitize-recover=all.
43021         * doc/invoke.texi: Document -fno-sanitize=all,
43022         -f{,no-}sanitize-recover=all.  Document that
43023         -fsanitize=float-cast-overflow is not enabled
43024         by -fsanitize=undefined.  Fix up documentation
43025         of -f{,no-}sanitize-recover.
43027 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
43029         * config.gcc: Add Visium support.
43030         * configure.ac: Likewise.
43031         * configure: Regenerate.
43032         * doc/extend.texi (interrupt attribute): Add Visium.
43033         * doc/invoke.texi: Document Visium options.
43034         * doc/install.texi: Document Visium target.
43035         * doc/md.texi: Document Visium constraints.
43036         * common/config/visium: New directory.
43037         * config/visium: Likewise.
43039 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
43041         * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
43042         for the "(and X (ior (not X) Y) -> (and X Y)" transform.
43044 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
43046         * combine.c (combine_validate_cost): Do not count the cost of a
43047         split I2 twice.  Do not display it twice in the dump, either.
43049 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
43051         Revert parts of r219199.
43052         * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
43053         <inttypes.h>.
43054         ([-Wtraditional]): Restore markup on <limits.h>.
43056 2015-01-05  Trevor Saunders  <tsaunders@mozilla.com>
43058         PR c++/31397
43059         * doc/invoke.texi: Document -Wsuggest-override.
43061 2015-01-05  Radovan Obradovic  <radovan.obradovic@imgtec.com>
43063         PR rtl-optimization/64287
43064         * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
43065         (process_options): Disable flag_ipa_ra if profiling.
43067 2015-01-05  Eric Botcazou  <ebotcazou@adacore.com>
43069         * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
43071 2015-01-05  Max Filippov  <jcmvbkbc@gmail.com>
43073         * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
43074         hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
43075         put under #if TARGET_LOOPS guard.
43077 2015-01-05  Uros Bizjak  <ubizjak@gmail.com>
43079         * config/i386/i386.c (output_387_binary_op): Use std::swap.
43081 2015-01-05  Oleg Endo  <olegendo@gcc.gnu.org>
43083         * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
43084         * rtl.h (refers_to_regno_p): Add overload.
43085         * cse.c: Use it.
43086         * bt-load.c: Likewise.
43087         * combine.c: Likewise.
43088         * df-scan.c: Likewise.
43089         * sched-deps.c: Likewise.
43090         * config/s390/s390.c: Likewise.
43091         * config/m32r/m32r.c: Likewise.
43092         * config/rs6000/spe.md: Likewise.
43093         * config/rs6000/rs6000.c: Likewise.
43094         * config/pa/pa.c: Likewise.
43095         * config/stormy16/stormy16.c: Likewise.
43096         * config/cris/cris.c: Likewise.
43097         * config/arc/arc.md: Likewise.
43098         * config/arc/arc.c: Likewise.
43099         * config/sh/sh.md: Likewise.
43100         * config/sh/sh.c: Likewise.
43101         * config/frv/frv.c: Likewise.
43103 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
43105         PR sanitizer/64265
43106         * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
43107         call as cleanup of the whole body.
43108         * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
43109         * tsan.c (replace_func_exit): New function.
43110         (instrument_func_exit): Moved earlier.
43111         (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
43112         Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
43113         been found.
43114         (tsan_pass): Don't call instrument_func_exit.
43115         * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
43116         * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
43117         inlining.
43119         PR sanitizer/64344
43120         * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
43121         * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
43122         it to libubsan handler instead of EXPR.  Fold comparisons earlier,
43123         if the result is integer_zerop, return NULL_TREE.
43124         * convert.c (convert_to_integer): Pass expr as ARG.
43126         PR tree-optimization/64465
43127         * tree-inline.c (redirect_all_calls): During inlining
43128         clean up EH stmts and EH edges if redirect_call_stmt_to_callee
43129         changed the stmt to a non-throwing call.
43131 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
43133         * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
43134         etc markup throughout the file.
43136 2015-01-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
43138         Enable experimental TSAN support for Ada.
43139         * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
43141 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
43143         PR tree-optimization/64494
43144         * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
43145         clear SSA_NAME_ANTI_RANGE_P flag.
43147 2015-01-05  Marek Polacek  <polacek@redhat.com>
43149         * doc/extend.texi (Arrays of Length Zero): Add missing comma.
43151 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
43153         Update copyright years.
43155         * gcc.c (process_command): Update copyright notice dates.
43156         * gcov-dump.c: Ditto.
43157         * gcov.c: Ditto.
43158         * doc/cpp.texi: Bump @copying's copyright year.
43159         * doc/cppinternals.texi: Ditto.
43160         * doc/gcc.texi: Ditto.
43161         * doc/gccint.texi: Ditto.
43162         * doc/gcov.texi: Ditto.
43163         * doc/install.texi: Ditto.
43164         * doc/invoke.texi: Ditto.
43166         * auto-profile.c, auto-profile.h: Fix up Copyright line.
43168 2015-01-04  Sandra Loosemore  <sandra@codesourcery.com>
43170         * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
43171         verb tense, etc.
43172         ([-fvtable-verify], [-fvtv-debug]): Likewise.
43173         ([-Wabi]): Likewise.
43174         ([-fmessage-length]): Likewise.
43175         ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
43176         ([-Wno-discarded-qualifiers]): Likewise.
43177         ([-Wnodiscarded-array-qualifiers]): Likewise.
43178         ([-Wno-virtual-move-assign]): Likewise.
43179         ([-fsanitize=address], [-fsanitize=thread]): Likewise.
43180         ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
43181         ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
43182         ([-fsanitize-undefined-trap-on-error]): Likewise.
43183         ([-floop-interchange]): Likewise.
43184         ([-ftree-coalesce-inlined-vars]): Likewise.
43185         ([-fvect-cost-model]): Likewise.
43186         ([-flto]): Likewise.
43187         ([--param]): Likewise.
43188         (Spec Files): Likewise.
43189         ([-mstrict-align]): Likewise.
43190         ([-mfix-cortex-a53-835769]): Likewise.
43191         ([-march], [-mtune]): Likewise.
43192         ([-mpic-register]): Likewise.
43193         ([-munaligned-access]): Likewise.
43194         ([-msp8]): Likewise.
43195         (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
43196         (AVR Built-in Macros): Likewise.
43197         ([-mpreferred-stack-boundary]): Likewise.
43198         ([-mtune-crtl]): Likewise.
43199         ([-mashf]): Likewise.
43200         ([-mmcu=]): Likewise.
43201         ([-minrt]): Likewise.
43202         ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
43203         ([-mupper-regs]): Likewise.
43204         ([-matomic-model]): Likewise.
43205         ([-mdiv]): Likewise.
43206         ([-mzdcbranch]): Likewise.
43207         ([-mdisable-callt]): Likewise.
43208         ([-msoft-float]): Likewise.
43209         ([-m8byte-align]): Likewise.
43210         ([-fstack-reuse]): Likewise.
43212 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
43214         * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
43215         Fix markup, light copy-editing.
43216         ([-fauto-profile]): Rewrite to fix formatting and content
43217         problems.
43219 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
43221         * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
43222         Copy-edit description.
43223         ([-fisolate-erroneous-paths-attribute]): Likewise.
43224         * common.opt (fisolate-erroneous-paths-dereference):
43225         Copy-edit description.
43226         (fisolate-erroneous-paths-attribute): Likewise.
43228 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
43230         * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
43231         tidy grammar.
43233 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
43235         * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
43236         ([-fvtv-debug]): Likewise.
43237         ([-Wc++-compat]): Likewise.
43238         ([-Wc++11-compat]): Likewise.
43239         ([-Wc++14-compat]): Likewise.
43240         ([-Wno-sized-deallocation]): Likewise.
43241         ([-femit-class-debug-always]): Likewise.
43242         ([-femit-struct-debug-detailed]): Likewise.
43243         ([-fno-keep-inline-dllexport]): Likewise.
43244         ([-fira-algorithm]): Likewise.
43245         ([-fira-region]): Likewise.
43246         ([-flra-remat]): Likewise.
43247         ([-fipa-ra]): Likewise.
43248         ([-fhoist-adjacent-loads]): Likewise.
43249         ([-fisolate-erroneous-paths-dereference]): Likewise.
43250         ([-fisolate-erroneous-paths-attribute]): Likewise.
43251         ([-ftree-switch-conversion]): Likewise.
43252         ([-ftree-tail-merge]): Likewise.
43253         ([-ftree-loop-if-convert]): Likewise.
43254         ([-ftree-loop-if-convert-stores]): Likewise.
43255         ([-ftree-loop-distribution]): Likewise.
43256         ([-ftree-loop-distribute-patterns]): Likewise.
43257         ([-flto-compression-level]): Likewise.
43258         ([-flto-report]): Likewise.
43259         ([-flto-report-wpa]): Likewise.
43260         ([-fuse-linker-plugin]): Likewise.
43261         ([-mfix-cortex-a53-835769]): Likewise.
43262         ([-mno-fix-cortex-a53-835769]): Likewise.
43263         ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
43264         explicit listing; add a note to the discussion indicating they
43265         exist.  Reorder table to group similar options.  Add missing
43266         @opindex entries.  Add @need commands throughout the table to
43267         allow it to be split across multiple pages.
43268         ([-m8bit-idiv]): Fix @opindex.
43269         ([-mavx256-split-unaligned-load]): Likewise.
43270         ([-mavx256-split-unaligned-store]): Likewise.
43271         ([-mstack-protector-guard]): Likewise.
43272         ([-mcpu=]): Likewise.
43273         ([-mcpu]): Likewise.
43274         ([-mpointer-size=]): Likewise.
43276 2015-01-03  John David Anglin  <danglin@gcc.gnu.org>
43278         * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
43279         instead of `m' constraint.  Likewise for unnamed movb comparison
43280         patterns using reg_before_reload_operand predicate.
43281         * config/pa/predicates.md (reg_before_reload_operand): Tighten
43282         predicate to reject register index and LO_SUM DLT memory forms
43283         after reload.
43285 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
43287         * doc/invoke.texi (Option Summary): Fix spelling of
43288         -fdevirtualize-at-ltrans.
43289         ([-fdevirtualize]): Fix markup.
43290         ([-fdevirtualize-speculatively]): Fix typo.
43291         ([-fdevirtualize-at-ltrans]): Likewise.  Make description less
43292         implementor-speaky.
43293         * common.opt (fdevirtualize-at-ltrans): Likewise.
43294         * ipa-devirt.c: Fix typos in comments throughout the file.
43295         (ipa_devirt): Fix typos in format strings for dump output.
43297 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
43299         * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
43300         discussion of defaults, light copy-editing.
43302 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
43304         * tsan.c (instrument_expr): corrected previous checkin.
43306 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
43308         Instrument bit field and unaligned accesses for TSAN.
43309         * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
43310         (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
43311         * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
43312         Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
43313         unaligned memory regions.
43315 2015-01-01  Anthony Green  <green@moxielogic.com>
43317         * config/moxie/predicates.md (moxie_general_movsrc_operand):
43318         Restrict move source register offsets to 16 bits.
43320 Copyright (C) 2015 Free Software Foundation, Inc.
43322 Copying and distribution of this file, with or without modification,
43323 are permitted in any medium without royalty provided the copyright
43324 notice and this notice are preserved.