2015-12-14 Steve Ellcey <sellcey@imgtec.com>
[official-gcc.git] / gcc / ChangeLog
blobc90899e4c0d31fa4aee9e4f2314f1276978dac88
1 2015-12-14  Steve Ellcey  <sellcey@imgtec.com>
3         * config/mips/mips.c (mips_promote_function_mode): New function.
4         (TARGET_PROMOTE_FUNCTION_MODE): Define as above function.
5         (TARGET_PROMOTE_PROTOTYPES): Remove.
7 2015-12-14  Jason Merrill  <jason@redhat.com>
9         PR c++/68309
10         * hash-table.h: Add copy constructor.
11         * hash-map.h: Add copy constructor.
13 2015-12-14  Tom de Vries  <tom@codesourcery.com>
15         PR other/68882
16         * gimple-pretty-print.c (dump_ssaname_info_to_file): New function.
17         * gimple-pretty-print.h (dump_ssaname_info_to_file): Declare.
18         * tree-cfg.c (dump_default_def): New function.
19         (dump_function_to_file): Dump default defs for arguments, static chain,
20         and decl-by-reference.
22 2015-12-14  Nathan Sidwell  <nathan@acm.org>
24         * config/nvptx/nvptx.h (PARM_BOUNDARY): Set to 32.
25         * config/nvptx/nvptx.c (PASS_IN_REG_P, RETURN_IN_REG_P): Delete.
26         (pass_in_memory, promote_arg, promote_return): New.
27         (nvptx_function_arg_boundary): Delete.
28         (nvptx_function_value): Use promote_return.
29         (nvptx_pass_by_reference): Use pass_in_memory.
30         (nvptx_return_in_memory): Use pass_in_memory.
31         (nvptx_promote_function_mode): Use promote_arg.
32         (write_arg): Adjust arg splitting logic.
33         (write_return): Check and clear ret_reg_mode, if needed.
34         (write_fn_proto, nvptx_declare_function_name): Adust write_return
35         calls.
36         (TARGET_RUNCTION_ARG_BOUNDARY,
37         TARGET_FUNCTION_ARG_ROUND_BOUNDARY): Don't override.
39 2015-12-14  Jakub Jelinek  <jakub@redhat.com>
41         PR c/68833
42         * common.opt (Wmissing-noreturn): Add Warning option.
43         * opts-common.c (control_warning_option): If opt is
44         alias_target with alias_arg, set arg to it.
46 2015-12-14  Segher Boessenkool  <segher@kernel.crashing.org>
48         PR target/68865
49         PR target/68879
50         * config/rs6000/rs6000.md (cstore_si_as_di): Force all operands
51         into registers.
53 2015-12-14  Richard Biener  <rguenther@suse.de>
55         Revert accidentially applied
56         PR tree-optimization/68707
57         PR tree-optimization/67323
58         * tree-vect-slp.c (vect_analyze_slp_instance): Drop SLP instances
59         if they can be vectorized using load/store-lane instructions.
61 2015-12-14  Richard Biener  <rguenther@suse.de>
63         PR tree-optimization/68852
64         * tree-vectorizer.h (struct _slp_tree): Add def_type member.
65         (SLP_TREE_DEF_TYPE): New accessor.
66         * tree-vect-stmts.c (vect_is_simple_use): Remove BB vectorization
67         hack.
68         * tree-vect-slp.c (vect_create_new_slp_node): Initialize
69         SLP_TREE_DEF_TYPE.
70         (vect_build_slp_tree): When a node is to be built up from scalars
71         do not push a NULL as child but instead set its def_type to
72         vect_external_def.
73         (vect_analyze_slp_cost_1): Check for child def-type instead
74         of NULL.
75         (vect_detect_hybrid_slp_stmts): Likewise.
76         (vect_bb_slp_scalar_cost): Likewise.
77         (vect_get_slp_defs): Likewise.
78         (vect_slp_analyze_node_operations): Likewise.  Before
79         processing node push the children def-types to the underlying
80         stmts vinfo and restore it afterwards.
81         (vect_schedule_slp_instance): Likewise.
82         (vect_slp_analyze_bb_1): Do not mark stmts not in SLP instances
83         as not vectorizable.
85 2015-12-14  Richard Biener  <rguenther@suse.de>
87         PR tree-optimization/68775
88         * tree-vect-slp.c (vect_build_slp_tree): Make sure to apply
89         a operand swapping even if replacing the op with scalars.
91 2015-12-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
93         * combine.c (change_zero_ext): Do not create a shift of zero length.
95 2015-12-14  Claudiu Zissulescu  <claziss@synopsys.com>
97         * config/arc/arc.c (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P):
98         Provide target hook.
99         (arc_no_speculation_in_delay_slots_p): New function.
101 2015-12-14  Claudiu Zissulescu  <claziss@synopsys.com>
102             Andrew Burgess  <andrew.burgess@embecosm.com>
104         * config/arc/arc.c (frame_move): Set frame related flag.
105         (arc_save_restore): Emit epilogue related DWARF2 information.
106         (arc_expand_epilogue): Likewise.
107         * config/arc/arc.opt (mno-epilogue-cfi): Remove.
108         (mepilogue-cfi): Likewise.
109         * doc/invoke.texi: Remove -m[no]-epilogue-cfi documentation.
111 2015-12-14  Martin Jambor  <mjambor@suse.cz>
113         PR ipa/66616
114         * ipa-cp.c (propagate_constants_accross_call): Move thuk check...
115         (call_passes_through_thunk_p): ...here.
116         (find_more_scalar_values_for_callers_subset): Perform thunk checks
117         like propagate_constants_accross_call does.
119 2015-12-14  Jakub Jelinek  <jakub@redhat.com>
121         PR rtl-optimization/68730
122         * cfgrtl.c (cfg_layout_finalize): Free dominators.
124 2015-12-13  Alexandre Oliva <aoliva@redhat.com>
126         PR debug/67355
127         * var-tracking.c (reverse_op): Don't add dummy zero to reverse
128         ops that simplify back to the original value.
129         * alias.c (refs_newer_value_p): Cut off recursion for
130         expressions containing the original value.
132 2015-12-13  Kazu Kirata  <kazu@gcc.gnu.org>
134         * config/m68k/m68k.md (load feeding clear byte): New peephole2.
136 2015-12-13  Tom de Vries  <tom@codesourcery.com>
138         * tree-ssa-structalias.c (find_func_clobbers): Handle sizes and kinds
139         parameters of GOACC_paralllel.
141 2015-12-10  Jan Hubicka  <hubicka@ucw.cz>
143         * cgraph.c (cgraph_node::get_untransformed_body): Pass compressed
144         flag to lto_get_section_data.
145         * varpool.c (varpool_node::get_constructor): Likewise.
146         * lto-section-in.c (lto_get_section_data): Add new flag decompress.
147         (lto_free_section_data): Likewise.
148         (lto_get_raw_section_data): New function.
149         (lto_free_raw_section_data): New function.
150         (copy_function_or_variable): Copy sections w/o decompressing.
151         (lto_output_decl_state_refs): Picke compressed bit.
152         * lto-streamer.h (lto_in_decl_state): New flag compressed.
153         (lto_out_decl_state): Likewise.
154         (lto_get_section_data, lto_free_section_data): Update prototypes
155         (lto_get_raw_section_data, lto_free_raw_section_data): Declare.
156         (lto_write_raw_data): Declare.
157         (lto_begin_section): Remove FIXME.
158         (lto_write_raw_data): New function.
159         (lto_write_stream): Remove FIXME.
160         (lto_new_out_decl_state): Set compressed flag.
162 2015-12-10  Jan Hubicka  <hubicka@ucw.cz>
164         * tree.c (free_lang_data_in_type, find_decls_types_r): Also free
165         unnecesary type decls.
166         * tree.h (is_redundant_typedef): Declare.
167         * dwarf2out.c (is_redundant_typedef): Export; booleanize
169 2015-12-12  Eric Botcazou  <ebotcazou@adacore.com>
171         * config/sparc/sparc.h (TARGET_SUPPORTS_WIDE_INT): Define to 1.
172         * config/sparc/sparc.c (sparc_emit_set_const64): Remove code
173         conditionalized on HOST_BITS_PER_WIDE_INT == 32.
174         (sparc_cannot_force_const_mem) <CONST_WIDE_INT>: New case.
175         <CONST_DOUBLE>: Remove VOIDmode test.
176         (epilogue_renumber) <CONST_WIDE_INT>: New case.
177         (sparc_print_operand): Remove support for CONST_DOUBLE with VOIDmode.
178         (sparc_assemble_integer): Likewise.
179         (set_extends): Likewise.
180         (sparc_rtx_costs) <CONST_INT>: Use SMALL_INT.
181         <CONST_WIDE_INT>: New case.
182         <CONST_DOUBLE>: Remove support for VOIDmode.
183         <MULT>: Remove support for CONST_DOUBLE with VOIDmode.
184         * config/sparc/predicates.md (const_zero_operand): Add const_wide_int.
185         (const_all_ones_operand): Likewise.
186         (uns_small_int_operand): Remove const_double and code conditionalized
187         on HOST_BITS_PER_WIDE_INT == 32.
188         (arith_double_operand): Likewise.
189         (arith_double_add_operand): Likewise.
190         (input_operand): Remove support for CONST_DOUBLE with DImode.
191         * config/sparc/sparc.md (DImode CONST_INT splitter): Remove code
192         conditionalized on HOST_BITS_PER_WIDE_INT == 32.
193         (DFmode CONST_DOUBLE splitter): Likewise.
194         (*adddi3_insn_sp32): Likewise.
195         (*subdi3_insn_sp32): Likewise.
196         (DImode logical splitter): Likewise.
197         (DImode CONST_DOUBLE splitter): Delete.
199 2015-12-12  Paolo Bonzini  <bonzini@gnu.org>
201         PR sanitizer/68418
202         * c-family/c-ubsan.c (ubsan_instrument_shift): Disable
203         sanitization of left shifts for wrapping signed types as well.
205 2015-12-11  Eric Botcazou  <ebotcazou@adacore.com>
207         PR middle-end/68215
208         * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
209         Do not gimplify the result.
210         (do_unop): Adjust call to tree_vec_extract.
211         (do_binop): Likewise.
212         (do_compare): Likewise.
213         (do_plus_minus): Likewise.
214         (do_negate): Likewise.
215         (expand_vector_condition): Likewise.
216         (do_cond): Likewise.
218 2015-12-11  Nathan Sidwell  <nathan@acm.org>
220         * config/nvptx/nvptx.h (RETURN_ADDR_REGNO): Delete.
221         (OUTGOING_ARG_POINTER_REGNUM): Delete.
222         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
223         (REGISTER_NAMES): Name static chain regs.
224         * config/nvptx/nvptx.c (nvptx_function_arg): Add ARG_UNUSED, merge
225         ifs.
226         (nvptx_incoming_arg): Merge ifs.
227         (nvptx_function_arg_boundary): Reimplement to avoid mixing units.
228         (nvptx_function_value): Tail call nvptx_libcall_value.
229         (nvptx_pass_by_reference): Add ARG_UNUSED.
230         (nvptx_static_chain): Use conditional op.
231         (nvptx_handle_kernel_attribute): Use VOID_TYPE_P.
233 2015-12-11  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
234             Dominique d'Humieres  <dominiq@lps.ens.fr>
236         PR target/26427
237         PR target/33120
238         PR testsuite/35710
239         * config/darwin.c (darwin_use_anchors_for_symbol_p): Fix indention and
240         trailing whitespace.
242 2015-12-11  Jan Beulich  <jbeulich@suse.com>
244         * cfgexpand.c (expand_one_var): Exit early for static and
245         external variables when adjusting stack alignment related.
247 2015-12-11  Dominik Vogt  <vogt@linux.vnet.ibm.com>
249         * config/s390/s390.c (s390_rtx_costs)
250         (s390_cannot_force_const_mem, legitimate_pic_operand_p)
251         (s390_preferred_reload_class, s390_reload_symref_address)
252         (legitimate_reload_constant_p, print_operand): Wide int support.
253         * config/s390/predicates.md ("const0_operand", "constm1_operand")
254         ("consttable_operand"): Likewise.
255         ("larl_operand"): Add a comment.
256         * config/s390/s390.h (TARGET_SUPPORTS_WIDE_INT): Enable wide int
257         support.
259 2015-12-11  Nathan Sidwell  <nathan@acm.org>
261         * config/nvptx/nvptx.h (TARGET_SUPPORTS_WIDE_INT): Define.
262         * config/nvptx/nvptx.c (nvptxx_assemble_integer): Return false for
263         unrecognizable RTX.
265 2015-12-11  Tom de Vries  <tom@codesourcery.com>
267         * passes.def: Remove unpaired TERMINATE_PASS_LIST.
269 2015-12-11  Michael Matz  <matz@suse.de>
271         * hash-map.h (hash_map::hash_map): Gather statistics only
272         when GATHER_STATISTICS is true.
273         * hash-set.h (hash_set::hash_set): Ditto.
274         * hash-table.h (hash_table::hash_table): Ditto.
275         (hash_table::create_ggc): Ditto.
277 2015-12-11  Martin Jambor  <mjambor@suse.cz>
279         PR ipa/68064
280         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Add checking
281         assert that align is nonzero.
283 2015-12-11  Dominik Vogt  <vogt@linux.vnet.ibm.com>
285         * config/s390/s390.c (s390_expand_setmem): Use new expanders.
286         * config/s390/s390.md ("*setmem_long")
287         ("*setmem_long_and", "*setmem_long_31z"): Fix warnings.
288         ("*setmem_long_and_31z"): New define_insn.
289         ("setmem_long_<P:mode>"): New expanders.
290         * (<modesize>): New mode attribute
292 2015-12-11  Dominik Vogt  <vogt@linux.vnet.ibm.com>
294         * config/s390/s390.md ("movstr", "*movstr"): Fix warning.
295         ("movstr<P:mode>"): New indirect expanders used by "movstr".
297 2015-12-11  Martin Liska  <mliska@suse.cz>
298             Uros Bizjak  <ubizjak@gmail.com>
300         PR target/67484
301         * config/i386/i386.c (ix86_valid_target_attribute_tree):
302         Use ggc_strdup to copy option_strings to opts->x_ix86_arch_string and
303         opts->x_ix86_tune_string.
305 2015-12-11  Richard Biener  <rguenther@suse.de>
307         * lto-streamer.h (lto_simple_header_with_strings): Remove
308         main_size field already in lto_simple_header.
310 2015-12-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
312         * tree-vect-stmts.c (vectorizable_mask_load_store): Check
313         mask vectype.
315 2015-12-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
317         * config/i386/i386.c (ix86_get_mask_mode): Use scalar
318         modes for 32 and 16 byte boolean vectors when possible.
320 2015-12-11  Segher Boessenkool  <segher@kernel.crashing.org>
322         PR rtl-optimization/67778
323         PR rtl-optimization/68634
324         * shrink-wrap.c (try_shrink_wrapping): Add a comment about why we want
325         to put the prologue earlier.  When determining if an earlier block is
326         suitable, make sure it dominates every block reachable from it.
328 2015-12-11  Segher Boessenkool  <segher@kernel.crashing.org>
330         PR rtl-optimization/68814
331         * rtlanal.c (set_noop_p): Use BITS_BIG_ENDIAN instead of
332         BYTES_BIG_ENDIAN.
334 2015-12-10  Nathan Sidwell  <nathan@acm.org>
336         * config/nvptx/nvptx.c (nvptx_function_arg,
337         nvptx_function_incoming_arg, nvptx_function_arg_advance,
338         nvptx_strict_argument_naming, nvptx_function_arg_boundary,
339         nvptx_libcall_value, nvptx_function_value,
340         nvptx_function_value_regno_p, nvptx_pass_by_reference,
341         nvptx_return_in_memory, nvptx_promote_function_mode,
342         nvptx_static_chain): Move earlier.
343         (write_one_arg): Break out as helper fn for ...
344         (write_arg): ... this new function.  Adjust all callers.
346 2015-12-10  Jan Hubicka  <hubicka@ucw.cz>
348         * lto-streamer-out.c (wrap_refs): Only wrap public decls.
350 2015-12-10  Jan Hubicka  <hubicka@ucw.cz>
352         * ipa-cp.c (ipcp_cloning_candidate_p): Use node->optimize_for_size_p.
353         (good_cloning_opportunity_p): Likewise.
354         (gather_context_independent_values): Do not return true when
355         polymorphic call context is known or when we have known aggregate
356         value of unused parameter.
357         (estimate_local_effects): Try to create clone for all context
358         when either some params are substituted or devirtualization is possible
359         or some params can be removed; use local flag instead of
360         node->will_be_removed_from_program_if_no_direct_calls_p.
361         (identify_dead_nodes): Likewise.
363 2015-12-10  David Malcolm  <dmalcolm@redhat.com>
365         * doc/invoke.texi (-Wall): Add -Wmisleading-indentation to the
366         list.
367         (-Wmisleading-indentation): Update documentation to reflect
368         being enabled by -Wall in C/C++.
370 2015-12-10  Vladimir Makarov  <vmakarov@redhat.com>
372         PR rtl-optimization/68691
373         * lra-spills.c (lra_final_code_change): Check pseudo occurrence
374         number in non-debug insns and remove debug insns if necessary.
376 2015-12-10  Martin Sebor  <msebor@redhat.com>
378         * invoke.texi (Warning Options): Update -Wall options.  Clarify
379         when some -Wextra options are enabled.  Add -Wplacement-new example.
381 2015-12-10  Uros Bizjak  <ubizjak@gmail.com>
383         * graphite-scop-detection.c (gather_bbs::before_dom_children):
384         Change return type to an edge.  Always return NULL.
386 2015-12-10  Jeff Law  <law@redhat.com>
388         PR tree-optimization/68619
389         * tree-ssa-dom.c (dom_opt_dom_walker::before_dom_children): Propgate
390         return value from optimize_stmt.
391         (dom_opt_dom_walker): Add new argument to dom_walker constructor.
392         (pass_dominator:execute): If a block has an unreachable edge,
393         remove all jump threads through any successor of the affected block.
394         (record_equivalences_from_phis): Ignore alternative if the edge
395         does not have EDGE_EXECUTABLE set.
396         (single_incoming_edge_ignoring_loop_edges): Similarly.
397         (optimize_stmt): If a gimple_code has a compile-time constant
398         condition, return the edge taken for that constant value.  Also
399         change the condition to true/false as necessary.
400         * domwalk.h (dom_walker::dom_walker): Add new argument
401         skip_unreachable_blocks.  Don't provide empty constructor body.
402         (dom_walker::before_dom_children): Change return type.
403         (dom_walker::bb_reachable): Declare new private method.
404         (dom_walker::propagate_unreachable_to_edges): Likewise.
405         (dom_walker::m_unreachable_dom): Declare new private data member.
406         (dom_walker::m_skip_unreachable_blocks): Likewise.
407         * domwalk.c: Include dumpfile.h.
408         (dom_walker::dom_walker): New constructor.  Initialize private data
409         members.  If needed, set EDGE_EXECUTABLE for all edges in the CFG,
410         extracted from tree-ssa-sccvn.c.
411         (dom_walker::bb_reachable): New method extracted from tree-ssa-sccvn.c
412         (dom_walker::propagate_unreachable_to_edges): Likewise.
413         (dom_walker::walk): Only call before_dom_children on reachable
414         blocks.  If before_dom_children returns an edge, then clear
415         EDGE_EXECUTABLE for all other outgoing edges from the same block.
416         For unreachable blocks, call propagate_unreachable_to_edges.
417         Similarly, only call after_dom_children on reachable blocks.  For
418         unreachable blocks, conditionally clear m_unreachable_dom.
419         * tree-ssa-sccvn.c (sccvn_dom_walker::unreachable_dom): Remove
420         private data member.
421         (sccvn_dom_walker::after_dom_children): Use methods from dom_walker
422         class.
423         (run_scc_vn): Likewise.
424         (sccvn_dom_walker::before_dom_children): Likewise.  Return the taken
425         outgoing edge if a COND, SWITCH, or GOTO are optimized.
426         * compare-elim.c (find_comparison_dom_walker::before_dom_children):
427         Change return type to an edge.  Always return NULL.
428         * fwprop.c (single_def_use_dom_walker::before_dom_children): Likewise.
429         * gimple-ssa-strength-reduction.c
430         (find_candidates_dom_walker::before_dom_children): Likewise.
431         * ipa-prop.c (analysis_dom_walker::before_dom_children): Likewise.
432         (ipcp_modif_dom_walker::before_dom_children): Likewise.
433         * tree-into-ssa.c (rewrite_dom_walker::before_dom_children): Likewise.
434         (rewrite_update_dom_walker::before_dom_children): Likewise.
435         (mark_def_dom_children::before_dom_children): Likewise.
436         * tree-ssa-dse.c (dse_dom_walker::before_dom_children): Likewise.
437         * tree-ssa-loop-im.c
438         (invariantness_dom_walker::before_dom_children): Likewise.
439         (move_computations_dom_walker::before_dom_walker): Likewise.
440         * tree-ssa-phiopt.c
441         (nontrapping_dom_walker::before_dom_children): Likewise.
442         * tree-ssa-pre.c
443         (eliminate_dom_walker::before_dom_children): Likewise.
444         * tree-ssa-propagate.c
445         (substitute_and_fold_dom_walker::before_dom_children): Likewise.
446         * tree-ssa-strlen.c
447         (strlen_dom_walker::before_dom_children): Likewise.
448         * tree-ssa-uncprop.c
449         (uncprop_dom_walker::before_dom_children): Likewise.
451 2015-12-10  Jakub Jelinek  <jakub@redhat.com>
453         PR rtl-optimization/68376
454         PR rtl-optimization/68670
455         * ifcvt.c (noce_try_abs): For one_cmpl allow < 0, >= 0
456         or > -1 conditions regardless of negate, and disallow
457         all other conditions.
459 2015-12-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
461         * tree-chkp.c (chkp_call_returns_bounds_p): Return true
462         for VA_ARG call.
463         (chkp_fixup_inlined_call): New.
464         * tree-chkp.h (chkp_fixup_inlined_call): New.
465         * tree-stdarg.c: Include tree-chkp.h.
466         (expand_ifn_va_arg_1): Fixup bndret calls for removed
467         VA_ARG calls.
469 2015-12-10  Martin Jambor  <mjambor@suse.cz>
471         * tree-inline.c (duplicate_remap_omp_clause_seq): New function.
472         (replace_locals_op): Duplicate gimple sequences in OMP clauses.
474 2015-12-10  David Malcolm  <dmalcolm@redhat.com>
476         * graphite-optimize-isl.c (scop_get_domains): Fix indentation.
478 2015-12-10  David Malcolm  <dmalcolm@redhat.com>
480         * ifcvt.c (noce_try_inverse_constants): Fix indentation.
482 2015-12-10  David Malcolm  <dmalcolm@redhat.com>
484         * regrename.c (scan_rtx_address): Fix indentation.
486 2015-12-10  David Malcolm  <dmalcolm@redhat.com>
488         * function.c (locate_and_pad_parm): Fix indentation.
490 2015-12-10  Richard Biener  <rguenther@suse.de>
492         * tree-ssa-structalias.c (struct variable_info): Add
493         is_ipa_escape_point flag.
494         (new_var_info): Initialize to false.
495         (find_func_aliases): Generate escape constraints for stores
496         properly in IPA mode.
497         (ipa_pta_execute): Compute is_ipa_escape_point for globals.
499 2015-12-10  Claudiu Zissulescu  <claziss@synopsys.com>
501         * config/arc/atomic.md: Add new file.
503 2015-12-10  Claudiu Zissulescu  <claziss@synopsys.com>
505         * config/arc/arc-protos.h (arc_expand_atomic_op): Prototype.
506         (arc_split_compare_and_swap): Likewise.
507         (arc_expand_compare_and_swap): Likewise.
508         * config/arc/arc.c (arc_init): Check usage atomic option.
509         (arc_pre_atomic_barrier): New function.
510         (arc_post_atomic_barrier): Likewise.
511         (emit_unlikely_jump): Likewise.
512         (arc_expand_compare_and_swap_qh): Likewise.
513         (arc_expand_compare_and_swap): Likewise.
514         (arc_split_compare_and_swap): Likewise.
515         (arc_expand_atomic_op): Likewise.
516         * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): New C macro.
517         (ASM_SPEC): Enable mlock option when matomic is used.
518         * config/arc/arc.md (UNSPEC_ARC_MEMBAR): Define.
519         (VUNSPEC_ARC_CAS): Likewise.
520         (VUNSPEC_ARC_LL): Likewise.
521         (VUNSPEC_ARC_SC): Likewise.
522         (VUNSPEC_ARC_EX): Likewise.
523         * config/arc/arc.opt (matomic): New option.
524         * config/arc/constraints.md (ATO): New constraint.
525         * config/arc/predicates.md (mem_noofs_operand): New predicate.
526         * doc/invoke.texi: Document -matomic.
527         * config/arc/atomic.md: New file.
529 2015-12-10  Richard Biener  <rguenther@suse.de>
531         PR tree-optimization/68817
532         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Detect
533         gaps early.
535 2015-12-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
537         * tree-vect-stmts.c (vectorizable_assignment): Support
538         useless boolean conversion.
540 2015-12-10  Alan Lawrence  <alan.lawrence@arm.com>
542         * doc/install.texi: Add note against GNAT 4.8 on ARM targets.
544 2015-12-10  Jakub Jelinek  <jakub@redhat.com>
546         PR tree-optimization/68785
547         * gimple-fold.c (fold_ctor_reference): Pass return value from
548         native_encode_expr to native_interpret_expr.
549         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Likewise.
551 2015-12-10  Richard Biener  <rguenther@suse.de>
553         PR ipa/68331
554         * tree-ssa-structalias.c (set_uids_in_ptset): Add fndecl
555         parameter and make vars_contains_nonlocal properly have
556         function-scope semantics in IPA mode.
557         (find_what_var_points_to): Add fndecl parameter.
558         (find_what_p_points_to): Likewise.
559         (pt_solution_includes_global): Remove IPA PTA early out.
560         (compute_points_to_sets): Adjust.
561         (ipa_pta_execute): Likewise.  Clear final_solutions after
562         each function.
564 2015-12-10  Tom de Vries  <tom@codesourcery.com>
566         PR ada/65102
567         * doc/include/fdl.texi: Add nodefaultgnufreedocumentationlicensenode
568         ifdef to allow disabling default @node GNU Free Documentation License.
570 2015-12-10  Richard Biener  <rguenther@suse.de>
572         * tree-ssa-structalias.c (create_function_info_for): Add missing
573         constraint from nonlocal for DECL_RESULT.
575 2015-12-10  Richard Biener  <rguenther@suse.de>
577         * tree-if-conv.c: Include params.h.
578         (ifcvt_memrefs_wont_trap): Use PARAM_ALLOW_STORE_DATA_RACES
579         instead of flag_tree_loop_if_convert_stores to guard cases
580         we'd introduce store-data-races.
582 2015-12-10  Richard Biener  <rguenther@suse.de>
584         PR ipa/68721
585         * ipa-split.c (split_function): Record return value properly
586         when the split part doesn't set it.
588 2015-12-10  Richard Biener  <rguenther@suse.de>
590         PR tree-optimization/68806
591         * tree-vect-loop.c (vect_analyze_loop_2): Properly detect
592         reduction chains and ignore SLP reductions.
594 2015-12-10  Richard Biener  <rguenther@suse.de>
596         * tree-if-conv.c (if_convertible_loop_p_1): Do not compute
597         dependences.
598         (if_convertible_loop_p): Adjust.
600 2015-12-10  Tom de Vries  <tom@codesourcery.com>
602         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Remove
603         invalid assert.
605 2015-12-10  Martin Liska  <mliska@suse.cz>
607         * tree-vect-data-refs.c: Free an overwritten dataref.
609 2015-12-09  John David Anglin  <danglin@gcc.gnu.org>
611         PR target/68729
612         * config/pa/pa.c (pa_emit_move_sequence): Don't check that mode is
613         consistent with modes of the input and output operands when doing
614         reloads to and from floating point registers.  Do reload for all
615         address forms.
617 2015-12-08  Jan Hubicka  <hubicka@ucw.cz>
619         PR ipa/61886
620         PR middle-end/25140
621         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Use compare_base_decls
622         (nonoverlapping_component_refs_of_decl_p): Update sanity check.
623         (decl_refs_may_alias_p): Use compare_base_decls.
624         * alias.c: Include cgraph.h
625         (get_alias_set): Add cut-off for recursion.
626         (rtx_equal_for_memref_p): Use rtx_equal_for_memref_p.
627         (compare_base_decls): New function.
628         (base_alias_check): Likewise.
629         (memrefs_conflict_p): Likewise.
630         (nonoverlapping_memrefs_p): Likewise.
631         * alias.h (compare_base_decls): Declare.
633 2015-12-08  Jan Hubicka  <hubicka@ucw.cz>
635         PR ipa/61886
636         * ipa-visibility.c (function_and_variable_visibility): Fix vtable
637         rewritting guard.
639 2015-12-08  Jan Hubicka  <hubicka@ucw.cz>
641         PR ipa/61886
642         PR middle-end/25140
643         * ipa-reference.c (ipa_reference_get_not_read_global,
644         ipa_reference_get_not_read_global): Fix WRT aliases.
645         (is_improper): Break out from ...
646         (is_proper_for_analysis): ... here; fix WRT aliases.
647         (analyze_function, generate_summary,
648         ipa_reference_write_optimization_summary,
649         ipa_reference_read_optimization_summary): Use ipa_reference_var_uid.
650         * ipa-refrence.h (ipa_reference_var_uid): New inline.
651         * tree-ssa-alias.c: Revert my accidental previous commit.
652         (ref_maybe_used_by_call_p_1,
653         call_may_clobber_ref_p_1): Use ipa_reference_var_uid.
655 2015-12-09  Andreas Tobler  <andreast@gcc.gnu.org>
657         * config/rs6000/freebsd64.h: Remove the redefinition of WCHAR_TYPE.
659 2015-12-09  Aditya Kumar  <aditya.k7@samsung.com>
660             Sebastian Pop  <s.pop@samsung.com>
662         * graphite-optimize-isl.c: Include isl/ast_build.h
663         (optimize_isl): Set several isl_options_set_* options.
665 2015-12-09  Aditya Kumar  <aditya.k7@samsung.com>
666             Sebastian Pop  <s.pop@samsung.com>
668         * graphite-sese-to-poly.c (pdr_add_memory_accesses): Iterate in
669         the same order as adding data reference access functions.
671 2015-12-09  Aditya Kumar  <aditya.k7@samsung.com>
672             Sebastian Pop  <s.pop@samsung.com>
674         * graphite-optimize-isl.c (optimize_isl): Improve dump message.
676 2015-12-09  Marek Polacek  <polacek@redhat.com>
678         PR tree-optimization/66949
679         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Don't call
680         single_non_singleton_phi_for_edges to get the PHI from
681         factor_out_conditional_conversion.  Use NULL_TREE instead of NULL.
682         (factor_out_conditional_conversion): Adjust declaration.  Make it
683         return the newly-created PHI.
685 2015-12-09  James Greenhalgh  <james.greenhalgh@arm.com>
687         * config/aarch64/aarch64-protos.h
688         (aarch64_cannot_change_mode_class): Bring back.
689         * config/aarch64/aarch64.c
690         (aarch64_cannot_change_mode_class): Likewise.
691         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Likewise.
692         * config/aarch64/aarch64.md (aarch64_movdi_<mode>low): Use
693         zero_extract rather than truncate.
694         (aarch64_movdi_<mode>high): Likewise.
696 2015-12-09  Jakub Jelinek  <jakub@redhat.com>
698         PR tree-optimization/68786
699         * tree-if-conv.c: Include builtins.h.
700         (predicate_mem_writes): Put result of get_object_alignment (ref)
701         into second argument's value.
702         * tree-vect-stmts.c (vectorizable_mask_load_store): Put minimum
703         pointer alignment into second argument's value.
704         * tree-data-ref.c (get_references_in_stmt): Use value of second
705         argument for build_aligned_type, and only the type to build
706         a zero second argument for MEM_REF.
707         * internal-fn.c (expand_mask_load_optab_fn,
708         expand_mask_store_optab_fn): Likewise.
710 2015-12-09  Richard Biener  <rguenther@suse.de>
712         PR tree-optimization/68583
713         * tree-if-conv.c (if_convertible_phi_p): Drop
714         flag_tree_loop_if_convert_stores check in favor of the
715         existing any_mask_load_store check.
716         (insert_gimplified_predicates): Likewise.
717         (combine_blocks): Likewise.
718         (tree_if_conversion): Likewise.
719         (ifcvt_memrefs_wont_trap): Properly check
720         flag_tree_loop_if_convert_stores in all places that can end
721         up introducing store-data-races.
722         (if_convertible_gimple_assign_stmt_p): Remove restriction
723         on flag_tree_loop_if_convert_stores for stores we can if-convert
724         without introducing store-data-races.  Force versioning for
725         all if-converted stores.
727 2015-12-09  Tom de Vries  <tom@codesourcery.com>
729         PR tree-optimization/68716
730         * tree-ssa-structalias.c (find_func_clobbers): Fix handling of
731         BUILT_IN_GOMP_PARALLEL and BUILT_IN_GOACC_PARALLEL.
733 2015-12-09  Martin Liska  <mliska@suse.cz>
735         * hash-traits.h (struct typed_delete_remove): New function.
736         (typed_delete_remove ::remove): Likewise.
737         * tree-ssa-loop-ivopts.c (struct iv_common_cand): Replace
738         auto_vec with vec.
739         (record_common_cand): Replace XNEW with operator new.
741 2015-12-09  Martin Liska  <mliska@suse.cz>
743         * tree-if-conv.c (ifcvt_local_dce): Replace vec with auto_vec.
745 2015-12-09  Martin Liska  <mliska@suse.cz>
747         PR ipa/68790
748         * ipa-icf.c (sem_function::param_used_p): Return true
749         if ipa_node_params_sum equals to NULL.
751 2015-12-09  Richard Biener  <rguenther@suse.de>
753         PR tree-optimization/68583
754         * tree-if-conv.c (ifc_dr): Make flags bool, add w_unconditionally
755         flag and rename predicates to w_predicate, rw_predicate and
756         base_w_predicate.
757         (DR_WRITTEN_AT_LEAST_ONCE): Rename to ...
758         (DR_BASE_W_UNCONDITIONALLY): ... this.
759         (DR_W_UNCONDITIONALLY): Add.
760         (hash_memrefs_baserefs_and_store_DRs_read): Adjust.  Compute
761         unconditionally written separately from read or written.
762         (ifcvt_memrefs_wont_trap): Properly treat reads.
763         (ifcvt_could_trap_p): Inline ...
764         (if_convertible_gimple_assign_stmt_p): ... here.  Refactor
765         to avoid code duplication.
766         (if_convertible_loop_p_1): Adjust and properly initialize
767         predicates.
769 2015-12-09  Richard Biener  <rguenther@suse.de>
771         * tree-vect-stmts.c (vectorizable_load): Set new vinfo only
772         if it was not yet set.
773         * tree-vectorizer.h (set_vinfo_for_stmt): Assert we don't
774         overwrite an existing entry.
776 2015-12-09  Chung-Lin Tang  <cltang@codesourcery.com>
778         * c-family/c-omp.c (c_finish_oacc_wait): Remove add_stmt() call.
779         * c/c-parser.c (c_parser_oacc_wait): Add add_stmt() call.
780         * cp/parser.c (cp_parser_oacc_wait): Add finish_expr_stmt() call.
782 2015-12-08  Jan Hubicka  <hubicka@ucw.cz>
784         PR ipa/61886
785         * symtab.c (symtab_node::equal_address_to): New parameter
786         MEMORY_ACCESSED.
787         * cgraph.h (symtab_node::equal_address_to): Update prototype.
789 2015-12-08  DJ Delorie  <dj@redhat.com>
791         * config/rx/rx.opt (-mjsr): Add.
792         * config/rx/predicates.md (rx_call_operand): Avoid overflowing
793         calls when -mjsr.
794         * config/rx/rx.c (rx_function_ok_for_sibcall): Likewise for
795         overflowing jumps.
796         * doc/invoke.texi (-mjsr): Document it.
798 2015-12-08  Jan Hubicka  <hubicka@ucw.cz>
800         PR ipa/61886
801         * lto-streamer.h (lto_symtab_merge_decls, lto_symtab_merge_symbols,
802         lto_symtab_prevailing_decl): MOve to lto-symtab.h.
803         * lto-streamer-out.c (DFS::DFS_write_tree_body): Check that
804         DECL_ABSTRACT_ORIGIN is not error_mark_node.
806 2015-12-08  David Malcolm  <dmalcolm@redhat.com>
808         * tree-nested.c (convert_tramp_reference_stmt): Fix indentation.
810 2015-12-08  David Malcolm  <dmalcolm@redhat.com>
812         * tree-ssa-loop-unswitch.c (tree_unswitch_outer_loop): Fix
813         indentation.
815 2015-12-08  Jan Hubicka  <hubicka@ucw.cz>
817         PR ipa/61886
818         * lto-cgraph.c (compute_ltrans_boundary): Add transparent alias targets
819         into the boundary.
821 2015-12-08  Jan Hubicka  <hubicka@ucw.cz>
823         PR ipa/61886
824         * varpool.c (varpool_node::get_availability): Recurse only on
825         weakrefs with definition in the target.
826         (symbol_table::remove_unreferenced_decls): Keep aliases in the boundary.
828 2015-12-08  Jan Hubicka  <hubicka@ucw.cz>
830         PR ipa/61886
831         * ipa-visibility.c (can_replace_by_local_alias): Look through
832         transparent aliases; refuse weakrefs.
833         (update_visibility_by_resolution_info): Skip transparent aliases in the
834         analysis part
836 2015-12-08  Jan Hubicka  <hubicka@ucw.cz>
838         PR ipa/61886
839         * symtab.c (symtab_node::verify_base): Fix thinko in a conditional.
840         (symtab_node::noninterposable_alias): Do not accept transparent
841         aliases.
843 2015-12-08  Nathan Sidwell  <nathan@acm.org>
845         * config/nvptx/nvptx.c (decl_chunk_size, decl_chunk_mode,
846         decl_offset, init_part, object_size, object_finished): Replace
847         with ...
848         (struct init_frag): ... this new struct variable.
849         (begin_decl_field, output_decl_chunk): Replace with ...
850         (output_init_frag): ... this new function.
851         (nvptx_assemble_value): Reimplement.
852         (nvptx_assemble_integer, nvptx_output_skip): Adjust.
853         (nvptx_assemble_decl_begin, nvptx_assemble_decl_end): Adjust.
854         (nvptx_output_aligned_decl): Call nvptx_assemble_decl_end.
856 2015-12-08  Eric Botcazou  <ebotcazou@adacore.com>
858         PR middle-end/68291
859         PR middle-end/68292
860         * cfgexpand.c (set_rtl): Always accept mode mismatch for SSA names
861         with BLKmode promoted mode based on RESULT_DECLs.
863 2015-12-08  Uros Bizjak  <ubizjak@gmail.com>
865         PR target/68701
866         * config/i386/i386.c (ix86_option_override_internal): Enable
867         -maccumulate-outgoing-args when %ebp is fixed due to stack
868         realignment requirements.
870 2015-12-08  Tom de Vries  <tom@codesourcery.com>
872         PR tree-optimization/68640
873         * omp-low.c (install_var_field): Clear the restrict qualifier on the var
874         type.
876 2015-12-08  Kirill Yukhin  <kirill.yukhin@intel.com>
878         * config/i386/sse.md (define_insn "<avx512>_vec_dup<mode>_1"): Fix
879         assembler to make source always 128bit.
881 2015-12-08  Jakub Jelinek  <jakub@redhat.com>
883         PR c/48088
884         PR c/68657
885         * common.opt (Wframe-larger-than=): Add Warning.
886         * opts.h (control_warning_option): Add ARG argument.
887         * opts-common.c (cmdline_handle_error): New function.
888         (read_cmdline_option): Use it.
889         (control_warning_option): Likewise.  Add ARG argument.
890         If non-NULL, decode it if needed and pass through
891         to handle_generated_option.  Handle CLVC_ENUM like
892         CLVC_BOOLEAN.
893         * opts.c (common_handle_option): Adjust control_warning_option
894         caller.
895         (enable_warning_as_error): Likewise.
897 2015-12-08  Matthew Wahab  <matthew.wahab@arm.com>
899         * config/aarch64/aarch64-options-extensions.def: Remove
900         AARCH64_FL_RDMA from "fp" and "simd".  Remove "pan", "lor",
901         "rdma".
902         * config/aarch64/aarch64.h (AARCH64_FL_PAN): Remove.
903         (AARCH64_FL_LOR): Remove.
904         (AARCH64_FL_RDMA): Remove.
905         (AARCH64_FL_V8_1): New.
906         (AARCH64_FL_FOR_AARCH8_1): Replace AARCH64_FL_PAN, AARCH64_FL_LOR
907         and AARCH64_FL_RDMA with AARCH64_FL_V8_1.
908         (AARCH64_ISA_RDMA): Replace AARCH64_FL_RDMA with AARCH64_FL_V8_1.
909         * doc/invoke.texi (AArch64 -march): Rewrite initial paragraph and
910         section on -march=native.  Group descriptions of permitted
911         architecture names together.  Expand description of
912         -march=armv8.1-a.
913         (AArch64 -mtune): Slightly rework section on -march=native.
914         (AArch64 -mcpu): Slightly rework section on -march=native.
915         (AArch64 Feature Modifiers): Remove "pan", "lor" and "rdma".
916         State that -march=armv8.1-a enables "crc" and "lse".
918 2015-12-08  Eric Botcazou  <ebotcazou@adacore.com>
920         * doc/invoke.texi (SPARC options): Fix typo.
922 2015-12-08  Eric Botcazou  <ebotcazou@adacore.com>
924         * config/ia64/ia64.c (ia64_emit_probe_stack_range): Adjust.
925         (output_probe_stack_range): Rotate the loop and simplify.
927 2015-12-08  Uros Bizjak  <ubizjak@gmail.com>
929         * config/i386/i386.c (ix86_emit_swsqrtsf): Cleanup
930         infinity filterning code.
932 2015-12-08  Ilya Enkovich  <enkovich.gnu@gmail.com>
934         PR tree-optimization/68766
935         * tree-vectorizer.c (vectorize_loops): Check for
936         if-converted loops when debug counters are used.
938 2015-12-07  DJ Delorie  <dj@redhat.com>
940         * config/rl78/constraints.md (Wfr): Change to be a non-memory
941         constraint.
942         * config/rl78/rl78-protos.h (rl78_one_far_p): Declare.
943         * config/rl78/rl78.c (rl78_one_far_p): Define.
944         * config/rl78/rl78-virt (movqi_virt): Fix far memory
945         alternatives.
946         (movhi_virt): Likewise.
947         (zero_extendqihi2_virt): Likewise.
948         (extendqihi2_virt): Likewise.
949         (add<mode>3_virt): Likewise.
950         (sub<mode>3_virt): Likewise.
951         (andqi3_virt): Likewise.
952         (iorqi3_virt): Likewise.
953         (xorqi3_virt): Likewise.
954         * config/rl78/rl78-real.md (bf,br): Use long forms to avoid reloc
955         overflow in large files.
957 2015-12-07  Eric Botcazou  <ebotcazou@adacore.com>
959         PR target/63668
960         * doc/invoke.texi (SPARC options): Document -mstd-struct-return.
961         * config/sparc/sparc.c (sparc_struct_value_rtx): Minor tweaks.
962         * config/sparc/sparc.h (CALL_REALLY_USED_REGISTERS): Define.
963         * config/sparc/sparc.opt (mstd-struct-return): Accept negative.
965 2015-12-07  Steve Ellcey  <sellcey@imgtec.com>
967         * reorg.c (optimize_skip): Do not put frame related instructions
968         in annulled delay slots.
969         (steal_delay_list_from_target): Ditto.
970         (fill_slots_from_thread): Ditto.
972 2015-12-07  Evandro Menezes  <e.menezes@samsung.com>
974         * config/aarch64/aarch64-cores.def: Use the Exynos M1 sched model.
975         * config/aarch64/aarch64.md: Include "exynos-m1.md".
976         * config/arm/arm.md: Likewise.
977         * config/arm/exynos-m1.md: New file.
979 2015-12-07  Jan Hubicka  <hubicka@ucw.cz>
981         * fold-const.c (operand_equal_p): Drop flag_strict_aliasing check.
983 2015-12-07  Nathan Sidwell  <nathan@acm.org>
985         * config//nvptx/nvptx.c (write_return): New.
986         (write_fn_proto, nvptx_declare_function_name): Call it.
988 2015-12-07  Jan Hubicka  <hubicka@ucw.cz>
990         PR ipa/61886
991         * symtab.c (ultimate_transparent_alias_target): New inline function.
992         (symbol_table::assembler_names_equal_p): New method; break out from ...
993         (symbol_table::decl_assembler_name_equal): ... here.
994         (symbol_table::change_decl_assembler_name): Also update names and
995         translation links of transparent aliases.
996         (symtab_node::dump_base): Dump transparent_alias.
997         (symtab_node::verify_base): Implement basic transparent alias
998         verification.
999         (symtab_node::make_decl_local): Support localization of weakrefs;
1000         recurse to transparent aliases; set TREE_STATIC.
1001         (symtab_node::ultimate_alias_target_1): Handle visibility of
1002         transparent aliases.
1003         (symtab_node::resolve_alias): New parmaeter transparent; handle
1004         transparent aliases; recurse to aliases of aliases to fix comdat
1005         groups.
1006         (symtab_node::get_partitioning_class): Handle transparent aliases.
1007         * ipa-visibility.c (cgraph_externally_visible_p,
1008         varpool_node::externally_visible_p): Visibility of transparent alias
1009         depends on its target.
1010         (function_and_variable_visibility): Do not tweak visibility of
1011         transparent laiases.
1012         (function_and_variable_visibility): Likewise.
1013         * ipa.c (symbol_table::remove_unreachable_nodes): Clear
1014         transparent_alias flag.
1015         * alias.c (cgraph_node::create_alias, cgraph_node::get_availability):
1016         Support transparent aliases.
1017         * cgraph.h (symtab_node): Update prototype of resolve_alias;
1018         add transparent_alias flag.
1019         (symbol_table: Add assembler_names_equal_p.
1020         (symtab_node::real_symbol_p): Skip transparent aliases.
1021         * cgraphunit.c (cgraph_node::reset): Reset transparent_alias flag.
1022         (handle_alias_pairs): Set transparent_alias for weakref.
1023         (cgraph_node::assemble_thunks_and_aliases): Do not asemble transparent
1024         aliases.
1025         * lto-cgraph.c (lto_output_node): When outputting same_comdat_group
1026         skip symbols not put into boundary; stream transparent_alias.
1027         (lto_output_varpool_node): Likewise.
1028         (input_overwrite_node, input_varpool_node): Stream transparent alias.
1029         * varpool.c (ctor_for_folding, varpool_node::get_availability,
1030         varpool_node::assemble_aliases,
1031         symbol_table::remove_unreferenced_decls): Handle transparent aliase.
1032         (varpool_node::create_alias): Set transparent_alias.
1034 2015-12-07  Eric Botcazou  <ebotcazou@adacore.com>
1036         PR middle-end/68291
1037         PR middle-end/68292
1038         * cfgexpand.c (set_rtl): Always accept PARALLELs with BLKmode for
1039         SSA names based on RESULT_DECLs.
1040         * function.c (expand_function_start): Do not create BLKmode REGs
1041         for GIMPLE registers when coalescing is enabled.
1043 2015-12-07  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1045         * final.c (shorten_branches): Fix check for basic asm.
1046         * ipa-icf-gimple.c (func_checker::compare_gimple_asm): Add check for
1047         basic asm.
1049 2015-12-07  Nathan Sidwell  <nathan@acm.org>
1051         * config/nvptx/nvptx.c (nvptx_output_call_insn): Emit trap after no
1052         return call.
1054 2015-12-07  David Malcolm  <dmalcolm@redhat.com>
1056         * pretty-print.c (text_info::set_range): Rename to...
1057         (text_info::set_location): ...this, converting 2nd param
1058         from source_range to a location_t.
1059         * pretty-print.h (text_info::set_location): Convert
1060         from inline function to external definition.
1061         (text_info::set_range): Delete.
1063 2015-12-07  Nathan Sidwell  <nathan@acm.org>
1065         * config/nvptx/nvptx.c (nvptx_assemble_decl_begin): Look inside
1066         complex and vector types.  Cope with packed structs.
1068 2015-12-07  Kirill Yukhin  <kirill.yukhin@intel.com>
1070         PR target/68627
1071         * config/i386/sse.md: Make 'v' alternative work on 'avx512f' ISA only.
1072         Force destination to 512 bits register.
1074 2015-12-07  Kirill Yukhin  <kirill.yukhin@intel.com>
1076         PR target/68633
1077         * config/i386/sse.md (define_insn "kunpckhi"): Fix operands order.
1078         (define_insn "kunpcksi"): Ditto.
1079         (define_insn "kunpckdi"): Ditto.
1081 2015-12-06  Kaz Kojima  <kkojima@gcc.gnu.org>
1083         * config/sh/sh.md (rsqrtsf2): Adjust for canonical form with unspec.
1085 2015-12-06  Victoria Stepanyan  <victoria.stepanyan@amd.com>
1087         * common/config/i386/i386-common.c
1088         (OPTION_MASK_ISA_CLZERO_SET): New.
1089         (ix86_handle_option): Handle clzero.
1090         * config.gcc (i[34567]86-*-*): Add clzerointrin.h,
1091         (x86_64-*-*): Likewise.
1092         * config/i386/clzerointrin.h: New header.
1093         * config/i386/cpuid.h (bit_CLZERO):  Define.
1094         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
1095         CLZERO support.
1096         * config/i386/i386.opt (clzero): New.
1097         * config/i386/i386-c.c: Define __CLZERO__ if needed.
1098         * config/i386/i386.c (ix86_target_string): Define -mclzero option.
1099         (PTA_CLZERO): New.
1100         (ix86_option_override_internal): Handle new option.
1101         (processor_alias_table): Added PTA_CLZERO.
1102         (ix86_valid_target_attribute_inner_p): Add OPT_mclzero.
1103         (ix86_builtins): Add IX86_BUILTIN_CLZERO, IX86_BUILTIN_CLZERO.
1104         (ix86_expand_builtin): Handle IX86_BUILTIN_CLZERO and
1105         IX86_BUILTIN_CLZERO  built-ins.
1106         * config/i386/i386.h (TARGET_CLZERO):  New.
1107         * config/i386/i386.md (unspecv): Add UNSPEC_CLZERO.
1108         (clzero):  New pattern.
1109         (clzero_<mode>): New pattern.
1110         * config/i386/x86intrin.h: Include clzerointrin.h.
1111         * doc/extend.texi: Document clzero builtins.
1112         * doc/invoke.texi: Document -mclzero option.
1114 2015-12-05  Jan Hubicka  <hubicka@ucw.cz>
1116         * ipa-icf.c (sem_function::merge): Check that local_original exists.
1118 2015-12-05  David Edelsohn  <dje.gcc@gmail.com>
1120         PR target/68609
1121         * config/rs6000/rs6000-protos.h (rs6000_emit_swsqrt): Rename and add
1122         bool arguement.
1123         * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Rename. Add
1124         non-reciporcal path.
1125         * config/rs6000/rs6000.md (rsqrt<mode>2): Call new function name.
1126         (sqrt<mode>2): Replace define_insn with define_expand that may call
1127         rs6000_emit_swsqrt.
1129 2015-12-04  Aditya Kumar  <aditya.k7@samsung.com>
1130             Sebastian Pop  <s.pop@samsung.com>
1132         * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
1133         Improve debug.
1134         (get_rename_from_scev): Check that all the ops in an expression
1135         have their uses dominated by corresponding defs.
1137 2015-12-04  Aditya Kumar  <aditya.k7@samsung.com>
1138             Sebastian Pop  <s.pop@samsung.com>
1140         PR tree-optimization/68693
1141         * graphite-scop-detection.c (dot_all_sese): New
1142         (dot_all_scops_1): Renamed to dot_all_sese.
1143         (dot_all_scops): Removed.
1144         (dot_sese): New.
1145         (dot_cfg): New.
1146         (scop_detection::get_nearest_dom_with_single_entry): Check that
1147         preds are from different loop levels.
1148         (scop_detection::get_nearest_pdom_with_single_exit): Check that
1149         succs are from different loop levels.
1150         (scop_detection::print_sese): Inlined.
1151         (scop_detection::print_edge): New.
1152         (scop_detection::merge_sese): Added dumps.
1153         * graphite.h: Add declarations.
1155 2015-12-04  James Greenhalgh  <james.greenhalgh@arm.com>
1157         * config/aarch64/aarch64.md (add<mode>3_pluslong): Add register
1158         constraints.
1160 2015-12-04  Vladimir Makarov  <vmakarov@redhat.com>
1162         PR rtl-optimization/68349
1163         * lra-eliminations.c (move_plus_up): New function.
1164         (lra_eliminate_regs_1): Use the function.
1166 2015-12-04  Nathan Sidwell  <nathan@acm.org>
1168         * config/nvptx/nvptx.c (nvptx_assemble_decl_begin): New, replacing ...
1169         (init_output_initializer): ... this.
1170         (nvptx_output_aligned_decl, nvptx_asm_declare_constant_name,
1171         nvptx_declare_object_name, nvptx_assemble_undefined_decl): Use
1172         nvptx_assemble_decl_begin.
1174 2015-12-04  Dmitry Vyukov  <dvyukov@google.com>
1176         * sancov.c: New file.
1177         * Makefile.in (OBJS): Add sancov.o.
1178         * invoke.texi (-fsanitize-coverage=trace-pc): Describe.
1179         * passes.def (sancov_pass): Add.
1180         * tree-pass.h  (sancov_pass): Add.
1181         * common.opt (-fsanitize-coverage=trace-pc): Add.
1182         * sanitizer.def (BUILT_IN_SANITIZER_COV_TRACE_PC): Add.
1183         * builtins.def (DEF_SANITIZER_BUILTIN): Enable for
1184         flag_sanitize_coverage.
1186 2015-12-04  Eric Botcazou  <ebotcazou@adacore.com>
1188         PR middle-end/65958
1189         * config/arm/unspecs.md (unspec): Remove UNSPEC_PROBE_STACK_RANGE.
1190         (unspecv): Add VUNSPEC_PROBE_STACK_RANGE.
1191         * config/arm/arm.md (probe_stack_range): Adjust.
1192         * config/aarch64/aarch64.md (unspec): Remove UNSPEC_PROBE_STACK_RANGE.
1193         (unspecv): Add UNSPECV_PROBE_STACK_RANGE.
1194         (probe_stack_range_<PTR:mode>): Adjust.
1196 2015-12-04  David Malcolm  <dmalcolm@redhat.com>
1198         * convert.c (convert_to_real_1): When converting from a
1199         REAL_TYPE, preserve the location of EXPR in the result.
1200         * tree.c (get_pure_location): Make non-static.
1201         (set_source_range): Return the resulting location_t.
1202         (make_location): New function.
1203         * tree.h (get_pure_location): New decl.
1204         (get_finish): New inline function.
1205         (set_source_range): Convert return type from void to location_t.
1206         (make_location): New decl.
1208 2015-12-04  Jakub Jelinek  <jakub@redhat.com>
1210         PR c/68656
1211         * toplev.c (init_asm_output): Pass UNKNOWN_LOCATION instead of
1212         input_location to inform.
1213         (process_options): Use warning_at (UNKNOWN_LOCATION instead of
1214         warning ( and error_at (UNKNOWN_LOCATION instead of error (.
1215         Pass UNKNOWN_LOCATION instead of input_location to fatal_error.
1217 2015-12-04  Jan Hubicka  <hubicka@ucw.cz>
1219         * ipa-inline.c (can_inline_edge_p) Use merged_comdat.
1220         * cgraphclones.c (cgraph_node::create_clone): Use merged_comdat.
1221         * cgraph.c (cgraph_node::dump): Dump merged_comdat.
1222         * ipa-icf.c (sem_function::merge): Drop merged_comdat when merging
1223         comdat and non-comdat.
1224         * cgraph.h (cgraph_node): Rename merged to merged_comdat.
1225         * ipa-inline-analysis.c (simple_edge_hints): Check both merged_comdat
1226         and icf_merged.
1228 2015-12-04  Segher Boessenkool  <segher@kernel.crashing.org>
1230         * config/rs6000/rs6000.md (cstore<mode>4_unsigned): Use gpc_reg_operand
1231         instead of register_operand.  Remove empty constraints.  Use std::swap.
1232         (cstore_si_as_di, cstore<mode>4_signed_imm,
1233         cstore<mode>4_unsigned_imm, cstore<mode>4 for GPR): Use
1234         gpc_reg_operand instead of register_operand.
1235         (cstore<mode>4 for FP): Use gpc_reg_operand instead of
1236         register_operand.  Remove empty constraints.
1238 2015-12-04  Nick Clifton  <nickc@redhat.com>
1240         * config.gcc (extra_gcc_objs): Define for MSP430.
1241         * common/config/msp430/msp430-common.c (msp430_handle_option):
1242         Pass both -mmcu and -mcpu on to the back end if they are both defined.
1243         * config/msp430/msp430.c (hwmult_name): New function.
1244         (msp430_option_override): If an unrecognised MCU name is
1245         detected only warn if the user has not provided suitable
1246         -mhwmult and -mcpu options.  Use msp430_warn_mcu to control
1247         warning messages.  Generate warnings about conflicts between
1248         -mmcu and -mcpu and -mhwmult options.
1249         If neither -mcpu nor -mmcu have been specified but -mhwmult=
1250         f5series has the select the 430X isa.
1251         (msp430_no_hwmult): If -mmcu has not been specified and
1252         msp430_hwmult_type is AUTO then return true.
1253         * config/msp430/msp430.h (EXTRA_SPEC_FUNCTIONS): Define.
1254         (LIB_SPEC): Add hardware multiply library selection.
1255         * config/msp430/t-msp430: Delete hardware multiply multilibs.
1256         Add rule to build driver-msp430.o
1257         * config/msp430/driver-msp430.c: New file.
1258         * config/msp430/msp430.opt (warn-mcu): New option.
1259         * doc/invoke.texi: Update description of -mhwmult=auto.
1260         Document -mwarn-mcu option.
1262 2015-12-04  Segher Boessenkool  <segher&kernel.crashing.org>
1264         * config/rs6000/rs6000.md (cstore<mode>4_signed): New expander.
1265         (cstore<mode>4): Call it.
1267 2015-12-04  Jakub Jelinek  <jakub@redhat.com>
1269         * tree-tailcall.c (find_tail_calls): Ignore GIMPLE_NOPs.
1271         PR tree-optimization/68680
1272         * calls.c (special_function_p): Return ECF_MAY_BE_ALLOCA for
1273         BUILT_IN_ALLOCA{,_WITH_ALIGN}.  Don't check for __builtin_alloca
1274         by name.
1276         PR tree-optimization/68671
1277         * tree-ssa-reassoc.c (maybe_optimize_range_tests): For basic
1278         blocks starting with the successor of first bb we've modified
1279         and ending with last_bb call reset_flow_sensitive_info_in_bb.
1281 2015-12-04  Jeff Law  <law@redhat.com>
1283         * tree-ssa-reassoc.c (maybe_optimize_range_tests): Return boolean
1284         indicating if a gimple conditional was optimized to true/false.
1285         (reassociate_bb): Bubble up return value from
1286         maybe_optimize_range_tests.
1287         (do_reassoc): Similarly, but for reassociate_bb.
1288         (execute_reassoc): Return TODO_cleanup_cfg as needed.
1290 2015-12-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1292         * config/aarch64/aarch64.c (aarch64_override_options_internal):
1293         Do not alter target_flags due to TARGET_GENERAL_REGS_ONLY_P.
1294         * doc/invoke.texi (AArch64 options): Mention that -mgeneral-regs-only
1295         does not affect the assembler directives.
1297 2015-12-04  Dominik Vogt  <vogt@linux.vnet.ibm.com>
1299         * config/s390/s390.c (s390_asm_file_start): Implement hook function to
1300         emit .machine and .machinemode to the top of the assembler file.
1301         (TARGET_ASM_FILE_START): Provide target hook.
1302         (s390_asm_output_machine_for_arch): Protect with
1303         HAVE_AS_MACHINE_MACHINEMODE instead of S390_USE_TARGET_ATTRIBUTE.
1305 2015-12-04  Dominik Vogt  <vogt@linux.vnet.ibm.com>
1307         * config/s390/s390.opt (s390_arch_string): Remove.
1308         (s390_tune_string): Likewise.
1309         (s390_cost_pointer): Add Variable.
1310         (s390_tune_flags): Add TargetVariable.
1311         (s390_arch_flags, march=, mbackchain, mdebug, mesa, mhard-dfp),
1312         (mhard-float, mlong-double-128, mlong-double-64, mhtm, mvx),
1313         (mpacked-stack, msmall-exec, msoft-float, mstack-guard=, mstack-size=),
1314         (mtune=, mmvcle, mzvector, mzarch, mbranch-cost=, mwarn-dynamicstack),
1315         (mwarn-framesize=): Save option.
1316         (mno-stack-guard, mno-stack-guard): New option.
1317         (mwarn-dynamicstack): Allow mno-warn-dynamicstack.
1318         (mwarn-framesize=): Convert to UInteger (negative values are rejected
1319         now).
1320         * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Split setting
1321         macros changeable through the GCC target pragma into a separate
1322         function.
1323         (s390_cpu_cpp_builtins): Likewise.
1324         (s390_pragma_target_parse): New function, implement GCC target pragma
1325         if enabled.
1326         (s390_register_target_pragmas): Register s390_pragma_target_parse if
1327         available.
1328         * common/config/s390/s390-common.c (s390_handle_option):
1329         Export.
1330         Move setting s390_arch_flags to s390.c.
1331         Remove s390_tune_flags.
1332         Allow 0 as argument to -mstack-size (switch to default value).
1333         Allow 0 as argument to -mstack-guard (switch off).
1334         Remove now unnecessary explicit parsing code for -mwarn-framesize.
1335         * config/s390/s390-protos.h (s390_handle_option): Export.
1336         (s390_valid_target_attribute_tree): Export.
1337         (s390_reset_previous_fndecl): Export.
1338         * config/s390/s390-builtins.def: Use new macro B_GROUP to mark the start
1339         and end of HTM and VX builtins.
1340         (s390_asm_output_function_prefix): Declare hook.
1341         (s390_asm_declare_function_size): Likewise.
1342         * config/s390/s390-builtins.h (B_GROUP): Use macro.
1343         * config/s390/s390-opts.h: Add comment about processor_type usage.
1344         * config/s390/s390.h (TARGET_CPU_IEEE_FLOAT_P, TARGET_CPU_ZARCH_P),
1345         (TARGET_CPU_LONG_DISPLACEMENT_P, TARGET_CPU_EXTIMM_P, TARGET_CPU_DFP_P),
1346         (TARGET_CPU_Z10_P, TARGET_CPU_Z196_P, TARGET_CPU_ZEC12_P),
1347         (TARGET_CPU_HTM_P, TARGET_CPU_Z13_P, TARGET_CPU_VX_P),
1348         (TARGET_HARD_FLOAT_P, TARGET_LONG_DISPLACEMENT_P, TARGET_EXTIMM_P),
1349         (TARGET_DFP_P, TARGET_Z10_P, TARGET_Z196_P, TARGET_ZEC12_P),
1350         (TARGET_HTM_P, TARGET_Z13_P, TARGET_VX_P, TARGET_CPU_EXTIMM),
1351         (TARGET_CPU_DFP, TARGET_CPU_Z10, TARGET_CPU_Z196, TARGET_CPU_ZEC12),
1352         (TARGET_CPU_HTM, TARGET_CPU_Z13, TARGET_LONG_DISPLACEMENT),
1353         (TARGET_EXTIMM, TARGET_DFP, TARGET_Z10, TARGET_Z196, TARGET_ZEC12),
1354         (TARGET_Z13, TARGET_VX, S390_USE_TARGET_ATTRIBUTE),
1355         (S390_USE_ARCHITECTURE_MODIFIERS, SWITCHABLE_TARGET),
1356         (ASM_DECLARE_FUNCTION_SIZE, ASM_OUTPUT_FUNCTION_PREFIX): Likewise.
1357         * config/s390/vecintrin.h: Use vector definitions even if __VEC__ is
1358         undefined.
1359         (vec_all_nan): Rewrite as macro using statement expressions to avoid
1360         that the vector keyword needs to be defined when including the file.
1361         (vec_all_numeric): Likewise.
1362         (vec_any_nan): Likewise.
1363         (vec_any_numeric):  Likewise.
1364         * config/s390/s390.c (s390_previous_fndecl): New static variable.
1365         (s390_set_current_function): New function.
1366         (s390_cost): Wrapper macro to allow defining the cost table pointer in
1367         the options file.
1368         (processor_table): Table for march= and mtune= parsing.
1369         (s390_init_builtins): Enable all builtins and types unconditionally.
1370         (s390_expand_builtin): Generate an error message if builtin is not
1371         supported by current options.
1372         Correct an error message.
1373         (s390_function_specific_restore): New function to set s390_cost.
1374         (s390_asm_output_machine_for_arch): New function for emitting .machine
1375         and .machinmode directives to the assembler file.
1376         (s390_asm_output_function_prefix): Likewise.
1377         (s390_asm_declare_function_size):  Likewise.
1378         (s390_asm_output_function_label): Add mdebug output for feature testing.
1379         (s390_option_override): Move implementation into internal function.
1380         (s390_option_override_internal): Likewise.
1381         Implement option overriding based on current options.
1382         (s390_valid_target_attribute_inner_p): New function implementing target
1383         attribute logic.
1384         (s390_valid_target_attribute_tree): Likewise.
1385         (s390_valid_target_attribute_p): Likewise.
1386         (s390_reset_previous_fndecl): Likewise.
1387         (s390_set_current_function): Likewise.
1388         (TARGET_SET_CURRENT_FUNCTION): Provide target hook function.
1389         (TARGET_OPTION_VALID_ATTRIBUTE_P): Likewise.
1390         (TARGET_OPTION_RESTORE): Likewise.
1391         * doc/extend.texi: S390: Document target attribute and pragma.
1392         * config.in: Regenerated.
1393         * configure: Regenerated.
1394         * configure.ac: S390: Check for .machinemode and .machine in gas.
1395         S390: Check for architecture modifiers support in gas.
1397 2015-12-04  Kirill Yukhin  <kirill.yukhin@intel.com>
1399         * doc/extend.texi ("simd"): Describe new flags.
1401 2015-12-04  Ilya Enkovich  <enkovich.gnu@gmail.com>
1403         * config/i386/sse.md (<avx512>_store<mode>_mask): Fix
1404         operand checked for alignment.
1406 2015-12-04  Nathan Sidwell  <nathan@acm.org>
1408         * config/nvptx/nvptx.c (write_one_arg): Deal with prologue
1409         emission too. Change 'no_arg_types' to 'prototyped'.
1410         (write_fn_proto):  Use write_one_arg for stdarg, static chain &
1411         main.
1412         (nvptx_declare_function_name): Use write_one_arg for prologue copies.
1414 2015-12-04  Richard Biener  <rguenther@suse.de>
1416         * tree-ssa-sccvn.c (sccvn_dom_walker): Add unreachable_dom
1417         member and initialize it.
1418         (sccvn_dom_walker::after_dom_children): Reset unreachable_dom
1419         if necessary.
1420         (sccvn_dom_walker::before_dom_children): If unreachable_dom
1421         is set BB is not reachable either.  Set unreachable_dom
1422         if not set and BB is unreachable.
1424 2015-12-04  Richard Biener  <rguenther@suse.de>
1426         * bitmap.c (bitmap_find_bit): Guard the bitmap descriptor
1427         query with GATHER_STATISTICS.
1429 2015-12-04  Eric Botcazou  <ebotcazou@adacore.com>
1431         PR middle-end/65958
1432         * gimplify.c (struct gimplify_ctx): Turn boolean fields into 1-bit
1433         fields, add keep_stack and reorder them.
1434         (gimplify_bind_expr): Save gimplify_ctxp->keep_stack on entry then
1435         set it to false.  Do not insert a stack save/restore pair if it has
1436         been set to true by the gimplification of the statements.
1437         Restore it to the saved value on exit if it is still false.
1438         (gimplify_vla_decl): Do not set gimplify_ctxp->save_stack here.
1439         (gimplify_call_expr) <BUILT_IN_ALLOCA[_WITH_ALIGN]>: New case.  Set
1440         either save_stack or keep_stack depending on CALL_ALLOCA_FOR_VAR_P.
1441         * doc/extend.texi (Variable Length): Document new behavior.
1442         * doc/generic.texi (Blocks): Document new handling of VLAs.
1444 2015-12-04  Eric Botcazou  <ebotcazou@adacore.com>
1445             Tristan Gingold  <gingold@adacore.com>
1447         PR middle-end/65958
1448         * config/aarch64/aarch64-protos.h (aarch64_output_probe_stack-range):
1449         Declare.
1450         * config/aarch64/aarch64.md: Declare UNSPECV_BLOCKAGE and
1451         UNSPEC_PROBE_STACK_RANGE.
1452         (blockage): New instruction.
1453         (probe_stack_range_<PTR:mode>): Likewise.
1454         * config/aarch64/aarch64.c (aarch64_emit_probe_stack_range): New
1455         function.
1456         (aarch64_output_probe_stack_range): Likewise.
1457         (aarch64_expand_prologue): Invoke aarch64_emit_probe_stack_range if
1458         static builtin stack checking is enabled.
1459         * config/aarch64/aarch64-linux.h (STACK_CHECK_STATIC_BUILTIN):
1460         Define to 1.
1462 2015-12-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1464         PR target/68214
1465         * config/arm/arm.md (*call_mem): Delete pattern.
1466         (*call_value_mem): Likewise.
1467         * config/arm/arm.c (output_call_mem): Delete.
1468         * config/arm/arm-protos.h (output_call_mem): Delete prototype.
1470 2015-12-04  Bin Cheng  <bin.cheng@arm.com>
1472         * config/aarch64/atomics.md (atomic_store<mode>): Use predicate
1473         aarch64_sync_memory_operand.
1475 2015-12-04  Jakub Jelinek  <jakub@redhat.com>
1477         PR target/68655
1478         * config/i386/i386.c (canonicalize_vector_int_perm): New function.
1479         (expand_vec_perm_1): Use it and recurse if everything else
1480         failed.  Use nd.perm instead of perm2.
1481         (expand_vec_perm_even_odd_1): If testing_p, use gen_raw_REG
1482         instead of gen_lowpart for the target.
1483         (ix86_expand_vec_perm_const_1): Use canonicalize_vector_int_perm
1484         and recurse if everything else failed.
1486 2015-12-04  Richard Biener  <rguenther@suse.de>
1488         PR middle-end/68636
1489         * builtins.c (get_pointer_alignment_1): Take care of byte to
1490         bit alignment computation overflow.
1492 2015-12-04  Richard Biener  <rguenther@suse.de>
1494         PR middle-end/67438
1495         * match.pd: Guard ~X cmp ~Y -> Y cmp X and the variant with
1496         a constant with single_use.
1498 2015-12-04  Bin Cheng  <bin.cheng@arm.com>
1499             Jiong Wang  <jiong.wang@arm.com>
1501         * config/aarch64/aarch64.c (aarch64_legitimize_address): legitimize
1502         address expressions like Ra + Rb + CONST and Ra + Rb<<SCALE + CONST.
1504 2015-12-03  Jan Hubicka  <hubicka@ucw.cz>
1506         * alias.c (alias_set_subset_of, alias_sets_must_conflict_p):
1507         Add short circuit for !flag_strict_aliasing
1508         (get_alias_set): Remove flag_strict_aliasing check.
1509         (new_alias_set): Likewise.
1511 2015-12-03  Evandro Menezes  <e.menezes@samsung.com>
1513         * config/aarch64/aarch64-cores.def: Use the Exynos M1 cost model.
1514         * config/aarch64/aarch64.c (exynosm1_addrcost_table): New variable.
1515         (exynosm1_regmove_cost): Likewise.
1516         (exynosm1_vector_cost): Likewise.
1517         (exynosm1_tunings): Likewise.
1518         * config/arm/aarch-cost-tables.h (exynosm1_extra_costs): Likewise.
1519         * config/arm/arm.c (arm_exynos_m1_tune): Likewise.
1521 2015-12-03  Alan Lawrence  <alan.lawrence@arm.com>
1522             Richard Biener  <richard.guenther@gmail.com>
1524         * cfgexpand.c (pass_expand::execute): Replace call to
1525         redirect_edge_var_map_destroy with redirect_edge_var_map_empty.
1526         * tree-ssa.c (delete_tree_ssa): Likewise.
1527         * function.c (set_cfun): Call redirect_edge_var_map_empty.
1528         * passes.c (execute_one_ipa_transform_pass, execute_one_pass): Likewise.
1529         * tree-ssa.h (redirect_edge_var_map_destroy): Remove.
1530         (redirect_edge_var_map_empty): New.
1531         * tree-ssa.c (redirect_edge_var_map_destroy): Remove.
1532         (redirect_edge_var_map_empty): New.
1534 2015-12-03  Jeff Law  <law@redhat.com>
1536         PR tree-optimization/68599
1537         * loop-init.c (rtl_loop_init): Set LOOPS_HAVE_RECORDED_EXITS
1538         in call to loop_optimizer_init.
1539         * loop-iv.c (get_simple_loop_desc): Only allow unsafe loop
1540         optimization to drop the assumptions/infinite notations if
1541         the loop has a single exit.
1543 2015-12-03  Richard Sandiford  <richard.sandiford@arm.com>
1545         * doc/md.texi (vec_load_lanes@var{m}@var{n}): Document that
1546         the pattern cannot FAIL.
1547         (vec_store_lanes@var{m}@var{n}): Likewise.
1548         (maskload@var{m}@var{n}): Likewise.
1549         (maskstore@var{m}@var{n}): Likewise.  Fix a cut-&-paste error
1550         in the name of the pattern.
1551         (rsqrt@var{m}2): Document that mode m must be a scalar or vector
1552         floating-point mode and that all operands have that mode.
1553         (fmin@var{m}3, fmax@var{m}3): Likewise.  Document that the
1554         pattern cannot FAIL.
1555         (sqrt@var{m}2): Document that mode m must be a scalar or vector
1556         floating-point mode, that all operands have that mode, and that
1557         the patterns cannot FAIL.  Remove previous documentation referring
1558         to @code{double} and @code{float}.
1559         (fmod@var{m}3, remainder@var{m}3, cos@var{m}2, sin@var{m}2)
1560         (sincos@var{m}3, log@var{m}2, pow@var{m}3, atan2@var{m}3)
1561         (copysign@var{m}3): Likewise.
1562         (exp@var{m}2): Likewise.  Explicitly state the base.
1563         (floor@var{m}2): As for sqrt@var{m}2, but also specify the operands.
1564         (btrunc@var{m}2, rint@var{m}2): Likewise.
1565         (round@var{m}2): Likewise.  Fix incorrect description of rounding
1566         effect.
1567         (ceil@var{m}2): As for round@var{m}2.
1568         (nearbyint@var{m}2): As for floor@var{m}2, but also mention that
1569         the instruction must not raise an inexact condition.
1570         (scalb@var{m}3): Document previously-undocumented pattern
1571         (ldexp@var{m}3, tan@var{m}2, asin@var{m}2, acos@var{m}2)
1572         (atan@var{m}2, expm1@var{m}2, exp10@var{m}2, exp2@var{m}2)
1573         (log1p@var{m}2, log10@var{m}2, log2@var{m}2, logb@var{m}2)
1574         (significand@var{m}2): Likewise.
1575         (ffs@var{m}2): Fix the description of the modes, so that operand 1 has
1576         mode m and operand 0 is defined more freely.  Document that @var{m}
1577         can be a scalar or vector integer mode and that the pattern is not
1578         allowed to FAIL.
1579         (clz@var{m}2, ctz@var{m}2, popcount@var{m}2, parity@var{m}2): Likewise.
1580         (clrsb@var{m}2): Likewise, except that the description of the
1581         mode was missing in this case.
1583 2015-12-03  Richard Sandiford  <richard.sandiford@arm.com>
1585         * internal-fn.def (RSQRT): New function.
1586         * optabs.def (rsqrt_optab): New optab.
1587         * doc/md.texi (rsqrtM2): Document.
1588         * target.def (builtin_reciprocal): Replace gcall argument with
1589         a function decl.  Restrict hook to machine functions.
1590         * doc/tm.texi: Regenerate.
1591         * targhooks.h (default_builtin_reciprocal): Update prototype.
1592         * targhooks.c (default_builtin_reciprocal): Likewise.
1593         * tree-ssa-math-opts.c: Include internal-fn.h.
1594         (internal_fn_reciprocal): New function.
1595         (pass_cse_reciprocals::execute): Call it, and build a call to an
1596         internal function on success.  Only call targetm.builtin_reciprocal
1597         for machine functions.
1598         * config/aarch64/aarch64-protos.h (aarch64_builtin_rsqrt): Remove
1599         second argument.
1600         * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin_rsqrt):
1601         Rename aarch64_rsqrt_<mode>2 to rsqrt<mode>2.
1602         (aarch64_builtin_rsqrt): Remove md_fn argument and only handle
1603         machine functions.
1604         * config/aarch64/aarch64.c (use_rsqrt_p): New function.
1605         (aarch64_builtin_reciprocal): Replace gcall argument with a
1606         function decl.  Use use_rsqrt_p.  Remove optimize_size check.
1607         Only handle machine functions.  Update call to aarch64_builtin_rsqrt.
1608         (aarch64_optab_supported_p): New function.
1609         (TARGET_OPTAB_SUPPORTED_P): Define.
1610         * config/aarch64/aarch64-simd.md (aarch64_rsqrt_<mode>2): Rename to...
1611         (rsqrt<mode>2): ...this.
1612         * config/i386/i386.c (use_rsqrt_p): New function.
1613         (ix86_builtin_reciprocal): Replace gcall argument with a
1614         function decl.  Use use_rsqrt_p.  Remove optimize_insn_for_size_p
1615         check.  Only handle machine functions.
1616         (ix86_optab_supported_p): Handle rsqrt_optab.
1617         * config/rs6000/rs6000.c (TARGET_OPTAB_SUPPORTED_P): Define.
1618         (rs6000_builtin_reciprocal): Replace gcall argument with a
1619         function decl.  Remove optimize_insn_for_size_p check.
1620         Only handle machine functions.
1621         (rs6000_optab_supported_p): New function.
1623 2015-12-03  Bernd Schmidt  <bschmidt@redhat.com>
1625         PR target/68471
1626         PR target/68472
1627         * config/i386/i386.c (ix86_mitigate_rop): Don't call
1628         compute_bb_for_insn again.  Call df_insn_rescan_all.
1629         * config/i386/i386.md (set_got_rex64): Override modrm_class.
1631         * regrename.c (build_def_use): Ignore stack regs if regstack_completed.
1633 2015-12-03  Nathan Sidwell  <nathan@acm.org>
1635         * config/nvptx/nvptx-protos.h (npvptx_section_from_addr_space): Delete.
1636         * config/nvptx/nvptx.c (enum nvptx_data_area): New.
1637         (SYMBOL_DATA_AREA, SET_SYMBOL_DATA_AREA): New defines.
1638         (nvptx_option_override): Set data ares for worker vars.
1639         (nvptx_addr_space_from_sym): Delete.
1640         (nvptx_encode_section_info): New.
1641         (section_for_sym, section_for_decl): New.
1642         (nvptx_maybe_convert_symbolic_operand): Get data area from symbol flags.
1643         (nvptx_section_from_addr_space): Delete.
1644         (nvptx_section_for_decl): Delete.
1645         (nvptx_output_aligned, nvptx_declare_object_name,
1646         nvptx_assemble_undefined_decl): Use section_for_decl, remove
1647         unnecessary checks.
1648         (nvptx_print_operand): Add 'D', adjust 'A'.
1649         (nvptx_expand_worker_addr): Adjust unspec generation.
1650         (TARGET_ENCODE_SECTION_INFO): Override.
1651         * config/nvptx/nvptx.h (ADDR_SPACE_GLOBAL, ADDR_SPACE_SHARED,
1652         ADDR_SPACE_CONST, ADDR_SPACE_LOCAL, ADDR_SPACE_PARAM): Delete.
1653         * config/nvptx/nvptx.md (UNSPEC_FROM_GLOBAL, UNSPEC_FROM_LOCAL,
1654         UNSPEC_FROM_PARAM, UNSPEC_FROM_SHARED, UNSPEC_FROM_CONST,
1655         UNSPEC_TO_GLOBAL, UNSPEC_TO_LOCAL, UNSPEC_TO_PARAM,
1656         UNSPEC_TO_SHARED, UNSPEC_TO_CONST): Delete.
1657         (UNSPEC_TO_GENERIC): New.
1658         (nvptx_register_or_symbolic_operand): Delete.
1659         (cvt_code, cvt_name, cvt_str): Delete.
1660         (convaddr_<cvt_name><mode> [P]): Delete.
1661         (convaddr_<mode> [P]): New.
1663 2015-12-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1665         PR rtl-optimization/68624
1666         * ifcvt.c (noce_try_cmove_arith): Check clobbers of temp regs in both
1667         blocks if they exist and simplify the logic choosing the order to emit
1668         them in.
1670 2015-12-03  Richard Biener  <rguenther@suse.de>
1672         PR tree-optimization/66051
1673         * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
1674         on load group size.  Do not pass in vectorization_factor.
1675         (vect_transform_slp_perm_load): Do not require any permute support.
1676         (vect_build_slp_tree): Do not pass in vectorization factor.
1677         (vect_analyze_slp_instance): Do not compute vectorization
1678         factor estimate.  Use vector size instead of vectorization factor
1679         estimate to split store groups for BB vectorization.
1681 2015-12-03  Ilya Enkovich  <enkovich.gnu@gmail.com>
1683         * cfgexpand.c (expand_gimple_stmt_1): Return statement with
1684         DECL as return value is allowed to have NULL bounds.
1686 2015-12-03  Tom de Vries  <tom@codesourcery.com>
1688         * graphite-isl-ast-to-gimple.c (binary_op_to_tree)
1689         (gcc_expression_from_isl_expr_op): Guard isl_ast_op_zdiv_r usage with
1690         HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
1692 2015-12-03  Richard Biener  <rguenther@suse.de>
1694         PR tree-optimization/67800
1695         PR tree-optimization/68333
1696         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Restore
1697         restriction to reduction contexts but allow SLP reductions as well.
1698         (vect_recog_sad_pattern): Likewise.
1699         (vect_recog_widen_sum_pattern): Likewise.
1701 2015-12-03  Richard Biener  <rguenther@suse.de>
1703         PR tree-optimization/68639
1704         * tree-vect-data-refs.c (dr_group_sort_cmp): Split groups
1705         belonging to different loops.
1706         (vect_analyze_data_ref_accesses): Likewise.
1708 2015-12-02  Kirill Yukhin  <kirill.yukhin@intel.com>
1710         * config/i386/sse.md (define_insn "vec_extract_hi_<mode>_maskm"):
1711         Remove "prefix_extra".
1712         (define_insn "vec_extract_hi_<mode>_mask"): New.
1713         (define_insn "vec_extract_hi_<mode>"): Remove masking.
1715 2015-12-02  Jan Hubicka  <hubicka@ucw.cz>
1717         * ipa-pure-const.c (ignore_edge_for_pure_const): New function.
1718         (propagate_pure_const): Use it; fix comments and optimize loops.
1720 2015-12-02  Jan Hubicka  <hubicka@ucw.cz>
1722         * ipa-pure-const.c (ignore_edge): Rename to ...
1723         (ignore_edge_for_nothrow) ... this one; also ignore eges to
1724         interposable functions or ones that can not throw.
1725         (propagate_nothrow): Fix handling of availability.
1727 2015-12-02  Jan Hubicka  <hubicka@ucw.cz>
1729         PR ipa/68184
1730         * cgraphunit.c (cgraph_node::analyze): Set can_throw_external.
1732 2015-12-02  Aditya Kumar  <aditya.k7@samsung.com>
1733             Sebastian Pop  <s.pop@samsung.com>
1735         * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Handle
1736         isl_ast_op_zdiv_r.
1737         (gcc_expression_from_isl_expr_op): Same.
1739 2015-12-02  Aditya Kumar  <aditya.k7@samsung.com>
1740             Sebastian Pop  <s.pop@samsung.com>
1742         * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Check
1743         that insertion point is still in the region.
1745 2015-12-02  Aditya Kumar  <aditya.k7@samsung.com>
1746             Sebastian Pop  <s.pop@samsung.com>
1748         PR tree-optimization/68550
1749         * graphite-isl-ast-to-gimple.c (copy_loop_phi_nodes): Add dump.
1750         (copy_bb_and_scalar_dependences): Do not code generate loop peeled
1751         statements.
1753 2015-12-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1755         * configure.ac: Check assembler support for R_PPC64_ENTRY relocation.
1756         * configure: Regenerate.
1757         * config.in: Regenerate.
1758         * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p): New
1759         function.
1760         (rs6000_output_function_prologue): Use it instead of checking
1761         cfun->machine->r2_setup_needed.  Use internal labels instead of
1762         GNU as local label extension.  Handle ELFv2 large code model.
1763         (rs6000_output_mi_thunk): Do not set cfun->machine->r2_setup_needed.
1764         (rs6000_elf_declare_function_name): Handle ELFv2 large code model.
1766 2015-12-02  Jakub Jelinek  <jakub@redhat.com>
1768         PR target/68647
1769         * optabs.c (expand_doubleword_popcount, expand_doubleword_parity):
1770         New functions.
1771         (expand_unop): Use them.
1773 2015-12-02  Marek Polacek  <polacek@redhat.com>
1775         PR c++/68653
1776         * tree.c (nonnull_arg_p): Allow OFFSET_TYPE.
1778 2015-12-02  Nathan Sidwell  <nathan@acm.org>
1780         * config/nvptx/nvptx.c (enum nvptx_shuffle_kind): New.  Absorb
1781         SHUFFLE defines.
1782         (nvptx_gen_shuffle, nvptx_print_operand, nvptx_expand_shuffle): Adjust.
1784 2015-12-02  Aditya Kumar  <aditya.k7@samsung.com>
1785             Sebastian Pop  <s.pop@samsung.com>
1787         * graphite-dependences.c (scop_get_reads): Add extra dumps.
1788         (scop_get_must_writes): Same.
1789         (scop_get_may_writes): Same.
1790         (compute_deps): Same.
1791         * graphite-sese-to-poly.c (bounds_are_valid): New.
1792         (pdr_add_data_dimensions): Call bounds_are_valid.
1794 2015-12-02  Aditya Kumar  <aditya.k7@samsung.com>
1795             Sebastian Pop  <s.pop@samsung.com>
1797         * common.opt (flag_loop_optimize_isl): Renamed flag_loop_nest_optimize.
1798         * graphite-poly.c (apply_poly_transforms): Same.
1799         * graphite.c (gate_graphite_transforms): Same.
1800         * toplev.c (process_options): Same.
1802 2015-12-02  Eric Botcazou  <ebotcazou@adacore.com>
1804         * config/mips/mips.c (mips_emit_probe_stack_range): Adjust.
1805         (mips_output_probe_stack_range): Rotate the loop and simplify.
1807 2015-12-02  David Sherwood  <david.sherwood@arm.com>
1809         * config/aarch64/aarch64.md: New pattern.
1810         * config/aarch64/aarch64-simd.md: Likewise.
1811         * config/aarch64/iterators.md: New unspecs, iterators.
1813 2015-12-02  Pierre-Marie de Rodat  <derodat@adacore.com>
1815         * dwarf2out.c (dwar2out_var_location): In addition to notes,
1816         process indirect calls whose target is compile-time known.
1817         Enhance pattern matching to get the SYMBOL_REF they embed.
1818         (gen_subprogram_die): Handle such calls.
1819         * final.c (final_scan_insn): For call instructions, invoke the
1820         var_location debug hook only after the call has been emitted.
1822 2015-12-02  Tom de Vries  <tom@codesourcery.com>
1824         * gimplify.c (enum gimplify_omp_var_data): Add enum value
1825         GOVD_MAP_FORCE.
1826         (oacc_default_clause): Fix default for scalars in oacc kernels.
1827         (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_FORCE.
1829 2015-12-02  Tom de Vries  <tom@codesourcery.com>
1831         * omp-low.c (install_var_field, scan_sharing_clauses): Add and handle
1832         parameter base_pointers_restrict.
1833         (omp_target_base_pointers_restrict_p): New function.
1834         (scan_omp_target): Call scan_sharing_clauses with
1835         base_pointers_restrict arg.
1837 2015-12-02  Nathan Sidwell  <nathan@acm.org>
1839         * config/nvptx/nvptx-protos.h (nvptx_output_mov_insn): Declare.
1840         (nvptx_underlying_object_mode): Delete.
1841         * config/nvptx/nvptx.c (nvptx_underlying_object_mode): Delete.
1842         (output_reg): New.
1843         (nvptx_declare_function_name): Use output_reg.  Remove punning buffer.
1844         (nvptx_output_mov_insn): New.
1845         (nvptx_print_operand): Separate SUBREG handling, remove 'f' case,
1846         Use output_reg. Merge 't' and 'u' handling.
1847         * config/nvptx/nvptx.h (NVPTX_PUNNING_BUFFER_REGNUM): Delete.
1848         (struct machine_function): Remvoe punning_buffer_size.
1849         (REGISTER_NAMES): Remove %punbuffer.
1850         * config/nvptx/nvptx.md (UNSPEC_CPLX_LOWPART,
1851         UNSPEC_CPLX_HIGHPART): Delete.
1852         (*mov<mode>_insn [QHSDIM): Remove unnecessary constraints, use
1853         nvptx_output_mov_insn.
1854         (*mov<mode>_insn [SDFM): Reorder constraints to match integer moc.
1855         Use nvptx_output_mov_insn.
1856         (highpartscsf2,  set_highpartscsf2, lowpartscsf2, set_lowpartscsf2):
1857         Delete.
1858         (mov<mode> [SDCM]): Delete.
1860 2015-12-02  Richard Biener  <rguenther@suse.de>
1862         * tree.h (tree_invariant_p): Declare.
1863         * tree.c (tree_invariant_p): Export.
1864         * genmatch.c (dt_simplify::gen_1): For GENERIC code-gen never
1865         create SAVE_EXPRs but reject patterns if we would need to.
1867 2015-12-02  Tom de Vries  <tom@codesourcery.com>
1869         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call)
1870         (find_func_clobbers, ipa_pta_execute): Handle BUILT_IN_GOACC_PARALLEL.
1872 2015-12-02  Segher Boessenkool  <segher@kernel.crashing.org>
1874         * config/rs6000/rs6000.md (cstore_si_as_di): New expander.
1875         (cstore<mode>4): Use it.
1877 2015-12-02  Richard Biener  <rguenther@suse.de>
1879         PR tree-optimization/68625
1880         * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not call
1881         cleanup_control_flow_bb.
1882         (cleanup_tree_cfg_1): First perform cleanup_control_flow_bb
1883         on all BBs, then cleanup_tree_cfg_bb and finally iterate
1884         over the worklist doing both.
1886 2015-12-02  Richard Sandiford  <richard.sandiford@arm.com>
1888         PR tree-optimization/68432
1889         * coretypes.h (optimization_type): New enum.
1890         * doc/tm.texi.in (TARGET_OPTAB_SUPPORTED_P): New hook.
1891         * doc/tm.texi: Regenerate.
1892         * target.def (optab_supported_p): New hook.
1893         * targhooks.h (default_optab_supported_p): Declare.
1894         * targhooks.c (default_optab_supported_p): New function.
1895         * predict.h (function_optimization_type): Declare.
1896         (bb_optimization_type): Likewise.
1897         * predict.c (function_optimization_type): New function.
1898         (bb_optimization_type): Likewise.
1899         * optabs-query.h (convert_optab_handler): Define an overload
1900         that takes an optimization type.
1901         (direct_optab_handler): Likewise.
1902         * optabs-query.c (convert_optab_handler): Likewise.
1903         (direct_optab_handler): Likewise.
1904         * internal-fn.h (direct_internal_fn_supported_p): Take an
1905         optimization_type argument.
1906         * internal-fn.c (direct_optab_supported_p): Likewise.
1907         (multi_vector_optab_supported_p): Likewise.
1908         (direct_internal_fn_supported_p): Likewise.
1909         * builtins.c (replacement_internal_fn): Update call to
1910         direct_internal_fn_supported_p.
1911         * gimple-match-head.c (build_call_internal): Likewise.
1912         * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
1913         * tree-vect-stmts.c (vectorizable_internal_function): Likewise.
1914         * tree.c (maybe_build_call_expr_loc): Likewise.
1915         * config/i386/i386.c (ix86_optab_supported_p): New function.
1916         (TARGET_OPTAB_SUPPORTED_P): Define.
1917         * config/i386/i386.md (asinxf2): Remove optimize_insn_for_size_p check.
1918         (asin<mode>2, acosxf2, acos<mode>2, log1pxf2, log1p<mode>2)
1919         (expNcorexf3, expxf2, exp<mode>2, exp10xf2, exp10<mode>2, exp2xf2)
1920         (exp2<mode>2, expm1xf2, expm1<mode>2, ldexpxf3, ldexp<mode>3)
1921         (scalbxf3, scalb<mode>3, rint<mode>2, round<mode>2)
1922         (<rounding_insn>xf2, <rounding_insn><mode>2): Likewise.
1924 2015-12-02  Richard Sandiford  <richard.sandiford@arm.com>
1926         * Makefile.in (GENSUPPORT_H): New macro.
1927         (build/gensupport.o, build/read-rtl.o, build/genattr.o)
1928         (build/genattr-common.o, build/genattrtab.o, build/genautomata.o)
1929         (build/gencodes.o, build/genconditions.o, build/genconfig.o)
1930         (build/genconstants.o, build/genextract.o, build/genflags.o)
1931         (build/gentarget-def.o): Use it.
1932         (build/genemit.o): Likewise.  Depend on internal-fn.def.
1933         * genopinit.c: Move block comment to optabs.def.
1934         (optab_tag, optab_def): Move to gensupport.h
1935         (pattern): Likewise, renaming to optab_pattern.
1936         (match_pattern): Move to gensupport.c
1937         (gen_insn): Use find_optab.
1938         (patterns, pattern_cmp): Replace pattern with optab_pattern.
1939         (main): Likewise.  Use num_optabs.
1940         * optabs.def: Add comment that was previously in genopinit.c.
1941         * gensupport.h (optab_tag): Moved from genopinit.c
1942         (optab_def): Likewise, expanding commentary.
1943         (optab_pattern): Likewise, after renaming from pattern.
1944         (optabs, num_optabs, find_optab): Declare.
1945         * gensupport.c (optabs): Moved from genopinit.c.
1946         (num_optabs): New variable.
1947         (match_pattern): Moved from genopinit.c.
1948         (find_optab): New function, extracted from genopinit.c:gen_insn.
1949         * genemit.c (nofail_optabs): New variable.
1950         (emit_c_code): New function.
1951         (gen_expand): Check whether the instruction is an optab that isn't
1952         allowed to fail.  Call emit_c_code.
1953         (gen_split): Call emit_c_code here too.
1954         (main): Initialize nofail_optabs.  Don't emit FAIL and DONE here.
1956 2015-12-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1958         * config/s390/predicates.md (const_mask_operand): New predicate.
1959         * config/s390/s390-builtins.def: Set a smaller bitmask
1960         for a few builtins.
1961         * config/s390/vector.md: Change predicate from immediate_operand
1962         to either const_int_operand or const_mask_operand.  Add special
1963         insn conditions on patterns which have to exclude certain values.
1964         * config/s390/vx-builtins.md: Likewise.
1966 2015-12-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1968         * config/s390/vector.md ("*vec_set<mode>"): Change shift count
1969         mode from DI to SI.
1971 2015-12-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1973         * config/s390/s390-builtin-types.def: New builtin types added.
1974         * config/s390/s390-builtins.def: Add s390_vec_splat_* definitions.
1975         * config/s390/s390.c (s390_expand_builtin): Always truncate
1976         constants to the mode in the pattern.
1977         * config/s390/vecintrin.h: Let the vec_splat_* macros point to the
1978         respective builtin __builtin_s390_vec_splat_*.
1980 2015-12-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1982         * config/s390/s390-builtin-types.def: Sort builtin types.
1984 2015-12-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1986         * config/s390/s390-c.c (s390_get_vstring_flags): Invert the
1987         condition for the RT flag.
1989 2015-12-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1991         * config/s390/constraints.md ("jKK"): New constraint.
1992         * config/s390/s390.c (tm-constrs.h): Include for
1993         satisfies_constraint_*.
1994         (s390_legitimate_constant_p): Allow jKK constants.  Use
1995         satisfies_constraint_* also for the others.
1996         (legitimate_reload_vector_constant_p): Likewise.
1997         (print_operand): Allow h output modifier on vectors.
1998         * config/s390/vector.md ("mov<mode>"): Add vrepi.
2000 2015-12-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2002         * config/s390/vector.md ("*vec_splats<mode>"): Fix constraint
2003         letter I->K.
2005 2015-12-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2007         * config/s390/s390.md ("bswap<mode>2"): Add support for strv and strvg.
2008         ("bswaphi2"): New pattern.
2009         New splitter for HI reg-reg bswap.
2011 2015-11-27  Jiri Engelthaler  <engycz@gmail.com>
2013         PR driver/68029
2014         * opts-common.c (prune_options): Don't ignore -fdiagnostics-color
2015         if it is the first parameter.
2017 2015-12-01  Richard Sandiford  <richard.sandiford@arm.com>
2019         PR tree-optimization/68577
2020         * tree-vect-stmts.c (simple_integer_narrowing): New function.
2021         (vectorizable_call): Restrict internal function handling
2022         to NONE and NARROW cases, using simple_integer_narrowing
2023         to test for the latter.  Add cost of narrowing operation
2024         and insert it where necessary.
2026 2015-12-01  Andreas Tobler  <andreast@gcc.gnu.org>
2028         * config/rs6000/freebsd64.h (ELFv2_ABI_CHECK): Add new macro.
2029         (SUBSUBTARGET_OVERRIDE_OPTIONS): Use it to decide whether to set
2030         rs6000_current_abi to ABI_AIX or ABI_ELFv2.
2032 2015-12-01  Nathan Sidwell  <nathan@acm.org>
2034         * config/nvptx/nvptx-protos.h (nvptx_output_aligned_decl): Declare.
2035         * config/nvptx/nvptx.h (ASM_OUTPUT_ALIGNED_DECL_COMMON,
2036         ASM_OUTPUT_ALIGNED_DECL_LOCAL): Forward to nvptx_output_aligned_decl.
2037         * config/nvptx/nvptx.c (write_fn_marker, write_var_marker): New.
2038         (write_fn_proto, write_fn_proto_from_insn): Call write_fn_marker.
2039         (init_output_initializer): Call write_var_marker.
2040         (nvptx_output_aligned_decl): New.
2041         (nvptx_assemble_undefined_decl, nvptx_file_end): Call write_var_marker.
2043 2015-12-01  Jan Hubicka  <hubicka@ucw.cz>
2045         * c-common.c (parse_optimize_options): Do not silently ignore
2046         -fstrict-aliasing changes.
2048 2015-12-01  Jan Hubicka  <hubicka@ucw.cz>
2050         * lto-streamer-out.c (hash_tree): Do not stream TYPE_ALIAS_SET.
2051         * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not
2052         stream TYPE_ALIAS_SET.
2053         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Do not
2054         stream TYPE_ALIAS_SET.
2056 2015-12-01  Nathan Sidwell  <nathan@acm.org>
2058         * config/nvptx/nvptx.c (nvptx_function_arg_advance): Don't
2059         consider mode.
2061 2015-12-01  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2063         * config/rs6000/rs6000.c (const_load_sequence_p): Handle extra
2064         indirection for large and small code models.
2065         (adjust_vperm): Likewise.
2067 2015-12-01  Julian Brown  <julian@codesourcery.com>
2068             Cesar Philippidis  <cesar@codesourcery.com>
2069             James Norris  <James_Norris@mentor.com>
2071         * gimple-pretty-print.c (dump_gimple_omp_target): Add host_data support.
2072         * gimple.h (gf_mask): Add GF_OMP_TARGET_KIND_OACC_HOST_DATA.
2073         (is_gimple_omp_oacc): Add support for above.
2074         * gimplify.c (omp_region_type): Add ORT_ACC_HOST_DATA.
2075         (omp_notice_variable): Diagnose undefined implicit uses of
2076         use_device variables in offloaded regions.
2077         (gimplify_scan_omp_clauses): Add host_data, use_device
2078         support. Diagnose undefined mapping of use_device variables in
2079         OpenACC clauses.
2080         (gimplify_omp_workshare): Add host_data support.
2081         (gimplify_expr): Likewise.
2082         * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): New.
2083         * omp-low.c (lookup_decl_in_outer_ctx)
2084         (maybe_lookup_decl_in_outer_ctx): Add optional argument to skip
2085         host_data regions.
2086         (scan_sharing_clauses): Support use_device.
2087         (check_omp_nesting_restrictions): Support host_data.
2088         (expand_omp_target): Support host_data.
2089         (lower_omp_target): Skip over outer host_data regions when looking
2090         up decls. Support use_device.
2091         (make_gimple_omp_edges): Support host_data.
2092         * tree-nested.c (convert_nonlocal_omp_clauses): Add use_device clause.
2094 2015-12-01  Marek Polacek  <polacek@redhat.com>
2096         PR middle-end/68582
2097         * cgraphunit.c (check_global_declaration): Only depend
2098         on TREE_THIS_VOLATILE for VAR_DECLs.
2100 2015-12-01  Richard Sandiford  <richard.sandiford@arm.com>
2102         PR tree-optimization/68474
2103         * tree-call-cdce.c (use_internal_fn): Protect call to
2104         gen_shrink_wrap_conditions.
2106 2015-12-01  Christian Bruel  <christian.bruel@st.com>
2108         PR target/68617
2109         * config/arm/arm.opt (unaligned_access): Save.
2110         * config/arm/arm-c.c (__ARM_FEATURE_UNALIGNED): Conditionally define.
2111         * config/arm/arm.c (arm_option_override): Move unaligned_access setting.
2112         (arm_option_override_internal): ... here.
2113         * config/arm/arm.h (TARGET_32BIT_P): New macro.
2115 2015-12-01  Richard Biener  <rguenther@suse.de>
2117         PR tree-optimization/68379
2118         * tree-vect-stmts.c (vectorizable_load): For BB vectorization
2119         always base loads on the first used DR of a group.
2120         * tree-vect-data-refs.c (vect_slp_analyze_and_verify_node_alignment):
2121         Compute alignment of the first scalar element unconditionally.
2123 2015-12-01  Richard Biener  <rguenther@suse.de>
2125         PR middle-end/68590
2126         * genmatch.c (struct capture_info): Add match_use_count.
2127         (capture_info::walk_match): Increment match_use_count.
2128         (dt_simplify::gen_1): For GENERIC, only wrap multi-use
2129         replacements in a save_expr if they occur more often than
2130         in the original expression.
2132 2015-12-01  Richard Biener  <rguenther@suse.de>
2134         PR ipa/68470
2135         * ipa-split.c (split_function): Handle main part not returning.
2137 2015-12-01  Ilya Enkovich  <enkovich.gnu@gmail.com>
2139         PR middle-end/68595
2140         * tree-vect-stmts.c (vect_init_vector): Cast boolean
2141         scalars to a proper value before building a vector.
2143 2015-12-01  Richard Sandiford  <richard.sandiford@arm.com>
2145         * genattrtab.c (check_attr_test): Take an attr_desc instead of
2146         an is_const flag.  Put the file_location argument first.
2147         Update recursive calls.  Improve error messages.
2148         (check_attr_value): Take a file location and use it instead
2149         of attr->loc.  Improve error messages.  Update calls to
2150         check_attr_test.
2151         (check_defs): Update call to check_attr_value.
2152         (make_canonical): Likewise.
2153         (gen_attr): Likewise.
2154         (main): Likewise.
2155         (gen_insn_reserv): Update call to check_attr_test.
2157 2015-12-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2159         * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Fix typo.
2161 2015-12-01  Richard Biener  <rguenther@suse.de>
2163         PR middle-end/68590
2164         * match.pd: Merge (eq @0 @0) and (ge/le @0 @0) patterns.
2166 2015-12-01  Jan Hubicka  <hubicka@ucw.cz>
2168         * ipa-devirt.c (type_with_linkage_p, type_in_anonymous_namespace_p,
2169         odr_type_p): Move to ...
2170         * ipa-utils.h (type_with_linkage_p, type_in_anonymous_namespace_p,
2171         odr_type_p): here; miscro-optimize.
2173 2015-12-01  Bin Cheng  <bin.cheng@arm.com>
2175         PR tree-optimization/68529
2176         * tree-ssa-loop-niter.c (number_of_iterations_ne): Add new param.
2177         Compute no-overflow information for control iv.
2178         (number_of_iterations_lt, number_of_iterations_le): Add new param.
2179         (number_of_iterations_cond): Pass new argument to above functions.
2181 2015-11-30  Jan Hubicka  <hubicka@ucw.cz>
2183         * ipa-inline-transform.c (inline_call): Drop -fstrict-aliasing when
2184         inlining -fno-strict-aliasing into -fstrict-aliasing body.
2186 2015-11-30  Aditya Kumar  <aditya.k7@samsung.com>
2187             Sebastian Pop  <s.pop@samsung.com>
2189         PR tree-optimization/68565
2190         * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Early return on
2191         codegen_error.  Fail when rhs of division operations is integer_zerop.
2192         (ternary_op_to_tree): Early return on codegen_error.
2193         (unary_op_to_tree): Same.
2194         (nary_op_to_tree): Same.
2195         (gcc_expression_from_isl_expr_op): Same.
2196         (gcc_expression_from_isl_expression): Same.
2197         (graphite_create_new_loop): On codegen_error continue generating
2198         wrong code.
2199         (graphite_create_new_loop_guard): Same.
2200         (build_iv_mapping): Same.
2201         (graphite_create_new_guard): Same.
2203 2015-11-30  Aditya Kumar  <aditya.k7@samsung.com>
2204             Sebastian Pop  <s.pop@samsung.com>
2206         * graphite-isl-ast-to-gimple.c: Fix dump messages.
2207         * graphite-scop-detection.c: Same.
2208         * graphite-sese-to-poly.c (isl_id_for_ssa_name): Do not call get_name.
2210 2015-11-30  Cesar Philippidis  <cesar@codesourcery.com>
2212         * tree-nested.c (convert_nonlocal_omp_clauses): Add support for
2213         OMP_CLAUSE_{NUM_GANGS,NUM_VECTORS,VECTOR_LENGTH,SEQ}.
2214         (convert_local_omp_clauses): Likewise.
2216 2015-11-30  Tom de Vries  <tom@codesourcery.com>
2218         PR tree-optimization/46032
2219         * tree-ssa-structalias.c (find_func_aliases_for_call_arg): New function,
2220         factored out of ...
2221         (find_func_aliases_for_call): ... here.
2222         (find_func_aliases_for_builtin_call, find_func_clobbers): Handle
2223         BUILT_IN_GOMP_PARALLEL.
2224         (ipa_pta_execute): Same.  Handle node->parallelized_function as a local
2225         function.
2227 2015-11-30  Jakub Jelinek  <jakub@redhat.com>
2229         PR tree-optimization/68501
2230         * target.def (builtin_reciprocal): Replace the 3 arguments with
2231         a gcall * one, adjust description.
2232         * targhooks.h (default_builtin_reciprocal): Replace the 3 arguments
2233         with a gcall * one.
2234         * targhooks.c (default_builtin_reciprocal): Likewise.
2235         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Use
2236         targetm.builtin_reciprocal even on internal functions, adjust
2237         the arguments and allow replacing an internal function with normal
2238         built-in.
2239         * config/i386/i386.c (ix86_builtin_reciprocal): Replace the 3 arguments
2240         with a gcall * one.  Handle internal fns too.
2241         * config/rs6000/rs6000.c (rs6000_builtin_reciprocal): Likewise.
2242         * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
2243         * doc/tm.texi (builtin_reciprocal): Document.
2245 2015-11-30  Richard Biener  <rguenther@suse.de>
2247         PR tree-optimization/68592
2248         * tree-vect-loop.c (vect_analyze_loop_2): Reset SLP type also
2249         on the pattern def sequence.
2251 2015-11-30  Nathan Sidwell  <nathan@acm.org>
2253         * config/nvptx/nvptx.c (nvptx_name_replacement): Move earlier.
2254         (write_one_arg): Reorder parms, add 'sep' param.
2255         (nvptx_write_function_decl): Rename to ...
2256         (write_fn_proto): ... here.  Do name replacement. Emit linaer
2257         comment marker. Deal with both decls and defns. Simplify argument
2258         formatting.
2259         (write_function_decl_and_comment): Delete.
2260         (write_func_decl_from_insn): Rename to ...
2261         (write_fn_proto_from_insn): ... here.  Don't do name replacement.
2262         (nvptx_record_fndecl): Call write_fn_proto.
2263         (nvptx_record_libfunc): Call write_fn_proto_from_insn.
2264         (nvptx_declare_function_name): Adjust for write_fn_proto changes.
2265         (nvotx_output_call_insn): Call write_fn_prot_from_insn.
2267 2015-11-30  Kirill Yukhin  <kirill.yukhin@intel.com>
2269         * config/i386/i386.md (define_mode_iterator SWI1248_AVX512BW): New.
2270         (define_insn "*k<logic><mode>"): Use new iterator.
2272 2015-11-30  Eric Botcazou  <ebotcazou@adacore.com>
2274         PR target/28115
2275         * config/sparc/sparc.c (supersparc_adjust_cost): Fix thinko.
2276         (sparc_adjust_cost): Add missing space.
2278 2015-11-30  Richard Biener  <rguenther@suse.de>
2280         PR c/68162
2281         * dwarf2out.c (gen_type_die_with_usage): Keep variant types of arrays.
2283 2015-11-30  Venkataramanan Kumar  <Venkataramanan.Kumar@amd.com>
2285         * tree-if-conv.c (struct ifc_dr): Add new tree base_predicate field.
2286         (hash_memrefs_baserefs_and_store_DRs_read_written_info): Hash
2287         base ref, DR pairs and store base_predicate for write type DRs.
2288         (ifcvt_memrefs_wont_trap): Guard checks with
2289         -ftree-loop-if-convert-stores flag.
2291 2015-11-29  Jan Hubicka  <hubicka@ucw.cz>
2293         * cgraph.c (cgraph_node::make_local): No name is unique during
2294         incremental linking.
2295         * cgraph.h (can_be_discarded_p): Update comment; also common and
2296         WEAK in named sections can be discarded; when doing incremental
2297         link do not rely on resolution being the final one.
2298         * varasm.c (default_binds_local_p_3, decl_binds_to_current_def_p):
2299         When symbol can be discarded, do not rely on resolution info.
2300         * symtab.c (symtab_node::nonzero_address): Take into account that
2301         symbol can be discarded.
2302         * ipa-visibility.c (update_visibility_by_resolution_info): Handle
2303         definition correctly.
2304         (function_and_variable_visibility): Do not set unique_name when
2305         incrementally linking.
2307 2015-11-29  Nathan Sidwell  <nathan@acm.org>
2309         * config/nvptx/nvptx.md (const_0_operand, global_mem_operand,
2310         const_mem_operand, param_mem_operand, shared_mem_operand): Delete.
2311         (ctrap<mode>): Use const0_operand.
2313 2015-11-29  Jan Hubicka  <hubicka@ucw.cz>
2315         * ipa-devirt.c (add_type_duplicate): Remove redundant
2316         ODR violation dump.
2318 2015-11-29  David Edelsohn  <dje.gcc@gmail.com>
2320         PR target/28115
2321         * config/rs6000/rs6000.c (rs6000_adjust_cost): Correct
2322         recog_memoized test for insn and check recog_memoized for dep_insn.
2324 2015-11-28  Nathan Sidwell  <nathan@acm.org>
2326         * config/nvptx/nvptx.h (FIRST_PARM_OFFSET): Add void cast.
2327         (FRAME_POINTER_CFA_OFFSET): Define.
2328         (struct nvptx_args): Use 'tree' type.
2329         (INIT_CUMULATIVE_ARGS): Remove unnecessary do...while.
2331 2015-11-28  Tom de Vries  <tom@codesourcery.com>
2333         * lto-wrapper.c (run_gcc): Handle -flinker-output argument.
2335 2015-11-27  Jonathan Wakely  <jwakely@redhat.com>
2337         * doc/invoke.texi (Option Summary): Use negative form of
2338         -Waggressive-loop-optimizations, remove redundant -Wpedantic-ms-format,
2339         sort alphabetically and re-justify.
2341 2015-11-27  Vladimir Makarov  <vmakarov@redhat.com>
2343         PR rtl-optimization/68536
2344         * lra.c (lra_emit_add): Add code for null base.
2345         * lra-constraints.c (curr_insn_transform): Skip operators for
2346         subreg reloads.
2348 2015-11-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2350         Revert
2351         2015-11-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2353         * ifcvt.c (insn_valid_noce_process_p): Reject insn if it satisfies
2354         multiple_sets.
2355         (noce_try_cmove_arith): Add checking asserts that orig_a and orig_b
2356         are not modified by the final modified insns in the basic blocks.
2358 2015-11-27  Nathan Sidwell  <nathan@acm.org>
2360         * config/nvptx/nvptx-protos.h (nvptx_addr_space_from_address):
2361         Don't declare.
2362         * config/nvptx/nvptx.c (nvptx_addr_space_from_sym): New.
2363         (nvptx_maybe_convert_symbolic_operand): Simplify.
2364         (nvptx_addr_space_from_address): Delete.
2365         (nvptx_print_operand): Adjust 'A' case.
2367 2015-11-27  Richard Biener  <rguenther@suse.de>
2369         PR tree-optimization/68559
2370         * tree-vect-data-refs.c (vect_analyze_group_access_1): Move
2371         peeling for gap checks ...
2372         * tree-vect-stmts.c (vectorizable_load): ... here and relax for SLP.
2373         * tree-vect-loop.c (vect_analyze_loop_2): Re-set
2374         LOOP_VINFO_PEELING_FOR_GAPS before re-trying without SLP.
2376 2015-11-27  Nathan Sidwell  <nathan@acm.org>
2378         * config/nvptx/nvptx-protos.h (nvptx_record_needed_decl): Don't declare.
2379         * config/nvptx/nvptx.c (write_func_decl_from_insn): Move earlier.
2380         (nvptx_record_fndecl): Don't return value, remove force
2381         argument. Require fndecl.
2382         (nvptx_record_libfunc): New.
2383         (nvptx_record_needed_decl): Deteermine how to record decl here.
2384         (nvptx_maybe_record_fnsym): New.
2385         (nvptx_expand_call): Don't record libfuncs here,
2386         (nvptx_maybe_convert_symbolic_operand): Use
2387         nvptx_maye_record_fnsym.
2388         (nvptx_assemble_integer): Reimplement with single switch.
2389         (nvptx_output_call_insn): Register libfuncs here.
2390         (nvptx_file_end): Adjust  nvptx_record_fndecl call.
2391         * config/nvptx/nvptx.md (expand_movdi): Don't call
2392         nvptx_record_needed_decl.
2394 2015-11-27  Richard Biener  <rguenther@suse.de>
2396         PR tree-optimization/68553
2397         * tree-vect-slp.c (vect_create_mask_and_perm): Skip VEC_PERM_EXPR
2398         generation for 1:1 permutations.
2399         (vect_transform_slp_perm_load): Detect 1:1 permutations.
2401 2015-11-27  Bernd Schmidt  <bschmidt@redhat.com>
2403         * gimple.h (nonbarrier_call_p): Declare.
2404         * gimple.c (nonbarrier_call_p): New function.
2405         * tree-ssa-phiopt.c (nontrapping_dom_walker::before_dom_children):
2406         Also increment call phase for ASMs with vdef and potential barrier
2407         calls.
2409 2015-11-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2411         * ifcvt.c (insn_valid_noce_process_p): Reject insn if it satisfies
2412         multiple_sets.
2413         (noce_try_cmove_arith): Add checking asserts that orig_a and orig_b
2414         are not modified by the final modified insns in the basic blocks.
2416 2015-11-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2418         PR rtl-optimization/68506
2419         * ifcvt.c (noce_try_cmove_arith): Try emitting the else basic block
2420         first if emit_a exists or then_bb modifies 'b'.  Reindent if-else
2421         blocks.
2423 2015-11-27  Martin Liska  <mliska@suse.cz>
2425         PR c++/68312
2426         * vec.h (release_vec_vec): New function.
2428 2015-11-27  Jakub Jelinek  <jakub@redhat.com>
2430         PR tree-optimization/68552
2431         * optabs.c (expand_vec_perm_1): Move vec_shr handling from here...
2432         (expand_vec_perm): ... here.  Do it regardless of vec_perm_const_optab
2433         or whether v0 == v1.
2435 2015-11-27  Martin Liska  <mliska@suse.cz>
2437         * tree-ssa-uninit.c: Fix whitespaces in the source file.
2438         The change is just automatical.
2440 2015-11-27  Martin Liska  <mliska@suse.cz>
2442         * tree-chkp.c (chkp_make_static_bounds): Release buffer
2443         used for string.
2445 2015-11-27  Martin Liska  <mliska@suse.cz>
2447         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
2448         Do not release memory for comp_alias_ddrs.
2449         * tree-vect-loop.c (destroy_loop_vec_info): Release
2450         the memory for all loop_vec_info.
2452 2015-11-27  Martin Liska  <mliska@suse.cz>
2454         * ipa-devirt.c (ipa_devirt): Use auto_vec instead
2455         of a local-scope vec.
2456         (struct final_warning_record): Use auto_vec instead of vec.
2458 2015-11-27  Richard Biener  <rguenther@suse.de>
2460         PR tree-optimization/68553
2461         * tree-vect-slp.c (vect_get_mask_element): Remove.
2462         (vect_transform_slp_perm_load): Implement in a simpler way.
2464 2015-11-26  Alexandre Oliva <aoliva@redhat.com>
2466         PR rtl-optimization/67753
2467         PR rtl-optimization/64164
2468         * function.c (assign_parm_setup_block): Right-shift
2469         upward-padded big-endian args when bypassing the stack slot.
2471 2015-11-26  Maciej W. Rozycki  <macro@imgtec.com>
2473         * doc/invoke.texi (Option Summary) <MIPS Options>: Reorder
2474         `-mcompact-branches='.
2475         (MIPS Options): Likewise.
2477 2015-11-26  Jakub Jelinek  <jakub@redhat.com>
2479         * Makefile.in (build/genmatch.o): Depend on internal-fn.def.
2481 2015-11-26  David Edelsohn  <dje.gcc@gmail.com>
2483         * doc/install.texi (Prerequisites): Increase ISL requirement to
2484         0.14 or 0.15.
2486 2015-11-26  Matthew Wahab  <matthew.wahab@arm.com>
2488         * config/aarch64/arm_neon.h
2489         (vqrdmlah_laneq_s16, vqrdmlah_laneq_s32): New.
2490         (vqrdmlahq_laneq_s16, vqrdmlahq_laneq_s32): New.
2491         (vqrdmlsh_lane_s16, vqrdmlsh_lane_s32): New.
2492         (vqrdmlshq_laneq_s16, vqrdmlshq_laneq_s32): New.
2493         (vqrdmlah_lane_s16, vqrdmlah_lane_s32): New.
2494         (vqrdmlahq_lane_s16, vqrdmlahq_lane_s32): New.
2495         (vqrdmlahh_s16, vqrdmlahh_lane_s16, vqrdmlahh_laneq_s16): New.
2496         (vqrdmlahs_s32, vqrdmlahs_lane_s32, vqrdmlahs_laneq_s32): New.
2497         (vqrdmlsh_lane_s16, vqrdmlsh_lane_s32): New.
2498         (vqrdmlshq_lane_s16, vqrdmlshq_lane_s32): New.
2499         (vqrdmlshh_s16, vqrdmlshh_lane_s16, vqrdmlshh_laneq_s16): New.
2500         (vqrdmlshs_s32, vqrdmlshs_lane_s32, vqrdmlshs_laneq_s32): New.
2502 2015-11-26  Matthew Wahab  <matthew.wahab@arm.com>
2504         * config/aarch64/arm_neon.h (vqrdmlah_s16, vqrdmlah_s32): New.
2505         (vqrdmlahq_s16, vqrdmlahq_s32): New.
2506         (vqrdmlsh_s16, vqrdmlsh_s32): New.
2507         (vqrdmlshq_s16, vqrdmlshq_s32): New.
2509 2015-11-26  Matthew Wahab  <matthew.wahab@arm.com>
2511         * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Add
2512         ARM_FEATURE_QRDMX.
2514 2015-11-26  Pierre-Marie de Rodat  <derodat@adacore.com>
2516         PR debug/53927
2517         * tree-nested.c (finalize_nesting_tree_1): Append a field to
2518         hold the frame base address.
2519         * dwarf2out.c (gen_subprogram_die): Generate for
2520         DW_AT_static_link a location description that computes the value
2521         of this field.
2523 2015-11-26  Tom de Vries  <tom@codesourcery.com>
2525         revert:
2526         2015-11-25  Tom de Vries  <tom@codesourcery.com>
2528         * cfgloop.c (find_single_latch): New function, factored out of ...
2529         (flow_loops_find): ... here.
2530         (verify_loop_structure): Improve verification of loop->latch.
2531         * cfgloop.h (find_single_latch): Declare.
2532         * omp-low.c (expand_omp_for_generic): Initialize latch of orig_loop.
2534 2015-11-26  Matthew Wahab  <matthew.wahab@arm.com>
2536         * config/aarch64/aarch64-simd-builtins.def:
2537         Add missing changes from r230962.
2539 2015-11-26  Nathan Sidwell  <nathan@acm.org>
2541         * config/nvptx/nvptx.c (write_func_decl_from_insn): Replace callee
2542         arg with name.  Don't deal with split regs.  Tweak formatting.
2543         (nvptx_expand_call): Adjust write_func_decl_from_insn call.
2544         (nvptx_output_call_insn): Don't deal with split regs here.
2546 2015-11-26  Matthew Wahab  <matthew.wahab@arm.com>
2548         * config/aarch64/aarch64-simd-builtins.def
2549         (sqrdmlah, sqrdmlsh): New.
2550         (sqrdmlah_lane, sqrdmlsh_lane): New.
2551         (sqrdmlah_laneq, sqrdmlsh_laneq): New.
2553 2015-11-26  Matthew Wahab  <matthew.wahab@arm.com>
2555         * config/aarch64/aarch64-simd.md
2556         (aarch64_sqmovun<mode>): Fix some white-space.
2557         (aarch64_<sur>qmovun<mode>): Likewise.
2558         (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h<mode>): New.
2559         (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): New.
2560         (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): New.
2561         * config/aarch64/iterators.md (UNSPEC_SQRDMLAH): New.
2562         (UNSPEC_SQRDMLSH): New.
2563         (SQRDMLH_AS): New.
2564         (rdma_as): New.
2566 2015-11-26  Richard Biener  <rguenther@suse.de>
2568         PR tree-optimization/66721
2569         * tree-vect-loop.c (vect_analyze_loop_2): Compute scalar
2570         iteration cost earlier.  Re-do analysis without SLP when
2571         vectorization using SLP fails and without has a chance to succeed.
2573 2015-11-26  Richard Biener  <rguenther@suse.de>
2575         * genmatch.c (dt_simplify::gen_1): For generic wrap all
2576         multi-result-use captures in a SAVE_EXPR.
2578 2015-11-26  Matthew Wahab  <matthew.wahab@arm.com>
2580         * config/aarch64/aarch64.h (AARCH64_ISA_RDMA): New.
2581         (TARGET_SIMD_RDMA): New.
2583 2015-11-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2585         * combine.c (subst): Do not return clobber of zero in widening mult
2586         case.  Just return x unchanged if it is a no-op substitution.
2588 2015-11-26  Vladimir Makarov  <vmakarov@redhat.com>
2590         PR target/68416
2591         * config/i386/i386.h (enum reg_class): Add
2592         bounds registers to ALL_REGS.
2594 2015-11-26  Jakub Jelinek  <jakub@redhat.com>
2596         PR tree-optimization/68128
2597         * tree.h (OMP_CLAUSE_SHARED_READONLY): Define.
2598         * gimplify.c: Include gimple-walk.h.
2599         (enum gimplify_omp_var_data): Add GOVD_WRITTEN.
2600         (omp_notice_variable): Set flags to n->value if n already
2601         exists in target region, but we need to jump to do_outer.
2602         (omp_shared_to_firstprivate_optimizable_decl_p,
2603         omp_mark_stores, omp_find_stores_op, omp_find_stores_stmt): New
2604         functions.
2605         (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_SHARED_READONLY
2606         on OMP_CLAUSE_SHARED if it is a scalar non-addressable that is
2607         not modified in the body.  Call omp_mark_stores for outer
2608         contexts on OMP_CLAUSE_SHARED clauses if they could be written
2609         in the body or on OMP_CLAUSE_LASTPRIVATE.
2610         (gimplify_adjust_omp_clauses): Add body argument, call
2611         omp_find_stores_{stmt,op} on the body through walk_gimple_seq.
2612         Set OMP_CLAUSE_SHARED_READONLY
2613         on OMP_CLAUSE_SHARED if it is a scalar non-addressable that is
2614         not modified in the body.  Call omp_mark_stores for outer
2615         contexts on OMP_CLAUSE_SHARED clauses if they could be written
2616         in the body or on OMP_CLAUSE_LASTPRIVATE or on OMP_CLAUSE_LINEAR
2617         without OMP_CLAUSE_LINEAR_NO_COPYOUT or on OMP_CLAUSE_REDUCTION.
2618         (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task,
2619         gimplify_omp_for, gimplify_omp_workshare, gimplify_omp_target_update,
2620         gimplify_expr): Adjust gimplify_adjust_omp_clauses callers.
2621         * tree-nested.c (convert_nonlocal_omp_clauses,
2622         convert_local_omp_clauses): Clear OMP_CLAUSE_SHARED_READONLY on
2623         non-local vars or local vars referenced from nested routines.
2624         * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_SHARED_READONLY
2625         attempt to optimize it into OMP_CLAUSE_FIRSTPRIVATE.  Even for
2626         TREE_READONLY, don't call use_pointer_for_field with non-NULL
2627         second argument until we are sure we are keeping OMP_CLAUSE_SHARED.
2629 2015-11-26  Paolo Bonzini <bonzini@gnu.org>
2631         * doc/implement-c.texi (Integers Implementation): Make GCC's promises
2632         about signed left shift stronger and clarify the cases when they're
2633         broken.
2635 2015-11-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2636             Bernd Schmidt  <bschmidt@redhat.com>
2638         PR rtl-optimization/67226
2639         * calls.c (store_one_arg): Take into account
2640         crtl->args.pretend_args_size when checking for overlap between
2641         arg->value and argblock + arg->locate.offset during sibcall
2642         optimization.
2644 2015-11-26  Wilco Dijkstra  <wdijkstr@arm.com>
2646         * config/aarch64/aarch64.md (cbranch<mode>4): Use
2647         aarch64_fp_compare_operand.
2648         (store_pairsf): Use aarch64_reg_or_fp_zero.
2649         (store_pairdf): Likewise.
2650         (cstore<mode>4): Use aarch64_fp_compare_operand.
2651         (cmov<mode>6): Likewise.
2652         * config/aarch64/aarch64-ldpstp.md: Use aarch64_reg_or_fp_zero.
2654 2015-11-25  Aditya Kumar  <aditya.k7@samsung.com>
2655             Sebastian Pop  <s.pop@samsung.com>
2657         PR tree-optimization/68453
2658         * graphite-isl-ast-to-gimple.c (translate_isl_ast_for_loop): Do
2659         not redirect edges already pointing to their destination.
2660         (translate_isl_ast_node_for): Split edges after loops to create
2661         basic blocks for close phi nodes.  Save merge points at the end of
2662         a loop guard.
2663         (translate_isl_ast_node_if): Save merge points at the end of the
2664         if region.
2665         (add_close_phis_to_outer_loops): New.
2666         (add_close_phis_to_merge_points): New.
2667         (copy_loop_close_phi_args): Call add_close_phis_to_merge_points.
2668         (copy_bb_and_scalar_dependences): Do not split basic blocks on
2669         loop close phi locations.
2671 2015-11-25  Jan Hubicka  <jh@suse.cz>
2673         * ipa-visibility.c (cgraph_externally_visible_p,
2674         varpool_node::externally_visible_p): When doing incremental linking,
2675         hidden symbols may be still used later.
2676         (update_visibility_by_resolution_info): Do not drop weak during
2677         incremental link.
2678         (function_and_variable_visibility): Fix formating.
2679         * flag-types.h (lto_linker_output): Declare.
2680         * common.opt 9flag_incremental_link): New flag.
2682 2015-11-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
2684         * config/rs6000/constraints.md (wb constraint): New constraint for
2685         ISA 3.0 d-form scalar addressing.
2687         * config/rs6000/rs6000.c (mode_supports_vmx_dform): Add support
2688         for ISA 3.0 D-form addressing to load SFmode/DFmode scalars into
2689         Altivec registers.  Add wb constraint for Altivec registers with
2690         D-form addressing.  If we have ISA 3.0 d-form support, undo
2691         secondary reload support for using FPR registers if we want to do
2692         D-form addressing.
2693         (rs6000_debug_reg_global): Likewise.
2694         (rs6000_setup_reg_addr_masks): Likewise.
2695         (rs6000_init_hard_regno_mode_ok): Likewise.
2696         (rs6000_secondary_reload): Likewise.
2697         (rs6000_preferred_reload_class): Likewise.
2698         (rs6000_secondary_reload_class): Likewise.
2700         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wb
2701         constraint.
2703         * config/rs6000/rs6000.md (f32_lr2 mode attribute): Add support
2704         for ISA 3.0 SFmode/DFmode d-form addressing to Altivec registers.
2705         (f32_lm2): Likewise.
2706         (f32_li2): Likewise.
2707         (f32_sr2): Likewise.
2708         (f32_sm2): Likewise.
2709         (f32_si2): Likewise.
2710         (f64_p9): Likewise.
2711         (extendsfdf2_fpr): Likewise.
2712         (mov<mode>_hardfloat): Likewise.
2713         (mov<mode>_hardfloat32): Likewise.
2714         (mov<mode>_hardfloat64): Likewise.
2716         * doc/md.texi (RS/6000 constraints): Document wb constraint.
2717         Fixup we constraint documentation.
2719 2015-11-25  Tom de Vries  <tom@codesourcery.com>
2721         * omp-low.c (pass_expand_omp_ssa::clone): New function.
2722         * passes.def: Add pass_oacc_kernels pass group.
2723         * tree-ssa-loop-ch.c (pass_ch::clone): New function.
2725 2015-11-25  Tom de Vries  <tom@codesourcery.com>
2727         * tree-pass.h (make_pass_oacc_kernels, make_pass_oacc_kernels2):
2728         Declare.
2729         * tree-ssa-loop.c (gate_oacc_kernels): New static function.
2730         (pass_data_oacc_kernels, pass_data_oacc_kernels2): New pass_data.
2731         (class pass_oacc_kernels, class pass_oacc_kernels2): New pass.
2732         (make_pass_oacc_kernels, make_pass_oacc_kernels2): New function.
2734 2015-11-25  Jan Hubicka  <hubicka@ucw.cz>
2736         * timevar.def (TV_IPA_LTO_DECOMPRESS, TV_IPA_LTO_COMPRESS,
2737         TV_IPA_LTO_OUTPUT): New.
2738         * lto-compress.c: Include timevar.h
2739         (lto_end_compression, lto_end_uncompression): Add timers.
2740         * langhooks.c: Include timevar.h.
2741         (lhd_append_data): Add timer.
2743 2015-11-25  Jan Hubicka  <hubicka@ucw.cz>
2745         * varasm.c (default_elf_asm_output_limited_string,
2746         default_elf_asm_output_ascii): Replace fprintf by putc.
2748 2015-11-25  Vladimir Makarov  <vmakarov@redhat.com>
2750         PR rtl-optimization/67954
2751         * lra-constraints.c (curr_insn_transform): Add check on scratch
2752         pseudo when change class to NO_REGS.  Add an assert.
2754 2015-11-25  Nathan Sidwell  <nathan@acm.org>
2756         * config/nvptx/nvptx.md (load_arg_reg<mode>): Arg number
2757         constraint is 'n'.
2758         * config/nvptx/nvptx.c (write_one_arg): Use 'i' directly as arg number.
2759         (nvptx_write_function_decl): Number args from 0.
2760         (nvptx_declare_function_name): Likewise.
2761         (nvptx_function_incoming_arg): Likewise.
2762         (nvptx_output_call_insn): Correct formatting.
2764 2015-11-25  David Sherwood  <david.sherwood@arm.com>
2766         * optabs.def: Add new optabs fmax_optab/fmin_optab.
2767         * internal-fn.def: Add new fmax/fmin internal functions.
2768         * doc/md.texi: Add fmin and fmax patterns.
2770 2015-11-25  Jason Merrill  <jason@redhat.com>
2772         PR c++/68385
2773         * tree.c (integer_zerop, integer_onep, integer_each_onep)
2774         (integer_all_onesp, integer_minus_onep, integer_pow2p)
2775         (integer_nonzerop, integer_truep, tree_log2, tree_floor_log2)
2776         (real_zerop, real_onep, real_minus_onep): Remove STRIP_NOPS.
2778 2015-11-25  Richard Biener  <rguenther@suse.de>
2780         PR middle-end/68528
2781         * fold-const.c (fold_binary_loc): Do not call negate_expr_p
2782         on stripped operands.
2784 2015-11-25  Nathan Sidwell  <nathan@acm.org>
2786         * config/nvptx/nvptx.c (walk_args_for_params): Delete.
2787         (nvptx_declare_function_name): Move assignments next to register
2788         declarations, and process params here.
2790 2015-11-25  David Edelsohn  <dje.gcc@gmail.com>
2792         * config/rs6000/rs6000.c (rs6000_declare_alias): Rename and globalize
2793         both the symbol and the "dot" symbol for function descriptors. Fix
2794         inversion for rename of symbols with dollar sign.
2796 2015-11-25  Tom de Vries  <tom@codesourcery.com>
2798         * cfgloop.c (find_single_latch): New function, factored out of ...
2799         (flow_loops_find): ... here.
2800         (verify_loop_structure): Improve verification of loop->latch.
2801         * cfgloop.h (find_single_latch): Declare.
2802         * omp-low.c (expand_omp_for_generic): Initialize latch of orig_loop.
2804 2015-11-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2806         * config/sol2.h (SUPPORTS_INIT_PRIORITY): Move up.
2807         (STARTFILE_VTV_SPEC, ENDFILE_VTV_SPEC): Define.
2808         (STARTFILE_SPEC): Use %(startfile_vtv).
2809         (ENDFILE_SPEC): Use %(endfile_vtv).
2810         (SUBTARGET_EXTRA_SPECS): Handle STARTFILE_VTV_SPEC,
2811         ENDFILE_VTV_SPEC.
2813         * gcc.c (LINK_COMMAND_SPEC): Move VTABLE_VERIFICATION_SPEC after %{L*}.
2815 2015-11-25  Bernd Schmidt  <bschmidt@redhat.com>
2817         * ifcvt.c (noce_mem_write_may_trap_or_fault_p,
2818         noce_can_store_speculate): Delete.
2819         (noce_process_if_block): Don't try to handle single MEM stores.
2820         * rtl.h (memory_must_be_modified_in_insn_p): Don't declare.
2821         * alias.c (memory_must_be_modified_in_insn_p): Delete.
2823 2015-11-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2825         PR rtl-optimization/68435
2826         * ifcvt.c (noce_try_cmove_arith): Skip final insn when checking
2827         for conflicts between a, b and the set destinations.
2829 2015-11-25  Richard Biener  <rguenther@suse.de>
2831         PR tree-optimization/68517
2832         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses):
2833         Properly handle zero-sized types.
2835 2015-11-24  Jan Hubicka  <hubicka@ucw.cz>
2837         * ipa-inline-analysis.c: Include gimplify.h
2838         (set_cond_stmt_execution_predicate,
2839         set_switch_stmt_execution_predicate): Be sure to not leak locations
2840         to function body.
2842 2015-11-25  Jakub Jelinek  <jakub@redhat.com>
2844         PR target/67089
2845         * tree-ssa-math-opts.c (uaddsub_overflow_check_p,
2846         match_uaddsub_overflow): New functions.
2847         (pass_optimize_widening_mul::execute): Call match_uaddsub_overflow.
2849 2015-11-25  Richard Biener  <rguenther@suse.de>
2851         PR tree-optimization/68492
2852         * tree-vect-slp.c (vect_build_slp_tree): Consistently build up
2853         op from scalars after operand swapping.
2855 2015-11-25  Richard Biener  <rguenther@suse.de>
2857         PR tree-optimization/68502
2858         * tree-vect-data-refs.c (vect_analyze_group_access_1): Restore
2859         check that the step is a multiple of the type size.
2861 2015-11-24  Michael Collison  <michael.collison@linaro.org>
2863         * config/aarch64/aarch64-simd.md (widen_ssum, widen_usum)
2864         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w<mode>_internal): New patterns
2865         * config/aarch64/iterators.md (Vhalf, VDBLW): New mode attributes.
2867 2015-11-24  Steve Ellcey  <sellcey@imgtec.com>
2869         * frame-header-opt.c (gate): Check for optimize > 0.
2870         (has_inlined_assembly): New function.
2871         (needs_frame_header_p): Remove is_leaf_function check,
2872         add argument type check.
2873         (callees_functions_use_frame_header): Add is_leaf_function
2874         and has_inlined_assembly calls..
2875         (set_callers_may_not_allocate_frame): New function.
2876         (frame_header_opt): Add is_leaf_function call, add
2877         set_callers_may_not_allocate_frame call.
2878         * config/mips/mips.c (mips_compute_frame_info): Add check
2879         to see if callee saved regs can be put in frame header.
2880         (mips_expand_prologue): Add check to see if step1 is zero,
2881         fix cfa restores when using frame header to store regs.
2882         (mips_can_use_return_insn): Check to see if registers are
2883         stored in frame header.
2884         * config/mips/mips.h (machine_function): Add
2885         callers_may_not_allocate_frame and
2886         use_frame_header_for_callee_saved_regs fields.
2888 2015-11-24  Segher Boessenkool  <segher@kernel.crashing.org>
2890         PR rtl-optimization/68520
2891         * shrink-wrap.c (try_shrink_wrapping): Don't push a block to VEC if
2892         its bit was already set in BB_WITH.
2894 2015-11-24  Jan Hubicka  <hubicka@ucw.cz>
2896         * alias.c (get_alias_set): Before checking TYPE_ALIAS_SET_KNOWN_P
2897         double check that type is main variant.
2898         * tree.c (build_variant_type_copy): Clear TYPE_ALIAS_SET when producing
2899         variant.
2900         (verify_type_variant): Verify that variants have no
2901         TYPE_ALIAS_SET_KNOWN_P set
2902         * tree-streamer-out.c (pack_ts_type_common_value_fields): Reorder
2903         streaming so constant fields come first; stream TYPE_ALIAS_SET==0
2904         only for main variants; stream TYPE_ALIAS_SET as a bit.
2905         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Update
2906         accordingly.
2908 2015-11-24  Jan Hubicka  <hubicka@ucw.cz>
2910         * tree.c (make_vector_type): Properly compute canonical type of the
2911         main variant.
2912         (verify_type): Verify that TYPE_CANONICAL of TYPE_MAIN_VARIANT is
2913         a main variant.
2915 2015-11-24  Nathan Sidwell  <nathan@acm.org>
2917         * config/nvptx/nvptx.c (maybe_split_mode): Return new mode or
2918         VOIDmode, don't alter incoming mode.
2919         (nvptx_split_reg_p): Delete.
2920         (write_one_arg, walk_args_for_param, nvptx_declare_function_name,
2921         write_func_decl_from_insn, nvptx_output_call_insn): Adjust
2922         maybe_split_mode calls.
2923         (nvptx_print_operand): Use maybe_split_mode.
2925 2015-11-24  Jan Hubicka  <hubicka@ucw.cz>
2927         * lto-streamer-in.c (lto_read_body_or_constructor): Set TYPE_CANONICAL
2928         only for types where LTO sets them.
2929         * tree.c (build_array_type_1): Do ont set TYPE_CANONICAL for LTO.
2930         (make_vector_type): Likewise.
2931         (gimple_canonical_types_compatible_p): Use canonical_type_used_p.
2932         * tree.h (canonical_type_used_p): New inline.
2933         * alias.c (get_alias_set): Handle structural equality for all
2934         types that pass canonical_type_used_p.
2935         (record_component_aliases): Look through all types with
2936         record_component_aliases for possible pointers; sanity check that
2937         the alias sets match.
2939 2015-11-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
2941         * config/rs6000/rs6000.md (lround<mode>di2): Remove constraints.
2943 2015-11-24  Jan Hubicka  <hubicka@ucw.cz>
2945         * tree.c (free_node): New function.
2946         (type_hash_canon): Use it.
2947         * tree.h (free_node): Declare.
2949 2015-11-24  David Edelsohn  <dje.gcc@gmail.com>
2950             Michael Meissner  <meissner@linux.vnet.ibm.com>
2952         * config/rs6000/rs6000.md (UNSPEC_XSRDPI): New unspec.
2953         (Fv2): New mode attribute to be used when ISA 2.07 instructions
2954         are used on SF values, and ISA 2.06 instructions on DF values.
2955         (add<mode>3_fpr): Use <Fv2> instead of <Fv>.
2956         (sub<mode>3_fpr): Use <Fv2> instead of <Fv>.
2957         (mul<mode>3_fpr): Use <Fv2> instead of <Fv>.
2958         (div<mode>3_fpr): Use <Fv2> instead of <Fv>.
2959         (sqrt<mode>2): Use <Fv2> instead of <Fv>.
2960         (fre<Fs>): Use <Fv2> instead of <Fv>.
2961         (rsqrt<mode>2): Use <Fv2> instead of <Fv>.
2962         (cmp<mode>_fpr): Use <Fv2> instead of <Fv>.
2963         (xsrdpi<mode>): Add support for the lround function.
2964         (lround<mode>di2): Likewise.
2965         (fma<mode>4_fpr): Use <Fv2> instead of <Fv>.
2966         (fms<mode>4_fpr): Use <Fv2> instead of <Fv>.
2967         (nfma<mode>4_fpr): Use <Fv2> instead of <Fv>.
2968         (nfms<mode>4_fpr): Use <Fv2> instead of <Fv>.
2970 2015-11-24  Aditya Kumar  <aditya.k7@samsung.com>
2971             Sebastian Pop  <s.pop@samsung.com>
2973         PR tree-optimization/67984
2974         * graphite-isl-ast-to-gimple.c (is_constant): New.
2975         (get_rename): Call is_constant.
2976         (get_new_name): Same.
2978 2015-11-24  Aditya Kumar  <aditya.k7@samsung.com>
2979             Sebastian Pop  <s.pop@samsung.com>
2981         * graphite-dependences.c: Only include graphite.h.
2982         * graphite-isl-ast-to-gimple.c: Same.
2983         * graphite-optimize-isl.c: Same.
2984         * graphite-poly.c: Same.
2985         * graphite-scop-detection.c: Same.
2986         * graphite-sese-to-poly.c: Same.
2987         * graphite.c: Same.
2988         * graphite-isl-ast-to-gimple.h: Move to graphite.h.
2989         * graphite-poly.h: Same.
2990         * graphite-scop-detection.h: Same.
2991         * graphite.h: New.
2993 2015-11-24  Pierre-Marie de Rodat  <derodat@adacore.com>
2995         * dwarf2out.c (gen_decl_die): Generate DW_TAG_imported_* instead of
2996         DW_TAG_namespace for IMPORTED_DECL declarations.  Call
2997         dwarf2out_imported_module_or_decl_1 for all DWARF versions as this
2998         function already takes care of checking what it can emit.
3000 2015-11-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3002         * doc/invoke.texi (-fpic): Add the AArch64 limit.
3003         (-fPIC): Add AArch64.
3005 2015-11-24  Tom de Vries  <tom@codesourcery.com>
3007         * tree-ssa-loop-im.c (tree_ssa_lim): Make static.
3008         (pass_lim::execute): Allow to run outside pass_tree_loop.
3010 2015-11-24  Wilco Dijkstra  <wdijkstr@arm.com>
3012         * config/aarch64/aarch64.md (add<mode>3):
3013         Block early expansion into 2 add instructions.
3014         (add<mode>3_pluslong): New pattern to combine complex
3015         immediates into 2 additions.
3017 2015-11-24  Segher Boessenkool  <segher@kernel.crashing.org>
3019         PR target/66217
3020         PR target/67677
3021         PR target/68332
3022         * config/rs6000/predicates.md (and_operand): Check that the operand
3023         is a const_int before calling rs6000_is_valid_and_mask.
3025 2015-11-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3027         * config/aarch64/aarch64.md (*condjump): Rename to...
3028         (condjump): ... This.
3029         (*compare_condjump<mode>): New define_insn_and_split.
3030         (*compare_cstore<mode>_insn): Likewise.
3031         (*cstore<mode>_insn): Rename to...
3032         (cstore<mode>_insn): ... This.
3033         * config/aarch64/iterators.md (CMP): Handle ne code.
3034         * config/aarch64/predicates.md (aarch64_imm24): New predicate.
3036 2015-11-24  Mikhail Maltsev  <maltsevm@gmail.com>
3038         PR target/68497
3039         * config/i386/i386.c (output_387_binary_op): Fix assertion for
3040         -fno-checking case.
3042 2015-11-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3044         * tree-ssa-uncprop.c (struct val_ssa_equiv_hash_traits): Remove.
3045         (val_ssa_equiv_hash_traits::remove): Likewise.
3046         (pass_uncprop::execute): Adjust.
3048 2015-11-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3050         * hash-map-traits.h (simple_hashmap_traits ::remove): call
3051         destructors on values that are being removed.
3052         * mem-stats.h (hash_map): Pass type of values to
3053         simple_hashmap_traits.
3054         * tree-sra.c (sra_deinitialize): Remove work around for hash
3055         maps not destructing values.
3056         * genmatch.c (sinfo_hashmap_traits): Adjust.
3057         * tree-ssa-uncprop.c (val_ssa_equiv_hash_traits): Likewise.
3059 2015-11-24  Richard Biener  <rguenther@suse.de>
3060             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3062         PR middle-end/68375
3063         * cfgloop.c (get_loop_body_in_bfs_order): Restructure loop to avoid
3064         bogus assertion.
3066 2015-11-24  Jakub Jelinek  <jakub@redhat.com>
3068         PR target/68483
3069         * tree-vect-generic.c (lower_vec_perm): If VEC_PERM_EXPR
3070         is valid vec_shr pattern, don't lower it even if can_vec_perm_p
3071         returns false.
3072         * optabs.c (shift_amt_for_vec_perm_mask): Return NULL_RTX
3073         whenever first is nelt or above.  Don't mask expected with
3074         2 * nelt - 1.
3076 2015-11-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
3078         PR c/68337
3079         * gimple-fold.c: Include ipa-chkp.h.
3080         (gimple_fold_builtin_memory_op): Don't fold call if we
3081         are going to instrument it and it may copy pointers.
3083 2015-11-24  Bernd Schmidt <bschmidt@redhat.com>
3084             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3086         PR rtl-optimization/68194
3087         PR rtl-optimization/68328
3088         PR rtl-optimization/68185
3089         * ree.c (combine_reaching_defs): Reject copy_needed case if
3090         copies_list is not empty.
3092 2015-11-24  Richard Biener  <rguenther@suse.de>
3094         PR middle-end/68221
3095         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Properly
3096         use mem_ref_offset.
3098 2015-11-24  Segher Boessenkool  <segher@kernel.crashing.org>
3100         PR rtl-optimization/68381
3101         * combine.c (is_parallel_of_n_reg_sets): Return false if the pattern
3102         is poisoned.
3104 2015-11-23  Nick Clifton  <nickc@redhat.com>
3105             Jeff Law  <law@redhat.com>
3107         * ree.c (add_removable_extension): Avoid mis-optimizing cases where
3108         the source/dest of the target extension require a different number of
3109         hard registers.
3110         (combine_set_extension): Remove #if 0 code.
3112 2015-11-23  Aditya Kumar  <aditya.k7@samsung.com>
3113             Sebastian Pop  <s.pop@samsung.com>
3115         PR tree-optimization/68314
3116         * graphite-optimize-isl.c (optimize_isl): Do not call
3117         isl_union_map_is_equal.
3118         * graphite-poly.c (new_scop): Remove original_schedule.
3119         (free_scop): Same.
3120         * graphite-poly.h (struct scop): Same.
3121         * graphite-sese-to-poly.c (build_pbb_minimal_scattering_polyhedrons):
3122         Remove.
3123         (build_pbb_scattering_polyhedrons): Add back.
3124         (build_scop_minimal_scattering): Remove.
3125         (build_scop_scattering): Add back.
3126         (build_scop_original_schedule): Remove.
3127         (build_poly_scop): Revert to only call build_scop_scattering.
3129 2015-11-23  Aditya Kumar  <aditya.k7@samsung.com>
3130             Sebastian Pop  <s.pop@samsung.com>
3132         PR tree-optimization/68493
3133         * graphite-isl-ast-to-gimple.c (translate_pending_phi_nodes): Add
3134         missing early return when codegen_error is set.
3136 2015-11-23  Aditya Kumar  <aditya.k7@samsung.com>
3137             Sebastian Pop  <s.pop@samsung.com>
3139         PR tree-optimization/68279
3140         * graphite-poly.c (new_scop): Remove poly_scop_p.
3141         * graphite-poly.h (struct scop): Same.
3142         (build_poly_scop): Declare.
3143         * graphite-sese-to-poly.c: Do not include graphite-sese-to-poly.h.
3144         (cleanup_loop_iter_dom): New.
3145         (build_loop_iteration_domains): Early return when scev analysis fails.
3146         (create_pw_aff_from_tree): Same.
3147         (add_condition_to_pbb): Same.
3148         (add_conditions_to_domain): Same.
3149         (add_conditions_to_constraints): Same.
3150         (build_scop_iteration_domain): Same.
3151         (build_poly_scop): Same.  Do not initialize poly_scop_p.
3152         * graphite-sese-to-poly.h: Remove.
3153         * graphite.c: Do not include graphite-sese-to-poly.h.
3154         (graphite_transform_loops): Stop before code generation when
3155         build_poly_scop fails.
3156         * sese.c (scalar_evolution_in_region): Add fixme note about scev
3157         analysis.
3159 2015-11-23  Aditya Kumar  <aditya.k7@samsung.com>
3160             Sebastian Pop  <s.pop@samsung.com>
3162         * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
3163         Remove call to update_ssa.
3164         * sese.c (sese_insert_phis_for_liveouts): Same.
3166 2015-11-23  Marek Polacek  <polacek@redhat.com>
3168         PR tree-optimization/68455
3169         * tree-vrp.c (extract_range_from_binary_expr_1): Don't call
3170         extract_range_from_multiplicative_op_1 on symbolic ranges.
3172 2015-11-23  Richard Henderson  <rth@redhat.com>
3174         * optabs.def (uaddv4_optab, usubv4_optab): New.
3175         * internal-fn.c (expand_addsub_overflow): Use them.
3176         * doc/md.texi (Standard Names): Add uaddv<m>4, usubv<m>4.
3178         * config/i386/i386.c (ix86_cc_mode): Extend add overflow check
3179         to reversed operands.
3180         * config/i386/i386.md (uaddv<SWI>4, usubv<SWI>4): New.
3181         (*add<SWI>3_cconly_overflow_1): Rename *add<SWI>3_cconly_overflow.
3182         (*add<SWI>3_cc_overflow_1): Rename *add<SWI>3_cc_overflow.
3183         (*addsi3_zext_cc_overflow_1): Rename *add3_zext_cc_overflow.
3184         (*add<SWI>3_cconly_overflow_2): New.
3185         (*add<SWI>3_cc_overflow_2): New.
3186         (*addsi3_zext_cc_overflow_2): New.
3188 2015-11-23  Richard Biener  <rguenther@suse.de>
3190         PR tree-optimization/68465
3191         * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children):
3192         Also record equalities from multiple predecessor blocks if
3193         only one non-backedge exists.
3195 2015-11-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3197         PR target/68363
3198         * config/aarch64/aarch64.c (aarch64_madd_needs_nop): Reject arguments
3199         that are not INSN_P.
3201 2015-11-23  Bilyan Borisov  <bilyan.borisov@arm.com>
3203         * config/aarch64/aarch64-builtins.c
3204         (aarch64_gimple_fold_builtin): Fold FMULX.
3206 2015-11-23  David Edelsohn  <dje.gcc@gmail.com>
3208         * system.h: Don't poison calloc and strdup if USES_ISL is defined.
3209         * graphite-dependences.c: Define USES_ISL.  Include ISL header files
3210         after GCC header files and before graphite header files.
3211         * graphite-dependences.c: Same.
3212         * graphite-isl-ast-to-gimple.c: Same.
3213         * graphite-optimize-isl.c: Same.
3214         * graphite-poly.c: Same.
3215         * graphite-scop-detection.c: Same.
3216         * graphite-sese-to-poly.c: Same.
3217         * graphite.c: Same.
3219 2015-11-23  Richard Biener  <rguenth@gcc.gnu.org>
3220             Jiong Wang  <jiong.wang@arm.com>
3222         PR tree-optimization/68317
3223         PR tree-optimization/68326
3224         * tree-vrp.c (adjust_range_with_scev): Call drop_tree_overflow if the
3225         final min and max are not infinity.
3227 2015-11-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
3228             Richard Biener  <rguenther@suse.de>
3230         PR tree-optimization/68327
3231         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
3232         compute vectype for non-relevant mask producers.
3233         * tree-vect-stmts.c (vectorizable_comparison): Check stmt
3234         relevance earlier.
3236 2015-11-23  Tom de Vries  <tom@codesourcery.com>
3238         PR tree-optimization/68460
3239         * tree-parloops.c (gather_scalar_reductions): Also call
3240         free_stmt_vec_info_vec if simple_loop_info == NULL.
3242 2015-11-23  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
3244         * opts.c (finish_options): Allow -fsanitize-recover=address for
3245         userspace sanitization.
3246         * asan.c (asan_expand_check_ifn): Redefine recover_p.
3247         * doc/invoke.texi (fsanitize-recover): Update documentation.
3249 2015-11-23  Tom de Vries  <tom@codesourcery.com>
3251         * omp-low.c (build_receiver_ref): Mark by_ref mem_ref as non-trapping.
3253 2015-11-23  Richard Biener  <rguenther@suse.de>
3255         PR tree-optimization/68445
3256         * tree-vect-slp.c (vect_create_mask_and_perm): Properly use
3257         two different strides.
3259 2015-11-23  Robin Dapp  <rdapp@linux.vnet.ibm.com>
3261         * config/s390/s390.h: Add new symref flags, _NOTALIGN2 etc.
3262         * config/s390/s390.c (s390_check_symref_alignment): Use new
3263         symref flags, early abort on wrong alignment
3264         (s390_secondary_reload): Use new symref flags.
3265         (s390_encode_section_info): Likewise.
3266         * config/s390/predicates.md: Likewise.
3268 2015-11-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
3270         PR target/68390
3271         * config/arm/arm.c (arm_function_ok_for_sibcall): Get function type
3272         for indirect function call.
3274 2015-11-22  Bilyan Borisov  <bilyan.borisov@arm.com>
3276         * config/aarch64/aarch64-simd.md
3277         (*aarch64_mulx_elt_<vswap_width_name><mode>, VDQSF): New.
3278         (*aarch64_mulx_elt<mode>, VDQF): Likewise.
3279         (*aarch64_mulx_elt_to_64v2df): Likewise.
3280         (*aarch64_vgetfmulx<mode>, VDQF_DF): Likewise.
3281         * config/aarch64/arm_neon.h (vmulx_lane_f32): New.
3282         (vmulx_lane_f64): Likewise.
3283         (vmulxq_lane_f32): Refactored & moved.
3284         (vmulxq_lane_f64): Likewise.
3285         (vmulx_laneq_f32): New.
3286         (vmulx_laneq_f64): Likewise.
3287         (vmulxq_laneq_f32): Likewise.
3288         (vmulxq_laneq_f64): Likewise.
3289         (vmulxs_lane_f32): Likewise.
3290         (vmulxs_laneq_f32): Likewise.
3291         (vmulxd_lane_f64): Likewise.
3292         (vmulxd_laneq_f64): Likewise.
3294 2015-11-21  Jan Hubicka  <hubicka@ucw.cz>
3296         * tree.c (build_pointer_type_for_mode,build_reference_type_for_mode):
3297         In LTO we do not compute TYPE_CANONICAL of pointers.
3298         (gimple_canonical_types_compatible_p): Improve coments; sanity check
3299         that pointers do not have canonical type that would make us believe
3300         they are different.
3301         * alias.c (get_alias_set): Do structural type equality on pointers;
3302         enable pointer path for LTO; also glob pointer to vector with pointer
3303         to vector element; glob pointers and references for LTO; do more strict
3304         sanity checking about build_pointer_type returning the canonical type
3305         which is also the main variant.
3306         (record_component_aliases): When component type is pointer and we
3307         do LTO; record void_type_node alias set.
3309 2015-11-21  Nathan Sidwell  <nathan@acm.org>
3311         * config/nvptx/nvptx.md (clz<mode>2): Use operand 1 for type.
3313         * config/nvptx/nvptx.c (write_function_decl_and_comment): Print
3314         leading blank line.
3315         (write_func_decl_from_insn): Likewise.
3316         (init_output_initializer, nvptx_assemble_undefined_decl): Likewise.
3317         (nvptx_file_end): Likewise.
3318         (nvptx_function_end): Undent output.
3319         (nvptx_expand_call): Fix formatting.
3320         (nvptx_output_call_insn): Indent output.
3321         * config/nvptx/nvptx.h (ASM_OUTPUT_ALIGNED_DECL_COMMON,
3322         ASM__OUTPUT_ALIGNED_DECL_LOCAL): Print leading blank line.
3324 2015-11-21  Jakub Jelinek  <jakub@redhat.com>
3326         PR debug/66432
3327         * tree-inline.c (copy_debug_stmt): If
3328         gimple_debug_source_bind_get_value is DECL_ORIGIN of a PARM_DECL
3329         in decl_debug_args, don't call remap_gimple_op_r on it.
3331 2015-11-07  Jan Hubicka  <hubicka@ucw.cz>
3333         * ipa-icf.c (sem_item::add_type): Do not look for TYPE_CANONICAL;
3334         do not check AGGREGATE_TYPE_P when adding TYPE_MODE;
3335         Check that all record types are complete.
3336         * ipa-icf-gimple.c (func_checker::compatible_types_p): Do not
3337         compare alias sets for types w/o alias sets.
3339 2015-11-20  Eric Botcazou  <ebotcazou@adacore.com>
3341         * config/sparc/sparc.md (umulxhi_vis): Move around.
3342         (*umulxhi_sp64): Likewise.
3343         (umulxhi_v8plus): Likewise.
3344         (xmulx_vis): Likewise.
3345         (*xmulx_sp64): Likewise.
3346         (xmulx_v8plus): Likewise.
3347         (xmulxhi_vis): Likewise.
3348         (*xmulxhi_sp64): Likewise.
3349         (xmulxhi_v8plus): Likewise.
3351 2015-11-20  David Malcolm  <dmalcolm@redhat.com>
3353         PR 62314
3354         * diagnostic-show-locus.c (colorizer::set_fixit_hint): New.
3355         (class layout): Update comment
3356         (layout::print_any_fixits): New method.
3357         (layout::move_to_column): New method.
3358         (diagnostic_show_locus): Add call to layout.print_any_fixits.
3360 2015-11-20  Jakub Jelinek  <jakub@redhat.com>
3362         PR middle-end/68221
3363         * omp-low.c (lower_rec_input_clauses): If C/C++ array reduction
3364         has non-zero bias, subtract it in integer type instead of
3365         pointer plus of negated bias.
3367         PR middle-end/68339
3368         * omp-low.c (expand_simd_clones): Call node->get_body () before
3369         allocating stuff in GC.
3371 2015-11-20  Jim Wilson  <jim.wilson@linaro.org>
3373         * tree-vect-data-refs.c (compare_tree): Call STRIP_NOPS.
3375 2015-11-20  Evandro Menezes  <e.menezes@samsung.com>
3377         * config/aarch64/aarch64.md (predicated): Copy attribute from
3378         "arm.md".
3379         * config/arm/arm.md (predicated): Added description.
3381 2015-11-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3383         * config/arm/arm.c (arm_option_override): Require TARGET_32BIT
3384         for unaligned_access.
3385         * config/arm/arm.md (unaligned_loadsi): Remove redundant TARGET_32BIT
3386         from matching condition.
3387         (unaligned_loadhis): Likewise.
3388         (unaligned_loadhiu): Likewise.
3389         (unaligned_storesi): Likewise.
3390         (unaligned_storehi): Likewise.
3392 2015-11-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3394         PR target/68149
3395         * config/arm/arm.md (unaligned_loaddi): Delete.
3396         (unaligned_storedi): Likewise.
3397         * config/arm/arm.c (gen_movmem_ldrd_strd): Don't generate
3398         unaligned DImode memory ops.  Instead perform two back-to-back
3399         unaligned SImode ops.
3401 2015-11-20  Nathan Sidwell  <nathan@codesourcery.com>
3402             James Norris  <jnorris@codesourcery.com>
3404         * config/nvptx/nvptx.c (nvptx_use_anchors_for_symbol_p): New.
3405         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Override.
3407 2015-11-20  Alan Hayward <alan.hayward@arm.com>
3409         PR tree-optimization/68413
3410         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Cache
3411         evolution base
3412         (vectorizable_reduction): Use cached base
3414 2015-11-20  Tom de Vries  <tom@codesourcery.com>
3416         * tree-parloops.c (build_new_reduction): Fix trailing whitespace in
3417         dump-file string.
3418         (try_create_reduction_list): Same.  Fix typo in dump-file string.
3420 2015-11-20  Eric Botcazou  <ebotcazou@adacore.com>
3422         * doc/md.texi (Standard Names): Move entry for addptr3 around,
3423         add entries for addv4, subv4, mulv4, umulv4 and negv3, fixes
3424         glitch in entries for cbranch4 and jump.
3426 2015-11-20  Tom de Vries  <tom@codesourcery.com>
3428         PR tree-optimization/68373
3429         * tree-scalar-evolution.c (final_value_replacement_loop): Factor out
3430         of ...
3431         (scev_const_prop): ... here.
3432         * tree-scalar-evolution.h (final_value_replacement_loop): Declare.
3433         * tree-parloops.c (try_create_reduction_list): Call
3434         final_value_replacement_loop.
3436 2015-11-20  Bin Cheng  <bin.cheng@arm.com>
3438         PR tree-optimization/52272
3439         * tree-ssa-loop-ivopts.c (struct iv_common_cand): New struct.
3440         (struct iv_common_cand_hasher): New struct.
3441         (iv_common_cand_hasher::hash): New function.
3442         (iv_common_cand_hasher::equal): New function.
3443         (struct ivopts_data): New fields, iv_common_cand_tab and
3444         iv_common_cands.
3445         (tree_ssa_iv_optimize_init): Initialize above fields.
3446         (record_common_cand, common_cand_cmp): New functions.
3447         (add_iv_candidate_derived_from_uses): New function.
3448         (add_iv_candidate_for_use): Record iv_common_cands derived from
3449         iv use in hash table, instead of adding candidates directly.
3450         (add_iv_candidate_for_uses): Call add_iv_candidate_derived_from_uses.
3451         (record_important_candidates): Add important candidates to iv uses'
3452         related_cands.  Always keep related_cands for future use.
3453         (try_add_cand_for): Use iv uses' related_cands.
3454         (free_loop_data, tree_ssa_iv_optimize_finalize): Release new fields
3455         in struct ivopts_data, iv_common_cand_tab and iv_common_cands.
3457 2015-11-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3459         * config/s390/s390.md ("bswaphi2"): New pattern.
3461 2015-11-20  Dominik Vogt  <vogt@linux.vnet.ibm.com>
3463         * config/s390/s390.md (GPR1_REGNUM): New constant.
3464         ("*trunc<BFP:mode><DFP_ALL:mode>2")
3465         ("*trunc<DFP_ALL:mode><BFP:mode>2")
3466         ("trunc<BFP:mode><DFP_ALL:mode>2")
3467         ("trunc<DFP_ALL:mode><BFP:mode>2")
3468         ("*extend<BFP:mode><DFP_ALL:mode>2")
3469         ("*extend<DFP_ALL:mode><BFP:mode>2")
3470         ("extend<BFP:mode><DFP_ALL:mode>2")
3471         ("extend<DFP_ALL:mode><BFP:mode>2"): Clobber r1.
3473 2015-11-19  Aditya Kumar  <aditya.k7@samsung.com>
3474             Sebastian Pop  <s.pop@samsung.com>
3476         PR tree-optimization/68428
3477         * graphite-scop-detection.c (harmful_stmt_in_region): Do not iterate
3478         over basic blocks outside the scop.
3480 2015-11-19  Aditya Kumar  <aditya.k7@samsung.com>
3481             Sebastian Pop  <s.pop@samsung.com>
3483         PR tree-optimization/68341
3484         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Remove
3485         gcc_unreachable and safely fail codegen.
3486         (copy_loop_close_phi_args): Do not insert merge phis in a basic
3487         block with loop phi nodes.
3488         (edge_for_new_close_phis): New.
3489         (copy_bb_and_scalar_dependences): Call edge_for_new_close_phis.
3491 2015-11-19  Nathan Sidwell  <nathan@acm.org>
3493         * config/nvptx/nvptx.h (SUPPORTS_WEAK): Define.
3494         * config/nvptx/nvptx.c (nvptx_write_function_decl): Support DECL_WEAK.
3495         (nvptx_declare_objec_name): Likewise.
3497 2015-11-19  Aditya Kumar  <aditya.k7@samsung.com>
3499         * graphite-isl-ast-to-gimple.c (get_true_edge_from_guard_bb): Move...
3500         (get_false_edge_from_guard_bb): Move...
3501         * sese.c (get_false_edge_from_guard_bb)
3502         (get_true_edge_from_guard_bb): ... here.
3504 2015-11-19  David Edelsohn  <dje.gcc@gmail.com>
3506         Revert
3507         2015-11-18  Alan Modra  <amodra@gmail.com>
3509         * config/rs6000/rs6000.c (use_toc_relative_ref): Ignore
3510         type-limits warning.
3513 2015-11-19  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
3515         * tree.h (desired_pro_or_demotion_p): New function.
3516         * tree-vrp.c (simplify_cond_using_ranges): Call it.
3518 2015-11-19  Michael Matz  <matz@suse.de>
3520         PR rtl-optimization/68392
3521         * fwprop.c (update_uses): Use flag_checking instead of
3522         gcc_checking_assert.
3524 2015-11-19  David Malcolm  <dmalcolm@redhat.com>
3526         * doc/gty.texi (Support for inheritance): Fix missing
3527         parentheses in example.
3529 2015-11-19  Marek Polacek  <polacek@redhat.com>
3531         PR tree-optimization/68431
3532         * tree-vrp.c (extract_range_from_binary_expr_1): Fix condition.
3534 2015-11-19  Nathan Sidwell  <nathan@acm.org>
3536         * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>_1,
3537         atomic_exchange<mode>): Input values can be immediates.
3539 2015-11-19  Eric Botcazou  <ebotcazou@adacore.com>
3541         PR lto/61313
3542         * configure.ac (PLUGIN_LD_SUFFIX): Do not touch the value specified
3543         by the user.
3544         * configure: Regenerate.
3546 2015-11-19  Eric Botcazou  <ebotcazou@adacore.com>
3548         PR target/68408
3549         * config/sparc/sp-elf.h (CTORS_SECTION_ASM_OP): Undefine.
3550         (DTORS_SECTION_ASM_OP): Likewise.
3552 2015-11-19  Jakub Jelinek  <jakub@redhat.com>
3554         PR rtl-optimization/68376
3555         * ifcvt.c (noce_try_abs): Disable one_cmpl optimization if
3556         encountering x <= 0 ? ~x : x or x > 0 ? ~x : x.
3558 2015-11-19  Richard Biener  <rguenther@suse.de>
3560         PR middle-end/68117
3561         * tree-ssa.c (delete_tree_ssa): Revert removal of call to
3562         redirect_edge_var_map_destroy.
3564 2015-11-19  Jakub Jelinek  <jakub@redhat.com>
3566         PR target/67770
3567         * config/i386/i386.md (simple_return): Disable if
3568         ix86_static_chain_on_stack is true.
3570 2015-11-19  Richard Sandiford  <richard.sandiford@arm.com>
3572         PR bootstrap/68393
3573         * internal-fn.c (expand_direct_optab_fn): Handle SUBREG_PROMOTED_VAR_P
3574         destinations.
3576 2015-11-18  Jeff Law  <law@redhat.com>
3578         PR tree-optimization/68198
3579         * tree-ssa-threadupdate.c (valid_jump_thread_path): Distinguish
3580         between threading a multi-way branch and a thread path that contains
3581         a multi-way branch.  Disallow the case where a path contains a
3582         multi-way branch and does not thread a multi-way branch.
3583         (thread_through_all_blocks): Update comment.
3585 2015-11-18  Joseph Myers  <joseph@codesourcery.com>
3587         PR c/65083
3588         * ginclude/stdatomic.h (atomic_thread_fence, atomic_signal_fence)
3589         (atomic_flag_test_and_set, atomic_flag_test_and_set_explicit)
3590         (atomic_flag_clear, atomic_flag_clear_explicit): Declare as
3591         functions before defining as macros.
3593 2015-11-18  Nathan Sidwell  <nathan@codesourcery.com>
3595         * config/nvptx/nvptx.c (nvptx_process_pars): Fix whitespace.
3596         (nvptx_record_offload_symbol): Remove code compensating for lack
3597         of default dimension handling.
3598         (nvptx_goacc_validate_dims): Remove incorrect ARG_UNUSED markers.
3600 2015-11-18  Aditya Kumar  <aditya.k7@samsung.com>
3602         * graphite-isl-ast-to-gimple.c (copy_loop_phi_args): Change the return
3603         type to bool for early exit.
3604         (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Early return
3605         in case of error.
3606         (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
3607         (add_phi_arg_for_new_expr): Enable codegen for if-block where one
3608         predecessor dominates the other.
3609         (translate_isl_ast_to_gimple::copy_cond_phi_args): Fix. When the
3610         element is not found it returns -1.
3611         (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Bail
3612         out early when codegen fails.
3613         (graphite_regenerate_ast_isl): Remove codegen region when pending
3614         phis could not be generated.
3616 2015-11-18  Aditya Kumar  <aditya.k7@samsung.com>
3618         * graphite-isl-ast-to-gimple.c (struct ast_build_info): Remove
3619         semicolon.
3620         (class translate_isl_ast_to_gimple): Indentation.
3621         (translate_pending_phi_nodes): Comment.
3622         (add_parameters_to_ivs_params): Moved from sese.c inside class
3623         translate_isl_ast_to_gimple.
3624         (get_max_schedule_dimensions): Same.
3625         (generate_isl_context): Same.
3626         (extend_schedule): Same.
3627         (generate_isl_schedule): Same.
3628         (set_options): Same.
3629         (scop_to_isl_ast): Same.
3630         (is_valid_rename): Same.
3631         (get_rename): Same.
3632         (get_rename_from_scev): Same.
3633         (get_def_bb_for_const): Same.
3634         (get_new_name): Same.
3635         (collect_all_ssa_names): Same.
3636         (copy_loop_phi_args): Same.
3637         (copy_loop_phi_nodes): Same.
3638         (copy_loop_close_phi_args): Same.
3639         (copy_loop_close_phi_nodes): Same.
3640         (copy_cond_phi_args): Same.
3641         (copy_cond_phi_nodes): Same.
3642         (graphite_copy_stmts_from_block): Same.
3643         (copy_bb_and_scalar_dependences): Same.
3644         (add_phi_arg_for_new_expr): Same.
3645         (rename_uses): Same.
3646         (set_rename): Same.
3647         (set_rename_for_each_def): Same.
3648         (gsi_insert_earliest): Same.
3649         (rename_all_uses): Same.
3650         (codegen_error_p): Same.
3651         (print_isl_ast_node): Same.
3652         (translate_isl_ast_for_loop): Call function codegen_error_p.
3653         (translate_isl_ast_to_gimple::translate_isl_ast): Same.
3654         (translate_isl_ast_node_user): Make nb_loops const and release
3655         iv_map before exit.
3656         (get_true_edge_from_guard_bb): Move all free-functions early.
3657         (get_false_edge_from_guard_bb): Same.
3658         (bb_contains_loop_close_phi_nodes): Same.
3659         (bb_contains_loop_phi_nodes): Same.
3660         (is_loop_closed_ssa_use):  Same.
3661         (number_of_phi_nodes): Same.
3662         (phi_uses_name): Same.
3663         (later_of_the_two): Same.
3664         (substitute_ssa_name):
3665         (get_edges): Same.
3666         (get_loc): Same.
3667         (get_loop_init_value): Same.
3668         (find_init_value): Same.
3669         (find_init_value_close_phi): Same.
3670         (ast_build_before_for): Same.
3671         (graphite_regenerate_ast_isl): Formatting changes.
3672         * graphite-scop-detection.c (build_cross_bb_scalars_use): Same.
3673         * sese.c (get_rename): Move to graphite-isl-ast-to-gimple.c
3674         (set_rename): Same.
3675         (gsi_insert_earliest): Same.
3676         (collect_all_ssa_names): Same.
3677         (rename_all_uses): Same.
3678         (rename_uses): Same.
3679         (get_def_bb_for_const): Same.
3680         (copy_loop_phi_nodes): Same.
3681         (copy_loop_close_phi_args): Same.
3682         (copy_loop_close_phi_nodes): Same.
3683         (copy_cond_phi_args): Same.
3684         (copy_cond_phi_nodes): Same.
3685         (set_rename_for_each_def): Same.
3686         (graphite_copy_stmts_from_block): Same.
3687         (copy_bb_and_scalar_dependences): Same.
3688         (if_region_set_false_region): Same.
3689         (scev_analyzable_p): Same.
3690         * sese.h: Delete extern functions moved to graphite-isl-ast-to-gimple.c.
3692 2015-11-18  Andreas Tobler  <andreast@gcc.gnu.org>
3694         * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Bring in the
3695         commit from r125920 for FreeBSD.
3697 2015-11-18  Jason Merrill  <jason@redhat.com>
3699         * ggc-page.c (ggc_globals): Change finalizers and vec_finalizers
3700         to be vecs of vecs.
3701         (add_finalizer): Split out from ggc_internal_alloc.
3702         (ggc_handle_finalizers): Run finalizers for the current depth.
3703         (init_ggc, ggc_pch_read): Reserve space for finalizers.
3705 2015-11-18  Sandra Loosemore  <sandra@codesourcery.com>
3707         PR target/68410
3708         * config/nios2/nios2.c (cdx_and_immed): Remove duplicate tests
3709         from || expression.
3711 2015-11-18  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
3713         * config/avr/avr-mcus.def: Add new avr4 devices atmega48pb and
3714         atmega88pb. Add new avr5 devices ata5791, ata8210, ata8510, atmega168pb
3715         and atmega328pb.
3716         * doc/avr-mmcu.texi: Regenerate.
3718 2015-11-18  Nathan Sidwell  <nathan@codesourcery.com>
3720         * config/nvptx/nvptx.c (bb_pair_t, bb_pair_vec_t): New types.
3721         (pseudo_node_t, struct bracket, bracket_vec_t): New types.
3722         (struct bb_sese): New struct.
3723         (bb_sese::~bb_sese, bb_sese::append, bb_sese::remove): New.
3724         (BB_GET_SESE, BB_SET_SESE): Define.
3725         (nvptx_sese_number, nvptx_sese_pseudo, nvptx_sese_color): New.
3726         (nvptx_find_sese): New.
3727         (nvptx_neuter_pars): Find SESE regions when optimizing.
3729 2015-11-18  Alan Modra  <amodra@gmail.com>
3731         * config/rs6000/rs6000.c (use_toc_relative_ref): Ignore
3732         type-limits warning.
3734 2015-11-18  Richard Sandiford  <richard.sandiford@arm.com>
3736         PR bootstrap/68406
3737         * hash-set.h (hash_set::traverse): Expand Key typedef.
3739 2015-11-18  Martin Liska  <mliska@suse.cz>
3741         * config/arm/arm.c (arm_valid_target_attribute_p): Finalize
3742         options struct.
3744 2015-11-18  Nathan Sidwell  <nathan@codesourcery.com>
3746         * config/nvptx/nvptx.c (global_lock_var): New.
3747         (nvptx_global_lock_addr): New.
3748         (nvptx_lockless_update): Recomment and adjust for clarity.
3749         (nvptx_lockfull_update): New.
3750         (nvptx_reduction_update): New.
3751         (nvptx_goacc_reduction_fini): Call it.
3753 2015-11-18  Bernd Schmidt  <bschmidt@redhat.com>
3755         * regrename.h (struct du_head): Add target_data_1 and target_data_2
3756         fields.
3757         * regrename.c (create_new_chain): Clear entire struct after allocating.
3759         * config/i386/i386.opt (mmitigate-rop): New option.
3760         * doc/invoke.texi (mmitigate-rop): Document.
3761         * config/i386/i386.c: Include "regrename.h".
3762         (ix86_rop_should_change_byte_p, reg_encoded_number,
3763         ix86_get_modrm_for_rop, set_rop_modrm_reg_bits, ix86_mitigate_rop): New
3764         static functions.
3765         (ix86_reorg): Call ix86_mitigate_rop if -fmitigate-rop.
3766         * config/i386/i386.md (attr "modrm_class"): New.
3767         (cmp<mode>_ccno_1, mov<mode>_xor, movstrict<mode>_xor,
3768         x86_mov<mode>cc_0_m1. x86_mov<mode>cc_0_m1_se)
3769         (x86_mov<mode>cc_0_m1_neg): Override modrm_class attribute.
3771 2015-11-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
3773         PR target/68405
3774         * config/i386/i386.c (ix86_expand_mask_vec_cmp): Add missing break.
3776 2015-11-18  Jakub Jelinek  <jakub@redhat.com>
3778         PR tree-optimization/68157
3779         * tree-ssa-reassoc.c (attempt_builtin_powi): Set uid of
3780         pow_stmt or mul_stmt from stmt's uid.
3781         (reassociate_bb): Set uid of mul_stmt from stmt's uid.
3783 2015-11-18  Martin Liska  <mliska@suse.cz>
3785         * haifa-sched.c (haifa_finish_h_i_d): Release reg_set_list.
3787 2015-11-18  Martin Liska  <mliska@suse.cz>
3789         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
3790         Fix GNU coding style.
3791         (find_def_preds): Use auto_vec.
3792         (destroy_predicate_vecs): Change signature of the function.
3793         (prune_uninit_phi_opnds_in_unrealizable_paths): Use the
3794         new signature.
3795         (simplify_preds_4): Use destroy_predicate_vecs instread of
3796         just releasing preds vector.
3797         (normalize_preds): Likewise.
3798         (is_use_properly_guarded): Use new signature of
3799         destroy_predicate_vecs.
3800         (find_uninit_use): Likewise.
3802 2015-11-18  Richard Biener  <rguenther@suse.de>
3804         PR tree-optimization/67790
3805         * tree-vect-loop.c (vect_is_simple_reduction_1): Remove
3806         IL rewrite for MINUS_EXPR reductions, rename back to ...
3807         (vect_is_simple_reduction): ... this, removing the wrapper.
3808         (vect_force_simple_reduction): Adjust.
3809         (vectorizable_reduction): Adjust reduc_index for MINUS_EXPR
3810         reductions and make use if reduc_index in all places.  For
3811         the final reduction of MINUS_EXPR use PLUS_EXPR.
3813 2015-11-18  Alan Modra  <amodra@gmail.com>
3815         * configure.ac (POWERPC64_TOC_POINTER_ALIGNMENT): Pass -z norelro
3816         to ld.
3817         * configure: Regenerate.
3819 2015-11-17  Tom de Vries  <tom@codesourcery.com>
3821         * tree-ssa-loop.c (pass_tree_loop_init::execute): Improve comments.
3823 2015-11-17  Tom de Vries  <tom@codesourcery.com>
3825         * tree-scalar-evolution.c (scev_const_prop): Dump details if replacing
3826         uses of ssa_name with constant.
3828 2015-11-17  Tom de Vries  <tom@codesourcery.com>
3830         * tree-ssa-ccp.c (do_ssa_ccp): Clear LOOP_CLOSED_SSA in loops state if
3831         something changed.
3833 2015-11-17  Tom de Vries  <tom@codesourcery.com>
3835         * cfgloop.h (struct loop): Add in_oacc_kernels_region field.
3836         * omp-low.c (mark_loops_in_oacc_kernels_region): New function.
3837         (expand_omp_target): Call mark_loops_in_oacc_kernels_region.
3839 2015-11-17  Bernd Schmidt  <bschmidt@redhat.com>
3841         * regrename.c (regrename_find_superclass): New function, code moved
3842         from ...
3843         (rename_chains): ... here.  Call it.
3844         * regrename.h (regrename_find_superclass): Declare.
3846         * regrename.c (record_out_operands): Terminate earlyclobbered
3847         operands here.
3849         PR target/66785
3850         * regrename.c (record_operand_use): Keep track of failed operands
3851         and stop appending if we see any.
3852         * regrename.h (struct operand_rr_info): Add a failed field and shrink
3853         n_chains to short.
3855 2015-11-17  Sandra Loosemore  <sandra@codesourcery.com>
3857         PR 48568
3858         * doc/extend.texi (Common Function Attributes) [visibility]:
3859         Add cross-references to matching variable and type attributes.
3860         (Common Variable Attributes) [visibility]: Add missing entry.
3862 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
3864         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function): Remove
3865         entries that map directly to optabs.
3867 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
3869         * config/i386/i386.c (ix86_builtin_vectorized_function): Remove
3870         entries that map directly to optabs.
3872 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
3874         * internal-fn.h (direct_internal_fn_info): Add vectorizable flag.
3875         * internal-fn.c (direct_internal_fn_array): Update accordingly.
3876         * tree-vectorizer.h (vectorizable_function): Delete.
3877         * tree-vect-stmts.c: Include internal-fn.h.
3878         (vectorizable_internal_function): New function.
3879         (vectorizable_function): Inline into...
3880         (vectorizable_call): ...here.  Explicitly reject calls that read
3881         from or write to memory.  Try using an internal function before
3882         falling back on the old vectorizable_function behavior.
3884 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
3886         * target.def (builtin_vectorized_function): Take a combined_fn (in
3887         the form of an unsigned int) rather than a function decl.
3888         (builtin_md_vectorized_function): New.
3889         * targhooks.h (default_builtin_vectorized_function): Replace the
3890         fndecl argument with an unsigned int.
3891         (default_builtin_md_vectorized_function): Declare.
3892         * targhooks.c (default_builtin_vectorized_function): Replace the
3893         fndecl argument with an unsigned int.
3894         (default_builtin_md_vectorized_function): New function.
3895         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_MD_VECTORIZED_FUNCTION):
3896         New hook.
3897         * doc/tm.texi: Regenerate.
3898         * tree-vect-stmts.c (vectorizable_function): Update call to
3899         builtin_vectorized_function, also passing internal functions.
3900         Call builtin_md_vectorized_function for target-specific builtins.
3901         * config/aarch64/aarch64-protos.h
3902         (aarch64_builtin_vectorized_function): Replace fndecl argument
3903         with an unsigned int.
3904         * config/aarch64/aarch64-builtins.c: Include case-cfn-macros.h.
3905         (aarch64_builtin_vectorized_function): Update after above changes.
3906         Use CASE_CFN_*.
3907         * config/arm/arm-protos.h (arm_builtin_vectorized_function): Replace
3908         fndecl argument with an unsigned int.
3909         * config/arm/arm-builtins.c: Include case-cfn-macros.h
3910         (arm_builtin_vectorized_function): Update after above changes.
3911         Use CASE_CFN_*.
3912         * config/i386/i386.c: Include case-cfn-macros.h
3913         (ix86_veclib_handler): Take a combined_fn rather than a
3914         built_in_function.
3915         (ix86_veclibabi_svml, ix86_veclibabi_acml): Likewise.  Use
3916         mathfn_built_in rather than calling builtin_decl_implicit directly.
3917         (ix86_builtin_vectorized_function) Update after above changes.
3918         Use CASE_CFN_*.
3919         * config/rs6000/rs6000.c: Include case-cfn-macros.h
3920         (rs6000_builtin_vectorized_libmass): Replace fndecl argument
3921         with a combined_fn.  Use CASE_CFN_*.  Use mathfn_built_in rather
3922         than calling builtin_decl_implicit directly.
3923         (rs6000_builtin_vectorized_function): Update after above changes.
3924         Use CASE_CFN_*.  Move BUILT_IN_MD to...
3925         (rs6000_builtin_md_vectorized_function): ...this new function.
3926         (TARGET_VECTORIZE_BUILTIN_MD_VECTORIZED_FUNCTION): Define.
3928 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
3930         * tree-vect-patterns.c: Include internal-fn.h.
3931         (vect_recog_pow_pattern): Use IFN_SQRT instead of BUILT_IN_SQRT*.
3933 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
3935         * tree.h (BUILTIN_EXP10_P, BUILTIN_EXPONENT_P, BUILTIN_SQRT_P)
3936         (BUILTIN_CBRT_P, BUILTIN_ROOT_P): Delete.
3938 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
3940         * builtins.c (expand_errno_check, expand_builtin_mathfn)
3941         (expand_builtin_mathfn_2): Delete.
3942         (expand_builtin): Remove handling of functions with
3943         internal function equivalents.
3944         * internal-fn.def (SET_EDOM): New internal function.
3945         * internal-fn.h (set_edom_supported_p): Declare.
3946         * internal-fn.c (expand_SET_EDOM): New function.
3947         (set_edom_supported_p): Likewise.
3948         * tree-call-cdce.c: Include builtins.h and internal-fn.h.
3949         Rewrite comment at head of file.
3950         (is_call_dce_candidate): Rename to...
3951         (can_test_argument_range): ...this.  Don't check gimple_call_lhs
3952         or gimple_call_builtin_p here.
3953         (edom_only_function): New function.
3954         (shrink_wrap_one_built_in_call_with_conds): New function, split out
3955         from...
3956         (shrink_wrap_one_built_in_call): ...here.
3957         (can_use_internal_fn, use_internal_fn): New functions.
3958         (shrink_wrap_conditional_dead_built_in_calls): Call use_internal_fn
3959         for calls that have an lhs.
3960         (pass_call_cdce::gate): Remove optimize_function_for_speed_p check.
3961         (pass_call_cdce::execute): Skip blocks that are optimized for size.
3962         Check gimple_call_builtin_p here.  Use can_use_internal_fn for
3963         calls with an lhs.
3964         * opts.c (default_options_table): Enable -ftree-builtin-call-cdce
3965         at -O and above.
3967 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
3969         * builtins.h (called_as_built_in): Declare.
3970         * builtins.c (called_as_built_in): Make external.
3971         * internal-fn.h (expand_internal_call): Define a variant that
3972         specifies the internal function explicitly.
3973         * internal-fn.c (expand_load_lanes_optab_fn)
3974         (expand_store_lanes_optab_fn, expand_ANNOTATE, expand_GOMP_SIMD_LANE)
3975         (expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE)
3976         (expand_GOMP_SIMD_ORDERED_START, expand_GOMP_SIMD_ORDERED_END)
3977         (expand_UBSAN_NULL, expand_UBSAN_BOUNDS, expand_UBSAN_VPTR)
3978         (expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK, expand_TSAN_FUNC_EXIT)
3979         (expand_UBSAN_CHECK_ADD, expand_UBSAN_CHECK_SUB)
3980         (expand_UBSAN_CHECK_MUL, expand_ADD_OVERFLOW, expand_SUB_OVERFLOW)
3981         (expand_MUL_OVERFLOW, expand_LOOP_VECTORIZED)
3982         (expand_mask_load_optab_fn, expand_mask_store_optab_fn)
3983         (expand_ABNORMAL_DISPATCHER, expand_BUILTIN_EXPECT, expand_VA_ARG)
3984         (expand_UNIQUE, expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS)
3985         (expand_GOACC_LOOP, expand_GOACC_REDUCTION, expand_direct_optab_fn)
3986         (expand_unary_optab_fn, expand_binary_optab_fn): Add an internal_fn
3987         argument.
3988         (internal_fn_expanders): Update prototype.
3989         (expand_internal_call): Define a variant that specifies the
3990         internal function explicitly. Use it to implement the previous
3991         interface.
3992         * cfgexpand.c (expand_call_stmt): Try to expand calls to built-in
3993         functions as calls to internal functions.
3995 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
3997         * Makefile.in (MOSTLYCLEANFILES): Add cfn-operators.pd.
3998         (generated_files): Likewise.
3999         (s-cfn-operators, cfn-operators.pd): New rules.
4000         (s-match): Depend on cfn-operators.pd.
4001         * gencfn-macros.c: Expand comment to describe -o behavior.
4002         (print_define_operator_list): New function.
4003         (main): Accept -o.  Call print_define_operator_list.
4004         * genmatch.c (main): Add the current directory to the include path.
4005         * match.pd (DEFINE_MATH_FN): Delete.  Include cfn-operators.pd
4006         instead.
4008 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
4010         * doc/match-and-simplify.texi: Document the "null" identifier.
4011         * genmatch.c (id_base::NULL_ID): New kind.
4012         (null_id): New variable.
4013         (get_operator): Add a parameter that says whether null identifiers
4014         are allowed.
4015         (contains_id): New function.
4016         (lower_for): Skip substitutions that would have a null_id in
4017         either the match or the result.
4018         (parser::parse_for): Allow the null identifier to be used.
4019         (parser::parse_operator_list): Likewise.
4020         (main): Initialize null_id.
4022 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
4024         * match.pd: Use HYPOT and COS rather than hypot and cos.
4025         Use CASE_CFN_* macros.  Guard log/exp folds with
4026         SCALAR_FLOAT_TYPE_P.
4027         * genmatch.c (internal_fn): New enum.
4028         (fn_id::fn): Change to an unsigned int.
4029         (fn_id::fn_id): Accept internal_fn too.
4030         (add_builtin): Rename to...
4031         (add_function): ...this and turn into a template.
4032         (get_operator): Only try one variation if the original name fails.
4033         Only add _EXPR if the original name was all lower case.
4034         Try converting internal and built-in function names to their
4035         CFN equivalents.
4036         (expr::gen_transform): Use maybe_build_call_expr_loc for generic.
4037         (dt_simplify::gen_1): Likewise.
4038         (dt_node::gen_kids_1): Use gimple_call_combined_fn for gimple
4039         and get_call_combined_fn for generic.
4040         (dt_simplify::gen): Use combined_fn as the type of fn_ids.
4041         (decision_tree::gen): Likewise.
4042         (main): Use lower case in the strings for {VIEW_,}CONVERT[012].
4043         Use add_function rather than add_builtin.  Register internal
4044         functions too.
4045         * generic-match-head.c: Include case-cfn-macros.h.
4046         * gimple-fold.c (replace_stmt_with_simplification): Use
4047         gimple_call_combined_fn to test whether we can keep an
4048         existing call.
4049         * gimple-match.h (code_helper): Replace built_in_function
4050         with combined_fn.
4051         * gimple-match-head.c: Include fold-const-call.h, internal-fn.h
4052         and case-fn-macros.h.
4053         (gimple_resimplify1): Use fold_const_call.
4054         (gimple_resimplify2, gimple_resimplify3): Likewise.
4055         (build_call_internal, build_call): New functions.
4056         (maybe_push_res_to_seq): Use them.
4057         (gimple_simplify): Use fold_const_call.  Set *rcode to a combined_fn
4058         rather than a built-in function.
4059         * tree.h (build_call_expr_internal_loc): Declare.
4060         (maybe_build_call_expr_loc): Likewise.
4061         * tree.c (build_call_expr_internal_loc_array): New function.
4062         (maybe_build_call_expr_loc): Likewise.
4064 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
4066         * builtins.h (mathfn_built_in): Add a variant that takes
4067         a combined_fn.
4068         * builtins.c: Include case-cfn-macros.h.
4069         (CASE_MATHFN): Use CASE_CFN_*.
4070         (CASE_MATHFN_REENT): Use CFN_ codes.
4071         (mathfn_built_in_2, mathfn_built_in_1): Replace built_in_function
4072         argument with a combined_fn.
4073         (mathfn_built_in): Add a variant that takes a combined_fn.
4074         (expand_builtin_int_roundingfn_2): Update callers accordingly.
4075         (fold_builtin_sincos, fold_builtin_classify): Likewise.
4077 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
4079         * tree-vect-patterns.c: Include case-cfn-macros.h.
4080         (vect_recog_pow_pattern): Use combined_fn instead of built-in codes.
4082 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
4084         * tree-ssa-math-opts.c: Include case-cfn-macros.h.
4085         (execute_cse_sincos_1): Use combined_fn instead of built-in codes.
4086         (pass_cse_sincos::execute): Likewise.
4088 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
4090         * tree-ssa-reassoc.c: Include case-cfn-macros.h.
4091         (stmt_is_power_of_op): Use combined_fn instead of built-in codes.
4092         (decrement_power, acceptable_pow_call): Likewise.
4093         (attempt_builtin_copysign): Likewise.
4095 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
4097         * tree-vrp.c: Include case-cfn-macros.h.
4098         (extract_range_basic): Switch on combined_fn rather than handling
4099         built-in functions and internal functions separately.
4101 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
4103         * fold-const.h (negate_mathfn_p): Take a combined_fn rather
4104         than a built_in_function.
4105         (tree_call_nonnegative_warnv_p): Take a combined_fn rather than
4106         a function decl.
4107         (integer_valued_real_call_p): Likewise.
4108         * fold-const.c: Include case-cfn-macros.h
4109         (negate_mathfn_p): Take a combined_fn rather than a built_in_function.
4110         (negate_expr_p): Update accordingly.
4111         (tree_call_nonnegative_warnv_p): Take a combined_fn rather than
4112         a function decl.
4113         (integer_valued_real_call_p): Likewise.
4114         (tree_invalid_nonnegative_warnv_p): Update accordingly.
4115         (integer_valued_real_p): Likewise.
4116         * gimple-fold.c (gimple_call_nonnegative_warnv_p): Update call
4117         to tree_call_nonnegative_warnv_p.
4118         (gimple_call_integer_valued_real_p): Likewise
4119         integer_valued_real_call_p.
4120         * gimple-ssa-backprop.c: Include case-cfn-macros.h.
4121         (backprop::process_builtin_call_use): Extend to combined_fn.
4122         (strip_sign_op_1): Likewise.
4123         (backprop::process_use): Don't check for built-in calls here.
4124         (backprop::execute): Likewise.
4125         (backprop::optimize_builtin_call): Update call to negate_mathfn_p.
4127 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
4129         * fold-const-call.h (fold_const_call): Replace built_in_function
4130         arguments with combined_fn arguments.
4131         * fold-const-call.c: Include case-cfn-macros.h.
4132         (fold_const_call_ss, fold_const_call_cs, fold_const_call_sc)
4133         (fold_const_call_cc, fold_const_call_sss, fold_const_call_ccc)
4134         (fold_const_call_ssss, fold_const_call_1, fold_const_call): Replace
4135         built_in_function arguments with combined_fn arguments.
4136         * builtins.c (fold_builtin_sincos, fold_builtin_1, fold_builtin_2)
4137         (fold_builtin_3): Update calls to fold_const_call.
4139 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
4141         * Makefile.in (HASH_TABLE_H): Add GGC_H.
4142         (MOSTLYCLEANFILES, generated_files): Add case-fn-macros.h.
4143         (s-case-cfn-macros, case-cfn-macros.h, build/gencfn-macros.o)
4144         (build/gencfn-macros$(build_exeext): New rules.
4145         (genprogerr): Add cfn-macros.
4146         * hash-set.h (hash_set): Use the traits value_type as the key.
4147         * gencfn-macros.c: New file.
4149 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
4151         * internal-fn.def (DEF_INTERNAL_INT_FN): New macro.
4152         (CLRSB, CLZ, CTZ, FFS, PARITY, POPCOUNT): New functions.
4153         * builtins.c (associated_internal_fn): Handle them.
4155 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
4157         * builtins.h (associated_internal_fn): Declare.
4158         (replacement_internal_fn): Likewise.
4159         * builtins.c: Include internal-fn.h
4160         (associated_internal_fn, replacement_internal_fn): New functions.
4161         * internal-fn.def (DEF_INTERNAL_FLT_FN): New macro.
4162         (ACOS, ASIN, ATAN, COS, EXP, EXP10, EXP2, EXPM1, LOG, LOG10, LOG1P)
4163         (LOG2, LOGB, SIGNIFICAND, SIN, SQRT, TAN, CEIL, FLOOR, NEARBYINT)
4164         (RINT, ROUND, TRUNC, ATAN2, COPYSIGN, FMOD, POW, REMAINDER, SCALB)
4165         (LDEXP): New functions.
4166         * internal-fn.c: Include recog.h.
4167         (unary_direct, binary_direct): New macros.
4168         (expand_direct_optab_fn): New function.
4169         (expand_unary_optab_fn): New macro.
4170         (expand_binary_optab_fn): Likewise.
4171         (direct_unary_optab_supported_p): Likewise.
4172         (direct_binary_optab_supported_p): Likewise.
4174 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
4176         * coretypes.h (tree_pair): New type.
4177         * internal-fn.def (DEF_INTERNAL_OPTAB_FN): New macro.  Use it
4178         for MASK_LOAD, LOAD_LANES, MASK_STORE and STORE_LANES.
4179         * internal-fn.h (direct_internal_fn_info): New structure.
4180         (direct_internal_fn_array): Declare.
4181         (direct_internal_fn_p, direct_internal_fn): New functions.
4182         (direct_internal_fn_types, direct_internal_fn_supported_p): Declare.
4183         * internal-fn.c (not_direct, mask_load_direct, load_lanes_direct)
4184         (mask_store_direct, store_lanes_direct): New macros.
4185         (direct_internal_fn_array) New array.
4186         (get_multi_vector_move): Return the optab handler without asserting
4187         that it is available.
4188         (expand_LOAD_LANES): Rename to...
4189         (expand_load_lanes_optab_fn): ...this and add an optab argument.
4190         (expand_STORE_LANES): Rename to...
4191         (expand_store_lanes_optab_fn): ...this and add an optab argument.
4192         (expand_MASK_LOAD): Rename to...
4193         (expand_mask_load_optab_fn): ...this and add an optab argument.
4194         (expand_MASK_STORE): Rename to...
4195         (expand_mask_store_optab_fn): ...this and add an optab argument.
4196         (direct_internal_fn_types, direct_optab_supported_p)
4197         (multi_vector_optab_supported_p, direct_internal_fn_supported_p)
4198         (direct_internal_fn_supported_p): New functions.
4199         (direct_mask_load_optab_supported_p): New macro.
4200         (direct_load_lanes_optab_supported_p): Likewise.
4201         (direct_mask_store_optab_supported_p): Likewise.
4202         (direct_store_lanes_optab_supported_p): Likewise.
4204 2015-11-17  Richard Sandiford  <richard.sandiford@arm.com>
4206         * tree-core.h (internal_fn): Move immediately after the definition
4207         of built_in_function.
4208         (combined_fn): New enum.
4209         * tree.h (as_combined_fn, builtin_fn_p, as_builtin_fn)
4210         (internal_fn_p, as_internal_fn): New functions.
4211         (get_call_combined_fn, combined_fn_name): Declare.
4212         * tree.c (get_call_combined_fn): New function.
4213         (combined_fn_name): Likewise.
4214         * gimple.h (gimple_call_combined_fn): Declare.
4215         * gimple.c (gimple_call_combined_fn): New function.
4217 2015-11-17  Martin Sebor  <msebor@redhat.com>
4219         PR c++/68308
4220         * cp/init.c (build_new_1): Check for expression constness
4221         the right way.
4223 2015-11-17  Sandra Loosemore  <sandra@codesourcery.com>
4225         PR target/53587
4226         * doc/invoke.texi (Option Summary): Add -mms-bitfields to x86
4227         option list.
4228         (x86 Options): Add -mms-bitfields and -mno-ms-bitfields.  Move
4229         discussion of the Microsoft structure layout details here from
4230         its former home in extend.texi.
4231         * doc/extend.texi (x86 Variable Attributes): Replace detailed
4232         discussion with pointer to its new location.  Add cross-reference
4233         to corresponding type attributes.
4234         (x86 Type Attributes): Add cross-references to command-line options
4235         and variable attributes.
4237 2015-11-17  Ilya Enkovich  <enkovich.gnu@gmail.com>
4239         PR middle-end/68134
4240         * targhooks.c (default_get_mask_mode): Filter out
4241         scalar modes returned by mode_for_vector.
4243 2015-11-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4245         PR target/68143
4246         * config/arm/arm.c (arm_block_set_unaligned_vect): Keep track of
4247         offset from dstbase and use it appropriately in
4248         adjust_automodify_address.
4249         (arm_block_set_aligned_vect): Likewise.
4251 2015-11-17  Eric Botcazou  <ebotcazou@adacore.com>
4253         * config/visium/t-visium (MULTILIB_OPTIONS): Add muser-mode.
4254         (MULTILIB_DIRNAMES): Adjust accordingly.
4256 2015-11-17  James Greenhalgh  <james.greenhalgh@arm.com>
4258         * config/aarch64/aarch64-cores.def (cortex-a35): New.
4259         * config/aarch64/aarch64.c (cortexa35_tunings): New.
4260         * config/aarch64/aarch64-tune.md: Regenerate.
4261         * doc/invoke.texi (-mcpu): Add Cortex-A35
4263 2015-11-17  Uros Bizjak  <ubizjak@gmail.com>
4265         PR target/68263
4266         * config/i386/i386.h (BIGGEST_ALIGNMENT): Always define
4267         to 32 for IAMCU.
4268         * config/i386/sse.md (*mov<mode>_internal): Always enable
4269         AVX and SSE unaligned moves for IAMCU.
4271 2015-11-17  Venkataramanan Kumar  <Venkataramanan.Kumar@amd.com>
4273         * tree-if-conv.c: Include varasm.h
4274         (ref_DR_map): Define.
4275         (baseref_DR_map): Like wise
4276         (struct ifc_dr): Add new tree predicate field.
4277         (hash_memrefs_baserefs_and_store_DRs_read_written_info): New function.
4278         (memrefs_read_or_written_unconditionally): Remove.
4279         (write_memrefs_written_at_least_once): Remove.
4280         (ifcvt_memrefs_wont_trap): Use hash maps to query
4281         unconditional read/written information.
4282         (if_convertible_loop_p_1):  Initialize hash maps and predicates
4283         before hashing data references and delete hashmaps at the end.
4285 2015-11-16  Thomas Preud'homme <thomas.preudhomme@arm.com>
4287         PR 56036
4288         * doc/invoke.texi (Optimize Options): Move @end table to the right
4289         place.
4291 2015-11-16  Sandra Loosemore  <sandra@codesourcery.com>
4293         PR 65129
4294         * doc/extend.texi (__builtin_assume_aligned): Fix formatting of
4295         return value.
4297 2015-11-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
4299         * config/rs6000/vsx.md (VSX_L): Do not include IBM extended double
4300         128-bit types, just types that fit in a single vector.
4301         * config/rs6000/rs6000.md (FMOVE128_GPR): Likewise.
4303 2015-11-16  David Wohlferd  <dw@LimeGreenSocks.com>
4305         * doc/md.texi ('#' and '*' constraint modifiers): Do not include these
4306         in the user documentation.
4307         (define_peephole2, define_split): Similarly.
4309 2015-11-16 Andris Pavenis <andris.pavenis@iki.fi>
4311         * lto-streamer-out.c (write_global_references): Adjust integer type.
4312         (lto_output_decl_state_refs): Likewise.
4314 2015-11-16  James Greenhalgh  <james.greenhalgh@arm.com>
4316         * config/arm/arm-cores.def (cortex-a35): New.
4317         * config/arm/arm.c (arm_cortex_a35_tune): New.
4318         * config/arm/arm-tables.opt: Regenerate.
4319         * config/arm/arm-tune.md: Regenerate.
4320         * config/arm/bpabi.h (BE8_LINK_SPEC): Add cortex-a35.
4321         * config/arm/t-aprofile: Likewise.
4322         * doc/invoke.texi (-mcpu): Likewise.
4324 2015-11-16  Jim Wilson  <jim.wilson@linaro.org>
4326         * config/arm/t-aprofile (MULTILIB_MATCHES): Add lines for exynos-m1
4327         and qdf24xx and xgene1 to match -march=armv8-a.
4329 2015-11-16  Segher Boessenkool  <segher@kernel.crashing.org>
4331         PR rtl-optimization/68330
4332         * simplify-rtx.c (simplify_unary_operation_1): Simplify SIGN_EXTEND
4333         of LSHIFTRT by a non-zero constant integer.
4335 2015-11-16  Richard Biener  <rguenther@suse.de>
4337         PR tree-optimization/68306
4338         * tree-vect-data-refs.c (vect_verify_datarefs_alignment): Fix
4339         bogus copying from verify_data_ref_alignment and use continue
4340         instead of return.
4342 2015-11-16  Oleg Endo  <olegendo@gcc.gnu.org>
4343             Kaz Kojima  <kkojima@gcc.gnu.org>
4345         PR target/68277
4346         * config/sh/sh.md (addsi3_scr): Handle reg overlap of operands[0] and
4347         operands[2].
4348         (*addsi3): Add another insn_and_split variant for reload.
4350 2015-11-16  Richard Biener  <rguenther@suse.de>
4352         PR middle-end/68117
4353         * cfgexpand.c (pass_expand::execute): Destroy the edge
4354         redirection var map before setting RTL CFG hooks.
4356 2015-11-16  Alan Lawrence  <alan.lawrence@arm.com>
4358         * config/i386/sse.md (reduc_splus_v8df): Rename to...
4359         (reduc_plus_scal_v8df): ...here; reduce to temp and extract scalar.
4361         (reduc_splus_v4df): Rename to...
4362         (reduc_plus_scal_v4df): ...here; reduce to temp and extract scalar.
4364         (reduc_splus_v2df): Rename to...
4365         (reduc_plus_scal_v2df): ...here; reduce to temp and extract scalar.
4367         (reduc_splus_v16sf): Rename to...
4368         (reduc_plus_scal_v16sf): ...here; reduce to temp and extract scalar.
4370         (reduc_splus_v8sf): Rename to...
4371         (reduc_plus_scal_v8sf): ...here; reduce to temp and extract scalar.
4373         (reduc_splus_v4sf): Rename to...
4374         (reduc_plus_scal_v4sf): ...here; reduce to temp and extract scalar.
4376         (reduc_<code>_<mode>, all 3 variants): Rename each to...
4377         (reduc_<code>_scal_<mode>): ...here; reduce to temp and extract scalar.
4379         (reduc_umin_v8hf): Rename to...
4380         (reduc_umin_scal_v8hf): ...here; reduce to temp and extract scalar.
4382 2015-11-16  Kirill Yukhin  <kirill.yukhin@intel.com>
4384         * omp-low.c (pass_omp_simd_clone::gate): If target allows - call
4385         without additional conditions.
4386         * doc/extend.texi (@item simd): New.
4388 2015-11-16  Tom de Vries  <tom@codesourcery.com>
4390         * passes.c (first_pass_instance): Remove variable.
4391         (execute_todo): Remove setting of first_pass_instance.
4392         * tree-pass.h (first_pass_instance): Remove declaration.
4394 2015-11-16  Tom de Vries  <tom@codesourcery.com>
4396         * passes.def: Add arg to pass_ccp pass instantiation.
4397         * tree-ssa-ccp.c (ccp_finalize): Add param nonzero_p.  Use nonzero_p
4398         instead of first_pass_instance.
4399         (do_ssa_ccp): Add and handle param nonzero_p.
4400         (pass_ccp::pass_ccp): Initialize nonzero_p.
4401         (pass_ccp::set_pass_param): New member function.  Set nonzero_p.
4402         (pass_ccp::execute): Call do_ssa_ccp with extra arg.
4403         (pass_ccp::nonzero_p): New private member.
4405 2015-11-16  Tom de Vries  <tom@codesourcery.com>
4407         * passes.def: Add arg to pass_object_sizes pass instantiation.
4408         * tree-object-size.c (pass_object_sizes::pass_object_sizes): Initialize
4409         insert_min_max_p.
4410         (pass_object_sizes::set_pass_param): New member function.  Set
4411         insert_min_max_p.
4412         (pass_object_sizes::insert_min_max_p): New private member.
4413         (pass_object_sizes::execute): Use insert_min_max_p instead of
4414         first_pass_instance.
4416 2015-11-16  Tom de Vries  <tom@codesourcery.com>
4418         * passes.def: Add arg to pass_dominator pass instantiation.
4419         * tree-pass.h (first_pass_instance): Remove pass_dominator-related bit
4420         of comment.
4421         * tree-ssa-dom.c (pass_dominator::pass_dominator): Initialize
4422         may_peel_loop_headers_p.
4423         (pass_dominator::set_pass_param): New member function.  Set
4424         may_peel_loop_headers_p.
4425         (pass_dominator::may_peel_loop_headers_p): New private member.
4426         (pass_dominator::execute): Use may_peel_loop_headers_p instead of
4427         first_pass_instance.
4429 2015-11-16  Tom de Vries  <tom@codesourcery.com>
4431         * passes.def: Add arg to pass_reassoc pass instantiation.
4432         * tree-ssa-reassoc.c (reassoc_insert_powi_p): New static variable.
4433         (acceptable_pow_call, reassociate_bb): Use reassoc_insert_powi_p instead
4434         of first_pass_instance.
4435         (execute_reassoc): Add and handle insert_powi_p parameter.
4436         (pass_reassoc::insert_powi_p): New private member.
4437         (pass_reassoc::pass_reassoc): Initialize insert_powi_p.
4438         (pass_reassoc::set_pass_param): New member function.  Set insert_powi_p.
4439         (pass_reassoc::execute): Call execute_reassoc with extra arg.
4441 2015-11-16  Tom de Vries  <tom@codesourcery.com>
4443         * gdbhooks.py (class PassNames): Handle extra arg NEXT_PASS argument.
4444         * gen-pass-instances.awk (handle_line): Same.
4445         * pass_manager.h (class pass_manager): Define and undefine
4446         NEXT_PASS_WITH_ARG.
4447         * passes.c (opt_pass::set_pass_param): New function.
4448         (pass_manager::pass_manager): Define and undefine NEXT_PASS_WITH_ARG.
4449         * passes.def: Add extra arg to NEXT_PASS (pass_vrp).
4450         * tree-pass.h (gimple_opt::set_pass_param): Declare.
4451         * tree-vrp.c (vrp_finalize, execute_vrp): Add and handle
4452         warn_array_bounds_p parameter.
4453         (pass_vrp::pass_vrp): Initialize warn_array_bounds_p.
4454         (pass_vrp::set_pass_param): New function.
4455         (pass_vrp::execute): Add warn_array_bounds_p arg to execute_vrp call.
4456         (pass_vrp::warn_array_bounds_p): New private member.
4458 2015-11-16  Eric Botcazou  <ebotcazou@adacore.com>
4460         * config/sparc/sparc.c (sparc_emit_probe_stack_range): Adjust.
4461         (output_probe_stack_range): Rotate the loop and simplify.
4463 2015-11-16  Eric Botcazou  <ebotcazou@adacore.com>
4465         * config/rs6000/rs6000.c (rs6000_emit_probe_stack_rang): Adjust.
4466         (output_probe_stack_range): Rotate the loop and simplify.
4468 2015-11-16  Eric Botcazou  <ebotcazou@adacore.com>
4470         * config/i386/i386.c (ix86_adjust_stack_and_probe): Adjust and use
4471         an lea instruction when possible.
4472         (output_adjust_stack_and_probe): Rotate the loop and simplify.
4473         (ix86_emit_probe_stack_range): Adjust.
4474         (output_probe_stack_range): Rotate the loop and simplify.
4476 2015-11-16  Christian Bruel  <christian.bruel@st.com>
4478         * config/arm/arm_neon.h: Remove #ifndef check on __ARM_NEON.
4479         Replace #ifdef __ARM_FEATURE_CRYPTO, __ARM_FEATURE_FMA, __ARM_FP
4480         with appropriate pragma GCC target.
4482 2015-11-16  Christian Bruel  <christian.bruel@st.com>
4484         PR target/65837
4485         * config/arm/arm-c.c (arm_cpu_builtins): Conditionally set and reset
4486         __ARM_FEATURE_FMA and __ARM_NEON_FP, __ARM_FP.
4488 2015-11-16  James Greenhalgh  <james.greenhalgh@arm.com>
4490         * config/aarch64/aarch64.c (cortexa57_branch_costs): New.
4491         (cortexa57_tunings): Use it.
4493 2015-11-16  Christian Bruel  <christian.bruel@st.com>
4495         PR target/65837
4496         * config/arm/arm-c.c (arm_cpu_builtins): Set or reset
4497         __ARM_FEATURE_CRYPTO, __VFP_FP__, __ARM_NEON__
4498         (arm_pragma_target_parse): Change check for arm_cpu_builtins.
4499         undefine __ARM_FP.
4500         * config/arm/arm.c (arm_can_inline_p): Check FPUs.
4501         (arm_valid_target_attribute_rec): Handle -mfpu attribute target.
4502         * doc/invoke.texi (-mfpu=): Mention attribute and pragma.
4503         * doc/extend.texi (-mfpu=): Describe attribute.
4505 2015-11-16  Christian Bruel  <christian.bruel@st.com>
4507         PR target/65837
4508         * config/arm/arm-protos.h (arm_init_neon_builtins): Declare.
4509         * config/arm/arm.c (arm_valid_target_attribute_tree): Call
4510         arm_init_neon_builtins.
4511         * config/arm/arm-builtins.c (arm_init_neon_builtins): Split into...
4512         (arm_init_neon_builtins_internal)
4513         (arm_init_crypto_builtins_internal):
4514         Test and set neon_set_p, neon_crypto_set_p.
4515         (neon_set_p, neon_crypto_set_p): New static booleans.
4517 2015-11-16  Christian Bruel  <christian.bruel@st.com>
4519         PR target/65837
4520         * config/arm/arm.c (arm_fpu_desc): Remove.
4521         (all_fpus): Make global.
4522         (arm_option_override): Use FPU TARGET accessors.
4523         (arm_declare_function_name): Likewise.
4524         * config/arm/arm.h (TARGET_VFP, TARGET_VFPD32, TARGET_VFP5)
4525         (TARGET_VFP_SINGLE, TARGET_VFP_DOUBLE, TARGET_NEON_FP16)
4526         (TARGET_FP16, TARGET_FMA, TARGET_FPU_ARMV8, TARGET_CRYPTO)
4527         (TARGET_NEON): Likewise.
4528         (all_fpus): Declare extern.
4529         (TARGET_FPU_NAME, TARGET_FPU_MODEL, TARGET_FPU_REV)
4530         (TARGET_FPU_REGS, TARGET_FPU_FEATURES): Define all_fpus accessors.
4532 2015-11-15  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4534         PR middle-end/68366
4535         * sdbout.c: Include emit-rtl.h and function.h.
4537 2015-11-15  Gerald Pfeifer  <gerald@pfeifer.com>
4539         * config/i386/freebsd.h (SUBTARGET32_DEFAULT_CPU): Change to i586.
4540         Remove support for FreeBSD 5 and earlier.
4542 2015-11-14  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4544         * configure: Regenerate.
4545         * configure.ac: Always define ENABLE_OFFLOADING.
4546         * cgraph.c (cgraph_node::create): Adjust.
4547         * gcc.c (process_command): Likewise.
4548         * omp-low.c (create_omp_child_function): Likewise.
4549         (expand_omp_target): Likewise.
4550         * varpool.c (varpool_node::get_create): Likewise.
4552 2015-11-14  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4554         * defaults.h (EH_RETURN_HANDLER_RTX): New default definition.
4555         * df-scan.c (df_get_exit_block_use_set): Adjust.
4556         * except.c (expand_eh_return): Likewise.
4558 2015-11-14  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4560         * config/i386/i386.h (TARGET_PECOFF): Remove define.
4561         * defaults.h (TARGET_PECOFF): New default definition.
4562         * varasm.c (handle_vtv_comdat_section): Adjust.
4564 2015-11-14  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4566         * defaults.h: New definition of SDB_DEBUGGING_INFO.
4567         * doc/tm.texi: Regenerate.
4568         * doc/tm.texi.in: Adjust.
4569         * final.c (rest_of_clean_state): Remove check if
4570         SDB_DEBUGGING_INFO is defined.
4571         * function.c (number_blocks): Likewise.
4572         * output.h: Likewise.
4573         * sdbout.c: Likewise.
4574         * toplev.c (process_options): Likewise.
4576 2015-11-14  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4578         * gsyms.h (enum sdb_type): Remove code for EXTENDED_SDB_BASIC_TYPES.
4579         (enum sdb_masks): Likewise.
4580         * sdbout.c (plain_type_1): Likewise.
4581         * system.h: Poison EXTENDED_SDB_BASIC_TYPES macro.
4583 2015-11-14  Jakub Jelinek  <jakub@redhat.com>
4585         * omp-low.c (lower_omp_ordered): Add argument to GOMP_SMD_ORDERED_*
4586         internal calls - 0 if ordered simd and 1 for ordered threads simd.
4587         * tree-vectorizer.c (adjust_simduid_builtins): If GOMP_SIMD_ORDERED_*
4588         argument is 1, replace it with GOMP_ordered_* call instead of removing
4589         it.
4591 2015-11-13  Rich Felker <dalias@libc.org>
4593         * config/sh/sh.md (symGOT_load): Suppress __stack_chk_guard
4594         address loading hack for FDPIC targets.
4596 2015-11-13  Ajit Agarwal  <ajitkum@xilinx.com>
4597             Jeff Law  <law@redhat.com>
4599         * Makefile.in (OBJS): Add gimple-ssa-split-paths.o
4600         * common.opt (-fsplit-paths): New flag controlling path splitting.
4601         * doc/invoke.texi (fsplit-paths): Document.
4602         * opts.c (default_options_table): Add -fsplit-paths to -O2.
4603         * passes.def: Add split_paths pass.
4604         * timevar.def (TV_SPLIT_PATHS): New timevar.
4605         * tracer.c: Include "tracer.h"
4606         (ignore_bb_p): No longer static.
4607         (transform_duplicate): New function, broken out of tail_duplicate.
4608         (tail_duplicate): Use transform_duplicate.
4609         * tracer.h (ignore_bb_p): Declare
4610         (transform_duplicate): Likewise.
4611         * tree-pass.h (make_pass_split_paths): Declare.
4612         * gimple-ssa-split-paths.c: New file.
4614 2015-11-13  Kai Tietz  <ktietz70@googlemail.com>
4615             Marek Polacek  <polacek@redhat.com>
4616             Jason Merrill  <jason@redhat.com>
4618         * convert.c (maybe_fold_build1_loc): New.
4619         (maybe_fold_build2_loc): New.
4620         (convert_to_pointer_1): Split out from convert_to_pointer.
4621         (convert_to_pointer_nofold): New.
4622         (convert_to_real_1): Split out from convert_to_real.
4623         (convert_to_real_nofold): New.
4624         (convert_to_integer_1): Split out from convert_to_integer.
4625         (convert_to_integer_nofold): New.
4626         (convert_to_complex_1): Split out from convert_to_complex.
4627         (convert_to_complex_nofold): New.
4628         * convert.h: Declare new functions.
4629         * tree-complex.c (create_one_component_var): Break up line to
4630         avoid sequence point issues.
4632 2015-11-13  Jason Merrill  <jason@redhat.com>
4634         * fold-const.c (fold_convert_const): Fold changing cv-quals on
4635         VECTOR_CST.
4637         * hash-map.h (hash_map::empty): New.
4639 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
4641         * omp-low.c (scan_sharing_clauses): Accept INDEPENDENT, AUTO & SEQ.
4642         (oacc_loop_fixed_partitions): Correct return type to bool.
4643         (oacc_loop_auto_partitions): New.
4644         (oacc_loop_partition): Take mask argument, call
4645         oacc_loop_auto_partitions.
4646         (execute_oacc_device_lower): Provide mask to oacc_loop_partition.
4648 2015-11-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
4650         * config/rs6000/constraints.md (we constraint): New constraint for
4651         64-bit power9 vector support.
4652         (wL constraint): New constraint for the element in a vector that
4653         can be addressed by the MFVSRLD instruction.
4655         * config/rs6000/rs6000-protos.h (convert_float128_to_int): Add
4656         declaration.
4657         (convert_int_to_float128): Likewise.
4658         (rs6000_generate_compare): Add support for ISA 3.0 (power9)
4659         hardware support for IEEE 128-bit floating point.
4660         (rs6000_expand_float128_convert): Likewise.
4661         (convert_float128_to_int): Likewise.
4662         (convert_int_to_float128): Likewise.
4664         * config/rs6000/rs6000.md (UNSPEC_ROUND_TO_ODD): New unspecs for
4665         ISA 3.0 hardware IEEE 128-bit floating point.
4666         (UNSPEC_IEEE128_MOVE): Likewise.
4667         (UNSPEC_IEEE128_CONVERT): Likewise.
4668         (FMA_F): Add support for IEEE 128-bit floating point hardware support.
4669         (Ff): Add support for DImode.
4670         (Fv): Likewise.
4671         (any_fix code iterator): New and updated iterators for IEEE
4672         128-bit floating point hardware support.
4673         (any_float code iterator): Likewise.
4674         (s code attribute): Likewise.
4675         (su code attribute): Likewise.
4676         (az code attribute): Likewise.
4677         (uns code attribute): Likewise.
4678         (neg<mode>2, FLOAT128 iterator): Add support for IEEE 128-bit
4679         floating point hardware support.
4680         (abs<mode>2, FLOAT128 iterator): Likewise.
4681         (add<mode>3, IEEE128 iterator): New insns for IEEE 128-bit
4682         floating point hardware.
4683         (sub<mode>3, IEEE128 iterator): Likewise.
4684         (mul<mode>3, IEEE128 iterator): Likewise.
4685         (div<mode>3, IEEE128 iterator): Likewise.
4686         (copysign<mode>3, IEEE128 iterator): Likewise.
4687         (sqrt<mode>2, IEEE128 iterator): Likewise.
4688         (neg<mode>2, IEEE128 iterator): Likewise.
4689         (abs<mode>2, IEEE128 iterator): Likewise.
4690         (nabs<mode>2, IEEE128 iterator): Likewise.
4691         (fma<mode>4_hw, IEEE128 iterator): Likewise.
4692         (fms<mode>4_hw, IEEE128 iterator): Likewise.
4693         (nfma<mode>4_hw, IEEE128 iterator): Likewise.
4694         (nfms<mode>4_hw, IEEE128 iterator): Likewise.
4695         (extend<SFDF:mode><IEEE128:mode>2_hw): Likewise.
4696         (trunc<mode>df2_hw, IEEE128 iterator): Likewise.
4697         (trunc<mode>sf2_hw, IEEE128 iterator): Likewise.
4698         (fix_fixuns code attribute): Likewise.
4699         (float_floatuns code attribute): Likewise.
4700         (fix<uns>_<mode>si2_hw): Likewise.
4701         (fix<uns>_<mode>di2_hw): Likewise.
4702         (float<uns>_<mode>si2_hw): Likewise.
4703         (float<uns>_<mode>di2_hw): Likewise.
4704         (xscvqp<su>wz_<mode>): Likewise.
4705         (xscvqp<su>dz_<mode>): Likewise.
4706         (xscv<su>dqp_<mode): Likewise.
4707         (ieee128_mfvsrd): Likewise.
4708         (ieee128_mfvsrwz): Likewise.
4709         (ieee128_mtvsrw): Likewise.
4710         (ieee128_mtvsrd): Likewise.
4711         (trunc<mode>df2_odd): Likewise.
4712         (cmp<mode>_h): Likewise.
4713         (128-bit GPR splitters): Don't split a 128-bit move that is a
4714         direct move between GPR and vector registers using ISA 3.0 direct
4715         move instructions.
4716         (maddld4): Add support for the ISA 3.0 integer multiply-add
4717         instruction.
4719         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add ISA 3.0
4720         debugging.
4721         (rs6000_init_hard_regno_mode_ok): If ISA 3.0 and 64-bit, enable we
4722         constraint.  Disable the VSX<->GPR direct move helpers if we have
4723         the MFVSRLD and MTVSRDD instructions.
4724         (rs6000_secondary_reload_simple_move): Add support for doing
4725         vector direct moves directly without additional scratch registers
4726         if we have ISA 3.0 instructions.
4727         (rs6000_secondary_reload_direct_move): Update comments.
4728         (rs6000_output_move_128bit): Add support for ISA 3.0 vector
4729         instructions.
4731         * config/rs6000/vsx.md (vsx_mov<mode>): Add support for ISA 3.0
4732         direct move instructions.
4733         (vsx_movti_64bit): Likewise.
4734         (vsx_extract_<mode>): Likewise.
4736         * config/rs6000/rs6000.h (VECTOR_ELEMENT_MFVSRLD_64BIT): New
4737         macros for ISA 3.0 direct move instructions.
4738         (TARGET_DIRECT_MOVE_128): Likewise.
4739         (TARGET_MADDLD): Add support for the ISA 3.0 integer multiply-add
4740         instruction.
4742         * doc/md.texi (RS/6000 constraints): Document we, wF, wG, wL
4743         constraints.  Update wa documentation to say not to use %x<n> on
4744         instructions that only take Altivec registers.
4746 2015-11-13  David Malcolm  <dmalcolm@redhat.com>
4748         * Makefile.in (OBJS): Add gcc-rich-location.o.
4749         * diagnostic.c (diagnostic_append_note): Pass line_table to
4750         rich_location ctor.
4751         (emit_diagnostic): Likewise.
4752         (inform): Likewise.
4753         (inform_n): Likewise.
4754         (warning): Likewise.
4755         (warning_at): Likewise.
4756         (warning_n): Likewise.
4757         (pedwarn): Likewise.
4758         (permerror): Likewise.
4759         (error): Likewise.
4760         (error_n): Likewise.
4761         (error_at): Likewise.
4762         (sorry): Likewise.
4763         (fatal_error): Likewise.
4764         (internal_error): Likewise.
4765         (internal_error_no_backtrace): Likewise.
4766         (source_range::debug): Likewise.
4767         * gcc-rich-location.c: New file.
4768         * gcc-rich-location.h: New file.
4769         * genmatch.c (fatal_at): Pass line_table to rich_location ctor.
4770         (warning_at): Likewise.
4771         * gimple.h (gimple_set_block): Use set_block function.
4772         * input.c (dump_line_table_statistics): Dump stats on how many
4773         ranges were optimized vs how many needed ad-hoc table.
4774         (write_digit_row): Add "map" param; use its range_bits
4775         to calculate the per-character offset.
4776         (dump_location_info): Print the range and column bits for each
4777         ordinary map.  Use the range bits to calculate the per-character
4778         offset.  Pass the map as a new param to the various calls to
4779         write_digit_row.  Eliminate uses of
4780         ORDINARY_MAP_NUMBER_OF_COLUMN_BITS.
4781         * print-tree.c (print_node): Print any source range information.
4782         * rtl-error.c (diagnostic_for_asm): Likewise.
4783         * toplev.c (general_init): Initialize line_table's
4784         default_range_bits.
4785         * tree-cfg.c (move_block_to_fn): Likewise.
4786         (move_block_to_fn): Likewise.
4787         * tree-inline.c (copy_phis_for_bb): Likewise.
4788         * tree.c (tree_set_block): Likewise.
4789         (get_pure_location): New function.
4790         (set_source_range): New functions.
4791         (set_block): New function.
4792         (set_source_range): New functions.
4793         * tree.h (CAN_HAVE_RANGE_P): New.
4794         (EXPR_LOCATION_RANGE): New.
4795         (EXPR_HAS_RANGE): New.
4796         (get_expr_source_range): New inline function.
4797         (DECL_LOCATION_RANGE): New.
4798         (set_source_range): New decls.
4799         (get_decl_source_range): New inline function.
4801 2015-11-13  Alan Lawrence  <alan.lawrence@arm.com>
4803         PR tree-optimization/67682
4804         * tree-vect-slp.c (vect_split_slp_store_group): New.
4805         (vect_analyze_slp_instance): During basic block SLP, recurse on
4806         subgroups if vect_build_slp_tree fails after 1st vector.
4808 2015-11-13  Christian Bruel  <christian.bruel@st.com>
4810         PR target/65837
4811         * config/arm/arm.c (arm_option_override): Move NEON check...
4812         (arm_option_check_internal): here
4813         (arm_file_start): Move .fpu print...
4814         (arm_declare_function_name): here
4815         (arm_option_print): Dump current fpu name.
4816         * config/arm/arm.opt (arm_fpu_index): Mark Save.
4818 2015-11-13  Segher Boessenkool  <segher@kernel.crashing.org>
4819             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4821         * combine.c (subst): Don't substitute or simplify when
4822         handling register-wise widening multiply.
4823         (force_to_mode): Likewise.
4825 2015-11-13  Richard Sandiford  <richard.sandiford@arm.com>
4827         PR tree-optimization/68264
4828         * tree-call-cdce.c (gen_one_condition): Update commentary.
4829         (gen_conditions_for_pow_int_base): Invert the sense of the tests
4830         passed to gen_one_condition.
4831         (gen_conditions_for_domain): Likewise.  Use unordered comparisons.
4832         (shrink_wrap_one_built_in_call): Invert the sense of the tests,
4833         using EDGE_FALSE_VALUE for edges to the call block and
4834         EDGE_TRUE_VALUE for the others.
4836 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
4838         * config/nvptx/nvptx.c (nvptx_generate_vector_shuffle): Deal with
4839         complex types.
4841 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
4843         * gimplify.c (oacc_default_clause): Use inform for enclosing scope.
4845 2015-11-13  Tom de Vries  <tom@codesourcery.com>
4847         * gen-pass-instances.awk (handle_line): Rename prefix_len var to
4848         len_of_prefix.
4850 2015-11-13  Tom de Vries  <tom@codesourcery.com>
4852         * gen-pass-instances.awk (handle_line): Add args_str variable.
4854 2015-11-13  Martin Liska  <mliska@suse.cz>
4856         * graphite-poly.c (free_scop): Release scop->drs vector.
4857         * graphite-scop-detection.c (scop_detection::harmful_stmt_in_region):
4858         Release dom vector.
4859         (try_generate_gimple_bb): Use vNULL as a default initialization
4860         for vectors.
4862 2015-11-13  Martin Liska  <mliska@suse.cz>
4864         PR ipa/68311
4865         * ipa-icf.c (sem_item_optimizer::traverse_congruence_split):
4866         Replace array initialization (using a variable post-increment)
4867         that possible triggers multiple unsequenced modifications
4868         with a pair of pushes to a vector.
4870 2015-11-13  Richard Biener  <rguenther@suse.de>
4872         PR tree-optimization/68306
4873         * tree-vect-data-refs.c (verify_data_ref_alignment): Move
4874         loop related checks ...
4875         (vect_verify_datarefs_alignment): ... here.
4876         (vect_slp_analyze_and_verify_node_alignment): Compute and
4877         verify alignment of the single DR that it matters.
4878         * tree-vect-stmts.c (vectorizable_store): Add an assert.
4879         (vectorizable_load): Add a comment.
4880         * tree-vect-slp.c (vect_analyze_slp_cost_1): Fix DR used
4881         for determining load cost.
4883 2015-11-13  Ilya Enkovich  <enkovich.gnu@gmail.com>
4885         * tree-vect-loop.c (vect_determine_vectorization_factor): Check
4886         mix of boolean and integer vectors in a single statement.
4887         * tree-vect-slp.c (vect_mask_constant_operand_p): New.
4888         (vect_get_constant_vectors): Use vect_mask_constant_operand_p to
4889         determine constant type.
4890         * tree-vect-stmts.c (vectorizable_comparison): Provide vectype
4891         for loop invariants.
4893 2015-11-13  Alan Hayward <alan.hayward@arm.com>
4895         PR tree-optimization/66558
4896         * tree-vect-loop.c (is_integer_induction):Add.
4897         (vectorizable_reduction): Add integer induction checks.
4899 2015-11-13  Christophe Lyon  <christophe.lyon@linaro.org>
4901         Revert [ARM] Remove neon-testgen.ml and generated tests.
4903         2015-11-12  Christophe Lyon  <christophe.lyon@linaro.org>
4905         [ARM] Remove neon-testgen.ml and generated tests.
4907         * config/arm/neon-testgen.ml: Remove.
4909 2015-11-13  Richard Biener  <rguenther@suse.de>
4911         * tree-vect-loop.c (vect_analyze_loop_2): Add fatal parameter.
4912         Signal fatal failure if early checks fail.
4913         (vect_analyze_loop): If vect_analyze_loop_2 fails fatally
4914         do not bother testing further vector sizes.
4916 2015-11-13  Uros Bizjak  <ubizjak@gmail.com>
4918         * config/i386/predicates.md (misaligned_operand): Return true if
4919         operand is aligned to less than its natural alignmnet.
4921 2015-11-13  Ilya Enkovich  <enkovich.gnu@gmail.com>
4923         * doc/md.texi (vec_cmp@var{m}@var{n}): New item.
4924         (vec_cmpu@var{m}@var{n}): New item.
4925         (vcond@var{m}@var{n}): Specify comparison is signed.
4926         (vcondu@var{m}@var{n}): New item.
4927         (vcond_mask_@var{m}@var{n}): New item.
4928         (maskload@var{m}@var{n}): New item.
4929         (maskstore@var{m}@var{n}): New item.
4931 2015-11-13  Ilya Enkovich  <enkovich.gnu@gmail.com>
4933         * tree-vect-stmts.c (vectorizable_mask_load_store): Check
4934         types of stored value and storage are compatible.
4936 2015-11-13  Andris Pavenis  <andris.pavenis@iki.fi>
4938         * gcc.c (POST_LINK_SPEC): Define if not already defined.
4939         (LINK_COMMAND_SPEC): Use post_link.
4940         (post_link_spec): New, initialize to POST_LINK_SPEC.
4941         (post_link): Initialize new static spec.
4942         * doc/tm.texi.in (POST_LINK_SPEC): Document.
4943         * doc/tm.texi: Regenerated.
4945 2015-11-13  David Malcolm  <dmalcolm@redhat.com>
4947         PR driver/67613
4948         * Makefile.in (GCC_OBJS): Add spellcheck.o.
4949         (OBJS): Add spellcheck-tree.o.
4950         * gcc.c: Include "spellcheck.h".
4951         (suggest_option): New function.
4952         (driver::handle_unrecognized_options): Call suggest_option to
4953         provide a hint about misspelled options.
4954         * spellcheck.c: Update file comment.
4955         (levenshtein_distance): Convert 4-param implementation from static
4956         to extern scope.  Remove note about unit tests from leading
4957         comment for const char * implementation.  Move tree
4958         implementation to...
4959         * spellcheck-tree.c: New file.
4960         * spellcheck.h (levenshtein_distance):  Add 4-param decl.
4962 2015-11-13  David Malcolm  <dmalcolm@redhat.com>
4964         * Makefile.in (OBJS): Add spellcheck.o.
4965         * spellcheck.c: New file.
4966         * spellcheck.h: New file.
4968 2015-11-13  James Bowman  <james.bowman@ftdichip.com>
4970         * config/ft32/ft32.md (*sne): New insn pattern.
4972 2015-11-12  Brad Lucier  <lucier@math.purdue.edu>
4974         * cprop.c (is_too_expensive): Remove.
4975         (gcse.h): Include.
4976         (one_cprop_pass): Call gcse_or_cprop_is_too_expensive, not
4977         is_too_expensive.
4978         * gcse.h (gcse_or_cprop_is_too_expensive): Declare.
4979         * gcse.c (is_too_expensive): Rename to ...
4980         (gcse_or_cprop_is_too_expensive): ... this.
4981         Expand warning to add required size of max-gcse-memory.
4982         (one_pre_gcse_pass): Use it.
4983         (one_code_hoisting_pass): Use it.
4984         * params.def (max-gcse-memory): Increase from 50MB to 128MB.
4986 2015-11-12  James Norris  <jnorris@codesourcery.com>
4987             Joseph Myers  <joseph@codesourcery.com>
4989         * gimple-pretty-print.c (dump_gimple_omp_target): Handle
4990         GF_OMP_TARGET_KIND_OACC_DECLARE.
4991         * gimple.h (enum gf_mask): Add GF_OMP_TARGET_KIND_OACC_DECLARE.
4992         (is_gomple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_DECLARE.
4993         * gimplify.c (oacc_declare_returns): New.
4994         (gimplify_bind_expr): Prepend 'exit' stmt to cleanup.
4995         (device_resident_p): New function.
4996         (oacc_default_clause): Handle device_resident clause.
4997         (gimplify_oacc_declare_1, gimplify_oacc_declare): New functions.
4998         (gimplify_expr): Handle OACC_DECLARE.
4999         * omp-builtins.def (BUILT_IN_GOACC_DECLARE): New builtin.
5000         * omp-low.c (expand_omp_target): Handle
5001         GF_OMP_TARGET_KIND_OACC_DECLARE and BUILTIN_GOACC_DECLARE.
5002         (build_omp_regions_1): Handlde GF_OMP_TARGET_KIND_OACC_DECLARE.
5003         (lower_omp_target): Handle GF_OMP_TARGET_KIND_OACC_DECLARE,
5004         GOMP_MAP_DEVICE_RESIDENT and GOMP_MAP_LINK.
5005         (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_OACC_DECLARE.
5006         * tree-pretty-print.c (dump_omp_clause): Handle GOMP_MAP_LINK and
5007         GOMP_MAP_DEVICE_RESIDENT.
5009 2015-11-12  Christophe Lyon  <christophe.lyon@linaro.org>
5011         [ARM] Remove neon-testgen.ml and generated tests.
5013         * config/arm/neon-testgen.ml: Remove.
5015 2015-11-12  Jim Wilson  <jim.wilson@linaro.org>
5017         * config/aarch64/aarch64-cores.def (qdf24xx): New.
5018         * config/aarch64/aarch64-tune.md: Regenerated.
5019         * config/arm/arm-cores.def (qdf24xx): New.
5020         * config/arm/arm-tables.opt, config/arm/arm-tune.md: Regenerated.
5021         * config/arm/bpabi.h (BE8_LINK_SPEC): Add qdf24xx support.
5022         * doc/invoke.texi (AArch64 Options/-mtune): Add "qdf24xx".
5023         (ARM Options/-mtune): Likewise.
5025 2015-11-12  Martin Liska  <mliska@suse.cz>
5027         * config/i386/i386.c (ix86_valid_target_attribute_p):
5028         Finalize options at the of the function.
5029         * gcc.c (driver_get_configure_time_options): Call newly
5030         introduced init_opts_obstack.
5031         * lto-wrapper.c (main): Likewise.
5032         * opts.c (init_opts_obstack): New function.
5033         (init_options_struct): Call newly introduced init_opts_obstack.
5034         * opts.h (init_options_struct): Declare.
5036 2015-11-12  Martin Liska  <mliska@suse.cz>
5038         PR ipa/68035
5039         * ipa-icf.c (void sem_item::set_hash): New function.
5040         (sem_function::get_hash): Use renamed m_hash member variable.
5041         (sem_item::update_hash_by_addr_refs): Utilize get_hash.
5042         (sem_item::update_hash_by_local_refs): Likewise.
5043         (sem_variable::get_hash): Use renamed m_hash member variable.
5044         (sem_item_optimizer::update_hash_by_addr_refs): Utilize get_hash.
5045         (sem_item_optimizer::build_hash_based_classes): Utilize set_hash.
5046         (sem_item_optimizer::build_graph): As the hash value of an item
5047         is lazy initialized, force the calculation.
5048         * ipa-icf.h (set_hash): Declare new function and rename hash member
5049         variable to m_hash.
5051 2015-11-12  Richard Biener  <rguenther@suse.de>
5053         * tree-vectorizer.h (vect_slp_analyze_data_ref_dependences):
5054         Rename to vect_slp_analyze_instance_dependence.
5055         * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
5056         Remove WAR special-case.
5057         (vect_slp_analyze_node_dependences): Instead add more specific
5058         code here, not relying on other instances being vectorized.
5059         (vect_slp_analyze_instance_dependence): Adjust accordingly.
5060         * tree-vect-slp.c (vect_build_slp_tree_1): Remove excessive
5061         vertical space in dump files.
5062         (vect_print_slp_tree): Likewise.
5063         (vect_analyze_slp_instance): Dump a header for the final SLP tree.
5064         (vect_slp_analyze_bb_1): Delay computing relevant stmts and
5065         not vectorized stmts until after dependence analysis removed
5066         instances.  Merge alignment and dependence checks.
5067         * tree-vectorizer.c (pass_slp_vectorize::execute): Clear visited
5068         flag on all stmts.
5070 2015-11-12  Evandro Menezes  <e.menezes@samsung.com>
5072         * config/aarch64/aarch64-protos.h (tune_params): Add new members
5073         "max_case_values" and "cache_line_size".
5074         * config/aarch64/aarch64.c (aarch64_case_values_threshold): New
5075         function.
5076         (aarch64_override_options_internal): Tune heuristics based on new
5077         members in "tune_params".
5078         (TARGET_CASE_VALUES_THRESHOLD): Define macro.
5080 2015-11-12  Richard Biener  <rguenther@suse.de>
5082         PR tree-optimization/68306
5083         * tree-vect-data-refs.c (verify_data_ref_alignment): Remove
5084         relevant and vectorizable checks here.
5085         (vect_verify_datarefs_alignment): Add relevant check here.
5087 2015-11-12  Nathan Sidwell  <nathan@codesourcery.com>
5089         * gimplify.c (oacc_default_clause): New.
5090         (omp_notice_variable): Call it.
5092 2015-11-12  Ilya Enkovich  <enkovich.gnu@gmail.com>
5094         PR tree-optimization/68305
5095         * tree-vect-slp.c (vect_get_constant_vectors): Support
5096         COND_EXPR with SSA_NAME as a condition.
5098 2015-11-12  Eric Botcazou  <ebotcazou@adacore.com>
5100         * config/visium/visium-protos.h (notice_update_cc): Delete.
5101         (print_operand): Likewise.
5102         (print_operand_address): Likewise.
5104 2015-11-12  Uros Bizjak  <ubizjak@gmail.com>
5106         * config/alpha/alpha.h (FUNCTION_VALUE, LIBCALL_VALUE,
5107         FUNCTION_VALUE_REGNO_P): Remove.
5108         * config/alpha/alpha-protos.h (function_value): Remove.
5109         * config/alpha/alpha.c (function_value): Rename to...
5110         (alpha_function_value_1): ... this.  Make static.
5111         (alpha_function_value, alpha_libcall_value,
5112         alpha_function_value_regno_p): New functions.
5113         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
5114         TARGET_FUNCTION_VALUE_REGNO_P): Define.
5116 2015-11-12  Uros Bizjak  <ubizjak@gmail.com>
5118         * config/alpha/alpha.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
5119         * config/alpha/alpha.c (alpha_memory_latency): Make static.
5120         (alpha_register_move_cost, alpha_memory_move_cost): New functions.
5121         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
5123 2015-11-12  Eric Botcazou  <ebotcazou@adacore.com>
5125         PR target/67265
5126         * config/i386/i386.c (ix86_adjust_stack_and_probe): Remove obsolete
5127         assertion on the CFA register.
5129 2015-11-12  Ilya Enkovich  <enkovich.gnu@gmail.com>
5131         * expr.c (do_store_flag): Expand vector comparison as
5132         VEC_COND_EXPR if vector comparison is not supported by target.
5134 2015-11-12  Renlin Li  <renlin.li@arm.com>
5136         * config/arm/arm.md (addsi3_compare_op2): Make the order of
5137         assembly pattern consistent with constraint order.
5139 2015-11-12  Tom de Vries  <tom@codesourcery.com>
5141         * gen-pass-instances.awk (handle_line): Simplify match regexp.
5143 2015-11-12  Tom de Vries  <tom@codesourcery.com>
5145         * gen-pass-instances.awk (handle_line): Simplify init of
5146         postfix_starts_at.
5148 2015-11-12  Tom de Vries  <tom@codesourcery.com>
5150         * gen-pass-instances.awk (handle_line): Rename var where to
5151         call_starts_at.
5153 2015-11-12  Claudiu Zissulescu  <claziss@synopsys.com>
5155         * config/arc/arc.c (gen_compare_reg): Swap operands also when we
5156         do not expand to rtl.
5158 2015-11-12  Richard Biener  <rguenther@suse.de>
5160         PR tree-optimization/58497
5161         * tree-vect-generic.c: Include gimplify.h.
5162         (tree_vec_extract): Lookup constant/constructor DEFs.
5163         (do_cond): Unshare cond.
5165 2015-11-12  Uros Bizjak  <ubizjak@gmail.com>
5167         * config/i386/i386.c (ix86_legitimate_combined_insn): Reject
5168         combined insn if the alignment of vector mode memory operand
5169         is less than ssememalign.
5171 2015-11-12  Tom de Vries  <tom@codesourcery.com>
5173         * gen-pass-instances.awk (handle_line): Print parentheses and
5174         pass_name explicitly.
5176 2015-11-12  Tom de Vries  <tom@codesourcery.com>
5178         * gen-pass-instances.awk (handle_line): Add pass_num, prefix
5179         and postfix vars.
5181 2015-11-12  Tom de Vries  <tom@codesourcery.com>
5183         * gen-pass-instances.awk (handle_line): Add comments.
5185 2015-11-12  Tom de Vries  <tom@codesourcery.com>
5187         * gen-pass-instances.awk (handle_line): Rename len_of_end to
5188         len_of_close.
5190 2015-11-12  Tom de Vries  <tom@codesourcery.com>
5192         * gen-pass-instances.awk (handle_line): Add len_of_call variable.
5194 2015-11-12  Tom de Vries  <tom@codesourcery.com>
5196         * gen-pass-instances.awk (handle_line): Restructure using early-out.
5198 2015-11-12  Tom de Vries  <tom@codesourcery.com>
5200         * gen-pass-instances.awk (handle_line): Unify semicolon use.
5202 2015-11-12  Tom de Vries  <tom@codesourcery.com>
5204         * gen-pass-instances.awk (handle_line): Remove unused var line_length.
5206 2015-11-12  Tom de Vries  <tom@codesourcery.com>
5208         * gen-pass-instances.awk: Add emacs indent setting.
5210 2015-11-12  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
5212         * fold-const.c (fold_binary_loc) : Move Convert A/B/C to A/(B*C)
5213         to match.pd.
5214         Move Convert A/(B/C) to (A/B)*C to match.pd.
5215         Move Convert C1/(X*C2) into (C1/C2)/X to match.pd.
5216         Move Optimize (X & (-A)) / A where A is a power of 2, to
5217         X >> log2(A) to match.pd.
5219         * match.pd (rdiv (rdiv:s @0 @1) @2): New simplifier.
5220         (rdiv @0 (rdiv:s @1 @2)): New simplifier.
5221         (div (convert? (bit_and @0 INTEGER_CST@1)) INTEGER_CST@2):
5222         New simplifier.
5223         (rdiv REAL_CST@0 (mult @1 REAL_CST@2)): New simplifier.
5225 2015-11-12  Charles Baylis  <charles.baylis@linaro.org>
5227         * config/arm/neon.md: (neon_vld2_lane<mode>): Remove unused max
5228         variable.
5229         (neon_vst2_lane<mode>): Likewise.
5230         (neon_vld3_lane<mode>): Likewise.
5231         (neon_vst3_lane<mode>): Likewise.
5232         (neon_vld4_lane<mode>): Likewise.
5233         (neon_vst4_lane<mode>): Likewise.
5235 2015-11-11  Aditya Kumar  <aditya.k7@samsung.com>
5236             Sebastian Pop  <s.pop@samsung.com>
5238         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
5239         New member codegen_error
5240         (translate_isl_ast_for_loop): Remove call to single_succ_edge and
5241         early return.
5242         (translate_isl_ast_node_user): Early return in case of error.
5243         (translate_isl_ast_to_gimple::translate_isl_ast): Same.
5244         (translate_isl_ast_to_gimple::translate_pending_phi_nodes): New.
5245         (add_parameters_to_ivs_params): Remove macro.
5246         (graphite_regenerate_ast_isl): Add if_region pointer to region.
5247         * graphite-poly.c (new_poly_dr): Remove macro.
5248         (print_pdr): Same.
5249         (new_gimple_poly_bb): Same.
5250         (free_gimple_poly_bb): Same.
5251         (print_scop_params): Same.
5252         * graphite-poly.h (struct poly_dr): Same.
5253         (struct poly_bb): Add new_bb.
5254         (gbb_from_bb): Remove dead code.
5255         (pbb_from_bb): Same.
5256         * graphite-scop-detection.c (parameter_index_in_region_1): Same.
5257         (parameter_index_in_region): Same.
5258         (find_scop_parameters): Same.
5259         (build_cross_bb_scalars_def): New.
5260         (build_cross_bb_scalars_use): New.
5261         (graphite_find_cross_bb_scalar_vars): New
5262         (try_generate_gimple_bb): Reads and Writes.
5263         (build_alias_set): Move.
5264         (gather_bbs::before_dom_children): Gather bbs visited.
5265         (build_scops): call build_alias_set.
5266         * graphite-sese-to-poly.c (phi_arg_in_outermost_loop): Delete.
5267         (remove_simple_copy_phi): Delete.
5268         (remove_invariant_phi): Delete.
5269         (simple_copy_phi_p): Delete.
5270         (reduction_phi_p): Delete.
5271         (isl_id_for_dr): Remove unused param.
5272         (parameter_index_in_region_1): Remove macro usage.
5273         (set_scop_parameter_dim): Same.
5274         (add_param_constraints): Same.
5275         (add_conditions_to_constraints): Same
5276         (build_scop_iteration_domain): Same.
5277         (pdr_add_alias_set): Comment.
5278         (add_scalar_version_numbers): New.
5279         (build_poly_dr): ISL id.
5280         (build_scop_drs): Move.
5281         (build_poly_sr_1): Same.
5282         (insert_stmts): Remove.
5283         (build_poly_sr): New.
5284         (new_pbb_from_pbb): Delete.
5285         (insert_out_of_ssa_copy_on_edge): Delete.
5286         (create_zero_dim_array): Delete.
5287         (scalar_close_phi_node_p): Delete.
5288         (propagate_expr_outside_region): Delete.
5289         (rewrite_close_phi_out_of_ssa): Delete.
5290         (rewrite_phi_out_of_ssa): Delete.
5291         (rewrite_degenerate_phi): Delete.
5292         (rewrite_reductions_out_of_ssa): Delete.
5293         (rewrite_cross_bb_scalar_dependence): Delete.
5294         (handle_scalar_deps_crossing_scop_limits):
5295         (rewrite_cross_bb_scalar_deps): Delete.
5296         (build_poly_scop): Remove calls to out-of-ssa functions.
5297         * graphite.c (graphite_transform_loops): Early return in case of
5298         codegen error.
5299         * sese.c (debug_rename_map_1): Delete.
5300         (debug_rename_map): Delete.
5301         (sese_record_loop): Remove macro.
5302         (build_sese_loop_nests): Same.
5303         (new_sese_info): Same.
5304         (free_sese_info): Same.
5305         (sese_insert_phis_for_liveouts):
5306         (is_loop_closed_ssa_use): New.
5307         (number_of_phi_nodes): New.
5308         (bb_contains_loop_close_phi_nodes): New.
5309         (bb_contains_loop_phi_nodes): New.
5310         (phi_uses_name): New.
5311         (is_valid_rename):
5312         (get_rename): Add old_bb and loop_phi for more precise matching of
5313         exprs.
5314         (set_rename): Pass region.
5315         (later_of_the_two): New.
5316         (gsi_insert_earliest): New.
5317         (collect_all_ssa_names): New.
5318         (substitute_ssa_name): New.
5319         (rename_all_uses): New.
5320         (get_rename_from_scev): New.
5321         (rename_uses): Pass old_bb for more precise matching of exprs.
5322         (get_def_bb_for_const): New.
5323         (get_new_name): New.
5324         (get_loc): New.
5325         (get_edges): New.
5326         (copy_loop_phi_args): New.
5327         (copy_loop_phi_nodes): New.
5328         (get_loop_init_value): New.
5329         (find_init_value): New.
5330         (find_init_value_close_phi): New.
5331         (copy_loop_close_phi_args): New.
5332         (copy_loop_close_phi_nodes): New.
5333         (add_phi_arg_for_new_expr): New.
5334         (copy_cond_phi_args): New.
5335         (copy_cond_phi_nodes): New.
5336         (copy_phi_nodes): New.
5337         (should_copy_to_new_region): New.
5338         (set_rename_for_each_def): New.
5339         (graphite_copy_stmts_from_block): Early return in case of error.
5340         (copy_bb_and_scalar_dependences): Same.
5341         * sese.h (vec_find): New.
5342         (SESE_PARAMS): Delete.
5343         (SESE_LOOPS): Delete.
5344         (SESE_LOOP_NEST): Delete.
5345         (sese_contains_loop): Remove macro usage.
5346         (sese_nb_params): Same.
5347         (struct gimple_poly_bb): Added read_scalar_refs, write_scalar_refs.
5349 2015-11-11  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
5351         * graphite-sese-to-poly.c (build_scop_original_schedule): Call
5352         isl_union_map_add_map on every pbb->schedule.
5354 2015-11-11  Tom de Vries  <tom@codesourcery.com>
5356         * tree-parloops.c (create_parallel_loop): Return void.
5358 2015-11-11  Tom de Vries  <tom@codesourcery.com>
5360         * tree-parloops.c (transform_to_exit_first_loop_alt): Insert new exit
5361         block only when needed.
5363 2015-11-11  Uros Bizjak  <ubizjak@gmail.com>
5365         * config/alpha/alpha-protos.h (print_operand): Remove.
5366         (print_operand_address): Remove.
5367         * config/alpha/alpha.h (PRINT_OPERAND): Remove.
5368         (PRINT_OPERAND_ADDRESS): Remove.
5369         (PRINT_OPERAND_PUNCT_VALID_P): Remove.
5370         * config/alpha/alpha.c (TARGET_PRINT_OPERAND): New hook define.
5371         (TARGET_PRINT_OPERAND_ADDRESS): New hook define.
5372         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): New hook define.
5373         (print_operand_address): Rename to...
5374         (alpha_print_operand_address): ...this and make static.
5375         (print_operand): Rename to...
5376         (alpha_print_operand): ...this and make static.
5377         (alpha_print_operand_punct_valid_p): New static function.
5379 2015-11-11  Richard Biener  <rguenther@suse.de>
5381         * tree-vectorizer.h (vect_slp_analyze_and_verify_instance_alignment):
5382         Declare.
5383         (vect_analyze_data_refs_alignment): Make loop vect specific.
5384         (vect_verify_datarefs_alignment): Likewise.
5385         * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependences):
5386         Add missing continue.
5387         (vect_compute_data_ref_alignment): Export.
5388         (vect_compute_data_refs_alignment): Merge into...
5389         (vect_analyze_data_refs_alignment): ... this.
5390         (verify_data_ref_alignment): Split out from ...
5391         (vect_verify_datarefs_alignment): ... here.
5392         (vect_slp_analyze_and_verify_node_alignment): New function.
5393         (vect_slp_analyze_and_verify_instance_alignment): Likewise.
5394         * tree-vect-slp.c (vect_supported_load_permutation_p): Remove
5395         misplaced checks on alignment.
5396         (vect_slp_analyze_bb_1): Add fatal output parameter.  Do
5397         alignment analysis after SLP discovery and do it per instance.
5398         (vect_slp_bb): When vect_slp_analyze_bb_1 fatally failed do not
5399         bother to re-try using different vector sizes.
5401 2015-11-11  Nathan Sidwell  <nathan@codesourcery.com>
5402             Cesar Philippidis  <cesar@codesourcery.com>
5404         * gimplify.c (enum omp_region_type): Add ORT_ACC,
5405         ORT_ACC_DATA, ORT_ACC_PARALLEL, ORT_ACC_KERNELS.  Adjust ORT_NONE.
5406         (gimple_add_tmp_var): Add ORT_ACC checks.
5407         (gimplify_var_or_parm_decl): Likewise.
5408         (omp_firstprivatize_variable): Likewise. Use ORT_TARGET_DATA as a mask.
5409         (omp_add_variable): Look in outer contexts for openacc and allow
5410         reductions with other sharing. Add ORT_ACC and ORT_TARGET_DATA checks.
5411         (omp_notice_variable, omp_is_private, omp_check_private): Add
5412         ORT_ACC checks.
5413         (gimplify_scan_omp_clauses: Treat ORT_ACC as ORT_WORKSHARE.
5414         Permit private openacc reductions.
5415         (gimplify_oacc_cache): Specify ORT_ACC.
5416         (gimplify_omp_workshare): Adjust OpenACC region types.
5417         (gimplify_omp_target_update): Likewise.
5418         * omp-low.c (scan_sharing_clauses): Remove Openacc firstprivate sorry.
5419         (lower-rec_input_clauses): Don't handle openacc firstprivate
5420         references here.
5421         (lower_omp_target): Emit initializers for openacc firstprivate vars.
5423 2015-11-11  Eric Botcazou  <ebotcazou@adacore.com>
5425         PR target/67265
5426         * ira.c (ira_setup_eliminable_regset): Do not necessarily create the
5427         frame pointer for stack checking if non-call exceptions aren't used.
5428         * config/i386/i386.c (ix86_finalize_stack_realign_flags): Likewise.
5430 2015-11-11  Segher Boessenkool  <segher@kernel.crashing.org>
5432         * simplify-rtx.c (simplify_truncation): Simplify TRUNCATE of AND of
5433         [LA]SHIFTRT.
5435 2015-11-11  Martin Liska  <mliska@suse.cz>
5436             Richard Biener  <rguenther@suse.de>
5438         PR rtl-optimization/68287
5439         * lra-lives.c (lra_create_live_ranges_1): Reserve the right
5440         number of elements.
5442 2015-11-11  Simon Dardis  <simon.dardis@imgtec.com>
5444         * config/mips/mips.c (mips_breakable_sequence_p): New function.
5445         (mips_break_sequence): New function.
5446         (mips_reorg_process_insns): Use them. Use compact branches in selected
5447         situations.
5449 2015-11-11  Alan Lawrence  <alan.lawrence@arm.com>
5451         * fold-const.c (get_array_ctor_element_at_index): Fix whitespace, typo.
5453 2015-11-11  Jiong Wang  <jiong.wang@arm.com>
5454             Jim Wilson  <wilson@gcc.gnu.org>
5456         PR target/67305
5457         * config/arm/arm.md (neon_vector_mem_operand): Return FALSE if strict
5458         be true and eliminable registers mentioned.
5460 2015-11-11  Claudiu Zissulescu  <claziss@synopsys.com>
5462         * common/config/arc/arc-common.c (arc_handle_option): Handle ARCv2
5463         options.
5464         * config/arc/arc-opts.h: Add ARCv2 CPUs.
5465         * config/arc/arc-protos.h (arc_secondary_reload_conv): Prototype.
5466         * config/arc/arc.c (arc_secondary_reload): Handle subreg (reg)
5467         situation, and store instructions with large offsets.
5468         (arc_secondary_reload_conv): New function.
5469         (arc_init): Add ARCv2 options.
5470         (arc_conditional_register_usage): Select the proper register usage
5471         for ARCv2 processors.
5472         (arc_handle_interrupt_attribute): ILINK2 is only valid for ARCv1
5473         architecture.
5474         (arc_compute_function_type): Likewise.
5475         (arc_print_operand): Handle new ARCv2 punctuation characters.
5476         (arc_return_in_memory): ARCv2 ABI returns in registers up to 16 bytes.
5477         (workaround_arc_anomaly, arc_asm_insn_p, arc_loop_hazard): New
5478         function.
5479         (arc_reorg, arc_hazard): Use it.
5480         * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __HS__ and __EM__.
5481         (ASM_SPEC): Add ARCv2 options.
5482         (TARGET_NORM): ARC HS has norm instructions by default.
5483         (TARGET_OPTFPE): Use optimized floating point emulation for ARC HS.
5484         (TARGET_AT_DBR_CONDEXEC): Only for ARC600 family.
5485         (TARGET_EM, TARGET_HS, TARGET_V2, TARGET_MPYW, TARGET_MULTI): Define.
5486         (SIGNED_INT16, TARGET_MPY, TARGET_ARC700_MPY, TARGET_ANY_MPY):
5487         Likewise.
5488         (TARGET_ARC600_FAMILY, TARGET_ARCOMPACT_FAMILY): Likewise.
5489         (TARGET_LP_WR_INTERLOCK): Likewise.
5490         * config/arc/arc.md
5491         (commutative_binary_mult_comparison_result_used, movsicc_insn)
5492         (mulsi3, mulsi3_600_lib, mulsidi3, mulsidi3_700, mulsi3_highpart)
5493         (umulsi3_highpart_i, umulsi3_highpart_int, umulsi3_highpart)
5494         (umulsidi3, umulsidi3_700, cstoresi4, simple_return, p_return_i):
5495         Use it for ARCv2.
5496         (mulhisi3, mulhisi3_imm, mulhisi3_reg, umulhisi3, umulhisi3_imm)
5497         (umulhisi3_reg, umulhisi3_reg, mulsi3_v2, nopv, bswapsi2)
5498         (prefetch, divsi3, udivsi3 modsi3, umodsi3, arcset, arcsetltu)
5499         (arcsetgeu, arcsethi, arcsetls, reload_*_load, reload_*_store)
5500         (extzvsi): New pattern.
5501         * config/arc/arc.opt: New ARCv2 options.
5502         * config/arc/arcEM.md: New file.
5503         * config/arc/arcHS.md: Likewise.
5504         * config/arc/constraints.md (C3p): New constraint, accepts 1 and 2
5505         values.
5506         (Cm2): A signed 9-bit integer constant constraint.
5507         (C62): An unsigned 6-bit integer constant constraint.
5508         (C16): A signed 16-bit integer constant constraint.
5509         * config/arc/predicates.md (mult_operator): Add ARCv2 processort.
5510         (short_const_int_operand): New predicate.
5511         * config/arc/t-arc-newlib: Add ARCv2 multilib options.
5512         * doc/invoke.texi: Add documentation for -mcpu=<archs/arcem>
5513         -mcode-density and -mdiv-rem.
5515 2015-11-11  Julia Koval  <julia.koval@intel.com>
5517         * config/i386/i386.c (m_SKYLAKE_AVX512): Fix typo.
5519 2015-11-11  Julia Koval  <julia.koval@intel.com>
5521         * config/i386/i386.c: Handle "skylake" and "skylake-avx512".
5523 2015-11-11  Martin Liska  <mliska@suse.cz>
5525         * gimple-ssa-strength-reduction.c (create_phi_basis):
5526         Use auto_vec.
5527         * passes.c (release_dump_file_name): New function.
5528         (pass_init_dump_file): Used from this function.
5529         (pass_fini_dump_file): Likewise.
5530         * tree-sra.c (convert_callers_for_node): Use xstrdup_for_dump.
5531         * var-tracking.c (vt_initialize): Use pool_allocator.
5533 2015-11-11  Richard Biener  <rguenth@gcc.gnu.org>
5534             Jiong Wang      <jiong.wang@arm.com>
5536         PR tree-optimization/68234
5537         * tree-vrp.c (vrp_visit_phi_node): Extend SCEV check to those loop PHI
5538         node which estimiated to be VR_VARYING initially.
5540 2015-11-11  Robert Suchanek  <robert.suchanek@imgtec.com>
5542         * regname.c (scan_rtx_reg): Check the matching number of consecutive
5543         registers when tying chains.
5544         (build_def_use): Move terminated_this_insn earlier in the function.
5546 2015-11-10  Mike Frysinger  <vapier@gentoo.org>
5548         * configure.ac: Use = with test and not ==.
5549         * configure: Regenerated.
5551 2015-11-11  David Edelsohn  <dje.gcc@gmail.com>
5553         * config/rs6000/aix.h (TARGET_OS_AIX_CPP_BUILTINS): Add cpu and
5554         machine asserts.  Update defines for 64 bit.
5556 2015-11-11  Charles Baylis  <charles.baylis@linaro.org>
5558         PR target/63870
5559         * config/arm/neon.md (neon_vld1_lane<mode>): Remove error for invalid
5560         lane number.
5561         (neon_vst1_lane<mode>): Likewise.
5562         (neon_vld2_lane<mode>): Likewise.
5563         (neon_vst2_lane<mode>): Likewise.
5564         (neon_vld3_lane<mode>): Likewise.
5565         (neon_vst3_lane<mode>): Likewise.
5566         (neon_vld4_lane<mode>): Likewise.
5567         (neon_vst4_lane<mode>): Likewise.
5569 2015-11-11  Charles Baylis  <charles.baylis@linaro.org>
5571         PR target/63870
5572         * config/arm/arm-builtins.c: (arm_load1_qualifiers) Use
5573         qualifier_struct_load_store_lane_index.
5574         (arm_storestruct_lane_qualifiers) Likewise.
5575         * config/arm/neon.md: (neon_vld1_lane<mode>) Reverse lane numbers for
5576         big-endian.
5577         (neon_vst1_lane<mode>) Likewise.
5578         (neon_vld2_lane<mode>) Likewise.
5579         (neon_vst2_lane<mode>) Likewise.
5580         (neon_vld3_lane<mode>) Likewise.
5581         (neon_vst3_lane<mode>) Likewise.
5582         (neon_vld4_lane<mode>) Likewise.
5583         (neon_vst4_lane<mode>) Likewise.
5585 2015-11-11  Charles Baylis  <charles.baylis@linaro.org>
5587         PR target/63870
5588         * config/arm/arm-builtins.c (enum arm_type_qualifiers): New enumerator
5589         qualifier_struct_load_store_lane_index.
5590         (builtin_arg): New enumerator NEON_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
5591         (arm_expand_neon_args): New parameter. Remove ellipsis. Handle NEON
5592         argument qualifiers.
5593         (arm_expand_neon_builtin): Handle new NEON argument qualifier.
5594         * config/arm/arm.h (NEON_ENDIAN_LANE_N): New macro.
5596 2015-11-10  Nathan Sidwell  <nathan@codesourcery.com>
5598         * config/nvptx/nvptx.opt (moptimize): New flag.
5599         * config/nvptx/nvptx.c (nvptx_option_override): Set nvptx_optimize
5600         default.
5601         (nvptx_optimize_inner): New.
5602         (nvptx_process_pars): Call it when optimizing.
5603         * doc/invoke.texi (Nvidia PTX Options): Document -moptimize.
5605 2015-11-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5607         * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
5608         Remove redundant code.
5610 2015-11-10  Jeff Law  <law@redhat.com>
5612         * config/ft32/ft32.c (ft32_print_operand): Supply mode to
5613         call to output_address.
5614         * config/moxie/moxie.c (moxie_print_operand_address): Similarly.
5615         Add unnamed machine_mode argument.
5617 2015-11-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
5619         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add power9 to hosts that
5620         default to 64-bit.
5622 2015-11-10  Uros Bizjak  <ubizjak@gmail.com>
5624         * config/i386/i386.md (*movabs<mode>_1): Add explicit
5625         size directives for -masm=intel.
5626         (*movabs<mode>_2): Ditto.
5628 2015-11-10  Uros Bizjak  <ubizjak@gmail.com>
5630         * config/i386/i386.c (ix86_print_operand): Remove dead code that
5631         tried to avoid (%rip) for call operands.
5633 2015-11-10  Uros Bizjak  <ubizjak@gmail.com>
5635         * config/i386/i386.c (ix86_print_operand_address_as): Add no_rip
5636         argument.  Do not use RIP relative addressing when no_rip is set.
5637         (ix86_print_operand): Update call to ix86_print_operand_address_as.
5638         (ix86_print_operand_address): Ditto.
5639         * config/i386/i386.md (*movabs<mode>_1): Use %P modifier for
5640         absolute movabs operand 0.  Add square braces for -masm=intel.
5641         (*movabs<mode>_2): Ditto for operand 1.
5643 2015-11-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5645         * config/arm/arm.c (arm_new_rtx_costs, FIX case): Handle
5646         combine_vcvtf2i pattern.
5648 2015-11-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5650         * config/arm/arm.c (neon_valid_immediate): Remove integer
5651         CONST_DOUBLE handling.  It should never occur.
5653 2015-11-10  Matthew Wahab  <matthew.wahab@arm.com>
5655         * config/aarch64/atomics.md (unspecv): Move to iterators.md.
5656         (ATOMIC_LDOP): Likewise.
5657         (atomic_ldop): Likewise.
5658         * config/aarch64/iterators.md (unspecv): Moved from atomics.md.
5659         (ATOMIC_LDOP): Likewise.
5660         (atomic_ldop): Likewise.
5662 2015-11-10  Martin Liska  <mliska@suse.cz>
5664         * alloc-pool.h (allocate_raw): New function.
5665         (operator new (size_t, object_allocator<T> &a)): Use the
5666         function instead of object_allocator::allocate).
5668 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
5670         * config/i386/sse.md (HALFMASKMODE): New attribute.
5671         (DOUBLEMASKMODE): New attribute.
5672         (vec_pack_trunc_qi): New.
5673         (vec_pack_trunc_<mode>): New.
5674         (vec_unpacks_lo_hi): New.
5675         (vec_unpacks_lo_si): New.
5676         (vec_unpacks_lo_di): New.
5677         (vec_unpacks_hi_hi): New.
5678         (vec_unpacks_hi_<mode>): New.
5680 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
5682         * optabs.c (expand_binop_directly): Allow scalar mode for
5683         vec_pack_trunc_optab.
5684         * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
5685         boolean vector producers from pattern sequence when computing VF.
5686         * tree-vect-patterns.c (vect_vect_recog_func_ptrs) Add
5687         vect_recog_mask_conversion_pattern.
5688         (search_type_for_mask): Choose the smallest
5689         type if different size types are mixed.
5690         (build_mask_conversion): New.
5691         (vect_recog_mask_conversion_pattern): New.
5692         (vect_pattern_recog_1): Allow scalar mode for boolean vectype.
5693         * tree-vect-stmts.c (vectorizable_mask_load_store): Support masked
5694         load with pattern.
5695         (vectorizable_conversion): Support boolean vectors.
5696         (free_stmt_vec_info): Allow patterns for statements with no lhs.
5697         * tree-vectorizer.h (NUM_PATTERNS): Increase to 14.
5699 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
5701         * config/i386/i386-protos.h (ix86_expand_sse_movcc): New.
5702         * config/i386/i386.c (ix86_expand_sse_movcc): Make public.
5703         Cast mask to FP mode if required.
5704         * config/i386/sse.md (vcond_mask_<mode><avx512fmaskmodelower>): New.
5705         (vcond_mask_<mode><avx512fmaskmodelower>): New.
5706         (vcond_mask_<mode><sseintvecmodelower>): New.
5707         (vcond_mask_<mode><sseintvecmodelower>): New.
5708         (vcond_mask_v2div2di): New.
5709         (vcond_mask_<mode><sseintvecmodelower>): New.
5710         (vcond_mask_<mode><sseintvecmodelower>): New.
5712 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
5714         * optabs-query.h (get_vcond_mask_icode): New.
5715         * optabs-tree.c (expand_vec_cond_expr_p): Use
5716         get_vcond_mask_icode for VEC_COND_EXPR with mask.
5717         * optabs.c (expand_vec_cond_mask_expr): New.
5718         (expand_vec_cond_expr): Use get_vcond_mask_icode when possible.
5719         * optabs.def (vcond_mask_optab): New.
5720         * tree-vect-patterns.c (vect_recog_bool_pattern): Don't
5721         generate redundant comparison for COND_EXPR.
5722         * tree-vect-stmts.c (vect_is_simple_cond): Allow SSA_NAME
5723         as a condition.
5724         (vectorizable_condition): Likewise.
5725         * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow
5726         cond_exp with no embedded comparison.
5727         (vect_build_slp_tree_1): Likewise.
5729 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
5731         * config/i386/sse.md (maskload<mode>): Rename to ...
5732         (maskload<mode><sseintvecmodelower>): ... this.
5733         (maskstore<mode>): Rename to ...
5734         (maskstore<mode><sseintvecmodelower>): ... this.
5735         (maskload<mode><avx512fmaskmodelower>): New.
5736         (maskstore<mode><avx512fmaskmodelower>): New.
5738 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
5740         * internal-fn.c (expand_MASK_LOAD): Adjust to maskload optab changes.
5741         (expand_MASK_STORE): Adjust to maskstore optab changes.
5742         * optabs-query.c (can_vec_mask_load_store_p): Add MASK_MODE arg.
5743          Adjust to maskload, maskstore optab changes.
5744         * optabs-query.h (can_vec_mask_load_store_p): Add MASK_MODE arg.
5745         * optabs.def (maskload_optab): Transform into convert optab.
5746         (maskstore_optab): Likewise.
5747         * tree-if-conv.c (ifcvt_can_use_mask_load_store): Adjust to
5748         can_vec_mask_load_store_p signature change.
5749         (predicate_mem_writes): Use boolean mask.
5750         * tree-vect-stmts.c (vectorizable_mask_load_store): Adjust to
5751         can_vec_mask_load_store_p signature change.  Allow invariant masks.
5752         (vectorizable_operation): Ignore type precision for boolean vectors.
5754 2015-11-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
5756         * expr.c (do_store_flag): Use expand_vec_cmp_expr for mask results.
5757         (const_vector_mask_from_tree): New.
5758         (const_vector_from_tree): Use const_vector_mask_from_tree
5759         for boolean vectors.
5760         * optabs-query.h (get_vec_cmp_icode): New.
5761         * optabs-tree.c (expand_vec_cmp_expr_p): New.
5762         * optabs-tree.h (expand_vec_cmp_expr_p): New.
5763         * optabs.c (vector_compare_rtx): Add OPNO arg.
5764         (expand_vec_cond_expr): Adjust to vector_compare_rtx change.
5765         (expand_vec_cmp_expr): New.
5766         * optabs.def (vec_cmp_optab): New.
5767         (vec_cmpu_optab): New.
5768         * optabs.h (expand_vec_cmp_expr): New.
5769         * tree-vect-generic.c (expand_vector_comparison): Add vector
5770         comparison optabs check.
5771         * tree-vect-loop.c (vect_determine_vectorization_factor):  Ignore mask
5772         operations for VF.  Add mask type computation.
5773         * tree-vect-stmts.c (get_mask_type_for_scalar_type): New.
5774         (vectorizable_comparison): New.
5775         (vect_analyze_stmt): Add vectorizable_comparison.
5776         (vect_transform_stmt): Likewise.
5777         (vect_init_vector): Support boolean vector invariants.
5778         (vect_get_vec_def_for_operand): Add VECTYPE arg.
5779         (vectorizable_condition): Directly provide vectype for invariants
5780         used in comparison.
5781         * tree-vectorizer.h (get_mask_type_for_scalar_type): New.
5782         (enum vect_var_kind): Add vect_mask_var.
5783         (enum stmt_vec_info_type): Add comparison_vec_info_type.
5784         (vectorizable_comparison): New.
5785         (vect_get_vec_def_for_operand): Add VECTYPE arg.
5786         * tree-vect-data-refs.c (vect_get_new_vect_var): Support vect_mask_var.
5787         (vect_create_destination_var): Likewise.
5788         * tree-vect-patterns.c (check_bool_pattern): Check fails
5789         if we can vectorize comparison directly.
5790         (search_type_for_mask): New.
5791         (vect_recog_bool_pattern): Support cases when bool pattern check fails.
5792         * tree-vect-slp.c (vect_build_slp_tree_1): Allow
5793         comparison statements.
5794         (vect_get_constant_vectors): Support boolean vector constants.
5795         * config/i386/i386-protos.h (ix86_expand_mask_vec_cmp): New.
5796         (ix86_expand_int_vec_cmp): New.
5797         (ix86_expand_fp_vec_cmp): New.
5798         * config/i386/i386.c (ix86_expand_sse_cmp): Allow NULL for
5799         op_true and op_false.
5800         (ix86_int_cmp_code_to_pcmp_immediate): New.
5801         (ix86_fp_cmp_code_to_pcmp_immediate): New.
5802         (ix86_cmp_code_to_pcmp_immediate): New.
5803         (ix86_expand_mask_vec_cmp): New.
5804         (ix86_expand_fp_vec_cmp): New.
5805         (ix86_expand_int_sse_cmp): New.
5806         (ix86_expand_int_vcond): Use ix86_expand_int_sse_cmp.
5807         (ix86_expand_int_vec_cmp): New.
5808         (ix86_get_mask_mode): New.
5809         (TARGET_VECTORIZE_GET_MASK_MODE): New.
5810         * config/i386/sse.md (avx512fmaskmodelower): New.
5811         (vec_cmp<mode><avx512fmaskmodelower>): New.
5812         (vec_cmp<mode><sseintvecmodelower>): New.
5813         (vec_cmpv2div2di): New.
5814         (vec_cmpu<mode><avx512fmaskmodelower>): New.
5815         (vec_cmpu<mode><sseintvecmodelower>): New.
5816         (vec_cmpuv2div2di): New.
5818 2015-11-10  Richard Biener  <rguenther@suse.de>
5820         PR tree-optimization/68240
5821         * tree-ssa-sccvn.c (cond_stmts_equal_p): Handle commutative compares
5822         properly.
5823         (visit_phi): For PHIs with just a single executable edge
5824         take its value directly.
5825         (expressions_equal_p): Handle VN_TOP properly.
5827 2015-11-10  Richard Biener  <rguenther@suse.de>
5829         * tree-vect-data-refs.c (vect_slp_analyze_node_dependences):
5830         Handle memory using/clobbering stmts without a STMT_VINFO_DATA_REF
5831         conservatively.
5833 2015-11-10  Richard Biener  <rguenther@suse.de>
5835         PR tree-optimization/56118
5836         * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Make equal
5837         cost favor vectorized version.
5839 2015-11-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5841         * config/aarch64/aarch64.md (<neg_not_op><mode>cc): New define_expand.
5842         * config/aarch64/iterators.md (NEG_NOT): New code iterator.
5843         (neg_not_op): New code attribute.
5845 2015-11-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5847         * ifcvt.c (noce_try_inverse_constants): New function.
5848         (noce_process_if_block): Call it.
5849         * optabs.h (emit_conditional_neg_or_complement): Declare prototype.
5850         * optabs.def (negcc_optab, notcc_optab): Declare.
5851         * optabs.c (emit_conditional_neg_or_complement): New function.
5852         * doc/tm.texi (Standard Names): Document negcc, notcc names.
5854 2015-11-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5856         PR rtl-optimization/68236
5857         * haifa-sched.c (autopref_multipass_dfa_lookahead_guard): Return 0
5858         if insn_queue doesn't exist.
5859         (haifa_sched_finish): Reset insn_queue to NULL.
5861 2015-11-10  Robert Suchanek  <robert.suchanek@imgtec.com>
5863         * regrename.c (create_new_chain): Initialize renamed and tied_chain.
5864         (build_def_use): Initialize terminated_this_insn.
5865         (find_best_rename_reg): Pick and check register from the tied chain.
5866         (regrename_do_replace): Mark head as renamed.
5867         (struct du_head *terminated_this_insn). New static variable.
5868         (scan_rtx_reg): Tie chains in move insns.  Set terminated_this_insn.
5869         * regrename.h (struct du_head): Add tied_chain, renamed members.
5871 2015-11-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5873         PR bootstrap/68256
5874         * config/aarch64/aarch64.c (aarch64_use_constant_blocks_p):
5875         Return false.
5877 2015-11-09  Eric Botcazou  <ebotcazou@adacore.com>
5879         PR target/57845
5880         * config/sparc/sparc.c (sparc_function_value_1): In 32-bit mode, do
5881         not promote the mode for aggregate types.
5883 2015-11-09  Nathan Sidwell  <nathan@codesourcery.com>
5885         * omp-low.h (replace_oacc_fn_attrib, build_oacc_routine_dims): Declare.
5886         * omp-low.c (build_oacc_routine_dims): New.
5888 2015-11-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
5890         * config/rs6000/constraints.md (wF constraint): New constraints
5891         for power9/toc fusion.
5892         (wG constraint): Likewise.
5894         * config/rs6000/predicates.md (u6bit_cint_operand): New
5895         predicate, recognize 0..63.
5896         (upper16_cint_operand): New predicate for power9 and toc fusion.
5897         (fpr_reg_operand): Likewise.
5898         (toc_fusion_or_p9_reg_operand): Likewise.
5899         (toc_fusion_mem_raw): Likewise.
5900         (toc_fusion_mem_wrapped): Likewise.
5901         (fusion_gpr_addis): If power9 fusion, allow fusion for a larger
5902         address range.
5903         (fusion_gpr_mem_combo): Delete, use fusion_addis_mem_combo_load
5904         instead.
5905         (fusion_addis_mem_combo_load): Add support for power9 fusion of
5906         floating point loads, floating point stores, and gpr stores.
5907         (fusion_addis_mem_combo_store): Likewise.
5908         (fusion_offsettable_mem_operand): Likewise.
5910         * config/rs6000/rs6000-protos.h (emit_fusion_addis): Add declarations.
5911         (emit_fusion_load_store): Likewise.
5912         (fusion_p9_p): Likewise.
5913         (expand_fusion_p9_load): Likewise.
5914         (expand_fusion_p9_store): Likewise.
5915         (emit_fusion_p9_load): Likewise.
5916         (emit_fusion_p9_store): Likewise.
5917         (fusion_wrap_memory_address): Likewise.
5919         * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add new
5920         elements for power9 fusion.
5921         (rs6000_debug_print_mode): Rework debug information to print more
5922         information about fusion.
5923         (rs6000_init_hard_regno_mode_ok): Setup for power9 fusion support.
5924         (rs6000_legitimate_address_p): Recognize toc fusion as a valid
5925         offsettable memory address.
5926         (rs6000_rtx_costs): Update costs for new ISA 3.0 instructions.
5927         (emit_fusion_gpr_load): Move most of the code from
5928         emit_fusion_gpr_load into emit_fusion-addis that handles both
5929         power8 and power9 fusion.
5930         (emit_fusion_addis): Likewise.
5931         (emit_fusion_load_store): Likewise.
5932         (fusion_wrap_memory_address): Add support for TOC fusion.
5933         (fusion_split_address): Likewise.
5934         (fusion_p9_p): Add support for power9 fusion.
5935         (expand_fusion_p9_load): Likewise.
5936         (expand_fusion_p9_store): Likewise.
5937         (emit_fusion_p9_load): Likewise.
5938         (emit_fusion_p9_store): Likewise.
5940         * config/rs6000/rs6000.h (TARGET_EXTSWSLI): Macros for support for
5941         new instructions in ISA 3.0.
5942         (TARGET_CTZ): Likewise.
5943         (TARGET_TOC_FUSION_INT): Macros for power9 fusion support.
5944         (TARGET_TOC_FUSION_FP): Likewise.
5946         * config/rs6000/rs6000.md (UNSPEC_FUSION_P9): New power9/toc
5947         fusion unspecs.
5948         (UNSPEC_FUSION_ADDIS): Likewise.
5949         (QHSI mode iterator): New iterator for power9 fusion.
5950         (GPR_FUSION): Likewise.
5951         (FPR_FUSION): Likewise.
5952         (mod<mode>3): Add support for ISA 3.0 modulus instructions.
5953         (umod<mode>3): Likewise.
5954         (divmod peephole): Likewise.
5955         (udivmod peephole): Likewise.
5956         (ctz<mode>2): Add support for ISA 3.0 count trailing zeros scalar
5957         instructions.
5958         (ctz<mode>2_h): Likewise.
5959         (ashdi3_extswsli): Add support for ISA 3.0 EXTSWSLI instruction.
5960         (ashdi3_extswsli_dot): Likewise.
5961         (ashdi3_extswsli_dot2): Likewise.
5962         (power9 fusion splitter): New power9/toc fusion support.
5963         (toc_fusionload_<mode>): Likewise.
5964         (toc_fusionload_di): Likewise.
5965         (fusion_gpr_load_<mode>): Update predicate function.
5966         (power9 fusion peephole2s): New power9/toc fusion support.
5967         (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
5968         (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_store): Likewise.
5969         (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_load): Likewise.
5970         (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
5971         (fusion_p9_<mode>_constant): Likewise.
5973 2015-11-09  Steve Ellcey  <sellcey@imgtec.com>
5975         * optabs.c (prepare_libcall_arg): New function.
5976         (expand_fixed_convert): Add call to prepare_libcall_arg.
5978 2015-11-09  Nikolai Bozhenov  <n.bozhenov@samsung.com>
5980         * sched-int.h (dump_rgn_dependencies_dot): Declare
5981         * sched-rgn.c (dump_rgn_dependencies_dot): New function
5982         * print-rtl.h (print_insn): Add prototype
5984         * haifa-sched.c (setup_sched_dump): Don't redirect output to stderr.
5985         * common.opt (-fsched-verbose): Set default value to 1.
5986         * invoke.texi (-fsched-verbose): Update the option's description.
5988 2015-11-09  Eric Botcazou  <ebotcazou@adacore.com>
5990         * config/visium/visium.h (PRINT_OPERAND): Delete.
5991         (PRINT_OPERAND_PUNCT_VALID_P): Likewise.
5992         (PRINT_OPERAND_ADDRESS): Likewise.
5993         * config/visium/visium.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define
5994         to...
5995         (visium_print_operand_punct_valid_p): ...this.  New function.
5996         (TARGET_PRINT_OPERAND): Define to...
5997         (print_operand): Rename to...
5998         (visium_print_operand): ...this.
5999         (TARGET_PRINT_OPERAND_ADDRESS): Define to...
6000         (visium_output_address): Rename to...
6001         (visium_print_operand_address): ...this.
6002         (print_operand_address): Delete.
6004 2015-11-09  Eric Botcazou  <ebotcazou@adacore.com>
6006         PR middle-end/68259
6007         * tree.h (reverse_storage_order_for_component_p) <COMPONENT_REF>:
6008         Check that the type of the first operand is an aggregate type.
6010 2015-11-09  Nathan Sidwell  <nathan@codesourcery.com>
6012         * omp-low.c: Fix some OpenACC comment typos.
6013         (lower_reduction_clauses): Remove BUILT_IN_GOACC_GET_THREAD_NUM call.
6014         * omp-builtins.def (BUILT_IN_GOACC_GET_THREAD_NUM,
6015         BUILT_IN_GOACC_GET_NUM_THREADS): Delete.
6017 2015-11-09  Uros Bizjak  <ubizjak@gmail.com>
6019         * config/i386/i386.md (*strmovqi_1): Fix insn enable condition.
6021 2015-11-09  Jeff Law  <law@redhat.com>
6023         * tree-ssanames.c (verify_ssaname_freelists): Simplify check for
6024         being in gimple/ssa form.  Remove redundant check for SSA_NAME.
6025         Fix comment typo.
6027 2015-11-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
6028             Peter Bergner  <bergner@vnet.ibm.com>
6030         * config/rs6000/rs6000.opt (-mpower9-fusion): Add new switches for
6031         ISA 3.0 (power9).
6032         (-mpower9-vector): Likewise.
6033         (-mpower9-dform): Likewise.
6034         (-mpower9-minmax): Likewise.
6035         (-mtoc-fusion): Likewise.
6036         (-mmodulo): Likewise.
6037         (-mfloat128-hardware): Likewise.
6039         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add option
6040         mask for ISA 3.0 (power9).
6041         (POWERPC_MASKS): Add new ISA 3.0 switches.
6042         (power9 cpu): Add power9 cpu.
6044         * config/rs6000/rs6000.h (ASM_CPU_POWER9_SPEC): Add support for power9.
6045         (ASM_CPU_SPEC): Likewise.
6046         (EXTRA_SPECS): Likewise.
6048         * config/rs6000/rs6000-opts.h (enum processor_type): Add
6049         PROCESSOR_POWER9.
6051         * config/rs6000/rs6000.c (power9_cost): Initial cost setup for power9.
6052         (rs6000_debug_reg_global): Add support for power9 fusion.
6053         (rs6000_setup_reg_addr_masks): Cache mode size.
6054         (rs6000_option_override_internal): Until real power9 tuning is
6055         added, use -mtune=power8 for -mcpu=power9.
6056         (rs6000_setup_reg_addr_masks): Do not allow pre-increment,
6057         pre-decrement, or pre-modify on SFmode/DFmode if we allow the use
6058         of Altivec registers.
6059         (rs6000_option_override_internal): Add support for ISA 3.0 switches.
6060         (rs6000_loop_align): Add support for power9 cpu.
6061         (rs6000_file_start): Likewise.
6062         (rs6000_adjust_cost): Likewise.
6063         (rs6000_issue_rate): Likewise.
6064         (insn_must_be_first_in_group): Likewise.
6065         (insn_must_be_last_in_group): Likewise.
6066         (force_new_group): Likewise.
6067         (rs6000_register_move_cost): Likewise.
6068         (rs6000_opt_masks): Likewise.
6070         * config/rs6000/rs6000.md (cpu attribute): Add power9.
6071         * config/rs6000/rs6000-tables.opt: Regenerate.
6073         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
6074         _ARCH_PWR9 if power9 support is available.
6076         * config/rs6000/aix61.h (ASM_CPU_SPEC): Add power9.
6077         * config/rs6000/aix53.h (ASM_CPU_SPEC): Likewise.
6079         * configure.ac: Determine if the assembler supports the ISA 3.0
6080         instructions.
6081         * config.in (HAVE_AS_POWER9): Likewise.
6082         * configure: Regenerate.
6084         * doc/invoke.texi (RS/6000 and PowerPC Options): Document ISA 3.0
6085         switches.
6087 2015-11-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6089         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate):
6090         Remove integer CONST_DOUBLE handling.  It should never occur.
6092 2015-11-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6094         PR target/68129
6095         * config/aarch64/aarch64.h (TARGET_SUPPORTS_WIDE_INT): Define to 1.
6096         * config/aarch64/aarch64.c (aarch64_print_operand, CONST_DOUBLE):
6097         Delete VOIDmode case.  Assert that mode is not VOIDmode.
6098         * config/aarch64/predicates.md (const0_operand): Remove const_double
6099         match.
6101 2015-11-09  Martin Liska  <mliska@suse.cz>
6103         * ipa-inline-analysis.c (estimate_function_body_sizes): Call
6104         body_info release function.
6105         * ipa-prop.c (ipa_release_body_info): New function.
6106         (ipa_analyze_node): Call the function.
6107         (ipa_node_params::~ipa_node_params): Release known_csts.
6108         * ipa-prop.h (ipa_release_body_info): Declare.
6110 2015-11-09  Martin Liska  <mliska@suse.cz>
6112         * gcc.c (record_temp_file): Release name string.
6113         * ifcvt.c (noce_convert_multiple_sets): Use auto_vec instead of vec.
6114         * lra-lives.c (free_live_range_list): Utilize
6115         lra_live_range_pool for allocation and deallocation.
6116         (create_live_range): Likewise.
6117         (copy_live_range): Likewise.
6118         (lra_merge_live_ranges): Likewise.
6119         (remove_some_program_points_and_update_live_ranges): Likewise.
6120         (lra_create_live_ranges_1): Release point_freq_vec that can
6121         be not freed from previous iteration of the function.
6122         * tree-eh.c (lower_try_finally_switch): Use auto_vec instead of vec.
6123         * tree-sra.c (sra_deinitialize): Release all vectors in
6124         base_access_vec.
6125         * tree-ssa-dom.c (free_dom_edge_info): Make the function extern.
6126         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
6127         Release edge_info for a removed edge.
6128         (thread_through_all_blocks): Free region vector.
6129         * tree-ssa.h (free_dom_edge_info): Declare function extern.
6131 2015-11-09  Ilya Enkovich  <enkovich.gnu@gmail.com>
6133         * optabs.c (expand_vec_cond_expr): Always get sign from type.
6134         * tree.c (wide_int_to_tree): Support negative values for boolean.
6135         (build_nonstandard_boolean_type): Use signed type for booleans.
6137 2015-11-09  Richard Biener  <rguenther@suse.de>
6139         PR tree-optimization/68248
6140         * tree-vect-generic.c (expand_vector_operations_1): Handle scalar rhs2.
6142 2015-11-09  Richard Biener  <rguenther@suse.de>
6144         PR tree-optimization/56118
6145         * tree-vectorizer.h (vect_find_last_scalar_stmt_in_slp): Declare.
6146         * tree-vect-slp.c (vect_find_last_scalar_stmt_in_slp): Export.
6147         * tree-vect-data-refs.c (vect_slp_analyze_node_dependences): New
6148         function.
6149         (vect_slp_analyze_data_ref_dependences): Instead of computing
6150         all dependences of the region DRs just analyze the code motions
6151         SLP vectorization will perform.  Remove SLP instances that
6152         cannot have their store/load motions applied.
6153         (vect_analyze_data_refs): Allow DRs without a vectype
6154         in BB vectorization.
6156 2015-11-09  Julian Brown  <julian@codesourcery.com>
6158         * final.c (output_asm_insn): Pass VOIDmode to output_address.
6159         (output_address): Add MODE argument. Pass to print_operand_address
6160         hook.
6161         * targhooks.c (default_print_operand_address): Add MODE argument.
6162         * targhooks.h (default_print_operand_address): Update prototype.
6163         * output.h (output_address): Update prototype.
6164         * target.def (print_operand_address): Add MODE argument.
6165         * config/vax/vax.c (print_operand_address): Pass VOIDmode to
6166         output_address.
6167         (print_operand): Pass access mode to output_address.
6168         * config/mcore/mcore.c (mcore_print_operand_address): Add MODE
6169         argument.
6170         (mcore_print_operand): Update calls to mcore_print_operand_address.
6171         * config/fr30/fr30.c (fr30_print_operand): Pass VOIDmode to
6172         output_address.
6173         * config/lm32/lm32.c (lm32_print_operand): Pass mode in calls to
6174         output_address.
6175         * config/tilegx/tilegx.c (output_memory_reference_mode): Remove
6176         global.
6177         (tilegx_print_operand): Don't set above global. Update calls to
6178         output_address.
6179         (tilegx_print_operand_address): Add MODE argument. Use instead of
6180         output_memory_reference_mode global.
6181         * config/frv/frv.c (frv_print_operand_address): Add MODE argument.
6182         (frv_print_operand): Pass mode to frv_print_operand_address calls.
6183         * config/mn10300/mn10300.c (mn10300_print_operand): Pass mode to
6184         output_address.
6185         * config/cris/cris.c (cris_print_operand_address): Add MODE argument.
6186         (cris_print_operand): Pass mode to output_address calls.
6187         * config/spu/spu.c (print_operand): Pass mode to output_address calls.
6188         * config/aarch64/aarch64.h (aarch64_print_operand)
6189         (aarch64_print_operand_address): Remove prototypes.
6190         * config/aarch64/aarch64.c (aarch64_memory_reference_mode): Delete
6191         global.
6192         (aarch64_print_operand): Make static. Update calls to output_address.
6193         (aarch64_print_operand_address): Add MODE argument. Use instead of
6194         aarch64_memory_reference_mode global.
6195         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define target
6196         hooks.
6197         * config/aarch64/aarch64.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
6198         Delete macro definitions.
6199         * config/pa/pa.c (pa_print_operand): Pass mode in output_address calls.
6200         * config/xtensa/xtensa.c (print_operand): Pass mode in
6201         output_address calls.
6202         * config/h8300/h8300.c (h8300_print_operand_address): Add MODE
6203         argument.
6204         (h83000_print_operand): Update calls to h8300_print_operand_address
6205         and output_address.
6206         * config/ia64/ia64.c (ia64_print_operand_address): Add MODE argument.
6207         * config/tilepro/tilepro.c (output_memory_reference_mode): Delete
6208         global.
6209         (tilepro_print_operand): Pass mode to output_address.
6210         (tilepro_print_operand_address): Add MODE argument. Use instead of
6211         output_memory_reference_mode.
6212         * config/nvptx/nvptx.c (output_decl_chunk, nvptx_assemble_integer)
6213         (nvptx_output_call_insn, nvptx_print_address_operand): Pass VOIDmode
6214         to output_address calls.
6215         (nvptx_print_operand_address): Add MODE argument.
6216         * config/alpha/alpha.c (print_operand): Pass mode argument in
6217         output_address calls.
6218         * config/m68k/m68k.c (print_operand): Pass mode argument in
6219         output_address call.
6220         * config/avr/avr.c (avr_print_operand_address): Add MODE argument.
6221         (avr_print_operand): Update calls to avr_print_operand_address.
6222         * config/sparc/sparc.c (sparc_print_operand_address): Add MODE
6223         argument. Update calls to output_address.
6224         (sparc_print_operand): Pass mode to output_address.
6225         * config/iq2000/iq2000.c (iq2000_print_operand_address): Add MODE
6226         argument.
6227         (iq2000_print_operand): Pass mode in output_address calls.
6228         * config/stormy16/stormy16.c (xstormy16_print_operand_address): Add
6229         MODE argument.
6230         (xstormy16_print_operand): Pass mode to
6231         xstormy16_print_operand_address calls.
6232         * config/mips/mips.c (mips_print_operand): Update calls to
6233         output_address.
6234         (mips_print_operand_address): Add MODE argument.
6235         * config/epiphany/epiphany.c (epiphany_print_operand): Update calls
6236         to output_address.
6237         (epiphany_print_operand_address): Add MODE argument. Add FIXME note.
6238         * config/pdp11/pdp11.c (pdp11_asm_print_operand): Update call to
6239         output_address.
6240         * config/rx/rx.c (rx_print_operand_address): Add MODE argument.
6241         (rx_print_operand): Update calls to output_address,
6242         rx_print_operand_address.
6243         * config/nds32/nds32.c (nds32_print_operand): Update calls to
6244         output_address.
6245         (nds32_print_operand_address): Add MODE argument.
6246         * config/rs6000/rs6000.c (print_operand): Pass mem mode to
6247         output_address calls.
6248         * config/c6x/c6x.c (print_address_offset): Pass mem mode to
6249         output_address call.
6250         (c6x_print_address_operand): Update calls to output_address.
6251         (c6x_print_operand_address): Pass mode to above.
6252         * config/v850/v850.c (v850_print_operand_address): Add MODE argument.
6253         (v850_print_operand): Pass mode to v850_print_operand_address,
6254         output_address.
6255         * config/mmix/mmix.c (mmix_print_operand_address): Add MODE argument.
6256         (mmix_print_operand): Pass mode in output_address calls.
6257         * config/sh/sh.c (sh_print_operand_address): Add MODE argument.
6258         (sh_print_operand): Pass mem mode to output_address,
6259         sh_print_operand_address.
6260         * config/cr16/cr16.c (cr16_print_operand_address): Add MODE argument.
6261         (cr16_print_operand): Pass mode to output_address,
6262         cr16_print_operand_address.
6263         * config/bfin/bfin.c (print_address_operand): Pass VOIDmode to
6264         output_address.
6265         * config/microblaze/microblaze.c (print_operand): Pass mode to
6266         output_address.
6267         * config/nios2/nios2.c (nios2_print_operand): Pass VOIDmode to
6268         output_address.
6269         (nios2_print_operand_address): Add MODE argument. Update call to
6270         nios2_print_operand_address.
6271         * config/s390/s390.c (print_operand): Pass mode to output_address.
6272         * config/m32c/m32c.c (m32c_print_operand_address): Add MODE argument.
6273         * config/arc/arc.c (arc_print_operand): Pass VOIDmode to
6274         output_address.
6275         * config/arm/arm.c (arm_print_operand_address): Add MODE argument.
6276         Use instead of output_memory_reference_mode.
6277         (output_memory_reference_mode): Delete global.
6278         (arm_print_operand): Pass mem mode to output_address.
6279         * config/m32r/m32r.c (m32r_print_operand_address): Add MODE argument.
6280         (m32r_print_operand): Pass mode to output_address.
6281         * config/msp430/msp430.c (msp430_print_operand_addr): Add MODE
6282         argument.
6283         (msp430_print_operand): Pass mode to msp430_print_operand_addr.
6284         * config/i386/i386.c (ix86_print_operand): Pass mode to
6285         output_address calls.
6286         (ix86_print_operand_address): Add MODE argument.
6288 2015-11-09  Eric Botcazou  <ebotcazou@adacore.com>
6290         PR middle-end/68251
6291         * tree-core.h (REF_REVERSE_STORAGE_ORDER): Move around.
6292         * tree.h (REF_REVERSE_STORAGE_ORDER): Change to default_def_flag.
6293         * tree-streamer-in.c (unpack_ts_base_value_fields): Adjust.
6294         * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
6296 2015-11-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6298         PR rtl-optimization/67749
6299         * ifcvt.c (noce_try_cmove_arith): Do not emit move in IF-ELSE
6300         case before emitting the two blocks.  Instead modify the register
6301         in the corresponding final insn of the basic block.
6303 2015-11-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6305         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Allow for differences in
6306         assembler syntax.
6307         Support Solaris ld.
6308         Define HAVE_INITFINI_ARRAY_SUPPORT as 0/1.
6310         * config/sol2.h (SUPPORTS_INIT_PRIORITY): Define to
6311         HAVE_INITFINI_ARRAY_SUPPORT.
6312         * config/initfini-array.h: Check HAVE_INITFINI_ARRAY_SUPPORT value.
6314         * configure.ac (gcc_cv_as_sparc_nobits): Remove.
6315         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section):
6316         Don't check HAVE_AS_SPARC_NOBITS.
6317         Heed SECTION_NOTYPE.
6319         * configure: Regenerate.
6320         * config.in: Regenerate.
6322 2015-11-09  Eric Botcazou  <ebotcazou@adacore.com>
6324         PR middle-end/68253
6325         * fold-const.c (fold_truth_andor_1): Initialize new variables to 0.
6327 2015-11-09  Richard Henderson  <rth@redhat.com>
6329         * config/i386/i386-c.c (ix86_target_macros): Define __SEG_FS,
6330         __SEG_GS, __SEG_TLS.
6331         (ix86_register_pragmas): Register address spaces __seg_fs,
6332         __seg_gs, __seg_tls.
6333         * config/i386/i386-protos.h (enum ix86_address_seg): Remove.
6334         (ADDR_SPACE_SEG_FS, ADDR_SPACE_SEG_GS, ADDR_SPACE_SEG_TLS): New.
6335         (struct ix86_address): Use addr_space_t instead of ix86_address_seg.
6336         * config/i386/i386.c (ix86_decompose_address): Likewise.
6337         (ix86_legitimate_address_p): Likewise.
6338         (memory_address_length): Likewise.  Check mem address space too.
6339         (ix86_print_operand): Use ix86_print_operand_address_as.
6340         (ix86_print_operand_address_as): Rename from
6341         ix86_print_operand_address, add new addr_space_t parameter.
6342         Validate that either the parameter or the ix86_address segment
6343         is default address space.  Handle ADDR_SPACE_SEG_TLS.
6344         (ix86_print_operand_address): New.
6345         (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): New.
6346         (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): New.
6347         (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): New.
6348         (ix86_addr_space_zero_address_valid): New.
6349         (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
6350         * config/i386/i386.h (DEFAULT_TLS_SEG_REG): Use addr_space_t constants.
6351         * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Likewise.
6352         * config/i386/predicates.md (address_no_seg_operand): Likewise.
6353         (vsib_address_operand): Likewise.
6354         (address_mpx_no_base_operand): Likewise.
6355         (address_mpx_no_index_operand): Likewise.
6356         * doc/extend.texi (x86 Named Address Spaces): New section.
6358         * config/i386/i386.c (ix86_check_no_addr_space): New.
6359         (decide_alg): Add have_as parameter.
6360         (alg_usable_p): Likewise; disable rep algorithms if set.
6361         (ix86_expand_set_or_movmem): Notice if either MEM has a
6362         non-default address space.
6363         (ix86_expand_strlen): Likewise.
6364         * config/i386/i386.md (strmov, strset): Likewise.
6365         (*strmovdi_rex_1): Use ix86_check_no_addr_space.
6366         (*strmovsi_1, *strmovqi_1, *rep_movdi_rex64, *rep_movsi, *rep_movqi,
6367         *strsetdi_rex_1, *strsetsi_1, *strsethi_1, *strsetqi_1,
6368         *rep_stosdi_rex64, *rep_stossi, *rep_stosqi, *cmpstrnqi_nz_1,
6369         *cmpstrnqi_1, *strlenqi_1): Likewise.
6371         * config/i386/i386.md (*movabs<mode>_1): Print the full memory rtx.
6372         (*movabs<mode>_2): Likewise.
6374         * dwarf2out.c (modified_type_die): Pass the address space number
6375         through TARGET_ADDR_SPACE_DEBUG to produce the dwarf address class.
6376         * target.def (TARGET_ADDR_SPACE_DEBUG): New.
6377         * targhooks.c (default_addr_space_debug): New.
6378         * targhooks.h (default_addr_space_debug): Declare.
6379         * doc/tm.texi.in (TARGET_ADDR_SPACE_DEBUG): Mark it.
6380         * doc/tm.texi: Rebuild.
6382         * gimple.c (check_loadstore): Return false when 0 is a valid address.
6383         * fold-const.c (const_unop) [ADDR_SPACE_CONVERT_EXPR]: Do not fold
6384         null when 0 is valid in the source address space.
6385         * target.def (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
6386         * targhooks.c (default_addr_space_zero_address_valid): New.
6387         * targhooks.h (default_addr_space_zero_address_valid): Declare.
6388         * doc/tm.texi.in (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): Mark it.
6389         * doc/tm.texi: Rebuild.
6391         * cselib.c (add_mem_for_addr): Compare address spaces when
6392         matching memories.
6393         (cselib_lookup_mem): Likewise.
6394         * fold-const.c (operand_equal_p): Check address spaces of
6395         pointer types before checking integer constants.
6397         PR tree-opt/66768
6398         * tree-ssa-address.c (create_mem_ref_raw): Use a pointer of
6399         the correct type for the base.
6401 2015-11-09  Jeff Law  <law@redhat.com>
6403         * tree-into-ssa.c (names_to_release): No longer static.
6404         * tree-into-ssa.h (names_to_release): Declare.
6405         * tree-ssanames.c (verify_ssaname_freelists): New debug function.
6406         (release_free_names_and_compact_live_names): New function extracted
6407         from pass_release_ssa_names::execute.
6408         (pass_release_ssa_names::execute): Use it.
6410 2015-11-09  Alan Modra  <amodra@gmail.com>
6412         * gensupport.c (add_mnemonic_string): Make len param a size_t.
6413         (gen_mnemonic_setattr): Make "size" var a size_t.  Use
6414         obstack_blank_fast to shrink obstack.  Cast obstack_next_free
6415         return value.
6417 2015-11-09  Segher Boessenkool  <segher@kernel.crashing.org>
6419         PR rtl-optimization/68182
6420         * bb-reorder.c (reorder_basic_blocks_simple): Treat a conditional
6421         branch with only one successor just like unconditional branches.
6423 2015-11-08  Jeff Law  <law@redhat.com>
6425         * tree-ssa-threadupdate.c (register_jump_thraed): Assert that a
6426         non-FSM path has no edges marked with EDGE_DFS_BACK.
6427         (ssa_redirect_edges): No longer call mark_loop_for_removal.
6428         (thread_single_edge, def_split_header_continue_p): Remove.
6429         (bb_ends_with_multiway_branch): Likewise.
6430         (thread_through_loop_header): Remove cases of threading from
6431         latch through the header.  Simplify knowing we won't thread
6432         the latch.
6433         (thread_through_all_blocks): Simplify knowing that only the FSM
6434         threader needs to handle backedges.
6436 2015-11-08  Eric Botcazou  <ebotcazou@adacore.com>
6438         * doc/extend.texi (type attributes): Document scalar_storage_order.
6439         (Structure-Packing Pragmas): Rename into...
6440         (Structure-Layout Pragmas): ...this.  Document scalar_storage_order.
6441         * doc/invoke.texi (C Dialect Options): Document -fsso-struct
6442         (Warnings): Document -Wno-scalar-storage-order.
6443         * flag-types.h (enum scalar_storage_order_kind): New enumeration.
6444         * calls.c (store_unaligned_arguments_into_pseudos): Adjust calls to
6445         extract_bit_field and store_bit_field.
6446         (initialize_argument_information): Adjust call to store_expr.
6447         (load_register_parameters): Adjust call to extract_bit_field.
6448         * expmed.c (check_reverse_storage_order_support): New function.
6449         (check_reverse_float_storage_order_support): Likewise.
6450         (flip_storage_order): Likewise.
6451         (store_bit_field_1): Add REVERSE parameter.  Flip the storage order
6452         of the value if it is true.  Pass REVERSE to recursive call after
6453         adjusting the target offset.
6454         Do not use extraction or movstrict instruction if REVERSE is true.
6455         Pass REVERSE to store_fixed_bit_field.
6456         (store_bit_field): Add REVERSE parameter and pass to it to above.
6457         (store_fixed_bit_field): Add REVERSE parameter and pass to it to
6458         store_split_bit_field and store_fixed_bit_field_1.
6459         (store_fixed_bit_field_1):  Add REVERSE parameter.  Flip the storage
6460         order of the value if it is true and adjust the target offset.
6461         (store_split_bit_field): Add REVERSE parameter and pass it to
6462         store_fixed_bit_field.  Adjust the target offset if it is true.
6463         (extract_bit_field_1): Add REVERSE parameter.  Flip the storage order
6464         of the value if it is true.  Pass REVERSE to recursive call after
6465         adjusting the target offset.
6466         Do not use extraction or subreg instruction if REVERSE is true.
6467         Pass REVERSE to extract_fixed_bit_field.
6468         (extract_bit_field): Add REVERSE parameter and pass to it to above.
6469         (extract_fixed_bit_field): Add REVERSE parameter and pass to it to
6470         extract_split_bit_field and extract_fixed_bit_field_1.
6471         (extract_fixed_bit_field_1): Add REVERSE parameter.  Flip the storage
6472         order of the value if it is true and adjust the target offset.
6473         (extract_split_bit_field): Add REVERSE parameter and pass it to
6474         extract_fixed_bit_field.  Adjust the target offset if it is true.
6475         * expmed.h (flip_storage_order): Declare.
6476         (store_bit_field): Adjust prototype.
6477         (extract_bit_field): Likewise.
6478         * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
6479         (emit_group_store): Adjust call to store_bit_field.
6480         (copy_blkmode_from_reg): Likewise.
6481         (copy_blkmode_to_reg): Likewise.
6482         (write_complex_part): Likewise.
6483         (read_complex_part): Likewise.
6484         (optimize_bitfield_assignment_op): Add REVERSE parameter.  Assert
6485         that it isn't true if the target is a register.
6486         <PLUS_EXPR>: If it is, do not optimize unless bitsize is equal to 1,
6487         and flip the storage order of the value.
6488         <BIT_IOR_EXPR>: Flip the storage order of the value.
6489         (get_bit_range): Adjust call to get_inner_reference.
6490         (expand_assignment): Adjust calls to get_inner_reference, store_expr,
6491         optimize_bitfield_assignment_op and store_field.  Handle MEM_EXPRs
6492         with reverse storage order.
6493         (store_expr_with_bounds): Add REVERSE parameter and pass it to
6494         recursive calls and call to store_bit_field.  Force the value into a
6495         register if it is true and then flip the storage order of the value.
6496         (store_expr): Add REVERSE parameter and pass it to above.
6497         (categorize_ctor_elements_1): Adjust call to
6498         initializer_constant_valid_p.
6499         (store_constructor_field): Add REVERSE parameter and pass it to
6500         recursive calls and call to store_field.
6501         (store_constructor): Add REVERSE parameter and pass it to calls to
6502         store_constructor_field and store_expr.  Set it to true for an
6503         aggregate type with TYPE_REVERSE_STORAGE_ORDER.
6504         (store_field): Add REVERSE parameter and pass it to recursive calls
6505         and calls to store_expr and store_bit_field.  Temporarily flip the
6506         storage order of the value with record type and integral mode and
6507         adjust the shift if it is true.
6508         (get_inner_reference): Add PREVERSEP parameter and set it to true
6509         upon encoutering a reference with reverse storage order.
6510         (expand_expr_addr_expr_1): Adjust call to get_inner_reference.
6511         (expand_constructor): Adjust call to store_constructor.
6512         (expand_expr_real_2) <CASE_CONVERT>: Pass TYPE_REVERSE_STORAGE_ORDER
6513         of the union type to store_expr in the MEM case and assert that it
6514         isn't set in the REG case.  Adjust call to store_field.
6515         (expand_expr_real_1) <MEM_REF>: Handle reverse storage order.
6516         <normal_inner_ref>: Add REVERSEP variable and adjust calls to
6517         get_inner_reference and extract_bit_field. Temporarily flip the
6518         storage order of the value with record type and integral mode and
6519         adjust the shift if it is true.  Flip the storage order of the value
6520         at the end if it is true.
6521         <VIEW_CONVERT_EXPR>: Add REVERSEP variable and adjust call to
6522         get_inner_reference.  Do not fetch an inner reference if it is true.
6523         * expr.h (store_expr_with_bounds): Ajust prototype.
6524         (store_expr): Likewise.
6525         * fold-const.c (make_bit_field_ref): Add REVERSEP parameter and set
6526         REF_REVERSE_STORAGE_ORDER on the reference according to it.
6527         (optimize_bit_field_compare): Deal with reverse storage order.
6528         Adjust calls to get_inner_reference and make_bit_field_ref.
6529         (decode_field_reference): Add PREVERSEP parameter and adjust call to
6530         get_inner_reference.
6531         (fold_truth_andor_1): Deal with reverse storage order.  Adjust calls
6532         to decode_field_reference and make_bit_field_ref.
6533         (fold_unary_loc) <CASE_CONVERT>: Adjust call to get_inner_reference.
6534         <VIEW_CONVERT_EXPR>: Propagate the REF_REVERSE_STORAGE_ORDER flag.
6535         (fold_comparison): Adjust call to get_inner_reference.
6536         (split_address_to_core_and_offset): Adjust call to
6537         get_inner_reference.
6538         * gimple-expr.c (useless_type_conversion_p): Return false for array
6539         types with different TYPE_REVERSE_STORAGE_ORDER flag.
6540         * gimplify.c (gimplify_expr) <MEM_REF>: Propagate the
6541         REF_REVERSE_STORAGE_ORDER flag.
6542         * lto-streamer-out.c (hash_tree): Deal with TYPE_REVERSE_STORAGE_ORDER.
6543         * output.h (assemble_real): Adjust prototype.
6544         * print-tree.c (print_node): Convey TYPE_REVERSE_STORAGE_ORDER.
6545         * stor-layout.c (finish_record_layout): Propagate the
6546         TYPE_REVERSE_STORAGE_ORDER flag to the variants.
6547         * tree-core.h (TYPE_REVERSE_STORAGE_ORDER): Document.
6548         (TYPE_SATURATING): Adjust.
6549         (REF_REVERSE_STORAGE_ORDER): Document.
6550         * tree-dfa.c (get_ref_base_and_extent): Add PREVERSE parameter and
6551         set it to true upon encoutering a reference with reverse storage order.
6552         * tree-dfa.h (get_ref_base_and_extent): Adjust prototype.
6553         * tree-inline.c (remap_gimple_op_r): Propagate the
6554         REF_REVERSE_STORAGE_ORDER flag.
6555         (copy_tree_body_r): Likewise.
6556         * tree-outof-ssa.c (insert_value_copy_on_edge): Adjust call to
6557         store_expr.
6558         * tree-streamer-in.c (unpack_ts_base_value_fields): Deal with
6559         TYPE_REVERSE_STORAGE_ORDER and REF_REVERSE_STORAGE_ORDER.
6560         * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
6561         * tree.c (stabilize_reference) <BIT_FIELD_REF>: Propagate the
6562         REF_REVERSE_STORAGE_ORDER flag.
6563         (verify_type_variant): Deal with TYPE_REVERSE_STORAGE_ORDER.
6564         (gimple_canonical_types_compatible_p): Likewise.
6565         * tree.h (TYPE_REVERSE_STORAGE_ORDER): New flag.
6566         (TYPE_SATURATING): Adjust.
6567         (REF_REVERSE_STORAGE_ORDER): New flag.
6568         (reverse_storage_order_for_component_p): New inline predicate.
6569         (storage_order_barrier_p): Likewise.
6570         (get_inner_reference): Adjust prototype.
6571         * varasm.c: Include expmed.h.
6572         (assemble_variable_contents): Adjust call to output_constant.
6573         (assemble_real): Add REVERSE parameter.  Flip the storage
6574         order of the value if REVERSE is true.
6575         (compare_constant) <CONSTRUCTOR>: Compare TYPE_REVERSE_STORAGE_ORDER.
6576         (assemble_constant_contents): Adjust call to output_constant.
6577         (output_constant_pool_2): Adjust call to assemble_real.
6578         (initializer_constant_valid_p_1) <CONSTRUCTOR>: Deal with
6579         TYPE_REVERSE_STORAGE_ORDER.
6580         (initializer_constant_valid_p): Add REVERSE parameter.
6581         (output_constant): Add REVERSE parameter.
6582         <INTEGER_TYPE>: Flip the storage order of the value if REVERSE is true.
6583         <REAL_TYPE>: Adjust call to assemble_real.
6584         <COMPLEX_TYPE>: Pass it to recursive calls.
6585         <ARRAY_TYPE>: Likewise.  Adjust call to output_constructor.
6586         <RECORD_TYPE>: Likewise.  Adjust call to output_constructor.
6587         (struct oc_local_state): Add REVERSE field.
6588         (output_constructor_array_range): Adjust calls to output_constant.
6589         (output_constructor_regular_field): Likewise.
6590         (output_constructor_bitfield): Adjust call to output_constructor.
6591         Flip the storage order of the value if REVERSE is true.
6592         (output_constructor): Add REVERSE parameter.  Set it to true for an
6593         aggregate type with TYPE_REVERSE_STORAGE_ORDER.  Adjust call to
6594         output_constructor_bitfield.
6595         * varasm.h (initializer_constant_valid_p): Default REVERSE to false.
6596         * asan.c (instrument_derefs): Adjust call to get_inner_reference.
6597         * builtins.c (get_object_alignment_2): Likewise.
6598         * cfgexpand.c (expand_debug_expr): Adjust call to get_inner_reference
6599         and get_ref_base_and_extent.
6600         * dbxout.c (dbxout_expand_expr): Likewise.
6601         * dwarf2out.c (add_var_loc_to_decl): Likewise.
6602         (loc_list_for_address_of_addr_expr_of_indirect_ref): Likewise.
6603         (loc_list_from_tree): Likewise.
6604         (fortran_common): Likewise.
6605         * gimple-fold.c (gimple_fold_builtin_memory_op): Adjust calls to
6606         get_ref_base_and_extent.
6607         (get_base_constructor): Likewise.
6608         (fold_const_aggregate_ref_1): Likewise.
6609         * gimple-laddress.c (pass_laddress::execute): Adjust call to
6610         get_inner_reference.
6611         * gimple-ssa-strength-reduction.c (slsr_process_ref): Adjust call to
6612         get_inner_reference and bail out on reverse storage order.
6613         * ifcvt.c (noce_emit_move_insn): Adjust calls to store_bit_field.
6614         * ipa-cp.c (ipa_get_jf_ancestor_result): Adjust call to
6615         build_ref_for_offset.
6616         * ipa-polymorphic-call.c (set_by_invariant): Adjust call to
6617         get_ref_base_and_extent.
6618         (ipa_polymorphic_call_context): Likewise.
6619         (extr_type_from_vtbl_ptr_store): Likewise.
6620         (check_stmt_for_type_change): Likewise.
6621         (get_dynamic_type): Likewise.
6622         * ipa-prop.c (ipa_load_from_parm_agg_1): Adjust call to
6623         get_ref_base_and_extent.
6624         (compute_complex_assign_jump_func): Likewise.
6625         (get_ancestor_addr_info): Likewise.
6626         (compute_known_type_jump_func): Likewise.
6627         (determine_known_aggregate_parts): Likewise.
6628         (ipa_get_adjustment_candidate): Likewise.
6629         (ipa_modify_call_arguments): Set REF_REVERSE_STORAGE_ORDER on MEM_REF.
6630         * ipa-prop.h (ipa_parm_adjustment): Add REVERSE field.
6631         (build_ref_for_offset): Adjust prototype.
6632         * simplify-rtx.c (delegitimize_mem_from_attrs): Adjust call to
6633         get_inner_reference.
6634         * tree-affine.c (tree_to_aff_combination): Adjust call to
6635         get_inner_reference.
6636         (get_inner_reference_aff): Likewise.
6637         * tree-data-ref.c (split_constant_offset_1): Likewise.
6638         (dr_analyze_innermost): Likewise.  Bail out if reverse storage order.
6639         * tree-scalar-evolution.c (interpret_rhs_expr): Adjust call to
6640         get_inner_reference.
6641         * tree-sra.c (struct access): Add REVERSE and move WRITE around.
6642         (dump_access): Print new fields.
6643         (create_access): Adjust call to get_ref_base_and_extent and set the
6644         REVERSE flag according to the result.
6645         (completely_scalarize_record): Set the REVERSE flag.
6646         (scalarize_elem): Add REVERSE parameter.
6647         (build_access_from_expr_1): Preserve storage order barriers.
6648         (build_accesses_from_assign): Likewise.
6649         (build_ref_for_offset): Add REVERSE parameter and set the
6650         REF_REVERSE_STORAGE_ORDER flag accordingly.
6651         (build_ref_for_model): Adjust call to build_ref_for_offset and clear
6652         the REF_REVERSE_STORAGE_ORDER flag if there are components.
6653         (analyze_access_subtree): Likewise.
6654         (create_artificial_child_access): Set the REVERSE flag.
6655         (get_access_for_expr): Adjust call to get_ref_base_and_extent.
6656         (turn_representatives_into_adjustments): Propagate REVERSE flag.
6657         (ipa_sra_check_caller): Adjust call to get_inner_reference.
6658         * tree-ssa-alias.c (ao_ref_base): Adjust call to
6659         get_ref_base_and_extent.
6660         (aliasing_component_refs_p): Likewise.
6661         (stmt_kills_ref_p_1): Likewise.
6662         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
6663         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p) <MEM_REF>: New.
6664         Return true if reverse storage order.
6665         <BIT_FIELD_REF>: Likewise.
6666         <COMPONENT_REF>: Likewise.
6667         <ARRAY_REF>: Likewise.
6668         <ARRAY_RANGE_REF>: Likewise.
6669         (split_address_cost): Likewise.  Bail out if reverse storage order.
6670         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Adjust call to
6671         get_inner_reference.  Bail out if reverse storage order.
6672         (bswap_replace): Adjust call to get_inner_reference.
6673         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <MEM_REF>: Set
6674         the REF_REVERSE_STORAGE_ORDER flag.
6675         <BIT_FIELD_REF>: Likewise.
6676         * tree-ssa-sccvn.c (vn_reference_eq): Return false on storage order
6677         barriers.
6678         (copy_reference_ops_from_ref) <MEM_REF>: Set REVERSE field according
6679         to the REF_REVERSE_STORAGE_ORDER flag.
6680         <BIT_FIELD_REF>: Likewise.
6681         <VIEW_CONVERT_EXPR>: Set it for storage order barriers.
6682         (contains_storage_order_barrier_p): New predicate.
6683         (vn_reference_lookup_3): Adjust calls to get_ref_base_and_extent.
6684         Punt on storage order barriers if necessary.
6685         * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add REVERSE.
6686         * tree-ssa-structalias.c (get_constraint_for_component_ref): Adjust
6687         call to get_ref_base_and_extent.
6688         (do_structure_copy): Likewise.
6689         * tree-vect-data-refs.c (vect_check_gather): Adjust call to
6690         get_inner_reference.
6691         (vect_analyze_data_refs): Likewise.  Bail out if reverse storage order.
6692         * tsan.c (instrument_expr): Adjust call to get_inner_reference.
6693         * ubsan.c (instrument_bool_enum_load): Likewise.
6694         (instrument_object_size): Likewise.
6695         * var-tracking.c (track_expr_p): Adjust call to
6696         get_ref_base_and_extent.
6697         * config/mips/mips.c (r10k_safe_mem_expr_p): Adjust call to
6698         get_inner_reference.
6699         * config/s390/s390.c (s390_expand_atomic): Adjust call to
6700         store_bit_field.
6701         * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust call to
6702         extract_bit_field.
6703         * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Likewise.
6705 2015-11-07  Eric Botcazou  <ebotcazou@adacore.com>
6707         * config/sparc/sparc.opt (mfix-at697f): Add final period.
6709 2015-11-07  Segher Boessenkool  <segher@kernel.crashing.org>
6711         PR rtl-optimization/67864
6712         * common/config/i386/i386-common.c (ix86_option_optimization_table)
6713         <OPT_freorder_blocks_algorithm_>: Use REORDER_BLOCKS_ALGORITHM_STC
6714         at -Os and up.
6716 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
6718         * trans-mem.c (is_tm_pure_call): Use gimple_call_flags for
6719         internal functions.
6721 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
6723         * builtins.def: #undef DEF_BUILTIN and DEF_BUILTIN_CHKP
6724         * builtins.c, genmatch.c, tree-core.h: Don't undef them here.
6726 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
6728         * internal-fn.def: #undef DEF_INTERNAL_FN at the end.
6729         * internal-fn.c: Don't undef it here.
6730         * tree-core.h: Likewise.
6732 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
6734         * builtins.c (fold_builtin_nan): Delete.
6735         (fold_builtin_memcmp): Remove case where both arguments are constant.
6736         (fold_builtin_strcmp, fold_builtin_strncmp): Likewise.
6737         (fold_builtin_strspn, fold_builtin_strcspn): Likewise.
6738         (fold_builtin_1): Remove BUILT_IN_NAN* handling.
6739         * fold-const-call.c: Include fold-const.h.
6740         (host_size_t_cst_p): New function.
6741         (build_cmp_result, fold_const_builtin_nan): Likewise.
6742         (fold_const_call_1): New function, split out from...
6743         (fold_const_call): ...here (for all three interfaces).  Handle
6744         constant nan, nans, strlen, strcmp, strncmp, strspn and strcspn.
6746 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
6748         * builtins.c (fold_builtin_bitop, fold_builtin_bswap): Delete.
6749         (fold_builtin_1): Don't call them.
6750         * fold-const-call.c: Include tm.h.
6751         (fold_const_call_ss): New variant for integer-to-integer folds.
6752         (fold_const_call): Call it.
6754 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
6756         * builtins.c (fold_builtin_classify): Move constant cases to...
6757         * fold-const-call.c (fold_const_call_ss): ...here.
6759 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
6761         * builtins.h (c_getstr): Move to...
6762         * fold-const.h (c_getstr): ...here.
6763         * builtins.c (c_getstr): Move to...
6764         * fold-const.c (c_getstr): ...here.
6766 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
6768         * builtins.def (BUILTIN_RINT, BUILTIN_RINTF, BUILTIN_RINTL): Use
6769         ATTR_MATHFN_FPROUNDING rather than ATTR_MATHFN_FPROUNDING_ERRNO.
6771 2015-11-07  Richard Sandiford  <richard.sandiford@arm.com>
6773         * tree-call-cdce.c (shrink_wrap_one_built_in_call): Try to update
6774         the dominance info; free it if we can't.
6775         (pass_call_cdce::execute): Don't free the dominance info here.
6777 2015-11-06  Jeff Law <law@redhat.com>
6779         * tree-ssa-threadedge.c (dummy_simplify): Remove.
6780         (thread_around_empty_blocks): Remove backedge_seen_p argument.
6781         If we thread to a backedge, then return false.  Update recursive
6782         call to eliminate backedge_seen_p argument.
6783         (thread_through_normal_block): Remove backedge_seen_p argument.
6784         Remove backedge_seen_p argument from calls to
6785         thread_around_empty_blocks.  Remove checks on backedge_seen_p.
6786         If we thread to a backedge, then return 0.
6787         (thread_across_edge): Remove bookkeeping for backedge_seen.  Don't
6788         pass it to thread_through_normal_block or thread_through_empty_blocks.
6789         For joiner handling, if we see a backedge, do not try normal
6790         threading.
6792 2015-11-06  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
6794         * graphite-optimize-isl.c (optimize_isl): Call isl_union_map_is_equal.
6795         * graphite-poly.c (new_scop): Initialize original_schedule.
6796         (free_scop): Free original_schedule.
6797         * graphite-poly.h (struct scop): Add field original_schedule.
6798         * graphite-sese-to-poly.c (build_scop_original_schedule): New.
6799         (build_poly_scop): Call build_scop_original_schedule.
6801 2015-11-06  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
6803         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
6804         (build_pbb_minimal_scattering_polyhedrons): New.
6805         (build_scop_scattering): Remove.
6806         (build_scop_minimal_scattering): New.
6807         (build_scop_scattering): Call build_pbb_minimal_scattering_polyhedrons.
6808         (build_poly_scop): Call build_scop_minimal_scattering.
6810 2015-11-06  Jeff Law <law@redhat.com>
6812         * cfg-flags.def (IGNORE): New edge flag.
6813         * tree-vrp.c (identify_jump_threads): Mark and clear edges
6814         scheduled for removal with EDGE_IGNORE around call into
6815         jump threader.  Do no thread across edges with EDGE_IGNORE,
6816         but do allow threading across those with EDGE_DFS_BACK.
6818 2015-11-06  David Wohlferd  <dw@LimeGreenSocks.com>
6820         * doc/md.texi (multi-alternative constraints): Don't document
6821         alternatives inherently tied to reload for the user documentation.
6823 2015-11-06  Michael Collison  <michael.collison@linaro.org>
6824             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
6826         Revert:
6827         2015-08-01  Michael Collison  <michael.collison@linaro.org
6828                     Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
6830         * config/arm/arm.md (*arm_smin_cmp): New pattern.
6831         (*arm_umin_cmp): Likewise.
6833 2015-11-06  Jakub Jelinek  <jakub@redhat.com>
6835         * gimplify.c (gimplify_omp_ordered): Fix up diagnostics wording.
6836         * omp-low.c (check_omp_nesting_restrictions): Update for the
6837         various new OpenMP 4.5 nesting restrictions, clarified
6838         nesting glossary, closely nested region relationship clarified
6839         to mean explicit or implicit parallel regions (target/teams),
6840         use %</%> or %qs where appropriate.
6842 2015-11-06  Aditya Kumar  <aditya.k7@samsung.com>
6843             Sebastian Pop  <s.pop@samsung.com>
6845         * graphite-scop-detection.c (loop_is_valid_scop): Call
6846         optimize_loop_nest_for_speed_p.
6848 2015-11-06  Aditya Kumar  <aditya.k7@samsung.com>
6849             Sebastian Pop  <s.pop@samsung.com>
6851         * graphite-optimize-isl.c (optimize_isl): Call
6852         isl_options_set_schedule_maximize_band_depth.
6854 2015-11-06  Aditya Kumar  <aditya.k7@samsung.com>
6855             Sebastian Pop  <s.pop@samsung.com>
6857         * graphite-scop-detection.c (scop_detection::merge_sese): Entry
6858         and exit edges should not be a part of irreducible loop.
6859         (scop_detection::can_represent_loop_1): Loops should not be
6860         irreducible.
6861         (scop_detection::harmful_stmt_in_region): All the basic block
6862         should belong to reducible loops.
6864 2015-11-06  Christophe Lyon  <christophe.lyon@linaro.org>
6866         * config/aarch64/aarch64-simd-builtins.def: Update builtins
6867         tables: add tbl3v16qi, qtbl[34]*, tbx4v16qi, qtbx[34]*.
6868         * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): Rename to...
6869         (aarch64_tbl3<mode>) ... this, which supports v16qi too.
6870         (aarch64_tbx4v8qi): Rename to...
6871         aarch64_tbx4<mode>): ... this.
6872         (aarch64_qtbl3<mode>): New pattern.
6873         (aarch64_qtbx3<mode>): New pattern.
6874         (aarch64_qtbl4<mode>): New pattern.
6875         (aarch64_qtbx4<mode>): New pattern.
6876         * config/aarch64/arm_neon.h (vqtbl2_s8, vqtbl2_u8, vqtbl2_p8)
6877         (vqtbl2q_s8, vqtbl2q_u8, vqtbl2q_p8, vqtbl3_s8, vqtbl3_u8)
6878         (vqtbl3_p8, vqtbl3q_s8, vqtbl3q_u8, vqtbl3q_p8, vqtbl4_s8)
6879         (vqtbl4_u8, vqtbl4_p8, vqtbl4q_s8, vqtbl4q_u8, vqtbl4q_p8)
6880         (vqtbx2_s8, vqtbx2_u8, vqtbx2_p8, vqtbx2q_s8, vqtbx2q_u8)
6881         (vqtbx2q_p8, vqtbx3_s8, vqtbx3_u8, vqtbx3_p8, vqtbx3q_s8)
6882         (vqtbx3q_u8, vqtbx3q_p8, vqtbx4_s8, vqtbx4_u8, vqtbx4_p8)
6883         (vqtbx4q_s8, vqtbx4q_u8, vqtbx4q_p8): Rewrite using builtin
6884         functions.
6886 2015-11-06  Mike Stump  <mikestump@comcast.net>
6888         PR debug/66728
6889         * dwarf2out.c (get_full_len): Return a value based upon the actual
6890         precision needed for the value.
6891         (add_const_value_attribute): Use a maximal wide-int for
6892         CONST_WIDE_INTs, not VOIDmode.
6893         (output_die): Don't ever output NULL with printf.
6895         * rtl.h (get_precision of rtx_mode_t): Ensure we never process
6896         BLKmode nor VOIDmode values.
6898 2015-11-06  David Malcolm  <dmalcolm@redhat.com>
6900         * diagnostic-color.c (color_dict): Eliminate "caret"; add "range1"
6901         and "range2".
6902         (parse_gcc_colors): Update comment to describe default GCC_COLORS.
6903         * diagnostic-core.h (warning_at_rich_loc): New declaration.
6904         (error_at_rich_loc): New declaration.
6905         (permerror_at_rich_loc): New declaration.
6906         (inform_at_rich_loc): New declaration.
6907         * diagnostic-show-locus.c (adjust_line): Delete.
6908         (struct point_state): New struct.
6909         (class colorizer): New class.
6910         (class layout_point): New class.
6911         (class layout_range): New class.
6912         (struct line_bounds): New.
6913         (class layout): New class.
6914         (colorizer::colorizer): New ctor.
6915         (colorizer::~colorizer): New dtor.
6916         (layout::layout): New ctor.
6917         (layout::print_source_line): New method.
6918         (layout::print_annotation_line): New method.
6919         (layout::get_state_at_point): New method.
6920         (layout::get_x_bound_for_row): New method.
6921         (diagnostic_show_locus): Reimplement in terms of class layout.
6922         (diagnostic_print_caret_line): Delete.
6923         * diagnostic.c (diagnostic_initialize): Replace
6924         MAX_LOCATIONS_PER_MESSAGE with rich_location::MAX_RANGES.
6925         (diagnostic_set_info_translated): Convert param from location_t
6926         to rich_location *.  Eliminate calls to set_location on the
6927         message in favor of storing the rich_location ptr there.
6928         (diagnostic_set_info): Convert param from location_t to
6929         rich_location *.
6930         (diagnostic_build_prefix): Break out array into...
6931         (diagnostic_kind_color): New variable.
6932         (diagnostic_get_color_for_kind): New function.
6933         (diagnostic_report_diagnostic): Colorize the option_text
6934         using the color for the severity.
6935         (diagnostic_append_note): Update for change in signature of
6936         diagnostic_set_info.
6937         (diagnostic_append_note_at_rich_loc): New function.
6938         (emit_diagnostic): Update for change in signature of
6939         diagnostic_set_info.
6940         (inform): Likewise.
6941         (inform_at_rich_loc): New function.
6942         (inform_n): Update for change in signature of diagnostic_set_info.
6943         (warning): Likewise.
6944         (warning_at): Likewise.
6945         (warning_at_rich_loc): New function.
6946         (warning_n): Update for change in signature of diagnostic_set_info.
6947         (pedwarn): Likewise.
6948         (permerror): Likewise.
6949         (permerror_at_rich_loc): New function.
6950         (error): Update for change in signature of diagnostic_set_info.
6951         (error_n): Likewise.
6952         (error_at): Likewise.
6953         (error_at_rich_loc): New function.
6954         (sorry): Update for change in signature of diagnostic_set_info.
6955         (fatal_error): Likewise.
6956         (internal_error): Likewise.
6957         (internal_error_no_backtrace): Likewise.
6958         (source_range::debug): New function.
6959         * diagnostic.h (struct diagnostic_info): Eliminate field
6960         "override_column".  Add field "richloc".
6961         (struct diagnostic_context): Add field "colorize_source_p".
6962         (diagnostic_override_column): Delete.
6963         (diagnostic_set_info): Convert param from location_t to
6964         rich_location *.
6965         (diagnostic_set_info_translated): Likewise.
6966         (diagnostic_append_note_at_rich_loc): New function.
6967         (diagnostic_num_locations): New function.
6968         (diagnostic_expand_location): Get the location from the
6969         rich_location.
6970         (diagnostic_print_caret_line): Delete.
6971         (diagnostic_get_color_for_kind): New declaration.
6972         * genmatch.c (linemap_client_expand_location_to_spelling_point): New.
6973         (error_cb): Update for change in signature of "error" callback.
6974         (fatal_at): Likewise.
6975         (warning_at): Likewise.
6976         * input.c (linemap_client_expand_location_to_spelling_point): New.
6977         * pretty-print.c (text_info::set_range): New method.
6978         (text_info::get_location): New method.
6979         * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): Eliminate this macro.
6980         (struct text_info): Eliminate "locations" array in favor of
6981         "m_richloc", a rich_location *.
6982         (textinfo::set_location): Add a "caret_p" param, and reimplement
6983         in terms of a call to set_range.
6984         (textinfo::get_location): Eliminate inline implementation in favor of
6985         an out-of-line reimplementation.
6986         (textinfo::set_range): New method.
6987         * rtl-error.c (diagnostic_for_asm): Update for change in signature
6988         of diagnostic_set_info.
6989         * tree-diagnostic.c (default_tree_printer): Update for new
6990         "caret_p" param for textinfo::set_location.
6991         * tree-pretty-print.c (percent_K_format): Likewise.
6993 2015-11-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6995         Properly apply.
6996         2015-11-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6997         * config/aarch64/aarch64.c
6998         (aarch64_can_use_per_function_literal_pools_p): New.
6999         (aarch64_use_blocks_for_constant_p): Adjust declaration
7000         and use aarch64_can_use_function_literal_pools_p.
7001         (aarch64_select_rtx_section): Update.
7003 2015-11-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7005         * config/arm/arm-ldmstm.ml: Rewrite to generate unified asm templates.
7006         * config/arm/arm.c (arm_asm_trampoline_template): Make unified asm safe.
7007         (arm_output_multireg_pop): Likewise.
7008         (output_move_double):  Likewise.
7009         (output_move_quad):  Likewise.
7010         (output_return_instruction): Likewise.
7011         (arm_print_operand): Remove support for %( and %. print modifiers.
7012         (arm_output_shift): Make unified asm.
7013         (arm_declare_function_name): Likewise.
7014         * config/arm/arm.h (TARGET_UNIFIED_ASM): Delete.
7015         (ASM_APP_OFF): Adjust.
7016         (ASM_OUTPUT_REG_PUSH): Undo special casing for TARGET_ARM.
7017         (ASM_OUTPUT_REG_POP): Likewise.
7018         * config/arm/arm.md: Adjust uses of %., %(, %)
7019         * config/arm/sync.md: Likewise.
7020         * config/arm/thumb2.md: Likewise.
7021         * config/arm/ldmstm.md: Regenerate.
7022         * config/arm/arm.opt (masm-unified-syntax): Do not special case Thumb.
7023         * doc/invoke.texi (masm-unified-syntax): Update documentation.
7025 2015-11-06  David Malcolm  <dmalcolm@redhat.com>
7027         * input.c (dump_line_table_statistics): Dump stats on adhoc table.
7029 2015-11-07  Jan Hubicka  <hubicka@ucw.cz>
7031         * tree-core.h (size_type_kind): Remove OEP_CONSTANT_ADDRESS_OF and
7032         add OEP_MATCH_SIDE_EFFECTS.
7033         * fold-const.c (operand_equal_p): Update documentation; handle
7034         OEP_MATCH_SIDE_EFFECTS.
7035         * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Use
7036         OEP_MATCH_SIDE_EFFECTS.
7038 2015-11-06  Benedikt Huber  <benedikt.huber@theobroma-systems.com>
7039             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
7041         * config/aarch64/aarch64-builtins.c: Builtins for rsqrt and rsqrtf.
7042         * config/aarch64/aarch64-protos.h: Declare.
7043         * config/aarch64/aarch64-simd.md: Matching expressions for frsqrte and
7044         frsqrts.
7045         * config/aarch64/aarch64-tuning-flags.def: Added recip_sqrt.
7046         * config/aarch64/aarch64.c: New functions. Emit rsqrt estimation
7047         code when applicable.
7048         * config/aarch64/aarch64.md: Added enum entries.
7049         * config/aarch64/aarch64.opt: Added option -mlow-precision-recip-sqrt.
7051 2015-11-07  Jan Hubicka  <hubicka@ucw.cz>
7053         PR ipa/68057
7054         PR ipa/68220
7055         * ipa-polymorphic-call.c
7056         (ipa_polymorphic_call_context::restrict_to_inner_type): Fix ordering
7057         issue when offset is out of range.
7058         (contains_type_p): Fix out of range check, clear dynamic flag.
7060 2015-11-06  Arnout Vandecappelle  <arnout@mind.be>
7062         * config.gcc (e6500): Fix cpu_is_64bit typo.
7064 2015-11-06  Alan Lawrence  <alan.lawrence@arm.com>
7066         * tree-sra.c (completely_scalarize): Properly handle negative array
7067         indices using offset_int.
7069 2015-11-06  Richard Biener  <rguenther@suse.de>
7071         * alloc-pool.h (object_allocator::allocate): Default-initialize
7072         object.
7074 2015-11-06  Richard Biener  <rguenther@suse.de>
7076         * tree-ssa-sccvn.c (class sccvn_dom_walker): Add destructor.
7077         * lra.c (init_reg_info): Truncate copy_vec instead of
7078         re-allocating a new one and leaking the old.
7079         * ipa-inline-analysis.c (estimate_function_body_sizes): Free
7080         bb_infos vec.
7081         * sched-deps.c (sched_deps_finish): Free the dn/dl pools.
7082         * postreload-gcse.c (free_mem): Free modify_mem_list and
7083         canon_modify_mem_list.
7085 2015-11-06  Ilya Enkovich  <enkovich.gnu@gmail.com>
7087         PR tree-optimization/68145
7088         * tree-vect-stmts.c (vectorizable_operation): Fix
7089         determination for booleans.
7091 2015-11-06  Tom de Vries  <tom@codesourcery.com>
7093         * tree-cfg.c (gimple_split_block_before_cond_jump): Split before
7094         cond_jump, instead of split after last nondebug insn before cond_jump.
7095         * tree-parloops.c (transform_to_exit_first_loop_alt): Verify ssa before
7096         returning.
7098 2015-11-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7100         PR target/68088
7101         * config/arm/aarch-common.c (aarch_accumulator_forwarding): Strip
7102         subregs from accumulator and make sure it's a register.
7104 2015-11-06  Simon Dardis  <simon.dardis@imgtec.com>
7106         * config/mips/loongson.md (vec_loongson_extract_lo_<mode>): New, extract
7107         low part to scalar.
7108         (reduc_uplus_<mode>): Remove.
7109         (reduc_plus_scal_<mode>): Rename from reduc_splus_<mode>, Use vec
7110         loongson_extract_lo_<mode>.
7111         (reduc_smax_scal_<mode>, reduc_smin_scal_<mode>): Rename from
7112         reduc_smax_<mode>, reduc_smax_<mode>, use vec
7113         loongson_extract_lo_<mode>.
7114         (reduc_umax_scal_<mode>, reduc_umin_scal_<mode>): Rename.
7116 2015-11-06  Richard Biener  <rguenther@suse.de>
7118         * tree-vectorizer.h (struct _bb_vec_info): Add region_begin/end
7119         members.
7120         (vect_stmt_in_region_p): Declare.
7121         * tree-vect-slp.c (new_bb_vec_info): Work on a region.
7122         (destroy_bb_vec_info): Likewise.
7123         (vect_bb_slp_scalar_cost): Use vect_stmt_in_region_p.
7124         (vect_get_and_check_slp_defs): Likewise.
7125         (vect_slp_analyze_bb_1): Refactor to make it work on sub-BBs.
7126         (vect_slp_bb): Likewise.
7127         * tree-vect-patterns.c (vect_same_loop_or_bb_p): Implement
7128         in terms of vect_stmt_in_region_p.
7129         (vect_pattern_recog): Iterate over the BB region.
7130         * tree-vect-stmts.c (vect_is_simple_use): Use vect_stmt_in_region_p.
7131         * tree-vectorizer.c (vect_stmt_in_region_p): New function.
7132         (pass_slp_vectorize::execute): Initialize all stmt UIDs to -1.
7133         * config/i386/i386.c: Include gimple-iterator.h.
7134         * config/aarch64/aarch64.c: Likewise.
7136 2015-11-06  Alexandre Oliva <aoliva@redhat.com>
7138         PR rtl-optimization/67753
7139         PR rtl-optimization/64164
7140         * function.c (assign_parm_setup_block): Avoid allocating a
7141         stack slot if we don't have an ABI-reserved one.  Emit the
7142         copy to target_reg in the conversion seq if the copy from
7143         entry_parm is in it too.  Don't use the conversion seq to copy
7144         a PARALLEL to a REG or a CONCAT.
7146 2015-11-06  Richard Biener  <rguenther@suse.de>
7148         * tree-hash-traits.h (tree_operand_hash): Provide equal, not
7149         equal_keys.
7151 2015-11-05  Cesar Philippidis  <cesar@codesourcery.com>
7152             Thomas Schwinge  <thomas@codesourcery.com>
7153             James Norris  <jnorris@codesourcery.com>
7156         * gimplify.c (gimplify_scan_omp_clauses): Add support for
7157         OMP_CLAUSE_TILE.  Update handling of OMP_CLAUSE_INDEPENDENT.
7158         (gimplify_adjust_omp_clauses): Likewise.
7159         * omp-low.c (scan_sharing_clauses): Add support for OMP_CLAUSE_TILE.
7160         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_TILE.
7161         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_TILE.
7162         * tree.c (omp_clause_num_ops): Add an entry for OMP_CLAUSE_TILE.
7163         (omp_clause_code_name): Likewise.
7164         (walk_tree_1): Handle OMP_CLAUSE_TILE.
7165         * tree.h (OMP_TILE_LIST): New macro.
7167 2015-11-05  Martin Sebor  <msebor@redhat.com>
7169         PR c++/67942
7170         * doc/invoke.texi (-Wplacement-new): Document new option.
7172 2015-11-05  Alan Lawrence  <alan.lawrence@arm.com>
7174         PR tree-optimization/65963
7175         * tree-scalar-evolution.c (interpret_rhs_expr): Try to handle
7176         LSHIFT_EXPRs as equivalent unsigned MULT_EXPRs.
7178 2015-11-05  James Greenhalgh  <james.greenhalgh@arm.com>
7180         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): New.
7181         (noce_convert_multiple_sets): Likewise.
7182         (noce_process_if_block): Call them.
7184 2015-11-05  Nathan Sidwell  <nathan@codesourcery.com>
7186         * gimple-fold.c: Include omp-low.h.
7187         (fold_internal_goacc_dim): New.
7188         (gimple_fold_call): Call it.
7190 2015-11-05  Jakub Jelinek  <jakub@redhat.com>
7191             Ilya Verbin  <ilya.verbin@intel.com>
7193         * builtin-types.def
7194         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR): Remove.
7195         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): New.
7196         * cgraph.h (enum cgraph_simd_clone_arg_type): Add
7197         SIMD_CLONE_ARG_TYPE_LINEAR_REF_VARIABLE_STEP,
7198         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP and
7199         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP.
7200         (struct cgraph_simd_clone_arg): Adjust comment.
7201         * omp-builtins.def (BUILT_IN_GOMP_TARGET): Rename GOMP_target_41
7202         to GOMP_target_ext.  Add num_teams and thread_limit arguments.
7203         (BUILT_IN_GOMP_TARGET_DATA): Rename GOMP_target_data_41
7204         to GOMP_target_data_ext.
7205         (BUILT_IN_GOMP_TARGET_UPDATE): Rename GOMP_target_update_41
7206         to GOMP_target_update_ext.
7207         (BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_START,
7208         BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_START,
7209         BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_NEXT,
7210         BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_NEXT,
7211         BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_START,
7212         BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_START,
7213         BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_NEXT,
7214         BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_NEXT,
7215         BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_DYNAMIC,
7216         BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_GUIDED): New built-ins.
7217         * tree-core.h (enum omp_clause_schedule_kind): Add
7218         OMP_CLAUSE_SCHEDULE_MASK, OMP_CLAUSE_SCHEDULE_MONOTONIC,
7219         OMP_CLAUSE_SCHEDULE_NONMONOTONIC and change
7220         OMP_CLAUSE_SCHEDULE_LAST value.
7221         * tree.def (OMP_SIMD, CILK_SIMD, CILK_FOR, OMP_DISTRIBUTE,
7222         OMP_TASKLOOP, OACC_LOOP): Add OMP_FOR_ORIG_DECLS argument.
7223         * tree.h (OMP_FOR_ORIG_DECLS): Use OMP_LOOP_CHECK instead of
7224         OMP_FOR_CHECK.  Remove comment.
7225         * tree-pretty-print.c (dump_omp_clause): Handle
7226         GOMP_MAP_FIRSTPRIVATE_REFERENCE and GOMP_MAP_ALWAYS_POINTER.
7227         Simplify.  Print schedule clause modifiers.
7228         * tree-vect-stmts.c (vectorizable_simd_clone_call): Add
7229         SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_VARIABLE_STEP
7230         cases.
7231         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_ALWAYS_TO.
7232         (omp_default_clause): Tweak for
7233         private/firstprivate/is_device_ptr variables on target
7234         construct and use_device_ptr on target data.
7235         (omp_check_private): Likewise.
7236         (omp_notice_variable): For references check whether what it refers
7237         to has mappable type, rather than the reference itself.
7238         (omp_is_private): Diagnose linear iteration variables on non-simd
7239         constructs.
7240         (omp_no_lastprivate): Return true only for Fortran.
7241         (gimplify_scan_omp_clauses): Or in GOVD_MAP_ALWAYS_TO for
7242         GOMP_MAP_ALWAYS_TO or GOMP_MAP_ALWAYS_TOFROM kinds.
7243         Add support for GOMP_MAP_FIRSTPRIVATE_REFERENCE and
7244         GOMP_MAP_ALWAYS_POINTER, remove old handling of structure element
7245         based array sections.  Use GOMP_MAP_ALWAYS_P.  Fix up handling of
7246         lastprivate and linear when combined with distribute.  Gimplify
7247         variable low-bound for array reduction.  Look through
7248         POINTER_PLUS_EXPR when looking for ADDR_EXPR for array section
7249         reductions.
7250         (gimplify_adjust_omp_clauses_1): For implicit references to
7251         variables with reference type and when not ref to scalar or
7252         ref to pointer, map what they refer to using tofrom and
7253         use GOMP_MAP_FIRSTPRIVATE_REFERENCE for the reference.
7254         (gimplify_adjust_omp_clauses): Remove GOMP_MAP_ALWAYS_POINTER
7255         from target exit data.  Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE.
7256         Drop OMP_CLAUSE_MAP_PRIVATE support.  Use GOMP_MAP_ALWAYS_P.
7257         Diagnose the same var on both firstprivate and lastprivate on
7258         distribute construct.
7259         (gimplify_omp_for): Fix up handling of predetermined
7260         lastprivate or linear iter vars when combined with distribute.
7261         (find_omp_teams, computable_teams_clause, optimize_target_teams): New
7262         functions.
7263         (gimplify_omp_workshare): Call optimize_target_teams.
7264         * omp-low.c (struct omp_region): Add sched_modifiers field.
7265         (struct omp_for_data): Likewise.
7266         (omp_any_child_fn_dumped): New variable.
7267         (extract_omp_for_data): Fill in sched_modifiers, and mask out
7268         OMP_CLAUSE_SCHEDULE_KIND bits outside of OMP_CLAUSE_SCHEDULE_MASK
7269         from sched_kind.
7270         (determine_parallel_type): Use only OMP_CLAUSE_SCHEDULE_MASK
7271         bits of OMP_CLAUSE_SCHED_KIND.
7272         (scan_sharing_clauses): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE,
7273         drop OMP_CLAUSE_MAP_PRIVATE support.  Look through POINTER_PLUS_EXPR
7274         for array section reductions.
7275         (add_taskreg_looptemp_clauses): Add one extra _looptemp_ clause even
7276         for distribute parallel for, if there are lastprivate clauses on the
7277         for.
7278         (lower_rec_input_clauses): Handle non-zero low-bound on array
7279         section reductions.
7280         (lower_reduction_clauses): Likewise.
7281         (lower_send_clauses): Look through POINTER_PLUS_EXPR
7282         for array section reductions.
7283         (expand_parallel_call): Use nonmonotonic entrypoints for
7284         nonmonotonic: dynamic/guided.
7285         (expand_omp_taskreg): Call assign_assembler_name_if_neeeded on
7286         child_fn if current_function_decl has assembler name set, but child_fn
7287         does not.  Dump the header and IL of the child function when not in SSA
7288         form.
7289         (expand_omp_target): Likewise.  Pass num_teams and thread_limit
7290         arguments to BUILT_IN_GOMP_TARGET.
7291         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
7292         Initialize the extra _looptemp_ clause to fd->loop.n2.
7293         (expand_omp_for): Use nonmonotonic entrypoints for
7294         nonmonotonic: dynamic/guided.  Initialize region->sched_modifiers.
7295         (expand_omp): Clear omp_any_child_fn_dumped.  Dump function header
7296         again if we have dumped any child functions.
7297         (lower_omp_for_lastprivate): Determine the right count variable
7298         for distribute simd, or distribute parallel for{, simd}.
7299         (lower_omp_target): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE
7300         and GOMP_MAP_ALWAYS_POINTER.  Drop OMP_CLAUSE_MAP_PRIVATE
7301         support.
7302         (simd_clone_clauses_extract): Handle variable step
7303         for references and arguments passed by reference.
7304         (simd_clone_mangle): Mangle ref/uval/val variable steps.
7305         (simd_clone_adjust_argument_types): Handle
7306         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP like
7307         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
7308         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP like
7309         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
7310         (simd_clone_linear_addend): New function.
7311         (simd_clone_adjust): Handle variable step like similarly
7312         to constant step, use simd_clone_linear_addend to determine
7313         the actual step at runtime.
7315 2015-11-05  Nathan Sidwell  <nathan@codesourcery.com>
7317         * target.def (goacc.dim_limit): New hook.
7318         * targhooks.h (default_goacc_dim_limit): Declare.
7319         * doc/tm.texi.in (TARGET_GOACC_DIM_LIMIT): Add.
7320         * doc/tm.texi: Rebuilt.
7321         * omp-low.h (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): Declare.
7322         * omp-low.c (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): New.
7323         (default_goacc_dim_limit): New.
7324         * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
7325         (nvptx_goacc_dim_limit) New.
7326         (TARGET_GOACC_DIM_LIMIT): Override.
7327         * tree-vrp.c: Include omp-low.h, target.h.
7328         (extract_range_basic): Add handling for IFN_GOACC_DIM_SIZE &
7329         IFN_GOACC_DIM_POS.
7331 2015-11-05  Ilya Enkovich  <enkovich.gnu@gmail.com>
7333         * tree-vect-generic.c (do_compare): Use -1 for true
7334         result instead of 1.
7336 2015-11-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7338         * config/aarch64/aarch64.c
7339         (aarch64_can_use_per_function_literal_pools_p): New.
7340         (aarch64_use_blocks_for_constant_p): Adjust declaration
7341         and use aarch64_can_use_function_literal_pools_p.
7342         (aarch64_select_rtx_section): Update.
7344 2015-11-05  Ilya Enkovich  <enkovich.gnu@gmail.com>
7346         * targhooks.c (default_get_mask_mode): Use BLKmode in
7347         case target doesn't support required vector mode.
7348         * stor-layout.c (layout_type); Check for BLKmode.
7350 2015-11-04  Aditya Kumar  <aditya.k7@samsung.com>
7351             Sebastian Pop  <s.pop@samsung.com>
7353         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
7354         Remove use of parameter_rename_map.
7355         (copy_def): Remove.
7356         (copy_internal_parameters): Remove.
7357         (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
7358         * sese.c (new_sese_info): Do not initialize parameter_rename_map.
7359         (free_sese_info): Do not free parameter_rename_map.
7360         (set_rename): Do not use parameter_rename_map.
7361         (rename_uses): Update call to set_rename.
7362         (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
7363         * sese.h (parameter_rename_map_t): Remove.
7364         (struct sese_info_t): Remove field parameter_rename_map.
7366 2015-11-04  Aditya Kumar  <aditya.k7@samsung.com>
7367             Sebastian Pop  <s.pop@samsung.com>
7369         * graphite-isl-ast-to-gimple.c: Include tree-cfg.h.
7370         (translate_isl_ast_node_user): Add more dumps: call print_loops_bb.
7371         * graphite-scop-detection.c (dot_all_scops_1): Moved out of
7372         anonymous namespace.
7373         * graphite-sese-to-poly.c (ssa_name_version_typesize): Remove.
7374         (isl_id_for_pbb): Use a buffer of size 10.
7375         (isl_id_for_ssa_name): Same.
7376         * sese.c (set_rename): Add more dumps.
7378 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
7380         * omp-low.c (struct omp_context): Remove reduction_map field.
7381         (lookup_oacc_reduction, maybe_lookup_oacc_reduction): Delete.
7382         (new_omp_context, delete_omp_context, scan_omp_target): Remove
7383         reduction_map handling.
7384         (lower_omp_target): Remove obsolete openacc reduction handling.
7386 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
7388         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add checking.
7390 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
7391             Cesar Philippidis  <cesar@codesourcery.com>
7393         * config/nvptx/nvptx.c: Include gimple headers.
7394         (worker_red_size, worker_red_align, worker_red_name,
7395         worker_red_sym): New.
7396         (nvptx_option_override): Initialize worker reduction buffer.
7397         (nvptx_file_end): Write out worker reduction buffer var.
7398         (nvptx_expand_shuffle, nvptx_expand_worker_addr,
7399         nvptx_expand_cmp_swap): New builtin expanders.
7400         (enum nvptx_builtins): New.
7401         (nvptx_builtin_decls): New.
7402         (nvptx_builtin_decl, nvptx_init_builtins, nvptx_expand_builtin): New
7403         (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
7404         (nvptx_get_worker_red_addr, nvptx_generate_vector_shuffle,
7405         nvptx_lockless_update): New helpers.
7406         (nvptx_goacc_reduction_setup, nvptx_goacc_reduction_init,
7407         nvptx_goacc_reduction_fini, nvptx_goacc_reduction_teaddown): New.
7408         (nvptx_goacc_reduction): New.
7409         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN,
7410         TARGET_BUILTIN_DECL): Override.
7411         (TARGET_GOACC_REDUCTION): Override.
7413 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
7414             Cesar Philippidis  <cesar@codesourcery.com>
7416         * internal-fn.def (GOACC_REDUCTION): New.
7417         * internal-fn.h (enum ifn_goacc_reduction_kind): New.
7418         * internal-fn.c (expand_GOACC_REDUCTION): New.
7419         * target.def (goacc.reduction): New OpenACC hook.
7420         * targhooks.h (default_goacc_reduction): Declare.
7421         * doc/tm.texi.in: Add TARGET_GOACC_REDUCTION.
7422         * doc/tm.texi: Rebuilt.
7423         * omp-low.c (oacc_get_reduction_array_id, oacc_max_threads,
7424         scan_sharing_clauses): Remove oacc reduction handling here.
7425         (lower_rec_input_clauses): Don't handle OpenACC reductions here.
7426         (oacc_lower_reduction_var_helper): Delete.
7427         (lower_oacc_reductions): New.
7428         (lower_reduction_clauses): Don't handle OpenACC reductions here.
7429         (lower_oacc_head_tail): Call lower_oacc_reductions.
7430         (oacc_gimple_assign, oacc_init_reduction_array,
7431         oacc_initialize_reduction_data, oacc_finalize_reduction_data,
7432         oacc_process_reduction_data): Delete.
7433         (lower_omp_target): Remove old OpenACC reduction handling.  Insert
7434         dummy OpenACC gang reduction for reductions at outer level.
7435         (oacc_loop_xform_head_tail): Transform IFN_GOACC_REDUCTION.
7436         (default_goacc_reduction): New.
7437         (execute_oacc_device_lower): Handle IFN_GOACC_REDUCTION.
7439 2015-11-04  Martin Liska  <mliska@suse.cz>
7441         * cgraphunit.c (cgraph_node::expand_thunk): Call
7442         allocate_struct_function before init_function_start.
7443         (cgraph_node::expand): Use push_cfun and pop_cfun.
7444         * config/i386/i386.c (ix86_code_end): Call
7445         allocate_struct_function before init_function_start.
7446         * config/rs6000/rs6000.c (rs6000_code_end): Likewise.
7447         * function.c (init_function_start): Move preamble to all
7448         callers.
7449         * passes.c (do_per_function_toporder): Use push_cfun and pop_cfun.
7450         (execute_one_pass): Handle newly added TODO_discard_function.
7451         (execute_pass_list_1): Terminate if cfun equals to NULL.
7452         (execute_pass_list): Do not push and pop cfun, expect that
7453         cfun is set.
7454         * tree-pass.h (TODO_discard_function): Define.
7456 2015-11-04  Mikhail Maltsev  <maltsevm@gmail.com>
7458         * cfganal.c (inverted_post_order_compute): Remove conditional
7459         compilation, use flag_checking.
7460         * config.in: Regenerate.
7461         * configure: Regenerate.
7462         * configure.ac: Remove ENABLE_CHECKING.
7463         * genconditions.c: Do not #undef ENABLE_CHECKING.
7464         * sese.h (bb_in_region): Comment out broken check.
7465         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa_1): Remove
7466         conditional compilation, use flag_checking.
7468 2015-11-04  Tom de Vries  <tom@codesourcery.com>
7470         PR tree-optimization/67742
7471         * tree-ssa-structalias.c (struct fieldoff): Add restrict_pointed_type
7472         field.
7473         (push_fields_onto_fieldstack): Handle restrict_pointed_type field.
7474         (create_variable_info_for_1): Add and handle handle_param parameter.
7475         Add restrict handling.
7476         (create_variable_info_for): Call create_variable_info_for_1 with extra
7477         arg.
7478         (make_param_constraints): Drop restrict_name parameter.  Ignore
7479         vi->only_restrict_pointers.
7480         (intra_create_variable_infos): Call create_variable_info_for_1 with
7481         extra arg.  Remove restrict handling.  Call make_param_constraints with
7482         one fewer arg.
7484 2015-11-04  Tom de Vries  <tom@codesourcery.com>
7486         * tree-ssa-structalias.c (create_variable_info_for_1): Use decl_type
7487         variable.
7489 2015-11-03  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7491         * config/arm/coff.h: Remove.
7493 2015-11-03  Eric Botcazou  <ebotcazou@adacore.com>
7495         * gimple-expr.c (useless_type_conversion_p): Reinstate type canonical
7496         check for aggregate types and beef up comment for mode check.
7498 2015-11-03  Richard Biener  <rguenther@suse.de>
7500         * tree-vect-data-refs.c (vect_analyze_data_refs): Do not collect
7501         data references here.
7502         * tree-vect-loop.c: Include cgraph.h.
7503         (vect_analyze_loop_2): Collect data references here.
7504         * tree-vect-slp.c (find_bb_location): Inline ...
7505         (vect_slp_bb): ... here.  Renamed from vect_slp_analyze_bb.
7506         Factor in vect_slp_transform_bb.
7507         (vect_slp_transform_bb): Removed.
7508         (vect_slp_analyze_bb_1): Collect data references here.
7509         * tree-vectorizer.c (pass_slp_vectorize::execute): Call
7510         vect_slp_bb.
7511         * tree-vectorizer.h (vect_slp_bb): Declare.
7512         (vect_slp_analyze_bb): Remove.
7513         (vect_slp_transform_bb): Remove.
7514         (find_bb_location): Remove.
7515         (vect_analyze_data_refs): Remove stmt count reference parameter.
7517 2015-11-03  Evgeny Stupachenko  <evstupac@gmail.com>
7519         * multiple_target.c (create_dispatcher_calls): Add target check
7520         on ifunc.
7521         (create_target_clone): Change assembler name for versioned declarations.
7523 2015-11-03  Thomas Schwinge  <thomas@codesourcery.com>
7524             Chung-Lin Tang  <cltang@codesourcery.com>
7526         * builtins.def (DEF_GOMP_BUILTIN): Enable for flag_openacc.
7527         * omp-low.c (check_omp_nesting_restrictions): Allow
7528         GIMPLE_OMP_ATOMIC_LOAD, GIMPLE_OMP_ATOMIC_STORE inside OpenACC
7529         contexts.
7531 2015-11-03  Bilyan Borisov  <bilyan.borisov@arm.com>
7533         * config/aarch64/aarch64-simd-builtins.def (fmulx): New.
7534         * config/aarch64/aarch64-simd.md (aarch64_fmulx<mode>): New.
7535         * config/aarch64/arm_neon.h (vmulx_f32): Rewrite to call fmulx
7536         builtin.
7537         (vmulxq_f32): Likewise.
7538         (vmulx_f64): New.
7539         (vmulxq_f64): Rewrite to call fmulx builtin.
7540         (vmulxs_f32): Likewise.
7541         (vmulxd_f64): Likewise.
7542         (vmulx_lane_f32): Remove.
7543         * config/aarch64/iterators.md (UNSPEC): Add fmulx.
7545 2015-11-03  Alan Lawrence  <alan.lawrence@arm.com>
7547         * config/aarch64/aarch64.md (*movhf_aarch64): Use
7548         aarch64_reg_or_fp_zero for second operand.
7550 2015-11-03  Alexandre Oliva <aoliva@redhat.com>
7552         * gimple-expr.c: Include hash-set.h and rtl.h.
7553         (mark_addressable_queue): New var.
7554         (mark_addressable): Factor actual marking into...
7555         (mark_addressable_1): ... this.  Queue it up during expand.
7556         (mark_addressable_2): New.
7557         (flush_mark_addressable_queue): New.
7558         * gimple-expr.h (flush_mark_addressable_queue): Declare.
7559         * cfgexpand.c: Include gimple-expr.h.
7560         (pass_expand::execute): Flush mark_addressable queue.
7562 2015-11-02  Alexandre Oliva <aoliva@redhat.com>
7564         * tree-ssa-ifcombine.c (tree_ssa_ifcombine_bb_1): Factor out
7565         bb_no_side_effects_p tests...
7566         (tree_ssa_ifcombine_bb): ... here.
7568         PR tree-optimization/68083
7569         * tree-ssa-ifcombine.c: Include tree-ssa.h.
7570         (bb_no_side_effects_p): Test for undefined uses too.
7571         * tree-ssa.c (gimple_uses_undefined_value_p): New.
7572         * tree-ssa.h (gimple_uses_undefined_value_p): Declare.
7574 2015-11-02  Jeff Law <law@redhat.com>
7576         * tree-ssa-threadupdate.c (valid_jump_thread_path): Also detect
7577         cases where the loop latch edge is in the middle of an FSM path.
7579 2015-11-03  Tom de Vries  <tom@codesourcery.com>
7581         * tree-ssa-structalias.c (make_restrict_var_constraints): Rename to ...
7582         (make_param_constraints): ... this.  Add and handle restrict_name
7583         parameter.  Handle is_full_var case.
7584         (intra_create_variable_infos): Use make_param_constraints.
7586 2015-11-03  Tom de Vries  <tom@codesourcery.com>
7588         * tree-ssa-structalias.c (make_restrict_var_constraints): Replace
7589         make_copy_constraint call with make_constraint_from call.
7591 2015-11-02  Andreas Tobler  <andreast@gcc.gnu.org>
7593         * config/rs6000/freebsd64.h (ASM_SPEC32): Adust spec to handle
7594         PIE executables.
7596 2015-11-02  Richard Sandiford  <richard.sandiford@arm.com>
7598         * builtins.h (fold_fma): Move to fold-const-call.h.
7599         * builtins.c: Include fold-const-call.h.
7600         (mathfn_built_in_2): New function, split out from...
7601         (mathfn_built_in_1): ...here.
7602         (do_real_to_int_conversion, fold_const_builtin_pow)
7603         (fold_const_builtin_logb, fold_const_builtin_significand)
7604         (fold_const_builtin_load_exponent, do_mpfr_arg1, do_mpfr_arg2)
7605         (do_mpfr_arg3, do_mpfr_sincos, do_mpfr_bessel_n, do_mpc_arg1): Delete.
7606         (fold_builtin_sincos): Use fold_const_call to handle constants.
7607         (fold_builtin_1, fold_builtin_2, fold_builtin_3): Add explicit
7608         checks for ERROR_MARK.  Use fold_const_call to handle constant
7609         folds for math functions.
7610         (fold_fma): Move to fold-const-call.c.
7611         * fold-const.c: Include fold-const-call.h.
7612         * Makefile.in (OBJS): Add fold-const-call.o.
7613         (PLUGIN_HEADERS): Add fold-const-call.h.
7614         * realmpfr.h (real_from_mpfr): Allow the format to be specified
7615         directly.
7616         * realmpfr.c (real_from_mpfr): Likewise.
7617         * fold-const-call.h, fold-const-call.c: New files.
7619 2015-11-02  Julian Brown  <julian@codesourcery.com>
7621         * config/arm/neon-testgen.ml (emit_epilogue): Remove extraneous
7622         brackets and semicolon.
7624 2015-11-02  Alan Lawrence  <alan.lawrence@arm.com>
7626         Revert:
7627         2015-10-27  Alan Lawrence  <alan.lawrence@arm.com>
7629         PR tree-optimization/65963
7630         * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
7631         LSHIFT_EXPRs as equivalent MULT_EXPRs.
7633 2015-11-02  Thomas Schwinge  <thomas@codesourcery.com>
7635         PR middle-end/68166
7636         * fold-const.c: Include "md5.h".
7638 2015-11-01  Jeff Law <law@redhat.com>
7640         * vmsdbgout.c: Revert unused header file reduction patch.
7642         * config/mcore/mcore.c: Include regs.h.
7644 2015-10-31  Segher Boessenkool  <segher@kernel.crashing.org>
7646         * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Rewrite.
7648 2015-10-31  Segher Boessenkool  <segher@kernel.crashing.org>
7650         * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Use the
7651         same condition for testing whether RS6000_PIC_OFFSET_TABLE_REGNUM is
7652         live as for using it elsewhere, for TARGET_MINIMAL_TOC.
7654 2015-10-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
7656         * ggc-common.c: Restore needed header for checking=release.
7658 2015-10-31  Tom de Vries  <tom@codesourcery.com>
7660         * fold-const.c (fold_unary_loc): Tune POINTER_PLUS_EXPR folding.
7662 2015-10-31  Tom de Vries  <tom@codesourcery.com>
7664         * tree-ssa-structalias.c (intra_create_variable_infos): Don't expect
7665         existing varinfo for arguments.
7667 2015-10-31  Tom de Vries  <tom@codesourcery.com>
7669         * tree-ssa-structalias.c (ipa_pta_execute): Add extra arg to call to
7670         create_function_info_for.  Dump constraints generated during
7671         create_function_info_for. Move intra_create_variable_infos call and
7672         function-return-values-escape bit to ...
7673         (create_function_info_for): ... here, and merge
7674         intra_create_variable_infos call with argument loop.  Add and handle
7675         nonlocal_p parameter.
7677 2015-10-31  Tom de Vries  <tom@codesourcery.com>
7679         * tree-ssa-structalias.c (create_function_info_for): Make sure prev_vi
7680         updating is alap, and seperated from preceding code.  Make sure
7681         insert_vi_for_tree is seperated from surrounding code.
7683 2015-10-31  Tom de Vries  <tom@codesourcery.com>
7685         * tree-ssa-structalias.c (ipa_pta_execute): Use make_copy_constraint.
7687 2015-10-30  Jeff Law <law@redhat.com>
7688             Nathan Sidwell  <nathan@acm.org>
7690         * config/nvptx/nvptx.h (HARD_REGNO_NREGS): Avoid warning on unused
7691         args.
7692         (MOVE_MAX): Set to 8.
7694 2015-10-30  Cesar Philippidis  <cesar@codesourcery.com>
7696         * cgraph.c: Include context.h for offloading.
7697         * varpool.c: Include context.h and omp-low.h.
7699 2015-10-30  Anatoly Sokolov  <aesok@post.ru>
7701         * rtl.h (contains_symbol_ref_p): Declare.
7702         (SYMBOL_REF_P): Define.
7703         * rtlanal.c (contains_symbol_ref_p: New function.
7704         * lra-constraints.c (contains_symbol_ref_p): Remove.
7705         * var-tracking.c (contains_symbol_ref): Remove.
7706         (track_expr_p): Use contains_symbol_ref_p instead of
7707         contains_symbol_ref.
7709 2015-10-30  Alan Lawrence  <alan.lawrence@arm.com>
7711         * gimple-fold.c (fold_array_ctor_reference): Move searching code to:
7712         * fold-const.c (get_array_ctor_element_at_index): New.
7713         (fold): Remove binary-search through CONSTRUCTOR, call previous.
7715         * fold-const.h (get_array_ctor_element_at_index): New.
7717 2015-10-30  Evgeny Stupachenko  <evstupac@gmail.com>
7719         * Makefile.in (OBJS): Add multiple_target.o.
7720         * attrib.c (make_attribute): Moved from config/i386/i386.c
7721         * config/i386/i386.c (make_attribute): Deleted.
7722         * multiple_target.c (create_dispatcher_calls): New.
7723         (get_attr_len): Ditto.
7724         (get_attr_str): Ditto.
7725         (separate_attrs): Ditto.
7726         (is_valid_asm_symbol): Ditto.
7727         (create_new_asm_name): Ditto.
7728         (create_target_clone): Ditto.
7729         (expand_target_clones): Ditto.
7730         (ipa_target_clone): Ditto.
7731         (ipa_dispatcher_calls): Ditto.
7732         * passes.def (pass_target_clone): Two new ipa passes.
7733         * tree-pass.h (make_pass_target_clone): Ditto.
7734         * doc/extend.texi (target_clones): New attribute description.
7736 2015-10-30  Vladimir Makarov  <vmakarov@redhat.com>
7738         PR rtl-optimization/68106
7739         * lra-remat.c (input_regno_present_p): Process hard regs
7740         explicitly present in machine description insns.
7741         (call_used_input_regno_present_p): Ditto.
7742         (calculate_gen_cands): Ditto.
7743         (do_remat): Ditto.
7745 2015-10-30  Jim Wilson  <jim.wilson@linaro.org>
7747         * config/arm/neon-testgen.ml: Fix comment typo.
7749 2015-10-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7751         * rtlanal.c (reg_set_p): Expand function comment.
7753 2015-10-30  Andrew MacLeod  <amacleod@redhat.com>
7755         * alias.c: Remove unused headers.
7756         * asan.c: Likewise.
7757         * attribs.c: Likewise.
7758         * auto-inc-dec.c: Likewise.
7759         * auto-profile.c: Likewise.
7760         * bb-reorder.c: Likewise.
7761         * bitmap.c: Likewise.
7762         * bt-load.c: Likewise.
7763         * builtins.c: Likewise.
7764         * caller-save.c: Likewise.
7765         * calls.c: Likewise.
7766         * ccmp.c: Likewise.
7767         * cfg.c: Likewise.
7768         * cfganal.c: Likewise.
7769         * cfgbuild.c: Likewise.
7770         * cfgcleanup.c: Likewise.
7771         * cfgexpand.c: Likewise.
7772         * cfghooks.c: Likewise.
7773         * cfgloop.c: Likewise.
7774         * cfgloopanal.c: Likewise.
7775         * cfgloopmanip.c: Likewise.
7776         * cfgrtl.c: Likewise.
7777         * cgraph.c: Likewise.
7778         * cgraphbuild.c: Likewise.
7779         * cgraphclones.c: Likewise.
7780         * cgraphunit.c: Likewise.
7781         * cilk-common.c: Likewise.
7782         * combine-stack-adj.c: Likewise.
7783         * combine.c: Likewise.
7784         * compare-elim.c: Likewise.
7785         * convert.c: Likewise.
7786         * coverage.c: Likewise.
7787         * cppbuiltin.c: Likewise.
7788         * cprop.c: Likewise.
7789         * cse.c: Likewise.
7790         * cselib.c: Likewise.
7791         * data-streamer-in.c: Likewise.
7792         * data-streamer-out.c: Likewise.
7793         * data-streamer.c: Likewise.
7794         * dbxout.c: Likewise.
7795         * dce.c: Likewise.
7796         * ddg.c: Likewise.
7797         * debug.c: Likewise.
7798         * df-core.c: Likewise.
7799         * df-problems.c: Likewise.
7800         * df-scan.c: Likewise.
7801         * dfp.c: Likewise.
7802         * dojump.c: Likewise.
7803         * dominance.c: Likewise.
7804         * domwalk.c: Likewise.
7805         * double-int.c: Likewise.
7806         * dse.c: Likewise.
7807         * dumpfile.c: Likewise.
7808         * dwarf2asm.c: Likewise.
7809         * dwarf2cfi.c: Likewise.
7810         * dwarf2out.c: Likewise.
7811         * emit-rtl.c: Likewise.
7812         * except.c: Likewise.
7813         * explow.c: Likewise.
7814         * expmed.c: Likewise.
7815         * expr.c: Likewise.
7816         * final.c: Likewise.
7817         * fixed-value.c: Likewise.
7818         * fold-const.c: Likewise.
7819         * function.c: Likewise.
7820         * fwprop.c: Likewise.
7821         * gcse.c: Likewise.
7822         * generic-match-head.c: Likewise.
7823         * ggc-common.c: Likewise.
7824         * gimple-builder.c: Likewise.
7825         * gimple-expr.c: Likewise.
7826         * gimple-fold.c: Likewise.
7827         * gimple-iterator.c: Likewise.
7828         * gimple-low.c: Likewise.
7829         * gimple-match-head.c: Likewise.
7830         * gimple-pretty-print.c: Likewise.
7831         * gimple-ssa-isolate-paths.c: Likewise.
7832         * gimple-ssa-strength-reduction.c: Likewise.
7833         * gimple-streamer-in.c: Likewise.
7834         * gimple-streamer-out.c: Likewise.
7835         * gimple-walk.c: Likewise.
7836         * gimple.c: Likewise.
7837         * gimplify-me.c: Likewise.
7838         * gimplify.c: Likewise.
7839         * godump.c: Likewise.
7840         * graph.c: Likewise.
7841         * graphds.c: Likewise.
7842         * haifa-sched.c: Likewise.
7843         * hw-doloop.c: Likewise.
7844         * ifcvt.c: Likewise.
7845         * init-regs.c: Likewise.
7846         * internal-fn.c: Likewise.
7847         * ipa-chkp.c: Likewise.
7848         * ipa-comdats.c: Likewise.
7849         * ipa-cp.c: Likewise.
7850         * ipa-devirt.c: Likewise.
7851         * ipa-icf-gimple.c: Likewise.
7852         * ipa-icf.c: Likewise.
7853         * ipa-inline-analysis.c: Likewise.
7854         * ipa-inline-transform.c: Likewise.
7855         * ipa-inline.c: Likewise.
7856         * ipa-polymorphic-call.c: Likewise.
7857         * ipa-profile.c: Likewise.
7858         * ipa-prop.c: Likewise.
7859         * ipa-pure-const.c: Likewise.
7860         * ipa-ref.c: Likewise.
7861         * ipa-reference.c: Likewise.
7862         * ipa-split.c: Likewise.
7863         * ipa-utils.c: Likewise.
7864         * ipa-visibility.c: Likewise.
7865         * ipa.c: Likewise.
7866         * ira-build.c: Likewise.
7867         * ira-color.c: Likewise.
7868         * ira-conflicts.c: Likewise.
7869         * ira-costs.c: Likewise.
7870         * ira-emit.c: Likewise.
7871         * ira-lives.c: Likewise.
7872         * ira.c: Likewise.
7873         * jump.c: Likewise.
7874         * langhooks.c: Likewise.
7875         * lcm.c: Likewise.
7876         * lists.c: Likewise.
7877         * loop-doloop.c: Likewise.
7878         * loop-init.c: Likewise.
7879         * loop-invariant.c: Likewise.
7880         * loop-iv.c: Likewise.
7881         * loop-unroll.c: Likewise.
7882         * lower-subreg.c: Likewise.
7883         * lra-assigns.c: Likewise.
7884         * lra-coalesce.c: Likewise.
7885         * lra-constraints.c: Likewise.
7886         * lra-eliminations.c: Likewise.
7887         * lra-lives.c: Likewise.
7888         * lra-remat.c: Likewise.
7889         * lra-spills.c: Likewise.
7890         * lra.c: Likewise.
7891         * lto-cgraph.c: Likewise.
7892         * lto-compress.c: Likewise.
7893         * lto-opts.c: Likewise.
7894         * lto-section-in.c: Likewise.
7895         * lto-section-out.c: Likewise.
7896         * lto-streamer-in.c: Likewise.
7897         * lto-streamer-out.c: Likewise.
7898         * lto-streamer.c: Likewise.
7899         * mcf.c: Likewise.
7900         * mode-switching.c: Likewise.
7901         * modulo-sched.c: Likewise.
7902         * optabs.c: Likewise.
7903         * opts-global.c: Likewise.
7904         * passes.c: Likewise.
7905         * plugin.c: Likewise.
7906         * postreload-gcse.c: Likewise.
7907         * postreload.c: Likewise.
7908         * predict.c: Likewise.
7909         * print-tree.c: Likewise.
7910         * profile.c: Likewise.
7911         * real.c: Likewise.
7912         * realmpfr.c: Likewise.
7913         * recog.c: Likewise.
7914         * ree.c: Likewise.
7915         * reg-stack.c: Likewise.
7916         * regcprop.c: Likewise.
7917         * reginfo.c: Likewise.
7918         * regrename.c: Likewise.
7919         * regstat.c: Likewise.
7920         * reload.c: Likewise.
7921         * reload1.c: Likewise.
7922         * reorg.c: Likewise.
7923         * resource.c: Likewise.
7924         * rtl-chkp.c: Likewise.
7925         * rtl-error.c: Likewise.
7926         * rtlanal.c: Likewise.
7927         * rtlhooks.c: Likewise.
7928         * sanopt.c: Likewise.
7929         * sched-deps.c: Likewise.
7930         * sched-ebb.c: Likewise.
7931         * sched-rgn.c: Likewise.
7932         * sdbout.c: Likewise.
7933         * sel-sched-dump.c: Likewise.
7934         * sel-sched-ir.c: Likewise.
7935         * sel-sched.c: Likewise.
7936         * sese.c: Likewise.
7937         * shrink-wrap.c: Likewise.
7938         * simplify-rtx.c: Likewise.
7939         * stack-ptr-mod.c: Likewise.
7940         * statistics.c: Likewise.
7941         * stmt.c: Likewise.
7942         * stor-layout.c: Likewise.
7943         * store-motion.c: Likewise.
7944         * stringpool.c: Likewise.
7945         * symtab.c: Likewise.
7946         * target-globals.c: Likewise.
7947         * targhooks.c: Likewise.
7948         * toplev.c: Likewise.
7949         * tracer.c: Likewise.
7950         * trans-mem.c: Likewise.
7951         * tree-affine.c: Likewise.
7952         * tree-call-cdce.c: Likewise.
7953         * tree-cfg.c: Likewise.
7954         * tree-cfgcleanup.c: Likewise.
7955         * tree-chkp-opt.c: Likewise.
7956         * tree-chkp.c: Likewise.
7957         * tree-chrec.c: Likewise.
7958         * tree-complex.c: Likewise.
7959         * tree-data-ref.c: Likewise.
7960         * tree-dfa.c: Likewise.
7961         * tree-diagnostic.c: Likewise.
7962         * tree-dump.c: Likewise.
7963         * tree-eh.c: Likewise.
7964         * tree-emutls.c: Likewise.
7965         * tree-if-conv.c: Likewise.
7966         * tree-inline.c: Likewise.
7967         * tree-into-ssa.c: Likewise.
7968         * tree-iterator.c: Likewise.
7969         * tree-loop-distribution.c: Likewise.
7970         * tree-nested.c: Likewise.
7971         * tree-nrv.c: Likewise.
7972         * tree-object-size.c: Likewise.
7973         * tree-outof-ssa.c: Likewise.
7974         * tree-parloops.c: Likewise.
7975         * tree-phinodes.c: Likewise.
7976         * tree-predcom.c: Likewise.
7977         * tree-pretty-print.c: Likewise.
7978         * tree-profile.c: Likewise.
7979         * tree-scalar-evolution.c: Likewise.
7980         * tree-sra.c: Likewise.
7981         * tree-ssa-address.c: Likewise.
7982         * tree-ssa-alias.c: Likewise.
7983         * tree-ssa-ccp.c: Likewise.
7984         * tree-ssa-coalesce.c: Likewise.
7985         * tree-ssa-copy.c: Likewise.
7986         * tree-ssa-dce.c: Likewise.
7987         * tree-ssa-dse.c: Likewise.
7988         * tree-ssa-forwprop.c: Likewise.
7989         * tree-ssa-ifcombine.c: Likewise.
7990         * tree-ssa-live.c: Likewise.
7991         * tree-ssa-loop-ch.c: Likewise.
7992         * tree-ssa-loop-im.c: Likewise.
7993         * tree-ssa-loop-ivcanon.c: Likewise.
7994         * tree-ssa-loop-ivopts.c: Likewise.
7995         * tree-ssa-loop-manip.c: Likewise.
7996         * tree-ssa-loop-niter.c: Likewise.
7997         * tree-ssa-loop-prefetch.c: Likewise.
7998         * tree-ssa-loop-unswitch.c: Likewise.
7999         * tree-ssa-loop.c: Likewise.
8000         * tree-ssa-math-opts.c: Likewise.
8001         * tree-ssa-operands.c: Likewise.
8002         * tree-ssa-phiopt.c: Likewise.
8003         * tree-ssa-phiprop.c: Likewise.
8004         * tree-ssa-pre.c: Likewise.
8005         * tree-ssa-propagate.c: Likewise.
8006         * tree-ssa-reassoc.c: Likewise.
8007         * tree-ssa-scopedtables.c: Likewise.
8008         * tree-ssa-sink.c: Likewise.
8009         * tree-ssa-strlen.c: Likewise.
8010         * tree-ssa-structalias.c: Likewise.
8011         * tree-ssa-tail-merge.c: Likewise.
8012         * tree-ssa-ter.c: Likewise.
8013         * tree-ssa-threadupdate.c: Likewise.
8014         * tree-ssa-uncprop.c: Likewise.
8015         * tree-ssa-uninit.c: Likewise.
8016         * tree-ssa.c: Likewise.
8017         * tree-ssanames.c: Likewise.
8018         * tree-stdarg.c: Likewise.
8019         * tree-streamer-in.c: Likewise.
8020         * tree-streamer-out.c: Likewise.
8021         * tree-streamer.c: Likewise.
8022         * tree-switch-conversion.c: Likewise.
8023         * tree-tailcall.c: Likewise.
8024         * tree-vect-data-refs.c: Likewise.
8025         * tree-vect-generic.c: Likewise.
8026         * tree-vect-loop-manip.c: Likewise.
8027         * tree-vect-loop.c: Likewise.
8028         * tree-vect-patterns.c: Likewise.
8029         * tree-vect-slp.c: Likewise.
8030         * tree-vect-stmts.c: Likewise.
8031         * tree-vectorizer.c: Likewise.
8032         * tree-vrp.c: Likewise.
8033         * tree.c: Likewise.
8034         * tsan.c: Likewise.
8035         * ubsan.c: Likewise.
8036         * value-prof.c: Likewise.
8037         * var-tracking.c: Likewise.
8038         * varasm.c: Likewise.
8039         * varpool.c: Likewise.
8040         * vmsdbgout.c: Likewise.
8041         * vtable-verify.c: Likewise.
8042         * web.c: Likewise.
8043         * wide-int-print.cc: Likewise.
8044         * wide-int.cc: Likewise.
8045         * xcoffout.c: Likewise.
8047 2015-10-30  James Greenhalgh  <james.greenhalgh@arm.com>
8049         * doc/invoke.texi (fdump-rtl-@var{pass}): Clarify relationship
8050         between pass numbering and execution order.
8052 2015-10-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8054         * config/arm/arm.c (cortex_a9_sched_adjust_cost): Use reg_set_p to
8055         check for dependencies.
8057 2015-10-30  Richard Sandiford  <richard.sandiford@arm.com>
8059         * tree-ssa-math-opts.c (pass_cse_sincos::execute): Don't free
8060         CDI_DOMINATORS.
8062 2015-10-30  Richard Sandiford  <richard.sandiford@arm.com>
8064         * real.h (format_helper): New.
8065         (real_convert, exact_real_truncate, real_from_string3, real_to_target)
8066         (real_from_target, real_nan, real_2expN, real_value_truncate)
8067         (significand_size, real_from_string2, exact_real_inverse)
8068         (exact_real_inverse, real_powi, real_trunc, real_floor, real_ceil)
8069         (real_round, real_isinteger, real_from_integer): Replace
8070         machine_mode arguments with format_helper arguments.
8071         * real.c (exact_real_inverse, real_from_string2, real_from_string3)
8072         (real_from_integer, real_nan, real_2expN, real_convert)
8073         (real_value_truncate, exact_real_truncate, real_to_target)
8074         (real_from_target, significand_size, real_powi, real_trunc)
8075         (real_floor, real_ceil, real_round, real_isinteger): Replace
8076         machine_mode arguments with format_helper arguments.
8077         (real_to_target_fmt, real_from_target_fmt): Delete.
8078         * dfp.h (decimal_real_convert): Replace mode argument with real_format.
8079         * dfp.c (decimal_to_binary, decimal_real_convert): Replace mode
8080         argument with real_format.
8081         * builtins.c (do_real_to_int_conversion): Update type of fn argument.
8083 2015-10-30  Richard Sandiford  <richard.sandiford@arm.com>
8085         * fixed-value.c (check_real_for_fixed_mode, fixed_from_string)
8086         (fixed_to_decimal, fixed_convert_from_real)
8087         (real_convert_from_fixed): Fix mode arguments to real_2expN.
8089 2015-10-30  Richard Sandiford  <richard.sandiford@arm.com>
8091         * real.h (REAL_MODE_FORMAT): Abort if the mode isn't a
8092         SCALAR_FLOAT_MODE_P.
8094 2015-10-30  Alan Lawrence  <alan.lawrence@arm.com>
8096         * tree-sra.c (scalarizable_type_p): Comment variable-length arrays.
8097         (completely_scalarize): Comment zero-length arrays.
8098         (get_access_replacement): Correct comment re. precondition.
8100 2015-10-30  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
8102         * config/i386/i386.c (get_builtin_code_for_version): Set priority
8103         for PROCESSOR_ZNVER1.
8104         (enum processor_model): Add M_AMDFAM17H_znver1.
8105         (struct arch_names_table): Likewise.
8106         * doc/extend.texi: ADD znver1.
8108 2015-10-30  Richard Biener  <rguenther@suse.de>
8110         * gimple-fold.c (fold_gimple_assign): Do not dispatch to
8111         fold () on single RHSs.  Allow CONSTRUCTORS with trailing
8112         zeros to be folded to VECTOR_CSTs.
8113         * tree.c (build_vector_from_ctor): Handle VECTOR_CST elements.
8114         * fold-const.c (fold): Use build_vector_from_ctor.
8116 2015-10-30  Evandro Menezes  <e.menezes@samsung.com>
8118         * config/aarch64/aarch64.md (*movhf_aarch64): Change the type of
8119         "mov %0.h[0], %1.h[0] to "neon_move".
8120         (*movtf_aarch64): Change the type of "fmov %s0, wzr" to "f_mcr".
8121         (*cmov<mode>_insn): Change the types of "mov %<w>0, {-1,1}" to
8122         "mov_imm".
8123         (*cmovsi_insn_uxtw): Likewise.
8125 2015-10-30  Tom de Vries  <tom@codesourcery.com>
8127         * tree-ssa-structalias.c (ipa_pta_execute): Declare variable from as
8128         unsigned, and initialize, and use initial value instead of hardcoded
8129         constant.  Add generic constraints dumping section.  Don't dump global
8130         initializers constraints dumping section if empty.  Don't update
8131         variable from if unused.
8133 2015-10-29  Mikhail Maltsev  <maltsevm@gmail.com>
8135         * config/alpha/alpha.c (alpha_function_arg): Use gcc_checking_assert,
8136         flag_checking and/or CHECKING_P to eliminate conditional compilation
8137         on ENABLE_CHECKING.
8138         * config/arm/arm.c (arm_unwind_emit_sequence): Likewise.
8139         * config/bfin/bfin.c (hwloop_optimize): Likewise.
8140         * config/i386/i386.c (ix86_print_operand_address): Likewise.
8141         (output_387_binary_op): Likewise.
8142         * config/ia64/ia64.c (ia64_sched_init, bundling): Likewise.
8143         * config/m68k/m68k.c (m68k_sched_md_init_global): Likewise.
8144         * config/rs6000/rs6000.c (htm_expand_builtin, rs6000_emit_prologue):
8145         Likewise.
8146         * config/rs6000/rs6000.h: Likewise.
8147         * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
8149 2015-10-29  Kaz Kojima  <kkojima@gcc.gnu.org>
8151         * config/sh/sh.opt (mfdpic): Add missing period.
8153 2015-08-29  Anatoly Sokolov  <aesok@post.ru>
8155         * config/mcore/mcore.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
8156         BASE_REGISTER_RTX_P, INDEX_REGISTER_RTX_P,
8157         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
8158         * config/mcore/mcore.c (mcore_reg_ok_for_base_p,
8159         mcore_base_register_rtx_p, mcore_legitimate_index_p,
8160         mcore_legitimate_address_p): New functions.
8161         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
8163 2015-10-29  Jeff Law  <law@redhat.com>
8165         * tree-ssa-scopedtables.h (const_and_copies): Remove invalidate
8166         method.
8167         * tree-ssa-scopedtables.h (const_and_copies::invalidate): Remove.
8168         * tree-ssa-threadedge.c
8169         (record_temporary_equivalences_from_stmts_at_dest): Remove
8170         backedge_seen argument and associated code which invalidated
8171         equivalences based on the value of that argument.
8172         (thread_through_normal_block): Corresponding changes.
8174 2015-10-29  Segher Boessenkool  <segher@kernel.crashing.org>
8176         * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Move this
8177         function earlier in the file.
8178         (first_reg_to_save): Use rs6000_reg_live_or_pic_offset_p instead of
8179         df_regs_ever_live_p.
8181 2015-10-29  Segher Boessenkool  <segher@kernel.crashing.org>
8183         * lra-constraints.c (process_address_1): Handle (mem:BLK (scratch))
8184         by ignoring it.
8186 2015-10-29  Richard Henderson  <rth@redhat.com>
8188         PR target/68124
8189         PR rtl-opt/67609
8190         * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
8191         sse check to the exact conditions of PR 67609.
8193 2015-10-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
8195         * config/rs6000/rs6000.c (rs6000_init_libfuncs): Split libfunc
8196         setup into 3 functions: init_float128_ibm, init_float128_ieee, and
8197         rs6000_init_libfuncs. If -mfloat128, add IFmode functions for all
8198         of the traditional names that TFmode uses for handling IEEE
8199         extended double. If -mfloat128, add KFmode functions for all of
8200         the emulation functions. If -mabi=ieeelongdouble and -mfloat128,
8201         make TFmode use the same emulation functions as KFmode.
8202         (init_float128_ibm): Likewise.
8203         (init_float128_ieee): Likewise.
8204         (rs6000_generate_compare): For IEEE 128-bit floating point
8205         comparisons, call the unordered comparison function instead of the
8206         ordered comparison function.
8207         (rs6000_expand_float128_convert): Deal with operands that are
8208         memory operands. Restructure the code to use a switch statement on
8209         the mode. Add support for TFmode defaulting to either IBM extended
8210         double or IEEE 128-bit floating point. If the underlying types are
8211         the same, use a move instead of a conversion function.
8212         (TARGET_C_MODE_FOR_SUFFIX): Define 'q' and 'Q' as the suffix to
8213         use for IEEE 128-bit floating point constants with -mfloat128.
8214         (rs6000_c_mode_for_suffix): Likewise.
8215         (TARGET_INVALID_BINARY_OP): Do not allow inter-mixing of IEEE
8216         128-bit floating point with IBM extended double floating point.
8217         (rs6000_invalid_binary_op): Likewise.
8218         (rs6000_gen_le_vsx_permute): On little endian systems generate a
8219         ROTATE insn instead of VEC_SELECT for IEEE 128-bit floating point
8220         types that can go in vector registers.
8221         (chain_contains_only_swaps): Properly swap IEEE 128-bit floating
8222         point types that can go in vector registers on little endian
8223         PowerPC systems.
8224         (mark_swaps_for_removal): Likewise.
8225         (rs6000_analyze_swaps): Likewise.
8226         (rs6000_mangle_type): Use U10__float128 for IEEE 128-bit floating point.
8228         * config/rs6000/rs6000.md (FLOAT128_SFDFTF): Delete iterator,
8229         rework IEEE 128-bit floating point insns to deal with TFmode being
8230         either IBM extended double or IEEE 128-bit floating point.
8231         (IFKF): Likewise.
8232         (IBM128): Update iterator to add condition that the mode is IBM
8233         extended double.
8234         (IEEE128): New iterator for IEEE 128-bit floating point.
8235         (TFIFKF): Rename TFIFKF iterator to FLOAT128.
8236         (FLOAT128): Likewise.
8237         (signbit<mode>2): FLOAT128_IBM_P condition test moved into IBM128
8238         iterator.
8239         (neg<mode>2): Replace TFIFKF iterator with FLOAT128. Add support
8240         for TFmode being IEEE 128-bit floating point. Use IEEE128 iterator
8241         instead of hard coding TFmode or KFmode.
8242         (negtf2_internal): Likewise.
8243         (neg<mode>2_internal): Likewise.
8244         (abs<mode>2): Likewise.
8245         (abstf2_internal): Likewise.
8246         (abs<mode>2_internal): Likewise.
8247         (ieee_128bit_neg<mode>2): Likewise.
8248         (ieee_128bit_neg<mode>2_internal): Likewise.
8249         (ieee_128bit_abs<mode>2): Likewise.
8250         (ieee_128bit_abs<mode>2_internal): Likewise.
8251         (ieee_128bit_nabs<mode>2): Likewise.
8252         (ieee_128bit_nabs<mode>2_internal): Likewise.
8253         (extendiftf2): Add explicit conversions between 128-bit floating
8254         point types. Drop the old conversions that had become unwieldy.
8255         (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
8256         (extendifkf2): Likewise.
8257         (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
8258         (extendtfkf2): Likewise.
8259         (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
8260         (trunciftf2): Likewise.
8261         (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
8262         (truncifkf2): Likewise.
8263         (float<SDI:mode><IFKF:mode>2): Likewise.
8264         (trunckftf2): Likewise.
8265         (floatuns<SDI:mode><IFKF:mode>2): Likewise.
8266         (trunctfif2): Likewise.
8267         (FP iterator): Allow TFmode to be IEEE 128-bit floating point.
8268         (extenddftf2): Rework 128-bit floating point conversions to
8269         properly handle -mabi=ieeelongdouble. Merge IFmode, TFmode, and
8270         KFmode expanders into one function.
8271         (extenddf<mode>2): Likewise.
8272         (extenddftf2_fprs): Likewise.
8273         (extenddf<mode>2_fprs): Likewise.
8274         (extenddftf2_vsx): Likewise.
8275         (extenddf<mode>2_vsx): Likewise.
8276         (extendsftf2): Likewise.
8277         (extendsf<mode>2): Likewise.
8278         (trunctfdf2): Likewise.
8279         (trunc<mode>df2): Likewise.
8280         (trunctfdf2_internal1): Likewise.
8281         (trunc<mode>df2_internal1): Likewise.
8282         (trunctfdf2_internal2): Likewise.
8283         (trunc<mode>df2_internal2): Likewise.
8284         (trunctfsf2): Likewise.
8285         (trunc<mode>sf2): Likewise.
8286         (trunctfsf2_fprs): Likewise.
8287         (trunc<mode>sf2_fprs): Likewise.
8288         (floatsit2f): Likewise.
8289         (floatsi<mode>2): Likewise.
8290         (fix_trunc_helper): Likewise.
8291         (fix_trunc_helper<mode>): Likewise.
8292         (fix_trunctfsi2): Likewise.
8293         (fix_trunc<mode>si2): Likewise.
8294         (fix_trunctfsi2_fprs): Likewise.
8295         (fix_trunc<mode>si2_fprs): Likewise.
8296         (fix_trunctfsi2_internal): Likewise.
8297         (fix_trunc<mode>si2_internal): Likewise.
8298         (fix_trunctfdi2): Likewise.
8299         (fix_trunc<mode>di2): Likewise.
8300         (fixuns_trunctf<mode>2): Likewise.
8301         (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
8302         (floatditf2): Likewise.
8303         (floatdi<mode>2): Likewise.
8304         (floatuns<mode>tf2): Likewise.
8305         (floatuns<SDI:mode><IEEE128:mode>): Likewise.
8306         (cmptf_internal1): Use a mode iterator to add support for both
8307         types (IFmode, TFmode) that support IBM extended double.
8308         (cmp<mode>_internal1): Likewise.
8309         (cmptf_internal2): Likewise.
8310         (cmp<mode>_internal2): Likewise.
8312         * doc/extend.texi (Floating Types): Document __ibm128 and
8313         __float128 on PowerPC.
8315         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
8316         -mfloat128 and -mno-float128.
8318 2015-10-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
8320         * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Add IEEE 128-bit
8321         floating point modes that can go in vector registers.
8322         (MODES_TIEABLE_P): Move tests for vector modes before tests for
8323         scalar floating point, so that IEEE 128-bit floating point that
8324         can go in vector registers bind with vectors and not FP.
8325         (struct rs6000_args): Add libcall field.
8327         * config/rs6000/rs6000.opt (-mfloat128-*): Delete -mfloat128-none
8328         and -mfloat128-software switches.  Replace them with a binary
8329         -mfloat128 switch.
8330         (-mfloat128): Likewise.
8332         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
8333         128-bit floating point types in GPRs, even if the appropriate
8334         option enabling the type was not used.
8335         (rs6000_debug_reg_global): Remove -mfloat128-{software,none}
8336         debugging.
8337         (rs6000_setup_reg_addr_masks): Do not allow pre-increment and
8338         pre-decrement on IEEE 128-bit floating point values.
8339         (rs6000_init_hard_regno_mode_ok): Change test for whether TFmode
8340         is IEEE 128-bit floating point.
8341         (rs6000_init_hard_regno_mode_ok): Add reload handlers for IEEE
8342         128-bit floating point types that can go in vector registers.
8343         (rs6000_option_override_internal): Change -mfloat128-none and
8344         -mfloat128-software to -mfloat128, and move code to be near other
8345         VSX option handling.
8346         (rs6000_option_override_internal): Disable -mfloat128 if we don't
8347         have the Altivec ABI.
8348         (rs6000_init_builtins): Don't make TFmode use either IFmode or
8349         KFmode floating point nodes. Instead, have three separate nodes.
8350         (rs6000_scalar_mode_supported_p): Add support for IFmode to allow
8351         eventually moving the long double default to IEEE 128-bit floating
8352         point.
8353         (rs6000_opt_masks): Add -mfloat128.
8354         (struct rs6000_opt_var): Fix typo in comment.
8355         (init_cumulative_args): Initialize libcall field in
8356         CUMULATIVE_ARGS.
8357         (rs6000_function_arg): Treat library functions as if they had
8358         prototypes to prevent IEEE 128-bit support functions from passing
8359         arguments in both GPRs and vector registers.
8360         (rs6000_arg_partial_bytes): Likewise.
8362         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add -mfloat128 as
8363         an option that can be turned on via -mcpu=<xxx>.
8365         * config/rs6000/rs6000-opts.h (enum float128_type_t): Delete, no
8366         longer used.
8368         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
8369         __FLOAT128__ if -mfloat128. Define __LONG_DOUBLE_IEEE128__ if long
8370         double is IEEE 128-bit. Define __LONG_DOUBLE_IBM128__ if long
8371         double is IBM extended double.
8373         * config/rs6000/predicates.md (reg_or_indexed_operand): Allow
8374         SUBREGs.
8376 2015-10-29  Mikhail Maltsev  <maltsevm@gmail.com>
8378         * genautomata.c: Use CHECKING_P instead of ENABLE_CHECKING.
8379         * genconditions.c: Define CHECKING_P in the generated code.
8380         * genextract.c: Use flag_checking in insn_extract.
8381         * gengtype.c (main): Remove conditional compilation.
8382         * gengtype.h: Likewise.
8384 2015-10-29  Jeff Law  <law@redhat.com>
8386         PR tree-optimization/67892
8387         * tree-ssa-threadedge.c (simplify_controL_stmt_condition): Fix typo
8388         in comment.
8389         (thread_through_normal_block): If we have seen a backedge, then
8390         do nothing.  No longer call find_jump_threads_backwards here.
8391         (thread_across_edge): Use find_jump_threads_backwards to find
8392         jump threads if the old style threader was not successful.
8393         * tree-ssa-threadbackward.c (get_gimple_control_stmt): Use
8394         gsi_last_nondebug_bb.  Return NULL if the block does not end
8395         with a control statement.
8396         (find_jump_threads_backwards): Setup code moved here from
8397         tree-ssa-threadedge.c::thread_through_normal_block.  Accept
8398         single edge argument instead of name & block.
8399         * tree-ssa-threadbackward.h (find_jump_threads_backwards): Update
8400         prototype.
8402 2015-10-29  Tom de Vries  <tom@codesourcery.com>
8404         * fold-const.c (fold_unary_loc): Remove folding inhibition for restrict
8405         types.
8407 2015-10-29  Nathan Sidwell  <nathan@codesourcery.com>
8409         * omp-low.c (lower_omp_target): Remove unreachable code & merge
8410         ifs.
8412 2015-10-29  Marc Glisse  <marc.glisse@inria.fr>
8414         * match.pd (X-(X/Y)*Y): Properly handle conversions and commutativity.
8416 2015-10-29  Richard Sandiford  <richard.sandiford@arm.com>
8418         * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
8419         guard_bb0 and use guard_bb throughout.
8421 2015-10-29  Richard Sandiford  <richard.sandiford@arm.com>
8423         * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
8424         unnecessary label.
8426 2015-10-29  Richard Biener  <rguenther@suse.de>
8428         PR middle-end/68142
8429         * fold-const.c (extract_muldiv_1): Avoid introducing undefined
8430         overflow.
8432 2015-10-29  Andrew MacLeod  <amacleod@redhat.com>
8434         * alias.c: Reorder #include statements and remove duplicates.
8435         * asan.c: Likewise.
8436         * attribs.c: Likewise.
8437         * auto-inc-dec.c: Likewise.
8438         * auto-profile.c: Likewise.
8439         * bb-reorder.c: Likewise.
8440         * bt-load.c: Likewise.
8441         * builtins.c: Likewise.
8442         * caller-save.c: Likewise.
8443         * calls.c: Likewise.
8444         * ccmp.c: Likewise.
8445         * cfg.c: Likewise.
8446         * cfganal.c: Likewise.
8447         * cfgbuild.c: Likewise.
8448         * cfgcleanup.c: Likewise.
8449         * cfgexpand.c: Likewise.
8450         * cfghooks.c: Likewise.
8451         * cfgloop.c: Likewise.
8452         * cfgloopanal.c: Likewise.
8453         * cfgloopmanip.c: Likewise.
8454         * cfgrtl.c: Likewise.
8455         * cgraph.c: Likewise.
8456         * cgraphbuild.c: Likewise.
8457         * cgraphclones.c: Likewise.
8458         * cgraphunit.c: Likewise.
8459         * cilk-common.c: Likewise.
8460         * combine-stack-adj.c: Likewise.
8461         * combine.c: Likewise.
8462         * compare-elim.c: Likewise.
8463         * convert.c: Likewise.
8464         * coverage.c: Likewise.
8465         * cppbuiltin.c: Likewise.
8466         * cprop.c: Likewise.
8467         * cse.c: Likewise.
8468         * cselib.c: Likewise.
8469         * data-streamer-in.c: Likewise.
8470         * data-streamer-out.c: Likewise.
8471         * data-streamer.c: Likewise.
8472         * dbxout.c: Likewise.
8473         * dce.c: Likewise.
8474         * ddg.c: Likewise.
8475         * debug.c: Likewise.
8476         * df-core.c: Likewise.
8477         * df-problems.c: Likewise.
8478         * df-scan.c: Likewise.
8479         * dfp.c: Likewise.
8480         * dojump.c: Likewise.
8481         * dominance.c: Likewise.
8482         * double-int.c: Likewise.
8483         * dse.c: Likewise.
8484         * dumpfile.c: Likewise.
8485         * dwarf2asm.c: Likewise.
8486         * dwarf2cfi.c: Likewise.
8487         * dwarf2out.c: Likewise.
8488         * emit-rtl.c: Likewise.
8489         * except.c: Likewise.
8490         * explow.c: Likewise.
8491         * expmed.c: Likewise.
8492         * expr.c: Likewise.
8493         * final.c: Likewise.
8494         * fixed-value.c: Likewise.
8495         * fold-const.c: Likewise.
8496         * function.c: Likewise.
8497         * fwprop.c: Likewise.
8498         * gcse.c: Likewise.
8499         * generic-match-head.c: Likewise.
8500         * ggc-common.c: Likewise.
8501         * gimple-builder.c: Likewise.
8502         * gimple-expr.c: Likewise.
8503         * gimple-fold.c: Likewise.
8504         * gimple-iterator.c: Likewise.
8505         * gimple-low.c: Likewise.
8506         * gimple-match-head.c: Likewise.
8507         * gimple-pretty-print.c: Likewise.
8508         * gimple-ssa-isolate-paths.c: Likewise.
8509         * gimple-ssa-strength-reduction.c: Likewise.
8510         * gimple-streamer-in.c: Likewise.
8511         * gimple-streamer-out.c: Likewise.
8512         * gimple-walk.c: Likewise.
8513         * gimple.c: Likewise.
8514         * gimplify-me.c: Likewise.
8515         * gimplify.c: Likewise.
8516         * godump.c: Likewise.
8517         * graph.c: Likewise.
8518         * graphite-poly.c: Likewise.
8519         * haifa-sched.c: Likewise.
8520         * hw-doloop.c: Likewise.
8521         * ifcvt.c: Likewise.
8522         * incpath.c: Likewise.
8523         * init-regs.c: Likewise.
8524         * internal-fn.c: Likewise.
8525         * ipa-chkp.c: Likewise.
8526         * ipa-comdats.c: Likewise.
8527         * ipa-cp.c: Likewise.
8528         * ipa-devirt.c: Likewise.
8529         * ipa-icf-gimple.c: Likewise.
8530         * ipa-icf.c: Likewise.
8531         * ipa-inline-analysis.c: Likewise.
8532         * ipa-inline-transform.c: Likewise.
8533         * ipa-inline.c: Likewise.
8534         * ipa-polymorphic-call.c: Likewise.
8535         * ipa-profile.c: Likewise.
8536         * ipa-prop.c: Likewise.
8537         * ipa-pure-const.c: Likewise.
8538         * ipa-ref.c: Likewise.
8539         * ipa-reference.c: Likewise.
8540         * ipa-split.c: Likewise.
8541         * ipa-utils.c: Likewise.
8542         * ipa-visibility.c: Likewise.
8543         * ipa.c: Likewise.
8544         * ira-build.c: Likewise.
8545         * ira-color.c: Likewise.
8546         * ira-conflicts.c: Likewise.
8547         * ira-costs.c: Likewise.
8548         * ira-emit.c: Likewise.
8549         * ira-lives.c: Likewise.
8550         * ira.c: Likewise.
8551         * jump.c: Likewise.
8552         * langhooks.c: Likewise.
8553         * lcm.c: Likewise.
8554         * lists.c: Likewise.
8555         * loop-doloop.c: Likewise.
8556         * loop-init.c: Likewise.
8557         * loop-invariant.c: Likewise.
8558         * loop-iv.c: Likewise.
8559         * loop-unroll.c: Likewise.
8560         * lower-subreg.c: Likewise.
8561         * lra-assigns.c: Likewise.
8562         * lra-coalesce.c: Likewise.
8563         * lra-constraints.c: Likewise.
8564         * lra-eliminations.c: Likewise.
8565         * lra-lives.c: Likewise.
8566         * lra-remat.c: Likewise.
8567         * lra-spills.c: Likewise.
8568         * lra.c: Likewise.
8569         * lto-cgraph.c: Likewise.
8570         * lto-compress.c: Likewise.
8571         * lto-opts.c: Likewise.
8572         * lto-section-in.c: Likewise.
8573         * lto-section-out.c: Likewise.
8574         * lto-streamer-in.c: Likewise.
8575         * lto-streamer-out.c: Likewise.
8576         * lto-streamer.c: Likewise.
8577         * mode-switching.c: Likewise.
8578         * modulo-sched.c: Likewise.
8579         * omp-low.c: Likewise.
8580         * optabs.c: Likewise.
8581         * opts-global.c: Likewise.
8582         * passes.c: Likewise.
8583         * plugin.c: Likewise.
8584         * postreload-gcse.c: Likewise.
8585         * postreload.c: Likewise.
8586         * predict.c: Likewise.
8587         * print-tree.c: Likewise.
8588         * profile.c: Likewise.
8589         * real.c: Likewise.
8590         * realmpfr.c: Likewise.
8591         * recog.c: Likewise.
8592         * ree.c: Likewise.
8593         * reg-stack.c: Likewise.
8594         * regcprop.c: Likewise.
8595         * reginfo.c: Likewise.
8596         * regrename.c: Likewise.
8597         * regstat.c: Likewise.
8598         * reload.c: Likewise.
8599         * reload1.c: Likewise.
8600         * reorg.c: Likewise.
8601         * resource.c: Likewise.
8602         * rtl-chkp.c: Likewise.
8603         * rtl-error.c: Likewise.
8604         * rtlanal.c: Likewise.
8605         * rtlhooks.c: Likewise.
8606         * sanopt.c: Likewise.
8607         * sched-deps.c: Likewise.
8608         * sched-ebb.c: Likewise.
8609         * sched-rgn.c: Likewise.
8610         * sese.c: Likewise.
8611         * shrink-wrap.c: Likewise.
8612         * simplify-rtx.c: Likewise.
8613         * stack-ptr-mod.c: Likewise.
8614         * statistics.c: Likewise.
8615         * stmt.c: Likewise.
8616         * stor-layout.c: Likewise.
8617         * store-motion.c: Likewise.
8618         * stringpool.c: Likewise.
8619         * symtab.c: Likewise.
8620         * target-globals.c: Likewise.
8621         * targhooks.c: Likewise.
8622         * toplev.c: Likewise.
8623         * tracer.c: Likewise.
8624         * trans-mem.c: Likewise.
8625         * tree-affine.c: Likewise.
8626         * tree-call-cdce.c: Likewise.
8627         * tree-cfg.c: Likewise.
8628         * tree-cfgcleanup.c: Likewise.
8629         * tree-chkp-opt.c: Likewise.
8630         * tree-chkp.c: Likewise.
8631         * tree-chrec.c: Likewise.
8632         * tree-complex.c: Likewise.
8633         * tree-data-ref.c: Likewise.
8634         * tree-dfa.c: Likewise.
8635         * tree-diagnostic.c: Likewise.
8636         * tree-dump.c: Likewise.
8637         * tree-eh.c: Likewise.
8638         * tree-emutls.c: Likewise.
8639         * tree-if-conv.c: Likewise.
8640         * tree-inline.c: Likewise.
8641         * tree-into-ssa.c: Likewise.
8642         * tree-iterator.c: Likewise.
8643         * tree-loop-distribution.c: Likewise.
8644         * tree-nested.c: Likewise.
8645         * tree-nrv.c: Likewise.
8646         * tree-object-size.c: Likewise.
8647         * tree-outof-ssa.c: Likewise.
8648         * tree-parloops.c: Likewise.
8649         * tree-phinodes.c: Likewise.
8650         * tree-predcom.c: Likewise.
8651         * tree-pretty-print.c: Likewise.
8652         * tree-profile.c: Likewise.
8653         * tree-scalar-evolution.c: Likewise.
8654         * tree-sra.c: Likewise.
8655         * tree-ssa-address.c: Likewise.
8656         * tree-ssa-alias.c: Likewise.
8657         * tree-ssa-ccp.c: Likewise.
8658         * tree-ssa-coalesce.c: Likewise.
8659         * tree-ssa-copy.c: Likewise.
8660         * tree-ssa-dce.c: Likewise.
8661         * tree-ssa-dom.c: Likewise.
8662         * tree-ssa-dse.c: Likewise.
8663         * tree-ssa-forwprop.c: Likewise.
8664         * tree-ssa-ifcombine.c: Likewise.
8665         * tree-ssa-live.c: Likewise.
8666         * tree-ssa-loop-ch.c: Likewise.
8667         * tree-ssa-loop-im.c: Likewise.
8668         * tree-ssa-loop-ivcanon.c: Likewise.
8669         * tree-ssa-loop-ivopts.c: Likewise.
8670         * tree-ssa-loop-manip.c: Likewise.
8671         * tree-ssa-loop-niter.c: Likewise.
8672         * tree-ssa-loop-prefetch.c: Likewise.
8673         * tree-ssa-loop-unswitch.c: Likewise.
8674         * tree-ssa-loop.c: Likewise.
8675         * tree-ssa-math-opts.c: Likewise.
8676         * tree-ssa-operands.c: Likewise.
8677         * tree-ssa-phiopt.c: Likewise.
8678         * tree-ssa-phiprop.c: Likewise.
8679         * tree-ssa-pre.c: Likewise.
8680         * tree-ssa-propagate.c: Likewise.
8681         * tree-ssa-reassoc.c: Likewise.
8682         * tree-ssa-sccvn.c: Likewise.
8683         * tree-ssa-scopedtables.c: Likewise.
8684         * tree-ssa-sink.c: Likewise.
8685         * tree-ssa-strlen.c: Likewise.
8686         * tree-ssa-structalias.c: Likewise.
8687         * tree-ssa-tail-merge.c: Likewise.
8688         * tree-ssa-ter.c: Likewise.
8689         * tree-ssa-threadedge.c: Likewise.
8690         * tree-ssa-threadupdate.c: Likewise.
8691         * tree-ssa-uncprop.c: Likewise.
8692         * tree-ssa-uninit.c: Likewise.
8693         * tree-ssa.c: Likewise.
8694         * tree-ssanames.c: Likewise.
8695         * tree-stdarg.c: Likewise.
8696         * tree-streamer-in.c: Likewise.
8697         * tree-streamer-out.c: Likewise.
8698         * tree-streamer.c: Likewise.
8699         * tree-switch-conversion.c: Likewise.
8700         * tree-tailcall.c: Likewise.
8701         * tree-vect-data-refs.c: Likewise.
8702         * tree-vect-generic.c: Likewise.
8703         * tree-vect-loop-manip.c: Likewise.
8704         * tree-vect-loop.c: Likewise.
8705         * tree-vect-patterns.c: Likewise.
8706         * tree-vect-slp.c: Likewise.
8707         * tree-vect-stmts.c: Likewise.
8708         * tree-vectorizer.c: Likewise.
8709         * tree-vrp.c: Likewise.
8710         * tree.c: Likewise.
8711         * tsan.c: Likewise.
8712         * ubsan.c: Likewise.
8713         * value-prof.c: Likewise.
8714         * var-tracking.c: Likewise.
8715         * varasm.c: Likewise.
8716         * varpool.c: Likewise.
8717         * vtable-verify.c: Likewise.
8718         * web.c: Likewise.
8719         * wide-int-print.cc: Likewise.
8720         * wide-int.cc: Likewise.
8721         * xcoffout.c: Likewise.
8723 2015-10-29  H.J. Lu  <hongjiu.lu@intel.com>
8725         * Makefile.in (NO_PIE_CFLAGS): New.
8726         (NO_PIE_FLAG): Likewise.
8727         (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
8728         (NO_PIE_FLAG_FOR_BUILD): Likewise.
8729         (BUILD_NO_PIE_CFLAGS): Likewise.
8730         (BUILD_NO_PIE_FLAG): Likewise.
8731         (COMPILER): Replace @NO_PIE_CFLAGS@ with $(NO_PIE_CFLAGS).
8732         (LINKER): Replace @NO_PIE_FLAG@ with $(NO_PIE_FLAG).
8733         (BUILD_CFLAGS): Replace @NO_PIE_CFLAGS@ with
8734         $(BUILD_NO_PIE_CFLAGS).
8735         (BUILD_CXXFLAGS): Likewise.
8736         (BUILD_LDFLAGS ): Replace @NO_PIE_FLAG@ with
8737         $(BUILD_NO_PIE_FLAG).
8738         * configure.ac (BUILD_NO_PIE_CFLAGS): New.  AC_SUBST.
8739         (BUILD_NO_PIE_FLAG): Likewise.
8740         (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
8741         (NO_PIE_FLAG_FOR_BUILD): Likewise.
8742         * configure: Regenerated.
8744 2015-10-29  Richard Biener  <rguenther@suse.de>
8746         PR middle-end/56956
8747         * fold-const.c (fold_cond_expr_with_comparison): Do not fold
8748         unsigned conditonal negation to ABS_EXPR.
8750 2015-10-29  Richard Biener  <rguenther@suse.de>
8752         * gimple-match-head.c (gimple_simplify): Remove premature checking
8753         of builtin_decl_implicit of function calls we simplify.
8755 2015-10-29  Bin Cheng  <bin.cheng@arm.com>
8757         * tree-ssa-loop-ivopts.c (split_address_cost): Check depends_on.
8758         (get_computation_cost_at): Ditto.
8759         (determine_use_iv_cost_address): Pass NULL for arguments depends_on
8760         and inv_expr_id.
8762 2015-10-28  Tom de Vries  <tom@codesourcery.com>
8764         * tree-ssa-structalias.c (intra_create_variable_infos): Remove
8765         superfluous code.
8767 2015-10-28  Jason Merrill  <jason@redhat.com>
8769         * Makefile.in (TAGS): Include libcpp and libiberty.
8771 2015-10-28  Nathan Sidwell  <nathan@codesourcery.com>
8773         * omp-low.c (MASK_GANG, MASK_WORKER, MASK_VECTOR): Delete.
8774         (extract_omp_for_data): Remove OpenACC special handling of
8775         chunking.
8777         * config/nvptx/nvptx.c (nvptx_print_operand): Remove 'd' case.
8778         (struct parallel): Update comment.
8779         (nvptx_reorg): Likewise.
8780         (nvptx_neuter): Cleanup whitespace.
8782 2015-10-28  Richard Henderson  <rth@redhat.com>
8784         * tree-eh.c (mark_reachable_handlers): Fix typo in assert.
8786 2015-10-05  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
8788         PR target/67839
8789         * config/avr/predicates.md (low_io_address_operand): Don't
8790         consider MODE when computing upper bound.
8791         (io_address_operand): Likewise.
8793 2015-10-28  Jan Hubicka  <hubicka@ucw.cz>
8795         * fold-const.c (operand_equal_p): Do not verify that types are
8796         compatible for MEM_REFs.
8798 2015-10-28  Richard Biener  <rguenther@suse.de>
8800         * gimple-match-head.c (gimple_simplify): Allow VECTOR_CSTs
8801         in simplifying VEC_COND_EXPR conditions.
8803 2015-10-28  Tom de Vries  <tom@codesourcery.com>
8805         * tree-ssa-structalias.c (intra_create_variable_infos): Don't iterate
8806         into vi_next of a full_var.
8808 2015-10-28  Tom de Vries  <tom@codesourcery.com>
8810         * tree-ssa-structalias.c (new_var_info, make_heapvar)
8811         (make_constraint_from_restrict, make_constraint_from_global_restrict)
8812         (create_function_info_for, create_variable_info_for_1)
8813         (create_variable_info_for): Add and handle add_id parameter.
8814         (get_call_vi, new_scalar_tmp_constraint_exp, handle_rhs_call)
8815         (init_base_vars): Add extra argument to calls to new_var_info.
8816         (get_vi_for_tree): Add extra argument to call to
8817         create_variable_info_for.
8818         (process_constraint, do_deref, process_all_all_constraints): Add extra
8819         argument to calls to new_scalar_tmp_constraint_exp.
8820         (handle_lhs_call, find_func_aliases_for_builtin_call): Add extra
8821         argument to calls to make_heapvar.
8822         (make_restrict_var_constraints): Add extra argument to call to
8823         make_constraint_from_global_restrict.
8824         (intra_create_variable_infos): Add extra argument to call to
8825         create_variable_info_for_1.
8826         (ipa_pta_execute): Add extra argument to call to
8827         create_function_info_for.
8829 2015-10-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8831         * config/aarch64/aarch64.md (call, call_value, sibcall): Handle noplt.
8832         (sibcall_value): Likewise.
8834 2015-10-28  Nathan Sidwell  <nathan@codesourcery.com>
8836         * config/nvptx/nvptx.h (struct machine_function): Add
8837         axis_predicate.
8838         * config/nvptx/nvptx-protos.h (nvptx_expand_oacc_fork,
8839         nvptx_expand_oacc_join): Declare.
8840         * config/nvptx/nvptx.md (UNSPEC_NTID, UNSPEC_TID): Delete.
8841         (UNSPEC_DIM_SIZE, UNSPEC_SHARED_DATA, UNSPEC_BIT_CONV,
8842         UNSPEC_SHUFFLE, UNSPEC_BR_UNIFIED): New.
8843         (UNSPECV_BARSYNC, UNSPECV_DIM_POS, UNSPECV_FORK, UNSPECV_FORKED,
8844         UNSPECV_JOINING, UNSPECV_JOIN): New.
8845         (BITS, BITD): New mode iterators.
8846         (br_true_uni, br_false_uni): New.
8847         (*oacc_ntid_insn, oacc_ntid, *oacc_tid_insn, oacc_tid): Delete.
8848         (oacc_dim_size, oacc_dim_pos): New.
8849         (nvptx_fork, nvptx_forked, nvptx_joining, nvptx_join): New.
8850         (oacc_fork, oacc_join): New.
8851         (nvptx_shuffle<mode>, unpack<mode>si2, packsi<mode>2): New.
8852         (worker_load<mode>, worker_store<mode>): New.
8853         (nvptx_barsync): New.
8854         * config/nvptx/nvptx.c: Include gimple.h & dumpfile.h.
8855         (SHUFFLE_UP, SHUFFLE_DOWN, SHUFFLE_BFLY, SHUFFLE_IDX): Define.
8856         (worker_bcast_hwm, worker_bcast_align, worker_bcast_name,
8857         worker_bcast_sym): New.
8858         (nvptx_option_override): Initialize worker broadcast buffer.
8859         (nvptx_emit_forking, nvptx_emit_joining): New.
8860         (nvptx_init_axis_predicate): New.
8861         (nvptx_declare_function_name): Init axis predicates.
8862         (nvptx_expand_call): Add fork/join markers around routine call.
8863         (nvptx_expand_oacc_fork, nvptx_expand_oacc_join): New.
8864         (nvptx_gen_unpack, nvptx_gen_pack, nvptx_gen_shuffle): New.
8865         (nvptx_gen_vcast): New.
8866         (struct wcast_data_t): New.
8867         (enum propagate_mask): New.
8868         (nvptx_gen_wcast): New.
8869         (nvptx_print_operand): Add 'S' case.
8870         (struct parallel): New.
8871         (parallel::parallel, parallel::~parallel): New.
8872         (bb_insn_map_t, insn_bb_t, insn_bb_vec_t): New typedefs.
8873         (nvptx_split_blocks, nvptx_discover_pre, nvptx_dump_pars,
8874         nvptx_find_par, nvptx_discover_pars): New.
8875         (nvptx_propagate): New.
8876         (vprop_gen, nvptx_vpropagate): New.
8877         (wprop_gen, nvptx_wpropagate): New.
8878         (nvptx_wsync): New.
8879         (nvptx_single, nvptx_skip_par): New.
8880         (nvptx_process_pars, nvptx_neuter_pars): New.
8881         (ntptx_reorg): Split blocks, generate parallel structure, apply
8882         neutering.
8883         (nvptx_cannot_copy_insn_p): New.
8884         (nvptx_file_end): Emit worker broadcast decl.
8885         (nvptx_goacc_fork_join): New.
8886         (TARGET_CANNOT_COPY_INSN_P): Override.
8887         (TARGET_GOACC_FORK_JOIN): Override.
8889 2015-10-28  Richard Biener  <rguenther@suse.de>
8891         * fold-const.c (negate_expr_p): Adjust the division case to
8892         properly avoid introducing undefined overflow.
8893         (fold_negate_expr): Likewise.
8895 2015-10-28  Richard Biener  <rguenther@suse.de>
8897         PR tree-optimization/65962
8898         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
8899         Avoid creating loop carried dependences also for outer loops
8900         of the loop a use to replace is in.
8902 2015-10-28  Richard Biener  <rguenther@suse.de>
8904         * common.opt (fchecking): New flag controlling flag_checking.
8905         * passes.c (verify_curr_properties): Drop DEBUG_FUNCTION.
8906         * timevar.c (timer::print): Adjust output.
8907         * doc/invoke.texi (fchecking): Document.
8909 2015-10-28  Richard Biener  <rguenther@suse.de>
8911         PR middle-end/68067
8912         * fold-const.c (negate_expr_p): We cannot negate plus or minus
8913         if overflow is not wrapping.  Likewise multiplication unless
8914         one operand is constant and not power of two.
8915         (fold_negate_expr): Adjust accordingly.
8917 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
8919         * omp-low.c (struct omp_context): Remove gwv_below, gwv_this
8920         fields.
8921         (is_oacc_parallel, is_oacc_kernels): New.
8922         (enclosing_target_ctx): May return NULL.
8923         (ctx_in_oacc_kernels_region): New.
8924         (check_oacc_kernel_gwv): New.
8925         (oacc_loop_or_target_p): Delete.
8926         (scan_omp_for): Don't calculate gwv mask.  Check parallel clause
8927         operands.  Strip reductions fro kernels.
8928         (scan_omp_target): Don't calculate gwv mask.
8929         (lower_oacc_head_mark, lower_oacc_loop_marker,
8930         lower_oacc_head_tail): New.
8931         (struct oacc_collapse): New.
8932         (expand_oacc_collapse_init, expand_oacc_collapse_vars): New.
8933         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
8934         Remove OpenACC handling.
8935         (expand_oacc_for): New.
8936         (expand_omp_for): Call expand_oacc_for.
8937         (lower_omp_for): Call lower_oacc_head_tail.
8939 2015-10-27  Mikhail Maltsev  <maltsevm@gmail.com>
8941         * attribs.c (check_attribute_tables): New function, broken out from...
8942         (init_attributes): Use it.
8943         * cfgcleanup.c (try_optimize_cfg): Use flag_checking, CHECKING_P
8944         gcc_checking_assert and checking_* functions to eliminate
8945         ENABLE_CHECKING conditionals.
8946         * cfgexpand.c (expand_goto, expand_debug_expr): Likewise.
8947         (pass_expand::execute): Likewise.
8948         * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
8949         * cgraphunit.c (mark_functions_to_output): Likewise.
8950         (cgraph_node::expand_thunk): Likewise.
8951         (symbol_table::compile): Likewise.
8952         * ddg.c (add_cross_iteration_register_deps): Likewise.
8953         (create_ddg_all_sccs): Likewise.
8954         * df-core.c (df_finish_pass, df_analyze): Likewise.
8955         * diagnostic-core.h: Likewise.
8956         * diagnostic.c (diagnostic_report_diagnostic): Likewise.
8957         * dominance.c (calculate_dominance_info): Likewise.
8958         * dwarf2out.c (add_AT_die_ref): Likewise.
8959         (const_ok_for_output_1, mem_loc_descriptor): Likewise.
8960         (loc_list_from_tree, gen_lexical_block_die): Likewise.
8961         gen_type_die_with_usage, gen_type_die): Likewise.
8962         (dwarf2out_decl): Likewise.
8963         * emit-rtl.c (verify_rtx_sharing, reorder_insns_nobb): Likewise.
8964         * except.c (duplicate_eh_regions): Likewise.
8965         * fwprop.c (register_active_defs, update_df_init): Likewise.
8966         (fwprop_init, fwprop_done): Likewise.
8967         (update_uses): Likewise.
8968         * ggc-page.c (ggc_grow): Likewise.
8969         * gimplify.c (gimplify_body): Likewise.
8970         (gimplify_hasher::equal): Likewise.
8971         * graphite-isl-ast-to-gimple.c (graphite_verify): Likewise.
8972         * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form):
8973         Likewise.
8974         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Likewise.
8975         (rewrite_cross_bb_scalar_deps_out_of_ssa): Likwise.
8976         * hash-table.h (::find_empty_slot_for_expand): Likewise.
8977         * ifcvt.c (if_convert): Likewise.
8978         * ipa-cp.c (ipcp_propagate_stage): Likewise.
8979         * ipa-devirt.c (type_in_anonymous_namespace_p): Likewise.
8980         (odr_type_p, odr_types_equivalent_p): Likewise.
8981         (add_type_duplicate, get_odr_type): Likewise.
8982         * ipa-icf.c (sem_item_optimizer::execute): Likewise.
8983         (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
8984         (sem_item_optimizer::verify_classes): Likewise.
8985         (sem_item_optimizer::traverse_congruence_split): Likewise.
8986         (sem_item_optimizer::checking_verify_classes): New.
8987         * ipa-icf.h (sem_item_optimizer::checking_verify_classes): Add new
8988         method.
8989         * cfgrtl.c (commit_edge_insertions): Likewise.
8990         (fixup_reorder_chain, cfg_layout_finalize): Likewise.
8991         (rtl_flow_call_edges_add): Likewise.
8992         * cgraph.c (symbol_table::create_edge): Likewise.
8993         (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
8994         * cgraph.h (symtab_node): Likewise.
8995         (symtab_node::checking_verify_symtab_nodes): Define.
8996         (cgraph_node::checking_verify_cgraph_nodes): Define.
8997         * cfghooks.h (checking_verify_flow_info): Define.
8998         * cfgloop.h (checking_verify_loop_structure): Define.
8999         * dominance.h (checking_verify_dominators): Define.
9000         * et-forest.c: Fix comment.
9001         * ipa-inline-analysis.c (compute_inline_parameters): Use flag_checking,
9002         CHECKING_P gcc_checking_assert and checking_* functions to eliminate
9003         ENABLE_CHECKING conditionals.
9004         * ipa-inline-transform.c (save_inline_function_body): Likewise.
9005         * ipa-inline.c (inline_small_functions): Likewise.
9006         (early_inliner): Likewise.
9007         * ipa-inline.h (estimate_edge_growth): Likewise.
9008         * ipa-visibility.c (function_and_variable_visibility): Likewise.
9009         * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
9010         (ipa_single_use): Likewise.
9011         * ira-int.h: Likewise.
9012         * ira.c (ira): Likewise.
9013         * loop-doloop.c (doloop_optimize_loops): Likewise.
9014         * loop-init.c (loop_optimizer_init, fix_loop_structure): Likewise.
9015         * loop-invariant.c (move_loop_invariants): Likewise.
9016         * lra-assigns.c (lra_assign): Likewise.
9017         * lra-constraints.c (lra_constraints): Likewise.
9018         * lra-eliminations.c (lra_eliminate): Likewise.
9019         * lra-int.h (struct lra_reg): Likewise.
9020         * lra-lives.c (check_pseudos_live_through_calls): Likewise.
9021         (lra_create_live_ranges_1): Likewise.
9022         * lra-remat.c (create_remat_bb_data): Likewise.
9023         * lra.c (lra_update_insn_recog_data, restore_scratches): Likewise.
9024         (lra): Likewise.
9025         (check_rtl): Always define. Remove incorrect guard around
9026         extract_constrain_insn call.
9027         * lto-cgraph.c (input_cgraph_1: Use flag_checking,
9028         CHECKING_P gcc_checking_assert and checking_* functions to eliminate
9029         ENABLE_CHECKING conditionals.
9030         * lto-streamer-out.c (DFS::DFS): Likewise.
9031         (lto_output): Likewise.
9032         * lto-streamer.c (lto_streamer_init): Likewise.
9033         * omp-low.c (scan_omp_target, expand_omp_taskreg): Likewise.
9034         expand_omp_target, execute_expand_omp): Likewise.
9035         (lower_omp_target): Likewise.
9036         * passes.c (execute_function_todo): Likewise.
9037         (execute_todo, execute_one_pass): Likewise.
9038         (verify_curr_properties): Always define.
9039         * predict.c (tree_estimate_probability: Use flag_checking,
9040         CHECKING_P gcc_checking_assert and checking_* functions to eliminate
9041         ENABLE_CHECKING conditionals.
9042         (propagate_freq): Likewise.
9043         * pretty-print.c (pp_format): Likewise.
9044         * real.c (real_to_decimal_for_mode): Likewise.
9045         * recog.c (split_all_insns): Likewise.
9046         * regcprop.c (kill_value_one_regno): Likewise.
9047         (copy_value): Likewise.
9048         (validate_value_data): Define unconditionally.
9049         * reload.c: Fix comment.
9050         * timevar.c: Include options.h
9051         * tree-ssa.h (checking_verify_ssa): Define.
9052         * tree-ssa-loop-manip.h (checking_verify_loop_closed_ssa): Define.
9053         * sched-deps.c (CHECK): Remove unused macro.
9054         (add_or_update_dep_1, sd_add_dep: Use flag_checking, CHECKING_P
9055         gcc_checking_assert and checking_* functions to eliminate
9056         ENABLE_CHECKING conditionals.
9057         * sel-sched-ir.c (free_regset_pool, tidy_control_flow): Likewise.
9058         * sel-sched.c (struct moveop_static_params): Likewise.
9059         (find_best_reg_for_expr, move_cond_jump): Likewise.
9060         (move_op_orig_expr_not_found): Likewise.
9061         (code_motion_process_successors, move_op): Likewise.
9062         * ssa-iterators.h (first_readonly_imm_use): Likewise.
9063         (next_readonly_imm_use): Likewise.
9064         * store-motion.c (compute_store_table): Likewise.
9065         * symbol-summary.h (function_summary::function_summary): Likewise.
9066         * target.h (cumulative_args_t): Likewise.
9067         (get_cumulative_args, pack_cumulative_args): Likewise.
9068         * timevar.c: (timer::print): Likewise.
9069         * trans-mem.c (ipa_tm_execute): Likewise.
9070         * tree-cfg.c (move_stmt_op): Likewise.
9071         (move_sese_region_to_fn): Likewise.
9072         (gimple_flow_call_edges_add): Likewise.
9073         * tree-cfgcleanup.c (cleanup_tree_cfg_noloop, repair_loop_structures):
9074         Likewise.
9075         * tree-eh.c (remove_unreachable_handlers): Likewise.
9076         * tree-if-conv.c (pass_if_conversion::execute): Likewise.
9077         * tree-inline.c (expand_call_inline, optimize_inline_calls): Likewise.
9078         * tree-into-ssa.c (update_ssa): Likewise.
9079         * tree-loop-distribution.c (pass_loop_distribution::execute): Likewise.
9080         * tree-outof-ssa.c (eliminate_useless_phis, rewrite_trees): Likewise.
9081         * tree-parloops.c (pass_parallelize_loops::execute): Likewise.
9082         * tree-predcom.c (suitable_component_p): Likewise.
9083         * tree-profile.c (gimple_gen_const_delta_profiler): Likewise.
9084         * tree-ssa-alias.c (refs_may_alias_p_1): Likewise.
9085         * tree-ssa-live.c (verify_live_on_entry): Likewise.
9086         * tree-ssa-live.h (register_ssa_partition): Likewise.
9087         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Likewise.
9088         * tree-ssa-loop-manip.c (add_exit_phi): Likewise.
9089         (tree_transform_and_unroll_loop): Likewise.
9090         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
9091         * tree-ssa-operands.c (get_expr_operands): Likewise.
9092         * tree-ssa-propagate.c (replace_exp_1): Likewise.
9093         * tree-ssa-structalias.c (rewrite_constraints): Likewise.
9094         * tree-ssa-ter.c (free_temp_expr_table): Likewise.
9095         * tree-ssa-threadupdate.c (duplicate_thread_path): Likewise.
9096         * tree-ssanames.c (release_ssa_name_fn): Likewise.
9097         * tree-stdarg.c (expand_ifn_va_arg): Likewise.
9098         * tree-vect-loop-manip.c
9099         (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
9100         (slpeel_checking_verify_cfg_after_peeling): Likewise.
9101         (vect_do_peeling_for_loop_bound): Likewise.
9102         (vect_do_peeling_for_alignment): Likewise.
9103         * tree-vrp.c (supports_overflow_infinity): Likewise.
9104         (set_value_range): Likewise.
9105         * tree.c (free_lang_data_in_cgraph): Likewise.
9106         * value-prof.c (gimple_remove_histogram_value): Likewise.
9107         (free_hist): Likewise.
9108         * var-tracking.c (canonicalize_values_star): Likewise.
9109         (compute_bb_dataflow, vt_find_locations, vt_emit_notes): Likewise.
9111 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
9113         * internal-fn.def (IFN_GOACC_DIM_SIZE, IFN_GOACC_DIM_POS,
9114         IFN_GOACC_LOOP): New.
9115         * internal-fn.h (enum ifn_unique_kind): Add IFN_UNIQUE_OACC_FORK,
9116         IFN_UNIQUE_OACC_JOIN, IFN_UNIQUE_OACC_HEAD_MARK,
9117         IFN_UNIQUE_OACC_TAIL_MARK.
9118         (enum ifn_goacc_loop_kind): New.
9119         * internal-fn.c (expand_UNIQUE): Add IFN_UNIQUE_OACC_FORK,
9120         IFN_UNIQUE_OACC_JOIN cases.
9121         (expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS): New.
9122         (expand_GOACC_LOOP): New.
9123         * target-insns.def (oacc_dim_pos, oacc_dim_size): New.
9124         * omp-low.c: Include gimple-pretty-print.h.
9125         (struct oacc_loop): New.
9126         (enum oacc_loop_flags): New.
9127         (oacc_thread_numbers): New.
9128         (oacc_xform_loop): New.
9129         (new_oacc_loop_raw, new_oacc_loop_outer, new_oacc_loop,
9130         new_oacc_loop_routine, finish_oacc_loop, free_oacc_loop): New,
9131         (dump_oacc_loop_part, dump_oacc_loop, debug_oacc_loop): New,
9132         (oacc_loop_discover_walk, oacc_loop_sibling_nrevers,
9133         oacc_loop_discovery): New.
9134         (oacc_loop_xform_head_tail, oacc_loop_xform_loop,
9135         oacc_loop_process): New.
9136         (oacc_loop_fixed_partitions, oacc_loop_partition): New.
9137         (execute_oacc_device_lower): Discover & process loops.  Process
9138         internal fns.
9139         * target.def (goacc.fork_join): Change sense of hook, clarify
9140         documentation.
9141         * doc/tm.texi: Regenerated.
9143 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
9145         * target-insns.def (oacc_fork, oacc_join): Define.
9146         * target.def (goacc.validate_dims): Adjust doc to avoid warning.
9147         (goacc.fork_join): New GOACC hook.
9148         * targhooks.h (default_goacc_fork_join): Declare.
9149         * omp-low.c (default_goacc_forkjoin): New.
9150         * doc/tm.texi.in (TARGET_GOACC_FORK_JOIN): Add.
9151         * doc/tm.texi: Regenerate.
9153 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
9155         * omp-low.c (oacc_init_rediction_array): New.
9156         (oacc_initialize_reduction_data): Initialize array.
9158 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
9160         * omp-low.c (pass_oacc_device_lower::execute): Ignore errors.
9162 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
9164         * internal-fn.c (expand_UNIQUE): New.
9165         * internal-fn.h (enum ifn_unique_kind): New.
9166         * internal-fn.def (IFN_UNIQUE): New.
9167         * target-insns.def (unique): Define.
9168         * gimple.h (gimple_call_internal_unique_p): New.
9169         * gimple.c (gimple_call_same_target_p): Check internal fn
9170         uniqueness.
9171         * tracer.c (ignore_bb_p): Check for IFN_UNIQUE call.
9172         * tree-ssa-threadedge.c
9173         (record_temporary_equivalences_from_stmts): Likewise.
9174         * tree-cfg.c (gmple_call_initialize_ctrl_altering): Likewise.
9176 2015-10-27  Richard Henderson  <rth@redhat.com>
9178         PR rtl-opt/67609
9179         * config/i386/i386.c (ix86_cannot_change_mode_class): Disallow
9180         narrowing subregs on SSE and MMX registers.
9181         * doc/tm.texi.in (CANNOT_CHANGE_MODE_CLASS): Clarify when subregs that
9182         appear to be sub-words of multi-register pseudos must be rejected.
9183         * doc/tm.texi: Regenerate.
9185 2015-10-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9187         PR target/68102
9188         * config/aarch64/aarch64.md (*movsi_aarch64): Check that
9189         operands[0] is a reg before taking its REGNO in split condition.
9190         (*movdi_aarch64): Likewise.
9192 2015-10-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9194         * config/aarch64/aarch64.c (aarch64_output_simd_mov_immediate):
9195         Handle floating point inner modes properly.
9197 2015-10-27  Alan Hayward  <alan.hayward@arm.com>
9199         * tree-vect-looop.c
9200         (vectorizable_live_operation): Change iterator.
9202 2015-10-27  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
9203             Aditya Kumar  <aditya.k7@samsung.com>
9205         * graphite-optimize-isl.c (get_schedule_for_node_st): New callback
9206           function to schedule based on isl_schedule_node.
9207         (get_schedule_map_st): New schedule optimizer based on
9208         isl_schedule_node.
9209         (scop_get_domains): New. Return the isl_union_set containing the
9210         domains of all the pbbs.
9211         (optimize_isl): Call the new function get_schedule_map_st for isl-0.15
9213 2015-10-27  H.J. Lu  <hongjiu.lu@intel.com>
9215         PR target/67215
9216         * calls.c (prepare_call_address): Don't handle -fno-plt here.
9217         * config/i386/i386.c (ix86_expand_call): Generate indirect call
9218         via GOT for -fno-plt.  Support indirect call via GOT for x32.
9219         * config/i386/predicates.md (sibcall_memory_operand): Allow
9220         GOT memory operand.
9222 2015-10-27  Richard Biener  <rguenther@suse.de>
9224         PR tree-optimization/68104
9225         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
9226         strided access check ...
9227         (vect_compute_data_refs_alignment): ... here.
9229 2015-10-27  Daniel Jacobowitz  <dan@codesourcery.com>
9230             Joseph Myers  <joseph@codesourcery.com>
9231             Mark Shinwell  <shinwell@codesourcery.com>
9232             Andrew Stubbs  <ams@codesourcery.com>
9233             Rich Felker <dalias@libc.org>
9235         * config.gcc: Handle --enable-fdpic.
9236         * config/sh/constraints.md (Ccl): New constraint.
9237         * config/sh/linux.h (SUBTARGET_LINK_EMUL_SUFFIX): Handle -mfdpic.
9238         * config/sh/sh-c.c (sh_cpu_cpp_builtins): Add __FDPIC__ and
9239         __SH_FDPIC__.
9240         * config/sh/sh-mem.cc (expand_block_move): Support FDPIC for calls to
9241         library functions.
9242         * config/sh/sh-protos.h (function_symbol_result): New struct.
9243         (function_symbol): Return function_symbol_result.
9244         (sh_get_fdpic_reg_initial_val, sh_load_function_descriptor): New
9245         declarations.
9246         * config/sh/sh.c (TARGET_ASM_INTEGER, sh_assemble_integer): Implement
9247         target hook.
9248         (TARGET_CANNOT_FORCE_CONST_MEM, sh_cannot_force_const_mem_p): Likewise.
9249         (sh_option_override): Force -fPIC if FDPIC is in effect.
9250         (sh_asm_output_addr_const_extra): Add UNSPEC_GOTFUNCDESC and
9251         UNSPEC_GOTOFFFUNCDESC cases.
9252         (prepare_move_operands): Use FDPIC initial GOT register for
9253         TLS-related GOT access; inhibit cross-section address offset constants
9254         for FDPIC.
9255         (sh_assemble_integer): New function.
9256         (sh_cannot_copy_insn_p): Inhibit copying insns that are FDPIC
9257         PC-relative call sites.
9258         (expand_ashiftrt): Adapt invocation of function_symbol.
9259         (sh_expand_prologue): Inhibit PC-relative GOT address load for FDPIC.
9260         (nonpic_symbol_mentioned_p): Add cases for UNSPEC_GOTFUNCDESC and
9261         UNSPEC_GOTOFFFUNCDESC.
9262         (legitimize_pic_address): Resolve function symbols to function
9263         descriptors for FDPIC.  Do not use GOT-relative addressing for local
9264         data that may be read-only on FDPIC.
9265         (sh_emit_storesi, sh_emit_storehi): New functions.
9266         (sh_trampoline_init): Generate FDPIC trampolines.
9267         (sh_function_ok_for_sibcall): Add TARGET_FDPIC check.
9268         (sh_expand_sym_label2reg): Don't assume sibcalls are local.
9269         (sh_output_mi_thunk): Generate FDPIC call.
9270         (function_symbol): Return function_symbol_result.  For SFUNC_STATIC on
9271         FDPIC, generate call site labels to use PC-relative addressing rather
9272         than GOT-relative addressing.
9273         (sh_conditional_register_usage): Make PIC register fixed and call used
9274         when FDPIC is in effect.
9275         (sh_legitimate_constant_p): Impose FDPIC constant constraints.
9276         (sh_cannot_force_const_mem_p, sh_load_function_descriptor,
9277         sh_get_fdpic_reg_initial_val): New functions.
9278         * config/sh/sh.h (SUBTARGET_ASM_SPEC, SUBTARGET_LINK_EMUL_SUFFIX):
9279         Handle -mfdpic.
9280         (FDPIC_SELF_SPECS, SUBTARGET_DRIVER_SELF_SPECS,
9281         PIC_OFFSET_TABLE_REG_CALL_CLOBBERED,
9282         SH_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): New macros.
9283         (DRIVER_SELF_SPECS): Add SUBTARGET_DRIVER_SELF_SPECS and
9284         FDPIC_SELF_SPECS.
9285         (TRAMPOLINE_SIZE): Select trampoline size for FDPIC.
9286         (ASM_PREFERRED_EH_DATA_FORMAT): Add EH format constraints for FDPIC.
9287         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Handle FDPIC case.
9288         * config/sh/sh.md (UNSPEC_GOTFUNCDESC, UNSPEC_GOTOFFFUNCDESC): New
9289         constants.
9290         (calli_fdpic, call_valuei_fdpic, sibcalli_fdpic, sibcalli_pcrel_fdpic,
9291         sibcall_pcrel_fdpic, sibcall_valuei_fdpic, sibcall_valuei_pcrel_fdpic,
9292         sibcall_value_pcrel_fdpic, sym2GOTFUNCDESC, symGOTFUNCDESC2reg,
9293         sym2GOTOFFFUNCDESC, symGOTOFFFUNCDESC2reg): New patterns.
9294         (udivsi3_i1, udivsi3_i4, udivsi3_i4_single, udivsi3,
9295         *divsi_inv_call_combine, divsi3_i4, divsi3_i4_single, divsi3, ashlsi3,
9296         ashlsi3_d_call, ashrsi3_n, lshrsi3, lshrsi3_d_call, calli, call_valuei,
9297         call, call_value, sibcalli, sibcalli_pcrel, sibcall_pcrel, sibcall,
9298         sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
9299         sibcall_value, GOTaddr2picreg, symGOT_load, symGOTOFF2reg,
9300         block_move_real, block_lump_real, block_move_real_i4,
9301         block_lump_real_i4): Add support for FDPIC calls.
9302         (mulsi3, ic_invalidate_line, initialize_trampoline, call_pop,
9303         call_value_pop): Adjust for new function_symbol signature.
9304         * config/sh/sh.opt (-mfdpic): New option.
9305         * doc/install.texi (Options specification): Document --enable-fdpic.
9306         * doc/invoke.texi (SH Options): Document -mfdpic.
9309 2015-10-27  Alan Lawrence  <alan.lawrence@arm.com>
9311         PR tree-optimization/65963
9312         * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
9313         LSHIFT_EXPRs as equivalent MULT_EXPRs.
9315 2015-10-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9317         PR target/67929
9318         * config/arm/arm.c (vfp3_const_double_for_bits): Rewrite.
9319         * config/arm/constraints.md (Dp): Update callsite.
9320         * config/arm/predicates.md (const_double_vcvt_power_of_two): Likewise.
9322 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
9324         * builtins.c (fold_builtin_load_exponent): Rename to...
9325         (fold_const_builtin_load_exponent): ...this and only handle
9326         constant arguments.
9327         (fold_builtin_2): Update accordingly.
9328         * match.pd: Add rules previously handled by fold_builtin_load_exponent.
9330 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
9332         * builtins.c (fold_builtin_logb): Rename to...
9333         (fold_const_builtin_logb): ...this and remove STRIP_NOPS call.
9334         (fold_builtin_significand): Rename to...
9335         (fold_const_builtin_significand): ...this and remove STRIP_NOPS call.
9336         (fold_builtin_1): Update accordingly.
9338 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
9340         * builtins.c (fold_builtin_fmin_fmax): Delete.
9341         (fold_builtin_2): Handle constant fmin and fmax arguments here.
9342         * match.pd: Add rules previously handled by fold_builtin_fmin_fmax.
9344 2015-10-27  Evandro Menezes  <e.menezes@samsung.com>
9346         * config/aarch64/aarch64-protos.h (cpu_addrcost_table): Split member
9347         for register extension into sign and zero register extension.
9348         * config/aarch64/aarch64.c (generic_addrcost_table): Infer values
9349         for sign and zero register extension.
9350         (cortexa57_addrcost_table): Likewise.
9351         (xgene1_addrcost_table): Likewise.
9353 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
9355         * fold-const.c (fold_minmax): Delete.
9356         (fold_binary_loc): Don't call it.
9357         * match.pd: Add rules previously handled by fold_minmax.
9359 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
9361         * builtins.c (fold_builtin_fma): Remove constant handling.
9362         (fold_builtin_3): Handle constant fma arguments here.
9364 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
9366         * builtins.c (fold_builtin_fabs): Remove constant handling.
9367         (fold_builtin_abs): Likewise.
9369 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
9371         * builtins.c (fold_builtin_copysign): Delete.
9372         (fold_builtin_2): Handle constant copysign arguments here.
9373         * match.pd: Add rules previously handled by fold_builtin_copysign.
9375 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
9377         * builtins.c (fold_builtin_signbit): Delete.
9378         (fold_builtin_2): Handle constant signbit arguments here.
9379         * match.pd: Add rules previously handled by fold_builtin_signbit.
9381 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
9383         * match.pd: Handle sqrt(x) cmp 0 specially.
9385 2015-10-27  Ilya Enkovich  <enkovich.gnu@gmail.com>
9387         * tree-vect-generic.c (expand_vector_operations_1): Check
9388         optab type before using it.
9390 2015-10-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9392         * config/aarch64/aarch64-protos.h
9393         (struct tune_params): Add autoprefetcher_model field.
9394         * config/aarch64/aarch64.c: Include params.h
9395         (generic_tunings): Specify autoprefetcher_model value.
9396         (cortexa53_tunings): Likewise.
9397         (cortexa57_tunings): Likewise.
9398         (cortexa72_tunings): Likewise.
9399         (thunderx_tunings): Likewise.
9400         (xgene1_tunings): Likewise.
9401         (aarch64_first_cycle_multipass_dfa_lookahead_guard): New function.
9402         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define.
9403         (aarch64_override_options_internal): Set
9404         PARAM_SCHED_AUTOPREF_QUEUE_DEPTH param.
9406 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
9408         * builtins.c (fold_builtin_exponent): Delete.
9409         (fold_builtin_2): Handle constant expN arguments here.
9410         * match.pd: Fold expN(logN(x)) -> x.
9412 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
9414         * builtins.c (fold_builtin_powi): Delete.
9415         (fold_builtin_2): Handle constant powi arguments here.
9416         * match.pd: Add rules previously handled by fold_builtin_powi.
9418 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
9420         * builtins.c (fold_builtin_pow): Delete in favor of...
9421         (fold_const_builtin_pow): ...this new function.  Only handle constant
9422         arguments.
9423         (fold_builtin_2): Update accordingly.
9424         * match.pd: Add rules previously handled by fold_builtin_pow.
9426 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
9428         * builtins.c (fold_builtin_hypot): Delete.
9429         (fold_builtin_2): Handle constant hypot arguments here.
9430         * match.pd: Fold hypot(x, 0) and hypot(0, x) to x.  Canonicalize
9431         hypot(x, x) to fabs(x)*sqrt(2).
9433 2015-10-27  Richard Sandiford  <richard.sandiford@arm.com>
9435         * gimple-match-head.c (maybe_push_res_to_seq): Use create_tmp_reg
9436         instead of make_ssa_name if not yet in SSA form.
9438 2015-10-27  Richard Biener  <rguenther@suse.de>
9440         * cfg.c (free_edge): Add function argument and use it instead of cfun.
9441         (clear_edges): Likewise.
9442         * cfg.h (clear_edges): Adjust prototype.
9443         * cfgexpand.c (pass_expand::execute): Adjust.
9444         * cfgloop.c (release_recorded_exits): Add function argument and use
9445         it instead of cfun.
9446         * cfgloop.h (release_recorded_exits): Adjust prototype.
9447         (loops_state_satisfies_p): Add overload with function argument.
9448         (loops_state_set): Likewise.
9449         (loops_state_clear): Likewise.
9450         (struct loop_iterator): Add function argument to constructor
9451         and iterator and use it instead of cfun.
9452         (FOR_EACH_LOOP_FN): New macro.
9453         (loop_optimizer_finalize): Add overload with function argument.
9454         * loop-init.c (loop_optimizer_init): Adjust.
9455         (fix_loop_structure): Likewise.
9456         (loop_optimizer_finaliz): Add function argument and use it
9457         instead of cfun.
9458         * tree-cfg.c (delete_tree_cfg_annotations): Likewise.
9459         * tree-cfg.h (delete_tree_cfg_annotations): Adjust prototype.
9460         * cgraph.c (release_function_body): Do not push/pop cfun.
9461         * final.c (rest_of_clean_state): Adjust.
9462         * graphite.c (graphite_finalize): Likewise.
9463         * tree-ssa-copy.c (fini_copy_prop): Likewise.
9464         * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
9465         * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Likewise.
9466         (tree_unroll_loops_completely): Likewise.
9467         (pass_complete_unrolli::execute): Likewise.
9468         * tree-ssa-loop-niter.c (free_numbers_of_iterations_estimates):
9469         Add function argument and use it instead of cfun.
9470         * tree-ssa-loop-niter.h (free_numbers_of_iterations_estimates):
9471         Adjust prototype.
9472         * tree-ssa-loop.c (tree_ssa_loop_done): Adjust.
9473         * tree-ssa.c (delete_tree_ssa): Add function argument and use it
9474         instead of cfun.
9475         * tree-ssa.h (delete_tree_ssa): Adjust prototype.
9476         * tree-ssanames.c (fini_ssanames): Add function argument and use it
9477         instead of cfun.
9478         * tree-ssanames.c (fini_ssanames): Adjust prototype.
9479         * tree-vrp.c (execute_vrp): Adjust.
9480         * value-prof.c (free_histograms): Add function argument and use it
9481         instead of cfun.
9482         * value-prof.h (free_histograms): Adjust prototype.
9484 2015-10-27  Thomas Schwinge  <thomas@codesourcery.com>
9486         * tree.h (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES)
9487         (OACC_KERNELS_BODY, OACC_KERNELS_CLAUSES, OACC_KERNELS_COMBINED)
9488         (OACC_PARALLEL_COMBINED): Don't define macros.  Adjust all users.
9490 2015-10-27  Tom de Vries  <tom@codesourcery.com>
9492         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Add and use var
9493         field_type.
9495 2015-10-27  Bin Cheng  <bin.cheng@arm.com>
9497         * loop-invariant.c (struct def): New field can_prop_to_addr_uses.
9498         (inv_can_prop_to_addr_use): New function.
9499         (record_use): Call can_prop_to_addr_uses, set the new field.
9500         (get_inv_cost): Count cost if inv can't be propagated into its
9501         address uses.
9503 2015-10-26  Doug Evans  <dje@google.com>
9505         * config/linux.h (INCLUDE_DEFAULTS): Add INCLUDE_DEFAULTS_MUSL_LOCAL.
9507 2015-10-26  Eric Botcazou  <ebotcazou@adacore.com>
9509         * match.pd (fold_widened_comparison): Apply simplifications to all
9510         integral types.
9512 2015-10-26  Simon Dardis  <simon.dardis@imgtec.com>
9514         * target.def (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): New hook.
9515         * doc/tm.texi.in (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): Document.
9516         * doc/tm.texi: Regenerated.
9517         * reorg.c (dbr_schedule): Use new hook.
9518         * config/mips/mips.c (mips_no_speculation_in_delay_slots_p): New.
9520 2015-10-26  Jeff Law  <law@redhat.com>
9522         PR tree-optimization/68013
9523         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
9524         Make sure the first block in the path is in VISITED_BBs.
9526 2015-10-26  Richard Biener  <rguenther@suse.de>
9527         Dominik Vogt  <vogt@linux.vnet.ibm.com>
9529         PR middle-end/67443
9530         * alias.c (ao_ref_from_mem): Remove promoted subreg handling.
9531         Properly prune ref->ref for accesses outside of ref.
9533 2015-10-26  Richard Sandiford  <richard.sandiford@arm.com>
9535         * gimple-fold.c (replace_stmt_with_simplification): Don't allow
9536         new statements to be inserted if inplace.  Allow calls to have
9537         nonempty sequences.
9539 2015-10-26  Richard Biener  <rguenther@suse.de>
9541         * tree-object-size.c: Remove builtins.h include, include tree-cfg.h.
9542         (do_valueize): New function.
9543         (pass_object_sizes::execute): Use gimple_fold_stmt_to_constant and
9544         replace_uses_by.
9545         * tree-ssa-threadedge.c: Remove builtins.h include, include
9546         gimple-fold.h
9547         (fold_assignment_stmt): Remove.
9548         (threadedge_valueize): New function.
9549         (record_temporary_equivalences_from_stmts): Use
9550         gimple_fold_stmt_to_constant_1, note additional cleanup
9551         opportunities.
9553 2015-10-26  Richard Biener  <rguenther@suse.de>
9555         * match.pd ((A & ~B) - (A & B) -> (A ^ B) - B): Add missing :c.
9556         ( (X & ~Y) | (~X & Y) -> X ^ Y): Remove redundant :c.
9558 2015-10-26  Alan Hayward <alan.hayward@arm.com>
9560         * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
9561         VEC_COND_EXPR types.
9563 2015-10-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9565         * auto-inc-dec.c (insert_move_insn_before): Delete.
9566         (attempt_change): Remember to cost the simple move in the
9567         FORM_PRE_ADD and FORM_POST_ADD cases.
9569 2015-10-26  Kaz Kojima  <kkojima@gcc.gnu.org>
9571         PR target/68091
9572         * config/sh/sh.c (sh_vector_mode_supported_p): Use
9573         TARGET_SHMEDIA_FPU instead of TARGET_FPU_ANY.
9575 2015-10-26  Tom de Vries  <tom@codesourcery.com>
9577         * tree-ssa-structalias.c (make_restrict_var_constraints): New function,
9578         factored out of ...
9579         (intra_create_variable_infos): ... here.
9581 2015-10-26  Tom de Vries  <tom@codesourcery.com>
9583         * tree-ssa-structalias.c (intra_create_variable_infos): Add
9584         restrict_pointer_p and recursive_restrict_p variables.
9586 2015-10-26  Tom de Vries  <tom@codesourcery.com>
9588         * tree-ssa-structalias.c (intra_create_variable_infos): Inline
9589         get_vi_for_tree call.
9591 2015-10-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9593         PR middle-end/67989
9594         * optabs.c (expand_atomic_compare_and_swap): Handle case when
9595         ptarget_oval or ptarget_bool are const0_rtx.
9597 2015-10-26  Christian Bruel  <christian.bruel@st.com>
9599         * function.h (MINIMUM_METHOD_BOUNDARY): New macro.
9600         * cp/decl.c (grokfndecl): Set DECL_ALIGN with MINIMUM_METHOD_BOUNDARY.
9601         * cp/method.c (implicitly_declare_fn): Likewise.
9602         * cp/lambda.c (maybe_add_lambda_conv_op): Likewise. Remove VBIT setting.
9603         * java/class.c (add_method_1): Likewise.
9605 2015-10-26  Richard Biener  <rguenther@suse.de>
9607         * alloc-pool.h (base_pool_allocator): Use placement new.
9608         (base_pool_allocator::remove): Likewise.  Compute size outside of
9609         flag_checking.
9611 2015-10-26  Richard Sandiford  <richard.sandiford@arm.com>
9613         * builtins.c (do_real_to_int_conversion): New function.
9614         (fold_fixed_mathfn, fold_builtin_int_roundingfn): Delete.
9615         (fold_builtin_1): Handle constant {i,l,ll}{ceil,floor,round}{f,,l}
9616         arguments here.
9617         * match.pd: Add rules previously handled by fold_fixed_mathfn
9618         and fold_builtin_int_roundingfn.
9620 2015-10-26  Richard Sandiford  <richard.sandiford@arm.com>
9622         * match.pd: Use macros to define built-in operator lists.
9624 2015-10-20  Richard Sandiford  <richard.sandiford@arm.com>
9625             Richard Biener  <rguenther@suse.de>
9627         * genmatch.c (dt_simplify::gen): Skip captures that are
9628         part of the result.
9629         (parser::parse_expr): Allow captures in results too.
9630         * builtins.c (fold_builtin_cexp): Delete.
9631         (fold_builtin_1): Handle constant cexp arguments here.
9632         * match.pd: Fold cexp(x+yi) to exp(x) * cexpi(y).
9634 2015-10-26  Mikhail Maltsev  <maltsevm@gmail.com>
9636         * alloc-pool.h (base_pool_allocator::initialize, ::allocate): Remove
9637         conditional compilation.
9638         (base_pool_allocator::remove): Use flag_checking.
9640 2015-10-25  John David Anglin  <danglin@gcc.gnu.org>
9642         * config/pa/som.h (EH_FRAME_THROUGH_COLLECT2): Define.
9644         PR middle-end/68079
9645         * dojump.c (do_compare_and_jump): Canonicalize both function and
9646         method types.
9648 2015-10-25  Uros Bizjak  <ubizjak@gmail.com>
9650         PR target/68084
9651         * config/i386/i386.c (ix86_md_asm_adjust) [case 'a']: Use NE code
9652         for =@ccae.
9654 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
9656         PR ipa/pr67600
9657         * ipa-polymorphic-call.c
9658         (ipa_polymorphic_call_context::get_dynamic_type): Do not confuse
9659         instance offset with offset of outer type.
9661 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
9663         * fold-const.c (operand_equal_p): Handle VIEW_CONVERT_EXPR.
9665 2015-10-23  Caroline Tice  <cmtice@google.com>
9667         (from Richard Biener
9668         * tree.c (int_cst_hasher::hash):  Replace XOR with more efficient
9669         call to iterative_hash_host_wide_int.
9671 2015-10-23  David Edelsohn  <dje.gcc@gmail.com>
9673         * config.gcc (powerpc-ibm-aix[6789]) [default_use_cxa_atexit]:
9674         Define as yes.
9676 2015-10-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
9678         * tree-vect-generic.c (expand_vector_operations_1): Check
9679         optab exists before use it.
9681 2015-10-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
9683         * tree-vect-generic.c (expand_vector_condition): Avoid
9684         uninitialized variable warning.
9686 2015-10-23  Jeff Law  <law@redhat.com>
9688         * passes.c (execute_function_todo): Do not call flush_ssaname_freelist
9689         here.  Instead...
9690         (execute_todo): Call it here.
9691         * tree-ssanames.c (make_ssa_name_fn): Unconditionally gather reuse
9692         statistics
9693         (pass_release_ssa_names::execute): Do not call flusH_ssaname_freelist.
9695 2015-10-23  Gregor Richards  <gregor.richards@uwaterloo.ca>
9696             Szabolcs Nagy  <szabolcs.nagy@arm.com>
9698         * config.gcc (enable_secureplt): Add *-linux*-musl*.
9700 2015-10-23  Jeff Law  <law@redhat.com>
9702         PR tree-optimization/67830
9703         * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
9704         Explicitly verify the mask has no bits outside the type of
9705         the innermost operands.
9707 2015-10-23  Gregor Richards  <gregor.richards@uwaterloo.ca>
9708             Szabolcs Nagy  <szabolcs.nagy@arm.com>
9710         * config/rs6000/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
9711         (MUSL_DYNAMIC_LINKER64): Define.
9712         (GNU_USER_DYNAMIC_LINKER32): Update.
9713         (GNU_USER_DYNAMIC_LINKER64): Update.
9714         (CHOOSE_DYNAMIC_LINKER): Update.
9716         * config/rs6000/sysv4.h (GNU_USER_DYNAMIC_LINKER): Update.
9717         (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER_E,)
9718         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
9719         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
9720         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
9721         (CHOOSE_DYNAMIC_LINKER): Update.
9722         (INCLUDE_DEFAULTS): Redefine.
9724         * config/rs6000/sysv4le.h (MUSL_DYNAMIC_LINKER_E): Define.
9726 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
9728         * fold-const.c (operand_equal_p): Do not compare TYPE_MODE when
9729         comparing addresses.
9731 2015-10-23  Jan Hubicka  <hubicka@ucw.cz>
9733         * fold-const.c (operand_equal_p): Handle matching of vector
9734         constructors.
9736 2015-10-23  David Edelsohn  <dje.gcc@gmail.com>
9738         * doc/install.texi (*-ibm-aix*): Additional information for AIX 7.1.
9740 2015-10-23  Steve Ellcey  <sellcey@imgtec.com>
9741             Andrew Pinski  <apinski@cavium.com>
9743         PR rtl-optimization/67736
9744         * combine.c (simplify_comparison): Use gen_lowpart_or_truncate instead
9745         of gen_lowpart.
9747 2015-10-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
9749         PR middle-end/68066
9750         * tree.c (build_truth_vector_type): Support BLK mode
9751         returned for boolean vector.
9753 2015-10-23  Alan Hayward <alan.hayward@arm.com>
9755         PR tree-optimization/65947
9756         * tree-vect-loop.c
9757         (vect_is_simple_reduction_1): Find condition reductions.
9758         (vect_model_reduction_cost): Add condition reduction costs.
9759         (get_initial_def_for_reduction): Add condition reduction initial var.
9760         (vect_create_epilog_for_reduction): Add condition reduction epilog.
9761         (vectorizable_reduction): Condition reduction support.
9762         * tree-vect-stmts.c (vectorizable_condition): Add vect reduction arg
9763         * doc/sourcebuild.texi (Vector-specific attributes): Document
9764         vect_max_reduc
9766 2015-10-23  Richard Biener  <rguenther@suse.de>
9768         * Makefile.in (build/genmatch.o): Properly depend on is-a.h, tree.def
9769         and builtins.def.
9771 2015-10-23  Richard Biener  <rguenther@suse.de>
9772             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
9774         * fold-const.c (fold_binary_loc) : Move Fold (A & ~B) - (A & B)
9775         into (A ^ B) - B to match.pd
9776         Move (X & ~Y) | (~X & Y) is X ^ Y to match.pd.
9778         * match.pd (minus (bit_and:cs @0 (bit_not @1)) (bit_and:s @0 @1)):
9779         New simplifier.
9780         (minus (bit_and:s @0 INTEGER_CST@2) (bit_and:s @0 INTEGER_CST@1)):
9781         New simplifier.
9782         (minus (bit_and:s @0 @1) (bit_and:cs @0 (bit_not @1))):
9783         New simplifier.
9784         (bit_ior:c (bit_and:c @0 (bit_not @1)) (bit_and:c (bit_not @0) @1)):
9785         New simplifier.
9786         (bit_ior:c (bit_and @0 INTEGER_CST@2) (bit_and (bit_not @0)
9787         INTEGER_CST@1)): New simplifier.
9789 2015-10-23  Richard Sandiford  <richard.sandiford@arm.com>
9791         * builtins.c (integer_valued_real_p): Move to fold-const.c.
9792         (fold_trunc_transparent_mathfn, fold_builtin_trunc, fold_builtin_floor)
9793         (fold_builtin_ceil, fold_builtin_round): Delete.
9794         (fold_builtin_1): Handle constant trunc, floor, ceil and round
9795         arguments here.
9796         * convert.c (convert_to_real): Remove narrowing of rounding
9797         functions.
9798         * fold-const.h (integer_valued_real_unary_p)
9799         (integer_valued_real_binary_p, integer_valued_real_call_p)
9800         (integer_valued_real_single_p, integer_valued_real_p): Declare.
9801         * fold-const.c (tree_single_nonnegative_warnv_p): Move
9802         name_registered_for_update_p check to SSA_NAME case statement.
9803         Don't call tree_simple_nonnegative_warnv_p for SSA names.
9804         (integer_valued_real_unary_p, integer_valued_real_binary_p)
9805         (integer_valued_real_call_p, integer_valued_real_single_p)
9806         (integer_valued_real_invalid_p): New functions.
9807         (integer_valued_real_p): Move from fold-const.c and rework
9808         to call the functions above.  Handle SSA names.
9809         * gimple-fold.h (gimple_stmt_integer_valued_real_p): Declare.
9810         * gimple-fold.c (gimple_assign_integer_valued_real_p)
9811         (gimple_call_integer_valued_real_p, gimple_phi_integer_valued_real_p)
9812         (gimple_stmt_integer_valued_real_p): New functions.
9813         * match.pd: Fold f(f(x))->f(x) for fp->fp rounding functions f.
9814         Fold f(x)->x for the same f if x is known to be integer-valued.
9815         Fold f(extend(x))->extend(f'(x)) if doing so doesn't affect
9816         the result.  Canonicalize floor(x) as trunc(x) if x is
9817         nonnegative.
9819 2015-10-23  Tom de Vries  <tom@codesourcery.com>
9821         * tree-ssa-structalias.c (intra_create_variable_infos): Use
9822         make_constraint_from.
9824 2015-10-23  Tom de Vries  <tom@codesourcery.com>
9826         * tree-ssa-structalias.c (create_variable_info_for_1): Add missing
9827         setting of is_full_var in case of a single field.
9829 2015-10-22  Martin Sebor  <msebor@redhat.com>
9831         PR driver/68043
9832         * config/i386/i386.opt: Add missing periods to the ends of sentences.
9833         * config/msp430/msp430.opt: Same.
9835 2015-10-21  David Wohlferd  <dw@LimeGreenSocks.com>
9837         * doc/extend.exp (Global Register Variables): Rewrite.
9839 2015-10-22  Jeff Law  <law@redhat.com>
9841         * genattrtab.c (main): If we do not have any annul-true or annul-false
9842         slots, then write out a dummy eligible_for_annul_true or
9843         eligible_for_annul_false as needed.
9845 2015-10-22  Nick Clifton  <nickc@redhat.com>
9847         * config/msp430/msp430.opt: Add -msilicon-errata and
9848         -msilicon-errata-warn.
9849         * config/msp430/msp430.h (ASM_SPEC): Pass new options on to
9850         assembler.
9851         * doc/invoke.texi: Document new options.
9853 2015-10-22  Richard Biener  <rguenther@suse.de>
9855         PR tree-optimization/58497
9856         * tree-vect-generic.c (ssa_uniform_vector_p): New helper.
9857         (expand_vector_operations_1): Use it.  Lower operations on
9858         all uniform vectors to scalar operations if the HW supports it.
9860 2015-10-22  Richard Biener  <rguenther@suse.de>
9862         PR tree-optimization/19049
9863         PR tree-optimization/65962
9864         * tree-vect-data-refs.c (vect_analyze_group_access_1): Fall back
9865         to strided accesses if single-element interleaving doesn't work.
9867 2015-10-22  Richard Biener  <rguenther@suse.de>
9869         PR middle-end/68046
9870         PR middle-end/61893
9871         * optabs.c (emit_libcall_block_1): Allow a NULL_RTX equiv.
9872         (expand_binop): For -ftrapv optabs do not record an REG_EQUAL note.
9873         (expand_unop): Likewise.
9875 2015-10-22  Richard Biener  <rguenther@suse.de>
9877         * fold-const.c (fold_addr_of_array_ref_difference): Properly
9878         convert operands before folding a MINUS_EXPR.
9879         (fold_binary_loc): Move simplification of MINUS_EXPR on
9880         converted POINTER_PLUS_EXPRs ...
9881         * match.pd: ... here.
9883 2015-10-22  Richard Sandiford  <richard.sandiford@arm.com>
9885         * builtins.c (fold_builtin_tan): Delete.
9886         (fold_builtin_1): Handle constant tan arguments here.
9887         * match.pd: Simplify (tan (atan x)) to x.
9889 2015-10-22  Richard Sandiford  <richard.sandiford@arm.com>
9891         * builtins.c (fold_builtin_cproj): Delete.
9892         (fold_builtin_1): Handle constant arguments here.
9893         (build_complex_cproj): Move and rename to...
9894         * tree.c: (build_complex_inf): ...this.
9895         * tree.h (build_complex_inf): Declare.
9896         * match.pd: Fold cproj(x)->x if x has no infinity.
9897         Use build_complex_inf for existing cproj rules.
9899 2015-10-22  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9901         PR target/68015
9902         * config/s390/s390.md (mov<mode>cc): Emit compare only if we don't
9903         already have a comparison result.
9905 2015-10-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9907         PR target/63304
9908         * config/aarch64/aarch64.c (aarch64_nopcrelative_literal_loads): New.
9909         (aarch64_expand_mov_immediate): Use aarch64_nopcrelative_literal_loads.
9910         (aarch64_classify_address): Likewise.
9911         (aarch64_secondary_reload): Likewise.
9912         (aarch64_override_options_after_change_1): Adjust.
9913         * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
9914         Use aarch64_nopcrelative_literal_loads.
9915         (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
9916         * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
9917         Declare.
9919 2015-10-21  Martin Sebor  <msebor@redhat.com>
9921         PR driver/68043
9922         * opts.c (undocumented_msg, use_diagnosed_msg): New globals.
9923         (print_filtered_help): Reference aliased option's name and encourage
9924         readers to use it in preference to the alias if the former is not
9925         documented.  Mention when using an option is diagnosed.
9926         * gcc.c (display_help): End each sentence with a period.
9928         * common.opt: End each sentence that describes an option with
9929         a period.
9930         * config/aarch64/aarch64.opt: Same.
9931         * config/alpha/alpha.opt: Same.
9932         * config/arc/arc.opt: Same.
9933         * config/arm/arm.opt: Same.
9934         * config/avr/avr.opt: Same.
9935         * config/bfin/bfin.opt: Same.
9936         * config/c6x/c6x.opt: Same.
9937         * config/cr16/cr16.opt: Same.
9938         * config/cris/cris.opt: Same.
9939         * config/cris/linux.opt: Same.
9940         * config/darwin.opt: Same.
9941         * config/epiphany/epiphany.opt: Same.
9942         * config/fr30/fr30.opt: Same.
9943         * config/frv/frv.opt: Same.
9944         * config/ft32/ft32.opt: Same.
9945         * config/g.opt: Same.
9946         * config/h8300/h8300.opt: Same.
9947         * config/i386/cygming.opt: Same.
9948         * config/i386/djgpp.opt: Same.
9949         * config/i386/i386.opt: Same.
9950         * config/i386/interix.opt: Same.
9951         * config/i386/mingw-w64.opt: Same.
9952         * config/i386/mingw.opt: Same.
9953         * config/ia64/ia64.opt: Same.
9954         * config/ia64/ilp32.opt: Same.
9955         * config/iq2000/iq2000.opt: Same.
9956         * config/linux.opt: Same.
9957         * config/lm32/lm32.opt: Same.
9958         * config/lynx.opt: Same.
9959         * config/m32c/m32c.opt: Same.
9960         * config/m32r/m32r.opt: Same.
9961         * config/m68k/ieee.opt: Same.
9962         * config/m68k/m68k.opt: Same.
9963         * config/mcore/mcore.opt: Same.
9964         * config/mep/mep.opt: Same.
9965         * config/microblaze/microblaze.opt: Same.
9966         * config/mips/mips.opt: Same.
9967         * config/mmix/mmix.opt: Same.
9968         * config/mn10300/mn10300.opt: Same.
9969         * config/moxie/moxie.opt: Same.
9970         * config/msp430/msp430.opt: Same.
9971         * config/nios2/elf.opt: Same.
9972         * config/nios2/nios2.opt: Same.
9973         * config/nvptx/nvptx.opt: Same.
9974         * config/pa/pa-hpux.opt: Same.
9975         * config/pa/pa-hpux1010.opt: Same.
9976         * config/pa/pa-hpux1111.opt: Same.
9977         * config/pa/pa-hpux1131.opt: Same.
9978         * config/pa/pa.opt: Same.
9979         * config/pa/pa64-hpux.opt: Same.
9980         * config/pdp11/pdp11.opt: Same.
9981         * config/rl78/rl78.opt: Same.
9982         * config/rs6000/476.opt: Same.
9983         * config/rs6000/aix64.opt: Same.
9984         * config/rs6000/darwin.opt: Same.
9985         * config/rs6000/linux64.opt: Same.
9986         * config/rs6000/rs6000.opt: Same.
9987         * config/rs6000/sysv4.opt: Same.
9988         * config/s390/s390.opt: Same.
9989         * config/s390/tpf.opt: Same.
9990         * config/sh/sh.opt: Same.
9991         * config/sol2.opt: Same.
9992         * config/sparc/long-double-switch.opt: Same.
9993         * config/sparc/sparc.opt: Same.
9994         * config/spu/spu.opt: Same.
9995         * config/stormy16/stormy16.opt: Same.
9996         * config/tilegx/tilegx.opt: Same.
9997         * config/tilepro/tilepro.opt: Same.
9998         * config/v850/v850.opt: Same.
9999         * config/vax/vax.opt: Same.
10000         * config/visium/visium.opt: Same.
10001         * config/vms/vms.opt: Same.
10002         * config/vxworks.opt: Same.
10003         * config/xtensa/xtensa.opt: Same.
10005 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
10006             Sebastian Pop  <s.pop@samsung.com>
10008         * graphite-scop-detection.c (parameter_index_in_region): Update call to
10009         invariant_in_sese_p_rec.
10010         * graphite-sese-to-poly.c (extract_affine): Same.
10011         * sese.c (invariant_in_sese_p_rec): Pass in an extra
10012         parameter has_vdefs.
10013         (scalar_evolution_in_region): Return chrec_dont_know when the scalar
10014         variable depends on virtual definitions in the current region.
10015         * sese.h (invariant_in_sese_p_rec): Update declaration.
10017 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
10018             Sebastian Pop  <s.pop@samsung.com>
10020         * graphite-scop-detection.c (build_scops): Do not handle scops
10021         with more than PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP arrays.
10022         * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP): New.
10024 2015-10-21  Mikhail Maltsev  <maltsevm@gmail.com>
10026         * config.in: Regenerate.
10027         * configure: Regenerate.
10028         * configure.ac (CHECKING_P): Define.
10029         * system.h: Use CHECKING_P.
10031 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
10033         PR ipa/67056
10034         * ipa-polymorphic-call.c (possible_placement_new): If cur_offset
10035         is negative we don't know the type.
10036         (check_stmt_for_type_change): Skip constructors of non-polymorphic
10037         types as those won't help devirutalization.
10039 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
10041         * fold-const.c (operand_equal_p): Add code matching empty constructors.
10043 2015-10-21  Eric Botcazou  <ebotcazou@adacore.com>
10045         * tree.def (CEIL_DIV_EXPR, FLOOR_DIV_EXPR, ROUND_DIV_EXPR): Tweak
10046         comments.
10047         (TRUNC_MOD_EXPR, CEIL_MOD_EXPR, FLOOR_MOD_EXPR, ROUND_MOD_EXPR):
10048         Add comments on sign of the result.
10049         * fold-const.c (tree_binary_nonnegative_warnv_p) <FLOOR_MOD_EXPR>:
10050         Recurse on operand #1 instead of operand #0.
10051         <CEIL_MOD_EXPR>: Do not recurse.
10052         <ROUND_MOD_EXPR>: Likewise.
10054 2015-10-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10056         * cfgrtl.c (pass_free_cfg::execute): Adjust.
10057         * final.c (dbr_sequence_length): Always define.
10058         (shorten_branches): Adjust.
10059         * genattr-common.c (main): Always define DELAY_SLOTS.
10060         * genattr.c (main): Unconditionally declare functions and define
10061         macros related to delay slots.
10062         * genattrtab.c (write_eligible_delay): Adjust.
10063         (main): Always write out delay slot functions.
10064         * opts.c (default_options_table): Adjust.
10065         * reorg.c (redirect_with_delay_slots_safe_p): Likewise.
10066         (redirect_with_delay_list_safe_p): Likewise.
10067         (fill_simple_delay_slots): Likewise.
10068         (fill_slots_from_thread): Likewise.
10069         (make_return_insns): Likewise.
10070         (dbr_schedule): Likewise.
10071         (rest_of_handle_delay_slots): Likewise.
10072         (pass_delay_slots::gate): Likewise.
10073         * toplev.c (process_options): Likewise.
10075 2015-10-21  Richard Henderson  <rth@redhat.com>
10077         * targhooks.c (default_addr_space_pointer_mode): Remove check
10078         for generic address space.
10079         (default_addr_space_address_mode): Likewise.
10080         (default_addr_space_valid_pointer_mode): Likewise.
10081         (default_addr_space_legitimate_address_p): Likewise.
10082         (default_addr_space_legitimize_address): Likewise.
10083         * target.def (addr_space.pointer_mode): Update documentation
10084         of default behavior.
10085         (addr_space.address_mode): Likewise.
10086         * tm.texi: Update.
10088         * expr.c (expand_expr_real_2): Use convert_modes on disjoint
10089         address spaces.
10091 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
10093         * builtins.c (fold_builtin_cabs): Delete.
10094         (fold_builtin_1): Update accordingly.  Handle constant arguments here.
10095         * match.pd: Add rules previously handled by fold_builtin_cabs.
10097 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
10099         * fold-const.h (fold_strip_sign_ops): Delete.
10100         * fold-const.c (fold_strip_sign_ops): Likewise.
10101         (fold_unary_loc, fold_binary_loc): Remove calls to it.
10102         * builtins.c (fold_builtin_cos, fold_builtin_cosh)
10103         (fold_builtin_ccos): Delete.
10104         (fold_builtin_pow): Don't call fold_strip_sign_ops.
10105         (fold_builtin_hypot, fold_builtin_copysign): Likewise.
10106         Remove fndecl argument.
10107         (fold_builtin_1): Update calls accordingly.  Handle constant
10108         cos, cosh, ccos and ccosh here.
10110 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
10112         * doc/invoke.texi (-fdump-tree-backprop, -fssa-backprop): Document.
10113         * Makefile.in (OBJS): Add gimple-ssa-backprop.o.
10114         * common.opt (fssa-backprop): New option.
10115         * fold-const.h (negate_mathfn_p): Declare.
10116         * fold-const.c (negate_mathfn_p): Make public.
10117         * timevar.def (TV_TREE_BACKPROP): New.
10118         * tree-pass.h (make_pass_backprop): Declare.
10119         * passes.def (pass_backprop): Add.
10120         * gimple-ssa-backprop.c: New file.
10122 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
10123             Sebastian Pop  <s.pop@samsung.com>
10125         * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard):
10126         Do not call create_empty_if_region_on_edge when cond_expr is true.
10127         (translate_isl_ast_node_for): Check whether a guard has been generated.
10129 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
10131         * graphite-poly.h (struct dr_info): Added invalid_alias_set number.
10132         (operator=): Removed.
10133         (dr_info): Make alias_set number the last argument with default
10134         value of invalid_alias_set.
10135         * graphite-sese-to-poly.c (build_scop_drs): Update constructor
10136         of dr_info.
10137         (rewrite_reductions_out_of_ssa): Iterate only through the
10138         basic blocks which are inside region.
10139         (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
10140         * sese.h (struct sese_l): Removed assignment operator.
10141         (split_region_for_bb): Removed dead code.
10143 2015-10-21  Aditya Kumar  <aditya.k7@samsung.com>
10145         * graphite-poly.h (struct dr_info): Removed conversion constructor.
10146         (struct scop): Renamed scop::region to scop::scop_info
10147         (scop_set_region): Same.
10148         (SCOP_REGION): Removed
10149         (SCOP_CONTEXT): Removed.
10150         (POLY_SCOP_P): Removed.
10151         * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
10152         Rename scop->region to scop->scop_info.
10153         (add_parameters_to_ivs_params): Same.
10154         (graphite_regenerate_ast_isl): Same.
10155         * graphite-poly.c (new_scop): Same.
10156         (free_scop): Same.
10157         (print_scop_params): Same.
10158         * graphite-scop-detection.c (scop_detection::remove_subscops): Same.
10159         (scop_detection::remove_intersecting_scops): Use pointer to sese_l.
10160         (dot_all_scops_1): Rename scop->region to scop->scop_info.
10161         (scop_detection::nb_pbbs_in_loops): Same.
10162         (find_scop_parameters): Same.
10163         (try_generate_gimple_bb): Same.
10164         (gather_bbs::before_dom_children): Same.
10165         (gather_bbs::after_dom_children): Same.
10166         (build_scops): Same.
10167         * graphite-sese-to-poly.c (build_scop_scattering): Same.
10168         (extract_affine_chrec): Same.
10169         (extract_affine): Same.
10170         (set_scop_parameter_dim): Same.
10171         (build_loop_iteration_domains): Same.
10172         (create_pw_aff_from_tree): Same.
10173         (add_param_constraints): Same.
10174         (build_scop_iteration_domain): Same.
10175         (build_scop_drs): Same.
10176         (analyze_drs_in_stmts): Same.
10177         (insert_out_of_ssa_copy_on_edge): Same.
10178         (rewrite_close_phi_out_of_ssa):Same.
10179         (rewrite_reductions_out_of_ssa):Same.
10180         (handle_scalar_deps_crossing_scop_limits):Same.
10181         (rewrite_cross_bb_scalar_deps):Same.
10182         (rewrite_cross_bb_scalar_deps_out_of_ssa):Same.
10183         (build_poly_scop):Same.
10184         (build_alias_set): Use pointer to dr_info.
10185         * graphite.c (print_graphite_scop_statistics):
10186         (graphite_transform_loops):
10187         * sese.h (struct sese_l): Remove conversion constructor.
10189 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
10191         PR middle-end/67966
10192         * tree.c (verify_type): Verify that TYPE_MODE match
10193         between TYPE_CANONICAL and type.
10194         * expr.c (store_expr_with_bounds): Revert my previous change.
10195         * expmed.c (store_bit_field_1): Revert prevoius change.
10196         * gimple-expr.c (useless_type_conversion_p): Require TYPE_MODE
10197         to match for all types.
10199 2015-10-21  Nathan Sidwell  <nathan@codesourcery.com>
10201         * omp-low.c (check_omp_nesting_restrictions): Check OpenACC loop
10202         nesting.
10204 2015-10-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
10206         * doc/tm.texi: Regenerated.
10207         * doc/tm.texi.in (TARGET_VECTORIZE_GET_MASK_MODE): New.
10208         * stor-layout.c (layout_type): Use mode to get vector mask size.
10209         * target.def (get_mask_mode): New.
10210         * targhooks.c (default_get_mask_mode): New.
10211         * targhooks.h (default_get_mask_mode): New.
10212         * tree-vect-stmts.c (get_same_sized_vectype): Add special case
10213         for boolean vector.
10214         * tree.c (MAX_BOOL_CACHED_PREC): New.
10215         (nonstandard_boolean_type_cache): New.
10216         (build_nonstandard_boolean_type): New.
10217         (make_vector_type): Vector mask has no canonical type.
10218         (build_truth_vector_type): New.
10219         (build_same_sized_truth_vector_type): New.
10220         (truth_type_for): Support vector masks.
10221         * tree.h (VECTOR_BOOLEAN_TYPE_P): New.
10222         (build_truth_vector_type): New.
10223         (build_same_sized_truth_vector_type): New.
10224         (build_nonstandard_boolean_type): New.
10225         * tree-cfg.c (verify_gimple_comparison) Require boolean
10226         vector type for vector comparison.
10227         (verify_gimple_assign_ternary): Likewise.
10228         * optabs.c (expand_vec_cond_expr): Accept boolean vector as
10229         condition operand.
10230         * tree-vect-stmts.c (vectorizable_condition): Use boolean
10231         vector type for vector comparison.
10232         * tree-vect-generic.c (elem_op_func): Add new operand to hold
10233         vector type.
10234         (do_unop): Adjust to modified function type.
10235         (do_binop): Likewise.
10236         (do_plus_minus): Likewise.
10237         (do_negate); Likewise.
10238         (expand_vector_piecewise): Likewise.
10239         (do_cond): Likewise.
10240         (do_compare): Use comparison instead of condition.
10241         (expand_vector_divmod): Use boolean vector type for comparison.
10242         (expand_vector_operations_1): Skip scalar mask operations.
10244 2015-10-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
10246         * omp-low.c (simd_clone_create): Set in_other_partition
10247         for created clones.
10249 2015-10-21  David Wohlferd  <dw@LimeGreenSocks.com>
10251         * doc/extend.exp (Local Register Variables): Rewrite.
10253 2015-10-21  Richard Sandiford  <richard.sandiford@arm.com>
10255         * match.pd: Add rules to simplify ccos, ccosh, hypot, copysign
10256         and x*x in cases where the operands are sign ops.  Extend these
10257         rules to handle copysign as a sign op (including for cos, cosh
10258         and pow, which already treated negate and abs as sign ops).
10260 2015-10-21  Uros Bizjak  <ubizjak@gmail.com>
10262         PR target/68018
10263         * config/i386/i386.c (ix86_compute_frame_layout): Realign the stack
10264         for 64-bit MS_ABI targets also when default incoming stack boundary
10265         is overriden.
10267 2015-10-21  Richard Biener  <rguenther@suse.de>
10269         * tree-ssa-sccvn.c (cond_stmts_equal_p): Compare two GIMPLE
10270         cond stmts, enhanced and split out from ...
10271         (vn_phi_eq): ... here.
10273 2015-10-21  Richard Biener  <rguenther@suse.de>
10275         PR middle-end/68031
10276         * fold-const.c: Include tree-ssa-operands.h and tree-into-ssa.h.
10277         (tree_ssa_name_nonnegative_warnv_p): Fold into ...
10278         (tree_single_nonnegative_warnv_p): ... here.  For SSA names
10279         make sure they are not registered for update.
10281 2015-10-21  Richard Biener  <rguenther@suse.de>
10283         PR tree-optimization/68026
10284         * tree-ssa-ccp.c (get_value_for_expr): Zero-extend mask for
10285         unsigned VARYING values.
10287 2015-10-21  Maxim Ostapenko  <m.ostapenko@partner.samsung.com>
10289         * asan.c (asan_emit_stack_protection): Don't pass local stack to
10290         asan_stack_malloc_[n] anymore. Check if asan_stack_malloc_[n] returned
10291         NULL and use local stack than.
10292         (asan_finish_file): Insert __asan_version_mismatch_check_v[n] call
10293         in addition to __asan_init.
10294         * sanitizer.def (BUILT_IN_ASAN_INIT): Rename to __asan_init.
10295         (BUILT_IN_ASAN_VERSION_MISMATCH_CHECK): Add new builtin call.
10296         * asan.h (asan_intercepted_p): Handle new string builtins.
10297         * ubsan.c (ubsan_use_new_style_p): New function.
10298         (ubsan_instrument_float_cast): If location is unknown, assign
10299         input_location to loc. Propagate loc to ubsan_create_data if
10300         ubsan_use_new_style_p returned true.
10302 2015-10-21  Jeff Law  <law@redhat.com>
10304         * Makefile.in (OBJS): Remove sched-vis.c
10305         * sched-vis.c: Removed.  Code moved into...
10306         * print-rtl.c: Here.  Include cfg.h, pretty-print.h and print-rtl.h.
10307         * rtl.h: Remove prototypes for functions now living in print-rtl.c
10308         * print-rtl.h Add prototypes for new functions in print-rtl.c.
10309         * auto-inc-dec.c: Include print-rtl.h
10310         * cfgrtl.c, combine.c, final.c haifa-sched.c: Likewise.
10311         * ira.c, lra-constraints.c, lra.c, sel-sched-dump.c: Likewise.
10313         * varasm.c (handle_vtv_comdat_section): Mark 2nd parameter with
10314         ATTRIBUTE_UNUSED.
10316 2015-10-21  Richard Biener  <rguenther@suse.de>
10317             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
10319         * fold-const.c (fold_binary_loc) : Move (-A) * (-B) -> A * B
10320         to match.pd.
10321 * doc/implement-c.texi (Integers Implementation): Make GCC's promises
10322 about signed left shift stronger and clarify the cases when they're
10323 broken.
10324         Move (a * (1 << b)) is (a << b) to match.pd.
10325         Move convert (C1/X)*C2 into (C1*C2)/X to match.pd.
10326         Move ~X & X, (X == 0) & X, and !X & X are zero to match.pd.
10327         Move X & ~X , X & (X == 0), and X & !X are zero to match.pd.
10329         * match.pd (mult:c @0 (convert? (lshift integer_onep@1 @2))):
10330         New simplifier.
10331         (mult (rdiv:s REAL_CST@0 @1) REAL_CST@2): New simplifier.
10332         (bit_and:c (convert? @0) (convert? (bit_not @0))): New simplifier.
10333         (bit_ior (bit_and:s @0 (bit_not:s @1)) (bit_and:s (bit_not:s @0) @1))
10334         : New simplifier.
10335         (mult:c (convert1? (negate @0)) (convert2? negate_expr_p@1)):
10336         New simplifier.
10337         (match (logical_inverted_value @0) (truth_not @0)) : New Predicate.
10339 2015-10-21  Gregor Richards  <gregor.richards@uwaterloo.ca>
10340             Szabolcs Nagy  <szabolcs.nagy@arm.com>
10341             Alan Modra  <amodra@gmail.com>
10343         * config/rs6000/secureplt.h (LINK_SECURE_PLT_DEFAULT_SPEC): Define.
10344         * config/rs6000/sysv4.h (LINK_SECURE_PLT_SPEC): Define.
10345         (LINK_SPEC): Add %(link_secure_plt).
10346         (SUBTARGET_EXTRA_SPECS): Add "link_secure_plt".
10347         * config/rs6000/linux64.h (LINK_SECURE_PLT_SPEC): Redefine.
10349 2015-10-20  Gregor Richards  <gregor.richards@uwaterloo.ca>
10350             Szabolcs Nagy  <szabolcs.nagy@arm.com>
10352         * config/sh/linux.h (MUSL_DYNAMIC_LINKER): Define.
10353         (MUSL_DYNAMIC_LINKER_E, MUSL_DYNAMIC_LINKER_FP): Define.
10355 2015-10-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10357         * config/aarch64/aarch64.c (aarch64_mode_valid_for_sched_fusion_p):
10358         New function.
10359         (fusion_load_store): Use it.
10360         * config/aarch64/aarch64-ldpstp.md: Add new peephole2s for
10361         ldp and stp in VD modes.
10362         * config/aarch64/aarch64-simd.md (load_pair<mode>, VD): New pattern.
10363         (store_pair<mode>, VD): Likewise.
10365 2015-10-20  Vladimir Makarov  <vmakarov@redhat.com>
10367         PR rtl-optimization/67609
10368         * lra-splill.c (lra_final_code_change): Don't remove all
10369         sub-registers.
10371 2015-10-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10373         * simplify-rtx.c (simplify_binary_operation): If either operand was
10374         a constant pool reference use them if all other simplifications failed.
10376 2015-10-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10378         * config/aarch64/aarch64.md
10379         (*aarch64_fcvt<su_optab><GPF:mode><GPI:mode>2_mult): New pattern.
10380         * config/aarch64/aarch64-simd.md
10381         (*aarch64_fcvt<su_optab><VDQF:mode><fcvt_target>2_mult): Likewise.
10382         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle above patterns.
10383         (aarch64_fpconst_pow_of_2): New function.
10384         (aarch64_vec_fpconst_pow_of_2): Likewise.
10385         * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow_of_2): Declare
10386         prototype.
10387         (aarch64_vec_fpconst_pow_of_2): Likewise.
10388         * config/aarch64/predicates.md (aarch64_fp_pow2): New predicate.
10389         (aarch64_fp_vec_pow2): Likewise.
10391 2015-10-20  Uros Bizjak  <ubizjak@gmail.com>
10393         * config/alpha/alpha.h (HARD_REGNO_NREGS): Use CEIL macro.
10394         (ALPHA_ARG_SIZE): Ditto.  Remove unused NAMED argument.
10395         * config/alpha/alpha.c (alpha_function_arg_advance): Update
10396         ALPHA_ARG_SIZE usage.
10397         (alpha_arg_partial_bytes): Ditto.
10399 2015-10-20  H.J. Lu  <hongjiu.lu@intel.com>
10401         PR target/66810
10402         * cgraphbuild.c (pass_build_cgraph_edges::execute): Skip local
10403         error_mark_node decls.
10405 2015-10-20  H.J. Lu  <hongjiu.lu@intel.com>
10407         PR target/67963
10408         PR target/67985
10409         * common/config/i386/i386-common.c (ix86_handle_option): Remove
10410         OPT_miamcu handling.
10411         * config/i386/i386.c (PTA_NO_80387): New macro.
10412         (processor_alias_table): Add PTA_NO_80387 to lakemont.
10413         (ix86_option_override_internal): Update MASK_80387 from
10414         PTA_NO_80387.  Don't warn x87/MMX/SSE/AVX for -miamcu.  Warn
10415         SSE math only if 80387 is supported.  Don't change
10416         MASK_FLOAT_RETURNS.
10417         (ix86_valid_target_attribute_tree): Enable FPMATH_387 only if
10418         80387 is supported.
10419         * config/i386/i386.h (TARGET_FLOAT_RETURNS_IN_80387): True only
10420         if TARGET_80387 is true and TARGET_IAMCU is false.
10421         (TARGET_FLOAT_RETURNS_IN_80387_P): True only if TARGET_80387_P
10422         is true and TARGET_IAMCU_P is false.
10424 2015-10-20  Richard Biener  <rguenther@suse.de>
10426         PR tree-optimization/68017
10427         * tree-tailcall.c (eliminate_tail_call): Remove stmts backwards.
10429 2015-10-20  Martin Liska  <mliska@suse.cz>
10431         * cgraphclones.c (cgraph_node::create_virtual_clone):
10432         Verify cgraph_node.local.versionable instead of calling
10433         tree_versionable_function_p.
10434         * ipa-cp.c (determine_versionability): Save the information
10435         to ipa_node_params summary.
10436         (ipcp_versionable_function_p): Use it.
10437         (ipcp_propagate_stage): Pass IPA_NODE_REF to a called function.
10438         (ipcp_generate_summary): Do not compute cgraph_node
10439         versionability.
10440         * ipa-inline-analysis.c (inline_generate_summary): Compute
10441         versionability for all cgraph nodes.
10442         * ipa-prop.c (ipa_node_params_t::duplicate): Duplicate
10443         ipa_node_params::versionability.
10444         * ipa-prop.h (struct ipa_node_params): Declare it.
10446 2015-10-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10448         PR other/67868
10449         * varasm.c (assemble_variable): Move special vtv handling to..
10450         (handle_vtv_comdat_sections): .. here. New function.
10451         (output_object_block): Handle vtv sections.
10453 2015-10-20  Szabolcs Nagy  <szabolcs.nagy@arm.com>
10455         PR target/66912
10456         * varasm.c (default_binds_local_p_2): Turn on extern_protected_data.
10458 2015-10-20  Arkadiusz Drabczyk  <arkadiusz@drabczyk.org>
10460         * doc/extend.texi: Update documentation WRT inline functions.
10462 2015-10-20  Alan Modra  <amodra@gmail.com>
10464         PR go/66870
10465         * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Don't define.
10466         * config/rs6000/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
10467         (TARGET_CAN_SPLIT_STACK_64BIT): Define.
10469 2015-10-19  Pierre-Marie de Rodat  <derodat@adacore.com>
10471         PR rtl-optimization/66790
10472         * df.h (DF_MIR): New macro.
10473         (DF_LAST_PROBLEM_PLUS1): Update to be past DF_MIR
10474         (DF_MIR_INFO_BB): New macro.
10475         (DF_MIR_IN, DF_MIR_OUT): New macros.
10476         (struct df_mir_bb_info): New.
10477         (df_mir): New macro.
10478         (df_mir_add_problem, df_mir_simulate_one_insn): New forward
10479         declarations.
10480         (df_mir_get_bb_info): New.
10481         * df-problems.c (struct df_mir_problem_data): New.
10482         (df_mir_free_bb_info, df_mir_alloc, df_mir_reset,
10483         df_mir_bb_local_compute, df_mir_local_compute, df_mir_init,
10484         df_mir_confluence_0, df_mir_confluence_n,
10485         df_mir_transfer_function, df_mir_free, df_mir_top_dump,
10486         df_mir_bottom_dump, df_mir_verify_solution_start,
10487         df_mir_verify_solution_end): New.
10488         (problem_MIR): New.
10489         (df_mir_add_problem, df_mir_simulate_one_insn): New.
10490         * timevar.def (TV_DF_MIR): New.
10491         * ree.c: Include bitmap.h
10492         (add_removable_extension): Add an INIT_REGS parameter.  Use it
10493         to skip zero-extensions that may get an uninitialized register.
10494         (find_removable_extensions): Compute must-initialized registers
10495         using the MIR dataflow problem. Update the call to
10496         add_removable_extension.
10497         (find_and_remove_re): Call df_mir_add_problem.
10499 2015-10-19  Segher Boessenkool  <segher@kernel.crashing.org>
10501         * common/config/mn10300/mn10300-common.c
10502         (mn10300_option_optimization_table) <OPT_freorder_blocks_algorithm_>:
10503         Use REORDER_BLOCKS_ALGORITHM_STC at -Os and up.
10505 2015-10-19  David Wohlferd  <dw@LimeGreenSocks.com>
10507         * doc/extend.texi (Explicit Register Variables): Simplify and
10508         avoid unnecessary and confusion abbreviations.  Update cross
10509         references.
10510         doc/implement-c.tex: Update cross reference.
10512 2015-10-19  Jeff Law  <law@redhat.com>
10514         * tree-ssa-threadupdate.c (valid_jump_thread_path): Reject paths
10515         that create irreducible loops unless the path elimiantes a multiway
10516         branch.
10518 2015-10-19  Richard Biener  <rguenther@suse.de>
10520         PR tree-optimization/67975
10521         * tree-cfg.h (extract_true_false_controlled_edges): Declare.
10522         * tree-cfg.c (extract_true_false_controlled_edges): Split out
10523         core worker from ...
10524         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): ... here.
10525         * tree-ssa-sccvn.c (vn_phi_compute_hash): Hash number of args
10526         instead of block number for PHIs with two or one args.
10527         (vn_phi_eq): Compare edge predicates of PHIs that are in different
10528         blocks.
10530 2015-10-19  Richard Biener  <rguenther@suse.de>
10532         * gimple-fold.c (gimple_phi_nonnegative_warnv_p): New function.
10533         (gimple_stmt_nonnegative_warnv_p): Use it.
10534         * match.pd (CPROJ): New operator list.
10535         (cproj (complex ...)): Move simplifications from ...
10536         * builtins.c (fold_builtin_cproj): ... here.
10538 2015-10-19  H.J. Lu  <hongjiu.lu@intel.com>
10540         * config/i386/i386.c (ix86_expand_vector_move): Use
10541         GET_MODE_BITSIZE for IA MCU psABI to get vector natural
10542         alignment.
10544 2015-10-19  H.J. Lu  <hongjiu.lu@intel.com>
10546         * doc/invoke.texi: Replace @optindex with @opindex.
10548 2015-10-19  H.J. Lu  <hongjiu.lu@intel.com>
10550         PR target/67995
10551         * config/i386/i386.c (ix86_valid_target_attribute_tree): If
10552         arch= is set,  clear all bits in x_ix86_isa_flags, except for
10553         ISA_64BIT, ABI_64, ABI_X32, and CODE16.
10555 2015-10-19  Joost VandeVondele  <vondele@gnu.gcc.org>
10557         PR middle-end/68002
10558         * common.opt (fkeep-static-functions): New option.
10559         * doc/invoke.texi: Document it.
10560         * cgraphunit.c (cgraph_node::finalize_function): Use it.
10562 2015-10-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10564         * sched-int.h (struct autopref_multipass_data_): Remove offset
10565         field.  Add min_offset, max_offset, multi_mem_insn_p fields.
10566         * haifa-sched.c (analyze_set_insn_for_autopref): New function.
10567         (autopref_multipass_init): Use it.  Handle PARALLEL sets.
10568         (autopref_rank_data): New function.
10569         (autopref_rank_for_schedule): Use it.
10570         (autopref_multipass_dfa_lookahead_guard_1): Likewise.
10572 2015-10-18  Mikhail Maltsev  <maltsevm@gmail.com>
10574         PR other/65800
10575         * gengtype.c (dump_type): Handle TYPE_UNDEFINED correctly.
10577 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
10579         * config/darwin.h (TARGET_SYSTEM_ROOT): Remove this from here,
10580         (HAVE_LD_SYSROOT): New.  (SYSROOT_SPEC): New.
10581         (LINK_SYSROOT_SPEC): Revise to remove the default for target sysroot.
10582         (STANDARD_STARTFILE_PREFIX_1): New.
10583         (STANDARD_STARTFILE_PREFIX_2): New.
10585 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
10587         * config/darwin-driver.c (darwin_default_min_version): Refactor code.
10588         (darwin_driver_init): Note a version-min when provided on the c/l.
10589         * config/darwin.h (%darwin_minversion): Remove.
10590         * config/i386/darwin.h: Likewise.
10591         * config/rs6000/darwin.h: Likewise.
10592         * config/darwin.opt (mmacosx-version-min=): Use the configured default,
10593         rather than an arbitrary constant.
10595 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
10597         * config/darwin-driver.c (darwin_driver_init): Handle '-arch' for
10598         PPC, detect conflicts between -arch and multilib settings.  Detect
10599         and warn about conflicts between multiple -arch definitions.
10601 2015-10-18  Iain Sandoe  <iain@codesourcery.com>
10603         * config/darwin-driver.c: Adjust includes to add diagnostic-core.
10605 2015-10-16  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10607         * lra-constraints.c (add_next_usage_insn): Change argument type
10608         from rtx to rtx_insn *.
10610 2015-10-16  H.J. Lu  <hongjiu.lu@intel.com>
10612         * i386/x86-tune.def (X86_TUNE_ALWAYS_FANCY_MATH_387): Disable
10613         for Lakemont.
10615 2015-10-16  Andrew MacLeod  <amacleod@redhat.com>
10617         * config/tilepro/gen-mul-tables.cc: Adjust include files.
10618         * config/tilegx/mul-tables.c: Regenerate.
10619         * config/tilepro/mul-tables.c: Regenerate.
10621         * config/tilegx/tilegx-c.c: Adjust include files.
10622         * config/tilegx/tilegx.c: Likewise.
10623         * config/tilepro/tilepro-c.c: Likewise.
10624         * config/tilepro/tilepro.c: Likewise.
10625         * config/aarch64/aarch64-builtins.c: Likewise.
10626         * config/aarch64/aarch64.c: Likewise.
10627         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
10628         * config/alpha/alpha.c: Likewise.
10629         * config/arc/arc.c: Likewise.
10630         * config/arm/aarch-common.c: Likewise.
10631         * config/arm/arm-builtins.c: Likewise.
10632         * config/arm/arm-c.c: Likewise.
10633         * config/arm/arm.c: Likewise.
10634         * config/avr/avr-c.c: Likewise.
10635         * config/avr/avr-devices.c: Likewise.
10636         * config/avr/avr-log.c: Likewise.
10637         * config/avr/avr.c: Likewise.
10638         * config/bfin/bfin.c: Likewise.
10639         * config/c6x/c6x.c: Likewise.
10640         * config/cr16/cr16.c: Likewise.
10641         * config/cris/cris.c: Likewise.
10642         * config/darwin-c.c: Likewise.
10643         * config/darwin-driver.c: Likewise.
10644         * config/darwin.c: Likewise.
10645         * config/default-c.c: Likewise.
10646         * config/epiphany/epiphany.c: Likewise.
10647         * config/epiphany/mode-switch-use.c: Likewise.
10648         * config/epiphany/resolve-sw-modes.c: Likewise.
10649         * config/fr30/fr30.c: Likewise.
10650         * config/frv/frv.c: Likewise.
10651         * config/ft32/ft32.c: Likewise.
10652         * config/glibc-c.c: Likewise.
10653         * config/h8300/h8300.c: Likewise.
10654         * config/i386/host-cygwin.c: Likewise.
10655         * config/i386/host-mingw32.c: Likewise.
10656         * config/i386/i386-c.c: Likewise.
10657         * config/i386/i386.c: Likewise.
10658         * config/i386/msformat-c.c: Likewise.
10659         * config/i386/winnt-cxx.c: Likewise.
10660         * config/i386/winnt-stubs.c: Likewise.
10661         * config/i386/winnt.c: Likewise.
10662         * config/ia64/ia64-c.c: Likewise.
10663         * config/ia64/ia64.c: Likewise.
10664         * config/iq2000/iq2000.c: Likewise.
10665         * config/lm32/lm32.c: Likewise.
10666         * config/m32c/m32c-pragma.c: Likewise.
10667         * config/m32c/m32c.c: Likewise.
10668         * config/m32r/m32r.c: Likewise.
10669         * config/mcore/mcore.c: Likewise.
10670         * config/mep/mep-pragma.c: Likewise.
10671         * config/mep/mep.c: Likewise.
10672         * config/microblaze/microblaze-c.c: Likewise.
10673         * config/microblaze/microblaze.c: Likewise.
10674         * config/mips/mips-tables.opt
10675         * config/mips/mips.c: Likewise.
10676         * config/mmix/mmix.c: Likewise.
10677         * config/mn10300/mn10300.c: Likewise.
10678         * config/moxie/moxie.c: Likewise.
10679         * config/msp430/msp430-c.c: Likewise.
10680         * config/msp430/msp430.c: Likewise.
10681         * config/nds32/nds32-cost.c: Likewise.
10682         * config/nds32/nds32-fp-as-gp.c: Likewise.
10683         * config/nds32/nds32-intrinsic.c: Likewise.
10684         * config/nds32/nds32-isr.c: Likewise.
10685         * config/nds32/nds32-md-auxiliary.c: Likewise.
10686         * config/nds32/nds32-memory-manipulation.c: Likewise.
10687         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
10688         * config/nds32/nds32-predicates.c: Likewise.
10689         * config/nds32/nds32.c: Likewise.
10690         * config/nios2/nios2.c: Likewise.
10691         * config/nvptx/mkoffload.c: Likewise.
10692         * config/nvptx/nvptx.c: Likewise.
10693         * config/pa/pa.c: Likewise.
10694         * config/pdp11/pdp11.c: Likewise.
10695         * config/rl78/rl78-c.c: Likewise.
10696         * config/rl78/rl78.c: Likewise.
10697         * config/rs6000/host-darwin.c: Likewise.
10698         * config/rs6000/rs6000-c.c: Likewise.
10699         * config/rs6000/rs6000-linux.c: Likewise.
10700         * config/rs6000/rs6000.c: Likewise.
10701         * config/rx/rx.c: Likewise.
10702         * config/s390/s390-c.c: Likewise.
10703         * config/s390/s390.c: Likewise.
10704         * config/sh/sh-c.c: Likewise.
10705         * config/sh/sh-mem.cc: Likewise.
10706         * config/sh/sh.c: Likewise.
10707         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
10708         * config/sh/sh_treg_combine.cc: Likewise.
10709         * config/sol2-c.c: Likewise.
10710         * config/sol2-cxx.c: Likewise.
10711         * config/sol2-stubs.c: Likewise.
10712         * config/sol2.c: Likewise.
10713         * config/sparc/sparc-c.c: Likewise.
10714         * config/sparc/sparc.c: Likewise.
10715         * config/spu/spu-c.c: Likewise.
10716         * config/spu/spu.c: Likewise.
10717         * config/stormy16/stormy16.c: Likewise.
10718         * config/v850/v850-c.c: Likewise.
10719         * config/v850/v850.c: Likewise.
10720         * config/vax/vax.c: Likewise.
10721         * config/visium/visium.c: Likewise.
10722         * config/vms/vms-c.c: Likewise.
10723         * config/vms/vms.c: Likewise.
10724         * config/vxworks.c: Likewise.
10725         * config/winnt-c.c: Likewise.
10726         * config/xtensa/xtensa.c: Likewise.
10728 2015-10-16  Christian Bruel  <christian.bruel@st.com>
10730         PR target/67745
10731         * config/arm/arm.h (FUNCTION_BOUNDARY): Use FUNCTION_BOUNDARY_P.
10732         (FUNCTION_BOUNDARY_P): New macro:
10733         * config/arm/arm.c (TARGET_RELAYOUT_FUNCTION, arm_relayout_function):
10734         New hook.
10735         * doc/tm.texi.in (TARGET_RELAYOUT_FUNCTION): Document.
10736         * doc/tm.texi (TARGET_RELAYOUT_FUNCTION): New hook.
10737         * target.def (TARGET_RELAYOUT_FUNCTION): Likewise.
10738         * function.c (allocate_struct_function): Call
10739         relayout_function hook.
10740         * passes.c (rest_of_decl_compilation): Likewise.
10742 2015-10-16  Christian Bruel  <christian.bruel@st.com>
10744         PR target/67745
10745         * config/arm/arm.h (FUNCTION_BOUNDARY): Move optimize_size condition to:
10746         * config/arm/arm.c (arm_option_override_internal): Call
10747         arm_override_options_after_change_1.
10748         (arm_override_options_after_change): New function.
10749         (arm_override_options_after_change_1): Likewise.
10750         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define hook.
10752 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
10754         Revert:
10755         * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
10756         empty constructors.
10758 2015-10-16  Eric Botcazou  <ebotcazou@adacore.com>
10760         * tree.c (recompute_tree_invariant_for_addr_expr): Assert that the
10761         argument is an ADDR_EXPR.
10763 2015-10-16  Richard Biener  <rguenther@suse.de>
10765         * gimple-fold.c (gimple_fold_builtin_memory_op): Use gimple_build
10766         and get rid of force_gimple_operand_gsi.
10767         (gimple_fold_builtin_memory_chk): Likewise.
10768         (gimple_fold_builtin_stxcpy_chk): Likewise.
10769         (rewrite_to_defined_overflow): Likewise.
10770         (gimple_convert_to_ptrofftype): New function.
10771         * gimple-fold.h (gimple_convert_to_ptrofftype): New overload, declare.
10773 2015-10-16  Richard Biener  <rguenther@suse.de>
10775         * tree-nested.h (build_addr): Adjust prototype.
10776         * tree-nested.c (build_addr): Remove context argument and use
10777         mark_addressable.
10778         (get_static_chain): Adjust calls to build_addr.
10779         (convert_nl_goto_reference): Likewise.
10780         (convert_tramp_reference_op): Likewise.
10781         (finalize_nesting_tree_1): Likewise.
10782         * value-prof.c (gimple_ic): Likewise.
10783         * gimple-low.c (lower_builtin_setjmp): Likewise.
10784         * tree-parloops.c (take_address_of): Likewise.
10785         (create_call_for_reduction_1): Likewise.
10786         * tree-profile.c (gimple_gen_interval_profiler): Likewise.
10787         (gimple_gen_ic_func_profiler): Likewise.
10789 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
10791         * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
10792         empty constructors.
10794 2015-10-16  Michael Collison  <michael.collison@linaro.org>
10795             Andrew Pinski <andrew.pinski@caviumnetworks.com>
10797         * match.pd ((x < y) && (x < z) -> x < min (y,z),
10798         (x > y) and (x > z) -> x > max (y,z))
10800 2015-10-15  Gregor Richards  <gregor.richards@uwaterloo.ca>
10801             Szabolcs Nagy  <szabolcs.nagy@arm.com>
10803         * config/microblaze/linux.h (MUSL_DYNAMIC_LINKER): Define.
10804         (DYNAMIC_LINKER): Renamed to ...
10805         (GLIBC_DYNAMIC_LINKER): This.
10806         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_DYNAMIC_LINKER.
10808 2015-10-15  Marek Polacek  <polacek@redhat.com>
10810         * tree-ssa-reassoc.c (attempt_builtin_copysign): Call
10811         gimple_call_builtin instead of is_gimple_call.
10813 2015-10-15  Richard Biener  <rguenther@suse.de>
10815         * tree-vect-stmts.c (vect_init_vector): Remove unused vars.
10817 2015-10-15  Richard Biener  <rguenther@suse.de>
10819         * tree-vectorizer.h (vect_get_new_ssa_name): Declare.
10820         * tree-vect-data-refs.c (vect_get_new_ssa_name): New helper.
10821         * tree-vect-loop.c (get_initial_def_for_induction): Drop
10822         use of force_gimple_operand in favor of gimple_build.
10823         Use vect_get_new_ssa_name.
10824         * tree-vect-stmts.c (vect_init_vector): Use vect_get_new_ssa_name.
10825         (vectorizable_mask_load_store): Likewise.
10826         (vectorizable_call): Likewise.
10827         (vectorizable_store): Likewise.
10828         (vectorizable_load): Likewise.
10829         (vect_get_vec_def_for_stmt_copy): Remove redundant stmt.
10831 2015-10-15  Richard Sandiford  <richard.sandiford@arm.com>
10833         PR tree-optimization/67945
10834         * tree-pass.h (PROP_gimple_opt_math): New property flag.
10835         * generic-match-head.c (canonicalize_math_p): New function.
10836         * gimple-match-head.c: Include tree-pass.h.
10837         (canonicalize_math_p): New function.
10838         * match.pd: Group math built-in rules into simplifications
10839         and canonicalizations.  Guard the latter with canonicalize_math_p.
10840         * tree-ssa-math-opts.c (pass_data_cse_sincos): Provide the
10841         PROP_gimple_opt_math property.
10843 2015-10-15  Marek Polacek  <polacek@redhat.com>
10845         PR tree-optimization/67953
10846         * match.pd (X - (X / Y) * Y): Don't change signedness of @0.
10848 2015-10-15  Jiong Wang  <jiong.wang@arm.com>
10850         * config.gcc: Recognize "." in architecture base name for AArch64.
10852 2015-10-14  Uros Bizjak  <ubizjak@gmail.com>
10854         * config/mips/mips.h (MIPS_STACK_ALIGN): Implement using
10855         ROUND_UP macro.
10856         * config/mips/mips.c (mips_setup_incoming_varargs): Use
10857         ROUND_DOWN to calculate off.
10858         (mips_gimplify_va_arg_expr): Use ROUND_UP to calculate rsize.
10859         (mips_emit_probe_stack_range): Use ROUND_DOWN to calculate
10860         rounded_size.
10862 2015-10-14  Eric Botcazou  <ebotcazou@adacore.com>
10864         * gimplify.c (gimplify_addr_expr) <MEM_REF>: New case.
10866 2015-10-14  Peter Bergner  <bergner@vnet.ibm.com>
10867             Torvald Riegel  <triegel@redhat.com>
10869         PR target/67281
10870         * config/rs6000/htm.md (UNSPEC_HTM_FENCE): New.
10871         (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
10872         trechkpt, treclaim, tsr, ttest): Rename define_insns from this...
10873         (*tabort, *tabort<wd>c, *tabort<wd>ci, *tbegin, *tcheck, *tend,
10874         *trechkpt, *treclaim, *tsr, *ttest): ...to this.  Add memory barrier.
10875         (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
10876         trechkpt, treclaim, tsr, ttest): New define_expands.
10877         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
10878         __TM_FENCE__ for htm.
10879         * doc/extend.texi: Update documentation for htm builtins.
10881 2015-10-14  Uros Bizjak  <ubizjak@gmail.com>
10883         PR target/67967
10884         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Do not add
10885         REG_CFA_EXPRESSION to aligned SSE stores.
10887 2015-10-14  Jeff Law  <law@redhat.com>
10889         * tree-ssa-threadupdate.c (thread_through_all_blocks): Bump
10890         num_threaded_edges for successful FSM threads too.
10892 2015-10-14  Richard Biener  <rguenther@suse.de>
10894         * tree-vectorizer.h (vect_is_simple_use): Remove unused parameters.
10895         (vect_is_simple_use_1): Likewise.  Make overload of vect_is_simple_use.
10896         (vect_get_vec_def_for_operand): Remove unused parameter.
10897         * tree-vect-loop.c (get_initial_def_for_induction): Adjust.
10898         (vect_create_epilog_for_reduction): Likewise.
10899         (vectorizable_reduction): Likewise.
10900         (vectorizable_live_operation): Likewise.
10901         * tree-vect-patterns.c (type_conversion_p): Likewise.
10902         (vect_recog_vector_vector_shift_pattern): Likewise.
10903         (check_bool_pattern): Likewise.
10904         * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
10905         (vect_analyze_slp_cost_1): Likewise.
10906         * tree-vect-stmts.c (process_use): Likewise.
10907         (vect_get_vec_def_for_operand): Do not handle reductions.
10908         (vect_get_vec_defs): Adjust.
10909         (vectorizable_mask_load_store): Likewise.
10910         (vectorizable_call): Likewise.
10911         (vectorizable_simd_clone_call): Likewise.
10912         (vect_get_loop_based_defs): Likewise.
10913         (vectorizable_conversion): Likewise.
10914         (vectorizable_assignment): Likewise.
10915         (vectorizable_shift): Likewise.
10916         (vectorizable_operation): Likewise.
10917         (vectorizable_store): Likewise.
10918         (vectorizable_load): Likewise.
10919         (vect_is_simple_cond): Likewise.
10920         (vectorizable_condition): Likewise.
10921         (vect_is_simple_use): Remove unused parameters.
10922         (vect_is_simple_use_1): Adjust and rename.
10924 2015-10-14  Richard Biener  <rguenther@suse.de>
10926         PR tree-optimization/67915
10927         * match.pd: Handle comparisons of addresses of STRING_CSTs.
10928         * gimplify.c (gimplify_cond_expr): Fold the GIMPLE conds we build.
10929         * tree-cfgcleanup.c (cleanup_control_expr_graph): Remove GENERIC
10930         stmt folding in favor of GIMPLE one.
10932 2015-10-14  Marek Polacek  <polacek@redhat.com>
10934         PR tree-optimization/67815
10935         * tree-ssa-reassoc.c (attempt_builtin_copysign): New function.
10936         (reassociate_bb): Call it.
10938 2015-10-14  Richard Biener  <rguenther@suse.de>
10940         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
10941         Reset info at start.
10942         (vect_analyze_group_access_1): Add debug print.
10943         * tree-vect-loop.c (vect_get_single_scalar_iteration_cost): Rename ...
10944         (vect_compute_single_scalar_iteration_cost): ... to this.
10945         (vect_analyze_loop_2): Adjust.
10946         * tree-vect-slp.c (struct _slp_oprnd_info): Move from ...
10947         * tree-vectorizer.h: ... here.
10948         (add_stmt_info_to_vec): Remove.
10949         * tree-vect-stmts.c (record_stmt_cost): Inline add_stmt_info_to_vec.
10951 2015-10-14  Dominik Vogt  <vogt@linux.vnet.ibm.com>
10953         * targhooks.c (default_target_option_pragma_parse): Do not warn if
10954         called on behalf of "#pragma GCC pop_options".
10956 2015-10-14  Tom de Vries  <tom@codesourcery.com>
10958         * cfganal.c (verify_no_unreachable_blocks): New function.
10959         (inverted_post_order_compute) [ENABLE_CHECKING]: Call
10960         verify_no_unreachable_blocks.
10961         cfganal.h (verify_no_unreachable_blocks): Declare.
10963 2015-10-13  Mikhail Maltsev  <maltsevm@gmail.com>
10965         * common.opt: Add flag_checking.
10966         * system.h (CHECKING_P): Define.
10968 2015-10-13  Jakub Jelinek  <jakub@redhat.com>
10969             Aldy Hernandez  <aldyh@redhat.com>
10970             Ilya Verbin  <ilya.verbin@intel.com>
10972         * builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR,
10973         BT_FN_BOOL_UINT_ULLPTR_ULLPTR_ULLPTR,
10974         BT_FN_BOOL_UINT_LONGPTR_LONG_LONGPTR_LONGPTR,
10975         BT_FN_BOOL_UINT_ULLPTR_ULL_ULLPTR_ULLPTR,
10976         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_UINT_PTR,
10977         BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR,
10978         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT,
10979         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_LONG_LONG_LONG,
10980         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_ULL_ULL_ULL,
10981         BT_FN_VOID_LONG_VAR, BT_FN_VOID_ULL_VAR): New.
10982         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
10983         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
10984         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): Remove.
10985         * cgraph.h (enum cgraph_simd_clone_arg_type): Add
10986         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP,
10987         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
10988         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
10989         (struct cgraph_simd_clone_arg): Adjust comment.
10990         * coretypes.h (struct gomp_ordered): New forward decl.
10991         * gimple.c (gimple_build_omp_critical): Add CLAUSES argument,
10992         set critical clauses to it.
10993         (gimple_build_omp_ordered): Return gomp_ordered * instead of
10994         gimple *.  Add CLAUSES argument, set ordered clauses to it.
10995         (gimple_copy): Unshare clauses on GIMPLE_OMP_CRITICAL and
10996         GIMPLE_OMP_ORDERED.
10997         * gimple.def (GIMPLE_OMP_ORDERED): Change from GSS_OMP to
10998         GSS_OMP_SINGLE_LAYOUT, move it after GIMPLE_OMP_TEAMS.
10999         * gimple.h (enum gf_mask): Add GF_OMP_TASK_TASKLOOP.  Add another bit
11000         to GF_OMP_FOR_KIND_MASK mask. Add GF_OMP_FOR_KIND_TASKLOOP, renumber
11001         GF_OMP_FOR_KIND_CILKFOR and GF_OMP_FOR_KIND_OACC_LOOP.  Adjust
11002         GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED and GF_OMP_FOR_COMBINED_INTO.
11003         Add another bit to GF_OMP_TARGET_KIND_MASK mask.  Add
11004         GF_OMP_TARGET_KIND_ENTER_DATA and GF_OMP_TARGET_KIND_EXIT_DATA,
11005         renumber
11006         GF_OMP_TARGET_KIND_OACC_{PARALLEL,KERNELS,DATA,UPDATE,ENTER_EXIT_DATA}.
11007         (gomp_critical): Add clauses field.
11008         (gomp_ordered): New struct.
11009         (is_a_helper <gomp_ordered *>::test): New inline.
11010         (gimple_build_omp_critical): Add CLAUSES argument.
11011         (gimple_build_omp_ordered): Likewise.  Return gomp_ordered *
11012         instead of gimple *.
11013         (gimple_omp_critical_clauses, gimple_omp_critical_clauses_ptr,
11014         gimple_omp_critical_set_clauses, gimple_omp_ordered_clauses,
11015         gimple_omp_ordered_clauses_ptr, gimple_omp_ordered_set_clauses,
11016         gimple_omp_task_taskloop_p, gimple_omp_task_set_taskloop_p): New
11017         inline functions.
11018         * gimple-pretty-print.c (dump_gimple_omp_for): Handle taskloop.
11019         (dump_gimple_omp_target): Handle enter data and exit data.
11020         (dump_gimple_omp_block): Don't handle GIMPLE_OMP_ORDERED here.
11021         (dump_gimple_omp_critical): Print clauses.
11022         (dump_gimple_omp_ordered): New function.
11023         (dump_gimple_omp_task): Handle taskloop.
11024         (pp_gimple_stmt_1): Use dump_gimple_omp_ordered for
11025         GIMPLE_OMP_ORDERED.
11026         * gimple-walk.c (walk_gimple_op): Walk clauses on
11027         GIMPLE_OMP_CRITICAL and GIMPLE_OMP_ORDERED.
11028         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_0LEN_ARRAY.
11029         (enum omp_region_type): Add ORT_COMBINED_TARGET and ORT_NONE.
11030         (struct gimplify_omp_ctx): Add loop_iter_var,
11031         target_map_scalars_firstprivate, target_map_pointers_as_0len_arrays
11032         and target_firstprivatize_array_bases fields.
11033         (delete_omp_context): Release loop_iter_var.
11034         (gimplify_bind_expr): Handle ORT_NONE.
11035         (maybe_fold_stmt): Adjust check for ORT_TARGET for the addition of
11036         ORT_COMBINED_TARGET.
11037         (is_gimple_stmt): Return true for OMP_TASKLOOP, OMP_TEAMS and
11038         OMP_TARGET{,_DATA,_UPDATE,_ENTER_DATA,_EXIT_DATA}.
11039         (omp_firstprivatize_variable): Handle ORT_NONE.  Adjust check for
11040         ORT_TARGET for the addition of ORT_COMBINED_TARGET.  Handle
11041         ctx->target_map_scalars_firstprivate.
11042         (omp_add_variable): Handle ORT_NONE.  Allow map clause together with
11043         data sharing clauses.  For data sharing clause with VLA decl
11044         on omp target/target data don't add firstprivate for the pointer.
11045         Call omp_notice_variable on TYPE_SIZE_UNIT only if it is a DECL_P.
11046         (omp_notice_threadprivate_variable): Adjust check for ORT_TARGET for
11047         the addition of ORT_COMBINED_TARGET.
11048         (omp_notice_variable): Handle ORT_NONE.  Adjust check for ORT_TARGET
11049         for the addition of ORT_COMBINED_TARGET.  Handle implicit mapping of
11050         pointers as zero length array sections and
11051         ctx->target_map_scalars_firstprivate mapping of scalars as firstprivate
11052         data sharing.
11053         (omp_check_private): Handle omp_member_access_dummy_var vars.
11054         (find_decl_expr): New function.
11055         (gimplify_scan_omp_clauses): Add CODE argument.  For OMP_CLAUSE_IF
11056         complain if OMP_CLAUSE_IF_MODIFIER is present and does not match code.
11057         Handle OMP_CLAUSE_GANG separately.  Handle
11058         OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
11059         clauses.  Diagnose linear clause on combined
11060         distribute {, parallel for} simd construct, unless it is the loop
11061         iterator.  Handle struct element GOMP_MAP_FIRSTPRIVATE_POINTER.
11062         Handle map clauses with COMPONENT_REF.  Initialize
11063         ctx->target_map_scalars_firstprivate,
11064         ctx->target_firstprivatize_array_bases and
11065         ctx->target_map_pointers_as_0len_arrays.  Add firstprivate for
11066         linear clause even to target region if combined.  Remove
11067         map clauses with GOMP_MAP_FIRSTPRIVATE_POINTER kind from
11068         OMP_TARGET_{,ENTER_,EXIT_}DATA.  For GOMP_MAP_FIRSTPRIVATE_POINTER
11069         map kind with non-INTEGER_CST OMP_CLAUSE_SIZE firstprivatize the bias.
11070         Handle OMP_CLAUSE_DEPEND_{SINK,SOURCE}.  Handle
11071         OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.
11072         For linear clause on worksharing loop combined with parallel add
11073         shared clause on the parallel.  Handle OMP_CLAUSE_REDUCTION
11074         with MEM_REF OMP_CLAUSE_DECL.  Set DECL_NAME on
11075         omp_member_access_dummy_var vars.  Add lastprivate clause to outer
11076         taskloop if needed.
11077         (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_0LEN_ARRAY.
11078         If gimplify_omp_ctxp->target_firstprivatize_array_bases, use
11079         GOMP_MAP_FIRSTPRIVATE_POINTER map kind instead of
11080         GOMP_MAP_POINTER.
11081         (gimplify_adjust_omp_clauses): Add CODE argument.  Handle removal
11082         of GOMP_MAP_FIRSTPRIVATE_POINTER struct elements for struct not seen
11083         in target body.  Handle removal of struct mapping if struct is not
11084         seen in target body.  Remove GOMP_MAP_STRUCT map clause on
11085         OMP_TARGET_EXIT_DATA.  Adjust check for ORT_TARGET for the
11086         addition of ORT_COMBINED_TARGET.  Use GOMP_MAP_FIRSTPRIVATE_POINTER
11087         instead of GOMP_MAP_POINTER if ctx->target_firstprivatize_array_bases
11088         for VLAs.  Set OMP_CLAUSE_MAP_PRIVATE if both data sharing and map
11089         clause appear together.  Handle
11090         OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.  Don't remove map
11091         clause if it has map-type-modifier always.  Handle
11092         OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
11093         clauses.
11094         (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task):
11095         Adjust gimplify_scan_omp_clauses and gimplify_adjust_omp_clauses
11096         callers.
11097         (gimplify_omp_for): Likewise.  Handle OMP_TASKLOOP.  Initialize
11098         loop_iter_var.  Use OMP_FOR_ORIG_DECLS.  Fix handling of lastprivate
11099         iterators in doacross loops.
11100         (gimplify_omp_workshare): Adjust gimplify_scan_omp_clauses and
11101         gimplify_adjust_omp_clauses callers.  Use ORT_COMBINED_TARGET
11102         for OMP_TARGET_COMBINED.  Adjust check for ORT_TARGET
11103         for the addition of ORT_COMBINED_TARGET.
11104         (gimplify_omp_target_update): Adjust gimplify_scan_omp_clauses and
11105         gimplify_adjust_omp_clauses callers.  Handle OMP_TARGET_ENTER_DATA
11106         and OMP_TARGET_EXIT_DATA.
11107         (gimplify_omp_ordered): New function.
11108         (gimplify_expr): Handle OMP_TASKLOOP, OMP_TARGET_ENTER_DATA and
11109         OMP_TARGET_EXIT_DATA.  Use gimplify_omp_ordered for OMP_ORDERED.
11110         Gimplify clauses on OMP_CRITICAL.
11111         * internal-fn.c (expand_GOMP_SIMD_ORDERED_START,
11112         expand_GOMP_SIMD_ORDERED_END): New functions.
11113         * internal-fn.def (GOMP_SIMD_ORDERED_START,
11114         GOMP_SIMD_ORDERED_END): New internal functions.
11115         * omp-builtins.def (BUILT_IN_GOMP_LOOP_DOACROSS_STATIC_START,
11116         BUILT_IN_GOMP_LOOP_DOACROSS_DYNAMIC_START,
11117         BUILT_IN_GOMP_LOOP_DOACROSS_GUIDED_START,
11118         BUILT_IN_GOMP_LOOP_DOACROSS_RUNTIME_START,
11119         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_STATIC_START,
11120         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_DYNAMIC_START,
11121         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_GUIDED_START,
11122         BUILT_IN_GOMP_LOOP_ULL_DOACROSS_RUNTIME_START,
11123         BUILT_IN_GOMP_DOACROSS_POST, BUILT_IN_GOMP_DOACROSS_WAIT,
11124         BUILT_IN_GOMP_DOACROSS_ULL_POST, BUILT_IN_GOMP_DOACROSS_ULL_WAIT,
11125         BUILT_IN_GOMP_TARGET_ENTER_EXIT_DATA, BUILT_IN_GOMP_TASKLOOP,
11126         BUILT_IN_GOMP_TASKLOOP_ULL): New built-ins.
11127         (BUILT_IN_GOMP_TASK): Add INT argument to the end.
11128         (BUILT_IN_GOMP_TARGET): Rename from GOMP_target to GOMP_target_41,
11129         adjust type.
11130         (BUILT_IN_GOMP_TARGET_DATA): Rename from GOMP_target_data to
11131         GOMP_target_data_41, adjust type.
11132         (BUILT_IN_GOMP_TARGET_UPDATE): Rename from GOMP_target_update to
11133         GOMP_target_update_41, adjust type.
11134         * omp-low.c (struct omp_region): Adjust comments, add ord_stmt
11135         field.
11136         (struct omp_for_data): Add ordered and simd_schedule fields.
11137         (omp_member_access_dummy_var, unshare_and_remap_1,
11138         unshare_and_remap, is_taskloop_ctx): New functions.
11139         (is_taskreg_ctx): Use is_parallel_ctx and is_task_ctx.
11140         (extract_omp_for_data): Handle taskloops and doacross loops
11141         and simd schedule modifier.
11142         (omp_adjust_chunk_size): New function.
11143         (get_ws_args_for): Use it.
11144         (lookup_sfield): Change first argument to splay_tree_key,
11145         add overload with first argument tree.
11146         (maybe_lookup_field): Likewise.
11147         (use_pointer_for_field): Handle omp_member_access_dummy_var.
11148         (omp_copy_decl_2): If var is TREE_ADDRESSABLE listed in
11149         task_shared_vars, clear TREE_ADDRESSABLE on the copy.
11150         (build_outer_var_ref): Add LASTPRIVATE argument, handle
11151         taskloops and omp_member_access_dummy_var vars.
11152         (build_sender_ref): Change first argument to splay_tree_key,
11153         add overload with first argument tree.
11154         (install_var_field): For mask & 8 use &DECL_UID as key instead
11155         of the tree itself.
11156         (fixup_child_record_type): Const qualify *.omp_data_i.
11157         (scan_sharing_clauses): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE,
11158         C/C++ array reductions, OMP_CLAUSE_{IS,USE}_DEVICE_PTR clauses,
11159         OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,SIMDLEN,THREADS,SIMD} and
11160         OMP_CLAUSE_{NOGROUP,DEFAULTMAP} clauses, OMP_CLAUSE__LOOPTEMP_ clause
11161         on taskloop, GOMP_MAP_FIRSTPRIVATE_POINTER, OMP_CLAUSE_MAP_PRIVATE.
11162         (create_omp_child_function): Set TREE_READONLY on .omp_data_i.
11163         (find_combined_for): Allow searching for different GIMPLE_OMP_FOR
11164         kinds.
11165         (add_taskreg_looptemp_clauses): New function.
11166         (scan_omp_parallel): Use it.
11167         (scan_omp_task): Likewise.
11168         (finish_taskreg_scan): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
11169         For taskloop, move fields for the first two _LOOPTEMP_ clauses first.
11170         (check_omp_nesting_restrictions): Handle GF_OMP_TARGET_KIND_ENTER_DATA
11171         and GF_OMP_TARGET_KIND_EXIT_DATA.  Formatting fixes.  Allow the
11172         sandwiched taskloop constructs.  Type check
11173         OMP_CLAUSE_DEPEND_{KIND,SOURCE}.  Allow ordered simd inside of simd
11174         region.  Diagnose depend(source) or depend(sink:...) on
11175         target constructs or task/taskloop.
11176         (handle_simd_reference): Use get_name.
11177         (lower_rec_input_clauses): Likewise.  Ignore all
11178         OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses on taskloop construct.
11179         Allow _LOOPTEMP_ clause on GOMP_TASK.  Unshare new_var
11180         before passing it to omp_clause_{default,copy}_ctor.  Handle
11181         OMP_CLAUSE_REDUCTION with MEM_REF OMP_CLAUSE_DECL.  Set
11182         lastprivate_firstprivate flag for linear that needs copyin and
11183         copyout.  Use BUILT_IN_ALLOCA_WITH_ALIGN instead of BUILT_IN_ALLOCA.
11184         (lower_lastprivate_clauses): For OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE
11185         on taskloop lookup decl in outer context.  Pass true to
11186         build_outer_var_ref lastprivate argument.  Handle
11187         OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV lastprivate if the decl is global
11188         outside of outer taskloop for.
11189         (lower_reduction_clauses): Handle OMP_CLAUSE_REDUCTION with MEM_REF
11190         OMP_CLAUSE_DECL.
11191         (lower_send_clauses): Ignore first two _LOOPTEMP_ clauses in taskloop
11192         GOMP_TASK.  Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.  Handle
11193         omp_member_access_dummy_var vars.  Handle OMP_CLAUSE_REDUCTION
11194         with MEM_REF OMP_CLAUSE_DECL.  Use new lookup_sfield overload.
11195         (lower_send_shared_vars): Ignore fields with NULL or FIELD_DECL
11196         abstract origin.  Handle omp_member_access_dummy_var vars.
11197         (expand_parallel_call): Use expand_omp_build_assign.
11198         (expand_task_call): Handle taskloop construct expansion.  Add
11199         REGION argument.  Use GOMP_TASK_* defines instead of hardcoded
11200         integers.  Add priority argument to GOMP_task* calls.  Or in
11201         GOMP_TASK_FLAG_PRIORITY into flags if priority is present for
11202         GOMP_task call.
11203         (expand_omp_build_assign): Add prototype.  Add AFTER
11204         argument, if true emit statements after *GSI_P and continue linking.
11205         (expand_omp_taskreg): Adjust expand_task_call caller.
11206         (expand_omp_for_init_counts): Rename zero_iter_bb argument to
11207         zero_iter1_bb and first_zero_iter to first_zero_iter1, add
11208         zero_iter2_bb and first_zero_iter2 arguments, handle computation
11209         of counts even for ordered loops.
11210         (expand_omp_for_init_vars): Handle GOMP_TASK inner_stmt.
11211         (expand_omp_ordered_source, expand_omp_ordered_sink,
11212         expand_omp_ordered_source_sink, expand_omp_for_ordered_loops): New
11213         functions.
11214         (expand_omp_for_generic): Use omp_adjust_chunk_size.  Handle linear
11215         clauses on worksharing loop.  Handle DOACROSS loop expansion.
11216         (expand_omp_for_static_nochunk): Handle linear clauses on
11217         worksharing loop.  Adjust expand_omp_for_init_counts
11218         callers.
11219         (expand_omp_for_static_chunk): Likewise.  Use omp_adjust_chunk_size.
11220         (expand_omp_simd): Handle addressable fd->loop.v.  Adjust
11221         expand_omp_for_init_counts callers.
11222         (expand_omp_taskloop_for_outer, expand_omp_taskloop_for_inner): New
11223         functions.
11224         (expand_omp_for): Call expand_omp_taskloop_for_* for taskloop.
11225         Handle doacross loops.
11226         (expand_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
11227         GF_OMP_TARGET_KIND_EXIT_DATA.  Pass flags and depend arguments to
11228         GOMP_target_{41,update_41,enter_exit_data} libcalls.
11229         (expand_omp): Don't expand ordered depend constructs here, record
11230         ord_stmt instead for later expand_omp_for_generic.
11231         (build_omp_regions_1): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
11232         GF_OMP_TARGET_KIND_EXIT_DATA.  Treat GIMPLE_OMP_ORDERED with depend
11233         clause as stand-alone directive.
11234         (lower_omp_ordered_clauses): New function.
11235         (lower_omp_ordered): Handle OMP_CLAUSE_SIMD, for OMP_CLAUSE_DEPEND
11236         don't lower anything.
11237         (lower_omp_for_lastprivate): Use last _looptemp_ clause
11238         on taskloop for comparison.
11239         (lower_omp_for): Handle taskloop constructs.  Adjust OMP_CLAUSE_DECL
11240         and OMP_CLAUSE_LINEAR_STEP so that expand_omp_for_* can use it during
11241         expansion for linear adjustments.
11242         (create_task_copyfn): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
11243         (lower_depend_clauses): Assert not seeing sink/source depend kinds.
11244         Set TREE_ADDRESSABLE on array.  Change first argument from gimple *
11245         to tree * pointing to the stmt's clauses.
11246         (lower_omp_taskreg): Adjust lower_depend_clauses caller.
11247         (lower_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA
11248         and GF_OMP_TARGET_KIND_EXIT_DATA, depend clauses,
11249         GOMP_MAP_{RELEASE,ALWAYS_{TO,FROM,TOFROM},FIRSTPRIVATE_POINTER,STRUCT}
11250         map kinds, OMP_CLAUSE_{FIRSTPRIVATE,PRIVATE,{IS,USE}_DEVICE_PTR
11251         clauses.  Always use short kind and 8-bit align shift.
11252         (lower_omp_regimplify_p): Use IS_TYPE_OR_DECL_P macro.
11253         (struct lower_omp_regimplify_operands_data): New type.
11254         (lower_omp_regimplify_operands_p, lower_omp_regimplify_operands):
11255         New functions.
11256         (lower_omp_1): Use lower_omp_regimplify_operands instead of
11257         gimple_regimplify_operands.
11258         (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
11259         GF_OMP_TARGET_KIND_EXIT_DATA.  Treat GIMPLE_OMP_ORDERED with depend
11260         clause as stand-alone directive.
11261         (simd_clone_clauses_extract): Honor OMP_CLAUSE_LINEAR_KIND.
11262         (simd_clone_mangle): Mangle the various linear kinds
11263         per the new ABI.
11264         (simd_clone_adjust_argument_types): Handle
11265         SIMD_CLONE_ARG_TYPE_LINEAR_*_CONSTANT_STEP.
11266         (simd_clone_init_simd_arrays): Don't do anything for uval.
11267         (simd_clone_adjust): Handle
11268         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
11269         SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.
11270         Handle SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP.
11271         * omp-low.h (omp_member_access_dummy_var): New prototype.
11272         * passes.def (pass_simduid_cleanup): Schedule another copy of the
11273         pass after all optimizations.
11274         * tree.c (omp_clause_code_name): Add entries for
11275         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
11276         and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
11277         (omp_clause_num_ops): Likewise.  Bump number of OMP_CLAUSE_REDUCTION
11278         arguments to 5 and for OMP_CLAUSE_ORDERED to 1.
11279         (walk_tree_1): Adjust for OMP_CLAUSE_ORDERED having 1 argument and
11280         OMP_CLAUSE_REDUCTION 5 arguments.  Handle
11281         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
11282         and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}
11283         clauses.
11284         * tree-core.h (enum omp_clause_linear_kind): New.
11285         (struct tree_omp_clause): Change type of map_kind
11286         from unsigned char to unsigned int.  Add subcode.if_modifier
11287         and subcode.linear_kind fields.
11288         (enum omp_clause_code): Add
11289         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
11290         and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
11291         (OMP_CLAUSE_REDUCTION): Document
11292         OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
11293         (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_{SOURCE,SINK}.
11294         * tree.def (OMP_FOR): Add OMP_FOR_ORIG_DECLS operand.
11295         (OMP_CRITICAL): Move before OMP_SINGLE.  Add OMP_CRITICAL_CLAUSES
11296         operand.
11297         (OMP_ORDERED): Move before OMP_SINGLE.  Add OMP_ORDERED_CLAUSES
11298         operand.
11299         (OMP_TASKLOOP, OMP_TARGET_ENTER_DATA, OMP_TARGET_EXIT_DATA): New tree
11300         codes.
11301         * tree.h (OMP_BODY): Replace OMP_CRITICAL with OMP_TASKGROUP.
11302         (OMP_CLAUSE_SET_MAP_KIND): Cast to unsigned int rather than unsigned
11303         char.
11304         (OMP_CRITICAL_NAME): Adjust to be 3rd operand instead of 2nd.
11305         (OMP_CLAUSE_NUM_TASKS_EXPR): Formatting fix.
11306         (OMP_STANDALONE_CLAUSES): Adjust to cover OMP_TARGET_{ENTER,EXIT}_DATA.
11307         (OMP_CLAUSE_DEPEND_SINK_NEGATIVE, OMP_TARGET_COMBINED,
11308         OMP_CLAUSE_MAP_PRIVATE, OMP_FOR_ORIG_DECLS, OMP_CLAUSE_IF_MODIFIER,
11309         OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION, OMP_CRITICAL_CLAUSES,
11310         OMP_CLAUSE_PRIVATE_TASKLOOP_IV, OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV,
11311         OMP_CLAUSE_HINT_EXPR, OMP_CLAUSE_SCHEDULE_SIMD,
11312         OMP_CLAUSE_LINEAR_KIND, OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER,
11313         OMP_CLAUSE_SHARED_FIRSTPRIVATE, OMP_ORDERED_CLAUSES,
11314         OMP_TARGET_ENTER_DATA_CLAUSES, OMP_TARGET_EXIT_DATA_CLAUSES,
11315         OMP_CLAUSE_NUM_TASKS_EXPR, OMP_CLAUSE_GRAINSIZE_EXPR,
11316         OMP_CLAUSE_PRIORITY_EXPR, OMP_CLAUSE_ORDERED_EXPR): Define.
11317         * tree-inline.c (remap_gimple_stmt): Handle clauses on
11318         GIMPLE_OMP_ORDERED and GIMPLE_OMP_CRITICAL.  For
11319         IFN_GOMP_SIMD_ORDERED_{START,END} set has_simduid_loops.
11320         * tree-nested.c (convert_nonlocal_omp_clauses): Handle
11321         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
11322         and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
11323         clauses.  Handle OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
11324         (convert_local_omp_clauses): Likewise.
11325         * tree-pretty-print.c (dump_omp_clause): Handle
11326         OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
11327         and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
11328         clauses.  Handle OMP_CLAUSE_IF_MODIFIER, OMP_CLAUSE_ORDERED_EXPR,
11329         OMP_CLAUSE_SCHEDULE_SIMD, OMP_CLAUSE_LINEAR_KIND,
11330         OMP_CLAUSE_DEPEND_{SOURCE,SINK}.  Use "delete" for
11331         GOMP_MAP_FORCE_DEALLOC.  Handle
11332         GOMP_MAP_{ALWAYS_{TO,FROM,TOFROM},RELEASE,FIRSTPRIVATE_POINTER,STRUCT}.
11333         (dump_generic_node): Handle OMP_TASKLOOP, OMP_TARGET_{ENTER,EXIT}_DATA
11334         and clauses on OMP_ORDERED and OMP_CRITICAL.
11335         * tree-vectorizer.c (adjust_simduid_builtins): Adjust comment.
11336         Remove IFN_GOMP_SIMD_ORDERED_{START,END}.
11337         (vectorize_loops): Adjust comments.
11338         (pass_simduid_cleanup::execute): Likewise.
11339         * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
11340         SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_CONSTANT_STEP.
11341         * wide-int.h (wi::gcd): New.
11343 2015-10-13  Uros Bizjak  <ubizjak@gmail.com>
11345         * config/i386/i386.c (classify_argument): Use CEIL where applicable.
11346         (ix86_function_arg_advance): Ditto.
11347         (ix86_function_arg): Ditto.
11348         (ix86_gimplify_va_arg): Ditto.
11349         (ix86_class_max_nregs): Ditto.
11350         (inline_memory_move_cost): Ditto.
11351         (ix86_set_reg_reg_cost): Ditto.
11352         * config/i386/i386.h (HARD_REGNO_NREGS): Ditto.
11354 2015-10-13  Alexandre Oliva <aoliva@redhat.com>
11356         PR middle-end/67912
11357         * expmed.c (store_bit_field_1): Adjust mode of BLKmode inputs.
11359 2015-10-13  Uros Bizjak  <ubizjak@gmail.com>
11361         * config/sparc/sparc.h (SPARC_STACK_ALIGN): Implement using
11362         ROUND_UP macro and UNITS_PER_WORD * 2.
11363         * config/sparc/sparc.c (sparc_compute_frame_size):
11364         Use ROUND_UP and ROUND_DOWN macros where applicable.
11365         (function_arg_record_value, function_arg_record_value_1)
11366         (function_arg_record_value_1): Ditto.
11367         (emit_save_or_restore_regs): Use ROUND_DOWN to preserve offset
11368         alignment to double-word.
11369         (sparc_gimplify_va_arg): Use ROUND_UP to calculate rsize.
11370         (sparc_emit_probe_stack_range): Use ROUND_DOWN to calculate
11371         rounded_size.
11373 2015-10-13  Nikolai Bozhenov  <n.bozhenov@samsung.com>
11375         * rtl.h (print_insn): Fix prototype.
11377 2015-10-13  Tom de Vries  <tom@codesourcery.com>
11379         * tree-parloops.c (reduction_phi): Handle cases that gimple_uid is 0 or
11380         -1.  Add assert that returned entry matches phi argument.
11381         (parallelize_loops): Move calls to init_stmt_vec_info_vec and
11382         free_stmt_vec_info_vec ...
11383         (gather_scalar_reductions): ... here.  Initialize gimple_uids of phis
11384         with -1.
11386 2014-10-13  Yuri Rumyantsev  <ysrumyan@gmail.com>
11388         PR tree-optimization/67909, 67947
11389         * tree-ssa-loop-unswitch.c (find_loop_guard): Add check that GUARD_EDGE
11390         really skip the inner loop.
11392 2015-10-13  Jeff Law  <law@redhat.com>
11394         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
11395         Allow single block jump threading paths.
11397 2015-10-13  Tom de Vries  <tom@codesourcery.com>
11399         PR tree-optimization/67476
11400         * doc/invoke.texi (@item parloops-schedule): New item.
11401         * params.def (PARAM_PARLOOPS_SCHEDULE): New DEFPARAMENUM5.
11402         * tree-parloops.c: Include params-enum.h.
11403         (create_parallel_loop): Handle PARAM_PARLOOPS_SCHEDULE.
11405 2015-10-13  Tom de Vries  <tom@codesourcery.com>
11407         * Makefile.in (PARAMS_H, PLUGIN_HEADERS): Add params-enum.h.
11408         * params-enum.h: New file.
11409         * opts.c (handle_param): Handle case that param arg is a string.
11410         * params-list.h: Handle DEFPARAMENUM5 in params.def.
11411         * params.c (find_param): New function, factored out of ...
11412         (set_param_value): ... here.
11413         (param_string_value_p): New function.
11414         * params.h (struct param_info): Add value_names field.
11415         (find_param, param_string_value_p): Declare.
11417 2015-10-13  Tom de Vries  <tom@codesourcery.com>
11419         PR tree-optimization/67476
11420         * omp-low.c (expand_omp_for_generic): Handle original loop tree.
11422 2015-10-13  Richard Biener  <rguenther@suse.de>
11424         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences): Allocate
11425         the data dependence vector.
11426         (vect_peeling_hash_insert): Get the peeling hash table as argument.
11427         (vect_peeling_hash_get_lowest_cost): Likewise.
11428         (vect_enhance_data_refs_alignment): Adjust.
11429         (struct _vect_peel_info, struct _vect_peel_extended_info,
11430         struct peel_info_hasher): Move from ...
11431         * tree-vectorizer.h: ... here.
11432         (LOOP_VINFO_COST_MODEL_MIN_ITERS): Remove.
11433         (LOOP_VINFO_PEELING_HTAB): Likewise.
11434         (struct _loop_vec_info): Remove min_profitable_iters and
11435         peeling_htab members.
11436         * tree-vect-loop.c (new_loop_vec_info): Do not allocate vectors
11437         here.
11438         (destroy_loop_vec_info): Adjust.
11439         (vect_analyze_loop_2): Do not set LOOP_VINFO_COST_MODEL_MIN_ITERS.
11440         (vect_estimate_min_profitable_iters): Use LOOP_VINFO_COMP_ALIAS_DDRS
11441         to estimate alias versioning cost.
11442         * tree-vect-slp.c (vect_analyze_slp_cost): Dump header.
11444 2015-10-13  Richard Sandiford  <richard.sandiford@arm.com>
11446         * real.h (real_isinteger): Declare.
11447         * real.c (real_isinteger): New function.
11448         * match.pd: Simplify pow(|x|,y) and pow(-x,y) to pow(x,y)
11449         if y is an even integer.
11451 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
11453         revert:
11454         2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
11455         * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
11456         counts when these are more informative.
11458 2015-10-12  Jeff Law  <law@redhat.com>
11460         * tree-ssa-threadbackward.c (get_gimple_control_stmt): New function.
11461         (fsm_find_control_stmt_paths): Change name of first argument to
11462         more accurately relfect what it really is.  Handle simplification
11463         of GIMPLE_COND after finding a thread path for NAME.
11464         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Allow
11465         nontrivial conditions to be handled by FSM threader.
11466         (thread_through_normal_block): Extract the name to looup via
11467         FSM threader from COND_EXPR.
11469         * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove
11470         restriction that traced SSA_NAME is a user variable.
11472 2015-10-12  Tom de Vries  <tom@codesourcery.com>
11474         PR tree-optimization/67476
11475         * omp-low.c (expand_omp_for_generic): Add missing phis.
11477 2015-10-12  Tom de Vries  <tom@codesourcery.com>
11479         PR tree-optimization/67476
11480         * omp-low.c (expand_omp_for_generic): Handle simple latch.
11482 2015-10-12  Christophe Lyon  <christophe.lyon@linaro.org>
11484         * config/aarch64/aarch64-simd-builtins.def: Update builtins
11485         tables: add tbl3 and tbx4.
11486         * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): New.
11487         (aarch64_tbx4v8qi): New.
11488         * config/aarch64/arm_neon.h (vtbl3_s8, vtbl3_u8, vtbl3_p8)
11489         (vtbl4_s8, vtbl4_u8, vtbl4_p8, vtbx4_s8, vtbx4_u8, vtbx4_p8):
11490         Rewrite using builtin functions.
11491         * config/aarch64/iterators.md (UNSPEC_TBX): New.
11493 2015-10-12  Uros Bizjak  <ubizjak@gmail.com>
11495         * config/rs6000/rs6000.h (RS6000_ALIGN): Implement using
11496         ROUND_UP macro.
11497         * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
11498         Use ROUND_UP and ROUND_DOWN macros where applicable.
11499         (rs6000_darwin64_record_arg_flush): Ditto.
11500         (rs6000_function_arg): Use ROUND_UP to calculate align_words.
11501         (rs6000_emit_probe_stack_range): Use ROUND_DOWN to calculate
11502         rounded_size.
11504 2015-10-12  Uros Bizjak  <ubizjak@gmail.com>
11506         * config/aarch/aarch64.h (AARCH64_ROUND_UP): Remove.
11507         (AARCH64_ROUND_DOWN): Ditto.
11508         * config/aarch64/aarch64.c: Use ROUND_UP instead of AARCH64_ROUND_UP.
11510 2015-10-12  Richard Biener  <rguenther@suse.de>
11512         PR ipa/67783
11513         * ipa-inline-analysis.c (estimate_function_body_sizes): Re-add
11514         code that analyzes IVs on each stmt but in a cheaper way avoiding
11515         quadratic behavior.
11517 2015-10-12  Nick Clifton  <nickc@redhat.com>
11519         * config/msp430/msp430.c (msp430_mcu_names): Rename to
11520         msp430_mcu_data, add fields for ISA and hardware multiply
11521         support.  Import latest data from the devices.csv file.
11522         (msp430_override_option): Use the data from the new array.
11523         (msp430_use_f5_series_hwmult): Likewise.
11524         (use_32bit_hwmult): Likewise.
11525         (msp430_no_hwmult): Likewise.
11526         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for new
11527         MCU names.
11528         * doc/invoke.texi (MSP430 Options): Note that if the MCU name is
11529         not recognised then no hardware multiply support is assumed and
11530         that only the MSP430 ISA is allowed.
11532 2015-10-12  Richard Biener  <rguenther@suse.de>
11534         * tree-vect-loop.c (vect_analyze_loop_operations): Move cost
11535         related code ...
11536         (vect_analyze_loop_2): ... here.
11538 2015-10-11  Jason Merrill  <jason@redhat.com>
11540         PR c++/67557
11541         * expr.c (store_field): Call store_constructor directly when
11542         storing a CONSTRUCTOR into a target smaller than its type.
11543         Guard against unsafe bitwise copy.
11545 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
11547         * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
11548         counts when these are more informative.
11550 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
11552         * tree-profile.c (tree_profiling): Do not clear
11553         pure/const when not instrumenting.
11554         (pass tree_profile): Add dump of symtab.
11556 2015-10-11  Jan Hubicka  <hubicka@ucw.cz>
11558         * fold-const.c (fold_comparsion): Pass OEP_ADDRESS_OF when comparing
11559         addresses.
11560         (fold_addr_of_array_ref_difference): Likewise.
11562 2015-10-11  Jeff Law  <law@redhat.com>
11564         * tree-ssa-threadedge.c (fsm_find_thread_path): Moved from here into
11565         tree-ssa-threadbackward.c.
11566         (fsm_find_control_statement_thread_paths): Likewise.
11567         (thread_through_normal_block): Break out FSM bits and move them
11568         into a new function in tree-ssa-threadbackward.c.  Call new function
11569         instead.
11570         Minimize header file usage.
11571         * tree-ssa-threadbackward.h: New file.
11572         * tree-ssa-threadbackward.c: Likewise.
11573         * Makefile.in (OBJS): Add tree-ssa-threadbackward.o
11575 2015-10-11  Uros Bizjak  <ubizjak@gmail.com>
11577         * config/alpha/alpha.h (ALPHA_ROUND): Implement using ROUND_UP macro.
11579 2015-10-11  Segher Boessenkool  <segher@kernel.crashing.org>
11581         PR rtl-optimization/67864
11582         * bb-reorder (reorder_basic_blocks_simple): Prefer existing
11583         fallthrough edges for conditional jumps.  Don't sort candidate
11584         edges if not optimizing for speed.
11586 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11588         * defaults.h (REVERSE_CONDITION): New default definition.
11589         * jump.c (reversed_comparison_code_parts): Adjust.
11591 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11593         * builtins.c (expand_builtin_setjmp_receiver): Don't use #if to
11594         check HARD_FRAME_POINTER_IS_ARG_POINTER.
11596 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11598         * defaults.h (FRAME_ADDR_RTX): New default definition.
11599         * builtins.c (expand_builtin_return_addr): Adjust.
11601 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11603         * defaults.h (DYNAMIC_CHAIN_ADDRESS): New default definition.
11604         * builtins.c (expand_builtin_return_addr): Adjust.
11606 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11608         * defaults.h (SETUP_FRAME_ADDRESSES): New default definition.
11609         * builtins.c (expand_builtin_return_addr): Adjust.
11610         * doc/tm.texi: Likewise.
11611         * doc/tm.texi.in: Likewise.
11612         * except.c (expand_builtin_unwind_init): Likewise.
11614 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11616         * builtins.c (expand_builtin_return_addr): Adjust.
11617         * defaults.h (INITIAL_FRAME_ADDRESS_RTX): New default definition.
11619 2015-10-10  Jan Hubicka  <hubicka@ucw.cz>
11621         * tree.c (type_with_interoperable_signedness): New.
11622         (gimple_canonical_types_compatible_p): Use it.
11623         * tree.h (type_with_interoperable_signedness): Declare
11625 2015-10-10  Jan Hubicka  <hubicka@ucw.cz>
11627         * fold-const.c (operand_equal_p): Document OEP_ADDRESS_OF
11628         and OEP_CONSTANT_ADDRESS_OF; skip type compatibility checks
11629         when OEP_ADDRESS_OF is se.
11631 2015-10-10  Aditya Kumar  <aditya.k7@samsung.com>
11632             Sebastian Pop  <s.pop@samsung.com>
11634         * graphite-dependences.c (scop_get_dependences): Add dump of the
11635         data dependence graph.
11636         * graphite-poly.c (print_isl_union_map): New.
11637         (debug_isl_union_map): New.
11638         * graphite-poly.h (print_isl_union_map): Declare.
11639         (debug_isl_union_map): Declare.
11641 2015-10-10  Aditya Kumar  <aditya.k7@samsung.com>
11642             Sebastian Pop  <s.pop@samsung.com>
11644         * graphite-poly.c (print_iteration_domain): Remove verbosity.
11645         Remove OpenScop formatting.
11646         (print_iteration_domains): Same.
11647         (debug_iteration_domain): Same.
11648         (debug_iteration_domains): Same.
11649         (print_pdr): Same.
11650         (debug_pdr): Same.
11651         (dump_gbb_cases): Same.
11652         (dump_gbb_conditions): Same.
11653         (print_pdrs): Same.
11654         (debug_pdrs): Same.
11655         (print_pbb_body): Same.
11656         (print_pbb): Same.
11657         (print_scop_params): Same.
11658         (print_scop_context): Same.
11659         (print_scop): Same.
11660         (debug_pbb_domain): Same.
11661         (debug_pbb): Same.
11662         (debug_scop_context): Same.
11663         (debug_scop): Same.
11664         (debug_scop_params): Same.
11665         * graphite-poly.h: Same.
11666         * graphite.c (graphite_transform_loops): Same.
11668 2015-10-10  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11670         * function.c (stack_protect_epilogue): Remove as_a<rtx_insn *> ()
11671         call that isn't needed.
11673 2015-10-09  Jeff Law  <law@redhat.com>
11675         * tree-ssanames.c (flush_ssaname_freelist): Use splice and truncate
11676         rather than moving each name to the freelist individually.
11678 2015-10-09  Steve Ellcey  <sellcey@imgtec.com>
11680         * config.gcc (mips*-*-*): Add frame-header-opt.o to extra_objs.
11681         * frame-header-opt.c: New file.
11682         * config/mips/mips-proto.h (mips_register_frame_header_opt):
11683         Add prototype.
11684         * config/mips/mips.c (mips_compute_frame_info): Check
11685         optimize_call_stack flag.
11686         (mips_option_override): Register new frame_header_opt pass.
11687         (mips_frame_info, mips_int_mask, mips_shadow_set,
11688         machine_function): Move these types to...
11689         * config/mips/mips.h: here.
11690         (machine_function): Add does_not_use_frame_header and
11691         optimize_call_stack fields.
11692         * config/mips/t-mips (frame-header-opt.o): Add new make rule.
11693         * doc/invoke.texi (-mframe-header-opt, -mno-frame-header-opt):
11694         Document new flags.
11695         * config/mips/mips.opt (mframe-header-opt): Add new option.
11697 2015-10-09  Uros Bizjak  <ubizjak@gmail.com>
11699         * config/i386/i386.c
11700         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Use
11701         ROUND_DOWN where applicable.
11703 2015-10-09  Jeff Law  <law@redhat.com>
11705         * tree-vect-stmts.c (free_stmt_vec_info): Free the LHS of the
11706         correct statement.
11708 2015-10-09  Renlin Li  <renlin.li@arm.com>
11710         * config/arm/neon.md (neon_vuzp<mode>_insn): Add & modifier for
11711         operands[0] and operands[2].
11712         (neon_vtrn<mode>_insn): Likewise.
11713         (neon_vzip<mode>_insn): Likewise.
11715 2015-10-09  Andre Vieira  <andre.simoesdiasvieira@arm.com>
11717         * match.pd: ((X inner_op C0) outer_op C1) New pattern.
11718         ((X & C2) << C1): Expand to...
11719         (X {&,^,|} C2 << C1): ...This.
11720         ((X & C2) >> C1): Expand to...
11721         (X {&,^,|} C2 >> C1): ...This.
11723 2015-10-09  Alexander Fomin  <alexander.fomin@intel.com>
11725         PR target/67895
11726         * config/i386/sse.md (define_insn "sse_cvtsi2ss<round_name>"):
11727         Adjust embedded rounding/SAE specifier position.
11728         (define_insn "sse_cvtsi2ssq<round_name>"): Likewise.
11729         (define_insn "cvtusi2<ssescalarmodesuffix>32<round_name>"): Likewise.
11730         (define_insn "cvtusi2<ssescalarmodesuffix>64<round_name>"): Likewise.
11731         (define_insn "sse2_cvtsi2sdq<round_name>"): Likewise.
11732         (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
11733         Likewise.
11734         (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Likewise.
11736 2015-10-09  Martin Jambor  <mjambor@suse.cz>
11738         tree-optimization/67794
11739         * tree-sra.c (replace_removed_params_ssa_names): Do not distinguish
11740         between types of state,ents but accept original definitions as a
11741         parameter.
11742         (ipa_sra_modify_function_body): Use FOR_EACH_SSA_DEF_OPERAND to
11743         iterate over definitions.
11745 2015-10-09  James Norris  <jnorris@codesourcery.com>
11747         * config/rs6000/rs6000.c (rs6000_offload_options): New.
11748         (TARGET_OFFLOAD_OPTIONS): New.
11750 2015-10-09  Alexandre Oliva <aoliva@redhat.com>
11752         PR middle-end/67891
11753         * cfgexpand.c (set_parm_rtl): Drop is_gimple_reg test.
11755         PR middle-end/67766
11756         * function.c (expand_function_end): Move return value
11757         promotion past the handling of PARALLELs and CONCATs.
11759         PR rtl-optimization/67828
11760         * tree-ssa-loop-unswitch.c: Include tree-ssa.h.
11761         (tree_may_unswitch_on): Don't unswitch on expressions
11762         involving undefined values.
11764 2015-10-09  Richard Biener  <rguenther@suse.de>
11766         * genmatch.c (print_operand): Fix formatting.
11767         (dt_node::append_simplify): Warn for multiple simplifiers
11768         that match the same pattern.
11769         * match.pd (log (exp @0)): Remove duplicates.
11771 2015-10-09  Richard Biener  <rguenth@suse.de>
11773         PR target/67366
11774         * gimple-fold.c (optabs-query.h): Include
11775         (gimple_fold_builtin_memory_op): Allow unaligned stores
11776         when movmisalign_optabs are available.
11778 2015-10-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11780         PR target/67366
11781         * config/arm/arm.md (movmisalign<mode>): New.
11782         * config/arm/iterators.md (HSI): New.
11784 2015-10-09  Richard Biener  <rguenther@suse.de>
11786         PR tree-optimization/67891
11787         * gimple-match.h (gimple_simplified_result_is_gimple_val):
11788         New helper.
11789         (gimple_resimplify1): Declare.
11790         (gimple_resimplify2): Likewise.
11791         (gimple_resimplify3): Likewise.
11792         * gimple-match-head.c (gimple_resimplify1): Export.
11793         (gimple_resimplify2): Likewise.
11794         (gimple_resimplify3): Likewise.
11795         (maybe_push_res_to_seq): Use gimple_simplified_result_is_gimple_val.
11796         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
11797         * tree-ssa-sccvn.c (visit_reference_op_load): Use gimple_resimplify1
11798         to avoid creating stmts without VN info.
11800 2015-10-08  Jan Hubicka  <hubicka@ucw.cz>
11802         * ipa-icf.c (sem_item::compare_symbol_references): Fix use
11803         of availability.
11805 2015-10-08  Jeff Law  <law@redhat.com>
11807         * value-prof.c (gimple_ic): Add missing calls to unlink_stmt_vdef
11808         and release_ssa_name in two places.
11809         (gimple_stringop_fixed_value): Similarly.
11811         * tree-ssa-loop-im.c (rewrite_bittest): Add missing call to
11812         release_defs.
11814         * tree-stdarg.c (expand_ifn_va_arg_1): Add missing call to
11815         unlink_stmt_vdef and release_ssa_name_fn.
11817         * tree-ssa-dse.c (dse_optimize_stmt): Add missing call to
11818         release_defs.
11820 2015-10-08  H.J. Lu  <hongjiu.lu@intel.com>
11822         * config/i386/i386.c (ix86_compute_frame_layout): Round up the
11823         SSE register save area to 16 bytes only if the incoming stack
11824         boundary is no less than 16 bytes.
11826 2015-10-08  Jeff Law  <law@redhat.com>
11828         * tree-ssa-phiopt.c (factor_out_conversion): Add missing calls to
11829         release_ssa_name.  Fix typo in comment.
11831 2015-10-08  Nathan Sidwell  <nathan@acm.org>
11833         * config/nvptx/nvptx.h (struct machine_function): Add comment.
11834         * config/nvptx/nvptx.c (nvptx_declare_function_name): Functions
11835         may return pointer as well as in memory.
11836         (nvptx_output_return): Likewise.
11838 2015-10-08  Richard Sandiford  <richard.sandiford@arm.com>
11840         * builtins.c (fold_builtin_sqrt, fold_builtin_cbrt): Delete.
11841         (fold_builtin_1): Update accordingly.  Handle constant arguments here.
11842         * match.pd: Add rules previously handled by fold_builtin_sqrt
11843         and fold_builtin_cbrt.
11845 2015-10-08  Richard Sandiford  <richard.sandiford@arm.com>
11847         * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): New param.
11848         * doc/invoke.texi (--param max-ssa-name-query-depth): Document.
11849         * fold-const.h (tree_unary_nonnegative_warnv_p)
11850         (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
11851         (tree_expr_nonnegative_warnv_p): Add depth parameters.
11852         * fold-const.c: Include gimple-fold.h and params.h.
11853         (tree_ssa_name_nonnegative_warnv_p): New function.
11854         (tree_unary_nonnegative_warnv_p, tree_binary_nonnegative_warnv_p)
11855         (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
11856         (tree_invalid_nonnegative_warnv_p, tree_expr_nonnegative_warnv_p):
11857         Add a depth parameter and increment it for recursive calls to
11858         tree_expr_nonnegative_warnv_p.  Use tree_ssa_name_nonnegative_warnv_p
11859         to handle SSA names.
11860         * gimple-fold.h (gimple_val_nonnegative_real_p): Delete.
11861         (gimple_stmt_nonnegative_warnv_p): Declare.
11862         * tree-vrp.c (remove_range_assertions): Remove assert that condition
11863         cannot be proven false.
11864         (gimple_assign_nonnegative_warnv_p, gimple_call_nonnegative_warnv_p)
11865         (gimple_stmt_nonnegative_warnv_p): Move to...
11866         * gimple-fold.c: ...here.  Add depth parameters and pass them
11867         down to the tree routines.  Accept statements that aren't
11868         assignments or calls but just return false for them.
11869         (gimple_val_nonnegative_real_p): Delete.
11870         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
11871         tree_expr_nonnegative_p instead of gimple_val_nonnegative_real_p.
11872         Check HONOR_NANs first.
11874 2015-10-08  Martin Jambor  <mjambor@suse.cz>
11876         * ipa-cp.c (meet_with_1): Make the argument of abs signed.  Remove
11877         unnecessary MIN.
11879 2015-10-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
11881         * tree-vect-loop.c (vect_analyze_loop_operations): Skip virtual phi
11882         in the tail of outer-loop.
11884 2015-10-08  David Edelsohn  <dje.gcc@gmail.com>
11886         * config/rs6000/rs6000.c (rs6000_xcoff_debug_unwind_info): Always
11887         return UI_NONE.
11889 2015-10-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
11891         * tree-ssa-loop-unswitch.c: Include "gimple-iterator.h" and
11892         "cfghooks.h", add prototypes for introduced new functions.
11893         (tree_ssa_unswitch_loops): Use from innermost loop iterator, move all
11894         checks on ability of loop unswitching to tree_unswitch_single_loop;
11895         invoke tree_unswitch_single_loop or tree_unswitch_outer_loop depending
11896         on innermost loop check.
11897         (tree_unswitch_single_loop): Add all required checks on ability of
11898         loop unswitching under zero recursive level guard.
11899         (tree_unswitch_outer_loop): New function.
11900         (find_loop_guard): Likewise.
11901         (empty_bb_without_guard_p): Likewise.
11902         (used_outside_loop_p): Likewise.
11903         (get_vop_from_header): Likewise.
11904         (hoist_guard): Likewise.
11905         (check_exit_phi): Likewise.
11907 2015-10-08  Marek Polacek  <polacek@redhat.com>
11909         * tree-ssa-reassoc.c (dump_ops_vector): Print newline after each
11910         ops element.
11912 2015-10-08  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11914         PR c/65345
11915         * config/s390/s390.c (s390_atomic_assign_expand_fenv): Use
11916         create_tmp_var_raw instead of create_tmp_var.
11918 2015-10-07  Jan Hubicka  <hubicka@ucw.cz>
11920         * expr.c (store_expr_with_bounds): Handle aggregate moves from
11921         BLKmode.
11922         * gimple-expr.c (useless_type_conversion_p): Do not use TYPE_CANONICAL
11923         to define gimple type system; compare aggregates only by size.
11925 2015-10-07  Jeff Law  <law@redhat.com>
11927         * tree-ssa-dom.c (optimize_stmt): Don't set LOOPS_NEED_FIXUP here.
11928         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Do it
11929         here instead.  Tighten test to avoid setting LOOPS_NEED_FIXUP
11930         unnecessarily.
11932 2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
11933             Sebastian Pop  <s.pop@samsung.com>
11935         * graphite-dependences.c (scop_get_dependences): Do not use SCOP_BBS.
11936         * graphite-isl-ast-to-gimple.c (get_max_schedule_dimensions): Same.
11937         (generate_isl_schedule): Same.
11938         * graphite-optimize-isl.c (scop_get_domains): Same.
11939         (apply_schedule_map_to_scop): Same.
11940         * graphite-poly.c (print_iteration_domains): Same.
11941         (remove_gbbs_in_scop): Same.
11942         (new_scop): Same.
11943         (free_scop): Same.
11944         (print_scop): Same.
11945         * graphite-poly.h (struct scop): Rename bbs to pbbs.
11946         (SCOP_BBS): Remove.
11947         * graphite-scop-detection.c (compare_bb_depths): Remove.
11948         (graphite_sort_dominated_info): Remove.
11949         (try_generate_gimple_bb): Move out of scop_detection.
11950         (all_non_dominated_preds_marked_p): Remove.
11951         (build_scop_bbs_1): Remove.
11952         (build_scop_bbs): Remove.
11953         (nb_pbbs_in_loops): Do not use SCOP_BBS.
11954         (find_scop_parameters): Same.
11955         (sese_dom_walker): Rename gather_bbs.
11956         (before_dom_children): Call try_generate_gimple_bb and collect gbb
11957         and pbb.
11958         (build_scops): Call gather_bbs.
11959         * graphite-sese-to-poly.c (build_scop_scattering): Do not use SCOP_BBS.
11960         (add_conditions_to_constraints): Same.
11961         (build_scop_iteration_domain): Same.
11962         (build_scop_drs): Same.
11963         (new_pbb_from_pbb): Same.
11964         * sese.c (new_sese_info): Create bbs.
11965         * sese.h (struct sese_info_t): Add bbs.
11967 2015-10-07  David Edelsohn  <dje.gcc@gmail.com>
11969         * config/rs6000/xcoff.h (ASM_PREFERRED_EH_DATA_FORMAT): Use 64-bit
11970         encoding in 64-bit mode.
11972 2015-10-07  Uros Bizjak  <ubizjak@gmail.com>
11974         PR target/66697
11975         * config/i386/i386.c (ix86_option_override_internal): Always use
11976         8-byte minimum stack boundary in 64-bit mode.
11977         (ix86_compute_frame_layout): Remove assert on INCOMING_STACK_BOUNDARY.
11978         (ix86_emit_save_reg_using_mov): Support unaligned SSE store.
11979         Add a REG_CFA_EXPRESSION note if needed.
11980         (ix86_emit_restore_sse_regs_using_mov): Support unaligned SSE load.
11981         (ix86_handle_force_align_arg_pointer_attribute): New.
11982         (ix86_minimum_incoming_stack_boundary): Remove TARGET_64BIT check.
11983         (ix86_attribute_table): Set ix86_force_align_arg_pointer_string
11984         with ix86_handle_force_align_arg_pointer_attribute.
11985         * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to BITS_PER_WORD.
11987 2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
11988             Sebastian Pop  <s.pop@samsung.com>
11990         * graphite-scop-detection.c (parameter_index_in_region): Remove
11991         use of SESE_ADD_PARAMS.
11992         (find_scop_parameters): Same.
11993         * sese.c (new_sese_info): Same.
11994         * sese.h (struct sese_info_t): Remove add_params.
11995         (SESE_ADD_PARAMS): Remove.
11997 2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
11998             Sebastian Pop  <s.pop@samsung.com>
12000         * graphite-isl-ast-to-gimple.c (translate_isl_ast_to_gimple): Use
12001         an sese_info_p.
12002         (copy_def): Same.
12003         (copy_internal_parameters): Same.
12004         (translate_isl_ast_to_gimple): Use an sese_l.
12005         (build_iv_mapping): Same.
12006         * graphite-poly.c (new_sese): Rename new_sese_info.
12007         (free_sese): Rename free_sese_info.
12008         * graphite-poly.h (struct scop): Use an sese_info_p.
12009         (scop_set_region): Same.
12010         * graphite-scop-detection.c (struct sese_l): Moved...
12011         (get_entry_bb): Moved...
12012         (get_exit_bb): Moved...
12013         (parameter_index_in_region_1): Use an sese_info_p.
12014         (parameter_index_in_region): Same.
12015         (scan_tree_for_params): Same.
12016         (find_params_in_bb): Same.
12017         (sese_dom_walker): Use an sese_l.
12018         * graphite-sese-to-poly.c (remove_invariant_phi): Same.
12019         (reduction_phi_p): Same.
12020         (parameter_index_in_region_1): Use an sese_info_p.
12021         (propagate_expr_outside_region): Use an sese_l.
12022         * graphite.c: Replace uses of SCOP_REGION.
12023         * sese.c (sese_record_loop): Use an sese_info_p.
12024         (build_sese_loop_nests): Same.
12025         (sese_build_liveouts_use): Same.
12026         (sese_build_liveouts_bb): Same.
12027         (sese_build_liveouts_bb): Same.
12028         (sese_bad_liveouts_use): Same.
12029         (sese_reset_debug_liveouts_bb): Same.
12030         (sese_build_liveouts): Same.
12031         (new_sese): Renamed new_sese_info.
12032         (free_sese): Renamed free_sese_info.
12033         (set_rename): Use an sese_info_p.
12034         (graphite_copy_stmts_from_block): Same.
12035         (copy_bb_and_scalar_dependences): Same.
12036         (outermost_loop_in_sese_1): Use an sese_l.
12037         (outermost_loop_in_sese): Same.
12038         (if_region_set_false_region): Use an sese_info_p.
12039         (move_sese_in_condition): Same.
12040         (scalar_evolution_in_region): Use an sese_l.
12041         * sese.h (struct sese_l): ... here.
12042         (SESE_ENTRY): Remove.
12043         (SESE_ENTRY_BB): Remove.
12044         (SESE_EXIT): Remove.
12045         (SESE_EXIT_BB): Remove.
12046         (sese_contains_loop): Use an sese_info_p.
12047         (sese_nb_params): Same.
12048         (bb_in_sese_p): Use an sese_l.
12049         (stmt_in_sese_p): Same.
12050         (defined_in_sese_p): Same.
12051         (loop_in_sese_p): Same.
12052         (sese_loop_depth): Same.
12053         (struct ifsese_s): Use an sese_info_p.
12054         (gbb_loop_at_index): Use an sese_l.
12055         (nb_common_loops): Same.
12056         (scev_analyzable_p): Same.
12058 2015-10-07  H.J. Lu  <hongjiu.lu@intel.com>
12060         * config/i386/i386.c (ix86_conditional_register_usage): Use
12061         CALL_USED_REGISTERS_MASK.
12062         * config/i386/i386.h (CALL_USED_REGISTERS_MASK): New macro.
12064 2015-10-07  H.J. Lu  <hongjiu.lu@intel.com>
12066         PR bootstrap/67385
12067         * configure.ac (gcc_cv_readelf): Check $READELF_FOR_TARGET.
12068         * configure: Regenerated.
12070 2015-10-07  H.J. Lu  <hongjiu.lu@intel.com>
12072         PR target/67850
12073         * config/i386/i386.c (ix86_maybe_switch_abi): Merged with ...
12074         (ix86_set_current_function): This.
12075         (TARGET_EXPAND_TO_RTL_HOOK): Removed.
12077 2015-10-07  Richard Biener  <rguenther@suse.de>
12079         * tree-vectorizer.h (stmt_vec_info_vec): Use vec<stmt_vec_info>.
12080         (vinfo_for_stmt): Adjust.
12081         (set_vinfo_for_stmt): Likewise.
12082         * tree-vectorizer.c (stmt_vec_info_vec): Likewise.
12083         * tree-vect-stmts.c (free_stmt_vec_info_vec): Likewise.
12084         * tree-vect-loop.c (new_loop_vec_info): Remove special-casing
12085         of inner loop.
12086         (vect_analyze_loop_1): Remove.
12087         (vect_analyze_loop_form_1): Avoid building a loop_vec_info for
12088         inner loop when vectorizing an outer loop by splitting out from ...
12089         (vect_analyze_loop_form): ... here.
12091 2015-10-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12093         PR c/65345
12094         * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv):
12095         Use create_tmp_var_raw instead of create_tmp_var.
12097 2015-10-07  Richard Sandiford  <richard.sandiford@arm.com>
12099         * real.h (dconst_quarter, dconst_sixth, dconst_ninth): New macros.
12100         (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): Declare.
12101         * real.c (CACHED_FRACTION): New helper macro.
12102         (dconst_third_ptr): Use it.
12103         (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): New.
12104         * builtins.c (fold_builtin_sqrt): Use dconst_quarter and
12105         dconst_sixth.
12106         (fold_builtin_cbrt): Use dconst_sixth and dconst_ninth.
12108 2015-10-06  Jeff Law  <law@redhat.com>
12110         PR tree-optimization/67816
12111         * tree-ssa-threadupdate.h (remove_jump_threads_including): Renamed
12112         from remove_jump_threads_starting_at.  Accept an edge rather than
12113         a basic block.
12114         * tree-ssa-threadupdate.c (removed_edges): New hash table.
12115         (remove_jump_threads_including): Note edges that get removed from
12116         the CFG for later pruning of jump threading paths including them.
12117         (thread_through_all_blocks): Remove paths which include edges that
12118         have been removed.
12119         * tree-ssa-dom.c (optimize_stmt): Call remove_jump_threads_including
12120         on each outgoing edges when optimizing away a control statement.
12122 2015-10-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12124         * reorg.c (emit_delay_sequence): Store list of delay slot insns
12125         in a vector instead of rtx_insn_list.
12126         (add_to_delay_list): Likewise.
12127         (delete_from_delay_slot): Likewise.
12128         (optimize_skip): Likewise.
12129         (redirect_with_delay_list_safe_p): Likewise.
12130         (check_annul_list_true_false): Likewise.
12131         (steal_delay_list_from_target): Likewise.
12132         (steal_delay_list_from_fallthrough): Likewise.
12133         (redundant_insn): Likewise.
12134         (fill_simple_delay_slots): Likewise.
12135         (fill_slots_from_thread): Likewise.
12136         (fill_eager_delay_slots): Likewise.
12137         (relax_delay_slots): Likewise.
12139 2015-10-06  Sandra Loosemore  <sandra@codesourcery.com>
12141         * config/nios2/nios2.c (nios2_symbol_ref_in_small_data_p):
12142         For -mgpopt=local, also exclude unintialized common symbols.
12143         * doc/invoke.texi (Nios II Options): Document the change.
12145 2015-10-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
12147         * config/aarch64/iterators.md (vwcore): Add missing cases for
12148          V4HF/V8HF modes.
12150 2015-10-06  Aditya Kumar  <aditya.k7@samsung.com>
12151             Sebastian Pop  <s.pop@samsung.com>
12153         * graphite-poly.c (new_scop): Initialize drs.
12154         * graphite-poly.h (struct dr_info): New.
12155         (struct scop): Add drs.
12156         * graphite-sese-to-poly.c (pdr_add_alias_set): Use dr_info.
12157         (pdr_add_memory_accesses): Same.
12158         (build_poly_dr): Same.
12159         (build_alias_set): Same.
12160         (build_scop_drs): Same.
12161         (build_pbb_drs): Remove.
12162         * tree-data-ref.c (create_data_ref): Do not initialize alias_set.
12163         * tree-data-ref.h (data_reference): Remove alias_set.
12165 2015-10-06  Aditya Kumar  <aditya.k7@samsung.com>
12166             Sebastian Pop  <s.pop@samsung.com>
12168         * graphite-poly.c (free_data_refs_aux): Remove.
12169         (free_gimple_poly_bb): Do not call free_data_refs_aux.
12170         * graphite-poly.h (struct base_alias_pair): Remove.
12171         * graphite-sese-to-poly.c (pdr_add_alias_set): Remove all uses of
12172         base_alias_pair and dr->aux.
12173         (build_alias_set): Same.
12174         * tree-data-ref.c (create_data_ref): Initialize alias_set.
12175         * tree-data-ref.h (data_reference): Add alias_set.
12177 2015-10-06  Aditya Kumar  <aditya.k7@samsung.com>
12178             Sebastian Pop  <s.pop@samsung.com>
12180         * graphite-poly.c (new_poly_dr): Remove dr_base_object_set.
12181         Do not set PDR_BASE_OBJECT_SET.
12182         * graphite-poly.h (poly_dr): Same.
12183         (PDR_BASE_OBJECT_SET): Remove.
12184         (new_poly_dr): Update decl.
12185         * graphite-sese-to-poly.c (build_poly_dr): Update call to
12186         new_poly_dr.
12187         (write_alias_graph_to_ascii_dimacs): Remove.
12188         (write_alias_graph_to_ascii_dot): Remove.
12189         (write_alias_graph_to_ascii_ecc): Remove.
12190         (dr_same_base_object_p): Remove.
12191         (build_alias_set_optimal_p): Rename build_alias_set.  Remove dead
12192         code.
12193         (build_base_obj_set_for_drs): Remove.
12194         (dump_alias_graphs): Remove.
12195         (build_scop_drs): Remove dead code.
12197 2015-10-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
12198             Peter Bergner  <bergner@vnet.ibm.com>
12200         PR target/67808
12201         * config/rs6000/rs6000.md (extenddftf2): In the expander, only
12202         allow registers, but provide insns for the combiner to create for
12203         loads from memory. Separate VSX code from non-VSX code. For
12204         non-VSX code, combine extenddftf2_fprs into extenddftf2 and rename
12205         externaldftf2_internal to externaldftf2_fprs. Reorder constraints
12206         so that registers come before memory operations. Drop support from
12207         converting DFmode to TFmode, if the DFmode value is in a GPR
12208         register.
12209         (extenddftf2_fprs): Likewise.
12210         (extenddftf2_internal): Likewise.
12211         (extenddftf2_vsx): Likewise.
12212         (extendsftf2): In the expander, only allow registers, but provide
12213         insns for the combiner to create for stores and loads.
12215 2015-10-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12217         * varasm.c (default_elf_asm_named_section): Remove ATTRIBUTE_UNUSED
12218         from the decl parameter.
12220 2015-10-06  Nathan Sidwell  <nathan@codesourcery.com>
12222         PR 67861
12223         * gimple-fold.c (gimple_fold_builtin): Add break after
12224         BUILT_IN_PRINTF_CHK, BUILT_IN_VPRINTF_CHK folding.
12226 2015-10-06  H.J. Lu  <hongjiu.lu@intel.com>
12228         * graphite-optimize-isl.c (optimize_isl): Rename scop->ctx
12229         to scop->isl_context.
12231 2015-10-06  Eric Botcazou  <ebotcazou@adacore.com>
12233         * config/arm/arm.c (arm_emit_probe_stack_range): Adjust comment.
12234         (output_probe_stack_range): Rotate the loop and simplify.
12235         (thumb1_expand_prologue): Tweak sorry message.
12236         * config/arm/arm.md (probe_stack): Use bare string.
12238 2015-10-06  Nick Clifton  <nickc@redhat.com>
12240         * config.gcc (lm32-elf): Add newlib-stdint.h to tm_file.
12242 2015-10-06  Nick Clifton  <nickc@redhat.com>
12244         * config/msp430/msp430.c (ATTR_NOINIT): New constant.
12245         (ATTR_PERSIST): New constant.
12246         (msp430_data_attr): New function - verifies an attribute that only
12247         applies to variables.
12248         (msp430_attributes): Add noinit and persistent attributes.
12249         (noinit_section): New variable.
12250         (presis_section): New variable.
12251         (TARGET_ASM_INIT_SECTIONS): Define.
12252         (msp430_init_sections): New function - initialises the noinit and
12253         persist section variables.
12254         (msp430_select_section): Add support for noinit and persist
12255         attributes.
12256         (msp430_section_type_flags): Likewise.
12257         * doc/extend.texi:  Document the reent, critical, wakeup, noinit
12258         and persistent attributes.
12260 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
12261             Sebastian Pop  <s.pop@samsung.com>
12263         * graphite-dependences.c (scop_get_transformed_schedule): Remove.
12264         (no_violations): Remove.
12265         (subtract_commutative_associative_deps): Remove.
12266         (compute_deps): Do not call subtract_commutative_associative_deps.
12267         (transform_is_safe): Remove.
12268         (graphite_legal_transform): Remove.
12269         * graphite-poly.h (graphite_legal_transform): Remove.
12271 2015-10-05  Aditya Kumar  <hiraditya@msn.com>
12273         * graphite-sese-to-poly.c (build_loop_iteration_domains): Only loops
12274         which are in this region are passed so gcc_assert and remove redundant
12275         computation.
12276         * sese.c (sese_build_liveouts): Pass only those bbs which are not
12277         in region.
12278         (sese_bad_liveouts_use): Only BBs which are not in region are passed so
12279         gcc_assert on that and remove unnecessary computation.
12280         (sese_build_liveouts_use): Same.
12282 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
12284         * graphite-dependences.c (scop_get_reads): Renamed scop->context
12285         to scop->param_context.
12286         (scop_get_must_writes): Same.
12287         (scop_get_may_writes): Same.
12288         (scop_get_original_schedule): Same.
12289         (scop_get_transformed_schedule): Same.
12290         (subtract_commutative_associative_deps): Same.
12291         * graphite-isl-ast-to-gimple.c (add_parameters_to_ivs_params): Same.
12292         (generate_isl_context): Same.
12293         (generate_isl_schedule): Same.
12294         (scop_to_isl_ast): Same.
12295         (graphite_regenerate_ast_isl): Same.
12296         * graphite-optimize-isl.c (scop_get_domains): Same.
12297         (optimize_isl): Renamed scop->context to scop->param_context.
12298         * graphite-poly.c (new_poly_bb): Change the type of argument to
12299         gimple_poly_bb_p.
12300         (new_scop): Renamed scop->context to scop->param_context.
12301         (free_scop): Same.
12302         (print_scop_context): Same.
12303         * graphite-poly.h (new_poly_dr): Change the type of argument from
12304         void* to data_reference_p.
12305         (struct poly_bb): Change the type of black_box to gimple_poly_bb_p.
12306         (new_poly_bb): Change the type of argument from void* to
12307         gimple_poly_bb_p.
12308         (pbb_set_black_box): Same.
12309         (struct scop): Rename context to param_context, ctx to isl_context.
12310         * graphite-scop-detection.c (scop_detection::build_scop_bbs_1):
12311         Move declarations closer to assignment.
12312         (find_params_in_bb): Same.
12313         (find_scop_parameters): Same.
12314         * graphite-sese-to-poly.c (unsigned ssa_name_version_typesize):
12315         Global to be used for statement IDs.
12316         (isl_id_for_pbb): Use ssa_name_version_typesize.
12317         (simple_copy_phi_p): Move declarations closer to assignment.
12318         (build_pbb_scattering_polyhedrons): Same.
12319         (build_scop_scattering): Same.
12320         (isl_id_for_ssa_name): Same.
12321         (extract_affine_name): Same.
12322         (extract_affine_int): Same.
12323         (extract_affine): Same.
12324         (set_scop_parameter_dim): Use renamed member.
12325         (build_loop_iteration_domains): Same.
12326         (add_param_constraints): Same.
12327         (build_scop_iteration_domain): Same.
12328         (pdr_add_data_dimensions): Same.
12329         (build_poly_dr): Same.
12330         (build_scop_drs): Move declarations closer to assignment.
12331         (analyze_drs_in_stmts): Same.
12332         (insert_out_of_ssa_copy): Same.
12333         (insert_out_of_ssa_copy_on_edge): Same.
12334         (propagate_expr_outside_region): Same.
12335         (rewrite_phi_out_of_ssa): Same.
12336         (rewrite_degenerate_phi): Same.
12337         (rewrite_reductions_out_of_ssa): Same.
12338         (rewrite_cross_bb_scalar_dependence): Same.
12339         (handle_scalar_deps_crossing_scop_limits): Same.
12340         (rewrite_cross_bb_scalar_deps): Same.
12341         * graphite.c (graphite_transform_loops): Use renamed member.
12343 2015-10-06  Uros Bizjak  <ubizjak@gmail.com>
12345         PR c/65345
12346         * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Use
12347         create_tmp_var_raw instead of create_tmp_var.
12349 2015-10-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12351         PR c/65345
12352         * config/aarch64/aarch64-builtins.c (aarch64_atomic_assign_expand_fenv):
12353         Use create_tmp_var_raw instead of create_tmp_var.
12355 2015-10-06  Alexander Fomin  <alexander.fomin@intel.com>
12357         PR target/67849
12358         * config/i386/sse.md (define_split vec_select/V8FI): Restrict
12359         split for upper-bank registers when target does not support
12360         AVX512VL.
12361         (define_insn "vec_extract_lo_<mode><mask_name>"): Restrict
12362         split when target does not support AVX512VL.
12364 2015-10-06  David Edelsohn  <dje.gcc@gmail.com>
12366         PR c/65345
12367         * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv):
12368         Adjust to use create_tmp_var_raw instead of create_tmp_var.
12370 2015-10-06  Nick Clifton  <nickc@redhat.com>
12372         * config/rl78/rl78.c (rl78_rtx_costs): Improve cost estimates for
12373         multiplication.
12375 2015-10-06  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
12377         * config.gcc (i[34567]86-*-linux* | ...): Add znver1.
12378         (case ${target}): Add znver1.
12379         * config/i386/cpuid.h(bit_CLZERO):  Define.
12380         * config/i386/driver-i386.c: (host_detect_local_cpu): Let
12381         -march=native recognize znver1 processors.
12382         * config/i386/i386-c.c (ix86_target_macros_internal): Add
12383         znver1, clzero def_and_undef.
12384         * config/i386/i386.c (struct processor_costs znver1_cost): New.
12385         (m_znver1): New definition.
12386         (m_AMD_MULTIPLE): Includes m_znver1.
12387         (processor_target_table): Add znver1 entry.
12388         (ix86_target_string) : Add clzero entry.
12389         (static const char *const cpu_names): Add znver1 entry.
12390         (ix86_option_override_internal): Add znver1 instruction sets.
12391         (PTA_CLZERO) :  New definition.
12392         (ix86_option_override_internal): Handle new clzerooption.
12393         (ix86_issue_rate): Add znver1.
12394         (ix86_adjust_cost): Add znver1.
12395         (ia32_multipass_dfa_lookahead): Add znver1.
12396         (has_dispatch): Add znver1.
12397         * config/i386/i386.h (TARGET_znver1): New definition.
12398         (TARGET_CLZERO): Define.
12399         (TARGET_CLZERO_P): Define.
12400         (struct ix86_size_cost): Add TARGET_ZNVER1.
12401         (enum processor_type): Add PROCESSOR_znver1.
12402         * config/i386/i386.md (define_attr "cpu"): Add znver1.
12403         (set_attr znver1_decode): New definitions for znver1.
12404         * config/i386/i386.opt (flag_dispatch_scheduler): Add znver1.
12405         (mclzero): New.
12406         * config/i386/mmx.md (set_attr znver1_decode): New definitions
12407         for znver1.
12408         * config/i386/sse.md (set_attr znver1_decode): Likewise.
12409         * config/i386/x86-tune.def:  Add znver1 tunings.
12410         * config/i386/znver1.md: Introduce znver1 cpu and include new md file.
12411         * doc/invoke.texi: Add details about znver1
12413 2015-10-06  Richard Biener  <rguenther@suse.de>
12415         PR tree-optimization/67859
12416         * tree-ssa-pre.c (create_expression_by_pieces): Properly
12417         discard not inserted stmts.
12419 2015-10-06  Jonathan Wakely  <jwakely@redhat.com>
12421         * doc/extend.texi (Template Instantiation): Reorder options and
12422         de-emphasize -frepo.
12423         * doc/invoke.texi (C++ Dialect Options): Use -fstrict-enums in
12424         example instead of -frepo.
12426 2015-10-06  Eric Botcazou  <ebotcazou@adacore.com>
12428         PR c/65345
12429         * config/sparc/sparc.c (sparc_atomic_assign_expand_fenv): Adjust to
12430         use create_tmp_var_raw rather than create_tmp_var.
12432 2015-10-06  Richard Biener  <rguenther@suse.de>
12434         * tree-vectorizer.h (vec_info): New base class for...
12435         (_loop_vec_info): ... this and ...
12436         (_bb_vec_info): ... this.
12437         (vect_is_simple_use, vect_is_simple_use_1, new_stmt_vec_info,
12438         vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
12439         vect_analyze_data_ref_accesses, vect_analyze_data_refs,
12440         vect_schedule_slp, vect_analyze_slp, vect_pattern_recog,
12441         vect_destroy_datarefs): Adjust interface to take a vec_info *
12442         rather than both a loop_vec_info and a bb_vec_info argument.
12443         * tree-vect-data-refs.c (vect_compute_data_refs_alignment,
12444         vect_verify_datarefs_alignment, vect_enhance_data_refs_alignment,
12445         vect_analyze_data_refs_alignment, vect_analyze_data_ref_accesses,
12446         vect_analyze_data_refs, vect_create_data_ref_ptr): Adjust
12447         accordingly.
12448         * tree-vect-loop.c (new_loop_vec_info): Initialize base class.
12449         (destroy_loop_vec_info, vect_analyze_loop_2,
12450         vect_is_simple_reduction_1, get_initial_def_for_induction,
12451         vect_create_epilog_for_reduction, vectorizable_reduction,
12452         vectorizable_live_operation, vect_transform_loop): Adjust.
12453         * tree-vect-patterns.c (type_conversion_p,
12454         vect_recog_widen_mult_pattern, vect_recog_widen_shift_pattern,
12455         vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern,
12456         vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern,
12457         check_bool_pattern, vect_recog_bool_pattern,
12458         vect_mark_pattern_stmts, vect_pattern_recog): Likewise.
12459         * tree-vect-slp.c (vect_get_and_check_slp_defs,
12460         vect_build_slp_tree_1, vect_build_slp_tree, vect_analyze_slp_cost_1,
12461         vect_analyze_slp_instance, vect_analyze_slp, destroy_bb_vec_info,
12462         vect_slp_analyze_bb_1, vect_schedule_slp): Likewise.
12463         (new_bb_vec_info): Initialize base classs.
12464         * tree-vect-stmts.c (record_stmt_cost, process_use,
12465         vect_get_vec_def_for_operand, vect_finish_stmt_generation,
12466         vectorizable_mask_load_store, vectorizable_call,
12467         vectorizable_simd_clone_call, vectorizable_conversion,
12468         vectorizable_assignment, vectorizable_shift,
12469         vectorizable_operation, vectorizable_store,
12470         vectorizable_load, vect_is_simple_cond, vectorizable_condition,
12471         new_stmt_vec_info, vect_is_simple_use, vect_is_simple_use_1): Likewise.
12472         * tree-vectorizer.c (vect_destroy_datarefs): Likewise.
12474 2015-10-05  Kaz Kojima  <kkojima@gcc.gnu.org>
12476         PR c/65345
12477         * config/sh/sh.c (sh_atomic_assign_expand_fenv): Adjust to use
12478         create_tmp_var_raw rather than create_tmp_var.
12480 2015-10-05  Marek Polacek  <polacek@redhat.com>
12482         * tree-ssa-loop-im.c
12483         (move_computations_dom_walker::before_dom_children): Don't set
12484         SSA_NAME_ANTI_RANGE_P.
12485         * tree-ssa-phiopt.c (value_replacement): Likewise.
12487 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
12488             Sebastian Pop  <s.pop@samsung.com>
12490         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Increase to 7.
12492 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
12493             Sebastian Pop  <s.pop@samsung.com>
12495         * graphite-poly.c (new_gimple_poly_bb): ... here.
12496         (free_data_refs_aux): ... here.
12497         (free_gimple_poly_bb): ... here.
12498         (remove_gbbs_in_scop): ... here.
12499         (new_scop): Call new_sese.
12500         (free_scop): Call remove_gbbs_in_scop and free_sese.
12501         * graphite-poly.h (base_alias_pair): ... here.
12502         (new_gimple_poly_bb): Declare.
12503         (free_gimple_poly_bb): Declare.
12504         * graphite-scop-detection.c (parameter_index_in_region_1):
12505         (parameter_index_in_region): ... here.
12506         (scan_tree_for_params): ... here.
12507         (find_params_in_bb): ... here.
12508         (find_scop_parameters): ... here.
12509         (build_scops): Call find_scop_parameters.
12510         * graphite-sese-to-poly.c (free_gimple_poly_bb): Move...
12511         (free_scops): Move...
12512         (single_pred_cond_non_loop_exit): Move...
12513         (sese_dom_walker::before_dom_children): Move...
12514         (sese_dom_walker::after_dom_children): Move...
12515         (build_poly_scop): Move...
12516         * graphite-sese-to-poly.h (base_alias_pair): Move...
12517         * graphite.c (free_scops): ... here.
12519 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
12520             Sebastian Pop  <s.pop@samsung.com>
12522         * graphite-scop-detection.c: Include domwalk.h and tree-cfg.h.
12523         (trivially_empty_bb_p): Move...
12524         (same_close_phi_node): Move...
12525         (new_gimple_poly_bb): Move...
12526         (compare_bb_depths): Move...
12527         (graphite_sort_dominated_info): Move...
12528         (remove_duplicate_close_phi): Move...
12529         (make_close_phi_nodes_unique): Move...
12530         (canonicalize_loop_closed_ssa): Move...
12531         (canonicalize_loop_closed_ssa_form): Move...
12532         (loop_ivs_can_be_represented): Move...
12533         (single_pred_cond_non_loop_exit): Move...
12534         (graphite_can_represent_init): Move...
12535         (graphite_can_represent_scev): Move...
12536         (stmt_has_simple_data_refs_p): Move...
12537         (stmt_has_side_effects):  Move...
12538         (graphite_can_represent_stmt): Move...
12539         (scop_detection): ... here.
12540         (sese_dom_walker): ... and here.
12541         (build_scops): Call all moved functions.
12542         * graphite-sese-to-poly.c (try_generate_gimple_bb): Move...
12543         (all_non_dominated_preds_marked_p): Move...
12544         (build_scop_bbs_1): Move...
12545         (build_scop_bbs): Move...
12546         (set_scop_parameter_dim): Move...
12547         (nb_pbbs_in_loops): Move...
12548         (build_poly_scop): Do not call all the moved functions.
12550 2015-10-05  Martin Jambor  <mjambor@suse.cz>
12551             Jan Hubicka  <hubicka@ucw.cz>
12553         * ipa-cp.c (ipcp_alignment_lattice): New type.
12554         (ipcp_param_lattices): Use the above to represent alignment.
12555         (ipcp_alignment_lattice::print): New function.
12556         (print_all_lattices): Use it to print alignment information.
12557         (ipcp_alignment_lattice::top_p): New function.
12558         (ipcp_alignment_lattice::bottom_p): Likewise.
12559         (ipcp_alignment_lattice::set_to_bottom): Likewise.
12560         (ipcp_alignment_lattice::meet_with_1): Likewise.
12561         (ipcp_alignment_lattice::meet_with): Two new overloaded functions.
12562         (set_all_contains_variable): Use set_to_bottom of alignment lattice.
12563         (initialize_node_lattices): Likewise.
12564         (propagate_alignment_accross_jump_function): Work with the new class
12565         for alignment lattices.
12566         (propagate_constants_accross_call): Pass only the alignment lattice to
12567         propagate_alignment_accross_jump_function.
12568         (ipcp_store_alignment_results): Work with the new class for alignment
12569         lattices.
12571 2015-10-05  Marek Polacek  <polacek@redhat.com>
12573         PR tree-optimization/67821
12574         * tree-ssanames.c (duplicate_ssa_name_range_info): Remove an assert.
12576 2015-10-05  Thomas Schwinge  <thomas@codesourcery.com>
12578         PR other/65021
12579         * config/i386/intelmic-mkoffload.c (mkoffload_atexit): Rename
12580         function to...
12581         (mkoffload_cleanup): ... this.  Adjust all users.
12582         (maybe_unlink): Look at save_temps and verbose flags instead of
12583         debug flag.
12584         (main): Parse "-save-temps" flag.
12585         (generate_target_descr_file, generate_target_offloadend_file)
12586         (generate_host_descr_file, prepare_target_image): Pass it on.
12587         * config/nvptx/mkoffload.c (tool_cleanup): Implement.
12588         (mkoffload_cleanup): New function.
12589         (maybe_unlink): Look at save_temps and verbose flags instead of
12590         debug flag.
12591         (main): Instead of calling utils_cleanup, register atexit handler
12592         for mkoffload_cleanup.
12593         (main): Parse "-save-temps" flag.
12594         (compile_native, main): Pass it on.
12595         * lto-wrapper.c (compile_offload_image): Likewise.
12597 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12599         * gimple.h (gimple_op_ptr): Require a non const gimple *.
12600         (gimple_assign_lhs_ptr): Likewise.
12601         (gimple_assign_rhs1_ptr): Likewise.
12602         (gimple_assign_rhs2_ptr): Likewise.
12603         (gimple_assign_rhs3_ptr): Likewise.
12604         (gimple_call_lhs_ptr): Likewise.
12605         (gimple_call_fn_ptr): Likewise.
12606         (gimple_call_chain_ptr): Likewise.
12607                 (gimple_call_arg_ptr): Likewise.
12608                 (gimple_cond_lhs_ptr): Likewise.
12609         (gimple_cond_rhs_ptr): Likewise.
12610         (gimple_switch_index_ptr): Likewise.
12611         (gimple_return_retval_ptr): Likewise.
12613 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12615         * gimple.h (gimple_asm_input_op_ptr): Remove.
12616         (gimple_asm_output_op_ptr): Likewise.
12618 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12620         * gimple.h (gimple_location_ptr): Remove.
12621         * tree-vrp.c (check_all_array_refs): Adjust.
12623 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12625         * tree-ssa-operands.c (build_uses): store tree * instead of
12626         tree.
12627         (finalize_ssa_uses): Adjust.
12628         (append_use): Likewise.
12629         (verify_ssa_operands): Likewise.
12631 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
12633         * real.h (build_real_truncate): Declare.
12634         * tree.c (build_real_truncate): New function.
12635         (strip_float_extensions): Use it.
12636         * builtins.c (fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_cbrt)
12637         (fold_builtin_hypot, fold_builtin_pow): Likewise.
12638         * match.pd: Likewise.
12640 2015-10-05 James Greenhalgh <james.greenhalgh@arm.com>
12641            Jiong Wang  <jiong.wang@arm.com>
12643         * config/aarch64/aarch64.md (tlsie_tiny_sidi): Replace "<w>" with "w".
12645 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
12647         * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Delete.
12648         * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p)
12649         (aarch64_print_operand, aarch64_float_const_representable_p)
12650         (aarch64_output_simd_mov_immediate): Use CONST_DOUBLE_REAL_VALUE
12651         instead of REAL_VALUE_FROM_CONST_DOUBLE.
12652         * config/arc/arc.c (arc_print_operand): Likewise.
12653         * config/arm/arm.c (arm_const_double_rtx, vfp3_const_double_index)
12654         (neon_valid_immediate, arm_print_operand, arm_emit_fp16_const)
12655         (vfp3_const_double_for_fract_bits, vfp3_const_double_for_bits):
12656         Likewise.
12657         * config/arm/arm.md (*arm32_movhf, consttable_4, consttable_8)
12658         (consttable_16): Likewise.
12659         * config/arm/vfp.md (*movhf_vfp_neon, *movhf_vfp): Likewise.
12660         * config/avr/avr.c (avr_print_operand): Likewise.
12661         * config/bfin/bfin.md: Likewise (in a define_split).
12662         * config/c6x/c6x.md: Likewise (in a define_split).
12663         * config/cr16/cr16.c (cr16_const_double_ok): Likewise.
12664         (cr16_print_operand): Likewise.
12665         * config/cris/cris.c (cris_print_operand): Likewise.
12666         * config/epiphany/epiphany.c (epiphany_print_operand): Likewise.
12667         * config/fr30/fr30.c (fr30_print_operand): Likewise.
12668         (fr30_const_double_is_zero): Likewise.
12669         * config/frv/frv.c (frv_print_operand, output_move_single): Likewise.
12670         * config/frv/frv.md: Likewise (in a define_split).
12671         * config/frv/predicates.md (int_2word_operand): Likewise.
12672         * config/h8300/h8300.c (h8300_print_operand): Likewise.
12673         * config/i386/i386.c (standard_80387_constant_p): Likewise.
12674         (ix86_print_operand, ix86_split_to_parts): Likewise.
12675         * config/i386/i386.md: Likewise (in a define_split).
12676         * config/ia64/ia64.c (ia64_split_tmode, ia64_print_operand): Likewise.
12677         * config/iq2000/iq2000.md (movsf_lo_sum, movsf_high): Likewise.
12678         * config/m32r/m32r.c (easy_df_const, m32r_print_operand): Likewise.
12679         * config/m68k/m68k.c (handle_move_double, standard_68881_constant_p)
12680         (print_operand): Likewise.
12681         * config/m68k/m68k.md (movsf_cf_hard, movdf_cf_hard): Likewise.
12682         * config/mep/mep.md: Likewise (in define_split).
12683         * config/microblaze/microblaze.c (microblaze_const_double_ok)
12684         (print_operand): Likewise.
12685         * config/mips/mips.md (consttable_float): Likewise.
12686         * config/mmix/mmix.c (mmix_intval): Likewise.
12687         * config/mn10300/mn10300.c (mn10300_print_operand): Likewise.
12688         * config/nvptx/nvptx.c (nvptx_print_operand): Likewise.
12689         * config/pa/pa.c (pa_singlemove_string): Likewise.
12690         * config/pdp11/pdp11.c (pdp11_expand_operands): Likewise.
12691         (pdp11_asm_print_operand, legitimate_const_double_p): Likewise.
12692         * config/rs6000/rs6000.c (num_insns_constant, rs6000_emit_cmove)
12693         (output_toc): Likewise.
12694         * config/rs6000/rs6000.md: Likewise (in define_splits).
12695         * config/rx/rx.c (rx_print_operand): Likewise.
12696         * config/s390/s390.c (s390_output_pool_entry): Likewise.
12697         * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
12698         * config/sh/sh.md (consttable_sf, consttable_df): Likewise
12699         (and also in define_splits).
12700         * config/sparc/sparc.c (fp_sethi_p, fp_mov_p): Likewise.
12701         (fp_high_losum_p): Likewise.
12702         * config/sparc/sparc.md (*movsf_insn, *movsf_lo_sum): Likewise.
12703         (*movsf_high): Likewise.
12704         * config/spu/spu.c (const_double_to_hwint): Likewise.
12705         * config/v850/v850.c (const_double_split): Likewise.
12706         * config/vax/vax.c (vax_float_literal): Likewise.
12707         * config/visium/visium.c (visium_expand_copysign): Likewise.
12708         * config/visium/visium.md: Likewise (in define_split).
12709         * config/xtensa/predicates.md (const_float_1_operand): Likewise.
12710         * config/xtensa/xtensa.c (print_operand): Likewise.
12711         (xtensa_output_literal): Likewise.
12712         * cprop.c (implicit_set_cond_p): Likewise.
12713         * dwarf2out.c (insert_float): Likewise.
12714         * expmed.c (expand_mult, make_tree): Likewise.
12715         * expr.c (compress_float_constant): Likewise.
12716         * rtlanal.c (split_double): Likewise.
12717         * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
12718         (simplify_const_unary_operation, simplify_binary_operation_1)
12719         (simplify_const_binary_operation): Likewise.
12720         (simplify_const_relational_operation): Likewise.
12721         * varasm.c (output_constant_pool_2): Likewise.
12723 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
12725         * real.h (CONST_DOUBLE_ATOF): Use const_double_from_real_value
12726         instead of CONST_DOUBLE_FROM_REAL_VALUE.
12727         (CONST_DOUBLE_FROM_REAL_VALUE): Delete.
12728         * config/c6x/c6x.md (divsf3, divdf3): Use const_double_from_real_value
12729         instead of CONST_DOUBLE_FROM_REAL_VALUE.
12730         * config/epiphany/epiphany.md (fixuns_truncsfsi2): Likewise.
12731         * config/i386/i386.c (standard_80387_constant_rtx): Likewise.
12732         (ix86_expand_builtin, ix86_emit_i387_log1p, ix86_emit_i387_round)
12733         (ix86_emit_swsqrtsf): Likewise.
12734         * config/ia64/ia64.c (ia64_expand_builtin): Likewise.
12735         * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
12736         (fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
12737         * config/pa/pa.c (pa_expand_builtin): Likewise.
12738         * config/rs6000/rs6000.c (rs6000_load_constant_and_splat): Likewise.
12739         (rs6000_scale_v2df): Likewise.
12740         * config/rs6000/rs6000.md (*cmptf_internal2): Likewise.
12741         * config/s390/s390.md (fixuns_truncdddi2, fixuns_trunctddi2)
12742         (fixuns_trunc<BFP:mode><GPR:mode>2): Likewise.
12743         * config/s390/vx-builtins.md (vec_ctd_s64, vec_ctd_u64, vec_ctsl)
12744         (vec_ctul): Likewise.
12745         * config/sparc/sparc.c (sparc_emit_fixunsdi): Likewise.
12746         * config/spu/spu.c (hwint_to_const_double, spu_float_const): Likewise.
12747         * config/spu/spu.md (floatunsdisf2, floatunstisf2): Likewise.
12748         * cse.c (fold_rtx): Likewise.
12749         * emit-rtl.c (immed_double_const): Likewise (in comments).
12750         (init_emit_once): Likewise.
12751         * expr.c (compress_float_constant, expand_expr_real_1)
12752         (const_vector_from_tree): Likewise.
12753         * optabs.c (expand_float, expand_fix): Likewise.
12754         * reg-stack.c (reg_to_stack): Likewise.
12755         * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
12756         (simplify_const_unary_operation, simplify_binary_operation_1)
12757         (simplify_const_binary_operation, simplify_relational_operation)
12758         (simplify_immed_subreg): Likewise.
12760 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
12762         * doc/tm.texi.in (REAL_ARITHMETIC): Delete.
12763         * doc/tm.texi: Regenerate.
12764         * real.h (REAL_ARITHMETIC): Delete.
12765         * config/i386/i386.c (ix86_expand_lround, ix86_expand_round)
12766         (ix86_expand_round_sse4): Use real_arithmetic instead of
12767         REAL_ARITHMETIC.
12768         * config/i386/sse.md (round<mode>2): Likewise.
12769         * rtl.h (rtx_to_tree_code): Likewise (in comment).
12770         * explow.c (rtx_to_tree_code): Likewise (in comment).
12771         * match.pd: Likewise.
12772         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
12773         * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
12774         (expand_pow_as_sqrts): Likewise.
12775         * tree-pretty-print.c (dump_generic_node): Remove code that
12776         was conditional on REAL_ARITHMETIC being undefined.
12778 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
12780         * doc/tm.texi.in (REAL_VALUES_LESS): Delete.
12781         * doc/tm.texi: Regenerate.
12782         * real.h (real_less): Declare.
12783         (REAL_VALUES_LESS): Delete.
12784         * real.c (real_less): New function.
12785         (real_compare): Use it.
12786         * config/m68k/m68k.c (floating_exact_log2): Use real_less instead
12787         of REAL_VALUES_LESS.
12788         * config/microblaze/microblaze.c (microblaze_const_double_ok):
12789         Likewise.
12790         * fold-const.c (fold_convert_const_int_from_real): Likewise.
12791         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
12792         (simplify_const_relational_operation): Likewise.
12793         * tree-call-cdce.c (check_pow): Likewise.
12794         (gen_conditions_for_pow_cst_base): Likewise.
12796 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
12798         * real.h (REAL_VALUES_IDENTICAL): Delete.
12799         * config/m68k/m68k.c (standard_68881_constant_p): Use real_identical
12800         instead of REAL_VALUES_IDENTICAL.
12801         * fold-const.c (operand_equal_p): Likewise.
12802         * ipa-icf.c (sem_variable::equals): Likewise.
12803         * tree-complex.c (some_nonzerop): Likewise.
12804         (expand_complex_multiplication): Likewise.
12805         * tree.c (simple_cst_equal): Likewise.
12806         * varasm.c (compare_constant): Likewise.
12808 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
12810         * real.h (real_equal): Declare.
12811         (REAL_VALUES_EQUAL): Delete.
12812         * real.c (real_equal): New function.
12813         (real_compare): Use it.
12814         * doc/tm.texi.in (REAL_VALUES_EQUAL): Delete.
12815         * doc/tm.texi: Regenerate.
12816         * builtins.c (fold_builtin_pow, fold_builtin_load_exponent): Use
12817         real_equal instead of REAL_VALUES_EQUAL.
12818         * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p): Likewise.
12819         * config/arm/arm.c (arm_const_double_rtx, neon_valid_immediate)
12820         (fp_const_from_val): Likewise.
12821         * config/fr30/fr30.c (fr30_const_double_is_zero): Likewise.
12822         * config/m68k/m68k.c (standard_68881_constant_p): Likewise.
12823         (floating_exact_log2): Likewise.
12824         * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
12825         * config/vax/vax.c (vax_float_literal): Likewise.
12826         * config/xtensa/predicates.md (const_float_1_operand): Likewise.
12827         * cprop.c (implicit_set_cond_p): Likewise.
12828         * expmed.c (expand_mult): Likewise.
12829         * fold-const.c (const_binop): Likewise.
12830         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
12831         (simplify_const_binary_operation): Likewise.
12832         (simplify_const_relational_operation): Likewise.
12833         * tree-call-cdce.c (check_pow): Likewise.
12834         (gen_conditions_for_pow_cst_base): Likewise.
12835         * tree-inline.c (estimate_num_insns): Likewise.
12836         * tree-ssa-dom.c (record_equality): Likewise.
12837         * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
12838         (gimple_expand_builtin_pow): Likewise.
12839         (pass_optimize_widening_mul::execute): Likewise.
12840         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
12841         * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
12842         * tree.c (real_zerop, real_onep, real_minus_onep): Likewise.
12844 2015-10-05  Richard Biener  <rguenther@suse.de>
12846         PR ipa/67783
12847         * ipa-inline-analysis.c (estimate_function_body_sizes): Only
12848         consider loop header PHI defs as IVs.
12850 2015-10-05  Richard Biener  <rguenther@suse.de>
12852         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Move
12853         call handling ...
12854         (create_expression_by_pieces): ... here and build GIMPLE
12855         calls directly.  Use gimple_build API and avoid force_gimple_operand.
12856         (insert_into_preds_of_block): Simplify.
12857         (do_regular_insertion): Add comment.
12859 2015-10-04  Jason Merrill  <jason@redhat.com>
12861         * builtins.def (BUILT_IN_ABORT): Add transaction_pure attribute.
12863 2015-10-04  Uros Bizjak  <ubizjak@gmail.com>
12865         * config/i386/i386.c (ix86_nsaved_regs): Use GENERAL_REGNO_P to
12866         check for general register.
12867         (ix86_emit_save_regs): Ditto.
12868         (ix86_emit_save_regs_using_mov): Ditto.
12869         (ix86_emit_restore_regs_using_pop): Ditto.
12870         (ix86_emit_restore_regs_using_mov): Ditto.
12872 2015-10-03  Marek Polacek  <polacek@redhat.com>
12874         * Makefile.in (insn-latencytab.o): Remove -Wno-duplicated-cond.
12875         (insn-dfatab.o): Likewise.
12877 2015-10-03  Max Filippov  <jcmvbkbc@gmail.com>
12879         * config.gcc (xtensa*-*-uclinux*): New configuration.
12880         * config/xtensa/uclinux.h: New file.
12881         * config/xtensa/uclinux.opt: New file.
12883 2015-10-03  Jonathan Wakely  <jwakely@redhat.com>
12885         * doc/cpp.texi (Standard Predefined Macros): Document value of
12886         __cplusplus for C++14.
12888 2015-10-02  Bernd Schmidt  <bernds@codesourcery.com>
12890         * gcc.c (process_command): Use spec_machine rather than
12891         spec_host_machine to build tooldir_prefix2.
12893 2015-10-02  Thomas Schwinge  <thomas@codesourcery.com>
12894             Bernd Schmidt  <bernds@codesourcery.com>
12896         * config/nvptx/mkoffload.c (Kind, Vis): Remove enums.
12897         (Token, Stmt): Remove structs.
12898         (decls, vars, fns): Remove variables.
12899         (alloc_comment, append_stmt, is_keyword): Remove macros.
12900         (tokenize, write_token, write_tokens, alloc_stmt, rev_stmts)
12901         (write_stmt, write_stmts, parse_insn, parse_list_nosemi)
12902         (parse_init, parse_file): Remove functions.
12903         (read_file): Accept a pointer to a length and store into it.
12904         (process): Don't try to parse the input file, just write it out as
12905         a string, but looking for maps.  Also write out the length.
12906         (main): Don't use "-S" to compile PTX code.
12908 2015-10-02  Jeff Law  <law@redhat.com>
12910         * tree-ssa-dom.c (optimize_stmt): Note when loop structures need
12911         fixups.
12913 2015-10-02  Thomas Schwinge  <thomas@codesourcery.com>
12915         PR target/67822
12916         * config/nvptx/mkoffload.c (main): Scan the argument vector for
12917         -fopenmp, and skip generating an offloading image if specified.
12919 2015-10-02  Uros Bizjak  <ubizjak@gmail.com>
12921         * system.h (ROUND_UP): New macro definition.
12922         (ROUND_DOWN): Ditto.
12923         * ggc-page.c (ROUND_UP): Remove local macro definition.
12924         (PAGE_ALIGN): Implement using ROUND_UP macro.
12926         * config/i386/i386.h (PUSH_ROUNDING): Implement using ROUND_UP macro.
12927         * config/i386/i386.c (function_arg_advance_64): Use ROUND_UP macro
12928         to align values.
12929         (ix86_compute_frame_layout): Ditto.
12930         (ix86_expand_prologue): Ditto.
12931         (ix86_adjust_stack_and_probe): Use ROUND_DOWN macro
12932         to round down values.
12933         (expand_set_or_movmem_via_rep): Ditto.
12935 2015-10-02  Marek Polacek  <polacek@redhat.com>
12937         * genemit.c (gen_exp): Remove -Wduplicated-cond hack.
12939 2015-10-02  Aditya Kumar  <aditya.k7@samsung.com>
12941         * graphite-scop-detection.c (loop_ivs_can_be_represented): New.
12942         (loop_body_is_valid_scop): Call loop_ivs_can_be_represented.
12943         * graphite-sese-to-poly.c (new_gimple_bb): Renamed new_gimple_poly_bb.
12944         (free_gimple_bb): Renamed free_gimple_poly_bb.
12945         (try_generate_gimple_bb): Hoist loop invariant code.
12946         (analyze_drs_in_stmts): Same.
12947         (build_scop_drs): Call renamed functions.
12948         (new_pbb_from_pbb): Same.
12949         (scop_ivs_can_be_represented): Delete as functionality now moved to
12950         graphite-scop-detection.c
12951         (build_poly_scop): Remove call to scop_ivs_can_be_represented.
12953 2015-10-02  Aditya Kumar  <hiraditya@msn.com>
12955         * graphite-scop-detection.c (stmt_has_side_effects): New function
12956           outlined from stmt_simple_for_scop_p.
12957         (graphite_can_represent_stmt): Same.
12958         (stmt_simple_for_scop_p): Moved code out of this function for better
12959         readability.
12961 2015-10-02  Kirill Yukhin  <kirill.yukhin@intel.com>
12963         * config/i386/i386.c (processor_features): Add F_AVX512VBMI,
12964         F_AVX512IFMA.
12965         (isa_names_table): Handle F_AVX512VBMI and F_AVX512IFMA.
12967 2015-10-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12969         * config/aarch64/aarch64-elf.h (TARGET_ASM_NAMED_SECTION): Delete.
12971 2015-10-02  Vladimir Makarov  <vmakarov@redhat.com>
12973         PR rtl-optimization/67756
12974         * lra-constraints.c (match_reload): Add a new parameter.  Use it
12975         for creating a pseudo with the same value.
12976         (curr_insn_transform): Pass a new argument to match_reload.
12978 2015-10-02  Kirill Yukhin  <kirill.yukhin@intel.com>
12980         * config/i386/i386.c (expand_vec_perm_even_odd_trunc): New.
12981         (expand_vec_perm_even_odd_1): Handle V64QImode.
12982         (ix86_expand_vec_perm_const_1): Try expansion with
12983         expand_vec_perm_even_odd_trunc as well.
12984         * config/i386/sse.md (VI124_AVX512F): Rename to ...
12985         (define_mode_iterator VI124_AVX2_24_AVX512F_1_AVX512BW): This. Extend
12986         to V54QI.
12987         (define_mode_iterator VI248_AVX2_8_AVX512F): Rename to ...
12988         (define_mode_iterator VI248_AVX2_8_AVX512F_24_AVX512BW): This. Extend
12989         to V32HI and V16SI.
12990         (define_insn "avx512bw_<code>v32hiv32qi2"): Unhide pattern name.
12991         (define_expand "vec_pack_trunc_<mode>"): Update iterator name.
12992         (define_expand "vec_unpacks_lo_<mode>"): Ditto.
12993         (define_expand "vec_unpacks_hi_<mode>"): Ditto.
12994         (define_expand "vec_unpacku_lo_<mode>"): Ditto.
12995         (define_expand "vec_unpacku_hi_<mode>"): Ditto.
12997 2015-10-02  Kirill Yukhin  <kirill.yukhin@intel.com>
12999         * doc/invoke.texi: Mention -mavx512vl, -mavx512bw, -mavx512dq,
13000         -mavx521vbmi, -mavx512ifma. Add missing opindex-es.
13002 2015-10-02  Jason Merrill  <jason@redhat.com>
13004         PR c/59218
13005         * trans-mem.c (volatile_lvalue_p): Rename from volatile_var_p.
13006         (diagnose_tm_1_op): Also diagnose volatile accesses in
13007         transaction_safe function.
13009 2015-10-02  Jonathan Wakely  <jwakely@redhat.com>
13011         * system.h (malloc.h): Don't include obsolete header.
13013 2015-10-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13015         * config/aarch64/aarch64.c (aarch64_elf_asm_named_section): Delete.
13016         (TLS_SECTION_ASM_FLAG): Delete.
13018 2015-10-02  Marek Polacek  <polacek@redhat.com>
13020         PR c/64249
13021         * doc/invoke.texi: Document -Wduplicated-cond.
13022         * Makefile.in (insn-latencytab.o): Use -Wno-duplicated-cond.
13023         (insn-dfatab.o): Likewise.
13024         * genemit.c (gen_exp): Rewrite condition to avoid -Wduplicated-cond
13025         warning.
13027 2015-10-02  Oleg Endo  <olegendo@gcc.gnu.org>
13029         * config/sh/sh.md: Add new unnamed split pattern to handle movt-movt
13030         sequences.
13032 2015-10-02  Renlin Li  <renlin.li@arm.com>
13034         * config/aarch64/aarch64.md (csneg3_insn_uxtw): New pattern.
13036 2015-10-02  Renlin Li  <renlin.li@arm.com>
13038         PR target/66776
13039         * config/aarch64/aarch64.md (cmovdi_insn_uxtw): New pattern.
13041 2015-10-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13043         PR rtl-optimization/67786
13044         PR rtl-optimization/67787
13045         * ifcvt.c (bb_valid_for_noce_process_p): Reject basic block if
13046         it modifies a reg used in the condition calculation.
13048 2015-10-02  James Greenhalgh  <james.greenhalgh@arm.com>
13050         * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Add
13051         alternatives for reads from memory and moves from general-purpose
13052         registers.
13053         (*aarch64_combinez_be<mode>): Likewise.
13055 2015-10-02  Kai Tietz  <ktietz70@googlemail.com>
13057         PR target/51726
13058         * config/i386/winnt.c (ix86_handle_selectany_attribute): Handle
13059         selectany within this function without need to keep attribute.
13060         (i386_pe_encode_section_info): Remove selectany-code.
13062 2015-10-02  Richard Biener  <rguenther@suse.de>
13064         * tree-ssa-sccvn.c (has_VN_INFO): New function.
13065         (free_scc_vn): Use it.
13066         (visit_use): Remove dead code and refactor to use gassign
13067         and use less indentation.
13069 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
13071         PR target/67788
13072         PR target/67789
13073         * config/rs6000/rs6000.c (TARGET_CANNOT_COPY_INSN_P): New.
13074         (rs6000_cannot_copy_insn_p): New function.
13075         * config/rs6000/rs6000.md (cannot_copy): New attribute.
13076         (load_toc_v4_PIC_1_normal): Set cannot_copy.
13077         (load_toc_v4_PIC_1_476): Ditto.
13079 2015-10-01  Aditya Kumar  <aditya.k7@samsung.com>
13081         * graphite-scop-detection.c (struct sese_l): New conversion constructor
13082         so that this type can be pushed into a vec.
13083         (class scop_builder): use sese_l to collect scops.
13084         (get_scops): New getter function.
13085         (remove_intersecting_scops): Use sese_l instead of scops_p.
13086         (intersects): Same.
13087         (add_scop): Same.
13088         (subsumes): Same.
13089         (remove_subscops): Same.
13090         (build_scops): Add scops to vec<scops_p> once all the scops have been
13091         detected.
13093 2015-10-01  Aditya Kumar  <aditya.k7@samsung.com>
13095         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
13096         Renamed type from gimple_bb_p to gimple_poly_bb_p.
13097         (translate_isl_ast_node_user): Same.
13098         * graphite-poly.c (new_poly_bb): Same.
13099         * graphite-poly.h (gbb_from_bb): Same.
13100         * sese.h: Same.
13101         * graphite-sese-to-poly.c (new_gimple_bb):
13102         gimple_bb_p -> gimple_poly_bb_p
13103         (build_scop_scattering): Same.
13104         (find_params_in_bb): Same.
13105         (add_conditions_to_domain): Same.
13106         (sese_dom_walker::before_dom_children): Same.
13107         (analyze_drs_in_stmts): Same.
13108         (new_pbb_from_pbb): Same.
13109         (free_data_refs_aux): New pointer to type base_alias_pair.
13110         * graphite-sese-to-poly.h: Same.
13111         * sese.c (if_region_set_false_region): Fixed Indentation.
13112         (move_sese_in_condition): Same.
13114 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
13115             Aditya Kumar  <aditya.k7@samsung.com>
13117         PR tree-optimization/66980
13118         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Return false
13119         when data reference analysis has failed.
13121 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
13122             Aditya Kumar  <aditya.k7@samsung.com>
13124         PR tree-optimization/67754
13125         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Call
13126         scev analysis on the same loop nest as analyze_drs_in_stmts.
13127         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): Moved and
13128         renamed...
13129         (try_generate_gimple_bb): Call outermost_loop_in_sese.
13130         (analyze_drs_in_stmts): Same.
13131         * sese.c (outermost_loop_in_sese): ...here.
13133 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
13134             Aditya Kumar  <aditya.k7@samsung.com>
13136         PR tree-optimization/67754
13137         * graphite-scop-detection.c (loop_body_is_valid_scop): Add missing
13138         recursion on the inner loops.
13140 2015-10-01  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13142         * cfganal.c, compare-elim.c, coverage.c, cprop.c, df-scan.c,
13143         function.c, read-rtl.c, statistics.c, trans-mem.c, tree-if-conv.c,
13144         tree-into-ssa.c, tree-loop-distribution.c, tree-ssa-coalesce.c,
13145         tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-strlen.c,
13146         tree-ssa-tail-merge.c, tree-vrp.c, var-tracking.c: Remove
13148 2015-10-01  Marek Polacek  <polacek@redhat.com>
13150         PR c/65345
13151         * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Adjust to use
13152         create_tmp_var_raw rather than create_tmp_var.
13154 2015-10-01  Marek Polacek  <polacek@redhat.com>
13156         PR tree-optimization/67769
13157         * tree-ssa-phiopt.c (conditional_replacement): Call
13158         reset_flow_sensitive_info_in_bb.
13159         (minmax_replacement): Likewise.
13160         (abs_replacement): Likewise.
13162 2015-10-01  Nathan Sidwell  <nathan@codesourcery.com>
13164         * builtins.c: Don't include gomp-constants.h.
13165         (fold_builtin_1): Don't fold acc_on_device here.
13166         * gimple-fold.c: Include gomp-constants.h.
13167         (gimple_fold_builtin_acc_on_device): New.
13168         (gimple_fold_builtin): Call it.
13170 2015-10-01  H.J. Lu  <hongjiu.lu@intel.com>
13172         * config/i386/x86-tune.def (X86_TUNE_USE_BT): Enable for Lakemont.
13173         (X86_TUNE_ZERO_EXTEND_WITH_AND): Disable for Lakemont.
13175 2015-10-01  James Greenhalgh  <james.greenhalgh@arm.com>
13177         * config/arm/aarch-common-protos.h
13178         (aarch_accumulator_forwarding): New.
13179         (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
13180         * config/arm/aarch-common.c (aarch_accumulator_forwarding): New.
13181         (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
13182         * config/arm/cortex-a53.md: Rewrite.
13184 2015-10-01  Richard Biener  <rguenther@suse.de>
13186         * gimple-match.h (mprts_hook): Declare.
13187         * gimple-match.head.c (mprts_hook): Define.
13188         (maybe_push_res_to_seq): Use new hook.
13189         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
13190         * tree-ssa-sccvn.h (vn_ssa_aux::expr): Change to a gimple_seq.
13191         (vn_ssa_aux::has_constants): Remove.
13192         * tree-ssa-sccvn.c: Include gimple-match.h.
13193         (VN_INFO_GET): Assert we don't re-use SSA names.
13194         (vn_get_expr_for): Remove.
13195         (expr_has_constants): Likewise.
13196         (stmt_has_constants): Likewise.
13197         (simplify_binary_expression): Likewise.
13198         (simplify_unary_expression): Likewise.
13199         (vn_lookup_simplify_result): New hook.
13200         (visit_copy): Adjust.
13201         (visit_reference_op_call): Likewise.
13202         (visit_phi): Likewise.
13203         (visit_use): Likewise.
13204         (process_scc): Likewise.
13205         (init_scc_vn): Likewise.
13206         (visit_reference_op_load): Likewise.  Use match-and-simplify and
13207         a gimple seq for inserted expressions.
13208         (try_to_simplify): Remove GENERIC stmt combining code.
13209         (sccvn_dom_walker::before_dom_children): Use match-and-simplify.
13210         * tree-ssa-pre.c (eliminate_insert): Adjust.
13211         (eliminate_dom_walker::before_dom_children): Likewise.
13213 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
13215         * doc/invoke.texi (Optimization Options): Add
13216         -freorder-blocks-algorithm=.
13217         (Optimize Options) <-O>: Add -freorder-blocks.
13218         <-O2>: Remove -freorder-blocks.  Add -freorder-blocks-algorithm=stc.
13219         <-Os>: Add -freorder-blocks-algorithm=stc as not enabled.
13220         <-freorder-blocks>: Also enabled at levels -O and -Os.
13221         <-freorder-blocks-algorithm=>: Document new option.
13223 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
13225         * bb-reorder.c (reorder_basic_blocks): Use the algorithm selected
13226         with flag_reorder_blocks_algorithm.
13227         * common.opt (freorder-blocks-algorithm=): New flag.
13228         (reorder_blocks_algorithm): New enum.
13229         * flag-types.h (reorder_blocks_algorithm): New enum.
13230         * opts.c (default_options_table): Use -freorder-blocks at -O1 and up,
13231         and -freorder-blocks-algorithm=stc at -O2 and up (not at -Os).
13233 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
13235         * bb-reorder.c: Add intro comment.
13236         (reorder_basic_blocks_software_trace_cache): Print a header to
13237         the dump file.
13238         (edge_order): New function.
13239         (reorder_basic_blocks_simple): New function.
13240         (reorder_basic_blocks): Choose between the STC and the simple
13241         algorithms (always choose the former).
13243 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
13245         * bb-reorder.c (reorder_basic_blocks_software_trace_cache): New
13246         function, factored out from ...
13247         (reorder_basic_blocks): ... here.
13249 2015-10-01  Tom de Vries  <tom@codesourcery.com>
13251         * tree-cfg.c (dump_function_to_file): Dump function attributes using
13252         __attribute__(()) string.  Move dumping of function attributes to before
13253         function name.
13255 2015-10-01  Lynn Boger  <laboger@linux.vnet.ibm.com>
13257         PR target/66870
13258         * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Define.
13259         * configure.ac: Define HAVE_GOLD_ALTERNATE_SPLIT_STACK on Power
13260         based on gold linker version.
13261         * gcc.c: Add -fuse-ld=gold to STACK_SPLIT_SPEC if
13262         HAVE_GOLD_ALTERNATE_SPLIT_STACK defined.
13263         * configure, config.in: Regenerate.
13265 2015-10-01  Alan Modra  <amodra@gmail.com>
13267         * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't set
13268         r2_setup_needed when TARGET_SINGLE_PIC_BASE.
13269         (rs6000_output_mi_thunk): Likewise.
13271 2015-09-30  Nathan Sidwell  <nathan@codesourcery.com>
13273         * config/nvptx/mkoffload.c (process): Change offload data format.
13275 2015-09-30  Jeff Law  <law@redhat.com>
13277         * tree-ssa-dom.c (optimize_stmt): Collapse control flow statements
13278         with constant conditions.
13279         * tree-ssa-threadupdate.c (remove_jump_threads_starting_at): New.
13280         (remove_ctrl_stmt_and_useless_edges): No longer static.
13281         * tree-ssa-threadupdate.h (remove_jump_threads_starting_at): Prototype.
13282         (remove_ctrl_stmt_and_useless_edges): Likewise.
13284 2015-09-30  Nathan Sidwell  <nathan@codesourcery.com>
13285             Cesar Philippidis  <cesar@codesourcery.com>
13287         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): New.
13288         (TARGET_GOACC_VALIDATE_DIMS): Override.
13289         * target.def (TARGET_GOACC): New target hook prefix.
13290         (validate_dims): New hook.
13291         * targhooks.h (default_goacc_validate_dims): New.
13292         * omp-low.c (oacc_validate_dims): New.
13293         (execute_oacc_device_lower): New.
13294         (default_goacc_validate_dims): New.
13295         (pass_data_oacc_device_lower): New.
13296         (pass_oacc_device_lower): New pass.
13297         (make_pass_oacc_device_lower): New.
13298         * tree-pass.h (make_pass_oacc_device_lower): Declare.
13299         * passes.def (pass_oacc_device_lower): Add it.
13300         * doc/tm.texi: Rebuilt.
13301         * doc/tm.texi.in (TARGET_GOACC_VALIDATE_DIMS): Add hook.
13302         * doc/invoke.texi (oaccdevlow): Document tree dump flag.
13304 2015-09-30  Bernd Edlinger  <bernd.edlinger@hotmail.de>
13306         PR rtl-optimization/67037
13307         * lra-constraints.c (process_addr_reg): Use copy_rtx when necessary.
13309 2015-09-30  Bernd Schmidt  <bernds@redhat.com>
13311         * gimple-ssa.h (gimple_df): Add free_ssanames_queue field.
13312         * passes.c: Include tree-ssanames.h.
13313         (execute_function_todo): Flush the pending free SSA_NAMEs after
13314         eliminating unreachable basic blocks.
13315         * tree-ssanames.c (FREE_SSANAMES_QUEUE): new.
13316         (init_ssanames): Initialize FREE_SSANAMES_QUEUE.
13317         (fini_ssanames): Finalize FREE_SSANAMES_QUEUE.
13318         (flush_ssanames_freelist): New function.
13319         (release_ssaname_fn): Put released names on the queue.
13320         (pass_release_ssa_names::execute): Call flush_ssanames_freelist.
13321         * tree-ssanames.h (flush_ssanames_freelist): Declare.
13323 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
13325         * config/i386/intelmic-mkoffload.c (main): Parse "-v" flag.
13326         (generate_target_descr_file, generate_target_offloadend_file)
13327         (generate_host_descr_file, prepare_target_image): Pass it on.
13328         * config/nvptx/mkoffload.c (main): Parse "-v" flag.
13329         (compile_native, main): Pass it on.
13330         * lto-wrapper.c (compile_offload_image): Likewise.
13332 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
13333             Ilya Verbin  <ilya.verbin@intel.com>
13334             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13336         * config/i386/intelmic-mkoffload.c (generate_host_descr_file)
13337         (prepare_target_image, main): Refactor argv building to use
13338         obstacks.
13340 2015-09-30  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13342         * config/spu/spu-protos.h (spu_expand_atomic_op): Add prototype.
13343         * config/spu/spu.c (spu_expand_atomic_op): New function.
13344         * config/spu/spu.md (AINT): New mode iterator.
13345         (ATOMIC): New code iterator.
13346         (atomic_name, atomic_pred): New code predicates.
13347         ("atomic_load<mode>", "atomic_store<mode>"): New expanders.
13348         ("atomic_compare_and_swap<mode>", "atomic_exchange<mode>"): Likewise.
13349         (""atomic_<atomic_name><mode>", "atomic_fetch_<atomic_name><mode>",
13350         "atomic_<atomic_name>_fetch<mode>"): Likewise.
13352 2015-09-30  Ilya Enkovich  <enkovich.gnu@gmail.com>
13354         * config/i386/i386.c (scalar_chain::analyze_register_chain): Ignore
13355         debug insns.
13356         (scalar_chain::convert_reg): Likewise.
13358 2015-09-30  Richard Biener  <rguenther@suse.de>
13360         * builtins.c: Add comment that no new simplifications should
13361         be added here.
13363 2015-09-30  Marek Polacek  <polacek@redhat.com>
13365         PR tree-optimization/67690
13366         * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): Call
13367         reset_flow_sensitive_info_in_bb.
13368         * tree-ssa-tail-merge.c (replace_block_by): Likewise.
13369         * tree-ssanames.c: Include "gimple-iterator.h".
13370         (reset_flow_sensitive_info_in_bb): New function.
13371         * tree-ssanames.h (reset_flow_sensitive_info_in_bb): Declare.
13373 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
13375         * config/i386/intelmic-mkoffload.c (target_ilp32): Remove
13376         variable, replacing it with...
13377         (offload_abi): ... this new variable.  Adjust all users.
13378         * config/nvptx/mkoffload.c (target_ilp32, offload_abi): Likewise.
13380 2015-09-30  Matthias Klose  <doko@ubuntu.com>
13382         * configure.ac: Remove extraneous ;;.
13383         * configure: Regenerate.
13385 2015-09-29  James Bowman  <james.bowman@ftdichip.com>
13387         * config/ft32/predicates.md (ft32_imm_operand): New predicate.
13388         * config/ft32/ft32.md (movmemsi, setmemsi): Use ft32_imm_operand
13389         predicate, disallow register for operand 2.
13391 2015-09-29  Aditya Kumar  <aditya.k7@samsung.com>
13393         * graphite-dependences.c (scop_get_dependences): Moved in down
13394         in order to be visible to its caller.
13395         * graphite-poly.h: Removed compute_deps, and extend_schedule.
13397 2015-09-29  Sebastian Pop  <s.pop@samsung.com>
13398             Aditya Kumar  <aditya.k7@samsung.com>
13400         PR tree-optimization/67754
13401         * graphite-optimize-isl.c (optimize_isl): Call
13402         isl_options_set_schedule_fuse with ISL_SCHEDULE_FUSE_MIN for ISL-14.
13404 2015-09-29  Nathan Sidwell  <nathan@codesourcery.com>
13406         * builtins.c (expand_builtin_acc_on_device): Delete.
13407         (expand_builtin): Don't call it.
13408         (fold_builtin_1): Fold acc_on_device.
13410 2015-09-29  H.J. Lu  <hongjiu.lu@intel.com>
13412         * config/i386/i386.c (ix86_function_arg): Fix typo in comments.
13413         (ix86_nsaved_sseregs): Likewise.
13415 2015-09-29  Jeff Law  <law@redhat.com>
13417         * config/microblaze/microblaze.c (microblaze_version_to_int): Remove
13418         computation of unused value.
13420         * config/pdp11/pdp11.c (pdp11_branch_cost): New function.
13421         * config/pdp11/pdp11.h (BRANCH_COST): Call function rather than
13422         inline macro expansion.
13424         * config/i386/t-interix (winnt-stubs.o): Fix compilation rule.
13426         * config/sh/sh.c (gen_shl_and): Fix undefined left shift behaviour.
13427         (gen_shl_sext): Likewise.
13428         * config/sh/sh.md (divsi3): Likewise.
13429         (imm->ext_dest_operand splitter): Likewise.
13431 2015-09-29  Sebastian Pop  <s.pop@samsung.com>
13432             Aditya Kumar  <aditya.k7@samsung.com>
13434         * graphite-sese-to-poly.c (gsi_for_phi_node): Remove.
13435         (nb_data_writes_in_bb): Remove.
13436         (split_pbb): Remove.
13437         (split_reduction_stmt): Remove.
13438         (is_reduction_operation_p): Remove.
13439         (phi_contains_arg): Remove.
13440         (follow_ssa_with_commutative_ops): Remove.
13441         (detect_commutative_reduction_arg): Remove.
13442         (detect_commutative_reduction_assign): Remove.
13443         (follow_inital_value_to_phi): Remove.
13444         (edge_initial_value_for_loop_phi): Remove.
13445         (initial_value_for_loop_phi): Remove.
13446         (used_outside_reduction): Remove.
13447         (detect_commutative_reduction): Remove.
13448         (translate_scalar_reduction_to_array_for_stmt): Remove.
13449         (remove_phi): Remove.
13450         (dr_indices_valid_in_loop): Remove.
13451         (close_phi_written_to_memory): Remove.
13452         (translate_scalar_reduction_to_array): Remove.
13453         (rewrite_commutative_reductions_out_of_ssa_close_phi): Remove.
13454         (rewrite_commutative_reductions_out_of_ssa_loop): Remove.
13455         (rewrite_commutative_reductions_out_of_ssa): Remove.
13456         (build_poly_scop): Remove call to
13457         rewrite_commutative_reductions_out_of_ssa.
13459 2015-09-29  Evandro Menezes  <e.menezes@samsung.com>
13461         * config/arm/types.md (neon_ldp, neon_ldp_q, neon_stp, neon_stp_q):
13462         Add new insn types for vector load and store pairs.
13463         * config/arm/cortex-a53.md (cortex_a53_f_load_2reg): Add insn
13464         types "neon_ldp{,_q}".
13465         * config/arm/cortex-a57.md (neon_load_c): Add insn types
13466         "neon_ldp{,_q}".
13467         (neon_store_complex): Add insn types "neon_stp{,_q}".
13468         * config/aarch64/aarch64-simd.md (aarch64_be_movoi): Add insn types
13469         "neon_{ldp,stp}_q".
13471 2015-09-29  Jeff Law  <law@redhat.com>
13473         * config/rx/constraints.md (Int08): Fix undefined left shift
13474         behaviour.
13475         (Sint08, Sint16, Sint24): Likewise.
13476         * config/rx/rx.c (rx_get_stack_layout): Likewise.
13478         * config/rl78/rl78-expand.md (movqi): Fix undefined left shift
13479         behaviour.
13481         * config/msp430/msp430.c (msp430_legitimate_constant): Fix undefined
13482         left shift behaviour.
13483         * config/msp430/constraints.md ('L' constraint): Similarly.
13484         ('Ys' constraint): Similarly.
13486 2015-09-29  Richard Biener  <rguenther@suse.de>
13488         PR tree-optimization/67170
13489         * tree-ssa-alias.h (get_continuation_for_phi): Adjust
13490         the translate function pointer parameter to get the
13491         bool whether to disambiguate only by reference.
13492         (walk_non_aliased_vuses): Likewise.
13493         * tree-ssa-alias.c (maybe_skip_until): Adjust.
13494         (get_continuation_for_phi_1): Likewise.
13495         (get_continuation_for_phi): Likewise.
13496         (walk_non_aliased_vuses): Likewise.
13497         * tree-ssa-sccvn.c (const_parms): New bitmap.
13498         (vn_reference_lookup_3): Adjust for interface change.
13499         Disambiguate parameters pointing to readonly memory.
13500         (free_scc_vn): Free const_parms.
13501         (run_scc_vn): Initialize const_parms from a fn spec attribute.
13503 2015-09-29  Richard Biener  <rguenther@suse.de>
13505         PR tree-optimization/67741
13506         * tree-ssa-math-opts.c (pass_cse_sincos::execute): Only recognize
13507         builtin calls with correct signature.
13509 2015-09-29  Ilya Enkovich  <enkovich.gnu@gmail.com>
13511         PR target/65105
13512         * config/i386/i386.c: Include dbgcnt.h.
13513         (has_non_address_hard_reg): New.
13514         (convertible_comparison_p): New.
13515         (scalar_to_vector_candidate_p): New.
13516         (remove_non_convertible_regs): New.
13517         (scalar_chain): New.
13518         (scalar_chain::scalar_chain): New.
13519         (scalar_chain::~scalar_chain): New.
13520         (scalar_chain::add_to_queue): New.
13521         (scalar_chain::mark_dual_mode_def): New.
13522         (scalar_chain::analyze_register_chain): New.
13523         (scalar_chain::add_insn): New.
13524         (scalar_chain::build): New.
13525         (scalar_chain::compute_convert_gain): New.
13526         (scalar_chain::replace_with_subreg): New.
13527         (scalar_chain::replace_with_subreg_in_insn): New.
13528         (scalar_chain::emit_conversion_insns): New.
13529         (scalar_chain::make_vector_copies): New.
13530         (scalar_chain::convert_reg): New.
13531         (scalar_chain::convert_op): New.
13532         (scalar_chain::convert_insn): New.
13533         (scalar_chain::convert): New.
13534         (convert_scalars_to_vector): New.
13535         (pass_data_stv): New.
13536         (pass_stv): New.
13537         (make_pass_stv): New.
13538         (ix86_option_override): Created and register stv pass.
13539         (flag_opts): Add -mstv.
13540         (ix86_option_override_internal): Likewise.
13541         * config/i386/i386.md (SWIM1248x): New.
13542         (*movdi_internal): Add xmm to mem alternative for TARGET_STV.
13543         (and<mode>3): Use SWIM1248x iterator instead of SWIM.
13544         (*anddi3_doubleword): New.
13545         (*zext<mode>_doubleword): New.
13546         (*zextsi_doubleword): New.
13547         (<code><mode>3): Use SWIM1248x iterator instead of SWIM.
13548         (*<code>di3_doubleword): New.
13549         * config/i386/i386.opt (mstv): New.
13550         * dbgcnt.def (stv_conversion): New.
13552 2015-09-29  Tom de Vries  <tom@codesourcery.com>
13554         * tree-cfg.c (dump_function_to_file): Dump function attributes.
13556 2015-09-29  Kaz Kojima  <kkojima@gcc.gnu.org>
13558         PR target/67716
13559         * config/sh/sh.c (sh_override_options_after_change): New.
13560         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
13561         (sh_option_override): Move align_loops, align_jumps and
13562         align_functions handling into sh_override_options_after_change.
13564 2015-09-28  Nathan Sidwell  <nathan@codesourcery.com>
13566         * config/nvptx/nvptx.c: Include omp-low.h and gomp-constants.h.
13567         (nvptx_record_offload_symbol): Record function execution geometry.
13568         * config/nvptx/mkoffload.c (process): Include launch geometry in
13569         function data.
13570         * omp-low.c (oacc_launch_pack): New.
13571         (replace_oacc_fn_attrib): New.
13572         (set_oacc_fn_attrib): New.
13573         (get_oacc_fn_attrib): New.
13574         (expand_omp_target): Create keyed varargs for GOACC_parallel call
13575         generation.
13576         * omp-low.h (get_oacc_fn_attrib): Declare.
13577         * builtin-types.def (DEF_FUNCTION_TyPE_VAR_6): New.
13578         (DEF_FUNCTION_TYPE_VAR_11): Delete.
13579         * tree.h (OMP_CLAUSE_EXPR): New.
13580         * omp-builtins.def (BUILT_IN_GOACC_PARALLEL): Change target fn name.
13582 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
13583             Sebastian Pop  <s.pop@samsung.com>
13585         * sese.c (invariant_in_sese_p_rec): Remove unused variable.
13587 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
13588             Sebastian Pop  <s.pop@samsung.com>
13590         * graphite-optimize-isl.c (optimize_isl): Use ISL_SCHEDULE_FUSE_MAX.
13591         * graphite-scop-detection.c (struct sese_l): New type.
13592         (get_entry_bb): API for getting entry bb of SESE.
13593         (get_exit_bb): API for getting exit bb of SESE.
13594         (class debug_printer): New type.  Simple printer in debug mode.
13595         (trivially_empty_bb_p): New.  Return true when BB is empty or
13596         contains only debug instructions.
13597         (graphite_can_represent_expr): Call scalar_evoution_in_region
13598         instead of analyze_scalar_evolution.  Pass in scop instead of only
13599         the scop entry.
13600         (stmt_has_simple_data_refs_p): Pass in scop instead of only the
13601         scop entry.
13602         (stmt_simple_for_scop_p): Same.
13603         (harmful_stmt_in_bb): Same.
13604         (graphite_can_represent_loop): Deleted.
13605         (struct scopdet_info): Deleted.
13606         (scopdet_basic_block_info): Deleted.
13607         (build_scops_1): Deleted.
13608         (bb_in_sd_region): Deleted.
13609         (find_single_entry_edge): Deleted.
13610         (find_single_exit_edge): Deleted.
13611         (create_single_entry_edge): Deleted.
13612         (sd_region_without_exit): Deleted.
13613         (create_single_exit_edge): Deleted.
13614         (unmark_exit_edges): Deleted.
13615         (mark_exit_edges): Deleted.
13616         (create_sese_edges): Deleted.
13617         (build_graphite_scops): Deleted.
13618         (canonicalize_loop_closed_ssa): Recompute all dominators at the end.
13619         (build_scops): Use the new scop_builder to build scops.
13620         (dot_all_scops_1): Use the new pretty printer.  Print loop father
13621         as well.
13622         (loop_body_is_valid_scop): New.  Return true if loop body is a
13623         valid scop.
13624         (class scop_builder): New.  Builds SCoPs for polyhedral
13625         optimizations.
13626         (scop_builder): New constructor.
13627         (static sese_l invalid_sese): sese_l with invalid edges.
13628         (get_sese): Get an sese (from a loop) if possible, invalid_sese
13629         otherwise.
13630         (get_nearest_dom_with_single_entry): Get nearest dominator of a
13631         basic_block with single entry.  Return NULL if we get to the
13632         beginning of a function.
13633         (get_nearest_pdom_with_single_exit): Get nearest post-dominator of
13634         a basic_block with single exit.  Return NULL if we get to the
13635         beginning of a function.
13636         (print_sese): Pretty-print SESE.
13637         (merge_sese): Merge two SESEs if possible and return the new SESE.
13638         (build_scop_depth): Start building the SCoP within a loop nest.
13639         (build_scop_breadth): Start building the SCoP at a single loop
13640         depth.  Merge adjacent SESEs if valid.
13641         (can_represent_loop_1): Returns true if Graphite can represent
13642         loop inside SCoP.  Helper for can_represent_loop.
13643         (can_represent_loop): Returns true if Graphite can represent LOOP
13644         and all its nested loops in SCoP.
13645         (loop_is_valid_scop): Returns true if LOOP and all its nests
13646         constitute a valid SCoP.
13647         (region_has_one_loop): Returns true of a region has only one loop.
13648         (add_scop): Add SCoP to the list of valid scops.  Removes an
13649         already existing scop if it intersects with or subsumed by this one.
13650         (harmful_stmt_in_region): Returns true if SCoP has any statment
13651         which cannot be represented by Graphite.
13652         (subsumes): Returns true of SCoP S1 subsumes SCoP S2.
13653         (remove_subscops): Remove any SCoP from the list of already found
13654         SCoPs, if subsumed by S1.
13655         (intersects): Return true if region bounded by SCoPs S1 and S2
13656         intersect.
13657         (remove_intersecting_scops): Remove any SCoP which intersects with S1.
13658         * graphite.c (print_graphite_scop_statistics):
13659         (print_graphite_statistics): Print SCoP info while debugging.
13660         (graphite_initialize): Early exit in case number of loops in a
13661         function is less than PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION or
13662         basic blocks are more than PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
13663         (graphite_finalize):
13664         * params.def: Add PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION.
13665         * sese.h (sese_loop_depth): Remove unnecessary gcc_assert.
13666         (recompute_all_dominators): Recalculate POST_DOMINATORS.
13667         * tree-cfg.c (print_loops): Print the function name while printing
13668         loops.
13670 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
13671             Sebastian Pop  <s.pop@samsung.com>
13673         PR tree-optimization/67700
13674         * graphite-sese-to-poly.c (parameter_index_in_region): Call
13675         invariant_in_sese_p_rec.
13676         (extract_affine): Same.
13677         (rewrite_cross_bb_scalar_deps): Call update_ssa.
13678         * sese.c (invariant_in_sese_p_rec): Export.  Handle vdefs and vuses.
13679         * sese.h (invariant_in_sese_p_rec): Declare.
13681 2015-09-28  David Wohlferd  <dw@LimeGreenSocks.com>
13683         * doc/extend.texi (Asm Labels): Break out text for data vs functions.
13685 2015-09-28  Jiong Wang  <jiong.wang@arm.com>
13687         Revert:
13688         2015-08-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13689                     Jiong Wang  <jiong.wang@arm.com>
13691         * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
13692         * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
13693         (REG_CLASS_NAMES): Likewise.
13694         (REG_CLASS_CONTENTS): Likewise.
13695         * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
13696         (aarch64_register_move_cost): Likewise.
13697         (aarch64_load_symref_appropriately): Invoke the new added pattern if
13698         possible.
13699         * config/aarch64/constraints.md (Uc0): New constraint.
13701 2015-09-28  Daniel Hellstrom  <daniel@gaisler.com>
13703         * config/sparc/t-rtems: Remove -muser-mode. Add ut699, at697f and leon.
13705 2015-09-28  David Edelsohn  <dje.gcc@gmail.com>
13707         * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
13708         SECTION_EXCLUDE in XO mapping class.
13710 2015-09-28  Oleg Endo  <olegendo@gcc.gnu.org>
13712         PR target/54236
13713         * config/sh/predicates.md (t_reg_operand, negt_reg_operand): Allow
13714         and handle ne and eq codes.
13715         * config/sh/sh.c (sh_rtx_costs): Adjust matching of tst #imm,r0 insn.
13716         (sh_recog_treg_set_expr): Early accept negt_reg_operand.  Eearly reject
13717         CONST_INT_P.  Use reverse_condition.
13718         (sh_split_treg_set_expr): Likewise.
13720 2015-09-28  James Greenhalgh  <james.greenhalgh@arm.com>
13722         * config/arm/types.md (type): Add rotate_imm.
13723         * config/aarch64/aarch64.md (*ror<mode>3_insn): Split out the
13724         ROR immediate case.
13725         (*rorsi3_insn_uxtw): Likewise.
13726         * config/aarch64/thunderx.md (thunderx_shift): Add rotate_imm.
13727         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add rotate_imm.
13728         * config/arm/cortex-a57.md (cortex_a53_alu): Add rotate_imm.
13730 2015-09-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13732         PR rtl-optimization/67481
13733         * ifcvt.c (contains_ccmode_rtx_p): New function.
13734         (insn_valid_noce_process_p): Use it.
13736 2015-09-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13738         PR rtl-optimization/67456
13739         PR rtl-optimization/67464
13740         PR rtl-optimization/67465
13741         * ifcvt.c (noce_try_cmove_arith): Bail out if cannot conditionally
13742         move in the mode of x.  Handle combination of complex and simple
13743         block pairs as well as the case when one is empty.
13745 2015-09-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
13747         * doc/gimple.texi: Update references to gimple_statement_base.
13748         * gdbhooks.py: Likewise.
13749         * gimple.h: Likewise.
13751 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
13753         * config/sparc/driver-sparc.c: map LEON to leon3
13755 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
13757         * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
13758           and make it inverse to change default
13759         * config/sparc/sync.md: Only use supervisor ASI for CASA when in
13760           supervisor mode
13761         * doc/invoke.texi: Document change of default
13763 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
13765         * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
13766         true on %f0 for a target without FPU.
13767         * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
13768         without FPU.
13769         (untyped_return): Do not load %f0 for a target without FPU.
13771 2015-09-28  Andrew Pinski  <apinski@cavium.com>
13773         * config/aarch64/aarch64.md (prefetch):
13774         Change the predicate of operand 0 to register_operand.
13776 2015-09-27  Uros Bizjak  <ubizjak@gmail.com>
13778         * config/i386/predicates.md (register_sse4nonimm_operand): New
13779         predicate.
13780         * config/i386/sse.md (PEXTR_MODE12): New mode iterator.
13781         (*vec_extract<mode>): Use PEXTR_MODE12 instead of VI12_128 mode.
13782         Use register_sse4nonimm_operand as operand 0 predicate.
13783         (*vec_extractv8hi_sse2): Remove insn pattern.
13784         (*vec_extract<PEXTR_MODE12:mode>_zext): Merge insn pattern from
13785         *vec_extractv8hi_zext and *vec_extractv16qi_zext patterns.
13787 2015-09-27  Oleg Endo  <olegendo@gcc.gnu.org>
13788             Kaz Kojima  <kkojima@gcc.gnu.org>
13790         PR target/67391
13791         * config/sh/sh-protos.h (sh_lra_p): Declare.
13792         * config/sh/sh.c (sh_lra_p): Make non-static.
13793         * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
13794         arith_reg_operand for operands[1].  Remove TARGET_SHMEDIA case.
13795         Expand into addsi3_scr if operands[2] if needed.
13796         (*addsi3_compact): Rename to *addsi3_compact_lra.  Use
13797         arith_reg_operand for operands[1].  Allow it only when LRA is enabled.
13798         (addsi3_scr, *addsi3): New insn_and_split patterns.
13800 2015-09-27  Alexandre Oliva <aoliva@redhat.com>
13802         PR rtl-optimization/64164
13803         PR tree-optimization/67312
13804         PR middle-end/67340
13805         PR middle-end/67490
13806         PR bootstrap/67597
13807         * cfgexpand.c (parm_in_stack_slot_p): Remove.
13808         (ssa_default_def_partition): Remove.
13809         (get_rtl_for_parm_ssa_default_def): Remove.
13810         (set_rtl): Check that RTL assignments match expectations.
13811         Loop on SUBREGs, CONCATs and PARALLELs subexprs.  Set only the
13812         default def location for params and results.  Record SSA names
13813         or types in REG and MEM attrs, respectively.
13814         (set_parm_rtl): New.
13815         (expand_one_ssa_partition): Drop logic that assigned MEMs with
13816         unassigned addresses.
13817         (adjust_one_expanded_partition_var): Don't accept NULL RTL on
13818         deferred stack alloc vars.
13819         (expand_used_vars): Skip partitions holding parm default defs.
13820         Move adjust_one_expanded_partition_var loop...
13821         (pass_expand::execute): ... here.  Drop redundant assert.
13822         Adjust comments before the final loop over all ssa names.
13823         Require assigned rtl of parms and results to match exactly.
13824         Reset its attributes to match them, not any other variables in
13825         the same partition.
13826         (expand_debug_expr): Use entry value for PARM's default defs
13827         only iff they have zero nondebug uses.
13828         * cfgexpand.h (parm_in_stack_slot_p): Remove.
13829         (get_rtl_for_parm_ssa_default_def): Remove.
13830         (set_parm_rtl): Declare.
13831         * doc/invoke.texi: Improve wording.
13832         * explow.c (promote_decl_mode): Fix promote_function_mode for
13833         result decls not by reference.
13834         (promote_ssa_mode): Disregard BLKmode from promote_decl, and
13835         bypass TYPE_MODE to get the actual vector mode.
13836         * function.c: Include tree-dfa.h.  Revert 2015-08-14's and
13837         2015-08-19's changes as follows.  Drop include of
13838         basic-block.h and df.h.
13839         (rtl_for_parm): Remove.
13840         (maybe_reset_rtl_for_parm): Remove.
13841         (parm_in_unassigned_mem_p): Remove.
13842         (use_register_for_decl): Add logic for RESULT_DECLs matching
13843         assign_parms' behavior.
13844         (split_complex_args): Revert.
13845         (assign_parms_augmented_arg_list): Revert.  Add comment
13846         referencing the logic above.
13847         (assign_parm_adjust_stack_rtl): Revert.
13848         (assign_parm_setup_block): Revert.  Use set_parm_rtl instead
13849         of SET_DECL_RTL.  Set up a REG if the parm demands so.
13850         (assign_parm_setup_reg): Revert.  Consolidated SET_DECL_RTL
13851         calls into a single set_parm_rtl.  Set up a temporary RTL
13852         temporarily for expand_assignment.
13853         (assign_parm_setup_stack): Revert.  Use set_parm_rtl.
13854         (assign_parms_unsplit_complex): Revert.  Use set_parm_rtl.
13855         (assign_bounds): Revert.
13856         (assign_parms): Revert.  Use set_parm_rtl.
13857         (allocate_struct_function): Relayout result and parms of
13858         non-abstruct functions.
13859         (expand_function_start): Revert.  Use set_parm_rtl.  If the
13860         result is not a hard reg, create a pseudo from the promoted
13861         mode of the default def.  Promote static chain mode.
13862         * tree-outof-ssa.c (remove_ssa_form): Drop unused
13863         partition_has_default_def.  Set up
13864         partitions_for_parm_default_defs.
13865         (finish_out_of_ssa): Remove partition_has_default_def.
13866         Release partitions_for_parm_default_defs.
13867         * tree-outof-ssa.h (struct ssaexpand): Remove
13868         partition_has_default_def.  Add
13869         partitions_for_parm_default_defs.
13870         * tree-ssa-coalesce.c: Include tree-dfa.h, tm_p.h and
13871         stor-layout.h.
13872         (build_ssa_conflict_graph): Fix conflict-detection of default
13873         defs of even unused default defs of params and results.
13874         (for_all_parms): New.
13875         (create_default_def): New.
13876         (register_default_def): New.
13877         (coalesce_with_default): New.
13878         (create_outofssa_var_map): Create default defs for all parms
13879         and results, and register their partitions.  Add GIMPLE_RETURN
13880         operands as coalesce candidates with results.  Add default
13881         defs of each parm or result as coalesce candidates with its
13882         other defs.  Mark each result def, and each default def of
13883         parms, as used_in_copy.
13884         (gimple_can_coalesce_p): Call it.  Call use_register_for_decl
13885         with the ssa names, even anonymous ones.  Drop
13886         parm_in_stack_slot_p calls.  Require same signedness and
13887         alignment.
13888         (coalesce_ssa_name): Add coalesce candidates for all defs of
13889         each parm and result, even unused ones.
13890         (parm_default_def_partition_arg): New type.
13891         (set_parm_default_def_partition): New.
13892         (get_parm_default_def_partitions): New.
13893         * tree-ssa-coalesce.h (get_parm_default_def_partitions): New.
13894         * tree-ssa-live.c (partition_view_init): Regard unused defs of
13895         parms and results as used.
13896         (verify_live_on_entry): Don't error out just because they're
13897         not live.
13899 2015-09-26  David Edelsohn  <dje.gcc@gmail.com>
13901         * dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
13902         (HAVE_XCOFF_DWARF_EXTRAS): Default to 0 definition.
13903         (output_fde): Don't output length for debug_frame on AIX.
13904         (output_call_frame_info): Don't output length for debug_frame on AIX.
13905         (have_macinfo): Force to False for XCOFF_DEBUGGING_INFO and not
13906         HAVE_XCOFF_DWARF_EXTRAS.
13907         (add_AT_loc_list): Return early if XCOFF_DEBUGGING_INFO and not
13908         HAVE_XCOFF_DWARF_EXTRAS.
13909         (output_compilation_unit_header): Don't output length on AIX.
13910         (output_pubnames): Don't output length on AIX.
13911         (output_aranges): Delete argument. Compute length locally. Don't
13912         output length on AIX.
13913         (output_line_info): Don't output length on AIX.
13914         (dwarf2out_finish): Don't compute aranges_length.
13915         * dwarf2asm.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
13916         (dw2_asm_output_nstring): Emit .byte not .ascii on AIX.
13917         * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Emit correct
13918         symbol decoration for AIX.
13919         (rs6000_xcoff_debug_unwind_info): New.
13920         (rs6000_xcoff_asm_named_section): Emit .dwsect pseudo-op
13921         for SECTION_DEBUG.
13922         (rs6000_xcoff_declare_function_name): Emit different
13923         .function pseudo-op when DWARF2_DEBUG. Don't call
13924         xcoffout_declare_function for DWARF2_DEBUG.
13925         * config/rs6000/xcoff.h (TARGET_DEBUG_UNWIND_INFO):
13926         Redefine.
13927         * config/rs6000/aix71.h: New.
13928         * configure.ac (gcc_cv_as_aix_dwloc): Check AIX as for DWARF
13929         locations support.
13930         * configure: Regenerate.
13931         * config.gcc (powerpc-ibm-aix[789]+): New stanza for AIX 7.1+ with
13932         DWARF support.
13934 2015-09-26  Jeff Law  <law@redhat.com>
13936         * config/arc/arc.c (arc_output_addsi): Fix left shift undefined
13937         behaviour.
13938         * config/arc/constraints.md (Cca, C2a): Fix left shift undefined
13939         behaviour.
13941         * config/sh/sh.h (CONST_OK_FOR_J16): Fix left shift undefined
13942         behaviour
13944         * config/mips/mips.c (mips_compute_frame_info): Fix left shift
13945         undefined behaviour.
13947         * config/cris/cris.md (asrandb): Fix left shift undefined
13948         behaviour.
13949         (asrandw): Likewise.
13951 2015-09-25  Vladimir Makarov  <vmakarov@redhat.com>
13953         PR target/61578
13954         * lra-constarints.c (match_reload): Check presence of the input pseudo
13955         in the output operand.
13957 2015-09-25  Tobias Burnus  <burnus@net-b.de>
13959         * doc/invoke.texi (-fsanitize): Minor wording tweak.
13961 2015-09-25  Tobias Burnus  <burnus@net-b.de>
13963         * doc/invoke.texi (-fsanitize): Update URLs.
13965 2015-09-25  Teresa Johnson  <tejohnson@google.com>
13967         * opts.c (finish_options): Unset -freorder-blocks-and-partition
13968         if not using profile.
13970 2015-09-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13972         PR pretty-print/67567
13973         * pretty-print.c (pp_string): Add gcc_checking_assert.
13974         * pretty-print.h (output_buffer_append_r): Likewise.
13976 2015-09-25  Oleg Endo  <olegendo@gcc.gnu.org>
13978         PR target/67675
13979         * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
13980         addr2 individually.  Don't emit logical or insn if one is known to
13981         be aligned approriately.
13982         (sh_expand_cmpnstr): Likewise.
13984 2015-09-25  Richard Sandiford  <richard.sandiford@arm.com>
13986         * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
13987         __builtin_aarch64_fp[sc]r arguments into a register.
13989 2015-09-25  H.J. Lu  <hongjiu.lu@intel.com>
13991         * config.gcc (x86_archs): Replace lakemount with lakemont.
13992         (with_cpu): Likewise.
13993         (with_arch): Likewise.
13994         * config/i386/i386-c.c (ix86_target_macros_internal): Replace
13995         PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT.  Replace
13996         __tune_lakemount__ with __tune_lakemont__.
13997         * config/i386/i386.c (lakemount_cost): Renamed to ...
13998         (lakemont_cost): This.
13999         (m_LAKEMOUNT): Renamed to ...
14000         (m_LAKEMONT): This.
14001         (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
14002         (processor_target_table): Replace "lakemount" with "lakemont".
14003         (processor_alias_table): Likewise.
14004         (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
14005         PROCESSOR_LAKEMONT.
14006         (ix86_adjust_cost): Likewise.
14007         (ia32_multipass_dfa_lookahead): Likewise.
14008         * config/i386/i386.h (processor_type): Likewise.
14009         * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
14010         * doc/invoke.texi: Replace lakemount with lakemont.  Replace
14011         Lakemount with Lakemont.
14013 2015-09-24  H.J. Lu  <hongjiu.lu@intel.com>
14015         * config.gcc (x86_archs): Replace iamcu with lakemount.
14016         (with_cpu): Likewise.
14017         (with_arch): Likewise.
14018         * doc/invoke.texi: Likewise.
14019         * config/i386/i386-c.c (ix86_target_macros_internal): Replace
14020         PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT.  Replace
14021         __tune_iamcu__ with __tune_lakemount__.
14022         * config/i386/i386.c (iamcu_cost): Renamed to ...
14023         (lakemount_cost): This.
14024         (m_IAMCU): Renamed to ...
14025         (m_LAKEMOUNT): This.
14026         (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
14027         (processor_target_table): Replace "iamcu" with "lakemount".
14028         (processor_alias_table): Likewise.
14029         (ix86_issue_rate): Replace PROCESSOR_IAMCU with
14030         PROCESSOR_LAKEMOUNT.
14031         (ix86_adjust_cost): Likewise.
14032         (ia32_multipass_dfa_lookahead): Likewise.
14033         * config/i386/i386.h (processor_type): Likewise.
14034         * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
14036 2015-09-24  John David Anglin  <danglin@gcc.gnu.org>
14038         * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
14039         * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
14040         Declare.
14041         * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
14042         (pa_expand_compare_and_swap_loop): New.
14043         (pa_maybe_emit_compare_and_swap_exchange_loop): New.
14044         * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
14045         atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
14046         (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
14047         (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
14048         Revise.
14050 2015-09-24  Michael Collison  <michael.collison@linaro.org>
14052         PR other/57195
14053         * read-md.c (read_name): Allow mode iterators inside angle
14054         brackets in rtl expressions.
14056 2015-09-24  Vladimir Makarov  <vmakarov@redhat.com>
14058         PR target/61578
14059         * ira-color.c (update_allocno_cost): Add parameter.
14060         (update_costs_from_allocno): Decrease conflict cost.  Pass the new
14061         parameter.
14063 2015-09-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14065         PR driver/67640
14066         * opts-common.c (prune_options): Discard all -fdiagnostics-color
14067         but the last one, which is moved to the front to be processed
14068         first.
14069         * opts.c (enable_warning_as_error): Reject options that do not
14070         control warnings.
14072 2015-09-24  Jiong Wang  <jiong.wang@arm.com>
14074         * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
14076 2015-09-24  Jiong Wang  <jiong.wang@arm.com>
14078         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
14079         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
14080         (aarch64_cannot_force_const_mem): Likewise.
14081         (aarch64_classify_address): Likewise.
14082         (aarch64_classify_symbolic_expression): Likewise.
14083         (aarch64_print_operand): Likewise.
14084         (aarch64_classify_symbol): Likewise.
14085         (aarch64_mov_operand_p): Likewise.
14086         * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
14087         (aarch64_mov_operand): Likewise.
14089 2015-09-24  Segher Boessenkool  <segher@kernel.crashing.org>
14091         * config/rs6000/rs6000.c (debug_stack_info): Invert the test
14092         for info->spe_gp_size.
14094 2015-09-24  Richard Biener  <rguenther@suse.de>
14096         PR lto/67699
14097         * lto-cgraph.c (compute_ltrans_boundary): Do not stream
14098         abstract origins.
14100 2015-09-24  Thomas Schwinge  <thomas@codesourcery.com>
14102         * tree-object-size.c (plus_stmt_object_size)
14103         (cond_expr_object_size): Change the formal parameters from gimple
14104         to gimple *.
14105         * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
14106         * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
14107         * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
14109 2015-09-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14111         * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
14112         Check for ld -type pie on Solaris 11.x and 12.
14113         * configure: Regenerate.
14114         * config.in: Regenerate.
14116         * gcc.c (LD_PIE_SPEC): Allow redefinition.
14118         * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
14119         (STARTFILE_SPEC): Use it.
14120         (ENDFILE_CRTEND_SPEC): Define.
14121         (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
14122         (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
14123         ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
14124         [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
14125         (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
14126         * config/i386/sol2.h (ENDFILE_SPEC): Remove.
14127         (ENDFILE_ARCH_SPEC): Define.
14128         * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
14130 2015-09-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14132         * configure.ac (gcc_cv_solaris_crts): New test.
14133         * configure. Regenerate.
14134         * config.in: Regenerate.
14135         * config/sol2.h (STARTFILE_SPEC): Simplify, provide
14136         HAVE_SOLARIS_CRTS variant.
14138 2015-09-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14140         * tree-inline.h (count_insns_seq): Delete prototype.
14141         (estimate_num_insns_seq): Define prototype.
14142         * tree-inline.c (count_insns_seq): Delete.
14143         (estimate_num_insns_seq): Remove static qualifier.
14144         * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
14145         with estimate_num_insns_seq.
14147 2015-09-24  Richard Biener  <rguenther@suse.de>
14149         * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
14150         members.
14151         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
14152         and base for MEM_REF and TARGET_MEM_REF.  Handle BIT_FIELD_REF
14153         offset.
14154         (ao_ref_init_from_vn_reference): Record clique and base in the
14155         built base.
14156         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
14158 2015-09-24  Richard Biener  <rguenther@suse.de>
14160         PR tree-optimization/48885
14161         * tree-ssa-structalias.c (visit_loadstore): Handle default defs
14162         as not including any restrict tags from other pointers.
14164 2015-09-23  Thomas Schwinge  <thomas@codesourcery.com>
14166         * gcc.c (handle_foffload_option): Don't lose the trailing NUL
14167         character when appending to offload_targets.
14169         * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
14170         offload targets by commas, not colons.
14171         * config.in: Regenerate.
14172         * configure: Likewise.
14173         * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
14174         instead of setting up the default offload targets here...
14175         (process_command): ..., do it here.
14176         libgomp/
14177         * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
14178         targets are separated by commas.
14179         * config.h.in: Regenerate.
14181 2015-09-23  Thomas Schwinge  <thomas@codesourcery.com>
14182             Nathan Sidwell  <nathan@codesourcery.com>
14184         * omp-low.h (omp_reduction_init_op): Declare.
14185         * omp-low.c (omp_reduction_init_op): New, broken out of ...
14186         (omp_reduction_init): ... here.  Call it.
14187         * tree-parloops.c (initialize_reductions): Use
14188         omp_reduction_init_op.
14190 2015-09-23   Richard Biener  <rguenther@suse.de>
14192         PR middle-end/67662
14193         * fold-const.c (fold_binary_loc): Do not reassociate two vars with
14194         undefined overflow unless they will cancel out.
14196 2015-09-23  Kirill Yukhin  <kirill.yukhin@intel.com>
14198         * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
14199         insn emit.
14201 2015-09-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14203         PR c/49655
14204         * opts.h (write_langs): Declare.
14205         * opts-global.c (write_langs): Make it extern.
14207 2015-09-23  Oleg Endo  <olegendo@gcc.gnu.org>
14209         PR target/67391
14210         * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
14211         overlapping regs when matching the pattern.
14213 2015-09-23  James Greenhalgh  <james.greenhalgh@arm.com>
14215         * config/aarch64/aarch64-simd.md
14216         (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
14217         (aarch64_float_truncate_hi_v4sf_le): New.
14218         (aarch64_float_truncate_hi_v4sf_be): Likewise.
14220 2015-09-23  Richard Biener  <rguenther@suse.de>
14222         * tree-ssa-structalias.c (intra_create_variable_infos): Build
14223         representatives for all restrict qualified pointer destinations.
14225 2015-09-23  Kirill Yukhin  <kirill.yukhin@intel.com>
14227         * config/i386/i386.md (define_code_attr mshift): New.
14228         (define_mode_iterator SWI1248_AVX512BW): Rename ...
14229         (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
14230         only.
14231         (define_insn "*k<logic><mode>"): Use new iterator name.
14232         (define_insn "*<mshift><mode>3"): New.
14234 2015-09-23  Mikhail Maltsev  <maltsevm@gmail.com>
14236         PR middle-end/67649
14237         * memory-block.h (memory_block_pool::allocate): Use valgrind API to
14238         mark the block as accessible.
14240 2015-09-22  Segher Boessenkool  <segher@kernel.crashing.org>
14242         * function.c (thread_prologue_and_epilogue_insns): Delete
14243         orig_entry_edge argument to try_shrink_wrapping.
14244         * shrink-wrap.c (can_get_prologue): New function.
14245         (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
14246         (try_shrink_wrapping): Delete orig_entry_edge argument.  Use
14247         can_get_prologue where needed.  Remove code that finds a single
14248         edge for the prologue.  Remove code that tests if any reg clobbered
14249         by the prologue is live on the prologue edge.  Remove code that finds
14250         the new prologue edge after duplicating blocks.  Make a new prologue
14251         block and edge.
14252         * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
14254 2015-09-22  Jeff Law  <law@redhat.com>
14256         * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
14257         behavior.
14259 2015-09-22  Nathan Sidwell  <nathan@codesourcery.com>
14261         * doc/invoke.texi  (-Wmultiple-inheritance, -Wvirtual-inheritance,
14262         -Wtemplates, -Wnamespaces): Document.
14264 2015-09-22  Tom de Vries  <tom@codesourcery.com>
14266         PR tree-optimization/67671
14267         * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
14268         pointer references as restrict.
14270 2015-09-22  Chung-Lin Tang  <cltang@codesourcery.com>
14272         * config/nios2/nios2.c (nios2_legitimize_address): When handling
14273         'reg + reloc' cases, allow first operand to be non-REG, and use
14274         force_reg() to enforce address pattern.
14276 2015-09-22  Alexander Fomin <alexander.fomin@intel.com>
14278         PR target/67480
14279         * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
14280         (define_mode_iterator VI12_AVX_AVX512F): New.
14281         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
14282         all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
14283         (define_insn "*<code><mode>3"): ... Into new pattern using
14284         VI12_AVX_AVX512F iterators without masking.
14286 2015-09-22  Kirill Yukhin  <kirill.yukhin@intel.com>
14288         * config.gcc: Support "skylake-avx512".
14289         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
14290         PROCESSOR_SKYLAKE_AVX512.
14291         * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
14292         (processor_target_table): Add "skylake-avx512".
14293         (PTA_SKYLAKE_AVX512): Define.
14294         (ix86_option_override_internal): Add "skylake_avx512".
14295         (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
14296         F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
14297         * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
14298         (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
14299         * doc/invoke.texi (skylake-avx512): New.
14301 2015-09-22  Kirill Yukhin  <kirill.yukhin@intel.com>
14303         * config/i386/i386.md (define_insn "kunpckhi"): Fix
14304         operand in pattern.
14305         (define_insn "kunpcksi"): Ditto.
14306         (define_insn "kunpckdi"): Ditto.
14308 2015-09-22  Kirill Yukhin  <kirill.yukhin@intel.com>
14310         * config/i386/i386.md (define_split not/xor SWI1248x): Use
14311         iterator instead of fixed modes.
14313 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
14315         * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
14316         Adjust declaration.
14317         * config/aarch64/aarch64.c (aarch64_emit_bic): New.
14318         (aarch64_gen_atomic_ldop): Adjust comment.  Add parameter
14319         out_result.  Update to support update-fetch operations.
14320         * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
14321         Adjust for change to aarch64_gen_atomic_ldop.
14322         (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
14323         (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
14324         (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
14325         (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
14326         (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
14328 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
14330         * config/aarch64/aarch64-protos.h
14331         (aarch64_atomic_ldop_supported_p): Declare.
14332         * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
14333         (enum aarch64_atomic_load_op_code): New.
14334         (aarch64_emit_atomic_load_op): New.
14335         (aarch64_gen_atomic_ldop): Update to support load-operate
14336         patterns.
14337         * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
14338         to an expander.
14339         (aarch64_atomic_<atomic_optab><mode>): New.
14340         (aarch64_atomic_<atomic_optab><mode>_lse): New.
14341         (atomic_fetch_<atomic_optab><mode>): Change to an expander.
14342         (aarch64_atomic_fetch_<atomic_optab><mode>): New.
14343         (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
14345 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
14347         * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
14348         (UNSPECV_ATOMIC_LDOP_OR): New.
14349         (UNSPECV_ATOMIC_LDOP_BIC): New.
14350         (UNSPECV_ATOMIC_LDOP_XOR): New.
14351         (UNSPECV_ATOMIC_LDOP_PLUS): New.
14352         (ATOMIC_LDOP): New.
14353         (atomic_ldop): New.
14354         (aarch64_atomic_load<atomic_ldop><mode>): New.
14356 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
14358         * config/aarch64/aarch64.md
14359         (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
14360         pattern.
14362 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
14364         * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
14365         Declare.
14366         * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
14367         (aarch64_gen_atomic_ldop): New.
14368         (aarch64_split_atomic_op): Fix whitespace and add a comment.
14369         * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
14370         (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
14371         (atomic_exchange<mode>): Replace with an expander.
14372         (aarch64_atomic_exchange<mode>): New.
14373         (aarch64_atomic_exchange<mode>_lse): New.
14374         (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
14375         (aarch64_atomic_swp<mode>): New.
14377 2015-09-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14379         * tree-inline.c (expand_call_inline): Use inform for extra note.
14380         Do not give a note with UNKNOWN_LOCATION.
14381         Replace input_location with gimple_location (stmt).
14382         Use true/false instead of TRUE/FALSE.
14384 2015-09-22  Tom de Vries  <tom@codesourcery.com>
14386         PR tree-optimization/67666
14387         * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
14388         with single field non-conservative.
14390 2015-09-21  David S. Miller  <davem@davemloft.net>
14392         PR/67622
14393         Revert:
14394         2015-09-11  David S. Miller  <davem@davemloft.net>
14396         * config/sparc/constraints.md: Make "U" constraint a real register
14397         constraint.
14398         * config/sparc/sparc.c (TARGET_LRA_P): Define.
14399         (D_MODES, DF_MODES): Add missing cast.
14400         (TF_MODES, TF_MODES_NO_S): Include T_MODE.
14401         (OF_MODES, OF_MODES_NO_S): Include O_MODE.
14402         (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
14403         cost to 8.
14404         * config/sparc/sparc.h (PROMOTE_MODE): Define.
14405         * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
14406         provide these insn when flag_pic.
14408         2015-09-17  David S. Miller  <davem@davemloft.net>
14410         * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
14411         Declare.
14412         * config/sparc/sparc.c (sparc_secondary_memory_needed): New
14413         function.
14414         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
14415         (HARD_REGNO_CALLER_SAVE_MODE): Define.
14416         * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
14417         (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
14418         (embmedany_losum, embmedany_brsum, embmedany_textuhi)
14419         (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
14420         provide when flag_pic.
14422 2015-09-21  Jeff Law  <law@redhat.com>
14424         * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
14425         behavior.
14427 2015-09-21  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14429         * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
14431 2015-09-21  Richard Biener  <rguenther@suse.de>
14433         * passes.c (rest_of_decl_compilation): Do not call
14434         dwarf2out_early_global_decl for aliases.
14436 2015-09-21  Richard Biener  <rguenther@suse.de>
14438         PR debug/67664
14439         * dwarf2out.c (add_location_or_const_value_attribute): Remove
14440         attribute parameter.  Early exit if either DW_AT_const_value
14441         or DW_AT_location are present already.
14442         (gen_variable_die): Adjust caller.
14443         (dwarf2out_late_global_decl): Likewise.
14445 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
14447         PR target/67657
14448         * config/sh/sh.c (sh_remove_overlapping_post_inc,
14449         sh_peephole_emit_move_insn): Add new functions.
14450         * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
14451         sh_peephole_emit_move_insn): Declere them.
14452         * config/sh/sh.md: Use them in various peephole2 patterns.
14454 2015-09-21  Richard Biener  <rguenther@suse.de>
14456         PR middle-end/67651
14457         * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
14458         address with -fno-delete-null-pointer-checks.
14460 2015-09-21  Alan Lawrence  <alan.lawrence@arm.com>
14462         * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
14463         (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
14464         (reduc_uplus_v16qi): Remove.
14466         * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
14467         (reduc_<VEC_reduc_name>_v2df): Remove.
14468         (reduc_<VEC_reduc_name>_v4sf): Remove.
14469         (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
14471         * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
14472         gen_ function by removing * prefix.
14473         (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
14475 2015-09-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14477         PR middle-end/60832
14478         * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
14479         Print i_bound without converting it to a tree.
14481 2015-09-21  Bilyan Borisov  <bilyan.borisov@arm.com>
14483         * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
14484         operands[4] operands[5] swap with std::swap, removed tmp variable.
14485         (arm_evpc_neon_vzip): Replaced in0/in1 and
14486         out0/out1 swaps with std::swap, removed x variable.
14487         (arm_evpc_neon_vtrn): Replaced in0/int1 and
14488         out0/out1 swaos with std::swap, removed x variable.
14489         (arm_expand_vec_perm_const_1): Replaced
14490         d->op0/d->op1 swap with std::swap, removed x variable.
14491         (arm_evpc_neon_vuzp): Replaced in0/in1 and
14492         out0/out1 swaps with std::swap, removed x variable.
14494 2015-09-21  Jonathan Yong  <10walls@gmail.com>
14496         * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
14497         sysroot/usr/lib/32api for additional win32 libraries,
14498         fixes failing Cygwin bootstrapping.
14500 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
14502         * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
14504 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
14506         PR target/67126
14507         * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
14508         (*mov_t_msb_neg): Rewrite negc pattern.
14510 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
14512         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
14513         immediate generation code.
14515 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
14517         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
14518         redundant immediate generation code.
14520 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
14522         * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
14523         (AARCH64_NUM_BITMASKS): Remove.
14524         (aarch64_bitmasks_cmp): Remove.
14525         (aarch64_build_bitmask_table): Remove.
14527 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
14529         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
14530         slow immediate matching loops with a faster algorithm.
14532 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
14534         * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
14535         faster algorithm.
14537 2015-09-20  Jeff Law  <law@redhat.com>
14539         PR tree-optimization/47679
14540         * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
14541         * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
14542         * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
14543         (thread_through_normal_block): Use record_temporary_equivalences.
14545 2015-09-19  Trevor Saunders  <tbsaunde@tbsaunde.org>
14547         * coretypes.h (gimple): Change typedef to be a forward declaration.
14548         * gimple.h (gimple_statement_base): rename to gimple.
14549         * (all functions and types using gimple): Adjust.
14550         * *.[ch]: Likewise.
14552 2015-09-19  Andrew Dixie  <andrewd@gentrack.com>
14553             David Edelsohn  <dje.gcc@gmail.com>
14555         * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
14556         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
14557         (EH_FRAME_THROUGH_COLLECT2): Define.
14558         (EH_TABLES_CAN_BE_READ_ONLY): Define.
14559         (ASM_OUTPUT_DWARF_PCREL): Define.
14560         (ASM_OUTPUT_DWARF_DATAREL): Define.
14562 2015-09-19  John David Anglin  <danglin@gcc.gnu.org>
14564         * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
14565         of TARGET_ELF32.
14567 2015-09-18  Jeff Law  <law@redhat.com>
14569         PR tree-optimization/47679
14570         * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped.  Move
14571         it here ...
14572         (dom_opt_dom_walker): New private member holding the avail_exprs_stack
14573         object.  Update constructor.
14574         (pass_dominator::execute):  Corresponding chagnes to declaration
14575         and initialization of avail_exprs_stack.  Update constructor call
14576         for dom_opt_dom_walker object.
14577         (lookup_avail_expr, record_cond): Accept additional argument.  Pass
14578         it down to children as needed.
14579         (record_equivalences_from_incoming_edge): Likewise.
14580         (eliminate_redundant_computations): Likewise.
14581         (record_equivalences_from_stmt): Likewise.
14582         (simplify_stmt_for_jump_threading): Likewise.
14583         (record_temporary_equivalences): Likewise.
14584         (optimize_stmt): Likewise.
14585         (dom_opt_dom_walker::thread_across_edge): Update access to
14586         avail_exprs_stack object and pass it to children as needed.
14587         (dom_opt_dom_walker::before_dom_children): Similarly.
14588         (dom_opt_dom_walker::after_dom_children): Similarly.
14589         * tree-ssa-threadedge.c (pfn_simplify): New typedef.
14590         (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
14591         Add avail_expr_stack argument.  Pass it to children as needed.
14592         (dummy_simplify): Likewise.
14593         (simplify_control_stmt_condition): Likewise.
14594         (thread_around_empty_blocks): Likewise.
14595         (thread_through_normal_block): Likewise.
14596         (thread_across_edge): Likewise.
14597         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
14598         * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
14600         PR tree-optimization/47679
14601         * tree-ssa-dom.c (const_and_copies): No longer file scoped.  Move
14602         it here ...
14603         (dom_opt_dom_walker): New private member holding the const_and_copies
14604         object.  Update constructor.
14605         (pass_dominator::execute): Corresponding changes to declaration
14606         and initialization of const_and_copies.  Update constructor call
14607         for the dom_opt_dom_walker object.
14608         (record_temporary_equivalences): Accept const_and_copies argument
14609         pass it down to children as needed.
14610         (record_equality): Likewise.
14611         (record_equivalences_from_incoming_edge): Likewise.
14612         (cprop_into_successor_phis, optimize_stmt): Likewise.
14613         (eliminate_redundant_computations): Likewise.
14614         (dom_opt_dom_walker::thread_across_edge): Update access to
14615         const_and_copies object and pass it to children as needed.
14616         (dom_opt_dom_walker::before_dom_children): Similarly.
14617         (dom_opt_dom_walker::after_dom_children): Similarly.
14619         PR tree-optimization/47679
14620         * tree-ssa-dom.c (avail_exprs): No longer file scoped.  Bury
14621         it into the avail_exprs_stack class.
14622         (pass_dominator::execute): Corresponding changes to declaration
14623         and initialization of avail_exprs.  Pass avail_exprs to
14624         dump_dominator_optimization_stats.
14625         (record_cond): Extract avail_exprs from avail_exprs_stack.
14626         (lookup_avail_expr): Similarly.
14627         (htab_staticstics): Remove unnecessary prototype.  Move to earlier
14628         position in file.
14629         (dump_dominator_optimization_stats): Make static and prototype.
14630         Add argument for the hash table to dump.
14631         (debug_dominator_optimization_stats): Remove.
14632         * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
14633         prototype.
14634         (debug_dominator_optimization_stats): Similarly.
14635         * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
14636         "void" in prototype for pop_to_marker method.  Add accessor method
14637         for the underlying avail_exprs table.
14639         * tree-ssa-threadedge.c: Remove trailing whitespace.
14641 2014-09-18  John David Anglin  <danglin@gcc.gnu.org>
14643         * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
14644         unsigned.
14645         (pa_ldil_cint_p): Likewise.
14646         * config/pa/pa.c (pa_cint_ok_for_move): likewise.
14647         (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
14648         Update callers.
14649         * config/pa/pa.md: Likewise.
14651 2015-09-18  David Malcolm  <dmalcolm@redhat.com>
14653         * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
14654         * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
14655         (diagnostic_show_locus): Likewise.
14656         (diagnostic_print_caret_line): Likewise.
14657         * diagnostic-show-locus.c: New file.
14659 2015-09-18  David Edelsohn  <dje.gcc@gmail.com>
14661         * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
14662         "back" parameter. Declare label in #if block.
14664 2015-09-18  Uros Bizjak  <ubizjak@gmail.com>
14666         PR middle-end/67619
14667         * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
14668         the address to a register.
14670 2015-09-18  Jeff Law  <law@redhat.com>
14672         PR tree-optimization/47679
14673         * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
14674         * tree-ssa-dom.c: Remove unnecessary header includes.
14675         (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
14676         (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
14677         (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
14678         (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
14679         (pass_phi_only_cprop::execute): Likewise.
14680         (make_pass_phi_only_cprop): Likewise.
14681         * tree-ssa-phionlycprop.c: New file with moved code.  Eliminate
14682         uses of file scoped statics by passing the required objects
14683         as parameters wherever needed.
14685 2015-09-18  Andrew Dixie  <andrewd@gentrack.com>
14686             David Edelsohn  <dje.gcc@gmail.com>
14688         * defaults.h (EH_FRAME_SECTION_NAME): Depend on
14689         EH_FRAME_THROUGH_COLLECT2.
14690         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
14691         DW_EH_PE_datarel.
14692         * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
14693         even if EH_FRAME_SECTION_NAME is undefined.  Restrict special
14694         collect2 labels to EH_FRAME_THROUGH_COLLECT2.
14695         * except.c (switch_to_exception_section): Use a read-only section
14696         even if EH_FRAME_SECTION_NAME is undefined.
14697         * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
14698         * collect2.c (write_c_file_stat): Provide dbase on AIX.
14699         (scan_prog_file): Don't export __dso_handle nor
14700         __gcc_unwind_dbase.
14701         * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
14702         (EH_TABLES_CAN_BE_READ_ONLY): Define.
14703         (ASM_OUTPUT_DWARF_PCREL): Define.
14704         (ASM_OUTPUT_DWARF_DATAREL): Define.
14705         (EH_FRAME_THROUGH_COLLECT2): Define.
14706         (EH_FRAME_IN_DATA_SECTION): Delete.
14707         * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
14708         * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
14709         Declare.
14710         (rs6000_asm_output_dwarf_datarel): Declare.
14711         * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
14712         (rs6000_aix_asm_output_dwarf_datarel): New.
14713         (rs6000_xcoff_asm_init_sections): Don't set exception_section.
14714         * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
14715         (EH_FRAME_THROUGH_COLLECT2): Define.
14716         * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
14717         (EH_FRAME_THROUGH_COLLECT2): Define.
14718         (EH_TABLES_CAN_BE_READ_ONLY): Define.
14719         * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
14720         (EH_FRAME_THROUGH_COLLECT2): New.
14721         (ASM_OUTPUT_DWARF_DATAREL): New.
14722         * doc/tm.texi: Regenerate.
14724 2015-09-18  Richard Biener  <rguenther@suse.de>
14726         * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
14727         we're in early phase.
14728         (schedule_generic_params_dies_gen): Likewise.
14729         (gen_remaining_tmpl_value_param_die_attribute): Do only as much
14730         work as possible, retaining unhandled cases.
14731         (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
14732         clear out generic_type_instances at the end.
14733         (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
14734         (dwarf2out_early_finish): ... here.  Do most of
14735         gen_remaining_tmpl_value_param_die_attribute here.
14737 2015-09-18  Alan Lawrence  <alan.lawrence@arm.com>
14739         PR tree-optimization/67283
14740         * tree-sra.c (type_consists_of_records_p): Rename to...
14741         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
14742         (completely_scalarize_record): Rename to...
14743         (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
14744         (scalarize_elem): New.
14745         (analyze_all_variable_accesses): Follow renamings.
14747 2015-09-18  Richard Biener  <rguenther@suse.de>
14749         * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
14750         in early-dwarf.
14752 2015-09-18  Richard Biener  <rguenther@suse.de>
14754         PR tree-optimization/66142
14755         * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
14756         treat MEM[&x] and x the same.
14757         * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
14758         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
14759         when we simplified sth.
14760         (vn_reference_maybe_forwprop_address): Likewise.
14761         (valueize_refs_1): When we simplified through
14762         vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
14763         set valueized_anything to true.
14764         (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
14765         one ref kills the other instead of just a offset-based test.
14766         * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
14767         for the operand_equal_p test to compare bases and also compare
14768         sizes.
14770 2015-09-17  Christian Bruel  <christian.bruel@st.com>
14772         * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
14774 2015-09-17  Richard Henderson  <rth@redhat.com>
14776         PR libstdc++/65913
14777         * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
14778         pointers that encode the alignment of the object.
14780 2015-09-17  Eric Botcazou  <ebotcazou@adacore.com>
14782         PR rtl-optimization/66790
14783         * df-problems.c (LIVE): Amend documentation.
14785 2015-09-17  Richard Sandiford  <richard.sandiford@arm.com>
14787         * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
14788         and optabs-tree.o.
14789         (GTFILES): Replace optabs.c with optabs-libfunc.c.
14790         * genopinit.c (main): Add an include guard to insn-opinit.h.
14791         Protect the rtx_code parts with NUM_RTX_CODE.
14792         * optabs.h: Split parts out to...
14793         * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
14794         * optabs.c: Split parts out to...
14795         * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
14796         * cilk-common.c: Include optabs-query.h rather than optabs.h.
14797         * fold-const.c: Likewise.
14798         * target-globals.c: Likewise.
14799         * tree-if-conv.c: Likewise.
14800         * tree-ssa-forwprop.c: Likewise.
14801         * tree-ssa-loop-prefetch.c: Likewise.
14802         * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
14803         Remove unncessary include files.
14804         * tree-ssa-phiopt.c: Likewise.
14805         * tree-ssa-reassoc.c: Likewise.
14806         * tree-switch-conversion.c: Likewise.
14807         * tree-vect-data-refs.c: Likewise.
14808         * tree-vect-generic.c: Likewise.
14809         * tree-vect-loop.c: Likewise.
14810         * tree-vect-patterns.c: Likewise.
14811         * tree-vect-slp.c: Likewise.
14812         * tree-vect-stmts.c: Likewise.
14813         * tree-vrp.c: Likewise.
14814         * toplev.c: Include optabs-query.h and optabs-libfuncs.h
14815         rather than optabs.h.
14816         * expr.c: Include optabs-tree.h.
14817         * function.c: Likewise.
14819 2015-09-17  Eric Botcazou  <ebotcazou@adacore.com>
14821         PR middle-end/65958
14822         * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
14823         * config/arm/arm-protos.h (output_probe_stack_range): Declare.
14824         * config/arm/arm.c: Include common/common-target.h.
14825         (use_return_insn): Return 0 if the static chain register was saved
14826         above a non-APCS frame.
14827         (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
14828         (struct scratch_reg): New.
14829         (get_scratch_register_on_entry): New function.
14830         (release_scratch_register_on_entry): Likewise.
14831         (arm_emit_probe_stack_range): Likewise.
14832         (output_probe_stack_range): Likewise.
14833         (arm_expand_prologue): Factor out code dealing with the IP register
14834         for nested function and adjust it for stack checking.
14835         Invoke arm_emit_probe_stack_range if static builtin stack checking
14836         is enabled.
14837         (thumb1_expand_prologue): Sorry out if static builtin stack checking
14838         is enabled.
14839         (arm_expand_epilogue): Add the saved static chain register, if any, to
14840         the amount of pre-pushed registers to pop.
14841         (arm_frame_pointer_required): Return true if static stack checking is
14842         enabled and we want to catch the exception with the EABI unwinder.
14843         * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
14844         (UNSPEC_PROBE_STACK_RANGE): Likewise.
14845         * config/arm/arm.md (probe_stack): New insn.
14846         (probe_stack_range): Likewise.
14848 2015-09-17  Richard Biener  <rguenther@suse.de>
14850         * genmatch.c (parser::parse_expr): Improve error message
14851         for mis-placed flags.
14853 2015-09-17  Richard Biener  <rguenther@suse.de>
14855         * passes.c (rest_of_decl_compilation): Always call early_global_decl
14856         debug hook when we created a varpool node.
14857         * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
14858         dwarf2out_early_global_decl, when not just add location or
14859         value attributes to existing DIEs.
14861 2015-09-17  James Greenhalgh  <james.greenhalgh@arm.com>
14863         * config/aarch64/aarch64.md (copysigndf3): New.
14864         (copysignsf3): Likewise.
14866 2015-09-17  David S. Miller  <davem@davemloft.net>
14868         * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
14869         * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
14870         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
14871         (HARD_REGNO_CALLER_SAVE_MODE): Define.
14872         * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
14873         (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
14874         (embmedany_losum, embmedany_brsum, embmedany_textuhi)
14875         (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
14876         provide when flag_pic.
14878 2015-09-17  Kaz Kojima  <kkojima@gcc.gnu.org>
14880         * config/sh/sh.c (label_ref_list_d_pool): Adjust to
14881         object_allocator change.
14883 2015-09-17  Bin Cheng  <bin.cheng@arm.com>
14885         PR tree-optimization/66388
14886         * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
14887         (dump_iv): Dump no_overflow information.
14888         (alloc_iv): Initialize new field for struct iv.
14889         (mark_bivs): Count number of no_overflow bivs.
14890         (find_deriving_biv_for_expr, record_biv_for_address_use): New
14891         functions.
14892         (idx_find_step): Call new functions above.
14893         (add_candidate_1, add_candidate): New paramter.
14894         (add_iv_candidate_for_biv): Add sizetype cand for BIV.
14895         (get_computation_aff): Simplify convertion of cand for BIV.
14896         (get_computation_cost_at): Step cand's base if necessary.
14898 2015-09-17  Bin Cheng  <bin.cheng@arm.com>
14900         * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
14901         parameter.
14902         (tree_simplify_using_condition): Ditto.
14903         (simplify_using_initial_conditions): Ditto.
14904         (loop_exits_before_overflow): Pass new argument to function
14905         simplify_using_initial_conditions.  Remove case for type conversions
14906         simplification.
14907         * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
14908         parameter.
14909         * tree-scalar-evolution.c (simple_iv): Simplify type conversions
14910         in iv base using loop initial conditions.
14912 2015-09-16  Jeff Law  <law@redhat.com>
14914         PR tree-optimization/47679
14915         * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
14916         (free_all_edge_infos): Use it.
14917         (allocate_edge_info): Free preexisting edge info data.
14918         (pass_dominator::execute): Set up initial edge info structures.
14919         (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
14920         thread_across_edge.
14921         * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
14922         If non-null, then push/pop markers appropriately.
14923         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
14924         * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
14925         thread-across_edge.
14927 2015-09-16  James Bowman  <james.bowman@ftdichip.com>
14929         * config/ft32/ft32.c: Fix the memory address space predicate.
14931 2015-09-16  Kaz Kojima  <kkojima@gcc.gnu.org>
14933         PR target/67573
14934         * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
14935         (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
14937 2015-09-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14939         * toplev.h (check_global_declaration): Remove declaration.
14940         * toplev.c (check_global_declaration): Move to ...
14941         * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
14942         (analyze_functions): Update call.
14944 2015-09-16  David S. Miller  <davem@davemloft.net>
14946         * lra-constraints.c (simplify_operand_subreg): Do not assume that
14947         lowpart of a SUBREG has offset zero.
14949 2015-09-16  Jeff Law  <law@redhat.com>
14951         PR tree-optimization/47679
14952         * tree-ssa-dom.c (enum expr_kind): Moved from here to
14953         tree-ssa-scopedtables.h.
14954         (struct hashable_expr, class expr_hash_elt): Likewise.
14955         (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
14956         Move associated methods into tree-ssa-scopedtables.c.
14957         (avail_expr_hash, initialize_expr_from_cond): Similarly.
14958         (hashable_expr_equal_p, add_expr_commutative): Likewise.
14959         (add_hashable_expr): Likewise.
14960         (record_cond): Delete element directly.
14961         * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
14962         private copy ctor and assignment operator methods.
14963         (expr_elt_hasher): Inline trivial methods.
14964         (initialize_expr_from_cond): Prototype.
14965         * tree-ssa-scopedtables.c: Add necessary includes, functions and
14966         methods that were previously in tree-ssa-dom.c.  Improve various
14967         comments.
14969 2015-09-16  Paolo Carlini  <paolo.carlini@oracle.com>
14971         * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
14973 2015-09-16  Segher Boessenkool  <segher@kernel.crashing.org>
14975         PR bootstrap/67587
14976         * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
14977         fixup_partitions.
14979 2015-09-16  Richard Biener  <rguenther@suse.de>
14981         PR middle-end/67253
14982         * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
14983         location of possibly shared trees.
14985 2015-09-16  Richard Biener  <rguenther@suse.de>
14987         PR middle-end/67271
14988         * fold-const.c (native_encode_expr): Bail out on bogus offsets.
14990 2015-09-16  Eric Botcazou  <ebotcazou@adacore.com>
14992         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
14993         offset and size computations instead of HOST_WIDE_INT.
14995 2015-09-16  Richard Biener  <rguenther@suse.de>
14997         PR middle-end/67442
14998         * fold-const.c (extract_muldiv_1): Properly extend multiplication
14999         result before builting a tree via wide_int_to_tree.
15001 2015-09-16  Mikhail Maltsev  <maltsevm@gmail.com>
15003         * Makefile.in: Add memory-block.cc
15004         (pool_allocator::initialize): Use fixed block size.
15005         (pool_allocator::release): Use memory_block_pool.
15006         (pool_allocator::allocate): Likewise.
15007         * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
15008         object pools.
15009         * cfg.c (initialize_original_copy_tables): Likewise.
15010         * cselib.c (elt_list_pool, elt_loc_list_pool,
15011         cselib_val_pool): Likewise.
15012         * df-problems.c (df_chain_alloc): Likewise.
15013         * df-scan.c (df_scan_alloc): Likewise.
15014         * dse.c (cse_store_info_pool, rtx_store_info_pool,
15015         read_info_type_pool, insn_info_type_pool, bb_info_pool,
15016         group_info_pool, deferred_change_pool): Likewise.
15017         * et-forest.c (et_nodes, et_occurrences): Likewise.
15018         * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
15019         ipcp_agg_lattice_pool): Likewise.
15020         * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
15021         * ipa-profile.c (histogram_pool): Likewise.
15022         * ipa-prop.c (ipa_refdesc_pool): Likewise.
15023         * ira-build.c (live_range_pool, allocno_pool, object_pool,
15024         initiate_cost_vectors, pref_pool, copy_pool): Likewise.
15025         * ira-color.c (update_cost_record_pool): Likewise.
15026         * lra-lives.c (lra_live_range_pool): Likewise.
15027         * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
15028         * memory-block.cc: New file.
15029         * memory-block.h: New file.
15030         * regcprop.c (queued_debug_insn_change_pool): Use common block size.
15031         * sched-deps.c (sched_deps_init): Likewise.
15032         * sel-sched-ir.c (sched_lists_pool): Likewise.
15033         * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
15034         * tree-sra.c (access_pool): Likewise.
15035         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
15036         * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
15037         * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
15038         * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
15039         * tree-ssa-strlen.c (strinfo_pool): Likewise.
15040         * tree-ssa-structalias.c (variable_info_pool): Likewise.
15041         * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
15042         location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
15044 2015-09-15  Max Filippov  <jcmvbkbc@gmail.com>
15046         * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
15047         definition.
15048         (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
15049         call0 ABI.
15051 2015-09-15  Max Filippov  <jcmvbkbc@gmail.com>
15053         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
15054         to pass TLS call argument, according to current ABI.
15055         * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
15056         callx0 for TLS call, according to current ABI.
15058 2015-09-15  Eric Botcazou  <ebotcazou@adacore.com>
15060         * tree-eh.c (lower_try_finally_dup_block): Clear location information
15061         on stack restore statements.
15062         (decide_copy_try_finally): Do not consider a stack restore statement as
15063         coming from sources.
15065 2015-09-15  Uros Bizjak  <ubizjak@gmail.com>
15067         * config/alpha/alpha.c (alpha_expand_block_clear): Use
15068         HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
15070 2015-09-15  Jeff Law  <law@redhat.com>
15072         PR tree-optimization/47679
15073         * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
15074         methods and private members.
15075         (avail_exprs_stack): Similarly.  Change type of global
15076         from a pair of expr_hash_elt_t to the new class.
15077         (expr_elt_hasher::hash): Corresponding changes.
15078         (expr_elt_hasher::equal): Similarly.
15079         (avail_expr_hash): Similarly.
15080         (pass_dominator::execute): Similarly.
15081         (dom_opt_dom_walker::thread_across_edge): Similarly.
15082         (record_cond): Similarly.
15083         (dom_opt_dom_walker::before_dom_children): Similarly.
15084         (dom_opt_dom_walker::after_dom_children): Similarly.
15085         (lookup_avail_expr): Likewise.
15086         (initialize_hash_element): Now a expr_hash_elt constructor.
15087         (initialize_hash_element_from_expr): Similarly.
15088         (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
15089         (free_expr_hash_elt): Call dtor for the element.
15090         (remove_local_expressions_from_table): Now the "pop_to_marker"
15091         method in the available_exprs_stack class.
15092         (avail_expr_stack::record_expr): Method factored out.
15093         (print_expr_hash_elt): Now a method in the expr_hash_elt class.
15094         Fix formatting.
15095         (hashable_expr_equal_p): Fix formatting.
15097 2015-09-15  David Malcolm  <dmalcolm@redhat.com>
15099         * input.h (location_get_source_line): Drop "expanded_location"
15100         param in favor of a file and line number.
15101         * input.c (location_get_source_line): Likewise.
15102         (dump_location_info): Update for change in signature of
15103         location_get_source_line.
15104         * diagnostic.c (diagnostic_print_caret_line): Likewise.
15106 2015-09-15  Eric Botcazou  <ebotcazou@adacore.com>
15108         * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
15109         Bump to 4KB for SJLJ exceptions.
15110         (STACK_CHECK_PROTECT): Likewise.  Bump to 8KB for SJLJ exceptions.
15111         * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
15112         * doc/tm.texi: Regenerate.
15114 2015-09-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15116         * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
15117         of -1 when shifting.  Change type of val to unsigned HOST_WIDE_INT.
15118         Update prototype.
15120 2015-09-15  Richard Biener  <rguenther@suse.de>
15122         PR tree-optimization/67470
15123         * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
15124         structure for PHI hoisting by inserting a forwarder block
15125         if appropriate.
15127 2015-09-15  Christian Bruel  <christian.bruel@st.com>
15129         * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
15130         (arm_option_print): New function.
15132 2015-09-15  Christian Bruel  <christian.bruel@st.com>
15134         PR target/52144
15135         * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
15136         * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
15137         Remove flags parameter.
15138         * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
15139         (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
15140         (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
15141         (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
15142         (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
15143         (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
15144         (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
15145         * config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
15147 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
15149         * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
15151         * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
15152         AARCH64_VALID_SIMD_DREG_MODE.
15154 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
15156         * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
15157         aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
15158         (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
15159         (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
15160         aarch64_ld4_lane<mode>): Combine together, making...
15161         (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
15162         (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
15163         aarch64_st4_lane<mode>): Combine together, making...
15164         (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
15165         * config/aarch64/iterators.md (nregs): Add comment.
15167 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
15169         * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
15170         Change operand mode from <V_TWO_ELEM> to BLK.
15171         (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
15172         (aarch64_vec_store_lanesoi_lane<mode): Likewise
15173         (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
15174         (aarch64_ld2_lane<mode>): Likewise.
15175         (aarch64_st2_lane<VQ:mode>): Likewise.
15176         * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
15178 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
15180         * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
15181         Change operand mode from <V_FOUR_ELEM> to BLK.
15182         (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
15183         (aarch64_vec_store_lanesxi_lane<mode): Likewise.
15184         (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
15185         (aarch64_ld4_lane<mode>): Likewise.
15186         (aarch64_st4_lane<mode>): Likewise.
15187         * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
15189 2015-09-15  Richard Biener  <rguenther@suse.de>
15191         PR middle-end/67563
15192         * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
15193         transfer EH info from old to new stmt.
15194         (replace_call_with_value): Likewise.
15195         (replace_call_with_call_and_fold): Likewise.
15196         (gimple_fold_builtin_memory_op): Likewise.
15197         (gimple_fold_builtin_memset): Likewise.
15198         (gimple_fold_builtin_stpcpy): Likewise.
15199         (gimple_fold_call): Likewise.
15201 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
15203         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
15204         comment.
15205         * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
15206         (aarch64_simd_intEI_type_node): Likewise.
15207         (aarch64_simd_builtin_std_type): Remove EImode case.
15208         (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
15209         * config/aarch64/aarch64-modes.def: Remove EImode.
15211 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
15213         * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
15214         Change operand mode from <V_THREE_ELEM> to BLK.
15215         (aarch64_vec_load_lanesci_lane<mode>): Likewise.
15216         (aarch64_vec_store_lanesci_lane<mode>): Likewise.
15217         (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
15218         (aarch64_ld3_lane<mode>): Likewise.
15219         (aarch64_st3_lane<mode>): Likewise.
15220         * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
15222 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
15224         * config/aarch64/aarch64-simd.md
15225         (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
15226         Change all TImode operands to BLKmode.
15227         (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
15228         Change all EImode operands to BLKmode.
15229         (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
15230         Change all OImode operands to BLKmode.
15232         (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
15233         and call set_mem_size.
15234         (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
15236         * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
15238 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
15240         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
15241         to...
15242         (aarch64_vec_store_lanesoi_lane<mode>): ...this.
15244         (vec_store_lanesci_lane<mode>): Rename to...
15245         (aarch64_vec_store_lanesci_lane<mode>): ...this.
15247         (vec_store_lanesxi_lane<mode>): Rename to...
15248         (aarch64_vec_store_lanesxi_lane<mode>): ...this.
15250         (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
15251         aarch64_st4_lane<mode>): Follow renaming.
15253 2015-09-15  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15255         * config/s390/s390.c (s390_const_operand_ok): Add missing
15256         brackets.
15258 2015-09-15  Richard Biener  <rguenther@suse.de>
15260         PR lto/67568
15261         * lto-streamer.h (lto_location_cache::current_sysp): Properly
15262         initialize.
15263         * lto-streamer-out.c (clear_line_info): Likewise.
15265 2015-09-15  Richard Biener  <rguenther@suse.de>
15267         * doc/match-and-simplify.texi: Fix wording.
15269 2015-09-15  Bin Cheng  <bin.cheng@arm.com>
15271         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
15272         unnecessary type conversion in op1.
15274 2015-09-14  Segher Boessenkool  <segher@kernel.crashing.org>
15276         * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
15277         (dup_block_and_redirect): Delete function.
15278         (can_dup_for_shrink_wrapping): New function.
15279         (fix_fake_fallthrough_edge): New function.
15280         (try_shrink_wrapping): Rewrite function.
15281         (convert_to_simple_return): Call fix_fake_fallthrough_edge.
15283 2015-09-14  Rich Felker  <dalias@libc.org>
15285         * configure.ac: Change target pattern for sh TLS support
15286         test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
15287         * configure: Regenerate.
15289 2015-09-14  Jeff Law  <law@redhat.com>
15291         PR tree-optimization/47679
15292         * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
15293         type rather than void *.
15295 2015-09-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15297         PR fortran/67460
15298         * diagnostic.c (diagnostic_initialize): Do not set
15299         some_warnings_are_errors.
15300         (diagnostic_finish): Use DK_WERROR count instead.
15301         (diagnostic_report_diagnostic): Do not set
15302         some_warnings_are_errors.
15303         * diagnostic.h (struct diagnostic_context): Remove
15304         some_warnings_are_errors.
15306 2015-09-14  Richard Sandiford  <richard.sandiford@arm.com>
15308         * config/sparc/predicates.md (const_all_ones_operand): Use
15309         CONSTM1_RTX to simplify definition.
15311 2015-09-14  Oleg Endo  <olegendo@gcc.gnu.org>
15313         PR target/67061
15314         * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
15315         Handle call insns.
15317 2015-09-14  Chung-Lin Tang  <cltang@codesourcery.com>
15319         * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
15320         OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
15321         OPT_fshow_column to handled saved option cases.
15322         (append_compiler_options): Do not skip the above added options.
15324 2015-09-14  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15326         PR target/63304
15327         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
15328         nopcrelative_literal_loads.
15329         (aarch64_classify_address): Likewise.
15330         (aarch64_constant_pool_reload_icode): Define.
15331         (aarch64_secondary_reload): Handle secondary reloads for
15332         literal pools.
15333         (aarch64_override_options): Handle nopcrelative_literal_loads.
15334         (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
15335         * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
15336         Define.
15337         (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
15338         * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
15339         * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
15340         predicate.
15341         * doc/invoke.texi (mpc-relative-literal-loads): Document.
15343 2015-09-14  John David Anglin  <danglin@gcc.gnu.org>
15345         PR middle-end/67401
15346         * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
15347         sync_compare_and_swap_optab libcall to target_oval.
15349 2015-09-14  Marek Polacek  <polacek@redhat.com>
15351         * rtlanal.c (split_double): Cast to unsigned when shifting a negative
15352         value.
15353         * sched-int.h (UNKNOWN_DEP_COST): Likewise.
15355 2015-09-11  Mark Wielaard  <mjw@redhat.com>
15357         PR c/28901
15358         * toplev.c (check_global_declaration): Check and use
15359         warn_unused_const_variable.
15360         * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
15361         (-Wunused-variable): Remove non-constant. For C implies
15362         -Wunused-const-variable.
15363         (-Wunused-const-variable): New.
15365 2015-09-14  Richard Biener  <rguenther@suse.de>
15367         * doc/match-and-simplify.texi: Update for changed syntax
15368         of inner ifs and the new switch expression.
15370 2015-09-14  Yuri Rumyantsev  <ysrumyan@gmail.com>
15372         * config/i386/haswell.md: New file describing Haswell pipeline.
15373         * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
15374         haswell-like processors.
15375         (ix86_reassociation_width): Increase reassociation width for 64-bit
15376         Haswell processor family.
15377         * config/i386/i386.md: Introduce haswell cpu and include new md file.
15379 2015-09-14  Richard Biener  <rguenther@suse.de>
15381         * doc/match-and-simplify.texi: Fixup some formatting issues
15382         and document the 's' flag.
15384 2015-09-13  Olivier Hainque  <hainque@adacore.com>
15385             Eric Botcazou  <ebotcazou@adacore.com>
15387         * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
15388         gr6 as possible values, defaulting to gr5.  Set target_cpu_default2.
15389         * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
15390         (TARGET_CPU_gr5): Likewise.
15391         (TARGET_CPU_gr6): Likewise.
15392         (MULTILIB_DEFAULTS): Likewise.
15393         * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
15394         for mcpu=gr5 and mcpu=gr6.
15395         (MULTILIB_DIRNAMES): Adjust accordingly.
15397 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15399         * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
15400         (mem_ref_p): Likewise.
15401         (outermost_indep_loop): Adjust.
15402         (mem_ref_in_stmt): Likewise.
15403         (determine_max_movement): Likewise.
15404         (mem_ref_alloc): Likewise.
15405         (record_mem_ref_loc): Likewise.
15406         (set_ref_stored_in_loop): Likewise.
15407         (mark_ref_stored): Likewise.
15408         (gather_mem_refs_stmt): Likewise.
15409         (mem_refs_may_alias_p): Likewise.
15410         (for_all_locs_in_loop): Likewise.
15411         (struct rewrite_mem_ref_loc): Likewise.
15412         (rewrite_mem_refs): Likewise.
15413         (struct first_mem_ref_loc_1): Likewise.
15414         (first_mem_ref_loc): Likewise.
15415         (struct sm_set_flag_if_changed): Likewise.
15416         (execute_sm_if_changed_flag_set): Likewise.
15417         (execute_sm): Likewise.
15418         (hoist_memory_references):
15419         (struct ref_always_accessed): Likewise.
15420         (ref_always_accessed_p): Likewise.
15421         (refs_independent_p): Likewise.
15422         (record_dep_loop): Likewise.
15423         (ref_indep_loop_p_1): Likewise.
15424         (ref_indep_loop_p_2): Likewise.
15425         (ref_indep_loop_p): Likewise.
15426         (can_sm_ref_p): Likewise.
15427         (find_refs_for_sm): Likewise.
15428         (tree_ssa_lim_finalize): Likewise.
15430 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15432         * dwarf2out.c (dw_attr_ref): Remove typedef.
15433         (dw_line_info_ref): Likewise.
15434         (pubname_ref): Likewise.
15435         (dw_ranges_ref): Likewise.
15436         (dw_ranges_by_label_ref): Likewise.
15437         (comdat_type_node_ref): Likewise.
15438         (get_AT): Adjust.
15439         (get_AT_low_pc): Likewise.
15440         (get_AT_hi_pc): Likewise.
15441         (get_AT_string): Likewise.
15442         (get_AT_flag): Likewise.
15443         (get_AT_unsigned): Likewise.
15444         (get_AT_ref): Likewise.
15445         (get_AT_file): Likewise.
15446         (remove_AT): Likewise.
15447         (print_die): Likewise.
15448         (check_die): Likewise.
15449         (die_checksum): Likewise.
15450         (attr_checksum_ordered): Likewise.
15451         (struct checksum_attributes): Likewise.
15452         (collect_checksum_attributes): Likewise.
15453         (die_checksum_ordered): Likewise.
15454         (same_die_p): Likewise.
15455         (is_declaration_die): Likewise.
15456         (clone_die): Likewise.
15457         (clone_as_declaration): Likewise.
15458         (copy_declaration_context): Likewise.
15459         (break_out_comdat_types): Likewise.
15460         (copy_decls_walk): Likewise.
15461         (output_location_lists): Likewise.
15462         (external_ref_hasher::hash): Likewise.
15463         (optimize_external_refs_1): Likewise.
15464         (build_abbrev_table): Likewise.
15465         (size_of_die): Likewise.
15466         (unmark_all_dies): Likewise.
15467         (size_of_pubnames): Likewise.
15468         (output_die_abbrevs): Likewise.
15469         (output_die): Likewise.
15470         (output_pubnames): Likewise.
15471         (add_ranges_num): Likewise.
15472         (add_ranges_by_labels): Likewise.
15473         (add_high_low_attributes): Likewise.
15474         (gen_producer_string): Likewise.
15475         (dwarf2out_set_name): Likewise.
15476         (new_line_info_table): Likewise.
15477         (prune_unused_types_walk_attribs): Likewise.
15478         (prune_unused_types_update_strings): Likewise.
15479         (prune_unused_types): Likewise.
15480         (resolve_addr): Likewise.
15481         (optimize_location_lists_1): Likewise.
15482         (index_location_lists): Likewise.
15483         (dwarf2out_finish): Likewise.
15485 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15487         * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
15489 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15491         * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
15492         (dump_asserts_for): Adjust.
15493         (register_new_assert_for): Likewise.
15494         (process_assert_insertions): Likewise.
15495         (insert_range_assertions): Likewise.
15497 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15499         * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
15500         and remove typedef.
15501         (new_temp_expr_table): Adjust.
15502         (free_temp_expr_table): Likewise.
15503         (version_to_be_replaced_p): Likewise.
15504         (make_dependent_on_partition): Likewise.
15505         (add_to_partition_kill_list): Likewise.
15506         (remove_from_partition_kill_list): Likewise.
15507         (add_dependence): Likewise.
15508         (finished_with_expr): Likewise.
15509         (process_replaceable): Likewise.
15510         (kill_expr): Likewise.
15511         (kill_virtual_exprs): Likewise.
15512         (mark_replaceable): Likewise.
15513         (find_replaceable_in_bb): Likewise.
15514         (find_replaceable_exprs): Likewise.
15515         (debug_ter): Likewise.
15517 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15519         * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
15520         (struct btr_user): Rename from btr_user_s.
15521         (struct btr_def): Rename from btr_def_s.
15522         (find_btr_def_group): Adjust.
15523         (add_btr_def): Likewise.
15524         (new_btr_user): Likewise.
15525         (note_other_use_this_block): Likewise.
15526         (compute_defs_uses_and_gen): Likewise.
15527         (link_btr_uses): Likewise.
15528         (build_btr_def_use_webs): Likewise.
15529         (block_at_edge_of_live_range_p): Likewise.
15530         (btr_def_live_range): Likewise.
15531         (combine_btr_defs): Likewise.
15532         (move_btr_def): Likewise.
15533         (migrate_btr_def): Likewise.
15534         (migrate_btr_defs): Likewise.
15536 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15538         * var-tracking.c (shared_hash_def): Rename to shared_hash.
15539         (shared_hash): Remove typedef.
15540         (struct dataflow_set): Adjust.
15541         (shared_hash_unshare): Likewise.
15542         (dataflow_set_merge): Likewise.
15543         (vt_initialize): Likewise.
15544         (vt_finalize): Likewise.
15546 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15548         * var-tracking.c (struct location_chain): Rename from
15549         location_chain_def.
15550         (struct variable_part): Adjust.
15551         (variable_htab_free): Likewise.
15552         (unshare_variable): Likewise.
15553         (get_init_value): Likewise.
15554         (get_addr_from_local_cache): Likewise.
15555         (drop_overlapping_mem_locs): Likewise.
15556         (val_reset): Likewise.
15557         (struct variable_union_info): Likewise.
15558         (variable_union): Likewise.
15559         (find_loc_in_1pdv): Likewise.
15560         (insert_into_intersection): Likewise.
15561         (intersect_loc_chains): Likewise.
15562         (canonicalize_loc_order_check): Likewise.
15563         (canonicalize_values_mark): Likewise.
15564         (canonicalize_values_star): Likewise.
15565         (canonicalize_vars_star): Likewise.
15566         (variable_merge_over_cur): Likewise.
15567         (remove_duplicate_values): Likewise.
15568         (variable_post_merge_new_vals): Likewise.
15569         (variable_post_merge_perm_vals): Likewise.
15570         (find_mem_expr_in_1pdv): Likewise.
15571         (dataflow_set_preserve_mem_locs): Likewise.
15572         (dataflow_set_remove_mem_locs): Likewise.
15573         (variable_part_different_p): Likewise.
15574         (onepart_variable_different_p): Likewise.
15575         (find_src_set_src): Likewise.
15576         (dump_var): Likewise.
15577         (set_slot_part): Likewise.
15578         (clobber_slot_part): Likewise.
15579         (delete_slot_part): Likewise.
15580         (vt_expand_var_loc_chain): Likewise.
15581         (emit_note_insn_var_location): Likewise.
15582         (vt_finalize): Likewise.
15584 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15586         * dse.c (store_info_t): Remove typedef.
15587         (group_info_t): Likewise.
15588         (const_group_info_t): Likewise.
15589         (deferred_change_t): Likewise.
15590         (get_group_info): Adjust.
15591         (free_store_info): Likewise.
15592         (canon_address): Likewise.
15593         (clear_rhs_from_active_local_stores): Likewise.
15594         (record_store): Likewise.
15595         (replace_read): Likewise.
15596         (check_mem_read_rtx): Likewise.
15597         (scan_insn): Likewise.
15598         (remove_useless_values): Likewise.
15599         (dse_step1): Likewise.
15600         (dse_step2_init): Likewise.
15601         (dse_step2_nospill): Likewise.
15602         (scan_stores_nospill): Likewise.
15603         (scan_reads_nospill): Likewise.
15604         (dse_step3_exit_block_scan): Likewise.
15605         (dse_step3): Likewise.
15606         (dse_step5_nospill): Likewise.
15607         (dse_step6): Likewise.
15609 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15611         * alias.c (alias_set_entry_d): Rename to alias_set_entry.
15612         (alias_set_entry): Remove typedef.
15613         (alias_set_subset_of): Adjust.
15614         (alias_sets_conflict_p): Likewise.
15615         (init_alias_set_entry): Likewise.
15616         (get_alias_set): Likewise.
15617         (new_alias_set): Likewise.
15618         (record_alias_subset): Likewise.
15620 2015-09-13  Gerald Pfeifer  <gerald@pfeifer.com>
15622         * doc/install.texi (Downloading the source): Mark up
15623         contrib/download_prerequisites properly and drop leading "./".
15625 2015-09-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15627         * config/arc/arc.h: Remove define of STRUCT_VALUE.
15628         * config/lm32/lm32.h: Likewise.
15629         * config/mep/mep.h: Likewise.
15630         * config/visium/visium.h: Likewise.
15631         * system.h: Poison STRUCT_VALUE macro.
15633 2015-09-12  John David Anglin  <danglin@gcc.gnu.org>
15635         * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
15636         CONSTANT_P operands.
15638 2015-09-11  David S. Miller  <davem@davemloft.net>
15640         * config/sparc/constraints.md: Make "U" constraint a real register
15641         constraint.
15642         * config/sparc/sparc.c (TARGET_LRA_P): Define.
15643         (D_MODES, DF_MODES): Add missing cast.
15644         (TF_MODES, TF_MODES_NO_S): Include T_MODE.
15645         (OF_MODES, OF_MODES_NO_S): Include O_MODE.
15646         (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
15647         cost to 8.
15648         * config/sparc/sparc.h (PROMOTE_MODE): Define.
15649         * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
15650         provide these insn when flag_pic.
15652 2015-09-11  Jeff Law  <law@redhat.com>
15654         PR tree-optimization/47679
15655         * tree-ssa-dom.c (struct cond_equivalence): Update comment.
15656         * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
15657         member with m_.  Update inline member functions as necessary.  Add
15658         toplevel comment.
15659         * tree-ssa-scopedtables.c: Update const_and_copies's member
15660         functions to use m_ prefix to access the stack.
15662 2015-09-11  Aditya Kumar  <aditya.k7@samsung.com>
15664         * graphite-optimize-isl.c (disable_tiling): Remove.
15665         (get_schedule_for_band): Do not use disable_tiling.
15666         (get_prevector_map): Delete function.
15667         (enable_polly_vector): Remove.
15668         (get_schedule_for_band_list): Remove dead code.
15670 2015-09-11  Aditya Kumar  <aditya.k7@samsung.com>
15672         * graphite-optimize-isl.c (get_tile_map): Refactor.
15673         (get_schedule_for_band): Same.
15674         (getScheduleForBand): Same.
15675         (get_prevector_map): Same.
15676         (get_schedule_for_band_list): Same.
15677         (get_schedule_map): Same.
15678         (get_single_map): Same.
15679         (apply_schedule_map_to_scop): Same.
15680         (optimize_isl): Same.
15682 2015-09-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15684         PR target/63304
15685         * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
15686         (movtf): Delete.
15687         * config/aarch64/iterators.md (GPF_TF_F16): New.
15688         (GPF_F16): Delete.
15690 2015-09-10  Nathan Sidwell  <nathan@acm.org>
15692         * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
15693         (nvptx_reorg): Adjust comments.
15695 2015-09-15  John David Anglin  <danglin@gcc.gnu.org>
15697         PR bootstrap/67363
15698         * configure.ac: Check if setenv and unsetenv are declared.
15699         * configure: Rebuild.
15700         * config.in: Rebuild.
15701         * system.h: Declare setenv and unsetenv if not declared.
15703 2015-09-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
15705         * config/rs6000/rs6000.c (swap_web_entry): Update preceding
15706         commentary to simplify permute mask adjustment equation.
15707         (special_handling_values): Add SH_VPERM.
15708         (const_load_sequence_p): New function.
15709         (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
15710         the mask loaded from the constant pool.
15711         (adjust_vperm): New function.
15712         (handle_special_swappables): Call adjust_vperm.
15713         (dump_swap_insn_table): Handle SH_VPERM.
15715 2015-09-10  H.J. Lu  <hongjiu.lu@intel.com>
15717         * shrink-wrap.c (requires_stack_frame_p): Remove static.
15718         * shrink-wrap.h (requires_stack_frame_p): Put back.
15720 2015-09-10  Richard Sandiford  <richard.sandiford@arm.com>
15722         * reload1.c (elimination_costs_in_insn): Locally turn
15723         -Wmaybe-uninitialized into a warning.
15725 2015-09-10  Segher Boessenkool  <segher@kernel.crashing.org>
15727         * shrink-wrap.c (requires_stack_frame_p): Make static.
15728         (prepare_shrink_wrap): Likewise.
15729         (dup_block_and_redirect): Likewise.
15730         * shrink-wrap.h: Remove declarations of those functions.
15732 2015-09-10  Mark Wielaard  <mjw@redhat.com>
15734         * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
15736 2015-09-10  Oleg Endo  <olegendo@gcc.gnu.org>
15738         PR target/67506
15739         * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
15740         missing simplify_gen_subreg.
15742 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15744         * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
15745         the vector element is bigger than 64 bit.
15747 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15749         * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
15750         ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
15752 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15754         * config/s390/s390.c: Add V1TImode to constant pool modes.
15756 2015-09-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15758         PR target/67439
15759         * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
15760         predicate.  Set predicable_short_it attr to "no".
15762 2015-09-10  Jiong Wang  <jiong.wang@arm.com>
15764         PR rtl-optimization/67421
15765         * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
15766         left wide shift tranformation.
15768 2015-09-10  Claudiu Zissulescu  <claziss@synopsys.com>
15770         * common/config/arc/arc-common.c: Remove references to A5.
15771         * config/arc/arc-opts.h: Likewise.
15772         * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
15773         * config/arc/arc.opt, config/arc/constraints.md: Likewise.
15774         * config/arc/t-arc-newlib: Likewise.
15776 2015-09-10  Claudiu Zissulescu <claziss@synopsys.com>
15778         * config/arc/arc.md (length): Fix attribute length for conditional
15779         executed instructions with long immediate.
15781 2015-09-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15783         * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
15784         type for second alternative.
15786 2015-09-10  Markus Trippelsdorf  <markus@trippelsdorf.de>
15788         * doc/invoke.texi (Downloading GCC): Mention
15789         contrib/download_prerequisites script.
15791 2015-09-10  Jakub Jelinek  <jakub@redhat.com>
15793         PR c++/67523
15794         * gimplify.c (gimplify_omp_for): If inner stmt is not found
15795         for combined loop, assert seen_error () and return GS_ERROR.
15797         PR middle-end/67521
15798         * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
15799         if decl is already in outer->variables.
15801         PR middle-end/67517
15802         * gimplify.c (gimplify_scan_omp_clauses): Instead of
15803         asserting that decl is not specified in octx->variables,
15804         break out of the loop if it is.
15806         PR c++/67514
15807         * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
15808         iterator is not explicitly determined, but is defined inside
15809         of the combined workshare region, handle it like if it has
15810         DECL_EXPR in OMP_FOR_PRE_BODY.
15812 2015-09-09  Nathan Sidwell  <nathan@acm.org>
15814         * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
15815         (*cmp<mode>): Add assembler spacing.
15816         (setcc_int<mode>, set_cc_float<mode>): Likewise.
15817         * config/nvptx/nvptx.c (nvptx_option_override): Override debug
15818         level.
15819         (write_func_decl_from_insn): Refactor argument loops & comma emission.
15820         (nvptx_expand_call): Likewise.
15821         (nvptx_output_call_insn): Likewise.
15822         (nvptx_reorg_subreg): Add spacing.
15824 2015-09-09  Marek Polacek  <polacek@redhat.com>
15826         PR middle-end/67512
15827         * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
15828         for comparisons.
15830 2015-09-09  Paolo Carlini  <paolo.carlini@oracle.com>
15832         PR c++/53184
15833         * doc/invoke.texi ([Wsubobject-linkage]): Document.
15835 2015-09-09  Tom de Vries  <tom@codesourcery.com>
15837         * params-list.h: Add missing copyright notice.
15839 2015-09-09  Nathan Sidwell  <nathan@acm.org>
15841         * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
15842         sel_truesi, not andsi.
15844 2015-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15846         * config/arm/arm.md (*subsi3_compare0): Rename to...
15847         (subsi3_compare0): ... This.
15848         (modsi3): New define_expand.
15849         * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
15850         when operand is power of 2.
15852 2015-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15854         * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
15855         (*neg<mode>2_compare0): Rename to...
15856         (neg<mode>2_compare0): ... This.
15857         * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
15858         Move check for speed inside the if-then-elses.  Reflect
15859         CSNEG sequence in MOD by power of 2 case.
15861 2015-09-09  Alan Modra  <amodra@gmail.com>
15863         PR target/67378
15864         * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
15865         reload replacement for PRE_MODIFY address reg.
15867 2015-09-09  Sebastian Pop  <s.pop@samsung.com>
15869         PR tree-optimization/53852
15870         * config.in: Regenerate.
15871         * configure: Regenerate.
15872         * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
15873         * graphite-optimize-isl.c (optimize_isl): Stop computation when
15874         PARAM_MAX_ISL_OPERATIONS is reached.
15875         * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
15876         * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
15877         result equal to isl_stat_ok as the status now can be isl_error_quota.
15878         (subtract_commutative_associative_deps): Same.
15879         (compute_deps): Same.
15881 2015-09-08  Aditya Kumar  <hiraditya@msn.com>
15882             Sebastian Pop  <s.pop@samsung.com>
15884         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
15885         Return the parameter if it was saved in corresponding
15886         parameter_rename_map of the region.
15887         (copy_def): Copy def from sese region to the newly created region.
15888         (copy_internal_parameters): Copy all the internal parameters defined
15889         within a region to the newly created region.
15890         (graphite_regenerate_ast_isl): Copy parameters to the new region before
15891         translating isl to gimple.
15892         * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
15893         the loop-nest does not have any data-references.
15894         (build_graphite_scops): Create a scop only when there is at least one
15895         loop inside it.
15896         (contains_only_close_phi_nodes): Deleted.
15897         (print_graphite_scop_statistics): Deleted
15898         (print_graphite_statistics): Deleted
15899         (limit_scops): Deleted.
15900         (build_scops): Removed call to limit_scops.
15901         * sese.c (new_sese): Construct.
15902         (free_sese): Destruct.
15903         (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
15904         added.
15905         (set_rename): Pass sese region so that parameters inside the region can
15906         be added to its parameter_rename_map.
15907         (rename_uses): Pass sese region.
15908         (graphite_copy_stmts_from_block): Do not copy parameters that have been
15909         generated in the header of the scop. For each SSA_NAME in the
15910         parameter_rename_map rename its usage.
15911         (invariant_in_sese_p_rec): Return false if tree t is defined outside
15912         sese region.
15913         (scalar_evolution_in_region): If the tree t is invariant just return t.
15914         * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
15915         struct sese to keep track of all the parameters which need renaming.
15916         * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
15917         any data-refs.
15918         * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
15920 2015-09-08  Tom de Vries  <tom@codesourcery.com>
15922         * Makefile.in (generated_files): Add params.list.
15923         (params.list, s-params.list): Add rule.
15924         * params.h (enum compiler_param): Include params-list.h.  Move define
15925         DEFPARAM, include params.def and undef DEFPARAM ...
15926         * params-list.h: ... here.  New file.
15928 2015-09-08  David Malcolm  <dmalcolm@redhat.com>
15930         * pretty-print.h (printer_fn): Fix typo in comment.
15932 2015-09-07  Jeff Law  <law@redhat.com>
15934         * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
15936 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
15938         * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
15939         (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
15940         (arm_neon_fp16_hw): New.
15942 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
15944         * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
15945         UNITS_PER_WORD >= 4.
15947 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
15949         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
15950         aarch64_simd_vec_unpacks_hi_<mode>): New insn.
15951         (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
15952         (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
15953         (aarch64_float_extend_lo_v2df): Rename to...
15954         (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
15956         * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
15957         (float_extend_lo): Add v4sf.
15959         * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
15960         * config/aarch64/iterators.md (VQ_HSF): New iterator.
15961         (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
15962         (Vwide): New mode_attr.
15964 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
15966         * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
15967         aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
15968         aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
15969         vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
15970         V4HF and V8HF variants to iterator.
15972         * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
15974         * config/aarch64/iterators.md (VDQF_F16): New.
15975         (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
15977 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
15979         * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
15980         vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
15981         vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
15982         vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
15983         vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
15984         vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
15985         vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
15986         vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
15987         vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
15988         vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
15989         vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
15990         vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
15991         vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
15992         vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
15993         vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
15994         vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
15995         vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
15996         vld1q_dup_f16): New.
15998 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
16000         * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
16001         Reparameterize to...
16002         (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
16003         (aarch64_float_truncate_hi_v4sf): Reparameterize to...
16004         (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
16006         * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
16007         v8hf variant.
16008         (float_truncate_lo_): Use BUILTIN_VDF iterator.
16010         * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
16012         * config/aarch64/iterators.md (VDF, Vdtype): New.
16013         (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
16015 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
16017         * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
16018         * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
16019         (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
16020         Add __builtin_aarch64_simd_hf.
16021         * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
16022         float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
16023         vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
16024         vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
16025         vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
16026         vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
16027         vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
16028         vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
16029         vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
16031         * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
16032         V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
16033         (VDC, Vdbl): Add V4HF.
16035 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
16037         * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
16038         V4HFmode and V8HFmode.
16039         (aarch64_split_simd_move): Add case for V8HFmode.
16040         * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
16041         (aarch64_simd_builtin_std_type): Handle HFmode.
16042         (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
16044         * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
16045         aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
16046         (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
16048         * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
16049         Float16x8_t.
16051         * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
16052         * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
16053         New typedefs.
16054         (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
16055         vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
16056         vst1q_lane_f16): New.
16057         * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
16058         (VALLDI_F16, VALL_F16): New.
16059         (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
16060         Add cases for V4HF and V8HF.
16061         (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
16063 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
16065         * config/arm/arm-builtins.c (VAR11, VAR12): New.
16066         * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
16067         vld4_dup): Add v4hf variant.
16068         (vget_high, vget_low): Add v8hf variant.
16069         (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
16070         vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
16071         v4hf and v8hf variants.
16073         * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
16074         (VDX): Add V4HF.
16075         (V_DOUBLE): Add case for V4HF.
16076         (VQX): Add V8HF.
16077         (V_HALF): Add case for V8HF.
16078         (VDQX): Add V4HF, V8HF.
16079         (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
16080         V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
16082         * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
16083         neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
16084         vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
16085         neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
16086         neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
16087         neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
16088         vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
16089         neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
16090         neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
16092         (neon_vcreate, neon_vreinterpretv8qi<mode>,
16093         neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
16094         neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
16095         Change VDX to VD_RE.
16097         (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
16098         neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
16099         Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
16101         * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
16102         float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
16103         vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
16104         vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
16105         vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
16106         vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
16107         vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
16108         vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
16109         vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
16111 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
16113         * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
16114         vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
16115         vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
16116         vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
16117         vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
16118         vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
16119         vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
16120         vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
16121         vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
16122         vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
16123         New.
16125 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
16127         * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
16129         * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
16131         * config/arm/arm-builtins.c (v8hf_UP): New.
16132         (arm_init_simd_builtin_types): Initialise Float16x8_t.
16134         * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
16136         * config/arm/arm_neon.h (float16x8_t): New typedef.
16138 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
16140         * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
16141         vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
16142         vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
16143         vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
16144         vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
16145         vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
16146         vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
16147         vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
16148         vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
16149         vreinterpret_u16_f16, vreinterpret_u32_f16): New.
16151 2015-09-07  Ilya Verbin  <ilya.verbin@intel.com>
16153         * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
16154         non-alphanumeric characters in the symbol name.
16156 2015-09-07  Marek Polacek  <polacek@redhat.com>
16158         PR inline-asm/67448
16159         * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
16160         a memory input.
16162 2015-09-07  Marek Polacek  <polacek@redhat.com>
16164         * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
16166 2015-09-04  Paolo Bonzini  <bonzini@gnu.org>
16168         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
16169         not warn.
16171 2015-09-04  Jakub Jelinek  <jakub@redhat.com>
16173         PR middle-end/67452
16174         * tree-ssa-live.c: Include cfgloop.h.
16175         (remove_unused_locals): Clear loop->simduid if simduid is about
16176         to be removed from cfun->local_decls.
16178 2015-09-02  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
16180         PR target/65210
16181         * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
16182         attribute as well.
16184 2015-09-04  Tom de Vries  <tom@codesourcery.com>
16186         * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
16188 2015-09-04  Jeff Law  <law@redhat.com>
16190         * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
16191         unnecessary constructor.  It's now trivial and implemented inside...
16192         * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
16193         constructor.  Add comments to various methods.  Remove unused
16194         private fields.
16195         * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
16196         * tree-vrp.c (identify_jump_threads): Likewise.
16197         * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
16198         indentation issues.
16199         (thread_across_edge): Similarly.
16200         (record_temporary_equivalences_from_stmts_at_dest): Remove unused
16201         arguments in constructor call.
16203 2015-09-04  Jonas Hahnfeld  <Hahnfeld@itc.rwth-aachen.de>
16205         * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
16206         temp path contains a '-'.
16208 2015-09-04  Andrey Turetskiy  <andrey.turetskiy@intel.com>
16209             Petr Murzin  <petr.murzin@intel.com>
16210             Kirill Yukhin  <kirill.yukhin@intel.com>
16212         * config/i386/i386-builtin-types.def
16213         (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
16214         (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
16215         (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
16216         (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
16217         * config/i386/i386.c
16218         (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
16219         IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
16220         IX86_BUILTIN_SCATTERALTDIV16SI.
16221         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
16222         __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
16223         __builtin_ia32_scatteraltdiv8si.
16224         (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
16225         IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
16226         IX86_BUILTIN_SCATTERALTDIV16SI.
16227         (ix86_vectorize_builtin_scatter): New.
16228         (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
16229         ix86_vectorize_builtin_scatter.
16231 2015-09-04  Andrey Turetskiy  <andrey.turetskiy@intel.com>
16232             Petr Murzin  <petr.murzin@intel.com>
16233             Kirill Yukhin  <kirill.yukhin@intel.com>
16235         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
16236         * doc/tm.texi: Regenerate.
16237         * target.def: Add scatter builtin.
16238         * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
16239         for loads/stores in case of gather/scatter accordingly.
16240         (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
16241         STMT_VINFO_GATHER_P(S).
16242         (vect_check_gather): Rename to ...
16243         (vect_check_gather_scatter): this.
16244         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
16245         STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
16246         (vect_check_gather_scatter): Use it instead of vect_check_gather.
16247         (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
16248         variable and new checkings for it accordingly.
16249         * tree-vect-stmts.c
16250         (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
16251         STMT_VINFO_GATHER_P(S).
16252         (vect_check_gather_scatter): Use it instead of vect_check_gather.
16253         (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
16255 2015-09-03  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
16257         * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
16258         define_insn.
16259         (mulv16qi3): New define_expand.
16261 2015-09-03  Martin Sebor  <msebor@redhat.com>
16263         PR c/66516
16264         * doc/extend.texi (Other Builtins): Document when the address
16265         of a built-in function can be taken.
16267 2015-09-03  Richard Biener  <rguenther@suse.de>
16269         * dwarf2out.c (flush_limbo_die_list): Split out from ...
16270         (dwarf2out_early_finish): ... here.
16271         (dwarf2out_finish): Do not call dwarf2out_early_finish but
16272         flush_limbo_die_list.  Assert we have no deferred asm names.
16274 2015-09-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16276         * optabs.c (expand_binop): Don't create a broadcast vector with a
16277         source element wider than the inner mode.
16279 2015-09-03  Richard Biener  <rguenther@suse.de>
16281         * varasm.c (output_constant): Use fold_convert instead of
16282         wide_int_to_tree.
16284 2015-09-03  Tom de Vries  <tom@codesourcery.com>
16286         PR tree-optimization/65637
16287         * omp-low.c (expand_omp_for_static_chunk): Handle case that
16288         fin_bb has 2 predecessors.
16290 2015-09-03  Tom de Vries  <tom@codesourcery.com>
16292         PR tree-optimization/65637
16293         * omp-low.c (find_phi_with_arg_on_edge): New function.
16294         (expand_omp_for_static_chunk): Fix inner loop phi.
16296 2015-09-03  Tom de Vries  <tom@codesourcery.com>
16298         PR tree-optimization/65637
16299         * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
16300         that head is NULL.
16302 2015-09-03  Tom de Vries  <tom@codesourcery.com>
16304         * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
16306 2015-09-03  Tom de Vries  <tom@codesourcery.com>
16308         * doc/invoke.texi (parloops-chunk-size): Add item.
16309         * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
16310         * tree-parloops.c: Include params.h.
16311         (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
16312         param parloops-chunk-size is used.
16314 2015-09-03  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
16316         PR middle-end/67351
16317         * fold-const.c (fold_binary_loc) : Move
16318         Transform (x >> c) << c into x & (-1<<c) or
16319         transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
16320         types using simplify and match.
16321         * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
16322         (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
16324 2015-09-03  Richard Biener  <rguenther@suse.de>
16326         PR ipa/66705
16327         * tree-ssa-structalias.c (ctor_for_analysis): New function.
16328         (create_variable_info_for_1): Use ctor_for_analysis instead
16329         of get_constructor.
16330         (create_variable_info_for): Likewise.
16332 2015-09-02  Charles Baylis  <charles.baylis@linaro.org>
16334         PR ipa/67280
16335         * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
16336         in new callgraph edge.
16338 2015-09-02  Christophe Lyon  <christophe.lyon@linaro.org>
16340         PR target/59810
16341         PR target/63652
16342         PR target/63653
16343         * config/aarch64/aarch64-simd.md
16344         (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
16345         gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
16346         (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
16347         gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
16349 2015-09-02  Alan Modra  <amodra@gmail.com>
16351         * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
16352         * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
16353         (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
16355 2015-09-02  Alan Modra  <amodra@gmail.com>
16357         PR target/67417
16358         * config/rs6000/predicates.md (current_file_function_operand): Don't
16359         return true for weak symbols.
16360         * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
16362 2015-09-01  Matthew Fortune  <matthew.fortune@imgtec.com>
16363             Andrew Bennett  <andrew.bennett@imgtec.com>
16365         * config/mips/mips-opts.h (mips_cb_setting): New enum.
16366         * config/mips/mips-protos.h: Add definitions for
16367         mips_output_jump and mips_output_equal_conditional_branch
16368         * config/mips/mips.c (MIPS_JR): Change to support the
16369         JIC instruction.
16370         (mips_emit_compare): Add support for the MIPS R6 conditional
16371         compact branches.
16372         (mips_process_sync_loop): Likewise.
16373         (mips_output_order_conditional_branch): Likewise.
16374         (mips16_build_call_stub): Change MIPS_CALL to
16375         mips_output_jump.
16376         (mips_print_operand_punctuation): Update 's' case to only
16377         apply to micromips r2.
16378         (mips_adjust_insn_length): Add support for forbidden slot
16379         hazards.
16380         (mips_avoid_hazard): Likewise.
16381         (mips_reorg_process_insns): Likewise.
16382         (mips_output_jump): New function.
16383         (mips_output_equal_conditional_branch): Likewise.
16384         (mips_output_conditional_branch): Use jrc/bc if compact
16385         branch support is enabled.  Ensure the forbidden slots
16386         between the two branch instructions is filled with a nop.
16387         (mips_option_override): Add support to process the compact
16388         branch option and set the correct defaults.  Prevent
16389         non-explict relocs being using for MIPS R6.
16390         (mips_trampoline_init): Add compact branch support.
16391         (mips_mult_zero_zero_cost): Allow zero initialisation of
16392         accumulators with TARGET_DSP.
16393         * config/mips/mips.h (TARGET_CB_NEVER): New define.
16394         (TARGET_CB_MAYBE): New define.
16395         (TARGET_CB_ALWAYS): New define.
16396         (ISA_HAS_DELAY_SLOTS): New define.
16397         (ISA_HAS_COMPACT_BRANCHES): New define.
16398         (ISA_HAS_JRC): New define.
16399         (MIPS_BRANCH_C): New define.
16400         (MIPS_CALL): Removed.
16401         (MICROMIPS_J): Removed.
16402         * config/mips/mips.md (compact_form): New attr.
16403         (hazard): Add support for forbidden slots.
16404         (define_delay): Add support for compact branches.
16405         (*branch_order<mode>): Likewise.
16406         (*branch_order<mode>_inverted): Likewise.
16407         (*branch_equality<mode>): Likewise.
16408         (*branch_equality<mode>_inverted): Likewise.
16409         (*jump_absolute): Likewise.
16410         (*jump_pic): Likewise.
16411         (indirect_jump): Use mips_output_jump to produce assembly output.
16412         (tablejump_<mode>"): Likewise.
16413         (*<optab>"): Likewise.
16414         (<optab>_internal): Likewise.
16415         (sibcall_internal): Likewise.
16416         (sibcall_value_internal): Likewise.
16417         (sibcall_value_multiple_internal): Likewise.
16418         (call_internal): Likewise.
16419         (call_split): Likewise.
16420         (call_internal_direct): Likewise.
16421         (call_direct_split): Likewise.
16422         (call_value_internal): Likewise.
16423         (call_value_split): Likewise.
16424         (call_value_internal_direct): Likewise.
16425         (call_value_direct_split): Likewise.
16426         (call_value_multiple_internal): Likewise.
16427         (call_value_multiple_split): Likewise.
16428         (mips_get_fcsr_mips16_<mode>): Likewise.
16429         (mips_set_fcsr_mips16_<mode>): Likewise.
16430         (tls_get_tp_mips16_<mode>): Likewise.
16431         * config/mips/mips.opt: Add -mcompact-branches option.
16432         * config/mips/predicates.md (order_operator): Ensure the
16433         conditional compact branches are only used if the ISA them.
16434         * doc/invoke.texi: Document -mcompact-branches option.
16436 2015-09-01  Vladimir Makarov  <vmakarov@redhat.com>
16438         PR target/61578
16439         * lra-lives.c (process_bb_lives): Process move pseudos with the
16440         same value for copies and preferences
16441         * lra-constraints.c (match_reload): Create match reload pseudo
16442         with the same value from single dying input pseudo.
16444 2015-09-01  Ilya Enkovich  <enkovich.gnu@gmail.com>
16446         PR target/67405
16447         * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
16449 2015-09-01  Aldy Hernandez  <aldyh@redhat.com>
16451         * trans-mem.c: Add contributed-by.
16452         * trans-mem.h: Same.
16454 2015-09-01  Richard Biener  <rguenther@suse.de>
16456         * expr.c (expand_expr_real_1): For expanding TERed defs
16457         set the current location to that of the def if not UNKNOWN.
16459 2015-09-01  David Sherwood  <david.sherwood@arm.com>
16461         * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
16463 2015-09-01  Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16465         * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
16466         then_cost, else_cost fields.  Change branch_cost field to unsigned int.
16467         (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
16468         Include rtl-iter.h.
16469         (noce_simple_bbs): New function.
16470         (noce_try_move): Bail if basic blocks are not simple.
16471         (noce_try_store_flag): Likewise.
16472         (noce_try_store_flag_constants): Likewise.
16473         (noce_try_addcc): Likewise.
16474         (noce_try_store_flag_mask): Likewise.
16475         (noce_try_cmove): Likewise.
16476         (noce_try_minmax): Likewise.
16477         (noce_try_abs): Likewise.
16478         (noce_try_sign_mask): Likewise.
16479         (noce_try_bitop): Likewise.
16480         (bbs_ok_for_cmove_arith): New function.
16481         (noce_emit_all_but_last): Likewise.
16482         (noce_emit_insn): Likewise.
16483         (noce_emit_bb): Likewise.
16484         (noce_try_cmove_arith): Handle non-simple basic blocks.
16485         (insn_valid_noce_process_p): New function.
16486         (contains_mem_rtx_p): Likewise.
16487         (bb_valid_for_noce_process_p): Likewise.
16488         (noce_process_if_block): Allow non-simple basic blocks
16489         where appropriate.
16491 2015-08-31  Alan Lawrence  <alan.lawrence@arm.com>
16493         * tree-ssa-dom.c (record_equivalences_from_phis,
16494         record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
16495         (lookup_avail_expr): Likewise, and remove comment and unused temp.
16497 2015-09-01  Nick Clifton  <nickc@redhat.com>
16499         * config/msp430/msp430.opt (mcpu): Fix typo.
16501 2015-09-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16503         * config/aarch64/aarch64.c (aarch64_set_current_function):
16504         Re-layout any vector parameters have non-simd layout.
16505         * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
16506         Delete.
16507         (aarch64_simd_expand_args): Delete call to the above.
16509 2015-08-31  Mike Frysinger  <vapier@gentoo.org>
16511         * doc/invoke.texi (asan-stack): Add space before option.
16513 2015-08-31  Marc Glisse  <marc.glisse@inria.fr>
16515         * tree.h (zerop): New function.
16516         * tree.c (zerop): Likewise.
16517         (element_precision): Handle expressions.
16518         * match.pd (define_predicates): Add zerop.
16519         (x <= +Inf): Fix comment.
16520         (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
16521         * fold-const.c (fold_binary_loc): ... here. Remove.
16523 2015-08-31  Richard Biener  <rguenther@suse.de>
16525         PR middle-end/67381
16526         * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
16528 2015-08-31  Marc Glisse  <marc.glisse@inria.fr>
16530         * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
16531         (CEXPI): New operator list.
16532         (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
16533         imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
16534         Converted from ...
16535         * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
16537 2015-08-31  Tom de Vries  <tom@codesourcery.com>
16539         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
16540         (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
16541         parameter.
16542         (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
16543         (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
16544         (rewrite_into_loop_closed_ssa): ... here.
16545         (replace_uses_in_dominated_bbs): Remove function.
16546         (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
16547         rewrite_into_loop_closed_ssa_1.
16549 2015-08-31  Michael Matz  <matz@suse.de>
16551         * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
16552         enter entry and exit blocks for reverse post order.
16554 2015-08-31  Richard Biener  <rguenther@suse.de>
16556         * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
16557         (lto_location_cache::current_sysp): Likewise.
16558         (output_block::current_sysp): Likewise.
16559         * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
16560         (lto_location_cache::apply_location_cache): Properly record
16561         system header locations.
16562         (lto_location_cache::input_location): Input whether a file
16563         is a system header.
16564         * lto-streamer-out.c (lto_output_location): Stream whether a file
16565         is a system header.
16567 2015-08-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16569         PR bootstrap/67363
16570         * gcc.c (env_manager::xput): Replace strndup by xstrndup.
16572 2015-08-31  Tom de Vries  <tom@codesourcery.com>
16574         * tree-ssa-loop-manip.c (find_uses_to_rename_use)
16575         (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
16576         Improve function header comments.
16578 2015-08-30  Michael Collison  <michael.collison@linaro.org>
16580         PR other/67320
16581         * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
16582         standard names
16584 2015-08-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16586         * config/rs6000/rs6000.c (swap_web_entry): Enlarge
16587         special_handling bitfield.
16588         (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
16589         (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
16590         that represents a general xxpermdi.
16591         (insn_is_swappable_p): Add handling for vec_concat of two
16592         doublewords, which maps to a specific xxpermdi.
16593         (adjust_xxpermdi): New function.
16594         (adjust_concat): Likewise.
16595         (handle_special_swappables): Call adjust_xxpermdi and
16596         adjust_concat.
16597         (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
16599 2015-08-30  Rich Felker <dalias@libc.org>
16601         * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
16602         case instead of sh[123456ble]-*-*.
16604 2015-08-29  Anatoly Sokolov  <aesok@post.ru>
16606         * ira.c (print_unform_and_important_classes,
16607         print_translated_classes): Remove reg_class_names static array.
16608         (print_unform_and_important_classes): Rename to ...
16609         (print_uniform_and_important_classes): ... this.
16610         (ira_debug_allocno_classes): Update accordingly.
16612 2015-08-29  Tom de Vries  <tom@codesourcery.com>
16614         PR tree-optimization/46193
16615         * omp-low.c (omp_reduction_init): Handle pointer type for min or max
16616         clause.
16618 2015-08-28  Jeff Law  <law@redhat.com>
16620         PR lto/66752
16621         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
16622         unable to find X NE 0 in the tables, return X as the simplified
16623         condition.
16624         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
16625         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
16626         to VISISTED_BBS.
16627         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
16628         after removing the control flow statement and unnecessary edges.
16630 2015-08-28  Alan Lawrence  <alan.lawrence@arm.com>
16632         Revert:
16633         2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
16635         PR tree-optimization/67283
16636         * tree-sra.c (type_consists_of_records_p): Rename to...
16637         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
16639         (completely_scalarize_record): Rename to...
16640         (completely_scalarize): ...this, add ARRAY_TYPE case, move some
16641         code to:
16642         (scalarize_elem): New.
16644 2015-08-28  Jiong Wang  <jiong.wang@arm.com>
16646         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
16647         SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
16648         (aarch64_symbol_type): Likewise.
16649         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
16650         Likewise.
16651         (aarch64_expand_mov_immediate): Likewise.
16652         (aarch64_print_operand): Likewise.
16653         (aarch64_classify_tls_symbol): Likewise.
16655 2015-08-28  Richard Biener  <rguenther@suse.de>
16657         * cgraphunit.c (symbol_table::compile): Move early debug generation
16658         and finish...
16659         (symbol_table::finalize_compilation_unit): ... back here and
16660         add a !seen_error () guard.
16662 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
16664         * toplev.c (process_options): Do not use flag_loop_block,
16665         flag_loop_interchange, and flag_loop_strip_mine.  Add check for
16666         flag_loop_optimize_isl.
16668 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
16670         * Makefile.in (OBJS): Remove graphite-blocking.o and
16671         graphite-interchange.o.
16672         * common.opt (floop-strip-mine, floop-interchange, floop-block):
16673         Alias of floop-nest-optimize.
16674         * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
16675         Document as alias of -floop-nest-optimize.
16676         * graphite-blocking.c: Remove.
16677         * graphite-interchange.c: Remove.
16678         * graphite-optimize-isl.c: Include dumpfile.h.
16679         (getScheduleForBand): Add dump for tiled loops.  Use
16680         PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
16681         * graphite-poly.c (scop_max_loop_depth): Remove.
16682         (print_scattering_function_1): Remove.
16683         (print_scattering_function): Remove.
16684         (print_scattering_functions): Remove.
16685         (debug_scattering_function): Remove.
16686         (debug_scattering_functions): Remove.
16687         (apply_poly_transforms): Remove use of flag_loop_block,
16688         flag_loop_strip_mine, and flag_loop_interchange.
16689         (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
16690         PBB_ORIGINAL.
16691         (print_pdr_access_layout): Remove.
16692         (print_pdr): Print ISL representation.
16693         (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
16694         SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
16695         (free_scop): Same.
16696         (openscop_print_pbb_domain): Remove.
16697         (print_pbb): Remove call to print_scattering_function.
16698         (openscop_print_scop_context): Remove.
16699         (print_scop_context): Do not print matrices anymore.
16700         (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
16701         SCOP_TRANSFORMED_SCHEDULE.
16702         (print_isl_set): Add printing of a new line.
16703         (print_isl_map): Same.
16704         (print_isl_aff): Same.
16705         (print_isl_constraint): Same.
16706         (loop_to_lst): Remove.
16707         (scop_to_lst): Remove.
16708         (lst_indent_to): Remove.
16709         (print_lst): Remove.
16710         (debug_lst): Remove.
16711         (dot_lst_1): Remove.
16712         (dot_lst): Remove.
16713         (reverse_loop_at_level): Remove.
16714         (reverse_loop_for_pbbs): Remove.
16715         * graphite-poly.h (pdr_dim_iter_domain): Remove.
16716         (pdr_nb_params): Remove.
16717         (pdr_alias_set_dim): Remove.
16718         (pdr_subscript_dim): Remove.
16719         (pdr_iterator_dim): Remove.
16720         (pdr_parameter_dim): Remove.
16721         (same_pdr_p): Remove.
16722         (struct poly_scattering): Remove.
16723         (struct poly_bb): Remove _original, _transformed, _saved.
16724         (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
16725         (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
16726         (PBB_NB_LOCAL_VARIABLES): Remove.
16727         (PBB_NB_SCATTERING_TRANSFORM): Remove.
16728         (schedule_to_scattering): Remove.
16729         (number_of_write_pdrs): Remove.
16730         (pbb_dim_iter_domain): Remove.
16731         (pbb_nb_params): Remove.
16732         (pbb_nb_scattering_orig): Remove.
16733         (pbb_nb_scattering_transform): Remove.
16734         (pbb_nb_dynamic_scattering_transform): Remove.
16735         (pbb_nb_local_vars): Remove.
16736         (pbb_iterator_dim): Remove.
16737         (pbb_parameter_dim): Remove.
16738         (psco_scattering_dim): Remove.
16739         (psct_scattering_dim): Remove.
16740         (psct_local_var_dim): Remove.
16741         (psco_iterator_dim): Remove.
16742         (psct_iterator_dim): Remove.
16743         (psco_parameter_dim): Remove.
16744         (psct_parameter_dim): Remove.
16745         (psct_dynamic_dim): Remove.
16746         (psct_static_dim): Remove.
16747         (psct_add_local_variable): Remove.
16748         (new_lst_loop): Remove.
16749         (new_lst_stmt): Remove.
16750         (free_lst): Remove.
16751         (copy_lst): Remove.
16752         (lst_add_loop_under_loop): Remove.
16753         (lst_depth): Remove.
16754         (lst_dewey_number): Remove.
16755         (lst_dewey_number_at_depth): Remove.
16756         (lst_pred): Remove.
16757         (lst_succ): Remove.
16758         (lst_find_pbb): Remove.
16759         (find_lst_loop): Remove.
16760         (lst_find_first_pbb): Remove.
16761         (lst_empty_p): Remove.
16762         (lst_find_last_pbb): Remove.
16763         (lst_contains_p): Remove.
16764         (lst_contains_pbb): Remove.
16765         (lst_create_nest): Remove.
16766         (lst_remove_from_sequence): Remove.
16767         (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
16768         (lst_niter_for_loop): Remove.
16769         (pbb_update_scattering): Remove.
16770         (lst_update_scattering_under): Remove.
16771         (lst_update_scattering): Remove.
16772         (lst_insert_in_sequence): Remove.
16773         (lst_replace): Remove.
16774         (lst_substitute_3): Remove.
16775         (lst_distribute_lst): Remove.
16776         (lst_remove_all_before_including_pbb): Remove.
16777         (lst_remove_all_before_excluding_pbb): Remove.
16778         (struct scop): Remove original_schedule, transformed_schedule, and
16779         saved_schedule.
16780         (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
16781         (SCOP_SAVED_SCHEDULE): Remove.
16782         (poly_scattering_new): Remove.
16783         (poly_scattering_free): Remove.
16784         (poly_scattering_copy): Remove.
16785         (store_scattering_pbb): Remove.
16786         (store_lst_schedule): Remove.
16787         (restore_lst_schedule): Remove.
16788         (store_scattering): Remove.
16789         (restore_scattering_pbb): Remove.
16790         (restore_scattering): Remove.
16791         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
16792         Remove scattering_dimensions.  Do not use pbb_dim_iter_domain:
16793         compute the scattering polyhedron dimension from the dimension of
16794         pbb->domain.
16795         (build_scop_scattering): Update call to
16796         build_pbb_scattering_polyhedrons.
16797         (build_poly_scop): Remove call to scop_to_lst.
16798         * graphite.c (graphite_transform_loops): Add call to print_scop.
16799         (gate_graphite_transforms): Remove use of flag_loop_block,
16800         flag_loop_interchange, and flag_loop_strip_mine.
16802 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
16804         * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
16805         * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
16806         -floop-nest-optimize.
16807         * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
16808         (generate_luj_sepclass): Remove.
16809         (generate_luj_options): Remove.
16810         (set_options): Remove opt_luj.
16811         (scop_to_isl_ast): Remove opt_luj.
16812         * graphite-optimize-isl.c (getScheduleForBand): Remove check for
16813         flag_loop_unroll_jam.
16814         (getPrevectorMap_full): Remove.
16815         (getScheduleForBandList): Remove map_sepcl.
16816         (getScheduleMap): Same.
16817         (apply_schedule_map_to_scop): Remove sepcl.
16818         (optimize_isl): Same.
16819         * graphite-poly.c (apply_poly_transforms): Remove check for
16820         flag_loop_unroll_jam.
16821         (new_poly_bb): Remove map_sepclass.
16822         * graphite-poly.h (struct poly_bb): Same.
16823         * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
16824         * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
16825         (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
16826         * toplev.c (process_options): Remove flag_loop_unroll_jam.
16828 2015-08-27  Uros Bizjak  <ubizjak@gmail.com>
16830         PR target/67317
16831         * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
16832         (addqi3_cc): Ditto.
16833         (UNSPEC_ADD_CARRY): Remove.
16834         (addqi3_cconly_overflow): New expander.
16835         (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
16836         Adjust for changed add<mode>3_carry.
16837         (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
16838         (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
16839         (<plusminus_insn><mode>3_carry): Remove expander.
16840         (*<plusminus_insn><mode>3_carry): Split insn pattern to
16841         add<mode>3_carry and sub<mode>3_carry.
16842         (plusminus_carry_mnemonic): Remove code attribute.
16843         (add<mode>3_carry): Canonicalize insn pattern.
16844         (*addsi3_carry_zext): Ditto.
16845         (sub<mode>3_carry): Ditto.
16846         (*subsi3_carry_zext): Ditto.
16847         (adcx<mode>3): Remove insn pattern.
16848         (addcarry<mode>): New insn pattern.
16849         (subborrow<mode>): Ditto.
16850         * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
16851         gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
16852         (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
16853         case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
16854         case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
16855         CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
16856         Rewrite expander to not clobber carry flag chains.
16858 2015-08-27  Pat Haugen  <pthaugen@us.ibm.com>
16860         * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
16861         instead of a rotate.
16863 2015-08-27  Marek Polacek  <polacek@redhat.com>
16865         PR middle-end/67005
16866         * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
16867         an entry into an irreducible region.
16869 2015-08-27  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
16871         * configure: Regenerate.
16873 2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
16875         PR tree-optimization/67283
16876         * tree-sra.c (type_consists_of_records_p): Rename to...
16877         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
16879         (completely_scalarize_record): Rename to...
16880         (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
16881         (scalarize_elem): New.
16883 2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
16885         * tree-sra.c (completely_scalarize_var): Rename to...
16886         (create_total_scalarization_access): ... Here. Drop call to
16887         completely_scalarize_record.
16889         (analyze_all_variable_accesses): Replace completely_scalarize_var
16890         with create_total_scalarization_access and completely_scalarize_record.
16892 2015-08-27  Alan Modra  <amodra@gmail.com>
16894         PR target/67356
16895         * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
16896         for operand 1.
16898 2015-08-27  Richard Biener  <rguenther@suse.de>
16900         * passes.c (rest_of_decl_compilation): Guard early_global_decl
16901         call with !seen_error ().
16902         * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
16903         early debug generation and finish...
16904         (symbol_table::compile): ... here to put it after a !seen_error ()
16905         guard.
16907 2015-08-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16909         * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
16910         Solaris 12+.
16912 2015-08-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
16913             Andre Vieira  <andre.simoesdiasvieira@arm.com>
16915         * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
16916         (*cb<optab><mode>1): Likewise.
16917         (*tb<optab><mode>1): Likewise.
16918         (*cb<optab><mode>1): Likewise.
16919         * config/aarch64/iterators.md (inv_cb): New code attribute.
16920         (inv_tb): Likewise.
16921         * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
16922         * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
16924 2015-08-27  Richard Biener  <rguenther@suse.de>
16926         * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
16928 2015-08-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
16930         * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
16931         trap to fix ICE.
16933 2015-08-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
16935         * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
16936         Add declaration.
16938         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
16939         comment.
16940         (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
16941         floating point in VSX registers.
16942         (rs6000_output_move_128bit): Always print out the set insn if we
16943         can't generate an appropriate 128-bit move.
16944         (rs6000_generate_compare): Add support for IEEE 128-bit floating
16945         point in VSX registers comparisons.
16946         (rs6000_expand_float128_convert): Likewise.
16948         * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
16949         predicate for only GPR hard registers.
16951         * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
16952         modes to iterators. Add new iterators for moving 128-bit values in
16953         scalar FPR registers and VSX registers.
16954         (FMOVE128): Likewise.
16955         (FMOVE128_FPR): Likewise.
16956         (FMOVE128_GPR): Likewise.
16957         (FMOVE128_VSX): Likewise.
16958         (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
16959         in VSX registers.
16960         (IFKF): Likewise.
16961         (IBM128): Likewise.
16962         (TFIFKF): Likewise.
16963         (RELOAD): Add IEEE 128-bit floating point modes.
16964         (signbittf2): Convert TF insns to add support for new IEEE 128-bit
16965         floating point in VSX registers modes.
16966         (signbit<mode>2, IBM128 iterator): Likewise.
16967         (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
16968         (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
16969         (negtf2): Likewise.
16970         (neg<mode>2, TFIFKF iterator): Likewise.
16971         (negtf2_internal): Likewise.
16972         (abstf2): Likewise.
16973         (abs<mode>2, TFIFKF iterator): Likewise.
16974         (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
16975         VSX insn support for negate, absolute value, and negative absolute
16976         value.
16977         (ieee_128bit_vsx_neg<mode>2): Likewise.
16978         (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
16979         (ieee_128bit_vsx_abs<mode>2): Likewise.
16980         (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
16981         (ieee_128bit_vsx_nabs<mode>2): Likewise.
16982         (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
16983         (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
16984         floating point in VSX registers.
16985         (unpack<mode>_dm): Likewise.
16986         (unpack<mode>_nodm): Likewise.
16987         (pack<mode>): Likewise.
16988         (unpackv1ti): Likewise.
16989         (unpack<mode>, FMOVE128_VSX iterator): Likewise.
16990         (packv1ti): Likewise.
16991         (pack<mode>, FMOVE128_VSX iterator): Likewise.
16992         (extenddftf2): Add support for IEEE 128-bit floating point in VSX
16993         registers.
16994         (extenddftf2_internal): Likewise.
16995         (trunctfdf2): Likewise.
16996         (trunctfdf2_internal2): Likewise.
16997         (fix_trunc_helper): Likewise.
16998         (fix_trunctfdi2"): Likewise.
16999         (floatditf2): Likewise.
17000         (floatuns<mode>tf2): Likewise.
17001         (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
17002         (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
17003         (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
17004         (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
17005         (float<SDI:mode><IFKF:mode>2): Likewise.
17006         (floatuns<SDI:mode><IFKF:mode>2): Likewise.
17008 2015-08-26  Renlin Li  <renlin.li@arm.com>
17010         * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
17012 2015-08-26  Marcus Shawcroft  <marcus.shawcroft@arm.com>
17013             Jiong Wang  <jiong.wang@arm.com>
17015         * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
17016         (tlsie_tiny_<mode>): New define_insn.
17017         (tlsie_tiny_sidi): Likewise.
17018         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
17019         SYMBOL_TINY_TLSIE.
17020         (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
17021         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
17022         SYMBOL_TINY_TLSIE.
17023         (aarch64_expand_mov_immediate): Likewise.
17024         (aarch64_print_operand): Likewise.
17025         (arch64_classify_tls_symbol): Likewise.
17027 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
17029         * config/arm/arm-arches.def: Replace single value flags with
17030         an initializer built from ARM_FSET_MAKE_CPU1.
17031         * config/arm/arm-cores.def: Likewise.
17032         * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
17033         derivation from the ARM_CORE macro definition, use the given value
17034         instead.
17035         (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
17036         ARM_ARCH macro definition, use the given value instead.
17038 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
17040         * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
17041         feature set.
17042         (struct builtin_description): Replace field mask with field
17043         features.
17044         (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
17045         (IWMMXT2_BUILTIN): Likewise.
17046         (IWMMXT2_BUILTIN2): Likewise.
17047         (FP_BUILTIN): Likewise.
17048         (CRC32_BUILTIN): Likewise.
17049         (CRYPTO_BUILTIN): Likewise.
17050         (iwmmx_mbuiltin): Likewise.
17051         (iwmmx2_mbuiltin): Likewise.
17052         (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
17053         struct builtin_description.
17055 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
17057         * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
17058         (struct builtin_description): Change type of mask to unsigned
17059         long.
17060         * config/arm/arm-protos.h (insn_flags): Declare as type
17061         arm_feature_set.
17062         (tune_flags): Likewise.
17063         * config/arm/arm.c (feature_count): New.
17064         (insn_flags): Define as type arm_feature_set.
17065         (tune_flags): Likewise.
17066         (struct processors): Define field flags as type arm_feature_set.
17067         (all_cores): Update for change to struct processors.
17068         (all_architectures): Likewise.
17069         (arm_option_check_internal): Use arm_feature_set and ARM_FSET
17070         macros.
17071         (arm_option_override_internal): Likewise.
17072         (arm_option_override): Likewise.
17074 2015-08-26  Marcus Shawcroft  <marcus.shawcroft@arm.com>
17075             Jiong Wang  <jiong.wang@arm.com>
17077         * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
17078         tls size for tiny, small, large memory model.
17079         (aarch64_load_symref_appropriately): Support new symbol types.
17080         (aarch64_expand_mov_immediate): Likewise.
17081         (aarch64_print_operand): Likewise.
17082         (aarch64_classify_tls_symbol): Likewise.
17083         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
17084         (aarch64_symbol_type): Likewise.
17085         * config/aarch64/aarch64.md (tlsle): Deleted.
17086         (tlsle12_<mode>): New define_insn.
17087         (tlsle24_<mode>): Likewise.
17088         (tlsle32_<mode>): Likewise.
17089         (tlsle48_<mode>): Likewise.
17090         * doc/sourcebuild.texi (AArch64-specific attributes): Document
17091         "aarch64_tlsle32".
17093 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
17095         * config/arm/arm-protos.h (FL_NONE): New.
17096         (FL_ANY): New.
17097         (arm_feature_set): New.
17098         (ARM_FSET_MAKE): New.
17099         (ARM_FSET_MAKE_CPU1): New.
17100         (ARM_FSET_MAKE_CPU2): New.
17101         (ARM_FSET_CPU1): New.
17102         (ARM_FSET_CPU2): New.
17103         (ARM_FSET_EMPTY): New.
17104         (ARM_FSET_ANY): New.
17105         (ARM_FSET_HAS_CPU1): New.
17106         (ARM_FSET_HAS_CPU2): New.
17107         (ARM_FSET_HAS_CPU): New.
17108         (ARM_FSET_ADD_CPU1): New.
17109         (ARM_FSET_ADD_CPU2): New.
17110         (ARM_FSET_DEL_CPU1): New.
17111         (ARM_FSET_DEL_CPU2): New.
17112         (ARM_FSET_UNION): New.
17113         (ARM_FSET_INTER): New.
17114         (ARM_FSET_XOR): New.
17115         (ARM_FSET_EXCLUDE): New.
17116         (AFM_FSET_IS_EMPTY): New.
17117         (ARM_FSET_CPU_SUBSET): New.
17119 2015-08-26  Jiong Wang  <jiong.wang@arm.com>
17121         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
17122         SYMBOL_TLSLE to SYMBOL_TLSLE24.
17123         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
17124         Likewise.
17125         (aarch64_expand_mov_immediate): Likewise.
17126         (aarch64_print_operand): Likewise.
17127         (aarch64_classify_symbol): Likewise.
17129 2015-08-26  Jiong Wang  <jiong.wang@arm.com>
17131         * config/aarch64/aarch64.opt (mtls-size): New entry.
17132         * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
17133         (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
17134         * doc/invoke.texi (AArch64 Options): Document -mtls-size.
17136 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
17138         * config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
17139         ARM_CORE entry.  Fix some white-space.
17140         * config/arm/arm.c: Remove FL_FOR_ARCH derivation from
17141         ARM_CORE definition.
17143 2015-08-26  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
17145         * fold-const.c (fold_binary_loc) : Move Optimize
17146         root(x)*root(y) as root(x*y) to match.pd.
17147         Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
17148         Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
17149         Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
17150         Move Optimize x/expN(y) into x*expN(-y) to match.pd.
17151         * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
17152         (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
17153         (mult (exps:s @0) (exps:s @1)) : New simplifier.
17154         (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
17155         (rdiv @0 (exps:s @1)) : New simplifier.
17157 2015-08-25  Joseph Myers  <joseph@codesourcery.com>
17159         * gcc.c (driver::finalize): Only assign to extra_specs if
17160         [EXTRA_SPECS].
17162 2015-08-25  Marek Polacek  <polacek@redhat.com>
17164         PR middle-end/67330
17165         * varasm.c (declare_weak): Return after giving an error.
17167 2015-08-25  David Malcolm  <dmalcolm@redhat.com>
17169         * gcc-main.c (main): Add params to driver ctor.
17170         * gcc.c (class env_manager): New.
17171         (env): New global.
17172         (env_manager::init): New.
17173         (env_manager::get): New.
17174         (env_manager::xput): New.
17175         (env_manager::restore): New.
17176         Poison getenv and putenv.
17177         (DEFAULT_TARGET_SYSTEM_ROOT): New.
17178         (target_system_root): Update initialization to use
17179         DEFAULT_TARGET_SYSTEM_ROOT.
17180         (struct spec_list): Add field "default_ptr".
17181         (INIT_STATIC_SPEC): Initialize new field "default_ptr".
17182         (init_spec): Likewise.
17183         (set_spec): Clear field "default_ptr".
17184         (read_specs): Free "spec" and "buffer".
17185         (xputenv): Reimplement in terms of env_manager.
17186         (process_command): Replace ::getenv calls with calls to the
17187         env_manager singleton.
17188         (process_brace_body): Free string in three places.
17189         (driver::driver): New.
17190         (driver::~driver): New.
17191         (used_arg): Convert from a function to...
17192         (class used_arg_t): ...this class, and...
17193         (used_arg): ...this new global instance.
17194         (used_arg_t::finalize): New function.
17195         (getenv_spec_function): Add "const" to local "value".  Replace
17196         ::getenv call with call to the env_manager singleton.
17197         (path_prefix_reset): New function.
17198         (driver::finalize): New function.
17199         * gcc.h (driver::driver): New.
17200         (driver::~driver): New.
17201         (driver::finalize): New.
17203 2015-08-25  Nathan Sidwell  <nathan@acm.org>
17205         * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
17206         target doesn't have one.
17208 2015-08-25  Segher Boessenkool  <segher@kernel.crashing.org>
17210         PR target/67346
17211         * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
17213 2015-08-25  Segher Boessenkool  <segher@kernel.crashing.org>
17215         PR target/67344
17216         * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
17217         a define_insn, remove second alternative.
17219 2015-08-25  Thomas Schwinge  <thomas@codesourcery.com>
17220             Joseph Myers  <joseph@codesourcery.com>
17222         * gcc.c (struct switchstr): Expand comment.
17224 2015-08-25  Nathan Sidwell  <nathan@acm.org>
17226         * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
17227         (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
17229 2015-08-25  Richard Biener  <rguenther@suse.de>
17231         PR middle-end/67306
17232         * genmatch.c (expr::gen_transform): Verify the result of
17233         builtin_decl_implicit.
17234         (dt_simplify::gen_1): Likewise.
17236 2015-08-25  Thomas Preud'homme  <thomas.preudhomme@arm.com>
17238         * config/arm/constraints.md: Also list Cs and US ARM-specific
17239         constraints as used.
17241 2015-08-24  Kaz Kojima  <kkojima@gcc.gnu.org>
17243         PR target/66609
17244         * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
17245         UNSPEC_PCREL.
17246         (nonpic_symbol_mentioned_p): Likewise.
17247         (sh_delegitimize_address): Likewise.
17248         (sh_function_ok_for_sibcall): Take into account weak symbols.
17249         (sh_expand_sym_label2reg): New.
17250         * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
17251         * config/sh/sh.md (UNSPEC_PCREL): New enum.
17252         (call_pcrel): Use sh_expand_sym_label2reg.
17253         (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
17254         (symPCREL_label2reg) New expand.
17256 2015-08-24  Aditya Kumar  <aditya.k7@samsung.com>
17258         * graphite-poly.c: Change type of region from void* to sese.
17259         * graphite-poly.h (struct scop): Changing the type of scop::region
17260         from void* to sese. Change accessor macro accordingly.
17261         * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
17263 2015-08-24  Aditya Kumar  <aditya.k7@samsung.com>
17265         * graphite-scop-detection.c (stmt_simple_for_scop_p):
17266         Constrain only on INTEGER_TYPE.
17268 2015-08-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
17270         PR target/67211
17271         * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
17272         -mefficient-unaligned-vsx on ISA 2.7.
17274         * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
17275         option to a masked option.
17277         * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
17278         logic for -mefficient-unaligned-vsx so that it is set via an arch
17279         ISA option, instead of being set if -mtune=power8 is set. Move
17280         -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
17281         near other default option handling.
17283 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
17285         * genflags.c (gen_macro): Delete.
17286         (gen_proto): Don't create GEN.*CALL.* macros.
17287         * gensupport.h (get_file_location): Declare.
17288         * gensupport.c (rtx_locs): New variable.
17289         (read_md_rtx): Record rtx locations.
17290         (get_file_location): New function.
17291         * target-insns.def (call, call_pop, call_value, call_value_pop)
17292         (sibcall, sibcall_value): New patterns.
17293         * gentarget-def.c (parse_argument): New function.
17294         (def_target_insn): Use it.  Handle optional operands.  Raise an
17295         error if an .md pattern has the wrong number of operands for the
17296         pattern name.  Remove the names of unused operands from the prototype.
17297         * builtins.c (expand_builtin_apply): Use targetm functions
17298         instead of HAVE_call_value and GEN_CALL_VALUE.
17299         * calls.c (emit_call_1): Likewise.  Remove support for sibcall_pop
17300         and sibcall_value_pop.
17301         * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
17302         of GEN_CALL.
17303         * config/alpha/alpha.md (untyped_call): Likewise.
17304         * config/iq2000/iq2000.md (untyped_call): Likewise.
17305         * config/m68k/m68k.md (untyped_call): Likewise.
17306         * config/mips/mips.md (untyped_call): Likewise.
17307         * config/pa/pa.md (untyped_call): Likewise.
17308         * config/rs6000/rs6000.md (untyped_call): Likewise.
17309         * config/sparc/sparc.md (untyped_call): Likewise.
17310         * config/tilegx/tilegx.md (untyped_call): Likewise.
17311         * config/tilepro/tilepro.md (untyped_call): Likewise.
17312         * config/visium/visium.md (untyped_call): Likewise.
17313         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
17314         gen_call_value instead of GEN_CALL_VALUE.
17315         * config/arm/arm.md (untyped_call): Likewise.
17316         * config/cr16/cr16.c (cr16_function_arg): Remove reference to
17317         GEN_CALL.
17319 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
17321         * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
17322         (have_cbranchcc4): New variable.
17323         (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
17324         (noce_get_condition): Use it instead of HAVE_cbranchcc4.
17325         (if_convert): Initialize have_cbranchcc4.
17327 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
17329         * builtins.c (expand_cmpstrn): Rename to...
17330         (expand_cmpstrn_or_cmpmem): ...this.
17331         (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
17332         (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
17333         Remove mode argument.
17334         (expand_builtin): Update accordingly.
17336 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
17338         * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
17339         (expand_builtin_strcmp, expand_builtin_strncmp): Use them.  Remove
17340         references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
17341         * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
17342         Add predicates for operands 0 and 3.
17343         * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
17344         operand.
17345         * config/sh/sh.md (cmpstrnsi): Change the length predicate from
17346         immediate_operand to nonmemory_operand.
17348 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
17350         * df-scan.c (df_insn_info_init_fields): New function, split out
17351         from...
17352         (df_insn_create_insn_record): ...here.
17353         (df_insn_info_free_fields): New function, split out from...
17354         (df_insn_info_delete): ...here.
17355         (df_insn_rescan): Use the new functions instead of freeing and
17356         reallocating the df_insn_info.
17358 2015-08-24  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
17360         * doc/install.texi (Binaries): Remove links no longer valid.
17362 2015-08-24  Nathan Sidwell  <nathan@codesourcery.com>
17364         * config/nvptx/mkoffload.c (process): Replace
17365         GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
17367 2015-08-24  H.J. Lu  <hongjiu.lu@intel.com>
17369         PR target/67329
17370         * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
17372 2015-08-24  Renlin Li  <renlin.li@arm.com>
17374         * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
17375         * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
17376         * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
17377         * config/arm/constraints.md ("j"): Add check for high code.
17379 2015-08-24  Tom de Vries  <tom@codesourcery.com>
17381         PR tree-optimization/65468
17382         * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
17383         chunk_size is one.
17385 2015-08-24  Nathan Sidwell  <nathan@acm.org>
17387         * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
17388         change to nvptx_type_from_mode call. Use arg_promotion for both
17389         split and non-split args.
17391 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
17393         * target-insns.def (movstr): New pattern.
17394         * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
17395         (expand_movstr): Use targetm rather than HAVE_movstr/
17396         CODE_FOR_movstr.
17398 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
17400         * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
17401         cast syntax.
17403 2015-08-24  Andrew Pinski  <apinski@cavium.com>
17405         * config/aarch64/aarch64-tuning-flags.def: Remove all index to
17406         AARCH64_EXTRA_TUNING_OPTION.
17407         * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
17408         New enum.
17409         (aarch64_extra_tuning_flags): Base the shifted value on the index
17410         instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
17411         * config/aarch64/aarch64.c: Remove the last argument to
17412         AARCH64_EXTRA_TUNING_OPTION.
17414 2015-08-23  Nathan Sidwell  <nathan@acm.org>
17416         * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
17417         decls.
17418         (nvptx_declare_function_name): Insert formatting tabs for
17419         consistency.
17421 2015-08-23  Tom de Vries  <tom@codesourcery.com>
17423         * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
17424         parm_decl, rather than generating a dummy default def in cfun.
17425         * tree-cfg.c (replace_ssa_name): Assume no default defs.  Make sure
17426         ssa_name from cfun and child_fn do not share a stmt as def stmt.
17427         (move_stmt_op): Handle PARM_DECl.
17428         (gather_ssa_name_hash_map_from): New function.
17429         (move_sese_region_to_fn): Add default defs for function params, and add
17430         them to vars_map.  Release copied ssa names.
17431         * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
17433 2015-08-23  Tom de Vries  <tom@codesourcery.com>
17435         * doc/sourcebuild.texi: Rename vect_no_int_max with
17436         vect_no_int_min_max.  Update description.
17438 2015-08-22  Andrew Pinski  <apinski@cavium.com>
17440          * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
17441         * config/aarch64/aarch64-protos.h
17442         (aarch64_fusion_pairs_index): New enum.
17443         (aarch64_fusion_pairs): Base the shifted value on the index instead
17444         Rewrite AARCH64_FUSE_ALL to be based on the end index.
17445         of the argument to AARCH64_FUSION_PAIR.
17446         * config/aarch64/aarch64.c: Remove the last argument to
17447         AARCH64_FUSION_PAIR.
17449 2015-08-22  Mikhail Maltsev <maltsevm@gmail.com>
17451         * dominance.c (new_zero_array): Define.
17452         (dom_info): Redefine as class with proper encapsulation.
17453         (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
17454         Add new members.
17455         (dom_info::dom_info, ~dom_info): Define.  Use new/delete for memory
17456         allocations/deallocations.  Pass function as parameter (instead of
17457         using cfun).
17458         (dom_info::get_idom): Define accessor method.
17459         (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
17460         link_roots, calc_idoms): Redefine as class members.  Do not use cfun.
17461         (calculate_dominance_info): Adjust to use dom_info class.
17462         (verify_dominators): Likewise.
17464 2015-08-21  Alexandre Oliva  <aoliva@redhat.com>
17466         * print-rtl.c (print_rtx): Check the correct range for
17467         flag_dump_unnumbered_links to behave as documented.
17469         PR rtl-optimization/67227
17470         PR rtl-optimization/64164
17471         * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
17472         (nonoverlapping_memrefs_p): Test offsets and sizes when given
17473         identical gimple_reg exprs.
17475 2015-08-21  Nathan Sidwell  <nathan@acm.org>
17477         * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
17478         expansion.
17479         * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
17480         crtl->stack_alignment_needed to determine alignment.
17481         (nvptx_get_drap_rtx): New.
17482         (TARGET_GET_DRAP_RTX): Override.
17483         * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
17485 2015-08-21  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
17487         * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
17489 2015-08-21  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
17491         * configure.ac: Remove uwin* cases.
17492         * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
17493         i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
17494         i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
17495         i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
17496         * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
17497         i[34567]86-*-uwin*, powerpc-*-beos*.
17499 2015-08-21  Richard Sandiford  <richard.sandiford@arm.com>
17501         * gencodes.c (gencodes): Print the comma for the preceding
17502         enum value rather than the current one.  Use aliased enum values
17503         rather than #defines for compiled-out patterns.
17504         (main): Update accordingly.  Replace LAST_INSN_CODE with
17505         NUM_INSN_CODES.
17506         * lra.c (insn_code_data): Update accordingly.
17507         (finish_insn_code_data_once, get_static_insn_data): Likewise.
17508         * recog.h (target_recog): Likewise.
17509         (preprocess_insn_constraints): Change parameter to unsigned int.
17510         * recog.c (preprocess_insn_constraints): Likewise.
17511         (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
17512         * tree-vect-stmts.c (vectorizable_operation): Simplify.
17514 2015-08-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
17516         PR rtl-optimization/61657
17517         * loop-iv.c (iv_number_of_iterations): Declare up and down as
17518         unsigned.  Remove superflous uint64_t cast.
17520 2014-08-21  Felix Yang  <felix.yang@huawei.com>
17521             Jiji Jiang  <jiangjiji@huawei.com>
17523         * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
17524         argument and get builtin function code directly from CALL.
17525         (gimple_stringop_fixed_value): Modified accordingly.
17526         (gimple_stringops_transform, gimple_stringops_values_to_profile):
17527         Modified accordingly and only accept BUILT_IN_NORMAL string operations.
17529 2015-08-21  Dominik Vogt  <vogt@linux.vnet.ibm.com>
17531         * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
17533 2015-08-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
17535         * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
17536         to match.pd.
17537         Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
17538         Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
17539         Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
17540         Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
17541         Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
17542         Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
17543         Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
17544         Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
17545         Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
17546         Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
17548         * match.pd (SIN ) : New Operator.
17549         (TAN) : New Operator.
17550         (mult (SQRT@1 @0) @1) : New simplifier.
17551         (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
17552         (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
17553         (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
17554         (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
17555         (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
17556         (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
17557         (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
17558         (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
17559         (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
17560         (rdiv @0 (POW:s @1 @2)) : New simplifier.
17562 2015-08-21  Bin Cheng  <bin.cheng@arm.com>
17564         * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
17565         loop if EXPR is simplified to const value.
17567 2015-08-21  Yury Gribov  <y.gribov@samsung.com>
17569         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
17570         BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
17572 2015-08-21  Richard Biener  <rguenther@suse.de>
17574         PR middle-end/67285
17575         * gimple-fold.c (replace_stmt_with_simplification): Assert
17576         seq is empty when replacing a call with itself but different
17577         arguments.
17578         * gimple-match-head.c (maybe_push_res_to_seq): When pushing
17579         a call require that it is const.
17581 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17583         * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
17584         * builtins.c (get_object_alignment_2): Adjust.
17585         * varasm.c (align_variable): Likewise.
17586         (get_variable_align): Likewise.
17587         (build_constant_desc): Likewise.
17588         (force_const_mem): Likewise.
17589         * doc/tm.texi.in: Likewise.
17590         * doc/tm.texi: Regenerate.
17592 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17594         * genconfig.c (main): Always define HAVE_cc0.
17595         * recog.c (rest_of_handle_peephole2): Adjust.
17597 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17599         * reorg.c (relax_delay_slots): Don't use #if to check value of
17600         HAVE_cc0.
17602 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17604         * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
17605         * targhooks.c (default_have_conditional_execution): Adjust.
17607 2015-08-20  Richard Sandiford  <richard.sandiford@arm.com>
17609         * rtl.h (rtvec_all_equal_p): Declare.
17610         (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
17611         * rtl.c (rtvec_all_equal_p): New function.
17612         * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
17613         * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
17614         (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
17615         * config/arm/arm.c (neon_vdup_constant): Likewise.
17616         * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
17617         * config/tilegx/constraints.md (W, Y): Likewise.
17618         * config/tilepro/constraints.md (W, Y): Likewise.
17619         * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
17620         (classify_immediate): Use unwrap_const_vec_duplicate.
17621         * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
17622         (reg_or_v2s8bit_operand): Likewise.
17623         * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
17624         (reg_or_v4s8bit_operand): Likewise.
17626 2015-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17628         * config/rs6000/altivec.h (vec_pmsum_be): New #define.
17629         (vec_shasigma_be): New #define.
17630         * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
17631         (VPMSUMH): Likewise.
17632         (VPMSUMW): Likewise.
17633         (VPMSUMD): Likewise.
17634         (VPMSUM): New BU_P8V_OVERLOAD_2.
17635         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
17636         entries for VEC_MADD and VEC_VPMSUM.
17638 2015-08-20  Georg-Johann Lay  <avr@gjlay.de>
17640         * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
17641         Multiply argument avr_n_flash by 64 to match unit of "KiB".
17642         (avr_pgm_check_var_decl): Same.
17644 2015-08-20  Alan Lawrence  <alan.lawrence@arm.com>
17646         * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
17647         initialization of HFmode scalar type (float16_t) to...
17648         (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
17649         code.
17651         (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
17653         * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
17654         having an -mfp16-format.
17656 2015-08-20  Richard Sandiford  <richard.sandiford@arm.com>
17658         * config/i386/predicates.md (vector_all_ones_operand): Use
17659         CONSTM1_RTX to simplify definition.
17661 2015-08-20  Richard Biener  <rguenther@suse.de>
17663         * toplev.c (compile_file): Remove loop calling late_global_decl
17664         on all symbols.
17665         * varpool.c (varpool_node::assemble_decl): Call late_global_decl
17666         on decls we assembled.
17668 2015-08-20  James Greenhalgh  <james.greenhalgh@arm.com>
17670         * common/config/aarch64/aarch64-common.c
17671         (AARCH64_CPU_NAME_LENGTH): Delete.
17672         (aarch64_option_extension): New.
17673         (all_extensions): Likewise.
17674         (processor_name_to_arch): Likewise.
17675         (arch_to_arch_name): Likewise.
17676         (all_cores): New.
17677         (all_architectures): Likewise.
17678         (aarch64_get_extension_string_for_isa_flags): Likewise.
17679         (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
17680         architecture names.
17681         * config/aarch64/aarch64-protos.h
17682         (aarch64_get_extension_string_for_isa_flags): New.
17683         * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
17684         (aarch64_option_print): Get the string to print from
17685         aarch64_get_extension_string_for_isa_flags.
17686         (aarch64_declare_function_name): Likewise.
17687         * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
17688         (MCPU_TO_MARCH_SPEC): This.
17689         (ASM_CPU_SPEC): Use it.
17690         (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
17691         (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
17692         (EXTRA_SPEC_FUNCTIONS): Use it.
17694 2015-08-20  Simon Dardis  <simon.dardis@imgtec.com>
17696         * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
17697         expansion when !ISA_HAS_LWL_LWR.
17698         (mips_block_move_straight): Update the size of elements copied to
17699         account for alignment when !ISA_HAS_LWL_LWR.
17700         * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
17702 2015-08-19  Jiong Wang  <jiong.wang@arm.com>
17704         * expr.c (expand_expr_real_2): Check gimple statement during
17705         LSHIFT_EXPR expand.
17707 2015-08-19  Magnus Granberg  <zorry@gentoo.org>
17709         * common.opt (fstack-protector): Initialize to -1.
17710         (fstack-protector-all): Likewise.
17711         (fstack-protector-strong): Likewise.
17712         (fstack-protector-explicit): Likewise.
17713         * configure.ac: Add --enable-default-ssp.
17714         * defaults.h (DEFAULT_FLAG_SSP): New.  Default SSP to strong.
17715         * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
17716         -1.
17717         * doc/install.texi: Document --enable-default-ssp.
17718         * config.in: Regenerated.
17719         * configure: Likewise.
17721 2015-08-19  Alexandre Oliva  <aoliva@redhat.com>
17723         PR rtl-optimization/64164
17724         * cfgexpand.c (parm_maybe_byref_p): Renamed to...
17725         (parm_in_stack_slot_p): ... this.  Disregard mode, what
17726         matters is whether the parm will live in a pseudo or a stack
17727         slot.
17728         (expand_one_ssa_partition): Deal with params without a default
17729         def.  Disregard mode.
17730         * cfgexpand.h: Renamed function declaration.
17731         * tree-ssa-coalesce.c: Adjust.
17732         * function.c (split_complex_args): Allocate stack slot for
17733         unassigned parms before splitting.
17734         (parm_in_unassigned_mem_p): New.  Use it instead of
17735         parm_maybe_byref_p throughout this file.
17736         (assign_parm_setup_block): Use it.  Accept pseudos in the
17737         expand-assigned rtl.
17738         (assign_parm_setup_reg): Drop BLKmode requirement.
17739         (assign_parm_setup_stack): Allocate and fill in the address of
17740         unassigned MEM parms.
17742 2015-08-19  David Sherwood  <david.sherwood@arm.com>
17744         * genmodes.c (emit_mode_unit_size_inline): New function.
17745         (emit_mode_unit_precision_inline): New function.
17746         (emit_insn_modes_h): Emit new #define.  Emit new functions.
17747         (emit_mode_unit_size): New function.
17748         (emit_mode_unit_precision): New function.
17749         (emit_mode_adjustments): Add mode_unit_size adjustments.
17750         (emit_insn_modes_c): Emit new arrays.
17751         * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
17752         use new inline methods.
17754 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17756         * config/aarch64/aarch64.c (bit_count): Delete prototype
17757         and definition.
17758         (aarch64_print_operand): Use popcount_hwi instead of the above.
17760 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17762         * config/aarch64/aarch64-option-extensions.def: Delete obsolete
17763         comment.
17765 2015-08-19  Marek Polacek  <polacek@redhat.com>
17767         PR middle-end/67133
17768         * gimple-ssa-isolate-paths.c
17769         (insert_trap_and_remove_trailing_statements): Rename to ...
17770         (insert_trap): ... this.  Don't remove trailing statements; split
17771         block instead.
17772         (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
17774 2015-08-19  Mikael Morin  <mikael@gcc.gnu.org>
17776         PR other/67042
17777         * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
17778         conditionalize the whole on __GNUC__.  Add fallback code
17779         depending neither on undefined nor implementation-defined behaviour.
17781 2015-08-19  Jiong Wang  <jiong.wang@arm.com>
17783         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
17784         whitespaces with tab.
17786 2015-08-19  Florian Weimer  <fweimer@redhat.com>
17788         * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
17789         Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
17790         * prj-proc.adb (Process.Process_Expression_Variable_Decl):
17791         Move Name_Ids instantiation to the Prj.Proc package, to avoid
17792         trampolines.
17794 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17796         * config/arm/arm.c (bounds_check): Use %wd print format
17797         for HOST_WIDE_INT arguments.
17799 2015-08-18  Trevor Saunders  <tbsaunde@tbsaunde.org>
17801         * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
17802         dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
17803         mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
17804         signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
17805         tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
17806         tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
17807         tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
17808         tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
17809         tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
17810         typedefs.
17812 2015-08-18  trevor Saunders  <tbsaunde@tbsaunde.org>
17814         * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
17815         function.c, graphite-scop-detection.c, haifa-sched.c,
17816         ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
17817         tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
17818         varasm.c: Remove typedefs of structs.
17820 2015-08-18  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
17822         * config/rs6000/altivec.h (vec_adde): New define.
17823         (vec_addec): Likewise.
17824         (vec_double): Likewise.
17825         (vec_bperm): Likewise.
17826         (vec_gb): Likewise.
17827         * config/rs6000/rs6000-builtin.def (ADDE): New
17828         BU_ALTIVEC_OVERLOAD_3.
17829         (ADDEC): Likewise.
17830         (DOUBLE): New BU_VSX_OVERLOAD_1.
17831         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
17832         entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
17833         ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
17834         VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
17835         ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
17836         ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
17837         ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
17838         P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
17839         and P8V_BUILTIN_VEC_VBPERMQ.
17841 2015-08-18  Jason Merrill  <jason@redhat.com>
17843         * print-tree.c (print_node): Handle TREE_BINFO.
17845 2015-08-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
17847         PR middle-end/36757
17848         * builtins.c (expand_builtin_signbit): Add asserts to make sure
17849         we can expand BUILT_IN_SIGNBIT inline.
17850         * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
17851         * doc/extend.texi: Document the type-generic __builtin_signbit.
17853 2015-08-18  Richard Sandiford  <richard.sandiford@arm.com>
17855         PR rtl-optimization/67218
17856         * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
17857         (simplify_unary_operation_1): Use it.
17859 2015-08-18  Marek Polacek  <polacek@redhat.com>
17861         PR middle-end/67222
17862         * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
17863         if the call isn't valid.
17864         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
17865         gimple_call_builtin_p.
17866         (call_may_clobber_ref_p_1): Likewise.
17867         (stmt_kills_ref_p): Likewise.
17869 2015-08-18  Robert Suchanek  <robert.suchanek@imgtec.com>
17871         * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
17872         * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
17873         (mips_hard_regno_scratch_ok): Likewise.
17874         (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
17875         * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
17877 2015-08-18  Bin Cheng  <bin.cheng@arm.com>
17879         * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
17880         (determine_value_range): Call refine_value_range_using_guard for
17881         each loop initial condition to improve value range.
17883 2015-08-17  Aldy Hernandez  <aldyh@redhat.com>
17885         * config/i386/i386.c: Remove include of fibheap.h.
17887 2015-08-17  Richard Biener  <rguenther@suse.de>
17889         PR tree-optimization/67221
17890         * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
17891         (sccvn_dom_walker::before_dom_children): Mark backedges of
17892         non-executable blocks as not executable.
17894 2015-08-17  David Sherwood  <david.sherwood@arm.com>
17896         * config/arm/arm.c (neon_element_bits): Replace call to
17897         GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
17898         * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
17899         (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
17900         (neon_vdup_lane<mode>): Likewise.
17901         * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
17902         (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
17903         (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
17904         * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
17905         * config/spu/spu.c (arith_immediate_p): Likewise.
17906         * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
17907         * expr.c (expand_expr_real_2): Likewise.
17908         * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
17909         * simplify-rtx.c (simplify_immed_subreg): Likewise.
17910         * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
17911         * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
17912         New variable.
17913         * fold-const.c (fold_binary_loc): Replace call to
17914         GET_MODE_PRECISION (GET_MODE_INNER (m)) with
17915         GET_MODE_UNIT_PRECISION (m).
17917 2015-08-17  Mike Stump  <mikestump@comcast.net>
17919         * config/arm/arm.c (arm_block_move_unaligned_straight):
17920         Emit normal move instead of unaligned load when source or destination
17921         are appropriately aligned.
17923 2015-08-17  Richard Biener  <rguenther@suse.de>
17924             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
17926         PR middle-end/16107
17927         * match.pd (div (coss (op @0) : New simplifier.
17929 2015-08-14  Alexandre Oliva  <aoliva@redhat.com>
17931         PR rtl-optimization/64164
17932         PR bootstrap/66978
17933         PR middle-end/66983
17934         PR rtl-optimization/67000
17935         PR middle-end/67034
17936         PR middle-end/67035
17937         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
17938         * tree-ssa-copyrename.c: Removed.
17939         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
17940         -ftree-coalesce-vars.
17941         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
17942         * common.opt (ftree-copyrename): Ignore.
17943         (ftree-coalesce-inlined-vars): Likewise.
17944         * doc/invoke.texi: Remove the ignored options above.
17945         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
17946         * tree-ssa-coalesce.h: ... here.
17947         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
17948         headers required by it.
17949         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
17950         across variables when flag_tree_coalesce_vars.  Check register
17951         use and promoted modes to allow coalescing.  Do not coalesce
17952         maybe-byref parms with SSA_NAMEs of other variables, or
17953         anonymous SSA_NAMEs.  Moved to tree-ssa-coalesce.c.
17954         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
17955         with its member functions to tree-ssa-coalesce.c.
17956         (var_map_base_init): Likewise.  Renamed to
17957         compute_samebase_partition_bases.
17958         (partition_view_normal): Drop want_bases parameter.
17959         (partition_view_bitmap): Likewise.
17960         * tree-ssa-live.h: Adjust declarations.
17961         * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
17962         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
17963         default defs at the entry point.
17964         (dump_part_var_map): New.
17965         (compute_optimized_partition_bases): New, called by...
17966         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
17967         of compute_samebase_partition_bases.  Adjust.
17968         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
17969         * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
17970         (ssa_default_def_partition): New.
17971         (get_rtl_for_parm_ssa_default_def): New.
17972         (align_local_variable, add_stack_var): Support anonymous SSA
17973         names.
17974         (defer_stack_allocation): Likewise.  Declare earlier.
17975         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
17976         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
17977         Do no record deferred-allocation marker in
17978         SA.partition_to_pseudo.
17979         (expand_stack_vars): Adjust check for the marker in it.
17980         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
17981         redundant MEM attr setting.
17982         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
17983         from...
17984         (expand_one_stack_var): ... this.  New wrapper to check and
17985         skip already expanded SSA partitions.
17986         (record_alignment_for_reg_var): New, factored out of...
17987         (expand_one_var): ... this.
17988         (expand_one_ssa_partition): New.
17989         (adjust_one_expanded_partition_var): New.
17990         (expand_one_register_var): Check and skip already expanded SSA
17991         partitions.
17992         (expand_used_vars): Don't create DECLs for anonymous SSA
17993         names.  Expand all SSA partitions, then adjust all SSA names.
17994         (pass::execute): Replace the loops that set
17995         SA.partition_to_pseudo from partition leaders and cleared
17996         DECL_RTL for multi-location variables, and that which used to
17997         rename vars and set attrs, with one that clears DECL_RTL and
17998         checks that PARMs and RESULTs default_defs match DECL_RTL.
17999         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
18000         * emit-rtl.c: Include stor-layout.h.
18001         (set_reg_attrs_for_parm): Handle NULL decl.
18002         (set_reg_attrs_for_decl_rtl): Take mode from expression if
18003         it's not a DECL.
18004         * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
18005         rather than its possibly-NULL DECL.
18006         * explow.c (promote_ssa_mode): New.
18007         * explow.h (promote_ssa_mode): Declare.
18008         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
18009         (read_complex_part): Export.
18010         * expr.h (read_complex_part): Declare.
18011         * cfgexpand.h (parm_maybe_byref_p): Declare.
18012         * function.c: Include cfgexpand.h.
18013         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
18014         (use_register_for_parm_decl): Wrapper for the above to
18015         special-case the result_ptr.
18016         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
18017         (split_complex_args): Take assign_parm_data_all argument.
18018         Pass it to rtl_for_parm.  Set up rtl and context for split
18019         args.  Reset complex parm before fetching its default decl
18020         rtl.
18021         (assign_parms_unsplit_complex): Use the default-def complex
18022         parm rtl if it matches the components.
18023         (assign_parms_augmented_arg_list): Adjust.
18024         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
18025         multiple locations.  Recognize split complex args.
18026         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
18027         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
18028         (assign_parm_setup_block): Prefer SSA-assigned location, and
18029         fill in its address if the memory location of a maybe-byref
18030         parm was not assigned by cfgexpand.
18031         (assign_parm_setup_reg): Likewise.  Adjust its mode as
18032         needed.  Use entry_parm for equiv if stack_parm is NULL.  Make
18033         sure passed_pointer parms don't need conversion.  Copy address
18034         or value as needed.
18035         (assign_parm_setup_stack): Prefer SSA-assigned location.
18036         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
18037         rtl before testing for pointer bounds.  Special-case result_ptr.
18038         (expand_function_start): Maybe reset DECL_RTL of result.
18039         Prefer SSA-assigned location for result and static chain.
18040         Factor out DECL_RESULT and SET_DECL_RTL.  Convert static chain
18041         to Pmode if needed, from H.J. Lu  <hongjiu.lu@intel.com>.
18042         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
18043         anonymous SSA names.  Use promote_ssa_mode.
18044         (get_temp_reg): Likewise.
18045         (remove_ssa_form): Adjust.
18046         * stor-layout.c (layout_decl): Don't set mem attributes of
18047         non-MEMs.
18048         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
18049         and get its reg_usage for reg invalidation.
18050         (compute_bb_dataflow): Pass it insn.
18051         (emit_notes_in_bb): Likewise.
18053 2015-08-14  Marek Polacek  <polacek@redhat.com>
18055         * tree-core.h (tree_base): Fix typo.
18057 2015-08-14  Marek Polacek  <polacek@redhat.com>
18059         PR middle-end/67133
18060         * gimple.c (infer_nonnull_range_by_attribute): Check that the
18061         nonnull argument position is not outside function arguments.
18063 2015-08-14  Matthew Wahab  <matthew.wahab@arm.com>
18065         PR target/67143
18066         * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
18067         'lconst_atomic' with 'const_atomic'.
18068         (atomic_fetch_<optab><mode>): Likewise.
18069         (atomic_<optab>_fetch<mode>): Likewise.
18070         * config/aarch64/iterators.md (lconst-atomic): Move below
18071         'const_atomic'.
18072         (const_atomic): New.
18074 2015-08-14  Thomas Schwinge  <thomas@codesourcery.com>
18075             Bernd Schmidt  <bernds@codesourcery.com>
18077         * config/nvptx/nvptx.c (nvptx_option_override): Don't override
18078         debug options.
18079         * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
18080         (DWARF2_DEBUGGING_INFO): Don't define.
18081         * debug.h (dwarf2_lineno_debug_hooks): Declare.
18082         * toplev.c (process_options): Add a case for it.
18083         * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
18084         (dwarf2out_init): Skip most initializations if
18085         DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
18086         case.
18087         * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
18088         DWARF2_LINENO_DEBUGGING_INFO.
18089         * opts.c (set_debug_level): Likewise.
18091 2015-08-14  James Greenhalgh  <james.greenhalgh@arm.com>
18093         * config/arm/types.md (is_neon_type): Add missing types.
18095 2015-08-14  Yuri Rumyantsev  <ysrumyan@gmail.com>
18097         * config/i386/driver-i386.c (host_detect_local_cpu): Add support
18098         for skylake.
18099         * config/i386/i386.c (PTA_SKYLAKE): New macros.
18100         (processor_alias_table): Add skylake description.
18101         (enum processor_model): Add skylake processor.
18102         (arch_names_table): Add skylake record.
18103         * doc/invoke.texi: Add skylake item.
18105 2015-08-13  Andrew MacLeod  <amacleod@redhat.com>
18107         * ira-int.h: Include recog.h.
18108         * ira-build.c: Don't include recog.h.
18109         * ira-color.c: Likewise.
18110         * ira-conflicts.c: Likewise.
18111         * ira-costs.c: Likewise.
18112         * ira-emit.c: Likewise.
18113         * ira-lives.c: Likewise.
18114         * ira.c: Likewise.
18115         * sched-deps.c: Likewise.
18116         * sel-sched.c: Likewise.
18117         * target-globals.c: Likewise.
18119 2015-08-13  Richard Sandiford  <richard.sandiford@arm.com>
18121         PR bootstrap/55035
18122         * reload1.c (elimination_costs_in_insn): Make it obvious to the
18123         compiler that the n_dups and n_operands loop bounds are invariant.
18125 2015-08-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18127         * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
18128         expressions in A and B.
18130 2015-08-13  Richard Biener  <rguenther@suse.de>
18132         * tree.c (nonnull_arg_p): Move from ...
18133         * tree-vrp.c (nonnull_arg_p): ... here.
18134         * tree.h (nonnull_arg_p): Declare.
18135         * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
18136         here, register ptr != 0 for nonnull_arg_p pointer arguments.
18137         Properly initialize static chain and by-reference result pointer.
18138         (run_scc_vn): Adjust.
18140 2015-08-13  Robert Suchanek  <robert.suchanek@imgtec.com>
18142         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
18143         TUNE_I6400.
18145 2015-08-13  Matthew Wahab  <matthew.wahab@arm.com>
18147         * config/aarch64/aarch64-protos.h
18148         (aarch64_gen_atomic_cas): Declare.
18149         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
18150         Choose appropriate instruction pattern for the target.
18151         (aarch64_gen_atomic_cas): New.
18152         * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
18153         (atomic_compare_and_swap<mode>_1): Rename to
18154         aarch64_compare_and_swap<mode>.  Fix some indentation.
18155         (aarch64_compare_and_swap<mode>_lse): New.
18156         (aarch64_atomic_cas<mode>): New.
18158 2015-08-13  Matthew Wahab  <matthew.wahab@arm.com>
18160         * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
18161         (TARGET_LSE): New.
18163 2015-08-13  Richard Biener  <rguenther@suse.de>
18165         PR tree-optimization/67191
18166         * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
18167         assert we value-numbered last stmts operand because it can validly
18168         trigger for unreachable code.
18170 2015-08-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18172         PR rtl-optimization/67103
18173         * ifcvt.c (noce_try_store_flag_constants): Move
18174         x = (-(test != 0) & (b - a)) + a transformation to...
18175         (noce_try_cmove): ... Here.  Try it if normal conditional
18176         move fails.
18178 2015-08-13  Robert Suchanek  <robert.suchanek@imgtec.com>
18180         * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
18181         pseudo-processors.
18182         * config/mips/mips.md (processor): Remove w32 and w64.
18184 2015-08-13  Richard Biener  <rguenther@suse.de>
18186         PR tree-optimization/66502
18187         PR tree-optimization/67167
18188         * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
18189         backedge arguments.
18190         (vn_phi_lookup): Adjust.
18191         (vn_phi_insert): Likewise.
18192         (visit_phi): Prefer to value-number to another PHI node
18193         over value-numbering to a PHI argument.
18194         (init_scc_vn): Mark DFS back edges.
18196 2015-08-13  Richard Biener  <rguenther@suse.de>
18198         * gimple.h (gcall::code_): New constant static member.
18199         (gcond::code_): Likewise.
18200         * gimple.c (gcall::code_): Define.
18201         (gcond::code_): Likewise.
18202         (is_a_helper <const gcond *>): Add.
18203         (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
18204         and forward to a new gcall overload with less checking and a
18205         cheaper way to access the operand.
18206         (gimple_call_lhs_ptr): Likewise.
18207         (gimple_call_set_lhs): Likewise.
18208         (gimple_call_internal_p): Likewise.
18209         (gimple_call_with_bounds_p): Likewise.
18210         (gimple_call_set_with_bounds): Likewise.
18211         (gimple_call_internal_fn): Likewise.
18212         (gimple_call_set_ctrl_altering): Likewise.
18213         (gimple_call_ctrl_altering_p): Likewise.
18214         (gimple_call_fntype): Likewise.
18215         (gimple_call_fn): Likewise.
18216         (gimple_call_fn_ptr): Likewise.
18217         (gimple_call_set_fndecl): Likewise.
18218         (gimple_call_fndecl): Likewise.
18219         (gimple_call_chain): Likewise.
18220         (gimple_call_num_args): Likewise.
18221         (gimple_call_arg): Likewise.
18222         (gimple_call_arg_ptr): Likewise.
18223         (gimple_call_set_arg): Likewise.
18224         (gimple_call_noreturn_p): Likewise.
18225         (gimple_cond_code): Likewise.
18226         (gimple_cond_lhs): Likewise.
18227         (gimple_cond_rhs): Likewise.
18228         (gimple_has_lhs): Reduce checking.
18230 2015-08-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
18232         PR middle-end/25529
18233         * match.pd (div (mult @0 @1) @1) : New simplifier.
18235 2015-08-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
18237         PR target/67071
18238         * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
18239         predicate to allow construction of vector constants using the
18240         VSLDOI vector shift instruction.
18242         * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
18243         declaration.
18245         * config/rs6000/rs6000.c (vspltis_shifted): New function to return
18246         the number of bytes to be shifted left and filled in with either
18247         all zero or all one bits.
18248         (gen_easy_altivec_constant): Call vsplitis_shifted if no other
18249         methods exist.
18250         (output_vec_const_move): On power8, generate XXLORC to generate
18251         a vector constant with all 1's. Do a split if we need to use a
18252         VSLDOI instruction.
18254         * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
18255         properly test for the MSB.
18257         * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
18258         vector constants that can be created with VSLDOI.
18260 2015-08-11  Trevor Saunders  <tbsaunde@tbsaunde.org>
18262         revert:
18263         * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
18264         gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
18265         ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
18266         omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
18267         tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
18268         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
18269         tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
18270         tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
18271         vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
18273 2015-08-12  Max Filippov  <jcmvbkbc@gmail.com>
18275         * config/xtensa/constraints.md (define_constraint "Y"): New
18276         constraint.
18277         * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
18278         * config/xtensa/linux.h (ASM_SPEC): Likewise.
18279         * config/xtensa/predicates.md (move_operand): Match constants
18280         and symbols in the presence of TARGET_AUTO_LITPOOLS.
18281         * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
18282         immediate references to TLS data.
18283         (xtensa_emit_move_sequence): Don't force constants to memory in
18284         the presence of TARGET_AUTO_LITPOOLS.
18285         (print_operand): Add 'y' format, same as default, but capable of
18286         printing SF mode constants as well.
18287         * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
18288         (movsf_internal): Add movi pattern that loads literal.
18289         (movsf, movdf): Don't force constants to memory in the presence
18290         of TARGET_AUTO_LITPOOLS.
18291         (movdf_internal): Add 'Y' constraint.
18292         * config/xtensa/xtensa.opt (mauto-litpools): New option.
18293         * doc/invoke.text (Xtensa options): Document -mauto-litpools.
18295 2015-08-12  Matthew Wahab  <matthew.wahab@arm.com>
18297         * config/arm/arm-fpus.def: Replace booleans with feature flags.
18298         Update comment.
18299         * config/arm/arm.c (ARM_FPU): Update macro.
18300         * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
18301         (TARGET_FP16): Likewise.
18302         (TARGET_CRYPTO): Likewise.
18303         (TARGET_NEON): Likewise.
18304         (struct arm_fpu_desc): Remove fields neon, fp16 and crypto.  Add
18305         field features.
18307 2015-08-12  Tom de Vries  <tom@codesourcery.com>
18309         PR other/67092
18310         PR other/67098
18311         * doc/install.texi: Remove --with_host_libstdcxx item.  Update
18312         --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
18313         accordingly.  Mention default for --with-stage1-ldflags.
18315 2015-08-12  Matthew Wahab  <matthew.wahab@arm.com>
18317         * config/arm/arm.h (arm_fpu_feature_set): New.
18318         (ARM_FPU_FSET_HAS): New.
18319         (FPU_FL_NONE): New.
18320         (FPU_FL_NEON): New.
18321         (FPU_FL_FP16): New.
18322         (FPU_FL_CRYPTO): New.
18324 2015-08-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18326         * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
18327         after -mcmodel=large -fPIC sorry.
18329 2015-08-12  Richard Biener  <rguenther@suse.de>
18331         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
18332         comparison operand order and commutative ternary op operand order.
18333         (sccvn_dom_walker::cond_stack): New state to track temporary
18334         expressions.
18335         (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
18336         no longer valid.
18337         (sccvn_dom_walker::record_cond): Add a single temporary conditional
18338         expression.
18339         (sccvn_dom_walker::record_conds): Add a temporary conditional
18340         expressions and all related expressions also true/false.
18341         (sccvn_dom_walker::before_dom_children): Record temporary
18342         expressions based on the controlling condition of a single
18343         predecessor.  When trying to simplify a conditional statement
18344         lookup expressions we might have inserted earlier.
18346 2015-08-12  Yvan Roux  <yvan.roux@linaro.org>
18348         PR target/67127
18349         * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
18350         to ARM core registers.
18352 2015-08-12  Nathan Sidwell  <nathan@acm.org>
18354         * tree-vrp.c (simplify_min_or_max_using_ranges): New.
18355         (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
18357 2015-08-12  Simon Dardis  <simon.dardis@imgtec.com>
18359         * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
18360         line with comments.
18361         * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
18363 2015-08-12  Richard Biener  <rguenther@suse.de>
18365         * gimple.h (remove_pointer): New trait.
18366         (GIMPLE_CHECK2): New inline template function.
18367         (gassign::code_): New constant static member.
18368         (is_a_helper<const gassign *>): Add.
18369         (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
18370         and forward to a new gassign overload with less checking and a
18371         cheaper way to access the operand.
18372         (gimple_assign_lhs_ptr): Likewise.
18373         (gimple_assign_set_lhs): Likewise.
18374         (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
18375         Likewise.
18376         (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
18377         Likewise.
18378         (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
18379         Likewise.
18380         (gimple_assign_rhs_code): Likewise.
18381         * gimple.c (gassign::code_): Define.
18383 2015-08-12  Richard Biener  <rguenther@suse.de>
18385         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
18386         Eliminate edges marked as not executable by SCCVN.
18387         * tree-ssa-sccvn.c: Include gimple-iterator.h.
18388         (cond_dom_walker): Rename to sccvn_dom_walker.
18389         (sccvn_dom_walker::before_dom_children): Value-number defs
18390         of all stmts.
18391         (run_scc_vn): Remove loop value-numbering all SSA names.
18392         Drop not visited SSA names to varying.
18394 2015-08-11  Trevor Saunders  <tbsaunde@tbsaunde.org>
18396         * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
18397         gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
18398         ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
18399         omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
18400         tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
18401         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
18402         tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
18403         tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
18404         vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
18406 2015-08-11  Uros Bizjak  <ubizjak@gmail.com>
18408         PR target/66954
18409         * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
18410         to enum feature_priority and feature_list.
18411         (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
18412         and isa_names_table.
18414 2015-08-11  Yuri Rumyantsev  <ysrumyan@gmail.com>
18416         * tree-vect-stmts.c (vectorizable_shift): Add missed test on
18417         vect_induction_def.
18419 2015-08-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18421         PR c/66098
18422         PR c/66711
18423         * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
18424         account when deciding what was the command-line status.
18426 2015-08-11  Nathan Sidwell  <nathan@acm.org>
18428         * tree-vrp.c (simplify_abs_using_ranges): Simplify.
18430         * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
18431         we're not the only contributor to target phi.
18433 2015-08-11  Jiong Wang  <jiong.wang@arm.com>
18435         * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
18436         FIXED_REG0.
18438 2015-08-11  Tom de Vries  <tom@codesourcery.com>
18440         * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
18442 2015-08-10  H.J. Lu  <hongjiu.lu@intel.com>
18444         * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
18445         with CPU_SLM.
18446         * config/i386/i386.md (cpu): Remove knl.
18448 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
18450         PR libgomp/65742
18451         PR middle-end/66332
18452         * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
18453         open-coded sequence.
18454         * omp-low.c (oacc_process_reduction_data): Remove handline of
18455         GOMP_DEVICE_HOST_NONSHM.
18457         * lto-streamer-in.c (lto_input_mode_table): Adjust to
18458         GET_MODE_INNER changes.
18460 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
18461             Ilya Verbin  <ilya.verbin@intel.com>
18463         * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
18465 2015-08-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18467         * doc/options.texi (EnabledBy): Document that the argument must be
18468         a Common option.
18469         * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
18470         Not enabled by -Wall.
18471         * optc-gen.awk: Give nicer error messages. Detect if the argument
18472         of EnabledBy is not a Common option.
18473         * common.opt (Wnull-dereference): Not enabled by -Wall.
18474         * opt-functions.awk (lang_enabled_by): Nicer error messages.
18476 2015-08-09  H.J. Lu  <hongjiu.lu@intel.com>
18478         * config/i386/driver-i386.c (host_detect_local_cpu): Treat
18479         model == 0x4f as Broadwell.
18481 2015-08-08  Segher Boessenkool  <segher@kernel.crashing.org>
18483         PR rtl-optimization/67028
18484         * combine.c (simplify_comparison): Fix comment.  Rearrange code.
18485         Add test to see if a const_int fits in the new mode.
18487 2015-08-07  DJ Delorie  <dj@redhat.com>
18489         * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
18491 2015-08-07  H.J. Lu  <hongjiu.lu@intel.com>
18493         PR rtl-optimization/67029
18494         * ira-color.c: Include "recog.h" before including "ira-int.h".
18495         * target-globals.c: Likewise.
18496         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
18497         adds an alternative_mask argument and use it instead of
18498         preferred_alternatives.
18499         * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
18500         * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
18501         * sched-deps.c: Include "ira-int.h" after including "ira.h".
18502         (sched_analyze_insn): Update call to
18503         ira_implicitly_set_insn_hard_regs.
18504         * sel-sched.c: Include "ira-int.h" after including "ira.h".
18505         (implicit_clobber_conflict_p): Update call to
18506         ira_implicitly_set_insn_hard_regs.
18508 2015-08-06  Uros Bizjak  <ubizjak@gmail.com>
18510         * Makefile.in (.INTERMEDIATE): Add gpl.pod.
18512 2015-08-07  Kaz Kojima  <kkojima@gcc.gnu.org>
18514         PR target/67002
18515         * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
18516         currently_expanding_to_rtl is set.
18518 2015-08-06  Yaakov Selkowitz  <yselkowi@redhat.com>
18520         * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
18521         * configure: Regenerate.
18523 2015-08-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18524             Jiong Wang  <jiong.wang@arm.com>
18526         * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
18527         * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
18528         (REG_CLASS_NAMES): Likewise.
18529         (REG_CLASS_CONTENTS): Likewise.
18530         * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
18531         (aarch64_register_move_cost): Likewise.
18532         (aarch64_load_symref_appropriately): Invoke the new added pattern if
18533         possible.
18534         * config/aarch64/constraints.md (Uc0): New constraint.
18536 2015-08-06  Jiong Wang  <jiong.wang@arm.com>
18538         * config/aarch64/constraints.md (Usf): Add the test of
18539         aarch64_is_noplt_call_p.
18541 2015-08-06  Jiong Wang  <jiong.wang@arm.com>
18543         * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
18544         declaration.
18545         * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
18546         * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
18547         (call_symbol): Likewise.
18549 2015-08-06  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
18551         * tree-vect-patterns.c (vect_recog_mult_pattern): New function
18552         for vectorizing multiplication patterns.
18553         * tree-vectorizer.h: Adjust the number of patterns.
18555 2015-08-06  Uros Bizjak  <ubizjak@gmail.com>
18557         * config/i386/sse.md (*vec_concatv2df): Declare added
18558         alternatives as sselog type.
18560 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
18562         * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
18563         all GPRs.
18565 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
18567         * config/s390/s390.c (s390_expand_tbegin): Expand either
18568         tbegin_1_z13 or tbegin_1 depending on VX flag.
18569         * config/s390/s390.md ("tbegin_1_z13"): New expander.
18571 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
18573         * config/s390/s390.opt: Clarify description for -mzvector
18574         * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
18575         -mzvector.
18577 2015-08-06  Richard Biener  <rguenther@suse.de>
18579         * gimple.h (gimple_call_set_fn): Access op member directly.
18580         (gimple_call_chain_ptr): Likewise.
18581         (gimple_call_set_chain): Likewise.
18582         (gimple_cond_lhs_ptr): Likewise.
18583         (gimple_cond_set_lhs): Likewise.
18584         (gimple_cond_rhs_ptr): Likewise.
18585         (gimple_cond_set_rhs): Likewise.
18586         (gimple_cond_true_label): Likewise.
18587         (gimple_cond_set_true_label): Likewise.
18588         (gimple_cond_set_false_label): Likewise.
18589         (gimple_cond_false_label): Likewise.
18590         (gimple_label_label): Likewise.
18591         (gimple_label_set_label): Likewise.
18592         (gimple_goto_set_dest): Likewise.
18593         (gimple_asm_input_op): Likewise.
18594         (gimple_asm_input_op_ptr): Likewise.
18595         (gimple_asm_set_input_op): Likewise.
18596         (gimple_asm_output_op): Likewise.
18597         (gimple_asm_output_op_ptr): Likewise.
18598         (gimple_asm_set_output_op): Likewise.
18599         (gimple_asm_clobber_op): Likewise.
18600         (gimple_asm_set_clobber_op): Likewise.
18601         (gimple_asm_label_op): Likewise.
18602         (gimple_asm_set_label_op): Likewise.
18603         (gimple_switch_index): Likewise.
18604         (gimple_switch_index_ptr): Likewise.
18605         (gimple_return_retval_ptr): Likewise.
18606         (gimple_return_retval): Likewise.
18607         (gimple_return_set_retval): Likewise.
18608         (gimple_switch_set_index): Likewise.  Remove superfluous GIMPLE_CHECK.
18609         (gimple_switch_label): Likewise.
18610         (gimple_switch_set_label): Likewise.
18612 2015-08-06  Richard Biener  <rguenther@suse.de>
18614         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
18615         bool comparison canonicalization and restrict to integers.
18617 2015-08-05  Andrew MacLeod  <amacleod@redhat.com>
18619         * coretypes.h (enum symbol_visibility): Relocate here.
18620         * flag-types.h (enum symbol_visibility): Remove.
18621         * tree-core.h (enum symbol_visibility): Remove.
18623 2015-08-05  Lynn Boger  <laboger@linux.vnet.ibm.com>
18625         PR target/66870
18626         * config/rs6000/rs6000.c (rs6000_emit_prologue): Check
18627         for no_split_stack function attribute along with
18628         flag_split_stack.
18629         (rs6000_expand_split_stack_prologue): Likewise.
18631 2015-08-05  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18632             Jeff Law  <law@redhat.com>
18634         PR c/16351
18635         * doc/invoke.texi (Wnull-dereference): New.
18636         * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
18637         * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
18638         Warn for potential NULL dereferences.
18639         (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
18640         * ubsan.c (instrument_nonnull_arg): Call
18641         infer_nonnull_range_by_attribute.
18642         (instrument_nonnull_return): Likewise.
18643         * common.opt (Wnull-dereference); New.
18644         * gimple.c (infer_nonnull_range): Remove bool arguments.
18645         (infer_nonnull_range_by_dereference): New.
18646         (infer_nonnull_range_by_attribute): New.
18647         * gimple.h: Update declarations.
18649 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
18651         * gensupport.c (sequence_num): Replace with...
18652         (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
18653         ...these new variables.
18654         (init_rtx_reader_args_cb): Update accordingly.
18655         (get_num_code_insns): Likewise.
18656         (read_md_rtx): Rework to use a while loop and get_c_test.
18657         Use the new counters.  Remove redundant DEFINE_SUBST case.
18658         * genoutput.c (gen_split): Delete.
18659         (main): Don't call it.
18661 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
18663         * gensupport.h (get_c_test): Declare.
18664         * gensupport.c (get_c_test): New function.
18665         * genconditions.c (main): Use it.
18666         * genrecog.c (validate_pattern): Likewise.
18667         (match_pattern_1): Likewise.  Remove c_test argument.
18668         (match_pattern): Update accordingly and remove c_test argument.
18669         (main): Update accordingly.
18671 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
18673         * gensupport.h (get_num_insn_codes): Declare.
18674         * gensupport.c (get_num_insn_codes): New function.
18675         * genattrtab.c (optimize_attrs): Rename max_insn_code to
18676         num_insn_codes.
18677         (main): Likewise.  Use get_num_insn_codes.
18678         * gencodes.c (main): Remove "last" and use get_num_insn_codes.
18680 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
18682         PR middle-end/66311
18683         * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
18684         is zero- rather than sign-extended.
18686 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
18688         * target-insns.def (can_extend): Delete.
18690 2015-08-05  Richard Biener  <rguenther@suse.de>
18692         PR tree-optimization/67121
18693         * tree-if-conv.c (combine_blocks): Clear range-info produced
18694         by stmts no longer executed conditionally.
18696 2015-08-05  Nick Clifton  <nickc@redhat.com>
18698         * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
18699         to allow identical far pointers to remain.
18701 2015-08-05  Richard Biener  <rguenther@suse.de>
18703         PR middle-end/67120
18704         * match.pd: Compare address bases with == if they are decls
18705         or SSA names, not operand_equal_p.  Otherwise fail.
18707 2015-08-05  Richard Biener  <rguenther@suse.de>
18709         PR tree-optimization/67055
18710         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
18711         NULL gimple_block.
18713         * g++.dg/torture/pr67055.C: New testcase.
18715 2015-08-05  Kirill Yukhin  <kirill.yukhin@intel.com>
18717         * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
18718         noavx512vl.
18719         (define_attr "enabled"): Handle avx521vl and noavx512vl.
18720         * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
18721         AVX-512 alternative out of SSE.
18722         (define_insn "*vec_concatv2df"): Ditto.
18724 2015-08-05  Kirill Yukhin  <kirill.yukhin@intel.com>
18726         * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
18727         CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
18728         CODE_FOR_avx_ptestv4di.
18729         * config/i386/sse.md (define_mode_iterator V_AVX): New.
18730         (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
18731         (define_insn "avx_ptest256"): Merge this ...
18732         (define_insn "sse4_1_ptest"): And this ...
18733         (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
18735 2015-08-05  Richard Biener  <rguenther@suse.de>
18737         PR tree-optimization/67109
18738         * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
18739         against too big groups.  Print whether this is a load or store
18740         group.  Rename from ...
18741         (vect_analyze_group_access): ... this which is now a wrapper
18742         dissolving an invalid group.
18743         (vect_analyze_data_ref_accesses): Print whether this is a load
18744         or store group.
18746 2015-08-05  Richard Biener  <rguenther@suse.de>
18748         PR middle-end/67107
18749         * match.pd: Guard const_binop result checking against NULL_TREE
18750         result.
18752 2015-08-05  Kugan Vivekanandarajah  <kuganv@linaro.org>
18754         * cse.c (cse_insn): Restoring old behaviour for src_eqv
18755          when dest and value in the REG_EQUAL are same and dest
18756          is STRICT_LOW_PART.
18758 2015-08-04  Anatoly Sokolov  <aesok@post.ru>
18760         * config/moxie/moxie.h (PRINT_OPERAND,
18761           PRINT_OPERAND_ADDRESS): Remove macros.
18762         * config/moxie/moxie-protos.h (moxie_print_operand,
18763           moxie_print_operand_address): Remove declaration.
18764         * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
18765           TARGET_PRINT_OPERAND_ADDRESS): Define.
18766           (moxie_print_operand, moxie_print_operand_address): Make static.
18768 2015-08-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
18770         PR target/66731
18771         * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
18772         (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
18774 2015-08-04  Richard Biener  <rguenther@suse.de>
18776         * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
18777         generated code.
18778         (dt_operand::gen_gimple_expr): Adjust.
18780 2015-08-04  Richard Biener  <rguenther@suse.de>
18782         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
18783         bool compares on RHS.
18784         * match.pd: Add X ==/!= !X is false/true pattern.
18786 2015-08-04  Pawel Kupidura  <pawel.kupidura@arm.com>
18788         * config/aarch64/aarch64.c: Change inner loop statement cost
18789         to be consistent with other targets.
18791 2015-08-04  Christophe Lyon  <christophe.lyon@linaro.org>
18793         * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
18794         targets.
18796 2015-08-04  Nathan Sidwell  <nathan@codesourcery.com>
18798         * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
18799         (machine_function): Remove pseudos field.
18801 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18803         * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
18804         Exit early and use target_option_current_node if processing current
18805         pragma.
18807 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18809         * doc/extend.texi (AArch64 Function Attributes): New node.
18810         (AArch64 Pragmas): Likewise.
18812 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18814         * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
18815         Initialize simd builtins if TARGET_SIMD.
18816         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
18817         Make sure that the builtins are initialized only once no matter how
18818         many times the function is called.
18819         (aarch64_init_builtins): Unconditionally initialize crc builtins.
18820         (aarch64_relayout_simd_param): New function.
18821         (aarch64_simd_expand_args): Use above during argument expansion.
18822         * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
18823         simd builtins if TARGET_SIMD.
18824         * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
18825         prototype.
18826         (aarch64_relayout_simd_types): Likewise.
18828 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18830         * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
18831         * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
18832         (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
18833         * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
18834         static keyword.
18835         (aarch64_reset_previous_fndecl): New function.
18836         (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
18837         the string.
18838         * config/aarch64/aarch64-c.c: New file.
18839         * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
18840         Push and pop options at beginning and end.  Remove ifdef
18841         __ARM_FEATURE_CRC32.
18842         * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
18843         Add pragma +nothing+simd and +nothing+crypto where appropriate.
18844         * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
18845         * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
18846         Define prototype.
18847         (aarch64_register_pragmas): Likewise.
18848         (aarch64_reset_previous_fndecl): Likewise.
18849         (aarch64_process_target_attr): Likewise.
18850         (aarch64_override_options_internal): Likewise.
18852 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18854         * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
18855         New function.
18856         (aarch64_can_inline_p): Likewise.
18857         (TARGET_CAN_INLINE_P): Define.
18859 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18861         * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
18862         Remove static.  Handle OPT_mgeneral_regs_only,
18863         OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
18864         OPT_momit_leaf_frame_pointer.
18865         * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
18866         (aarch64_attr_opt_type): New enum.
18867         (aarch64_attribute_info): New struct.
18868         (aarch64_handle_attr_arch): New function.
18869         (aarch64_handle_attr_cpu): Likewise.
18870         (aarch64_handle_attr_tune): Likewise.
18871         (aarch64_handle_attr_isa_flags): Likewise.
18872         (aarch64_attributes): New table.
18873         (aarch64_process_one_target_attr): New function.
18874         (num_occurences_in_str): Likewise.
18875         (aarch64_process_target_attr): Likewise.
18876         (aarch64_option_valid_attribute_p): Likewise.
18877         (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
18878         * config/aarch64/aarch64-protos.h: Include input.h
18879         (aarch64_handle_option): Declare prototype.
18881 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18883         * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
18884         * config/aarch64/aarch64.c: Include target-globals.h
18885         (aarch64_previous_fndecl): New variable.
18886         (aarch64_set_current_function): New function.
18887         (TARGET_SET_CURRENT_FUNCTION): Define.
18889 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18891         * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
18892         (explicit_arch): Likewise.
18893         (x_aarch64_isa_flags): Likewise.
18894         (mgeneral-regs-only): Mark as Save.
18895         (mfix-cortex-a53-835769): Likewise.
18896         (mcmodel=): Likewise.
18897         (mstrict-align): Likewise.
18898         (momit-leaf-frame-pointer): Likewise.
18899         (mtls-dialect): Likewise.
18900         (master=): Likewise.
18901         * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
18902         (aarch64_isa_flags): Remove extern declaration.
18903         * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
18904         to indicate success or failure.
18905         (aarch64_validate_march): Likewise.
18906         (aarch64_validate_mtune): Likewise.
18907         (aarch64_isa_flags): Delete.
18908         (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
18909         instead of aarch64_isa_flags.
18910         (aarch64_get_tune_cpu): New function.
18911         (aarch64_get_arch): Likewise.
18912         (aarch64_override_options): Use above and set up explicit_tune_core
18913         and explicit_arch.
18914         (aarch64_print_extension): Move earlier in file.  Add isa_flags
18915         argument and use that instead of the global aarch64_isa_flags.
18916         (aarch64_option_save): New function.
18917         (aarch64_option_restore): Likewise.
18918         (aarch64_option_print): Likewise.
18919         (aarch64_declare_function_name): Likewise.
18920         (aarch64_start_file): Delete.
18921         (TARGET_ASM_FILE_START): Do not define.
18922         (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
18923         * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
18924         Declare prototype.
18926 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18928         * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
18929         flag_omit_leaf_frame_pointer to 2.
18931 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18933         * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
18934         define to 0 or 1.
18935         (TARGET_FIX_ERR_A53_835769): New macro.
18936         * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
18937         handling of opts->x_aarch64_fix_a53_err835769.
18938         (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
18939         than aarch64_fix_a53_err835769.
18940         * config/aarch64/aarch64-elf-raw.h: Update for above changes.
18941         * config/aarch64/aarch64-linux.h: Likewise.
18943 2015-08-04  Uros Bizjak  <ubizjak@gmail.com>
18945         * config/i386/i386.c (ix86_expand_int_movcc): Check result of
18946         ix86_expand_int_movcc as boolean.
18948 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18950         * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
18951         (aarch64_cpu_string): Likewise.
18952         (aarch64_tune_string): Likewise.
18953         * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
18954         (aarch64_parse_extension): Return aarch64_parse_opt_result.
18955         Add extra argument to put result into.
18956         (aarch64_parse_arch): Likewise.  Do not set selected_cpu.
18957         (aarch64_parse_cpu): Add arguments to put results into. Return
18958         aarch64_parse_opt_result.
18959         (aarch64_parse_tune): Likewise.
18960         (aarch64_override_options_after_change_1): New function.
18961         (aarch64_override_options_internal): New function.
18962         (aarch64_validate_mcpu): Likewise.
18963         (aarch64_validate_march): Likewise.
18964         (aarch64_validate_mtune): Likewise.
18965         (aarch64_override_options): Update to reflect above changes.
18966         Move some logic into aarch64_override_options_internal.
18967         Initialize target_option_default_node and target_option_current_node.
18968         (aarch64_override_options_after_change): Move logic into
18969         aarch64_override_options_after_change_1 and call it with global_options.
18970         (initialize_aarch64_code_model): Take a gcc_options pointer and use the
18971         flag values from that.
18973 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18975         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
18976         __ARM_ARCH_8A directly rather than with cpp_define_formatted.
18977         * config/aarch64/aarch64.c (struct processor): Add arch field.
18978         (all_architectures): Handle above, move above all_cores.
18979         (all_cores): Handle above.
18980         (aarch64_parse_arch): Handle above changes.
18981         * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
18982         above.  Update comments.
18983         (armv8.1-a): Likewise.
18984         * config/aarch64/aarch64-cores.def: Update according to above.
18985         * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
18986         * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
18987         aarch64_arch_driver_info.
18989 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18991         * config/aarch64/aarch64.c (struct processor): Add ident field.
18992         Rename core sched_core.
18993         (all_cores): Handle above changes.
18994         (all_architectures): Likewise.
18995         (aarch64_parse_arch): Likewise.
18996         (aarch64_override_options): Likewise.
18998 2015-08-04  Richard Biener  <rguenther@suse.de>
19000         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
19001         dispatching to fold_binary for GIMPLE_BINARY_RHS and for
19002         comparisons embedded in [VEC_]COND_EXPRs.
19004 2015-08-03  Abe Skolnik  <a.skolnik@samsung.com>
19006         * tree-if-conv.c: Fix various typos in comments.
19007         * tree-vect-stmts.c: Likewise.
19009 2015-08-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
19011         PR tree-optimization/67043
19012         * loop-invariant.c (move_invariant_reg): Recompute luids in loop
19013         preheader after hoisting invariant in it.
19014         (find_defs): Force recomputation of all luids.
19016 2015-08-03  Peter Bergner  <bergner@vnet.ibm.com>
19018         * config/rs6000/htm.md (tabort.): Restrict the source operand to
19019         using a base register.
19021 2015-08-03  David Malcolm  <dmalcolm@redhat.com>
19023         * main.c (main): Pass in NULL for toplev's external_timer.
19024         * timevar.c: Include coretypes.h.
19025         (class timer::named_items): New.
19026         (timer::named_items::named_items): New.
19027         (timer::named_items::~named_items): New.
19028         (timer::named_items::push): New.
19029         (timer::named_items::pop): New.
19030         (timer::named_items::print): New.
19031         (timer::timer): Initialize field "m_jit_client_items".
19032         (timer::~timer): New.
19033         (timer::push): Move bulk of implementation to...
19034         (timer::push_internal): ...here.  New function.
19035         (timer::pop): Move bulk of implementation to...
19036         (timer::pop_internal): ...here.  New function.
19037         (timer::push_client_item): New.
19038         (timer::pop_client_item): New.
19039         (timer::print_row): New function, taken from timer::print.
19040         (timer::print): Print "GCC items" header if we also have client
19041         items.  Move row-printing to timer::print_row.  Print any client
19042         items.
19043         (timer::get_topmost_item_name): New method.
19044         * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
19045         (TV_JIT_CLIENT_CODE): New.
19046         * timevar.h (timer::push_client_item): New declaration.
19047         (timer::pop_client_item): New declaration.
19048         (timer::get_topmost_item_name): New method.
19049         (timer::push_internal): New declaration.
19050         (timer::pop_internal): New declaration.
19051         (timer::print_row): New declaration.
19052         (timer::named_items): New declaration.
19053         (timer::m_jit_client_items): New field.
19054         (timer): Add friend class named_items.
19055         (auto_timevar::auto_timevar): Add timer param.
19056         (auto_timevar::~auto_timevar): Use field "m_timer".
19057         (auto_timevar::m_timer): New field.
19058         * toplev.c (initialize_rtl): Add g_timer as param when
19059         constructing auto_timevar instance.
19060         (toplev::toplev): Add "external_timer" param, and use it to
19061         initialize the "g_timer" global if non-NULL.
19062         (toplev::~toplev): If this created "g_timer", delete it.
19063         * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
19064         with "external_timer" timer *.
19066 2015-08-03  Alexander Basov <coohpt@gmail.com>
19068         PR middle-end/64744
19069         PR middle-end/48470
19070         PR middle-end/43404
19071         * cfgexpand.c (expand_one_var): Add check if stack is going to
19072         be used in naked function.
19073         * expr.c (expand_expr_addr_expr_1): Remove excess checking
19074         whether expression should not reside in MEM.
19075         * function.c (use_register_for_decl): Do not use registers for
19076         non-register things (volatile, float, BLKMode) in naked functions.
19078 2015-08-03  John David Anglin  <danglin@gcc.gnu.org>
19080         PR target/67060
19081         * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
19082         Adjust splits to match new pattern.
19084 2015-08-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
19086         * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
19087         (VEC_M): Likewise.
19088         (VEC_N): Likewise.
19089         (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
19090         point in VSX registers.
19092         * config/rs6000/constraints.md (wb constraint): Document unused
19093         w<x> constraint.
19094         (we constraint): Likewise.
19095         (wo constraint): Likewise.
19096         (wp constraint): New constraint for IEEE 128-bit floating point in
19097         VSX registers.
19098         (wq constraint): Likewise.
19100         * config/rs6000/predicates.md (easy_fp_constant): Add support for
19101         IEEE 128-bit floating point in VSX registers.
19102         (easy_scalar_constant): Likewise.
19104         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
19105         constraints (wp, wq) for IEEE 128-bit floating point in VSX
19106         registers.
19107         (rs6000_init_hard_regno_mode_ok): Likewise.
19109         * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
19110         floating point in VSX registers.
19111         (VSX_L): Likewise.
19112         (VSX_M): Likewise.
19113         (VSX_M2): Likewise.
19114         (VSm): Likewise.
19115         (VSs): Likewise.
19116         (VSr): Likewise.
19117         (VSa): Likewise.
19118         (VSv): Likewise.
19119         (vsx_le_permute_<mode>): Add support to properly swap bytes for
19120         IEEE 128-bit floating point in VSX registers on little endian.
19121         (vsx_le_undo_permute_<mode>): Likewise.
19122         (vsx_le_perm_load_<mode>): Likewise.
19123         (vsx_le_perm_store_<mode>): Likewise.
19124         (splitters for IEEE 128-bit fp moves): Likewise.
19126         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
19127         wq constraints.
19129         * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
19130         floating point in VSX registers.
19131         (VM2): Likewise.
19133         * doc/md.text (Machine Constraints): Document wp and wq
19134         constraints on PowerPC.
19136 2015-08-03  Jeff Law  <law@redhat.com>
19138         PR middle-end/66314
19139         PR gcov-profile/66899
19140         * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
19141         iterate over the jump threading paths when an element in the
19142         jump threading paths array is eliminated.
19144 2015-08-03  Segher Boessenkool  <segher@kernel.crashing.org>
19146         * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
19148 2015-08-03  Patrick Palka  <ppalka@gcc.gnu.org>
19150         * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
19151         is_use_properly_guarded the variable def_preds.  Free its
19152         contents before returning.
19153         (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
19154         (is_use_properly_guarded): Replace local variable def_preds with
19155         a parameter.  Adjust accordingly.  Only update *def_preds if it's
19156         the empty vector.
19158 2015-08-03  Richard Biener  <rguenther@suse.de>
19160         * genmatch.c (simplify::for_subst_vec): New member.
19161         (binary_ok): New helper for for lowering.
19162         (lower_for): Delay substituting operators into result expressions
19163         if we can merge the results eventually again.
19164         (capture_info::walk_result): Adjust for user_id appearing as
19165         result expression operator.
19166         (expr::gen_transform): Likewise.
19167         (dt_simplify::gen_1): Likewise.
19168         (dt_simplify::gen): Pass not substituted operators to tail
19169         functions or initialize local variable with it.
19170         (decision_tree::gen): Adjust function signature.
19171         * match.pd: Fix tests against global code and add default
19172         cases to switch stmts.
19174 2015-08-03  Richard Biener  <rguenther@suse.de>
19176         * genmatch.c (dt_simplify::gen): Create captures array
19177         with an initializer.
19179 2015-08-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19181         * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
19182         the host compiler is affected by placement new aliasing bug.
19183         * configure: Regenerate.
19184         * Makefile.in (ALIASING_FLAGS): New variable.
19185         (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
19187 2015-08-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
19189         PR target/66731
19190         * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
19191         (negmulsf3_vfp): Likewise.
19192         (muldf3negdf_vfp): Disable for -frounding-math.
19193         (mulsf3negsf_vfp): Likewise.
19194         * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
19195         fix MULT cost with -frounding-math.
19197 2015-08-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19199         * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
19200         when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
19201         explicit.  Prefer to add the flag whenever possible.
19202         (noce_process_if_block): Try noce_try_store_flag_constants before
19203         noce_try_cmove.
19205 2015-08-03  Richard Biener  <rguenther@suse.de>
19207         * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
19208         New hash-map to record equivalent transforms.
19209         (dt_node::analyze): Populate the equivalent transforms hash-map.
19210         (dt_simplify::info): Add reference to hash-map entry.
19211         (dt_simplify::gen): If we have split out a function for the
19212         transform, generate a call to it.
19213         (sinfo_hashmap_traits::hash): New function.
19214         (compare_op): New helper function for ...
19215         (sinfo_hashmap_traits::equal_keys): ... this new function.
19216         (decision_tree::gen): Split out common equivalent transforms
19217         into functions.
19219 2015-08-03  Richard Biener  <rguenther@suse.de>
19221         * gimple-fold.c (fold_gimple_assign): Remove folding of
19222         the comparison in COND_EXPRs.
19224 2015-08-03  Richard Biener  <rguenther@suse.de>
19226         * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
19227         on the rhs of assignments first simplify the embedded
19228         GENERIC condition.
19230 2015-08-03  Richard Biener  <rguenther@suse.de>
19232         PR tree-optimization/66917
19233         * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
19234         field.
19235         (DR_VECT_AUX): New macro.
19236         (set_dr_misalignment): Adjust.
19237         (dr_misalignment): Likewise.
19238         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
19239         Compute whether the base is at least element aligned.
19240         * tree-vect-stmts.c (ensure_base_align): Adjust.
19241         (vectorizable_store): If the base is not element aligned
19242         preserve alignment of the original access if misalignment is unknown.
19243         (vectorizable_load): Likewise.
19245 2015-08-02  Martin Sebor  <msebor@redhat.com>
19247         * doc/invoke.texi (Wframe-address): Document it.
19248         * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
19249         Clarify possible effects of calling the functions with non-zero
19250         arguments and mention -Wframe-address.
19251         * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
19253 2015-08-01  Michael Collison  <michael.collison@linaro.org
19254             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
19256         * config/arm/arm.md (*arm_smin_cmp): New pattern.
19257         (*arm_umin_cmp): Likewise.
19259 2015-08-01  Caroline Tice  <cmtice@google.com>
19261         PR 66521
19262         * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
19263         global variables.
19264         (vtbl_find_mangled_name):  New function.
19265         (vtbl_register_mangled_name):  New function.
19266         (vtbl_map_get_node):  If DECL_ASSEMBLER_NAME is "<anon>", look up
19267         mangled name in mangled name vectors.
19268         (find_or_create_vtbl_map_node):  Ditto.
19269         (var_is_used_for_virtual_call_p):  Add recursion_depth parameter;
19270         update recursion_depth on function entry; pass it to every recursive
19271         call; automatically exit if depth > 25 (give up looking at that point).
19272         (verify_bb_vtables):  Initialize recursion_depth and pass it to
19273         var_is_used_for_virtual_call_p.
19274         * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
19275         global variable decls.
19276         (vtbl_register_mangled_name): New extern function decl.
19278 2015-08-01  Tom de Vries  <tom@codesourcery.com>
19280         * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
19281         function.
19282         * tree.h (operation_can_overflow, operation_no_trapping_overflow):
19283         Declare.
19284         * tree-vect-loop.c (vect_is_simple_reduction_1): Use
19285         operation_no_trapping_overflow.  Allow non-overflow operations.
19286         * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
19287         operations.
19289 2015-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
19291         PR target/67049
19292         * config/sh/sh.md (GOTaddr2picreg): Fix typo.
19294 2015-07-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19296         * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
19297         Enable for TARGET_32BIT.
19298         (*if_move_neg): Likewise.
19300 2015-07-31  Nick Clifton  <nickc@redhat.com>
19302         * config/m32r/m32r.c (m32r_attribute_identifier): New function.
19303         Returns true for __model__.
19304         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
19306 2015-07-31  Alan Modra  <amodra@gmail.com>
19308         PR target/66870
19309         * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
19310         (rs6000_emit_prologue): Set it.
19311         (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
19313 2015-07-31  Richard Biener  <rguenther@suse.de>
19315         * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
19316         -> X == (C1 ^ C2) which is already implemented in match.pd.
19317         Remove redundant dispatching to fold_relational_const.
19318         Move unordered self and NaN compares ...
19319         * match.pd: ... as patterns here.  Remove some stray captures
19320         and add a comment.
19322 2015-07-31  Petr Murzin  <petr.murzin@intel.com>
19324         * config/i386/i386.c
19325         (bdesc_special_args): Convert mask type from signed to unsigned for
19326         masked builtins.
19327         (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
19328         UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
19329         V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
19330         V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
19331         V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
19332         V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
19333         V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
19334         V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
19335         V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
19336         HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
19337         V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
19338         V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
19339         V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
19340         V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
19341         V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
19342         V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
19343         V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
19344         V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
19345         V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
19346         V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
19347         V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
19348         HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
19349         VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
19350         V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
19351         * config/i386/i386-builtin-types.def
19352         (V16QI_FTYPE_V16SI): Remove.
19353         (V8DF_FTYPE_V8SI): Ditto.
19354         (V8HI_FTYPE_V8DI): Ditto.
19355         (V8SI_FTYPE_V8DI): Ditto.
19356         (V8SF_FTYPE_V8DF): Ditto.
19357         (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
19358         (V16HI_FTYPE_V16SI): Ditto.
19359         (V16SF_FTYPE_V16HI): Ditto.
19360         (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
19361         (V16SF_FTYPE_V16SI): Ditto.
19362         (V4DI_FTYPE_V4DI): Ditto.
19363         (V16SI_FTYPE_V16SF): Ditto.
19364         (V16SF_FTYPE_FLOAT): Ditto.
19365         (V8DF_FTYPE_DOUBLE): Ditto.
19366         (V8DI_FTYPE_INT64): Ditto.
19367         (V8DI_FTYPE_V4DI): Ditto.
19368         (V16QI_FTYPE_V8DI): Ditto.
19369         (UINT_FTYPE_V4SF): Ditto.
19370         (UINT64_FTYPE_V4SF): Ditto.
19371         (UINT_FTYPE_V2DF): Ditto.
19372         (UINT64_FTYPE_V2DF): Ditto.
19373         (V16SI_FTYPE_V16SI): Ditto.
19374         (V8DI_FTYPE_V8DI): Ditto.
19375         (V16SI_FTYPE_PV4SI): Ditto.
19376         (V16SF_FTYPE_PV4SF): Ditto.
19377         (V8DI_FTYPE_PV2DI): Ditto.
19378         (V8DF_FTYPE_PV2DF): Ditto.
19379         (V4DI_FTYPE_PV2DI): Ditto.
19380         (V4DF_FTYPE_PV2DF): Ditto.
19381         (V16SI_FTYPE_PV2SI): Ditto.
19382         (V16SF_FTYPE_PV2SF): Ditto.
19383         (V8DI_FTYPE_PV4DI): Ditto.
19384         (V8DF_FTYPE_PV4DF): Ditto.
19385         (V8SF_FTYPE_FLOAT): Ditto.
19386         (V4SF_FTYPE_FLOAT): Ditto.
19387         (V4DF_FTYPE_DOUBLE): Ditto.
19388         (V8SF_FTYPE_PV4SF): Ditto.
19389         (V8SI_FTYPE_PV4SI): Ditto.
19390         (V4SI_FTYPE_PV2SI): Ditto.
19391         (V8SF_FTYPE_PV2SF): Ditto.
19392         (V8SI_FTYPE_PV2SI): Ditto.
19393         (V16SF_FTYPE_PV8SF): Ditto.
19394         (V16SI_FTYPE_PV8SI): Ditto.
19395         (V8DI_FTYPE_V8SF): Ditto.
19396         (V4DI_FTYPE_V4SF): Ditto.
19397         (V2DI_FTYPE_V4SF): Ditto.
19398         (V64QI_FTYPE_QI): Ditto.
19399         (V32HI_FTYPE_HI): Ditto.
19400         (V8UHI_FTYPE_V8UHI): Ditto.
19401         (V16UHI_FTYPE_V16UHI): Ditto.
19402         (V32UHI_FTYPE_V32UHI): Ditto.
19403         (V2UDI_FTYPE_V2UDI): Ditto.
19404         (V4UDI_FTYPE_V4UDI): Ditto.
19405         (V8UDI_FTYPE_V8UDI): Ditto.
19406         (V4USI_FTYPE_V4USI): Ditto.
19407         (V8USI_FTYPE_V8USI): Ditto.
19408         (V16USI_FTYPE_V16USI): Ditto.
19409         (V2DF_FTYPE_V2DF_UINT64): Ditto.
19410         (V2DI_FTYPE_V2DF_V2DF): Ditto.
19411         (V2UDI_FTYPE_V4USI_V4USI): Ditto.
19412         (V8DF_FTYPE_V8DF_V8DI): Ditto.
19413         (V4SF_FTYPE_V4SF_UINT64): Ditto.
19414         (V4SI_FTYPE_V4SF_V4SF): Ditto.
19415         (V16SF_FTYPE_V16SF_V16SI): Ditto.
19416         (V64QI_FTYPE_V32HI_V32HI): Ditto.
19417         (V32HI_FTYPE_V16SI_V16SI): Ditto.
19418         (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
19419         (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
19420         (V32HI_FTYPE_V64QI_V64QI): Ditto.
19421         (V32HI_FTYPE_V32HI_V32HI): Ditto.
19422         (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
19423         (V16SI_FTYPE_V16SI_V4SI): Ditto.
19424         (V16SI_FTYPE_V16SI_V16SI): Ditto.
19425         (V16SI_FTYPE_V32HI_V32HI): Ditto.
19426         (V16SI_FTYPE_V16SI_SI): Ditto.
19427         (V8DI_FTYPE_V8DI_V8DI): Ditto.
19428         (V4UDI_FTYPE_V8USI_V8USI): Ditto.
19429         (V8DI_FTYPE_V16SI_V16SI): Ditto.
19430         (V8DI_FTYPE_V8DI_V2DI): Ditto.
19431         (QI_FTYPE_QI): Ditto.
19432         (SI_FTYPE_SI): Ditto.
19433         (DI_FTYPE_DI): Ditto.
19434         (QI_FTYPE_QI_QI): Ditto.
19435         (QI_FTYPE_QI_INT): Ditto.
19436         (HI_FTYPE_HI_INT): Ditto.
19437         (SI_FTYPE_SI_INT): Ditto.
19438         (DI_FTYPE_DI_INT): Ditto.
19439         (HI_FTYPE_V16QI_V16QI): Ditto.
19440         (SI_FTYPE_V32QI_V32QI): Ditto.
19441         (DI_FTYPE_V64QI_V64QI): Ditto.
19442         (QI_FTYPE_V8HI_V8HI): Ditto.
19443         (HI_FTYPE_V16HI_V16HI): Ditto.
19444         (SI_FTYPE_V32HI_V32HI): Ditto.
19445         (QI_FTYPE_V4SI_V4SI): Ditto.
19446         (QI_FTYPE_V8SI_V8SI): Ditto.
19447         (QI_FTYPE_V2DI_V2DI): Ditto.
19448         (QI_FTYPE_V4DI_V4DI): Ditto.
19449         (QI_FTYPE_V8DI_V8DI): Ditto.
19450         (HI_FTYPE_V16SI_V16SI): Ditto.
19451         (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
19452         (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
19453         (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
19454         (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
19455         (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
19456         (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
19457         (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
19458         (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
19459         (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
19460         (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
19461         (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
19462         (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
19463         (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
19464         (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
19465         (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
19466         (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
19467         (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
19468         (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
19469         (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
19470         (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
19471         (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
19472         (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
19473         (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
19474         (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
19475         (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
19476         (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
19477         (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
19478         (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
19479         (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
19480         (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
19481         (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
19482         (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
19483         (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
19484         (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
19485         (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
19486         (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
19487         (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
19488         (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
19489         (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
19490         (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
19491         (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
19492         (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
19493         (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
19494         (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
19495         (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
19496         (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
19497         (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
19498         (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
19499         (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
19500         (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
19501         (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
19502         (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
19503         (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
19504         (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
19505         (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
19506         (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
19507         (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
19508         (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
19509         (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
19510         (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
19511         (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
19512         (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
19513         (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
19514         (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
19515         (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
19516         (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
19517         (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
19518         (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
19519         (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
19520         (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
19521         (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
19522         (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
19523         (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
19524         (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
19525         (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
19526         (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
19527         (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
19528         (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
19529         (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
19530         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
19531         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
19532         (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
19533         (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
19534         (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
19535         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
19536         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
19537         (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
19538         (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
19539         (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
19540         (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
19541         (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
19542         (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
19543         (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
19544         (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
19545         (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
19546         (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
19547         (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
19548         (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
19549         (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
19550         (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
19551         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
19552         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
19553         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
19554         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
19555         (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
19556         (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
19557         (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
19558         (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
19559         (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
19560         (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
19561         (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
19562         (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
19563         (HI_FTYPE_HI): Ditto.
19564         (HI_FTYPE_V16QI): Ditto.
19565         (SI_FTYPE_V32QI): Ditto.
19566         (DI_FTYPE_V64QI): Ditto.
19567         (QI_FTYPE_V8HI): Ditto.
19568         (HI_FTYPE_V16HI): Ditto.
19569         (SI_FTYPE_V32HI): Ditto.
19570         (QI_FTYPE_V4SI): Ditto.
19571         (QI_FTYPE_V8SI): Ditto.
19572         (HI_FTYPE_V16SI): Ditto.
19573         (QI_FTYPE_V2DI): Ditto.
19574         (QI_FTYPE_V4DI): Ditto.
19575         (QI_FTYPE_V8DI): Ditto.
19576         (V16QI_FTYPE_HI): Ditto.
19577         (V32QI_FTYPE_SI): Ditto.
19578         (V64QI_FTYPE_DI): Ditto.
19579         (V8HI_FTYPE_QI): Ditto.
19580         (V16HI_FTYPE_HI): Ditto.
19581         (V32HI_FTYPE_SI): Ditto.
19582         (V4SI_FTYPE_QI): Ditto.
19583         (V4SI_FTYPE_HI): Ditto.
19584         (V8SI_FTYPE_QI): Ditto.
19585         (V8SI_FTYPE_HI): Ditto.
19586         (V2DI_FTYPE_QI): Ditto.
19587         (V4DI_FTYPE_QI): Ditto.
19588         (HI_FTYPE_HI_HI): Ditto.
19589         (SI_FTYPE_SI_SI): Ditto.
19590         (DI_FTYPE_DI_DI): Ditto.
19591         (HI_FTYPE_V16QI_V16QI_HI): Ditto.
19592         (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
19593         (SI_FTYPE_V32QI_V32QI_SI): Ditto.
19594         (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
19595         (DI_FTYPE_V64QI_V64QI_DI): Ditto.
19596         (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
19597         (QI_FTYPE_V8HI_V8HI_QI): Ditto.
19598         (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
19599         (HI_FTYPE_V16HI_V16HI_HI): Ditto.
19600         (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
19601         (SI_FTYPE_V32HI_V32HI_SI): Ditto.
19602         (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
19603         (QI_FTYPE_V4SI_V4SI_QI): Ditto.
19604         (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
19605         (QI_FTYPE_V8SI_V8SI_QI): Ditto.
19606         (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
19607         (QI_FTYPE_V2DI_V2DI_QI): Ditto.
19608         (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
19609         (QI_FTYPE_V4DI_V4DI_QI): Ditto.
19610         (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
19611         (QI_FTYPE_V8DI_V8DI_QI): Ditto.
19612         (HI_FTYPE_V16SI_V16SI_HI): Ditto.
19613         (QI_FTYPE_V8DI_V8DI_INT): Ditto.
19614         (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
19615         (HI_FTYPE_V16SI_V16SI_INT): Ditto.
19616         (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
19617         (QI_FTYPE_V8DF_V8DF_INT): Ditto.
19618         (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
19619         (HI_FTYPE_V16SF_V16SF_INT): Ditto.
19620         (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
19621         (QI_FTYPE_V2DF_V2DF_INT): Ditto.
19622         (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
19623         (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
19624         (QI_FTYPE_V4SF_V4SF_INT): Ditto.
19625         (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
19626         (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
19627         (V16SI_FTYPE_HI): Ditto.
19628         (V8DI_FTYPE_QI): Ditto.
19629         (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
19630         (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
19631         (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
19632         (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
19633         (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
19634         (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
19635         (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
19636         (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
19637         (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
19638         (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
19639         (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
19640         (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
19641         (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
19642         (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
19643         (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
19644         (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
19645         (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
19646         (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
19647         (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
19648         (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
19649         (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
19650         (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
19651         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
19652         (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
19653         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
19654         (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
19655         (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
19656         (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
19657         (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
19658         (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
19659         (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
19660         (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
19661         (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
19662         (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
19663         (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
19664         (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
19665         (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
19666         (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
19667         (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
19668         (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
19669         (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
19670         (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
19671         (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
19672         (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
19673         (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
19674         (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
19675         (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
19676         (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
19677         (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
19678         (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
19679         (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
19680         (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
19681         (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
19682         (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
19683         (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
19684         (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
19685         (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
19686         (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
19687         (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
19688         (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
19689         (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
19690         (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
19691         (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
19692         (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
19693         (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
19694         (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
19695         (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
19696         (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
19697         (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
19698         (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
19699         (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
19700         (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
19701         (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
19702         (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
19703         (V16SI_FTYPE_SI_V16SI_HI): Ditto.
19704         (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
19705         (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
19706         (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
19707         (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
19708         (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
19709         (V8DI_FTYPE_DI_V8DI_QI): Ditto.
19710         (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
19711         (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
19712         (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
19713         (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
19714         (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
19715         (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
19716         (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
19717         (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
19718         (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
19719         (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
19720         (V8SI_FTYPE_SI_V8SI_QI): Ditto.
19721         (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
19722         (V4SI_FTYPE_SI_V4SI_QI): Ditto.
19723         (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
19724         (V4DI_FTYPE_DI_V4DI_QI): Ditto.
19725         (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
19726         (V2DI_FTYPE_DI_V2DI_QI): Ditto.
19727         (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
19728         (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
19729         (V64QI_FTYPE_QI_V64QI_DI): Ditto.
19730         (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
19731         (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
19732         (V32QI_FTYPE_QI_V32QI_SI): Ditto.
19733         (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
19734         (V16QI_FTYPE_QI_V16QI_HI): Ditto.
19735         (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
19736         (V32HI_FTYPE_HI_V32HI_SI): Ditto.
19737         (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
19738         (V16HI_FTYPE_HI_V16HI_HI): Ditto.
19739         (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
19740         (V8HI_FTYPE_HI_V8HI_QI): Ditto.
19741         (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
19742         (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
19743         (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
19744         (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
19745         (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
19746         (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
19747         (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
19748         (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
19749         (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
19750         (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
19751         (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
19752         (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
19753         (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
19754         (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
19755         (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
19756         (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
19757         (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
19758         (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
19759         (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
19760         (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
19761         (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
19762         (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
19763         (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
19764         (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
19765         (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
19766         (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
19767         (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
19768         (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
19769         (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
19770         (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
19771         (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
19772         (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
19773         (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
19774         (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
19775         (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
19776         (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
19777         (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
19778         (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
19779         (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
19780         (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
19781         (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
19782         (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
19783         (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
19784         (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
19785         (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
19786         (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
19787         (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
19788         (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
19789         (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
19790         (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
19791         (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
19792         (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
19793         (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
19794         (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
19795         (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
19796         (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
19797         (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
19798         (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
19799         (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
19800         (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
19801         (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
19802         (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
19803         (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
19804         (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
19805         (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
19806         (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
19807         (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
19808         (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
19809         (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
19810         (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
19811         (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
19812         (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
19813         (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
19814         (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
19815         (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
19816         (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
19817         (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
19818         (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
19819         (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
19820         (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
19821         (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
19822         (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
19823         (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
19824         (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
19825         (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
19826         (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
19827         (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
19828         (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
19829         (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
19830         (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
19831         (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
19832         (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
19833         (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
19834         (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
19835         (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
19836         (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
19837         (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
19838         (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
19839         (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
19840         (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
19841         (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
19842         (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
19843         (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
19844         (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
19845         (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
19846         (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
19847         (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
19848         (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
19849         (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
19850         (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
19851         (QI_FTYPE_V8DF_INT_QI): Ditto.
19852         (QI_FTYPE_V4DF_INT_QI): Ditto.
19853         (QI_FTYPE_V2DF_INT_QI): Ditto.
19854         (HI_FTYPE_V16SF_INT_HI): Ditto.
19855         (QI_FTYPE_V8SF_INT_QI): Ditto.
19856         (QI_FTYPE_V4SF_INT_QI): Ditto.
19857         (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
19859 2015-07-31  Richard Biener  <rguenther@suse.de>
19861         * gimple-fold.c (fold_gimple_assign): Remove folding of
19862         GIMPLE_BINARY_RHS.
19864 2015-07-31  Tom de Vries  <tom@codesourcery.com>
19866         PR tree-optimization/66846
19867         * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
19868         verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
19869         (expand_omp_target) [ENABLE_CHECKING]: Same.
19870         (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
19871         cfun if !LOOPS_NEED_FIXUP.
19872         (expand_omp_for_static_nochunk): Handle simple latch bb.  Handle case
19873         that omp_for already has its own loop struct.
19874         * tree-parloops.c (create_phi_for_local_result)
19875         (create_call_for_reduction): Handle simple latch bb.
19876         (create_parallel_loop): Add simple latch bb to preserve
19877         LOOPS_HAVE_SIMPLE_LATCHES.  Record new exit.  Handle simple latch bb.
19878         (gen_parallel_loop): Remove call to cancel_loop_tree.
19879         (parallelize_loops): Skip loops that are inner loops of parallelized
19880         loops.
19881         (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
19882         verify_loop_structure.
19884 2015-07-30  Anatoly Sokolov  <aesok@post.ru>
19886         * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
19887         * config/v850/v850.md (RV_REGNUM): New constants.
19888         * config/v850/v850.c (v850_libcall_value): New functions.
19889         (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
19890         (TARGET_LIBCALL_VALUE): Define.
19892 2015-07-30  Anatoly Sokolov  <aesok@post.ru>
19894         * rtl.h (lowpart_subreg): Move in file.
19895         * loop-iv.c (lowpart_subreg): Move to...
19896         * simplify-rtx.c (lowpart_subreg): ...here.
19897           (simplify_binary_operation_1): Use lowpart_subreg instead of
19898           simplify_gen_subreg.
19899         * expr.c (expand_expr_real_2): Ditto.
19900         * emit-rtl.c (gen_lowpart_common): Ditto.
19901         * combine.c (gen_lowpart_for_combine): Ditto.
19902         * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
19903           expand_debug_source_expr): Ditto.
19905 2015-07-30  Richard Sandiford  <richard.sandiford@arm.com>
19907         * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
19908         (expand_builtin_atomic_clear): Remove support for atomic_clear
19909         pattern.
19911 2015-07-30  Richard Biener  <rguenther@suse.de>
19913         * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
19914         binaries.  Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
19915         (fold_stmt_1): ... here and work on GIMPLE directly.  Remove
19916         redundant operand canonicalization.
19918 2015-07-30  David Sherwood  <david.sherwood@arm.com>
19920         * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
19921         GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
19922         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
19923         * config/arm/arm.c (neon_valid_immediate): Likewise.
19924         * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
19925         (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
19926         (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
19927         (expand_vec_perm_vpshufb2_vpermq): Likewise.
19928         (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
19929         (expand_vec_perm_vpshufb4_vpermq2): Likewise.
19930         * config/i386/sse.md
19931         (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
19932         (*ssse3_palignr<mode>_perm): Likewise.
19933         * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
19934         * config/spu/spu.c (arith_immediate_p): Likewise.
19935         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
19936         (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
19938 2015-07-30  Richard Biener  <rguenther@suse.de>
19940         * genmatch.c (decision_tree::gen_gimple): Merge with ...
19941         (decision_tree::gen_generic): ... this into ...
19942         (decision_tree::gen): ... this.
19943         (main): Adjust callers.
19945 2015-07-30  Richard Biener  <rguenther@suse.de>
19947         * genmatch.c (verbose): New global.
19948         (warning_at): Add overload with source_location.
19949         (capture_info::capture_info): Add bool whether generating gimple
19950         or generic.  Add gimple member.
19951         (capture_info::cinfo): Add capture member.
19952         (capture_info::walk_match): Record capture.  Warn on
19953         non-captured leafs.
19954         (capture_info::walk_c_expr): Add more fragments captures cannot
19955         escape through.  Warn on escaped captures.
19956         (dt_simplify::gen_1): Warn on operands we force to have no
19957         side-effects.
19958         (main): Initialize verbose.
19959         * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
19961 2015-07-30  Richard Biener  <rguenther@suse.de>
19963         PR middle-end/67053
19964         * match.pd: Allow both operands to independently have conversion
19965         when simplifying compares of addresses.
19967 2015-07-29  Segher Boessenkool  <segher@kernel.crashing.org>
19969         PR target/66217
19970         PR target/67045
19971         * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
19972         around those cases that need one.
19974 2015-07-29  Aditya Kumar  <hiraditya@msn.com>
19976         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
19978 2015-07-29  H.J. Lu  <hongjiu.lu@intel.com>
19980         * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
19981         New.  Copied from config/i386/gnu-user.h.
19982         (ASM_COMMENT_START): Likewise.
19983         (DBX_REGISTER_NUMBER): Likewise.
19985 2015-07-29  Richard Biener  <rguenther@suse.de>
19987         * gimple-fold.c (fold_gimple_cond): Remove.
19988         (fold_stmt_1): Do not call it.
19990 2015-07-29  Alan Lawrence  <alan.lawrence@arm.com>
19992         * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
19993         (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
19995         * config/aarch64/aarch64-modes.def: Add HFmode.
19997         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
19998         __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
20000         * config/aarch64/aarch64.c (aarch64_init_libfuncs,
20001         aarch64_promoted_type): New.
20003         (aarch64_float_const_representable_p): Disable HFmode.
20004         (aarch64_mangle_type): Mangle half-precision floats to "Dh".
20005         (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
20006         (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
20008         * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
20009         (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
20011         * config/aarch64/iterators.md (GPF_F16): New.
20013 2015-07-29  Richard Biener  <rguenther@suse.de>
20015         * match.pd: Merge address comparison patterns and make them
20016         handle some more cases.
20018 2015-07-29  Richard Biener  <rguenther@suse.de>
20020         * genmatch.c (c_expr::gen_transform): Error on unknown captures.
20021         (parser::parse_capture): Add bool argument on whether to reject
20022         unknown captures.
20023         (parser::parse_expr): Adjust.
20024         (parser::parse_op): Likewise.
20025         (parser::parse_pattern): Likewise.
20027 2015-07-29  Richard Biener  <rguenther@suse.de>
20029         * gimple-fold.c (has_use_on_stmt): New function.
20030         (replace_stmt_with_simplification): Use it to allow
20031         abnormals originally referenced in the stmt.
20032         (fold_stmt_1): Canonicalize operand order.
20034 2015-07-28  David Sherwood  <david.sherwood@arm.com>
20036         * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
20037         GET_MODE_INNER unconditionally.
20038         * config/spu/spu.c (arith_immediate_p): Likewise.
20039         * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
20040         * expmed.c (synth_mult): Remove check for VOIDmode result from
20041         GET_MODE_INNER.
20042         (expand_mult_const): Likewise.
20043         * fold-const.c (fold_binary_loc): Replace call to element_precision
20044         with call to GET_MODE_PRECISION.
20045         * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
20046         m->name.
20047         (emit_mode_inner): Likewise.
20048         * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
20049         result check.
20050         * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
20051         (GET_MODE_UNIT_PRECISION): Likewise.
20052         * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
20053         * simplify-rtx.c (simplify_immed_subreg): Likewise.
20054         * stor-layout.c (bitwise_type_for_mode): Update assert.
20055         (element_precision): Remove.
20057 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
20059         * target-insns.def (reload_load_address): New targetm instruction
20060         pattern.
20061         * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
20063 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
20065         * target-insns.def (atomic_test_and_set): New targetm instruction
20066         pattern.
20067         * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
20068         HAVE_*/gen_* interface.
20070 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
20072         * target-insns.def (can_extend, ptr_extend): New targetm instruction
20073         patterns.
20074         * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
20075         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
20076         * emit-rtl.c (set_reg_attrs_from_value): Likewise.
20077         * rtlanal.c (nonzero_bits1): Likewise.
20078         (num_sign_bit_copies1): Likewise.
20080 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
20082         * target-insns.def (eh_return): New targetm instruction pattern.
20083         * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
20084         interface.
20085         * function.c (thread_prologue_and_epilogue_insns): Remove
20086         preprocessor condition.
20088 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
20090         * target-insns.def (indirect_jump): New targetm instruction pattern.
20091         * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
20092         interface.
20094 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
20096         * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
20097         instead of nonimmediate_operand.  Remove C condiition.
20099 2015-07-28  Richard Biener  <rguenther@suse.de>
20101         * match.pd: Add more simplification of address comparisons.
20103 2015-07-28  Richard Biener  <rguenther@suse.de>
20105         * match.pd: Re-order two cases in comparison with max/min
20106         value simplification to make it apply for bools.
20108 2015-07-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20110         * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
20111         Handle simple SIGN_EXTEND or ZERO_EXTEND.
20112         (aarch64_rtx_costs): Properly strip extend or extract before
20113         passing down to rtx costs again.
20115 2015-07-28  Nick Clifton  <nickc@redhat.com>
20117         * config/rl78/rl78.c (rl78_addsi3_internal): New function.
20118         Optimizes the case where -mes0 is active and a constant symbolic
20119         address is used.
20120         * config/rl78/rl78-protos.h: Prototype the new function.
20121         * config/rl78/rl78.md (addsi3_internal_real): Call new function.
20123 2015-07-28  Tom de Vries  <tom@codesourcery.com>
20125         * tree-parloops.c (reduc_stmt_res): New function.
20126         (initialize_reductions, add_field_for_reduction)
20127         (create_phi_for_local_result, create_loads_for_reductions)
20128         (create_stores_for_reduction, build_new_reduction): Handle case that
20129         reduc_stmt is a phi.
20130         (gather_scalar_reductions): Allow double_reduc reductions.
20132 2015-07-28  Richard Biener  <rguenther@suse.de>
20134         * fold-const.c (fold_comparison): Remove equality folding
20135         of decl addresses ...
20136         * match.pd: ... here and merge with existing pattern.
20138 2015-07-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
20140         PR tree-optimization/66828
20141         * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
20142         from int64_t to uint64_t.
20144 2015-07-28  Dominik Vogt  <vogt@linux.vnet.ibm.com>
20146         * opts-common.c (read_cmdline_option): List DriverOnly enum values
20147         as valid only in the error message of the driver, not in the
20148         messages of the language compilers.
20150 2015-07-27  Tom de Vries  <tom@codesourcery.com>
20152         * tree-parloops.c (gather_scalar_reductions): Simplify function
20153         structure.
20155 2015-07-27  Marek Polacek  <polacek@redhat.com>
20157         * ipa-devirt.c (types_same_for_odr): Fix typo.
20159 2015-07-27  Jason Merrill  <jason@redhat.com>
20161         PR debug/66468
20162         * dwarf2out.c (gen_inlined_subroutine_die): Check
20163         cgraph_function_possibly_inlined_p.
20165 2015-07-27  Wilco Dijkstra  <wdijkstr@arm.com>
20167         * config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
20168         Place integer variant first.
20169         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
20171 2015-07-27  Alan Lawrence  <alan.lawrence@arm.com>
20173         PR/63870
20174         * config/arm/arm-builtins.c (enum arm_builtins):
20175         Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
20176         (ARM_BUILTIN_NEON_BASE): Rename macro to....
20177         (ARM_BUILTIN_NEON_PATTERN_START): ...this.
20178         (arm_init_neon_builtins): Register __builtin_arm_lane_check.
20179         (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
20181 2015-07-27  Alan Lawrence  <alan.lawrence@arm.com>
20183         PR/63870
20184         * config/arm/arm-builtins.c (enum arm_type_qualifiers):
20185         Add qualifier_lane_index.
20186         (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
20187         (arm_getlane_qualifiers): Use qualifier_lane_index.
20188         (arm_lanemac_qualifiers): Rename to...
20189         (arm_mac_n_qualifiers): ...this.
20190         (LANEMAC_QUALIFIERS): Rename to...
20191         (MAC_N_QUALIFIERS): ...this.
20192         (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
20193         (arm_setlane_qualifiers): Use qualifier_lane_index.
20194         (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
20195         (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
20196         (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
20197         (arm_expand_neon_builtin): Handle qualifier_lane_index.
20199         * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
20200         * config/arm/arm.c (bounds_check): Likewise, improve error message.
20201         (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
20202         * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
20203         vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
20204         vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
20205         vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
20206         (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
20207         qualifiers to TERNOP_IMM.
20208         (vdup_lane): Change qualifiers to GETLANE.
20209         (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
20210         vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
20211         (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
20212         vqdmlsl_n): Change qualifiers to MAC_N.
20214         * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
20215         neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
20216         neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
20217         neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
20218         neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
20219         neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
20220         neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
20221         neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
20222         neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
20223         Remove call to neon_lane_bounds.
20225 2015-07-27  Wilco Dijkstra  <wdijkstr@arm.com>
20227         * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
20228         Place integer variant first.
20230 2015-07-27  Matthew Wahab  <matthew.wahab@arm.com>
20232         * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
20233         and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
20234         * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
20235         for armv6kz targets.
20236         * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
20237         * config/arm/arm-protos.h (FL_ARCH6KZ): New.
20238         (FL_FOR_ARCH6ZK): Remove.
20239         (FL_FOR_ARCH6KZ): New.
20240         (arm_arch6zk): New declaration.
20241         * config/arm/arm-tables.opt: Regenerate.
20242         * config/arm/arm.c (arm_arch6kz): New.
20243         (arm_option_override): Set arm_arch6kz.
20244         * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
20245         * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
20246         * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
20248 2015-07-27  Marek Polacek  <polacek@redhat.com>
20250         PR c++/66555
20251         PR c/54979
20252         * doc/invoke.texi: Document -Wtautological-compare.
20254 2015-07-27  Richard Biener  <rguenther@suse.de>
20256         * genmatch.c (decision_tree::gen_gimple): Split out large
20257         subtrees into separate functions.
20258         (decision_tree::gen_generic): Likewise.
20260 2015-07-26  Uros Bizjak  <ubizjak@gmail.com>
20262         * config/alpha/alpha.c: Use SUBREG_P predicate.
20263         * config/alpha/predicates.md: Ditto.
20265 2015-07-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
20267         * config.host (s390*-*-*): Include driver-native.c only when
20268         building with s390* as host *and* target.
20270 2015-07-25  Oleg Endo  <olegendo@gcc.gnu.org>
20272         PR target/66930
20273         * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
20274         T bit register modified_between_p check.
20276 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
20278         * config/i386/i386.c: Use SUBREG_P predicate.
20279         * config/i386/i386.md: Ditto.
20280         * config/i386/sse.md: Ditto.
20281         * config/i386/predicates.md: Ditto.
20283 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
20285         PR target/67004
20286         * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
20287         predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
20289 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
20291         * Makefile.in: Remove use of TREEBROWSER.
20292         * config.in: Regenerated.
20293         * configure: Regenerated.
20294         * configure.ac: Remove definition of TREEBROWSER.
20295         * tree-browser.c: Removed.
20296         * tree-browser.def: Removed.
20298 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
20300         * graphite-scop-detection.c: Include gimple-pretty-print.h.
20301         (stmt_simple_for_scop_p): Print when a stmt is not handled in
20302         Graphite.
20303         (scopdet_basic_block_info): Print when a loop or bb cannot be
20304         represented in Graphite.
20306 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
20308         PR target/66648
20309         * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
20310         execution guard when min_size is less than size_needed.
20312 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
20314         * doc/install.texi: Document supported versions of ISL.
20316 2015-07-25  Jeff Law  <law@redhat.com>
20318         Revert:
20319         PR lto/66752
20320         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
20321         unable to find X NE 0 in the tables, return X as the simplified
20322         condition.
20323         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
20324         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
20325         to VISISTED_BBS.  */
20326         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
20327         after removing the control flow statement and unnecessary edges.
20329 2015-07-25  David Edelsohn  <dje.gcc@gmail.com>
20331         Revert:
20332         2015-07-23  Alexandre Oliva  <aoliva@redhat.com>
20334         PR rtl-optimization/64164
20335         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
20336         * tree-ssa-copyrename.c: Removed.
20337         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
20338         -ftree-coalesce-vars.
20339         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
20340         * common.opt (ftree-copyrename): Ignore.
20341         (ftree-coalesce-inlined-vars): Likewise.
20342         * doc/invoke.texi: Remove the ignored options above.
20343         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
20344         * tree-ssa-coalesce.h: ... here.
20345         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
20346         headers required by it.
20347         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
20348         across variables when flag_tree_coalesce_vars.  Check register
20349         use and promoted modes to allow coalescing.  Moved to
20350         tree-ssa-coalesce.c.
20351         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
20352         with its member functions to tree-ssa-coalesce.c.
20353         (var_map_base_init): Likewise.  Renamed to
20354         compute_samebase_partition_bases.
20355         (partition_view_normal): Drop want_bases parameter.
20356         (partition_view_bitmap): Likewise.
20357         * tree-ssa-live.h: Adjust declarations.
20358         * tree-ssa-coalesce.c: Include explow.h.
20359         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
20360         default defs at the entry point.
20361         (dump_part_var_map): New.
20362         (compute_optimized_partition_bases): New, called by...
20363         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
20364         of compute_samebase_partition_bases.  Adjust.
20365         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
20366         * cfgexpand.c (leader_merge): New.
20367         (get_rtl_for_parm_ssa_default_def): New.
20368         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
20369         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
20370         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
20371         redundant MEM attr setting.
20372         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
20373         from...
20374         (expand_one_stack_var): ... this.  New wrapper to check and
20375         skip already expanded SSA partitions.
20376         (record_alignment_for_reg_var): New, factored out of...
20377         (expand_one_var): ... this.
20378         (expand_one_ssa_partition): New.
20379         (adjust_one_expanded_partition_var): New.
20380         (expand_one_register_var): Check and skip already expanded SSA
20381         partitions.
20382         (expand_used_vars): Don't create DECLs for anonymous SSA
20383         names.  Expand all SSA partitions, then adjust all SSA names.
20384         (pass::execute): Replace the loops that set
20385         SA.partition_to_pseudo from partition leaders and cleared
20386         DECL_RTL for multi-location variables, and that which used to
20387         rename vars and set attrs, with one that clears DECL_RTL and
20388         checks that PARMs and RESULTs default_defs match DECL_RTL.
20389         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
20390         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
20391         * explow.c (promote_ssa_mode): New.
20392         * explow.h (promote_ssa_mode): Declare.
20393         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
20394         * function.c: Include cfgexpand.h.
20395         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
20396         (use_register_for_parm_decl): Wrapper for the above to
20397         special-case the result_ptr.
20398         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
20399         (split_complex_args): Take assign_parm_data_all argument.
20400         Pass it to rtl_for_parm.  Set up rtl and context for split
20401         args.
20402         (assign_parms_augmented_arg_list): Adjust.
20403         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
20404         multiple locations.  Recognize split complex args.
20405         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
20406         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
20407         (assign_parm_setup_block): Prefer SSA-assigned location.
20408         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
20409         if stack_parm is NULL.
20410         (assign_parm_setup_stack): Prefer SSA-assigned location.
20411         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
20412         rtl before testing for pointer bounds.  Special-case result_ptr.
20413         (expand_function_start): Maybe reset DECL_RTL of result.
20414         Prefer SSA-assigned location for result and static chain.
20415         Factor out DECL_RESULT and SET_DECL_RTL.
20416         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
20417         anonymous SSA names.  Use promote_ssa_mode.
20418         (get_temp_reg): Likewise.
20419         (remove_ssa_form): Adjust.
20420         * stor-layout.c (layout_decl): Don't set mem attributes of
20421         non-MEMs.
20422         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
20423         and get its reg_usage for reg invalidation.
20424         (compute_bb_dataflow): Pass it insn.
20425         (emit_notes_in_bb): Likewise.
20427 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
20429         * config/i386/i386.c (ix86_va_start): Remove
20430         unneeded !TARGET_64BIT check.
20431         (ix86_gimplify_va_arg): Ditto.
20433 2015-07-24  Tom de Vries  <tom@codesourcery.com>
20435         * graphite-sese-to-poly.c (build_poly_scop): Always call
20436         rewrite_commutative_reductions_out_of_ssa.
20438 2015-07-24  Tom de Vries  <tom@codesourcery.com>
20440         * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
20441         flag_associative_math to FLOAT_TYPE_P.  Honour
20442         TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
20444 2015-07-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
20446         PR c++/64079
20447         * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
20448         and "%qD" in warning_at instead of "%q+D" in warning.
20450 2015-07-24  Uros Bizjak  <ubizjak@gmail.com>
20452         * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
20453         (ix86_function_abi): Cleanup.
20455 2015-07-24  Michael Darling  <darlingm@gmail.com>
20457         PR other/66259
20458         * acinclude.m4: Reflects renaming of configure.in to configure.ac
20459         * configure: Likewise
20460         * configure.ac: Likewise
20461         * doc/install.texi: Likewise
20462         * doc/tm.texi: Likewise
20463         * doc/tm.texi.in: Likewise
20465 2015-07-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20467         * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
20468         manually swapping values.
20469         * cse.c (fold_rtx): Likewise.
20470         * lra-eliminations.c (form_sum): Likewise.
20472 2015-07-24  Uros Bizjak  <ubizjak@gmail.com>
20474         PR target/64003
20475         * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
20476         * config/i386/i386.md (maybe_prefix_bnd): New attribute.
20477         (*jcc_1, *jcc_2, jump, simple_return_internal)
20478         (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
20479         Set length_nobnd attribute instead of length attribute.
20480         (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
20481         (length_nobnd): Remove attribute.
20482         (length): Remove length_nobnd processing.
20484 2015-07-24  Nathan Sidwell  <nathan@codesourcery.com>
20486         * gimplify.c (omp_default_clause): New function.  Reorganize flow
20487         for clarity. Broken out of ...
20488         (omp_notice_variable): ... here.
20490 2015-07-24  Gary Funck  <gary@intrepid.com>
20492         PR middle-end/66984
20493         * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
20494         fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
20496 2015-07-24  Tom de Vries  <tom@codesourcery.com>
20498         * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
20499         exit-first loop transform.
20501 2015-07-24  Cesar Philippidis  <cesar@codesourcery.com>
20503         PR 66714
20504         * tree-cfg.c (struct replace_decls_d): New struct.
20505         (replace_block_vars_by_duplicates_1): New function.
20506         (replace_block_vars_by_duplicates): Use it to replace the decls
20507         in the value exprs by duplicates.
20509 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
20511         * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
20512         -shared, -symbolic, -rdynamic.
20514 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
20516         PR target/65711
20517         * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
20518         -dynamic-linker within %{!static %{!shared, and -rdynamic within
20519         %{!static.
20521 2015-07-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
20523         PR ipa/66566
20524         * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
20525         edge summary is available.
20527 2015-07-24  Richard Biener  <rguenther@suse.de>
20529         * genmatch.c (struct dt_node): Add statistic fields.
20530         (dt_node::analyze): New method.
20531         (decision_tree::gen_gimple): Call analyze on the root node
20532         and print statistics to stderr.
20533         (decision_tree::gen_generic): Likewise.
20535 2015-07-24  Richard Biener  <rguenther@suse.de>
20537         * fold-const.c (fold_binary_loc): Move simplifying of comparisons
20538         against the highest or lowest possible integer ...
20539         * match.pd: ... as patterns here.
20541 2015-07-24  Richard Biener  <rguenther@suse.de>
20543         * genmatch.c (struct capture_info): Add same_as field.
20544         (capture_info::capture_info): Initialize same_as.
20545         (capture_info::walk_match): Compute same_as.
20546         (capture_info::walk_result): Compute stuff for the leader.
20547         (capture_info::walk_c_expr): Likewise.
20548         (dt_simplify::gen_1): Only look at leaders when deciding
20549         to force no side-effects or emit side-effects of omitted operands.
20551 2015-07-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20553         * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
20554         reg note to the GPR -> FPR save instructions.
20556 2015-07-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20558         * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
20559         cheaper.
20560         (s390_expand_insv): Don't generate risbg pattern for constant zero
20561         sources.
20562         * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
20563         ("*insv<mode>_z10_appendbitsleft"): New pattern definitions.  New
20564         splitters.
20566 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
20568         * config/s390/s390.c (s390_reorg): Clean up handling of processors
20569         with
20570         -mtune=
20571         (s390_issue_rate): Likewise.
20572         (s390_sched_reorder): Likewise.
20573         (s390_sched_variable_issue): Likewise.
20574         (s390_loop_unroll_adjust): Likewise.
20575         (s390_option_override):  Likewise.
20577 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
20579         * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
20580         processor capabilities with -march=native.
20581         * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
20582         (DRIVER_SELF_SPECS): Likewise.  Join specs for 31 and 64 bit.
20583         (S390_TARGET_BITS_STRING): Macro to simplify specs.
20585 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
20587         * config/s390/s390.c (s390_issue_rate): Handle
20588         PROCESSOR_2094_Z9_EC.
20589         (s390_option_override): Likewise.
20590         (s390_adjust_priority): Likewise.
20592 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
20594         * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
20595         when cross compiling.
20597 2015-07-24  Richard Biener  <rguenther@suse.de>
20599         * fold-const.c (maybe_canonicalize_comparison_1): Move
20600         A code CST canonicalization ...
20601         * match.pd: ... to a pattern here.
20603 2015-07-24  Jiong Wang  <jiong.wang@arm.com>
20605         Revert:
20606         2015-07-22  Jiong Wang  <jiong.wang@arm.com>
20607         PR target/63521
20608         * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
20609         (HONOR_REG_ALLOC_ORDER): Define.
20611 2015-07-24  Richard Biener  <rguenther@suse.de>
20613         * genmatch.c (add_operator): Allow SSA_NAME as predicate.
20614         * fold-const.c (fold_comparison): Move parameter does not
20615         alias &local simplification ...
20616         * match.pd: ... as a pattern here.
20618 2015-07-24  Richard Biener  <rguenther@suse.de>
20620         * gimple-fold.c (replace_stmt_with_simplification): Special-case
20621         valueizing call operands.
20622         * gimple-match-head.c (maybe_push_res_to_seq): Take
20623         number of call arguments from ops array.
20624         (do_valueize): New function.
20625         (gimple_simplify): Return true if valueization changed
20626         any operand even if the result didn't simplify further.
20628 2015-07-24  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
20630         PR middle-end/25530
20631         * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
20633 2015-07-24  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
20635         PR middle-end/25529
20636         * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
20638 2015-07-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
20640         * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
20641         instruction.
20643 2015-07-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
20645         * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
20646         clean up.
20648 2015-07-23  Uros Bizjak  <ubizjak@gmail.com>
20650         * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
20651         from ix86_build_builtin_va_list_abi.  Handle only 64bit non-MS_ABI
20652         targets here.
20653         (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
20654         ms_va_list_type_node initialization.
20656 2015-07-23  Jeff Law  <law@redhat.com>
20658         PR lto/66752
20659         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
20660         unable to find X NE 0 in the tables, return X as the simplified
20661         condition.
20662         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
20663         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
20664         to VISISTED_BBS.  */
20665         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
20666         after removing the control flow statement and unnecessary edges.
20668 2015-07-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
20670         * tree-pass.h (get_current_pass_name): Removed.
20672 2015-07-23  Alexandre Oliva  <aoliva@redhat.com>
20674         PR rtl-optimization/64164
20675         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
20676         * tree-ssa-copyrename.c: Removed.
20677         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
20678         -ftree-coalesce-vars.
20679         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
20680         * common.opt (ftree-copyrename): Ignore.
20681         (ftree-coalesce-inlined-vars): Likewise.
20682         * doc/invoke.texi: Remove the ignored options above.
20683         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
20684         * tree-ssa-coalesce.h: ... here.
20685         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
20686         headers required by it.
20687         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
20688         across variables when flag_tree_coalesce_vars.  Check register
20689         use and promoted modes to allow coalescing.  Moved to
20690         tree-ssa-coalesce.c.
20691         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
20692         with its member functions to tree-ssa-coalesce.c.
20693         (var_map_base_init): Likewise.  Renamed to
20694         compute_samebase_partition_bases.
20695         (partition_view_normal): Drop want_bases parameter.
20696         (partition_view_bitmap): Likewise.
20697         * tree-ssa-live.h: Adjust declarations.
20698         * tree-ssa-coalesce.c: Include explow.h.
20699         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
20700         default defs at the entry point.
20701         (dump_part_var_map): New.
20702         (compute_optimized_partition_bases): New, called by...
20703         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
20704         of compute_samebase_partition_bases.  Adjust.
20705         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
20706         * cfgexpand.c (leader_merge): New.
20707         (get_rtl_for_parm_ssa_default_def): New.
20708         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
20709         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
20710         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
20711         redundant MEM attr setting.
20712         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
20713         from...
20714         (expand_one_stack_var): ... this.  New wrapper to check and
20715         skip already expanded SSA partitions.
20716         (record_alignment_for_reg_var): New, factored out of...
20717         (expand_one_var): ... this.
20718         (expand_one_ssa_partition): New.
20719         (adjust_one_expanded_partition_var): New.
20720         (expand_one_register_var): Check and skip already expanded SSA
20721         partitions.
20722         (expand_used_vars): Don't create DECLs for anonymous SSA
20723         names.  Expand all SSA partitions, then adjust all SSA names.
20724         (pass::execute): Replace the loops that set
20725         SA.partition_to_pseudo from partition leaders and cleared
20726         DECL_RTL for multi-location variables, and that which used to
20727         rename vars and set attrs, with one that clears DECL_RTL and
20728         checks that PARMs and RESULTs default_defs match DECL_RTL.
20729         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
20730         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
20731         * explow.c (promote_ssa_mode): New.
20732         * explow.h (promote_ssa_mode): Declare.
20733         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
20734         * function.c: Include cfgexpand.h.
20735         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
20736         (use_register_for_parm_decl): Wrapper for the above to
20737         special-case the result_ptr.
20738         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
20739         (split_complex_args): Take assign_parm_data_all argument.
20740         Pass it to rtl_for_parm.  Set up rtl and context for split
20741         args.
20742         (assign_parms_augmented_arg_list): Adjust.
20743         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
20744         multiple locations.  Recognize split complex args.
20745         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
20746         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
20747         (assign_parm_setup_block): Prefer SSA-assigned location.
20748         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
20749         if stack_parm is NULL.
20750         (assign_parm_setup_stack): Prefer SSA-assigned location.
20751         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
20752         rtl before testing for pointer bounds.  Special-case result_ptr.
20753         (expand_function_start): Maybe reset DECL_RTL of result.
20754         Prefer SSA-assigned location for result and static chain.
20755         Factor out DECL_RESULT and SET_DECL_RTL.
20756         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
20757         anonymous SSA names.  Use promote_ssa_mode.
20758         (get_temp_reg): Likewise.
20759         (remove_ssa_form): Adjust.
20760         * stor-layout.c (layout_decl): Don't set mem attributes of
20761         non-MEMs.
20762         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
20763         and get its reg_usage for reg invalidation.
20764         (compute_bb_dataflow): Pass it insn.
20765         (emit_notes_in_bb): Likewise.
20767 2015-07-23  Segher Boessenkool  <segher@kernel.crashing.org>
20769         PR target/66217
20770         * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
20771         prototype.
20772         * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
20773         (rs6000_emit_2insn_and): Handle dot forms.
20774         * config/rs6000/rs6000.md (and<mode>3): Adjust.
20775         (*and<mode>3_2insn): Remove TODO.  Adjust.  Add "type" attr.
20776         (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
20778 2015-07-23  Richard Biener  <rguenther@suse.de>
20780         * generic-match-head.c: Include cgraph.h.
20781         * gimple-match-head.c: Likewise.
20782         * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
20783         SSA names.
20784         * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
20785         * match.pd: ...to a pattern here.  Add &A ==/!= 0 simplification
20786         pattern.
20788 2015-07-23  Richard Biener  <rguenther@suse.de>
20790         * gimple-fold.c (fold_gimple_cond): Do not require folding
20791         results to pass valid_gimple_rhs_p.
20792         * tree-cfg.h (fold_cond_expr_cond): Remove.
20793         * tree-cfg.c (fold_cond_expr_cond): Likewise.
20794         (make_edges): Do not call it.
20795         * tree-inline.c (tree_function_versioning): Likewise.
20797 2015-07-23  Tom de Vries  <tom@codesourcery.com>
20799         * tree-parloops.c (gather_scalar_reductions): Add arg to call to
20800         vect_force_simple_reduction.
20801         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
20802         (vect_is_simple_reduction_1): Add and handle
20803         need_wrapping_integral_overflow parameter.
20804         (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
20805         need_wrapping_integral_overflow parameter.
20806         (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
20807         * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
20808         decl.
20810 2015-07-23  Yuri Rumyantsev  <ysrumyan@gmail.com>
20812         PR tree-optimization/66926,66951
20813         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
20814         INNER_LOOP and fix up condition for renaming virtual operands.
20816 2015-07-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20818         * combine.c (try_combine): Use std::swap instead of manually
20819         swapping.
20821 2015-07-23  Prachi Godbole  <prachi.godbole@imgtec.com>
20823         * config/mips/i6400.md: New file.
20824         * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
20825         (mips64r6): Likewise.
20826         (i6400): Define.
20827         * config/mips/mips-tables.opt: Regenerate.
20828         * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
20829         (mips_issue_rate): Add support for i6400.
20830         (mips_multipass_dfa_lookahead): Likewise.
20831         * config/mips/mips.h (TUNE_I6400): Define.
20832         * config/mips/mips.md: Include i6400.md.
20833         (processor): Add i6400.
20834         * doc/invoke.texi (-march=@var{arch}): Add i6400.
20836 2015-07-23  Richard Biener  <rguenther@suse.de>
20838         PR middle-end/66916
20839         * match.pd: Guard widen and sign-change comparison simplification
20840         with single_use.
20842 2015-07-23  Richard Biener  <rguenther@suse.de>
20844         PR tree-optimization/66945
20845         * tree-ssa-propagate.c (substitute_and_fold_dom_walker
20846         ::before_dom_children): Force the propagators idea of
20847         non-executable edges to materialize, not what the folder
20848         chooses.
20850 2015-07-23  Richard Biener  <rguenther@suse.de>
20852         * gimple.h (gimple_cond_make_false): Use 0 != 0.
20853         (gimple_cond_make_true): Use 1 != 0.
20855 2015-07-22  DJ Delorie  <dj@redhat.com>
20857         * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
20858         slashes.
20860         * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
20861         (ashrhi3): Likewise.
20862         (lshrhi3): Likewise.
20863         (movhi): Take advantage of zero-extend to load small constants.
20864         (movpsi): Likewise.
20865         (and<mode>3): Likewise.
20866         (zero_extendqihi2): Likewise.
20867         (zero_extendqisi2): New.
20868         * config/msp430/constraints.md (N,O): New.
20869         * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
20871 2015-07-22  Uros Bizjak  <ubizjak@gmail.com>
20873         PR target/66954
20874         * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
20875         to enum feature_priority and feature_list.
20876         (fold_builtin_cpu): Add F_AES to enum processor_features
20877         and isa_names_table.
20879 2015-07-22  Ilya Enkovich  <enkovich.gnu@gmail.com>
20881         PR driver/66737
20882         * config/i386/linux-common.h (MPX_SPEC): Use linker option
20883         for 64bit target only.
20885 2015-07-22  Bernd Schmidt  <bernds@codesourcery.com>
20887         * config/nvptx/nvptx.c: Expand some comments.
20889 2015-07-22  James Greenhalgh  <james.greenhalgh@arm.com>
20891         * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
20892         (cortex_a53_advsimd): ...This.
20894 2015-07-22  Richard Biener  <rguenther@suse.de>
20896         * genmatch.c (expr::gen_transform): Clarify error message
20897         and display location.
20899 2015-07-22  Richard Biener  <rguenther@suse.de>
20901         * genmatch.c (struct operand): Add location member.
20902         (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
20903         constructors.
20904         (struct simplify): Remove match_location and result_location
20905         members.
20906         (elsehwere): Adjust.
20908 2015-07-22  Prachi Godbole  <prachi.godbole@imgtec.com>
20910         * config/mips/m5100.md: New file.
20911         * config/mips/mips-cpus.def (m5100, m5101): Define.
20912         * config/mips/mips-tables.opt: Regenerate.
20913         * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
20914         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
20915         -march=m5101 to -mips32r5.
20916         (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
20917         (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
20918         !-msoft-float.
20919         * config/mips/mips.md: Include m5100.md.
20920         (processor): Add m5100.
20921         * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
20923 2015-07-22  Robert Suchanek  <robert.suchanek@imgtec.com>
20925         * config/mips/mips-cpus.def (interaptiv): Define.
20926         * config/mips/mips-tables.opt: Regenerate.
20927         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
20928         -mips32r2.
20929         (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
20930         * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
20932 2015-07-22  Jiong Wang  <jiong.wang@arm.com>
20934         PR target/63521
20935         * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
20936         (HONOR_REG_ALLOC_ORDER): Define.
20938 2015-07-22  Richard Biener  <rguenther@suse.de>
20940         PR tree-optimization/66952
20941         * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
20942         blocks we end up executing unconditionally reset all SSA
20943         info such as range and alignment.
20944         * tree-ssanames.h (reset_flow_sensitive_info): Declare.
20945         * tree-ssanames.c (reset_flow_sensitive_info): New function.
20947 2015-07-22  Charles Baylis  <charles.baylis@linaro.org>
20949         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
20950         typo in attribute.
20952 2015-07-22  Richard Biener  <rguenther@suse.de>
20954         * genmatch.c (parser::parse_result): Properly handle
20955         match with result operands and conditions.
20957 2015-07-22  Charles Baylis  <charles.baylis@linaro.org>
20959         PR target/63870
20960         * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
20961         Add qualifier_struct_load_store_lane_index.
20962         (aarch64_types_loadstruct_lane_qualifiers): Use
20963         qualifier_struct_load_store_lane_index for lane index argument for
20964         last argument.
20965         (aarch64_types_storestruct_lane_qualifiers): Ditto.
20966         (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
20967         (aarch64_simd_expand_args): Add new argument describing mode of
20968         builtin. Check lane bounds for arguments with
20969         SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
20970         (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
20971         if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
20972         (aarch64_simd_expand_builtin): Handle arguments with
20973         qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
20974         aarch64_simd_expand_args.
20975         * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
20976         vst[234]_lane with BUILTIN_VALLDIF.
20977         * config/aarch64/aarch64-simd.md:
20978         (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
20979         endianness reversal on lane index.
20980         (aarch64_vec_load_lanesci_lane<mode>): Ditto.
20981         (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
20982         (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
20983         (vec_store_lanesci_lane<mode>): Ditto.
20984         (vec_store_lanesxi_lane<mode>): Ditto.
20985         (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
20986         reversal of lane index.
20987         (aarch64_ld3_lane<mode>): Ditto.
20988         (aarch64_ld4_lane<mode>): Ditto.
20989         (aarch64_st2_lane<mode>): Ditto.
20990         (aarch64_st3_lane<mode>): Ditto.
20991         (aarch64_st4_lane<mode>): Ditto.
20992         * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
20993         to qmode. Add new mode parameter. Update uses.
20994         (__LD3_LANE_FUNC): Ditto.
20995         (__LD4_LANE_FUNC): Ditto.
20996         (__ST2_LANE_FUNC): Ditto.
20997         (__ST3_LANE_FUNC): Ditto.
20998         (__ST4_LANE_FUNC): Ditto.
21000 2015-07-22  Jonathan Wakely  <jwakely@redhat.com>
21002         * doc/invoke.texi (Language Independent Options): Rename node to
21003         Diagnostic Message Formatting Options.
21005 2015-07-21  Vladimir Makarov  <vmakarov@redhat.com>
21007         PR ipa/66424.
21008         * lra-remat.c (operand_to_remat): Prevent using insns with input
21009         subregs processed separately by IRA.
21011 2015-07-21  Andrew MacLeod  <amacleod@redhat.com>
21013         * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
21014         straight loops.
21015         (single_imm_use): Check for iterator node.
21016         (num_imm_uses): Likewise.
21017         * tree-ssa-operands.c (has_zero_uses_1): Delete.
21018         (single_imm_use_1): Check for iterator node.
21020 2015-07-21  Mike Frysinger  <vapier@gentoo.org>
21021             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
21023         * configure.ac: Add check for new options in isl-0.15.
21024         * config.in, configure: Rebuilt.
21025         * graphite-blocking.c: Include <isl/constraint.h>
21026         * graphite-interchange.c,  graphite-poly.c: Likewise.
21027         * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
21028         * graphite.c: Likewise.
21029         * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
21030         <isl/union_set.h>.
21031         * graphite-dependences.c: Include <isl/constraint.h>.
21032         (max_number_of_out_dimensions): Returns isl_stat.
21033         (extend_schedule_1): Likewise
21034         (extend_schedule): Corresponding changes.
21035         * graphite-optimize-isl.c: Include <isl/constraint.h> and
21036         <isl/union_set.h>.
21037         (getSingleMap): Change return type of isl_stat.
21038         (optimize_isl): Conditionally use
21039         isl_options_set_schedule_serialize_sccs.
21040         * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
21041         if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
21043 2015-07-21  Georg-Johann Lay  <avr@gjlay.de>
21045         PR target/66956
21046         * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
21047         (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
21049 2015-07-21  Richard Biener  <rguenther@suse.de>
21051         PR tree-optimization/66948
21052         * genmatch.c (capture_info::walk_match): Also recurse to
21053         captures.  Properly compute expr state from captures of
21054         captures.
21055         * match.pd: Add single-use guards to
21056         (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
21058 2015-07-21  Nathan Sidwell  <nathan@codesourcery.com>
21060         * config/nvptx/mkoffload.c (process): Add static destructor call.
21062 2015-07-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21064         PR middle-end/66915
21065         * match.pd (A - B -> A + (-B)): Don't allow folding
21066         when type if a fixed-point type.
21068 2015-07-20  DJ Delorie  <dj@redhat.com>
21070         * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
21071         (iorqi3_real): Likewise for set1.
21073 2015-07-20  Uros Bizjak  <ubizjak@gmail.com>
21075         * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
21076         for !TARGET_64BIT.
21078 2015-07-20  Aditya Kumar  <hiraditya@msn.com>
21080         * graphite-isl-ast-to-gimple.c:
21081         Refactor so that each function can access 'region'. This will help
21082         maintain a parameter rename_map within a region.
21084 2015-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
21086         * config/rs6000/rs6000.md (*lt0_disi): New.
21088 2015-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
21090         PR target/66217
21091         * config/rs6000/constraints.md ("S", "T", "t"): Delete.  Update
21092         "available letters" comment.
21093         * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
21094         mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
21095         and_2rld_operand):  Delete.
21096         (and_operand): Adjust.
21097         (rotate_mask_operator): New.
21098         * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
21099         includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
21100         includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
21101         extract_ME): Delete.
21102         (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
21103         rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
21104         rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
21105         rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
21106         rs6000_emit_2insn_and): New.
21107         * config/rs6000/rs6000.c (num_insns_constant): Adjust.
21108         (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
21109         includes_rldic_lshift_p, includes_rldicr_lshift_p,
21110         insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
21111         (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
21112         rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
21113         s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
21114         rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
21115         rs6000_emit_2insn_and): New.
21116         (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
21117         (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
21118         handling.
21119         <NOT>: Don't fall through to next case.
21120         <AND>: Handle the various rotate-and-mask cases directly.
21121         <IOR>: Always cost as one insn.
21122         * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
21123         (and<mode>3): Adjust expander for the new patterns.
21124         (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
21125         and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
21126         (*and<mode>3_imm_dot_shifted): New.
21127         (*and<mode>3_mask): Delete, rewrite as ...
21128         (and<mode>3_mask): ... New.
21129         (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
21130         (andsi3_internal0_nomc): Delete.
21131         (*andsi3_internal6): Delete.
21132         (*and<mode>3_2insn): New.
21133         (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
21134         *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
21135         *insvsi_internal6, insvdi_internal, *insvdi_internal2,
21136         *insvdi_internal3): Delete.
21137         (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
21138         *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
21139         *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
21140         *ior<mode>_mask): New.
21141         (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
21142         *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
21143         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
21144         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
21145         Delete.
21146         (ashr<mode>3): Delete expander.
21147         (*ashr<mode>3): Rename to ...
21148         (ashr<mode>3): ... This.
21149         (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
21150         (*rotldi3_internal4, *rotldi3_internal5 and split,
21151         *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
21152         and split, *ashldi3_internal6 and split, *ashldi3_internal7,
21153         ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
21154         (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
21155         (splitter for loading a mask): Adjust.
21156         * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
21158 2015-07-20  Marek Polacek  <polacek@redhat.com>
21160         * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
21161         output_add_clobbers, output_added_clobbers_hard_reg_p,
21162         gen_rtx_scratch): Remove declarations.
21164 2015-07-20  Marek Polacek  <polacek@redhat.com>
21166         PR c++/55095
21167         * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
21169 2015-07-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21171         * simplify-rtx.c (simplify_unary_operation_1, NEG case):
21172         (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
21174 2015-07-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21176         * combine.c (combine_simplify_rtx): Move simplification step
21177         before various transformations/substitutions.
21179 2015-07-20  Mikhail Maltsev  <maltsevm@gmail.com>
21181         * wide-int.h (struct binary_traits): Fix partial specialization syntax.
21182         (struct int_traits): Likewise.
21184 2015-07-18  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21186         * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
21187         function to vmsdbgout_function_decl.
21189 2015-07-18  Uros Bizjak  <ubizjak@gmail.com>
21191         PR target/66922
21192         * config/i386/i386.c (ix86_expand_pextr): Reject extractions
21193         from misaligned positions.
21194         (ix86_expand_pinsr): Reject insertions to misaligned positions.
21196 2015-07-18  Sebastian Pop  <s.pop@samsung.com>
21198         PR middle-end/46851
21199         PR middle-end/60340
21200         * Makefile.in: Removed omega.o.
21201         * common.opt: Document flag fcheck-data-deps as deprecated.
21202         * doc/invoke.texi: Remove documentation for fcheck-data-deps and
21203         its associated params: omega-max-vars, omega-max-geqs,
21204         omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
21205         omega-max-keys, omega-eliminate-redundant-constraints.
21206         * doc/loop.texi: Remove all the section on Omega.
21207         * graphite-blocking.c: Include missing params.h: it used to be
21208         included through tree-data-ref.h and omega.h.
21209         * graphite-isl-ast-to-gimple.c: Same.
21210         * graphite-optimize-isl.c: Same.
21211         * graphite-sese-to-poly.c: Same.
21212         * graphite.c: Same.
21213         * omega.c: Remove.
21214         * omega.h: Remove.
21215         * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
21216         PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
21217         PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
21218         PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
21219         * passes.def: Remove pass_check_data_deps.
21220         * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
21221         (dump_conflict_function): Same.
21222         (dump_subscript): Same.
21223         (print_direction_vector): Same.
21224         (print_dir_vectors): Same.
21225         (print_lambda_vector): Same.
21226         (print_dist_vectors): Same.
21227         (dump_data_dependence_relation): Same.
21228         (dump_data_dependence_relations): Same.
21229         (dump_dist_dir_vectors): Same.
21230         (dump_ddrs): Same.
21231         (init_omega_eq_with_af): Removed.
21232         (omega_extract_distance_vectors): Removed.
21233         (omega_setup_subscript): Removed.
21234         (init_omega_for_ddr_1): Removed.
21235         (init_omega_for_ddr): Removed.
21236         (ddr_consistent_p): Removed.
21237         (compute_affine_dependence): Do not use omega to check data
21238         dependences.
21239         (compute_data_dependences_for_bb): Removed.
21240         (analyze_all_data_dependences): Removed.
21241         (tree_check_data_deps): Removed.
21242         * tree-data-ref.h: Do not include omega.h.
21243         (compute_data_dependences_for_bb): Removed.
21244         (tree_check_data_deps): Removed.
21245         * tree-ssa-loop.c (pass_check_data_deps): Removed.
21246         (make_pass_check_data_deps): Removed.
21247         * tree-ssa-phiopt.c: Include params.h.
21248         * tree-vect-data-refs.c: Same.
21249         * tree-vect-slp.c: Same.
21251 2015-07-18  Uros Bizjak  <ubizjak@gmail.com>
21253         * config/i386/i386.md (pushsf splitter): Pass curr_insn to
21254         find_constant_src.  FAIL if find_constant_src returns NULL_RTX.
21255         (mem->fpreg splitters): Ditto.
21256         (general_operand->nonimmediate_operand splitter): Use explicit modes.
21257         Disable DFmode for TARGET_64BIT.
21259 2015-07-17  H.J. Lu  <hongjiu.lu@intel.com>
21261         PR target/66906
21262         * config/i386/i386.c (ix86_expand_prologue): Replicate static
21263         chain on the stack.
21265 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
21267         * config/nvptx/mkoffload.c (process): Constify host data.
21268         * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
21269         Constify host data.
21270         (generate_host_descr_file): Likewise.
21272 2015-07-17  Aditya Kumar  <aditya.k7@samsung.com>
21273             Sebastian Pop  <s.pop@samsung.com>
21275         PR middle-end/61929
21276         * graphite-dependences.c (add_pdr_constraints): Renamed
21277         pdr->extent to pdr->subscript_sizes.
21278         * graphite-interchange.c (build_linearized_memory_access): Add
21279         back all gcc_assert's that the "isl_int to isl_val conversion"
21280         patch has removed.  Refactored.
21281         (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
21282         * graphite-poly.c (new_poly_dr): Same.
21283         (free_poly_dr): Same.
21284         * graphite-poly.h (struct poly_dr): Same.
21285         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
21286         all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
21287         * graphite-scop-detection.h: Fix space.
21288         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
21289         back all gcc_assert's removed by a previous patch.
21290         (wrap): Remove the_isl_ctx global variable that the same patch has
21291         added.
21292         (build_loop_iteration_domains): Same.
21293         (add_param_constraints): Same.
21294         (pdr_add_data_dimensions): Same.  Refactored.
21295         (build_poly_dr): Renamed extent to subscript_sizes.
21297 2015-07-17  Marek Polacek  <polacek@redhat.com>
21299         * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
21300         * match.pd: ... here.
21302 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
21304         * config/nvptx/mkoffload.c (process): Constify target data.
21305         * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
21306         Constify target data.
21307         (generate_target_offloadend_file): Likewise.
21309 2015-07-17  Yuri Rumyantsev  <ysrumyan@gmail.com>
21311         * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
21312         to allow renaming of PHI arguments on edges incoming from outer
21313         loop header, add corresponding check before start PHI iterator.
21314         (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
21315         variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
21316         with true force_vectorize.  Set-up dominator for outer loop too.
21317         Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
21318         (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
21319         was marked with force_vectorize and has restricted cfg.
21320         (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
21321         inner loop.
21322         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
21323         do peeling for outer loops.
21325 2015-07-17  Yvan Roux  <yvan.roux@linaro.org>
21326             Matthias Klose  <doko@ubuntu.com>
21328         * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
21329         build-sysroot, sysroot from the `Miscenalleous configure options' to
21330         the `Directories' section and strip trailing `/' from with_sysroot.
21331         (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
21332         * configure: Regenerated.
21334 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
21336         PR target/66824
21337         * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
21338         (TARGET_HARD_DF_REGS): Ditto.
21339         (TARGET_HARD_XF_REGS): Ditto.
21340         * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
21341         Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
21342         (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
21343         alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
21344         (*movsf_internal): Add alternatives 16 and 17. Enable
21345         alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
21347 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
21349         PR rtl-optimization/66891
21350         * calls.c (expand_call): Wrap precompute_register_parameters with
21351         NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
21353 2015-07-16  Nathan Sidwell  <nathan@codesourcery.com>
21355         * config/nvptx/mkoffload.c (process): Constify mapping variables.
21356         Define target data struct and initialize it.
21358 2015-07-16  Vladimir Makarov  <vmakarov@redhat.com>
21360         PR rtl-optimization/66626
21361         * ira.h (emit-rtl.h): Include.
21362         (non_spilled_static_chain_regno_p): New.
21363         * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
21364         unless it is non spilled static chain pseudo.
21365         (assign_hard_rego): Spill memory profitable allocno unless it is
21366         non spilled static chain pseudo.
21367         (allocno_spill_priority_compare): Put non spilled static chain
21368         pseudo at the end of sorted array.
21369         (improve_allocation): Do nothing if we have static chain and
21370         non-local goto.
21371         (allocno__priority_compare_func): Put non spilled static chain
21372         pseudo at the beginning of sorted array.
21373         (move_spill_restore): Ignore non spilled static chain pseudo.
21374         * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
21375         to non spilled static chain pseudo.
21376         * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
21377         pseudo at the beginning of sorted array.
21378         (spill_for): Spill non spilled static chain pseudo last.
21379         * lra-constraints.c (lra_constraints): Remove static chain pseudo
21380         check for equivalence.
21382 2015-07-16  Martin Liska  <mliska@suse.cz>
21384         PR ipa/66896.
21385         * ipa-prop.c (update_jump_functions_after_inlining): Create properly
21386         dst_ctx if it does not exist.
21388 2015-07-16  Martin Liska  <mliska@suse.cz>
21390         * hash-set.h (remove): New function.
21391         (iterator): New iteration class for hash_set.
21393 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
21395         * genattrtab.c (make_canonical): Add a file_location parameter.
21396         Use fatal_at rather than fatal.
21397         (get_attr_value): Likewise.  Update call to make_canonical.
21398         (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
21399         (make_internal_attr): Update calls accordingly.
21401 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
21403         * read-md.h (message_with_line, error_with_line): Delete.
21404         * read-md.c (message_with_line, error_with_line): Delete.
21405         * gensupport.h: Include read-md.h.
21406         (md_rtx_info): New structure.
21407         (read_md_rtx): Use it.  Return a bool success value.
21408         * gensupport.c (read_md_rtx): Likewise.
21409         * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
21410         (main): Update after interface changes.
21411         * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
21412         (main): Update after interface changes.
21413         * genattrtab.c (insn_code_number): Delete.
21414         (optimize_attrs): Add a max_insn_code parameter and use it instead
21415         of insn_code_number.
21416         (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
21417         Use *_at rather than *_with_line functions.
21418         (gen_insn): Likewise.
21419         (gen_delay): Likewise.
21420         (gen_insn_reserv): Likewise.
21421         (gen_bypass): Take an md_rtx_info rather than an rtx.
21422         (main): Update after interface changes.  Use a local max_insn_code
21423         variable instead of insn_code_number.
21424         * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
21425         an rtx.  Use fatal_at rather than fatal.
21426         (gen_query_cpu_unit, gen_bypass, gen_excl_set)
21427         (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
21428         (gen_absence_set, gen_final_absence_set, gen_automaton)
21429         (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
21430         (main): Update after interface changes.
21431         * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
21432         and code number.
21433         (main): Update after interface changes.
21434         * genconditions.c (main): Use new read_md_rtx interface.
21435         * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
21436         (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
21437         (main): Update after interface changes.
21438         * genemit.c (insn_code_number, insn_index_number): Delete.
21439         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
21440         Use fatal_at rather than fatal.
21441         (gen_expand): Take an md_rtx_info rather than an rtx.  Use fatal_at
21442         rather than fatal.
21443         (gen_split): Likewise.
21444         (main): Update after interface changes.
21445         * genextract.c (line_no): Delete.
21446         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
21447         Update call to walk_rtx.
21448         (VEC_safe_set_locstr): Add an md_rtx_info argument.  Use message_at
21449         rather than message_with_line.
21450         (walk_rtx): Add an md_rtx_info argument.  Update call to
21451         VEC_safe_set_locstr.
21452         (main): Update after interface changes.
21453         * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
21454         and lineno.  Use error_at rather than separate message_with_line
21455         calls and have_error assignments.
21456         (main): Update after interface changes.
21457         * genmddump.c (main): Use new read_md_rtx interface.
21458         * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
21459         (main): Update after interface changes.
21460         * genoutput.c (next_code_number): Delete.
21461         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
21462         (gen_peephole, gen_expand, gen_split): Likewise.
21463         (note_constraint): Likewise.  Use *_at rather than *_with_line
21464         functions.
21465         (main): Update after interface changes.
21466         * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
21467         rtx and lineno.
21468         (main): Update after interface changes.
21469         * genpreds.c (process_define_predicate): Take an md_rtx_info rather
21470         than an rtx and lineno.
21471         (process_define_constraint): Likewise.
21472         (process_define_register_constraint): Likewise.
21473         (main): Update after interface changes.
21474         * genrecog.c (next_insn_code, pattern_lineno): Delete.
21475         (validate_pattern): Replace top-level rtx with an md_rtx_info.
21476         Use *_at rather than *_with_line functions.
21477         (match_pattern_2): Likewise.
21478         (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
21479         (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
21480         Use *_at rather than *_with_line functions.
21481         * gentarget-def.c (add_insn): New function.
21482         (main): Use it.  Use new read_md_rtx interface.
21484 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
21486         * gensupport.h (compute_test_codes): Take a file_location rather
21487         than a line number.
21488         * gensupport.c (compute_test_codes): Likewise.  Use *_at functions
21489         rather than *_with_line functions.
21490         (process_define_predicate): Update call to compute_test_codes.
21491         * genpreds.c (validate_exp): Take a file_location rather than a
21492         line number.  Use *_at functions rather than *_with_line functions.
21493         (process_define_predicate): Update call to validate_exp.
21494         (constraint_data): Replace lineno field with a file_location.
21495         (add_constraint): Take a file_location rather than a line number.
21496         Use *_at functions rather than *_with_line functions.  Fix error
21497         message for address constraints.  Update after changes to
21498         validate_exp, constraint_data and compute_test_codes.
21499         (process_define_constraint): Update accordingly.
21500         (process_define_register_constraint): Likewise.
21502 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
21504         * genoutput.c (data): Use a file_location to record the source
21505         position.
21506         (nothing): Delete.
21507         (idata, idata_end): Remove initialization.
21508         (constraint_data): Replace lineno with a file_location.
21509         (output_insn_data): Update after changes to data.
21510         (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
21511         (scan_operands): Likewise, using *_at rather than *_with_line
21512         functions.
21513         (process_template): Likewise.
21514         (validate_insn_alternatives): Likewise.
21515         (validate_insn_operands): Likewise.
21516         (validate_optab_operands): Likewise.
21517         (init_insn_for_nothing): Initialize idata and idata_end.
21518         (note_constraint): Update after changes to constraint_data,
21519         using at rather than with_line functions.
21520         (mdep_constraint_len): Take a file_location rather than a
21521         line number.  Use at rather than with_line functions.
21523 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
21525         * read-md.h (fatal_at): Declare.
21526         * read-md.c (fatal_at): New function.
21527         * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
21528         to record the source position.
21529         (check_attr_test): Take a file_location instead of a line number.
21530         Use fatal_at instead of fatal.
21531         (check_attr_value): Update after above changes, using "at"
21532         rather than "with_line" reporting functions.
21533         (convert_set_attr_alternative): Likewise.
21534         (gen_attr): Likewise.
21535         (check_defs): Likewise.  Don't assign to read_md_filename.
21536         (gen_insn): Update initialization after above changes.
21537         (gen_delay): Likewise.
21538         (write_insn_cases): Print the filename for a define_peephole.
21539         (gen_insn_reserv): Take a line number as argument and update
21540         the call to check_attr_test.
21541         (main): Pass a line number to gen_insn_reserv.
21543 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
21545         * read-md.h (file_location): New structure.
21546         (directive_handler_t): Take a file_location rather than a line number.
21547         (message_at, error_at): Declare.
21548         (read_skip_construct): Delete.
21549         * read-md.c (message_with_line_1): Replace with...
21550         (message_at_1): ...this new function.
21551         (message_at, error_at): New functions.
21552         (message_with_line, error_with_line): Update to use message_at_1.
21553         (handle_enum): Take a file_location rather than a line number
21554         and use error_at for error reporting.
21555         (handle_include): Likewise.
21556         (read_skip_construct): Likewise.  Make static.
21557         (handle_file): Update after above changes.  Pass a file_location
21558         rather than a line number to handle_directive.
21559         * gensupport.c (queue_elem): Replace separate filename and lineno
21560         with a file_location.
21561         (queue_pattern): Replace filename and lineno arguments with a
21562         file_location.  Update after change to queue_elem.
21563         (process_define_predicate): Replace lineno argument with a
21564         file_location and use error_at for error reporting.  Update
21565         after above changes.
21566         (process_rtx): Likewise.
21567         (subst_pattern_match): Likewise.
21568         (get_alternatives_number): Likewise.
21569         (alter_predicate_for_insn): Likewise.
21570         (rtx_handle_directive): Likewise.
21571         (is_predicable): Update after above changes, using error_at rather
21572         than error_with_line.
21573         (has_subst_attribute): Likewise.
21574         (identify_predicable_attribute): Likewise.
21575         (alter_attrs_for_subst_insn): Likewise.
21576         (process_one_cond_exec): Likewise.
21577         (process_substs_on_one_elem): Likewise.
21578         (process_define_subst): Likewise.
21579         (check_define_attr_duplicates): Likewise.
21580         (read_md_rtx): Update after change to queue_elem.
21582 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
21584         * genoutput.c (next_index_number): Delete.
21585         (data): Remove index_number.
21586         (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
21587         (main): Remove manipulation of next_index_number.
21589 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
21591         * genattrtab.c (check_attr_value): Remove handling of null attrs.
21592         (make_canonical): Likewise.
21594 2015-07-16  Eric Botcazou  <ebotcazou@adacore.com>
21596         * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
21597         instead of adjust_address_nv.
21598         (restore_stack_nonlocal): Likewise.
21599         (nonlocal_goto): Likewise.
21601 2015-07-16  Tom de Vries  <tom@codesourcery.com>
21603         * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
21604         not have a corresponding loop header phi.
21606 2015-07-16  Tom de Vries  <tom@codesourcery.com>
21608         * tree-parloops.c (create_loads_for_reductions): Handle case that
21609         reduction is unused.
21611 2015-07-16  Richard Biener  <rguenther@suse.de>
21613         PR tree-optimization/66894
21614         * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
21615         about deriving NE_EXPR from truncated values.
21617 2015-07-16  Martin Liska  <mliska@suse.cz>
21619         * alloc-pool.h
21620         (object_allocator): Add new class.
21621         (pool_allocator::initialize): Use the underlying class.
21622         (pool_allocator::allocate): Likewise.
21623         (pool_allocator::remove): Likewise.
21624         (operator new): A new generic allocator.
21625         * asan.c (struct asan_mem_ref): Remove unused members.
21626         (asan_mem_ref_new): Replace new operator with
21627         object_allocator::allocate.
21628         (free_mem_ref_resources): Change deallocation.
21629         * cfg.c (initialize_original_copy_tables): Replace pool_allocator
21630         with object_allocator.
21631         * config/sh/sh.c (add_constant): Replace new operator with
21632         object_allocator::allocate.
21633         (sh_reorg): Change call to a release method.
21634         * cselib.c (struct elt_list): Remove unused members.
21635         (new_elt_list): Replace new operator with
21636         object_allocator::allocate.
21637         (new_elt_loc_list): Likewise.
21638         (new_cselib_val): Likewise.
21639         (unchain_one_elt_list): Change delete operator with remove method.
21640         (unchain_one_elt_loc_list): Likewise.
21641         (unchain_one_value): Likewise.
21642         (cselib_finish): Release newly added static allocators.
21643         * cselib.h (struct cselib_val): Remove unused members.
21644         (struct elt_loc_list): Likewise.
21645         * df-problems.c (df_chain_alloc): Replace pool_allocator with
21646         object_allocator.
21647         * df-scan.c (struct df_scan_problem_data): Likewise.
21648         (df_scan_alloc): Likewise.
21649         * df.h (struct dataflow): Likewise.
21650         * dse.c (struct read_info_type): Likewise.
21651         (struct insn_info_type): Likewise.
21652         (struct dse_bb_info_type): Likewise.
21653         (struct group_info): Likewise.
21654         (struct deferred_change): Likewise.
21655         (get_group_info): Likewise.
21656         (delete_dead_store_insn): Likewise.
21657         (free_read_records): Likewise.
21658         (replace_read): Likewise.
21659         (check_mem_read_rtx): Likewise.
21660         (scan_insn): Likewise.
21661         (dse_step1): Likewise.
21662         (dse_step7): Likewise.
21663         * et-forest.c (struct et_occ): Remove unused members.
21664         (et_new_occ): Use allocate instead of new operator.
21665         (et_new_tree): Likewise.
21666         (et_free_tree): Call release method explicitly.
21667         (et_free_tree_force): Likewise.
21668         (et_free_pools): Likewise.
21669         (et_split): Use remove instead of delete operator.
21670         * et-forest.h (struct et_node): Remove unused members.
21671         * ipa-cp.c: Change pool_allocator to object_allocator.
21672         * ipa-inline-analysis.c: Likewise.
21673         * ipa-profile.c: Likewise.
21674         * ipa-prop.c: Likewise.
21675         * ipa-prop.h: Likewise.
21676         * ira-build.c (initiate_cost_vectors): Cast return value.
21677         (ira_allocate_cost_vector): Likewise.
21678         * ira-color.c (struct update_cost_record): Remove unused members.
21679         * lra-int.h (struct lra_live_range): Likewise.
21680         (struct lra_copy): Likewise.
21681         (struct lra_insn_reg): Likewise.
21682         * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
21683         * lra.c (new_insn_reg): Replace new operator with allocate method.
21684         (free_insn_regs): Same for operator delete.
21685         (finish_insn_regs): Release new static allocator.
21686         (finish_insn_recog_data): Likewise.
21687         (lra_free_copies): Replace delete operator with remove method.
21688         (lra_create_copy): Replace operator new with allocate method.
21689         (invalidate_insn_data_regno_info): Same for remove method.
21690         * regcprop.c (struct queued_debug_insn_change): Remove unused members.
21691         (free_debug_insn_changes): Replace delete operator with remove method.
21692         (replace_oldest_value_reg): Replace operator new with allocate method.
21693         (pass_cprop_hardreg::execute): Release new static variable.
21694         * sched-deps.c (sched_deps_init): Change pool_allocator to
21695         object_allocator.
21696         * sel-sched-ir.c: Likewise.
21697         * sel-sched-ir.h: Likewise.
21698         * stmt.c (expand_case): Likewise.
21699         (expand_sjlj_dispatch_table): Likewise.
21700         * tree-sra.c (struct access): Remove unused members.
21701         (struct assign_link): Likewise.
21702         (sra_deinitialize): Release newly added static pools.
21703         (create_access_1):Replace operator new with allocate method.
21704         (build_accesses_from_assign): Likewise.
21705         (create_artificial_child_access): Likewise.
21706         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
21707         pool_allocator to object_allocator.
21708         * tree-ssa-pre.c: Likewise.
21709         * tree-ssa-reassoc.c: Likewise.
21710         * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
21711         * tree-ssa-strlen.c: Likewise.
21712         * tree-ssa-structalias.c: Likewise.
21713         * var-tracking.c (onepart_pool_allocate): New function.
21714         (unshare_variable): Use the newly added function.
21715         (variable_merge_over_cur): Likewise.
21716         (variable_from_dropped): Likewise.
21717         (variable_was_changed): Likewise.
21718         (set_slot_part): Likewise.
21719         (emit_notes_for_differences_1): Likewise.
21720         (vt_finalize): Release newly added static pools.
21722 2015-07-16  Martin Jambor  <mjambor@suse.cz>
21724         * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status.  Adjust
21725         all uses.  Fix two typos in its general comment.
21726         (func_body_info): Rename to ipa_func_body_info.  Adjust all uses.
21728 2015-07-16  Ilya Enkovich  <enkovich.gnu@gmail.com>
21730         * config/i386/linux-common.h (LINK_MPX): New.
21731         (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
21732         * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
21733         indicating '-z bndplt' support by linker.
21734         * configure: Regenerate.
21735         * config.in: Regenerate.
21737 2015-07-16  Richard Biener  <rguenther@suse.de>
21739         * fold-const.c (fold_widened_comparison): Remove.
21740         (fold_sign_changed_comparison): Likewise.
21741         (fold_comparison): Move widened and sign-changed comparison
21742         simplification ...
21743         * match.pd: ... to patterns here.
21744         * generic-match-head.c: Include target.h.
21745         * gimple-match-head.c: Likewise.
21747 2015-07-16  Richard Biener  <rguenther@suse.de>
21749         * tree-ssa-dom.c (dom_valueize): New function.
21750         (record_temporary_equivalences): Also record equivalences
21751         for dominating stmts that have uses of equivalences we are
21752         about to record.
21754 2015-07-16  Bin Cheng  <bin.cheng@arm.com>
21756         * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
21757         add_autoinc_candidates.
21758         (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
21759         (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
21760         (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
21761         (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
21762         Call new function.
21763         (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
21764         (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
21765         Remove parameter struct iv*.  Call add_autoinc_candidates here.
21766         (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
21767         (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
21768         Call new function.
21769         (find_iv_candidates): Call new functions.
21771 2015-07-16  Sandra Loosemore  <sandra@codesourcery.com>
21773         * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
21774         uninitialized-variable warning.
21776 2015-07-16  Kaz Kojima  <kkojima@gcc.gnu.org>
21778         PR target/65249
21779         * config/sh/sh.md (movdi): Split simple reg move to two movsi
21780         when the destination is R0.
21782 2015-07-16  Uros Bizjak  <ubizjak@gmail.com>
21784         PR target/66866
21785         * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
21786         * config/i386/i386.c (ix86_expand_pextr): New function.
21787         (ix86_expand_pinsr): Handle V1TI and TI modes.  Call ix86_expand_pextr
21788         for non-lowpart subregs.
21789         * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
21790         (insv<mode>): Use SWI248 mode iterator.
21791         (insv<mode>_1): Ditto.
21793 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
21794             Sebastian Pop  <s.pop@samsung.com>
21796         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
21797         iterator to use_stmt.
21799 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
21800             Sebastian Pop <s.pop@samsung.com>
21802         * graphite-scop-detection.c (build_scops_1): Discard scops for
21803         which entry==exit.
21805 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
21806             Sebastian Pop <s.pop@samsung.com>
21808         * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
21809         case of a return statement in scop.
21811 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
21812             Sebastian Pop <s.pop@samsung.com>
21814         * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
21815         INTEGER_TYPE parameters.
21816         (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
21817         VECTOR_CST in scan_tree_for_params.
21818         (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
21820 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
21822         * gimple-pretty-print.h: Don't include pretty-print.h.
21823         * tree-streamer.h: Don't include lto-streamer.h.
21824         * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
21825         * gimple-streamer-in.c: Remove redundant includes.
21826         * gimple-streamer-out.c: Likewise.
21827         * ipa-devirt.c: Likewise.
21828         * ipa-icf.c: Likewise.
21829         * ipa-inline-analysis.c: Likewise.
21830         * ipa-polymorphic-call.c: Likewise.
21831         * ipa-profile.c: Likewise.
21832         * ipa-prop.c: Likewise.
21833         * ipa-pure-const.c: Likewise.
21834         * lto-cgraph.c: Likewise.
21835         * lto-streamer-in.c: Likewise.
21836         * lto-streamer-out.c: Likewise.
21837         * lto-streamer.c: Likewise.
21838         * tree-streamer-in.c: Likewise.
21839         * tree-streamer-out.c: Likewise.
21840         * tree-streamer.c: Likewise.
21842 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
21844         * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
21845         include input.h.
21846         * opts.c: Remove multiline #include comment.
21848 2015-07-15  Nathan Sidwell  <nathan@codesourcery.com>
21850         * config/nvptx/mkoffload.c (process): Add C++ protection to
21851         emitted code.
21853 2015-07-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
21855         PR target/66854
21856         * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
21857         null before IEEE 128-bit floating point support patch.
21859 2015-07-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
21861         * simplify-rtx.c (simplify_ternary_operation): Add simplification
21862         for (!c) != {0,...,0} ? a : b for vector modes.
21864 2015-07-15  Paolo Bonzini  <bonzini@gnu.org>
21865             Martin Jambor  <mjambor@suse.cz>
21867         * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
21868         struct func_body_info* instead of struct ipa_node_params*, expecting
21869         fbi->info to be filled in.  Replace throughout.  Adjust call to
21870         ipa_load_from_parm_agg.
21871         (set_cond_stmt_execution_predicate): Accept struct func_body_info*
21872         instead of struct ipa_node_params*.  Adjust calls to other functions
21873         so that they pass either fbi or fbi->info.
21874         (set_switch_stmt_execution_predicate): Likewise.
21875         (will_be_nonconstant_predicate): Likewise.
21876         (compute_bb_predicates): Likewise.
21877         (estimate_function_body_sizes): Move asserts earlier.  Fill in
21878         struct func_body_info, replace parms_info with fbi.info.  Adjust
21879         calls to functions that now accept struct func_body_info.
21880         * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
21881         (struct func_body_info): Likewise.
21882         (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
21883         remove static.  Adjust callers.
21884         (ipa_load_from_parm_agg): Remove.
21885         * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
21886         (func_body_info): Likewise.
21887         (ipa_load_from_parm_agg): Adjust prototype.
21889 2015-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21891         * gensupport.c (rtx_handle_directive): Adjust.
21892         * read-rtl.c (apply_iterators): Take vector to add rtxs to
21893         instead of expr list rtx.
21894         (add_define_attr_for_define_subst): Likewise.
21895         (add_define_subst_attr): Likewise.
21896         (read_subst_mapping): Likewise.
21897         (read_rtx): Likewise.
21898         * rtl.h (read_rtx): Adjust.
21900 2015-07-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21902         * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
21904 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
21906         PR target/58066
21907         * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
21908         (*tls_local_dynamic_base_64_<mode>): Ditto.
21909         (*tls_local_dynamic_base_64_largepic): Ditto.
21910         (tls_global_dynamic_64_<mode>): Update expander pattern.
21911         (tls_local_dynamic_base_64_<mode>): Ditto.
21913 2015-07-15  Richard Biener  <rguenther@suse.de>
21915         * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
21916         and bool_var == 1 -> bool_var simplifications ...
21917         * match.pd: ... to patterns here.  Factor out negate_expr_p
21918         cases from the A - B -> A + (-B) patterns as negate_expr_p
21919         predicate and add a -(A + B) -> (-B) - A pattern.
21921 2015-07-15  Robert Suchanek  <robert.suchanek@imgtec.com>
21923         * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
21925 2015-07-15  Matthew Fortune  <matthew.fortune@imgtec.com>
21926             Robert Suchanek  <robert.suchanek@imgtec.com>
21928         * config/mips/mips.c (mips_int_mask): New enum.
21929         (mips_shadow_set): Likewise.
21930         (int_mask): New variable.
21931         (use_shadow_register_set_p): Change type to enum mips_shadow_set.
21932         (machine_function): Add int_mask and use_shadow_register_set.
21933         (mips_attribute_table): Add attribute handlers for interrupt and
21934         use_shadow_register_set.
21935         (mips_interrupt_mask): New static function.
21936         (mips_handle_interrupt_attr): Likewise.
21937         (mips_handle_use_shadow_register_set_attr): Likewise.
21938         (mips_use_shadow_register_set): Change return type to enum
21939         mips_shadow_set.  Add argument handling for use_shadow_register_set
21940         attribute.
21941         (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
21942         compare with mips_shadow_set enum.
21943         (mips_compute_frame_info): Add interrupt mask and
21944         use_shadow_register_set to per-function information structure.
21945         Add a stack slot for EPC unconditionally.
21946         (mips_expand_prologue): Compare use_shadow_register_set value
21947         with mips_shadow_set enum.  Save EPC always in K1, clobber only K1 for
21948         masked interrupt register but in EIC mode use K0 and save Cause in K0.
21949         EPC saved and restored unconditionally.  Use PMODE_INSN macro when
21950         copying the stack pointer from the shadow register set.
21951         * config/mips/mips.h (SR_IM0): New define.
21952         * config/mips/mips.md (mips_rdpgpr): Rename to...
21953         (mips_rdpgpr_<mode>): ...this.  Use the Pmode iterator.
21954         * doc/extend.texi (Declaring Attributes of Functions): Document
21955         optional arguments for interrupt and use_shadow_register_set
21956         attributes.
21958 2015-07-15  Robert Suchanek  <robert.suchanek@imgtec.com>
21960         * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
21961         interrupt attribute.
21962         (mips_expand_prologue): Disable the floating point unit in an ISR.
21963         * config/mips/mips.h (SR_COP1): New define.
21965 2015-07-15  Richard Biener  <rguenther@suse.de>
21967         * genmatch.c (parser::peek, parser::peek_ident): Add argument
21968         to tell how many tokens to peek ahead (default 1).
21969         (parser::eat_token, parser::eat_ident): Return token consumed.
21970         (parser::parse_result): Parse new switch statement.
21971         * match.pd: Use case statements where appropriate.
21973 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
21975         PR rtl-optimization/58066
21976         * calls.c (expand_call): Precompute register parameters before stack
21977         alignment is performed.
21979 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
21981         PR rtl-optimization/66838
21982         * postreload.c (reload_cse_move2add): Also process
21983         CALL_INSN_FUNCTION_USAGE when resetting information of
21984         call-clobbered registers.
21986 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
21987             Cesar Philippidis  <cesar@codesourcery.com>
21988             Chung-Lin Tang  <cltang@codesourcery.com>
21990         * config/nios2/constraints.md (U, v): New constraints.
21991         * config/nios2/predicates.md (rdprs_dcache_operand): New.
21992         (ldstex_memory_operand): New.
21993         * config/nios2/sync.md: New file.
21994         * config/nios2/nios2.md (unspecv): Add new builtin function
21995         UNSPECV codes.
21996         (rdprs, flushd, flushda, wrpie, eni): New patterns.
21997         (top-level): Include sync.md.
21998         * config/nios2/nios2.c (N2_FTYPES): Add function types for
21999         new builtins.
22000         (N2_BUILTINS): Add arch field setting, add new builtins.
22001         (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
22002         for arch field.
22003         (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
22004         Also handle ldex/stex/ldsex/stsex builtins.
22005         (nios2_expand_rdprs_builtin): New function.
22006         (nios2_expand_cache_builtin): New function.
22007         (nios2_expand_wrpie_builtin): New function.
22008         (nios2_expand_eni_builtin): New function.
22009         (nios2_expand_builtin): Add arch field handling and new builtin
22010         cases.
22011         * doc/extend.texi (Altera Nios II Built-in Functions): Document
22012         new builtins.
22013         * doc/md.texi (Machine Constraints): Document U and v constraints.
22015 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
22016             Cesar Philippidis  <cesar@codesourcery.com>
22017             Chung-Lin Tang  <cltang@codesourcery.com>
22019         * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
22020         * config/nios2/nios2.c (struct GTY (()) machine_function): Add
22021         callee_save_reg_size and uses_anonymous_args fields.
22022         (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
22023         (nios2_create_cfa_notes): New function.
22024         (nios2_adjust_stack): New function for adjusting stack.
22025         (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
22026         Use nios2_adjust_stack.
22027         (nios2_expand_epilogue): Likewise.
22028         (nios2_expand_return): New function.
22029         (nios2_can_use_return_insn): Update for CDX pop.n usage.
22030         (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
22031         If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
22032         * config/nios2/nios2.md (return): Use nios2_expand_return.
22034 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
22035             Cesar Philippidis  <cesar@codesourcery.com>
22036             Chung-Lin Tang  <cltang@codesourcery.com>
22038         * config/nios2/predicates.md (pop_operation): New.
22039         (ldwm_operation, stwm_operation): New.
22040         (nios2_hard_register_operand): New.
22041         * config/nios2/nios2-protos.h (pop_operation_p): Declare.
22042         (ldstwm_operation_p): Declare.
22043         (gen_ldstwm_peep): Declare.
22044         * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
22045         (base_reg_adjustment_p): New.
22046         (pop_operation_p): New.
22047         (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
22048         (nios2_ldstwm_regset_p): New.
22049         (ldstwm_operation_p): New.
22050         (gen_ldst): New.
22051         (nios2_ldst_parallel): New.
22052         (struct ldswm_operand): Declare.
22053         (compare_ldstwm_operands): New.
22054         (can_use_cdx_ldstw): New.
22055         (gen_ldstwm_peep): New.
22056         * config/nios2/nios2-ldstwm.sml: New.
22057         * config/nios2/nios2.md: Include ldstwm.md.
22058         * config/nios2/ldstwm.md: Generated.
22060 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
22061             Cesar Philippidis  <cesar@codesourcery.com>
22062             Chung-Lin Tang  <cltang@codesourcery.com>
22064         * config/nios2/nios2.h (LABEL_ALIGN): Define.
22065         (REG_ALLOC_ORDER): Define.
22066         (ADJUST_REG_ALLOC_ORDER): Define.
22067         (HONOR_REG_ALLOC_ORDER): Define.
22068         (CDX_REG_P): Define.
22069         (ANDCLEAR_INT): Define.
22070         * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
22071         (nios2_label_align): Declare.
22072         (nios2_cdx_narrow_form_p): Declare.
22073         (nios2_adjust_reg_alloc_order): Declare.
22074         * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
22075         operation.
22076         (nios2_large_unspec_reloc_p): New function, split from...
22077         (nios2_legitimate_pic_operand_p): ...here.
22078         (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
22079         (nios2_print_operand_punct_valid_p): New.
22080         (nios2_print_operand): Add %., %!, %x, %y, %A.  Remove %U.
22081         (split_mem_address): New.
22082         (split_alu_insn): New.
22083         (cdxreg): New.
22084         (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
22085         (enum nios2_add_insn_kind): New.
22086         (nios2_add_insn_names, nios2_add_insn_narrow): New.
22087         (nios2_add_insn_classify): New.
22088         (nios2_add_insn_asm): New.
22089         (nios2_cdx_narrow_form_p): New.
22090         (label_align, min_labelno, max_labelno): New.
22091         (nios2_reorg): New.
22092         (nios2_label_align): New.
22093         (nios2_adjust_reg_alloc_order): New.
22094         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
22095         (TARGET_MACHINE_DEPENDENT_REORG): Define.
22096         * config/nios2/constraints.md (P): New constraint.
22097         * config/nios2/predicates.md (const_and_operand): New.
22098         (and_operand): New.
22099         (stack_memory_operand): New.
22100         * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
22101         (length): Update to use nios2_cdx_narrow_form_p().
22102         (type): Add new insn type values.
22103         (control, alu, st, ld, shift): Update insn reservations with
22104         new insn type values.
22105         (*high, *lo_sum): Define new insn patterns for constant generation.
22106         (movqi_internal, movhi_internal, movsi_internal): Reduce
22107         alternatives, update asm template to handle CDX variants, update
22108         type attributes.
22109         (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
22110         template, update type attributes.
22111         (extendhisi2, extendqi<mode>2): Likewise.
22112         (addsi3): Change to use function for asm string.
22113         (subsi3): Add CDX notation to asm template, update type attributes.
22114         (negsi3, one_cmplsi3): Likewise.
22115         (andsi3): New pattern, specialized from logical patterns.
22116         (<code>si3): Remove and case, combine alternatives, update asm
22117         template.
22118         (<shift_op>si3): Add CDX notation, update type attributes.
22119         (rotrsi3): Update type attribute.
22120         (*merge, extzv, insv): New insn patterns.
22121         (return): Change to define_expand.
22122         (simple_return): Add CDX notation, update type attributes.
22123         (indirect_jump): Add CDX notation.
22124         (jump): Update asm cases, update length attribute expression.
22125         (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
22126         (nios2_cbranch): Update asm cases and length attribute expression
22127         to handle CDX variants.
22128         (nios2_cmp<code>): Update asm template.
22129         (nop): Add CDX notation, update type attributes.
22130         (trap): Add CDX notation.
22131         (ctrapsi4): Update asm cases and length attribute expression to
22132         handle CDX variant.
22133         * doc/md.texi (Machine Constraints): Document P constraint.
22135 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
22136             Cesar Philippidis  <cesar@codesourcery.com>
22137             Chung-Lin Tang  <cltang@codesourcery.com>
22139         * config/nios2/nios2.h (SMALL_INT12): New macro.
22140         * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
22141         (nios2_valid_addr_expr_p): Use it.
22142         (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
22143         with implicit "io" instructions on R2.
22144         * config/nios2/constraints.md (w): New constraint.
22145         * config/nios2/predicates.md (ldstio_memory_operand): New.
22146         * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
22147         operand predicate and constraint.
22148         (ld<bh>io_signed, st<bhw>io>): Likewise.
22149         * doc/md.texi (Machine Constraints): Document w constraint.
22151 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
22152             Cesar Philippidis  <cesar@codesourcery.com>
22153             Chung-Lin Tang  <cltang@codesourcery.com>
22155         * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
22156         * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
22157         Nios II architecture level.
22158         * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
22159         (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
22160         (OPTION_DEFAULT_SPECS): Define.
22161         (ASM_SPEC): Add -march= spec strings.
22162         * config/nios2/nios2.c (nios2_option_override): Check for
22163         conflicts involving new options.
22164         * config.gcc (nios2*-*-*): Support --with-arch=.
22165         * doc/invoke.texi (Option Summary, Nios II Options): Document
22166         -march=, -mbmx, and -mcdx.
22168 2015-07-14  Vladimir Makarov  <vmakarov@redhat.com>
22170         PR rtl-optimization/66626
22171         * lra-constraints.c (lra_constraints): Prevent equivalence
22172         substitution for static chain pseudo in functions with nonlocal
22173         goto.
22175 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
22177         * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
22178         (nios2_emit_stack_limit_check): Add size parameter.  Handle
22179         -fstack-limit-symbol as well as -fstack-limit-register.
22180         (nios2_expand_prologue): Emit only a single stack limit check,
22181         even if multiple stack adjustments are required.
22182         (nios2_option_override): Diagnose unsupported combination of -fpic
22183         and -stack-limit-symbol.
22185 2015-07-14  H.J. Lu  <hongjiu.lu@intel.com>
22187         * Makefile.in (top_srcdir): New.
22188         * configure.ac: Use AM_ZLIB.
22189         * configure: Regeneated.
22191 2015-07-14  Matthias Klose  <doko@ubuntu.com>
22193         PR target/66840
22194         * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
22196 2015-07-14  Richard Biener  <rguenther@suse.de>
22198         PR tree-optimization/66863
22199         * tree-vrp.c (register_edge_assert_for_2): Properly restrict
22200         what we record for conversion use stmt lhs inequalities.
22202 2015-07-14  Richard Biener  <rguenther@suse.de>
22204         * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
22205         (decision_tree::gen_gimple): Likewise.
22207 2015-07-14  Tom de Vries  <tom@codesourcery.com>
22209         * gcc.c (greater_than_spec_func): Declare forward.
22210         (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
22211         -ftree-parallelize-loops={0,1}.
22212         (static_spec_functions): Add greater_than_spec_func function with name
22213         "gt".
22214         (greater_than_spec_func): New function.
22216 2015-07-14  Richard Biener  <rguenther@suse.de>
22218         * tree-ssa-dom.c (record_temporary_equivalences): Merge
22219         wideing type conversion case from record_equivalences_from_incoming_edge
22220         and use record_equality to record equivalences.
22221         (record_equivalences_from_incoming_edge): Call
22222         record_temporary_equivalences.
22224 2015-07-14  Richard Biener  <rguenther@suse.de>
22226         * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
22227         (struct if_expr): New.
22228         (struct with_expr): Likewise.
22229         (is_a_helper): Add helpers for if_expr and with_expr.
22230         (struct simplify): Add simplify_kind enum and member.  Remove
22231         ifexpr_vec member.
22232         (simplify::simplify): Adjust.
22233         (lower_commutative): Adjust.
22234         (lower_opt_convert): Likewise.
22235         (lower_cond): Likewise.
22236         (replace_id): Handle with_expr and if_expr.
22237         (lower_for): Adjust.
22238         (dt_simplify::gen_1): New recursive worker, split out from ...
22239         (dt_simplify::gen): ... here.  Deal with if and with expansion
22240         recursively.
22241         (capture_info::capture_info): Take context argument
22242         (capture_info::walk_result): Only analyze specific result.
22243         (parser::parse_result): New function.
22244         (parser::parse_simplify): Adjust to parse ifs with then end
22245         else case.
22246         (parser::parse_if): Simplify.
22247         (parser::parse_pattern): Pass down simplify kind.
22248         * match.pd: Convert if structure to new syntax.
22250 2015-07-13  Marek Polacek  <polacek@redhat.com>
22252         * rtl.c (rtx_equal_p_cb): Fix typo.
22254 2015-07-13  Andrew MacLeod  <amacleod@redhat.com>
22256         * omega.h: Don't include config.h, don't include params.h again if
22257         omega.h has already been included.
22258         * graphite-poly.h: Include sese.h.
22259         * graphite.c: Don't include sese.h, remove needless includes and
22260         minimize includes outside #ifdef HAVE_isl block.
22261         * graphite-blocking.c: Don't include sese.h, remove needless includes,
22262         and wrap entire file in #ifdef HAVE_isl
22263         * graphite-dependences.c: Likewise.
22264         * graphite-interchange.c: Likewise.
22265         * graphite-isl-ast-to-gimple.c: Likewise.
22266         * graphite-optimize-isl.c: Likewise.
22267         * graphite-poly.c: Likewise.
22268         * graphite-scop-detection.c: Likewise.
22269         * graphite-sese-to-poly.c: Likewise.
22271 2015-07-13  Tom de Vries  <tom@codesourcery.com>
22273         * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
22275 2015-07-13  Renlin Li  <renlin.li@arm.com>
22277         PR rtl/66556
22278         * simplify-rtx.c (simplify_const_relational_operation): Add
22279         side_effects_p checks.
22281 2015-07-12  Aldy Hernandez  <aldyh@redhat.com>
22283         * bitmap.h: Fix double word typos.
22284         * builtins.c: Same.
22285         * calls.c: Same.
22286         * cfgloopmanip.c: Same.
22287         * cgraph.c: Same.
22288         * cgraph.h: Same.
22289         * cgraphclones.c: Same.
22290         * combine.c: Same.
22291         * config/aarch64/aarch64-protos.h: Same.
22292         * config/aarch64/aarch64.c: Same.
22293         * config/aarch64/aarch64.md: Same.
22294         * config/arm/arm.md: Same.
22295         * config/arm/arm1020e.md: Same.
22296         * config/arm/arm1026ejs.md: Same.
22297         * config/arm/arm926ejs.md: Same.
22298         * config/arm/fa526.md: Same.
22299         * config/arm/fa606te.md: Same.
22300         * config/arm/fa626te.md: Same.
22301         * config/arm/fa726te.md: Same.
22302         * config/arm/fmp626.md: Same.
22303         * config/darwin.c: Same.
22304         * config/epiphany/epiphany.c: Same.
22305         * config/frv/frv.c: Same.
22306         * config/ft32/ft32.c: Same.
22307         * config/gnu-user.h: Same.
22308         * config/h8300/constraints.md: Same.
22309         * config/i386/i386.c: Same.
22310         * config/i386/i386.md: Same.
22311         * config/iq2000/iq2000.md: Same.
22312         * config/mips/mips.c: Same.
22313         * config/mmix/mmix.md: Same.
22314         * config/moxie/moxie.c: Same.
22315         * config/nds32/nds32.md: Same.
22316         * config/pa/pa.h: Same.
22317         * config/rs6000/aix.h: Same.
22318         * config/rs6000/rs6000.h: Same.
22319         * config/sh/sh.c: Same.
22320         * config/tilegx/tilegx.md: Same.
22321         * config/tilepro/gen-mul-tables.cc: Same.
22322         * cse.c: Same.
22323         * dbxout.c: Same.
22324         * doc/invoke.texi: Same.
22325         * dse.c: Same.
22326         * dwarf2out.c: Same.
22327         * final.c: Same.
22328         * gcc.c: Same.
22329         * genmatch.c: Same.
22330         * gimplify.c: Same.
22331         * hash-table.h: Same.
22332         * internal-fn.c: Same.
22333         * ipa-cp.c: Same.
22334         * ipa-devirt.c: Same.
22335         * ipa-icf.c: Same.
22336         * ipa-icf.h: Same.
22337         * ipa-profile.c: Same.
22338         * ipa-prop.c: Same.
22339         * ipa-prop.h: Same.
22340         * ira.c: Same.
22341         * omp-low.c: Same.
22342         * reg-stack.c: Same.
22343         * regcprop.c: Same.
22344         * reorg.c: Same.
22345         * rtl.h: Same.
22346         * sbitmap.h: Same.
22347         * tree-eh.c: Same.
22348         * tree-inline.c: Same.
22349         * tree-sra.c: Same.
22350         * tree-ssa-dom.c: Same.
22351         * tree-ssa-loop-ivopts.c: Same.
22352         * tree-ssa-structalias.c: Same.
22353         * tree-ssa-tail-merge.c: Same.
22354         * tree-ssa-ter.c: Same.
22355         * tree-ssa-threadupdate.c: Same.
22356         * tree-ssa-uninit.c: Same.
22357         * tree-ssanames.c: Same.
22358         * tree-vect-loop-manip.c: Same.
22359         * tree-vrp.c: Same.
22360         * tree.c: Same.
22361         * valtrack.c: Same.
22362         * vec.h: Same.
22364 2015-07-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
22366         PR middle-end/66726
22367         * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
22368         tree_ssa_phiopt_worker): Call it.
22370 2015-07-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
22372         * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
22373         * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
22374         REG_EQUAL note.
22376 2015-07-11  Marek Polacek  <polacek@redhat.com>
22378         PR middle-end/66353
22379         * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
22380         * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
22381         (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
22382         rather than bb_has_abnormal_call_pred.
22383         * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
22384         (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
22385         rather than bb_has_abnormal_call_pred.
22387 2015-07-10  Anatoly Sokolov  <aesok@post.ru>
22389         * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
22390         REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
22391         RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
22392         * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
22393         v850_legitimate_address_p): New functions.
22394         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
22396 2015-07-10  H.J. Lu  <hongjiu.lu@intel.com>
22398         PR target/66819
22399         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
22400         indirect sibcall with register arguments if register available
22401         for argument passing.
22402         (init_cumulative_args): Set cfun->machine->arg_reg_available
22403         to (cum->nregs > 0) or to true if function has a variable
22404         argument list.
22405         (function_arg_advance_32): Set cfun->machine->arg_reg_available
22406         to false if cum->nregs <= 0.
22407         * config/i386/i386.h (machine_function): Add arg_reg_available.
22409 2015-07-10  Uros Bizjak  <ubizjak@gmail.com>
22411         * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
22412         and gen_higpart instead of gen_rtx_SUBREG.
22413         * config/i386/i386.md
22414         (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
22415         (read-modify peephole2): Use gen_lowpart instead of
22416         gen_rtx_SUBREG for operand 5.
22418 2015-07-10  Andrew MacLeod  <amacleod@redhat.com>
22420         * config/tilepro/gen-mul-tables.cc (main): Change include list for
22421         generated files.
22422         * config/tilepro/mul-tables.c: Regenerate.
22423         * config/tilegx/mul-tables.c: Regenerate.
22425 2015-07-10  Richard Biener  <rguenther@suse.de>
22427         * fold-const.c (distribute_bit_expr): Remove.
22428         (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
22429         to (A & C1) | (B & C2), distributing (A & B) | (A & C)
22430         to A & (B | C) and simplifying A << C1 << C2 to ...
22431         * match.pd: ... patterns here.
22433 2015-07-10  Jiong Wang  <jiong.wang@arm.com>
22435         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
22436         Mark mem as READONLY and NOTRAP for PIC symbol.
22438 2015-07-10  Andrew MacLeod  <amacleod@redhat.com>
22440         * gimple-predict.h: New file.
22441         (gimple_predict_predictor, gimple_predict_set_predictor,
22442         gimple_predict_outcome, gimple_predict_set_outcome,
22443         gimple_build_predict): Relocate here.
22444         * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
22445         gimple_predict_outcome, gimple_predict_set_outcome): Move to
22446         gimple-predict.h.
22447         * gimple.c (gimple_build_predict): Move to gimple-predict.h
22448         * basic-block.h: Don't include cfghooks.h.
22449         * backend.h: Don't include predict.h.
22450         * cfghooks.h: Include predict.h.
22451         * gimple-pretty-print.c: Include gimple-predict.h.
22452         * gimplify.c: Likwise.
22453         * predict.c: Adjust includes.
22454         * tree-inline.c: Likewise.
22455         * asan.c: Likewise.
22456         * auto-inc-dec.c: Likewise.
22457         * auto-profile.c: Likewise.
22458         * bb-reorder.c: Likewise.
22459         * builtins.c: Likewise.
22460         * caller-save.c: Likewise.
22461         * calls.c: Likewise.
22462         * cfganal.c: Likewise.
22463         * cfgbuild.c: Likewise.
22464         * cfg.c: Likewise.
22465         * cfgcleanup.c: Likewise.
22466         * cfgexpand.c: Likewise.
22467         * cfghooks.c: Likewise.
22468         * cfgloopanal.c: Likewise.
22469         * cfgloop.c: Likewise.
22470         * cfgloopmanip.c: Likewise.
22471         * cfgrtl.c: Likewise.
22472         * cgraph.c: Likewise.
22473         * cgraphunit.c: Likewise.
22474         * combine.c: Likewise.
22475         * cprop.c: Likewise.
22476         * cse.c: Likewise.
22477         * dce.c: Likewise.
22478         * dojump.c: Likewise.
22479         * dse.c: Likewise.
22480         * except.c: Likewise.
22481         * expmed.c: Likewise.
22482         * expr.c: Likewise.
22483         * final.c: Likewise.
22484         * fold-const.c: Likewise.
22485         * function.c: Likewise.
22486         * fwprop.c: Likewise.
22487         * gcc-plugin.h: Likewise.
22488         * gcse.c: Likewise.
22489         * genattrtab.c: Likewise.
22490         * genemit.c: Likewise.
22491         * gengtype.c: Likewise.
22492         * genopinit.c: Likewise.
22493         * genoutput.c: Likewise.
22494         * genpreds.c: Likewise.
22495         * genrecog.c: Likewise.
22496         * gimple-fold.c: Likewise.
22497         * gimple-iterator.c: Likewise.
22498         * gimple-ssa-isolate-paths.c: Likewise.
22499         * gimple-ssa-strength-reduction.c: Likewise.
22500         * graph.c: Likewise.
22501         * graphite-blocking.c: Likewise.
22502         * graphite.c: Likewise.
22503         * graphite-dependences.c: Likewise.
22504         * graphite-interchange.c: Likewise.
22505         * graphite-isl-ast-to-gimple.c: Likewise.
22506         * graphite-optimize-isl.c: Likewise.
22507         * graphite-poly.c: Likewise.
22508         * graphite-scop-detection.c: Likewise.
22509         * graphite-sese-to-poly.c: Likewise.
22510         * haifa-sched.c: Likewise.
22511         * ifcvt.c: Likewise.
22512         * internal-fn.c: Likewise.
22513         * ipa-cp.c: Likewise.
22514         * ipa-profile.c: Likewise.
22515         * ipa-split.c: Likewise.
22516         * ipa-utils.c: Likewise.
22517         * ira-build.c: Likewise.
22518         * ira-color.c: Likewise.
22519         * ira-conflicts.c: Likewise.
22520         * ira-costs.c: Likewise.
22521         * ira-emit.c: Likewise.
22522         * ira-lives.c: Likewise.
22523         * jump.c: Likewise.
22524         * loop-doloop.c: Likewise.
22525         * loop-init.c: Likewise.
22526         * loop-invariant.c: Likewise.
22527         * loop-unroll.c: Likewise.
22528         * lower-subreg.c: Likewise.
22529         * lra-assigns.c: Likewise.
22530         * lra.c: Likewise.
22531         * lra-coalesce.c: Likewise.
22532         * lra-constraints.c: Likewise.
22533         * lra-lives.c: Likewise.
22534         * lto-cgraph.c: Likewise.
22535         * lto-streamer-in.c: Likewise.
22536         * mode-switching.c: Likewise.
22537         * modulo-sched.c: Likewise.
22538         * omp-low.c: Likewise.
22539         * optabs.c: Likewise.
22540         * passes.c: Likewise.
22541         * postreload.c: Likewise.
22542         * postreload-gcse.c: Likewise.
22543         * profile.c: Likewise.
22544         * recog.c: Likewise.
22545         * regstat.c: Likewise.
22546         * reload1.c: Likewise.
22547         * reorg.c: Likewise.
22548         * rtlanal.c: Likewise.
22549         * sched-ebb.c: Likewise.
22550         * sel-sched-ir.c: Likewise.
22551         * sese.c: Likewise.
22552         * shrink-wrap.c: Likewise.
22553         * simplify-rtx.c: Likewise.
22554         * stmt.c: Likewise.
22555         * store-motion.c: Likewise.
22556         * tracer.c: Likewise.
22557         * trans-mem.c: Likewise.
22558         * tree-call-cdce.c: Likewise.
22559         * tree-cfg.c: Likewise.
22560         * tree-cfgcleanup.c: Likewise.
22561         * tree-chkp.c: Likewise.
22562         * tree-complex.c: Likewise.
22563         * tree-eh.c: Likewise.
22564         * tree-if-conv.c: Likewise.
22565         * tree-loop-distribution.c: Likewise.
22566         * tree-outof-ssa.c: Likewise.
22567         * tree-parloops.c: Likewise.
22568         * tree-predcom.c: Likewise.
22569         * tree-pretty-print.c: Likewise.
22570         * tree-profile.c: Likewise.
22571         * tree-sra.c: Likewise.
22572         * tree-ssa.c: Likewise.
22573         * tree-ssa-coalesce.c: Likewise.
22574         * tree-ssa-dce.c: Likewise.
22575         * tree-ssa-dom.c: Likewise.
22576         * tree-ssa-forwprop.c: Likewise.
22577         * tree-ssa-ifcombine.c: Likewise.
22578         * tree-ssa-loop-ch.c: Likewise.
22579         * tree-ssa-loop-im.c: Likewise.
22580         * tree-ssa-loop-ivcanon.c: Likewise.
22581         * tree-ssa-loop-ivopts.c: Likewise.
22582         * tree-ssa-loop-manip.c: Likewise.
22583         * tree-ssa-loop-prefetch.c: Likewise.
22584         * tree-ssa-loop-unswitch.c: Likewise.
22585         * tree-ssa-math-opts.c: Likewise.
22586         * tree-ssa-phiopt.c: Likewise.
22587         * tree-ssa-pre.c: Likewise.
22588         * tree-ssa-reassoc.c: Likewise.
22589         * tree-ssa-sink.c: Likewise.
22590         * tree-ssa-tail-merge.c: Likewise.
22591         * tree-ssa-threadedge.c: Likewise.
22592         * tree-ssa-threadupdate.c: Likewise.
22593         * tree-switch-conversion.c: Likewise.
22594         * tree-tailcall.c: Likewise.
22595         * tree-vect-data-refs.c: Likewise.
22596         * tree-vect-loop.c: Likewise.
22597         * tree-vect-loop-manip.c: Likewise.
22598         * tree-vectorizer.c: Likewise.
22599         * tree-vrp.c: Likewise.
22600         * ubsan.c: Likewise.
22601         * value-prof.c: Likewise.
22602         * varasm.c: Likewise.
22603         * var-tracking.c: Likewise.
22604         * config/aarch64/aarch64-builtins.c: Likewise.
22605         * config/aarch64/aarch64.c: Likewise.
22606         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
22607         * config/alpha/alpha.c: Likewise.
22608         * config/arc/arc.c: Likewise.
22609         * config/arm/arm.c: Likewise.
22610         * config/avr/avr.c: Likewise.
22611         * config/bfin/bfin.c: Likewise.
22612         * config/c6x/c6x.c: Likewise.
22613         * config/cr16/cr16.c: Likewise.
22614         * config/cris/cris.c: Likewise.
22615         * config/darwin.c: Likewise.
22616         * config/darwin-c.c: Likewise.
22617         * config/epiphany/epiphany.c: Likewise.
22618         * config/epiphany/mode-switch-use.c: Likewise.
22619         * config/epiphany/resolve-sw-modes.c: Likewise.
22620         * config/fr30/fr30.c: Likewise.
22621         * config/frv/frv.c: Likewise.
22622         * config/ft32/ft32.c: Likewise.
22623         * config/h8300/h8300.c: Likewise.
22624         * config/i386/i386.c: Likewise.
22625         * config/i386/winnt.c: Likewise.
22626         * config/ia64/ia64.c: Likewise.
22627         * config/iq2000/iq2000.c: Likewise.
22628         * config/lm32/lm32.c: Likewise.
22629         * config/m32c/m32c.c: Likewise.
22630         * config/m32r/m32r.c: Likewise.
22631         * config/m68k/m68k.c: Likewise.
22632         * config/mcore/mcore.c: Likewise.
22633         * config/mep/mep.c: Likewise.
22634         * config/microblaze/microblaze.c: Likewise.
22635         * config/mips/mips.c: Likewise.
22636         * config/mmix/mmix.c: Likewise.
22637         * config/mn10300/mn10300.c: Likewise.
22638         * config/moxie/moxie.c: Likewise.
22639         * config/msp430/msp430.c: Likewise.
22640         * config/nds32/nds32.c: Likewise.
22641         * config/nds32/nds32-cost.c: Likewise.
22642         * config/nds32/nds32-fp-as-gp.c: Likewise.
22643         * config/nds32/nds32-intrinsic.c: Likewise.
22644         * config/nds32/nds32-isr.c: Likewise.
22645         * config/nds32/nds32-md-auxiliary.c: Likewise.
22646         * config/nds32/nds32-memory-manipulation.c: Likewise.
22647         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
22648         * config/nds32/nds32-predicates.c: Likewise.
22649         * config/nios2/nios2.c: Likewise.
22650         * config/nvptx/nvptx.c: Likewise.
22651         * config/pa/pa.c: Likewise.
22652         * config/pdp11/pdp11.c: Likewise.
22653         * config/rl78/rl78.c: Likewise.
22654         * config/rs6000/rs6000.c: Likewise.
22655         * config/rx/rx.c: Likewise.
22656         * config/s390/s390.c: Likewise.
22657         * config/sh/sh.c: Likewise.
22658         * config/sh/sh-mem.cc: Likewise.
22659         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
22660         * config/sh/sh_treg_combine.cc: Likewise.
22661         * config/sparc/sparc.c: Likewise.
22662         * config/spu/spu.c: Likewise.
22663         * config/stormy16/stormy16.c: Likewise.
22664         * config/tilegx/tilegx.c: Likewise.
22665         * config/tilepro/tilepro.c: Likewise.
22666         * config/v850/v850.c: Likewise.
22667         * config/vax/vax.c: Likewise.
22668         * config/visium/visium.c: Likewise.
22669         * config/xtensa/xtensa.c: Likewise.
22671 2015-07-10  Richard Biener  <rguenther@suse.de>
22673         * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
22674         (decision_tree::gen_gimple): Likewise.
22675         (decision_tree::gen_generic): Likewise.
22677 2015-07-10  Uros Bizjak  <ubizjak@gmail.com>
22679         PR target/66813
22680         * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
22681         sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
22683 2015-07-10  Jakub Jelinek  <jakub@redhat.com>
22685         PR middle-end/66820
22686         * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
22687         or ORT_TASK contexts.
22688         * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
22689         is non-zero.
22691 2015-07-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22693         * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
22694         above function.
22696 2015-07-10  Tom de Vries  <tom@codesourcery.com>
22698         * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
22699         insert nit + 1 bound.
22701 2015-07-10  Richard Biener  <rguenther@suse.de>
22703         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
22704         Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
22705         (if_convertible_loop_p_1): For this always compute bb predicates.
22706         (if_convertible_loop_p): And free them.
22708 2015-07-10  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
22710         * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
22711         in dump message.
22713 2015-07-10  Richard Biener  <rguenther@suse.de>
22715         PR tree-optimization/66823
22716         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
22717         inverted predicate.
22719 2015-07-09  Steve Ellcey  <sellcey@imgtec.com>
22721         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
22722         to handle mips[32|64]r3 and mips[32|64]r5.
22724 2015-07-09  Jakub Jelinek  <jakub@redhat.com>
22726         PR middle-end/66633
22727         * tree-nested.c (get_static_chain): Or in a flag into
22728         info->static_chain_added.
22729         (get_frame_field, get_nonlocal_debug_decl): Likewise.
22730         (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
22731         2015-07-01 changes.
22732         (convert_tramp_reference_stmt): If a frame_decl or chain_decl
22733         is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
22734         add it to clauses.
22736         PR tree-optimization/66718
22737         * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
22738         field.
22739         (vect_simd_lane_linear): New function.
22740         (vectorizable_simd_clone_call): Support using linear arguments for
22741         addresses of arrays elements indexed by GOMP_SIMD_LANE result.
22743 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
22745         PR target/66821
22746         * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
22748 2015-07-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
22750         * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
22751         Use machine mode, not enum machine_mode in the prototype.
22753         * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
22754         classify 128-bit floating point support.
22755         (FLOAT128_IBM_P): Likewise.
22756         (FLOAT128_VECTOR_P): Likewise.
22757         (FLOAT128_2REG_P): Likewise.
22758         (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
22759         (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
22760         (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
22761         (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
22763         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
22764         tests against TFmode/TDmode, since those modes do not use VSX
22765         addresses.
22766         (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
22767         support.
22768         (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
22769         tests against TFmode, etc.
22770         (invalid_e500_subreg): Add tests against IFmode/KFmode.
22771         (reg_offset_addressing_ok_p): Likewise.
22772         (rs6000_legitimate_offset_address_p): Likewise.
22773         (rs6000_legitimize_address): Likewise.
22774         (rs6000_legitimize_reload_address): Likewise.
22775         (rs6000_legitimate_address_p): Clean up tests against TFmode and
22776         TDmode to use the new helper macros, which will include IFmode and
22777         KFmode.
22778         (rs6000_emit_move): Likewise.
22779         (rs6000_darwin64_record_arg_recurse): Likewise.
22780         (print_operand): Likewise.
22781         (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
22782         that uses a single vector register as a vector and not as a
22783         floating point register in terms of the calling sequence.
22784         (rs6000_discover_homogeneous_aggregate): Likewise.
22785         (rs6000_return_in_memory): Likewise.
22786         (init_cumulative_args): Likewise.
22787         (rs6000_function_arg_boundary): Likewise.
22788         (rs6000_function_arg_advance_1): Likewise.
22789         (rs6000_function_arg): Likewise.
22790         (rs6000_pass_by_reference): Likewise.
22791         (rs6000_gimplify_va_arg): Likewise.
22792         (rs6000_secondary_reload_memory): Use machine_mode not enum
22793         machine mode.
22794         (rs6000_split_multireg_move): Use new helper macros.
22795         (spe_func_has_64bit_regs_p): Likewise.
22796         (rs6000_output_function_epilogue): Add IFmode/KFmode support.
22797         (output_toc): Use new helper macros.
22798         (rs6000_register_move_cost): Likewise.
22799         (rs6000_function_value): Add IEEE 128-bit floating point calling
22800         sequence support.
22801         (rs6000_libcall_value): Likewise.
22802         (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
22803         floating point support.
22804         (rs6000_vector_mode_supported_p): Likewise.
22806 2015-07-09  Vladimir Makarov  <vmakarov@redhat.com>
22808         PR rtl-optimization/66782
22809         * lra-int.h (struct lra_insn_recog_data): Add comment about
22810         clobbered hard regs for arg_hard_regs.
22811         * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
22812         * lra-lives.c (process_bb_lives): Process clobbered hard regs.
22813         Add condition for processing used hard regs.
22814         * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
22815         Process clobbered hard regs.
22817 2015-07-09  Michael Matz  <matz@suse.de>
22819         * genmatch.c (fprintf_indent): New function.
22820         (operand::gen_transform): Add indent parameter.
22821         (expr::gen_transform, c_expr::gen_transform,
22822         capture::gen_transform): Ditto and use fprintf_indent.
22823         (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
22824         (dt_operand::gen, dt_operand::gen_predicate,
22825         dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
22826         dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
22827         (decision_tree::gen_gimple): Adjust calls and indent generated
22828         code.
22829         (decision_tree::gen_generic): Ditto.
22830         (write_predicate): Ditto.
22832 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
22834         PR target/66814
22835         * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
22836         * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
22837         (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
22838         {GENERAL,SSE,MMX}_REG_P where appropriate.
22840 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
22842         * lto-streamer.h: Don't include target.h and alloc-pool.h.
22843         * builtins.c: Adjust includes.
22844         * gimple.c: Likewise.
22845         * ipa-icf.c: Likewise.
22846         * lto-opts.c: Likewise.
22847         * ipa-reference.c: Likewise.
22848         * lto-section-out.c: Likewise.
22849         * lto-streamer-in.c: Likewise.
22850         * lto-streamer-out.c: Likewise.
22851         * opts-global.c: Likewise.
22852         * symtab.c: Likewise.
22853         * tree-chkp.c: Likewise.
22854         * tree-ssa-live.c: Likewise.
22855         * tree-streamer-in.c: Likewise.
22856         * tree-streamer-out.c: Likewise.
22857         * config/darwin.c: Likewise.
22858         * config/i386/winnt.c: Likewise.
22860 2015-07-09  Richard Biener  <rguenther@suse.de>
22862         * genmatch.c (struct expr): Add force_single_use flag.
22863         (expr::expr): Add copy constructor.
22864         (capture_info::walk_match): Gather force_single_use captures.
22865         (expr::gen_transform): Use possibly NULLified sequence.
22866         (dt_simplify::gen): Apply single-use restrictions by NULLifying
22867         seq if any constrained expr is not single-use.
22868         (parser::parse_expr): Refactor to allow multiple flags.  Handle
22869         's' flag to force an expression have a single-use if the pattern
22870         simplifies to more than one statement.
22871         * match.pd: Convert most single_use conditionals to :s flags.
22873 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
22875         * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
22876         (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
22877         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
22879 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
22881         * flags.h: Don't include flag-types.h or options.h.
22882         * opts-common.c: Adjust includes.
22883         * opts-global.c: Likewise.
22884         * common/config/epiphany/epiphany-common.c: Likewise.
22886 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
22888         PR target/66818
22889         * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
22890         for IA MCU.
22892 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
22894         PR target/66817
22895         * config/i386/i386.c (ix86_return_in_memory): Return true
22896         if int_size_in_bytes returns negative for IA MCU.
22898 2015-07-09  Marek Polacek  <polacek@redhat.com>
22900         PR tree-optimization/66718
22901         * Makefile.in (OBJS): Add gimple-laddress.o.
22902         * passes.def: Schedule pass_laddress.
22903         * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
22904         * tree-pass.h (make_pass_laddress): Declare.
22905         * gimple-laddress.c: New file.
22907 2015-07-09  Richard Biener  <rguenther@suse.de>
22909         * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
22911 2015-07-09  Richard Biener  <rguenther@suse.de>
22913         PR tree-optimization/66807
22914         * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
22916 2015-07-08  Kito Cheng  <kito.cheng@gmail.com>
22918         * function.c (stack_protect_epilogue): Use if rather than switch for
22919         check targetm.have_stack_protect_test.
22921 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22923         * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
22924         * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
22925         * config/arc/arc.h: Likewise.
22926         * config/arm/arm.h: Likewise.
22927         * config/bfin/bfin.h: Likewise.
22928         * config/epiphany/epiphany.h: Likewise.
22929         * config/frv/frv.h: Likewise.
22930         * config/ia64/ia64.h: Likewise.
22931         * config/iq2000/iq2000.h: Likewise.
22932         * config/lm32/lm32.h: Likewise.
22933         * config/m32r/m32r.h: Likewise.
22934         * config/mcore/mcore.h: Likewise.
22935         * config/mep/mep.h: Likewise.
22936         * config/microblaze/microblaze.h: Likewise.
22937         * config/mips/mips.h: Likewise.
22938         * config/mmix/mmix.h: Likewise.
22939         * config/mn10300/mn10300.h: Likewise.
22940         * config/nds32/nds32.h: Likewise.
22941         * config/nios2/nios2.h: Likewise.
22942         * config/pa/pa.h: Likewise.
22943         * config/rl78/rl78.h: Likewise.
22944         * config/sh/sh.h: Likewise.
22945         * config/sparc/sparc.h: Likewise.
22946         * config/stormy16/stormy16.h: Likewise.
22947         * config/tilegx/tilegx.h: Likewise.
22948         * config/tilepro/tilepro.h: Likewise.
22949         * config/v850/v850.h: Likewise.
22950         * config/xtensa/xtensa.h: Likewise.
22951         * doc/tm.texi: Regenerate.
22952         * doc/tm.texi.in: Adjust.
22953         * combine.c (simplify_set): Likewise.
22954         (simplify_comparison): Likewise.
22955         * expr.c (store_constructor): Likewise.
22956         * internal-fn.c (expand_arith_overflow): Likewise.
22957         * reload.c (push_reload): Likewise.
22958         (find_reloads): Likewise.
22959         (find_reloads_subreg_address): Likewise.
22960         * reload1.c (eliminate_regs_1): Likewise.
22961         * rtlanal.c (nonzero_bits1): Likewise.
22962         (num_sign_bit_copies1): Likewise.
22963         * simplify-rtx.c (simplify_truncation): Likewise.
22965 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22967         * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
22968         of AUTO_INC_DEC with the preprocessor.
22969         * combine.c (combine_instructions): Likewise.
22970         (can_combine_p): Likewise.
22971         (try_combine): Likewise.
22972         * emit-rtl.c (try_split): Likewise.
22973         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
22974         * lower-subreg.c (resolve_simple_move): Likewise.
22975         * lra.c (update_inc_notes): Likewise.
22976         * recog.c (asm_operand_ok): Likewise.
22977         (constrain_operands): Likewise.
22978         * regrename.c (scan_rtx_address): Likewise.
22979         * reload.c (update_auto_inc_notes): Likewise.
22980         (reg_inc_found_and_valid_p): Likewise.
22981         * reload1.c (reload): Likewise.
22982         (emit_input_reload_insns): Likewise.
22983         (delete_output_reload): Likewise.
22984         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
22985         * valtrack.c (cleanup_auto_inc_dec): Likewise.
22987 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22989         * rtl.h: Always define AUTO_INC_DEC.
22990         * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
22991         * combine.c (combine_instructions): Likewise.
22992         (can_combine_p): Likewise.
22993         (try_combine): Likewise.
22994         * emit-rtl.c (try_split): Likewise.
22995         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
22996         * lower-subreg.c (resolve_simple_move): Likewise.
22997         * lra.c (update_inc_notes): Likewise.
22998         * recog.c (asm_operand_ok): Likewise.
22999         (constrain_operands): Likewise.
23000         * regrename.c (scan_rtx_address): Likewise.
23001         * reload.c (update_auto_inc_notes): Likewise.
23002         (find_equiv_reg): Likewise.
23003         * reload1.c (reload): Likewise.
23004         (reload_as_needed): Likewise.
23005         (choose_reload_regs): Likewise.
23006         (emit_input_reload_insns): Likewise.
23007         (delete_output_reload): Likewise.
23008         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
23009         * valtrack.c (cleanup_auto_inc_dec): Likewise.
23011 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23013         * combine.c (can_combine_def_p): Don't check the value of
23014         HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
23015         (combinable_i3pat): Likewise.
23016         (mark_used_regs_combine): Likewise.
23017         * regrename.c (rename_chains): Likewise.
23018         * reload.c (find_reloads_address): Likewise.
23019         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
23021 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23023         * combine.c (update_rsp_from_reg_equal): Don't check if
23024         SHORT_IMMEDIATES_SIGN_EXTEND is defined.
23025         (reg_nonzero_bits_for_combine): Likewise.
23026         * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
23027         1.
23028         * config/frv/frv.h: Likewise.
23029         * config/lm32/lm32.h: Likewise.
23030         * config/mep/mep.h: Likewise.
23031         * config/mips/mips.h: Likewise.
23032         * config/rs6000/rs6000.h: Likewise.
23033         * config/sh/sh.h: Likewise.
23034         * config/tilegx/tilegx.h (enum reg_class): Likewise.
23035         * config/tilepro/tilepro.h: Likewise.
23036         * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
23037         * doc/tm.texi: Regenerate.
23038         * doc/tm.texi.in: Adjust.
23039         * rtlanal.c (nonzero_bits1): Likewise.
23041 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23043         * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
23044         with the preprocessor.
23045         (combine_instructions): Likewise.
23046         (try_combine): Likewise.
23047         (subst): Likewise.
23048         (distribute_notes): Likewise.
23050 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
23052         * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
23053         defined.
23054         (simplify_set): Likewise.
23055         * cse.c (cse_insn): Likewise.
23056         * fold-const.c (fold_single_bit_test): Likewise.
23057         (fold_unary_loc): Likewise.
23058         * postreload.c (reload_cse_simplify_set): Likewise.
23059         (reload_cse_simplify_operands): Likewise.
23061 2015-07-08  Jiong Wang  <jiong.wang@arm.com>
23063         * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
23064         (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
23066 2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
23068         PR target/66746
23069         * config/i386/x86intrin.h: Include <adxintrin.h> even if
23070         __iamcu__ is defined.
23072 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
23074         * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
23076 2015-07-08  Iain Sandoe  <iain@codesourcery.com>
23078         PR target/66523
23079         * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
23080         names from preservation.
23082 2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
23084         PR target/66806
23085         * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
23086         change for IAMCU.
23087         (function_arg_advance_32): Don't pass vectors in registers for
23088         IAMCU.
23089         (function_arg_32): Likewise.
23090         (ix86_return_in_memory): Don't return vectors in registers for
23091         IAMCU.
23093 2015-07-08  Vladimir Makarov  <vmakarov@redhat.com>
23095         PR middle-end/66334
23096         * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
23097         hard regno live at the start of BB with incoming abnormal edges.
23098         * lra-lives.c (process_bb_lives): Ditto.
23100 2015-07-08  Thomas Schwinge  <thomas@codesourcery.com>
23102         PR libgomp/65099
23103         * config/nvptx/mkoffload.c (main): Create an offload image only in
23104         64-bit configurations.
23106 2015-07-08  Martin Liska  <mliska@suse.cz>
23108         PR bootstrap/66744
23109         * tree-sra.c (create_access_1): Call ctor without brackets.
23110         (create_artificial_child_access): Likewise.
23112 2015-07-08  Richard Biener  <rguenther@suse.de>
23114         PR tree-optimization/66793
23115         * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
23116         Properly split the block after stmts ending it.
23118 2015-07-08  Richard Biener  <rguenther@suse.de>
23120         PR tree-optimization/66794
23121         * passes.c (execute_function_todo): Assert that post-dominators
23122         are not computed.
23123         * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
23124         Free post-dominators.
23126 2015-07-08  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
23128         * config/s390/s390.c (s390_init_frame_layout): Replace assertion
23129         with early exit.
23131 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
23133         * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
23134         more than or equal 8 and less than 32 when optimizing for size.
23136 2015-07-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23138         * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
23139         COSTS_N_INSNS (1) and increment it appropriately throughout the
23140         function.
23142 2015-07-08  Richard Biener  <rguenther@suse.de>
23144         * fold-const.c (fold_widened_comparison): Fix inverted comparison.
23146 2015-07-08  Alan Modra  <amodra@gmail.com>
23148         * target.def (rtx_costs): Remove "code" param, add "mode".
23149         * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
23150         (set_src_cost, get_full_set_src_cost): Likewise.  Move later in file.
23151         (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
23152         * rtlanal.c (rtx_cost): Add "mode" parameter.  Update targetm.rtx_costs
23153         call.  Track mode when given in rtx.
23154         (get_full_rtx_cost): Add "mode" parameter.  Update rtx_cost calls.
23155         (default_address_cost): Pass Pmode to rtx_cost.
23156         (insn_rtx_cost): Pass dest mode of set to set_src_cost.
23157         * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
23158         with NULL set.
23159         * cse.c (COST, COST_IN): Add MODE param.  Update all uses.
23160         (notreg_cost): Add mode param.  Use it.
23161         * gcse.c (want_to_gcse_p): Delete forward declaration.  Add
23162         mode param and pass to set_src_cost.  Update all calls.
23163         (hash_scan_set): Formatting.
23164         * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
23165         (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
23166         * hooks.h: Ditto.
23167         * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
23168         init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
23169         emit_store_flag): Update set_src_cost and rtx_cost calls.
23170         * auto-inc-dec.c (attempt_change): Likewise.
23171         * calls.c (precompute_register_parameters): Likewise.
23172         * combine.c (expand_compound_operation, make_extraction,
23173         force_to_mode, distribute_and_simplify_rtx): Likewise.
23174         * dojump.c (prefer_and_bit_test): Likewise.
23175         * dse.c (find_shift_sequence): Likewise.
23176         * expr.c (compress_float_constant): Likewise.
23177         * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
23178         * ifcvt.c (noce_try_sign_mask): Likewise.
23179         * loop-doloop.c (doloop_optimize): Likewise.
23180         * loop-invariant.c (create_new_invariant): Likewise.
23181         * lower-subreg.c (shift_cost, compute_costs): Likewise.
23182         * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
23183         lshift_cheap_p): Likewise.
23184         * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
23185         try_replace_in_use, reload_cse_move2add): Likewise.
23186         * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
23187         Likewise.
23188         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
23189         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
23190         * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
23191         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
23192         * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
23193         add "mode" param.  Use "mode: in place of GET_MODE (x).  Pass mode
23194         to rtx_cost calls.
23195         * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
23196         * config/arc/arc.c (arc_rtx_costs): Likewise.
23197         * config/arm/arm.c (arm_rtx_costs): Likewise.
23198         * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
23199         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
23200         * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
23201         * config/cris/cris.c (cris_rtx_costs): Likewise.
23202         * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
23203         * config/frv/frv.c (frv_rtx_costs): Likewise.
23204         * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
23205         * config/i386/i386.c (ix86_rtx_costs): Likewise.
23206         * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
23207         * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
23208         * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
23209         * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
23210         * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
23211         * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
23212         * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
23213         * config/mep/mep.c (mep_rtx_cost): Likewise.
23214         * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
23215         * config/mips/mips.c (mips_rtx_costs): Likewise.
23216         * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
23217         * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
23218         * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
23219         * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
23220         * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
23221         * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
23222         * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
23223         * config/pa/pa.c (hppa_rtx_costs): Likewise.
23224         * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
23225         * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
23226         * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
23227         * config/s390/s390.c (s390_rtx_costs): Likewise.
23228         * config/sh/sh.c (sh_rtx_costs): Likewise.
23229         * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
23230         * config/spu/spu.c (spu_rtx_costs): Likewise.
23231         * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
23232         * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
23233         * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
23234         * config/v850/v850.c (v850_rtx_costs): Likewise.
23235         * config/vax/vax.c (vax_rtx_costs): Likewise.
23236         * config/visium/visium.c (visium_rtx_costs): Likewise.
23237         * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
23238         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
23239         "code" param, and pass as outer_code to first rtx_cost call.  Pass
23240         mode to rtx_cost calls.
23241         (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
23242         calls.
23243         (aarch64_rtx_costs_wrapper): Update.
23244         * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
23245         arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
23246         rtx_cost calls.
23247         * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
23248         and rtx_cost calls.
23249         (avr_operand_rtx_cost): Similarly.
23250         (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
23251         for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
23252         * config/mips/mips.c (mips_stack_address_p): Comment typo.
23253         (mips_binary_cost): Update rtx_cost and set_src_cost calls.
23254         (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
23255         * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
23256         rtx_cost.
23257         (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
23258         * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
23259         * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
23260         * doc/tm.texi: Regenerate.
23262 2015-07-07  Andrew MacLeod  <amacleod@redhat.com>
23264         * tree-core.h: Include symtab.h.
23265         * rtl.h: Include hard-reg-set.h but not flags.h.
23266         (HARD_CONST): Remove condition compilation involving HARD_CONST since
23267         hard-reg-set.h is always included.
23268         * regs.h: Don't include hard-reg-set.h or rtl.h.
23269         * cfg.h: Include dominance.h.
23270         * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
23271         * backend.h: New.  Aggregate commonly used backend header files.
23272         * gimple-ssa.h: Don't include tree-hasher.h.
23273         * ssa.h: New.  Aggregate commonly used SSA header files.
23274         * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
23275         * sel-sched-ir.h: Flatten includes.
23276         * lra-int.h: Flatten completely.
23277         * sel-sched-dump.h: Flatten includes.
23278         * ira-int.h: Flatten includes.
23279         * gimple-streamer.h: Remove all includes.
23280         * cfgloop.h: Remove all #includes except cfgloopmanip.h.
23281         * resource.h: Flatten hard-reg-set.h and df.h.
23282         * sched-int.h: Flatten insn-arrt.h and df.h.
23283         * valtrack.h: flatten bitmap.h, df.h, and rtl.h
23284         * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
23285         * genattrtab.c (write_header): Adjust generated includes.
23286         * genautomata.c (main): Likewise.
23287         * genconditions.c (write-header): Likewise.
23288         * genemit.c (main): Likewise.
23289         * gengtype.c (open_base_files): Likewise.
23290         * genopinit.c (main): Likewise.
23291         * genoutput.c (output_prologue): Likewise.
23292         * genpeep.c (main): Likewise.
23293         * genpreds.c (write_insn_preds_c): Likewise.
23294         * genrecog.c (write_header): Likewise.
23295         * alias.c: Adjust includes.
23296         * asan.c: Likewise.
23297         * attribs.c: Likewise.
23298         * auto-inc-dec.c: Likewise.
23299         * auto-profile.c: Likewise.
23300         * bb-reorder.c: Likewise.
23301         * bt-load.c: Likewise.
23302         * builtins.c: Likewise.
23303         * caller-save.c: Likewise.
23304         * calls.c: Likewise.
23305         * ccmp.c: Likewise.
23306         * cfg.c: Likewise.
23307         * cfganal.c: Likewise.
23308         * cfgbuild.c: Likewise.
23309         * cfgcleanup.c: Likewise.
23310         * cfgexpand.c: Likewise.
23311         * cfghooks.c: Likewise.
23312         * cfgloop.c: Likewise.
23313         * cfgloopanal.c: Likewise.
23314         * cfgloopmanip.c: Likewise.
23315         * cfgrtl.c: Likewise.
23316         * cgraph.c: Likewise.
23317         * cgraphbuild.c: Likewise.
23318         * cgraphclones.c: Likewise.
23319         * cgraphunit.c: Likewise.
23320         * cilk-common.c: Likewise.
23321         * combine-stack-adj.c: Likewise.
23322         * combine.c: Likewise.
23323         * compare-elim.c: Likewise.
23324         * convert.c: Likewise.
23325         * coverage.c: Likewise.
23326         * cppbuiltin.c: Likewise.
23327         * cprop.c: Likewise.
23328         * cse.c: Likewise.
23329         * cselib.c: Likewise.
23330         * data-streamer-in.c: Likewise.
23331         * data-streamer-out.c: Likewise.
23332         * data-streamer.c: Likewise.
23333         * dbxout.c: Likewise.
23334         * dce.c: Likewise.
23335         * ddg.c: Likewise.
23336         * debug.c: Likewise.
23337         * df-core.c: Likewise.
23338         * df-problems.c: Likewise.
23339         * df-scan.c: Likewise.
23340         * dfp.c: Likewise.
23341         * dojump.c: Likewise.
23342         * dominance.c: Likewise.
23343         * domwalk.c: Likewise.
23344         * double-int.c: Likewise.
23345         * dse.c: Likewise.
23346         * dumpfile.c: Likewise.
23347         * dwarf2asm.c: Likewise.
23348         * dwarf2cfi.c: Likewise.
23349         * dwarf2out.c: Likewise.
23350         * emit-rtl.c: Likewise.
23351         * et-forest.c: Likewise.
23352         * except.c: Likewise.
23353         * explow.c: Likewise.
23354         * expmed.c: Likewise.
23355         * expr.c: Likewise.
23356         * final.c: Likewise.
23357         * fixed-value.c: Likewise.
23358         * fold-const.c: Likewise.
23359         * function.c: Likewise.
23360         * fwprop.c: Likewise.
23361         * gcc-plugin.h: Likewise.
23362         * gcse-common.c: Likewise.
23363         * gcse.c: Likewise.
23364         * generic-match-head.c: Likewise.
23365         * ggc-page.c: Likewise.
23366         * gimple-builder.c: Likewise.
23367         * gimple-expr.c: Likewise.
23368         * gimple-fold.c: Likewise.
23369         * gimple-iterator.c: Likewise.
23370         * gimple-low.c: Likewise.
23371         * gimple-match-head.c: Likewise.
23372         * gimple-pretty-print.c: Likewise.
23373         * gimple-ssa-isolate-paths.c: Likewise.
23374         * gimple-ssa-strength-reduction.c: Likewise.
23375         * gimple-streamer-in.c: Likewise.
23376         * gimple-streamer-out.c: Likewise.
23377         * gimple-walk.c: Likewise.
23378         * gimple.c: Likewise.
23379         * gimplify-me.c: Likewise.
23380         * gimplify.c: Likewise.
23381         * godump.c: Likewise.
23382         * graph.c: Likewise.
23383         * graphite-blocking.c: Likewise.
23384         * graphite-dependences.c: Likewise.
23385         * graphite-interchange.c: Likewise.
23386         * graphite-isl-ast-to-gimple.c: Likewise.
23387         * graphite-optimize-isl.c: Likewise.
23388         * graphite-poly.c: Likewise.
23389         * graphite-scop-detection.c: Likewise.
23390         * graphite-sese-to-poly.c: Likewise.
23391         * graphite.c: Likewise.
23392         * haifa-sched.c: Likewise.
23393         * hw-doloop.c: Likewise.
23394         * ifcvt.c: Likewise.
23395         * init-regs.c: Likewise.
23396         * internal-fn.c: Likewise.
23397         * ipa-chkp.c: Likewise.
23398         * ipa-comdats.c: Likewise.
23399         * ipa-cp.c: Likewise.
23400         * ipa-devirt.c: Likewise.
23401         * ipa-icf-gimple.c: Likewise.
23402         * ipa-icf.c: Likewise.
23403         * ipa-inline-analysis.c: Likewise.
23404         * ipa-inline-transform.c: Likewise.
23405         * ipa-inline.c: Likewise.
23406         * ipa-polymorphic-call.c: Likewise.
23407         * ipa-profile.c: Likewise.
23408         * ipa-prop.c: Likewise.
23409         * ipa-pure-const.c: Likewise.
23410         * ipa-ref.c: Likewise.
23411         * ipa-reference.c: Likewise.
23412         * ipa-split.c: Likewise.
23413         * ipa-utils.c: Likewise.
23414         * ipa-visibility.c: Likewise.
23415         * ipa.c: Likewise.
23416         * ira-build.c: Likewise.
23417         * ira-color.c: Likewise.
23418         * ira-conflicts.c: Likewise.
23419         * ira-costs.c: Likewise.
23420         * ira-emit.c: Likewise.
23421         * ira-lives.c: Likewise.
23422         * ira.c: Likewise.
23423         * jump.c: Likewise.
23424         * langhooks.c: Likewise.
23425         * lcm.c: Likewise.
23426         * loop-doloop.c: Likewise.
23427         * loop-init.c: Likewise.
23428         * loop-invariant.c: Likewise.
23429         * loop-iv.c: Likewise.
23430         * loop-unroll.c: Likewise.
23431         * lower-subreg.c: Likewise.
23432         * lra-assigns.c: Likewise.
23433         * lra-coalesce.c: Likewise.
23434         * lra-constraints.c: Likewise.
23435         * lra-eliminations.c: Likewise.
23436         * lra-lives.c: Likewise.
23437         * lra-remat.c: Likewise.
23438         * lra-spills.c: Likewise.
23439         * lra.c: Likewise.
23440         * lto-cgraph.c: Likewise.
23441         * lto-compress.c: Likewise.
23442         * lto-opts.c: Likewise.
23443         * lto-section-in.c: Likewise.
23444         * lto-section-out.c: Likewise.
23445         * lto-streamer-in.c: Likewise.
23446         * lto-streamer-out.c: Likewise.
23447         * lto-streamer.c: Likewise.
23448         * mcf.c: Likewise.
23449         * mode-switching.c: Likewise.
23450         * modulo-sched.c: Likewise.
23451         * omega.c: Likewise.
23452         * omp-low.c: Likewise.
23453         * optabs.c: Likewise.
23454         * opts-global.c: Likewise.
23455         * passes.c: Likewise.
23456         * plugin.c: Likewise.
23457         * postreload-gcse.c: Likewise.
23458         * postreload.c: Likewise.
23459         * predict.c: Likewise.
23460         * print-rtl.c: Likewise.
23461         * print-tree.c: Likewise.
23462         * profile.c: Likewise.
23463         * real.c: Likewise.
23464         * realmpfr.c: Likewise.
23465         * recog.c: Likewise.
23466         * ree.c: Likewise.
23467         * reg-stack.c: Likewise.
23468         * regcprop.c: Likewise.
23469         * reginfo.c: Likewise.
23470         * regrename.c: Likewise.
23471         * regstat.c: Likewise.
23472         * reload.c: Likewise.
23473         * reload1.c: Likewise.
23474         * reorg.c: Likewise.
23475         * resource.c: Likewise.
23476         * rtl-chkp.c: Likewise.
23477         * rtlanal.c: Likewise.
23478         * rtlhooks.c: Likewise.
23479         * sanopt.c: Likewise.
23480         * sched-deps.c: Likewise.
23481         * sched-ebb.c: Likewise.
23482         * sched-rgn.c: Likewise.
23483         * sched-vis.c: Likewise.
23484         * sdbout.c: Likewise.
23485         * sel-sched-dump.c: Likewise.
23486         * sel-sched-ir.c: Likewise.
23487         * sel-sched.c: Likewise.
23488         * sese.c: Likewise.
23489         * shrink-wrap.c: Likewise.
23490         * simplify-rtx.c: Likewise.
23491         * stack-ptr-mod.c: Likewise.
23492         * stmt.c: Likewise.
23493         * stor-layout.c: Likewise.
23494         * store-motion.c: Likewise.
23495         * stringpool.c: Likewise.
23496         * symtab.c: Likewise.
23497         * target-globals.c: Likewise.
23498         * targhooks.c: Likewise.
23499         * toplev.c: Likewise.
23500         * tracer.c: Likewise.
23501         * trans-mem.c: Likewise.
23502         * tree-affine.c: Likewise.
23503         * tree-browser.c: Likewise.
23504         * tree-call-cdce.c: Likewise.
23505         * tree-cfg.c: Likewise.
23506         * tree-cfgcleanup.c: Likewise.
23507         * tree-chkp-opt.c: Likewise.
23508         * tree-chkp.c: Likewise.
23509         * tree-chrec.c: Likewise.
23510         * tree-complex.c: Likewise.
23511         * tree-data-ref.c: Likewise.
23512         * tree-dfa.c: Likewise.
23513         * tree-diagnostic.c: Likewise.
23514         * tree-dump.c: Likewise.
23515         * tree-eh.c: Likewise.
23516         * tree-emutls.c: Likewise.
23517         * tree-if-conv.c: Likewise.
23518         * tree-inline.c: Likewise.
23519         * tree-into-ssa.c: Likewise.
23520         * tree-iterator.c: Likewise.
23521         * tree-loop-distribution.c: Likewise.
23522         * tree-nested.c: Likewise.
23523         * tree-nrv.c: Likewise.
23524         * tree-object-size.c: Likewise.
23525         * tree-outof-ssa.c: Likewise.
23526         * tree-parloops.c: Likewise.
23527         * tree-phinodes.c: Likewise.
23528         * tree-predcom.c: Likewise.
23529         * tree-pretty-print.c: Likewise.
23530         * tree-profile.c: Likewise.
23531         * tree-scalar-evolution.c: Likewise.
23532         * tree-sra.c: Likewise.
23533         * tree-ssa-address.c: Likewise.
23534         * tree-ssa-alias.c: Likewise.
23535         * tree-ssa-ccp.c: Likewise.
23536         * tree-ssa-coalesce.c: Likewise.
23537         * tree-ssa-copy.c: Likewise.
23538         * tree-ssa-copyrename.c: Likewise.
23539         * tree-ssa-dce.c: Likewise.
23540         * tree-ssa-dom.c: Likewise.
23541         * tree-ssa-dse.c: Likewise.
23542         * tree-ssa-forwprop.c: Likewise.
23543         * tree-ssa-ifcombine.c: Likewise.
23544         * tree-ssa-live.c: Likewise.
23545         * tree-ssa-loop-ch.c: Likewise.
23546         * tree-ssa-loop-im.c: Likewise.
23547         * tree-ssa-loop-ivcanon.c: Likewise.
23548         * tree-ssa-loop-ivopts.c: Likewise.
23549         * tree-ssa-loop-manip.c: Likewise.
23550         * tree-ssa-loop-niter.c: Likewise.
23551         * tree-ssa-loop-prefetch.c: Likewise.
23552         * tree-ssa-loop-unswitch.c: Likewise.
23553         * tree-ssa-loop.c: Likewise.
23554         * tree-ssa-math-opts.c: Likewise.
23555         * tree-ssa-operands.c: Likewise.
23556         * tree-ssa-phiopt.c: Likewise.
23557         * tree-ssa-phiprop.c: Likewise.
23558         * tree-ssa-pre.c: Likewise.
23559         * tree-ssa-propagate.c: Likewise.
23560         * tree-ssa-reassoc.c: Likewise.
23561         * tree-ssa-sccvn.c: Likewise.
23562         * tree-ssa-scopedtables.c: Likewise.
23563         * tree-ssa-sink.c: Likewise.
23564         * tree-ssa-strlen.c: Likewise.
23565         * tree-ssa-structalias.c: Likewise.
23566         * tree-ssa-tail-merge.c: Likewise.
23567         * tree-ssa-ter.c: Likewise.
23568         * tree-ssa-threadedge.c: Likewise.
23569         * tree-ssa-threadupdate.c: Likewise.
23570         * tree-ssa-uncprop.c: Likewise.
23571         * tree-ssa-uninit.c: Likewise.
23572         * tree-ssa.c: Likewise.
23573         * tree-ssanames.c: Likewise.
23574         * tree-stdarg.c: Likewise.
23575         * tree-streamer-in.c: Likewise.
23576         * tree-streamer-out.c: Likewise.
23577         * tree-streamer.c: Likewise.
23578         * tree-switch-conversion.c: Likewise.
23579         * tree-tailcall.c: Likewise.
23580         * tree-vect-data-refs.c: Likewise.
23581         * tree-vect-generic.c: Likewise.
23582         * tree-vect-loop-manip.c: Likewise.
23583         * tree-vect-loop.c: Likewise.
23584         * tree-vect-patterns.c: Likewise.
23585         * tree-vect-slp.c: Likewise.
23586         * tree-vect-stmts.c: Likewise.
23587         * tree-vectorizer.c: Likewise.
23588         * tree-vrp.c: Likewise.
23589         * tree.c: Likewise.
23590         * tsan.c: Likewise.
23591         * ubsan.c: Likewise.
23592         * valtrack.c: Likewise.
23593         * value-prof.c: Likewise.
23594         * var-tracking.c: Likewise.
23595         * varasm.c: Likewise.
23596         * varpool.c: Likewise.
23597         * vmsdbgout.c: Likewise.
23598         * vtable-verify.c: Likewise.
23599         * web.c: Likewise.
23600         * wide-int.cc: Likewise.
23601         * xcoffout.c: Likewise.
23602         * config/aarch64/aarch64-builtins.c: Likewise.
23603         * config/aarch64/aarch64.c: Likewise.
23604         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
23605         * config/alpha/alpha.c: Likewise.
23606         * config/arc/arc.c: Likewise.
23607         * config/arm/aarch-common.c: Likewise.
23608         * config/arm/arm-builtins.c: Likewise.
23609         * config/arm/arm-c.c: Likewise.
23610         * config/arm/arm.c: Likewise.
23611         * config/avr/avr-c.c: Likewise.
23612         * config/avr/avr-log.c: Likewise.
23613         * config/avr/avr.c: Likewise.
23614         * config/bfin/bfin.c: Likewise.
23615         * config/c6x/c6x.c: Likewise.
23616         * config/cr16/cr16.c: Likewise.
23617         * config/cris/cris.c: Likewise.
23618         * config/darwin-c.c: Likewise.
23619         * config/darwin.c: Likewise.
23620         * config/epiphany/epiphany.c: Likewise.
23621         * config/epiphany/mode-switch-use.c: Likewise.
23622         * config/epiphany/resolve-sw-modes.c: Likewise.
23623         * config/fr30/fr30.c: Likewise.
23624         * config/frv/frv.c: Likewise.
23625         * config/ft32/ft32.c: Likewise.
23626         * config/h8300/h8300.c: Likewise.
23627         * config/i386/i386-c.c: Likewise.
23628         * config/i386/i386.c: Likewise.
23629         * config/i386/msformat-c.c: Likewise.
23630         * config/i386/winnt-cxx.c: Likewise.
23631         * config/i386/winnt-stubs.c: Likewise.
23632         * config/i386/winnt.c: Likewise.
23633         * config/ia64/ia64-c.c: Likewise.
23634         * config/ia64/ia64.c: Likewise.
23635         * config/iq2000/iq2000.c: Likewise.
23636         * config/lm32/lm32.c: Likewise.
23637         * config/m32c/m32c-pragma.c: Likewise.
23638         * config/m32c/m32c.c: Likewise.
23639         * config/m32r/m32r.c: Likewise.
23640         * config/m68k/m68k.c: Likewise.
23641         * config/mcore/mcore.c: Likewise.
23642         * config/mep/mep-pragma.c: Likewise.
23643         * config/mep/mep.c: Likewise.
23644         * config/microblaze/microblaze-c.c: Likewise.
23645         * config/microblaze/microblaze.c: Likewise.
23646         * config/mips/mips.c: Likewise.
23647         * config/mmix/mmix.c: Likewise.
23648         * config/mn10300/mn10300.c: Likewise.
23649         * config/moxie/moxie.c: Likewise.
23650         * config/msp430/msp430-c.c: Likewise.
23651         * config/msp430/msp430.c: Likewise.
23652         * config/nds32/nds32-cost.c: Likewise.
23653         * config/nds32/nds32-fp-as-gp.c: Likewise.
23654         * config/nds32/nds32-intrinsic.c: Likewise.
23655         * config/nds32/nds32-isr.c: Likewise.
23656         * config/nds32/nds32-md-auxiliary.c: Likewise.
23657         * config/nds32/nds32-memory-manipulation.c: Likewise.
23658         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
23659         * config/nds32/nds32-predicates.c: Likewise.
23660         * config/nds32/nds32.c: Likewise.
23661         * config/nios2/nios2.c: Likewise.
23662         * config/nvptx/nvptx.c: Likewise.
23663         * config/pa/pa.c: Likewise.
23664         * config/pdp11/pdp11.c: Likewise.
23665         * config/rl78/rl78-c.c: Likewise.
23666         * config/rl78/rl78.c: Likewise.
23667         * config/rs6000/rs6000-c.c: Likewise.
23668         * config/rs6000/rs6000.c: Likewise.
23669         * config/rx/rx.c: Likewise.
23670         * config/s390/s390-c.c: Likewise.
23671         * config/s390/s390.c: Likewise.
23672         * config/sh/sh-c.c: Likewise.
23673         * config/sh/sh-mem.cc: Likewise.
23674         * config/sh/sh.c: Likewise.
23675         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
23676         * config/sh/sh_treg_combine.cc: Likewise.
23677         * config/sol2-c.c: Likewise.
23678         * config/sol2-cxx.c: Likewise.
23679         * config/sol2-stubs.c: Likewise.
23680         * config/sol2.c: Likewise.
23681         * config/sparc/sparc-c.c: Likewise.
23682         * config/sparc/sparc.c: Likewise.
23683         * config/spu/spu-c.c: Likewise.
23684         * config/spu/spu.c: Likewise.
23685         * config/stormy16/stormy16.c: Likewise.
23686         * config/tilegx/mul-tables.c: Likewise.
23687         * config/tilegx/tilegx-c.c: Likewise.
23688         * config/tilegx/tilegx.c: Likewise.
23689         * config/tilepro/mul-tables.c: Likewise.
23690         * config/tilepro/tilepro-c.c: Likewise.
23691         * config/tilepro/tilepro.c: Likewise.
23692         * config/v850/v850-c.c: Likewise.
23693         * config/v850/v850.c: Likewise.
23694         * config/vax/vax.c: Likewise.
23695         * config/visium/visium.c: Likewise.
23696         * config/vms/vms-c.c: Likewise.
23697         * config/vms/vms.c: Likewise.
23698         * config/vxworks.c: Likewise.
23699         * config/xtensa/xtensa.c: Likewise.
23701 2015-07-07  Uros Bizjak  <ubizjak@gmail.com>
23703         * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
23704         Remove operand constraints.  Change operand 2 predicate to
23705         nonmemory operand.  Limit const_int values to mode bitsize.  Only
23706         allow const_int values less than 32 when optimizing for size.
23707         (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
23708         Remove operand constraints.
23709         (*bt<mode>): Use SImode for const_int values less than 32.
23710         (regmode): Remove mode attribute.
23712 2015-07-07  Anatoly Sokolov  <aesok@post.ru>
23714         * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
23715         * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
23716           moxie_legitimate_address_p): New functions.
23717           (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
23719 2015-07-07  Tom de Vries  <tom@codesourcery.com>
23721         PR tree-optimization/66642
23722         * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
23723         header comment.  Rename split_edge variable to edge_at_split.  Split
23724         exit edge to create new loop exit bb.  Insert loop exit phis in new
23725         loop exit bb.
23727 2015-07-07  Tom de Vries  <tom@codesourcery.com>
23729         * tree-cfg.c (get_virtual_phi): New function.
23730         * tree-cfg.h (get_virtual_phi): Declare.
23731         * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
23732         (rewrite_virtuals_into_loop_closed_ssa): New function.
23733         * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
23734         Declare.
23735         * tree-parloops.c (replace_uses_in_bbs_by): Remove.
23736         (transform_to_exit_first_loop_alt): Use
23737         rewrite_virtuals_into_loop_closed_ssa.
23739 2015-07-07  Richard Biener  <rguenther@suse.de>
23741         * fold-const.c (fold_binary_loc): Move
23742         (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
23743         * match.pd: ... here.
23744         Add (X * C1) % C2 -> 0 simplification pattern derived from
23745         extract_muldiv_1.
23747 2015-07-07  Kaz Kojima  <kkojima@gcc.gnu.org>
23749         PR target/66780
23750         * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
23751         change for target/65249.
23753 2015-07-07  Paulo Matos  <pmatos@broadcom.com>
23755         * symtab.c (address_matters_1): Fix typo in comment above.
23756         (can_increase_alignment_p): Likewise.
23758 2015-07-07  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
23760         * function.c (free_after_compilation): Clear PROP_cfg in
23761         f->curr_properties.
23763 2015-07-07  Richard Biener  <rguenther@suse.de>
23765         * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
23766         add which use to.
23767         (add_control_edge): Remove excessive vertical space in dumping.
23768         (process_ssa_edge_worklist): Simulate at most one statement and
23769         return whether we did.  Do not simulate PHIs if they are in a
23770         BB not yet simulated.
23771         (ssa_propagate): Adjust to always drain the BB worklist whenever
23772         a BB is available there, likewise the VARYING edges list before
23773         the interesting edge list.
23775 2015-07-07  Christian Bruel  <christian.bruel@st.com>
23777         PR target/52144
23778         * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
23780 2015-07-07  Richard Biener  <rguenther@suse.de>
23782         PR middle-end/66739
23783         * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
23784         A - B.
23786 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
23788         * config/i386/i386.md (insv<mode>): Rename from insv.  Use SWI48
23789         modes for operands 0 and 3.  Use SImode for operands 2 and 3.
23790         Copy operand 0 to a temporary if !ext_register_operand.  Remove
23791         ancient extract_bit_field workaround.
23792         (insv<mode>_1): Rename from mov<mode>_insv_1.
23793         (*insvqi): Rename from *movqi_insv_2.
23794         * config/i386/i386.c (emit_i386_cw_initialization): Update calls
23795         for renamed insvsi_1.
23796         (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
23798 2015-07-06  Nathan Sidwell  <nathan@codesourcery.com>
23800         * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars.  Fix
23801         call to nvptx_reorg_subreg.
23803 2015-07-06  Jim Wilson  <jim.wilson@linaro.org>
23805         * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
23806         * graphite-dependencies.c, graphite-interchange.c,
23807         graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
23808         graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
23809         Likewise.
23811 2015-07-06  Marc Glisse  <marc.glisse@inria.fr>
23813         * match.pd: Remove element_mode inside HONOR_*.
23814         (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
23815         (~X | X -> -1, ~X ^ X -> -1): Merge.
23816         * tree.c (build_each_one_cst): New function.
23817         * tree.h (build_each_one_cst): Likewise.
23819 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
23821         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
23822         PROCESSOR_IAMCU.
23824 2015-07-06  Steve Ellcey  <sellcey@imgtec.com>
23826         * config.gcc <mips*-*-*>: Add fused-madd.opt.
23827         * config/mips/mips.opt (mfused-madd): Remove.
23828         * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
23829         * config/mips/mips.h (TARGET_MIPS8000): New.
23830         (ISA_HAS_FP_MADD4_MSUB4): Remove.
23831         (ISA_HAS_FP_MADDF_MSUBF): Remove.
23832         (ISA_HAS_FP_MADD3_MSUB3): Remove.
23833         (ISA_HAS_NMADD4_NMSUB4): Remove.
23834         (ISA_HAS_NMADD3_NMSUB3): Remove.
23835         (ISA_HAS_FUSED_MADD4): New.
23836         (ISA_HAS_UNFUSED_MADD4): New.
23837         (ISA_HAS_FUSED_MADDF): New.
23838         (ISA_HAS_FUSED_MADD3): New.
23839         * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
23840         (*fma<mode>4_madd3) New.
23841         (*fma<mode>4_madd4) New.
23842         (*fma<mode>4_maddf) New.
23843         (fms<mode>4) New.
23844         (*fms<mode>4_msub3) New.
23845         (*fms<mode>4_msub4) New.
23846         (fnma<mode>4) New.
23847         (*fnma<mode>4_nmadd3) New.
23848         (*fnma<mode>4_nmadd4) New.
23849         (fnms<mode>4) New.
23850         (*fnms<mode>4_nmsub3) New.
23851         (*fnms<mode>4_nmsub4) New.
23852         (*madd4<mode>) Modify to be unfused only.
23853         (*msub4<mode>) Modify to be unfused only.
23854         (*nmadd4<mode>) Modify to be unfused only.
23855         (*nmsub4<mode>) Modify to be unfused only.
23856         (*madd3<mode>) Remove.
23857         (*msub3<mode>) Remove.
23858         (*nmadd3<mode>) Remove.
23859         (*nmsub3<mode>) Remove.
23860         (*nmadd3<mode>_fastmath) Remove.
23861         (*nmsub3<mode>_fastmath) Remove.
23862         (*nmadd4<mode>_fastmath) Update condition.
23863         (*nmsub4<mode>_fastmath) Update condition.
23865 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
23867         PR target/65956
23868         * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
23869         alignment attribute, exploring one level down for records and arrays.
23871 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
23873         * config/i386/i386.md (extv<mode>): Rename from extv.  Use SWI24
23874         modes for operands 0 and 1.  Use SImode for operands 2 and 3.
23875         Copy operand 1 to a temporary if !ext_register_operand.  Remove
23876         ancient extract_bit_field workaround.
23877         (*extv<mode>): Rename from *mov<mode>_extv_1.
23878         (*extvqi): Rename from *movqi_extv_1.
23879         (extzv<mode>): Rename from extzv.  Use SWI248 modes for
23880         operands 0 and 1.  Use SImode for operands 2 and 3. Copy operand 1
23881         to a temporary if !ext_register_operand.  Remove ancient
23882         extract_bit_field workaround.
23883         (*extzv<mode>): Rename from *mov<mode>_extzv_1.
23884         (*extzvqi): Rename from *movqi_extzv_2.
23885         (*testqi_ext_3): Remove modes from const_int_operand predicated
23886         operands.  Add "n" constraint.
23887         (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
23888         operand.  Add "J" constraint.
23889         (*btsq, *btrq, *btcq peephole2s): Remove mode from
23890         const_0_to_63 predicated operand.
23891         (regmode): New insn attribute.
23892         (*bt<mode>): Use SImode for operand 1.  Change operand 1 predicate
23893         to nonmemory_operand.  Use regmode insn attribute.
23894         (*jcc_bt<mode>_1): Convert operand 2 to SImode.
23895         (*jcc_bt<mode>_mask): Remove mode from operand 3.
23896         (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
23897         (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
23898         operands.  Use "N" constraint instead of "n".
23900 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
23902         * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
23904 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
23906         PR target/66749
23907         * config/i386/i386.c (iamcu_cost): New.
23908         (m_IAMCU): Likewise.
23909         (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
23910         (processor_target_table): Add an entry for "iamcu".
23911         (processor_alias_table): Likewise.
23912         (ix86_issue_rate): Handle PROCESSOR_IAMCU.
23913         (ix86_adjust_cost): Likewise.
23914         (ia32_multipass_dfa_lookahead): Likewise.
23915         * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
23916         * config/i386/x86-tune.def: Updated for m_IAMCU.
23918 2015-07-06  Richard Biener  <rguenther@suse.de>
23920         PR tree-optimization/66772
23921         * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
23922         values are available in the PHI node BB when there are
23923         still unexecutable edges.
23925 2015-07-06  Richard Biener  <rguenther@suse.de>
23927         PR tree-optimization/66767
23928         * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
23929         Make sure to build the alignment test on a SSA name without
23930         final alignment info valid only if the alignment test
23931         evaluates to true.
23933 2015-07-06  Bernd Schmidt  <bernds@codesourcery.com>
23935         PR target/66620
23936         * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
23937         loop start when inserting LSETUP.
23939 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
23941         PR target/53383
23942         * config/i386/i386.c (ix86_option_override_internal): Allow
23943         -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
23945 2015-07-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23947         * read-md.c (decimal_string): Rename to ...
23948         (md_decimal_string): ... this.
23949         (handle_enum): Reflect this.
23951 2015-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
23953         PR target/66731
23954         * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
23956 2015-07-06  Richard Biener  <rguenther@suse.de>
23958         PR middle-end/66759
23959         * match.pd: Add missing constraint of y to REAL_CST in
23960         REAL_CST - x CMP y to y - CST CMP x simplification.
23962 2015-07-06  Eric Botcazou  <ebotcazou@adacore.com>
23964         PR tree-optimization/66757
23965         * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
23967 2015-07-05  Chung-Lin Tang  <cltang@codesourcery.com>
23968             Sandra Loosemore <sandra@codesourcery.com>
23970         * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
23971         Delete extern declaration.
23972         (gprel_constant_p): Add extern declaration.
23973         * config/nios2/constraints.md ("S"): Use gprel_constant_p
23974         instead of nios2_symbol_ref_in_small_data_p.
23975         * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
23976         (nios2_symbol_ref_in_small_data_p): Make static.
23977         (gprel_constant_p): Make non-static.
23979 2015-07-05  Gerald Pfeifer  <gerald@pfeifer.com>
23981         * doc/fragments.texi (Target Fragment): Convert debian.org
23982         link to use https.
23983         * doc/install.texi (Configuration): Ditto.
23985 2015-07-05  Jakub Jelinek  <jakub@redhat.com>
23987         PR tree-optimization/66718
23988         * tree-vect-stmts.c (vectorizable_call): Replace uses of
23989         GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
23991         PR tree-optimization/66718
23992         * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
23993         vectorizable_load, vectorizable_condition): Move vectype,
23994         nunits, ncopies computation after checking what kind of statement
23995         stmt is.
23997 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
23999         * target-insns.def (extv, extzv, insv): New targetm instruction
24000         patterns.
24001         * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
24002         interface.
24003         * recog.c (simplify_while_replacing): Likewise.
24005 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
24007         * target-insns.def (doloop_begin, doloop_end): New targetm
24008         instruction patterns.
24009         * loop-init.c: Include target.h.
24010         (pass_loop2::gate): Use the new targetm patterns instead of
24011         HAVE_*/gen_* interface.
24012         (pass_rtl_doloop::gate): Likewise.
24013         (pass_rtl_doloop::execute): Remove preprocessor condition.
24014         * hw-doloop.c: Build unconditionally.
24015         * loop-doloop.c: Likewise.
24016         (doloop_optimize): Use the new targetm patterns instead of
24017         HAVE_*/gen_* interface.
24018         (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
24019         * modulo-sched.c (doloop_register_get): Likewise.
24021 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
24023         * target-insns.def (clear_cache): New targetm instruction pattern.
24024         * builtins.c (expand_builtin___clear_cache): Use it instead of
24025         HAVE_*/gen_* interface.
24027 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
24029         * target-insns.def (allocate_stack, check_stack, probe_stack)
24030         (probe_stack_address, split_stack_prologue, split_stack_space_check):
24031         New targetm instruction patterns.
24032         * explow.c (allocate_dynamic_stack_space): Use them instead of
24033         HAVE_*/gen_* interface.
24034         (emit_stack_probe): Likewise.
24035         (probe_stack_range): Likewise.
24036         * function.c (thread_prologue_and_epilogue_insns): Likewise.
24038 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
24040         * target-insns.def (stack_protect_set, stack_protect_test): New
24041         targetm instruction patterns.
24042         * cfgexpand.c (stack_protect_prologue): Use them instead of
24043         HAVE_*/gen_* interface.
24044         * function.c (stack_protect_epilogue): Likewise.
24046 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
24048         * expr.h (gen_move_insn_uncast): Delete.
24049         * expr.c (gen_move_insn_uncast): Delete.
24051 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
24053         * target-insns.def (restore_stack_block, restore_stack_function)
24054         (restore_stack_nonlocal, save_stack_block, save_stack_function)
24055         (save_stack_nonlocal): New targetm instruction patterns.
24056         * builtins.c (expand_builtin_apply): Use them instead of
24057         HAVE_*/gen_* interface.
24058         * explow.c (emit_stack_save, emit_stack_restore): Likewise.
24060 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
24062         * target-insns.def (trap): New targetm instruction pattern.
24063         * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
24064         interface.
24065         * explow.c (allocate_dynamic_stack_space): Likewise.
24066         * ifcvt.c (find_if_header): Likewise.
24068 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
24070         * target-insns.def (prefetch): New targetm instruction pattern.
24071         * tree-ssa-loop-prefetch.c: Include targeth.
24072         (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
24073         of HAVE_*/gen_* interface.
24074         * builtins.c (expand_builtin_prefetch): Likewise.
24075         * toplev.c (process_options): Likewise.
24077 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
24079         * target-insns.def (untyped_call, untyped_return): New targetm
24080         instruction patterns.
24081         * builtins.c (expand_builtin_apply): Use them instead of
24082         HAVE_*/gen_* interface.
24083         (result_vector): Define unconditionally.
24085 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
24087         * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
24088         (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
24089         (nonlocal_goto_receiver): New targetm instruction patterns.
24090         * builtins.c (expand_builtin_setjmp_setup): Use them instead
24091         of HAVE_*/gen_* interface.
24092         (expand_builtin_setjmp_receiver): Likewise.
24093         (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
24094         * except.c (expand_dw2_landing_pad_for_region): Likewise.
24096 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
24098         * target.def: Add code_for_* hooks.
24099         * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
24100         * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
24101         * target-insns.def (casesi, tablejump): New targetm instruction
24102         patterns.
24103         * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
24104         (do_tablejump): Likewise.
24105         * stmt.c (expand_switch_as_decision_tree_p): Likewise.
24106         (expand_sjlj_dispatch_table): Likewise.
24107         * targhooks.c (default_case_values_threshold): Likewise.
24109 2015-07-04  Sandra Loosemore  <sandra@codesourcery.com>
24111         * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
24112         Use rtx_insn * instead of rtx.
24113         (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
24114         (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
24115         (nios2_call_tls_get_addr): Likewise.
24116         (nios2_emit_expensive_div): Likewise.
24117         (nios2_emit_move_sequence): Change return type to bool.
24118         * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
24119         Change return type to bool.
24121 2015-07-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
24123         PR target/66747
24124         * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
24126 2015-07-04  John David Anglin  <danglin@gcc.gnu.org>
24128         PR target/66114
24129         * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
24130         of register_operand.  Remove constraint.
24132 2015-07-04  Marc Glisse  <marc.glisse@inria.fr>
24134         * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
24135         the first argument.
24137 2015-07-03  Paolo Carlini  <paolo.carlini@oracle.com>
24139         * attribs.c (decl_attributes): Guard inform with the return value
24140         of the preceding warning.
24142 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
24144         * doc/invoke.texi (moverride): Move to correct section.
24146 2015-07-03  Richard Biener  <rguenther@suse.de>
24148         * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
24149         Copy from tree.c
24150         (dt_operand::gen_gimple_expr): After valueizing operands
24151         re-canonicalize operand order for commutative tree codes.
24153 2015-07-03  H.J. Lu  <hongjiu.lu@intel.com>
24155         PR target/66746.
24156         * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
24157         is defined.
24158         (__crc32w): Likewise.
24159         (__crc32d): Likewise.
24160         (__rdpmc): Likewise.
24161         (__rdtscp): Likewise.
24162         (_rdpmc): Likewise.
24163         (_rdtscp): Likewise.
24164         * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
24165         is defined.
24167 2015-07-03  Richard Biener  <rguenther@suse.de>
24169         * fold-const.c (fold_mathfn_compare): Remove.
24170         (fold_inf_compare): Likewise.
24171         (fold_comparison): Move floating point comparison simplifications...
24172         * match.pd: ... to patterns here.  Introduce simple_comparisons
24173         operator list and use it for patterns formerly in fold_comparison.
24175 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
24177         PR tree-optimization/66119
24178         * toplev.c (process_options): Don't set up default values for
24179         the sra_max_scalarization_size_{speed,size} parameters.
24180         * tree-sra (analyze_all_variable_accesses): If no values
24181         have been set for the sra_max_scalarization_size_{speed,size}
24182         parameters, call get_move_ratio to get target defaults.
24184 2015-07-03  Richard Biener  <rguenther@suse.de>
24186         * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
24187         * match.pd: ... here.
24189 2015-07-03  Gerald Pfeifer  <gerald@pfeifer.com>
24191         PR target/37072
24192         * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
24193         is not actually the default on FreeBSD.
24195 2015-07-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24197         * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
24198         definition.
24199         (CMPGE_8HI): Likewise.
24200         (CMPGE_4SI): Likewise.
24201         (CMPGE_2DI): Likewise.
24202         (CMPGE_U16QI): Likewise.
24203         (CMPGE_U8HI): Likewise.
24204         (CMPGE_U4SI): Likewise.
24205         (CMPGE_U2DI): Likewise.
24206         (CMPLE_16QI): Likewise.
24207         (CMPLE_8HI): Likewise.
24208         (CMPLE_4SI): Likewise.
24209         (CMPLE_2DI): Likewise.
24210         (CMPLE_U16QI): Likewise.
24211         (CMPLE_U8HI): Likewise.
24212         (CMPLE_U4SI): Likewise.
24213         (CMPLE_U2DI): Likewise.
24214         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
24215         overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
24216         ALTIVEC_BUILTIN_VEC_CMPLE.
24217         * config/rs6000/vector.md (vector_ge<mode>): Restrict to
24218         floating-point vector modes.
24219         (vector_nlt<mode>): New define_expand.
24220         (vector_nltu<mode>): Likewise.
24221         (vector_ngt<mode>): Likewise.
24222         (vector_ngtu<mode>): Likewise.
24224 2015-07-02  Segher Boessenkool  <segher@kernel.crashing.org>
24226         PR rtl-optimization/66706
24227         * combine.c (make_compound_operation): If an AND of SUBREG of
24228         LSHIFTRT does not simplify, see if just the AND of SUBREG does.
24230 2015-07-02  Alan Lawrence  <alan.lawrence@arm.com>
24232         * tree-pass.h (make_pass_ch_vect): New.
24233         * passes.def: Add pass_ch_vect just before pass_if_conversion.
24235         * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
24236         pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
24237         make_pass_ch_vect): New.
24238         (pass_ch): Extend ch_base.
24240         (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
24241         (ch_base::copy_headers): ...here.
24243 2015-07-02  Richard Biener  <rguenther@suse.de>
24245         * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
24246         * fold-const.c (get_pointer_modulus_and_residue): Remove.
24247         (fold_binary_loc): Implement (T)ptr & CST in terms of
24248         get_pointer_alignment_1.
24249         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
24250         Make sure to build the alignment test on a SSA name without
24251         final alignment info valid only after the prologue.
24253 2015-07-02  Hans-Peter Nilsson  <hp@axis.com>
24255         * config/cris/cris.md ("epilogue"): Remove condition.
24256         ("prologue"): Ditto.
24258 2015-07-02  Richard Biener  <rguenther@suse.de>
24260         * tree-ssa-dom.c (build_and_record_new_cond): Add optional
24261         parameter to record a condition that is false.
24262         (record_conditions): When recording an extra NE_EXPR that is
24263         true also record a EQ_EXPR that is false.
24265 2015-07-02  Bin Cheng  <bin.cheng@arm.com>
24267         * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
24268         (tree_ssa_iv_optimize_init): Initialize iv_obstack.
24269         (alloc_iv): New parameter.  Allocate struct iv using obstack_alloc.
24270         (set_iv, find_interesting_uses_address, add_candidate_1): New
24271         argument to alloc_iv.
24272         (find_interesting_uses_op, find_interesting_uses_cond): Don't
24273         duplicate struct iv.
24274         (free_loop_data): Don't free struct iv explicitly.
24275         (tree_ssa_iv_optimize_finalize): Free iv_obstack.
24277 2015-07-01  DJ Delorie  <dj@redhat.com>
24279         * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
24280         (LIB_SPEC): Add.
24281         (SUPPORTS_DISCRIMINATOR): Define.
24283 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
24285         PR bootstrap/66685
24286         * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
24287         there are no CALLs in the same pattern.
24289 2015-07-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
24291         PR rtl-optimization/61047
24292         * rtlanal.c (get_initial_register_offset): New function.
24293         (rtx_addr_can_trap_p_1): Check offsets of stack references.
24295 2015-07-01  Richard Biener  <rguenther@suse.de>
24297         * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
24298         X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
24299         ~X CMP C -> X CMP' ~C to ...
24300         * match.pd: ... patterns here.
24302 2015-07-01  Nick Clifton  <nickc@redhat.com>
24304         * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
24305         a 16-bit value into a 20-bit memory slot.
24307 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
24309         * doc/sourcebuild.texi (AArch64-specific attributes): Document
24310         "aarch64_tiny", "aarch64_small", "aarch64_large",
24311         "aarch64_little_endian", "aarch64_big_endian".
24313 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
24315         * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
24316         Document "aarch64_small_fpic".
24318 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
24320         * configure.ac: Add check for aarch64 assembler -fpic relocation
24321         modifier support.
24322         * configure: Regenerate.
24323         * config.in: Regenerate.
24324         * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
24325         to -fPIC if not support of -fpic relocation modifier in assembler.
24327 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
24329         PR bootstrap/66685
24330         * rtl.c (classify_insn): Handle returns in PARALLELs.
24332 2015-07-01  Eric Botcazou  <ebotcazou@adacore.com>
24334         PR middle-end/66633
24335         * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
24336         to true if the function is nested and if not optimizing.
24337         (convert_local_omp_clauses): Initialize need_frame to true if the
24338         function contains nested functions and if not optimizing.
24340 2015-07-01  Richard Biener  <rguenther@suse.de>
24342         * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
24343         (X & Y) ^ Y -> ~X & Y transforms to ...
24344         * match.pd: ... here.
24346 2015-07-01  Richard Biener <rguenther@suse.de>
24348         * genmatch.c (expr::gen_transform): Shortcut re-simplifying
24349         of converts to avoid uninteresting noise from the conversion
24350         simplifying patterns.
24352 2015-06-30  Sandra Loosemore <sandra@codesourcery.com>
24354         * config/c6x/c6x.c (try_rename_operands): Do not depend on
24355         gcc_assert evaluating its argument for side-effect.
24357 2015-06-30  Kaz Kojima  <kkojima@gcc.gnu.org>
24359         PR target/64833
24360         * config/sh/sh.md (casesi_worker_1): Set length to 8 when
24361         flag_pic is set.
24363 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
24365         * lto-streamer-out.c (class DFS): Adjust hash_scc method.
24366         (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
24367         (hash_scc): Add this_ref_p and ref_p parameters and pass them
24368         to the inner DFS walk.
24370 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
24372         * target-insns.def (jump): New targetm instruction pattern.
24373         * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
24374         instead of gen_jump.
24375         (fix_up_crossing_landing_pad): Likewise.
24376         (add_labels_and_missing_jumps): Likewise.
24377         (fix_crossing_conditional_branches): Likewise.
24378         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
24379         (force_nonfallthru_and_redirect): Likewise.
24380         * cse.c (cse_insn): Likewise.
24381         * expmed.c (expand_divmod): Likewise.
24382         * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
24383         * haifa-sched.c (init_before_recovery): Likewise.
24384         (sched_create_recovery_edges): Likewise.
24385         * ifcvt.c (find_cond_trap): Likewise.
24386         * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
24387         (expand_float, expand_fix): Likewise.
24388         * stmt.c (emit_jump): Likewise.
24390 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
24392         * defaults.h (HAVE_load_multiple, gen_load_multiple)
24393         (HAVE_store_multiple, gen_store_multiple): Delete.
24394         * target-insns.def (load_multiple, store_multiple): New targetm
24395         instruction patterns.
24396         * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
24397         of HAVE_*/gen_* interface.
24399 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
24401         * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
24402         (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
24403         (gen_mem_signal_fence): Delete.
24404         * target-insns.def (mem_signal_fence, mem_thread_fence)
24405         (memory_barrier): New targetm instruction patterns.
24406         * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
24407         interface.
24408         (expand_mem_signal_fence): Likewise.
24410 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
24412         * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
24413         * target-insns.def (epilogue, prologue, sibcall_prologue): New
24414         targetm instruction patterns.
24415         * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
24416         interface.
24417         * calls.c (expand_call): Likewise.
24418         * cfgrtl.c (cfg_layout_finalize): Likewise.
24419         * df-scan.c (df_get_entry_block_def_set): Likewise.
24420         (df_get_exit_block_use_set): Likewise.
24421         * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
24422         * final.c (final_start_function): Likewise.
24423         * function.c (thread_prologue_and_epilogue_insns): Likewise.
24424         (reposition_prologue_and_epilogue_notes): Likewise.
24425         * reorg.c (find_end_label): Likewise.
24426         * toplev.c (process_options): Likewise.
24428 2015-06-30  David Malcolm  <dmalcolm@redhat.com>
24430         * typed-splay-tree.h: New file.
24432 2015-06-30  Vladimir Makarov  <vmakarov@redhat.com>
24434         PR debug/66691
24435         * lra-int.h (lra_substitute_pseudo): Add a parameter.
24436         (lra_substitute_pseudo_within_insn): Ditto.
24437         * lra.c (lra_substitute_pseudo): Add a parameter.  Simplify subreg
24438         of constant.
24439         (lra_substitute_pseudo_within_insn): Add a parameter.  Transfer it
24440         to lra_substitute_pseudo.
24441         * lra-lives.c (process_bb_lives): Add an argument to
24442         lra_substitute_pseudo_within_insn call.
24443         * lra-constraints.c (inherit_reload_reg, split_reg): Add an
24444         argument to lra_substitute_pseudo and
24445         lra_substitute_pseudo_within_insn calls.
24446         (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
24448 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
24450         * configure: Regenerated.
24452 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
24454         * config.gcc: Support i[34567]86-*-elfiamcu target.
24455         * config/i386/iamcu.h: New.
24456         * config/i386/i386.opt: Add -miamcu.
24457         * doc/invoke.texi: Document -miamcu.
24458         * common/config/i386/i386-common.c  (ix86_handle_option): Turn
24459         off x87/MMX/SSE/AVX codegen for -miamcu.
24460         * config/i386/i386-c.c (ix86_target_macros_internal): Define
24461         __iamcu/__iamcu__ for -miamcu.
24462         * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
24463         to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
24464         (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
24465         * config/i386/i386.c (ix86_option_override_internal): Ignore and
24466         warn -mregparm for Intel MCU.  Turn on -mregparm=3 for Intel
24467         MCU by default.  Default long double to 64-bit for Intel MCU.
24468         Turn on -freg-struct-return for Intel MCU.  Issue an error when
24469         -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
24470         AVX is turned on.
24471         (function_arg_advance_32): Pass value whose size is no larger
24472         than 8 bytes in registers for Intel MCU.
24473         (function_arg_32): Likewise.
24474         (ix86_return_in_memory): Return value whose size is no larger
24475         than 8 bytes in registers for Intel MCU.
24476         (iamcu_alignment): New function.
24477         (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
24478         true.
24479         (ix86_local_alignment): Don't increase alignment for Intel MCU.
24480         (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
24481         true.
24483 2015-06-30  Marek Polacek  <polacek@redhat.com>
24485         * match.pd (X - (X / Y) * Y): Use convert1 and convert2.  Convert
24486         both operands of the resulting expression.
24488         * match.pd (~x | x): Don't use tree_nop_conversion_p.  Build
24489         the final expression with the operand's type and then convert
24490         it to the type of the expression.
24492 2015-06-30  Richard Biener  <rguenther@suse.de>
24494         * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
24495         ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
24496         (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
24497         * match.pd: ... to patterns here.
24499 2015-06-30  Richard Biener  <rguenther@suse.de>
24501         PR tree-optimization/66704
24502         * tree-vect-data-refs.c (vect_setup_realignment): Use
24503         make_ssa_name for non-SSA name source.
24505 2015-06-30  Jakub Jelinek  <jakub@redhat.com>
24507         PR middle-end/66702
24508         * omp-low.c (simd_clone_adjust): Handle addressable linear
24509         or uniform parameters or non-gimple type uniform parameters.
24511 2015-06-30  Richard Biener  <rguenther@suse.de>
24513         * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
24514         ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
24515         ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
24516         * match.pd: ... here.
24517         Add a few cases of A - B -> A + (-B) when B "easily" negates.
24518         Move (x & y) | x -> x and friends before
24519         (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
24521 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
24523         * config/sparc/leon.md (leon_load): Enable for all LEON variants if
24524         -mfix-ut699 is not specified.
24525         (leon3_load): Rename into...
24526         (ut699_load): ...this.  Enable for all LEON variants if -mfix-ut699
24527         is specified.
24529 2015-06-30  Marek Polacek  <polacek@redhat.com>
24531         * fold-const.c (fold_binary_loc): Move ~X | X folding ...
24532         * match.pd: ... here.
24534 2015-06-30  Richard Biener  <rguenther@suse.de>
24536         * target-insns.def (canonicalize_funcptr_for_compare): Add.
24537         * fold-const.c (build_range_check): Replace uses of
24538         HAVE_canonicalize_funcptr_for_compare.
24539         (fold_widened_comparison): Likewise.
24540         (fold_sign_changed_comparison): Likewise.
24541         * dojump.c: Include "target.h".
24542         (do_compare_and_jump): Replace uses of
24543         HAVE_canonicalize_funcptr_for_compare and
24544         gen_canonicalize_funcptr_for_compare.
24545         * expr.c (do_store_flag): Likewise.
24547 2015-06-30  Tom de Vries  <tom@codesourcery.com>
24549         PR tree-optimization/66652
24550         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
24551         max_loop_iterations to determine if nit + 1 overflows.
24553 2015-06-30  Richard Biener  <rguenther@suse.de>
24555         * tree-vrp.c (register_edge_assert_for_2): Also register
24556         asserts for dominating conversion results.
24558 2015-06-30  Bin Cheng  <bin.cheng@arm.com>
24560         * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
24561         field in struct iv.
24563 2015-06-29  Jack Howarth  <howarth.at.gcc@gmail.com>
24565         PR target/66509
24566         * configure.ac: Fix filds and fildq test for 64-bit.
24567         * configure: Regenerated.
24569 2015-06-29  Nathan Sidwell  <nathan@codesourcery.com>
24571         * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
24572         (nvptx_reorg): Here.  Keep the non-subreg pieces.
24574 2015-06-29  H.J. Lu  <hongjiu.lu@intel.com>
24576         * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
24577         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
24579 2015-06-29  Uros Bizjak  <ubizjak@gmail.com>
24581         * config/i386/i386.md (*jcc_1): Use %! in asm template.
24582         Set attribute "length_nobnd" instead of "length".
24583         (*jcc_2): Ditto.
24584         (jump): Ditto.
24585         (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
24587 2015-06-29  Sandra Loosemore  <sandra@codesourcery.com>
24589         * config/nios2/nios2.c (nios2_delegitimize_address): Make
24590         assert less restrictive.
24592 2015-06-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
24594         PR fortran/66605
24595         * cgraphunit.c (cgraph_node::finalize_function): Do not call
24596         do_warn_unused_parameter.
24597         * function.c (do_warn_unused_parameter): Move from here.
24598         * function.h (do_warn_unused_parameter): Do not declare.
24600 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
24602         PR target/65697
24603         * gcc.target/arm/armv-sync-comp-swap.c: New.
24604         * gcc.target/arm/armv-sync-op-acquire.c: New.
24605         * gcc.target/arm/armv-sync-op-full.c: New.
24606         * gcc.target/arm/armv-sync-op-release.c: New.
24608 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
24610         PR target/65697
24611         * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
24612         initial acquire barrier with final barrier.
24614 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
24616         PR target/65697
24617         * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
24618         initial acquire barrier with final barrier.
24620 2015-06-29  Richard Henderson  <rth@redhat.com>
24622         * config/i386/constraints.md (Bf): New constraint.
24623         * config/i386/i386-c.c (ix86_target_macros): Define
24624         __GCC_ASM_FLAG_OUTPUTS__.
24625         * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
24626         as flags outputs.
24627         * doc/extend.texi (FlagOutputOperands): Document them.
24629 2015-06-29  Jiong Wang  <jiong.wang@arm.com>
24631         * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
24632         * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
24633         unspec name.
24634         (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
24635         * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
24636         SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
24637         (aarch64_symbol_context): Ditto.
24638         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
24639         and use new pattern name.
24640         (aarch64_expand_mov_immediate): Ditto.
24641         (aarch64_print_operand): Ditto.
24642         (aarch64_classify_tls_symbol): Ditto.
24644 2015-06-29  Marek Polacek  <polacek@redhat.com>
24645             Marc Glisse  <marc.glisse@inria.fr>
24647         * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
24648         * match.pd: ... pattern here.
24650 2015-06-29  Tom de Vries  <tom@codesourcery.com>
24652         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
24653         function structure.
24655 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
24657         * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
24658         feature description, split out the native option, add a link to
24659         the feature documentation, rearrange and slightly rewrite text.
24660         (Aarch64 options, -mcpu): Likewise.
24661         (Aarch64 options, Feature Modifiers): Add an anchor.  Mention
24662         +rdma implies Adv. SIMD.
24664 2015-06-29  Marek Polacek  <polacek@redhat.com>
24666         PR c/66322
24667         * function.c (stack_protect_epilogue): Remove a cast to int.
24668         * doc/invoke.texi: Update -Wswitch-bool description.
24670 2015-06-29  Richard Biener  <rguenther@suse.de>
24672         * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
24673         * fold-const.c (fold_binary_loc): Move &A - &B simplification
24674         via ptr_difference_const ...
24675         * match.pd: ... here.
24676         When matching (X ^ Y) == Y also match with swapped operands.
24678 2015-06-29  Richard Biener  <rguenther@suse.de>
24680         * lto-streamer.h (LTO_major_version): Bump to 5.
24682 2015-06-29  Richard Biener  <rguenther@suse.de>
24684         PR tree-optimization/66677
24685         * tree-vect-stmts.c (vect_transform_stmt): Make assert about
24686         STMT_VINFO_VEC_STMT clobbering less strict.
24688 2015-06-29  Kugan Vivekanandarajah  <kuganv@linaro.org>
24690         PR middle-end/64130
24691         * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
24692         division, compute max and min when value ranges for dividend and
24693         divisor are available.
24695 2015-06-28  Chung-Lin Tang <cltang@codesourcery.com>
24696             Sandra Loosemore <sandra@codesourcery.com>
24698         * regrename.h (regrename_do_replace): Change to return bool.
24699         * regrename.c (rename_chains): Check return value of
24700         regname_do_replace.
24701         (regrename_do_replace): Re-validate the modified insns and
24702         return bool status.
24703         * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
24704         Update to match rename_chains changes.
24705         * config/c6x/c6x.c (try_rename_operands): Assert that
24706         regrename_do_replace returns true.
24708 2015-06-28  Uros Bizjak  <ubizjak@gmail.com>
24710         * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
24711         operand 2 here.  Use copy_addr_to_reg to copy non-index
24712         register operand 2 to a temporary.
24713         (<mode>_stx): Ditto for operand 1.
24714         (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
24715         * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
24716         (ix86_store_bounds): Ditto.
24718 2015-06-27  Patrick Palka  <ppalka@gcc.gnu.org>
24720         * print-tree.c (print_node) [TREE_VEC]: Print its length.
24722 2015-06-26  Andrew MacLeod  <amacleod@redhat.com>
24724         * gimple.c (gimple_call_set_fndecl): Remove.
24725         * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
24726         build1_loc directly instead of build_fold_addr_expr_loc.
24728 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
24730         * hash-map.h (hash_map::traverse): Use the definition of the
24731         Key typedef rather than the typedef itself.
24733 2015-06-26  Martin Jambor  <mjambor@suse.cz>
24735         PR debug/66301
24736         * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
24737         NULL instead of calling dump_enabled_p.
24739 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
24741         * config/aarch64/aarch64.opt: (override): New.
24742         * doc/invoke.texi (override): Document.
24743         * config/aarch64/aarch64.c (aarch64_flag_desc): New
24744         (aarch64_fusible_pairs): Likewise.
24745         (aarch64_tuning_flags): Likewise.
24746         (aarch64_tuning_override_function): Likewise.
24747         (aarch64_tuning_override_functions): Likewise.
24748         (aarch64_parse_one_option_token): Likewise.
24749         (aarch64_parse_boolean_options): Likewise.
24750         (aarch64_parse_fuse_string): Likewise.
24751         (aarch64_parse_tune_string): Likewise.
24752         (aarch64_parse_one_override_token): Likewise.
24753         (aarch64_parse_override_string): Likewise.
24754         (aarch64_override_options): Parse the -override string if it
24755         is present.
24757 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
24759         * config/aarch64/aarch64-protos.h (tune_params): Remove
24760         const from members.
24761         (aarch64_tune_params): Remove const, change to no longer be
24762         a pointer.
24763         * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
24764         change to no longer be a pointer, initialize to generic_tunings.
24765         (aarch64_min_divisions_for_recip_mul): Change dereference of
24766         aarch64_tune_params to member access.
24767         (aarch64_reassociation_width): Likewise.
24768         (aarch64_rtx_mult_cost): Likewise.
24769         (aarch64_address_cost): Likewise.
24770         (aarch64_branch_cost): Likewise.
24771         (aarch64_rtx_costs): Likewise.
24772         (aarch64_register_move_cost): Likewise.
24773         (aarch64_memory_move_cost): Likewise.
24774         (aarch64_sched_issue_rate): Likewise.
24775         (aarch64_builtin_vectorization_cost): Likewise.
24776         (aarch64_override_options): Take a copy of the selected tuning
24777         struct in to aarch64_tune_params, rather than just setting
24778         a pointer, change dereferences of aarch64_tune_params to member
24779         accesses.
24780         (aarch64_override_options_after_change): Change dereferences of
24781         aarch64_tune_params to member access.
24782         (aarch64_macro_fusion_p): Likewise.
24783         (aarch_macro_fusion_pair_p): Likewise.
24784         * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
24786 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
24788         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
24789         (aarch64_tune_flags): Likewise.
24790         (AARCH64_TUNE_FMA_STEERING): Likewise.
24791         * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
24792         to AARCH64_FL_USE_FMA_STEERING_PASS.
24793         (cortex-a57.cortex-a53): Likewise.
24794         (cortex-a72): Use cortexa72_tunings.
24795         (cortex-a72.cortex-a53): Likewise.
24796         (exynos-m1): Likewise.
24797         * config/aarch64/aarch64-protos.h (tune_params): Add
24798         a field: extra_tuning_flags.
24799         * config/aarch64/aarch64-tuning-flags.def: New.
24800         * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
24801         (aarch64_extra_tuning_flags): Likewise.
24802         (aarch64_tune_params): Declare here.
24803         * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
24804         (cortexa53_tunings): Likewise.
24805         (cortexa57_tunings): Likewise.
24806         (thunderx_tunings): Likewise.
24807         (xgene1_tunings): Likewise.
24808         (cortexa72_tunings): New.
24809         * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
24810          (gate): Check against aarch64_tune_params.
24811         * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
24812         aarch64-protos.h.
24814 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
24816         * config/aarch64/aarch64-fusion-pairs.def: New.
24817         * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
24818         * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
24819         aarch64_fusion_pairs.
24820         (AARCH64_FUSE_MOV_MOVK): Likewise.
24821         (AARCH64_FUSE_ADRP_ADD): Likewise.
24822         (AARCH64_FUSE_MOVK_MOVK): Likewise.
24823         (AARCH64_FUSE_ADRP_LDR): Likewise.
24824         (AARCH64_FUSE_CMP_BRANCH): Likewise.
24826 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
24828         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
24829         SYMBOL_SMALL_GOT_28K.
24830         * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
24831         relocation modifiers.
24832         (unspec): New enum "UNSPEC_GOTMALLPIC28K.
24833         (ldr_got_small_28k_<mode>): New.
24834         (ldr_got_small_28k_sidi): New.
24835         * config/aarch64/iterators.md (got_modifier): New mode iterator.
24836         * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
24837         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
24838         SYMBOL_SMALL_GOT_28K.
24839         (aarch64_rtx_costs): Add costs for new instruction sequences.
24840         (initialize_aarch64_code_model): Initialize new model.
24841         (aarch64_classify_symbol): Recognize new model and new symbol classification.
24842         (aarch64_asm_preferred_eh_data_format): Support new model.
24843         (aarch64_load_symref_appropriately): Generate new instruction
24844         sequences for -fpic.
24845         (TARGET_USE_PSEUDO_PIC_REG): New definition.
24846         (aarch64_use_pseudo_pic_reg): New function.
24848 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
24850         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
24851         SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
24852         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
24853         (aarch64_expand_mov_immediate): Ditto.
24854         (aarch64_print_operand): Ditto.
24855         (aarch64_classify_symbol): Ditto.
24857 2015-06-26  Nathan Sidwell  <nathan@codesourcery.com>
24859         * config/nvptx/nvptx.md (call_operation): Remove unused variables.
24861 2015-06-26  Bin Cheng  <bin.cheng@arm.com>
24863         PR bootstrap/66638
24864         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
24865         assertion failed.  Remove assertion itself.
24867 2015-06-26  Richard Biener  <rguenther@suse.de>
24869         * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
24870         and -A CMP CST -> A CMP -CST which is redundant with a pattern
24871         in match.pd.
24872         Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
24873         (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
24874         (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
24875         * match.pd: ... patterns here.
24877 2015-06-26  Marek Polacek  <polacek@redhat.com>
24879         * match.pd ((x | y) & ~(x & y) -> x ^ y,
24880         (x | y) & (~x ^ y) -> x & y): New patterns.
24882 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
24884         * rtl.h (emit): Add an optional boolean parameter to control
24885         whether barriers are emitted.
24886         * emit-rtl.c (emit): Likewise.
24887         * gensupport.c (get_emit_function): Return null rather than "emit".
24888         * genemit.c (gen_emit_seq): Handle the null return value.
24889         Don't emit barriers after the final instruction in the sequence.
24890         * gentarget-def.c (main): Don't emit barriers after the instruction.
24892 2015-06-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24894         * config/arm/arm.c (arm_output_multireg_pop): Fix use of
24895         TARGET_UNIFIED_ASM.
24897 2015-06-26  Richard Biener  <rguenther@suse.de>
24899         * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
24901 2015-06-26  Richard Biener  <rguenther@suse.de>
24903         * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
24904         irrespective on whether the inner operation has a single use
24905         of both off are constant.
24907 2015-06-26  Uros Bizjak  <ubizjak@gmail.com>
24908             Segher Boessenkool  <segher@kernel.crashing.org>
24910         PR target/66412
24911         * config/i386/i386.md (various splitters): Use shallow_copy_rtx
24912         before doing PUT_MODE or PUT_CODE on operands to avoid
24913         in-place RTX modification.
24915 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
24917         * gentarget-def.c (def_target_insn): Cast return of strtol to
24918         unsigned int.
24920 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
24922         * gimple.h (gimple_call_set_fn): Move inline function.
24923         * gimple.c (gimple_call_set_fn): Relocate here.
24925 2015-06-25  Oleg Endo  <olegendo@gcc.gnu.org>
24927         PR target/65979
24928         PR target/66611
24929         * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
24930         the replacement insn will work.
24932 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
24934         * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
24935         by default.
24937 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
24939         * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
24940         * cgraph.h: Include ipa-ref.h and plugin-api.h.
24941         (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
24942         (symtab_node::address_can_be_compared_p): Move function.
24943         * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
24944         definition here.
24945         * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
24946         * auto-profile.c: Likewise.
24947         * bb-reorder.c: Likewise.
24948         * builtins.c: Likewise.
24949         * calls.c: Likewise.
24950         * cfgexpand.c: Likewise.
24951         * cgraphbuild.c: Likewise.
24952         * cgraphclones.c: Likewise.
24953         * cgraphunit.c: Likewise.
24954         * combine.c: Likewise.
24955         * coverage.c: Likewise.
24956         * data-streamer-in.c: Likewise.
24957         * data-streamer-out.c: Likewise.
24958         * data-streamer.c: Likewise.
24959         * dbxout.c: Likewise.
24960         * dwarf2out.c: Likewise.
24961         * except.c: Likewise.
24962         * expr.c: Likewise.
24963         * final.c: Likewise.
24964         * fold-const.c: Likewise.
24965         * ggc-page.c: Likewise.
24966         * gimple-fold.c: Likewise.
24967         * gimple-iterator.c: Likewise.
24968         * gimple-pretty-print.c: Likewise.
24969         * gimple-streamer-in.c: Likewise.
24970         * gimple-streamer-out.c: Likewise.
24971         * gimple.c: Likewise.
24972         * gimplify.c: Likewise.
24973         * ipa-chkp.c: Likewise.
24974         * ipa-comdats.c: Likewise.
24975         * ipa-cp.c: Likewise.
24976         * ipa-devirt.c: Likewise.
24977         * ipa-icf-gimple.c: Likewise.
24978         * ipa-icf.c: Likewise.
24979         * ipa-inline-analysis.c: Likewise.
24980         * ipa-inline-transform.c: Likewise.
24981         * ipa-inline.c: Likewise.
24982         * ipa-polymorphic-call.c: Likewise.
24983         * ipa-profile.c: Likewise.
24984         * ipa-prop.c: Likewise.
24985         * ipa-pure-const.c: Likewise.
24986         * ipa-ref.c: Likewise.
24987         * ipa-reference.c: Likewise.
24988         * ipa-split.c: Likewise.
24989         * ipa-utils.c: Likewise.
24990         * ipa-visibility.c: Likewise.
24991         * ipa.c: Likewise.
24992         * langhooks.c: Likewise.
24993         * lto-cgraph.c: Likewise.
24994         * lto-compress.c: Likewise.
24995         * lto-opts.c: Likewise.
24996         * lto-section-in.c: Likewise.
24997         * lto-section-out.c: Likewise.
24998         * lto-streamer-in.c: Likewise.
24999         * lto-streamer-out.c: Likewise.
25000         * lto-streamer.c: Likewise.
25001         * omp-low.c: Likewise.
25002         * opts-global.c: Likewise.
25003         * passes.c: Likewise.
25004         * predict.c: Likewise.
25005         * print-tree.c: Likewise.
25006         * profile.c: Likewise.
25007         * ree.c: Likewise.
25008         * sanopt.c: Likewise.
25009         * stor-layout.c: Likewise.
25010         * symtab.c: Likewise.
25011         * toplev.c: Likewise.
25012         * trans-mem.c: Likewise.
25013         * tree-cfg.c: Likewise.
25014         * tree-chkp.c: Likewise.
25015         * tree-eh.c: Likewise.
25016         * tree-emutls.c: Likewise.
25017         * tree-inline.c: Likewise.
25018         * tree-nested.c: Likewise.
25019         * tree-parloops.c: Likewise.
25020         * tree-pretty-print.c: Likewise.
25021         * tree-profile.c: Likewise.
25022         * tree-sra.c: Likewise.
25023         * tree-ssa-alias.c: Likewise.
25024         * tree-ssa-live.c: Likewise.
25025         * tree-ssa-loop-ivcanon.c: Likewise.
25026         * tree-ssa-loop-ivopts.c: Likewise.
25027         * tree-ssa-pre.c: Likewise.
25028         * tree-ssa-sccvn.c: Likewise.
25029         * tree-ssa-strlen.c: Likewise.
25030         * tree-ssa-structalias.c: Likewise.
25031         * tree-streamer-in.c: Likewise.
25032         * tree-streamer-out.c: Likewise.
25033         * tree-streamer.c: Likewise.
25034         * tree-switch-conversion.c: Likewise.
25035         * tree-tailcall.c: Likewise.
25036         * tree-vect-data-refs.c: Likewise.
25037         * tree-vect-stmts.c: Likewise.
25038         * tree-vectorizer.c: Likewise.
25039         * tree.c: Likewise.
25040         * tsan.c: Likewise.
25041         * ubsan.c: Likewise.
25042         * value-prof.c: Likewise.
25043         * varasm.c: Likewise.
25044         * varpool.c: Likewise.
25045         * config/arm/arm.c: Likewise.
25046         * config/bfin/bfin.c: Likewise.
25047         * config/c6x/c6x.c: Likewise.
25048         * config/cris/cris.c: Likewise.
25049         * config/darwin-c.c: Likewise.
25050         * config/darwin.c: Likewise.
25051         * config/i386/i386.c: Likewise.
25052         * config/i386/winnt.c: Likewise.
25053         * config/microblaze/microblaze.c: Likewise.
25054         * config/mips/mips.c: Likewise.
25055         * config/rs6000/rs6000.c: Likewise.
25056         * config/rx/rx.c: Likewise.
25057         * config/s390/s390.c: Likewise.
25058         * config/tilegx/mul-tables.c: Likewise.
25060 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
25062         * config/aarch64/aarch64.c, config/alpha/alpha.c,
25063         config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
25064         config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
25065         config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
25066         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
25067         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
25068         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
25069         config/microblaze/microblaze.c, config/mips/mips.c,
25070         config/mmix/mmix.c, config/mn10300/mn10300.c,
25071         config/moxie/moxie.c, config/msp430/msp430.c,
25072         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
25073         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
25074         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
25075         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
25076         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
25077         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
25078         config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
25079         target-def.h include.
25080         * config/ft32/ft32.c: Likewise.  Fix misapplied hunk.
25082 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
25084         * Makefile.in (TARGET_DEF): Add target-insns.def.
25085         (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
25086         (build/gentarget-def.o): New rule.
25087         (genprogrtl): Add target-def.
25088         * target-insns.def, gentarget-def.c: New files.
25089         * target.def: Add targetm.have_* and targetm.gen_* hooks,
25090         based on the contents of target-insns.def.
25091         * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
25092         (HAVE_return, gen_return): Delete.
25093         * target-def.h: Include insn-target-def.h.
25094         * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
25095         instead of direct calls.  Rely on them to do the appropriate assertions.
25096         * function.c (gen_return_pattern): Likewise.  Return an rtx_insn *.
25097         (convert_jumps_to_returns): Use targetm interface instead of
25098         direct calls.
25099         (thread_prologue_and_epilogue_insns): Likewise.
25100         * reorg.c (find_end_label, dbr_schedule): Likewise.
25101         * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
25102         * shrink-wrap.c (convert_to_simple_return): Likewise.
25103         (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
25105 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
25107         * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
25108         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
25109         config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
25110         config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
25111         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
25112         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
25113         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
25114         config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
25115         config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
25116         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
25117         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
25118         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
25119         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
25120         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
25121         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
25122         config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
25123         includes to end.
25125 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
25127         * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
25128         (unbounded_int_hashmap_traits::key_type): Likewise.
25129         * hash-map.h (hash_map): Get the key type from the traits.
25130         * hash-traits.h (default_hash_traits): By default, inherit from the
25131         template parameter.
25132         * alias.c (alias_set_traits): Delete.
25133         (alias_set_entry_d::children): Use alias_set_hash as the first
25134         template parameter.
25135         (record_alias_subset): Update accordingly.
25136         * except.c (tree_hash_traits): Delete.
25137         (type_to_runtime_map): Use tree_hash as the first template parameter.
25138         (init_eh): Update accordingly.
25139         * genmatch.c (capture_id_map_hasher): Delete.
25140         (cid_map_t): Use nofree_string_hash as first template parameter.
25141         * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
25142         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
25143         Use symbol_compare_hash as the first template parameter in
25144         subdivide_hash_map.
25145         * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
25146         (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
25147         template parameter.
25148         * passes.c (pass_registry_hasher): Delete.
25149         (name_to_pass_map): Use nofree_string_hash as the first template
25150         parameter.
25151         (register_pass_name): Update accordingly.
25152         * sanopt.c (sanopt_tree_map_traits): Delete.
25153         (sanopt_tree_triplet_map_traits): Delete.
25154         (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
25155         template parameter.
25156         (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
25157         the first template parameter.
25158         * sese.c (rename_map_hasher): Delete.
25159         (rename_map_type): Use tree_ssa_name_hash as the first template
25160         parameter.
25161         * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
25162         (function_summary::m_map): Use map_hash as the first template
25163         parameter.
25164         (function_summary::release): Update accordingly.
25165         * tree-if-conv.c (phi_args_hash_traits): Delete.
25166         (predicate_scalar_phi): Use tree_operand_hash as the first template
25167         parameter to phi_arg_map.
25168         * tree-inline.h (dependence_hasher): Delete.
25169         (copy_body_data::dependence_map): Use dependence_hash as the first
25170         template parameter.
25171         * tree-inline.c (remap_dependence_clique): Update accordingly.
25172         * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
25173         (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
25174         parameter.
25175         (addr_stridxptr): Update accordingly.
25176         * value-prof.c (profile_id_traits): Delete.
25177         (cgraph_node_map): Use profile_id_hash as the first template
25178         parameter.
25179         (init_node_map): Update accordingly.
25180         * config/alpha/alpha.c (string_traits): Delete.
25181         (machine_function::links): Use nofree_string_hash as the first
25182         template parameter.
25183         (alpha_use_linkage, alpha_write_linkage): Update accordingly.
25184         * config/m32c/m32c.c (pragma_traits): Delete.
25185         (pragma_htab): Use nofree_string_hash as the first template parameter.
25186         (m32c_note_pragma_address): Update accordingly.
25187         * config/mep/mep.c (pragma_traits): Delete.
25188         (pragma_htab): Use nofree_string_hash as the first template parameter.
25189         (mep_note_pragma_flag): Update accordingly.
25190         * config/mips/mips.c (mips16_flip_traits): Delete.
25191         (mflip_mips16_htab): Use nofree_string_hash as the first template
25192         parameter.
25193         (mflip_mips16_use_mips16_p): Update accordingly.
25194         (local_alias_traits): Delete.
25195         (mips16_local_aliases): Use nofree_string_hash as the first template
25196         parameter.
25197         (mips16_local_alias): Update accordingly.
25199 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
25201         * hash-map-traits.h (default_hashmap_traits): Delete.
25203 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
25205         * hash-map-traits.h (unbounded_hashmap_traits): New class.
25206         (unbounded_int_hashmap_traits): Likewise.
25207         * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
25209 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
25211         * ipa-icf.h (symbol_compare_hash): New class.
25212         (symbol_compare_hashmap_traits): Use it.
25213         * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
25214         (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
25215         (mem_alloc_description::reverse_mem_map_t): Remove redundant
25216         default_hashmap_traits.
25217         * sanopt.c (sanopt_tree_triplet_hash): New class.
25218         (sanopt_tree_triplet_map_traits): Use it.
25220 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
25222         * gengtype-parse.c (require_template_declaration): Allow '+' in
25223         template parameters.  Consolidate cases.
25224         * hash-traits.h (int_hash): New class.
25225         * alias.c (alias_set_hash): New structure.
25226         (alias_set_traits): Use it.
25227         * symbol-summary.h (function_summary::map_hash): New class.
25228         (function_summary::summary_hashmap_traits): Use it.
25229         * tree-inline.h (dependence_hash): New class.
25230         (dependence_hasher): Use it.
25231         * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
25232         * value-prof.c (profile_id_hash): New class.
25233         (profile_id_traits): Use it.
25235 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
25237         * config/mips/mips.c (mips16_flip_traits): Use it.
25238         (local_alias_traits, mips16_local_aliases): Convert from a map of
25239         rtxes to a map of symbol names.
25240         (mips16_local_alias): Update accordingly.
25242 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
25244         * hash-traits.h (string_hash, nofree_string_hash): New classes.
25245         * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
25246         * passes.c (pass_registry_hasher): Likewise.
25247         * config/alpha/alpha.c (string_traits): Likewise.
25248         * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
25249         * config/m32c/m32c.c (pragma_traits): Likewise.
25250         * config/mep/mep.c (pragma_traits): Likewise.
25252 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
25254         * tree-hash-traits.h (tree_hash): New class.
25255         * except.c: Include tree-hash-traits.h.
25256         (tree_hash_traits): Use tree_hash.
25258 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
25260         * tree-hash-traits.h (tree_ssa_name_hasher): New class.
25261         * sese.c: Include tree-hash-traits.h.
25262         (rename_map_hasher): Use tree_ssa_name_hasher.
25264 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
25266         * tree-hash-traits.h (tree_decl_hash): New class.
25267         * tree-ssa-strlen.c: Include tree-hash-traits.h.
25268         (stridxlist_hash_traits): Use tree_decl_hash.
25270 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
25272         * tree-hash-traits.h: New file.
25273         (tree_operand_hash): New class.
25274         * sanopt.c: Include tree-hash-traits.h.
25275         (sanopt_tree_map_traits): Use tree_operand_hash.
25276         * tree-if-conv.c: Include tree-hash-traits.h.
25277         (phi_args_hash_traits): Use tree_operand_hash.
25278         * tree-ssa-uncprop.c: Include tree-hash-traits.h.
25279         (val_ssa_equiv_hash_traits): Use tree_operand_hash.
25281 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
25283         * hash-map-traits.h: Include hash-traits.h.
25284         (simple_hashmap_traits): New class.
25285         * mem-stats.h (hash_map): Change the default traits to
25286         simple_hashmap_traits<default_hash_traits<Key> >.
25288 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
25290         * hash-table.h: Update comments.
25292 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
25294         * hash-traits.h (default_hash_traits): New structure.
25295         * hash-set.h (default_hashset_traits): Delete.
25296         (hash_set): Use default_hash_traits<Key> instead of
25297         default_hashset_traits.  Delete hash_entry type and use Key directly.
25298         * ipa-devirt.c (pair_traits): Delete.
25299         (default_hash_traits <type_pair>): Override.
25300         (odr_subtypes_equivalent_p): Remove pair_types template parameter.
25301         (odr_types_equivalent_p, add_type_duplicate): Likewise.
25303 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
25305         * hash-traits.h (typed_noop_remove): Don't require a pointer type.
25307 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
25309         * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
25310         (has_is_empty, is_empty_helper): Delete.
25311         (has_mark_deleted, mark_deleted_helper): Delete.
25312         (has_mark_empty, mark_empty_helper): Delete.
25313         (hash_table::is_deleted): Call the Descriptor unconditionally.
25314         (hash_table::is_empty): Likewise.
25315         (hash_table::mark_deleted): Likewise.
25316         (hash_table::mark_empty): Likewise.
25318 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
25320         * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash.  Remove
25321         redundant typedefs and members.
25322         * coverage.c (counts_entry): Inherit from pointer_hash.  Remove
25323         redundant typedefs.
25324         * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
25325         * ipa-devirt.c (odr_name_hasher): Likewise.
25326         (polymorphic_call_target_hasher): Likewise.
25327         * ira-costs.c (cost_classes_hasher): Likewise.
25328         * statistics.c (stats_counter_hasher): Likewise.
25329         * trans-mem.c (log_entry_hasher): Likewise.
25330         * tree-ssa-dom.c (expr_elt_hasher): Likewise.
25331         * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
25332         * tree-ssa-tail-merge.c (same_succ_def): Likewise.
25333         * var-tracking.c (variable_hasher): Likewise.
25334         * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
25335         Remove redundant typedefs and members.
25337 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
25339         * hash-traits.h (ggc_cache_hasher): Rename to...
25340         (ggc_cache_remove): ...this and remove typedefs.
25341         (ggc_cache_ptr_hash): New class.
25342         * hash-table.h: Update commentary.
25343         * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
25344         rather than ggc_cache_hasher.
25345         (const_wide_int_hasher, reg_attr_hasher): Likewise.
25346         (const_double_hasher, const_fixed_hasher): Likewise.
25347         * function.c (insn_cache_hasher): Likewise.
25348         * trans-mem.c (tm_wrapper_hasher): Likewise.
25349         * tree.h (tree_decl_map_cache_hasher): Likewise.
25350         * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
25351         (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
25352         * ubsan.c (tree_type_map_cache_hasher): Likewise.
25353         * varasm.c (tm_clone_hasher): Likewise.
25354         * config/i386/i386.c (dllimport_hasher): Likewise.
25355         * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
25356         (tree_hasher): Likewise.
25358 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
25360         * hash-traits.h (ggc_hasher): Rename to...
25361         (ggc_remover): ...this and remove typedefs.
25362         (ggc_cache_hasher): Update accordingly.  Add typedefs.
25363         (ggc_ptr_hash): New class.
25364         * hash-table.h: Update comment.
25365         * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
25366         ggc_hasher.
25367         * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
25368         (tree_descriptor_hasher): Likewise.
25369         * cgraph.c (function_version_hasher): Likewise.
25370         * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
25371         (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
25372         (dw_loc_list_hasher, addr_hasher): Likewise.
25373         * function.h (used_type_hasher): Likewise.
25374         * function.c (temp_address_hasher): Likewise.
25375         * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
25376         * libfuncs.h (libfunc_hasher): Likewise.
25377         * lto-streamer.h (decl_state_hasher): Likewise.
25378         * optabs.c (libfunc_decl_hasher): Likewise.
25379         * tree-scalar-evolution.c (scev_info_hasher): Likewise.
25380         * varasm.c (section_hasher, object_block_hasher): Likewise.
25381         (const_rtx_desc_hasher): Likewise.
25382         * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
25383         * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
25385 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
25387         * hash-traits.h (free_ptr_hash): New class.
25388         * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
25389         rather than typed_free_remove.  Remove redudant typedefs.
25390         (external_ref_hasher): Likewise.
25391         * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
25392         (ehspec_hasher): Likewise.
25393         * ggc-common.c (saving_hasher): Likewise.
25394         * gimplify.c (gimplify_hasher): Likewise.
25395         * haifa-sched.c (delay_i2_hasher): Likewise.
25396         * loop-invariant.c (invariant_expr_hasher): Likewise.
25397         * loop-iv.c (biv_entry_hasher): Likewise.
25398         * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
25399         * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
25400         * tree-cfg.c (locus_discrim_hasher): Likewise.
25401         * tree-eh.c (finally_tree_hasher): Likewise.
25402         * tree-into-ssa.c (var_info_hasher): Likewise.
25403         * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
25404         * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
25405         * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
25406         * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
25407         * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
25408         * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
25409         (shared_bitmap_hasher): Likewise.
25410         * tree-ssa-threadupdate.c (redirection_data): Likewise.
25411         * tree-vectorizer.h (peel_info_hasher): Likewise.
25412         * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
25413         * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
25415 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
25417         * hash-table.h: Update comments.
25418         * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
25419         (nofree_ptr_hash): New class.
25420         * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
25421         than typed_noop_remove.  Remove redudant typedefs.
25422         * attribs.c (attribute_hasher): Likewise.
25423         * cfg.c (bb_copy_hasher): Likewise.
25424         * cselib.c (cselib_hasher): Likewise.
25425         * dse.c (invariant_group_base_hasher): Likewise.
25426         * dwarf2cfi.c (trace_info_hasher): Likewise.
25427         * dwarf2out.c (macinfo_entry_hasher): Likewise.
25428         (comdat_type_hasher, loc_list_hasher): Likewise.
25429         * gcse.c (pre_ldst_expr_hasher): Likewise.
25430         * genmatch.c (id_base): Likewise.
25431         * genrecog.c (test_pattern_hasher): Likewise.
25432         * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
25433         * haifa-sched.c (delay_i1_hasher): Likewise.
25434         * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
25435         * ipa-icf.h (congruence_class_group_hash): Likewise.
25436         * ipa-profile.c (histogram_hash): Likewise.
25437         * ira-color.c (allocno_hard_regs_hasher): Likewise.
25438         * lto-streamer.h (string_slot_hasher): Likewise.
25439         * lto-streamer.c (tree_entry_hasher): Likewise.
25440         * plugin.c (event_hasher): Likewise.
25441         * postreload-gcse.c (expr_hasher): Likewise.
25442         * store-motion.c (st_expr_hasher): Likewise.
25443         * tree-sra.c (uid_decl_hasher): Likewise.
25444         * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
25445         (ssa_name_var_hash): Likewise.
25446         * tree-ssa-live.c (tree_int_map_hasher): Likewise.
25447         * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
25448         * tree-ssa-pre.c (pre_expr_d): Likewise.
25449         * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
25450         * vtable-verify.h (registration_hasher): Likewise.
25451         * vtable-verify.c (vtbl_map_hasher): Likewise.
25452         * config/arm/arm.c (libcall_hasher): Likewise.
25453         * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
25454         * config/ia64/ia64.c (bundle_state_hasher): Likewise.
25455         * config/sol2.c (comdat_entry_hasher): Likewise.
25456         * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
25457         (print_fold_checksum, fold_checksum_tree): Likewise.
25458         (debug_fold_checksum, fold_build1_stat_loc): Likewise.
25459         (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
25460         (fold_build_call_array_loc): Likewise.
25461         * tree-ssa-ccp.c (gimple_htab): Likewise.
25462         * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
25463         rather than pointer_type.
25465 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
25467         * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
25468         (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
25470 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
25472         * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
25473         (ggc_hasher::ggc_mx): Likewise.
25474         (ggc_cache_hasher): Inherit from ggc_hasher.  Remove definitions
25475         that duplicate ggc_hasher ones.
25477 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
25479         * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
25480         (gt_cleare_cache): Check here for deleted and empty entries.
25481         Replace handle_cache_entry with a call to keep_cache_entry.
25482         * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
25483         (ggc_cache_hasher::keep_cache_entry): New function.
25484         * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
25485         (tm_wrapper_hasher::keep_cache_entry): New function.
25486         * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
25487         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
25488         * tree.c (type_cache_hasher::handle_cache_entry): Delete.
25489         (type_cache_hasher::keep_cache_entry): New function.
25490         (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
25491         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
25492         * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
25493         (tree_type_map_cache_hasher::keep_cache_entry): New function.
25494         * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
25495         (tm_clone_hasher::keep_cache_entry): New function.
25496         * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
25497         (dllimport_hasher::keep_cache_entry): New function.
25499 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
25501         * hash-table.h: Include hash-traits.h.
25502         (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
25503         (ggc_cache_hasher): Move to...
25504         * hash-traits.h: ...this new file.
25506 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
25508         * tree-core.h (struct tree_optimization_option): Make opts a pointer to
25509         struct cl_optimization.
25510         * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
25511         * tree.c (make_node_stat): Allocate cl_optimization struct.
25512         (copy_node_stat): Allocate and copy cl_optimization struct.
25514 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
25516         * function.h (struct incoming_args): Move struct.
25517         (pass_by_reference, reference_callee_copied): Remove prototypes.
25518         * emit-rtl.h (struct incoming_args): Relocate struct here.
25519         * calls.h (pass_by_reference, reference_callee_copied): Relocate
25520         prototypes here.
25521         * function.c (pass_by_reference, reference_callee_copied): Move.
25522         * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
25523         * cfgloop.h: Don't include tm.h or hard-reg-set.h.
25524         * ipa-chkp.c: Include calls.h.
25526 2015-06-25  Andrew Macleod  <amacleod@redhat.com>
25528         * alias.h (alias_set_type): Move typedef.
25529         * coretypes.h (alias_set_type): Relocate typedef here.
25530         * rtl.h: Don't include alias.h.
25532 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
25534         * cgraph.h (cgraph_rtl_info): Move to rtl.h
25535         (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
25536         and instance.
25537         * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
25538         * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
25539         doesn't exist.
25540         * calls.c: Include hard-reg-set.h before rtl.h.
25541         * ira.c: Likewise.
25543 2015-06-25  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
25544             Vladimir Makarov  <vmakarov@redhat.com>
25546         * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
25547         Add assert.
25549 2015-06-25  Richard Biener  <rguenther@suse.de>
25551         * fold-const.c (fold_binary_loc): Move simplification of
25552         (X <<>> C1) & C2 ...
25553         * match.pd: ... here.
25555 2015-06-25  Eric Botcazou  <ebotcazou@adacore.com>
25557         * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
25559 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
25561         * match.pd: Add patterns for vec_conds between 1 and 0.
25563 2015-06-25  Richard Biener  <rguenther@suse.de>
25565         * tree-vect-stmts.c (vectorizable_conversion): Do not set
25566         STMT_VINFO_VEC_STMT for SLP.
25567         (vectorizable_store): Likewise.
25568         (vectorizable_load): Likewise.
25569         (vect_transform_stmt): Catch SLP vectorization clobbering
25570         STMT_VINFO_VEC_STMT.
25572 2015-06-25  Richard Biener  <rguenther@suse.de>
25574         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
25575         dumping.
25576         (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
25577         cleanup resulting dead code and parameters.
25578         (vect_transform_slp_perm_load): Adjust.
25580 2015-06-25  Nick Clifton  <nickc@redhat.com>
25582         * config/bfin/bfin.c (bfin_expand_prologue): Set
25583         current_function_static_stack_size if flag_stack_usage_info is set.
25584         * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
25585         * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
25586         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
25587         * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
25589 2015-06-25  Tom de Vries  <tom@codesourcery.com>
25591         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
25592         comment that the generated IV is unsigned.
25594 2015-06-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25596         PR target/29693
25597         * config/arm/arm.c (arm_dbx_register_number): Return
25598         DWARF_FRAME_REGISTERS by default.
25600 2015-06-25  Tom de Vries  <tom@codesourcery.com>
25602         * dominance.c (calculate_dominance_info): Fix verify_dominators call
25603         argument.  Call verify_dominator when reusing dominator info.
25605 2015-06-24  Kaz Kojima  <kkojima@gcc.gnu.org>
25607         PR target/66563
25608         * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
25609         an additional element of the unspec vector.  Modify indices
25610         of operands.
25611         (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
25612         * config/sh/sh.c (prepare_move_operands): Pass incremented
25613         const_int to gen_GOTaddr2picreg.
25614         (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
25616 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
25618         * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
25619         Condition on TARGET_FLOAT.
25621 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
25623         * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
25624         and (no)crypto.
25626 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
25628         * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
25630         * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
25631         aarch64_err_no_fpadvsimd.
25633         * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
25634         (aarch64_layout_arg, aarch64_init_cumulative_args): Use
25635         aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
25636         (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
25637         Turn error into assert, test TARGET_FLOAT.
25638         (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
25639         TARGET_FLOAT.
25641 2015-06-24  Aldy Hernandez  <aldyh@redhat.com>
25643         PR debug/66482
25644         * dwarf2out.c (gen_formal_parameter_die): Remove assert.
25646 2015-06-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
25648         * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
25650 2015-06-24  Renlin Li <renlin.li@arm.com>
25652         * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
25653         __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
25655 2015-06-24  Richard Biener  <rguenther@suse.de>
25657         * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
25658         (main): Likewise.
25659         (lower_opt_convert): Support lowering of conditional view_convert.
25660         (parser::parse_operation): Likewise.
25661         (parser::parse_for): Likewise.
25663 2015-06-24  Renlin Li  <renlin.li@arm.com>
25665         * varasm.c (emit_local): Use unsigned int for align variable.
25667 2015-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25669         PR target/63408
25670         * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
25671         for negative numbers.
25673 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
25675         PR rtl-optimization/66306
25676         * reload.c (find_reloads): Swap the match_dup info for
25677         commutative operands.
25679 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
25681         * config/s390/vx-builtins.md
25682         ("vec_scatter_element<mode>_<non_vec_int>")
25683         ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
25684         attribute with bhfgq.
25686 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
25688         * config/s390/s390-builtins.def: Fix vpopct instruction comments.
25690 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
25692         * config/s390/s390-builtin-types.def: Add flag to indicate the
25693         options under which the function type is needed.
25694         * config/s390/s390-builtins.def: Add flag to indicate the options
25695         under which the builtin is enabled.
25696         * config/s390/s390-builtins.h: Add flags parameter to macro
25697         definitions.
25698         (bflags_for_builtin): New function.
25699         (flags_for_builtin): Renamed to ...
25700         (opflags_for_builtin): ... this.
25701         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
25702         flags_for_builtin to bflags_for_builtin and
25703         flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
25704         * config/s390/s390.c: Add initialization of bflags_builtin and
25705         opflags_builtin arrays.
25706         Remove code for flags_builtin.
25707         (s390_init_builtins): Only create builtin function types if one of
25708         their flags is active.
25709         Only create builtins if all of their flags are active.
25710         (s390_expand_builtin): Rename flags_for_builtin to
25711         opflags_for_builtin.
25713 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
25715         * config/s390/vecintrin.h: Remove internal builtins.
25717 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
25719         * config/s390/s390.c (s390_secondary_reload): Fix check for
25720         GENERAL_REGS register class.
25722 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
25724         * config/s390/s390.c (s390_support_vector_misalignment): Call
25725         default implementation for !TARGET_VX.
25727 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
25729         * config/s390/s390.c (s390_legitimate_constant_p): Add
25730         TARGET_VX check.
25732 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
25734         * config/s390/s390.c (s390_vector_abi): New variable definition.
25735         (s390_check_type_for_vector_abi): New function.
25736         (TARGET_ASM_FILE_END): New macro definition.
25737         (s390_asm_file_end): New function.
25738         (s390_function_arg): Call s390_check_type_for_vector_abi.
25739         (s390_gimplify_va_arg): Likewise.
25740         * configure: Regenerate.
25741         * configure.ac: Check for .gnu_attribute Binutils feature.
25743 2015-06-23  Chen Gang  <gang.chen.5i5j@gmail.com>
25745         PR target/65803
25746         * config/bfin/bfin.c (hwloop_optimize): Initialize
25747         JUMP_LABEL for newly created jump.
25749 2015-06-23  Tristan Gingold  <gingold@adacore.com>
25751         * collect-utils.c (collect_wait): Unlink the response file here
25752         instead of...
25753         (do_wait): ...here.
25754         (utils_cleanup): ...and here.
25756 2015-06-23  Richard Sandiford  <richard.sandiford@arm.com>
25758         * df-scan.c: Don't include target-def.h.
25759         * targhooks.c: Likewise.
25760         * config/arm/arm-c.c: Likewise.
25761         * config/i386/i386-c.c: Likewise.
25762         * config/nds32/nds32-cost.c: Likewise.
25763         * config/nds32/nds32-fp-as-gp.c: Likewise.
25764         * config/nds32/nds32-intrinsic.c: Likewise.
25765         * config/nds32/nds32-isr.c: Likewise.
25766         * config/nds32/nds32-md-auxiliary.c: Likewise.
25767         * config/nds32/nds32-memory-manipulation.c: Likewise.
25768         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
25769         * config/nds32/nds32-predicates.c: Likewise.
25771 2015-06-23  Richard Biener  <rguenther@suse.de>
25773         PR tree-optimization/66636
25774         * tree-vect-stmts.c (vectorizable_store): Properly compute the
25775         def type for further defs for strided stores.
25777 2015-06-23  Nathan Sidwell  <nathan@codesourcery.com>
25779         * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
25780         conditional selects.
25781         (setcc_int<mode>, setcc_float<mode>): Reformat.
25783 2015-06-23  Marek Polacek  <polacek@redhat.com>
25785         * match.pd ((x + y) - (x | y) -> x & y,
25786         (x + y) - (x & y) -> x | y): New patterns.
25788 2015-06-23  Ludovic Courtès  <ludo@gnu.org>
25790         PR 65711
25791         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
25792         '-dynamic-linker' within %{!shared: ...}.
25794 2015-06-23  Uros Bizjak  <ubizjak@gmail.com>
25796         PR target/66560
25797         * config/i386/predicates.md (addsub_vm_operator): New predicate.
25798         (addsub_vs_operator): Ditto.
25799         (addsub_vs_parallel): Ditto.
25800         * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
25801         (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
25802         Put minus RTX before plus and adjust vec_merge selector.
25803         (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
25804         (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
25805         (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
25806         (addsub vec_merge splitters): New combiner splitters.
25807         (addsub vec_select/vec_concat splitters): Ditto.
25809 2015-06-23  Bin Cheng  <bin.cheng@arm.com>
25811         PR tree-optimization/66449
25812         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
25813         POINTER_PLUS_EXPR for pointers.
25815 2015-06-23  Alan Modra  <amodra@gmail.com>
25817         * rtlanal.c (commutative_operand_precedence): Correct comments.
25818         * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
25819         declaration.  Return an int.  Distinguish REG,REG return from
25820         others.
25821         (struct simplify_plus_minus_op_data): Make local to function.
25822         (simplify_plus_minus): Don't set canonicalized if merely sorting
25823         registers.  Avoid packing ops if nothing changes.  White space fixes.
25825 2015-06-22  Pierre-Marie de Rodat  <derodat@adacore.com>
25827         * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
25828         -fdump-ada-spec is passed but not if -fsyntax-only is.
25830 2015-06-22  Vladimir Makarov  <vmakarov@redhat.com>
25832         PR bootstrap/63740
25833         * lra-lives.c (process_bb_lives): Check insn copying the same
25834         reload pseudo and don't create a copy for it.
25836 2015-06-22  Tom de Vries  <tom@codesourcery.com>
25838         * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
25839         for cond_stmt.
25841 2015-06-22  Tom de Vries  <tom@codesourcery.com>
25843         * builtins.def (DEF_GOMP_BUILTIN): Test
25844         'flag_tree_parallelize_loops > 1' instead of
25845         'flag_tree_parallelize_loops'.  Test flag_cilkplus.
25847 2015-06-22  Tom de Vries  <tom@codesourcery.com>
25849         * dominance.c (calculate_dominance_info): Verify dominators if
25850         early-out.
25852 2015-06-22  Marek Polacek  <polacek@redhat.com>
25854         * match.pd ((x ^ y) ^ (x | y) -> x & y,
25855         (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
25856         (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
25857         (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
25859 2015-06-22  Uros Bizjak  <ubizjak@gmail.com>
25861         PR target/65871
25862         * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
25863         cost of embedded comparison.
25865 2015-06-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25867         PR target/65914
25868         * config/rs6000/predicates.md (altivec_register_operand): Permit
25869         virtual stack registers.
25870         (vsx_register_operand): Likewise.
25871         (vfloat_operand): Likewise.
25872         (vint_operand): Likewise.
25873         (vlogical_operand): Likewise.
25875 2015-06-22  Richard Biener  <rguenther@suse.de>
25877         * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
25878         and single_scalar_iteration_cost members.
25879         (LOOP_VINFO_SCALAR_ITERATION_COST): New.
25880         (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
25881         (vect_get_single_scalar_iteration_cost): Remove.
25882         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
25883         Use LOOP_VINFO_SCALAR_ITERATION_COST.
25884         * tree-vect-loop.c (destroy_loop_vec_info): Free
25885         scalar_cost_vec.
25886         (vect_get_single_scalar_iteration_cost): Compute result into
25887         LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
25888         LOOP_VINFO_SCALAR_ITERATION_COST.  Make static.
25889         (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
25890         (vect_estimate_min_profitable_iters): Use them.
25892 2015-06-22  Christian Bruel  <christian.bruel@st.com>
25894         PR target/52144
25895         * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
25896         (TARGET_INSERT_ATTRIBUTES): Define.
25897         (thumb_flipper): New var.
25898         * config/arm/arm.opt (-mflip-thumb): New switch.
25900 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
25901             Martin Liska  <mliska@suse.cz>
25903         PR ipa/65908
25904         * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
25905         construction of arg_types.
25906         (sem_function::sem_function): Likewise.
25907         (sem_function::~sem_function): Remove destruction of arg_types.
25908         (sem_function::compatible_parm_types_p): New function.
25909         (sem_function::equals_wpa): Reorg matching of return values
25910         and parameter types.
25911         (sem_function::equals_private): Reorg mathcing of argument types.
25912         (sem_function::parse_tree_args): Remove.
25913         * ipa-icf.h (init_wpa): Do not call it.
25914         (parse_tree_args): Remove.
25915         (compatible_parm_types_p): Declare.
25916         (result_type): Remove.
25917         (arg_types): Remove.
25919 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
25921         PR ipa/66351
25922         * ipa-polymorphic-call.c
25923         (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
25924         initializing alias oracle; fix formating; set base_alias_set if it
25925         is known.
25927 2015-06-22  Mikhail Maltsev  <maltsevm@gmail.com>
25929         * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
25930         (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
25931         (find_inc): Likewise.
25932         * combine.c (combine_simplify_rtx): Use std::swap instead of manually
25933         swapping.
25934         * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
25935         * df-scan.c (df_swap_refs): Remove.
25936         (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
25937         * dominance.c (link_roots): Use std::swap instead of manually swapping.
25938         * expr.c (expand_expr_real_2, do_store_flag): Likewise.
25939         * fold-const.c (fold_relational_const): Likewise.
25940         * genattrtab.c (simplify_test_exp): Likewise.
25941         * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
25942         gimple_simplify): Likewise.
25943         * ifcvt.c (noce_try_abs, find_if_header): Likewise.
25944         * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
25945         * ipa-devirt.c (add_type_duplicate): Likewise.
25946         * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
25947         * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
25948         * lra.c (lra_create_copy): Likewise.
25949         * lto-streamer-out.c (DFS::DFS): Likewise.
25950         * modulo-sched.c (get_sched_window): Likewise.
25951         * omega.c (omega_pretty_print_problem): Likewise.
25952         * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
25953         * reload1.c (reloads_unique_chain_p): Likewise.
25954         * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
25955         (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
25956         use std::swap.
25957         * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
25958         manually swapping.
25959         * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
25960         predicate_mem_writes): Likewise.
25961         * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
25962         * tree-predcom.c (combine_chains): Likewise.
25963         * tree-ssa-alias.c (nonoverlapping_component_refs_p,
25964         refs_may_alias_p_1): Likewise.
25965         * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
25966         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
25967         * tree-ssa-loop-niter.c (refine_bounds_using_guard,
25968         number_of_iterations_cond): Likewise.
25969         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
25970         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
25971         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
25972         * tree-vect-stmts.c (supportable_widening_operation): Likewise.
25973         * tree-vrp.c (extract_range_from_binary_expr_1,
25974         extract_range_from_unary_expr_1): Likewise.
25976 2015-06-20  Marek Polacek  <polacek@redhat.com>
25978         * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
25980 2015-06-19  Kaz Kojima  <kkojima@gcc.gnu.org>
25982         PR target/66591
25983         * config/sh/sh.c (prepare_move_operands): Replace subreg
25984         index term with R0 for base and index addressing.
25986 2015-06-19  Jim Wilson  <jim.wilson@linaro.org>
25988         * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
25989         op1 is an fp zero.
25990         (movsf_aarch64): Change condition from register_operand to
25991         aarch64_reg_or_fp_zero for op1.  Change type for alternative 6 to
25992         load1.  Change type for alternative 7 to store1.
25993         (movdf_aarch64): Likewise.
25995 2015-06-19  James Greenhalgh  <james.greenhalgh@arm.com>
25997         * config/vax/vax.md: Adjust sign/zero extend patterns to
25998         handle SUBREGs in operands[1].
26000 2015-06-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26002         * config/i386/i386.c (ix86_function_versions): Use std::swap instead
26003         of manually swapping.
26004         (expand_vec_perm_interleave2): Likewise.
26006 2015-06-19  Ilya Enkovich  <enkovich.gnu@gmail.com>
26008         * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
26009         reuse bounds created for abnormal ssa names.
26011 2015-06-19  Jakub Jelinek  <jakub@redhat.com>
26013         * config/nvptx/nvptx.md (allocate_stack): Rename to...
26014         (allocate_stack_<mode>): ... this, and add :P on both
26015         match_operand and unspec.
26016         (allocate_stack): New expander.
26018 2015-06-19  Christian Bruel  <christian.bruel@st.com>
26020         PR target/66541
26021         PR target/52144
26022         * config/arm/arm.c (arm_set_current_function): Handle
26023         explicit default options.
26025 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
26027         * config/i386/i386.md (*movsicc_noc_zext): New insn.
26028         (zero-extended cmove with mem peephole2): New pattern.
26029         (cmove with mem peephole2): Merge patterns.
26031 2015-06-18  Segher Boessenkool  <segher@kernel.crashing.org>
26033         * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
26035 2015-06-18  Steve Ellcey  <sellcey@imgtec.com>
26037         * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
26038         * config/mips/mips.md (*madd4<mode>): Ditto.
26039         (*nmadd3<mode>) Ditto.
26040         (*nmadd4<mode>_fastmath): Ditto.
26041         (*nmadd3<mode>_fastmath): Ditto.
26042         (*nmsub4<mode>): Ditto.
26043         (*nmsub3<mode>): Ditto.
26044         (*nmsub4<mode>_fastmath): Ditto.
26045         (*nmsub3<mode>_fastmath): Ditto.
26047 2015-06-18  Michael Matz  <matz@suse.de>
26049         PR middle-end/66253
26050         * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
26051         grouped strided stores.
26052         (vectorizable_load): Don't use the DR from first_stmt in
26053         the non-SLP grouped strided case.
26055 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
26057         PR target/66569
26058         * function.c (assign_bounds): Add arguments assign_regs,
26059         assign_special, assign_bt.
26060         (assign_parms): For vararg functions handle bounds in BT
26061         and special slots after incoming vararg bounds.
26063 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
26065         PR middle-end/66568
26066         * cfgexpand.c (expand_return): Handle missing bounds.
26067         (expand_gimple_stmt_1): Likewise.
26068         * tree-chkp.c (chkp_expand_zero_bounds): New.
26069         * tree-chkp.h (chkp_expand_zero_bounds): New.
26071 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
26073         PR middle-end/66567
26074         * ipa-chkp.c (chkp_maybe_create_clone): Require
26075         functions to be instrumentable.
26076         * tree-chkp.c (chkp_replace_function_pointer): Use
26077         chkp_instrumentable_p instead of attribute check.
26079 2015-06-18  Richard Biener  <rguenther@suse.de>
26081         PR tree-optimization/66510
26082         * tree-vect-stmts.c (vectorizable_load): Properly compute the
26083         number of vector loads for SLP permuted loads.
26084         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
26085         check the stride for loop vectorization.
26086         (vect_enhance_data_refs_alignment): Deal with SLP adjusted
26087         vectorization factor.
26088         (vect_analyze_group_access): If the group size is not a power
26089         of two require a epilogue loop.
26090         * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
26091         compute and optimizing and alias test pruning after final
26092         vectorization factor computation.
26093         * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
26094         vector alignment.
26095         (vect_transform_slp_perm_load): Properly compute the original
26096         number of vector load stmts.
26098 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
26100         * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
26101         "unlikely character , in @var" warning.
26103 2015-06-17  Uros Bizjak  <ubizjak@gmail.com>
26105         * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
26106         (ix86_function_arg_advance): Ditto.
26107         (ix86_pass_by_reference): Ditto.  Rewrite MS_ABI part.
26109 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
26111         * function.h (struct rtl_data): Remove struct and accessor macros.
26112         * emit-rtl.h (struct rtl_data): Relocate to here.
26113         * Makefile.in (GTFILES): Add emit-rtl.h.
26114         * df-core.c: Include emit-rtl.h.
26115         * genattrtab.c: Likewise.
26116         * genconditions.c: Likewise.
26117         * genpreds.c: Likewise.
26118         * genrecog.c: Likewise.
26119         * regcprop.c: Likewise.
26120         * resource.c: Likewise.
26121         * sched-rgn.c: Likewise.
26122         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
26123         * config/i386/winnt.c: Likewise.
26125 2015-06-17  Jakub Jelinek  <jakub@redhat.com>
26127         PR middle-end/66429
26128         * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
26129         instead of DECL_STRUCT_FUNCTION (child_fn).  Or in has_simduid_loops
26130         and has_force_vectorize_loops flags from cfun into
26131         child_cfun.
26132         (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
26133         if simduid is non-NULL.
26134         * tree-pass.h (make_pass_simduid_cleanup): New prototype.
26135         * passes.def (pass_simduid_cleanup): Add new pass after loop
26136         passes.
26137         * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
26138         indirection from htab argument's type.
26139         (shrink_simd_arrays): New function.
26140         (vectorize_loops): Use it.  Adjust adjust_simduid_builtins caller.
26141         Don't call adjust_simduid_builtins if there are no loops.
26142         (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
26143         (pass_simduid_cleanup::execute): New method.
26144         (make_pass_simduid_cleanup): New function.
26146 2017-06-17  Andrew MacLeod  <amacleod@redhat.com>
26148         * tree-core.h (tree_target_option): Make opts field a pointer to a
26149         cl_target_option instead of an instance of the struct.
26150         * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
26151         the structure.
26152         * tree.c (make_node_stat ): Allocate a cl_target_option struct for
26153         TARGET_OPTION_NODE.
26154         (copy_node_stat): Allocate and copy struct cl_target_option.
26156 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
26158         * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
26159         Remove conditional exposure of prototypes.
26160         (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
26161         * tree.c (anon_aggrname_format, anon_aggrname_p): New.  Replace macro
26162         definitions in tree.h with functions.
26163         * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
26164         anon_aggrname_p.
26165         * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
26167 2015-06-17  Segher Boessenkool  <segher@kernel.crashing.org>
26169         * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
26170         (*cmp<mode>_signed): ... this.
26171         (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
26172         (*cmp<mode>_unsigned): ... this.  Remove %b.
26174 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
26176         * coretypes.h: Include input.h and as-a.h.
26177         * rtl.h: Include input.h and as-a.h for generator files.
26178         * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
26179         * vec.c: Don't include diagnostic-core.h.
26180         * alias.c: Do not include input.h, line-map.h or is-a.h.
26181         * asan.c: Likewise.
26182         * attribs.c: Likewise.
26183         * auto-inc-dec.c: Likewise.
26184         * auto-profile.c: Likewise.
26185         * bb-reorder.c: Likewise.
26186         * bt-load.c: Likewise.
26187         * builtins.c: Likewise.
26188         * caller-save.c: Likewise.
26189         * calls.c: Likewise.
26190         * ccmp.c: Likewise.
26191         * cfg.c: Likewise.
26192         * cfganal.c: Likewise.
26193         * cfgbuild.c: Likewise.
26194         * cfgcleanup.c: Likewise.
26195         * cfgexpand.c: Likewise.
26196         * cfghooks.c: Likewise.
26197         * cfgloop.c: Likewise.
26198         * cfgloop.h: Likewise.
26199         * cfgloopanal.c: Likewise.
26200         * cfgloopmanip.c: Likewise.
26201         * cfgrtl.c: Likewise.
26202         * cgraph.c: Likewise.
26203         * cgraphbuild.c: Likewise.
26204         * cgraphclones.c: Likewise.
26205         * cgraphunit.c: Likewise.
26206         * cilk-common.c: Likewise.
26207         * combine-stack-adj.c: Likewise.
26208         * combine.c: Likewise.
26209         * compare-elim.c: Likewise.
26210         * convert.c: Likewise.
26211         * coverage.c: Likewise.
26212         * cppbuiltin.c: Likewise.
26213         * cprop.c: Likewise.
26214         * cse.c: Likewise.
26215         * cselib.c: Likewise.
26216         * data-streamer-in.c: Likewise.
26217         * data-streamer-out.c: Likewise.
26218         * data-streamer.c: Likewise.
26219         * dbxout.c: Likewise.
26220         * dce.c: Likewise.
26221         * ddg.c: Likewise.
26222         * debug.c: Likewise.
26223         * df-core.c: Likewise.
26224         * df-problems.c: Likewise.
26225         * df-scan.c: Likewise.
26226         * df.h: Likewise.
26227         * dfp.c: Likewise.
26228         * diagnostic-core.h: Likewise.
26229         * diagnostic.c: Likewise.
26230         * dojump.c: Likewise.
26231         * dominance.c: Likewise.
26232         * domwalk.c: Likewise.
26233         * double-int.c: Likewise.
26234         * dse.c: Likewise.
26235         * dumpfile.c: Likewise.
26236         * dumpfile.h: Likewise.
26237         * dwarf2asm.c: Likewise.
26238         * dwarf2cfi.c: Likewise.
26239         * dwarf2out.c: Likewise.
26240         * emit-rtl.c: Likewise.
26241         * et-forest.c: Likewise.
26242         * except.c: Likewise.
26243         * explow.c: Likewise.
26244         * expmed.c: Likewise.
26245         * expr.c: Likewise.
26246         * final.c: Likewise.
26247         * fixed-value.c: Likewise.
26248         * fold-const.c: Likewise.
26249         * function.c: Likewise.
26250         * fwprop.c: Likewise.
26251         * gcc-plugin.h: Likewise.
26252         * gcse.c: Likewise.
26253         * generic-match-head.c: Likewise.
26254         * ggc-page.c: Likewise.
26255         * gimple-builder.c: Likewise.
26256         * gimple-expr.c: Likewise.
26257         * gimple-fold.c: Likewise.
26258         * gimple-iterator.c: Likewise.
26259         * gimple-low.c: Likewise.
26260         * gimple-match-head.c: Likewise.
26261         * gimple-pretty-print.c: Likewise.
26262         * gimple-ssa-isolate-paths.c: Likewise.
26263         * gimple-ssa-strength-reduction.c: Likewise.
26264         * gimple-streamer-in.c: Likewise.
26265         * gimple-streamer-out.c: Likewise.
26266         * gimple-streamer.h: Likewise.
26267         * gimple-walk.c: Likewise.
26268         * gimple.c: Likewise.
26269         * gimplify-me.c: Likewise.
26270         * gimplify.c: Likewise.
26271         * godump.c: Likewise.
26272         * graph.c: Likewise.
26273         * graphite-blocking.c: Likewise.
26274         * graphite-dependences.c: Likewise.
26275         * graphite-interchange.c: Likewise.
26276         * graphite-isl-ast-to-gimple.c: Likewise.
26277         * graphite-optimize-isl.c: Likewise.
26278         * graphite-poly.c: Likewise.
26279         * graphite-scop-detection.c: Likewise.
26280         * graphite-sese-to-poly.c: Likewise.
26281         * graphite.c: Likewise.
26282         * haifa-sched.c: Likewise.
26283         * hw-doloop.c: Likewise.
26284         * ifcvt.c: Likewise.
26285         * init-regs.c: Likewise.
26286         * input.c: Likewise.
26287         * internal-fn.c: Likewise.
26288         * ipa-chkp.c: Likewise.
26289         * ipa-comdats.c: Likewise.
26290         * ipa-cp.c: Likewise.
26291         * ipa-devirt.c: Likewise.
26292         * ipa-icf-gimple.c: Likewise.
26293         * ipa-icf.c: Likewise.
26294         * ipa-inline-analysis.c: Likewise.
26295         * ipa-inline-transform.c: Likewise.
26296         * ipa-inline.c: Likewise.
26297         * ipa-polymorphic-call.c: Likewise.
26298         * ipa-profile.c: Likewise.
26299         * ipa-prop.c: Likewise.
26300         * ipa-pure-const.c: Likewise.
26301         * ipa-ref.c: Likewise.
26302         * ipa-reference.c: Likewise.
26303         * ipa-split.c: Likewise.
26304         * ipa-utils.c: Likewise.
26305         * ipa-visibility.c: Likewise.
26306         * ipa.c: Likewise.
26307         * ira-build.c: Likewise.
26308         * ira-color.c: Likewise.
26309         * ira-conflicts.c: Likewise.
26310         * ira-costs.c: Likewise.
26311         * ira-emit.c: Likewise.
26312         * ira-lives.c: Likewise.
26313         * ira.c: Likewise.
26314         * jump.c: Likewise.
26315         * langhooks.c: Likewise.
26316         * lcm.c: Likewise.
26317         * loop-doloop.c: Likewise.
26318         * loop-init.c: Likewise.
26319         * loop-invariant.c: Likewise.
26320         * loop-iv.c: Likewise.
26321         * loop-unroll.c: Likewise.
26322         * lower-subreg.c: Likewise.
26323         * lra-assigns.c: Likewise.
26324         * lra-coalesce.c: Likewise.
26325         * lra-constraints.c: Likewise.
26326         * lra-eliminations.c: Likewise.
26327         * lra-lives.c: Likewise.
26328         * lra-remat.c: Likewise.
26329         * lra-spills.c: Likewise.
26330         * lra.c: Likewise.
26331         * lto-cgraph.c: Likewise.
26332         * lto-compress.c: Likewise.
26333         * lto-opts.c: Likewise.
26334         * lto-section-in.c: Likewise.
26335         * lto-section-out.c: Likewise.
26336         * lto-streamer-in.c: Likewise.
26337         * lto-streamer-out.c: Likewise.
26338         * lto-streamer.c: Likewise.
26339         * mcf.c: Likewise.
26340         * mode-switching.c: Likewise.
26341         * modulo-sched.c: Likewise.
26342         * omega.c: Likewise.
26343         * omp-low.c: Likewise.
26344         * optabs.c: Likewise.
26345         * opts-global.c: Likewise.
26346         * opts.h: Likewise.
26347         * passes.c: Likewise.
26348         * plugin.c: Likewise.
26349         * postreload-gcse.c: Likewise.
26350         * postreload.c: Likewise.
26351         * predict.c: Likewise.
26352         * pretty-print.h: Likewise.
26353         * print-rtl.c: Likewise.
26354         * print-tree.c: Likewise.
26355         * profile.c: Likewise.
26356         * real.c: Likewise.
26357         * realmpfr.c: Likewise.
26358         * recog.c: Likewise.
26359         * ree.c: Likewise.
26360         * reg-stack.c: Likewise.
26361         * regcprop.c: Likewise.
26362         * reginfo.c: Likewise.
26363         * regrename.c: Likewise.
26364         * regstat.c: Likewise.
26365         * reload.c: Likewise.
26366         * reload1.c: Likewise.
26367         * reorg.c: Likewise.
26368         * resource.c: Likewise.
26369         * rtl-chkp.c: Likewise.
26370         * rtl-error.c: Likewise.
26371         * rtlanal.c: Likewise.
26372         * rtlhooks.c: Likewise.
26373         * sanopt.c: Likewise.
26374         * sched-deps.c: Likewise.
26375         * sched-ebb.c: Likewise.
26376         * sched-rgn.c: Likewise.
26377         * sched-vis.c: Likewise.
26378         * sdbout.c: Likewise.
26379         * sel-sched-dump.c: Likewise.
26380         * sel-sched-ir.c: Likewise.
26381         * sel-sched.c: Likewise.
26382         * sese.c: Likewise.
26383         * shrink-wrap.c: Likewise.
26384         * simplify-rtx.c: Likewise.
26385         * stack-ptr-mod.c: Likewise.
26386         * statistics.c: Likewise.
26387         * stmt.c: Likewise.
26388         * stor-layout.c: Likewise.
26389         * store-motion.c: Likewise.
26390         * streamer-hooks.c: Likewise.
26391         * stringpool.c: Likewise.
26392         * symtab.c: Likewise.
26393         * target-globals.c: Likewise.
26394         * targhooks.c: Likewise.
26395         * toplev.c: Likewise.
26396         * tracer.c: Likewise.
26397         * trans-mem.c: Likewise.
26398         * tree-affine.c: Likewise.
26399         * tree-browser.c: Likewise.
26400         * tree-call-cdce.c: Likewise.
26401         * tree-cfg.c: Likewise.
26402         * tree-cfgcleanup.c: Likewise.
26403         * tree-chkp-opt.c: Likewise.
26404         * tree-chkp.c: Likewise.
26405         * tree-chrec.c: Likewise.
26406         * tree-complex.c: Likewise.
26407         * tree-data-ref.c: Likewise.
26408         * tree-dfa.c: Likewise.
26409         * tree-diagnostic.c: Likewise.
26410         * tree-dump.c: Likewise.
26411         * tree-eh.c: Likewise.
26412         * tree-emutls.c: Likewise.
26413         * tree-if-conv.c: Likewise.
26414         * tree-inline.c: Likewise.
26415         * tree-into-ssa.c: Likewise.
26416         * tree-iterator.c: Likewise.
26417         * tree-loop-distribution.c: Likewise.
26418         * tree-nested.c: Likewise.
26419         * tree-nrv.c: Likewise.
26420         * tree-object-size.c: Likewise.
26421         * tree-outof-ssa.c: Likewise.
26422         * tree-parloops.c: Likewise.
26423         * tree-phinodes.c: Likewise.
26424         * tree-predcom.c: Likewise.
26425         * tree-pretty-print.c: Likewise.
26426         * tree-profile.c: Likewise.
26427         * tree-scalar-evolution.c: Likewise.
26428         * tree-sra.c: Likewise.
26429         * tree-ssa-address.c: Likewise.
26430         * tree-ssa-alias.c: Likewise.
26431         * tree-ssa-ccp.c: Likewise.
26432         * tree-ssa-coalesce.c: Likewise.
26433         * tree-ssa-copy.c: Likewise.
26434         * tree-ssa-copyrename.c: Likewise.
26435         * tree-ssa-dce.c: Likewise.
26436         * tree-ssa-dom.c: Likewise.
26437         * tree-ssa-dse.c: Likewise.
26438         * tree-ssa-forwprop.c: Likewise.
26439         * tree-ssa-ifcombine.c: Likewise.
26440         * tree-ssa-live.c: Likewise.
26441         * tree-ssa-loop-ch.c: Likewise.
26442         * tree-ssa-loop-im.c: Likewise.
26443         * tree-ssa-loop-ivcanon.c: Likewise.
26444         * tree-ssa-loop-ivopts.c: Likewise.
26445         * tree-ssa-loop-manip.c: Likewise.
26446         * tree-ssa-loop-niter.c: Likewise.
26447         * tree-ssa-loop-prefetch.c: Likewise.
26448         * tree-ssa-loop-unswitch.c: Likewise.
26449         * tree-ssa-loop.c: Likewise.
26450         * tree-ssa-math-opts.c: Likewise.
26451         * tree-ssa-operands.c: Likewise.
26452         * tree-ssa-phiopt.c: Likewise.
26453         * tree-ssa-phiprop.c: Likewise.
26454         * tree-ssa-pre.c: Likewise.
26455         * tree-ssa-propagate.c: Likewise.
26456         * tree-ssa-reassoc.c: Likewise.
26457         * tree-ssa-sccvn.c: Likewise.
26458         * tree-ssa-scopedtables.c: Likewise.
26459         * tree-ssa-sink.c: Likewise.
26460         * tree-ssa-strlen.c: Likewise.
26461         * tree-ssa-structalias.c: Likewise.
26462         * tree-ssa-tail-merge.c: Likewise.
26463         * tree-ssa-ter.c: Likewise.
26464         * tree-ssa-threadedge.c: Likewise.
26465         * tree-ssa-threadupdate.c: Likewise.
26466         * tree-ssa-uncprop.c: Likewise.
26467         * tree-ssa-uninit.c: Likewise.
26468         * tree-ssa.c: Likewise.
26469         * tree-ssanames.c: Likewise.
26470         * tree-stdarg.c: Likewise.
26471         * tree-streamer-in.c: Likewise.
26472         * tree-streamer-out.c: Likewise.
26473         * tree-streamer.c: Likewise.
26474         * tree-switch-conversion.c: Likewise.
26475         * tree-tailcall.c: Likewise.
26476         * tree-vect-data-refs.c: Likewise.
26477         * tree-vect-generic.c: Likewise.
26478         * tree-vect-loop-manip.c: Likewise.
26479         * tree-vect-loop.c: Likewise.
26480         * tree-vect-patterns.c: Likewise.
26481         * tree-vect-slp.c: Likewise.
26482         * tree-vect-stmts.c: Likewise.
26483         * tree-vectorizer.c: Likewise.
26484         * tree-vrp.c: Likewise.
26485         * tree.c: Likewise.
26486         * tsan.c: Likewise.
26487         * ubsan.c: Likewise.
26488         * valtrack.c: Likewise.
26489         * value-prof.c: Likewise.
26490         * var-tracking.c: Likewise.
26491         * varasm.c: Likewise.
26492         * varpool.c: Likewise.
26493         * vmsdbgout.c: Likewise.
26494         * vtable-verify.c: Likewise.
26495         * web.c: Likewise.
26496         * wide-int.cc: Likewise.
26497         * xcoffout.c: Likewise.
26498         * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
26499         * common/common-targhooks.c: Likewise.
26500         * config/aarch64/aarch64-builtins.c: Likewise.
26501         * config/aarch64/aarch64.c: Likewise.
26502         * config/alpha/alpha.c: Likewise.
26503         * config/arc/arc.c: Likewise.
26504         * config/arm/aarch-common.c: Likewise.
26505         * config/arm/arm-builtins.c: Likewise.
26506         * config/arm/arm-c.c: Likewise.
26507         * config/arm/arm.c: Likewise.
26508         * config/avr/avr-c.c: Likewise.
26509         * config/avr/avr-log.c: Likewise.
26510         * config/avr/avr.c: Likewise.
26511         * config/bfin/bfin.c: Likewise.
26512         * config/c6x/c6x.c: Likewise.
26513         * config/cr16/cr16.c: Likewise.
26514         * config/cris/cris.c: Likewise.
26515         * config/darwin-c.c: Likewise.
26516         * config/darwin.c: Likewise.
26517         * config/default-c.c: Likewise.
26518         * config/epiphany/epiphany.c: Likewise.
26519         * config/epiphany/mode-switch-use.c: Likewise.
26520         * config/epiphany/resolve-sw-modes.c: Likewise.
26521         * config/fr30/fr30.c: Likewise.
26522         * config/frv/frv.c: Likewise.
26523         * config/ft32/ft32.c: Likewise.
26524         * config/glibc-c.c: Likewise.
26525         * config/h8300/h8300.c: Likewise.
26526         * config/i386/i386-c.c: Likewise.
26527         * config/i386/i386.c: Likewise.
26528         * config/i386/msformat-c.c: Likewise.
26529         * config/i386/winnt-cxx.c: Likewise.
26530         * config/i386/winnt-stubs.c: Likewise.
26531         * config/i386/winnt.c: Likewise.
26532         * config/ia64/ia64-c.c: Likewise.
26533         * config/ia64/ia64.c: Likewise.
26534         * config/iq2000/iq2000.c: Likewise.
26535         * config/lm32/lm32.c: Likewise.
26536         * config/m32c/m32c-pragma.c: Likewise.
26537         * config/m32c/m32c.c: Likewise.
26538         * config/m32r/m32r.c: Likewise.
26539         * config/m68k/m68k.c: Likewise.
26540         * config/mcore/mcore.c: Likewise.
26541         * config/mep/mep-pragma.c: Likewise.
26542         * config/mep/mep.c: Likewise.
26543         * config/microblaze/microblaze-c.c: Likewise.
26544         * config/microblaze/microblaze.c: Likewise.
26545         * config/mips/mips.c: Likewise.
26546         * config/mmix/mmix.c: Likewise.
26547         * config/mn10300/mn10300.c: Likewise.
26548         * config/moxie/moxie.c: Likewise.
26549         * config/msp430/msp430-c.c: Likewise.
26550         * config/msp430/msp430.c: Likewise.
26551         * config/nds32/nds32-cost.c: Likewise.
26552         * config/nds32/nds32-fp-as-gp.c: Likewise.
26553         * config/nds32/nds32-intrinsic.c: Likewise.
26554         * config/nds32/nds32-isr.c: Likewise.
26555         * config/nds32/nds32-md-auxiliary.c: Likewise.
26556         * config/nds32/nds32-memory-manipulation.c: Likewise.
26557         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
26558         * config/nds32/nds32-predicates.c: Likewise.
26559         * config/nds32/nds32.c: Likewise.
26560         * config/nios2/nios2.c: Likewise.
26561         * config/nvptx/nvptx.c: Likewise.
26562         * config/pa/pa.c: Likewise.
26563         * config/pdp11/pdp11.c: Likewise.
26564         * config/rl78/rl78-c.c: Likewise.
26565         * config/rl78/rl78.c: Likewise.
26566         * config/rs6000/rs6000-c.c: Likewise.
26567         * config/rs6000/rs6000.c: Likewise.
26568         * config/rx/rx.c: Likewise.
26569         * config/s390/s390-c.c: Likewise.
26570         * config/s390/s390.c: Likewise.
26571         * config/sh/sh-c.c: Likewise.
26572         * config/sh/sh-mem.cc: Likewise.
26573         * config/sh/sh.c: Likewise.
26574         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
26575         * config/sh/sh_treg_combine.cc: Likewise.
26576         * config/sol2-c.c: Likewise.
26577         * config/sol2-cxx.c: Likewise.
26578         * config/sol2-stubs.c: Likewise.
26579         * config/sol2.c: Likewise.
26580         * config/sparc/sparc-c.c: Likewise.
26581         * config/sparc/sparc.c: Likewise.
26582         * config/spu/spu-c.c: Likewise.
26583         * config/spu/spu.c: Likewise.
26584         * config/stormy16/stormy16.c: Likewise.
26585         * config/tilegx/mul-tables.c: Likewise.
26586         * config/tilegx/tilegx-c.c: Likewise.
26587         * config/tilegx/tilegx.c: Likewise.
26588         * config/tilepro/mul-tables.c: Likewise.
26589         * config/tilepro/tilepro-c.c: Likewise.
26590         * config/tilepro/tilepro.c: Likewise.
26591         * config/v850/v850-c.c: Likewise.
26592         * config/v850/v850.c: Likewise.
26593         * config/vax/vax.c: Likewise.
26594         * config/visium/visium.c: Likewise.
26595         * config/vms/vms-c.c: Likewise.
26596         * config/vms/vms.c: Likewise.
26597         * config/vxworks.c: Likewise.
26598         * config/winnt-c.c: Likewise.
26599         * config/xtensa/xtensa.c: Likewise.
26601 2015-06-17  Robert Suchanek  <robert.suchanek@imgtec.com>
26603         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
26604         function.
26605         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
26607 2015-06-17  Richard Biener  <rguenther@suse.de>
26609         PR tree-optimization/66251
26610         * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
26611         stmts for SLP strided stores.
26613         Revert
26614         2015-05-22  Richard Biener  <rguenther@suse.de>
26616         PR tree-optimization/66251
26617         * tree-vect-stmts.c (vectorizable_conversion): Properly
26618         set STMT_VINFO_VEC_STMT even for the SLP case.
26620         2015-05-26  Michael Matz  <matz@suse.de>
26622         PR middle-end/66251
26623         * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
26624         STMT_VINFO_VEC_STMT, also with SLP.
26626 2015-06-16  Uros Bizjak  <ubizjak@gmail.com>
26628         PR target/56766
26629         * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
26630         (*avx_addsubv4df3_1s): Ditto.
26631         (*sse3_addsubv2df3_1): Ditto.
26632         (*sse3_addsubv2df3_1s): Ditto.
26633         (*avx_addsubv8sf3_1): Ditto.
26634         (*avx_addsubv8sf3_1s): Ditto.
26635         (*sse3_addsubv4sf3_1): Ditto.
26636         (*sse3_addsubv4sf3_1s): Ditto.
26638 2015-06-16  Steve Ellcey  <sellcey@imgtec.com>
26640         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
26641         (SYSROOT_SUFFIX_SPEC): Update.
26642         (SYSROOT_HEADERS_SUFFIX_SPEC): New.
26643         (STARTFILE_PREFIX_SPEC): Update.
26644         * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
26645         (MULTILIB_REQUIRED): New.
26646         (MULTILIB_OSDIRNAMES): New.
26647         * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
26648         (MULTILIB_REQUIRED): New.
26649         (MULTILIB_OSDIRNAMES): New.
26651 2015-06-16  Matthew Wahab  <matthew.wahab@arm.com>
26653         * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
26654         * config/aarch64/aarch64-options-extensions.def: Update "fP",
26655         "simd" and "crypto".  Add "lse", "pan", "lor" and "rdma".
26656         * config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
26657         (AARCH64_FL_PAN): New.
26658         (AARCH64_FL_LOR): New.
26659         (AARCH64_FL_RDMA): New.
26660         (AARCH64_FL_FOR_ARCH8_1): New.
26661         * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
26662         -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
26664 2015-06-16  Martin Liska  <mliska@suse.cz>
26666         * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
26667         * hash-table.c (void dump_hash_table_loc_statistics): Add missing
26668         guard.
26670 2015-06-16  Richard Biener  <rguenther@suse.de>
26672         * tree-vect-stmts.c (vectorizable_store): Adjust.
26673         (vectorizable_load): Likewise.
26674         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
26675         Simplify.
26676         (vect_create_data_ref_ptr): Likewise.
26677         (bump_vector_ptr): Adjust.
26679 2015-06-16  Richard Biener  <rguenther@suse.de>
26681         * tree-vect-stmts.c (vectorizable_load): Properly start loads
26682         with the first element if this is grouped loads.
26684 2015-06-16  James Greenhalgh  <james.greenhalgh@arm.com>
26686         * config/arm/arm-protos.h (struct tune_params): Rename
26687         log_op_non_sc to log_op_non_short_circuit, and rename enum
26688         values to expand SC to SHORT_CIRCUIT.
26689         * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
26690         to LOG_OP_NON_SHORT_CIRCUIT.
26691         (arm_fastmul_tune):Likewise
26692         (arm_strongarm_tune): Likewise.
26693         (arm_xscale_tune): Likewise.
26694         (arm_9e_tune): Likewise.
26695         (arm_marvell_pj4_tune): Likewise.
26696         (arm_v6t2_tune): Likewise.
26697         (arm_cortex_tune): Likewise.
26698         (arm_cortex_a8_tune): Likewise.
26699         (arm_cortex_a7_tune): Likewise.
26700         (arm_cortex_a15_tune): Likewise.
26701         (arm_cortex_a53_tune): Likewise.
26702         (arm_cortex_a57_tune): Likewise.
26703         (arm_xgene1_tune): Likewise.
26704         (arm_cortex_a5_tune): Likewise.
26705         (arm_cortex_a9_tune): Likewise.
26706         (arm_cortex_a12_tune): Likewise.
26707         (arm_v7m_tune): Likewise.
26708         (arm_cortex_m7_tune): Likewise.
26709         (arm_v6m_tune): Likewise.
26710         (arm_fa726te_tune): Likewise.
26712 2015-06-15  David Edelsohn  <dje.gcc@gmail.com>
26714         * altivec.md: Delete UNSPEC_VMLADDUHM.
26715         (mulv4si3_p8): New pattern.
26716         (mulv4si3): Use it for POWER8.
26717         (mulv8hi3): Use vmladduhm with zero addend.
26718         (altivec_vmladduhm): Descriptive RTL.
26720 2015-06-15  Jim Wilson  <jim.wilson@linaro.org>
26722         * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
26723         to use neon_move instead of mov_imm.
26724         (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
26725         (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
26727         * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
26728         aarch64_float_const_zero_rtx_p check before TFmode check.
26729         * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
26730         an fp zero.
26731         (movtf_aarch64): Separate ?rY alternative into two.  Adjust assembly
26732         code and attributes to match.  Change condition from register_operand
26733         to aarch64_reg_or_fp_zero for op1.  Change type for ldp from
26734         neon_load1_2reg to load2.  Change type for stp from neon_store1_2reg
26735         to store2.
26737 2015-06-15  Aldy Hernandez  <aldyh@redhat.com>
26739         PR debug/66535
26740         * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
26741         there is no parent.
26743 2015-06-14  Shiva Chen  <shiva0217@gmail.com>
26745         * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
26746         HOST_WIDE_INT parameter.
26748 2015-06-14  Jan Hubicka  <hubicka@ucw.cz>
26750         PR ipa/66181
26751         * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
26752         * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
26753         TYPE_NO_FORCE_BLK.
26754         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
26756 2015-06-14  Richard Sandiford  <richard.sandiford@arm.com>
26758         * rtl.h (classify_insn): Declare.
26759         * emit-rtl.c (classify_insn): Move to...
26760         * rtl.c: ...here and add generator support.
26761         * gensupport.h (get_emit_function, needs_barrier_p): Declare.
26762         * gensupport.c (get_emit_function, needs_barrier_p): New functions.
26763         * genemit.c (gen_emit_seq): New function.
26764         (gen_expand, gen_split): Use it.
26766 2015-06-13  Patrick Palka  <ppalka@gcc.gnu.org>
26768         * tree.c (make_vector_stat): Fix comment to state that the
26769         function returns a VECTOR_CST.
26771 2015-06-13  Richard Sandiford  <richard.sandiford@arm.com>
26773         * gensupport.h (add_implicit_parallel): Declare.
26774         * genrecog.c (add_implicit_parallel): Move to...
26775         * gensupport.c (add_implicit_parallel): ...here.
26776         (process_one_cond_exec): Use it.
26777         * genemit.c (gen_insn): Likewise.
26779 2015-06-13  Iain Sandoe  <iain@codesourcery.com>
26781         PR bootstrap/66448
26782         * passes.c (rest_of_decl_compilation): Do not register globals for
26783         early debug if they are declared in built-ins.
26785 2015-06-12  Aldy Hernandez  <aldyh@redhat.com>
26787         * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
26789 2015-06-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26791         * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
26792         manually swapping.
26793         (noce_try_cmove_arith): Likewise.
26794         (noce_get_alt_condition): Likewise.
26796 2015-06-12  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
26798         * common/config/i386/i386-common.c
26799         (OPTION_MASK_ISA_MWAITX_SET): New.
26800         (ix86_handle_option): Handle mwaitx.
26801         * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
26802         (x86_64-*-*): Likewise.
26803         * config/i386/mwaitxintrin.h: New header.
26804         * config/i386/cpuid.h (bit_MWAITX):  Define.
26805         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
26806         MWAITX support.
26807         * config/i386/i386.opt (mwaitx): New.
26808         * config/i386/i386-builtin-types.def
26809         (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
26810         * config/i386/i386-c.c: Define __MWAITX__ if needed.
26811         * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
26812         (PTA_MWAITX): New.
26813         (ix86_option_override_internal): Handle new option.
26814         (processor_alias_table): Added PTA_MWAITX.
26815         (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
26816         (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
26817         (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
26818         IX86_BUILTIN_MONITORX  built-ins.
26819         * config/i386/i386.h (TARGET_MWAITX): New.
26820         * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
26821         UNSPEC_MONITORX.
26822         (mwaitx):  New pattern.
26823         (monitorx_<mode>): New pattern.
26824         * config/i386/x86intrin.h: Include mwaitxintrin.h.
26825         * doc/extend.texi: Document monitorx and mwaitx builtins.
26826         * doc/invoke.texi: Document -mmwaitx option.
26828 2015-06-12  Uros Bizjak  <ubizjak@gmail.com>
26830         * emit-rtl.c (need_atomic_barrier_p): Mask model with
26831         MEMMODEL_BASE_MASK.  Remove MEMMODEL_SYNC_* cases.
26833 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
26835         * dbxout.c (xcoff_debug_hooks): Provide a function for
26836         register_main_translation_unit hook.
26838 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
26840         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
26841         variants cases from switch.
26842         (rs6000_post_atomic_barrier): Same.
26843         (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
26844         (rs6000_expand_atomic_exchange): Same.
26845         (rs6000_expand_atomic_op): Same.
26846         * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
26847         SYNC variants cases from switch.
26848         (atomic_load): Same.
26849         (atomic_store): Same.
26851 2015-06-11  John David Anglin  <danglin@gcc.gnu.org>
26853         * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
26854         CONST_INT for goto.
26856 2015-06-11  Aldy Hernandez  <aldyh@redhat.com>
26858         PR bootstrap/66448
26859         * dwarf2out.c (check_die): Check for common duplicate attributes.
26860         (add_location_or_const_value_attribute): Do not add duplicate
26861         attributes.
26862         (gen_formal_parameter_die): Do not add DW_AT_artificial the second
26863         time around.
26864         (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
26865         (gen_type_die_with_usage): Call check_die.
26866         (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
26868 2015-06-11  Jason Merrill  <jason@redhat.com>
26870         * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
26871         dies.
26873 2015-06-11  Marek Polacek  <polacek@redhat.com>
26875         * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
26877 2015-06-11  Eric Botcazou  <ebotcazou@adacore.com>
26879         PR bootstrap/66252
26880         * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
26881         * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
26882         (*addx_extend_sp32): Fix pasto.
26883         (*subx_extend): Rename into...
26884         (*subx_extend_sp32): ...this.
26885         (*adddi3_extend_sp32): Add earlyclobber.
26886         (*subdi3_insn_sp32): Likewise.
26887         (*subdi3_extend_sp32): Likewise.
26888         (*and_not_di_sp32): Likewise.
26889         (*or_not_di_sp32): Likewise.
26890         (*xor_not_di_sp32): Likewise.
26891         (*negdi2_sp32): Likewise.
26892         (*one_cmpldi2_sp32): Likewise.
26894 2015-06-11  Pierre-Marie de Rodat  <derodat@adacore.com>
26896         * debug.h (struct gcc_debug_hooks): Add a
26897         register_main_translation_unit hook.
26898         * debug.c (do_nothing_debug_hooks): Provide a function for this
26899         new hook.
26900         * dbxout.c (dbx_debug_hooks): Likewise.
26901         * sdbout.c (sdb_debug_hooks): Likewise.
26902         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
26903         * dwarf2out.c (main_translation_unit): New global variable.
26904         (dwarf2out_register_main_translation_unit): New function
26905         implementing the new hook.
26906         (dwarf2_debug_hooks): Assign
26907         dwarf2out_register_main_translation_unit to this new hook.
26908         (dwarf2out_init): Associate any main translation unit to
26909         comp_unit_die ().
26911 2015-06-11  Marek Polacek  <polacek@redhat.com>
26913         * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
26915 2015-06-11  Marek Polacek  <polacek@redhat.com>
26917         * match.pd: Use single_use throughout.
26919 2015-06-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26921         * config/arm/arm.c (arm_option_params_internal): When optimising
26922         for speed set max_insns_skipped when arm_restrict_it.
26924 2015-06-11  Christian Bruel  <christian.bruel@st.com>
26926         PR target/52144
26927         * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
26928          macros in ...
26929         (arm_cpu_builtins): New function.
26930         (arm_pragma_target_parse): Call arm_cpu_builtins.
26931         * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
26932         (arm_register_target_pragmas): Likewise.
26933         * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
26934          Call arm_register_target_pragmas.
26935         * config/arm/arm-c.c (arm_register_target_pragmas): New function.
26936         (arm_pragma_target_parse): Likewise.
26938 2015-06-10  Kaz Kojima  <kkojima@gcc.gnu.org>
26940         * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
26941         of the second operand.
26943 2015-06-10  Uros Bizjak  <ubizjak@gmail.com>
26945         PR target/66473
26946         * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
26947         to prepare mask operand for AVX512 modes.
26949 2015-06-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
26951         PR target/66474
26952         * doc/md.texi (Machine Constraints): Document that on the PowerPC
26953         if you use a constraint that targets a VSX register, you must use
26954         %x<n> in the template.
26956 2015-06-10  Max Filippov  <jcmvbkbc@gmail.com>
26958         * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
26959         * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
26960         (define_insn "trap"): New definition.
26962 2015-06-10  Richard Biener  <rguenther@suse.de>
26964         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
26965         out from ...
26966         (vect_supported_load_permutation_p): ... here.  Handle
26967         supportable permutations in reductions.
26968         * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
26969         for vectorizing strided group loads.
26971 2015-06-10  Jakub Jelinek  <jakub@redhat.com>
26973         PR target/66470
26974         * config/i386/i386.c (ix86_split_long_move): For collisions
26975         involving direct tls segment refs, move the UNSPEC_TP possibly
26976         wrapped in ZERO_EXTEND out of the address for lea, to each of
26977         the memory loads.
26979 2015-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26981         * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
26982         dmb sy. Adjust tabs.
26984 2015-06-10  Tom de Vries  <tom@codesourcery.com>
26986         * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
26988 2015-06-10  Martin Liska  <mliska@suse.cz>
26990         PR bootstrap/66471
26991         * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
26992         all enum values in mem_alloc_origin.
26993         * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
26994         name.
26995         * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
26996         * bitmap.c (bitmap_register): Likewise.
26997         (dump_bitmap_statistics): Likewise.
26998         * ggc-common.c (dump_ggc_loc_statistics): Likewise.
26999         (ggc_record_overhead): Likewise.
27000         * hash-map.h: Likewise.
27001         * hash-set.h: Likewise.
27002         * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
27003         * hash-table.h: Likewise.
27004         * vec.c (vec_prefix::register_overhead): Likewise.
27005         (vec_prefix::release_overhead): Likewise.
27006         (dump_vec_loc_statistics): Likewise.
27008 2015-06-09  Christian Bruel  <christian.bruel@st.com>
27010         PR target/52144
27011         * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
27012         * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
27013         (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
27014         * config/arm/arm.h (SWITCHABLE_TARGET): Define.
27015         * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
27016         (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
27017         (arm_valid_target_attribute_p): Likewise.
27018         (arm_set_current_function, arm_can_inline_p): Likewise.
27019         (arm_valid_target_attribute_rec): Likewise.
27020         (arm_previous_fndecl): New variable.
27021         (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
27022         (TARGET_CAN_INLINE_P): Define.
27023         (arm_asm_trampoline_template): Emit mode.
27024         (arm_file_start): Don't set unified syntax.
27025         (arm_declare_function_name): Set unified syntax and mode.
27026         (arm_option_override): Init target_option_default_node.
27027         and target_option_current_node.
27028         * config/arm/arm.md (*call_value_symbol): Set mode when possible.
27029         (*call_symbol): Likewise.
27030         * doc/extend.texi: Document ARM/Thumb target attribute.
27031         * doc/invoke.texi: Likewise.
27033 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
27035         Revert:
27036         2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
27037         PR rtl-optimization/64164
27038         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
27039         * tree-ssa-copyrename.c: Removed.
27040         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
27041         -ftree-coalesce-vars.
27042         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
27043         * common.opt (ftree-copyrename): Ignore.
27044         (ftree-coalesce-inlined-vars): Likewise.
27045         * doc/invoke.texi: Remove the ignored options above.
27046         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
27047         * tree-ssa-coalesce.h: ... here.
27048         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
27049         headers required by it.
27050         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
27051         across variables when flag_tree_coalesce_vars.  Check register
27052         use and promoted modes to allow coalescing.  Moved to
27053         tree-ssa-coalesce.c.
27054         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
27055         with its member functions to tree-ssa-coalesce.c.
27056         (var_map_base_init): Likewise.  Renamed to
27057         compute_samebase_partition_bases.
27058         (partition_view_normal): Drop want_bases parameter.
27059         (partition_view_bitmap): Likewise.
27060         * tree-ssa-live.h: Adjust declarations.
27061         * tree-ssa-coalesce.c: Include explow.h.
27062         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
27063         default defs at the entry point.
27064         (dump_part_var_map): New.
27065         (compute_optimized_partition_bases): New, called by...
27066         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
27067         of compute_samebase_partition_bases.  Adjust.
27068         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
27069         * cfgexpand.c (leader_merge): New.
27070         (get_rtl_for_parm_ssa_default_def): New.
27071         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
27072         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
27073         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
27074         redundant MEM attr setting.
27075         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
27076         from...
27077         (expand_one_stack_var): ... this.  New wrapper to check and
27078         skip already expanded SSA partitions.
27079         (record_alignment_for_reg_var): New, factored out of...
27080         (expand_one_var): ... this.
27081         (expand_one_ssa_partition): New.
27082         (adjust_one_expanded_partition_var): New.
27083         (expand_one_register_var): Check and skip already expanded SSA
27084         partitions.
27085         (expand_used_vars): Don't create DECLs for anonymous SSA
27086         names.  Expand all SSA partitions, then adjust all SSA names.
27087         (pass::execute): Replace the loops that set
27088         SA.partition_to_pseudo from partition leaders and cleared
27089         DECL_RTL for multi-location variables, and that which used to
27090         rename vars and set attrs, with one that clears DECL_RTL and
27091         checks that PARMs and RESULTs default_defs match DECL_RTL.
27092         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
27093         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
27094         * explow.c (promote_ssa_mode): New.
27095         * explow.h (promote_ssa_mode): Declare.
27096         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
27097         * function.c: Include cfgexpand.h.
27098         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
27099         (use_register_for_parm_decl): Wrapper for the above to
27100         special-case the result_ptr.
27101         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
27102         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
27103         multiple locations.
27104         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
27105         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
27106         (assign_parm_setup_block): Prefer SSA-assigned location.
27107         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
27108         if stack_parm is NULL.
27109         (assign_parm_setup_stack): Prefer SSA-assigned location.
27110         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
27111         rtl before testing for pointer bounds.  Special-case result_ptr.
27112         (expand_function_start): Maybe reset DECL_RTL of result.
27113         Prefer SSA-assigned location for result and static chain.
27114         Factor out DECL_RESULT and SET_DECL_RTL.
27115         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
27116         anonymous SSA names.  Use promote_ssa_mode.
27117         (get_temp_reg): Likewise.
27118         (remove_ssa_form): Adjust.
27119         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
27120         and get its reg_usage for reg invalidation.
27121         (compute_bb_dataflow): Pass it insn.
27122         (emit_notes_in_bb): Likewise.
27123         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
27124         fail assert on conversion between unsigned types.
27126 2015-06-09  Tom de Vries  <tom@codesourcery.com>
27128         PR tree-optimization/65460
27129         * omp-low.c (expand_omp_target): Set parallelized_function on
27130         cgraph_node for child_fn.
27132 2015-06-09  Tom de Vries  <tom@codesourcery.com>
27134         * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
27135         parallelized_function before add_new_function.
27137 2015-06-09  Andrew MacLeod  <amacleod@redhat.com>
27139         * gcc-plugin.h: Move decls to plugin.h and include it.
27140         * plugin.h: Relocate decls from gcc-plugin.h
27141         * ggc-page.c: Include required header files.
27142         * passes.c: Likewise.
27143         * cgraphunit.c: Likewise.
27145 2015-06-09  Tom de Vries  <tom@codesourcery.com>
27147         * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
27149 2015-06-09  Jason Merrill  <jason@redhat.com>
27151         PR bootstrap/66448
27152         * toplev.c (check_global_declaration): Don't warn about a clone.
27154 2015-06-09  Marek Polacek  <polacek@redhat.com>
27156         PR tree-optimization/66299
27157         * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
27158         ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
27159         patterns.
27161 2015-06-09  Richard Biener  <rguenther@suse.de>
27163         * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
27164         (vect_analyze_slp_instance): Instead do not falsely drop
27165         load permutations.
27167 2015-06-09  Richard Biener  <rguenther@suse.de>
27169         PR middle-end/66423
27170         * match.pd: Handle A % (unsigned)(1 << B).
27172 2015-06-09  Aldy Hernandez  <aldyh@redhat.com>
27174         * varasm.c (output_object_block_htab): Remove.
27175         (output_object_block_compare): New.
27176         (output_object_blocks): Sort named object_blocks before outputting
27177         them.
27179 2015-06-09  Richard Biener  <rguenther@suse.de>
27181         PR tree-optimization/66419
27182         * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
27183         consider GROUP_GAP when detecting a perfect subchain.
27185 2015-06-09  Nick Clifton  <nickc@redhat.com>
27187         * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
27188         place read only data in the .frodata section.
27190 2015-06-09  Shiva Chen  <shiva0217@gmail.com>
27192         * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
27193         (atomic_store<mode>): Likewise.
27195 2015-06-09  Richard Biener  <rguenther@suse.de>
27197         * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
27199 2015-06-09  Richard Biener  <rguenther@suse.de>
27201         PR middle-end/66413
27202         * tree-inline.c (insert_init_debug_bind): Unshare value.
27204 2015-06-09  Richard Biener  <rguenther@suse.de>
27206         PR tree-optimization/66396
27207         * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
27208         Rename virtual operands.
27210 2015-06-09  Tom de Vries  <tom@codesourcery.com>
27212         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
27213         always return false.
27215 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
27217         PR rtl-optimization/64164
27218         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
27219         * tree-ssa-copyrename.c: Removed.
27220         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
27221         -ftree-coalesce-vars.
27222         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
27223         * common.opt (ftree-copyrename): Ignore.
27224         (ftree-coalesce-inlined-vars): Likewise.
27225         * doc/invoke.texi: Remove the ignored options above.
27226         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
27227         * tree-ssa-coalesce.h: ... here.
27228         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
27229         headers required by it.
27230         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
27231         across variables when flag_tree_coalesce_vars.  Check register
27232         use and promoted modes to allow coalescing.  Moved to
27233         tree-ssa-coalesce.c.
27234         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
27235         with its member functions to tree-ssa-coalesce.c.
27236         (var_map_base_init): Likewise.  Renamed to
27237         compute_samebase_partition_bases.
27238         (partition_view_normal): Drop want_bases parameter.
27239         (partition_view_bitmap): Likewise.
27240         * tree-ssa-live.h: Adjust declarations.
27241         * tree-ssa-coalesce.c: Include explow.h.
27242         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
27243         default defs at the entry point.
27244         (dump_part_var_map): New.
27245         (compute_optimized_partition_bases): New, called by...
27246         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
27247         of compute_samebase_partition_bases.  Adjust.
27248         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
27249         * cfgexpand.c (leader_merge): New.
27250         (get_rtl_for_parm_ssa_default_def): New.
27251         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
27252         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
27253         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
27254         redundant MEM attr setting.
27255         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
27256         from...
27257         (expand_one_stack_var): ... this.  New wrapper to check and
27258         skip already expanded SSA partitions.
27259         (record_alignment_for_reg_var): New, factored out of...
27260         (expand_one_var): ... this.
27261         (expand_one_ssa_partition): New.
27262         (adjust_one_expanded_partition_var): New.
27263         (expand_one_register_var): Check and skip already expanded SSA
27264         partitions.
27265         (expand_used_vars): Don't create DECLs for anonymous SSA
27266         names.  Expand all SSA partitions, then adjust all SSA names.
27267         (pass::execute): Replace the loops that set
27268         SA.partition_to_pseudo from partition leaders and cleared
27269         DECL_RTL for multi-location variables, and that which used to
27270         rename vars and set attrs, with one that clears DECL_RTL and
27271         checks that PARMs and RESULTs default_defs match DECL_RTL.
27272         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
27273         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
27274         * explow.c (promote_ssa_mode): New.
27275         * explow.h (promote_ssa_mode): Declare.
27276         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
27277         * function.c: Include cfgexpand.h.
27278         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
27279         (use_register_for_parm_decl): Wrapper for the above to
27280         special-case the result_ptr.
27281         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
27282         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
27283         multiple locations.
27284         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
27285         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
27286         (assign_parm_setup_block): Prefer SSA-assigned location.
27287         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
27288         if stack_parm is NULL.
27289         (assign_parm_setup_stack): Prefer SSA-assigned location.
27290         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
27291         rtl before testing for pointer bounds.  Special-case result_ptr.
27292         (expand_function_start): Maybe reset DECL_RTL of result.
27293         Prefer SSA-assigned location for result and static chain.
27294         Factor out DECL_RESULT and SET_DECL_RTL.
27295         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
27296         anonymous SSA names.  Use promote_ssa_mode.
27297         (get_temp_reg): Likewise.
27298         (remove_ssa_form): Adjust.
27299         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
27300         and get its reg_usage for reg invalidation.
27301         (compute_bb_dataflow): Pass it insn.
27302         (emit_notes_in_bb): Likewise.
27303         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
27304         fail assert on conversion between unsigned types.
27306 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
27308         PR debug/58315
27309         * tree-inline.c (reset_debug_binding): New.
27310         (reset_debug_bindings): Likewise.
27311         (expand_call_inline): Call it.
27313 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
27315         * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
27316         TYPE_STRING_FLAG.
27318 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
27320         * lto-streamer-out.c (lto_output_location): Stream
27321         reserved locations correctly.
27322         * lto-streamer-in.c (lto_output_location): Likewise.
27324 2015-06-08  Andrew MacLeod  <amacleod@redhat.com>
27326         * coretypes.h: Include hash-table.h and hash-set.h for host files.
27327         * ggc.h: Don't include statistics.h>
27328         * hash-map.h: Remove all includes.
27329         * hash-set.h: Likewise.
27330         * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
27331         the include list. Remove <new>.
27332         * inchash.h: Remove all includes.
27333         * mem-stats.h: Likewise.
27334         * vec.h: No special processing for generators or ggc.
27335         * alias.c : Adjust include files.
27336         * alloc-pool.c : Likewise.
27337         * alloc-pool.h : Likewise.
27338         * asan.c : Likewise.
27339         * attribs.c : Likewise.
27340         * auto-inc-dec.c : Likewise.
27341         * auto-profile.c : Likewise.
27342         * bb-reorder.c : Likewise.
27343         * bitmap.c : Likewise.
27344         * bitmap.h : Likewise.
27345         * bt-load.c : Likewise.
27346         * builtins.c : Likewise.
27347         * caller-save.c : Likewise.
27348         * calls.c : Likewise.
27349         * ccmp.c : Likewise.
27350         * cfg.c : Likewise.
27351         * cfganal.c : Likewise.
27352         * cfgbuild.c : Likewise.
27353         * cfgcleanup.c : Likewise.
27354         * cfgexpand.c : Likewise.
27355         * cfghooks.c : Likewise.
27356         * cfgloop.c : Likewise.
27357         * cfgloop.h : Likewise.
27358         * cfgloopanal.c : Likewise.
27359         * cfgloopmanip.c : Likewise.
27360         * cfgrtl.c : Likewise.
27361         * cgraph.c : Likewise.
27362         * cgraphbuild.c : Likewise.
27363         * cgraphclones.c : Likewise.
27364         * cgraphunit.c : Likewise.
27365         * cilk-common.c : Likewise.
27366         * combine-stack-adj.c : Likewise.
27367         * combine.c : Likewise.
27368         * compare-elim.c : Likewise.
27369         * context.c : Likewise.
27370         * convert.c : Likewise.
27371         * coverage.c : Likewise.
27372         * cppbuiltin.c : Likewise.
27373         * cprop.c : Likewise.
27374         * cse.c : Likewise.
27375         * cselib.c : Likewise.
27376         * data-streamer-in.c : Likewise.
27377         * data-streamer-out.c : Likewise.
27378         * data-streamer.c : Likewise.
27379         * data-streamer.h : Likewise.
27380         * dbxout.c : Likewise.
27381         * dce.c : Likewise.
27382         * ddg.c : Likewise.
27383         * debug.c : Likewise.
27384         * df-core.c : Likewise.
27385         * df-problems.c : Likewise.
27386         * df-scan.c : Likewise.
27387         * df.h : Likewise.
27388         * dfp.c : Likewise.
27389         * dojump.c : Likewise.
27390         * dominance.c : Likewise.
27391         * domwalk.c : Likewise.
27392         * double-int.c : Likewise.
27393         * dse.c : Likewise.
27394         * dumpfile.c : Likewise.
27395         * dwarf2asm.c : Likewise.
27396         * dwarf2cfi.c : Likewise.
27397         * dwarf2out.c : Likewise.
27398         * emit-rtl.c : Likewise.
27399         * et-forest.c : Likewise.
27400         * except.c : Likewise.
27401         * except.h : Likewise.
27402         * explow.c : Likewise.
27403         * expmed.c : Likewise.
27404         * expr.c : Likewise.
27405         * final.c : Likewise.
27406         * fixed-value.c : Likewise.
27407         * fold-const.c : Likewise.
27408         * function.c : Likewise.
27409         * fwprop.c : Likewise.
27410         * gcc-plugin.h : Likewise.
27411         * gcc.c : Likewise.
27412         * gcse-common.c : Likewise.
27413         * gcse.c : Likewise.
27414         * genattrtab.c : Likewise.
27415         * genautomata.c : Likewise.
27416         * genconditions.c : Likewise.
27417         * genemit.c : Likewise.
27418         * generic-match-head.c : Likewise.
27419         * genextract.c : Likewise.
27420         * gengtype-state.c : Likewise.
27421         * gengtype.c : Likewise.
27422         * genhooks.c : Likewise.
27423         * genmatch.c : Likewise.
27424         * genmodes.c : Likewise.
27425         * genrecog.c : Likewise.
27426         * gensupport.c : Likewise.
27427         * ggc-common.c : Likewise.
27428         * ggc-internal.h : Likewise.
27429         * ggc-none.c : Likewise.
27430         * ggc-page.c : Likewise.
27431         * gimple-builder.c : Likewise.
27432         * gimple-expr.c : Likewise.
27433         * gimple-fold.c : Likewise.
27434         * gimple-iterator.c : Likewise.
27435         * gimple-low.c : Likewise.
27436         * gimple-match-head.c : Likewise.
27437         * gimple-pretty-print.c : Likewise.
27438         * gimple-ssa-isolate-paths.c : Likewise.
27439         * gimple-ssa-strength-reduction.c : Likewise.
27440         * gimple-ssa.h : Likewise.
27441         * gimple-streamer-in.c : Likewise.
27442         * gimple-streamer-out.c : Likewise.
27443         * gimple-streamer.h : Likewise.
27444         * gimple-walk.c : Likewise.
27445         * gimple.c : Likewise.
27446         * gimplify-me.c : Likewise.
27447         * gimplify.c : Likewise.
27448         * godump.c : Likewise.
27449         * graph.c : Likewise.
27450         * graphds.c : Likewise.
27451         * graphite-blocking.c : Likewise.
27452         * graphite-dependences.c : Likewise.
27453         * graphite-interchange.c : Likewise.
27454         * graphite-isl-ast-to-gimple.c : Likewise.
27455         * graphite-optimize-isl.c : Likewise.
27456         * graphite-poly.c : Likewise.
27457         * graphite-scop-detection.c : Likewise.
27458         * graphite-sese-to-poly.c : Likewise.
27459         * graphite.c : Likewise.
27460         * haifa-sched.c : Likewise.
27461         * hard-reg-set.h : Likewise.
27462         * hw-doloop.c : Likewise.
27463         * ifcvt.c : Likewise.
27464         * inchash.c : Likewise.
27465         * incpath.c : Likewise.
27466         * init-regs.c : Likewise.
27467         * input.c : Likewise.
27468         * internal-fn.c : Likewise.
27469         * ipa-chkp.c : Likewise.
27470         * ipa-comdats.c : Likewise.
27471         * ipa-cp.c : Likewise.
27472         * ipa-devirt.c : Likewise.
27473         * ipa-icf-gimple.c : Likewise.
27474         * ipa-icf.c : Likewise.
27475         * ipa-inline-analysis.c : Likewise.
27476         * ipa-inline-transform.c : Likewise.
27477         * ipa-inline.c : Likewise.
27478         * ipa-polymorphic-call.c : Likewise.
27479         * ipa-profile.c : Likewise.
27480         * ipa-prop.c : Likewise.
27481         * ipa-pure-const.c : Likewise.
27482         * ipa-ref.c : Likewise.
27483         * ipa-reference.c : Likewise.
27484         * ipa-split.c : Likewise.
27485         * ipa-utils.c : Likewise.
27486         * ipa-visibility.c : Likewise.
27487         * ipa.c : Likewise.
27488         * ira-build.c : Likewise.
27489         * ira-color.c : Likewise.
27490         * ira-conflicts.c : Likewise.
27491         * ira-costs.c : Likewise.
27492         * ira-emit.c : Likewise.
27493         * ira-lives.c : Likewise.
27494         * ira.c : Likewise.
27495         * jump.c : Likewise.
27496         * langhooks.c : Likewise.
27497         * lcm.c : Likewise.
27498         * libfuncs.h : Likewise.
27499         * lists.c : Likewise.
27500         * loop-doloop.c : Likewise.
27501         * loop-init.c : Likewise.
27502         * loop-invariant.c : Likewise.
27503         * loop-iv.c : Likewise.
27504         * loop-unroll.c : Likewise.
27505         * lower-subreg.c : Likewise.
27506         * lra-assigns.c : Likewise.
27507         * lra-coalesce.c : Likewise.
27508         * lra-constraints.c : Likewise.
27509         * lra-eliminations.c : Likewise.
27510         * lra-lives.c : Likewise.
27511         * lra-remat.c : Likewise.
27512         * lra-spills.c : Likewise.
27513         * lra.c : Likewise.
27514         * lto-cgraph.c : Likewise.
27515         * lto-compress.c : Likewise.
27516         * lto-opts.c : Likewise.
27517         * lto-section-in.c : Likewise.
27518         * lto-section-out.c : Likewise.
27519         * lto-streamer-in.c : Likewise.
27520         * lto-streamer-out.c : Likewise.
27521         * lto-streamer.c : Likewise.
27522         * lto-streamer.h : Likewise.
27523         * mcf.c : Likewise.
27524         * mode-switching.c : Likewise.
27525         * modulo-sched.c : Likewise.
27526         * omega.c : Likewise.
27527         * omp-low.c : Likewise.
27528         * optabs.c : Likewise.
27529         * opts-global.c : Likewise.
27530         * opts.h : Likewise.
27531         * passes.c : Likewise.
27532         * plugin.c : Likewise.
27533         * postreload-gcse.c : Likewise.
27534         * postreload.c : Likewise.
27535         * predict.c : Likewise.
27536         * print-rtl.c : Likewise.
27537         * print-tree.c : Likewise.
27538         * profile.c : Likewise.
27539         * read-md.c : Likewise.
27540         * read-md.h : Likewise.
27541         * read-rtl.c : Likewise.
27542         * real.c : Likewise.
27543         * realmpfr.c : Likewise.
27544         * recog.c : Likewise.
27545         * ree.c : Likewise.
27546         * reg-stack.c : Likewise.
27547         * regcprop.c : Likewise.
27548         * reginfo.c : Likewise.
27549         * regrename.c : Likewise.
27550         * regstat.c : Likewise.
27551         * reload.c : Likewise.
27552         * reload1.c : Likewise.
27553         * reorg.c : Likewise.
27554         * resource.c : Likewise.
27555         * rtl-chkp.c : Likewise.
27556         * rtl.c : Likewise.
27557         * rtl.h : Likewise.
27558         * rtlanal.c : Likewise.
27559         * rtlhash.c : Likewise.
27560         * rtlhash.h : Likewise.
27561         * rtlhooks.c : Likewise.
27562         * sanopt.c : Likewise.
27563         * sched-deps.c : Likewise.
27564         * sched-ebb.c : Likewise.
27565         * sched-rgn.c : Likewise.
27566         * sched-vis.c : Likewise.
27567         * sdbout.c : Likewise.
27568         * sel-sched-dump.c : Likewise.
27569         * sel-sched-ir.c : Likewise.
27570         * sel-sched-ir.h : Likewise.
27571         * sel-sched.c : Likewise.
27572         * sese.c : Likewise.
27573         * shrink-wrap.c : Likewise.
27574         * shrink-wrap.h : Likewise.
27575         * simplify-rtx.c : Likewise.
27576         * stack-ptr-mod.c : Likewise.
27577         * statistics.c : Likewise.
27578         * stmt.c : Likewise.
27579         * stor-layout.c : Likewise.
27580         * store-motion.c : Likewise.
27581         * stringpool.c : Likewise.
27582         * symtab.c : Likewise.
27583         * target-globals.c : Likewise.
27584         * targhooks.c : Likewise.
27585         * tlink.c : Likewise.
27586         * toplev.c : Likewise.
27587         * tracer.c : Likewise.
27588         * trans-mem.c : Likewise.
27589         * tree-affine.c : Likewise.
27590         * tree-affine.h : Likewise.
27591         * tree-browser.c : Likewise.
27592         * tree-call-cdce.c : Likewise.
27593         * tree-cfg.c : Likewise.
27594         * tree-cfgcleanup.c : Likewise.
27595         * tree-chkp-opt.c : Likewise.
27596         * tree-chkp.c : Likewise.
27597         * tree-chrec.c : Likewise.
27598         * tree-complex.c : Likewise.
27599         * tree-data-ref.c : Likewise.
27600         * tree-dfa.c : Likewise.
27601         * tree-diagnostic.c : Likewise.
27602         * tree-dump.c : Likewise.
27603         * tree-eh.c : Likewise.
27604         * tree-eh.h : Likewise.
27605         * tree-emutls.c : Likewise.
27606         * tree-hasher.h : Likewise.
27607         * tree-if-conv.c : Likewise.
27608         * tree-inline.c : Likewise.
27609         * tree-inline.h : Likewise.
27610         * tree-into-ssa.c : Likewise.
27611         * tree-iterator.c : Likewise.
27612         * tree-loop-distribution.c : Likewise.
27613         * tree-nested.c : Likewise.
27614         * tree-nrv.c : Likewise.
27615         * tree-object-size.c : Likewise.
27616         * tree-outof-ssa.c : Likewise.
27617         * tree-parloops.c : Likewise.
27618         * tree-phinodes.c : Likewise.
27619         * tree-predcom.c : Likewise.
27620         * tree-pretty-print.c : Likewise.
27621         * tree-profile.c : Likewise.
27622         * tree-scalar-evolution.c : Likewise.
27623         * tree-sra.c : Likewise.
27624         * tree-ssa-address.c : Likewise.
27625         * tree-ssa-alias.c : Likewise.
27626         * tree-ssa-ccp.c : Likewise.
27627         * tree-ssa-coalesce.c : Likewise.
27628         * tree-ssa-copy.c : Likewise.
27629         * tree-ssa-copyrename.c : Likewise.
27630         * tree-ssa-dce.c : Likewise.
27631         * tree-ssa-dom.c : Likewise.
27632         * tree-ssa-dse.c : Likewise.
27633         * tree-ssa-forwprop.c : Likewise.
27634         * tree-ssa-ifcombine.c : Likewise.
27635         * tree-ssa-live.c : Likewise.
27636         * tree-ssa-loop-ch.c : Likewise.
27637         * tree-ssa-loop-im.c : Likewise.
27638         * tree-ssa-loop-ivcanon.c : Likewise.
27639         * tree-ssa-loop-ivopts.c : Likewise.
27640         * tree-ssa-loop-manip.c : Likewise.
27641         * tree-ssa-loop-niter.c : Likewise.
27642         * tree-ssa-loop-prefetch.c : Likewise.
27643         * tree-ssa-loop-unswitch.c : Likewise.
27644         * tree-ssa-loop.c : Likewise.
27645         * tree-ssa-math-opts.c : Likewise.
27646         * tree-ssa-operands.c : Likewise.
27647         * tree-ssa-phiopt.c : Likewise.
27648         * tree-ssa-phiprop.c : Likewise.
27649         * tree-ssa-pre.c : Likewise.
27650         * tree-ssa-propagate.c : Likewise.
27651         * tree-ssa-reassoc.c : Likewise.
27652         * tree-ssa-sccvn.c : Likewise.
27653         * tree-ssa-scopedtables.c : Likewise.
27654         * tree-ssa-sink.c : Likewise.
27655         * tree-ssa-strlen.c : Likewise.
27656         * tree-ssa-structalias.c : Likewise.
27657         * tree-ssa-tail-merge.c : Likewise.
27658         * tree-ssa-ter.c : Likewise.
27659         * tree-ssa-threadedge.c : Likewise.
27660         * tree-ssa-threadupdate.c : Likewise.
27661         * tree-ssa-uncprop.c : Likewise.
27662         * tree-ssa-uninit.c : Likewise.
27663         * tree-ssa.c : Likewise.
27664         * tree-ssanames.c : Likewise.
27665         * tree-stdarg.c : Likewise.
27666         * tree-streamer-in.c : Likewise.
27667         * tree-streamer-out.c : Likewise.
27668         * tree-streamer.c : Likewise.
27669         * tree-streamer.h : Likewise.
27670         * tree-switch-conversion.c : Likewise.
27671         * tree-tailcall.c : Likewise.
27672         * tree-vect-data-refs.c : Likewise.
27673         * tree-vect-generic.c : Likewise.
27674         * tree-vect-loop-manip.c : Likewise.
27675         * tree-vect-loop.c : Likewise.
27676         * tree-vect-patterns.c : Likewise.
27677         * tree-vect-slp.c : Likewise.
27678         * tree-vect-stmts.c : Likewise.
27679         * tree-vectorizer.c : Likewise.
27680         * tree-vectorizer.h : Likewise.
27681         * tree-vrp.c : Likewise.
27682         * tree.c : Likewise.
27683         * tsan.c : Likewise.
27684         * ubsan.c : Likewise.
27685         * valtrack.c : Likewise.
27686         * valtrack.h : Likewise.
27687         * value-prof.c : Likewise.
27688         * var-tracking.c : Likewise.
27689         * varasm.c : Likewise.
27690         * varpool.c : Likewise.
27691         * vec.c: Likewise.
27692         * vmsdbgout.c : Likewise.
27693         * vtable-verify.c : Likewise.
27694         * vtable-verify.h : Likewise.
27695         * web.c : Likewise.
27696         * wide-int.cc : Likewise.
27697         * xcoffout.c : Likewise.
27698         * config/aarch64/aarch64-builtins.c : Likewise.
27699         * config/aarch64/aarch64.c : Likewise.
27700         * config/aarch64/cortex-a57-fma-steering.c : Likewise.
27701         * config/alpha/alpha.c : Likewise.
27702         * config/arc/arc.c : Likewise.
27703         * config/arm/aarch-common.c : Likewise.
27704         * config/arm/arm-builtins.c : Likewise.
27705         * config/arm/arm-c.c : Likewise.
27706         * config/arm/arm.c : Likewise.
27707         * config/avr/avr-c.c : Likewise.
27708         * config/avr/avr-log.c : Likewise.
27709         * config/avr/avr.c : Likewise.
27710         * config/bfin/bfin.c : Likewise.
27711         * config/c6x/c6x.c : Likewise.
27712         * config/cr16/cr16.c : Likewise.
27713         * config/cris/cris.c : Likewise.
27714         * config/darwin-c.c : Likewise.
27715         * config/darwin.c : Likewise.
27716         * config/default-c.c : Likewise.
27717         * config/epiphany/epiphany.c : Likewise.
27718         * config/epiphany/mode-switch-use.c : Likewise.
27719         * config/epiphany/resolve-sw-modes.c : Likewise.
27720         * config/fr30/fr30.c : Likewise.
27721         * config/frv/frv.c : Likewise.
27722         * config/ft32/ft32.c : Likewise.
27723         * config/glibc-c.c : Likewise.
27724         * config/h8300/h8300.c : Likewise.
27725         * config/i386/i386-c.c : Likewise.
27726         * config/i386/i386.c : Likewise.
27727         * config/i386/msformat-c.c : Likewise.
27728         * config/i386/winnt-cxx.c : Likewise.
27729         * config/i386/winnt-stubs.c : Likewise.
27730         * config/i386/winnt.c : Likewise.
27731         * config/ia64/ia64-c.c : Likewise.
27732         * config/ia64/ia64.c : Likewise.
27733         * config/iq2000/iq2000.c : Likewise.
27734         * config/lm32/lm32.c : Likewise.
27735         * config/m32c/m32c-pragma.c : Likewise.
27736         * config/m32c/m32c.c : Likewise.
27737         * config/m32r/m32r.c : Likewise.
27738         * config/m68k/m68k.c : Likewise.
27739         * config/mcore/mcore.c : Likewise.
27740         * config/mep/mep-pragma.c : Likewise.
27741         * config/mep/mep.c : Likewise.
27742         * config/microblaze/microblaze-c.c : Likewise.
27743         * config/microblaze/microblaze.c : Likewise.
27744         * config/mips/mips.c : Likewise.
27745         * config/mmix/mmix.c : Likewise.
27746         * config/mn10300/mn10300.c : Likewise.
27747         * config/moxie/moxie.c : Likewise.
27748         * config/msp430/msp430-c.c : Likewise.
27749         * config/msp430/msp430.c : Likewise.
27750         * config/nds32/nds32-cost.c : Likewise.
27751         * config/nds32/nds32-fp-as-gp.c : Likewise.
27752         * config/nds32/nds32-intrinsic.c : Likewise.
27753         * config/nds32/nds32-isr.c : Likewise.
27754         * config/nds32/nds32-md-auxiliary.c : Likewise.
27755         * config/nds32/nds32-memory-manipulation.c : Likewise.
27756         * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
27757         * config/nds32/nds32-predicates.c : Likewise.
27758         * config/nds32/nds32.c : Likewise.
27759         * config/nios2/nios2.c : Likewise.
27760         * config/nvptx/nvptx.c : Likewise.
27761         * config/pa/pa.c : Likewise.
27762         * config/pdp11/pdp11.c : Likewise.
27763         * config/rl78/rl78-c.c : Likewise.
27764         * config/rl78/rl78.c : Likewise.
27765         * config/rs6000/rs6000-c.c : Likewise.
27766         * config/rs6000/rs6000.c : Likewise.
27767         * config/rx/rx.c : Likewise.
27768         * config/s390/s390-c.c : Likewise.
27769         * config/s390/s390.c : Likewise.
27770         * config/sh/sh-c.c : Likewise.
27771         * config/sh/sh-mem.cc : Likewise.
27772         * config/sh/sh.c : Likewise.
27773         * config/sh/sh_optimize_sett_clrt.cc : Likewise.
27774         * config/sh/sh_treg_combine.cc : Likewise.
27775         * config/sol2-c.c : Likewise.
27776         * config/sol2-cxx.c : Likewise.
27777         * config/sol2-stubs.c : Likewise.
27778         * config/sol2.c : Likewise.
27779         * config/sparc/sparc-c.c : Likewise.
27780         * config/sparc/sparc.c : Likewise.
27781         * config/spu/spu-c.c : Likewise.
27782         * config/spu/spu.c : Likewise.
27783         * config/stormy16/stormy16.c : Likewise.
27784         * config/tilegx/mul-tables.c : Likewise.
27785         * config/tilegx/tilegx-c.c : Likewise.
27786         * config/tilegx/tilegx.c : Likewise.
27787         * config/tilepro/mul-tables.c : Likewise.
27788         * config/tilepro/tilepro-c.c : Likewise.
27789         * config/tilepro/tilepro.c : Likewise.
27790         * config/v850/v850-c.c : Likewise.
27791         * config/v850/v850.c : Likewise.
27792         * config/vax/vax.c : Likewise.
27793         * config/visium/visium.c : Likewise.
27794         * config/vms/vms-c.c : Likewise.
27795         * config/vms/vms.c : Likewise.
27796         * config/vxworks.c : Likewise.
27797         * config/winnt-c.c : Likewise.
27798         * config/xtensa/xtensa.c : Likewise.
27800 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
27802         PR lto/65378
27803         * ipa-utils.h (warn_types_mismatch): Update prototype.
27804         * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
27805         parameters.
27806         (type_mismatch_p): New function.
27807         (warn_types_mismatch): Reorg to work better on non-C++ types.
27808         (odr_types_equivalent_p): Add loc1/loc2 parameters.
27809         (add_type_duplicate): Update.
27811 2015-06-08  Tom de Vries  <tom@codesourcery.com>
27813         PR rtl-optimization/66444
27814         * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
27815         call_used_regs.
27817 2015-06-08  Richard Biener  <rguenther@suse.de>
27819         PR tree-optimization/66422
27820         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
27821         block after inserted gcc_unreachable.
27823 2015-06-08  Nick Clifton  <nickc@redhat.com>
27825         * config/rx/rx.c (rx_function_value): Do not promote vector types.
27826         (rx_promote_function_mode): Likewise.
27827         * config/rx/rx.h (LIBCALL_VALUE): Likewise.
27829 2015-06-08  Jakub Jelinek  <jakub@redhat.com>
27831         * genattrtab.c (insn_alternatives): Change type from int *
27832         to uint64_t *.
27833         (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
27834         (get_attr_value): Change type of num_alt to uint64_t.
27835         (compute_alternative_mask): Change return type from
27836         int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
27837         (make_alternative_compare, mk_attr_alt): Change argument type
27838         from int to uint64_t.
27839         (simplify_test_exp): Change type of i from int to uint64_t.
27840         Shift ((uint64_t) 1) instead of 1 up.
27841         (main): Adjust oballocvec first argument from int to uint64_t.
27842         Shift ((uint64_t) 1) instead of 1 up.
27844 2015-06-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
27846         PR other/65366
27847         * gdbhooks.py: Import sys.
27848         (intptr): New function.  Replace int(...) by intptr(...).
27850 2015-06-08  Richard Biener  <rguenther@suse.de>
27852         * tree-vect-stmts.c (vectorizable_load): Compute the pointer
27853         adjustment for gaps at the end of a SLP load group properly.
27854         * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
27855         all permutations we can generate.
27856         (vect_transform_slp_perm_load): Use the correct group-size.
27858 2015-06-08  Marc Glisse  <marc.glisse@inria.fr>
27860         * genmatch.c (expr::gen_transform): For conditions, guess the type
27861         from the second operand.
27863 2015-06-08  Tom de Vries  <tom@codesourcery.com>
27865         PR tree-optimization/66442
27866         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
27867         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
27868         if the loop latch is not a singleton.  Use
27869         gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
27871 2015-06-08  Marek Polacek  <polacek@redhat.com>
27873         PR sanitizer/66452
27874         * toplev.c (check_global_declaration): Don't warn about artificial
27875         decls.
27877 2015-06-08  Tom de Vries  <tom@codesourcery.com>
27879         PR tree-optimization/66436
27880         * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
27881         dump file.
27882         * gimplify.c: Add tree-dump.h include.
27883         (gimplify_function_tree): Dump function to gimple dump file.
27884         * stor-layout.c (finalize_size_functions): Don't dump function to gimple
27885         dump file.
27887 2015-06-08  Tom de Vries  <tom@codesourcery.com>
27889         PR tree-optimization/66435
27890         * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
27891         function.
27893 2015-06-06  Jan Hubicka  <hubicka@ucw.cz>
27895         * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
27896         of ptr_type_node to not be ptr_to_node.
27897         * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
27898         TREE_TYPE of pointers.
27899         * gimple-expr.c (useless_type_conversion): Reorder the check for
27900         function pointers and TYPE_CANONICAL.
27902 2015-06-06  John David Anglin  <danglin@gcc.gnu.org>
27904         PR bootstrap/66319
27905         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
27906         defines.  Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
27907         Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
27908         later.
27909         * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
27910         Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
27911         _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
27912         _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
27913         and non iso if unix2003.
27915 2015-06-06  Aldy Hernandez  <aldyh@redhat.com>
27917         * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
27919 2015-06-06  Richard Sandiford  <richard.sandiford@arm.com>
27921         * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
27922         rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
27923         cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
27924         except.c, final.c, function.c, gcse-common.c, genemit.c,
27925         haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
27926         lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
27927         sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
27928         shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
27929         more derived ones.
27931 2015-06-06  Mikhail Maltsev  <maltsevm@gmail.com>
27933         * combine.c (combine_split_insns): Remove cast.
27934         * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
27935         * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
27936         * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
27937         * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
27938         * genemit.c (gen_split): Change return type of generated functions to
27939         rtx_insn.
27940         * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
27941         (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
27942         gen_peephole2_* functions.
27943         (print_subroutine, main): Likewise.
27944         * recog.c (peephole2_optimize): Remove cast.
27945         (peep2_next_insn): Promote return type to rtx_insn.
27946         * recog.h (peep2_next_insn): Fix prototype.
27947         * rtl.h (try_split, split_insns): Likewise.
27949 2015-06-06  DJ Delorie  <dj@redhat.com>
27951         * config/msp430/msp430.c (msp430_asm_integer): Support addition
27952         and subtraction too.
27954 2015-06-05  Kaz Kojima  <kkojima@gcc.gnu.org>
27956         PR target/66410
27957         * config/sh/constraints.md (Sid, Ssd): New memory constraints.
27958         * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
27959         instead of Snd.  Disparage Sid/z alternative with '^'.
27961 2015-06-05  Aldy Hernandez  <aldyh@redhat.com>
27963         * dwarf2out.c: Remove deferred_locations*.
27964         (dwarf2_debug_hooks): Add early_finish hook.
27965         Remove global_decl hook.
27966         Add early_global_decl and late_global_decl hook.
27967         New global early_dwarf.
27968         New structure set_early_dwarf.
27969         (output_die): Indicate whether a DIE was generated early
27970         when generating assembly with -dA.
27971         (struct limbo_die_struct): Document created_for field.
27972         Remove file_table_last_lookup.
27973         (remove_AT): Return TRUE if successful.
27974         (remove_child_TAG): Clear die_parent.
27975         (reparent_child): New function abstracted from...
27976         (splice_child_die): ...here.
27977         (new_die): ICE if a DIE ends up in limbo too late.
27978         (check_die): New.
27979         (defer_location): Remove.
27980         (add_subscript_info): Reuse DW_TAG_subrange_type if available.
27981         (fill_variable_array_bounds): New.
27982         (decl_start_label): Call fill_variable_array_bounds.
27983         (gen_formal_parameter_die): Rewrite to reuse previously generated
27984         DIEs.
27985         (gen_subprogram_die): Same.
27986         (gen_variable_die): Same.
27987         (gen_const_die): Same.
27988         (gen_label_die): Same.
27989         (gen_lexical_block_die): Same.
27990         (decl_will_get_specification_p): New.
27991         (local_function_static): New.
27992         (gen_struct_or_union_type_die): Fill in variable-length fields.
27993         (gen_typedef_die): Fill in variable-length typedefs.
27994         (gen_tagged_type_die): Gracefully return on error_mark_node.
27995         Handle re-entrancy.
27996         (gen_type_die_with_usage): Handle variable-length types.
27997         Remove duplicate code for ARRAY_TYPE case.
27998         (process_scope_var): Only process imported modules during early
27999         dwarf.
28000         (dwarf2out_early_global_decl): New.
28001         (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
28002         (dwarf2out_type_decl): Set early_dwarf while calling
28003         dwarf2out_decl.
28004         (dwarf2out_decl): Verify that we did not recreate a previously
28005         generated DIE.
28006         Do not return on DECL_EXTERNALs in VAR_DECLs.
28007         Abstract some code to local_function_static.
28008         (lookup_filename): Remove use of file_table_last_lookup.
28009         Gracefully exit on missing file_name.
28010         (dwarf2out_finish): Verify limbo list.
28011         Remove deferred_locations_list use.
28012         Move deferred_asm_name and limbo flushing to...
28013         (dwarf2out_early_finish): ...here.  New.
28014         (dwarf2out_c_finalize): Remove set of deferred_location_list,
28015         deferred_asm_name, and file_table_last_lookup.
28016         * cgraph.h (referred_to_p): Add default argument.
28017         * cgraphunit.c (referred_to_p): Add and handle include_self
28018         argument.
28019         (analyze_functions): Add first_time argument.
28020         Call check_global_declaration for all symbols.
28021         Call late_global_decl for nodes for moribund nodes.
28022         (finalize_compilation_unit): Add new argument to
28023         analyze_functions.
28024         Call early_global_decl for functions.
28025         Call early_finish debug hook.
28026         * dbxout.c (dbxout_early_global_decl): New.
28027         (dbxout_late_global_decl): New.  Adapted from dbxout_global_decl.
28028         (dbx_debug_hooks): Add new hooks.
28029         (xcoff_debug_hooks): Same.
28030         * debug.c (do_nothing_debug_hooks): Add early_finish field.
28031         Add early and late debug hooks.
28032         Remove global_decl hook.
28033         * debug.h (struct gcc_debug_hooks): Add early_finish,
28034         early_global_decl, and late_global_decl fields.
28035         Remove global_decl field.
28036         Document gcc_debug_hooks.
28037         * gengtype.c (output_typename): Remove.
28038         * godump.c (go_early_global_decl): New.
28039         (go_late_global_decl): New.
28040         (go_global_decl): Remove.
28041         (dump_go_spec_init): Remove global_decl.  Add
28042         {early,late}_global_decl.
28043         * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
28044         (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
28045         * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
28046         (write_global_declarations): Remove.
28047         (global_decl_processing): New.
28048         * langhooks.h (struct lang_hooks_for_decls): Remove
28049         final_write_globals field.
28050         Add post_compilation_parsing_cleanups field.
28051         * passes.c (rest_of_decl_compilation): Call early_global_decl.
28052         * sdbout.c: Add early and late_global_decl hooks.  Remove
28053         sdbout_global_decl hook.
28054         Add early_finish field for sdb_debug_hooks.
28055         (sdbout_global_decl): Remove.
28056         (sdbout_early_global_decl): New.
28057         (sdbout_late_global_decl): New.
28058         * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
28059         * toplev.c (check_global_declaration): Rename from
28060         check_global_declaration_1.
28061         Adapt to use symtab infrastructure.
28062         (check_global_declarations): Remove.
28063         (emit_debug_global_declarations): Remove.
28064         (compile_file): Remove call to final_write_globals langhook.
28065         Run the actual compilation process.
28066         Perform any post compilation parser cleanups.
28067         Generate late debug info.
28068         * toplev.h (check_global_declaration): New.
28069         (check_global_declaration_1): Remove.
28070         (check_global_declarations): Remove.
28071         (write_global_declarations): Remove.
28072         (emit_debug_global_declarations): Remove.
28073         (global_decl_processing): New.
28074         * tree-core.h (struct tree_block): Add DIE field.
28075         * tree.h (BLOCK_DIE): New.
28076         * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
28077         throughout.
28078         (vmsdbgout_early_global_decl): New.
28079         (vmsdbgout_late_global_decl): New.
28080         Add early_finish debug hook field to vmsdbg_debug_hooks.
28081         Remove vmsdbgout_decl to vmsdbgout_function_decl.
28082         Add early and late_global_decl debug hooks.
28084 2015-06-05  Julian Brown  <julian@codesourcery.com>
28085             Sandra Loosemore  <sandra@codesourcery.com>
28087         * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
28088         * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
28089         to print-sysroot-suffix.sh script.
28091 2015-06-05  Tom de Vries  <tom@codesourcery.com>
28093         merge from gomp4 branch:
28094         2015-05-28  Tom de Vries  <tom@codesourcery.com>
28096         PR tree-optimization/65443
28097         * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
28098         (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
28099         (try_transform_to_exit_first_loop_alt): New function.
28100         (transform_to_exit_first_loop): Use
28101         try_transform_to_exit_first_loop_alt.
28103 2015-06-05  James Greenhalgh  <james.greenhalgh@arm.com>
28105         * builtins.c (expand_builtin_atomic_compare_exchange): Call
28106         emit_cmp_and_jump_insns with the mode of target.
28108 2015-06-05  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
28110         * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
28112 2015-06-04  DJ Delorie  <dj@redhat.com>
28114         * config/msp430/msp430.md (movsi_s): New.  Special case for
28115         storing a 20-bit symbol into a 32-bit register.
28116         * config/msp430/msp430.c (msp430_subreg): Add support for it.
28117         * config/msp430/predicates.md (msp430_symbol_operand): New.
28119 2015-06-04  Sriraman Tallam  <tmsriram@google.com>
28121         * calls.c (prepare_call_address): Check for noplt
28122         attribute.
28123         * config/i386/i386.c (ix86_expand_call): Check
28124         for noplt attribute.
28125         (ix86_nopic_noplt_attribute_p): New function.
28126         (ix86_output_call_insn): Output indirect call for non-pic
28127         no plt calls.
28128         * doc/extend.texi (noplt): Document new attribute.
28129         * doc/invoke.texi: Document new attribute.
28131 2015-06-04  Andrew MacLeod  <amacleod@redhat.com>
28133         * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
28134         real.h, and fixed-value.h when included in host source files.
28135         * double-int.h: Remove redundant #includes listed above.
28136         * fixed-value.h: Likewise.
28137         * real.h: Likewise.
28138         * wide-int.h: Likewise.
28139         * inchash.h: Likewise.
28140         * rtl.h: Add some include files When included from a generator file.
28141         * target.h: Remove wide-int.h and insn-modes.h from the include list.
28142         * internal-fn.h: Don't include coretypes.h.
28143         * alias.c: Adjust includes for restructured coretypes.h.
28144         * asan.c: Likewise.
28145         * attribs.c: Likewise.
28146         * auto-inc-dec.c: Likewise.
28147         * auto-profile.c: Likewise.
28148         * bb-reorder.c: Likewise.
28149         * bt-load.c: Likewise.
28150         * builtins.c: Likewise.
28151         * caller-save.c: Likewise.
28152         * calls.c: Likewise.
28153         * ccmp.c: Likewise.
28154         * cfg.c: Likewise.
28155         * cfganal.c: Likewise.
28156         * cfgbuild.c: Likewise.
28157         * cfgcleanup.c: Likewise.
28158         * cfgexpand.c: Likewise.
28159         * cfghooks.c: Likewise.
28160         * cfgloop.c: Likewise.
28161         * cfgloop.h: Likewise.
28162         * cfgloopanal.c: Likewise.
28163         * cfgloopmanip.c: Likewise.
28164         * cfgrtl.c: Likewise.
28165         * cgraph.c: Likewise.
28166         * cgraphbuild.c: Likewise.
28167         * cgraphclones.c: Likewise.
28168         * cgraphunit.c: Likewise.
28169         * cilk-common.c: Likewise.
28170         * combine-stack-adj.c: Likewise.
28171         * combine.c: Likewise.
28172         * compare-elim.c: Likewise.
28173         * convert.c: Likewise.
28174         * coverage.c: Likewise.
28175         * cppbuiltin.c: Likewise.
28176         * cprop.c: Likewise.
28177         * cse.c: Likewise.
28178         * cselib.c: Likewise.
28179         * data-streamer-in.c: Likewise.
28180         * data-streamer-out.c: Likewise.
28181         * data-streamer.c: Likewise.
28182         * dbxout.c: Likewise.
28183         * dce.c: Likewise.
28184         * ddg.c: Likewise.
28185         * debug.c: Likewise.
28186         * df-core.c: Likewise.
28187         * df-problems.c: Likewise.
28188         * df-scan.c: Likewise.
28189         * df.h: Likewise.
28190         * dfp.c: Likewise.
28191         * dojump.c: Likewise.
28192         * dominance.c: Likewise.
28193         * domwalk.c: Likewise.
28194         * double-int.c: Likewise.
28195         * dse.c: Likewise.
28196         * dumpfile.c: Likewise.
28197         * dwarf2asm.c: Likewise.
28198         * dwarf2cfi.c: Likewise.
28199         * dwarf2out.c: Likewise.
28200         * dwarf2out.h: Likewise.
28201         * emit-rtl.c: Likewise.
28202         * et-forest.c: Likewise.
28203         * except.c: Likewise.
28204         * explow.c: Likewise.
28205         * expmed.c: Likewise.
28206         * expr.c: Likewise.
28207         * final.c: Likewise.
28208         * fixed-value.c: Likewise.
28209         * fold-const.c: Likewise.
28210         * function.c: Likewise.
28211         * fwprop.c: Likewise.
28212         * gcc-plugin.h: Likewise.
28213         * gcse.c: Likewise.
28214         * generic-match-head.c: Likewise.
28215         * ggc-page.c: Likewise.
28216         * gimple-builder.c: Likewise.
28217         * gimple-expr.c: Likewise.
28218         * gimple-fold.c: Likewise.
28219         * gimple-iterator.c: Likewise.
28220         * gimple-low.c: Likewise.
28221         * gimple-match-head.c: Likewise.
28222         * gimple-pretty-print.c: Likewise.
28223         * gimple-ssa-isolate-paths.c: Likewise.
28224         * gimple-ssa-strength-reduction.c: Likewise.
28225         * gimple-streamer-in.c: Likewise.
28226         * gimple-streamer-out.c: Likewise.
28227         * gimple-streamer.h: Likewise.
28228         * gimple-walk.c: Likewise.
28229         * gimple.c: Likewise.
28230         * gimplify-me.c: Likewise.
28231         * gimplify.c: Likewise.
28232         * godump.c: Likewise.
28233         * graph.c: Likewise.
28234         * graphite-blocking.c: Likewise.
28235         * graphite-dependences.c: Likewise.
28236         * graphite-interchange.c: Likewise.
28237         * graphite-isl-ast-to-gimple.c: Likewise.
28238         * graphite-optimize-isl.c: Likewise.
28239         * graphite-poly.c: Likewise.
28240         * graphite-scop-detection.c: Likewise.
28241         * graphite-sese-to-poly.c: Likewise.
28242         * graphite.c: Likewise.
28243         * haifa-sched.c: Likewise.
28244         * hooks.h: Likewise.
28245         * hw-doloop.c: Likewise.
28246         * ifcvt.c: Likewise.
28247         * incpath.c: Likewise.
28248         * init-regs.c: Likewise.
28249         * internal-fn.c: Likewise.
28250         * ipa-chkp.c: Likewise.
28251         * ipa-comdats.c: Likewise.
28252         * ipa-cp.c: Likewise.
28253         * ipa-devirt.c: Likewise.
28254         * ipa-icf-gimple.c: Likewise.
28255         * ipa-icf.c: Likewise.
28256         * ipa-inline-analysis.c: Likewise.
28257         * ipa-inline-transform.c: Likewise.
28258         * ipa-inline.c: Likewise.
28259         * ipa-polymorphic-call.c: Likewise.
28260         * ipa-profile.c: Likewise.
28261         * ipa-prop.c: Likewise.
28262         * ipa-pure-const.c: Likewise.
28263         * ipa-ref.c: Likewise.
28264         * ipa-reference.c: Likewise.
28265         * ipa-split.c: Likewise.
28266         * ipa-utils.c: Likewise.
28267         * ipa-visibility.c: Likewise.
28268         * ipa.c: Likewise.
28269         * ira-build.c: Likewise.
28270         * ira-color.c: Likewise.
28271         * ira-conflicts.c: Likewise.
28272         * ira-costs.c: Likewise.
28273         * ira-emit.c: Likewise.
28274         * ira-lives.c: Likewise.
28275         * ira.c: Likewise.
28276         * jump.c: Likewise.
28277         * langhooks.c: Likewise.
28278         * lcm.c: Likewise.
28279         * loop-doloop.c: Likewise.
28280         * loop-init.c: Likewise.
28281         * loop-invariant.c: Likewise.
28282         * loop-iv.c: Likewise.
28283         * loop-unroll.c: Likewise.
28284         * lower-subreg.c: Likewise.
28285         * lra-assigns.c: Likewise.
28286         * lra-coalesce.c: Likewise.
28287         * lra-constraints.c: Likewise.
28288         * lra-eliminations.c: Likewise.
28289         * lra-lives.c: Likewise.
28290         * lra-remat.c: Likewise.
28291         * lra-spills.c: Likewise.
28292         * lra.c: Likewise.
28293         * lto-cgraph.c: Likewise.
28294         * lto-compress.c: Likewise.
28295         * lto-opts.c: Likewise.
28296         * lto-section-in.c: Likewise.
28297         * lto-section-out.c: Likewise.
28298         * lto-streamer-in.c: Likewise.
28299         * lto-streamer-out.c: Likewise.
28300         * lto-streamer.c: Likewise.
28301         * mcf.c: Likewise.
28302         * mode-switching.c: Likewise.
28303         * modulo-sched.c: Likewise.
28304         * omega.c: Likewise.
28305         * omp-low.c: Likewise.
28306         * optabs.c: Likewise.
28307         * opts-global.c: Likewise.
28308         * passes.c: Likewise.
28309         * plugin.c: Likewise.
28310         * postreload-gcse.c: Likewise.
28311         * postreload.c: Likewise.
28312         * predict.c: Likewise.
28313         * print-rtl.c: Likewise.
28314         * print-tree.c: Likewise.
28315         * profile.c: Likewise.
28316         * real.c: Likewise.
28317         * realmpfr.c: Likewise.
28318         * realmpfr.h: Likewise.
28319         * recog.c: Likewise.
28320         * ree.c: Likewise.
28321         * reg-stack.c: Likewise.
28322         * regcprop.c: Likewise.
28323         * reginfo.c: Likewise.
28324         * regrename.c: Likewise.
28325         * regs.h: Likewise.
28326         * regstat.c: Likewise.
28327         * reload.c: Likewise.
28328         * reload1.c: Likewise.
28329         * reorg.c: Likewise.
28330         * resource.c: Likewise.
28331         * rtl-chkp.c: Likewise.
28332         * rtlanal.c: Likewise.
28333         * rtlhooks.c: Likewise.
28334         * sanopt.c: Likewise.
28335         * sched-deps.c: Likewise.
28336         * sched-ebb.c: Likewise.
28337         * sched-rgn.c: Likewise.
28338         * sched-vis.c: Likewise.
28339         * sdbout.c: Likewise.
28340         * sel-sched-dump.c: Likewise.
28341         * sel-sched-ir.c: Likewise.
28342         * sel-sched.c: Likewise.
28343         * sese.c: Likewise.
28344         * shrink-wrap.c: Likewise.
28345         * shrink-wrap.h: Likewise.
28346         * simplify-rtx.c: Likewise.
28347         * stack-ptr-mod.c: Likewise.
28348         * statistics.c: Likewise.
28349         * stmt.c: Likewise.
28350         * stor-layout.c: Likewise.
28351         * store-motion.c: Likewise.
28352         * stringpool.c: Likewise.
28353         * symtab.c: Likewise.
28354         * target-globals.c: Likewise.
28355         * targhooks.c: Likewise.
28356         * toplev.c: Likewise.
28357         * tracer.c: Likewise.
28358         * trans-mem.c: Likewise.
28359         * tree-affine.c: Likewise.
28360         * tree-affine.h: Likewise.
28361         * tree-browser.c: Likewise.
28362         * tree-call-cdce.c: Likewise.
28363         * tree-cfg.c: Likewise.
28364         * tree-cfgcleanup.c: Likewise.
28365         * tree-chkp-opt.c: Likewise.
28366         * tree-chkp.c: Likewise.
28367         * tree-chrec.c: Likewise.
28368         * tree-complex.c: Likewise.
28369         * tree-data-ref.c: Likewise.
28370         * tree-dfa.c: Likewise.
28371         * tree-diagnostic.c: Likewise.
28372         * tree-dump.c: Likewise.
28373         * tree-eh.c: Likewise.
28374         * tree-emutls.c: Likewise.
28375         * tree-if-conv.c: Likewise.
28376         * tree-inline.c: Likewise.
28377         * tree-into-ssa.c: Likewise.
28378         * tree-iterator.c: Likewise.
28379         * tree-loop-distribution.c: Likewise.
28380         * tree-nested.c: Likewise.
28381         * tree-nrv.c: Likewise.
28382         * tree-object-size.c: Likewise.
28383         * tree-outof-ssa.c: Likewise.
28384         * tree-parloops.c: Likewise.
28385         * tree-phinodes.c: Likewise.
28386         * tree-predcom.c: Likewise.
28387         * tree-pretty-print.c: Likewise.
28388         * tree-pretty-print.h: Likewise.
28389         * tree-profile.c: Likewise.
28390         * tree-scalar-evolution.c: Likewise.
28391         * tree-sra.c: Likewise.
28392         * tree-ssa-address.c: Likewise.
28393         * tree-ssa-alias.c: Likewise.
28394         * tree-ssa-ccp.c: Likewise.
28395         * tree-ssa-coalesce.c: Likewise.
28396         * tree-ssa-copy.c: Likewise.
28397         * tree-ssa-copyrename.c: Likewise.
28398         * tree-ssa-dce.c: Likewise.
28399         * tree-ssa-dom.c: Likewise.
28400         * tree-ssa-dse.c: Likewise.
28401         * tree-ssa-forwprop.c: Likewise.
28402         * tree-ssa-ifcombine.c: Likewise.
28403         * tree-ssa-live.c: Likewise.
28404         * tree-ssa-loop-ch.c: Likewise.
28405         * tree-ssa-loop-im.c: Likewise.
28406         * tree-ssa-loop-ivcanon.c: Likewise.
28407         * tree-ssa-loop-ivopts.c: Likewise.
28408         * tree-ssa-loop-manip.c: Likewise.
28409         * tree-ssa-loop-niter.c: Likewise.
28410         * tree-ssa-loop-prefetch.c: Likewise.
28411         * tree-ssa-loop-unswitch.c: Likewise.
28412         * tree-ssa-loop.c: Likewise.
28413         * tree-ssa-loop.h: Likewise.
28414         * tree-ssa-math-opts.c: Likewise.
28415         * tree-ssa-operands.c: Likewise.
28416         * tree-ssa-phiopt.c: Likewise.
28417         * tree-ssa-phiprop.c: Likewise.
28418         * tree-ssa-pre.c: Likewise.
28419         * tree-ssa-propagate.c: Likewise.
28420         * tree-ssa-reassoc.c: Likewise.
28421         * tree-ssa-sccvn.c: Likewise.
28422         * tree-ssa-scopedtables.c: Likewise.
28423         * tree-ssa-sink.c: Likewise.
28424         * tree-ssa-strlen.c: Likewise.
28425         * tree-ssa-structalias.c: Likewise.
28426         * tree-ssa-tail-merge.c: Likewise.
28427         * tree-ssa-ter.c: Likewise.
28428         * tree-ssa-threadedge.c: Likewise.
28429         * tree-ssa-threadupdate.c: Likewise.
28430         * tree-ssa-uncprop.c: Likewise.
28431         * tree-ssa-uninit.c: Likewise.
28432         * tree-ssa.c: Likewise.
28433         * tree-ssanames.c: Likewise.
28434         * tree-stdarg.c: Likewise.
28435         * tree-streamer-in.c: Likewise.
28436         * tree-streamer-out.c: Likewise.
28437         * tree-streamer.c: Likewise.
28438         * tree-switch-conversion.c: Likewise.
28439         * tree-tailcall.c: Likewise.
28440         * tree-vect-data-refs.c: Likewise.
28441         * tree-vect-generic.c: Likewise.
28442         * tree-vect-loop-manip.c: Likewise.
28443         * tree-vect-loop.c: Likewise.
28444         * tree-vect-patterns.c: Likewise.
28445         * tree-vect-slp.c: Likewise.
28446         * tree-vect-stmts.c: Likewise.
28447         * tree-vectorizer.c: Likewise.
28448         * tree-vrp.c: Likewise.
28449         * tree.c: Likewise.
28450         * tsan.c: Likewise.
28451         * ubsan.c: Likewise.
28452         * valtrack.c: Likewise.
28453         * value-prof.c: Likewise.
28454         * var-tracking.c: Likewise.
28455         * varasm.c: Likewise.
28456         * varpool.c: Likewise.
28457         * vmsdbgout.c: Likewise.
28458         * vtable-verify.c: Likewise.
28459         * web.c: Likewise.
28460         * wide-int-print.cc: Likewise.
28461         * wide-int-print.h: Likewise.
28462         * wide-int.cc: Likewise.
28463         * xcoffout.c: Likewise.
28464         * config/aarch64/aarch64-builtins.c: Likewise.
28465         * config/aarch64/aarch64.c: Likewise.
28466         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
28467         * config/alpha/alpha.c: Likewise.
28468         * config/arc/arc.c: Likewise.
28469         * config/arm/aarch-common.c: Likewise.
28470         * config/arm/arm-builtins.c: Likewise.
28471         * config/arm/arm-c.c: Likewise.
28472         * config/arm/arm.c: Likewise.
28473         * config/avr/avr-c.c: Likewise.
28474         * config/avr/avr-log.c: Likewise.
28475         * config/avr/avr.c: Likewise.
28476         * config/bfin/bfin.c: Likewise.
28477         * config/c6x/c6x.c: Likewise.
28478         * config/cr16/cr16.c: Likewise.
28479         * config/cris/cris.c: Likewise.
28480         * config/darwin-c.c: Likewise.
28481         * config/darwin.c: Likewise.
28482         * config/default-c.c: Likewise.
28483         * config/epiphany/epiphany.c: Likewise.
28484         * config/epiphany/mode-switch-use.c: Likewise.
28485         * config/epiphany/resolve-sw-modes.c: Likewise.
28486         * config/fr30/fr30.c: Likewise.
28487         * config/frv/frv.c: Likewise.
28488         * config/ft32/ft32.c: Likewise.
28489         * config/glibc-c.c: Likewise.
28490         * config/h8300/h8300.c: Likewise.
28491         * config/i386/i386-c.c: Likewise.
28492         * config/i386/i386.c: Likewise.
28493         * config/i386/msformat-c.c: Likewise.
28494         * config/i386/winnt-cxx.c: Likewise.
28495         * config/i386/winnt-stubs.c: Likewise.
28496         * config/i386/winnt.c: Likewise.
28497         * config/ia64/ia64-c.c: Likewise.
28498         * config/ia64/ia64.c: Likewise.
28499         * config/iq2000/iq2000.c: Likewise.
28500         * config/lm32/lm32.c: Likewise.
28501         * config/m32c/m32c-pragma.c: Likewise.
28502         * config/m32c/m32c.c: Likewise.
28503         * config/m32r/m32r.c: Likewise.
28504         * config/m68k/m68k.c: Likewise.
28505         * config/mcore/mcore.c: Likewise.
28506         * config/mep/mep-pragma.c: Likewise.
28507         * config/mep/mep.c: Likewise.
28508         * config/microblaze/microblaze-c.c: Likewise.
28509         * config/microblaze/microblaze.c: Likewise.
28510         * config/mips/mips.c: Likewise.
28511         * config/mmix/mmix.c: Likewise.
28512         * config/mn10300/mn10300.c: Likewise.
28513         * config/moxie/moxie.c: Likewise.
28514         * config/msp430/msp430-c.c: Likewise.
28515         * config/msp430/msp430.c: Likewise.
28516         * config/nds32/nds32-cost.c: Likewise.
28517         * config/nds32/nds32-fp-as-gp.c: Likewise.
28518         * config/nds32/nds32-intrinsic.c: Likewise.
28519         * config/nds32/nds32-isr.c: Likewise.
28520         * config/nds32/nds32-md-auxiliary.c: Likewise.
28521         * config/nds32/nds32-memory-manipulation.c: Likewise.
28522         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
28523         * config/nds32/nds32-predicates.c: Likewise.
28524         * config/nds32/nds32.c: Likewise.
28525         * config/nios2/nios2.c: Likewise.
28526         * config/nvptx/nvptx.c: Likewise.
28527         * config/pa/pa.c: Likewise.
28528         * config/pdp11/pdp11.c: Likewise.
28529         * config/rl78/rl78-c.c: Likewise.
28530         * config/rl78/rl78.c: Likewise.
28531         * config/rs6000/rs6000-c.c: Likewise.
28532         * config/rs6000/rs6000.c: Likewise.
28533         * config/rx/rx.c: Likewise.
28534         * config/s390/s390-c.c: Likewise.
28535         * config/s390/s390.c: Likewise.
28536         * config/sh/sh-c.c: Likewise.
28537         * config/sh/sh-mem.cc: Likewise.
28538         * config/sh/sh.c: Likewise.
28539         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
28540         * config/sh/sh_treg_combine.cc: Likewise.
28541         * config/sol2-c.c: Likewise.
28542         * config/sol2-cxx.c: Likewise.
28543         * config/sol2-stubs.c: Likewise.
28544         * config/sol2.c: Likewise.
28545         * config/sparc/sparc-c.c: Likewise.
28546         * config/sparc/sparc.c: Likewise.
28547         * config/spu/spu-c.c: Likewise.
28548         * config/spu/spu.c: Likewise.
28549         * config/stormy16/stormy16.c: Likewise.
28550         * config/tilegx/mul-tables.c: Likewise.
28551         * config/tilegx/tilegx-c.c: Likewise.
28552         * config/tilegx/tilegx.c: Likewise.
28553         * config/tilepro/mul-tables.c: Likewise.
28554         * config/tilepro/tilepro-c.c: Likewise.
28555         * config/tilepro/tilepro.c: Likewise.
28556         * config/v850/v850-c.c: Likewise.
28557         * config/v850/v850.c: Likewise.
28558         * config/vax/vax.c: Likewise.
28559         * config/visium/visium.c: Likewise.
28560         * config/vms/vms-c.c: Likewise.
28561         * config/vms/vms.c: Likewise.
28562         * config/vxworks.c: Likewise.
28563         * config/winnt-c.c: Likewise.
28564         * config/xtensa/xtensa.c: Likewise.
28565         * common/config/bfin/bfin-common.c: Likewise.
28567 2015-06-04  Jan Hubicka  <hubicka@ucw.cz>
28569         * tree.h (tree_code_for_canonical_type_merging): New function.
28570         * tree.c (gimple_canonical_types_compatible_p): Use
28571         tree_code_for_canonical_type_merging..
28573 2015-06-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
28575         PR c++/66192
28576         PR target/66200
28577         * doc/tm.texi: Regenerate.
28578         * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
28579         * target.def (TARGET_RELAXED_ORDERING): Likewise.
28580         * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
28581         * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
28582         * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
28583         * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
28584         * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
28585         * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
28586         * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
28588 2015-06-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28590         * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
28591         register fma steering pass.
28592         * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
28593         AARCH64_TUNE_FMA_STEERING.
28595 2015-06-03  Jan Hubicka  <hubicka@ucw.cz>
28597         * tree.c (verify_type_variant): Verify that type and variant is
28598         compatible.
28599         (gimple_canonical_types_compatible_p): Look for main variants.
28601 2015-06-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
28603         * config.gcc (powerpc*-*-*): Add support for a new configure
28604         option --with-advance-toolchain=<xxx> which overrides using the
28605         default header files, libraries and dynamic linker.
28607         * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
28608         specs to support the configure --with-advance-toolchain=<xxx>
28609         option.
28610         (INCLUDE_EXTRA_SPEC): Likewise.
28611         (LINK_OS_EXTRA_SPEC32): Likewise.
28612         (LINK_OK_EXTRA_SPEC64): Likewise.
28613         (LINK_OS_NEW_DTAGS_SPEC): Likewise.
28614         (DYNAMIC_LINKER_PREFIX): Likewise.
28615         (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
28616         toolchain support.
28617         (GLIBC_DYNAMIC_LINKER32): Likewise.
28618         (GLIBC_DYNAMIC_LINKER64): Likewise.
28619         (LINK_OS_LINUX_SPEC32): Likewise.
28620         (LINK_OS_LINUX_SPEC64): Likewise.
28622         * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
28623         configuration option.
28625 2015-06-03  Uros Bizjak  <ubizjak@gmail.com>
28627         PR target/66275
28628         * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
28629         to determine current function ABI.
28630         (ix86_function_value_regno_p): Ditto.
28632 2015-06-03  Martin Liska  <mliska@suse.cz>
28634         * alloc-pool.h (struct pool_usage): Correct GNU coding style.
28635         * bitmap.h (struct bitmap_usage): Likewise.
28636         * ggc-common.c (struct ggc_usage): Likewise.
28637         * mem-stats.h (struct mem_location): Likewise.
28638         (struct mem_usage): Likewise.
28639         * vec.c (struct vec_usage): Likewise.
28641 2015-06-03  Benigno B. Junior  <bbj@gentoo.org>
28643         * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
28644         -Bsymbolic.
28646 2015-06-02  Andres Tiraboschi  <andres.tiraboschi@tallertechnologies.com>
28648         * doc/plugins.texi (enum plugin_event): New event.
28649         * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
28650         and PLUGIN_FINISH_FUNCTION.
28651         * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
28652         (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
28654 2015-06-03  Richard Biener  <rguenther@suse.de>
28656         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
28657         compute GROUP_GAP for the first element.
28658         * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
28659         on in-group gaps.
28661 2015-06-03  Nick Clifton  <nickc@redhat.com>
28663         * config/rl78/rl78-real.md: Add peepholes to avoid a register
28664         copy when calling a function.
28665         * config/rl78/rl78.c (need_to_save): Do not push the frame
28666         pointer in an interrupt handler prologue if it is never used.
28668 2015-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28670         * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
28672 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
28674         * ipa-chkp.c (chkp_maybe_create_clone): Create alias
28675         reference when cloning alias node.
28677 2015-06-03  Martin Liska  <mliska@suse.cz>
28679         * alloc-pool.h (struct pool_usage): Correct space padding.
28680         * ggc-page.c (ggc_print_statistics): Align columns in a report.
28681         * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
28682         * tree.c (dump_tree_statistics): Align columns in a report.
28684 2015-06-03  Martin Liska  <mliska@suse.cz>
28686         * alloc-pool.c (allocate_pool_descriptor): Remove.
28687         (struct pool_output_info): Likewise.
28688         (print_alloc_pool_statistics): Likewise.
28689         (dump_alloc_pool_statistics): Likewise.
28690         * alloc-pool.h (struct pool_usage): New struct.
28691         (pool_allocator::initialize): Change usage of memory statistics
28692         to a new interface.
28693         (pool_allocator::release): Likewise.
28694         (pool_allocator::allocate): Likewise.
28695         (pool_allocator::remove): Likewise.
28696         * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
28697         for a pool allocator.
28698         * mem-stats.h (struct mem_location): Add new ctor.
28699         (struct mem_usage): Add counter for number of
28700         instances.
28701         (mem_alloc_description::register_descriptor): New overload of
28702         * mem-stats.h (mem_location::to_string): New function.
28703         * bitmap.h (struct bitmap_usage): Use this new function.
28704         * ggc-common.c (struct ggc_usage): Likewise.
28705         the function.
28707 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
28709         * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
28710         of GCC_INSN_FLAGS_H block.
28712 2015-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
28714         * explow.c (plus_constant): Update check after force_const_mem call
28715         to see if the value returned is not a NULL_RTX.
28717 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
28719         * ipa.c (symbol_table::remove_unreachable_nodes): Don't
28720         remove instumentation thunks calling reachable functions.
28721         * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
28722         * lto/lto-partition.c (privatize_symbol_name_1): New.
28723         (privatize_symbol_name): Privatize both decl and orig_decl
28724         names for instrumented functions.
28725         * cgraph.c (cgraph_node::verify_node): Add transparent
28726         alias chain check for instrumented node.
28728 2015-06-03  Marek Polacek  <polacek@redhat.com>
28730         PR c/64223
28731         PR c/29358
28732         * tree.c (attribute_value_equal): Handle attribute format.
28733         (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
28735 2015-06-03  Richard Biener  <rguenther@suse.de>
28737         PR tree-optimization/63916
28738         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
28739         Forward-propagate non-invariant addresses by splicing their
28740         reference ops if the result isn't going to be used by PRE.
28741         (vn_reference_lookup_3): Remove pointless assert.
28743 2015-06-03  Richard Biener  <rguenther@suse.de>
28745         PR tree-optimization/66375
28746         * tree-scalar-evolution.c (follow_ssa_edge_binary): First
28747         add to the evolution before following SSA edges.
28749 2015-06-03  Bin Cheng  <bin.cheng@arm.com>
28751         * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
28752         (dump_use, dump_cand, find_induction_variables): Pass new argument
28753         to dump_iv.
28754         (record_use): Preserve the ssa name information in IV.
28756 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
28758         * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
28759         NO_MODE_TEST.
28760         (add_mode_tests): Don't add mode tests if the predicate only
28761         accepts scalar constant integers.  Otherwise, allow the mode
28762         of "op" to be VOIDmode if the predicate does accept such integers.
28764 2015-06-02  Jim Wilson  <jim.wilson@linaro.org>
28766         PR target/66258
28767         * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
28768         !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
28769         (aarch64_secondary_reload): Likewise
28770         (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
28771         to !TARGET_FLOAT.
28772         (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
28773         Likewise.
28775 2015-06-03  Kugan Vivekanandarajah  <kuganv@linaro.org>
28776             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
28778         PR target/65768
28779         * cprop.c (try_replace_reg): Check cost of constants before propagating.
28781 2015-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
28783         * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
28784         provide access to the IBM extended double floating point mode if
28785         long double is IEEE 128-bit floating point.
28786         (KFmode): Define KFmode to provide access to IEEE 128-bit floating
28787         point if long double is the IBM extended double type.
28789         * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
28790         enable adding IEEE 128-bit floating point support.
28791         (-mfloat128-software): Likewise.
28792         (-mfloat128-sw): Likewise.
28794         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
28795         128-bit floating point types to occupy any register if
28796         -mlong-double-64.  Do not allow use of IFmode/KFmode unless
28797         -mfloat128-software is enabled.
28798         (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
28799         support.
28800         (rs6000_option_override_internal): Add -mfloat128-* support.
28801         (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
28803         * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
28804         and float128 type nodes.
28805         (ieee128_float_type_node): Likewise.
28806         (ibm128_float_type_node): Likewise.
28808 2015-06-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
28810         PR target/66136
28811         * config/aarch64/geniterators.sh: Rewrite in awk.
28813 2015-06-02  Martin Liska  <mliska@suse.cz>
28815         * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
28816         values to avoid -Wmaybe-uninitialized errors.
28818 2015-06-02  Richard Biener  <rguenther@suse.de>
28820         PR debug/65549
28821         * dwarf2out.c (lookup_context_die): New function.
28822         (resolve_addr): Avoid forcing a full DIE for the
28823         target of a DW_TAG_GNU_call_site during late compilation.
28824         Instead create a stub DIE without a type if we have a
28825         context DIE present.
28827 2015-06-02  Uros Bizjak  <ubizjak@gmail.com>
28829         * df-scan.c (df_scan_start_dump): Add space between regno and regname.
28831 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
28833         PR tree-optimization/48052
28834         * cfgloop.h (struct control_iv): New.
28835         (struct loop): New field control_ivs.
28836         * tree-ssa-loop-niter.c : Include "stor-layout.h".
28837         (number_of_iterations_lt): Set no_overflow information.
28838         (number_of_iterations_exit): Init control iv in niter struct.
28839         (record_control_iv): New.
28840         (estimate_numbers_of_iterations_loop): Call record_control_iv.
28841         (loop_exits_before_overflow): New.  Interface factored out of
28842         scev_probably_wraps_p.
28843         (scev_probably_wraps_p): Factor loop niter related code into
28844         loop_exits_before_overflow.
28845         (free_numbers_of_iterations_estimates_loop): Free control ivs.
28846         * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
28848 2015-06-02  Eric Botcazou  <ebotcazou@adacore.com>
28850         * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
28851         the target doesn't belong to the current function.
28853 2015-06-02  Marek Polacek  <polacek@redhat.com>
28855         PR middle-end/66345
28856         * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
28857         get_maxval_strlen does not produce an INTEGER_CST.
28859 2015-06-02  Richard Sandiford  <richard.sandiford@arm.com>
28861         * config/arc/constraints.md: Use lower-case names in match_code.
28862         * config/mmix/constraints.md: Likewise.
28864 2015-06-02  Richard Biener  <rguenther@suse.de>
28866         PR tree-optimization/65961
28867         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
28868         check and clarify dump message.
28869         (vect_build_slp_tree): If all children are built up from scalars
28870         build up the parent from scalars instead.
28871         * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
28873 2015-06-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
28875         PR other/65366
28876         * gdbhooks.py: Use int(...) instead of long(...).  Use print(...)
28877         instead of print ... .
28879 2015-06-02  Alan Modra  <amodra@gmail.com>
28881         * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
28882         2014-08-11 change.
28884 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
28886         PR tree-optimization/52563
28887         PR tree-optimization/62173
28888         * tree-ssa-loop-ivopts.c (struct iv): New field.  Reorder fields.
28889         (alloc_iv, set_iv): New parameter.
28890         (determine_biv_step): Delete.
28891         (find_bivs): Inline original determine_biv_step.  Pass new
28892         argument to set_iv.
28893         (idx_find_step): Use no_overflow information for conversion.
28894         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
28895         resolve_mixers handle folded_casts.
28896         (instantiate_scev_name): Change bool parameter to bool pointer.
28897         (instantiate_scev_poly, instantiate_scev_binary): Ditto.
28898         (instantiate_array_ref, instantiate_scev_not): Ditto.
28899         (instantiate_scev_3, instantiate_scev_2): Ditto.
28900         (instantiate_scev_1, instantiate_scev_r): Ditto.
28901         (instantiate_scev_convert, ): Change parameter.  Pass argument
28902         to chrec_convert_aggressive.
28903         (instantiate_scev): Change argument.
28904         (resolve_mixers): New parameter and set it.
28905         (scev_const_prop): New argument.
28906         * tree-scalar-evolution.h (resolve_mixers): New parameter.
28907         * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
28908         of chrec_conert_1.
28909         (chrec_convert): New parameter.  Move definition below.
28910         (chrec_convert_aggressive): New parameter and set it.  Call
28911         convert_affine_scev.
28912         * tree-chrec.h (chrec_convert): New parameter.
28913         (chrec_convert_aggressive): Ditto.
28915 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
28917         * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
28918         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
28919         the LHS of a no-return call if its type has variable size.
28920         * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
28921         * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
28923 2015-06-01  Andreas Tobler  <andreast@gcc.gnu.org>
28925         * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
28926         * config.in: Regenerate.
28928 2015-06-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
28930         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
28931         consecutive accesses within outer-loop with force_vectorize
28932         for references with zero step in inner-loop.
28934 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
28936         * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
28937         rather than from gcc/build directory.
28939 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
28941         PR target/65697
28942         * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
28943         for __sync memory models, emit initial loads and final barriers as
28944         appropriate.
28946 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
28948         PR target/65697
28949         * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
28950         (aarch64_split_atomic_op): Check for __sync memory models, emit
28951         appropriate initial loads and final barriers.
28953 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
28955         * Makefile.in: Fix gcov dependencies that should
28956         not point to a build folder.
28958 2015-06-01  Richard Biener  <rguenther@suse.de>
28960         Revert
28961         2015-05-29  Richard Biener  <rguenther@suse.de>
28963         PR tree-optimization/66314
28964         * tree-ssa-threadupdate.c (create_block_for_threading): Add
28965         parameter that says which loop the new block belongs to.
28966         (ssa_create_duplicates): Blocks duplicated for the threaded
28967         path belong to the loop of the thread destination.
28969 2015-06-01  Martin Liska  <mliska@suse.cz>
28971         * sched-deps.c: Include pool-alloc.h before
28972         cselib.h header file is included.
28974 2015-06-01  Richard Biener  <rguenther@suse.de>
28976         * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
28977         functions.
28979 2015-06-01  Martin Liska  <mliska@suse.cz>
28981         * alloc-pool.h: Add ATTRIBUTE_UNUSED for
28982         a function local variable.
28984 2015-06-01  Martin Liska  <mliska@suse.cz>
28986         * alloc-pool.c (create_alloc_pool): Remove.
28987         (empty_alloc_pool): Likewise.
28988         (free_alloc_pool): Likewise.
28989         (free_alloc_pool_if_empty): Likewise.
28990         (pool_alloc): Likewise.
28991         (pool_free): Likewise.
28992         * alloc-pool.h: Remove old declarations.
28994 2015-06-01  Martin Liska  <mliska@suse.cz>
28996         * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
28997         (ira_create_object): Likewise.
28998         (ira_create_allocno): Likewise.
28999         (ira_create_live_range): Likewise.
29000         (copy_live_range): Likewise.
29001         (ira_finish_live_range): Likewise.
29002         (ira_free_allocno_costs): Likewise.
29003         (finish_allocno): Likewise.
29004         (finish_allocnos): Likewise.
29005         (initiate_prefs): Likewise.
29006         (ira_create_pref): Likewise.
29007         (finish_pref): Likewise.
29008         (finish_prefs): Likewise.
29009         (initiate_copies): Likewise.
29010         (ira_create_copy): Likewise.
29011         (finish_copy): Likewise.
29012         (finish_copies): Likewise.
29013         (finish_prefs): Likewise.
29015 2015-06-01  Martin Liska  <mliska@suse.cz>
29017         * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
29018         (allocate_and_init_ipcp_value): Likewise.
29019         (ipcp_lattice::add_value): Likewise.
29020         (merge_agg_lats_step): Likewise.
29021         (ipcp_driver): Likewise.
29022         * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
29023         (ipa_free_all_structures_after_iinln): Likewise.
29024         * ipa-prop.h: Likewise.
29026 2015-06-01  Martin Liska  <mliska@suse.cz>
29028         * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
29029         pool allocator.
29030         (set_hint_predicate): Likewise.
29031         (inline_summary_alloc): Likewise.
29032         (reset_inline_edge_summary): Likewise.
29033         (reset_inline_summary): Likewise.
29034         (set_cond_stmt_execution_predicate): Likewise.
29035         (set_switch_stmt_execution_predicate): Likewise.
29036         (compute_bb_predicates): Likewise.
29037         (estimate_function_body_sizes): Likewise.
29038         (inline_free_summary): Likewise.
29040 2015-06-01  Martin Liska  <mliska@suse.cz>
29042         * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
29043         (ipa_edge_duplication_hook): Likewise.
29044         (ipa_free_all_structures_after_ipa_cp): Likewise.
29045         (ipa_free_all_structures_after_iinln): Likewise.
29047 2015-06-01  Martin Liska  <mliska@suse.cz>
29049         * ipa-profile.c (account_time_size): Use new type-based pool allocator.
29050         (ipa_profile_generate_summary): Likewise.
29051         (ipa_profile_read_summary): Likewise.
29052         (ipa_profile): Likewise.
29054 2015-06-01  Martin Liska  <mliska@suse.cz>
29056         * tree-ssa-structalias.c (new_var_info): Use new type-based
29057         pool allocator.
29058         (new_constraint): Likewise.
29059         (init_alias_vars): Likewise.
29060         (delete_points_to_sets): Likewise.
29062 2015-06-01  Martin Liska  <mliska@suse.cz>
29064         * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
29065         (free_strinfo): Likewise.
29066         (pass_strlen::execute): Likewise.
29068 2015-06-01  Martin Liska  <mliska@suse.cz>
29070         * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
29071         pool allocator.
29072         (vn_reference_insert_pieces): Likewise.
29073         (vn_phi_insert): Likewise.
29074         (visit_reference_op_call): Likewise.
29075         (copy_phi): Likewise.
29076         (copy_reference): Likewise.
29077         (process_scc): Likewise.
29078         (allocate_vn_table): Likewise.
29079         (free_vn_table): Likewise.
29081 2015-06-01  Martin Liska  <mliska@suse.cz>
29083         * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
29084         pool allocator.
29085         (add_repeat_to_ops_vec): Likewise.
29086         (get_ops): Likewise.
29087         (maybe_optimize_range_tests): Likewise.
29088         (init_reassoc): Likewise.
29089         (fini_reassoc): Likewise.
29091 2015-06-01  Martin Liska  <mliska@suse.cz>
29093         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
29094         pool allocator.
29095         (bitmap_set_new): Likewise.
29096         (get_or_alloc_expr_for_constant): Likewise.
29097         (get_or_alloc_expr_for): Likewise.
29098         (phi_translate_1): Likewise.
29099         (compute_avail): Likewise.
29100         (init_pre): Likewise.
29101         (fini_pre): Likewise.
29103 2015-06-01  Martin Liska  <mliska@suse.cz>
29105         * sched-deps.c (create_dep_node): Use new type-based pool allocator.
29106         (delete_dep_node): Likewise.
29107         (create_deps_list): Likewise.
29108         (free_deps_list): Likewise.
29109         (sched_deps_init): Likewise.
29110         (sched_deps_finish): Likewise.
29112 2015-06-01  Martin Liska  <mliska@suse.cz>
29114         * regcprop.c (free_debug_insn_changes): Use new type-based
29115         pool allocator.
29116         (replace_oldest_value_reg): Likewise.
29117         (pass_cprop_hardreg::execute): Likewise.
29119 2015-06-01  Martin Liska  <mliska@suse.cz>
29121         * ira-build.c (initiate_cost_vectors): Use new type-based
29122         pool allocator.
29123         (ira_allocate_cost_vector): Likewise.
29124         (ira_free_cost_vector): Likewise.
29125         (finish_cost_vectors): Likewise.
29127 2015-06-01  Martin Liska  <mliska@suse.cz>
29129         * sel-sched-ir.c (alloc_sched_pools): Use new type-based
29130         pool allocator.
29131         (free_sched_pools): Likewise.
29132         * sel-sched-ir.h (_list_alloc): Likewise.
29133         (_list_remove): Likewise.
29135 2015-06-01  Martin Liska  <mliska@suse.cz>
29137         * stmt.c (add_case_node): Use new type-based pool allocator.
29138         (expand_case): Likewise.
29139         (expand_sjlj_dispatch_table): Likewise.
29141 2015-06-01  Martin Liska  <mliska@suse.cz>
29143         * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
29144         (free_bb): Likewise.
29145         (pass_cse_reciprocals::execute): Likewise.
29147 2015-06-01  Martin Liska  <mliska@suse.cz>
29149         * tree-sra.c (sra_initialize): Use new type-based pool allocator.
29150         (sra_deinitialize) Likewise.
29151         (create_access_1) Likewise.
29152         (build_accesses_from_assign) Likewise.
29153         (create_artificial_child_access) Likewise.
29155 2015-06-01  Martin Liska  <mliska@suse.cz>
29157         * dse.c (get_group_info):Use new type-based pool allocator.
29158         (dse_step0) Likewise.
29159         (free_store_info) Likewise.
29160         (delete_dead_store_insn) Likewise.
29161         (free_read_records) Likewise.
29162         (record_store) Likewise.
29163         (replace_read) Likewise.
29164         (check_mem_read_rtx) Likewise.
29165         (scan_insn) Likewise.
29166         (dse_step1) Likewise.
29167         (dse_step7) Likewise.
29169 2015-06-01  Martin Liska  <mliska@suse.cz>
29171         * df-scan.c (struct df_scan_problem_data):Use new type-based
29172         pool allocator.
29173         (df_scan_free_internal) Likewise.
29174         (df_scan_alloc) Likewise.
29175         (df_grow_reg_info) Likewise.
29176         (df_free_ref) Likewise.
29177         (df_insn_create_insn_record) Likewise.
29178         (df_mw_hardreg_chain_delete) Likewise.
29179         (df_insn_info_delete) Likewise.
29180         (df_free_collection_rec) Likewise.
29181         (df_mw_hardreg_chain_delete_eq_uses) Likewise.
29182         (df_sort_and_compress_mws) Likewise.
29183         (df_ref_create_structure) Likewise.
29184         (df_ref_record) Likewise.
29186 2015-06-01  Martin Liska  <mliska@suse.cz>
29188         * df-problems.c (df_chain_create):Use new type-based pool allocator.
29189         (df_chain_unlink_1) Likewise.
29190         (df_chain_unlink) Likewise.
29191         (df_chain_remove_problem) Likewise.
29192         (df_chain_alloc) Likewise.
29193         (df_chain_free) Likewise.
29194         * df.h (struct dataflow) Likewise.
29196 2015-06-01  Martin Liska  <mliska@suse.cz>
29198         * cselib.c (new_elt_list):Use new type-based pool allocator.
29199         (new_elt_loc_list) Likewise.
29200         (unchain_one_elt_list) Likewise.
29201         (unchain_one_elt_loc_list) Likewise.
29202         (unchain_one_value) Likewise.
29203         (new_cselib_val) Likewise.
29204         (cselib_init) Likewise.
29205         (cselib_finish) Likewise.
29207 2015-06-01  Martin Liska  <mliska@suse.cz>
29209         * config/sh/sh.c (add_constant):Use new type-based pool allocator.
29210         (sh_reorg) Likewise.
29212 2015-06-01  Martin Liska  <mliska@suse.cz>
29214         * cfg.c (initialize_original_copy_tables):Use new type-based
29215         pool allocator.
29216         (free_original_copy_tables) Likewise.
29217         (copy_original_table_clear) Likewise.
29218         (copy_original_table_set) Likewise.
29220 2015-06-01  Martin Liska  <mliska@suse.cz>
29222         * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
29223         pool allocator.
29224         (asan_mem_ref_new) Likewise.
29225         (free_mem_ref_resources) Likewise.
29227 2015-06-01  Martin Liska  <mliska@suse.cz>
29229         * var-tracking.c (variable_htab_free):Use new type-based
29230         pool allocator.
29231         (attrs_list_clear) Likewise.
29232         (attrs_list_insert) Likewise.
29233         (attrs_list_copy) Likewise.
29234         (shared_hash_unshare) Likewise.
29235         (shared_hash_destroy) Likewise.
29236         (unshare_variable) Likewise.
29237         (var_reg_delete_and_set) Likewise.
29238         (var_reg_delete) Likewise.
29239         (var_regno_delete) Likewise.
29240         (drop_overlapping_mem_locs) Likewise.
29241         (variable_union) Likewise.
29242         (insert_into_intersection) Likewise.
29243         (canonicalize_values_star) Likewise.
29244         (variable_merge_over_cur) Likewise.
29245         (dataflow_set_merge) Likewise.
29246         (remove_duplicate_values) Likewise.
29247         (variable_post_merge_new_vals) Likewise.
29248         (dataflow_set_preserve_mem_locs) Likewise.
29249         (dataflow_set_remove_mem_locs) Likewise.
29250         (variable_from_dropped) Likewise.
29251         (variable_was_changed) Likewise.
29252         (set_slot_part) Likewise.
29253         (clobber_slot_part) Likewise.
29254         (delete_slot_part) Likewise.
29255         (loc_exp_insert_dep) Likewise.
29256         (notify_dependents_of_changed_value) Likewise.
29257         (emit_notes_for_differences_1) Likewise.
29258         (vt_emit_notes) Likewise.
29259         (vt_initialize) Likewise.
29260         (vt_finalize) Likewise.
29262 2015-06-01  Martin Liska  <mliska@suse.cz>
29264         * ira-color.c (init_update_cost_records):Use new type-based
29265         pool allocator.
29266         (get_update_cost_record) Likewise.
29267         (free_update_cost_record_list) Likewise.
29268         (finish_update_cost_records) Likewise.
29269         (initiate_cost_update) Likewise.
29271 2015-06-01  Martin Liska  <mliska@suse.cz>
29273         * lra.c (init_insn_regs): Use new type-based pool allocator.
29274         (new_insn_reg) Likewise.
29275         (free_insn_reg) Likewise.
29276         (free_insn_regs) Likewise.
29277         (finish_insn_regs) Likewise.
29278         (init_insn_recog_data) Likewise.
29279         (init_reg_info) Likewise.
29280         (finish_reg_info) Likewise.
29281         (lra_free_copies) Likewise.
29282         (lra_create_copy) Likewise.
29283         (invalidate_insn_data_regno_info) Likewise.
29285 2015-06-01  Martin Liska  <mliska@suse.cz>
29287         * lra-lives.c (free_live_range): Use new type-based pool allocator.
29288         (free_live_range_list) Likewise.
29289         (create_live_range) Likewise.
29290         (copy_live_range) Likewise.
29291         (lra_merge_live_ranges) Likewise.
29292         (remove_some_program_points_and_update_live_ranges) Likewise.
29293         (lra_live_ranges_init) Likewise.
29294         (lra_live_ranges_finish) Likewise.
29296 2015-06-01  Martin Liska  <mliska@suse.cz>
29298         * et-forest.c (et_new_occ): Use new type-based pool allocator.
29299         (et_new_tree): Likewise.
29300         (et_free_tree): Likewise.
29301         (et_free_tree_force): Likewise.
29302         (et_free_pools): Likewise.
29303         (et_split): Likewise.
29305 2015-06-01  Martin Liska  <mliska@suse.cz>
29307         * alloc-pool.c (struct alloc_pool_descriptor): Move definition
29308         to header file.
29309         * alloc-pool.h (pool_allocator::pool_allocator): New function.
29310         (pool_allocator::release): Likewise.
29311         (inline pool_allocator::release_if_empty): Likewise.
29312         (inline pool_allocator::~pool_allocator): Likewise.
29313         (pool_allocator::allocate): Likewise.
29314         (pool_allocator::remove): Likewise.
29316 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
29318         * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
29319         in comment.
29321 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
29323         * config/arm/arm-protos.h (tune_params): Rename fuseable_ops
29324         to fusible_ops.
29325         * config/arm/arm.c (arm_print_tune_info): Likewise.
29326         (arm_macro_fusion_p): Likewise.
29327         (arm_macro_fusion_pair_p): Likewise.
29329 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
29331         * config/aarch64/aarch64-protos.h (tune_params): Rename
29332         fuseable_ops to fusible_ops.
29333         * config/aarch64/aarch64.c (generic_tunings): Rename
29334         fuseable_ops to fusible_ops.
29335         (cortexa53_tunings): Likewise.
29336         (cortexa57_tunings): Likewise.
29337         (thunderx_tunings): Likewise.
29338         (xgene1_tunings): Likewise.
29339         (aarch64_macro_fusion_p): Likewise.
29340         (aarch64_macro_fusion_pair_p): Likewise.
29342 2015-06-01  Dominik Vogt  <vogt@linux.vnet.ibm.com>
29344         * config/s390/driver-native.c: New file.
29345         * config/s390/x-native: New file.
29346         * config.host: Add new files for s390.
29347         * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
29348         and -march=native
29349         * config.gcc: Likewise.
29350         * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
29351         * config/s390/s390-opts.h (enum processor_type): Ditto.
29352         * config/s390/s390.c (s390_option_override): Catch unhandled
29353         PROCESSOR_NATIVE
29355 2015-06-01  Ilya Enkovich  <ilya.enkovich@intel.com>
29357         PR target/65527
29358         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
29359         redirection for instrumented calls.
29360         * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
29361         (append_compiler_options): Append -fcheck-pointer-bounds.
29362         * tree-chkp.h (chkp_copy_call_skip_bounds): New.
29363         (chkp_redirect_edge): New.
29364         * tree-chkp.c (chkp_copy_call_skip_bounds): New.
29365         (chkp_redirect_edge): New.
29367 2015-06-01  Richard Biener  <rguenther@suse.de>
29369         PR tree-optimization/66280
29370         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
29371         def-use walking.
29373 2015-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29375         * config/aarch64/aarch64.md
29376         (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
29377         logic_shift_imm.
29379 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
29381         * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
29382         Remove obsolete kludge.
29384 2015-06-01  Richard Biener  <rguenther@suse.de>
29386         * tree-ssa-reassoc.c (get_rank): Simplify.
29388 2015-05-31  H.J. Lu  <hongjiu.lu@intel.com>
29390         * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
29391         * configure: Regenerated.
29393 2015-05-31  Mikhail Maltsev  <maltsevm@gmail.com>
29395         * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
29396         issue (add space between string literal and macro).
29397         * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
29399 2015-05-30  Andreas Schwab  <schwab@linux-m68k.org>
29401         * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
29402         implict or explicit -fPIE or -fpie.
29404 2015-05-30  Mike Frysinger  <vapier@gentoo.org>
29406         * config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
29408 2015-05-28  DJ Delorie  <dj@redhat.com>
29410         * expmed.c (extract_bit_field_1): Avoid clobbering a
29411         yet-to-be-used base/index register.
29413 2015-05-30  Jan Hubicka  <hubicka@ucw.cz>
29415         * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
29416         (alias_stats): Add num_universal.
29417         (alias_set_subset_of): Special case pointers; be ready for NULL
29418         children.
29419         (alias_sets_conflict_p): Special case pointers; be ready for NULL
29420         children.
29421         (init_alias_set_entry): Break out from ...
29422         (record_alias_subset): ... here; propagate new fields;
29423         allocate children only when really needed.
29424         (get_alias_set): Do less generous pointer globbing.
29425         (dump_alias_stats_in_alias_c): Update statistics.
29427 2015-05-30  Alan Modra  <amodra@gmail.com>
29429         * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
29430         correct block for use of r12.
29431         (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
29433 2015-05-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
29435         PR target/66215
29436         * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
29437         with -mhotpatch=.
29439 2015-05-29  Jakub Jelinek  <jakub@redhat.com>
29441         PR tree-optimization/66142
29442         * tree-if-conv.c (if_convertible_phi_p): Don't give up on
29443         virtual phis that feed themselves.
29445 2015-05-29  Richard Biener  <rguenther@suse.de>
29447         PR tree-optimization/66314
29448         * tree-ssa-threadupdate.c (create_block_for_threading): Add
29449         parameter that says which loop the new block belongs to.
29450         (ssa_create_duplicates): Blocks duplicated for the threaded
29451         path belong to the loop of the thread destination.
29453 2015-05-29  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
29455         * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
29456         to cleanup-saved-temps.
29457         * doc/sourcebuild.texi (Clean up generated test files): Expand
29458         introduction.
29459         (dg-keep-saved-temps): Document new proc.
29460         (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
29461         cleanup-saved-temps): Remove.
29463 2015-05-28  Andreas Tobler  <andreast@gcc.gnu.org>
29465         * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
29466         gcc_AC_CHECK_DECLS.
29467         * configure: Regenerate.
29469 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
29471         * config/nios2/linux.h (CPP_SPEC): Define.
29473 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
29475         * config/microblaze/linux.h (CPP_SPEC): Define.
29477 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
29479         * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
29480         -pthread is specified.
29482 2015-05-28  Richard Biener  <rguenther@suse.de>
29484         * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
29485         (vect_fixup_scalar_cycles_with_patterns): Likewise.
29486         (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
29487         after pattern recog.
29488         (vect_create_epilog_for_reduction): Properly handle reductions
29489         with patterns.
29490         (vectorizable_reduction): Likewise.
29491         * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
29492         reduction chains.
29493         (vect_get_constant_vectors): Create the correct number of
29494         initial values for reductions.
29495         (vect_schedule_slp_instance): Handle reduction chains that are
29496         type changing properly.
29497         * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
29499 2015-05-28  Richard Biener  <rguenther@suse.de>
29501         PR tree-optimization/66142
29502         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
29503         values better in memcpy destination handling.  Handle non-aliasing
29504         we discover here.
29506 2015-05-28  Lawrence Velázquez  <vq@larryv.me>
29508         PR target/63810
29509         * config/darwin-c.c (version_components): New global enum.
29510         (parse_version, version_as_legacy_macro)
29511         (version_as_modern_macro, macosx_version_as_macro): New functions.
29512         (version_as_macro): Remove.
29513         (darwin_cpp_builtins): Use new function.
29515 2015-05-28  H.J. Lu  <hongjiu.lu@intel.com>
29517         * builtins.c (expand_builtin_acc_on_device): Mark parameters
29518         with ATTRIBUTE_UNUSED.
29520 2015-05-28  Julian Brown  <julian@codesourcery.com>
29522         PR libgomp/65742
29524         * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
29525         sequence for !ACCEL_COMPILER.
29527 2015-05-28  Nick Clifton  <nickc@redhat.com>
29529         * config/rx/rx.c (push_regs): New function.  Extracts code from...
29530         (rx_expand_prologue): ... here.  Use push_regs to push even small
29531         spans of registers.
29532         (pop_regs): New function.
29533         (rx_expand_epilogue):  Use pop_regs to pop even small spans of
29534         registers.
29536 2015-05-28  Richard Biener  <rguenther@suse.de>
29538         * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
29539         member.
29540         (SLP_INSTANCE_BODY_COST_VEC): Remove.
29541         (vect_update_slp_costs_according_to_vf): Likewise.
29542         (vect_slp_analyze_operations): Update prototype.
29543         * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
29544         vect_update_slp_costs_according_to_vf, adjust.
29545         * tree-vect-slp.c (vect_free_slp_instance): Adjust.
29546         (vect_analyze_slp_cost_1): Likewise.
29547         (vect_analyze_slp_cost): Likewise.  Properly deal with
29548         widening reduction ops.  Commit body costs.
29549         (vect_analyze_slp_instance): Adjust.  Do not analyze SLP
29550         cost for loops from here.
29551         (vect_slp_analyze_operations): But do it from here when
29552         the vectorization factor is known and stmts are analyzed.
29553         (vect_bb_vectorization_profitable_p): Simplify.
29554         (vect_slp_analyze_bb_1): Do not compute SLP cost here.
29555         (vect_update_slp_costs_according_to_vf): Remove.
29557 2015-05-27  Magnus Granberg  <zorry@gentoo.org>
29558             H.J. Lu  <hongjiu.lu@intel.com>
29560         * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
29561         (BUILD_CFLAGS): Likewise.
29562         (BUILD_CXXFLAGS): Likewise.
29563         (LINKER): Add @NO_PIE_FLAG@.
29564         (BUILD_LDFLAGS): Likewise.
29565         (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
29566         --enable-default-pie.
29567         * common.opt (fPIE): Initialize to -1.
29568         (fpie): Likewise.
29569         (no-pie): New option.
29570         (pie): Replace "Negative(shared)" with "Negative(no-pie)".
29571         * configure.ac: Add --enable-default-pie.
29572         (NO_PIE_CFLAGS): New.  Check if -fno-PIE works.  AC_SUBST.
29573         (NO_PIE_FLAG): New.  Check if -no-pie works.  AC_SUBST.
29574         * defaults.h (DEFAULT_FLAG_PIE): New.  Default PIE to -fPIE.
29575         * gcc.c (NO_PIE_SPEC): New.
29576         (PIE_SPEC): Likewise.
29577         (NO_FPIE1_SPEC): Likewise.
29578         (FPIE1_SPEC): Likewise.
29579         (NO_FPIE2_SPEC): Likewise.
29580         (FPIE2_SPEC): Likewise.
29581         (NO_FPIE2_SPEC): Likewise.
29582         (FPIE_SPEC): Likewise.
29583         (NO_FPIE_SPEC): Likewise.
29584         (NO_FPIC1_SPEC): Likewise.
29585         (FPIC1_SPEC): Likewise.
29586         (NO_FPIC2_SPEC): Likewise.
29587         (FPIC2_SPEC): Likewise.
29588         (NO_FPIC2_SPEC): Likewise.
29589         (FPIC_SPEC): Likewise.
29590         (NO_FPIC_SPEC): Likewise.
29591         (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
29592         (FPIE1_OR_FPIC1_SPEC): Likewise.
29593         (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
29594         (FPIE2_OR_FPIC2_SPEC): Likewise.
29595         (NO_FPIE_AND_FPIC_SPEC): Likewise.
29596         (FPIE_OR_FPIC_SPEC): Likewise.
29597         (LD_PIE_SPEC): Likewise.
29598         (LINK_PIE_SPEC): Handle -no-pie.  Use PIE_SPEC and LD_PIE_SPEC.
29599         * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
29600         * config/darwin.h (PIE_SPEC): Renamed to ...
29601         (DARWIN_PIE_SPEC): This.
29602         (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
29603         * config/darwin9.h (PIE_SPEC): Renamed to ...
29604         (DARWIN_PIE_SPEC): This.
29605         * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
29606         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
29607         * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
29608         FPIE2_OR_FPIC2_SPEC.
29609         * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
29610         * config/m68k/openbsd.h (ASM_SPEC): Likewise.
29611         * config/sol2.h (ASM_PIC_SPEC): Likewise.
29612         * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
29613         * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
29614         * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
29615         * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
29616         * config/m32r/m32r.h (ASM_SPEC): Likewise.
29617         * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
29618         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
29619         * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
29620         * config/sparc/freebsd.h (ASM_SPEC): Likewise.
29621         * config/sparc/linux.h (ASM_SPEC): Likewise.
29622         * config/sparc/linux64.h (ASM_SPEC): Likewise.
29623         * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
29624         * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
29625         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
29626         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
29627         * config/sparc/sparc.h (ASM_SPEC): Likewise.
29628         * config/sparc/sysv4.h (ASM_SPEC): Likewise.
29629         * config/sparc/vxworks.h (ASM_SPEC): Likewise.
29630         * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
29631         FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
29632         * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
29633         * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
29634         NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
29635         (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
29636         * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
29637         * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
29638         * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
29639         * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
29640         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
29641         * config/vax/linux.h (ASM_SPEC): Likewise.
29642         * doc/install.texi: Document --enable-default-pie.
29643         * doc/invoke.texi: Document -no-pie.
29644         * config.in: Regenerated.
29645         * configure: Likewise.
29647 2015-05-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
29649         PR rtl-optimization/66168
29650         * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
29651         can_move_invariant_reg.
29653 2015-05-27  John David Anglin  <danglin@gcc.gnu.org>
29655         PR target/66148
29656         * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
29657         REG_EQUAL note when doing insert.
29659         * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
29660         instead of "%d" for 'o' operand.
29662 2015-05-27  Nathan Sidwell  <nathan@acm.org>
29664         PR c++/66270
29665         * tree.c (build_pointer_type_for_mode): Canonical type does not
29666         inherit can_alias_all.
29667         (build_reference_type_for_mode): Likewise.
29669 2015-05-27  Eric Botcazou  <ebotcazou@adacore.com>
29671         * expr.h (array_at_struct_end_p): Move to...
29672         (array_ref_element_size): Likewise.
29673         (component_ref_field_offset): Likewise.
29674         * tree.h (array_ref_element_size): ...here.
29675         (array_at_struct_end_p): Likewise.
29676         (component_ref_field_offset): Likewise.
29677         * expr.c (array_ref_element_size): Move to...
29678         (array_ref_low_bound): Likewise.
29679         (array_at_struct_end_p): Likewise.
29680         (array_ref_up_bound): Likewise.
29681         (component_ref_field_offset): Likewise.
29682         * tree.c (array_ref_element_size): ...here.
29683         (array_ref_low_bound): Likewise.
29684         (array_ref_up_bound): Likewise.
29685         (array_at_struct_end_p): Likewise.
29686         (component_ref_field_offset): Likewise.
29688 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
29689             Szabolcs Nagy  <szabolcs.nagy@arm.com>
29691         * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
29693 2015-05-27  Jason Merrill  <jason@redhat.com>
29695         PR bootstrap/66304
29696         * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
29697         ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
29698         ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
29700 2015-05-22  Aditya Kumar  <hiraditya@msn.com>
29702         * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
29703         is true.
29705         * statistics.c (statistics_fini_pass): Print pass name.
29707 2015-05-27  Richard Biener  <rguenther@suse.de>
29709         PR tree-optimization/66272
29710         Revert parts of
29711         2014-08-15  Richard Biener  <rguenther@suse.de>
29713         PR tree-optimization/62031
29714         * tree-data-ref.c (dr_analyze_indices): Do not set
29715         DR_UNCONSTRAINED_BASE.
29716         (dr_may_alias_p): All indirect accesses have to go the
29717         formerly DR_UNCONSTRAINED_BASE path.
29718         * tree-data-ref.h (struct indices): Remove
29719         unconstrained_base member.
29720         (DR_UNCONSTRAINED_BASE): Remove.
29722 2015-05-27  Aldy Hernandez  <aldyh@redhat.com>
29724         * dwarf2out.c: Remove block_map.
29725         (gen_call_site_die): Replace block_map use with BLOCK_DIE.
29726         (gen_lexical_block_die): Same.
29727         (dwarf2out_function_decl): Remove block_map use.
29728         (dwarf2out_c_finalize): Same.
29729         * tree-core.h (struct tree_block): Add die field.
29730         * tree.h (BLOCK_DIE): New.
29732 2015-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29734         PR target/65358
29735         * expr.c (memory_load_overlap): New function.
29736         (emit_push_insn): When pushing partial args to the stack would
29737         clobber the register part load the overlapping part into a pseudo
29738         and put it into the hard reg after pushing.  Change return type
29739         to bool.  Add bool argument.
29740         * expr.h (emit_push_insn): Change return type to bool.
29741         Add bool argument.
29742         * calls.c (expand_call): Cancel sibcall optimization when encountering
29743         partial argument on targets with ARGS_GROW_DOWNWARD and
29744         !STACK_GROWS_DOWNWARD.
29745         (emit_library_call_value_1): Update callsite of emit_push_insn.
29746         (store_one_arg): Likewise.
29748 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
29750         * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
29752 2015-05-27  Martin Liska  <mliska@suse.cz>
29754         * Makefile.in: Add additional dependencies related to memory report
29755         enhancement.
29756         * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
29757         * bitmap.c (struct bitmap_descriptor_d): Remove.
29758         (struct loc): Likewise.
29759         (struct bitmap_desc_hasher): Likewise.
29760         (bitmap_desc_hasher::hash): Likewise.
29761         (bitmap_desc_hasher::equal): Likewise.
29762         (get_bitmap_descriptor): Likewise.
29763         (bitmap_register): User new memory descriptor API.
29764         (register_overhead): Likewise.
29765         (bitmap_find_bit): Register nsearches and search_iter statistics.
29766         (struct bitmap_output_info): Remove.
29767         (print_statistics): Likewise.
29768         (dump_bitmap_statistics): Use new memory descriptor.
29769         * bitmap.h (struct bitmap_usage): New class.
29770         * genmatch.c: Extend header file inclusion.
29771         * genpreds.c: Likewise.
29772         * ggc-common.c (struct ggc_usage): New class.
29773         (struct ggc_loc_desc_hasher): Remove.
29774         (ggc_loc_desc_hasher::hash): Likewise.
29775         (ggc_loc_desc_hasher::equal): Likewise.
29776         (struct ggc_ptr_hash_entry): Likewise.
29777         (struct ptr_hash_hasher): Likewise.
29778         (ptr_hash_hasher::hash): Likewise.
29779         (ptr_hash_hasher::equal): Likewise.
29780         (make_loc_descriptor): Likewise.
29781         (ggc_prune_ptr): Likewise.
29782         (dump_ggc_loc_statistics): Use new memory descriptor.
29783         (ggc_record_overhead): Likewise.
29784         (ggc_free_overhead): Likewise.
29785         (final_cmp_statistic): Remove.
29786         (cmp_statistic): Likewise.
29787         (ggc_add_statistics): Liekwise.
29788         (ggc_prune_overhead_list): Likewise.
29789         * hash-map-traits.h: New file.
29790         * hash-map.h (struct default_hashmap_traits): Move the traits to a
29791         separate header file.
29792         * hash-set.h: Pass memory statistics info to ctor.
29793         * hash-table.c (void dump_hash_table_loc_statistics): New function.
29794         * hash-table.h (hash_table::hash_table): Add new ctor arguments.
29795         (hash_table::~hash_table): Register memory release operation.
29796         (hash_table::alloc_entries): Handle memory allocation operation.
29797         (hash_table::expand): Likewise.
29798         * inchash.c (iterative_hash_hashval_t): Move implementation to header
29799         file.
29800         (iterative_hash_host_wide_int): Likewise.
29801         * inchash.h (class hash): Likewise.
29802         * mem-stats-traits.h: New file.
29803         * mem-stats.h: New file.
29804         (mem_location): Add new class.
29805         (mem_usage): Likewise.
29806         (mem_alloc_description): Likewise.
29807         * sese.c: Add new header file inclusision.
29808         * toplev.c (dump_memory_report): Add report for hash_table, hash_map
29809         and hash_set.
29810         * tree-sra.c: Add new header file inclusision.
29811         * vec.c (struct vec_descriptor): Remove.
29812         (hash_descriptor): Likewise.
29813         (struct vec_usage): Likewise.
29814         (struct ptr_hash_entry): Likewise.
29815         (hash_ptr): Likewise.
29816         (eq_ptr): Likewise.
29817         (vec_prefix::register_overhead): Use new memory descriptor API.
29818         (vec_prefix::release_overhead): Likewise.
29819         (add_statistics): Remove.
29820         (dump_vec_loc_statistics): Use new memory descriptor API.
29821         * vec.h (struct vec_prefix): Likewise.
29822         (va_heap::reserve): Likewise.
29823         (va_heap::release): Likewise.
29824         * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
29826 2015-05-27  Richard Biener  <rguenther@suse.de>
29828         * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
29829         earlier and remove ??? comment.
29830         (vect_analyze_stmt): If we are analyzing a pure SLP stmt
29831         and got called from loop analysis bail out.  Always pass the SLP
29832         node to the vectorizable_* functions.
29833         * tree-vect-loop.c (vect_analyze_loop_operations): Remove
29834         the premature SLP check here.
29835         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
29836         detected SLP stmts.
29837         (vect_detect_hybrid_slp_1): Likewise.
29839 2015-05-26  Jeff Law  <law@redhat.com>
29841         * combine.c (find_split_point): Verify that the shift count is a
29842         constant when choosing (plus (ashift ...)) as a split point.
29844         * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
29845         No functional changes.
29847 2015-05-26  Jan Hubicka  <hubicka@ucw.cz>
29849         * ipa-polymorphic-call.c
29850         (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
29851         case when call target is already known.
29853 2015-05-26  Oleg Endo  <olegendo@gcc.gnu.org>
29855         PR target/65979
29856         * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
29857         take into account the case that operands[1] and operands[2]
29858         are the same register.
29860 2015-05-26  Michael Matz  <matz@suse.de>
29862         PR middle-end/66251
29864         * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
29865         stores.
29866         (vect_create_vectorized_demotion_stmts): Always set
29867         STMT_VINFO_VEC_STMT, also with SLP.
29868         (vectorizable_store): Handle strided group stores.
29870 2015-05-26  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
29872         PR target/66049
29873         * config/aarch64/aarch64.md
29874         (*adds_shift_imm_<mode>):  New pattern.
29875         (*subs_shift_imm_<mode>):  Likewise.
29876         (*adds_<optab><ALLX:mode>_shift_<GPI:mode>):  Likewise.
29877         (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
29878         (*add_uxt<mode>_shift2): Likewise.
29879         (*add_uxtsi_shift2_uxtw): Likewise.
29880         (*sub_uxt<mode>_shift2): Likewise.
29881         (*sub_uxtsi_shift2_uxtw): Likewise.
29883 2015-05-26  David Edelsohn  <dje.gcc@gmail.com>
29885         * config/rs6000/constraints.md (Y, U): Use match_test.
29887 2015-05-26  Christian Bruel  <christian.bruel@st.com>
29889         PR target/52144
29890         * config/arm/arm.c (arm_option_check_internal)
29891         (arm_option_params_internal): Check opts->target_flags to set macros.
29892         (TREE_TARGET_ARM, TREE_TARGET_THUMB)
29893         (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
29894         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
29895         (builtin_define): Replaced with def_or_undef_macro.
29896         * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
29897         TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
29898         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
29899         (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
29900         (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
29901         (TARGET_ARM_FEATURE_LDREX_P)
29902         (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
29903         * config/arm/arm-c.c (def_or_undef_macro): New function.
29904         (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
29906 2015-05-26  Christian Bruel  <christian.bruel@st.com>
29908         * c-common.h (builtin_define_with_int_value)
29909         (builtin_define_type_sizeof): Declare.
29910         * c-cppbuiltin.c (builtin_define_with_int_value)
29911         (builtin_define_type_sizeof): Externalize.
29912         (builtin_define_std): Cleanup declaration.
29913         * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
29914         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
29915         * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
29916         (builtin_define, builtin_assert): New macros.
29918 2015-05-26  Richard Biener  <rguenther@suse.de>
29920         PR tree-optimization/66142
29921         * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
29922         MEM_REFs for the same base address.
29924 2015-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
29926         PR ipa/66181
29927         * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
29929 2015-05-26  Jason Merrill  <jason@redhat.com>
29931         * configure.ac: Set CXXFLAGS for ISL test.
29932         * configure: Regenerate.
29934         * configure.ac: Use C++ for all tests.  Use AC_CHECK_DECLS for
29935         strstr and basename.
29936         * configure: Regenerate.
29938 2015-05-26  Richard Biener  <rguenther@suse.de>
29940         * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
29941         X % C -> X & (C - 1) for C being a power-of two to ...
29942         * match.pd: ... patterns.
29944 2015-05-26  Marc Glisse  <marc.glisse@inria.fr>
29946         * match.pd (swapped_tcc_comparison): New operator list.
29947         (-A CMP -B): New simplification.
29948         * fold-const.c (fold_comparison): Remove corresponding code.
29950 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
29952         * caller-save.c (init_caller_save): Base temporary register numbers
29953         on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
29954         * cfgloopanal.c (init_set_costs): Likewise.
29955         * dojump.c (prefer_and_bit_test): Likewise.
29956         * expr.c (init_expr_target): Likewise.
29957         * ira.c (setup_prohibited_mode_move_regs): Likewise.
29958         * lower-subreg.c (init_lower_subreg): Likewise.
29959         * postreload.c (reload_cse_regs_1): Likewise.
29961 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
29963         * gensupport.h (compute_test_codes): Declare.
29964         * gensupport.c (compute_predicate_codes): Rename to...
29965         (compute_test_codes): ...this.  Generalize error message.
29966         (process_define_predicate): Update accordingly.
29967         * genpreds.c (compute_maybe_allows): Delete.
29968         (add_constraint): Use compute_test_codes to determine whether
29969         something can accept a SUBREG, REG or MEM.
29971 2015-05-26  Torvald Riegel  <triegel@redhat.com>
29973         * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
29974         'memory model' to align with C++11; fix description of memory orders;
29975         fix a few typos.
29977 2015-05-26  Richard Biener  <rguenther@suse.de>
29979         * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
29980         (vect_analyze_loop_operations): ... here.  Remove slp parameter,
29981         detect whether we apply SLP.  Remove call to
29982         vect_update_slp_costs_according_to_vf.
29983         (vect_analyze_loop_2): Call vect_update_vf_for_slp and
29984         vect_update_slp_costs_according_to_vf from here.  Dispatch
29985         to vect_slp_analyze_operations to analyze SLP stmts.
29986         * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
29987         unused bb_vec_info parameter, adjust assert.
29988         (vect_slp_analyze_operations): Pass in the slp instance tree
29989         instead of bb_vec_info.
29990         (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
29991         * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
29993 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
29995         * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
29996         Q_REGS.  Expand comment.
29997         (REG_CLASS_NAMES): Ditto.
29998         (REG_CLASS_CONTENTS): Ditto.
30000 2015-05-25  Uros Bizjak  <ubizjak@gmail.com>
30002         PR target/66274
30003         * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
30004         when LEGACY_INT_REGNO_P is processed.
30006 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
30008         * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
30010 2015-05-25  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
30012         * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
30013         register if not marked dead/unused, before return.
30015 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
30017         PR lto/66180
30018         * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
30019         is set; check for assembler name at LTO time.
30020         (type_in_anonymous_namespace): Remove hacks, check that all
30021         anonymous types are called "<anon>"
30022         (odr_type_p): Simplify; add check for "<anon>"
30023         (odr_subtypes_equivalent): Add odr_type_p check.
30024         * tree.c (need_assembler_name_p): Even anonymous namespace needs
30025         assembler name.
30027 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
30029         * ipa-utils.h (method_class_type): Remove.
30030         * cgraphunit.c (walk_polymorphic_call_targets): Use
30031         TYPE_METHOD_BASETYPE.
30032         * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
30033         on main variants only.
30034         (method_class_type): Remove.
30035         (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
30036         (build_type_inheritance_graph): Likewise.
30037         * ipa-icf.c (sem_function::equals_wpa): Likewise.
30038         * pa-polymorphic-call.c (decl_maybe_in_construction_p,
30039         check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
30041 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
30043         * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
30044         is_typedef_decl, typedef_variant_p): Constify.
30045         * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
30046         is_typedef_decl, typedef_variant_p): Constify.
30048 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30050         * defaults.h (gen_tablejump): New function.
30051         (HAVE_tablejump): Add default value.
30052         * expr.c: Adjust.
30053         * stmt.c: Likewise.
30055 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30057         * defaults.h (gen_store_multiple): New function.
30058         (HAVE_store_multiple): Add default value.
30059         * expr.c (move_block_from_reg): Adjust.
30061 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30063         * defaults.h (gen_load_multiple): New function.
30064         (HAVE_load_multiple): Add default value.
30065         * expr.c (move_block_to_reg): Adjust.
30067 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30069         * defaults.h (gen_mem_signal_fence): New function.
30070         (HAVE_mem_signal_fence): Add default value.
30071         * optabs.c: Adjust.
30073 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30075         * defaults.h (gen_memory_barrier): New function.
30076         (HAVE_memory_barrier): Add default value.
30077         * optabs.c: Adjust.
30079 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30081         * defaults.h (gen_mem_thread_fence): New function.
30082         (HAVE_mem_thread_fence): Add default definition.
30083         * optabs.c: Adjust.
30085 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30087         * combine.c (find_split_point): Check the value of HAVE_lo_sum
30088         instead of if it is defined.
30089         (combine_simplify_rtx): Likewise.
30090         * lra-constraints.c (process_address_1): Likewise.
30091         * config/darwin.c: Adjust.
30092         * genconfig.c (main): Always define HAVE_lo_sum.
30094 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
30096         * genmatch.c (parser::parse_operation): Reject expanding
30097         operator-list inside 'for'.
30099 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
30101         * genmatch.c (parser::parse_for): Reject iterator if used as
30102         operator-list.
30104 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
30106         * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
30107         after end of id-list.
30109 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
30111         * tree.c (gimple_canonical_types_compatible_p): Sanity check that
30112         we do not try to compute canonical type for type that does not need
30113         alias set.
30114         (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
30115         FUNCITON_TYPE.
30116         * tree.h (type_with_alias_set_p): New.
30118 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
30120         * tree.c (gimple_canonical_types_compatible_p):  Do not compare
30121         function attributes.
30122         (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
30124 2015-05-22  Jim Wilson  <jim.wilson@linaro.org>
30126         * Makefile.in (check_gcc_parallelize): Delete.
30127         (lang_checks_parallelized): Update comment.
30129 2015-05-22  Mikhail Maltsev  <maltsevm@gmail.com>
30131         PR rtl-optimization/66237
30132         * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
30133         location of an "as_a" cast.
30135 2015-05-22  Jeff Law  <law@redhat.com>
30137         * config/pa/pa.md (non-canonical shift-add insns): Remove.
30138         (peepholes with non-canonical RTL sources): Remove.
30139         (peepholes for indexed stores of FP regs in integer modes): Match and
30140         generate canonical RTL.
30142 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
30144         PR tree-optimization/63387
30145         * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
30146         ((x ord x) & (y ord y) -> (x ord y),
30147         (x ord x) & (x ord y) -> (x ord y)): New simplifications.
30148         * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
30149         vectors like scalars.
30151 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
30153         * convert.c (convert_to_integer, convert_to_vector): Include the
30154         types in the error message.
30156 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
30158         * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
30159         simplifications.
30161 2015-05-22  Jeff Law  <law@redhat.com>
30163         * config/pa/pa.md (integer_indexed_store splitters): Use
30164         mem_shadd_operand.  Use ASHIFT rather than MULT in the resulting
30165         insns -- adjusting the constant 2nd operand accordingly.
30167         * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
30168         (plus (ashift X log2) Y) if it is a split point.
30170         * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
30171         out of hppa_legitimize_address to handle both forms of a multiply
30172         by 2, 4 or 8.
30173         (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
30174         Always generate the ASHIFT variant as the result is not directly
30175         used in a MEM.  Update comments and refactor slightly to improve
30176         readability.
30178 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30180         PR target/65491
30181         * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
30182         aarch64_composite_type_p.  Remove check for aarch64_composite_type_p.
30183         (aarch64_composite_type_p): Return false if given type and mode are
30184         for a short vector.
30186 2015-05-22  Richard Biener  <rguenther@suse.de>
30188         * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
30189         member.
30190         * tree-vect-loop.c (vect_analyze_loop_operations): Look at
30191         patterns when determining whether SLP is pure.
30192         (vect_is_slp_reduction): Remove check for pattern stmts.
30193         (vect_is_simple_reduction_1): Remove dead code.
30194         * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
30195         (vect_get_and_check_slp_defs): Pass in the stmt number.
30196         Allow the first def in a reduction to be not a pattern stmt when
30197         the rest of the stmts def are patterns.
30198         (vect_build_slp_tree_1): Allow tcc_expression codes like
30199         SAD_EXPR and DOT_PROD_EXPR.
30200         (vect_build_slp_tree): Adjust.
30201         (vect_analyze_slp): Refactor and move BB vect error message ...
30202         (vect_slp_analyze_bb_1): ... here.
30204 2015-05-22  Aldy Hernandez  <aldyh@redhat.com>
30206         * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
30207         for CSWTCH temporary.
30209 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30211         * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
30212         (arm_unspec_cost): Allow UNSPEC_VOLATILE.  Do not recurse inside
30213         unknown unspecs.
30215 2015-05-22  Richard Biener  <rguenther@suse.de>
30217         PR tree-optimization/66251
30218         * tree-vect-stmts.c (vectorizable_conversion): Properly
30219         set STMT_VINFO_VEC_STMT even for the SLP case.
30221 2015-05-22  Marek Polacek  <polacek@redhat.com>
30223         * doc/extend.texi: Use @pxref instead of @xref.
30225 2015-05-22  hiraditya  <hiraditya@msn.com>
30227         * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
30228         redundant if.
30230 2015-05-22  Richard Biener  <rguenther@suse.de>
30232         PR tree-optimization/65701
30233         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
30234         Move peeling cost models into one place.  Peel for alignment
30235         for single loads only if an aligned load is cheaper than
30236         an unaligned load.
30238 2015-05-22  Marek Polacek  <polacek@redhat.com>
30240         PR c/47043
30241         * doc/extend.texi (Enumerator Attributes): New section.
30242         Document syntax of enumerator attributes.
30244 2015-05-22  Richard Biener  <rguenther@suse.de>
30246         * tree-vect-loop.c (get_reduction_op): New function.
30247         (vect_model_reduction_cost): Use it, add reduc_index parameter.
30248         Make ready for BB reductions.
30249         (vect_create_epilog_for_reduction): Use get_reduction_op.
30250         (vectorizable_reduction): Init reduc_index to a valid value.
30251         Adjust vect_model_reduction_cost call.
30252         * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
30253         operand for reduction defaults.  Add SAD_EXPR support.
30254         Assert we have a neutral op for SLP reductions.
30255         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
30256         walking pattern stmt ops only recurse to SSA names.
30258 2015-05-22  Richard Biener  <rguenther@suse.de>
30260         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
30261         assert with guard, remove check on detected reduction.
30262         (vect_recog_sad_pattern): Likewise.
30263         (vect_recog_widen_sum_pattern): Likewise.
30265 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30267         * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
30268         __always_inline__ attribute.
30269         (vaesdq_u8): Likewise.
30270         (vaesmcq_u8): Likewise.
30271         (vaesimcq_u8): Likewise.
30272         (vsha1cq_u32): Likewise.
30273         (vsha1mq_u32): Likewise.
30274         (vsha1pq_u32): Likewise.
30275         (vsha1h_u32): Likewise.
30276         (vsha1su0q_u32): Likewise.
30277         (vsha1su1q_u32): Likewise.
30278         (vsha256hq_u32): Likewise.
30279         (vsha256h2q_u32): Likewise.
30280         (vsha256su0q_u32): Likewise.
30281         (vsha256su1q_u32): Likewise.
30282         (vmull_p64): Likewise.
30283         (vmull_high_p64): Likewise.
30285 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30287         * final.c (final_scan_insn): Don't check HAVE_peephole with the
30288         preprocessor.
30289         * output.h: Likewise.
30290         * genconfig.c (main): Alwways define HAVE_peephole.
30291         * genpeep.c: Don't emit checks of HAVE_peephole.
30293 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30295         * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
30296         check HAVE_conditional_move with the preprocessor.
30298 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30300         * genconfig.c (main): Always define HAVE_conditional_move.
30301         * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
30302         toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
30303         is defined.
30305 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30307         * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
30308         reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
30309         and FRAME_POINTER_REGNUM with the preprocessor.
30311 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30313         * defaults.h: Add default for STACK_PUSH_CODE.
30314         * expr.c: Don't redefine STACK_PUSH_CODE.
30315         * recog.c: Likewise.
30317 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30319         * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
30320         sched-deps.c: Use if instead of preprocessor checks with
30321         STACK_GROWS_DOWNWARD.
30323 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30325         * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
30326         is defined.
30327         * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
30328         * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
30329         * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
30330         * doc/tm.texi: Regenerate.
30332 2015-05-21  H.J. Lu  <hongjiu.lu@intel.com>
30334         PR target/66232
30335         * config/i386/constraints.md (Bg): New constraint for GOT memory
30336         operand.
30337         * config/i386/i386.md (*call_got_x32): New pattern.
30338         (*call_value_got_x32): Likewise.
30339         * config/i386/predicates.md (GOT_memory_operand): New predicate.
30341 2015-05-21  Jakub Jelinek  <jakub@redhat.com>
30343         PR tree-optimization/66233
30344         * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
30345         Simplify.
30347 2015-05-21  Jeff Law  <law@redhat.com>
30349         * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
30350         than MULT for shadd sequences.
30352 2015-05-08  Jan Hubicka  <hubicka@ucw.cz>
30354         * alias.c (alias_stats): New static var.
30355         (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
30356         (dump_alias_stats_in_alias_c): New function.
30357         * alias.h (dump_alias_stats_in_alias_c): Declare.
30358         * tree-ssa-alias.c (dump_alias_stats): Call it.
30360 2015-05-08  Michael Matz  <matz@suse.de>
30362         * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
30363         to strided_p.
30364         (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
30365         (STMT_VINFO_STRIDED_P): ... this.
30366         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
30367         (vect_verify_datarefs_alignment): Likewise.
30368         (vect_enhance_data_refs_alignment): Likewise.
30369         (vect_analyze_data_ref_access): Likewise.
30370         (vect_analyze_data_refs): Accept strided stores.
30371         * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
30372         (vect_model_load_cost): Adjust for macro rename.
30373         (vectorizable_mask_load_store): Likewise.
30374         (vectorizable_load): Likewise.
30375         (vectorizable_store): Open code strided stores.
30377 2015-05-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30379         * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
30380         Document sqrt_insn.
30382 2015-05-21  Richard Biener  <rguenther@suse.de>
30384         PR c++/66211
30385         * match.pd: Guard pattern optimzing (int)(float)int
30386         conversions to apply only on GIMPLE.
30388 2015-05-21  Jeff Law  <law@redhat.com>
30390         * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
30391         multiply-accumulate/shift-add insn generation.
30393 2015-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
30395         PR target/54236
30396         * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
30397         operands[1] are the same.
30399 2015-05-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
30401         PR middle-end/66221
30402         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
30403         build_distinct_type_copy to copy bounds.
30405 2015-05-21  Thomas Schwinge  <thomas@codesourcery.com>
30407         * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
30408         Change to unsigned int.
30410 2015-05-20  Jeff Law  <law@redhat.com>
30412         * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
30413         (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
30414         (pa_shadd_constant_p): Allow constants for shadd insns rather
30415         than valid scaling constants for memory addresses.
30416         * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
30417         * config/pa/predicates.md (mem_shadd_operand): New predicate.
30418         * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
30419         (shift-add insns using ASHIFT): New patterns.
30421 2015-05-20  Mikhail Maltsev  <maltsevm@gmail.com>
30423         * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
30424         feasible.
30425         (fix_up_fall_thru_edges): Likewise.
30426         (fix_crossing_conditional_branches): Likewise. Promote jump targets
30427         from to rtx_insn to rtx_code_label where feasible.
30428         * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
30429         gen_move_insn (returned type changed to rtx_insn).
30430         * builtins.c (expand_errno_check): Fix arguments of
30431         do_compare_rtx_and_jump (now expects rtx_code_label).
30432         (expand_builtin_acc_on_device): Likewise.
30433         * cfgcleanup.c (try_simplify_condjump): Add cast when calling
30434         invert_jump (now exprects rtx_jump_insn).
30435         * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
30436         (construct_init_block): Use rtx_code_label.
30437         * cfgrtl.c (block_label): Promote return type to rtx_code_label.
30438         (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
30439         calling redirect_jump.
30440         (patch_jump_insn): Likewise.
30441         (redirect_branch_edge): Likewise.
30442         (force_nonfallthru_and_redirect): Likewise.
30443         (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
30444         when suitable.
30445         (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
30446         * cfgrtl.h: Promote return type of block_label to rtx_code_label.
30447         * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
30448         * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
30449         to store the value retured by gen_label_rtx.
30450         * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
30451         rtx_jump_insn.
30452         * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
30453         (split_branches): Fix calls of redirect_jump.
30454         * dojump.c (jumpifnot): Promote argument type from rtx to
30455         rtx_code_label.
30456         (jumpifnot_1): Likewise.
30457         (jumpif): Likewise.
30458         (jumpif_1): Likewise.
30459         (do_jump_1): Likewise.
30460         (do_jump): Likewise. Use rtx_code_label when feasible.
30461         (do_jump_by_parts_greater_rtx): Likewise.
30462         (do_jump_by_parts_zero_rtx): Likewise.
30463         (do_jump_by_parts_equality_rtx): Likewise.
30464         (do_compare_rtx_and_jump): Likewise.
30465         * dojump.h: Update function prototypes.
30466         * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
30467         returns rtx_insn).
30468         * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
30469         rtx_jump_insn.
30470         (emit_label_before): Likewise.
30471         (emit_jump_insn_after_noloc): Likewise.
30472         (emit_jump_insn_after_setloc): Likewise.
30473         (emit_jump_insn_after): Likewise
30474         (emit_jump_insn_before_setloc): Likewise.
30475         (emit_jump_insn_before): Likewise.
30476         (emit_label_before): Promote return type to rtx_code_label.
30477         (emit_label): Likewise.
30478         * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
30479         * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
30480         gen_move_insn.
30481         (emit_stack_restore): Likewise.
30482         * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
30483         (do_cmp_and_jump): Likewise.
30484         * expr.c (expand_expr_real_2): Likewise. Promote some local variables
30485         from rtx to rtx_code_label.
30486         (gen_move_insn_uncast): New function.
30487         * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
30488         * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
30489         * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
30490         * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
30491         invert_jump_1 and redirect_jump_1.
30492         * internal-fn.c (expand_arith_overflow_result_store): Fix call of
30493         do_compare_rtx_and_jump.
30494         (expand_addsub_overflow): Likewise.
30495         (expand_neg_overflow): Likewise.
30496         (expand_mul_overflow): Likewise.
30497         * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
30498         return value of gen_move_insn.
30499         * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
30500         * loop-doloop.c (add_test): Use rtx_code_label.
30501         (doloop_modify): Likewise.
30502         (doloop_optimize): Likewise.
30503         * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
30504         * lra-constraints.c (emit_spill_move): Remove cast of value returned
30505         by gen_move_insn.
30506         (inherit_reload_reg): Add cast when calling dump_insn_slim.
30507         (split_reg): Likewise.
30508         * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
30509         gen_move_insn.
30510         * optabs.c (expand_binop_directly): Remove casts of values returned by
30511         maybe_gen_insn.
30512         (expand_unop_direct): Likewise.
30513         (expand_abs): Likewise.
30514         (maybe_emit_unop_insn): Likewise.
30515         (maybe_gen_insn): Promote return type to rtx_insn.
30516         * optabs.h: Update prototype of maybe_gen_insn.
30517         * postreload-gcse.c (eliminate_partially_redundant_load): Remove
30518         redundant cast.
30519         * recog.c (struct peep2_insn_data): Promote type of insn field to
30520         rtx_insn.
30521         (peep2_reinit_state): Use NULL instead of NULL_RTX.
30522         (peep2_attempt): Remove casts of insn in peep2_insn_data.
30523         (peep2_fill_buffer): Promote argument from rtx to rtx_insn
30524         * recog.h (struct insn_gen_fn): Promote return types of function
30525         pointers and operator ().from rtx to rtx_insn.
30526         * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
30527         (fill_eager_delay_slots): Likewise.
30528         (relax_delay_slots): Likewise.
30529         (make_return_insns): Likewise.
30530         (dbr_schedule): Likewise.
30531         (optimize_skips): Likewise.
30532         (reorg_redirect_jump): Likewise.
30533         (fill_slots_from_thread): Likewise.
30534         * reorg.h: Update prototypes.
30535         * resource.c (find_dead_or_set_registers): Use dyn_cast to
30536         rtx_jump_insn instead of check.  Use it's jump_target method.
30537         * rtl.h (rtx_jump_insn::jump_label): Define new method.
30538         (rtx_jump_insn::jump_target): Define new method.
30539         (rtx_jump_insn::set_jump_target): Define new method.
30540         * rtlanal.c (tablejump_p): Promote type of one local variable.
30541         * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
30542         (sched_analyze_insn): Likewise.
30543         * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
30544         (print_insn): Likewise.
30545         * stmt.c (label_rtx): Promote return type to rtx_insn.
30546         (force_label_rtx): Likewise.
30547         (jump_target_rtx): Define new function.
30548         (expand_label): Use it, get rid of one cast.
30549         (expand_naked_return): Promote rtx to rtx_code_label.
30550         (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
30551         (expand_case): Use rtx_code_label instread of rtx where feasible.
30552         (expand_sjlj_dispatch_table): Likewise.
30553         (emit_case_nodes): Likewise.
30554         * stmt.h: Declare jump_target_rtx.  Update prototypes.  Fix comments.
30555         * store-motion.c (insert_store): Make use of new return type of
30556         gen_move_insn and remove a cast.
30557         (replace_store_insn): Likewise.
30559 2015-05-20  Max Filippov  <jcmvbkbc@gmail.com>
30561         * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
30562         by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
30564 2015-05-20  Jeff Law  <law@redhat.com>
30566         * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
30567         dispose of the jump thread path when the jump threading
30568         opportunity is cancelled.
30570 2015-05-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
30572         * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
30573         when printing the caret character.
30575 2015-05-20  Marek Polacek  <polacek@redhat.com>
30577         * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
30579 2015-05-20  Marek Polacek  <polacek@redhat.com>
30581         * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
30582         * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
30583         * gimple-fold.c (canonicalize_bool): Likewise.
30584         (same_bool_result_p): Likewise.
30585         * tree-if-conv.c (parse_predicate): Likewise.
30587 2015-05-20  Marek Polacek  <polacek@redhat.com>
30589         * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
30590         * gimplify.c (gimplify_modify_expr_rhs): Likewise.
30592 2015-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30594         * config/aarch64/aarch64.c (aarch64_class_max_nregs):
30595         Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
30596         values.
30598 2015-05-20  Robert Suchanek  <robert.suchanek@imgtec.com>
30600         * config/mips/mips.h (micromips_globals): Declare.
30602 2015-05-20  David Malcolm  <dmalcolm@redhat.com>
30604         * timevar.def (TV_INITIALIZE_RTL): New.
30605         * toplev.c (initialize_rtl): Use an auto_timevar to account this
30606         function's time to TV_INITIALIZE_RTL.
30608 2015-05-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
30610         * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
30611         gimple_build_nop calls.
30612         (chkp_find_bounds_for_elem): Likewise.
30613         (chkp_get_zero_bounds): Likewise.
30614         (chkp_get_none_bounds): Likewise.
30615         (chkp_get_bounds_by_definition): Likewise.
30616         (chkp_generate_extern_var_bounds): Likewise.
30617         (chkp_get_bounds_for_decl_addr): Likewise.
30618         (chkp_get_bounds_for_string_cst): Likewise.
30620 2015-05-20  Bin Cheng  <bin.cheng@arm.com>
30622         PR tree-optimization/65447
30623         * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
30624         (dump_use, dump_uses): Support to dump sub use.
30625         (record_use): New parameters to support sub use.  Remove call to
30626         dump_use.
30627         (record_sub_use, record_group_use): New functions.
30628         (compute_max_addr_offset, split_all_small_groups): New functions.
30629         (group_address_uses, rewrite_use_address): New functions.
30630         (strip_offset): New declaration.
30631         (find_interesting_uses_address): Call record_group_use.
30632         (add_candidate): New assertion.
30633         (infinite_cost_p): Move definition forward.
30634         (add_costs): Check INFTY cost and return immediately.
30635         (get_computation_cost_at): Clear setup cost and dependent bitmap
30636         for sub uses.
30637         (determine_use_iv_cost_address): Compute cost for sub uses.
30638         (rewrite_use_address_1): Rename from old rewrite_use_address.
30639         (free_loop_data): Free sub uses.
30640         (tree_ssa_iv_optimize_loop): Call group_address_uses.
30642 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
30643             Jim Wilson  <jim.wilson@linaro.org>
30645         * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
30646         new  fields loadv and storev.
30647         * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
30648         Initialize loadv and storev.
30649         * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
30650         (cortexa53_extra_costs): Likewise.
30651         (cortexa57_extra_costs): Likewise.
30652         (xgene1_extra_costs): Likewise.
30653         * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
30654         rtx_costs.
30656 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
30658         * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
30659          storev.
30660         (cortexa8_extra_costs): Likewise.
30661         (cortexa5_extra_costs): Likewise.
30662         (cortexa7_extra_costs): Likewise.
30663         (cortexa12_extra_costs): Likewise.
30664         (cortexa15_extra_costs): Likewise.
30665         (v7m_extra_costs): Likewise.
30667 2015-05-20  Jeff Law  <law@redhat.com>
30669         * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
30670         instead of open-coded version.  Also delete the jump thread created
30671         within this function.
30673 2015-05-20  Alan Modra  <amodra@gmail.com>
30675         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
30676         stack adjusting insn.  Formatting.
30677         (rs6000_emit_prologue): Track stack adjusting insn, and use of
30678         r12.  If possible, emit first -fsplit-stack arg pointer insn
30679         before stack adjust.  Don't use r12 to save cr if split-stack.
30681 2015-05-20  Alan Modra  <amodra@gmail.com>
30683         * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
30684         Define.
30685         (rs6000_supports_split_stack): New function.
30686         * config/rs6000/rs6000.c (machine_function): Add
30687         split_stack_arg_pointer.
30688         (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
30689         (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
30690         rather than virtual_incoming_args_rtx.
30691         (rs6000_va_start): Likewise.
30692         (split_stack_arg_pointer_used_p): New function.
30693         (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
30694         (morestack_ref): New var.
30695         (gen_add3_const, rs6000_expand_split_stack_prologue,
30696         rs6000_internal_arg_pointer, rs6000_live_on_entry,
30697         rs6000_split_stack_space_check): New functions.
30698         (rs6000_elf_file_end): Call file_end_indicate_split_stack.
30699         * config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
30700         (UNSPECV_SPLIT_STACK_RETURN): Define.
30701         (split_stack_prologue, load_split_stack_limit,
30702         load_split_stack_limit_di, load_split_stack_limit_si,
30703         split_stack_return, split_stack_space_check): New expands and insns.
30704         * config/rs6000/rs6000-protos.h
30705         (rs6000_expand_split_stack_prologue): Declare.
30706         (rs6000_split_stack_space_check): Declare.
30708 2015-05-20  Alan Modra  <amodra@gmail.com>
30710         * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
30711         (direct_return): Test vrsave_size rather than vrsave_mask.
30712         (rs6000_emit_prologue): Likewise.  Remove redundant altivec tests.
30713         (rs6000_emit_epilogue): Likewise.
30715 2015-05-20  Alan Modra  <amodra@gmail.com>
30717         * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
30718         when not saving registers.
30719         (debug_stack_info): Adjust to omit printing unused offsets,
30720         as before.
30721         (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
30722         expression.
30724 2015-05-19  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
30726         PR c++/65835
30727         * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
30728         value_type to const char *.
30730 2015-05-19  Sandra Loosemore  <sandra@codesourcery.com>
30732         * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
30733         to build a biarch toolchain again.
30735 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
30737         * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
30738         or implicit declarations.
30739         (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
30740         into it.
30741         (get_odr_type): Check type has linkage before adding bases.
30742         (register_odr_type): Check that type has linkage before adding it.
30743         (type_known_to_have_no_deriavations_p): Rename to ..
30744         (type_known_to_have_no_derivations_p): This one.
30745         * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
30746         (type_known_to_have_no_derivations_p): This one.
30747         * ipa-polymorphic-call.c
30748         (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
30749         type has linkage.
30751 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
30753         * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
30754         (layout_type): Use RECORD_OR_UNION_TYPE_P.
30756 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
30758         * config/s390/s390.c (s390_vector_bool_type_p): New function.
30759         (s390_invalid_binary_op): New function.
30760         (TARGET_INVALID_BINARY_OP): Define macro.
30762 2015-05-19  David Sherwood  <david.sherwood@arm.com>
30764         * loop-invariant.c (create_new_invariant): Don't calculate address cost
30765         if mode is not a scalar integer.
30766         (get_inv_cost): Increase computational cost for unused invariants.
30768 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
30770         * config.gcc: Add vecintrin.h to extra_headers.  Add s390-c.o to
30771         c_target_objs and cxx_target_objs.  Add t-s390 to tmake_file.
30772         * config/s390/s390-builtin-types.def: New file.
30773         * config/s390/s390-builtins.def: New file.
30774         * config/s390/s390-builtins.h: New file.
30775         * config/s390/s390-c.c: New file.
30776         * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
30777         CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
30778         * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
30779         (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
30780         prototypes.
30781         * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
30782         Include.
30783         (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
30784         (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
30785         variable definitions.
30786         (s390_const_operand_ok): New function.
30787         (s390_expand_builtin): Rewrite.
30788         (s390_init_builtins): New function.
30789         (s390_handle_vectorbool_attribute): New function.
30790         (s390_attribute_table): Add s390_vector_bool attribute.
30791         (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
30792         (s390_branch_condition_mask): Generate masks for new modes.
30793         (s390_expand_vec_compare_cc): New function.
30794         (s390_mangle_type): Add mangling for vector bool types.
30795         (enum s390_builtin): Remove.
30796         (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
30797         efpc builtins.
30798         * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
30799         s390_cpu_cpp_builtins.
30800         (REGISTER_TARGET_PRAGMAS): New macro.
30801         * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
30802         (insn_cmp mode attribute): Add new CC modes.
30803         (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
30804         (lcbb): New pattern definition.
30805         * config/s390/s390intrin.h: Include vecintrin.h.
30806         * config/s390/t-s390: New file.
30807         * config/s390/vecintrin.h: New file.
30808         * config/s390/vector.md: Include vx-builtins.md.
30809         * config/s390/vx-builtins.md: New file.S/390 zvector builtin
30810         support.
30812 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
30814         * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
30815         CCVFHE.
30816         * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
30817         (s390_select_ccmode): Likewise.
30818         (s390_canonicalize_comparison): Swap operands if necessary.
30819         (s390_expand_vec_compare_scalar): Expand DFmode compare using
30820         single element vector instructions.
30821         (s390_emit_compare): Call s390_expand_vec_compare_scalar.
30822         (s390_branch_condition_mask): Generate CC masks for the new modes.
30823         * config/s390/s390.md (v0, vf, vd): New mode attributes.
30824         (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
30825         (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
30826         (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
30827         (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
30828         (*extend<DSF:mode><BFP:mode>2): New insn definition.
30829         (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
30830         (extend<DSF:mode><BFP:mode>2): Turn into expander.
30831         (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
30832         (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
30833         (sqrt<mode>2): Add vector instruction.
30835 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
30837         * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
30838         constraints.
30839         * config/s390/predicates.md (const0_operand, constm1_operand)
30840         (constable_operand): Accept vector operands.
30841         * config/s390/s390-modes.def: Add supported vector modes.
30842         * config/s390/s390-protos.h (s390_cannot_change_mode_class)
30843         (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
30844         (s390_bytemask_vector_p, s390_expand_vec_strlen)
30845         (s390_expand_vec_compare, s390_expand_vcond)
30846         (s390_expand_vec_init): Add prototypes.
30847         * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
30848         (s390_vector_mode_supported_p): New function.
30849         (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
30850         (s390_contiguous_bitmask_vector_p): New function.
30851         (s390_bytemask_vector_p): New function.
30852         (s390_split_ok_p): Vector regs don't work either.
30853         (regclass_map): Add VEC_REGS.
30854         (s390_legitimate_constant_p): Handle vector constants.
30855         (s390_cannot_force_const_mem): Handle CONST_VECTOR.
30856         (legitimate_reload_vector_constant_p): New function.
30857         (s390_preferred_reload_class): Handle CONST_VECTOR.
30858         (s390_reload_symref_address):  Likewise.
30859         (s390_secondary_reload): Vector memory instructions only support
30860         short displacements.  Rename reload*_nonoffmem* to reload*_la*.
30861         (s390_emit_ccraw_jump): New function.
30862         (s390_expand_vec_strlen): New function.
30863         (s390_expand_vec_compare): New function.
30864         (s390_expand_vcond): New function.
30865         (s390_expand_vec_init): New function.
30866         (s390_dwarf_frame_reg_mode): New function.
30867         (print_operand): Handle addresses with 'O' and 'R' constraints.
30868         (NR_C_MODES, constant_modes): Add vector modes.
30869         (s390_output_pool_entry): Handle vector constants.
30870         (s390_hard_regno_mode_ok): Handle vector registers.
30871         (s390_class_max_nregs): Likewise.
30872         (s390_cannot_change_mode_class): New function.
30873         (s390_invalid_arg_for_unprototyped_fn): New function.
30874         (s390_function_arg_vector): New function.
30875         (s390_function_arg_float): Remove size variable.
30876         (s390_pass_by_reference): Handle vector arguments.
30877         (s390_function_arg_advance): Likewise.
30878         (s390_function_arg): Likewise.
30879         (s390_return_in_memory): Vector values are returned in a VR if
30880         possible.
30881         (s390_function_and_libcall_value): Handle vector arguments.
30882         (s390_gimplify_va_arg): Likewise.
30883         (s390_call_saved_register_used): Consider the arguments named.
30884         (s390_conditional_register_usage): Disable v16-v31 for non-vec
30885         targets.
30886         (s390_preferred_simd_mode): New function.
30887         (s390_support_vector_misalignment): New function.
30888         (s390_vector_alignment): New function.
30889         (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
30890         (TARGET_VECTOR_MODE_SUPPORTED_P)
30891         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
30892         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
30893         (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
30894         (TARGET_VECTOR_ALIGNMENT): Define target macro.
30895         * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
30896         (FIRST_PSEUDO_REGISTER): Increase value.
30897         (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
30898         (VECTOR_REG_P): Define macros.
30899         (FIXED_REGISTERS, CALL_USED_REGISTERS)
30900         (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
30901         (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
30902         (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
30903         Add vector registers.
30904         (CANNOT_CHANGE_MODE_CLASS): Call C function.
30905         (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
30906         (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
30907         memory.
30908         (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
30909         (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
30910         * config/s390/s390.md (UNSPEC_VEC_*): New constants.
30911         (VR*_REGNUM): New constants.
30912         (ALL): New mode iterator.
30913         (INTALL): Remove mode iterator.
30914         Include vector.md.
30915         (movti): Implement TImode moves for VRs.
30916         Disable TImode splitter for VR targets.
30917         Implement splitting TImode GPR<->VR moves.
30918         (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
30919         (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
30920         reload<mode>_la_in, reload<mode>_la_out.
30921         (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
30922         (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
30923         (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
30924         (mov<mode> SF SD): Prefer lder, lde for loading.
30925         Add lrl and strl instructions.
30926         Add vector instructions.
30927         (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
30928         Call s390_expand_vec_strlen on z13.
30929         (*cc_to_int): Change predicate to nonimmediate_operand.
30930         (addti3): Rename to *addti3.  New expander.
30931         (subti3): Rename to *subti3.  New expander.
30932         * config/s390/vector.md: New file.
30934 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
30936         * common/config/s390/s390-common.c (processor_flags_table): Add
30937         z13.
30938         * config.gcc: Add z13.
30939         * config/s390/s390-opts.h (enum processor_type): Add
30940         PROCESSOR_2964_Z13.
30941         * config/s390/s390.c (s390_adjust_priority): Check for
30942         PROCESSOR_2964_Z13.
30943         (s390_reorg): Likewise.
30944         (s390_sched_reorder): Likewise.
30945         (s390_sched_variable_issue): Likewise.
30946         (s390_loop_unroll_adjust): Likewise.
30947         (s390_option_override): Likewise. Default to -mvx when available.
30948         * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
30949         (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
30950         (TARGET_VX_ABI): Define macros.
30951         macros.
30952         (TARGET_DEFAULT): Add MASK_OPT_VX.
30953         * config/s390/s390.md ("cpu" attribute): Add z13.
30954         ("cpu_facility" attribute): Add vec.
30955         * config/s390/s390.opt (processor_type): Add z13.
30956         (mvx): New options.
30957         * doc/invoke.texi: Add z13 option for -march.
30959 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
30961         * config/s390/predicates.md (shift_count_or_setmem_operand): Add
30962         mode check to make sure that only scalar integer values are
30963         accepted.
30965 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
30967         * tree.c (verify_type_variant): Fix #undef.
30968         (gimple_canonical_types_compatible_p): Move here from lto.c
30969         (verify_type): Verify TYPE_CANONICAL compatibility.
30970         * tree.h (gimple_canonical_types_compatible_p): Declare.
30972 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
30974         PR middle-end/66199
30975         * tree.h (OMP_TEAMS_COMBINED): Define.
30976         * gimplify.c (enum gimplify_omp_var_data): Add
30977         GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
30978         (enum omp_region_type): Add ORT_COMBINED_TEAMS.
30979         (omp_notice_variable): Accept both ORT_TEAMS
30980         and ORT_COMBINED_TEAMS.  Don't recurse if
30981         GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
30982         GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
30983         GOVD_FIRSTPRIVATE.
30984         (omp_no_lastprivate): New function.
30985         (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
30986         and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
30987         notice_outer and set appropriate bits, otherwise make
30988         sure default(none) combined constructs won't complain.
30989         (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
30990         outer special casing, for OMP_CLAUSE_LASTPRIVATE if
30991         omp_no_lastprivate either remove the clause or turn it
30992         into OMP_CLAUSE_PRIVATE.
30993         (gimplify_omp_for): Fix up handling of implicit
30994         lastprivate or linear iterators.
30995         (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
30996         ORT_COMBINED_TEAMS.
30997         * omp-low.c (lower_omp_for_lastprivate): For combined
30998         for simd use fd.loop.n2 from the for rather than simd.
31000 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
31002         * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
31003         instead of gen_rtx_raw_REG.
31004         (cris_expand_epilogue): Likewise.
31005         * config/microblaze/microblaze.c (microblaze_classify_address):
31006         Likewise.
31007         * config/sparc/sparc.md: Likewise.
31009 2015-05-19  Uros Bizjak  <ubizjak@gmail.com>
31011         * config/alpha/alpha.c (alpha_legitimize_reload_address)
31012         (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
31013         CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
31014         (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
31015         Use CASE_CONST_SCALAR_INT.
31016         (print_operand) <case 'M'>: Use mode_width_operand to check the
31017         value of the constant.
31018         * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
31019         * config/alpha/predicates.md (input_operand): Use general_operand
31020         instead of match_code as operand check.
31021         (symbolic_operand): Use match_code with subexpression digits.
31022         * config/alpha/constraints.md (Q): Ditto.
31024 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
31026         * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
31028 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
31030         * config/s390/s390.c (s390_secondary_reload): Fix check for
31031         load/store relative.
31033 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
31035         * recog.h: Increase MAX_RECOG_ALTERNATIVES.  Change type of
31036         alternative_mask to uint64_t.
31038 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
31040         PR tree-optimization/66187
31041         * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
31042         Pass TYPE_SIGN to tree_int_cst_min_precision.  If
31043         !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
31045 2015-05-19  David Malcolm  <dmalcolm@redhat.com>
31047         * diagnostic.c (diagnostic_report_current_module): Strengthen
31048         local "new_map" from const line_map * to
31049         const line_map_ordinary *.
31050         * genmatch.c (error_cb): Likewise for local "map".
31051         (output_line_directive): Likewise for local "map".
31052         * input.c (expand_location_1): Likewise for local "map".
31053         Pass NULL rather than &map to
31054         linemap_unwind_to_first_non_reserved_loc, since the value is never
31055         read from there, and the value written back not read from here.
31056         (is_location_from_builtin_token): Strengthen local "map" from
31057         const line_map * to const line_map_ordinary *.
31058         (dump_location_info): Strengthen locals "map" from
31059         line_map *, one to const line_map_ordinary *, the other
31060         to const line_map_macro *.
31061         * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
31062         const line_map * to const line_map_macro *.
31063         (maybe_unwind_expanded_macro_loc): Add a call to
31064         linemap_check_macro when writing to the "map" field of the
31065         loc_map_pair.
31066         Introduce local const line_map_ordinary * "ord_map", using it in
31067         place of "map" in the part of the function where we know we have
31068         an ordinary map.  Strengthen local "m" from const line_map * to
31069         const line_map_ordinary *.
31071 2015-05-19  Nick Clifton  <nickc@redhat.com>
31073         PR target/66156
31074         * config/msp430/msp430.md (zero_extendhisi2): Add support for
31075         separate source and destination registers.
31077 2015-05-19  Richard Biener  <rguenther@suse.de>
31079         PR tree-optimization/66165
31080         * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
31081         for no load permutation.
31083         PR tree-optimization/66185
31084         * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
31085         when building the SLP node from scalars.
31087 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
31088             Tristan Gingold  <gingold@adacore.com>
31090         * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
31091         * builtins.c (expand_builtin_update_setjmp_buf): Make global.
31092         (expand_stack_restore): Call record_new_stack_level.
31093         (expand_stack_save): Do not call do_pending_stack_adjust.
31094         * builtins.h (expand_builtin_update_setjmp_buf): Declare.
31095         * calls.c (expand_call): Call record_new_stack_level for alloca.
31096         * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
31097         wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
31098         (update_sjlj_context): New global function.
31099         * except.h (update_sjlj_context): Declare.
31100         * explow.c (record_new_stack_level): New global function.
31101         (allocate_dynamic_stack_space): Call record_new_stack_level.
31102         * explow.h (record_new_stack_level): Declare.
31103         * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
31104         * cfgrtl.c (duplicate_insn_chain): Likewise.
31106 2015-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31108         * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
31109         (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
31110         STACK_GROWS_DOWNWARD as normal if.
31111         (expand_call): Likewise.
31113 2015-05-19  Oleg Endo  <olegendo@gcc.gnu.org>
31115         PR target/54236
31116         * config/sh/sh.md (*round_int_even): New insn_and_split and
31117         accompanying new unnamed split.
31119 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
31121         * bitmap.c (bitmap_set_range): Handle count==1 specially.
31122         (bitmap_clear_range): Likewise.
31123         * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
31124         bitmap_set_range unconditionally.
31125         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
31126         * df-scan.c (df_mark_reg): Likewise.
31127         * haifa-sched.c (setup_ref_regs): Likewise.
31128         * sched-rgn.c (update_live_1): Likewise.
31130 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
31132         * regs.h (END_HARD_REGNO): Delete.
31133         (END_REGNO): Move to...
31134         * rtl.h: ...here.
31135         * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
31136         * caller-save.c (mark_set_regs): Likewise.
31137         * combine.c (move_deaths, distribute_notes): Likewise.
31138         * cse.c (invalidate, invalidate_for_call): Likewise.
31139         * df-scan.c (df_ref_record): Likewise.
31140         * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
31141         (record_last_reg_set_info): Likewise.
31142         * reg-stack.c (convert_regs_exit): Likewise.
31143         * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
31144         * resource.c (update_live_status): Likewise.
31145         * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
31147 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
31149         * rtl.h (reg_info): Add an nregs field.
31150         (REG_NREGS): Use it.
31151         (SET_REGNO_RAW): Delete.
31152         (set_regno_raw): New function.
31153         * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
31154         (END_REGNO): Redefine in terms of REG_NREGS.
31155         * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
31156         SET_REGNO_RAW.
31157         * emit-rtl.c (set_mode_and_regno): Likewise.
31158         * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
31159         instead of SET_REGNO_RAW.
31161 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
31163         * rtl.h (PUT_MODE_RAW): New macro.
31164         (PUT_REG_NOTE_KIND): Use it.
31165         (set_mode_and_regno): Declare.
31166         (gen_raw_REG): Change regno to "unsigned int".
31167         (gen_rtx_REG): Change "unsigned" to "unsigned int".
31168         (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
31169         use set_mode_and_regno to change the mode of registers.
31170         * gengenrtl.c (gendef): Use PUT_MODE_RAW.
31171         * emit-rtl.c (set_mode_and_regno): New function.
31172         (gen_raw_REG): Change regno to unsigned int.  Use set_mode_and_regno.
31173         * caller-save.c (reg_save_code): Use set_mode_and_regno.
31174         * expr.c (init_expr_target): Likewise.
31175         * ira.c (setup_prohibited_mode_move_regs): Likewise.
31176         * postreload.c (reload_cse_simplify_operands): Likewise.
31178 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
31180         * caller-save.c (init_caller_save): Use word_mode and
31181         FIRST_PSEUDO_REGISTER when creating temporary rtxes.
31182         * expr.c (init_expr_target): Likewise.
31183         * ira.c (setup_prohibited_mode_move_regs): Likewise.
31184         * postreload.c (reload_cse_regs_1): Likewise.
31186 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
31188         * rtl.def (REG): Change format to "r".
31189         * rtl.h (rtunion): Remove rt_reg.
31190         (reg_info): New structure.
31191         (rtx_def): Add reg field to main union.
31192         (X0REGATTR): Delete.
31193         (REG_CHECK): New macro.
31194         (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
31195         * rtl.c (rtx_format): Document "r".
31196         (rtx_code_size): Handle REG specially.
31197         * gengenrtl.c (special_format): Return true for formats
31198         that include 'r'.
31199         * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
31200         Deal with REG_ATTRS after the field loop.
31201         * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
31202         * expmed.c (init_expmed): Call gen_raw_REG instead of
31203         gen_rtx_raw_REG.
31204         * expr.c (init_expr_target): Likewise.
31205         * regcprop.c (maybe_mode_change): Likewise.
31206         * varasm.c (make_decl_rtl): Likewise.
31207         * final.c (leaf_renumber_regs_insn): Return early after
31208         handling REGs.
31209         * genemit.c (gen_exp): Handle 'r' fields.
31210         * genpeep.c (match_rtx): Likewise.
31211         * gensupport.c (subst_pattern_match): Likewise.
31212         (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
31213         (alter_constraints, subst_dup): Likewise.
31214         * read-rtl.c (read_rtx_code): Likewise.
31215         * print-rtl.c (print_rtx): Likewise.
31216         * genrecog.c (find_operand, find_matching_operand): Likewise.
31217         (validate_pattern, match_pattern_2): Likewise.
31218         (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
31219         (rtx_test::regno_field): New function.
31220         (operator ==, safe_to_hoist_p, transition_parameter_type)
31221         (parameter_type_string, print_parameter_value)
31222         (print_nonbool_test, print_test): Handle new enum values.
31223         * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
31224         * lra-constraints.c (operands_match_p): Likewise.
31226 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
31228         * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
31229         Change type of new_regno to unsigned int.
31230         * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
31231         new_regno to unsigned int.
31232         (df_ref_change_reg_with_loc): Remove old_regno parameter.
31233         Change type of new_regno to unsigned int.  Use SET_REGNO_RAW.
31234         * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
31235         (SET_REGNO_RAW): Add space after ",".
31237 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
31239         * rtl.h (REG_NREGS): New macro
31240         * alias.c (record_set): Use it.
31241         * cfgcleanup.c (mark_effect): Likewise.
31242         * combine.c (likely_spilled_retval_1): Likewise.
31243         (likely_spilled_retval_p, can_change_dest_mode): Likewise.
31244         (move_deaths, distribute_notes): Likewise.
31245         * cselib.c (cselib_record_set): Likewise.
31246         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
31247         * df-scan.c (df_mark_reg): Likewise.
31248         * dse.c (look_for_hardregs): Likewise.
31249         * dwarf2out.c (reg_loc_descriptor): Likewise.
31250         (multiple_reg_loc_descriptor): Likewise.
31251         * expr.c (write_complex_part, read_complex_part): Likewise.
31252         (emit_move_complex): Likewise.
31253         * haifa-sched.c (setup_ref_regs): Likewise.
31254         * ira-lives.c (mark_hard_reg_live): Likewise.
31255         * lra.c (lra_set_insn_recog_data): Likewise.
31256         * mode-switching.c (create_pre_exit): Likewise.
31257         * postreload.c (reload_combine_recognize_const_pattern): Likewise.
31258         (reload_combine_recognize_pattern): Likewise.
31259         (reload_combine_note_use, move2add_record_mode): Likewise.
31260         (reload_cse_move2add): Likewise.
31261         * reg-stack.c (subst_stack_regs_pat): Likewise.
31262         * regcprop.c (kill_value, copy_value): Likewise.
31263         (copyprop_hardreg_forward_1): Likewise.
31264         * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
31265         (build_def_use): Likewise.
31266         * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
31267         (deps_analyze_insn): Likewise.
31268         * sched-rgn.c (check_live_1, update_live_1): Likewise.
31269         * sel-sched.c (count_occurrences_equiv): Likewise.
31270         * valtrack.c (dead_debug_insert_temp): Likewise.
31272 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
31274         * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
31275         * dse.c (note_add_store): Likewise.
31276         * ira-lives.c (mark_hard_reg_dead): Likewise.
31277         * loop-invariant.c (mark_reg_store): Likewise.
31278         (mark_reg_death): Likewise.
31279         * postreload.c (reload_combine): Likewise.
31280         (reload_combine_note_store): Likewise.
31281         (reload_combine_note_use): Likewise.
31282         * recog.c (peep2_reg_dead_p): Likewise.
31284 2015-05-19  Alan Modra  <amodra@gmail.com>
31286         * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
31287         hard registers numbered greater or equal to ARG_POINTER_REGNUM.
31288         (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
31289         unused predicates.
31290         * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
31291         Use altivec_register_operand.  Make insn predicate TARGET_ALTIVEC.
31292         * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
31293         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
31295 2015-05-19  Sameera Deshpande  <Sameera.Deshpande@imgtec.com>
31297         * config/mips/mips.md (JOIN_MODE): New mode iterator.
31298         (join2_load_Store<JOIN_MODE:mode>): New pattern.
31299         (join2_loadhi): Likewise.
31300         (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
31301         load-load and store-stores.
31302         * config/mips/mips.opt (mload-store-pairs): New option.
31303         (TARGET_LOAD_STORE_PAIRS): New macro.
31304         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
31305         * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
31306         * config/mips/mips.c (mips_load_store_bonding_p): New function.
31308 2015-05-19  Mikhail Maltsev  <maltsevm@gmail.com>
31310         * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
31311         explicit swaps.
31312         * dojump.c (do_compare_rtx_and_jump): Likewise.
31313         * expmed.c (emit_store_flag_1): Likewise.
31314         * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
31315         * final.c (sprint_ul): Use std::reverse for reversing a string.
31316         * fold-const.c (extract_muldiv_1): Use std::swap.
31317         * genmodes.c (emit_mode_int_n): Likewise.
31318         * ifcvt.c (dead_or_predicable): Likewise.
31319         * ira-build.c (ira_merge_live_ranges): Likewise.
31320         (swap_allocno_copy_ends_if_necessary): Likewise.
31321         * ira.c (ira_setup_alts): Likewise.
31322         * loop-iv.c (iv_analyze_expr): Likewise.
31323         (implies_p): Likewise.
31324         (canon_condition): Likewise.
31325         * lra-constraints.c (swap_operands): Likewise.
31326         * lra-lives.c (lra_merge_live_ranges): Likewise.
31327         * omega.c (swap): Remove.
31328         (bswap): Remove.
31329         (omega_unprotect_1): Use std::swap.
31330         (omega_solve_geq): Likewise.
31331         * optabs.c (expand_binop_directly): Likewise.
31332         (expand_binop): Likewise.
31333         (emit_conditional_move): Likewise.
31334         (emit_conditional_add): Likewise.
31335         * postreload.c (reload_cse_simplify_operands): Likewise.
31336         * reg-stack.c (emit_swap_insn): Likewise.
31337         (swap_to_top): Likewise.
31338         (compare_for_stack_reg): Likewise.
31339         (subst_asm_stack_regs): Likewise.
31340         * reload.c (find_reloads): Likewise.
31341         * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
31342         * sel-sched.c (invoke_reorder_hooks): Likewise.
31343         (create_block_for_bookkeeping): Likewise.
31344         * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
31345         (lambda_matrix_right_hermite): Use std::swap.
31346         * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
31347         * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
31348         * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
31349         * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
31350         * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
31351         * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
31352         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
31353         * tree-vrp.c (compare_ranges): Likewise.
31354         * var-tracking.c (add_with_sets): Likewise.
31355         (vt_find_locations): Likewise.
31357 2015-05-18  Andreas Tobler  <andreast@gcc.gnu.org>
31359         * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
31360         pie executables.
31361         (FBSD_ENDFILE_SPEC): Likewise.
31362         * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
31363         config/freebsd-spec.h.
31364         (ENDFILE_SPEC): Likewise.
31366 2015-05-18  Uros Bizjak  <ubizjak@gmail.com>
31367             Richard Henderson  <rth@redhat.com>
31369         PR target/57032
31370         * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
31371         Check for a memory location that is not a reference (using an AND)
31372         to an unaligned location here.
31373         * config/alpha/predicates.md (normal_memory_operand): Remove.
31375 2015-05-18  Alex Velenko  <Alex.Velenko@arm.com>
31377         * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
31378         (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
31380 2015-05-18  Robert Suchanek  <robert.suchanek@imgtec.com>
31382         * config/mips/mips.c (micromips_globals): New variable.
31383         (mips_set_compression_mode): Save and reinitialize target-dependent
31384         state for microMIPS.
31386 2015-05-18  Martin Liska  <mliska@suse.cz>
31388         * dbgcnt.def: Add new counter.
31389         * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
31391 2015-05-18  Martin Liska  <mliska@suse.cz>
31393         * dbgcnt.def: Sort counters.
31394         * opts.c (common_handle_option): Do not compile if
31395         -fdbg-cnt-list is enabled.
31397 2015-05-18  Tom de Vries  <tom@codesourcery.com>
31399         * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
31400         (gimplify_va_arg_expr): Remove do_deref handling.  Remove adding of
31401         address operator to va_list operand.
31402         * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
31403         unconditionally.
31404         * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
31405         operand.
31406         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
31407         * config/s390/s390.c (s390_gimplify_va_arg): Same.
31408         * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
31410 2015-05-18  Tom de Vries  <tom@codesourcery.com>
31412         * tree-ssa-tail-merge.c: Fix whitespace.
31414 2015-05-17  Jim Wilson  <jim.wilson@linaro.org>
31416         * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
31417         cortex-a17, and cortex-a17.cortex-a7.
31419 2015-05-17  Oleg Endo  <olegendo@gcc.gnu.org>
31421         PR target/54236
31422         * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
31424 2015-05-17  Uros Bizjak  <ubizjak@gmail.com>
31426         PR target/66174
31427         * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
31428         QImode inner modes for TARGET_AVX512BW.  Force mask operand
31429         to a register for AVX512F modes.
31431 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
31433         * toplev.c (emit_debug_global_declarations): Do not output debug info
31434         when doing slim LTO objects.
31436 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
31438         * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
31439         odr_types_equivalent_p): Declare.
31440         (odr_type_p): Use gcc_checking_assert.
31441         (type_in_anonymous_namespace_p) Declare.
31442         (type_with_linkage_p): Declare.
31443         * common.opt (Wlto-type-mismatch): New warning.
31444         * ipa-devirt.c (compound_type_base): New function.
31445         (odr_or_derived_type_p): New function.
31446         (odr_types_equivalent_p): New function.
31447         (add_type_duplicate): Simplify.
31448         (type_with_linkage_p): Add hack to prevent false positives on C types
31449         (type_in_anonymous_namespace_p): Likewise.
31450         * tree.c (need_assembler_name_p): Use type_with_linkage.
31451         * tree.h (type_in_anonymous_namespace_p): Remove.
31452         * doc/invoke.texi (-Wlto-type-mismatch): Document
31454 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
31456         * tree.c (verify_type_variant): Verify tree_base and type_common flags.
31457         (verify_type): Verify STRING_FLAG.
31459 2015-05-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
31461         PR fortran/44054
31462         * tree-pretty-print.c (percent_K_format): Replace locus pointer
31463         with accessor function.
31464         * tree-diagnostic.c (diagnostic_report_current_function): Use
31465         diagnostic_location function.
31466         (maybe_unwind_expanded_macro_loc): Likewise.
31467         (virt_loc_aware_diagnostic_finalizer): Likewise.
31468         (default_tree_printer): Replace locus pointer with accessor function.
31469         * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
31470         (diagnostic_set_info_translated): Initialize second location.
31471         (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
31472         (diagnostic_show_locus): Handle two locations. Call
31473         diagnostic_print_caret_line.
31474         (diagnostic_print_caret_line): New.
31475         (default_diagnostic_starter): Use diagnostic_location function.
31476         (diagnostic_report_diagnostic): Use diagnostic_location function.
31477         (verbatim): Do not set text.locus.
31478         * diagnostic.h (struct diagnostic_info): Remove location field.
31479         (struct diagnostic_context): Make caret_chars an array of two.
31480         (diagnostic_location): New inline.
31481         (diagnostic_expand_location): Handle two locations.
31482         (diagnostic_same_line): New inline.
31483         (diagnostic_print_caret_line): Declare.
31484         (CARET_LINE_MARGIN): New constant.
31485         * pretty-print.c (pp_printf): Do not set text.locus.
31486         (pp_verbatim): Do not set text.locus.
31487         * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
31488         (struct text_info): Replace locus pointer with locations
31489         array. Add accessor functions.
31491 2015-05-16  Kugan Vivekanandarajah  <kuganv@linaro.org>
31492             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
31494         PR target/65768
31495         * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
31496         * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
31497          large constants in register instead of splitting them.
31499 2015-05-16  Uros Bizjak  <ubizjak@gmail.com>
31501         PR target/66140
31502         * config/alpha/alpha.c (get_aligned_mem): Also look for reload
31503         replacements in memory addresses.
31504         (get_unaligned_address): Ditto.
31506 2015-05-16  James Bowman  <james.bowman@ftdichip.com>
31508         * config/ft32/*: New files for FT32 port.
31509         * doc/install.texi: Add FT32 information.
31510         * doc/invoke.texi: Add FT32 information.
31511         * doc/md.texi: Add FT32 information.
31512         * doc/contrib.texi: Self added.
31514 2015-05-15  Marc Glisse  <marc.glisse@inria.fr>
31516         PR tree-optimization/64454
31517         * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
31518         (-1 - A -> ~A): Remove unnecessary condition.
31520 2015-05-15  Gregor Richards  <gregor.richards@uwaterloo.ca>
31522         * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
31523         * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
31524         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
31526 2015-05-15  Ilya Enkovich  <ilya.enkovich@intel.com>
31528         * ipa-chkp.h (chkp_wrap_function): New.
31529         * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
31530         (chkp_wrap_function_name): New.
31531         (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
31532         to get wrapper name.
31533         * lto-cgraph.c: Include ipa-chkp.h.
31534         (input_cgraph_1): Avoid alias chain for wrappers.
31536 2015-05-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
31538         PR middle-end/66134
31539         * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
31540         (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
31542 2015-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31544         * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
31545         (AARCH64_FL_SLOWMUL): Delete.
31546         (AARCH64_FL_CRC): Redefine to 1<<3.
31547         (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
31549 2015-05-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
31551         * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
31552         casting.
31554 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
31556         * config/alpha/alpha.md (extendqidi2): Use general_operand
31557         instead of some_operand for operand[1] predicate.
31558         (extendhidi2): Ditto.
31559         (cbranchdi4): Use general_operand instead of some_operand
31560         for operand[1] and operands[2] predicates.
31561         (cstoredi4): Ditto.
31562         * config/alpha/predicates.md (some_operand): Remove unused predicate.
31563         (some_ni_operand): Ditto.
31565 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
31567         * config/alpha/alpha.c (alpha_extract_integer): Do not handle
31568         CONST_WIDE_INT and CONST_DOUBLE.  Assert CONST_INT_P (x).
31569         (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
31570         low part of the constant using alpha_emit_set_const_1.
31571         (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
31573 2015-05-14  Rohit Arul Raj  <rohitrulraj@freescale.com>
31575         * varasm.c (output_constant_pool_1): Pass down alignment from
31576         constant pool entry's descriptor to output_constant_pool_2.
31577         (output_object_block): Add comment prior to call to
31578         output_constant_pool_1.
31580 2015-05-14  Vladimir Makarov  <vmakarov@redhat.com>
31582         PR rtl-optimization/65862
31583         * target.def (ira_change_pseudo_allocno_class): New hook.
31584         * targhooks.c (default_ira_change_pseudo_allocno_class): Default
31585         value of the hook.
31586         * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
31587         * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
31588         hook.
31589         * ira-costs.c (find_costs_and_classes): Call the hook and change
31590         classes when it is necessary.
31591         * doc/tm.texi: Update.
31593 2015-05-14  Alexander Monakov  <amonakov@ispras.ru>
31595         * config/i386/i386.md (sibcall_memory): Check that register with
31596         callee address is not also used as one of the arguments, instead
31597         of checking that it is not live after the sibcall.
31598         (sibcall_pop_memory): Ditto.
31599         (sibcall_value_memory): Ditto.
31600         (sibcall_value_pop_memory): Ditto.
31602 2015-05-14  Marc Glisse  <marc.glisse@inria.fr>
31604         * generic-match-head.c (types_match): Handle non-types.
31605         * gimple-match-head.c (types_match): Likewise.
31606         * match.pd: Remove unnecessary TREE_TYPE for types_match.
31608 2015-05-14  Wilco Dijkstra  <wdijkstr@arm.com>
31610         * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
31611         (csneg3<mode>_insn): Enable expansion of pattern.
31613 2015-05-14  Nick Clifton  <nickc@redhat.com>
31615         * config/rl78/rl78.c (rl78_select_section): Select the correct
31616         default section based upon the category of the decl.
31618 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
31620         PR rtl-optimization/30967
31621         * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
31622         destination mode for the cost of scc patterns.
31624 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
31626         * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
31627         using SWIM248 mode iterator.
31628         (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
31629         (*mulvhi4): mark operand[1] as commutative.  Use nonimmediate_operand
31630         for operand[2] constraint.
31631         (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
31633 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
31635         PR middle-end/66133
31636         * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
31637         make sure it is never noreturn, even when the task body does not
31638         return.
31639         (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
31640         right before GIMPLE_OMP_RETURN.
31641         (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
31642         for GIMPLE_OMP_TASK.  For GIMPLE_OMP_RETURN corresponding to
31643         GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
31645 2015-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31647         * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
31648         * tree-ssa-math-opts.c: Include params.h
31649         (pow_synth_sqrt_info): New struct.
31650         (representable_as_half_series_p): New function.
31651         (get_fn_chain): Likewise.
31652         (print_nested_fn): Likewise.
31653         (dump_fractional_sqrt_sequence): Likewise.
31654         (dump_integer_part): Likewise.
31655         (expand_pow_as_sqrts): Likewise.
31656         (gimple_expand_builtin_pow): Use above to attempt to expand
31657         pow as series of square roots.  Removed now unused variables.
31659 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
31661         * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
31662         (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
31663         Remove *p0 and *p1 arguments.  Rewrite function.
31664         (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
31665         (alpha_split_const_mov): Update calls to alpha_extract_integer and
31666         alpha_emit_set_long_const.
31667         (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
31668         (alpha_output_mi_thunk_osf): Ditto.
31669         * config/alpha/alpha.md (movti): Do not check operands[1]
31670         for CONST_DOUBLE.
31672 2015-05-13  Richard Biener  <rguenther@suse.de>
31674         PR tree-optimization/66129
31675         * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
31676         commutative.
31677         (vect_schedule_slp_instance): Fix typo.
31679 2015-05-13  David Malcolm  <dmalcolm@redhat.com>
31681         * common.opt (fdump-internal-locations): New option.
31682         * input.c: Include diagnostic-core.h.
31683         (get_end_location): New function.
31684         (write_digit): New function.
31685         (write_digit_row): New function.
31686         (dump_location_range): New function.
31687         (dump_labelled_location_range): New function.
31688         (dump_location_info): New function.
31689         * input.h (dump_location_info): New prototype.
31690         * toplev.c (compile_file): Handle flag_dump_locations.
31692 2015-05-13  Eric Botcazou  <ebotcazou@adacore.com>
31694         * gimple-expr.h (is_gimple_constant): Reorder.
31695         * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
31697 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
31699         * combine.c (simplify_set): When generating a CC set, if the
31700         source already is in the correct mode, do not wrap it in a
31701         compare.  Simplify the rest of that code.
31703 2015-05-13  Richard Biener  <rguenther@suse.de>
31705         PR tree-optimization/66123
31706         * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
31707         a taken edge.
31709 2015-05-13  Richard Biener  <rguenther@suse.de>
31711         PR middle-end/66110
31712         * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
31713         specially.
31714         * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
31716 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
31718         * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
31719         * aclocal.m4: Regenerated with automake-1.11.6.
31721 2015-05-13  Tom de Vries  <tom@codesourcery.com>
31723         PR tree-optimization/66010
31724         * gimplify.h (gimplify_va_arg_internal): Remove declaration.
31725         * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
31726         * tree-stdarg.c (expand_ifn_va_arg_1): ... here.  Choose between lval
31727         and rval based on do_deref.
31729 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
31731         PR target/65103
31732         * config/i386/i386.c (ix86_rtx_costs): We want to propagate
31733         link time constants into adress expressions and therefore set
31734         their cost to 0.
31736 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
31738         PR target/66112
31739         * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
31740         Use SWI248 iterator instead of SWI.
31741         (*mulv<mode>4_1): Use SWI48 instead of SWI.  Simplify output template.
31742         Use eq_attr "alternative" "0" instead of match_test in
31743         length_immediate attribute computation.
31744         (*mulvhi4, *mulvhi4_1): New define_insns.
31746         PR target/66112
31747         * internal-fn.c (get_min_precision): Use UNSIGNED instead of
31748         SIGNED to get precision of non-negative value.
31750 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
31752         PR target/66048
31753         * function.c (diddle_return_value_1): Process bounds first.
31754         * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
31755         register.
31757 2015-05-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
31759         PR rtl-optimization/64616
31760         * loop-invariant.c (can_move_invariant_reg): New.
31761         (move_invariant_reg): Call above new function to decide whether
31762         instruction can just be moved, skipping creation of temporary
31763         register.
31765 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
31767         PR target/pr66047.c
31768         * i386.c (ix86_function_sseregparm): Only return -1 if local function
31769         with implied regparm is called from -mno-sse function.
31770         (init_cumulative_args): Output error if ix86_function_sseregparm
31771         return -1 and SSE register would be needed.
31772         (function_arg_advance_32): Likewise.
31773         (function_arg_32): Likewise.
31774         * i386.h (ix86_args): Add decl field.
31776 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
31778         PR ipa/65873
31779         * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
31780         inlines across optimization boundary.
31782 2015-05-12  Jason Merrill  <jason@redhat.com>
31784         * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
31785         string literal and macro name.
31787 2015-05-12  Steve Ellcey  <sellcey@imgtec.com>
31789         * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
31790         * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
31791         * config/mips/predicates.md (const_immlsa_operand): Remove log call.
31793 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
31795         * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
31796         (-Wmisleading-indentation): New option.
31797         * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
31799 2015-05-12  Uros Bizjak  <ubizjak@gmail.com>
31801         * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
31802         * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
31803         (alpha_extract_integer): Ditto.
31804         (alpha_legitimate_constant_p): Ditto.
31805         (alpha_split_tmode_pair): Ditto.
31806         (alpha_preferred_reload_class): Add CONST_WIDE_INT.
31807         (alpha_expand_mov): Ditto.
31808         (print_operand): Remove handling of 'H' modifier.
31809         <case 'm'>: Remove CONST_DOUBLE handling.
31810         (summarize_insn): Handle CONST_WIDE_INT.
31811         * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
31812         (anddi3): Ditto.
31813         (movti): Handle CONST_WIDE_INT.
31814         * config/alpha/constraints.md ('H'): Remove constraint definition.
31815         ('G'): Do not match MODE_FLOAT class.
31816         * config/alpha/predicates.md (const0_operand): Also match
31817         const_wide_int.
31818         (non_add_const_operand): Ditto.
31819         (non_zero_const_operand): Ditto.
31820         (some_operand): Ditto.
31821         (input_operand): Ditto.  Handle CONST_WIDE_INT.
31822         (and_operand): Do not match const_double.
31823         * config/alpha/sync.md (fetchop_constr): Remove H constraint.
31825 2015-05-12  Andrew MacLeod  <amacleod@redhat.com>
31827         PR target/65697
31828         * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
31829         (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
31830         * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
31831         is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
31832         is_mm_seq_cst, is_mm_sync): New accessor functions.
31833         * builtins.c (expand_builtin_sync_operation,
31834         expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
31835         (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
31836         (get_memmodel,  expand_builtin_atomic_compare_exchange,
31837         expand_builtin_atomic_load, expand_builtin_atomic_store,
31838         expand_builtin_atomic_clear): Use new accessor routines.
31839         (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
31840         * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
31841         (maybe_emit_sync_lock_test_and_set): Use new accessors and
31842         MEMMODEL_SYNC_ACQUIRE.
31843         (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
31844         (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
31845         expand_atomic_store): Use new accessors.
31846         * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
31847         * tsan.c (instrument_builtin_call): Update check for memory model beyond
31848         final enum to use MEMMODEL_LAST.
31849         * c-family/c-common.c: Use new accessor for memmodel_base.
31850         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
31851         accessors.
31852         * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
31853         arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
31854         mem_thread_fence, *dmb): Likewise.
31855         * config/alpha/alpha.c (alpha_split_compare_and_swap,
31856         alpha_split_compare_and_swap_12): Likewise.
31857         * config/arm/arm.c (arm_expand_compare_and_swap,
31858         arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
31859         * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
31860         atomic_loaddi): Likewise.
31861         * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
31862         Likewise.
31863         * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
31864         * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
31865         use new accessors.
31866         * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
31867         atomic_store<mode>, atomic_compare_and_swap<mode>,
31868         atomic_exchange<mode>): Use new accessors.
31869         * config/mips/mips.c (mips_process_sync_loop): Likewise.
31870         * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
31871         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
31872         rs6000_post_atomic_barrier): Add new cases.
31873         (rs6000_expand_atomic_compare_and_swap): Use new accessors.
31874         * config/rs6000/sync.md (mem_thread_fence): Add new cases.
31875         (atomic_load<mode>): Add new cases and use new accessors.
31876         (store_quadpti): Add new cases.
31877         * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
31878         accessors.
31879         * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
31880         * doc/extend.texi: Update docs to indicate 16 bits are used for memory
31881         model, not 8.
31883 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
31885         * ipa-devirt.c (type_with_linkage_p): New function.
31886         (type_in_anonymous_namespace_p): Move here from tree.c; assert that
31887         type has linkage.
31888         (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
31889         (can_be_name_hashed_p): Simplify.
31890         (hash_odr_name): Check that type has linkage before checking if it is
31891         anonymous.
31892         (types_same_for_odr): Likewise.
31893         (odr_name_hasher::equal): Likewise.
31894         (odr_subtypes_equivalent_p): Likewise.
31895         (warn_types_mismatch): Likewise.
31896         (get_odr_type): Likewise.
31897         (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
31898         * ipa-utils.h (odr_type_p): Move offline.
31899         * tree.c (need_assembler_name_p): Fix handling of types
31900         without linkages.
31901         (type_in_anonymous_namespace_p): Move to ipa-devirt.c
31903 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
31905         * timevar.c (timevar_enable): Delete in favor of...
31906         (g_timer): New global.
31907         (struct timevar_def): Move to timevar.h inside class timer.
31908         (struct timevar_stack_def): Likewise.
31909         (timevars): Delete global in favor of field "m_timevars" within
31910         class timer in timevar.h
31911         (stack): Likewise, in favor of field "m_stack".
31912         (unused_stack_instances): Likewise, in favor of field
31913         "m_unused_stack_instances".
31914         (start_time): Likewise, in favor of field "m_start_time".
31915         (get_time): Eliminate check for timevar_enable.
31916         (timer::timer): New function, built from part of timevar_init.
31917         (timevar_init): Rewrite idempotency test from using
31918         "timevar_enable" bool to using dynamic allocation of "g_timer".
31919         Move rest of implementation into timer's constructor.
31920         (timevar_push_1): Rename to...
31921         (timer::push): ...this, adding "m_" prefixes to variables that
31922         are now fields of timer.
31923         (timevar_pop_1): Likewise, rename to...
31924         (timer::pop): ...this, and add "m_" prefixes.
31925         (timevar_start): Replace test for "timevar_enable" with one for
31926         "g_timer", and move bulk of implementation to...
31927         (timer::start): ...here, adding "m_" prefixes.
31928         (timevar_stop): Likewise, from here...
31929         (timer::stop): ...to here.
31930         (timevar_cond_start): Likewise, from here...
31931         (timer::cond_start): ...to here.
31932         (timevar_cond_stop): Likewise, from here...
31933         (timer::cond_stop): ...to here.
31934         (validate_phases): Rename to...
31935         (timer::validate_phases): ...this, and add "m_" prefixes.  Make
31936         locals "total" and "tv" const.
31937         (timevar_print): Rename to...
31938         (timer::print): ...this, and add "m_" prefixes.  Make locals
31939         "total" and "tv" const.  Eliminate test for timevar_enable.
31940         * timevar.h (timevar_enable): Eliminate.
31941         (g_timer): New declaration.
31942         (timevar_push_1): Eliminate.
31943         (timevar_pop_1): Eliminate.
31944         (timevar_print): Eliminate.
31945         (class timer): New class.
31946         (timevar_push): Rewrite to use g_timer.
31947         (timevar_pop): Likewise.
31948         * toplev.c (toplev::~toplev): Likewise.
31950 2015-05-12  Richard Earnshaw  <rearnsha@arm.com>
31952         * arm-protos.h (arm_sched_autopref): Delete.
31953         (tune_params): Re-organize, use enums for flag values.
31954         (FUSE_OPS): New macro.
31955         * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
31956         (ARM_PREFETCH_BENEFICIAL): Likewise.
31957         (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
31958         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
31959         (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
31960         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
31961         (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
31962         (arm_cortex_a57_tune,  arm_xgene1_tune, arm_cortex_a5_tune)
31963         (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
31964         (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
31965         format.
31966         (arm_option_override, thumb2_reorg, arm_print_tune_info)
31967         (aarch_macro_fusion_pair_p): Update uses of current_tune.
31968         * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
31970 2015-05-12  Sandra Loosemore  <sandra@codesourcery.com>
31972         * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
31973         "break".
31975 2015-05-12  Chung-Lin Tang  <cltang@codesourcery.com>
31976             Sandra Loosemore <sandra@codesourcery.com>
31978         * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
31979         value.
31980         (REG_CLASS_NAMES): Add "IJMP_REGS".
31981         (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
31982         * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
31983         use new "c" register constraint.
31984         * config/nios2/constraint.md (c): New register constraint
31985         corresponding to IJMP_REGS.
31987 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
31989         * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
31990         *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
31991         define_splits): Delete, revamp, transmogrify into ...
31992         (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
31993         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
31994         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
31995         New.
31997 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
31999         * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
32000         gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
32002 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
32004         * config/rs6000/rs6000.md (extzv): FAIL for SImode.
32005         (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
32006         *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
32007         *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
32008         *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
32009         *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
32010         *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
32011         *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
32012         *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
32013         *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
32014         *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
32015         *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
32016         *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
32017         *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
32018         *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
32019         *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
32020         and 30 corresponding splitters): Delete.
32022 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
32024         * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
32025         zero_extract.
32027 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
32029         * combine.c (recog_for_combine_1): New function, factored out
32030         from recog_for_combine.
32031         (change_zero_ext): New function.
32032         (recog_for_combine): If recog fails, try again with the pattern
32033         modified by change_zero_ext; if that still fails, restore the
32034         pattern.
32036 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
32038         * combine.c (get_undo_marker): New function.
32039         (undo_to_marker): New function, largely factored out from ...
32040         (undo_all): ... this.  Adjust.
32042 2015-05-12  Richard Biener  <rguenther@suse.de>
32044         PR tree-optimization/66101
32045         * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
32046         fixup if we turn a loop exit edge to a fallthru edge.
32048 2015-05-12  Richard Biener  <rguenther@suse.de>
32050         PR tree-optimization/37021
32051         * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
32052         (SLP_TREE_TWO_OPERATORS): New define.
32053         * tree-vect-slp.c (vect_create_new_slp_node): Initialize
32054         SLP_TREE_TWO_OPERATORS.
32055         (vect_build_slp_tree_1): Allow two mixing plus/minus in an
32056         SLP node.
32057         (vect_build_slp_tree): Adjust.
32058         (vect_analyze_slp_cost_1): Likewise.
32059         (vect_schedule_slp_instance): Vectorize mixing plus/minus by
32060         emitting two vector stmts and mixing the results.
32062 2015-05-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
32064         * call.c (print_z_candidates): Remove dead code.
32066 2015-05-12  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
32068         * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
32069         and zEC12_simple_fp.
32070         * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
32071         to 1.
32073 2015-05-12  Tom de Vries  <tom@codesourcery.com>
32075         PR tree-optimization/66010
32076         * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
32077         ifn_va_arg.
32078         * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
32079         (gimplify_va_arg_internal): Remove loc parameter.  Assert no array-typed
32080         va_lists are passed, and remove corresponding handling.
32081         (gimplify_va_arg_expr): Only take address of ap if necessary.  Add
32082         do_deref argument to ifn_va_arg.
32083         * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
32084         ifn_va_arg.
32086 2015-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32088         PR target/65955
32089         * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
32090         REG before taking its REGNO.
32092 2015-05-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
32094         * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
32095         rsp->sign_bit_copies and rsp->nonzero_bits into ...
32096         (update_rsp_from_reg_equal): This.  Also use REG_EQUAL note on src if
32097         present to get more accurate information about the number of sign bit
32098         copies and non zero bits.
32100 2015-05-12  Richard Biener  <rguenther@suse.de>
32102         * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
32103         do not allow unrolling.
32105 2015-05-11  Richard Henderson  <rth@redhat.com>
32107         * config/i386/i386-modes.def (CCP): New.
32108         * config/i386/i386.c (put_condition_code): Handle it.
32109         (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
32111 2015-05-11  Richard Henderson  <rth@redhat.com>
32113         * target.def (md_asm_clobbers): Replace with...
32114         (md_asm_adjust): this.
32115         * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
32116         (TARGET_MD_ASM_ADJUST): New.
32117         * tm.texi: Rebuild.
32118         * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
32119         * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
32120         * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
32122         * cfgexpand.c (check_operand_nalternatives): Accept vector of
32123         constraints instead of lists of outputs and inputs.
32124         (expand_asm_stmt): Save and restore input_location around the
32125         body of the function.  Move asm data into vectors instead of
32126         building tree lists.  Generate cleanup sequences as needed,
32127         rather than waiting til the end.  Use new md_asm_adjust hook.
32129         * config/vxworks.c: Include vec.h before target.h.
32130         * gimple.c: Likewise.
32131         * incpath.c: Likewise.
32132         * mode-switching.c: Likewise.
32134         * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
32135         (cris_md_asm_adjust): this.
32136         (TARGET_MD_ASM_CLOBBERS): Remove.
32137         (TARGET_MD_ASM_ADJUST): New.
32138         * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
32139         (ix86_md_asm_adjust): this.
32140         (TARGET_MD_ASM_CLOBBERS): Remove.
32141         (TARGET_MD_ASM_ADJUST): New.
32142         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
32143         (mn10300_md_asm_adjust): this.
32144         (TARGET_MD_ASM_CLOBBERS): Remove.
32145         (TARGET_MD_ASM_ADJUST): New.
32146         * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
32147         (rs6000_md_asm_adjust): this.
32148         (TARGET_MD_ASM_CLOBBERS): Remove.
32149         (TARGET_MD_ASM_ADJUST): New.
32150         * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
32151         (visium_md_asm_adjust): this.
32152         (TARGET_MD_ASM_CLOBBERS): Remove.
32153         (TARGET_MD_ASM_ADJUST): New.
32155 2015-05-11  Richard Henderson  <rth@redhat.com>
32157         * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
32158         if noutputs is zero.
32159         * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
32161         * cfgexpand.c (expand_asm_operands): Merge into...
32162         (expand_asm_stmt): ... here.
32164         * cfgexpand.c (expand_asm_operands): Don't call
32165         resolve_asm_operand_names.
32166         * stmt.c (resolve_asm_operand_names): Clarify block comment.
32168 2015-05-11  Jan Hubicka  <hubicka@ucw.cz>
32170         * dwarf2out.c (gen_member_die): Sanity check that we access
32171         TYPE_MAIN_VARIANT for TYPE_METHODS.
32172         * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
32173         checking TYPE_METHODS.
32174         * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
32175         if non-null.
32176         (build_distinct_type_copy): Clear TYPE_METHODS.
32177         (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
32178         (verify_type): Allow TYPE_METHODS to be error_mark_node.
32179         * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
32181 2015-05-11  Eric Botcazou  <ebotcazou@adacore.com>
32183         * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
32184         (emit_pattern_before_setloc): Likewise.
32186 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
32188         * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
32189         for define_peephole2s.
32190         (get_peephole2_pattern): New function.
32191         (main): Use it.  Call validate_pattern.
32193 2015-05-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
32195         * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
32196         LAST_CALLEE_SAVED_REG instead of hard-coded register number.
32197         (Last callee saved reg is different for AVR_TINY architecture)
32199 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
32201         * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
32202         when looking for memory references.
32204 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
32206         PR target/65753
32207         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
32208         via function pointers.
32210 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
32212         * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
32213         indirect call by forcing address into a pseudo with -fno-plt.
32214         * common.opt (flag_plt): New option.
32215         * doc/invoke.texi (Code Generation Options): Add -fno-plt.
32216         ([-fno-plt]): Document.
32218 2015-05-11  Markus Trippelsdorf  <markus@trippelsdorf.de>
32220         PR bootstrap/66105
32221         * config/rs6000/option-defaults.h: Add space between string literal
32222         and macro name.
32224 2015-05-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
32226         * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
32227         accross ARM targets.
32229 2015-05-11  Christian Bruel  <christian.bruel@st.com>
32231         * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
32232         * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
32234 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
32236         PR rtl-optimization/66076
32237         * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
32238         Don't grow the heap array if it is already big enough from a
32239         previous iteration.
32241 2015-05-11  Christian Bruel  <christian.bruel@st.com>
32243         * config/arm/arm-protos.h (arm_declare_function_name): Declare.
32244         (is_called_in_ARM_mode): Remove.
32245         * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
32246         (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
32247         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
32248          arm_declare_function_name.
32250 2015-05-11  Christian Bruel  <christian.bruel@st.com>
32252         * config/arm/arm.c (arm_option_override): Reoganized and split into :
32253         (arm_option_params_internal); New function.
32254         (arm_option_check_internal): New function.
32255         (arm_option_override_internal): New function.
32256         (thumb_code, thumb1_code): Remove.
32257         * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
32258         (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
32259         (thumb_code, thumb1_code): Remove.
32260         * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
32262 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
32264         * config/alpha/alpha.c (alpha_emit_set_const_1)
32265         (alpha_emit_set_long_const, alpha_extract_integer)
32266         (alpha_legitimate_constant_p, alpha_split_const_mov)
32267         (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
32268         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
32269         (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
32270         HOST_WIDE_INT_1U.
32271         * config/alpha/predicates.md (mode_mask_operand): Do not match
32272         const_double RTX.
32273         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
32274         * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
32275         Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
32276         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
32277         (*negtf_internal): Use gen_int_mode instead of immed_double_const.
32279 2015-05-11  Jakub Jelinek  <jakub@redhat.com>
32281         PR target/65780
32282         * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
32283         default_binds_local_p_2.
32284         * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
32285         * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
32287 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
32289         * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
32291 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
32293         Patch by Richard Biener
32294         * coverage.c (coverage_obj_init): Delay building of type variant
32295         until the type is finished.
32297 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
32299         * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
32300         mismatch between C and C++ type; compoare correctly ARG_TYPES
32301         for non-prototypes and output correctly parameter index for METHOD_TYPE.
32302         (odr_types_equivalent_p): Fix wording of warning about attributes;
32303         it is OK to match prototype and non-prototype.
32305 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
32307         * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
32308         TYPE_ARG_TYPES list.
32309         (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
32310         * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
32312 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
32314         * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
32315         * tree.h (is_lang_specific): Constify.
32317 2015-05-09  Marc Glisse  <marc.glisse@inria.fr>
32319         PR tree-optimization/64454
32320         * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
32321         Rewrite.
32323 2015-05-08  Jason Merrill  <jason@redhat.com>
32325         * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
32326         config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
32327         config/darwin.h, config/darwin9.h, config/elfos.h,
32328         config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
32329         config/microblaze/microblaze.h, config/mips/mips.h,
32330         config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
32331         config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
32332         config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
32333         config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
32334         config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
32335         cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
32336         dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
32337         ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
32338         ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
32339         modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
32340         tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
32341         between string literal and macro name.
32343 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32345         * jump.c: Change argument types to rtx_insn *.
32346         * rtl.h: Adjust.
32348 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32350         * lra-constraints.c: Change argument type to rtx_insn *.
32352 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32354         * df-problems.c: Change argument type to rtx_insn *.
32356 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32358         * combine.c: Change argument type to rtx_insn *.
32360 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32362         * rtl.h: Adjust.
32363         * rtlanal.c: Change argument type to rtx_insn *.
32365 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32367         * sched-deps.c: Change argument types to rtx_insn *.
32368         * sched-int.h: Adjust.
32370 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32372         * dwarf2cfi.c: Change argument type to rtx_insn *.
32374 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32376         * ira.c (decrease_live_ranges_number): Changetype of local
32377         variable to rtx_insn *.
32378         * recog.c: Change argument types to rtx_insn *.
32379         * recog.h: Adjust.
32381 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32383         * reorg.c: Change argument types to rtx_insn *.
32385 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32387         * ira-color.c: Change argument types to rtx_insn *.
32388         * lra-eliminations.c: Likewise.
32389         * ira.h: Adjust.
32391 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32393         * gcse.c: Change argument types to rtx_insn *.
32395 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32397         * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
32399 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32401         * emit-rtl.c (emit_debug_insn_before): Change argument type to
32402         rtx_insn *.
32403         * rtl.h: Adjust.
32405 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32407         * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
32408         * rtl.h: Adjust.
32410 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32412         * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
32413         * rtl.h: Adjust.
32415 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32417         * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
32418         * rtl.h: Adjust.
32420 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32422         * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
32423         * rtl.h: Adjust.
32425 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32427         * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
32428         to rtx_insn *.
32429         * rtl.h: Adjust.
32431 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32433         * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
32434         to rtx_insn *.
32435         * rtl.h: Likewise.
32437 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32439         * except.c (can_nonlocal_goto): Change type of argument to
32440         rtx_insn *.
32441         * rtl.h: Adjust.
32443 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32445         * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
32446         * rtl.h: Adjust.
32448 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32450         * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
32451         * cfgrtl.c (can_delete_label_p): Adjust.
32452         * rtl.h: likewise.
32454 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32456         * reorg.c (stop_search_p): Change argument to rtx_insn *.
32458 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32460         * except.c (make_reg_eh_region_note): Change argument to
32461         rtx_insn *.
32462         (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
32463         * except.h: Adjust.
32465 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32467         * mode-switching.c (commit_mode_sets): Change type of local
32468         variable from rtx to rtx_insn *.
32470 2015-05-08  Jim Wilson  <jim.wilson@linaro.org>
32472         * doc/install.texi (--enable-languages): Add missing jit and lto info.
32473         Add ^ to grep command.
32474         * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
32475         arg to last gimple_simplify declaration.  Add missing gimple_build
32476         declaration for built-in function case with four tree args.
32478 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
32479             Szabolcs Nagy  <szabolcs.nagy@arm.com>
32481         * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
32482         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
32483         (GNU_USER_DYNAMIC_LINKERN32): Update.
32485 2015-05-08  Richard Biener  <rguenther@suse.de>
32487         PR tree-optimization/66036
32488         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
32489         Handle strided group loads.
32490         (vect_verify_datarefs_alignment): Likewise.
32491         (vect_enhance_data_refs_alignment): Likewise.
32492         (vect_analyze_group_access): Likewise.
32493         (vect_analyze_data_ref_access): Likewise.
32494         (vect_analyze_data_ref_accesses): Likewise.
32495         * tree-vect-stmts.c (vect_model_load_cost): Likewise.
32496         (vectorizable_load): Likewise.
32498 2015-05-08  Segher Boessenkool  <segher@kernel.crashing.org>
32500         * config/rs6000/rs6000.md: Require operand inequality in one
32501         of the peepholes.
32503 2015-05-08  Richard Sandiford  <richard.sandiford@arm.com>
32504             Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
32506         * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
32507         from (set ...).
32508         * config/rx/rx.md (movdi, movdf): Likewise.
32509         Likewise for define_peephole2s.
32511 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
32513         * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
32514         vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
32515         vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
32516         vtst_u64): Rewrite using gcc vector extensions.
32518 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
32520         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
32521         vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
32523 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
32525         * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
32527 2015-05-08  Szabolcs Nagy  <szabolcs.nagy@arm.com>
32529         * config/glibc-stdint.h (OPTION_MUSL): Define.
32530         (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
32531         Change the definition based on OPTION_MUSL for 64 bit targets.
32532         * config/linux.h (OPTION_MUSL): Redefine.
32533         * config/alpha/linux.h (OPTION_MUSL): Redefine.
32534         * config/rs6000/linux.h (OPTION_MUSL): Redefine.
32535         * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
32537 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
32538             Szabolcs Nagy  <szabolcs.nagy@arm.com>
32540         * config.gcc (LIBC_MUSL): New tm_defines macro.
32541         * config/linux.h (OPTION_MUSL): Define.
32542         (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
32543         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
32544         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
32545         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
32546         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
32547         * config/linux.opt (mmusl): New option.
32548         * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
32549         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
32550         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
32551         * configure: Regenerate.
32553 2015-05-08  H.J. Lu  <hongjiu.lu@intel.com>
32554             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
32556         PR target/48904
32557         * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
32558         * config/i386/knetbsd-gnu64.h: New file.
32560 2015-05-08  Marek Polacek  <polacek@redhat.com>
32562         PR c/64918
32563         * doc/invoke.texi: Document -Woverride-init-side-effects.
32565 2015-05-07  Marek Polacek  <polacek@redhat.com>
32567         PR c/65179
32568         * doc/invoke.texi: Document -Wshift-negative-value.
32570 2015-05-06  Aditya Kumar  <hiraditya@msn.com>
32572         * gcov-tool.c (do_merge): Refactore to remove int ret.
32573         * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
32574         !type == FUNC to type != FUNC.
32575         * reload.h (struct target_reload): Changee to type of
32576         x_spill_indirect_levels from bool to unsigned char.
32578 2015-05-07  Richard Sandiford  <richard.sandiford@arm.com>
32580         * rtl.h (always_void_p): New function.
32581         * gengenrtl.c (always_void_p): Likewise.
32582         (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
32583         with code foo are always VOIDmode.
32584         * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
32585         * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
32586         compare-elim.c, config/aarch64/aarch64.c,
32587         config/aarch64/aarch64.md, config/alpha/alpha.c,
32588         config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
32589         config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
32590         config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
32591         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
32592         config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
32593         config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
32594         config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
32595         config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
32596         config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
32597         config/ia64/vect.md, config/iq2000/iq2000.c,
32598         config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
32599         config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
32600         config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
32601         config/mep/mep.c, config/microblaze/microblaze.c,
32602         config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
32603         config/mn10300/mn10300.c, config/msp430/msp430.c,
32604         config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
32605         config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
32606         config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
32607         config/rs6000/altivec.md, config/rs6000/rs6000.c,
32608         config/rs6000/rs6000.md, config/rs6000/vector.md,
32609         config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
32610         config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
32611         config/sh/sh.md, config/sh/sh_treg_combine.cc,
32612         config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
32613         config/spu/spu.md, config/stormy16/stormy16.c,
32614         config/tilegx/tilegx.c, config/tilegx/tilegx.md,
32615         config/tilepro/tilepro.c, config/tilepro/tilepro.md,
32616         config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
32617         config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
32618         expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
32619         lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
32620         reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
32621         var-tracking.c: Update calls accordingly.
32623 2015-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
32625         PR middle-end/192
32626         PR middle-end/54303
32627         * varasm.c (function_mergeable_rodata_prefix): New function.
32628         (mergeable_string_section): Use it.
32629         (mergeable_constant_section): Use it.
32631 2015-05-07  Jeff Law  <law@redhat.com>
32633         PR target/39726
32634         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
32635         simplifier to narrow arithmetic.
32636         * generic-match-head.c: (types_match, single_use): New functions.
32637         * gimple-match-head.c: (types_match, single_use): New functions.
32639 2015-05-07  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
32641         * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
32642         rtx type.
32644 2015-05-07  Richard Biener  <rguenther@suse.de>
32646         PR tree-optimization/66002
32647         * passes.def: Schedule another pass_merge_phi after ifcombine, right
32648         before phiopt.
32650 2015-05-07  Marek Polacek  <polacek@redhat.com>
32651             Martin Uecker  <uecker@eecs.berkeley.edu>
32653         * doc/invoke.texi: Document -fsanitize=bounds-strict.
32654         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
32655         into SANITIZE_NONDEFAULT.
32656         * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
32658 2015-05-07  Uros Bizjak  <ubizjak@gmail.com>
32660         PR target/66015
32661         * config/alpha/alpha.c (alpha_override_options_after_change): New.
32662         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
32663         (alpha_override_options): Move align_loops, align_jumps and
32664         align_functions handling into alpha_override_options_after_change.
32666 2015-05-06  Sandra Loosemore  <sandra@codesourcery.com>
32667             Chris Jones  <chrisj@nvidia.com>
32668             Joshua Conner  <jconner@nvidia.com>
32670         * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
32671         linking of crtfastmath.o.
32672         * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
32674 2015-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
32676         * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
32677         (cstore<mode>4_unsigned_imm): New expander.
32678         (cstore<mode>4): Remove empty constraint strings.  Use the new
32679         expanders.
32681 2015-05-06  Yvan Roux  <yvan.roux@linaro.org>
32683         PR target/64208
32684         * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
32685         alternatives.
32687 2015-05-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
32689         * config/aarch64/geniterators.sh: Use standard BRE in sed.
32691 2015-05-06  Alan Modra  <amodra@gmail.com>
32693         PR target/66033
32694         * config/rs6000/rs6000.md (nop): Use an unspec pattern.
32695         (UNSPEC_NOP): Define.
32696         (reload_vsx_from_gpr<mode>): Add missing DONE.
32697         (reload_gpr_from_vsx<mode>): Likewise.
32698         * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
32699         (vsx_div_v2di, vsx_udiv_v2di): Likewise.
32701 2015-05-06  Christian Bruel  <christian.bruel@st.com>
32703         PR target/66015
32704         * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
32705         align_jumps, align_functions into aarch64_override_options_after_change.
32707 2015-05-06  Richard Biener  <rguenther@suse.de>
32709         * tree-vect-slp.c (vect_supported_load_permutation_p): Use
32710         vect_transform_slp_perm_load to check if we support a permutation
32711         for basic-block vectorization.
32713 2015-05-06  Nick Clifton  <nickc@redhat.com>
32715         * config/rl78/rl78.c (need_to_save): Save register 22 if it is
32716         used, even if it is not being used as a frame pointer.
32718 2015-05-05  Jason Merrill  <jason@redhat.com>
32720         * dwarf2out.c (gen_member_die): Don't emit anything for an
32721         anonymous class constructor.
32723 2015-05-05  David Malcolm  <dmalcolm@redhat.com>
32725         * auto-profile.c (afdo_find_equiv_class): Fix indentation so
32726         that it reflects the block structure.
32727         (afdo_propagate_edge): Likewise.
32728         (afdo_calculate_branch_prob): Likewise.
32729         (afdo_annotate_cfg): Likewise.
32730         * cfgcleanup.c (equal_different_set_p): Likewise.
32731         (try_crossjump_to_edge): Likewise.
32732         * cgraph.c (cgraph_node::verify_node): Likewise.
32733         * cgraphunit.c (expand_all_functions): Likewise.
32734         * config/i386/i386.c (ix86_expand_copysign): Likewise.
32735         (exact_dependency_1): Likewise.
32736         * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
32737         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
32738         * gensupport.c (process_define_subst): Likewise.
32739         * lto-wrapper.c (merge_and_complain): Likewise.
32740         * tree-if-conv.c (if_convertible_bb_p): Likewise.
32741         * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
32742         * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
32743         * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
32744         * tree-vect-loop.c (vectorizable_reduction): Likewise.
32745         * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
32746         * tree-vect-stmts.c (vectorizable_shift): Likewise.
32747         * tree-vrp.c (vrp_finalize): Likewise.
32748         * tree.c (variably_modified_type_p): Likewise.
32750 2015-05-05  Jack Howarth  <howarth.at.gcc@gmail.com>
32752         * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
32753         on darwin12 and later.
32754         * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
32755         file to pass -rdynamic on darwin12 and later.
32756         * config/darwin.opt (rdynamic): Add.
32758 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
32760         * doc/extend.texi (C Extensions): Update menu for moved Variable
32761         Attributes and Type Attributes sections.
32763 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
32765         PR target/65990
32766         * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
32767         if rep_8byte stringop strategy was specified for 32-bit target.
32769 2015-05-05  Ilya Tocar  <ilya.tocar@intel.com>
32771         PR target/65915
32772         * config/i386/i386.md (vector convert to float spltiter): Check for
32773         xmm16+, when splitting scalar float conversion.
32774         * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
32776 2015-05-05  Nick Clifton  <nickc@redhat.com>
32778         * config/msp430/msp430-opts.h (enum msp430_regions): New.
32779         * config/msp430/msp430.c (msp430_override_options): Complain if
32780         -mcode-region or -mdata-region is used on a non MSP430X.
32781         (msp430_section_attr): New function.  Checks lower, upper and
32782         either attributes.
32783         (msp430_attribute_table): Add lower, upper and either.
32784         (gen_prefix): New function.  Generates a prefix for a section
32785         name.
32786         (msp430_select_section): New function - handles the choice of
32787         section for an object.  Takes into account memory region
32788         attributes and options.
32789         (msp430_function_section): Use gen_prefix.
32790         (TARGET_SECTION_TYPE_FLAGS): Define.
32791         (msp430_section_type_flags): New function.
32792         (TARGET_ASM_UNIQUE_SECTION): Define.
32793         (msp430_unique_section): New function.
32794         (msp430_output_aligned_decl_common): New function.
32795         (msp430_do_not_relax_short_jumps): New function.
32796         * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
32797         Define.
32798         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
32799         * config/msp430/msp430-protos.h
32800         (msp430_do_not_relax_short_jumps): New prototype.
32801         (msp430_output_aligned_decl_common): New prototype.
32802         * config/msp430/msp430.md (length): New attribute.
32803         (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
32804         then use a long code sequence for short jumps.
32805         * config/msp430/msp430.opt (mcode-region): New.
32806         (mdata-region): New.
32807         * doc/invoke.texi: Document new options.
32808         * doc/extend.texi: Document new attributes.
32810 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
32812         * config/aarch64-protos.h (struct cpu_branch_cost): New.
32813         (tune_params): Add field branch_costs.
32814         (aarch64_branch_cost): Declare.
32815         * config/aarch64.c (generic_branch_cost): New.
32816         (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
32817         (cortexa53_tunings): Likewise.
32818         (cortexa57_tunings): Likewise.
32819         (thunderx_tunings): Likewise.
32820         (xgene1_tunings): Likewise.
32821         (aarch64_branch_cost): Define.
32822         * config/aarch64/aarch64.h (BRANCH_COST): Redefine.
32824 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
32826         * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
32827         and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
32828         * config/i386/i386.md: Ditto.
32829         * config/i386/winnt.c: Ditto.
32831 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
32833         * doc/extend.texi (__atomic Builtins): Move implementation details
32834         to the end of the description, rewrite opening paragraphs, state
32835         difference with __sync builtins, state C11/C++11 assumptions,
32836         weaken itemized descriptions, add explanation of memory model
32837         behaviour, expand description of compare-exchange, simplify text.
32839 2015-05-05  Renlin Li  <renlin.li@arm.com>
32841         * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
32843 2015-05-05  Yvan Roux  <yvan.roux@linaro.org>
32845         * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
32846         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
32847         * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
32848         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
32849         * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
32850         * configure: Regenerate.
32851         * configure.ac: Add --enable-fix-cortex-a53-843419 option.
32852         * doc/install.texi (aarch64*-*-*): Document new
32853         --enable-fix-cortex-a53-843419 option.
32854         * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
32855         and -mno-fix-cortex-a53-843419 options.
32857 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
32859         PR target/65871
32860         * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
32862 2015-05-04  Jan Hubicka  <hubicka@ucw.cz>
32864         * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
32865         fix overactive TYPE_MIN_VALUE check and add FIXME for type
32866         compatibility problems.
32868 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
32870         * config/microblaze/microblaze.md (cbranchsi4): Added immediate
32871         constraints.
32872         (cbranchsi4_reg): New.
32873         * config/microblaze/microblaze.c
32874         (microblaze_expand_conditional_branch_reg): New.
32875         * config/microblaze/microblaze-protos.h
32876         (microblaze_expand_conditional_branch_reg): New prototype.
32878 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
32880         * config/microblaze/microblaze.md (peephole2): New.
32882 2015-05-04  Jeff Law  <law@redhat.com>
32884         Revert:
32885         2015-05-04  Jeff Law  <law@redhat.com>
32887         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
32888         simplifier to narrow arithmetic.
32889         * generic-match-head.c: (types_match, single_use): New functions.
32890         * gimple-match-head.c: (types_match, single_use): New functions.
32892 2015-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
32894         PR target/65987
32895         * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
32896         (split_branches): Likewise.
32898 2015-05-04  Sandra Loosemore  <sandra@codesourcery.com>
32900         * common.opt (fdelete-null-pointer-checks): Init to -1.
32901         * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
32902         override flag_delete_null_pointer_checks default.
32903         * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
32904         behavior re address zero.  Better document target-specific behavior.
32905         (-fisolate-errneous-paths-dereference): Mention relationship to
32906         -fdelete-null-pointer-checks.
32908 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
32910         PR tree-optimization/65984
32911         * ubsan.c: Include tree-cfg.h.
32912         (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
32913         stmt_could_throw_p test, rename can_throw variable to ends_bb.
32915 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
32917         * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
32918         to CONST_DOUBLE_P predicate.
32919         (standard_sse_constant_p): Return 0 for !TARGET_SSE.
32920         (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
32921         allow only operands that satisfy standard_sse_constant_p predicate.
32922         * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
32923         to CONST_DOUBLE_P predicate.
32925 2015-05-04  Jeff Law  <law@redhat.com>
32927         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
32928         simplifier to narrow arithmetic.
32929         * generic-match-head.c: (types_match, single_use): New functions.
32930         * gimple-match-head.c: (types_match, single_use): New functions.
32932 2015-05-04  Andreas Tobler  <andreast@gcc.gnu.org>
32934         * config/arm/arm.c: Restore bootstrap.
32936 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
32938         * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
32939         * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
32940         as CONST_WIDE_INT, not CONST_DOUBLE.
32941         (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
32942         (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
32943         (ix86_find_base_term): Do not check for CONST_DOUBLE.
32944         (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
32945         (ix86_build_signbit_mask): Rewrite using wide ints.
32946         (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
32947         (ix86_rtx_costs): Handle CONST_WIDE_INT.
32948         (find_constant): Ditto.
32949         * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
32950         using gen_int_mode.
32951         * config/i386/predicates.md (x86_64_immediate_operand)
32952         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
32953         (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
32954         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
32955         (const0_operand): Also match const_wide_int.
32956         (constm1_operand): Ditto.
32957         (const1_operand): Ditto.
32959 2015-05-04  Richard Biener  <rguenther@suse.de>
32961         PR tree-optimization/65965
32962         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
32963         store groups at gaps.
32965 2015-05-04  Richard Biener  <rguenther@suse.de>
32967         PR tree-optimization/65935
32968         * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
32969         then make sure to apply that swapping to the IL.
32971 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
32973         * Makefile.in (PATCHLEVEL_c): New variable.
32974         (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
32975         expand the same way as if DEVPHASE_c was non-empty.
32977 2015-05-04  Kai Tietz  <ktietz@redhat.com>
32979         PR target/65559
32980         * lto-wrapper.c (run_gcc): Open filename
32981         in binary-mode.
32983 2015-05-03  Sandra Loosemore  <sandra@codesourcery.com>
32985         * doc/extend.texi (Variable Attributes, Type Attributes):  Move
32986         sections up in file, to immediately after the Function Attributes
32987         section.
32989 2015-05-02  Jan Hubicka  <hubicka@ucw.cz>
32991         * tree.c (verify_type): Check various uses of TYPE_MINVAL.
32993 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
32995         * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
32996         (insert_partition_copy_on_edge): Adjust.
32997         (insert_rtx_to_part_on_edge): Likewise.
32998         (insert_part_to_rtx_on_edge): Likewise.
33000 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33002         * function.c (set_return_jump_label): Change type of argument to
33003         rtx_insn *.
33004         * function.h (set_return_jump_label): Adjust.
33006 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33008         * reload.h (struct reg_equivs_t): Change type of init to
33009         rtx_insn *.
33010         * ira.c (fix_reg_equiv_init): Adjust.
33011         * reload1.c (eliminate_regs_1): Likewise.
33012         (init_eliminable_invariants): Likewise.
33014 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33016         * cselib.c (fp_setter_insn): Take a rtx_insn *.
33017         * cselib.h (fp_setter_insn): Adjust.
33019 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33021         * recog.c (struct validate_replace_src_data): Change type of
33022         insn field to rtx_insn *.
33023         (validate_replace_src_group): Change type of argument to rtx_insn *.
33024         * recog.h (validate_replace_src_group): Adjust.
33026 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33028         * haifa-sched.c: Change the type of some variables to rtx_insn *.
33029         * sched-deps.c: Likewise.
33030         * sched-int.h: Likewise.
33031         * sched-rgn.c: Likewise.
33032         * sel-sched.c: Likewise.
33034 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33036         to rtx_insn *.
33037         * config/i386/i386.c: Change the type of some arguments to
33038         rtx_insn *.
33039         * config/arm/arm.c: Likewise.
33041 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33043         * lra-constraints.c: Change type of some arguments to rtx_insn *.
33045 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33047         * regcprop.c (kill_autoinc_value): Change type of argument to
33048         rtx_insn *.
33050 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33052         * genrecog.c (print_subroutine): Adjust.
33053         * recog.c (get_bool_attr_mask_uncached): Likewise.
33054         * recog.h (struct recog_data_d): Change the type of insn to
33055         rtx_insn *.
33057 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33059         * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
33061 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33063         * df-problems.c (df_set_note): Change type of argument to
33064         rtx_insn *.
33066 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33068         * builtins.c (expand_builtin_trap): Change type of local
33069         variable to rtx_insn *.
33070         (add_sched_insns_for_speculation): Likewise.
33071         (ix86_emit_save_regs): Likewise.
33072         (get_scratch_register_on_entry): Likewise.
33073         (ix86_emit_restore_reg_using_pop): Likewise.
33074         (ix86_emit_leave): Likewise.
33075         (ix86_emit_restore_regs_using_mov): Likewise.
33076         (ix86_expand_epilogue): Likewise.
33077         Likewise.
33078         (rl78_alloc_physical_registers_umul): Likewise.
33079         * cselib.c (discard_useless_locs): Likewise.
33080         (cselib_invalidate_regno): Likewise.
33081         (cselib_invalidate_mem): Likewise.
33082         * function.c (expand_function_start): Likewise.
33083         (emit_use_return_register_into_block): Likewise.
33084         * gcse.c: Likewise.
33085         * haifa-sched.c (ok_for_early_queue_removal): Likewise.
33086         * ifcvt.c (noce_get_alt_condition): Likewise.
33087         * loop-doloop.c (doloop_condition_get): Likewise.
33088         * lra-constraints.c (inherit_in_ebb): Likewise.
33089         * modulo-sched.c (sms_schedule_by_order): Likewise.
33090         * recog.c (next_insn_tests_no_inequality): Likewise.
33091         * reorg.c (emit_delay_sequence): Likewise.
33092         (update_reg_dead_notes): Likewise.
33093         (fix_reg_dead_note): Likewise.
33094         (fill_slots_from_thread): Likewise.
33095         (delete_computation): Likewise.
33097 2015-05-01  Sandra Loosemore  <sandra@codesourcery.com>
33099         * doc/extend.texi (Variable Attributes): Add menu and proper
33100         @nodes to subsections.  Move Microsoft Windows attributes to
33101         their own subsection.
33102         (Type Attributes): Reorganize introduction to remove duplicate
33103         list of attributes.  Add menu and proper @nodes to subsections.
33104         Alphabetize the main table of common attributes.
33106 2015-05-01  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
33108         * match.pd: New simplification patterns.
33109         (x + (x & 1))  -> ((x + 1) & ~1)
33110         (x & ~(x & y)) -> ((x & ~y))
33111         (x | ~(x | y)) -> ((x | ~y))
33113 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33115         * target.def (attribute_table): Mention that struct attribute_spec
33116         is defined in tree-core.h rather than tree.h
33117         * doc/tm.texi: Regenerate.
33119 2015-05-01  Richard Sandiford  <richard.sandiford@arm.com>
33121         * genrecog.c (test): Rename to rtx_test.  Update rest of file
33122         accordingly.
33124 2015-05-01  Andreas Schwab  <schwab@linux-m68k.org>
33126         PR translation/65959
33127         * params.h (DEFPARAM): Rename msgid to nocmsgid.
33129 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
33131         * config/aarch64/aarch64-protos.h (tune_params):
33132         Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
33133         * config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
33134         Return value depending on target.
33135         (generic_tunings): Initialize new target settings.
33136         (cortexa53_tunings): Likewise.
33137         (cortexa57_tunings): Likewise.
33138         (thunderx_tunings): Likewise.
33139         (xgene1_tunings): Likewise.
33141 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
33143         * config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
33144         Make Cortex-A53 shift costs more accurate.
33146 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33148         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
33149         UNSIGNED_FLOAT.
33151 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
33153         * config/aarch64/aarch64.c (aarch64_rtx_costs):
33154         Calculate cost of op0 and op1 in PLUS and MINUS cases.
33156 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33158         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
33159         Add cost of op0 in the compare-with-fpzero case.
33161 2015-04-30  David Malcolm  <dmalcolm@redhat.com>
33163         * builtins.c (fold_builtin_1): Remove spurious second
33164         semicolon.
33165         * cgraph.h (symtab_node::get_availability): Likewise.
33166         * opts.c (common_handle_option): Remove spurious second semicolon.
33167         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
33168         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
33170 2015-04-30  Caroline Tice  <cmtice@google.com>
33172         PR gcov-profile/65929
33173         * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
33174         (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
33175         * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
33176         (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
33177         * doc/tm.texi: Regenerate.
33178         * final.c (final_scan_insn):  Use ASM_DECLARE_COLD_FUNCTION_NAME
33179         instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
33180         * varasm.c (assemble_end_function):  Use ASM_DECLARE_COLD_FUNCTION_SIZE
33181         instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
33183 2015-04-30  Marek Polacek  <polacek@redhat.com>
33185         * varasm.c (handle_cache_entry): Fix logic.
33187 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33189         * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
33190         (*extrsi5_insn_uxtw_alt): Likewise.
33191         * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
33192         (aarch64_rtx_costs, IOR case): Use above to properly cost extr
33193         operations.
33195 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33197         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
33198         fabd in ABS case.
33200 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33202         * config/aarch64/aarch64.md
33203         (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
33204         (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
33205         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
33206         appropriately.  Handle alternative EON form.
33208 2015-04-30  Renlin Li  <renlin.li@arm.com>
33210         * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
33211         * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
33213 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
33215         PR ipa/65873
33216         * ipa-inline.c (can_inline_edge_p): It is safe to inline across
33217         -fstrict-aliasing boundaries.
33219 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33221         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
33222         and [SU]MNEGL patterns.
33224 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33226         * config/aarch64/aarch64.c (aarch64_shift_p): New function.
33227         (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
33228         combined arithmetic-shift ops.  Properly handle all shift and extend
33229         operations that can occur in combination with PLUS/MINUS.
33230         Rename maybe_fma to compound_p.
33231         (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
33232         arithmetic and shift operations.
33234 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33236         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
33237         rather than arith_shift cost when costing ADD/MINUS of an
33238         extended value.
33240 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
33242         PR lto/65948
33243         * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
33244         to itself.
33246 2015-04-30  Richard Sandiford  <richard.sandiford@arm.com>
33248         * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
33249         are for the same position.
33251 2015-04-29  Aditya Kumar  <hiraditya@hotmail.com>
33253         * tree-vectorizer.c (set_uid_loop_bbs): New.  Factored out of
33254         vectorize_loops.
33255         (vectorize_loops): Use it.
33257 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
33259         * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
33260         for aggregate types.
33261         (register_odr_type): Be ready for MAIN_VARIANT of ODR type
33262         type to be non_ODR.
33263         * tree.c (need_assembler_name_p): Compute mangled name for
33264         non-fundamental types and integer types.
33266 2015-04-29  Mikhail Maltsev  <maltsevm@gmail.com>
33268         * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
33269         manual swaps.
33270         * expr.c (expand_expr_real_2): Likewise.
33272 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
33274         * tree.c (build_common_builtin_nodes): Do not build
33275         __builtin_alloca_with_align as equivalent of library alloca.
33277 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
33279         * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
33280         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
33281         bugus variants.
33282         * tree.c: Include print-tree.h and ipa-utils.h
33283         (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
33284         (free_lang_data_in_cgraph): Call verify_type.
33285         (verify_type_variant): New function.
33286         (verify_type): New function.
33287         * tree.h (verify_type): Declare.
33289 2015-04-29  Steve Ellcey  <sellcey@imgtec.com>
33291         * config/mips/mips-cpus.def: (mips4): Change default processor
33292         from PROCESSOR_R8000 to PROCESSOR_R10000.
33294 2015-04-29  Petar Jovanovic  <petar.jovanovic@rt-rk.com>
33296         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
33297         la/jalr instead of jal.
33299 2015-04-29  Uros Bizjak  <ubizjak@gmail.com>
33301         PR target/65871
33302         * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
33303         (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
33304         (setcc+movzbl peephole2): Check also clobbered reg.
33305         (setcc+andl peephole2): Ditto.
33307 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
33309         PR libgomp/65099
33310         * config/nvptx/mkoffload.c (target_ilp32): New variable.
33311         (main): Set it depending on "-foffload-abi=[...]".
33312         (compile_native, main): Use it to pass "-m32" or "-m64" to the
33313         compiler.
33315 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
33317         PR target/65770
33318         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
33319         vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
33320         Flip lane index back at assembly time for bigendian.
33322 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
33324         * tree.h (OMP_STANDALONE_CLAUSES): New macro.
33325         * gimplify.c (gimplify_omp_workshare): Use it.
33327 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
33329         * Makefile.in (build/genrecog.o): Depend on inchash.h.
33330         (build/genrecog$(build_exeext): Depend on build/hash-table.o and
33331         build/inchash.o
33332         * genrecog.c: Rewrite most of the code except for the third page.
33334 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
33336         * inchash.h, inchash.c: Include bconfig.h for build objects.
33337         * Makefile.in (build/inchash.o): New rule.
33339 2015-04-29  Yvan Roux  <yvan.roux@linaro.org>
33341         PR target/65924
33342         * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
33343         number in type attribute expression.
33345 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
33347         * loop-iv.c (canon_condition): Generalize to all types of integer
33348         constant.
33350 2015-04-29  Bernhard Reuther-Fischer  <aldot@gcc.gnu.org>
33352         * gimple-walk.c: Prune duplicate or unneeded includes.
33353         (walk_gimple_asm): Only call parse_input_constraint or
33354         parse_output_constraint if their findings are used.
33355         Honour parse_input_constraint and parse_output_constraint
33356         result.
33358 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
33360         * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
33362 2015-04-29  Tom de Vries  <tom@codesourcery.com>
33364         PR tree-optimization/65893
33365         * passes.def (pass_all_optimizations): Move pass_stdarg to after
33366         pass_dce.
33368 2015-04-29  Richard Biener  <rguenther@suse.de>
33370         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
33371         compute GROUP_SIZE for basic-block SLP.
33372         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
33373         take into account gaps.
33374         (vect_get_mask_element): Properly reject references to previous
33375         vectors.
33376         (vect_transform_slp_perm_load): Likewise.
33378 2015-04-29  Christian Bruel  <christian.bruel@st.com>
33380         PR target/64835
33381         * config/i386/i386.c (ix86_default_align): New function.
33382         (ix86_override_options_after_change): Call ix86_default_align.
33383         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
33384         (ix86_override_options_after_change): New function.
33386 2015-04-28  Jeff Law  <law@redhat.com>
33388         * tree-ssa-dom.c (record_equality); Fix comment typos.
33390 2015-04-28  Tom de Vries  <tom@codesourcery.com>
33392         PR tree-optimization/65887
33393         * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
33395 2015-04-28  Sandra Loosemore  <sandra@codesourcery.com>
33397         * doc/extend.texi (Declaring Attributes of Functions): Split into
33398         subsections by target.  Alphabetize the table of common attributes.
33399         Rewrite some of the introductory text to reflect the new structure.
33400         Update some cross-references to point to the new subsections.
33401         (Attribute Syntax): Put paragraph about "__" naming here.  Remove
33402         duplicate copies in the discussion of function, label, and type
33403         attributes.
33405 2015-04-28  Dominique d'Humieres  <dominiq@lps.ens.fr>
33407         PR bootstrap/65910
33408         * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
33410 2015-04-28  Jason Merrill  <jason@redhat.com>
33412         PR c++/65734
33413         * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
33414         (finalize_type_size): Respect TYPE_USER_ALIGN.
33415         (layout_type) [ARRAY_TYPE]: Likewise.
33417 2015-04-28  Yvan Roux  <yvan.roux@linaro.org>
33419         * config/arm/arm.md (*arm_movt): Fix type attribute.
33420         (*cmpsi_shiftsi): Likewise.
33421         (*cmpsi_shiftsi_swp): Likewise.
33422         (*movsicc_insn): Likewise.
33423         (*cond_move): Likewise.
33424         (*if_plus_move): Likewise.
33425         (*if_move_plus): Likewise.
33426         (*if_arith_move): Likewise.
33427         (*if_move_arith): Likewise.
33428         (*if_shift_move): Likewise.
33429         (*if_move_shift): Likewise.
33430         (*arm_movtas_ze): Likewise.
33431         * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
33432         redundancy and type attribute.
33433         (*thumb2_movsi_insn): Fix type attribute.
33434         (*thumb2_addsi_short): Likewise.
33435         (thumb2_addsi3_compare0): Likewise.
33436         (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
33437         attributes accordingly.
33439 2015-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
33441         PR other/65911
33442         * function.c (pad_to_arg_alignment): Add parentheses.
33444 2015-04-28  Uros Bizjak  <ubizjak@gmail.com>
33446         * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
33447         libgcc/config/frv/elf-lib.h.
33449 2015-04-28  Tom de Vries  <tom@codesourcery.com>
33451         * tree-call-cdce.c: Fix example in header comment.
33453 2015-04-28  Richard Biener  <rguenther@suse.de>
33455         PR tree-optimization/62283
33456         * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
33457         fails fatally and we are vectorizing a basic-block simply
33458         cause the child to be constructed piecewise.
33459         (vect_analyze_slp_cost_1): Adjust.
33460         (vect_detect_hybrid_slp_stmts): Likewise.
33461         (vect_bb_slp_scalar_cost): Likewise.
33462         (vect_get_constant_vectors): For piecewise constructed
33463         constants place them after the last def.
33464         (vect_get_slp_defs): Adjust.
33465         * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
33466         externals for basic-block vectorization.
33468 2015-04-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
33470         PR target/63503
33471         * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
33472         aarch64-*-*.
33473         * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
33474         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
33475         (AARCH64_TUNE_FMA_STEERING): Likewise.
33476         * config/aarch64/aarch64-cores.def: Set
33477         AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
33478         FMUL/FMADD instructions.
33479         * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
33480         (aarch64_override_options): Include cortex-a57-fma-steering.h.  Call
33481         aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
33482         * config/aarch64/cortex-a57-fma-steering.h: New file.
33483         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
33485 2015-04-28  Richard Sandiford  <richard.sandiford@arm.com>
33487         * gensupport.c (std_preds): Add missing codes to address_operand entry.
33489 2015-04-28  Richard Biener  <rguenther@suse.de>
33491         PR tree-optimization/65851
33492         * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
33493         changing CONSTANT to CONSTANT non-copy.  Get new_val by reference.
33494         (ccp_lattice_meet): Remove stray argument.  Use operand_equal_p
33495         rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
33496         (ccp_visit_phi_node): Adjust.
33497         (evaluate_stmt): For simplifications to SSA names return its
33498         lattice value if that isn't VARYING.  Return immediately when
33499         simplified to a constant.
33500         (visit_assignment): Adjust.
33501         (ccp_visit_stmt): Likewise.
33503 2015-04-28  Tom de Vries  <tom@codesourcery.com>
33505         PR tree-optimization/65818
33506         * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
33507         evaluated.
33509 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33511         * calls.c (save_fixed_argument_area): Don't check
33512         ARGS_GROW_DOWNWARD with the preprocessor.
33513         (restore_fixed_argument_area): Likewise.
33514         (mem_overlaps_already_clobbered_arg_p): Likewise.
33515         (check_sibcall_argument_overlap): Likewise.
33516         (expand_call): Likewise.
33517         (emit_library_call_value_1): Likewise.
33518         (store_one_arg): Likewise.
33519         * function.c (assign_parms): Likewise.
33520         (locate_and_pad_parm): Likewise.
33521         (pad_to_arg_alignment): Likewise.
33522         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
33524 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33526         * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
33527         * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
33528         * calls.c (save_fixed_argument_area): Don't chekc if
33529         ARGS_GROW_DOWNWARD is defined.
33530         (restore_fixed_argument_area): Likewise.
33531         (mem_overlaps_already_clobbered_arg_p): Likewise.
33532         (check_sibcall_argument_overlap): Likewise.
33533         (expand_call): Likewise.
33534         (emit_library_call_value_1): Likewise.
33535         (store_one_arg): Likewise.
33536         * function.c (assign_parms): Likewise.
33537         (locate_and_pad_parm): Likewise.
33538         (pad_to_arg_alignment): Likewise.
33539         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
33541 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33543         * defaults.h (gen_epilogue): New function.
33544         * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
33545         defined.
33546         * cfgrtl.c (cfg_layout_finalize): Likewise.
33547         * df-scan.c: Likewise.
33548         * function.c (thread_prologue_and_epilogue_insns): Likewise.
33549         (reposition_prologue_and_epilogue_notes): Likewise.
33550         * reorg.c (find_end_label): Likewise.
33551         * toplev.c: Likewise.
33553 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33555         * bb-reorder.c (HAVE_return): Don't check if its undefined.
33556         * defaults.h (gen_simple_return): New function.
33557         (gen_simple_return): Likewise.
33558         (HAVE_return): Add default definition to false.
33559         (HAVE_simple_return): Likewise.
33560         * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
33561         HAVE_return and HAVE_simple_return are defined.
33562         * function.c (gen_return_pattern): Likewise.
33563         (convert_jumps_to_returns): Likewise.
33564         (thread_prologue_and_epilogue_insns): Likewise.
33565         * reorg.c (find_end_label): Likewise.
33566         (dbr_schedule): Likewise.
33567         * shrink-wrap.c: Likewise.
33568         * shrink-wrap.h: Likewise.
33570 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33572         * defaults.h (EPILOGUE_USES): Add default definition of false.
33573         * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
33574         * resource.c (init_resource_info): Likewise.
33576 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33578         * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
33579         to false.
33580         * dwarf2out.c (field_byte_offset): REmove check if
33581         PCC_BITFIELD_TYPE_MATTERS is defined.
33582         * stor-layout.c (layout_decl): Likewise.
33583         (update_alignment_for_field): Likewise.
33584         (place_field): Likewise.
33586 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33588         * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
33589         true.
33590         * regrename.c (check_new_reg_p): Remove check if
33591         HARD_REGNO_RENAME_OK is defined.
33592         * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
33594 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
33596         * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
33597         * cse.c (fold_rtx): Likewise.
33598         * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
33599         * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
33600         * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
33601         * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
33602         * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
33603         * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
33604         * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
33605         * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
33606         * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
33607         * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
33608         * Likewise.
33609         * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
33610         * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
33611         * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
33612         * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
33613         * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
33614         * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
33615         * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
33616         * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
33617         * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
33618         * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
33619         * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
33620         * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
33621         * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
33622         * doc/tm.texi: Regenerate.
33623         * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
33624         either true or false.
33626 2015-04-27  Jeff Law  <law@redhat.com>
33628         PR tree-optimization/65217
33629         * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
33630         of them has a single use, make sure it is the LHS of the implied
33631         copy.
33633 2015-04-28  Alan Modra  <amodra@gmail.com>
33635         PR target/65810
33636         * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
33637         (offsettable_ok_by_alignment): Use minimum of decl and toc
33638         pointer alignment.  Replace dead code with assertion.
33639         (use_toc_relative_ref): Add mode arg.  Return false in -mcmodel=medium
33640         case if size exceeds toc pointer alignment.
33641         (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
33642         (rs6000_emit_move): Likewise.
33643         * configure.ac: Add linker toc pointer alignment check.
33644         * configure: Regenerate.
33645         * config.in: Regenerate.
33647 2015-04-27  Yoshinori Sato <ysato@users.sourceforge.jp>
33649         * config.gcc: Add h8300-*-linux.
33650         * config/h8300/linux.h: New.
33651         * config/h8300/t-linux: New.
33652         * config/h8300/h8300.c (h8300_option_override): Normal mode
33653         is not supported for h8300-*-linux.
33654         (h8300_file_start): Target priority change.
33655         (get_shift_alg): Likewise.
33656         (h8300_shift_need_scratch_p): Likewise.
33657         * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
33658         * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
33660 2015-04-27  Caroline Tice  <cmtice@google.com>
33662         * final.c (final_scan_insn):  Output cold_function_name as function
33663         type.
33664         * varasm.c (cold_function_name):  Make global.
33665         (assemble_start_function):  Re-set cold_function_name.
33666         (assemble_end_function): Output cold partition size.
33667         * varasm.h (cold_function_name):  Declare global.
33669 2015-04-27  Ilya Tocar  <ilya.tocar@intel.com>
33671         * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
33672         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
33673         constraint.
33674         (*movxi_internal_avx512f): Ditto.
33675         (define_split): Check for xmm16+, when splitting scalar float_extend.
33676         (*extendsfdf2_mixed): Use "v" constraint.
33677         (define_split): Check for xmm16+, when splitting scalar float_truncate.
33678         (*truncdfsf_fast_sse): Use "v" constraint.
33679         (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
33680         (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
33681         (define_peephole2): Check for xmm16+, when converting scalar
33682         float_truncate.
33683         (define_peephole2): Check for xmm16+, when converting scalar
33684         float_extend.
33685         (*fop_<mode>_comm_mixed): Use "v" constraint.
33686         (*fop_<mode>_comm_sse): Ditto.
33687         (*fop_<mode>_1_mixed): Ditto.
33688         (*sqrt<mode>2_sse): Ditto.
33689         (*ieee_s<ieee_maxmin><mode>3): Ditto.
33691 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33693         * combine.c (simplify_if_then_else): Use std::swap instead
33694         of manually swapping.
33695         (known_cond): Likewise.
33696         (simplify_comparison): Likewise.
33698 2015-04-27  Peter Bergner  <bergner@vnet.ibm.com>
33700         PR target/64579
33701         * config/rs6000/htm.md: Remove all define_expands.
33702         (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
33703         UNSPECV_HTM_TABORTWCI): Remove.
33704         (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
33705         (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
33706         trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
33707         (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
33708         (tabortdc_internal, tabortdci_internal, tabortwc_internal,
33709         tabortwci_internal): Remove define_insns.
33710         (tabort<wd>c, tabort<wd>ci): New define_insns.
33711         (tabort): Use gpc_reg_operand.
33712         (tcheck): Remove operand.
33713         (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
33714         * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
33715         expected value.
33716         * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
33717         (BU_HTM_SPR1): Rename to BU_HTM_V1.  Remove use of RS6000_BTC_SPR.
33718         (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
33719         tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
33720         tsr, ttest): Pass in the RS6000_BTC_CR attribute.
33721         (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
33722         get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
33723         (tcheck): Remove builtin argument.
33724         * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
33725         not TARGET_64BIT.
33726         (htm_expand_builtin): Fix usage of expandedp.  Disallow usage of the
33727         tabortdc and tabortdci builtins when not in 64-bit mode.
33728         Modify code to handle the loss of the HTM define_expands.
33729         Emit code to copy the CR register to TARGET.
33730         (htm_init_builtins): Modify code to handle the loss of the HTM
33731         define_expands.
33732         * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
33733         (RS6000_BTC_64BIT): Likewise.
33734         (RS6000_BTC_CR): New macro.
33735         * doc/extend.texi: Update documentation for htm builtins.
33737 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33739         * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
33740         of manually swapping.
33741         (simplify_associative_operation): Likewise.
33742         (simplify_binary_operation): Likewise.
33743         (simplify_plus_minus): Likewise.
33744         (simplify_relational_operation): Likewise.
33745         (simplify_ternary_operation): Likewise.
33747 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
33749         * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
33750         (xs_hi_nonmemory_operand): Remove error.
33751         * config/stormy16/stormy16.md (movhi, movhi_internal): Use
33752         general_operand rather than xs_hi_general_operand.
33754 2015-04-27  Richard Biener  <rguenther@suse.de>
33756         * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
33757         (record_equivalences_from_stmt): Valueize rhs.
33758         (record_equality): Canonicalize x and y order via
33759         tree_swap_operands_p.  Do not swap operands for same loop depth.
33761 2015-04-27  Georg-Johann Lay  <avr@gjlay.de>
33763         PR target/65296
33764         PR target/65895
33765         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
33766         Add hint how to use own spec file.
33768 2015-04-27  Jakub Jelinek  <jakub@redhat.com>
33770         PR tree-optimization/65875
33771         * tree-vrp.c (update_value_range): If in is_new case setting
33772         old_vr to VR_VARYING, also set new_vr to it.  Remove
33773         old_vr->type == VR_VARYING test.
33774         (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
33775         SSA_PROP_INTERESTING if update_value_range returned true,
33776         but new range is VR_VARYING.
33778 2015-04-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
33780         * combine.c (sign_extend_short_imm): New.
33781         (set_nonzero_bits_and_sign_copies): Use above new function for sign
33782         extension of src short immediate.
33783         (reg_nonzero_bits_for_combine): Likewise for tem.
33785 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
33787         * stor-layout.c (self_referential_component_ref_p): New predicate.
33788         (copy_self_referential_tree_r): Use it.
33789         (self_referential_size): Punt for simple operations directly involving
33790         self-referential component references.
33791         * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
33793 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
33795         * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
33797 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
33799         * vec.h (vec): Make splice arguments const.  Update definitions
33800         accordingly.
33802 2015-04-27  Yvan Roux  <yvan.roux@linaro.org>
33804         * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
33805         alternatives.
33807 2015-04-26  Tom de Vries  <tom@codesourcery.com>
33809         PR tree-optimization/65826
33810         * internal-fn.def: Mark VA_ARG with ECF_LEAF.
33812 2015-04-24  Steve Ellcey  <sellcey@imgtec.com>
33814         * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
33815         (*madd3<mode>): Ditto.
33816         (*msub4<mode>): Ditto.
33817         (*msub3<mode>): Ditto.
33818         (*nmadd4<mode>): Ditto.
33819         (*nmadd3<mode>): Ditto.
33820         (*nmadd4<mode>_fastmath): Ditto.
33821         (*nmadd3<mode>_fastmath): Ditto.
33822         (*nmsub4<mode>): Ditto.
33823         (*nmsub3<mode>): Ditto.
33824         (*nmsub4<mode>_fastmath): Ditto.
33825         (*nmsub3<mode>_fastmath): Ditto.
33827 2015-04-24  Jason Merrill  <jason@redhat.com>
33829         PR c++/50800
33830         * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
33831         down when building TYPE_CANONICAL.
33832         (build_pointer_type_for_mode): Likewise.
33834 2015-04-24  Chen Gang  <gang.chen.5i5j@gmail.com>
33836         * genrecog.c (validate_pattern): Check matching constraint refers
33837         to a lower numbered operand.
33839 2015-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
33841         PR target/65849
33842         * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
33843         save to independent variables use the Save attribute.  This will
33844         allow these options to be modified with the #pragma/attribute
33845         target support.
33846         (-mallow-movmisalign): Likewise.
33847         (-mallow-df-permute): Likewise.
33848         (-msched-groups): Likewise.
33849         (-malways-hint): Likewise.
33850         (-malign-branch-targets): Likewise.
33851         (-mvectorize-builtins): Likewise.
33852         (-msave-toc-indirect): Likewise.
33854         * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
33855         can be set via the #pragma/attribute target support.
33856         (rs6000_opt_vars): Likewise.
33857         (rs6000_inner_target_options): If VSX was set, also set
33858         -mno-avoid-indexed-addresses.
33860 2015-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33862         * config/arm/iterators.md (shiftable_ops): Rename to...
33863         (SHIFTABLE_OPS): ... This.  Update use in comments.
33864         (ior_xor): Rename to...
33865         (IOR_XOR): ... This.
33866         (vqh_ops): Rename to...
33867         (VQH_OPS): ... This.
33868         (vqhs_ops): Rename to...
33869         (VQHS_OPS): ... This.
33870         (rshifts): Rename to...
33871         (RSHIFTS): ... This.
33872         (returns): Rename to...
33873         (RETURNS): ... This.
33874         * config/arm/arm.md: Update uses of the above.
33875         * config/arm/neon.md: Likewise.
33877 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33879         * config.host (case ${host}): Add aarch64*-*-linux case.
33880         * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
33881         fields to all the cores.
33882         * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
33883         Add MCPU_MTUNE_NATIVE_SPECS.
33884         * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
33885         field to all extensions.
33886         * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
33887         * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
33888         Adjust definition of AARCH64_OPT_EXTENSION.
33889         * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
33890         (MCPU_MTUNE_NATIVE_SPECS): Define.
33891         * config/aarch64/driver-aarch64.c: New file.
33892         * config/aarch64/x-arch64: New file.
33893         * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
33894         -mtune and -march.
33896 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
33897             Wei Mi  <wmi@google.com>
33899         * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
33900         * config/i386/i386.c (extract_base_offset_in_addr): New function.
33901         (ix86_operands_ok_for_move_multiple): Ditto.
33902         * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
33903         (movlpd/movhpd to movupd peephole2): Ditto.
33905 2015-04-24  Marek Polacek  <polacek@redhat.com>
33907         PR c/61534
33908         * input.h (from_macro_expansion_at): Define.
33910         PR c/63357
33911         * doc/invoke.texi: Update description of -Wlogical-op.
33913 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
33915         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
33916         ternary operator in fprintf and harmonize spacing.
33918 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
33920         * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
33921         Mark operand1 commutative.
33923 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
33925         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
33926         input operands in memory.
33927         (*vec_concatv2si_sse4_1): Ditto.
33928         (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
33929         (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
33930         register_operand.
33931         (vec_extract_hi_v32hi): Ditto.
33932         (vec_extract_hi_v64hi): Ditto.
33933         (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
33935 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
33936             Steven Bosscher <steven@gcc.gnu.org>
33938         PR rtl-optimization/34503
33939         * cprop.c (cprop_reg_p): New.
33940         (hash_scan_set): Use above function to check if register can be
33941         propagated.
33942         (find_avail_set): Return up to two sets, one whose source is a
33943         register and one whose source is a constant.  Sets are returned in an
33944         array passed as parameter rather than as a return value.
33945         (cprop_insn): Use a do while loop rather than a goto.  Try each of the
33946         sets returned by find_avail_set, starting with the one whose source is
33947         a constant. Use cprop_reg_p to check if register can be propagated.
33948         (do_local_cprop): Use cprop_reg_p to check if register can be
33949         propagated.
33950         (implicit_set_cond_p): Likewise.
33952 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
33954         * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
33955         (sem_function::equals): IGNORED_NODES parameter is now unused;
33956         update call of equals_private.
33957         (sem_function::equals_private): Do not call equals_wpa; skip
33958         gimple body matching if there is no body.
33959         (sem_function::init): Add logic to hash tthunk info.
33960         (sem_function::parse): Also parse thunks.
33961         * ipa-icf.h (equals_private): Update declaration.
33963 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
33965         * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
33966         asterisk from name so this can be generated directly.
33967         (*altivec_stvx_<mode>_internal): Likewise.
33968         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
33969         that this is never called during or after reload/lra.
33970         (rs6000_frame_related): Remove split_reg
33971         argument and logic that references it.
33972         (emit_frame_save): Remove last parameter from call to
33973         rs6000_frame_related.
33974         (rs6000_emit_prologue): Remove last parameter from eight calls to
33975         rs6000_frame_related.  Force generation of stvx instruction for
33976         Altivec register saves.  Remove split_reg handling, which is no
33977         longer needed.
33978         (rs6000_emit_epilogue):  Force generation of lvx instruction for
33979         Altivec register restores.
33981 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
33983         * config/rs6000/rs6000.opt (mcrypto): Change option description to
33984         match category changes in ISA 2.07B.
33986 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33988         * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
33989         iterators.
33990         (cmp_op, cmp_type): New code attributes.
33991         (NEON_VCMP, NEON_VACMP): New int iterators.
33992         (cmp_op_unsp): New int attribute.
33993         * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
33994         (neon_vceq<mode>): Delete.
33995         (neon_vc<cmp_op><mode>_insn): New pattern.
33996         (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
33997         (neon_vcgeu<mode>): Delete.
33998         (neon_vcle<mode>): Likewise.
33999         (neon_vclt<mode>: Likewise.
34000         (neon_vcage<mode>): Likewise.
34001         (neon_vcagt<mode>): Likewise.
34002         (neon_vca<cmp_op><mode>): New define_expand.
34003         (neon_vca<cmp_op><mode>_insn): New pattern.
34004         (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
34006 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
34008         * tree.h (attribute_value_equal): Declare.
34009         * tree.c (attribute_value_equal): Export.
34011 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
34013         * ipa-icf.c (sem_item::compare_attributes): New function.
34014         (sem_item::compare_referenced_symbol_properties): Compare variable
34015         attributes.
34016         (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
34017         (sem_function::param_used_p): New function.
34018         (sem_function::equals_wpa): Fix attribute comparsion; match
34019         parameter type codes; do not compare paremter flags when
34020         they are not used; compare edge flags; compare indirect calls.
34021         (sem_item::update_hash_by_addr_refs): Hash reference type.
34022         (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
34023         (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
34024         reference use type.
34025         (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
34026         * ipa-icf.h (compare_attributes, param_used_p): Declare.
34028 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
34030         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
34031         cleanup.
34032         (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
34033         DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
34034         (sem_item::compare_referenced_symbol_properties): New.
34035         (sem_item::hash_referenced_symbol_properties): New.
34036         (sem_item::compare_cgraph_references): Rename to ...
34037         (sem_item::compare_symbol_references): ... this one; use
34038         compare_referenced_symbol_properties.
34039         (sem_function::equals_wpa): Do not compare
34040         DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
34041         DECL_IS_OPERATOR_NEW; compare pointer sizes.
34042         (sem_item::update_hash_by_addr_refs): Call
34043         hash_referenced_symbol_properties.
34044         (sem_item::update_hash_by_local_refs): Cleanup.
34045         (sem_function::merge): Do not mix up symbol properties.
34046         (sem_variable::equals_wpa): Use compare_symbol_references.
34047         * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
34048         (sem_item::hash_referenced_symbol_properties): New.
34049         (sem_item::compare_symbol_references): New.
34050         (sem_item::compare_cgraph_references): Remove.
34052 2015-04-23  Kwok Cheung Yeung  <kcy@codesourcery.com>
34054         PR target/26702
34055         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
34056         Emit size of local.
34058 2015-04-23  Nick Clifton  <nickc@redhat.com>
34060         * config/rl78/rl78.c (rl78_preferred_reload_class): Add
34061         ATTRIBUTE_UNUSED to x parameter.
34062         * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
34064 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
34066         * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
34067         TARGET_CRYPTO to TARGET_P8_VECTOR>
34068         (crypto_vpermxor_<mode>): Likewise.
34069         * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
34070         (BU_CRYPTO_3A): Likewise.
34071         (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
34072         (BU_CRYPTO_OVERLOAD_3A): New #define.
34073         (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
34074         (VPMSUMH): Likewise.
34075         (VPMSUMW): Likewise.
34076         (VPMSUMD): Likewise.
34077         (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
34078         (VPERMXOR_V4SI): Likewise.
34079         (VPERMXOR_V8HI): Likewise.
34080         (VPERMXOR_V16QI): Likewise.
34081         (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
34082         BU_CRYPTO_OVERLOAD_2A.
34083         (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
34084         BU_CRYPTO_OVERLOAD_3A.
34085         * config/rs6000/rs6000.opt (mcrypto): Change description of
34086         option.
34088 2015-04-23  Richard Biener  <rguenther@suse.de>
34090         * passes.def: Remove copy propagation passes run directly after CCP.
34091         * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
34092         SSA names.
34093         (ccp_visit_phi_node): Rework to handle first executable edge
34094         specially.
34096 2015-04-23  Matthew Wahab  <matthew.wahab@arm.com>
34098         * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
34099         (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
34100         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
34101         * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
34102         (thumb_legimitimize_reload_address): Remove.
34103         * config/arm/arm-protos.h (arm_legimitimize_reload_address):
34104         Remove.
34105         (thumb_legimitimize_reload_address): Remove.
34107 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34109         * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
34111 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34113         * config/arm/arm.md (load_multiple): Reject operand 2 greater than
34114         MAX_LDM_STM_OPS.
34115         (store_multiple): Likewise.
34117 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34119         * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
34120         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
34121         arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
34122         arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
34123         arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
34124         arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
34125         arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
34126         Specify issue_rate value.
34127         (arm_issue_rate): Look up issue rate from tuning structs. Remove
34128         large switch statement.
34129         (arm_marvell_pj4_tune): New struct.
34130         * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
34131         struct.
34133 2015-04-23  Richard Biener  <rguenther@suse.de>
34135         * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
34136         (vect_find_last_store_in_slp_instance): Rename to ...
34137         (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
34138         (vect_analyze_slp_cost_1): Use vector_load for constant defs
34139         and vec_construct for external defs when estimating prologue cost.
34140         (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
34141         Compute costs here only when vectorizing loops.
34142         (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
34143         have been determined.
34144         (vect_schedule_slp_instance): Simplify vectorized code placement
34145         and prepare for in-BB external defs.
34146         * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
34147         (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
34148         * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
34149         guard.
34150         (vect_model_load_cost): Likewise.
34151         (vectorizable_store): Instead add it here.
34152         (vectorizable_load): Likewise.
34153         (vect_is_simple_use): Dump def type textually.
34155 2015-04-23  Richard Biener  <rguenther@suse.de>
34157         * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
34158         * cfgloop.c (verify_loop_structure): Verify the root loop node.
34159         * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
34160         instead of get_eh_region_from_lp_number.
34161         * loop-init.c (fix_loop_structure): If we removed a loop, reset
34162         the SCEV cache.
34164 2015-04-23  Anton Blanchard  <anton@samba.org>
34166         * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
34167         need for -mprofile-kernel to save LR to stack.
34169 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
34171         * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
34172         adjustments.
34173         (insn_is_swappable_p): Return 1 for a convert from double to
34174         single precision when all of its uses are splats of BE element
34175         zero.
34177 2015-04-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
34179         * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
34181 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
34183         PR target/65456
34184         * config/rs6000/rs6000.c (rs6000_option_override_internal):  For
34185         VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
34186         TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
34187         option.
34188         (rs6000_builtin_mask_for_load): Return 0 for targets with
34189         efficient unaligned VSX accesses so that the vectorizer will use
34190         direct unaligned loads.
34191         (rs6000_builtin_support_vector_misalignment): Always return true
34192         for targets with efficient unaligned VSX accesses.
34193         (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
34194         stores on targets with efficient unaligned VSX accesses is almost
34195         always the same as the cost of an aligned load or store, so model
34196         it that way.
34197         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
34198         unaligned vectors if we have efficient unaligned VSX accesses.
34199         * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
34200         undocumented option.
34202 2015-04-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34204         Revert:
34205         2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
34207         * config.gcc (LIBC_MUSL): New tm_defines macro.
34208         * config/linux.h (OPTION_MUSL): Define.
34209         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
34210         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
34211         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
34213         * config/linux.opt (mmusl): New option.
34214         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
34215         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
34217         * configure: Regenerate.
34219 2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
34221         * config.gcc (LIBC_MUSL): New tm_defines macro.
34222         * config/linux.h (OPTION_MUSL): Define.
34223         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
34224         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
34225         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
34227         * config/linux.opt (mmusl): New option.
34228         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
34229         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
34231         * configure: Regenerate.
34233 2015-04-22  Yury Gribov  <y.gribov@samsung.com>
34235         * doc/invoke.texi (-fsanitize-sections): Update description.
34236         * asan.c (set_sanitized_sections): Parse incoming arg.
34237         (section_sanitized_p): Support wildcards.
34239 2015-04-22  Tom de Vries  <tom@codesourcery.com>
34241         PR tree-optimization/65823
34242         * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
34243         equality between ap_copy and ap.
34245 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
34247         PR target/47098
34248         * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
34250 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
34252         PR target/47122
34253         * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
34255 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
34257         PR target/55144
34258         * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
34259         remove already contained t-files.
34261 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
34263         * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
34264         Remove unneeded forward declarations.
34265         (suitable_for_tail_call_opt_p): Commentary typo fix.
34267 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
34269         * varasm.c (emit_bss): Remove redundant guard.
34271 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
34273         * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
34275 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
34277         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
34279 2015-04-22  Hale Wang  <hale.wang@arm.com>
34280             Terry Guo  <terry.guo@arm.com>
34282         PR rtl-optimization/64818
34283         * combine.c (can_combine_p): Don't combine user-specified
34284         register if it is in an asm input.
34286 2015-04-21  Jan Hubicka  <hubicka@ucw.cz>
34288         PR ipa/65076
34289         * passes.def (early_optimizations): Add pass_dse.
34291 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
34293         * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
34294         * reorg.c (redundant_insn): Remove ifdef
34295         INSN_REFERENCES_ARE_DELAYED.
34296         * resource.c (mark_referenced_resources): Likewise.
34298 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
34300         * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
34301         * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
34302         * resource.c (mark_set_resources): Likewise.
34304 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
34306         * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
34307         * cfgcleanup.c (flow_find_cross_jump): Likewise.
34308         (flow_find_head_matching_sequence): Likewise.
34309         (try_head_merge_bb): Likewise.
34310         * combine.c (can_combine_p): Likewise.
34311         (try_combine): Likewise.
34312         (distribute_notes): Likewise.
34313         * df-problems.c (can_move_insns_across): Likewise.
34314         * final.c (final): Likewise.
34315         * gcse.c (insert_insn_end_basic_block): Likewise.
34316         * ira.c (find_moveable_pseudos): Likewise.
34317         * reorg.c (try_merge_delay_insns): Likewise.
34318         (fill_simple_delay_slots): Likewise.
34319         (fill_slots_from_thread): Likewise.
34320         * sched-deps.c (sched_analyze_2): Likewise.
34322 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
34324         * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
34325         PIC_OFFSET_TABLE_REGNUM.
34327 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
34329         * alias.c (init_alias_target): Remove ifdef
34330         * HARD_FRAME_POINTER_IS_FRAME_POINTER.
34331         * df-scan.c (df_insn_refs_collect): Likewise.
34332         (df_get_regular_block_artificial_uses): Likewise.
34333         (df_get_eh_block_artificial_uses): Likewise.
34334         (df_get_entry_block_def_set): Likewise.
34335         (df_get_exit_block_use_set): Likewise.
34336         * emit-rtl.c (gen_rtx_REG): Likewise.
34337         * ira.c (ira_setup_eliminable_regset): Likewise.
34338         * reginfo.c (init_reg_sets_1): Likewise.
34339         * regrename.c (rename_chains): Likewise.
34340         * reload1.c (reload): Likewise.
34341         (eliminate_regs_in_insn): Likewise.
34342         * resource.c (mark_referenced_resources): Likewise.
34343         (init_resource_info): Likewise.
34345 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
34347         * defaults.h (MASK_RETURN_ADDR): New definition.
34348         * except.c (expand_builtin_extract_return_addr): Remove ifdef
34349         MASK_RETURN_ADDR.
34351 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
34353         * defaults.h (RETURN_ADDR_OFFSET): New definition.
34354         * except.c (expand_builtin_extract_return_addr): Remove ifdef
34355         RETURN_ADDR_OFFSET.
34356         (expand_builtin_frob_return_addr): Likewise.
34358 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
34360         * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
34361         (try_redirect_by_replacing_jump): Likewise.
34362         (rtl_tidy_fallthru_edge): Likewise.
34363         * combine.c (insn_a_feeds_b): Likewise.
34364         (find_split_point): Likewise.
34365         (simplify_set): Likewise.
34366         * cprop.c (cprop_jump): Likewise.
34367         * cse.c (cse_extended_basic_block): Likewise.
34368         * df-problems.c (can_move_insns_across): Likewise.
34369         * function.c (emit_use_return_register_into_block): Likewise.
34370         * haifa-sched.c (sched_init): Likewise.
34371         * ira.c (find_moveable_pseudos): Likewise.
34372         * loop-invariant.c (find_invariant_insn): Likewise.
34373         * lra-constraints.c (curr_insn_transform): Likewise.
34374         * postreload.c (reload_combine_recognize_const_pattern):
34375         * Likewise.
34376         * reload.c (find_reloads): Likewise.
34377         * reorg.c (delete_scheduled_jump): Likewise.
34378         (steal_delay_list_from_target): Likewise.
34379         (steal_delay_list_from_fallthrough): Likewise.
34380         (redundant_insn): Likewise.
34381         (fill_simple_delay_slots): Likewise.
34382         (fill_slots_from_thread): Likewise.
34383         (delete_computation): Likewise.
34384         * sched-rgn.c (add_branch_dependences): Likewise.
34386 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
34388         * genconfig.c (main): Always define HAVE_cc0.
34389         * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
34390         HAVE_cc0.
34391         * cfgcleanup.c (flow_find_cross_jump): Likewise.
34392         (flow_find_head_matching_sequence): Likewise.
34393         (try_head_merge_bb): Likewise.
34394         * cfgrtl.c (rtl_merge_blocks): Likewise.
34395         (try_redirect_by_replacing_jump): Likewise.
34396         (rtl_tidy_fallthru_edge): Likewise.
34397         * combine.c (do_SUBST_MODE): Likewise.
34398         (insn_a_feeds_b): Likewise.
34399         (combine_instructions): Likewise.
34400         (can_combine_p): Likewise.
34401         (try_combine): Likewise.
34402         (find_split_point): Likewise.
34403         (subst): Likewise.
34404         (simplify_set): Likewise.
34405         (distribute_notes): Likewise.
34406         * cprop.c (cprop_jump): Likewise.
34407         * cse.c (cse_extended_basic_block): Likewise.
34408         * df-problems.c (can_move_insns_across): Likewise.
34409         * final.c (final): Likewise.
34410         (final_scan_insn): Likewise.
34411         * function.c (emit_use_return_register_into_block): Likewise.
34412         * gcse.c (insert_insn_end_basic_block): Likewise.
34413         * haifa-sched.c (sched_init): Likewise.
34414         * ira.c (find_moveable_pseudos): Likewise.
34415         * loop-invariant.c (find_invariant_insn): Likewise.
34416         * lra-constraints.c (curr_insn_transform): Likewise.
34417         * optabs.c (prepare_cmp_insn): Likewise.
34418         * postreload.c (reload_combine_recognize_const_pattern):
34419         * Likewise.
34420         * reload.c (find_reloads): Likewise.
34421         (find_reloads_address_1): Likewise.
34422         * reorg.c (delete_scheduled_jump): Likewise.
34423         (steal_delay_list_from_target): Likewise.
34424         (steal_delay_list_from_fallthrough): Likewise.
34425         (try_merge_delay_insns): Likewise.
34426         (redundant_insn): Likewise.
34427         (fill_simple_delay_slots): Likewise.
34428         (fill_slots_from_thread): Likewise.
34429         (delete_computation): Likewise.
34430         (relax_delay_slots): Likewise.
34431         * sched-deps.c (sched_analyze_2): Likewise.
34432         * sched-rgn.c (add_branch_dependences): Likewise.
34434 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
34436         * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
34437         that is trivially ded on non cc0 targets.
34438         (simplify_set): Likewise.
34439         (mark_used_regs_combine): Likewise.
34440         * cse.c (new_basic_block): Likewise.
34441         (fold_rtx): Likewise.
34442         (cse_insn): Likewise.
34443         (cse_extended_basic_block): Likewise.
34444         (set_live_p): Likewise.
34445         * rtlanal.c (canonicalize_condition): Likewise.
34446         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
34448 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
34450         * conditions.h: Define macros even if HAVE_cc0 is undefined.
34451         * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
34452         * final.c: Likewise.
34453         * jump.c: Likewise.
34454         * recog.c: Likewise.
34455         * recog.h: Declare functions even when HAVE_cc0 is undefined.
34456         * sched-deps.c (sched_analyze_2): Always compile case for cc0.
34458 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
34460         * defaults.h: New definition of EH_RETURN_DATA_REGNO.
34461         * except.c: Remove definition of EH_RETURN_DATA_REGNO.
34462         * builtins.c (expand_builtin): Remove check if
34463         EH_RETURN_DATA_REGNO is defined.
34464         * df-scan.c (df_bb_refs_collect): Likewise.
34465         (df_get_exit_block_use_set): Likewise.
34466         * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
34467         * ira-lives.c (process_bb_node_lives): Likewise.
34468         * lra-lives.c (process_bb_lives): Likewise.
34470 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
34472         * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
34473         FIRST_PSEUDO_REG): New.
34474         * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
34475         (ARG_POINTER_REGNUM): Define to ARGP_REG.
34476         (FRAME_POINTER_REGNUM): Define to FRAME_REG.
34477         (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
34478         (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
34479         (FIRST_INT_REG): New.
34480         (LAST_INT_REG): New.
34481         (FIRST_*_REG): Define using *_REG.
34482         (LAST_*_REG): Ditto.
34483         (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
34484         (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
34485         (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
34487 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34489         * expmed.c: (synth_mult): Only assume overlapping
34490         shift with previous steps in alg_sub_t_m2 case.
34492 2015-04-21  Richard Biener  <rguenther@suse.de>
34494         PR tree-optimization/65650
34495         * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
34496         transitions involving copies.
34497         (set_lattice_value): Adjust for copy lattice state.
34498         (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
34499         if that doesn't dominate the merge point.
34500         (bit_value_unop): Adjust what we treat as varying mask.
34501         (bit_value_binop): Likewise.
34502         (bit_value_assume_aligned): Likewise.
34503         (evaluate_stmt): When we simplified to a SSA name record a copy
34504         instead of dropping to varying.
34505         (visit_assignment): Simplify.
34507         * gimple-match.h (gimple_simplify): Add another callback.
34508         * gimple-fold.c (fold_stmt_1): Adjust caller.
34509         (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
34510         for the 2nd callback.
34511         * gimple-match-head.c (gimple_simplify): Add a callback that is
34512         used to valueize the stmt operands and use it that way.
34514 2015-04-21  Richard Biener  <rguenther@suse.de>
34516         PR tree-optimization/65788
34517         * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
34519 2015-04-21  Richard Biener  <rguenther@suse.de>
34521         * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
34522         vec_construct cost by vec_stmt_cost.
34524 2015-04-21  Richard Biener  <rguenther@suse.de>
34526         * cfghooks.h (create_basic_block): Replace with two overloads
34527         for RTL and GIMPLE.
34528         (split_block): Likewise.
34529         * cfghooks.c (split_block): Rename to ...
34530         (split_block_1): ... this.
34531         (split_block): Add two type-safe overloads for RTL and GIMPLE.
34532         (split_block_after_labels): Call split_block_1.
34533         (create_basic_block): Rename to ...
34534         (create_basic_block_1): ... this.
34535         (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
34536         (create_empty_bb): Call create_basic_block_1.
34537         * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
34538         split_block_after_labels.
34539         * omp-low.c (expand_parallel_call): Likewise.
34540         (expand_omp_target): Likewise.
34541         (simd_clone_adjust): Likewise.
34542         * tree-chkp.c (chkp_get_entry_block): Likewise.
34543         * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
34544         create_basic_block overload.
34545         (cgraph_node::expand_thunk): Likewise.
34546         * tree-cfg.c (make_blocks): Likewise.
34547         (handle_abnormal_edges): Likewise.
34548         * tree-inline.c (copy_bb): Likewise.
34550 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34552         * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
34553         New pattern.
34554         (*xor_one_cmplsidi3_ze): Likewise.
34556 2015-04-21  Thomas Preud'homme  <thomas.preudhomme@arm.com>
34558         * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
34559         use df_remove_problem rather than manually removing problems, leaving
34560         holes in df->problems_in_order[].
34562 2015-04-21  Tom de Vries  <tom@codesourcery.com>
34564         PR tree-optimization/65802
34565         * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
34567 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34569         * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
34570         Increase to 128.
34571         (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
34572         at '.'.  Assert that there's enough space for everything.
34574 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
34576         PR tree-optimization/64950
34577         Revert:
34578         2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
34580         PR target/41089
34581         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
34582         as volatile.
34584 2015-04-20  Shiva Chen  <shiva0217@gmail.com>
34586         PR rtl-optimization/64916
34587         * cfgcleanup.c (values_equal_p): New function.
34588         (can_replace_by): Use it.
34590 2015-04-20  Paolo Carlini  <paolo.carlini@oracle.com>
34592         PR c++/65801
34593         * doc/invoke.texi ([-Wnarrowing]): Update.
34595 2015-04-20  Jeff Law  <law@redhat.com>
34597         PR tree-optimization/65658
34598         * tree-ssa-threadupdate.c (redirection_block_p): Remove
34599         redundant test for GIMPLE_ASSIGN in last change.
34601 2015-04-20  Uros Bizjak  <ubizjak@gmail.com>
34603         * config/i386/i386.c (set_pic_reg_ever_live): Remove.
34604         (legitimize_pic_address): Do not call set_pic_reg_ever_live.
34605         (legitimize_tls_address): Ditto.
34606         (ix86_expand_move): Ditto.
34607         (ix86_expand_binary_operator): Remove reload_in_progress checks.
34608         (ix86_expand_unary_operator): Ditto.
34609         * config/i386/predicates.md (index_register_operand): Ditto.
34611 2015-04-20  Selim Belbachir  <selim.belbachir@fr.thalesgroup.com>
34613         * reorg.c (try_merge_delay_insns): Improve correctness checking
34614         for targets with multiple delay slots.
34616 2015-04-20  Jeff Law  <law@redhat.com>
34618         PR tree-optimization/65658
34619         * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
34620         statements too.
34622 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
34624         * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
34625         * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
34626         Delete.
34628 2015-04-20  Jakub Jelinek  <jakub@redhat.com>
34630         PR debug/65807
34631         * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
34633 2015-04-20  Richard Biener  <rguenther@suse.de>
34635         * gimple-fold.h (gimple_build): Remove optional valueize arguments.
34636         * gimple-fold.c (gimple_build_valueize): New function.
34637         (gimple_build): Always use gimple_build_valueize as valueize hook.
34639 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
34641         PR target/64134
34642         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
34643         and overwrite variable parts if <= 1/2 the elements are variable.
34645 2015-04-19  Vladimir Makarov  <vmakarov@redhat.com>
34647         PR rtl-optimization/65805
34648         * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
34649         Don't use difference of offset and previous offset if
34650         update_sp_offset is non-zero.
34651         (eliminate_regs_in_insn): Ditto.
34652         * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
34653         lra_eliminate_regs_1 call.
34654         * lra-constraints.c (get_equiv_with_elimination): Ditto.
34656 2015-04-18  Trevor Saunders  <tsaunders@mozilla.com>
34658         * hash-table.h: Remove version of hash_table that stored value_type *.
34659         * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
34660         config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
34661         config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
34662         dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
34663         gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
34664         hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
34665         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
34666         loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
34667         reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
34668         tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
34669         tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
34670         tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
34671         tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
34672         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
34673         tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
34674         valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
34676 2015-04-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
34677             Jakub Jelinek  <jakub@redhat.com>
34679         PR target/65787
34680         * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
34681         subsequent SH_NONE operand does not overwrite an existing *special
34682         value.
34683         (adjust_extract): Handle case where a vec_extract operation is
34684         wrapped in a PARALLEL.
34686 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
34688         PR target/65780
34689         * config/i386/i386.c (ix86_binds_local_p): Define only if
34690         TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
34692 2015-04-17  Jeff Law  <law@redhat.com>
34694         PR tree-optimization/47679
34695         * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
34696         * tree-ssa-scopedtables.c: New file.
34697         * tree-ssa-scopedtables.h: New file.
34698         * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
34699         (const_and_copies): Change name/type.
34700         (record_const_or_copy): Move into tree-ssa-scopedtables.c
34701         (record_const_or_copy_1): Similarly.
34702         (restore_vars_to_original_value): Similarly.
34703         (pass_dominator::execute): Create and destroy const_and_copies table.
34704         (thread_across_edge): Update passing of const_and_copies.
34705         (record_temporary_equivalence): Use method calls rather than
34706         manipulating const_and_copies directly.
34707         (record_equality, cprop_into_successor_phis): Similarly.
34708         (dom_opt_dom_walker::before_dom_children): Similarly.
34709         (dom_opt_dom_walker::after_dom_children): Similarly.
34710         (eliminate_redundant_computations): Similarly.
34711         * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
34712         (record_temporary_equivalence): Likewise.
34713         (invalidate_equivalences): Likewise.
34714         (record_temporary_equivalences_from_phis): Update due to type
34715         change of const_and_copies.  Use method calls rather than
34716         manipulating the stack directly.
34717         (record_temporary_equivalences_from_stmts_at_dest): Likewise.
34718         (thread_through_normal_block, thread_across_edge): Likewise.
34719         (thread_across_edge): Likewise.
34720         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
34721         * tree-vrp.c: Include tree-ssa-scopedtables.h.  Change type
34722         of equiv_stack.
34723         (identify_jump_threads): Update due to type change of equiv_stack.
34724         (finalize_jump_threads): Delete the equiv_stack when complete.
34726 2015-04-17  Uros Bizjak  <ubizjak@gmail.com>
34728         * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
34729         * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
34730         * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
34732 2015-04-17  Andreas Tobler  <andreast@gcc.gnu.org>
34734         PR target/65535
34735         * config.gcc: Exit with a comment when we do not have a major version
34736         number for the FreeBSD target.
34738 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
34740         PR target/65689
34741         * genpreds.c (struct constraint_data): Add maybe_allows_reg and
34742         maybe_allows_mem bitfields.
34743         (maybe_allows_none_start, maybe_allows_none_end,
34744         maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
34745         maybe_allows_mem_end): New variables.
34746         (compute_maybe_allows): New function.
34747         (add_constraint): Use it to initialize maybe_allows_reg and
34748         maybe_allows_mem fields.
34749         (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
34750         is_address constraints such that those that allow neither mem nor
34751         reg come first, then those that only allow reg but not mem, then
34752         those that only allow mem but not reg, then the rest.
34753         (write_allows_reg_mem_function): New function.
34754         (write_tm_preds_h): Call it.
34755         * stmt.c (parse_output_constraint, parse_input_constraint): Use
34756         the generated insn_extra_constraint_allows_reg_mem function
34757         instead of always setting *allows_reg = true; *allows_mem = true;
34758         for unknown extra constraints.
34760 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
34762         PR target/65780
34763         * output.h (default_binds_local_p_3): New.
34764         * varasm.c (default_binds_local_p_3): Make it public.  Take an
34765         argument to indicate if common symbol may be local.  If common
34766         symbol may be local, treat non-external variable as defined
34767         locally.
34768         (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
34769         (default_binds_local_p_1): Pass false to default_binds_local_p_3.
34770         * config/i386/i386.c (ix86_binds_local_p): New.
34771         (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
34772         ix86_binds_local_p.
34774 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
34776         PR debug/65771
34777         * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
34778         trying mem_loc_descriptor on XEXP (rtl, 0).
34780 2015-04-17  Martin Liska  <mliska@suse.cz>
34782         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
34783         Release symbol_compare_collection.
34784         * ipa-reference.c: Add TODO that a vector should be released.
34786 2015-04-17  Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
34788         PR target/65296
34789         * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
34790         to new AVR-LibC file layout (bug #44574).
34791         (*avrlibc_devicelib): Same.
34792         * config/avr/avr-mcus.def: Adjust comments.
34793         * config/avr/avr.opt (nodevicelib): Adjust help.
34795 2015-04-17  Alan Lawrence  <alan.lawrence@arm.com>
34797         * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
34799 2015-04-17  Patrick Palka  <ppalka@gcc.gnu.org>
34801         PR c++/64527
34802         * gimplify.c (gimplify_init_constructor): Always emit a
34803         side-effecting constructor.
34805 2015-04-17  Tom de Vries  <tom@codesourcery.com>
34807         PR tree-optimization/64950
34808         * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
34809         in cfun->curr_properties.
34810         (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
34811         if we generate an IFN_VA_ARG.
34812         * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
34813         function if PROP_gimple_lva is not set in src function.
34815 2015-04-17  Tom de Vries  <tom@codesourcery.com>
34816             Michael Matz  <matz@suse.de>
34818         PR tree-optimization/64950
34819         * gimple-iterator.c (update_modified_stmts): Remove static.
34820         * gimple-iterator.h (update_modified_stmts): Declare.
34821         * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
34822         (gimplify_va_arg_internal): New function.
34823         (gimplify_va_arg_expr): Use IFN_VA_ARG.
34824         * gimplify.h (gimplify_va_arg_internal): Declare.
34825         * internal-fn.c (expand_VA_ARG): New unreachable function.
34826         * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
34827         * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
34828         (expand_ifn_va_arg): New function.
34829         (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
34830         (pass_stdarg::execute): Call expand_ifn_va_arg.
34831         (pass_data_lower_vaarg): New pass_data.
34832         (pass_lower_vaarg): New gimple_opt_pass.
34833         (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
34834         (make_pass_lower_vaarg): New function.
34835         * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
34836         properties_required field.
34837         * passes.def (all_passes): Add pass_lower_vaarg.
34838         * tree-pass.h (PROP_gimple_lva): Add define.
34839         (make_pass_lower_vaarg): Declare.
34841 2015-04-17  Tom de Vries  <tom@codesourcery.com>
34843         * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
34844         * calls.c (call_expr_flags): Same.
34846 2015-04-17  Tom de Vries  <tom@codesourcery.com>
34848         * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
34849         (pass_stdarg::execute): ... here.
34851 2015-04-17  Tom de Vries  <tom@codesourcery.com>
34852             Michael Matz  <matz@suse.de>
34854         * tree-cfg.c (make_blocks_1): Factor out of ...
34855         (make_blocks): ... here.
34856         (make_edges_bb): Factor out of ...
34857         (make_edges): ... here.
34858         (gimple_find_sub_bbs): New function.
34859         * tree-cfg.h (gimple_find_sub_bbs): Declare.
34861 2015-04-17  Tom de Vries  <tom@codesourcery.com>
34863         * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
34865 2015-04-17  Yury Gribov  <y.gribov@samsung.com>
34867         * asan.c (set_sanitized_sections): New function.
34868         (section_sanitized_p): Ditto.
34869         (asan_protect_global): Optionally sanitize user-defined
34870         sections.
34871         * asan.h (set_sanitized_sections): Declare new function.
34872         * common.opt (fsanitize-sections): New option.
34873         * doc/invoke.texi (-fsanitize-sections): Document new option.
34874         * opts-global.c (handle_common_deferred_options): Handle new
34875         option.
34877 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
34879         PR debug/65771
34880         * dwarf2out.c (loc_list_from_tree): Return NULL
34881         for DEBUG_EXPR_DECL.
34883 2015-04-17  Christian Bruel  <christian.bruel@st.com>
34885         * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
34886         same attributes.
34888 2015-04-16  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
34890         * ira-color.c (setup_left_conflict_sizes_p): Do not process
34891         node itself when computing left conflict subnode size.
34893 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
34895         * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
34896         * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
34897         *fop_<mode>_1_sse using enabled attribute.  Use
34898         register_mixssei387nonimm_operand operand 1 predicate. Change
34899         alternative 3 constraints from "x" to "v".
34901 2015-04-16  Richard Biener  <rguenther@suse.de>
34903         PR tree-optimization/65774
34904         * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
34905         bit-value tracking on.
34907 2015-04-16  Richard Biener  <rguenther@suse.de>
34909         PR tree-optimization/64277
34910         * tree-vrp.c (check_array_ref): Fix anti-range handling,
34911         simplify upper bound handling.
34912         (search_for_addr_array): Simplify.
34913         (check_array_bounds): Handle ADDR_EXPRs here.
34914         (check_all_array_refs): Simplify.
34916 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
34918         * config/i386/i386.c (print_reg): Rewrite function.
34920 2015-04-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
34922         * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
34923         Invert the condition.
34925 2015-04-16  Renlin Li  <renlin.li@arm.com>
34927         * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
34928         simplifications for UNSIGNED_FLOAT.
34930 2015-04-16  Nick Clifton  <nickc@redhat.com>
34932         * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
34933         MUL_UNINIT.
34934         (enum rl78_cpu_type): New.
34935         * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
34936         (umulhi3_shift_virt): Remove m constraint from operand 1.
34937         (umulqihi3_virt): Likewise.
34938         * config/rl78/rl78.c (rl78_option_override): Add code to process
34939         -mcpu and -mmul options.
34940         (rl78_alloc_physical_registers): Add code to handle divhi and
34941         divsi valloc attributes.
34942         (set_origin): Likewise.
34943         * config/rl78/rl78.h (RL78_MUL_G14): Define.
34944         (TARGET_G10, TARGET_G13, TARGET_G14): Define.
34945         (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
34946         __RL78_Gxx__.
34947         (ASM_SPEC): Pass -mcpu on to assembler.
34948         * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
34949         (mulqi3_rl78): Likewise.
34950         (mulhi3_g13): Likewise.
34951         (mulhi3): Generate the G13 or G14 versions of the insn directly.
34952         (mulsi3): Likewise.
34953         (mulhi3_g14): Add clobbers of AX and BC.
34954         (mulsi3_g14): Likewise.
34955         (mulsi3_g13): Likewise.
34956         (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
34957         (udivmodsi4_g14, udivmodsi4_g13): New patterns.
34958         * config/rl78/rl78.opt (mmul): Initialise value to
34959         RL78_MUL_UNINIT.
34960         (mcpu): New option.
34961         (m13, m14, mrl78): New option aliases.
34962         * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
34963         (MULTILIB_DIRNAMES): Add g13 and g14.
34964         * doc/invoke.texi: Document -mcpu and -mmul options.
34966 2015-04-16  Richard Biener  <rguenther@suse.de>
34968         * tree-ssa-ccp.c (likely_value): See if we have operands that
34969         are marked as never simulate again and return CONSTANT in this
34970         case.
34971         * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
34972         not have any operands that will be simulated again as
34973         not being simulated again.
34975 2015-04-15  Uros Bizjak  <ubizjak@gmail.com>
34977         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
34978         Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
34979         (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
34980         attribute.
34981         (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
34982         enabled attribute.
34983         (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
34984         *float<SWI48:mode><MODEF:mode>2_sse.
34985         (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
34986         enabled attribute.
34987         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
34988         enabled attribute.
34990 2015-04-15  Tom de Vries  <tom@codesourcery.com>
34992         PR other/65487
34993         * function.c (push_dummy_function): New function.
34994         (init_dummy_function_start): Use push_dummy_function.
34995         (pop_dummy_function): New function.  Factored out of ...
34996         (expand_dummy_function_end): ... here.
34997         * function.h (push_dummy_function, pop_dummy_function): Declare.
34998         * passes.c (pass_manager::dump_passes): Use push_dummy_function and
34999         pop_dummy_function.
35000         * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
35002 2015-04-15  Jeff Law  <law@redhat.com>
35004         PR tree-optimization/47679
35005         * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
35006         need for forward declaration in upcoming changes.
35007         (record_conditions, record_edge_info): Likewise.
35009         PR rtl-optimization/42522
35010         * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
35011         SIGN_EXTRACT as a whole object rather than simplifying
35012         its operand.
35014 2015-04-15  Jakub Jelinek  <jakub@redhat.com>
35016         PR ipa/65765
35017         * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
35018         and GIMPLE_PREDICT use break instead of return true. For
35019         GIMPLE_EH_DISPATCH, compare dispatch region.
35021 2015-04-14  Matthew Wahab  <matthew.wahab@arm.com>
35023         * doc/extend.texi (__sync Builtins): Simplify some text.  Update
35024         details about the implementation.  Make clear preference for
35025         __atomic builtins.  Reduce possibility of future change.
35027 2015-04-15  Nick Clifton  <nickc@redhat.com>
35029         * config/rx/rx.opt (mallow-string-insns): New option.
35030         * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
35031         builtin if string instructions are denied.
35032         * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
35033         __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
35034         appropriate.
35035         (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
35036         * config/rx/rx.md (movstr): Enable pattern only if string
35037         instructions are allowed.
35038         (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
35039         (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
35040         * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
35041         (MULTILIB_DIRNAMES): Add no-strings.
35042         * doc/invoke.texi: Document -mno-allow-string-insns.
35044 2015-04-15  Alan Modra  <amodra@gmail.com>
35046         PR target/65408
35047         PR target/58744
35048         PR middle-end/36043
35049         * calls.c (load_register_parameters): Don't load past end of
35050         mem unless suitably aligned.
35052 2015-04-15  Nick Clifton  <nickc@redhat.com>
35054         * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
35055         decrement instruction as being frame related.
35056         (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
35057         based addresses.
35058         If zero extending a function address enclose the operation in
35059         %code(...).
35060         (rl78_preferred_reload_class): New function.
35061         (TARGET_PREFERRED_RELOAD_CLASS): Define.
35062         * config/rl78/rl78.md: Remove useless constraints in expanders.
35063         (mulqi3_rl78): Remove + qualifier on input-only operand 1.
35064         (mulhi3_rl78): Likewise.
35065         (mulhi3_g13): Likewise.
35066         (mulsi3_rl78): Likewise.
35067         (es_addr): Move to before the multiply patterns.
35069 2015-04-15  Alan Modra  <amodra@gmail.com>
35071         * function.h (struct emit_status): Delete x_first_insn, x_last_insn
35072         and sequence_stack.  Add seq.
35073         (seq_stack): Delete.
35074         * function.c (prepare_function_start): Don't access x_last_insn.
35075         * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
35076         (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
35077         * emit_rtl.c (start_sequence, push_topmost_sequence,
35078         pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
35079         sequence accessors.
35080         (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
35081         remove_insn): Likewise.  Simplify.
35082         * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
35083         and pop_topmost_sequence.
35084         (m32c_function_needs_enter): Use get_topmost_sequence.  Ignore
35085         debug insns.
35086         * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
35088 2015-04-14  Yvan Roux  <yvan.roux@linaro.org>
35090         PR target/65729
35091         * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
35092         the assertiion.
35094 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
35096         * config/i386/i386.h (LEGACY_INT_REG_P): New define.
35097         (LEGACY_INT_REGNO_P): Ditto.
35098         (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
35099         (ANY_MASK_REG_P): Remove.
35100         (BND_REG_P): Rename from ANY_BND_REG_P.
35101         * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
35102         legacy integer registers.  Do not handle MMX_REG_P in a special way.
35103         Merge 64byte and 32byte SSE handling.
35105 2015-04-14  Nick Clifton  <nickc@redhat.com>
35107         * expr.c (expand_assignment): Force an address offset computation
35108         into a register before changing its mode.
35109         (expand_expr_real_1): Likewise.
35111 2015-04-14  Alan Lawrence  <alan.lawrence@arm.com>
35113         * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
35114         vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
35115         vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
35116         vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
35117         vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
35118         vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
35119         vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
35120         and __aarch64_vget_lane_any.
35122 2015-04-14  Jakub Jelinek  <jakub@redhat.com>
35124         PR rtl-optimization/65761
35125         * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
35126         get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
35128 2015-04-14  Richard Biener  <rguenther@suse.de>
35130         * graphite-scop-detection.c: Do not include cp/cp-tree.h.
35131         (graphite_can_represent_scev): Use POINTER_TYPE_P.
35133 2015-04-14  Richard Biener  <rguenther@suse.de>
35135         PR tree-optimization/65758
35136         * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
35137         against -1.
35138         (ccp_lattice_meet): Likewise.
35139         (bit_value_unop): Likewise.
35140         (bit_value_binop): Likewise.
35141         (bit_value_assume_aligned): Likewise.
35143 2015-04-14  Christian Bruel  <christian.bruel@st.com>
35145         * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
35146         function.
35148 2015-04-14  Marc Glisse  <marc.glisse@inria.fr>
35150         PR tree-optimization/63387
35151         * match.pd ((x unord x) | (y unord y) -> (x unord y),
35152         (x unord x) | (x unord y) -> (x unord y)): New simplifications.
35154 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
35156         * config/i386/predicates.md (any_QIreg_operand): Rename from
35157         q_regs_operand.  Do not process subregs.
35158         (QIreg_operand): Use QI_REGNO_P predicate.
35159         (ext_QIreg_operand): Ditto.
35160         (ext_register_operand): Ditto.
35161         * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
35162         (AND splitters): Ditto.
35163         (AND with -65536 splitter): Add SWI48 mode for operand 0.
35164         (AND with -256 splitter): Use any_QIreg_operand predicate and
35165         SWI248 mode for operand 0.
35166         (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
35167         mode for operand 0.
35168         (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
35170 2015-04-13  Gerald Pfeifer  <gerald@pfeifer.com>
35172         * doc/plugins.texi: Rewrite first introductory paragraph.
35174 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
35176         * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
35177         (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
35179 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
35181         * ipa-profie.c (ipa_profile): Check number of parameters
35182         and possible polymorphic call targets before
35183         devirtualizing.
35185 2015-04-13  Uros Bizjak  <ubizjak@gmail.com>
35187         * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
35188         *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
35190 2015-04-13  Richard Biener  <rguenther@suse.de>
35192         PR tree-optimization/65204
35193         * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
35194         takens for bit-CCP.
35196 2015-04-13  Richard Biener  <rguenther@suse.de>
35198         PR target/65660
35199         * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
35200         and cond_not_taken_branch_cost to 4 and 2.
35201         (bdver2_cost): Likewise.
35202         (bdver3_cost): Likewise.
35203         (bdver4_cost): Likewise.
35205 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
35207         * hash-table.h (hash_table constructor): Add mem stats.
35208         (alloc_entries): Likewise.
35210 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
35212         * ipa-cp.c (ipcp_driver): Relase prev_edge.
35213         * passes.c (execute_one_pass): Only add transform if pass has one.
35215 2015-04-12  Joseph Myers  <joseph@codesourcery.com>
35217         * config/i386/i386.c (ix86_option_override_internal): Don't set
35218         -fprefetch-loop-arrays if optimizing for size.
35220 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
35221             Gerald Pfeifer  <gerald@pfeifer.com>
35223         * doc/contrib.texi (Contributors): Add Martin Jambor and
35224         Michael Matz.
35226 2015-04-12  Jakub Jelinek  <jakub@redhat.com>
35228         * BASE-VER: Set to 6.0.0.
35230         PR tree-optimization/65747
35231         * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
35232         rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
35234 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
35236         * doc/invoke.texi (-Wmemset-transposed-args): Break a long
35237         sentence.  Improve grammar.
35239 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
35241         * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
35243 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
35245         PR ipa/65743
35246         * ipa-inline-transform.c (speculation_removed): Remove static var.
35247         (check_speculations): New function.
35248         (clone_inlined_nodes): Do not check spculations.
35249         (inline_call): Call check_speculations.
35250         * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
35251         consider non-invariants.
35253 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
35254             Martin Liska  <mliska@suse.cz>
35256         PR ipa/65722
35257         * ipa-icf.c (sem_item::compare_cgraph_references): function and
35258         variable can not match.
35259         (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
35260         (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
35262 2015-04-11  Jakub Jelinek  <jakub@redhat.com>
35264         PR tree-optimization/65735
35265         * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
35266         Remove visited_phis argument, add visited_bbs, avoid recursing into the
35267         same bb rather than just into the same phi node.
35268         (thread_through_normal_block): Adjust caller.
35270 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
35272         * doc/contrib.texi (Contributors): Add Ira Rosen.
35274 2015-04-11  Benno Schulenberg  <bensberg@justemail.net>
35276         * gcov.c (find_source): Fix miswording in error message.
35277         * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
35278         (ix86_expand_sse_comi_round): Fix typo in error message.
35280 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
35282         * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
35284 2015-04-10  Gerald Pfeifer  <gerald@pfeifer.com>
35286         * doc/contrib.texi (Contributors): Update Joe Buck's entry.
35288 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
35290         PR target/65710
35291         * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
35292         Print bad_spills_num and insn_pseudos_num.
35294 2015-04-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
35296         PR target/65694
35297         * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
35298         when creating +1 values for SImode.
35300 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
35302         PR target/65729
35303         * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
35304         assert.
35306 2015-04-10  Jakub Jelinek  <jakub@redhat.com>
35307             Iain Sandoe  <iain@codesourcery.com>
35309         PR target/65351
35310         * configure: Regenerate.
35312 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
35314         PR target/65671
35315         * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
35317 2015-04-09  Gerald Pfeifer  <gerald@pfeifer.com>
35319         * doc/contrib.texi (Contributors): Add John Marino.
35321 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
35323         PR tree-optimization/65709
35324         * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
35325         TREE_TYPE (TREE_TYPE (t)).
35327 2015-04-09  Vladimir Makarov  <vmakarov@redhat.com>
35329         PR target/65710
35330         * lra-int.h (lra_bad_spill_regno_start): New.
35331         * lra.c (lra_bad_spill_regno_start): New.
35332         (lra): Set up lra_bad_spill_regno_start.  Set up
35333         lra_constraint_new_regno_start unconditionally.
35334         * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
35335         spill preferences.
35337 2015-04-09  Marek Polacek  <polacek@redhat.com>
35338             Jakub Jelinek  <jakub@redhat.com>
35340         PR middle-end/65554
35341         * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
35342         (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
35343         of STRIP_NOPS.
35345 2015-04-09  Segher Boessenkool  <segher@kernel.crashing.org>
35347         PR rtl-optimization/65693
35348         * combine.c (is_parallel_of_n_reg_sets): Move outside of
35349         #ifndef HAVE_cc0.
35351 2015-04-09  Georg-Johann Lay  <avr@gjlay.de>
35353         PR target/65296
35354         * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
35355         device specs file if "device-specs%s" didn't resolve to a path.
35357 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
35359         PR target/65676
35360         * config/i386/i386.c (fixup_modeless_constant): New.
35361         (ix86_expand_args_builtin): Fixup modeless constant operand.
35362         (ix86_expand_round_builtin): Ditto.
35363         (ix86_expand_special_args_builtin): Ditto.
35364         (ix86_expand_builtin): Ditto.
35366 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
35368         PR target/65693
35369         * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
35370         any pow2 integer in between 2 and 0x80000000U inclusive.
35372 2015-04-08  Segher Boessenkool  <segher@kernel.crashing.org>
35374         PR rtl-optimization/65693
35375         * combine.c (is_parallel_of_n_reg_sets): Change first argument
35376         from an rtx_insn * to an rtx.
35377         (try_combine): Adjust both callers.  Use it once more.
35379 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
35381         * tree-chkp.c (chkp_find_const_bounds_var): Remove.
35382         (chkp_make_static_const_bounds): Search existing
35383         symbol by assembler name.  Use make_decl_one_only.
35384         (chkp_get_zero_bounds_var): Remove node search which
35385         is now performed in chkp_make_static_const_bounds.
35386         (chkp_get_none_bounds_var): Likewise.
35388 2015-04-08  Michael Witten  <mfwitten@gmail.com>
35390         * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
35391         to an example.
35393 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
35395         * tree.h (CONVERT_EXPR_P): Commentary typo fix.
35397 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
35399         * doc/extend.texi (__sync Builtins): Fix grammar.
35401 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
35403         * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
35405 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
35407         * varasm.c (emit_local): Move definition of align.
35409 2015-04-08  Julian Brown  <julian@codesourcery.com>
35411         * config/nvptx/mkoffload.c (process): Support variable mapping.
35413 2015-03-27  Trevor Saunders  <tbsaunde@tbsaunde.org>
35415         * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
35416         alpha_links **.
35417         (alpha_write_one_linkage): Correct typo.
35419 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
35421         * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
35423 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
35425         * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
35427 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
35429         * tree-chkp.h (chkp_insert_retbnd_call): New.
35430         * tree-chkp.c (chkp_insert_retbnd_call): New.
35431         * ipa-split.c (insert_bndret_call_after): Remove.
35432         (split_function): Use chkp_insert_retbnd_call.
35433         * cgraphunit.c (cgraph_node::expand_thunk): Build returned
35434         bounds for instrumented functions.
35436 2015-04-07  Jan Hubicka  <hubicka@ucw.cz>
35438         PR ipa/65540
35439         * calls.c (initialize_argument_information): When producing tail
35440         call also turn SSA_NAMES passed by references to original PARM_DECLs
35442 2015-04-07  Vladimir Makarov  <vmakarov@redhat.com>
35444         PR target/65648
35445         * lra-remat.c (do_remat): Process input and non-input insn
35446         registers separately.
35448 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
35450         PR debug/65678
35451         * valtrack.c (debug_lowpart_subreg): New function.
35452         (dead_debug_insert_temp): Use it.
35454         PR middle-end/65680
35455         * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
35456         into signed HOST_WIDE_INT the same as negative bit_offset.
35458 2015-04-07  Ilya Enkovich  <ilya.enkovich@intel.com>
35460         * ipa-comdats.c (ipa_comdats): Visit all thunks
35461         to set proper comdat group.
35463 2015-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
35465         PR target/65489
35466         * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
35467         on constants for NEON VSTRUCT modes.
35469 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
35470             Iain Sandoe  <iain@codesourcery.com>
35472         PR target/65351
35473         * configure: Regenerate.
35475 2015-04-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
35477         PR target/65614
35478         * config/rs6000/rs6000.c (struct processor_costs): Add cost field
35479         for SF->DF conversions to make FLOAT_EXTEND more expensive, so
35480         that LFD is used to load double constants instead of LFS.  Add
35481         defaults for all costs structures.  Add comments for missing
35482         initialization fields.
35483         (size32_cost): Likewise.
35484         (size64_cost): Likewise.
35485         (rs64a_cost): Likewise.
35486         (mpccore_cost): Likewise.
35487         (ppc403_cost): Likewise.
35488         (ppc405_cost): Likewise.
35489         (ppc440_cost): Likewise.
35490         (ppc476_cost): Likewise.
35491         (ppc601_cost): Likewise.
35492         (ppc603_cost): Likewise.
35493         (ppc604_cost): Likewise.
35494         (ppc604e_cost): Likewise.
35495         (ppc620_cost): Likewise.
35496         (ppc630_cost): Likewise.
35497         (ppccell_cost): Likewise.
35498         (ppc750_cost): Likewise.
35499         (ppc7450_cost): Likewise.
35500         (ppc8540_cost): Likewise.
35501         (ppce300c2c3_cost): Likewise.
35502         (ppce500mc_cost): Likewise.
35503         (ppce500mc64_cost): Likewise.
35504         (ppce5500_cost): Likewise.
35505         (ppce6500_cost): Likewise.
35506         (titan_cost): Likewise.
35507         (power4_cost): Likewise.
35508         (power6_cost): Likewise.
35509         (power7_cost): Likewise.
35510         (power8_cost): Likewise.
35511         (ppca2_cost): Likewise.
35512         (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
35514         * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
35515         instead of XXLOR to copy SFmode to clear out dirty bits created
35516         when SFmode denormals are generated.
35517         (mov<mode>_hardfloat, FMOVE32 case): Likewise.
35518         (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
35520 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
35522         * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
35523         * config/aarch64/aarch64-cores.def (exynos-m1): New core.
35524         * config/aarch64/aarch64-tune.md: Regenerate.
35526 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
35528         * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
35529         * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
35530         * config/arm/arm-cores.def (exynos-m1): New core.
35531         * config/arm/arm-tune.md: Regenerate.
35532         * config/arm/arm-tables.opt: Add entry for "exynos-m1".
35533         * config/arm/bpabi.h: Likewise.
35535 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
35537         * ipa-cp (set_single_call_flag): Remove too
35538         restrictive assert.
35540 2015-04-06  Ilya Verbin  <ilya.verbin@intel.com>
35542         * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
35543         GOMP_offload_unregister from the destructor.
35545 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
35547         * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
35548         flags for instrumentation thunk.
35549         (chkp_produce_thunks): Likewise.
35551 2015-04-05  Martin Liska  <mliska@suse.cz>
35553         PR ipa/65665
35554         * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
35555         has computed data structure.
35556         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
35558 2015-04-04  Jan Hubicka  <hubicka@ucw.cz>
35560         * invoke.texi (inline-unit-growth): Increase growth to 20%
35561         * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
35563 2015-04-04  Vladimir Makarov  <vmakarov@redhat.com>
35565         PR target/65647
35566         * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New.  Add its
35567         value checking.
35568         (lra_rematerialization_iter): New.
35569         * lra.c (lra): Initialize lra_rematerialization_iter.
35570         Stop updating lra_constraint_new_regno_start after switching of
35571         inheritance and rematerialization.
35572         * lra-remat.c (lra_rematerialization_iter): New.
35573         (lra_remat): Add printing pass iteration.  Do rematerialization
35574         only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
35576 2015-04-04  Richard Biener  <rguenther@suse.de>
35578         PR tree-optimization/64909
35579         PR tree-optimization/65660
35580         * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
35581         to take a cost vector for scalar iteration cost.
35582         (vect_get_single_scalar_iteration_cost): Likewise.
35583         * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
35584         Compute the scalar iteration cost into a cost vector.
35585         (vect_get_known_peeling_cost): Use the scalar cost vector to
35586         account for the cost of the peeled iterations.
35587         (vect_estimate_min_profitable_iters): Likewise.
35588         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
35589         Likewise.
35591 2015-04-04  Alan Modra  <amodra@gmail.com>
35593         PR target/65576
35594         PR target/65240
35595         * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
35596         0.0 constant unless TARGET_VSX.
35597         * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
35598         alternative.
35600 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
35602         PR ipa/65654
35603         * ipa-inline-transform.c (inline_call): Skip sanity check to work
35604         around the ICE
35606 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
35608         PR ipa/65655
35609         * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
35610         speculative indirect edges to avoid ordering issue.
35612 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
35614         PR ipa/65076
35615         * ipa-inline.c (edge_badness): Add combined size to the denominator.
35617 2015-04-03  Jakub Jelinek  <jakub@redhat.com>
35619         * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
35620         TYPE_ARTIFICIAL on the .omp_data* types.
35622 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
35624         * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
35625         instrumentation thunks.
35627 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
35629         * config/i386/i386.c (ix86_expand_call): Avoid nested
35630         PARALLEL in returned call value.
35632 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
35634         * lto-cgraph.c (input_cgraph_1): Always link instrumented
35635         assembler name with original one.
35637 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
35639         * config/i386/i386.c (ix86_register_priority): Use AX_REG.
35641 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
35643         Revert parts of r216820.
35644         * config/i386/i386.md (movqi_internal): Correct type calculation
35645         for alternatives 3 and 5.
35647 2015-04-02  Jakub Jelinek  <jakub@redhat.com>
35649         PR preprocessor/61977
35650         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
35651         predefine __vector/__bool/__pixel macros nor context sensitive
35652         macros for CLK_ASM.
35653         * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
35655 2015-04-02  John David Anglin  <danglin@gcc.gnu.org>
35657         * config/pa/pa.c (pa_output_move_double): Directly handle register
35658         indexed memory operand.  Simplify handling of scaled register indexed
35659         memory operands.
35661 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
35663         PR driver/65444
35664         * config/i386/linux-common.h (MPX_SPEC): New.
35665         (CHKP_SPEC): Add MPX_SPEC.
35666         * doc/invoke.texi (-fcheck-pointer-boudns): Document
35667         possible issues with '-z bndplt' support in linker.
35669 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
35671         * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
35672         (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
35673         (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
35674         * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
35675         (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
35677 2015-04-01  Uros Bizjak  <ubizjak@gmail.com>
35679         * config/i386/sync.md (UNSPEC_MOVA): Remove.
35680         (atomic_load<mode>): Change operand 0 predicate to
35681         nonimmediate_operand and fix up the destination when needed.
35682         Use UNSPEC_LDA.
35683         (atomic_loaddi_fpu): Use UNSPEC_LDA.
35684         (atomic_store<mode>): Change operand 1 predicate to
35685         nonimmendate_operand and move the source to register when needed.
35686         Use UNSPEC_STA.
35687         (atomic_store<mode>_1): Use UNSPEC_STA.
35688         (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
35689         Fix moves from memory operand.  Use UNSPEC_STA.
35691 2015-04-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
35693         * expmed.c (strict_volatile_bitfield_p): Check that the access will
35694         not cross a MODESIZE boundary.
35695         (store_bit_field, extract_bit_field): Added assertions in the
35696         strict volatile bitfields code path.
35698 2015-04-01  Max Ostapenko  <m.ostapenko@partner.samsung.com>
35700         PR target/65624
35701         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
35702         Increase args array size by one to avoid buffer overflow.
35704 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
35706         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
35707         split_part.
35708         * ipa-inline.c (edge_badness): Add wrapper penalty.
35709         (sum_callers): Move up.
35710         (inline_small_functions): Set single_caller.
35711         * ipa-inline.h (inline_summary): Add single_caller.
35712         * ipa-split.c (split_function): Set split_part.
35713         (cgraph_node::create_clone): Do not shadow decl; copy split_part.
35714         * cgraph.h (cgraph_node): Add split_part.
35716 2015-03-31  Uros Bizjak  <ubizjak@gmail.com>
35718         PR target/58945
35719         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
35720         Do not split operands 0 and operands 2 to halfmode.
35721         (atomic_compare_and_swap<mode>): Update for
35722         atomic_compare_and_swap<dwi>_doubleword changes.
35724 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
35726         * tree.c (need_assembler_name_p): Artificial types have no ODR names.
35727         * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
35728         no caching is done.
35730 2015-03-31  Martin Liska  <mliska@suse.cz>
35732         PR ipa/65557
35733         * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
35734         has already filled up function summary.
35735         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
35737 2015-03-31  Richard Biener  <rguenther@suse.de>
35739         * tree-sra.c (create_access_replacement): Drop under-/over-alignment
35740         of types.
35742 2015-03-31  Dominik Vogt  <vogt@linux.vnet.ibm.com>
35744         * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
35745         nested functions.
35746         (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
35747         (s390_asm_output_function_label): Adapt to new signature of
35748         s390_function_num_hotpatch_hw
35749         Optimise the code generating assembler output.
35750         Add comments to assembler file.
35752 2015-03-31  Richard Biener  <rguenther@suse.de>
35754         PR middle-end/65626
35755         * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
35756         of the noreturn call so it is last and cleanup_control_flow_bb
35757         can do the CFG part.
35759 2015-03-31  Ilya Enkovich  <ilya.enkovich@intel.com>
35761         PR target/65531
35762         * ipa-chkp.c (chkp_maybe_create_clone): Don't set
35763         same_comdat_group for external symbols.
35764         * symtab.c (symtab_node::verify_symtab_nodes): Avoid
35765         infinite same_comdat_group traversal loop.
35767 2015-03-31  Jakub Jelinek  <jakub@redhat.com>
35769         PR plugins/61176
35770         * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
35771         automatically to $headers.
35773 2015-03-30  Jakub Jelinek  <jakub@redhat.com>
35775         PR ipa/65610
35776         * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
35777         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
35778         function.
35779         (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
35780         Use it.
35781         * ipa-prop.c (param_type_may_change_p): Likewise.
35782         * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
35783         (remove_unused_scope_block_p): Add in_ctor_dtor_block
35784         argument.  Before inlining, preserve
35785         inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
35786         with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them.  Adjust
35787         recursive calls.
35788         (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
35790 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
35792         PR ipa/65076
35793         * ipa-inline.c (edge_badness): Base denominator on callee's
35794         grwoth squared.
35796 2015-03-27  Martin Jambor  <mjambor@suse.cz>
35798         PR ipa/65478
35799         * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
35800         (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
35801         * ipa-prop.h (ipa_node_params): New flags node_within_scc and
35802         node_calling_single_call.
35803         * ipa-cp.c (count_callers): New function.
35804         (set_single_call_flag): Likewise.
35805         (initialize_node_lattices): Count callers and set single_flag_call if
35806         necessary.
35807         (incorporate_penalties): New function.
35808         (good_cloning_opportunity_p): Use it, dump new flags.
35809         (propagate_constants_topo): Set node_within_scc flag if appropriate.
35810         * doc/invoke.texi (ipa-cp-recursion-penalty,
35811         ipa-cp-single-call-pentalty): Document.
35813 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
35815         PR ipa/65588
35816         * symtab.c (symtab_node::get_partitioning_class): Register vars
35817         are duplicated.
35818         * varpool.c (symbol_table::output_variables) Do not assemble unefined
35819         decls for non-symbols.
35821 2015-03-27  H.J. Lu  <hongjiu.lu@intel.com>
35823         PR target/65248
35824         * output.h (default_binds_local_p_2): New.
35825         * varasm.c (default_binds_local_p_2): Renamed to ...
35826         (default_binds_local_p_3): This.  Don't return true on protected
35827         data symbol if protected data may be external.
35828         (default_binds_local_p): Use default_binds_local_p_3.
35829         (default_binds_local_p_1): Likewise.
35830         (default_binds_local_p_2): New.
35831         * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
35832         default_binds_local_p_2 if TARGET_MACHO is undefined.
35834 2015-03-27  Jakub Jelinek  <jakub@redhat.com>
35836         PR target/65593
35837         * config/i386/i386.c (legitimize_pic_address): If base
35838         is SYMBOL_REF or LABEL_REF using %rip addressing, force
35839         it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
35841 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
35843         PR target/65531
35844         * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
35845         comdat groups.
35847 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
35849         PR ipa/65600
35850         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
35851         of optimized out indirect call.
35852         (redirect_to_unreachable): Always build symbol table node for
35853         BUILT_IN_UNREACHABLE
35855 2015-03-27  Vladimir Makarov  <vmakarov@redhat.com>
35857         PR target/65407
35858         * ira-costs.c (record_reg_classes): Process all constraint string
35859         containing 0-9.
35861 2015-03-27  Bernd Schmidt  <bernds@codesourcery.com>
35863         * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
35864         memory_operand.
35866         PR target/65052
35867         * config/c6x/constraints.md (S3): New constraint.
35868         * config/c6x/c6x.md (real_jump): Use it.
35870 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
35872         PR middle-end/65595
35873         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
35874         do redirection if the call is not optimized out.
35876 2015-03-27  Ilya Enkovich  <ilya.enkovich@intel.com>
35878         PR target/65495
35879         * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
35880         (fchkp-check-incomplete-type): Add LTO.
35881         (fchkp-zero-input-bounds-for-main): Likewise.
35882         (fchkp-first-field-has-own-bounds): Likewise.
35883         (fchkp-narrow-bounds): Likewise.
35884         (fchkp-narrow-to-innermost-array): Likewise.
35885         (fchkp-use-static-bounds): Likewise.
35886         (fchkp-use-static-const-bounds): Likewise.
35887         (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
35889 2015-03-27  Marek Polacek  <polacek@redhat.com>
35891         * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
35893 2015-03-27  Marek Polacek  <polacek@redhat.com>
35895         PR sanitizer/65583
35896         * ubsan.c (ubsan_create_edge): New function.
35897         (instrument_bool_enum_load): Call it.
35898         (instrument_nonnull_arg): Likewise.
35899         (instrument_nonnull_return): Likewise.
35900         (instrument_object_size): Likewise.
35902 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
35904         * lto-streamer.h (class lto_location_cache): Turn loc_cache into
35905         auto_vec.
35907 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
35909         PR lto/65536
35910         * lto-streamer.h (class lto_location_cache): New.
35911         (struct data_in): Add location_cache.
35912         (lto_input_location): Update prototype.
35913         (stream_input_location_now): New.
35914         * streamer-hooks.h (struct streamer_hooks): Make input_location to take
35915         pointer to location.
35916         (stream_input_location): Update.
35917         * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
35918         (warn_odr): Apply location cache before warning.
35919         (lto_input_location): Update prototype.
35920         * gimple-streamer-in.c (input_phi, input_gimple_stmt):
35921         Use stream_input_location_now.
35922         * lto-streamer-in.c (lto_location_cache::current_cache): New static
35923         variable.
35924         (lto_location_cache::cmp_loc): New function.
35925         (lto_location_cache::apply_location_cache): New function.
35926         (lto_location_cache::accept_location_cache): New function.
35927         (lto_location_cache::revert_location_cache): New function.
35928         (lto_location_cache::input_location): New function.
35929         (lto_input_location): Do location caching.
35930         (stream_input_location_now): New function.
35931         (input_eh_region, input_struct_function_base): Use
35932         stream_input_location_now.
35933         (lto_data_in_create): use new.
35934         (lto_data_in_delete): Use delete.
35935         * tree-streamer-in.c (unpack_ts_block_value_fields,
35936         unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
35937         lto_input_ts_exp_tree_pointers): Update for cached location api.
35939 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
35941         PR ipa/65076
35942         * passes.def: Add pass_nothrow.
35943         * ipa-pure-const.c: (pass_data_nothrow): New.
35944         (pass_nothrow): New.
35945         (pass_nothrow::execute): New.
35946         (make_pass_nothrow): New.
35947         * tree-pass.h (make_pass_nothrow): Declare.
35949 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
35951         * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
35952         edge to change by speculation resolution or redirection.
35953         (edge_set_predicate): Likewise.
35954         (inline_summary_t::duplicate): Likewise.
35955         (remap_edge_summaries): Likewise.
35957 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
35959         * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
35960         New macros.
35961         (can_inline_edge_p): Relax option matching for always inline functions.
35963 2015-03-26  Uros Bizjak  <ubizjak@gmail.com>
35965         PR target/65561
35966         * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
35967         Check operand 4 and operand 0 for equality.
35968         (avx512f_vextract<shuffletype>32x4_1_maskm):
35969         Check operand 6 and operand 0 for equality.
35970         (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
35971         for equality.
35972         (vec_extract_hi_<mode>_maskm): Ditto.
35974 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
35976         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
35977         dead calls back to live.
35978         (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
35979         cross check to ...
35980         (cgraph_node::verify_node): ... here; verify only callee edges,
35981         not caller.
35982         * cif-code.def (CILK_SPAWN): New code.
35984 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
35986         * ipa-inline-analysis.c (redirect_to_unreachable): New function.
35987         (edge_set_predicate): Use it to mark unreachable edges.
35988         (inline_summary_t::duplicate): Remove unnecesary code.
35989         (remap_edge_summaries): Likewise.
35990         (dump_inline_summary): Report contains_cilk_spawn.
35991         (compute_inline_parameters): Compute contains_cilk_spawn.
35992         (inline_read_section, inline_write_summary): Stream
35993         contains_cilk_spawn.
35994         * ipa-inline.c (can_inline_edge_p): Do not touch
35995         DECL_STRUCT_FUNCTION that may not be available;
35996         use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
35997         remove check for callee_fun->can_throw_non_call_exceptions and
35998         replace it by optimization attribute check; check for flag_exceptions.
35999         * ipa-inline-transform.c (inline_call): Maintain
36000         DECL_FUNCTION_PERSONALITY
36001         * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
36003 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
36005         PR tree-optimization/65551
36006         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
36007         TYPE_PRECISION only for INTEGRAL_TYPE_P types.
36009 2015-03-26  Richard Biener  <rguenther@suse.de>
36011         PR middle-end/65555
36012         * tree-cfg.c (verify_gimple_call): Do not require a call to
36013         have no LHS if it wasn't recognized as control altering yet.
36015 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
36017         PR tree-optimization/64715
36018         * passes.def: Add another instance of pass_object_sizes before ccp1.
36019         * tree-object-size.c (pass_object_sizes::execute): In
36020         first_pass_instance, only handle __bos (, 1) and __bos (, 3)
36021         calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
36022         __bos result and the computed constant.  Remove redundant
36023         checks, obsoleted by gimple_call_builtin_p test.
36025         * var-tracking.c (variable_tracking_main_1): Don't track
36026         variables for targetm.no_register_allocation targets.
36028 2015-03-26  Oleg Endo  <olegendo@gcc.gnu.org>
36030         * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
36031         * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
36033 2015-03-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
36035         PR target/65569
36036         * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
36037         XXLXOR to create 0.0.  On pre-VSX systems make sure the constant
36038         0.0 is correctly setup.
36039         (extenddftf2_internal): Likewise.
36041 2015-03-25  Sebastian Pop  <s.pop@samsung.com>
36043         PR tree-optimization/65177
36044         * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
36045         (bb_in_bbs): New.
36046         (duplicate_seme_region): Renamed duplicate_thread_path.  Redirect all
36047         edges not adjacent on the path to the original code.
36049 2015-03-25  Uros Bizjak  <ubizjak@gmail.com>
36051         PR bootstrap/65537
36052         * doc/install.texi (Building a native compiler): Document new
36053         bootstrap-lto-noplugin configuration.  Mention that bootstrap-lto
36054         configuration assumes that the host supports the linker plugin.
36056 2015-03-25  Ilya Enkovich  <ilya.enkovich@intel.com>
36058         PR target/65508
36059         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
36060         chain for generated call.
36062 2015-03-25  Richard Biener  <rguenther@suse.de>
36064         * passes.c (pass_manager::execute_early_local_passes): Guard
36065         execution of pass_chkp_instrumentation_passes with
36066         flag_check_pointer_bounds.
36067         (pass_chkp_instrumentation_passes::gate): Likewise.
36069 2015-03-25  Martin Liska  <mliska@suse.cz>
36071         PR tree-optimization/65538
36072         * symbol-summary.h (function_summary::~function_summary):
36073         Relese memory for allocated summaries.
36074         (function_summary::release): New function.
36076 2015-03-25  Jakub Jelinek  <jakub@redhat.com>
36078         PR lto/65515
36079         * lto-streamer-out.c (DFS::worklist): New struct.
36080         (DFS::worklist_vec): New data member.
36081         (DFS::next_dfs_num): Remove.
36082         (DFS::DFS): Rewritten using worklist instead of recursion,
36083         using most of code from DFS::DFS_write_tree.
36084         (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
36085         pass it to DFS_write_tree calls.
36086         (DFS::DFS_write_tree): Remove SINGLE_P argument, after
36087         quick initial checks push it into worklist_vec and return.
36089 2015-03-25  Richard Biener  <rguenther@suse.de>
36091         PR middle-end/65519
36092         * genmatch.c (expr::gen_transform): Re-write to avoid
36093         using gimple_build.
36095 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
36097         * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
36099 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
36101         * config/arm/arm.opt (print_tune_info): New option.
36102         * config/arm/arm.c (arm_print_tune_info): New function.
36103         (arm_file_start): Call arm_print_tune_info.
36104         * config/arm/arm-protos.h (struct tune_params): Add comment.
36105         * doc/invoke.texi (@item -mprint-tune-info): New item.
36106         (-mtune): mention it in ARM Option Summary.
36108 2015-03-25  DJ Delorie  <dj@redhat.com>
36110         * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
36111         correct clause.
36113 2015-03-24  Jan Hubicka  <hubicka@ucw.cz>
36114             Martin Liska  <mliska@suse.cz>
36116         * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
36117         * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
36118         (sem_item::add_type): New function.
36119         (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
36120         (sem_function::compare_polymorphic_p): Do not consider indirect calls.
36121         (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
36122         (sem_function::equals_wpa): Fix typo.
36123         * ipa-icf.h (sem_item::add_type): New function.
36124         (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
36125         order.
36127 2015-03-24  Jakub Jelinek  <jakub@redhat.com>
36129         PR tree-optimization/65533
36130         * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
36131         with swapped operands, call vect_free_slp_tree on
36132         SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
36133         vector.
36135 2015-03-24  Richard Biener  <rguenther@suse.de>
36137         PR middle-end/65517
36138         * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
36139         for fixup if necessary.
36141 2015-03-23  Sandra Loosemore  <sandra@codesourcery.com>
36143         * doc/extend.texi (Function Attributes): Add @cindex entries
36144         for all attributes and regularize their format.  Delete text
36145         about long-obsolete 68HC11 and 68HC12 targets.  Move misplaced
36146         information about "eightbit_data", "tiny_data", and "model"
36147         variable attributes to the Variable Attributes section.  Fix
36148         some obvious typos and copy-editing issues.
36149         (Variable Attributes, Type Attributes): Likewise add/fix
36150         @cindex entries for all attributes.
36152 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
36154         PR target/65523
36155         * tree-chkp.c (chkp_build_returned_bound): Ignore
36156         ERF_RETURNS_ARG calls if they have fewer than needed arguments.
36158 2015-03-23  Oleg Endo  <olegendo@gcc.gnu.org>
36160         PR target/65505
36161         * config/sh/predicates.md (simple_mem_operand,
36162         displacement_mem_operand): Add test for reg.
36163         (short_displacement_mem_operand): Test for displacement_mem_operand
36164         before invoking sh_disp_addr_displacement.
36165         * config/sh/constraints.md (Sdd, Sra): Simplify.
36166         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
36167         Remove redundant displacement_mem_operand tests.
36169 2015-03-23  Georg-Johann Lay  <avr@gjlay.de>
36171         PR target/65296
36172         * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
36173         the same -mmcu=MCU more than once.
36175 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
36177         PR bootstrap/65522
36178         * ipa-devirt.c: Remove duplicate demangle.h include.
36180         PR target/65504
36181         * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
36182         on the pseudo.
36183         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
36184         REG_POINTER on *destptr after adjusting it for prologue size.
36186         PR ipa/65521
36187         * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
36188         ultimate_alias_target ()->order ints instead of
36189         ultimate_alias_target () pointers.
36191 2015-03-23  Richard Biener  <rguenther@suse.de>
36193         PR tree-optimization/65518
36194         * tree-vect-stmts.c (vectorizable_load): Reject single-element
36195         interleaving cases we generate absymal code for.
36197 2015-03-23  Richard Biener  <rguenther@suse.de>
36199         PR tree-optimization/65494
36200         * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
36201         matches here.
36202         (vect_analyze_slp_instance): But do that here, always and once.
36204 2015-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
36206         * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
36207         adding T or multiplying by T+1 and subracting T.
36209 2015-03-22  Jeff Law  <law@redhat.com>
36211         PR rtl-optimization/64317
36212         * Makefile.in (OBJS): Add gcse-common.c
36213         * gcse.c: Include gcse-common.h
36214         (struct modify_pair_s): Move structure definition to gcse-common.h
36215         (compute_transp): Move function to gcse-common.c.
36216         (canon_list_insert): Similarly.
36217         (record_last_mem_set_info): Break out some code and put it into
36218         gcse-common.c.  Call into the new common code.
36219         (compute_local_properties): Pass additional arguments to compute_transp.
36220         * postreload-gcse.c: Include gcse-common.h and df.h
36221         (modify_mem_list_set, blocks_with_calls): New variables.
36222         (modify_mem_list, canon_modify_mem_list, transp): Likewise.
36223         (get_bb_avail_insn): Pass in the expression index too.
36224         (alloc_mem): Allocate memory for the new bitmaps and lists.
36225         (free_mem): Free memory for the new bitmaps and lists.
36226         (insert_expr_in_table): Record a bitmap index for each entry we
36227         add to the table.
36228         (record_last_mem_set_info): Call into common code in gcse-common.c.
36229         (get_bb_avail_insn): If no available insn was found in the requested
36230         BB.  If BB has a single predecessor, see if the expression is
36231         transparent in BB and available in that single predecessor.
36232         (compute_expr_transp): New wrapper for compute_transp.
36233         (eliminate_partially_redundant_load): Pass expression's bitmap_index
36234         to get_bb_avail_insn.  Compute next_pred_bb_end a bit later.
36235         (gcse_after_reload_main): If there are elements in the hash table,
36236         then compute transparency for all the elements in the hash table.
36237         * gcse-common.h: New file.
36238         * gcse-common.c: New file.
36240 2015-03-22  Sandra Loosemore  <sandra@codesourcery.com>
36242         * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
36243         as an adjective.
36244         (System Headers): Likewise.
36245         (Ifdef): Likewise.
36246         (Traditional macros): Likewise.
36247         (Invocation): Likewise.
36248         (Option Index): Likewise.
36249         * doc/cppopts.texi (-M): Likewise.
36250         (-finput-charset): Likewise.
36251         (--help): Likewise.
36252         * doc.invoke.texi (AVR Options): Likewise.
36253         (V850 Options): Likewise.
36255 2015-03-22  Jan Hubicka  <hubicka@ucw.cz>
36257         PR ipa/65475
36258         * ipa-devirt.c: Include demangle.h
36259         (odr_type_d): Add field rtti_broken.
36260         (odr_subtypes_equivalent_p): Do not require name to match.
36261         (compare_virtual_tables): Fix typo; if type already has ODR violation,
36262         bypass the tests; be ready for function referneces in vtables that are
36263         not DECL_VIRTUAL; make warnings to be OPT_Wodr.
36264         (warn_odr): Give up for nameless types.
36265         (warn_types_mismatch): Report mismatch in mangled names;
36266         report mismatch in anonymous namespaces; look into component types to
36267         give useful error; report when mismatch is dragged in from other ODR
36268         type.
36269         (odr_types_equivalent_p): Match types for being polymorphic; avoid
36270         duplicated diagnostics.
36271         (add_type_duplicate): Reorder checks so more informative ones come
36272         first; fix typo; do not output "the extra base is defined here" when
36273         we did not warn.
36274         (BINFO_N_BASE_BINFOS): Relax sanity check.
36276 2015-03-22  Martin Liska  <mliska@suse.cz>
36277             Jakub Jelinek  <jakub@redhat.com>
36279         * config/i386/i386.c (def_builtin): Set deferred_isa_values for
36280         masks that can potentially include a builtin.
36281         (ix86_add_new_builtins): Introduce fast filter for isa values
36282         that cannot trigger builtin inclusion.
36284 2015-03-22  Martin Liska  <mliska@suse.cz>
36286         * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
36287         (sem_item::update_hash_by_local_refs): Likewise.
36288         (sem_variable::get_hash): Empty line is fixed.
36289         (sem_item_optimizer::execute): Include adding of hash references.
36290         (sem_item_optimizer::update_hash_by_addr_refs): New function.
36291         (sem_item_optimizer::build_hash_based_classes): Use local hash.
36292         * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
36293         (sem_item::update_hash_by_local_refs): Likewise.
36295 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
36297         PR ipa/65502
36298         * ipa-comdats.c (enqueue_references): Walk through thunks.
36299         (ipa_comdats): Likewise.
36300         (set_comdat_group_1): New function.
36302 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
36304         PR ipa/65475
36305         * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
36306         non-polymorphic
36308 2015-03-22  Dave Korn  <dave.korn.cygwin@gmail.com>
36309             Gerald Pfeifer  <gerald@pfeifer.com>
36311         * doc/contrib.texi (Contributors): Update entry for Danny Smith.
36313 2015-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
36314             Sandra Loosemore  <sandra@codesourcery.com>
36316         * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
36317         function parameter declaration.
36318         * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
36319         Update arguments to nios2_adjust_call_address().
36320         (sibcall_internal): Rename from *sibcall.
36321         (sibcall_value_internal): Rename from *sibcall_value.
36322         * config/nios2/nios2.c (nios2_emit_add_constant): New function.
36323         (nios2_large_got_address): Add target temp reg parameter.
36324         (nios2_got_address): Adjust call to nios2_large_got_address, add
36325         force_reg around it.
36326         (nios2_load_pic_address): Add target temp reg parameter, replace call
36327         to nios2_got_address with corresponding code.
36328         (nios2_legitimize_constant_address): Update call to
36329         nios2_load_pic_address.
36330         (nios2_adjust_call_address): Add temp reg parameter, update PIC case
36331         to use temp reg for PIC loading purposes.
36332         (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
36333         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
36334         (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
36336 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
36338         * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
36339         usage of "the @option{...}".
36340         (-Wopenmp-simd): Likewise.
36341         (-fsanitize-recover): Likewise.
36342         (-fsanitize-undefined-trap-on-error): Likewise.
36343         (-flto): Likewise.
36344         (tracer-dynamic-coverage-feedback): Likewise.
36345         (reorder-block-duplicate-feedback): Likewise.
36346         (loop-unroll-jam-size): Likewise.
36347         (-B): Likewise.
36348         (-I-): Likewise.
36349         (-mabs=legacy): Likewise.
36350         (-mupper-regs-df): Likewise.
36351         (-mupper-regs-sf): Likewise.
36352         (-mpointers-to-nested-functions): Likewise.
36354 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
36356         * doc/extend.texi (Cilk Plus Builtins): Add markup.
36358 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
36360         * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
36361         additional index entries and cross-references.
36362         (-fchkp-check-incomplete-type): Likewise.
36363         (-fchkp-first-field-has-own-bounds): Likewise.
36364         (-fchkp-narrow-to-innermost-array): Likewise.
36365         (-fchkp-use-fast-string-functions): Likewise.
36366         (-fchkp-use-nochk-string-functions): Likewise.
36367         (-fchkp-use-static-const-bounds): Likewise.
36368         (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
36369         (-fchkp-instrument-marked-only): Likewise.
36370         (-fchkp-use-wrappers): Likewise.
36371         (-static-libmpx): Likewise.
36372         (-static-libmpxwrappers): Likewise.
36373         * doc/extend.texi (bnd_legacy): Likewise.
36374         (bnd_instrument): Likewise.
36375         (bnd_variable_size): Likewise.
36376         (Pointer Bounds Checker builtins): Likewise.
36378 2015-03-21  Tom de Vries  <tom@codesourcery.com>
36380         PR tree-optimization/65458
36381         * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
36382         * cgraph.h (cgraph_node): Add parallelized_function field.
36383         * lto-cgraph.c (lto_output_node): Write parallelized_function field.
36384         (input_overwrite_node): Read parallelized_function field.
36385         * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
36386         parallelized_function on cgraph_node for child_fn.
36387         * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
36388         Remove include of gt-tree-parloops.h.
36389         (parallelized_functions): Remove static variable.
36390         (parallelized_function_p): Rewrite using parallelized_function field of
36391         cgraph_node.
36392         (create_loop_fn): Remove adding to parallelized_functions.
36393         * Makefile.in (GTFILES): Remove tree-parloops.c
36395 2015-03-20  Vladimir Makarov  <vmakarov@redhat.com>
36397         PR rtl-optimization/64366
36398         * lra.c (lra_update_insn_regno_info): Consider regs in
36399         CALL_INSN_FUNCTION_USAGE memory.
36401 2015-03-20  Richard Biener  <rguenther@suse.de>
36403         PR middle-end/64715
36404         * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
36405         for type comparison and gcc_checking_assert.
36406         (chrec_fold_plus_poly_poly): Likewise.
36407         (chrec_fold_multiply_poly_poly): Likewise.
36408         (chrec_convert_1): Likewise.
36409         * gimplify.c (gimplify_expr): Remove premature folding of
36410         &X + CST to &MEM[&X, CST].
36412 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
36414         * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
36415         already is final.
36416         (ipa_inline): Recompute inline_failed codes.
36417         * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
36418         USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
36419         CIF_FINAL_ERROR.
36421 2015-03-20  Uros Bizjak  <ubizjak@gmail.com>
36423         PR rtl-optimization/60851
36424         * recog.c (constrain_operands): Accept a pseudo register before reload
36425         for LRA enabled targets.
36427 2015-03-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
36429         PR target/65240
36430         * config/rs6000/predicates.md (easy_fp_constant): Remove special
36431         -ffast-math handling that kept non-0 constants live in the RTL
36432         until reload.  Remove logic testing the number of instructions it
36433         took to create a constant in a GPR that was never used, due to a
36434         test for soft-float earlier.
36435         (memory_fp_constant): Delete, no longer used.
36437         * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
36438         alternatives for loading non-0 constants into GPRs for hard
36439         floating point that is no longer needed due to changes in
36440         easy_fp_constant.  Add support for loading 0.0 into GPRs.
36441         (mov<mode>_hardfloat32): Likewise.
36442         (mov<mode>_hardfloat64): Likewise.
36443         (mov<mode>_64bit_dm): Likewise.
36444         (movtd_64bit_nodm): Likewise.
36445         (pre-reload move FP constant define_split): Delete define_split,
36446         since it is no longer used.
36447         (extenddftf2_internal): Remove GHF constraints that are not valid
36448         for extenddftf2.
36450 2015-03-19  Vladimir Makarov  <vmakarov@redhat.com>
36452         PR rtl-optimization/63491
36453         * lra-constraints.c (check_and_process_move): Use src instead of
36454         sreg.  Remove some dead code.
36456 2015-03-19  Jan Hubicka  <hubicka@ucw.cz>
36458         PR ipa/65380
36459         * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
36460         (sem_variable::merge): Likewise.
36462 2015-03-19  Martin Liska  <mliska@suse.cz>
36464         PR ipa/65465
36465         * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
36466         all fields of cgraph_thunk_info.
36468 2015-03-19  Ilya Enkovich  <ilya.enkovich@intel.com>
36470         * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
36471         clone instrumented thunks.
36473 2015-03-19  Richard Biener  <rguenther@suse.de>
36475         Revert
36476         2015-03-10  Richard Biener  <rguenther@suse.de>
36478         PR middle-end/63155
36479         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
36480         * tree-ssa-coalesce.c: Include timevar.h.
36481         (attempt_coalesce): Handle graph being NULL.
36482         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
36483         Split out abnormal coalescing to ...
36484         (perform_abnormal_coalescing): ... this function.
36485         (coalesce_ssa_name): Perform abnormal coalescing without computing
36486         live/conflict.
36487         (verify_ssa_coalescing_worker): New function.
36488         (verify_ssa_coalescing): Likewise.
36490 2015-03-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
36491             Jakub Jelinek  <jakub@redhat.com>
36493         PR sanitizer/65400
36494         * tsan.c (instrument_gimple): Clear tail call flag on
36495         calls.
36497 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
36499         PR sanitizer/65400
36500         * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
36501         call in the return bb.
36502         (find_split_points): Add RETURN_BB argument, don't call
36503         find_return_bb.
36504         (split_function): Likewise.  Add ADD_TSAN_FUNC_EXIT argument,
36505         if true append TSAN_FUNC_EXIT internal call after the call to
36506         the split off function.
36507         (execute_split_functions): Call find_return_bb here.
36508         Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
36509         Adjust find_split_points and split_function calls.
36511 2015-03-18  DJ Delorie  <dj@redhat.com>
36513         * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
36514         (iorqi3_virt): Likewise.
36516 2015-03-18  Tom de Vries  <tom@codesourcery.com>
36518         * tree-parloops.c (parallelize_loops): Make static.
36519         * tree-parloops.h (parallelize_loops): Remove extern declaration.
36521 2015-03-18  Andrew Stubbs  <ams@codesourcery.com>
36523         PR middle-end/64491
36524         Revert:
36525         2014-11-20  Andrew Stubbs  <ams@codesourcery.com>
36527         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
36528         condition would be removed due to undefined behaviour.
36530 2015-03-18  Martin Liska  <mliska@suse.cz>
36532         PR ipa/65432
36533         * cgraph.c (cgraph_node::get_create): Remove unnecessary
36534         xstrdup_for_dump wrapper.
36535         * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
36536         sem_item::name.
36537         (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
36538         with xstrdup_for_dump.
36539         (sem_variable::equals): Likewise.
36540         (sem_item_optimizer::read_section): Use symtab_node::name instead of
36541         sem_item::name.
36542         (sem_item_optimizer::parse_funcs_and_vars): Likewise.
36543         (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
36544         symtab_node::asm_name with xstrdup_for_dump.
36545         (congruence_class::dump): Use symtab_node::name instead of
36546         sem_item::name.
36547         * ipa-icf.h (symtab_node::name): Remove.
36548         (symtab_node::asm_name): Likewise.
36550 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
36552         PR tree-optimization/65450
36553         * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
36554         function.
36555         (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
36556         it instead of duplicate_ssa_name_ptr_info.
36558         PR target/65222
36559         * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
36561 2015-03-18  Richard Biener  <rguenther@suse.de>
36563         * tree-data-ref.h (struct access_matrix): Remove.
36564         (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
36565         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
36566         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
36567         (am_vector_index_for_loop): Likewise.
36568         (struct data_reference): Remove access_matrix member.
36569         (DR_ACCESS_MATRIX): Remove.
36570         (lambda_vector_new): Add comment.
36571         (lambda_matrix_new): Use XOBNEWVEC.
36573 2015-03-18  Richard Biener  <rguenther@suse.de>
36575         * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
36576         (pass_ch::execute): Cleanup the CFG only if we did sth.
36577         * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
36579 2015-03-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
36581         * expmed.c (synth_mult): Use std::swap instead of manually
36582         swapping algorithms.
36584 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
36586         PR target/65078
36587         * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
36589 2015-03-16  Georg-Johann Lay  <avr@gjlay.de>
36591         PR target/65296
36592         * config/avr/avr.opt (-nodevicelib): New option.
36593         * doc/invoke.texi (AVR Options): Document it.
36594         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
36595         libgcc.a, libc.a, libm.a.
36596         * config/avr/specs.h: Same.
36597         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
36598         which don't (directly) depend on the device.  Print more help.
36599         (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
36600         (*cpp): Don't define __AVR_DEV_LIB_NAME__.
36601         * config/avr/driver-avr.c: Remove -nodevicelib from option list in
36602         case of an error.
36603         (avr_devicespecs_file): Use suffix "%s" instead of absolute path
36604         for specs file name.
36605         * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
36606         * config/avr/avr-mcus.def: Adjust initializers and comments.
36608 2015-03-16  Jan Hubicka  <hubicka@ucw.cz>
36610         * tree-sra.c (ipa_sra_preliminary_function_checks): Use
36611         DECL_ONE_ONLY to check if decl is one only.
36612         * ipa-split.c (consider_split): Limit splitt of one only functions.
36614 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
36616         PR tree-optimization/65427
36617         * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
36618         functions.
36619         (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
36621 2015-03-16  Marek Polacek  <polacek@redhat.com>
36623         * cgraph.h (add_new_static_var): Remove declaration.
36624         * varpool.c (add_new_static_var): Remove function.
36626 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
36628         * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
36629         instead of vec<tree> * with vec_alloc and release for args.
36630         Adjust all users.
36632         PR middle-end/65431
36633         * omp-low.c (delete_omp_context): Only splay_tree_delete
36634         reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
36635         is_gimple_omp_oacc contexts.  Don't look at ctx->outer.
36637 2015-03-16  Max Ostapenko  <m.ostapenko@partner.samsung.com>
36639         PR sanitizer/64820
36640         * cfgexpand.c (align_base): New function.
36641         (alloc_stack_frame_space): Call it.
36642         (expand_stack_vars): Align prev_frame to be sure
36643         data->asan_vec elements aligned properly.
36645 2015-03-16  Eric Botcazou  <ebotcazou@adacore.com>
36647         PR middle-end/65409
36648         * expr.c (store_field): Do not do a direct block copy if the source is
36649         a PARALLEL with BLKmode.
36651 2015-03-16  Tom de Vries  <tom@codesourcery.com>
36653         PR middle-end/65414
36654         Revert:
36655         2015-03-12  Tom de Vries  <tom@codesourcery.com>
36657         PR rtl-optimization/64895
36658         * lra-lives.c (check_pseudos_live_through_calls): Use
36659         actual_call_used_reg_set instead of call_used_reg_set, if available.
36661 2015-03-16  Alan Modra  <amodra@gmail.com>
36663         PR target/63150
36664         * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
36665         Modify Z->r bswapdi splitter to use dest in place of scratch.
36666         In r->Z and Z->r bswapdi splitter rename word_high, word_low
36667         to word1, word2 and rearrange logic to suit.
36668         (bswapdi2_64bit): Remove early clobber on Z->r alternative.
36669         (bswapdi2_ldbrx): Likewise.  Remove '??' on r->r.
36670         (bswapdi2_32bit): Remove early clobber on Z->r alternative.
36671         Add one '?' on r->r.  Modify Z->r splitter to avoid need for
36672         early clobber.
36674 2015-03-14  Jakub Jelinek  <jakub@redhat.com>
36676         PR tree-optimization/65369
36677         * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
36678         Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
36679         (vs - 1) * TYPE_SIZE_UNIT (elem_type).
36681         PR tree-optimization/65418
36682         * tree-ssa-reassoc.c (extract_bit_test_mask): If there
36683         are casts in the first PLUS_EXPR operand, ensure tbias and
36684         *totallowp are in the inner type.
36686         PR rtl-optimization/65401
36687         * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
36688         argument.  If true, adjust_address_nv of x with big-endian
36689         correction for the mode widening to GET_MODE (y).
36690         (make_field_assignment): Don't do MEM mode widening here.
36691         Use MEM_P instead of GET_CODE == MEM.
36693 2015-03-13  Ilya Verbin  <ilya.verbin@intel.com>
36695         * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
36696         the external decls.
36698 2015-03-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
36700         PR target/64600
36701         * config/arm/arm.c (arm_gen_constant, AND case): Use
36702         ARM_SIGN_EXTEND when constructing AND mask.
36704 2015-03-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
36706         * graph.c (print_graph_cfg): Make function names visible and append
36707         parenthesis to it.  Also make groups of basic blocks belonging to the
36708         same function visible.
36710 2015-03-12  Richard Biener  <rguenther@suse.de>
36712         PR middle-end/44563
36713         * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
36714         to avoid quadratic behavior with inline expansion splitting blocks.
36715         * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
36716         with the successor if the predecessor will be merged with it.
36717         * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
36718         entry block with its successor.
36720 2015-03-13  Richard Biener  <rguenther@suse.de>
36722         PR middle-end/44563
36723         * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
36724         (cleanup_tree_cfg_1): Do not call it.
36725         (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
36726         (fixup_noreturn_call): Mark the stmt as control altering.
36727         * tree-cfg.c (execute_fixup_cfg): Do not dump the function
36728         here.
36729         (pass_data_fixup_cfg): Produce a dump file.
36730         * tree-ssa-dom.c: Include tree-cfgcleanup.h.
36731         (need_noreturn_fixup): New global.
36732         (pass_dominator::execute): Fixup queued noreturn calls.
36733         (optimize_stmt): Queue calls that became noreturn for fixup.
36734         * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
36735         * tree-ssa-pre.c: Include tree-cfgcleanup.h.
36736         (el_to_fixup): New global.
36737         (eliminate_dom_walker::before_dom_childre): Queue calls that
36738         became noreturn for fixup.
36739         (eliminate): Fixup queued noreturn calls.
36740         * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
36741         (substitute_and_fold_dom_walker): New member stmts_to_fixup.
36742         (substitute_and_fold_dom_walker::before_dom_children): Queue
36743         alls that became noreturn for fixup.
36744         (substitute_and_fold): Fixup queued noreturn calls.
36746 2015-03-12  Jan Hubicka  <hubicka@ucw.cz>
36748         * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
36749         and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
36750         are building; for methods check ODR type of class they belong to if
36751         they may lead to a polymorphic call.
36752         (sem_function::compare_polymorphic_p): Be bit smarter about testing
36753         when function may lead to a polymorphic call.
36754         (sem_function::compare_type_list): Remove.
36755         (sem_variable::equals): Update use of compatible_types_p.
36756         (sem_variable::parse_tree_refs): Remove.
36757         (sem_item_optimizer::filter_removed_items): Do not filter out CXX
36758         cdtor.
36759         * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
36760         matching here.
36761         (func_checker::compatible_polymorphic_types_p): Break out from ...
36762         (unc_checker::compatible_types_p): ... here.
36763         * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
36764         Declare.
36765         (unc_checker::compatible_types_p): Update.
36766         * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
36767         Remove.
36769 2015-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
36771         PR rtl-optimization/65235
36772         * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
36773         When first element of vec_concat is const_int, calculate its size
36774         using second element.
36776 2015-03-12  Richard Biener  <rguenther@suse.de>
36778         PR middle-end/65270
36779         * fold-const.c (operand_equal_p): Fix ordering of resetting
36780         OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
36782 2015-03-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
36784         * config/s390/s390.c (s390_reorg): Move code to output nops after label
36785         to s390_reorg ().
36786         (s390_asm_output_function_label): Likewise.
36787         * config/s390/s390.c (s390_asm_output_function_label):
36788         Fix function label alignment with -mhtopatch.
36789         * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
36790         UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
36791         ("nop_2_byte"): New define_insn.
36792         ("nop_4_byte"): Likewise.
36793         ("nop_6_byte"): Likewise.
36794         * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
36795         * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
36797 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
36799         PR target/65103
36800         * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
36801         register.
36803 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
36805         PR target/65044
36806         * toplev.c (process_options): Restrict Pointer Bounds Checker
36807         usage with Address Sanitizer.
36809 2015-03-12  Richard Biener  <rguenther@suse.de>
36811         * tree-cfg.c (gimple_split_block): Remove loop finding stmt
36812         to split on.
36813         * omp-low.c (expand_omp_taskreg): Split block before removing
36814         the stmt.
36815         (expand_omp_target): Likewise.
36816         * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
36817         * tree-parloops.c (create_call_for_reduction_1): Pass a proper
36818         stmt to split_block.
36820 2015-03-12  Tom de Vries  <tom@codesourcery.com>
36822         PR rtl-optimization/64895
36823         * lra-lives.c (check_pseudos_live_through_calls): Use
36824         actual_call_used_reg_set instead of call_used_reg_set, if available.
36826 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
36828         * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
36829         (cgraph_node::remove): Likewise.
36830         (cgraph_node::get_untransformed_body): Likewise.
36831         * varpool.c (varpool_node::remove): Likewise.
36832         (varpool_node::get_constructor): Add sanity check.
36834 2015-03-11  Sandra Loosemore  <sandra@codesourcery.com>
36836         * doc/invoke.texi (-fgnu89-inline): Remove discussion about
36837         old GCC versions.
36838         (-fabi-compat-version): Likewise.
36839         (-ffriend-injection): Likewise.
36840         (-Wdeclaration-after-statement): Likewise.
36841         (-fomit-frame-pointer): Likewise.
36842         (-ftree-coalesce-inlined-vars): Likewise.
36843         (-fvisibility=): Likewise.
36844         * doc/extend.texi (Typeof): Likewise.
36845         (Zero Length): Likewise.
36846         (Escaped Newlines): Likewise.
36847         (Compound Literals): Likewise.
36848         (Function Attributes): Likewise.
36849         (Label Attributes): Likewise.
36850         (Type Attributes): Likewise.
36851         (Function Names): Likewise.
36852         (Other Builtins): Likewise.
36853         (Function Specific Option Pragmas): Likewise.
36854         (C++ Interface): Likewise.
36856 2015-03-11  Thomas Schwinge  <thomas@codesourcery.com>
36858         * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
36860 2015-03-11  Marek Polacek  <polacek@redhat.com>
36862         PR tree-optimization/65388
36863         * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
36865 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
36867         PR target/65296
36868         * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
36869         * configure: Regenerate.
36870         * config.in: Regenerate.
36871         * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
36872         [-mn-flash]: Document it.
36873         [__AVR_ARCH__]: Document avrtiny.
36875         * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
36876         (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
36877         (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
36879 2015-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
36881         * doc/invoke.texi: Add missing cpu values (z196, zEC12).
36883 2015-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
36885         PR target/65242
36886         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
36887         allow reloads of PLUS in floating point/VSX registers.
36889 2015-03-11  Junmo Park  <junmoz.park@samsung.com>
36891         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
36892         crypto_sha256_fast.
36893         (cortex_a57_crypto_complex): Add crypto_sha256_slow.
36895 2015-03-11  Richard Biener  <rguenther@suse.de>
36897         PR tree-optimization/65310
36898         * tree-sra.c (build_ref_for_offset): Also preserve larger
36899         alignment.
36901 2015-03-11  Marat Zakirov  <m.zakirov@samsung.com>
36903         * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
36905 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
36907         PR target/65368
36908         * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
36909         new define_expand.
36910         (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
36912 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
36914         * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
36915         (sem_function::equals_wpa): ... here.
36917 2015-03-10  Marek Polacek  <polacek@redhat.com>
36918             Jakub Jelinek  <jakub@redhat.com>
36920         PR sanitizer/65367
36921         * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
36922         when only removing the statement.  Handle expanding UBSAN_OBJECT_SIZE
36923         separately.
36925 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
36927         PR target/65286
36928         * config/rs6000/t-linux: For powerpc64* target set
36929         MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
36931 2015-03-10  Richard Biener  <rguenther@suse.de>
36933         PR middle-end/44563
36934         * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
36935         for redirect_all_calls.
36937 2015-03-10  Marek Polacek  <polacek@redhat.com>
36939         * gdbinit.in (pcfun): Define and document.
36941 2015-03-10  Ilya Verbin  <ilya.verbin@intel.com>
36943         * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
36944         of libgomp-plugin.h.
36945         (find_target_compiler): Support a case when the path to gcc is
36946         specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
36947         (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
36948         intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
36949         libgomp-plugin.h.
36950         (main): Use GCC_INSTALL_NAME as target_driver_name.
36951         * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
36952         define.
36953         (mkoffload.o): Remove obsolete include path and defines.
36954         (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
36956 2015-03-10  Richard Biener  <rguenther@suse.de>
36958         PR middle-end/63155
36959         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
36960         * tree-ssa-coalesce.c: Include timevar.h.
36961         (attempt_coalesce): Handle graph being NULL.
36962         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
36963         Split out abnormal coalescing to ...
36964         (perform_abnormal_coalescing): ... this function.
36965         (coalesce_ssa_name): Perform abnormal coalescing without computing
36966         live/conflict.
36967         (verify_ssa_coalescing_worker): New function.
36968         (verify_ssa_coalescing): Likewise.
36970 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
36972         PR target/65296
36973         * config.gcc (extra_options) [avr]: Remove.
36974         (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
36975         (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
36976         (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
36978         * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
36979         (-mmcu=): Add Var and MissingArgError properties.
36980         (-march=): Remove.
36981         * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
36982         * config/avr/t-multilib: Regenerate.
36983         * config/avr/specs.h: New file.
36984         * config/avr/driver-avr.c: New file.
36985         * config/avr/genopt.sh: Remove file.
36986         * config/avr/avr-tables.opt: Remove file.
36987         * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
36988         * config/avr/avr-c.c: Same.
36989         * avr-arch.h: Same.
36990         (avr_current_device): Remove proto.
36991         * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
36992         (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
36993         (EXTRA_SPEC_FUNCTIONS): Define.
36994         (avr_devicespecs_file): New specs function proto.
36995         (DRIVER_SELF_SPECS): Use device-specs-file spec function.
36996         * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
36997         (avr_current_device): Remove definition and usage.
36998         (avr_set_core_architecture): New static function.
36999         (avr_option_override): Use it.
37000         * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
37001         (mcu_name): New static array.
37002         (comparator, avr_archs_str, avr_mcus_str): New static functions.
37003         (avr_inform_devices, avr_inform_core_architectures): New functions.
37004         * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
37005         (avrlibc.h) [WITH_AVRLIBC]: Include.
37006         (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
37007         (print_mcu): Rewrite from scratch.
37008         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
37009         Forward to avr-specific specs defined in device-specs file.
37010         * config/avr/t-avr (driver-avr.o): New rule.
37011         (avr-devices.o): Depend on avr-arch.h.
37012         (avr-mcus): No more depend on avr-tables.opt.
37013         (avr-tables.opt): Remove rule.
37014         (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
37016 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
37018         * c-family/c.opt (fchkp-use-wrappers): New.
37019         * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
37020         (chkp_wrap_function): New.
37021         (chkp_build_instrumented_fndecl): Support wrapped
37022         functions.
37023         * doc/invoke.texi (-fcheck-pointer-bounds): New.
37024         (-fchkp-check-incomplete-type): New.
37025         (-fchkp-first-field-has-own-bounds): New.
37026         (-fchkp-narrow-bounds): New.
37027         (-fchkp-narrow-to-innermost-array): New.
37028         (-fchkp-optimize): New.
37029         (-fchkp-use-fast-string-functions): New.
37030         (-fchkp-use-nochk-string-functions): New.
37031         (-fchkp-use-static-bounds): New.
37032         (-fchkp-use-static-const-bounds): New.
37033         (-fchkp-treat-zero-dynamic-size-as-infinite): New.
37034         (-fchkp-check-read): New.
37035         (-fchkp-check-write): New.
37036         (-fchkp-store-bounds): New.
37037         (-fchkp-instrument-calls): New.
37038         (-fchkp-instrument-marked-only): New.
37039         (-fchkp-use-wrappers): New.
37040         (-static-libmpx): New.
37041         (-static-libmpxwrappers): New.
37043 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
37045         * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
37046         (CHKP_SPEC): Add wrappers library.
37047         * c-family/c.opt (static-libmpxwrappers): New.
37049 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
37051         * config/i386/linux-common.h (LIBMPX_LIBS): New.
37052         (LIBMPX_SPEC): New.
37053         (CHKP_SPEC): New.
37054         * gcc.c (CHKP_SPEC): New.
37055         (LINK_COMMAND_SPEC): Add CHKP_SPEC.
37056         * c-family/c.opt (static-libmpx): New.
37058 2015-03-10  Richard Biener  <rguenther@suse.de>
37060         PR middle-end/44563
37061         * cgraph.h (struct cgraph_edge_hasher): Add hash overload
37062         for compare_type.
37063         * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
37064         (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
37065         (cgraph_add_edge_to_call_site_hash): Likewise.
37066         (cgraph_node::get_edge): Likewise.
37067         (cgraph_edge::set_call_stmt): Likewise.
37068         (cgraph_edge::remove_caller): Likewise.
37070 2015-03-10  Chung-Ju Wu  <jasonwucj@gmail.com>
37072         * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
37073         (callee_saved_gpr_regs_size): ... this.
37074         (callee_saved_regs_first_regno): Rename to ...
37075         (callee_saved_first_gpr_regno): ... this.
37076         (callee_saved_regs_last_regno) Rename to ...
37077         (callee_saved_last_gpr_regno): ... this.
37078         * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
37079         variables.
37080         (nds32_initial_elimination_offset): Likewise.
37081         (nds32_expand_prologue): Likewise.
37082         (nds32_expand_epilogue): Likewise.
37083         (nds32_expand_prologue_v3push): Likewise.
37084         (nds32_expand_epilogue_v3pop): Likewise.
37085         * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
37086         Adjust renamed variables.
37087         (nds32_output_stack_pop): Likewise.
37089 2015-03-10  Thomas Preud'homme  <thomas.preudhomme@arm.com>
37091         * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
37092         code in comment.
37094 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
37096         PR rtl-optimization/65321
37097         * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
37098         than shift mode.
37099         * var-tracking.c (use_narrower_mode): Likewise.
37101 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
37103         PR tree-optimization/65355
37104         * varasm.c (notice_global_symbol): Do not produce RTL.
37105         * symtab.c (symtab_node::can_increase_alignment_p): Check for section
37106         anchor.
37107         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
37108         check for section anchors.
37110 2015-03-10  Alan Modra  <amodra@gmail.com>
37112         PR target/65286
37113         * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
37114         to be single-arch by default.  Set cpu_is_64bit for powerpc64
37115         given --with-cpu=native.
37116         * config/rs6000/t-fprules: Do not set default MULTILIB vars.
37117         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
37118         and powerpc64le.
37119         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
37120         rs6000_isa_flags rather than TARGET_64BIT.
37122 2015-03-09  Yoshinori Sato  <ysato@users.sourceforge.jp>
37123             Kaz Kojima  <kkojima@gcc.gnu.org>
37125         * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
37127 2015-03-09  Jakub Jelinek  <jakub@redhat.com>
37129         PR lto/65361
37130         * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
37131         on a TREE_BINFO, instead use BINFO_TYPE.
37133 2015-03-09  Richard Biener  <rguenther@suse.de>
37135         PR middle-end/65270
37136         * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
37137         * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
37138         operand set OEP_ADDRESS_OF.  Clear it when recursing to non-bases
37139         of that.  When comparing dereferences compare alignment.
37140         When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
37142 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
37144         * ipa-inline-analysis.c (check_callers): Check
37145         node->can_remove_if_no_direct_calls_and_refs_p.
37146         (growth_likely_positive): Reorganize to call
37147         can_remove_if_no_direct_calls_p later.
37148         * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
37149         will_be_removed_from_program_if_no_direct_calls_p): Add
37150         will_inline parameter.
37151         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
37152         cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
37153         Handle inliner case correctly.
37155 2015-03-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
37157         PR tree-optimization/63743
37158         * cfgexpand.c (reorder_operands): Also reorder if only second operand
37159         had its definition forwarded by TER.
37161 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
37163         PR lto/65316
37164         * ipa-utils.h (types_odr_comparable): Add strict argument.
37165         * ipa-devirt.c: Fix whitespace;
37166         (odr_hasher): Remove.
37167         (odr_name_hasher, odr_vtable_hasher): New hashers.
37168         (can_be_name_hashed_p): New predicate.
37169         (hash_type_name): remove.
37170         (hash_odr_name): New.
37171         (odr_name_hasher::hash): new.
37172         (can_be_vtable_hashed_p): New.
37173         (hash_odr_vtable): New.
37174         (odr_vtable_hasher::hash): New.
37175         (types_same_for_odr): Add strict parameter.
37176         (types_odr_comparable): Likewise.
37177         (odr_name_hasher::equal): New.
37178         (odr_vtable_hasher::equal): New.
37179         (odr_name_hasher::remove): New.
37180         (odr_hash_type): Change to hash_table<odr_name_hasher>.
37181         (odr_vtable_hash_type): New.
37182         (odr_vtable_hash): New.
37183         (odr_subtypes_equivalent_p): Do strict comparsion.
37184         (add_type_duplicate): Merge type names; cleanup; avoid type
37185         duplicates.
37186         (register_odr_type): Initialize vtable hash.
37187         (build_type_inheritance_graph): Likewise
37188         (get_odr_type): Reorg to use two hashes.
37189         (dump_possible_polymorphic_call_targets): Move sanity check after debug
37190         output.
37191         (ipa_devirt): Dump type_inheritance_graph.
37192         (types_same_for_odr): Add strict mode.
37194 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
37196         PR ipa/65334
37197         * cgraph.h (symtab_node): Add definition_alignment,
37198         can_increase_alignment_p and increase_alignment.
37199         * symtab.c (symtab_node::can_increase_alignment_p,
37200         increase_alignment_1, symtab_node::increase_alignment,
37201         symtab_node::definition_alignment): New.
37202         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
37203         can_increase_alignment_p.
37204         * tree-vectorizer.c (increase_alignment): Use increase_alignment.
37205         * tree-vect-stmts.c (ensure_base_align): Likewise.
37206         * varasm.c (function_section_1): Use definition_alignment.
37207         (assemble_start_function): Likewise.
37208         (emit_local): likewise.
37209         (build_constant_desc): Likewsie.
37210         (output_constant_def_contents): Likewise.
37211         (place_block_symbol): Likewise.
37212         (output_object_block): Likewise.
37214 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
37216         PR ipa/65316
37217         * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
37218         when outputting debug.
37220 2015-03-07  Marek Polacek  <polacek@redhat.com>
37221             Martin Uecker  <uecker@eecs.berkeley.edu>
37223         PR sanitizer/65280
37224         * doc/invoke.texi: Update description of -fsanitize=bounds.
37226 2015-03-06  Wilco Dijkstra  <wilco.dijkstra@arm.com>
37228         * tree-ssa-phiopt.c (neg_replacement): Remove.
37229         (tree_ssa_phiopt_worker): Remove negate optimization.
37231 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
37233         PR ipa/65302
37234         * value-prof.c (gimple_ic): Pure dead eh edges when needed.
37236 2015-03-06  Richard Biener  <rguenther@suse.de>
37238         PR middle-end/64928
37239         * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
37240         and liveout_obstack members.
37241         (calculate_live_on_exit): Remove.
37242         (calculate_live_ranges): Change declaration.
37243         * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
37244         (new_tree_live_info): Adjust.
37245         (calculate_live_ranges): Delete livein when not wanted.
37246         (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
37247         Deal with partly deleted live info.
37248         (loe_visit_block): Remove temporary bitmap by using
37249         bitmap_ior_and_compl_into.
37250         (live_worklist): Adjust accordingly.
37251         (calculate_live_on_exit): Make static.
37252         * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
37253         we do not need livein.
37255 2015-03-06  Jonathan Wakely  <jwakely@redhat.com>
37257         * real.c (real_from_string): Fix typo in assertion.
37259 2015-03-06  Alex Velenko  <alex.velenko@arm.com>
37261         * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
37262         the patch.
37264 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
37266         * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
37268 2015-03-05  Vladimir Makarov  <vmakarov@redhat.com>
37270         PR target/64342
37271         * lra-assigns.c (find_hard_regno_for): Rename to
37272         find_hard_regno_for_1.  Add a new parameter.
37273         (find_hard_regno_for): New function using find_hard_regno_for_1.
37275 2015-03-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
37277         PR rtl-optimization/65067
37278         * expmed.c (store_bit_field, extract_bit_field): Reworked the
37279         strict volatile bitfield handling.
37281 2015-03-05  Martin Liska  <mliska@suse.cz>
37283         PR ipa/65318
37284         * ipa-icf.c (sem_variable::equals): Compare variables types.
37286 2015-03-05  Richard Henderson  <rth@redhat.com>
37288         PR target/65121
37289         * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
37290         correctly check weak symbol binding.
37292 2015-03-05  Steve Ellcey  <sellcey@imgtec.com>
37294         PR middle-end/65315
37295         * cfgexpand.c (expand_stack_vars): Update large_align to maximum
37296         needed alignment.
37298 2015-03-05  Martin Liska  <mliska@suse.cz>
37300         * ipa-inline.c (inline_small_functions): Set default value to
37301         prevent warning during bootstrap.
37302         * tree.h: Add pragma guard that ignores false positives during
37303         bootstrap.
37305 2015-03-05  Richard Biener  <rguenther@suse.de>
37307         PR tree-optimization/65310
37308         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
37309         Properly preserve alignment of the base of the access.
37311 2015-03-05  Richard Biener  <rguenther@suse.de>
37313         PR ipa/65270
37314         * ipa-icf-gimple.c (func_checker::compare_memory_operand):
37315         Compare dependence info.
37317 2015-03-05  Richard Biener  <rguenther@suse.de>
37319         PR middle-end/65233
37320         * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
37321         tree-into-ssa.h.
37322         (walk_ssa_copies): Revert last chage.  Instead do not walk
37323         SSA names registered for SSA update.
37325 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
37327         PR ipa/65270
37328         * ipa-icf.c (sem_item::compare_cgraph_references): Compare
37329         vtable references for their containing type.
37330         (sem_function::equals_wpa): Compare TYPE_RESTRICT
37331         and type attributes.
37333 2015-03-04  Eric Botcazou  <ebotcazou@adacore.com>
37335         * fold-const.c (round_up_loc): Cast divisor to signed on all paths
37336         before negating it.
37337         * stor-layout.c (finalize_record_size): Revert latest change.
37339 2015-03-04  Andreas Tobler  <andreast@gcc.gnu.org>
37341         * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
37343 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
37345         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
37346         for correct comdat handling.
37347         (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
37348         Likewise.
37349         * cgraph.h (call_for_symbol_and_aliases): Fix formating.
37350         (used_from_object_file_p_worker): Remove.
37351         (cgraph_node::only_called_directly_or_alised): Add
37352         used_from_object_file_p.
37353         * ipa-inline-analysis.c (growth_likely_positive): Optimie.
37354         * ipa-inline-transform.c (can_remove_node_now_p_1): Use
37355         can_remove_if_no_direct_calls_and_refs_p.
37357 2015-03-04  Nick Clifton  <nickc@redhat.com>
37359         * config/rl78/rl78.h (enum reg_class): Remove real registers from
37360         General register class.
37361         * config/rl78/rl78-real.md: Replace general register constraints
37362         with real+virtual register constraints.
37364 2015-03-04  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
37366         * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
37367         from checking for -mhtm option.
37369 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
37371         * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
37372         (struct ipa_sra_check_caller_data): Add has_thunk field.
37373         (ipa_sra_check_caller): Check for thunk.
37374         (ipa_sra_preliminary_function_checks): Give up on function with
37375         thunks.
37376         (ipa_early_sra): Use call_for_symbol_and_aliases.
37378 2015-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>
37380         PR target/65249
37381         * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
37382         called for __stack_chk_guard symbol.
37384 2015-03-03  DJ Delorie  <dj@redhat.com>
37386         * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
37387         inc/dec.
37388         (*addhi3_real): Likewise.
37389         * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
37390         pattern to match incrementing memory.
37391         * config/rl78/predicates.md (rl78_1_2_operand): New.
37392         * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
37393         it's the same and only mem.
37394         (rl78_alloc_physical_registers_op2): If there's effectively only
37395         one MEM, transcode it into HL.
37396         (rl78_far_p): Reject addresses that aren't legitimate.
37398 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
37400         * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
37401         negating it.
37403         * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
37405 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
37407         Implement call0 ABI for xtensa
37408         * config/xtensa/constraints.md ("a" constraint): Include stack
37409         pointer in case of call0 ABI.
37410         ("q" constraint): Make empty in case of call0 ABI.
37411         ("D" constraint): Include stack pointer in case of call0 ABI.
37412         * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
37413         xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
37414         prototypes.
37415         * config/xtensa/xtensa.c (xtensa_callee_save_size): New
37416         variable.
37417         (xtensa_regno_to_class): Make it a local variable in the
37418         function xtensa_regno_to_class.
37419         (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
37420         macro, function prototype and implementation.
37421         (reg_nonleaf_alloc_order): Make it a local variable in the
37422         function order_regs_for_local_alloc.
37423         (xtensa_conditional_register_usage): New function.
37424         (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
37425         (xtensa_valid_move): Allow direct moves to stack pointer
37426         register in call0 ABI.
37427         (xtensa_setup_frame_addresses): Only spill register windows in
37428         windowed ABI.
37429         (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
37430         call0 ABI respectively.
37431         (xtensa_function_arg_1): Only mark a7 register for copying in
37432         windowed ABI.
37433         (xtensa_call_save_reg): New function.
37434         (compute_frame_size): Add space for callee saved register
37435         storage to the frame size in call0 ABI.
37436         (xtensa_expand_prologue): Generate code to set up stack frame
37437         and save callee-saved registers in call0 ABI.
37438         (xtensa_expand_epilogue): New function.
37439         (xtensa_set_return_address): New function.
37440         (xtensa_return_addr): Calculate return address in call0 ABI.
37441         (xtensa_builtin_saveregs): Only mark a7 register for copying and
37442         emit copying code in windowed ABI.
37443         (order_regs_for_local_alloc): Add preferred register allocation
37444         order for non-leaf function in call0 ABI.
37445         (xtensa_static_chain): Add atatic chain passing for call0 ABI.
37446         (xtensa_asm_trampoline_template): Add trampoline generation for
37447         call0 ABI.
37448         (xtensa_trampoline_init): Add trampoline initialization for
37449         call0 ABI.
37450         (xtensa_conditional_register_usage, xtensa_regno_to_class): New
37451         functions.
37452         * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
37453         (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
37454         (CALL_USED_REGISTERS): Modify to encode both windowed and call0
37455         ABI call-used registers.
37456         (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
37457         (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
37458         call0 ABI.
37459         (REG_CLASS_CONTENTS): Include all registers into the preferred
37460         reload registers set, adjust the set in the
37461         xtensa_conditional_register_usage.
37462         (xtensa_regno_to_class): Drop variable declaration.
37463         (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
37464         function.
37465         (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
37466         respectively.
37467         (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
37468         (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
37469         (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
37470         (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
37471         location in call0 ABI.
37472         (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
37473         stack adjustment size when handling exception.
37474         (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
37475         * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
37476         definitions.
37477         ("return" pattern): Generate ret.n/ret in call0 ABI.
37478         ("epilogue" pattern): Expand epilogue.
37479         ("nonlocal_goto" pattern): Use default in call0 ABI.
37480         ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
37481         emit eh_set_a0_* depending on ABI.
37482         ("eh_set_a0_windowed" pattern): Former eh_return pattern.
37483         ("eh_set_a0_call0", "blockage"): New patterns.
37485 2015-03-03  Martin Liska  <mliska@suse.cz>
37487         PR ipa/65287
37488         * ipa-icf.c (sem_variable::parse): Skip all alias variables.
37490 2015-03-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
37492         PR 65138/target
37493         * config/rs6000/rs6000-tables.opt: Regenerate table.
37495 2015-03-03  Renlin Li  <renlin.li@arm.com>
37497         * doc/md.texi (@item ^): Change ? into ^.
37499 2015-03-03  H.J. Lu  <hongjiu.lu@intel.com>
37501         * doc/tm.texi: Regenerated.
37503 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
37505         * builtins.c (expand_builtin_return_addr): Add
37506         RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
37507         surrounding #ifdef.
37508         * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
37509         definition to 1.
37510         * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
37511         Likewise.
37512         * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
37513         undefined.
37514         * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
37515         paragraph.
37517 2015-03-03  Martin Jambor  <mjambor@suse.cz>
37518             Eric Botcazou  <ebotcazou@adacore.com>
37520         * tree-sra.c (ipa_sra_check_caller_data): New type.
37521         (has_caller_p): Removed.
37522         (ipa_sra_check_caller): New function.
37523         (ipa_sra_preliminary_function_checks): Use it.
37525 2015-03-03  Martin Liska  <mliska@suse.cz>
37527         * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
37528         instead of if branch.
37530 2015-03-03  Martin Liska  <mliska@suse.cz>
37532         PR ipa/65282
37533         * ipa-icf.c (sem_variable::equals): Fix wrong condition.
37535 2015-03-23  Jeff Law  <law@redhat.com>
37537         PR tree-optimization/65241
37538         * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
37539         hash table if INSERT is true.
37541 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
37543         PR target/65296
37544         * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
37546 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
37548         PR target/64331
37549         * config/avr/avr.c (context.h, tree-pass.h): Include them.
37550         (avr_pass_data_recompute_notes): New static variable.
37551         (avr_pass_recompute_notes): New class.
37552         (avr_register_passes): New static function.
37553         (avr_option_override): Call it.
37555 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
37557         Fix various problems with specs file generation.
37559         PR target/65296
37560         * config.gcc (extra_gcc_objs) [avr]: Remove.
37561         * config/avr/driver-avr.c: Remove file.
37562         * config/avr/t-avr (driver-avr.o): Remove rule.
37563         (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
37564         INCLUDES to build.  Depend on TM_H.
37565         * config/avr/gen-avr-mmcu-specs.c: Tidy up code.  Fix various
37566         build warnings.  Fix non-matching types and non-existing %-codes.
37567         (tm.h): Include.
37568         (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
37569         (*libgcc) [WITH_AVRLIBC]: Add "-lm".
37570         * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
37571         * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
37572         (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
37573         (LIBGCC_SPEC): Remove definitions.
37575 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
37577         * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
37578         to create a register in testing mode.
37580 2015-03-03  Martin Liska  <mliska@suse.cz>
37581             Jan Hubicka  <hubicka@ucw.cz>
37583         PR ipa/65263
37584         * cgraph.c (cgraph_node::has_thunk_p): New function.
37585         * cgraph.h (cgraph_node::has_thunk_p: Likewise.
37586         * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
37587         (sem_function::merge): Assert is changed.
37589 2015-03-03  Martin Liska  <mliska@suse.cz>
37590             Martin Jambor  <mjambor@suse.cz>
37592         PR ipa/65087
37593         * ipa-icf.c (sem_item_optimizer::execute): Change function
37594         return value to boolean.
37595         (sem_item_optimizer::merge_classes): Likewise.
37596         (ipa_icf_driver): Return TODO_remove_functions in case there's
37597         a merge operation processed.
37598         * ipa-icf.h: Change function return value to boolean.
37600 2015-03-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
37602         PR 65138/target
37603         * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
37604         processor type for 64-bit little endian PowerPC.
37606         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
37607         -mdebug=reg, print TARGET_DEFAULT.  Fix logic to use
37608         TARGET_DEFAULT if there is no default cpu.  Fix -mdebug=reg
37609         printing built-in mask so it does not pass NULL pointers.
37611         * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
37612         -mcpu=powerpc64le.
37614 2015-03-02  Steve Ellcey  <sellcey@imgtec.com>
37616         PR target/58158
37617         * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
37618         !ISA_HAS_FP_CONDMOVE.
37620 2015-03-02  Aldy Hernandez  <aldyh@redhat.com>
37622         * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
37623         reload_completed.
37625 2015-03-02  Ulrich Drepper  <drepper@gmail.com>
37627         * doc/invoke.texi (Options for Code Generation Conventions):
37628         Fix URL of DSO paper.
37630 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
37632         PR ipa/65130
37633         * ipa-inline.c (check_callers): Looks for recursion.
37634         (inline_to_all_callers): Give up on uninlinable or recursive edges.
37635         * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
37636         summary of inline clones.
37637         (do_estimate_growth_1): Fix recursion check.
37639 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
37641         PR ipa/64988
37642         * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
37643         comdat groups.
37645 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
37646             Aldy Hernandez  <aldyh@redhat.com>
37648         PR lto/65276
37649         * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
37650         when checking TYPE_BINFO.
37652 2015-03-02  Richard Biener  <rguenther@suse.de>
37654         PR ipa/65270
37655         * ipa-icf-gimple.c: Include builtins.h.
37656         (func_checker::compare_memory_operand): Compare base alignment.
37658 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
37660         PR target/65184
37661         * config/i386/i386.c (ix86_pass_by_reference): Bounds are never
37662         passed by reference.
37664 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
37666         PR target/65183
37667         * tree-chkp.c (chkp_check_lower): Don't check against
37668         zero bounds for already instrumented functions.
37669         (chkp_check_upper): Likewise.
37670         (chkp_fini): Clean pass local data to avoid wrong reusage.
37672 2015-02-28  Martin Liska  <mliska@suse.cz>
37673             Jan Hubicka  <hubicka@ucw.cz>
37675         * ipa-icf.c (sem_variable::equals): Improve debug output;
37676         get variable constructor.
37677         (sem_variable::parse): Do not filter out too early; give up on
37678         volatile and register vars.
37679         (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
37680         variables.
37681         * ipa-icf.h (sem_variable::init): Do not set ctor.
37682         (sem_variable::ctor): Remove.
37684 2015-03-01  Aldy Hernandez  <aldyh@redhat.com>
37686         PR middle-end/65233
37687         * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
37689 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
37691         * ipa-icf.c: Include stor-layout.h
37692         (sem_function::compare_cgraph_references): Rename to ...
37693         (sem_item::compare_cgraph_references): ... this one.
37694         (sem_variable::equals_wpa): New function
37695         (sem_variable::equals): Do not check stuff already verified by
37696         equals_wpa.
37697         (sem_variable::equals): Reorg based on varasm.c:compare_constant.
37698         * ipa-icf.h (sem_item): Add compare_cgraph_references.
37699         (sem_function): Remove compare_cgraph_references.
37700         (sem_variable): Turns equals_wpa into non-inline.
37702 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
37704         * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
37705         (sem_item::add_expr): New function.
37706         (sem_function::hash_stmt): Handle operands of most statements.
37707         (sem_variable::get_hash): Hash the actual constructor.
37708         * ipa-icf.h (sem_item): Add add_expr.
37709         (sem_function): Update prototype of hash_stmt
37711 2015-02-28  Martin Liska  <mliska@suse.cz>
37712             Jan Hubicka  <hubicka@ucw.cz>
37714         PR ipa/65245
37715         * ipa-icf-gimple.c (func_checker::compare_function_decl):
37716         Remove.
37717         (func_checker::compare_variable_decl): Skip symtab vars.
37718         (func_checker::compare_cst_or_decl): Update.
37719         * ipa-icf.c (sem_function::parse): Do not consider aliases.
37720         (sem_function::compare_cgraph_references): Add ADDRESS parameter;
37721         use correct symtab predicates.
37722         (sem_function::equals_wpa): Update uses of compare_cgraph_references.
37723         (sem_variable::parse):  Update comment.
37724         (sem_item_optimizer::build_graph): Consider ultimate aliases
37725         for references.
37727 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
37729         * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
37730         of OBJ_TYPE_REF.
37732 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
37734         * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
37735         (sem_variable::merge) Likewise.
37737 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
37739         * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
37740         target; also match flag_ipa_devirt.
37742 2015-03-01  Martin Liska  <mliska@suse.cz>
37743             Jan Hubicka  <hubicka@ucw.cz>
37745         * ipa-icf-gimple.c (func_checker::compare_variable_decl):
37746         Validate variable alignment.
37747         * ipa-icf.c (sem_function::equals_private): Be more precise
37748         about non-common function attributes.
37749         (sem_variable::equals): Likewise.
37751 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
37753         PR ipa/65237
37754         * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
37755         across COMDAT group boundary.
37757 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
37759         PR ipa/65232
37760         * ipa-icf.c (clear_decl_rtl): New function.
37761         (sem_function::merge): Clear RTL before forming alias.
37762         (sem_variable::merge): Clear RTL before forming alias.
37764 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
37766         PR ipa/65236
37767         * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
37769 2015-02-28  Xingxing Pan  <xxingpan@marvell.com>
37771         * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
37772         to neon_to_gp<q>.
37774 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
37776         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
37777         a typo in the description.
37779 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
37781         PR target/64317
37782         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
37783         * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
37784         * lra-constraints.c: Include "params.h".
37785         (EBB_PROBABILITY_CUTOFF): Use
37786         LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
37787         (lra_inheritance): Use '<' instead of '<=' for
37788         EBB_PROBABILITY_CUTOFF.
37789         * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
37790         Document change.
37792 2015-02-27  Martin Liska  <mliska@suse.cz>
37794         * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
37795         vector length condition.
37797 2015-02-27  Sandra Loosemore  <sandra@codesourcery.com>
37799         * doc/extend.texi (x86 transactional memory intrinsics):
37800         Reorganize discussion of _xbegin.  Clarify that the return
37801         value is a bit mask.  Expand example and move to end of section.
37803 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
37804             Aldy Hernandez  <aldyh@redhat.com>
37806         PR rtl-optimization/65220
37807         * config/i386/i386.md (*udivmod<mode>4_pow2): New.
37809 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
37811         PR target/65032
37812         * lra-remat.c (update_scratch_ops): New.
37813         (do_remat): Call it.
37814         * lra.c (lra_register_new_scratch_op): New. Take code from ...
37815         (remove_scratches): ... here.
37816         * lra-int.h (lra_register_new_scratch_op): New prototype.
37818 2015-02-27  Marek Polacek  <polacek@redhat.com>
37820         PR c/65040
37821         * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
37822         -Wformat-signedness anymore.
37824 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
37826         * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
37827         function.
37828         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
37830 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
37832         * config/s390/s390.c (enum s390_builtin):
37833         Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
37834         (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
37835         (s390_init_builtins): Generate new builtin functions.
37836         * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
37837         (s390_sfpc, s390_efpc): New pattern definitions.
37839 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
37841         * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
37842         Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
37843         (s390_builtin_decls): New array.
37844         (s390_init_builtins): Put builtin decls into s390_builtin_decls.
37845         (s390_builtin_decl): New function.
37846         (TARGET_BUILTIN_DECL): Define macro.
37848 2015-02-27  Richard Biener  <rguenther@suse.de>
37850         PR middle-end/63175
37851         * builtins.c (get_object_alignment_2): Make sure to re-apply
37852         the ANDed mask after recursing to its operand gets us a new
37853         misalignment bit position.
37855 2015-02-26  Jan Hubicka  <hubicka@ucw.cz>
37856             Martin Liska  <mliska@suse.cz>
37858         PR bootstrap/65150
37859         * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
37860         Use address_matters_p.
37861         (redirect_all_callers, set_addressable): New functions.
37862         (sem_function::merge): Reorganize and fix merging issues.
37863         (sem_variable::merge): Likewise.
37864         (sem_variable::compare_sections): Remove.
37865         * common.opt (fmerge-all-constants, fmerge-constants): Remove
37866         Optimization flag.
37867         * symtab.c (symtab_node::resolve_alias): When alias has aliases,
37868         redirect them.
37869         (symtab_node::make_decl_local): Set ADDRESSABLE bit when
37870         decl is used.
37871         (address_matters_1): New function.
37872         (symtab_node::address_matters_p): New function.
37873         * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
37874         check for merged flag.
37875         * cgraph.h (address_matters_p): Declare.
37876         (symtab_node::address_taken_from_non_vtable_p): Remove.
37877         (symtab_node::address_can_be_compared_p): New method.
37878         (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
37879         * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
37880         Remove.
37881         (comdat_can_be_unshared_p_1) Use address_matters_p.
37882         (update_vtable_references): Fix formating.
37883         * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
37884         * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
37885         * cgraphclones.c: Preserve merged and icf_merged flags.
37887 2015-02-26  Sandra Loosemore  <sandra@codesourcery.com>
37889         * doc/extend.texi (Function Attributes): Fix spelling and typos.
37890         (Label Attributes): Likewise.
37891         (Cilk Plus Builtins): Likewise.
37892         (ARC SIMD Built-in Functions): Likewise.
37893         (ARM C Language Extensions (ACLE)): Likewise.
37894         (PowerPC Built-in Functions): Likewise.
37895         (PowerPC Hardware Transactional Memory Built-in Functions):
37896         Likewise.
37898 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
37900         PR tree-optimization/65216
37901         * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
37902         new stmt and new SSA_NAME for lhs whenever the arguments have
37903         changed and weren't just swapped.  Fix comment typo.
37905         PR tree-optimization/65215
37906         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
37907         for PDP endian targets.
37908         (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
37909         Fix up formatting issues.
37910         (bswap_replace): Likewise.  For BYTES_BIG_ENDIAN, if the final access
37911         size is smaller than the original, adjust MEM_REF offset by the
37912         difference of sizes.  Use is_gimple_mem_ref_addr instead of
37913         is_gimple_min_invariant test to avoid adding address temporaries.
37915 2015-02-26  Martin Liska  <mliska@suse.cz>
37916             Jan Hubicka  <hubicka@ucw.cz>
37918         PR ipa/64693
37919         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
37920         (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
37921         (sem_item_optimizer::process_cong_reduction): Include division by
37922         sensitive references.
37923         * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
37924         * ipa-ref.c (ipa_ref::address_matters_p): New function.
37925         * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
37927 2015-02-26  Georg-Johann Lay  <avr@gjlay.de>
37929         PR target/65192
37930         * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
37931         Remove.
37932         * config/avr/avr.c: Same.
37933         (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
37934         Refuse any constant address not in 0..0xbf.
37935         * config/avr/avr.md (*mov<mode>, *movsf): Remove
37936         tiny_valid_direct_memory_access_range from insn conditions.
37937         (mov<mode>): Don't special-case expansion of avrtiny addresses.
37939 2015-02-26  Oleg Endo  <olegendo@gcc.gnu.org>
37941         PR target/61142
37942         * config/sh/sh.c (sh_check_add_incdec_notes): New function.
37943         * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
37944         * config/sh/predicates.md (const_logical_operand): New predicate.
37945         * config/sh/sh.md: Add new peephole2 patterns.
37947 2015-02-26  Marek Polacek  <polacek@redhat.com>
37949         PR ipa/65008
37950         * ipa-inline.c (early_inliner): Recompute inline parameters.
37952 2015-02-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
37954         PR target/65171
37955         * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
37956         instructions with TImode operands are included in the analysis.
37958 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
37960         * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
37961         of an EDGE_FSM_THREAD.
37963 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
37965         * config/rs6000/htm.md (tcheck): Fix assembly encoding.
37967 2015-02-25  Aldy Hernandez  <aldyh@redhat.com>
37969         PR debug/46102
37970         * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
37972 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
37974         PR tree-optimization/65048
37975         * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
37976         (thread_through_all_blocks): Call valid_jump_thread_path.
37977         Remove invalid FSM jump-thread paths.
37979 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
37981         * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
37982         (ipa_write_optimization_summaries): Likewise.
37983         * tree-streamer.h: Include data-streamer.h.
37984         (streamer_mode_table): Declare extern variable.
37985         (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
37986         * lto-streamer-out.c (lto_output_init_mode_table,
37987         lto_write_mode_table): New functions.
37988         (produce_asm_for_decls): Call lto_write_mode_table when streaming
37989         offloading LTO.
37990         * lto-section-in.c (lto_section_name): Add "mode_table" entry.
37991         (lto_create_simple_input_block): Add mode_table argument to the
37992         lto_input_block constructors.
37993         * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
37994         Likewise.
37995         * data-streamer-in.c (string_for_index): Likewise.
37996         * ipa-inline-analysis.c (inline_read_section): Likewise.
37997         * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
37998         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
37999         * lto-streamer-in.c (lto_read_body_or_constructor,
38000         lto_input_toplevel_asms): Likewise.
38001         (lto_input_mode_table): New function.
38002         * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
38003         pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
38004         Use bp_pack_machine_mode.
38005         * real.h (struct real_format): Add name field.
38006         * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
38007         (class lto_input_block): Add mode_table member.
38008         (lto_input_block::lto_input_block): Add mode_table_ argument,
38009         initialize mode_table.
38010         (struct lto_file_decl_data): Add mode_table field.
38011         (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
38012         * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
38013         unpack_ts_decl_common_value_fields,
38014         unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
38015         * tree-streamer.c (streamer_mode_table): New variable.
38016         * real.c (ieee_single_format, mips_single_format,
38017         motorola_single_format, spu_single_format, ieee_double_format,
38018         mips_double_format, motorola_double_format,
38019         ieee_extended_motorola_format, ieee_extended_intel_96_format,
38020         ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
38021         ibm_extended_format, mips_extended_format, ieee_quad_format,
38022         mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
38023         decimal_single_format, decimal_double_format, decimal_quad_format,
38024         ieee_half_format, arm_half_format, real_internal_format): Add name
38025         field.
38026         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
38028 2015-02-26  Yuri Rumyantsev  <ysrumyan@gmail.com>
38030         PR target/65161
38031         * config/i386/i386.c (ix86_sched_reorder): Skip instruction
38032         reordering for selective scheduling.
38034 2015-02-26  Terry Guo  <terry.guo@arm.com>
38036         * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
38037         * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
38038         (arm_arch_no_volatile_ce): Declare new global variable.
38039         * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
38040         (arm_option_override): Assign value to arm_arch_no_volatile_ce.
38041         * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
38042         (TARGET_NO_VOLATILE_CE): New macro.
38043         * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
38044         volatile memory access in IT block
38046 2015-02-25  Kai Tietz  <ktietz@redhat.com>
38048         PR tree-optimization/61917
38049         * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
38050         that reduc_def_stmt is null.
38052 2015-02-25  Martin Liska  <mliska@suse.cz>
38054         * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
38055         hard register variables.
38057 2015-02-25  Kai Tietz  <ktietz@redhat.com>
38059         PR target/64212
38060         * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
38061         (symtab::noninterposable_alias): Likewise.
38063 2015-02-25  Ilya Enkovich  <ilya.enkovich@intel.com>
38065         PR target/65167
38066         * config/i386/i386.c (ix86_function_arg_regno_p): Support
38067         bounds registers.
38068         (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
38070 2015-02-25  Alan Lawrence  <alan.lawrence@arm.com>
38072         PR target/64997
38073         * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
38074         as split condition; force split via '#' in output pattern.
38076 2015-02-25  Richard Biener  <rguenther@suse.de>
38077             Kai Tietz  <ktietz@redhat.com>
38079         PR tree-optimization/61917
38080         * tree-vect-loop.c (vectorizable_reduction): Allow
38081         vect_internal_def without reduction to exit graceful.
38083 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
38085         PR target/65196
38086         * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
38087         only with NONDEBUG_INSN_P.
38089 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
38091         Use variadic macros with avr-log.c.
38093         * config/avr/avr-protos.h (avr_vdump): New prototype.
38094         (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
38095         (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
38096         * config/avr/avr-log.c: Adjust comments.
38097         (avr_vdump): New function.
38098         (avr_vadump): Pass caller as 2nd argument instead of format string.
38099         (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
38100         (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
38102 2015-02-25  Jakub Jelinek  <jakub@redhat.com>
38104         PR lto/64374
38105         * target.def (target_option_stream_in): New target hook.
38106         * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
38107         targetm.target_option.post_stream_in if non-NULL.
38108         * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
38109         * doc/tm.texi: Updated.
38110         * config/i386/i386.c (ix86_function_specific_post_stream_in): New
38111         function.
38112         (TARGET_OPTION_POST_STREAM_IN): Redefine.
38114 2015-02-24  Jeff Law  <law@redhat.com>
38116         PR target/65117
38117         * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
38118         of operand 0 and operand 2.
38119         (zero_cost_loop_end, loop_end): Similarly.
38121 2015-02-24  Aldy Hernandez  <aldyh@redhat.com>
38123         * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
38124         CXX_MEM_STAT_INFO.
38126 2015-02-24  DJ Delorie  <dj@redhat.com>
38128         * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
38129         * config/rl78/rl78-expand.md (movsf): New, same as movsi.
38130         * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
38131         instead of hardcoding SImode.
38133 2015-02-24  Bernd Schmidt  <bernds@codesourcery.com>
38135         * omp-low.c (create_omp_child_function): Tag entrypoint
38136         functions with a special attribute.
38138 2015-02-24  Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
38140         PR target/65058
38141         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
38143 2015-02-24  Vladimir Makarov  <vmakarov@redhat.com>
38145         PR rtl-optimization/65123
38146         * lra-remat.c (operand_to_remat): Check hard regs in insn
38147         definition too.
38149 2015-02-24  Nick Clifton  <nickc@redhat.com>
38151         * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
38152         to the assembler.
38154 2015-02-24  Thomas Schwinge  <thomas@codesourcery.com>
38156         PR libgomp/64625
38157         * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
38158         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
38159         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
38160         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
38161         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
38162         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
38163         (BUILT_IN_GOACC_PARALLEL): Specify as
38164         BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
38165         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
38166         * builtin-types.def
38167         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
38168         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
38169         Remove function types.
38170         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
38171         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
38172         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
38173         New function types.
38175 2015-02-24  Georg-Johann Lay  <avr@gjlay.de>
38177         * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
38179 2015-02-24  Jakub Jelinek  <jakub@redhat.com>
38181         PR tree-optimization/65170
38182         * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
38183         if val[1] < 0, clear also val[2] and return 3.
38185 2015-02-24  Alan Modra  <amodra@gmail.com>
38187         PR target/65172
38188         * config/rs6000/rs6000.c (get_memref_parts): Only return true
38189         when *base is a reg.  Handle nested plus addresses.  Simplify
38190         pre_modify test.
38192 2015-02-22  Max Filippov  <jcmvbkbc@gmail.com>
38194         * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
38195         use natural alignment when optimizing for size.
38197 2015-02-23  Kaz Kojima  <kkojima@gcc.gnu.org>
38199         PR target/65153
38200         * config/sh/sh.md (movsicc_true+3): Remove peephole.
38201         * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
38202         * config/sh/sh.c (replace_n_hard_rtx): Remove.
38204 2015-02-23  Richard Sandiford  <richard.sandiford@arm.com>
38206         PR fortran/63427
38207         * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
38208         too big for a wide_int.  Implement missing wrapping operation.
38210 2015-02-23  Oleg Endo  <olegendo@gcc.gnu.org>
38212         PR target/65163
38213         * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
38214         instead of const_int 4294901760.
38216 2015-02-23  Georg-Johann Lay  <avr@gjlay.de>
38218         * config/avr/t-avr: Fix typo in comment.
38220 2015-02-21  Richard Sandiford  <richard.sandiford@arm.com>
38222         * doc/rtl.texi (fma): Clarify documentation.
38224 2015-02-20  Aldy Hernandez  <aldyh@redhat.com>
38226         PR debug/58123
38227         * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
38228         over input_location.
38230 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
38232         * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
38233         unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
38234         restrict alignments to absolute_biggest_alignment.
38235         * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
38236         Define.
38237         * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
38238         * doc/tm.texi: Regenerate.
38239         * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
38241 2015-02-20  Vladimir Makarov  <vmakarov@redhat.com>
38243         PR target/64172
38244         * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
38246 2015-02-20  Richard Biener  <rguenther@suse.de>
38248         PR tree-optimization/65136
38249         * tree-ssa-propagate.c: Include cfgloop.h.
38250         (replace_phi_args_in): Avoid replacing loop latch edge PHI
38251         arguments with constants.
38253 2015-02-20  Jakub Jelinek  <jakub@redhat.com>
38254             Martin Liska  <mliska@suse.cz>
38256         PR target/63892
38257         * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
38258         don't try to create_thunk if stdarg_p.  If
38259         !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
38260         redirect_callers if possible.
38261         (sem_item_optimizer::execute): Call unregister_hooks here...
38262         (ipa_icf_driver): ... instead of here.
38264 2015-02-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
38266         * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
38267         Mark operand 0 as earlyclobber in 2nd alternative.
38268         (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
38269         Write negated shift amount into QI lowpart operand 0 and use it
38270         in the shift step.
38271         (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
38273 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
38275         * cgraph.h (clone_function_name_1): Declare.
38276         * cgraphclones.c (clone_function_name_1): New function.
38277         (clone_function_name): Use it.
38278         * lto-partition.c: Include "stringpool.h".
38279         (must_not_rename, maybe_rewrite_identifier)
38280         (validize_symbol_for_target): New static functions.
38281         (privatize_symbol_name): Use must_not_rename.
38282         (promote_symbol): Call validize_symbol_for_target.
38283         (lto_promote_cross_file_statics): Likewise.
38284         (lto_promote_statics_nonwpa): Likewise.
38286 2015-02-20  Georg-Johann Lay  <avr@gjlay.de>
38288         PR target/64452
38289         * config/avr/avr.md (pushhi_insn): New insn.
38290         (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
38292 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
38293             Jakub Jelinek  <jakub@redhat.com>
38295         * tree-streamer.c (preload_common_nodes): Don't preload
38296         TI_VA_LIST* for offloading.
38297         * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
38298         in_lto_p.
38300 2015-02-19  John David Anglin  <danlgin@gcc.gnu.org>
38302         * config/pa/pa.c (pa_emit_move_sequence): Always force
38303         (const (plus (symbol) (const_int))) to const mem.  Put REG_EQUAL
38304         note on insn.
38306         * config/pa/pa.c (pa_reloc_rw_mask): New function.
38307         (TARGET_ASM_RELOC_RW_MASK): Define.
38308         (pa_cannot_force_const_mem): Revert previous change.
38310 2015-02-19  Martin Jambor  <mjmabor@suse.cz>
38311             Jan Hubicka  <hubicka@ucw.cz>
38313         PR ipa/65028
38314         * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
38315         across jump functions.
38317 2015-02-19  Uros Bizjak  <ubizjak@gmail.com>
38319         * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
38321 2015-02-19  Sandra Loosemore  <sandra@codesourcery.com>
38323         * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
38325 2015-02-19  Richard Henderson  <rth@redhat.com>
38327         PR middle-end/65074
38328         * varasm.c (default_binds_local_p_2): Don't test node->definition;
38329         test DECL_EXTERNAL independent of symtab_node.
38331 2015-02-19  Jakub Jelinek  <jakub@redhat.com>
38333         PR lto/65012
38334         * varpool.c (varpool_node::get_constructor): Return early
38335         if this->lto_file_data is NULL.
38337 2015-02-19  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
38339         * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
38340         (rank_for_schedule_debug): Update.
38341         (ready_sort): Make static.  Move sorting logic to ...
38342         (ready_sort_debug, ready_sort_real): New static functions.
38343         (schedule_block): Sort both debug insns and real insns in preparation
38344         for ready list trimming.  Improve debug output.
38345         * sched-int.h (ready_sort): Remove global declaration.
38347 2015-02-18  Trevor Saunders  <tsaunders@mozilla.com>
38349         * ipa-icf.c (sem_function::equals_private): Adjust.
38350         (sem_function::bb_dict_test): Take a vec<int> * instead of
38351         auto_vec<int>.
38352         * ipa-icf.h (bb_dict_test): Likewise.
38354 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
38356         PR gcov-profile/64634
38357         * tree-eh.c (frob_into_branch_around): Fix up typos
38358         in function comment.
38359         (lower_catch): Put eh_seq resulting from EH lowering of
38360         the cleanup sequence after the cleanup rather than before it.
38362 2015-02-18  Tom de Vries  <tom@codesourcery.com>
38364         * common.opt (fstdarg-opt): New option.
38365         * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
38366         * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
38367         (@item -fstdarg-opt): New item.
38369 2015-02-18  H.J. Lu  <hongjiu.lu@intel.com>
38371         PR target/65064
38372         * config/ia64/predicates.md (sdata_symbolic_operand): Return false
38373         for common symbols.
38375 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
38377         * config/i386/t-intelmic (mkoffload.o): Remove dependency on
38378         insn-modes.h.
38379         (ALL_HOST_OBJS): Add mkoffload.o.
38380         * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
38382 2015-02-18  Jan Hubicka  <hubicka@ucw.cz>
38384         * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
38385         (compare_virtual_tables): Be smarter about skipping typeinfos;
38386         do sane output on virtual table table mismatch.
38387         (warn_odr): Be ready for forward declarations of enums;
38388         output sane info on base mismatch and virtual table mismatch.
38389         (add_type_duplicate): Fix code choosing prevailing type; do not ICE
38390         when only one type is polymorphic.
38391         (get_odr_type): Fix hashtable corruption.
38392         (dump_odr_type): Dump mangled names.
38394 2015-02-18  Richard Biener  <rguenther@suse.de>
38396         PR tree-optimization/65063
38397         * tree-predcom.c (determine_unroll_factor): Return 1 if we
38398         have replaced looparound PHIs.
38400 2015-02-18  Martin Liska  <mliska@suse.cz>
38402         * lto-streamer.c (lto_streamer_init): Encapsulate
38403         streamer_check_handled_ts_structures with checking macro.
38405 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
38407         PR ipa/65087
38408         * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
38409         section if !implicit_section.
38410         (cgraph_node::create_version_clone_with_body): Likewise.
38411         * trans-mem.c (ipa_tm_create_version): Likewise.
38413 2015-02-18  Richard Biener  <rguenther@suse.de>
38415         PR tree-optimization/62217
38416         * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
38417         into BIVs.
38419 2015-02-18  Marek Polacek  <polacek@redhat.com>
38421         PR sanitizer/65081
38422         * ubsan.c (OBJSZ_MAX_OFFSET): Define.
38423         (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
38424         is in range [-16K, -1].  Don't issue run-time error if
38425         (ptr > ptr + offset).
38427 2015-02-18  Thomas Schwinge  <thomas@codesourcery.com>
38429         * doc/install.texi (nvptx-*-none): New section.
38430         * doc/invoke.texi (Nvidia PTX Options): Likewise.
38431         * config/nvptx/nvptx.opt: Update.
38433         * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
38434         (access_check): New functions, copied from
38435         config/i386/intelmic-mkoffload.c.
38436         (main): For non-installed testing, look in all COMPILER_PATHs for
38437         GCC_INSTALL_NAME.
38439         * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
38441 2015-02-18  Andrew Pinski  <apinski@cavium.com>
38442             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
38444         * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
38445         Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
38447 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
38449         * ipa-visibility.c (function_and_variable_visibility): Only
38450         check locality if node is not already local.
38451         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
38452         call_for_symbol_and_aliases instead of
38453         call_for_symbol_thunks_and_aliases.
38454         (ipa_inline): Likewise.
38455         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
38456         first walk aliases.
38457         * ipa.c (symbol_table::remove_unreachable_nodes): Use
38458         call_for_symbol_and_aliases.
38459         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
38460         (ipa_propagate_frequency_1): Use it; use opt_for_fn
38461         (ipa_propagate_frequency): Update.
38462         (ipa_profile): Add opt_for_fn gueards.
38464 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
38466         * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
38467         * doc/invoke.texi (SH options): Document it.
38468         * config/sh/sh.c (sh_insn_length_adjustment): Check
38469         TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
38471 2015-02-17  H.J. Lu  <hongjiu.lu@intel.com>
38473         * common.opt (fipa-cp-alignment): New.
38474         * ipa-cp.c (ipcp_store_alignment_results): Check
38475         flag_ipa_cp_alignment.
38476         * opts.c (default_options_table): Enable -fipa-cp-alignment for
38477         -O2.
38478         (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
38479         * doc/invoke.texi: Document -fipa-cp-alignment.
38481 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
38483         PR target/64793
38484         * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
38485         to nil.  Adjust comments.
38487 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
38489         * ipa-visibility.c (function_and_variable_visibility): Only
38490         check locality if node is not already local.
38491         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
38492         call_for_symbol_and_aliases instead of
38493         call_for_symbol_thunks_and_aliases.
38494         (ipa_inline): Likewise.
38495         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
38496         first walk aliases.
38497         * ipa.c (symbol_table::remove_unreachable_nodes): Use
38498         call_for_symbol_and_aliases.
38499         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
38500         (ipa_propagate_frequency_1): Use it; use opt_for_fn
38501         (ipa_propagate_frequency): Update.
38502         (ipa_profile): Add opt_for_fn guards.
38504 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
38506         * config/nvptx/mkoffload.c (parse_file): Fix logic error in
38507         skipping of "strange" tokens.
38509 2015-02-17  Jeff Law  <law@redhat.com>
38511         * tree-vrp.c (identify_jump_threads): Use last_stmt.  Remove
38512         obsolete comment.
38514 2015-02-17  James Greenhalgh  <james.greenhalgh@arm.com>
38516         * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
38517         as forcing a HARD_DEP between instructions, thereby
38518         disallowing rewriting to break dependencies.
38520 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
38522         * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
38523         * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
38524         variables in boundary that have no inlitalizer encoded and are
38525         not aliases.
38526         * varasm.c (default_binds_local_p_2): External definitions do not
38527         count as definitions here.
38529 2015-02-16  Jeff Law  <law@redhat.com>
38531         PR tree-optimization/64823
38532         * tree-vrp.c (identify_jump_threads): Handle blocks with no real
38533         statements.
38534         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
38535         threading through blocks with PHIs, but no statements.
38536         (thread_through_normal_block): Distinguish between blocks where
38537         we did not process all the statements and blocks with no statements.
38539 2015-02-16  Jakub Jelinek  <jakub@redhat.com>
38540             James Greenhalgh  <james.greenhalgh@arm.com>
38542         PR ipa/64963
38543         * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
38544         section if not linkonce.  Fix up formatting.
38545         (cgraph_node::create_version_clone_with_body): Copy section.
38546         * trans-mem.c (ipa_tm_create_version): Likewise.
38548 2015-02-16  Richard Biener  <rguenther@suse.de>
38550         PR tree-optimization/65077
38551         * tree-ssa-structalias.c (get_constraint_for_1): Handle
38552         IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
38553         (find_func_aliases): Allow float values to carry pointers again.
38555 2015-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
38557         * doc/install.texi (Specific): Reorder targets list to put
38558         aarch64 in alphabetical order.  Add a link to aarch64*-*-*
38559         from the top menu.
38561 2015-02-16  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
38562             David Edelsohn  <dje.gcc@gmail.com>
38564         PR target/65058
38565         * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
38566         mapping class to external variable or function reference.
38567         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
38568         mapping class.
38570 2015-02-16  David Eelsohn  <dje.gcc@gmail.com>
38572         PR target/53348
38573         * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
38574         ASM_WEAKEN_DECL if defined.
38576 2015-02-16  Richard Biener  <rguenther@suse.de>
38578         PR lto/65015
38579         * varasm.c (default_file_start): For LTO produced units
38580         emit <artificial> as file directive.
38582 2015-02-16  Richard Biener  <rguenther@suse.de>
38584         PR tree-optimization/63593
38585         * tree-predcom.c (execute_pred_commoning_chain): Delay removing
38586         stmts and releasing SSA names until...
38587         (execute_pred_commoning): ... after processing all chains.
38589 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
38591         PR ipa/65059
38592         * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
38593         external functions.
38595 2015-02-15  Sandra Loosemore  <sandra@codesourcery.com>
38597         * doc/bugreport.texi: Adjust section titles throughout the file
38598         to use "Title Case".
38599         * doc/extend.texi: Likewise.
38600         * doc/gcov.texi: Likewise.
38601         * doc/implement-c.texi: Likewise.
38602         * doc/implement-cxx.texi: Likewise.
38603         * doc/invoke.texi: Likewise.
38604         * doc/objc.texi: Likewise.
38605         * doc/standards.texi: Likewise.
38606         * doc/trouble.texi: Likewise.
38608 2015-02-15  Jan Hubicka  <hubicka@ucw.cz>
38610         * cgraph.h (symtab_node::has_aliases_p): Simplify.
38611         (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
38612         * tree.c (lookup_binfo_at_offset): Make static.
38613         (get_binfo_at_offset): Do not shadow offset; add explanatory
38614         comment.
38616 2015-02-15  John David Anglin  <danglin@gcc.gnu.org>
38618         * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
38619         for all floading point loads and stores except those using a register
38620         index address.
38621         * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
38622         to a register.
38624 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
38626         * ipa-inline-analysis.c (growth_data): Add uninlinable field.
38627         (do_estimate_growth_1): Record if any uninlinable edge was seen.
38628         (estimate_growth): Handle uninlinable edges correctly.
38629         (check_callers): New.
38630         (growth_likely_positive): Handle aliases correctly.
38632 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
38634         * ipa-chkp.c: Use iterate_direct_aliases.
38635         * symtab.c (resolution_used_from_other_file_p): Move inline.
38636         (symtab_node::create_reference): Fix formating.
38637         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
38638         (symtab_node::iterate_reference): Move inline.
38639         (symtab_node::iterate_referring): Move inline.
38640         (symtab_node::iterate_direct_aliases): Move inline.
38641         (symtab_node::used_from_object_file_p_worker): Inline into ...
38642         (symtab_node::used_from_object_file_p): ... this one; move inline.
38643         (symtab_node::call_for_symbol_and_aliases): Move inline;
38644         use iterate_direct_aliases.
38645         (symtab_node::call_for_symbol_and_aliases_1): New method.
38646         (cgraph_node::call_for_symbol_and_aliases): Move inline;
38647         use iterate_direct_aliases.
38648         (cgraph_node::call_for_symbol_and_aliases_1): New method.
38649         (varpool_node::call_for_node_and_aliases): Rename to ...
38650         (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
38651         use iterate_direct_aliases.
38652         (varpool_node::call_for_symbol_and_aliases_1): New method.
38653         * ipa.c (ipa_single_use): Use iterate_direct_aliases.
38654         (ipa_discover_readonly_nonaddressable_var): Update.
38655         * ipa-devirt.c: Fix formating.
38656         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
38657         Move inline.
38658         (cgraph_node::call_for_symbol_and_aliases): Move inline.
38659         (cgraph_node::call_for_symbol_and_aliases_1): New function..
38660         * cgraph.h (used_from_object_file_p_worker): Remove.
38661         (resolution_used_from_other_file_p): Move inline.
38662         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
38663         (symtab_node::iterate_reference): Move inline.
38664         (symtab_node::iterate_referring): Move inline.
38665         (symtab_node::iterate_direct_aliases): Move inline.
38666         (symtab_node::used_from_object_file_p_worker): Inline into ...
38667         (symtab_node::used_from_object_file_p): Move inline.
38668         * tree-emutls.c (ipa_lower_emutls): Update.
38669         * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
38670         (varpool_node::call_for_node_and_aliases): Remove.
38672 2015-02-14  Jakub Jelinek  <jakub@redhat.com>
38674         PR tree-optimization/62209
38675         * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
38676         op == range->exp, insert seq and gimplified code after labels
38677         instead of after the phi.
38679 2015-02-13  Jeff Law  <law@redhat.com>
38681         PR bootstrap/65060
38682         Revert my change for tree-optimization/64823.
38684 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
38686         PR tree-optimization/65053
38687         * tree-ssa-phiopt.c (value_replacement): When moving assign before
38688         cond, either reset VR on lhs or set it to phi result VR.
38690 2015-02-13  Jeff Law  <law@redhat.com>
38692         PR tree-optimization/64823
38693         * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
38694         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
38695         threading through blocks with PHIs, but no statements.
38696         (thread_through_normal_block): Distinguish between blocks where
38697         we did not process all the statements and blocks with no statements.
38699         PR rtl-optimization/47477
38700         * match.pd (convert (plus/minus (convert @0) (convert @1): New
38701         simplifier to narrow arithmetic.
38703 2015-02-13  Jan Hubicka  <hubicka@ucw.cz>
38705         PR ipa/65028
38706         * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
38707         polymorphic call info when type is not known to be preserved.
38709 2015-02-13  Maritn Jambor  <mjambor@suse.cz>
38711         PR ipa/65028
38712         * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
38713         (inline_call): Use it.
38715 2015-02-13  Thomas Schwinge  <thomas@codesourcery.com>
38717         * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
38718         GOMP_DEVICE_NVIDIA_PTX.
38720 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
38722         PR ipa/65034
38723         * stmt.c (emit_case_nodes): Use void_type_node instead of
38724         NULL_TREE as LABEL_DECL type.
38726 2015-02-13  John David Anglin  <danglin@gcc.gnu.org>
38728         * config/pa/constraints.md: Change "Q" and "T" constraints to memory
38729         constraints.
38730         * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
38731         symbolic references to data to be forced to constant memory on the
38732         SOM target.
38734 2015-02-13  Ilya Enkovich  <ilya.enkovich@intel.com>
38736         PR tree-optimization/65002
38737         * tree-cfg.c (pass_data_fixup_cfg): Don't update
38738         SSA on start.
38739         * tree-sra.c (some_callers_have_no_vuse_p): New.
38740         (ipa_early_sra): Reject functions whose callers
38741         assume function is read only.
38743 2015-02-13  Richard Biener  <rguenther@suse.de>
38745         PR lto/65015
38746         * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
38747         for LTO produced CUs.
38749 2015-02-13  Bin Cheng  <bin.cheng@arm.com>
38751         PR tree-optimization/64705
38752         * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
38753         * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
38754         * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
38755         (find_bivs, find_givs_in_stmt_scev): Pass new argument to
38756         expand_simple_operations.
38758 2015-02-13  H.J. Lu  <hongjiu.lu@intel.com>
38759             Richard Henderson  <rth@redhat.com>
38761         PR rtl/32219
38762         * cgraphunit.c (cgraph_node::finalize_function): Set definition
38763         before notice_global_symbol.
38764         (varpool_node::finalize_decl): Likewise.
38765         * varasm.c (default_binds_local_p_2): Rename from
38766         default_binds_local_p_1, add weak_dominate argument.  Use direct
38767         returns instead of assigning to local variable.  Unify varpool and
38768         cgraph paths via symtab_node.  Reject undef weak variables before
38769         testing visibility.  Reorder tests for simplicity.
38770         (default_binds_local_p): Use default_binds_local_p_2.
38771         (default_binds_local_p_1): Likewise.
38772         (decl_binds_to_current_def_p): Unify varpool and cgraph paths
38773         via symtab_node.
38774         (default_elf_asm_output_external): Emit visibility when specified.
38776 2015-02-13  Alan Modra  <amodra@gmail.com>
38778         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
38779         code setting up r11 for out-of-line fp restore.
38781 2015-02-13  Eric Botcazou  <ebotcazou@adacore.com>
38783         * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
38784         (muser-mode): Likewise.
38786 2015-02-13  Alan Modra  <amodra@gmail.com>
38788         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
38789         or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
38791 2015-02-12  David Howells  <dhowells@redhat.com>
38793         * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
38794         warning.
38795         * tree-ssa-uninit.c (dump_predicates): Likewise.
38796         * opts.c (print_filtered_help): Likewise.
38798 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
38800         * dwarf2out.c (output_die): Use "%s", name instead of name to
38801         avoid -Wformat-security warning.
38803         * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
38804         if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
38805         * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
38806         only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
38808 2015-02-12  Jason Merrill  <jason@redhat.com>
38810         * common.opt (-flifetime-dse): New.
38812 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
38814         PR sanitizer/65019
38815         * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
38817         PR tree-optimization/65014
38818         * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
38819         use original second operand of arg0 or arg1 instead of
38820         that adjusted by STRIP_NOPS.
38822 2015-02-11  Jeff Law  <law@redhat.com>
38824         PR target/63347
38825         * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
38826         that needs to be queued, just queue it for a single cycle.
38828 2015-02-11  Jan Hubicka  <hubicka@ucw.cz>
38830         * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
38831         bodies of thunks; comment on why.
38832         * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
38833         symbols are extern.
38835 2015-02-11  Richard Henderson  <rth@redhat.com>
38837         PR sanitize/65000
38838         * tree-eh.c (mark_reachable_handlers): Mark source and destination
38839         regions of __builtin_eh_copy_values.
38841 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
38843         PR middle-end/65003
38844         * varasm.c (place_block_symbol): Assert that DECL_RTL of the
38845         ultimate alias is MEM with SYMBOL_REF satisfying
38846         SYMBOL_REF_HAS_BLOCK_INFO_P as its operand.  Don't pass the MEM
38847         to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
38849 2015-02-11  Thomas Schwinge  <thomas@codesourcery.com>
38851         * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
38852         "diagnostic-core.h".
38853         (main): Initialize progname, and call diagnostic_initialize.
38855         * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
38856         instead of __OPENMP_TARGET__.
38858         * config/nvptx/mkoffload.c: Include "gomp-constants.h".
38859         (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
38860         hard-coding PTX_ID.
38862 2015-02-11  H.J. Lu  <hongjiu.lu@intel.com>
38864         * doc/sourcebuild.texi (pie_enabled): Document.
38866 2015-02-11  Martin Liska  <mliska@suse.cz>
38868         PR ipa/64813
38869         * cgraphunit.c (cgraph_node::expand_thunk): Do not create
38870         a return value for call to a function that is noreturn.
38872 2015-02-11  Richard Biener  <rguenther@suse.de>
38874         PR lto/65015
38875         * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
38876         and -fresolution.
38878 2015-02-11  Andrew Pinski  <apinski@cavium.com>
38880         PR target/64893
38881         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
38882         Change the first argument type to size_type_node and add another
38883         size_type_node.
38884         (aarch64_simd_expand_builtin): Handle the new argument to
38885         AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
38886         print an out when the first two arguments are not
38887         nonzero integer constants.
38888         * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
38889         Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
38891 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
38893         PR target/61925
38894         * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
38895         (ix86_reset_previous_fndecl): Restore it here, unconditionally.
38896         (ix86_set_current_function): Rewritten.
38897         (ix86_add_new_builtins): Temporarily clear current_target_pragma
38898         when creating builtin fndecls.
38900 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
38902         PR ipa/65005
38903         * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
38904         function.
38905         * symtab.c (symtab_node::verify_base): Remove check that non-definitions
38906         have no comdat group.
38907         * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
38908         (lto_output_varpool_node): Always output alias info.
38909         (output_refs): Output refs of boundary aliases, too.
38910         (compute_ltrans_boundary): Add alias and thunk target into boundaries.
38911         (output_symtab): Output call eges in thunks in boundary.
38912         (get_alias_symbol): Remove.
38913         (input_node, input_varpool_node): Do not special case weakrefs.
38914         * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
38915         alias and thunks targets in the boundary; do not take removed symbols
38916         from their comdat groups.
38917         * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
38918         (cgraph_node::global_info): Remove.
38919         (cgraph_node::rtl_info): Look through aliases and thunks.
38920         * cgrpah.h (global_info): Remove.
38921         (non_local_p): Remove.
38923 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
38924             Sandra Loosemore  <sandra@codesourcery.com>
38926         * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
38927         to inline asm.  List dialects in proper order.
38929 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
38930             Sandra Loosemore  <sandra@codesourcery.com>
38932         * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
38934 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
38936         * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
38937         modified) reference to Solaris.
38939 2015-02-10  Sandra Loosemore  <sandra@codesourcery.com>
38941         * doc/extend.texi (Extended Asm): Fix typos.
38943 2015-02-10  Jakub Jelinek  <jakub@redhat.com>
38945         PR sanitizer/65004
38946         * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
38948 2015-02-10  Oleg Endo  <olegendo@gcc.gnu.org>
38950         PR target/64661
38951         * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
38952         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
38953         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
38954         * config/sh/constraints.md (Ara, Add): New constraints.
38955         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
38956         predicates.
38957         (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
38958         atomic_mem_operand_0.  Don't use force_reg on the memory address.
38959         (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
38960         Sra constraint.  Convert to insn_and_split.  Add workaround for
38961         PR 64974.
38962         (atomic_compare_and_swap<mode>_hard): Copy to
38963         atomic_compare_and_swap<mode>_hard_1.  Convert to insn_and_split.
38964         Use atomic_mem_operand_0 predicate.
38965         (atomic_compare_and_swap<mode>_soft_gusa,
38966         atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
38967         AraAdd constraints.
38968         (atomic_compare_and_swap<mode>_soft_tcb,
38969         atomic_compare_and_swap<mode>_soft_imask,
38970         atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
38971         atomic_mem_operand_0 predicate and SraSdd constraints.
38972         (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
38973         constraint.
38974         (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
38975         Convert to insn_and_split.  Use atomic_mem_operand_0 predicate.
38976         (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
38977         atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1.  Don't use
38978         force_reg on the memory address.
38979         (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
38980         atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
38981         atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
38982         atomic_mem_operand_1 predicate and Sra constraint.
38983         (atomic_fetch_<fetchop_name><mode>_hard): Copy to
38984         atomic_fetch_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
38985         Use atomic_mem_operand_1 predicate.
38986         (atomic_<fetchop_name><mode>_hard): Copy to
38987         atomic_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
38988         Use atomic_mem_operand_1 predicate.
38989         (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
38990         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
38991         (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1.  Convert to
38992         insn_and_split.  Use atomic_mem_operand_1 predicate.
38993         (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
38994         atomic_<fetchop_name>_fetch<mode>_hard_1.  Convert to insn_and_split.
38995         Use atomic_mem_operand_1 predicate.
38996         (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
38997         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
38998         (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
38999         in generated insn with original mem operand before emitting the insn.
39000         (atomic_fetch_<fetchop_name><mode>_soft_gusa,
39001         atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
39002         atomic_<fetchop_name>_fetch<mode>_soft_gusa,
39003         atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
39004         Use atomic_mem_operand_1 predicate and AraAdd constraints.
39005         (atomic_fetch_<fetchop_name><mode>_soft_tcb,
39006         atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
39007         atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
39008         atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
39009         atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
39010         atomic_<fetchop_name>_fetch<mode>_soft_tcb,
39011         atomic_not_fetch<mode>_soft_tcb,
39012         atomic_<fetchop_name>_fetch<mode>_soft_imask,
39013         atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
39014         atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
39015         Use atomic_mem_operand_1 predicate and SraSdd constraints.
39017 2015-02-10  Uros Bizjak  <ubizjak@gmail.com>
39019         * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
39020         and 3 earlyclobber operands.
39022 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
39024         * common.opt (fstack-reuse): Mark as optimization.
39026 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
39028         PR ipa/64982
39029         * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
39031 2015-02-10  Trevor Saunders  <tsaunders@mozilla.com>
39033         PR tree-optimization/64326
39034         * cfghooks.c (make_forwarder_block): Cap frequency of created block.
39036 2015-02-10  Rainer Emrich  <rainer@emrich-ebersheim.de>
39038         PR gcov-profile/61889
39039         * gcov-tool.c: Remove wrong #if !defined(_WIN32)
39041 2015-02-10  Richard Biener  <rguenther@suse.de>
39043         PR tree-optimization/64995
39044         * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
39045         value we use is final.
39046         (visit_reference_op_store): Always valueize op.
39047         (visit_use): Properly valueize vuses.
39049 2015-02-10  Richard Biener  <rguenther@suse.de>
39051         PR tree-optimization/64909
39052         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
39053         pass a scalar-stmt count estimate to the cost model.
39054         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
39056 2015-02-10  Alexander Monakov  <amonakov@ispras.ru>
39058         * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
39059         enabled by default together with var-tracking.
39061 2015-02-10  Nick Clifton  <nickc@redhat.com>
39063         * config/rl78/rl78.c: Remove DIV attribute code accidentally
39064         included in previous rl78 commit.
39066 2015-02-10  Richard Biener  <rguenther@suse.de>
39068         * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
39069         * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
39070         return the bitpack.
39072 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
39074         PR gcov-profile/61889
39075         * config.in: regenerate.
39076         * configure.in: Likewise.
39077         * configure.ac: Check for ftw.h.
39078         * gcov-tool.c: Check for ftw.h before using nftw.
39080 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
39082         PR lto/64076
39083         * ipa-visibility.c (update_visibility_by_resolution_info): Only
39084         assert when not in lto mode.
39086 2015-02-09  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
39088         * ira-color.c (setup_left_conflict_sizes_p): Simplify
39089         initialization/assignment of conflict_size.
39091 2015-02-09  Jan Hubicka  <hubicka@ucw.cz>
39093         PR ipa/64978
39094         * ipa-cp.c (gather_caller_stats): Skip thunks.
39095         (propagate_constants_topo): Skip aliases.
39097 2015-02-09  Kaz Kojima  <kkojima@gcc.gnu.org>
39099         PR target/64761
39100         * config/sh/sh.c (sh_option_override): Don't change
39101         -freorder-blocks-and-partition to -freorder-blocks even when
39102         unwinding is enabled.
39103         (sh_can_follow_jump): Return false if the followee jump is
39104         a crossing jump when -freorder-blocks-and-partition is specified.
39105         * config/sh/sh.md (*jump_compact_crossing): New insn.
39107 2015-02-09  Joern Rennecke  <joern.rennecke@embecosm.com>
39108             Kaz Kojima  <kkojima@gcc.gnu.org>
39110         PR target/64761
39111         * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
39112         * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
39113         (sh_can_redirect_branch): Rename to ...
39114         (sh_can_follow_jump): ... this.  Constify argument types.
39115         * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
39116         * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
39117         * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
39118         * doc/tm.texi: Regenerate.
39120 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
39122         PR sanitizer/64981
39123         * builtins.c (expand_builtin): Call targetm.expand_builtin
39124         for BUILT_IN_MD builtins regardless of asan_intercepted_p.
39126 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
39128         PR ipa/61548
39129         * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
39131 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
39133         PR ipa/63566
39134         * ipa-icf.c (set_local): New function.
39135         (sem_function::merge): Use it.
39137 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
39139         * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
39140         (add_type_duplicate): Fix comparison of BINFOs.
39142 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
39144         * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
39145         on getting VOID pointer.
39147 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
39149         PR target/64979
39150         * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
39151         va_list escapes.
39153 2015-02-09  Richard Biener  <rguenther@suse.de>
39155         * genmatch.c (replace_id): Copy expr_type.
39157 2015-02-09  Richard Biener  <rguenther@suse.de>
39159         * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
39160         (streamer_write_tree_bitfields): Declare.
39161         * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
39162         properly unpack padding.
39163         (unpack_value_fields): Inline ...
39164         (streamer_read_tree_bitfields): ... here.
39165         * tree-streamer-out.c (pack_ts_base_value_fields): Inline
39166         and properly add padding bits.
39167         (streamer_pack_tree_bitfields): Fold into ...
39168         (streamer_write_tree_bitfields): ... this new function,
39169         exposing the bitpack object.
39170         * lto-streamer-out.c (lto_write_tree_1): Call
39171         streamer_write_tree_bitfields.
39173 2015-02-09  Richard Biener  <rguenther@suse.de>
39175         PR tree-optimization/54000
39176         * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
39177         (struct ivopts_data): Add loop_loc member.
39178         (tree_ssa_iv_optimize_loop): Dump loop location.
39179         (create_new_ivs): Likewise, also dump number of IVs generated.
39181 2015-02-09  Martin Liska  <mliska@suse.cz>
39183         * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
39184         just if not yet registered.
39185         (ipa_icf_generate_summary): Register callgraph hooks.
39187 2015-02-08  Andrew Pinski  <apinski@cavium.com>
39189         * config/aarch64/aarch64.c (gty_dummy): Delete.
39191 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
39193         PR ipa/63566
39194         * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
39195         (cgraph_node::local_p): Remove thunk related FIXME.
39197 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
39199         PR ipa/63566
39200         * i386.c (ix86_function_regparm): Look through aliases to see if callee
39201         is local and optimized.
39202         (ix86_function_sseregparm): Likewise; also use target's SSE math
39203         settings; error out instead of silently generating wrong code
39204         on mismatches.
39205         (init_cumulative_args): Look through aliases.
39207 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
39209         PR ipa/63566
39210         * ipa-split.c (execute_split_functions): Split if function has aliases.
39212 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
39214         PR ipa/63566
39215         * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
39216         aliases before trying to expand it.
39217         (cgraph_node::expand_thunk): Fix formating.
39219 2015-02-07  Sandra Loosemore  <sandra@codesourcery.com>
39221         * doc/extend.texi (Function Attributes [naked]): Copy-edit.
39222         (Using Assembly Language with C): Expand introduction.
39223         (Basic Asm): Copy-edit.  Add more information about uses of
39224         basic asm.
39225         (Extended Asm): Copy-edit.  Document new escape syntax and
39226         %l[label] syntax.
39227         (Global Reg Vars): Copy-edit.
39228         (Local Reg Vars): Likewise.
39230 2015-02-06  David Edelsohn  <dje.gcc@gmail.com>
39232         PR debug/2714
39233         PR bootstrap/64256
39234         * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
39235         (DBX_CONTIN_CHAR): Define.
39237 2015-02-06  Sebastian Pop  <s.pop@samsung.com>
39238             Brian Rzycki  <b.rzycki@samsung.com>
39240         PR tree-optimization/64878
39241         * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
39242         (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
39243         Stop recursion at loop phi nodes after having visited a loop phi node.
39245 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
39247         * toplev.c (process_options): Change flag_ipa_ra before creating
39248         optimization_{default,current}_node.
39250         PR ipa/64896
39251         * cgraphunit.c (cgraph_node::expand_thunk): If
39252         restype is not is_gimple_reg_type nor the thunk_fndecl
39253         returns aggregate_value_p, set restmp to a temporary variable
39254         instead of resdecl.
39256 2015-02-06  Vladimir Makarov  <vmakarov@redhat.com>
39258         * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
39260 2015-02-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
39262         PR target/64205
39263         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
39264         add a general secondary reload handler for SDmode, unless we have
39265         both read/write support for SDmode.
39267 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
39269         PR middle-end/64937
39270         * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
39271         Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
39272         or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
39273         1 before, push it to abstract_vec.
39274         (dwarf2out_abstract_function): Adjust caller.  Don't call
39275         set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
39276         DECL_ABSTRACT_P flags for all abstract_vec elts.
39278 2015-02-06  Renlin Li  <renlin.li@arm.com>
39280         * tree-ssa-forwprop.c (execute): Keep location info while rewrite
39281         complex gimple.
39282         * tree-ssa.c (execute_update_addresses_taken): Likewise.
39284 2015-02-06  Jeff Law  <law@redhat.com>
39286         PR target/64889
39287         * config/h8300/h8300.c (push): New argument "in_prologue".
39288         Pass "in_prologue" along to "F".
39289         (h8300_push_pop): Corresponding changes.
39290         (h8300_expand_prologue): Likewise.
39291         (h8300_swap_into_er6): Likewise.  Do not set RTX_FRAME_RELATED_P.
39293 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
39295         PR rtl-optimization/64957
39296         PR debug/64817
39297         * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
39298         IOR rather than for AND.
39300 2015-02-06  Eric Botcazou  <ebotcazou@adacore.com>
39302         PR target/62631
39303         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
39304         of shift-add and (add + shift) operations.  Rename local variable.
39306 2015-02-05  Jeff Law  <law@redhat.com>
39308         PR target/17306
39309         * config/h8300/constraints.md (U): Correctly dectect
39310         "eightbit_data" memory addresses.
39311         * config/h8300/h8300.c (eightbit_constant_address_p): Also
39312         handle (const (plus (symbol_ref (x)))) where x is declared
39313         as an 8-bit data memory address.
39314         * config/h8300/h8300.md (call, call_value): Correctly detect
39315         "funcvec" functions.
39317         PR target/43264
39318         * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
39319         24 to 28 bits for the H8/300.
39321 2015-02-06  Alan Modra  <amodra@gmail.com>
39323         PR target/64876
39324         * config/rs6000/rs6000.c (chain_already_loaded): New function.
39325         (rs6000_call_aix): Use it.
39327 2015-02-05  Jan Hubicka <hubicka@ucw.cz>
39329         * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
39330         check.
39332 2015-02-05  Joern Rennecke  <joern.rennecke@embecosm.com>
39334         * config/h8300/constraints.md ("U" constraint): Use strict
39335         variant of REG_OK_FOR_BASE_P after reload has started.
39337 2015-02-04  Mantas Mikaitis  <mantas.mikaitis@arm.com>
39339         * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
39340         define to zero if !TARGET_NEON.
39341         (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
39343 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
39344             Trevor Saunders  <tsaunders@mozilla.com>
39346         PR ipa/61548
39347         * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
39349 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
39351         PR ipa/61548
39352         * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
39353         when removing varpool nodes.
39355 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
39357         PR ipa/61548
39358         * varpool.c (varpool_node::remove): Fix order of variables.
39360 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
39362         PR ipa/64686
39363         * ipa-inline.c (inline_small_functions): Fix ordering issue between
39364         speculation resolution and key updates.
39366 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
39368         * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
39369         about not letting any speculative edges unupdated.
39371 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
39373         PR gcov/64123
39374         * gcov-io.c (gcov_var): Export.
39376 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
39378         PR middle-end/64922
39379         * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
39380         edges that become speculative.
39382 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
39384         * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
39385         or DW_LANG_Fortran08.
39386         (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
39387         DW_LANG_Fortran08.
39388         (gen_compile_unit_die): Handle "GNU Fortran2003" and
39389         "GNU Fortran2008" language strings.
39390         * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
39391         * langhooks.h (lang_GNU_Fortran): New prototype.
39392         * langhooks.c (lang_GNU_Fortran): New function.
39393         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
39394         lang_GNU_Fortran.
39396 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
39398         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
39399         (RTX_OK_FOR_OLO10_P): Likewise.
39401 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
39403         * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
39405 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
39407         PR middle-end/64922
39408         * gimple.c: Include gimple-ssa.h.
39409         (maybe_remove_unused_call_args): New function.
39410         * gimple.h (maybe_remove_unused_call_args): Declare.
39411         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
39412         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
39413         * gimple-fold.c (gimple_fold_call): Likewise.
39415 2015-02-04  H.J. Lu  <hongjiu.lu@intel.com>
39417         PR rtl-optimization/64905
39418         * lra-eliminations.c (setup_can_eliminate): Clear hard frame
39419         pointer alignment if it isn't needed.
39421 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
39423         * config/aarch64/aarch64-cores.def: Add cortex-a72 and
39424         cortex-a72.cortex-a53.
39425         * config/aarch64/aarch64-tune.md: Regenerate.
39426         * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
39428 2015-02-04  Nick Clifton  <nickc@redhat.com>
39430         * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
39431         inside a MEM.
39433 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
39435         * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
39436         (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
39437         (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
39438         of DEF_BUILTIN.
39439         (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
39440         BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
39441         DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
39442         (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
39443         BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
39444         BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
39445         DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
39446         * tree-core.h (enum built_in_function): In between
39447         BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
39448         for builtins that use DEF_BUILTIN_CHKP macro.
39450 2015-02-04  Alexandre Oliva  <aoliva@redhat.com>
39452         PR debug/64817
39453         * cfgexpand.c (expand_debug_expr): Compute unsignedp from
39454         operands for tcc_comparison exprs.  Fix typos.
39456         PR debug/64817
39457         * simplify-rtx.c (simplify_binary_operation_1): Simplify one
39458         of two XORs that have an intervening AND or IOR.
39460         PR debug/64817
39461         * simplify-rtx.c (simplify_binary_operation_1): Rewrite
39462         simplification of XOR of AND to not allocate new rtx before
39463         committing to a simplification.
39465 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
39467         * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
39468         manual swaps in all peepholes.
39470 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
39472         * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
39473         of manual swapping implementation.
39474         (aarch64_expand_vec_perm_const_1): Likewise.
39476 2015-02-04  James Greenhalgh <james.greenhalgh@arm.com>
39478         * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
39479         (generic_addrcost_table): Remove NAMED_PARAM.
39480         (cortexa57_addrcost_table): Likewise.
39481         (xgene1_addrcost_table): Likewise.
39482         (generic_regmove_table): Likewise.
39483         (cortexa53_regmove_table): Likewise.
39484         (xgene1_regmove_table): Likewise.
39485         (generic_vector_table): Likewise.
39486         (cortexa57_vector_table): Likewise.
39487         (xgene1_vector_table): Likewise.
39488         (generic_tunings): Likewise.
39489         (cortexa53_tunings): Likewise.
39490         (cortexa57_tunings): Likewise.
39491         (xgene1_tunings): Likewise.
39493 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
39495         * config/arm/arm-cores.def: Add cortex-a72 and
39496         cortex-a72.cortex-a53.
39497         * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
39498         * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
39499         * config/arm/arm-tune.md: Regenerate.
39500         * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
39501         "cortex-a72.cortex-a53".
39502         * doc/invoke.texi (ARM Options/-mtune): Likewise.
39504 2015-02-04  Nick Clifton  <nickc@redhat.com>
39506         PR target/64408
39507         * config/fr30/predicates.md (di_operand): Add SUBREG to the list
39508         of accepted codes.
39509         (nonimmediate_di_operand): Likewise.
39511         * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
39512         prefixes of known F5 using MSP430 MCUs.
39514 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
39516         * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
39517         * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
39518         instead of __builtin_sqrt.
39520 2015-02-04  Ilya Enkovich  <ilya.enkovich@intel.com>
39522         * varasm.c (do_assemble_alias): Follow transparent alias
39523         chain for target.
39524         (default_assemble_visibility): Follow transparent alias
39525         chain for decl name.
39527 2015-02-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
39529         PR middle-end/62103
39530         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
39531         to compute size of referenced value in the constant case.
39533 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
39535         PR rtl-optimization/64756
39536         * cse.c (invalidate_dest): New function.
39537         (cse_insn): Use it.  If dest != SET_DEST (sets[i].rtl) and
39538         HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
39539         invalidate and do not record it.
39541 2015-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
39543         PR target/64660
39544         * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
39545         atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
39546         atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
39547         atomic_nand<mode>_soft_tcb): New insns.
39548         (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
39549         Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
39550         (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
39551         Split into atomic_not_fetchsi_hard if operands[0] is unused.
39552         (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
39553         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
39554         (atomic_fetch_not<mode>_hard): Convert to insn_and_split.  Split into
39555         atomic_not<mode>_hard if operands[0] is unused.
39556         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
39557         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
39558         if operands[0] is unused.
39559         (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split.  Split
39560         into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
39561         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
39562         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
39563         unused.
39564         (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split.  Split
39565         into atomic_not<mode>_soft_tcb if operands[0] is unused.
39566         (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
39567         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
39568         if operands[0] is unused.
39569         (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split.  Split
39570         into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
39571         (atomic_fetch_nandsi_hard): Convert to insn_and_split.  Split into
39572         atomic_nand_fetchsi_hard if operands[0] is unused.
39573         (atomic_fetch_nand<mode>_hard): Convert to insn_and_split.  Split into
39574         atomic_nand<mode>_hard if operands[0] is unused.
39575         (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split.  Split
39576         into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
39577         (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split.  Split
39578         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
39579         (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split.  Split
39580         into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
39581         (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
39582         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
39583         (atomic_not_fetch<mode>_hard): Convert to insn_and_split.  Split into
39584         atomic_not<mode>_hard if operands[0] is unused.
39585         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
39586         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
39587         unused.
39588         (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
39589         into atomic_not<mode>_soft_tcb if operands[0] is unused.
39590         (atomic_nand_fetch<mode>_hard): Convert to insn_and_split.  Split into
39591         atomic_nand<mode>_hard if operands[0] is unused.
39592         (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
39593         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
39595 2015-02-03  David Malcolm  <dmalcolm@redhat.com>
39597         PR jit/64810
39598         * Makefile.in (GCC_OBJS): Add gcc-main.o.
39599         * gcc-main.c: New file, containing "main" taken from gcc.c.
39600         * gcc.c (do_self_spec): Free decoded_options.
39601         (class driver): Move declaration to gcc.h.
39602         (main): Move declaration and implementation to new file
39603         gcc-main.c.
39604         (driver_get_configure_time_options): New function.
39605         * gcc.h (class driver): Move this declaration here, from
39606         gcc.c.
39607         (driver_get_configure_time_options): New declaration.
39609 2015-02-03  Jan Hubicka  <hubicka@ucw.cz>
39611         * ipa-inline-analysis.c (simple_edge_hints): Fix check for
39612         cross-module inlining.
39613         * cgraph.h (cgraph_node): Add flag merged.
39614         * ipa-icf.c (sem_function::merge): Maintain it.
39616 2015-02-03  Richard Sandiford  <richard.sandiford@arm.com>
39618         * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
39619         instead of OBJECT_P.
39621 2015-02-03  Eric Botcazou  <ebotcazou@adacore.com>
39623         PR target/62631
39624         * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
39625         (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
39626         * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
39627         int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
39629 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
39631         PR other/63504
39632         * combine.c (reg_n_sets_max): New variable.
39633         (can_change_dest_mode, reg_nonzero_bits_for_combine,
39634         reg_num_sign_bit_copies_for_combine, get_last_value_validate,
39635         get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
39636         (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
39637         (rest_of_handle_combine): Initialize reg_n_sets_max.
39639 2015-02-02  Jan Hubicka  <hubicka@ucw.cz>
39641         * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
39642         if some always_inline was inlined, apply changes before inlining
39643         heuristically.
39645 2015-02-02  David Malcolm  <dmalcolm@redhat.com>
39647         PR jit/64810
39648         * config/arm/arm.c (arm_option_override): Set
39649         arm_selected_arch/cpu/tune to NULL on entry.
39651 2015-02-02  Tejas Belagod  <tejas.belagod@arm.com>
39652             Andrew Pinski  <pinskia@gcc.gnu.org>
39653             Jakub Jelinek  <jakub@gcc.gnu.org>
39655         PR target/64231
39656         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
39657         integer typing for small model. Use IN_RANGE.
39659 2015-02-02  Richard Biener  <rguenther@suse.de>
39661         * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
39662         * tree-vrp.c (vrp_valueize_1): Likewise.
39664 2015-02-02  Alan Modra  <amodra@gmail.com>
39666         * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
39667         than mem for toc_restore.
39668         * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
39669         (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
39670         (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
39672 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
39674         PR target/64047
39675         * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
39676         explicit default options.
39678 2015-02-01  Jan Hubicka  <hubicka@ucw.cz>
39680         PR ipa/64872
39681         * ipa-utils.c (ipa_merge_profiles): Add release argument.
39682         * ipa-icf.c (sem_function::merge): Do not release body when merging.
39683         * ipa-utils.h (ipa_merge_profiles): Update prototype.
39685 2015-02-01  Jakub Jelinek  <jakub@redhat.com>
39687         PR debug/64817
39688         * cfgexpand.c (deep_ter_debug_map): New variable.
39689         (avoid_deep_ter_for_debug): New function.
39690         (expand_debug_expr): If TERed SSA_NAME is in
39691         deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
39692         instead of trying to expand SSA_NAME's def stmt.
39693         (expand_debug_locations): When expanding debug bind
39694         of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
39695         temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
39696         value.
39697         (pass_expand::execute): Call avoid_deep_ter_for_debug on
39698         all debug bind stmts.  Delete deep_ter_debug_map after
39699         expand_debug_location if non-NULL and clear it.
39701 2015-02-01  Oleg Endo  <olegendo@gcc.gnu.org>
39703         PR target/64851
39704         * config/sh/sync.md (atomic_fetch_notsi_hard,
39705         atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
39706         atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
39707         atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
39708         atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
39709         atomic_not_fetch<mode>_soft_imask): New insns.
39711 2015-02-01  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
39713         * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
39714         (rank_for_schedule_debug): Split from ...
39715         (rank_for_schedule): ... this.
39716         (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
39717         * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
39719 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
39721         * doc/md.texi (Machine Constraints): Alphabetize table by target.
39722         * doc/extend.texi (x86 Variable Attributes): Move section to
39723         correct alphabetization after renaming.
39724         (x86 Type Attributes): Likewise.
39725         (Target Builtins): Re-alphabetize menu.
39726         (x86 Built-in Functions): Move section to correct alphabetization
39727         after renaming.
39728         (x86 transactional memory intrinsics): Likewise.
39729         * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
39730         and x86 Windows Options in table and menu.
39731         (x86 Options): Move section to correct alphabetization after
39732         renaming.
39733         (x86 Windows Options): Likewise.
39735 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
39737         * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
39738         preferred names of the architecture and its 32- and 64-bit
39739         variants.
39740         * doc/invoke.texi: Likewise.
39741         * doc/md.texi: Likewise.
39743 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
39745         PR target/64882
39746         * config/i386/predicates.md (address_no_seg_operand): Reject
39747         non-CONST_INT_P operands in invalid mode.
39749 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
39751         * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
39752         address_operand 0.  Rename from *prefetch_prefetchwt1_<mode>.
39753         * config/i386/predicates.md (address_no_seg_operand): Call
39754         address_operand with VOIDmode.
39755         (vsib_address_operand): Ditto.
39756         (address_mpx_no_base_operand): Ditto.
39757         (address_mpx_no_index_operand): Ditto.
39759 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
39761         PR target/64688
39762         * lra-constraints.c (original_subreg_reg_mode): New.
39763         (simplify_operand_subreg): Try to simplify subreg of const.  Use
39764         original_subreg_reg_mode for it.
39765         (swap_operands): Update original_subreg_reg_mode.
39766         (curr_insn_transform): Set up original_subreg_reg_mode.
39768 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
39770         PR target/64617
39771         * lra-constraints.c (prohibited_class_reg_set_mode_p): New
39772         function.
39773         (process_alt_operands): Use it.
39774         (curr_insn_transform): Check the optional reload pseudo class is
39775         ok for the mode.
39777 2015-01-30  Joseph Myers  <joseph@codesourcery.com>
39779         * diagnostic.c (fatal_error (const char *, ...)): Remove function.
39780         * diagnostic-core.h (fatal_error (const char *, ...)): Remove
39781         prototype.
39782         * toplev.h (init_asm_output): Update comment on use of
39783         UNKNOWN_LOCATION with fatal_error.
39784         * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
39785         config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
39786         config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
39787         config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
39788         config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
39789         config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
39790         config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
39791         ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
39792         lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
39793         lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
39794         tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
39795         fatal_error changed to pass input_location as first argument.
39797 2015-01-30  Martin Liska  <mliska@suse.cz>
39799         * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
39800         in #pragma GCC diagnostic guards.
39802 2015-01-30  Richard Biener  <rguenther@suse.de>
39804         PR tree-optimization/64829
39805         * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
39806         not add a widening conversion pattern but hand off extra
39807         widenings to callers.
39808         (vect_recog_widen_mult_pattern): Handle extra widening produced
39809         by vect_handle_widen_op_by_const.
39810         (vect_recog_widen_shift_pattern): Likewise.
39811         (vect_pattern_recog_1): Remove excess vertical space in dumping.
39812         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
39813         (vect_init_vector_1): Likewise.
39814         (vect_get_vec_def_for_operand): Likewise.
39815         (vect_finish_stmt_generation): Likewise.
39816         (vectorizable_load): Likewise.
39817         (vect_analyze_stmt): Likewise.
39818         (vect_is_simple_use): Likewise.
39820 2015-01-29  Jeff Law  <law@redhat.com>
39822         * combine.c (try_combine): Fix typo in comment.
39824 2015-01-29  Segher Boessenkool  <segher@kernel.crashing.org>
39826         PR target/64580
39827         * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
39828         (rs6000_stack_info): Add assert.
39829         (rs6000_output_savres_externs): New function, split off from...
39830         (rs6000_output_function_prologue): ... here.  Do not call it for
39831         thunks.
39833 2015-01-29  Jeff Law  <law@redhat.com>
39835         PR target/15184
39836         * combine.c (try_combine): If I0 is a memory load and I3 a store
39837         to a related address, increase the "goodness" of doing a 4-insn
39838         combination with I0-I3.
39839         (make_field_assignment): Handle SUBREGs in the ior+and case.
39841 2015-01-29  Yuri Rumyantsev  <ysrumyan@gmail.com>
39843         PR tree-optimization/64746
39844         * tree-if-conv.c (mask_exists): New function.
39845         (predicate_mem_writes): Save created mask with given size for further
39846         use.
39847         (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
39848         (ifcvt_repair_bool_pattern): Collect all statements that are root
39849         of bool pattern and use iterative algorithm to remove multiple uses
39850         of predicates, display number of required iterations.
39852 2015-01-29  Richard Biener  <rguenther@suse.de>
39854         PR tree-optimization/64853
39855         * tree-vrp.c (vrp_valueize_1): Do not return anything if the
39856         stmt will get simulated again.
39857         * tree-ssa-ccp.c (valueize_op_1): Likewise.
39859 2015-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
39861         * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
39862         return_in_pc.  Remove redundant assignments.
39863         (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
39864         (arm_expand_epilogue): Don't compare boolean with true in if condition.
39866 2015-01-29  Uros Bizjak  <ubizjak@gmail.com>
39868         * config/i386/i386.c (ix86_mode_after): Make static.
39870 2015-01-29  Richard Biener  <rguenther@suse.de>
39872         PR tree-optimization/64844
39873         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
39874         dump cost model analysis.
39875         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
39876         Do not register adjusted load/store costs here.
39878 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
39879             Uros Bizjak  <ubizjak@gmail.com>
39881         * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
39882         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
39883         using x86_use_pseudo_pic_reg.
39884         * config/i386/i386.c (ix86_conditional_register_usage): Remove
39885         support for fixed PIC register.
39886         (ix86_use_pseudo_pic_reg): Not static any more.
39888 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
39890         PR middle-end/64805
39891         * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
39892         to avoid error in cgraph node verification.
39894 2015-01-29  Marek Polacek  <polacek@redhat.com>
39896         * doc/standards.texi: Reflect that the default for C is gnu11.
39898 2015-01-29  Kaz Kojima  <kkojima@gcc.gnu.org>
39900         PR target/64761
39901         * reorg.c (switch_text_sections_between_p): New function.
39902         (relax_delay_slots): Call it when testing if the jump insn
39903         is removable.  Use targetm.can_follow_jump when testing if
39904         the conditional branch can follow an unconditional jump.
39906 2015-01-27  Caroline Tice  <cmtice@google.com>
39908         Committing VTV Cywin/Ming patch for Patrick Wollgast
39909         * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
39910         if -fvtable-verify=preinit/std is used.
39911         * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
39912         * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
39913         * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
39914         if -fvtable-verify=preinit/std is used.
39915         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
39916         * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
39917         if -fvtable-verify=preinit/std is used.
39918         * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
39919         * config/i386/mingw32.h (LIB_SPEC): Likewise.
39920         * varasm.c (assemble_variable): Add code to properly set the comdat
39921         section and name for the .vtable_map_vars section in case the
39922         target is PE or COFF.
39924 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
39926         PR ipa/64801
39927         * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
39928         make sane BB profile.
39929         (cgraph_node::expand_thunk): Make sane BB profile.
39930         (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
39931         * cgraph.h (init_lowered_empty_function): Update prototype.
39932         * config/i386/i386.c (make_resolver_func): Update call.
39933         * predict.c (gate): Disable branch prediction pass if
39934         profile is already there.
39936 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
39938         * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
39939         * opth-gen.awk: Likewise.
39940         * common.opt: Mark flag_fp_contract_mode as Optimization.
39942 2015-01-29  Bernd Edlinger  <bernd.edlinger@hotmail.de>
39944         * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
39945         * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
39947 2015-01-28  Oleg Endo  <olegendo@gcc.gnu.org>
39949         PR target/64659
39950         * config/sh/predicates.md (atomic_arith_operand,
39951         atomic_logical_operand): Remove.
39952         * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
39953         (atomic_arith_operand_0): New predicate.
39954         (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
39955         Use atomic_arith_operand_0 for input values.
39956         (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
39957         atomic_compare_and_swap<mode>_soft_gusa,
39958         atomic_compare_and_swap<mode>_soft_tcb,
39959         atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
39960         arith_reg_operand instead of register_operand.
39961         (atomic_exchange<mode>): Use arith_reg_dest for output value.  Use
39962         atomic_arith_operand_0 for newval input.
39963         (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
39964         atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
39965         atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
39966         arith_reg_operand instead of register_operand.
39967         (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
39968         fetchop_predicate_1, fetchop_constraint_1_llcs,
39969         fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
39970         fetchop_constraint_1_imask): New code iterator attributes.
39971         (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
39972         register_operand.  Use fetchop_predicate_1.
39973         (atomic_fetch_<fetchop_name>si_hard,
39974         atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
39975         register_operand.  Use fetchop_predicate_1, fetchop_constraint_1_llcs.
39976         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
39977         and arith_reg_operand instead of register_operand.  Use
39978         fetchop_predicate_1, fetchop_constraint_1_gusa.
39979         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
39980         and arith_reg_operand instead of register_operand.  Use
39981         fetchop_predicate_1, fetchop_constraint_1_tcb.  Adjust asm sequence
39982         to allow R0 usage.
39983         (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
39984         and arith_reg_operand instead of register_operand.  Use
39985         fetchop_predicate_1, fetchop_constraint_1_imask.  Adjust asm sequence
39986         to allow R0 usage.
39987         (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
39988         register_operand.  Use atomic_logical_operand_1.
39989         (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
39990         atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
39991         arith_reg_operand instead of register_operand.
39992         (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
39993         Use arith_reg_dest and arith_reg_operand instead of register_operand.
39994         Use logical_operand and rK08.  Adjust asm sequence to allow R0 usage.
39995         (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
39996         register_operand.  Use fetchop_predicate_1.
39997         (atomic_<fetchop_name>_fetchsi_hard,
39998         atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
39999         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
40000         fetchop_constraint_1_llcs.
40001         (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
40002         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
40003         fetchop_constraint_1_gusa.
40004         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
40005         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
40006         fetchop_constraint_1_tcb.  Adjust asm sequence to allow R0 usage.
40007         (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
40008         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
40009         fetchop_constraint_1_imask.  Adjust asm sequence to allow R0 usage.
40010         (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
40011         register_operand.  Use atomic_logical_operand_1.
40012         (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
40013         atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
40014         arith_reg_operand instead of register_operand.
40015         (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
40016         arith_reg_operand instead of register_operand.  Use logical_operand
40017         and K08.  Adjust asm sequence to allow R0 usage.
40018         (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
40019         arith_reg_operand instead of register_operand.  Use logical_operand
40020         and K08.
40022 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
40024         PR other/63504
40025         * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
40026         Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
40027         (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
40028         only get_full_len HOST_WIDE_INTs from get_val () array rather than
40029         all bits in *val_wide.
40031 2015-01-28  Jan Hubicka  <hubicka@ucw.cz>
40033         * varpool.c (tls_model_names): Fix names.
40034         (varpool_node::dump): Dump tls- prefix for tls models.
40036 2015-01-28  Thomas Schwinge  <thomas@codesourcery.com>
40037             Bernd Schmidt  <bernds@codesourcery.com>
40038             Nathan Sidwell  <nathan@codesourcery.com>
40040         * config/nvptx/mkoffload.c: New file.
40041         * config/nvptx/t-nvptx: Add build rules for it.
40042         * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
40043         (extra_programs): Add mkoffload.
40044         * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
40045         function.
40046         (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
40048 2015-01-28  Yuri Rumyantsev  <ysrumyan@gmail.com>
40050         PR middle-end/64809
40051         * cfgexpand.c (reorder_operands): Skip debug gimples.
40053 2015-01-28  Ilya Enkovich  <ilya.enkovich@intel.com>
40055         PR tree-optimization/64277
40056         * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
40057         range info when possible to refine estimation.
40059 2015-01-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
40061         PR tree-optimization/64718
40062         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
40063         be a 16bit unsigned integer when n->range is 16.
40064         (bswap_replace): Convert src to that type if necessary for all bswap
40065         sizes.  Fix rotation right notation in nearby comment.  Use bswap_type
40066         set in pass_optimize_bswap::execute ().
40068 2015-01-28  James Greenhalgh  <james.greenhalgh@arm.com>
40070         * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
40071         * config/aarch64/aarch64-simd-builtins.def (abs): Split by
40072         integer and floating point variants.
40073         * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
40075 2015-01-28  Robert Suchanek  <robert.suchanek@imgtec.com>
40077         * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
40078         for all vector modes.
40080 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
40082         PR bootstrap/64612
40083         * doc/sourcebuild.texi (comdat_group): Document.
40085 2015-01-28  Terry Guo  <terry.guo@arm.com>
40087         * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
40089 2015-01-27  David Malcolm  <dmalcolm@redhat.com>
40091         * toplev.c (print_version): Add param "show_global_state", and
40092         only print GGC and plugin information if it is true.
40093         (init_asm_output): Pass in "true" for the new param when calling
40094         print_version.
40095         (process_options): Likewise.
40096         (toplev::main): Likewise.
40097         * toplev.h (print_version): Add new param to decl.
40099 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
40101         PR ipa/60871
40102         PR ipa/64139
40103         * tree.c (lookup_binfo_at_offset): New function.
40104         (get_binfo_at_offset): Use it.
40106 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
40108         PR ipa/64282
40109         * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
40110         on vtable being vtable.
40112 2015-01-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
40114         * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
40115         * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
40116         -mhotpatch= option.
40117         * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
40118         -mno-hotpatch options.  Change syntax of -mhotpatch= option.
40119         * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
40120         Renamed.
40121         (s390_hotpatch_trampoline_halfwords_max): Renamed.
40122         (s390_hotpatch_hw_max): New name.
40123         (s390_hotpatch_trampoline_halfwords): Renamed.
40124         (s390_hotpatch_hw_before_label): New name.
40125         (get_hotpatch_attribute): Removed.
40126         (s390_hotpatch_hw_after_label): New name.
40127         (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
40128         attribute.
40129         (s390_attribute_table): Ditto.
40130         (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
40131         (s390_function_num_hotpatch_hw): New name.
40132         Remove special handling of inline functions and hotpatching.
40133         Return number of nops before and after the function label.
40134         (s390_can_inline_p): Removed.
40135         (s390_asm_output_function_label): Emit a configurable number of nops
40136         after the function label.
40137         (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
40138         (TARGET_CAN_INLINE_P) Removed.
40139         (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
40141 2015-01-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
40142             Jiong Wang  <jiong.wang@arm.com>
40144         * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
40145         of scratch reg.
40146         (cb<optab><mode>1): Likewise.
40147         * config/aarch64/iterators.md (bcond): New define_code_attr.
40149 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
40151         * config/s390/s390.c (s390_memory_move_cost): Increase costs for
40152         memory accesses.
40154 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
40156         * config/s390/s390.c (s390_register_move_cost): Increase costs for
40157         FPR->GPR moves.
40159 2015-01-27  Richard Biener  <rguenther@suse.de>
40161         * tree-vrp.c (update_value_range): Intersect the range with
40162         old recorded SSA name range information.
40164 2015-01-27  Nick Clifton  <nickc@redhat.com>
40166         * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
40167         BC, DE and HL registers directly, not via AX.
40168         When decrementing the stack pointer by a large amount, transfer SP
40169         into AX and perform the subtraction there.
40170         (rl78_expand_epilogue): Perform the inverse of the above
40171         enhancements.
40173 2015-01-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
40175         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
40177 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
40178             Yury Gribov  <y.gribov@samsung.com>
40180         PR ubsan/64741
40181         * ubsan.c (ubsan_source_location): Refactor code.
40182         (ubsan_type_descriptor): Update type size. Refactor code.
40184 2015-01-27  Richard Biener  <rguenther@suse.de>
40186         PR tree-optimization/56273
40187         PR tree-optimization/59124
40188         PR tree-optimization/64277
40189         * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
40190         from the first VRP pass.
40192 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
40194         PR ipa/64776
40195         * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
40196         handle the first argument in the same loop as all the other arguments.
40198         PR rtl-optimization/61058
40199         * jump.c (cleanup_barriers): Update basic block boundaries
40200         if BLOCK_FOR_INSN is non-NULL on PREV.
40202 2015-01-27  Ilya Enkovich  <ilya.enkovich@intel.com>
40204         * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
40205         bounds narrowing, already instrumented calls and calls to
40206         not instrumentable functions.
40208 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
40210         PR tree-optimization/64807
40211         * wide-int.cc (wi::divmod_internal): Clear
40212         b_dividend[dividend_blocks_needed].
40214 2015-01-26  DJ Delorie  <dj@redhat.com>
40216         * config/rl78/rl78.c (move_elim_pass): Don't optimize away
40217         volatile memory references.
40219 2015-01-26  Oleg Endo  <olegendo@gcc.gnu.org>
40221         PR target/49263
40222         * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
40223         remove_insn.
40224         * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
40225         shifts if it already fits into K08.
40227 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
40229         PR ipa/64730
40230         * ipa-inline.c (inline_small_functions): Print "unknown" even
40231         if edge->call_stmt is non-NULL, but has builtins or unknown
40232         location.
40234         PR middle-end/64421
40235         * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
40236         with asterisk, skip the first character.
40238 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
40240         PR target/64806
40241         * config/i386/i386 (feature_priority): Revert the last P_POPCNT
40242         order change.
40244 2015-01-26  Uros Bizjak  <ubizjak@gmail.com>
40246         PR target/64795
40247         * config/i386/i386.md (*movdi_internal): Also check operand 0
40248         to determine TYPE_LEA operand.
40249         (*movsi_internal): Ditto.
40251 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
40253         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
40254         OPTION_MASK_QUAD_MEMORY_ATOMIC.
40256 2015-01-26  Renlin Li  <renlin.li@arm.com>
40258         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
40259         the comment.
40260         * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
40261         for higher part.
40263 2015-01-26  Richard Biener  <rguenther@suse.de>
40265         PR middle-end/64764
40266         * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
40267         combining two BIT_AND_EXPR predicates.
40269 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
40271         PR bootstrap/64754
40272         * tree-ssa-structalias.c (new_var_info): Initialize ruid.
40274 2015-01-26  Terry Guo  <terry.guo@arm.com>
40276         * config/arm/arm.c (arm_file_start): Update the assignment of
40277         Tag_ABI_HardFP_use.
40279 2015-01-25  James Greenhalgh  <james.greenhalgh@arm.com>
40281         * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
40282         pipeline model.
40283         config/arm/arm.md: Include the new Cortex-A57 model.
40284         (generic_sched): Don't use generic_sched when tuning for
40285         Cortex-A57.
40287 2015-01-25  Allan Sandfeld Jensen  <sandfeld@kde.org>
40288             Uros Bizjak  <ubizjak@gmail.com>
40290         * config/i386/i386.c (get_builtin_code_for_version): Add
40291         support for BMI and BMI2 multiversion functions.
40293 2015-01-25  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
40295         * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
40296         (extract_bit_field): Likewise.
40297         (extract_low_bits): Likewise.
40298         (expand_mult): Likewise.
40299         (expand_mult_highpart_adjust): Likewise.
40301 2015-01-24  H.J. Lu  <hongjiu.lu@intel.com>
40303         * config/i386/driver-i386.c (host_detect_local_cpu): Check new
40304         Silvermont, Haswell, Broadwell and Knights Landing model numbers.
40305         * config/i386/i386.c (processor_model): Add
40306         M_INTEL_COREI7_BROADWELL.
40307         (arch_names_table): Add "broadwell".
40309 2015-01-24  Oleg Endo  <olegendo@gcc.gnu.org>
40311         PR target/49263
40312         PR target/53987
40313         PR target/64345
40314         PR target/59533
40315         PR target/52933
40316         PR target/54236
40317         PR target/51244
40318         * config/sh/sh-protos.h
40319         (sh_extending_set_of_reg::can_use_as_unextended_reg,
40320         sh_extending_set_of_reg::use_as_unextended_reg,
40321         sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
40322         sh_is_movrt_insn, sh_insn_operands_modified_between_p,
40323         sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
40324         sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
40325         (sh_treg_insns): New class.
40326         * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
40327         (scope_counter): New class.
40328         (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
40329         sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
40330         sh_extending_set_of_reg::can_use_as_unextended_reg,
40331         sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
40332         sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
40333         sh_split_treg_set_expr): New functions.
40334         (addsubcosts): Handle treg_set_expr.
40335         (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
40336         (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
40337         (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
40338         (sh_insn_operands_modified_between_p): Make non-static.
40339         * config/sh/predicates.md (zero_extend_movu_operand): Allow
40340         simple_mem_operand in addition to displacement_mem_operand.
40341         (zero_extend_operand): Don't allow zero_extend_movu_operand.
40342         (treg_set_expr, treg_set_expr_not_const01,
40343         arith_reg_or_treg_set_expr): New predicates.
40344         * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
40345         arith_or_int_operand instead of logical_operand.  Convert to
40346         insn_and_split.  Try to optimize constant operand in splitter.
40347         (tsthi_t, tstqi_t): Fold into *tst<mode>_t.  Convert to insn_and_split.
40348         (*tstqi_t_zero): Delete.
40349         (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
40350         (tstsi_t_and_not): Delete.
40351         (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
40352         Convert to insn_and_split.
40353         (unnamed split, tstsi_t_zero_extract_xor,
40354         tstsi_t_zero_extract_subreg_xor_little,
40355         tstsi_t_zero_extract_subreg_xor_big): Delete.
40356         (*tstsi_t_shift_mask): New insn_and_split.
40357         (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
40358         to recombine with surrounding insns when splitting.
40359         (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
40360         (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
40361         (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
40362         *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
40363         (*cbranch_div0s: Delete.
40364         (*addc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
40365         Try to recombine with surrounding insns when splitting.  Add operand
40366         order variants.
40367         (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
40368         (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
40369         *addc_r_r_msb, *addc_2r_msb): Delete.
40370         (*addc_2r_lsb): Rename to *addc_2r_t.  Use treg_set_expr.  Add operand
40371         order variant.
40372         (*addc_negreg_t): New insn_and_split.
40373         (*subc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
40374         Try to recombine with surrounding insns when splitting.
40375         Add operand order variants.
40376         (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
40377         insn_and_split patterns.
40378         (*rotcr): Use arith_reg_or_treg_set_expr.  Try to recombine with
40379         surrounding insns when splitting.
40380         (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
40381         (*rotcl): Likewise.  Add zero_extract variant.
40382         (*ashrsi2_31): New insn_and_split.
40383         (*negc): Convert to insn_and_split.  Use treg_set_expr.
40384         (*zero_extend<mode>si2_disp_mem): Update comment.
40385         (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
40386         condition.
40387         (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr.  Try to recombine
40388         with surrounding insns when splitting.
40389         (any_treg_expr_to_reg): New insn_and_split.
40390         (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
40391         *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
40392         *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
40393         *zero_extract_2): New single bit zero extract patterns.
40394         (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
40395         (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
40396         *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
40397         *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
40398         set destination.
40399         (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
40400         register_operand for set source.
40402 2015-01-23  Jan Hubicka  <hubicka@ucw.cz>
40404         * i386.opt (prefetch_sse): New targetsave.
40405         * i386.c (ix86_function_specific_save): Save prefetch_sse.
40406         (ix86_function_specific_restore): Restore prefetch_sse and initialize
40407         ix86_cost/ix86_tune_cost.
40409 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
40411         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
40412         Support the JIT by using 0 as the language type.
40414 2015-01-23  Vladimir Makarov  <vmakarov@redhat.com>
40416         PR target/64317
40417         * lra-lives.c (make_hard_regno_born): Add parameter.  Don't make
40418         REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
40419         (mark_regno_live, process_bb_lives): Pass new parameter value to
40420         make_hard_regno_born.
40422 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
40424         PR rtl-optimization/63637
40425         PR rtl-optimization/60663
40426         * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
40427         if elt->cost is MAX_COST for ASM_OPERANDS.
40428         (find_sets_in_insn): Fix up comment typo.
40429         (cse_insn): Don't set src_volatile for all non-volatile
40430         ASM_OPERANDS in PARALLELs, but just those with multiple outputs
40431         or with "memory" clobber.  Set elt->cost to MAX_COST
40432         for ASM_OPERANDS in PARALLEL.  Set src_elt->cost to MAX_COST
40433         if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
40435 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
40437         * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
40438         alternative 1.
40440 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
40442         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
40443         libgcc/config/i386/elf-lib.h.
40445 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
40447         PR driver/64737
40448         * gcc.c (print_configuration): Don't print a blank line at the end
40449         here...
40450         (run_attempt): ... but here unstead.
40452         PR middle-end/64734
40453         * omp-low.c (scan_sharing_clauses): Don't ignore
40454         OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
40455         on target data/update constructs.
40457 2015-01-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
40459         PR target/50928
40460         * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
40461         (DEBUG_RELOAD): Removed define.
40462         (m32c_limit_reload_class): Enable traces with if DEBUG0.
40463         (m32c_function_arg): Added a type cast.
40464         (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
40465         * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
40466         * config/m32c/bitops.md (andqi3_16): Likewise.
40467         * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
40468         (push_a01_l): Likewise.
40470 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
40472         PR jit/64721
40473         * main.c (main): Construct toplev instances with init_signals=true.
40474         * toplev.c (general_init): Add param "init_signals", and use it to
40475         conditionalize the calls to signal and host_hooks.extra_signals.
40476         (toplev::toplev): Add param "init_signals".
40477         (toplev::main): When invoking general_init, pass m_init_signals
40478         to control whether signal-handlers are installed.
40479         * toplev.h (toplev::toplev): Add param "init_signals".
40480         (toplev::m_init_signals): New field.
40482 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
40484         PR jit/64722
40485         * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
40486         NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
40487         latter may be affected by the former (e.g. on i686).
40489 2015-01-23  Martin Liska  <mliska@suse.cz>
40491         * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
40492         false positive during profiledbootstrap.
40494 2015-01-23  Tom de Vries  <tom@codesourcery.com>
40496         PR libgomp/64672
40497         * lto-opts.c (lto_write_options): Output non-explicit conservative
40498         -fno-openacc.
40499         * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
40500         (append_compiler_options): Pass -fopenacc through.
40502 2015-01-23  Tom de Vries  <tom@codesourcery.com>
40504         PR libgomp/64707
40505         * lto-opts.c (lto_write_options): Output non-explicit conservative
40506         -fno-openmp.
40507         * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
40508         (append_compiler_options): Pass -fopenmp through.
40510 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
40512         PR debug/64511
40513         * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
40514         GTY markup.
40516         * diagnostic-core.h (internal_error_no_backtrace): New prototype.
40517         * diagnostic.def (DK_ICE_NOBT): New kind.
40518         * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
40519         like DK_ICE, but never print backtrace.
40520         (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
40521         (internal_error_no_backtrace): New function.
40522         * gcc.c (execute): Use internal_error_no_backtrace instead of
40523         internal_error.
40525 2015-01-22  Jeff Law  <law@redhat.com>
40527         PR target/52076
40528         * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
40529         improve code density for small immediate to memory case.
40530         (insv): Better handle bitfield assignments when the field is
40531         being set to all ones.
40532         * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
40533         operand predicate.
40535 2015-01-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
40536             Jakub Jelinek  <jakub@redhat.com>
40538         PR middle-end/64729
40539         * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
40540         for !TARGET_LIBC_PROVIDES_SSP version and
40541         -fstack-protector-{all,strong,explicit} otherwise.
40542         * config/freebsd.h (LINK_SSP_SPEC): Handle
40543         -fstack-protector-{strong,explicit}.
40545 2015-01-22  Jan Hubicka  <hubicka@ucw.cz>
40546             H.J. Lu  <hongjiu.lu@intel.com>
40548         PR ipa/64694
40549         * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
40550         heap.
40552 2015-01-22  Wei Mi  <wmi@google.com>
40554         PR rtl-optimization/64557
40555         * dse.c (record_store): Call get_addr for mem_addr.
40556         (check_mem_read_rtx): Likewise.
40558 2015-01-22  Eric Botcazou  <ebotcazou@adacore.com>
40560         * fold-const.c (const_binop): Add early return for non-tcc_binary.
40562 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
40564         * toplev.c (init_local_tick): Process the failure when read
40565         fails for random_seed.
40567         * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
40568         'pretty_name' to avoid memory overflow.
40570 2015-01-22  Richard Biener  <rguenther@suse.de>
40572         PR middle-end/64728
40573         * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
40574         abnormal coalescing on undefined SSA names.
40576 2015-22-01  Uros Bizjak  <ubizjak@gmail.com>
40578         PR target/64688
40579         PR target/64477
40580         * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
40581         for alternative 3.
40582         (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
40584 2015-01-22  Trevor Saunders  <tsaunders@mozilla.com>
40586         PR middle-end/63325
40587         * fold-const.c (fold_checksum_tree): Don't include value of
40588         expr->decl_with_vis.symtab_node in the checksum.
40590 2015-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
40592         * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
40594 2015-01-22  Max Ostapenko  <m.ostapenko@partner.samsung.com>
40596         PR driver/64690
40597         * gcc.c (insert_comments): New function.
40598         (try_generate_repro): Call it.
40599         (append_text): Removed.
40601 2015-01-22  Richard Biener  <rguenther@suse.de>
40603         * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
40604         with IL incompatible options.  Properly honor user optimize
40605         attributes.
40607 2015-01-21  Segher Boessenkool  <segher@kernel.crashing.org>
40609         PR rtl-optimization/64682
40610         * combine.c (distribute_notes): When moving a death note for
40611         a register that is set in the new I2, make sure to put it
40612         before that new I2.
40614 2015-01-21  David Edelsohn  <dje.gcc@gmail.com>
40616         * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
40617         not TARGET_DEFAULT.
40619 2015-01-21  Jakub Jelinek  <jakub@redhat.com>
40621         PR debug/64511
40622         * simplify-rtx.c (simplify_relational_operation_1): Don't try to
40623         optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
40624         into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
40626         PR sanitizer/64706
40627         * doc/invoke.texi (-fsanitize=vptr): Document.
40629         PR rtl-optimization/62078
40630         * dse.c: Include cfgcleanup.h.
40631         (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
40632         anything call purge_all_dead_edges and cleanup_cfg at the end
40633         of the pass.
40635 2015-01-21  Jan Hubicka  <hubicka@ucw.cz>
40637         * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
40638         edges.
40640 2015-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
40642         * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
40643         decl attribute.
40645 2015-01-21  David Sherwood  <david.sherwood@arm.com>
40646             Tejas Belagod <Tejas.Belagod@arm.com>
40648         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
40649         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
40650         * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
40651         Removed.
40653 2015-01-21  David Sherwood  <david.sherwood@arm.com>
40654             Tejas Belagod <Tejas.Belagod@arm.com>
40656         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
40657         (aarch64_reverse_mask): New decls.
40658         * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
40659         (insn_count): New mode_attr.
40660         * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
40661         (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
40662         (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
40663         (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
40664         (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
40665         (aarch64_simd_st4): New patterns.
40666         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
40667         (aarch64_reverse_mask): New functions.
40669 2015-01-21  Alan Hayward  <alan.hayward@arm.com>
40671         * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
40672         Declare.
40673         * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
40674         addressing modes for BE.
40675         (aarch64_print_operand): Add 'R' specifier.
40676         (aarch64_simd_disambiguate_copy): Delete.
40677         (aarch64_simd_emit_reg_reg_move): New function.
40678         * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
40679         in define_splits for structural moves.
40680         (mov<mode>): Use less restrictive predicates.
40681         (*aarch64_mov<mode>): Simplify and only allow for LE.
40682         (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
40684 2015-01-21  Alan Hayward  <alan.hayward@arm.com>
40686         * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
40688 2015-01-21  Richard Henderson  <rth@redhat.com>
40690         PR target/64669
40691         * ccmp.c (used_in_cond_stmt_p): Remove.
40692         (expand_ccmp_expr): Don't use it.
40694 2015-01-21  Nick Clifton  <nickc@redhat.com>
40696         * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
40697         PARALLELs.
40699 2015-01-21  Richard Biener  <rguenther@suse.de>
40701         PR middle-end/64313
40702         * tree-core.h (builtin_info, builtin_info_type): Turn from
40703         an object with two arrays into an array of an object with
40704         decl and two flags, implicit_p and declared_p.
40705         * tree.h (builtin_decl_explicit, builtin_decl_implicit,
40706         set_builtin_decl, set_builtin_decl_implicit_p,
40707         builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
40708         (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
40709         * builtins.c (builtin_info): Adjust.
40710         * gimplify.c (gimplify_addr_expr): References to builtins
40711         that have been declared by the user makes them eligible for
40712         use by the compiler.  Call set_builtin_decl_implicit_p on them.
40714 2015-01-20  Jeff Law  <law@redhat.com>
40716         PR target/59946
40717         * config/m68k/m68k.md (Comparison expanders and patterns): Do not
40718         allow pc-relative addresses in operand predicates or constraints.
40720 2015-01-21  Bin Cheng  <bin.cheng@arm.com>
40722         * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
40723         neon on aarch32 processors for stringops.
40725 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
40727         PR ipa/63576
40728         * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
40730 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
40732         PR lto/45375
40733         * ipa-inline.c: Include lto-streamer.h
40734         (report_inline_failed_reason): Output source file differences and
40735         flags on optimization/target node mismatch.
40736         (can_inline_edge_p): Consider caller to be the outer inline function;
40737         be less restrictive about matching opimize and optimize_size attributes.
40738         (inline_account_function_p): Break out from ...
40739         (inline_small_functions): ... here.
40740         * ipa-inline-transform.c (clone_inlined_nodes): Use
40741         inline_account_function_p.
40742         (inline_call): Use optimize attribution; use inline_account_function_p.
40743         (inline_transform): Use opt_for_fn.
40744         * ipa-inline.h (inline_account_function_p): Declare.
40746 2015-01-20  Jakub Jelinek  <jakub@redhat.com>
40748         PR debug/64663
40749         * dwarf2out.c (decl_piece_node): Don't put bitsize into
40750         mode if bitsize <= 0.
40751         (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
40752         dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
40753         sizes and positions.
40755 2015-01-20  Chung-Lin Tang  <cltang@codesourcery.com>
40757         * config/nios2/nios2.c (nios2_asm_file_end): Implement
40758         TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
40759         needed.
40760         (TARGET_ASM_FILE_END): Define.
40762 2015-01-20  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
40764         * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
40765         (struct tune_params): Use the enum.
40766         * arm.c (arm_*_tune): Update.
40767         (arm_option_override): Update.
40769 2015-01-20  Richard Biener  <rguenther@suse.de>
40771         PR ipa/64684
40772         * ipa-reference.c (add_static_var): Inline ...
40773         (analyze_function): ... here after splitting out from ...
40774         (is_proper_for_analysis): ... this.
40776 2015-01-20  Matthew Wahab  <matthew.wahab@arm.com>
40778         PR target/64149
40779         * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
40780         * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
40781         replace the conditional with it's true branch.
40782         * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
40783         (arm_lra_p): Remove.
40785 2015-01-20  Eric Botcazou  <ebotcazou@adacore.com>
40787         * config/visium/visium.h (LIB_SPEC): Adjust in default case.
40789 2015-01-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
40791         * config/tilegx/mul-tables.c: Move symtab.h include after
40792         coretypes.h include.
40793         * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
40794         vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
40795         flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
40796         wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
40797         explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
40799 2015-01-20  Igor Zamyatin  <igor.zamyatin@intel.com>
40801         PR bootstrap/64676
40802         Revert:
40803         2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
40805         PR rtl-optimization/64081
40806         * loop-iv.c (def_pred_latch_p): New function.
40807         (latch_dominating_def): Allow specific cases with non-single
40808         definitions.
40809         (iv_get_reaching_def): Likewise.
40810         (check_complex_exit_p): New function.
40811         (check_simple_exit): Use check_complex_exit_p to allow certain cases
40812         with exits not executing on any iteration.
40814 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
40816         PR lto/45375
40817         * i386.c (ix86_option_override_internal): Use ix86_tune_cost
40818         to set branch cost.
40820 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
40822         PR lto/45375
40823         * i386.c (gate): Check flag_expensive_optimizations and
40824         optimize_size.
40825         (ix86_option_override_internal): Drop optimize_size condition
40826         on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
40827         MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
40828         MASK_PREFER_AVX128.
40829         (ix86_avx256_split_vector_move_misalign,
40830         ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
40831         * sse.md (all uses of TARGET_PREFER_AVX128): Add
40832         optimize_insn_for_speed_p check.
40834 2015-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
40836         * config/mips/mips.h (FP_ASM_SPEC): New define.
40837         (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
40838         instead.
40840 2015-01-19  Oleg Endo  <olegendo@gcc.gnu.org>
40842         PR target/53988
40843         * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
40844         nullptr for insn when reaching the first insn.
40845         * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
40846         (sh_insn_operands_modified_between_p): Add nullptr check.
40847         (sh_find_extending_set_of_reg): Fix log message.  Don't accept
40848         sign extending mem load if the insn contains any UNSPEC or
40849         UNSPEC_VOLATILE.
40851 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
40853         * params.def (inline-unit-growth): Drop to 15%.
40854         * invoke.texi (inline-unit-growth): Document change.
40856 2015-01-19  Martin Liska  <mliska@suse.cz>
40858         PR ipa/64668
40859         * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
40860         function for second argument of OBJ_TYPE_REF.
40862 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
40864         PR ipa/64218
40865         * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
40866         whether function is an alias.
40868 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
40870         * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
40871         cases.
40873 2015-01-19  Vladimir Makarov  <vmakarov@redhat.com>
40875         PR rtl-optimization/64671
40876         * lra-remat.c (operand_to_remat): Don't consider jump and call
40877         insns.
40879 2015-01-19  David Edelsohn  <dje.gcc@gmail.com>
40881         PR target/59828
40882         * config/rs6000/default64.h: Include rs6000-cpus.def.
40883         (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
40884         (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
40885         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
40886         and POWER8.
40887         * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
40888         POWER8.
40889         * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
40890         pseudo-op to specify assembler dialect.
40892 2015-01-19  Martin Liska  <mliska@suse.cz>
40894         PR ipa/64664
40895         * ipa-icf.c (sem_item_optimizer::filter_removed_items):
40896         Handle safe potentially removed nodes during filtering.
40898 2015-01-19  Martin Liska  <mliska@suse.cz>
40900         * doc/extend.texi (no_icf): Add new attribute description.
40901         * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
40902         where the pass attempts to merge a function with no_icf attribute.
40904 2015-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
40906         PR target/64532
40907         * doc/md.texi (ARM Options): Document register constraints.
40909 2015-01-19  Jiong Wang  <jiong.wang@arm.com>
40910             Andrew Pinski  <apinski@cavium.com>
40912         PR target/64304
40913         * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
40914         (ashl<mode>3): Don't expand if operands[2] is not constant.
40916 2015-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
40918         PR target/64448
40919         * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
40920         Match xor-and-xor RTL pattern.
40922 2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
40924         PR rtl-optimization/64081
40925         * loop-iv.c (def_pred_latch_p): New function.
40926         (latch_dominating_def): Allow specific cases with non-single
40927         definitions.
40928         (iv_get_reaching_def): Likewise.
40929         (check_complex_exit_p): New function.
40930         (check_simple_exit): Use check_complex_exit_p to allow certain cases
40931         with exits not executing on any iteration.
40933 2015-01-19  Jakub Jelinek  <jakub@redhat.com>
40935         * common.opt (fgraphite): Fix a typo.
40937 2015-01-19  Felix Yang  <felix.yang@huawei.com>
40939         * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
40940         pattern.
40941         * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
40942         uminp, smax_nanp, smin_nanp): New builtins.
40943         * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
40944         vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
40945         vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
40946         vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
40947         vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
40948         vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
40949         vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
40950         vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
40951         vpminnms_f32): Rewrite using builtin functions.
40953 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
40955         PR libgomp/64625
40956         * omp-low.c (offload_symbol_decl): Remove variable.
40957         (get_offload_symbol_decl): Remove function.
40958         (expand_omp_target): For BUILT_IN_GOMP_TARGET,
40959         BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
40960         instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
40961         BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
40962         BUILT_IN_GOACC_UPDATE don't pass it at all.
40964 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
40966         * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
40967         callers.
40969 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
40971         * ipa-chkp.c (chkp_produce_thunks): Add early param
40972         to split thunks production into two passes.  Keep
40973         'always_inline' function bodies after the first pass.
40974         (pass_data_ipa_chkp_early_produce_thunks): New.
40975         (pass_ipa_chkp_early_produce_thunks): New.
40976         (pass_ipa_chkp_produce_thunks::execute): Adjust to new
40977         chkp_produce_thunks signature.
40978         (make_pass_ipa_chkp_early_produce_thunks): New.
40979         * passes.def (pass_ipa_chkp_early_produce_thunks): New.
40980         (pass_ipa_chkp_produce_thunks): Move after local optimizations.
40981         * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
40983 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
40985         * cgraph.c (cgraph_node::dump): Dump profile flags.
40987 2015-01-18  Oleg Endo  <olegendo@gcc.gnu.org>
40989         PR target/64652
40990         * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
40991         reg appear first in the parallel.
40993 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
40995         * ipa-reference.c (set_reference_optimization_summary,
40996         ipa_reference_get_not_written_global): Do nothing if ipa-reference is
40997         disabled.
40998         (ignore_module_statics): New static var.
40999         (propagate_bits): If ipa-reference is disabled, do not look into local
41000         properties.
41001         (analyze_function): Disable analysis when ipa_reference is disabled.
41002         (generate_summary): Do not dump when reference is disabled;
41003         collect vars accessed from functions with ipa-reference disabled.
41004         (get_read_write_all_from_node): When ipa-reference is disabled, use the
41005         node flags.
41006         (gate): Enable for LTO.
41007         (ignore_edge_p): New function.
41008         (propagate): Skip functions w/o ipa-reference analysis.
41009         * optc-save-gen.awk: Handle optimize_debug correctly.
41010         * opth-gen.awk: Likewise.
41011         * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
41012         fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
41013         fira-share-save-slots, fira-share-spill-slots,
41014         fmodulo-sched-allow-regmoves, fpartial-inlining,
41015         sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
41016         ftracer, ftree-parallelize-loops, fassociative-math,
41017         freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
41018         Optimization
41019         (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
41020         ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
41021         Optimization.
41022         * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
41023         Fix for IPA.
41025 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
41027         PR ipa/64378
41028         * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
41029         flag correctly.
41030         * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
41032 2015-01-18  Sandra Loosemore  <sandra@codesourcery.com>
41034         * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
41035         Remove duplicate option listings.
41037 2015-01-18  Felix Yang  <felix.yang@huawei.com>
41039         * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
41040         (autofdo_source_profile::get_callsite_total_count,
41041         function_instance::get_function_instance_by_decl,
41042         string_table::get_index, string_table::get_index_by_decl,
41043         afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
41044         Fix comment typos. Reformatting and minor code rearrangement.
41046 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
41048         * config/rs6000/rs6000.md (probe_stack): Delete.
41049         (probe_stack_address): New.
41051 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
41053         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
41054         to test for 32-bit ABIs, not !TARGET_POWERPC64.
41056 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
41058         * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
41059         (rs6000_function_value): Use it.  Handle SCmode and TCmode as well,
41060         for TARGET_32BIT && TARGET_POWERPC64.  Fix another BITS_PER_WORD
41061         snafu.
41062         (rs6000_libcall_value): Use the new function.
41064 2015-01-17  Sandra Loosemore  <sandra@codesourcery.com>
41066         * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
41068 2015-01-17  Eric Botcazou  <ebotcazou@adacore.com>
41070         * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
41071         implement a more precise life analysis for it during backward scan.
41073 2015-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
41075         * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
41077 2015-01-17  Bernd Schmidt  <bernds@codesourcery.com>
41079         PR rtl-optimization/52773
41080         * calls.c (emit_library_call_value): When pushing arguments use
41081         stack_pointer_rtx rather than virtual_outgoing_args_rtx in
41082         CALL_INSN_FUNCTION_USAGE.  Only emit one of use of the magic
41083         stack pointer reference into CALL_INSN_FUNCTION_USAGE.
41085 2015-01-17  Jeff Law  <law@redhat.com>
41087         PR rtl-optimization/32790
41088         * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
41089         not ZERO_EXTEND in SET_DESTs.
41091 2015-01-17  Alan Modra  <amodra@gmail.com>
41093         * cprop.c (do_local_cprop): Revert last change.
41095 2015-01-16  DJ Delorie  <dj@redhat.com>
41096             Nick Clifton  <nickc@redhat.com>
41098         * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
41099         (addhi3_real): Likewise.  Fix [HL+0] syntax.
41100         (subqi3_real): Likewise.
41101         (subhi3_real): Likewise.
41102         (cbranchqi4_real): Likewise.  Allow saddr,#imm.
41103         (cbranchhi4_real): Likewise.
41104         (cbranchhi4_real_inverted): Likewise.
41105         (cbranchsi4_real_lt): Likewise.
41106         (cbranchsi4_real_ge): Likewise.
41107         (cbranchsi4_real_ge): Likewise.
41108         * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
41109         (sub<mode>3_virt): Likewise.
41110         (cbranchqi4_virt): Likewise.
41111         (cbranchhi4_virt): Likewise.
41112         * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
41113         always use '[reg+imm]' even when imm is zero.
41114         * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
41115         (rl78_general_operand): New.
41116         (rl78_nonimmediate_operand): New.
41117         (rl78_nonfar_operand): Use them.
41118         (rl78_nonfar_nonimm_operand): Likewise.
41119         (rl78_stack_based_mem): Fix.
41120         * config/rl78/constraints.md (Ibqi): New.
41121         (IBqi): New.
41122         (Wsa): New.
41123         (Wsf): New.
41124         (Cs1): Fix.
41125         * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
41126         (iorqi3): Likewise.
41127         (xorqi3): Likewise.
41128         * config/rl78/rl78-protos.h (rl78_sfr_p): New.
41130         * config/rl78/constrains (Qs8): New constraint.
41131         * config/rl78/rl78.c (rl78_flags_already_set): New function.
41132         * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
41133         * config/rl78/rl78-real.md (update_Z): New attribute.
41134         Update patterns to set it.
41135         (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
41136         shorter compare and branch sequence can be used.
41137         (cbranchhi4_real): Likewise.
41138         (cbranchhi4_real_inverted): Likewise.
41140         * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
41141         * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
41142         address space.
41143         * config/rl78/rl78.c (rl78_get_name_encoding): New.
41144         (rl78_option_override): Allow -mes0 only if C.
41145         (characterize_address): Support subregs of symbol_refs.
41146         (rl78_addr_space_address_mode): Move.  Add __near.
41147         (rl78_far_p): Likewise.
41148         (rl78_addr_space_pointer_mode): Likewise.
41149         (rl78_as_legitimate_address): Likewise.
41150         (rl78_addr_space_subset_p): Likewise.
41151         (rl78_addr_space_convert): Likewise.
41152         (rl78_print_operand_1): Support 16-bit addressing of 32-bit
41153         symbols with -mes0.
41154         (transcode_memory_rtx): Don't copy ES if -mes0.  Allow symbol[BC]
41155         addressing.
41156         (rl78_alloc_physical_registers_op1): Change logic to prefer
41157         symbol[BC] addressing.
41158         (frodata_section): New.
41159         (rl78_asm_init_sections): Initialize it.
41160         (rl78_select_section): Put __far readonly symbols in .frodata.
41161         (rl78_make_type_far): New.
41162         (rl78_insert_attributes): Force all readonly symbols to be
41163         __far when -mes0.
41164         (rl78_asm_out_integer): New.
41165         * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
41166         * config/rl78/rl78.opt (-mes0): New.
41168         * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
41169         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
41170         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
41171         * config/rl78/rl78-protos.h (rl78_output_labelref): New.
41172         (rl78_saddr_p): New.
41173         (rl78_output_aligned_common): New.
41174         * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
41175         (rl78_handle_saddr_attribute): New.
41176         (rl78_handle_naked_attribute): New.
41177         (rl78_attribute_table): Add saddr.
41178         (rl78_print_operand_1): Don't print '!' on saddr operands.
41179         (rl78_print_operand_1): Strip encodings.
41180         (rl78_sfr_p): New.
41181         (rl78_strip_name_encoding): New.
41182         (rl78_attrlist_to_encoding): New.
41183         (rl78_encode_section_info): New.
41184         (rl78_asm_init_sections): New.
41185         (rl78_select_section): New.
41186         (rl78_output_labelref): New.
41187         (rl78_output_aligned_common): New.
41188         (rl78_asm_out_integer): New.
41189         (rl78_asm_ctor_dtor): New.
41190         (rl78_asm_constructor): New.
41191         (rl78_asm_destructor): New.
41193         * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
41194         * config/rl78/rl78.c (rl78_expand_epilogue): Update.
41195         (transcode_memory_rtx): Update.
41196         (rl78_expand_epilogue): Use A_REG instead of 0.
41198 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
41200         * config/arm/arm-protos.h (struct tune_params): New field
41201         sched_autopref_queue_depth.
41202         * config/arm/arm.c (sched-int.h): Include header.
41203         (arm_first_cycle_multipass_dfa_lookahead_guard,)
41204         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
41205         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
41206         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
41207         (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
41208         (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
41209         (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
41210         (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
41211         Specify sched_autopref_queue_depth value.  Enabled for A15 and A57.
41212         * config/arm/t-arm (arm.o): Update.
41213         * haifa-sched.c (update_insn_after_change): Update.
41214         (rank_for_schedule): Use auto-prefetcher model, if requested.
41215         (autopref_multipass_init): New static function.
41216         (autopref_rank_for_schedule): New rank_for_schedule heuristic.
41217         (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
41218         variable for debug dumps.
41219         (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
41220         (autopref_multipass_dfa_lookahead_guard): New global function that
41221         implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
41222         (init_h_i_d): Update.
41223         * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
41224         * sched-int.h (enum autopref_multipass_data_status): New const enum.
41225         (autopref_multipass_data_): Structure for auto-prefetcher data.
41226         (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
41227         (struct _haifa_insn_data:autopref_multipass_data): New field.
41228         (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
41229         (autopref_multipass_dfa_lookahead_guard): Declare.
41231 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
41233         * rtlanal.c (get_base_term): Handle SCRATCH.
41235 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
41237         * config/aarch64/aarch64.c
41238         (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
41239         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
41240         * config/arm/arm.c
41241         (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
41242         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
41244 2015-01-17  Alan Modra  <amodra@gmail.com>
41246         * cprop.c (do_local_cprop): Disallow replacement of fixed
41247         hard registers.
41249 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
41251         PR target/62066
41252         * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
41253         early return 0.
41255 2015-01-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
41257         * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
41258         * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
41260 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
41262         * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
41263         * config/arm/thumb1.md: ... Here.
41265 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
41267         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
41268         TImode for TARGET_32BIT.
41270 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
41272         * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
41273         TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
41274         as ...
41275         (rs6000_abi_word_mode): New function.
41277 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
41279         * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
41280         instead of UNITS_PER_WORD to describe the size of stack slots.
41282 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
41284         * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
41285         as rs6000_promote_function_mode.  Move comment to there.
41286         (rs6000_promote_function_mode): New function.
41288 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
41290         * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
41291         -mpowerpc64 is active.
41293 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
41295         PR middle-end/64353
41296         * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
41297         virtuals on start.
41299 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
41301         * config/arm/cortex-a57.md: Remove duplicate of file accidentally
41302         introduced in revision 219724.
41304 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
41305             Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
41307         PR target/64263
41308         * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
41309         destination is not a GP reg.
41310         (*movdi_aarch64): Likewise.
41312 2015-01-16  David Edelsohn  <dje.gcc@gmail.com>
41314         PR target/64623
41315         * config/rs6000/default64.h: Revert ISA change.
41317 2015-01-16  Richard Biener  <rguenther@suse.de>
41319         PR middle-end/64614
41320         * tree-ssa-uninit.c: Include tree-cfg.h.
41321         (MAX_SWITCH_CASES): New define.
41322         (convert_control_dep_chain_into_preds): Handle switch statements.
41323         (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
41324         (normalize_one_pred_1): Do not split bit-manipulations.
41325         Record (x & CST).
41327 2015-01-16  Richard Biener  <rguenther@suse.de>
41329         PR tree-optimization/64568
41330         * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
41331         complex load rewriting for TARGET_MEM_REFs.
41333 2015-01-16  Uros Bizjak  <ubizjak@gmail.com>
41335         * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
41337 2015-01-16  Matthew Wahab  <matthew.wahab@arm.com>
41339         PR target/64149
41340         * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
41341         variable.
41342         * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
41343         (aarch64_lra_p): Remove.
41345 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
41347         PR target/64363
41348         * ipa-chkp.h (chkp_instrumentable_p): New.
41349         * ipa-chkp.c: Include tree-inline.h.
41350         (chkp_instrumentable_p): New.
41351         (chkp_maybe_create_clone): Use chkp_instrumentable_p.
41352         Fix processing of not instrumentable functions.
41353         (chkp_versioning): Use chkp_instrumentable_p. Warn about
41354         not instrumentable functions.
41355         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
41356         chkp_instrumentable_p.
41357         * tree-inline.h (copy_forbidden): New.
41358         * tree-inline.c (copy_forbidden): Not static anymore.
41360 2015-01-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
41362         * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
41363         ptr1, ptr2 unused.
41365 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
41367         * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
41368         type OP_OUT to OP_INOUT.
41370 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
41372         * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
41373         (high x) y) to y if x and y have the same base.
41375 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
41377         * config/arm/cortex-a57.md: New.
41378         * config/aarch64/aarch64.md: Include it.
41379         * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
41380         * config/aarch64/aarch64-tune.md: Regenerate.
41382 2015-01-16  Zhenqiang Chen  <zhenqiang.chen@arm.com>
41384         PR target/64015
41385         * ccmp.c (expand_ccmp_next): New function.
41386         (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
41387         and compare insn sequence.
41388         * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
41389         aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
41390         (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
41391         * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
41392         (*ccmp_ior): Changed to ccmp_ior<mode>.
41393         (cmp<mode>): New pattern.
41394         * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
41395         parameters.
41396         * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
41398 2015-01-16  Ilya Tocar  <ilya.tocar@intel.com>
41400         * config/i386/avx2intrin.h (_mm256_bslli_epi128,
41401         _mm256_bsrli_epi128): New.
41402         * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
41404 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
41406         * expmed.c (store_bit_field_using_insv): Improve warning message.
41407         Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
41409 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
41411         PR rtl-optimization/64011
41412         * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
41413         there is partial overflow.
41415 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
41417         * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
41418         prototype.
41419         (nds32_expand_epilogue_v3pop): Likewise.
41420         * config/nds32/nds32.md (sibcall): Define this for sibling call
41421         optimization.
41422         (sibcall_register): Likewise.
41423         (sibcall_immediate): Likewise.
41424         (sibcall_value): Likewise.
41425         (sibcall_value_register): Likewise.
41426         (sibcall_value_immediate): Likewise.
41427         (sibcall_epilogue): Likewise.
41428         (epilogue): Pass false to indicate this is not a sibcall epilogue.
41429         * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
41430         (nds32_expand_epilogue_v3pop): Likewise.
41432 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
41434         * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
41435         * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
41436         (return_internal): New.
41437         (return): Define this named pattern.
41438         (simple_return): Define this named pattern.
41439         * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
41440         pattern instead of unspec_volatile_func_return.
41441         (nds32_expand_epilogue_v3pop): Likewise.
41442         (nds32_can_use_return_insn): New function.
41444 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
41446         * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
41447         * config/nds32/nds32.md (pop25return): New.
41448         * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
41449         pop25return pattern.
41451 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
41453         * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
41454         -mforbid-fp-as-gp, and -mex9 options.
41456 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
41458         * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
41459         remove -mgp-direct option.
41461 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
41463         * doc/invoke.texi (--param early-inlining-insns): Update default value.
41464         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
41466 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
41468         * ipa-inline.c (inline_small_functions): Work around hints
41469         cache issue.
41471 2015-01-15  Sandra Loosemore  <sandra@codesourcery.com>
41473         PR target/59710
41474         * doc/invoke.texi (Option Summary): Document new Nios II
41475         -mgpopt= syntax.
41476         (Nios II Options): Likewise.
41477         * config/nios2/nios2.opt: Add -mgpopt= option support.
41478         Modify existing -mgpopt and -mno-gpopt options to be aliases.
41479         * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
41480         * config/nios2/nios2.c (nios2_option_override): Adjust
41481         -mgpopt defaulting.
41482         (nios2_in_small_data_p): Return true for explicit small data
41483         sections even with -G0.
41484         (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
41485         option choices.
41487 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
41489         PR ipa/64612
41490         * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
41491         of comdat locals.
41492         (inline_call): Fix removal of aliases.
41494 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
41496         * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
41497         include SANITIZE_VPTR in SANITIZE_UNDEFINED.
41498         * opts.c (common_handle_option): Add -fsanitize=vptr.
41499         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
41500         BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
41501         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
41502         UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
41503         (ubsan_expand_vptr_ifn): New prototype.
41504         * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
41505         expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
41506         expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
41507         expand_LOOP_VECTORIZED): Make argument nameless, remove
41508         ATTRIBUTE_UNUSED.
41509         (expand_UBSAN_VPTR): New function.
41510         * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
41511         in fn spec.
41512         (UBSAN_VPTR): New internal function.
41513         * sanopt.c (tree_map_traits): Renamed to ...
41514         (sanopt_tree_map_traits): ... this.
41515         (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
41516         (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
41517         to sanopt_tree_map_traits renaming.  Add vptr_check_map field.
41518         (maybe_optimize_ubsan_vptr_ifn): New function.
41519         (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
41520         (pass_sanopt::execute): Likewise.  Call sanopt_optimize even for
41521         -fsanitize=vptr.
41522         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
41523         internal calls like pure functions for aliasing, even when they
41524         have other side-effects that prevent making them ECF_PURE.
41525         * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
41526         (ubsan_expand_vptr_ifn): New function.
41528 2015-01-15  Vladimir Makarov  <vmakarov@redhat.com>
41530         PR rtl-optimization/64110
41531         * stmt.c (parse_output_constraint): Process '^' and '$'.
41532         (parse_input_constraint): Ditto.
41533         * lra-constraints.c (process_alt_operands): Process the new
41534         constraints.
41535         * ira-costs.c (record_reg_classes): Process the new constraint
41536         '^'.
41537         * genoutput.c (indep_constraints): Add '^' and '$'.
41538         * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
41539         * doc/md.texi: Add description of the new constraints.
41541 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
41542             Bernd Schmidt  <bernds@codesourcery.com>
41543             Cesar Philippidis  <cesar@codesourcery.com>
41544             James Norris  <jnorris@codesourcery.com>
41545             Tom de Vries  <tom@codesourcery.com>
41546             Ilmir Usmanov  <i.usmanov@samsung.com>
41547             Dmitry Bocharnikov  <dmitry.b@samsung.com>
41548             Evgeny Gavrin  <e.gavrin@samsung.com>
41549             Jakub Jelinek  <jakub@redhat.com>
41551         * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
41552         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
41553         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
41554         New function types.
41555         * builtins.c: Include "gomp-constants.h".
41556         (expand_builtin_acc_on_device): New function.
41557         (expand_builtin, is_inexpensive_builtin): Handle
41558         BUILT_IN_ACC_ON_DEVICE.
41559         * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
41560         New macros.
41561         * cgraph.c (cgraph_node::create): Consider flag_openacc next to
41562         flag_openmp.
41563         * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
41564         <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
41565         i386/intelmic-offload.h.
41566         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
41567         to libgomp and its dependencies.
41568         * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
41569         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
41570         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
41571         * config/ia64/hpux.h (LIB_SPEC): Likewise.
41572         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
41573         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
41574         * doc/generic.texi: Update for OpenACC changes.
41575         * doc/gimple.texi: Likewise.
41576         * doc/invoke.texi: Likewise.
41577         * doc/sourcebuild.texi: Likewise.
41578         * gimple-pretty-print.c (dump_gimple_omp_for): Handle
41579         GF_OMP_FOR_KIND_OACC_LOOP.
41580         (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
41581         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
41582         GF_OMP_TARGET_KIND_OACC_UPDATE,
41583         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
41584         Dump more data.
41585         * gimple.c: Update comments for OpenACC changes.
41586         * gimple.def: Likewise.
41587         * gimple.h: Likewise.
41588         (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
41589         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
41590         GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
41591         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
41592         (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
41593         appropriate place.
41594         (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
41595         * gimplify.c: Include "gomp-constants.h".
41596         Update comments for OpenACC changes.
41597         (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
41598         OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
41599         OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
41600         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
41601         OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
41602         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
41603         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
41604         OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
41605         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
41606         OMP_CLAUSE_SEQ.
41607         (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
41608         GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
41609         OMP_CLAUSE_SET_MAP_KIND.
41610         (gimplify_oacc_cache): New function.
41611         (gimplify_omp_for): Handle OACC_LOOP.
41612         (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
41613         OACC_DATA.
41614         (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
41615         OACC_EXIT_DATA, OACC_UPDATE.
41616         (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
41617         OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
41618         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
41619         (gimplify_body): Consider flag_openacc next to flag_openmp.
41620         * lto-streamer-out.c: Include "gomp-constants.h".
41621         * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
41622         (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
41623         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
41624         (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
41625         (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
41626         (BUILT_IN_ACC_ON_DEVICE): New builtins.
41627         * omp-low.c: Include "gomp-constants.h".
41628         Update comments for OpenACC changes.
41629         (struct omp_context): Add reduction_map, gwv_below, gwv_this
41630         members.
41631         (extract_omp_for_data, use_pointer_for_field, install_var_field)
41632         (new_omp_context, delete_omp_context, scan_sharing_clauses)
41633         (create_omp_child_function, scan_omp_for, scan_omp_target)
41634         (check_omp_nesting_restrictions, lower_reduction_clauses)
41635         (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
41636         Update for OpenACC changes.
41637         (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
41638         OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
41639         OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
41640         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
41641         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
41642         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ.  Use GOMP_MAP_* instead of
41643         OMP_CLAUSE_MAP_*.
41644         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
41645         Handle GF_OMP_FOR_KIND_OACC_LOOP.
41646         (expand_omp_target, lower_omp_target): Handle
41647         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
41648         GF_OMP_TARGET_KIND_OACC_UPDATE,
41649         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
41650         GF_OMP_TARGET_KIND_OACC_DATA.
41651         (pass_expand_omp::execute, execute_lower_omp)
41652         (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
41653         flag_openmp.
41654         (offload_symbol_decl): New variable.
41655         (oacc_get_reduction_array_id, oacc_max_threads)
41656         (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
41657         (maybe_lookup_oacc_reduction, enclosing_target_ctx)
41658         (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
41659         (oacc_gimple_assign, oacc_initialize_reduction_data)
41660         (oacc_finalize_reduction_data, oacc_process_reduction_data): New
41661         functions.
41662         (is_targetreg_ctx): Remove function.
41663         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
41664         OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
41665         OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
41666         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
41667         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
41668         OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
41669         * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
41670         * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
41671         (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
41672         (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
41673         (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
41674         (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
41675         * tree-core.h: Update comments for OpenACC changes.
41676         (enum omp_clause_map_kind): Remove.
41677         (struct tree_omp_clause): Change type of map_kind member from enum
41678         omp_clause_map_kind to unsigned char.
41679         * tree-inline.c: Update comments for OpenACC changes.
41680         * tree-nested.c: Likewise.  Include "gomp-constants.h".
41681         (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
41682         (convert_tramp_reference_stmt, convert_gimple_call): Update for
41683         OpenACC changes.  Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
41684         OMP_CLAUSE_SET_MAP_KIND.
41685         * tree-pretty-print.c: Include "gomp-constants.h".
41686         (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
41687         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
41688         OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
41689         OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
41690         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
41691         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT.  Use GOMP_MAP_*
41692         instead of OMP_CLAUSE_MAP_*.
41693         (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
41694         OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
41695         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
41696         * tree-streamer-in.c: Include "gomp-constants.h".
41697         (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
41698         OMP_CLAUSE_MAP_*.  Use OMP_CLAUSE_SET_MAP_KIND.
41699         * tree-streamer-out.c: Include "gomp-constants.h".
41700         (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
41701         OMP_CLAUSE_MAP_*.
41702         * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
41703         (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
41704         (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
41705         * tree.c (omp_clause_num_ops): Update accordingly.
41706         * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
41707         Likewise.
41708         (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
41709         (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
41710         (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
41711         (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
41712         (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
41713         (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
41714         * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
41715         (OMP_CLAUSE_SET_MAP_KIND): New macro.
41716         * varpool.c (varpool_node::get_create): Consider flag_openacc next
41717         to flag_openmp.
41718         * config/i386/intelmic-offload.h: New file.
41719         * config/nvptx/offload.h: Likewise.
41721 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
41723         * explow.h: Remove duplicate contents.
41724         * dojump.h: Likewise.
41726 2015-01-15  Richard Earnshaw  <rearnsha@arm.com>
41728         * arm.c (arm_xgene_tune): Add default initializer for instruction
41729         fusion.
41731 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
41733         PR ipa/64068
41734         PR ipa/64559
41735         * ipa.c (symbol_table::remove_unreachable_nodes):
41736         Do not put abstract origins into boundary.
41738 2015-01-15  Evgeny Stupachenko  <evstupac@gmail.com>
41740         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
41741         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
41743 2015-01-15  Steve Ellcey  <sellcey@mips.com>
41745         * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
41746         cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
41747         builtins.def, and chkp-builtins.def.
41749 2015-01-15  David Edelsohn  <dje.gcc@gmail.com>
41751         * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
41752         ISA 2.7 (POWER8).
41754 2015-01-15  Richard Biener  <rguenther@suse.de>
41756         PR tree-optimization/61743
41757         * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
41758         information on PHIs for some simple cases.
41760 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
41762         * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
41763         Include xgene1.md.
41764         * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
41765         * config/arm/arm-cores.def (xgene1): New entry.
41766         * config/arm/arm-tables.opt: Regenerate.
41767         * config/arm/arm-tune.md: Regenerate.
41768         * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
41770 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
41772         * tree-if-conv.c: Include hash-map.h.
41773         (aggressive_if_conv): New variable.
41774         (fold_build_cond_expr): Add simplification of non-zero condition.
41775         (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
41776         destination block is not always executed.
41777         (if_convertible_phi_p): Fix commentary, allow phi nodes have more
41778         than two predecessors if AGGRESSIVE_IF_CONV is true.
41779         (if_convertible_stmt_p): Fix commentary.
41780         (all_preds_critical_p): New function.
41781         (has_pred_critical_p): New function.
41782         (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
41783         BB can have more than two predecessors and all incoming edges can be
41784         critical.
41785         (predicate_bbs): Skip predication for loop exit block, use build2_loc
41786         to compute predicate for true edge.
41787         (find_phi_replacement_condition): Delete this function.
41788         (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
41789         Allow interchange PHI arguments if EXTENDED is false.
41790         Change check that block containing reduction statement candidate
41791         is predecessor of phi-block since phi may have more than two arguments.
41792         (phi_args_hash_traits): New helper structure.
41793         (struct phi_args_hash_traits): New type.
41794         (phi_args_hash_traits::hash): New function.
41795         (phi_args_hash_traits::equal_keys): New function.
41796         (gen_phi_arg_condition): New function.
41797         (predicate_scalar_phi): Add handling of phi nodes with more than two
41798         arguments, delete COND and TRUE_BB arguments, insert body of
41799         find_phi_replacement_condition to predicate ordinary phi nodes.
41800         (predicate_all_scalar_phis): Skip blocks with the only predecessor,
41801         delete call of find_phi_replacement_condition and invoke
41802         predicate_scalar_phi with two arguments.
41803         (insert_gimplified_predicates): Add assert that non-predicated block
41804         don't have statements to insert.
41805         (ifcvt_split_critical_edges): New function.
41806         (ifcvt_split_def_stmt): Likewise.
41807         (ifcvt_walk_pattern_tree): Likewise.
41808         (stmt_is_root_of_bool_pattern): Likewise.
41809         (ifcvt_repair_bool_pattern): Likewise.
41810         (ifcvt_local_dce): Likewise.
41811         (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
41812         is copy of inner or outer loop force_vectorize field, invoke
41813         ifcvt_split_critical_edges, ifcvt_local_dce and
41814         ifcvt_repair_bool_pattern for aggressive if-conversion.
41816 2015-01-15  Philipp Tomsich  <ptomsich@theobroma-systems.com>
41818         * config/aarch64/aarch64.md: Include xgene1.md.
41819         * config/aarch64/xgene1.md: New file.
41821 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
41823         * config/aarch64/aarch64-cores.def (xgene1): Update/add the
41824         xgene1 (APM XGene-1) core definition.
41825         * config/aarch64/aarch64.c: Add cost tables for APM XGene-1
41826         * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
41827         * doc/invoke.texi: Document -mcpu=xgene1.
41829 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
41831         * dojump.h: New header file.
41832         * explow.h: Likewise.
41833         * expr.h: Remove includes.
41834         Move expmed.c prototypes to expmed.h.
41835         Move dojump.c prototypes to dojump.h.
41836         Move alias.c prototypes to alias.h.
41837         Move explow.c prototypes to explow.h.
41838         Move calls.c prototypes to calls.h.
41839         Move emit-rtl.c prototypes to emit-rtl.h.
41840         Move varasm.c prototypes to varasm.h.
41841         Move stmt.c prototypes to stmt.h.
41842         (saved_pending_stack_adjust): Move to dojump.h.
41843         (adjust_address): Move to explow.h.
41844         (adjust_address_nv): Move to emit-rtl.h.
41845         (adjust_bitfield_address): Likewise.
41846         (adjust_bitfield_address_size): Likewise.
41847         (adjust_bitfield_address_nv): Likewise.
41848         (adjust_automodify_address_nv): Likewise.
41849         * explow.c (expr_size): Move to expr.c.
41850         (int_expr_size): Likewise.
41851         (tree_expr_size): Likewise.
41852         Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41853         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
41854         * genemit.c (main): Generate includes statistics.h, real.h,
41855         fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
41856         stmt.h.
41857         * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
41858         function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
41859         explow.h, emit-rtl.h, stmt.h.
41860         * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
41861         fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
41862         * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
41863         real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
41864         emit-rtl.h, varasm.h, stmt.h.
41865         * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
41866         hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
41867         function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
41868         fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
41869         expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
41870         * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
41871         double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
41872         function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
41873         insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
41874         tm.h tree.h varasm.h vec.h wide-int.h.
41875         * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
41876         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
41877         hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
41878         real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
41879         * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
41880         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
41881         insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
41882         * loop-iv.c: Likewise.
41883         * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
41884         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
41885         statistics.h stmt.h tree.h varasm.h wide-int.h.
41886         * lra-constraints.c: Likewise.
41887         * lra-eliminations.c: Likewise.
41888         * lra-lives.c: Likewise.
41889         * lra-remat.c: Likewise.
41890         * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
41891         explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
41892         statistics.h stmt.h tree.h varasm.h wide-int.h.
41893         * hw-doloop.c: Likewise.
41894         * ira-color.c: Likewise.
41895         * ira-emit.c: Likewise.
41896         * loop-doloop.c: Likewise.
41897         * loop-invariant.c: Likewise.
41898         * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
41899         explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
41900         statistics.h stmt.h tree.h varasm.h wide-int.h.
41901         * caller-save.c: Include alias.h calls.h dojump.h double-int.h
41902         emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
41903         statistics.h stmt.h tree.h varasm.h wide-int.h.
41904         * combine-stack-adj.c: Likewise.
41905         * cse.c: Likewise.
41906         * ddg.c: Likewise.
41907         * ifcvt.c: Likewise.
41908         * ira-costs.c: Likewise.
41909         * jump.c: Likewise.
41910         * lra-coalesce.c: Likewise.
41911         * lra-spills.c: Likewise.
41912         * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
41913         explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
41914         stmt.h varasm.h wide-int.h.
41915         * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
41916         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
41917         varasm.h.
41918         * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
41919         double-int.h explow.h expmed.h fixed-value.h flags.h real.h
41920         statistics.h stmt.h varasm.h wide-int.h.
41921         * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
41922         expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
41923         varasm.h wide-int.h.
41924         * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
41925         expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
41926         * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
41927         emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
41928         statistics.h stmt.h.
41929         * config/tilepro/tilepro.c: Likewise.
41930         * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
41931         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
41932         * config/pdp11/pdp11.c: Likewise.
41933         * config/xtensa/xtensa.c: Likewise.
41934         * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
41935         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
41936         varasm.h.
41937         * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41938         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
41939         insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
41940         * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41941         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
41942         insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
41943         * rtl-chkp.c: Likewise.
41944         * tree-chkp-opt.c: Likewise.
41945         * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
41946         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
41947         hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
41948         * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41949         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
41950         statistics.h stmt.h.
41951         * tree-vect-data-refs.c: Likewise.
41952         * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
41953         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
41954         rtl.h statistics.h stmt.h varasm.h.
41955         * internal-fn.c: Likewise.
41956         * ipa-icf-gimple.c: Likewise.
41957         * lto-section-out.c: Likewise.
41958         * tree-data-ref.c: Likewise.
41959         * tree-nested.c: Likewise.
41960         * tree-outof-ssa.c: Likewise.
41961         * tree-predcom.c: Likewise.
41962         * tree-pretty-print.c: Likewise.
41963         * tree-scalar-evolution.c: Likewise.
41964         * tree-ssa-strlen.c: Likewise.
41965         * tree-vect-loop.c: Likewise.
41966         * tree-vect-patterns.c: Likewise.
41967         * tree-vect-slp.c: Likewise.
41968         * tree-vect-stmts.c: Likewise.
41969         * tsan.c: Likewise.
41970         * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41971         fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
41972         stmt.h.
41973         * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
41974         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
41975         statistics.h stmt.h varasm.h.
41976         * loop-unroll.c: Likewise.
41977         * ubsan.c: Likewise.
41978         * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
41979         expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
41980         stmt.h varasm.h.
41981         * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41982         fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
41983         * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
41984         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
41985         statistics.h stmt.h.
41986         * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
41987         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
41988         statistics.h stmt.h varasm.h.
41989         * gimple-match-head.c: Likewise.
41990         * lto-cgraph.c: Likewise.
41991         * lto-section-in.c: Likewise.
41992         * lto-streamer-in.c: Likewise.
41993         * lto-streamer-out.c: Likewise.
41994         * tree-affine.c: Likewise.
41995         * tree-cfg.c: Likewise.
41996         * tree-cfgcleanup.c: Likewise.
41997         * tree-if-conv.c: Likewise.
41998         * tree-into-ssa.c: Likewise.
41999         * tree-ssa-alias.c: Likewise.
42000         * tree-ssa-copyrename.c: Likewise.
42001         * tree-ssa-dse.c: Likewise.
42002         * tree-ssa-forwprop.c: Likewise.
42003         * tree-ssa-live.c: Likewise.
42004         * tree-ssa-math-opts.c: Likewise.
42005         * tree-ssa-pre.c: Likewise.
42006         * tree-ssa-sccvn.c: Likewise.
42007         * tree-tailcall.c: Likewise.
42008         * tree-vect-generic.c: Likewise.
42009         * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42010         fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
42011         * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42012         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
42013         * varasm.c: Likewise.
42014         * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42015         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
42016         varasm.h.
42017         * init-regs.c: Likewise.
42018         * ira.c: Likewise.
42019         * omp-low.c: Likewise.
42020         * stack-ptr-mod.c: Likewise.
42021         * tree-ssa-reassoc.c: Likewise.
42022         * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42023         fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
42024         varasm.h.
42025         * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42026         fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
42027         * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42028         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
42029         * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42030         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
42031         * tree-ssa-phiopt.c: Likewise.
42032         * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42033         fixed-value.h hashtab.h real.h statistics.h stmt.h.
42034         * config/fr30/fr30.c: Likewise.
42035         * config/frv/frv.c: Likewise.
42036         * expr.c: Likewise.
42037         * final.c: Likewise.
42038         * optabs.c: Likewise.
42039         * passes.c: Likewise.
42040         * simplify-rtx.c: Likewise.
42041         * stmt.c: Likewise.
42042         * toplev.c: Likewise.
42043         * var-tracking.c: Likewise.
42044         * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42045         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
42046         * lower-subreg.c: Likewise.
42047         * postreload-gcse.c: Likewise.
42048         * ree.c: Likewise.
42049         * reginfo.c: Likewise.
42050         * store-motion.c: Likewise.
42051         * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42052         fixed-value.h hashtab.h real.h stmt.h varasm.h.
42053         * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42054         fixed-value.h hashtab.h statistics.h stmt.h.
42055         * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42056         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
42057         * except.c: Likewise.
42058         * explow.c: Likewise.
42059         * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42060         fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
42061         varasm.h.
42062         * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42063         fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
42064         * tree-ssa-structalias.c: Likewise.
42065         * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42066         fixed-value.h insn-config.h real.h statistics.h.
42067         * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42068         fixed-value.h insn-config.h real.h statistics.h stmt.h.
42069         * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42070         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
42071         * cfgbuild.c: Likewise.
42072         * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42073         fixed-value.h real.h rtl.h statistics.h stmt.h.
42074         * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42075         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
42076         * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42077         fixed-value.h real.h statistics.h stmt.h.
42078         * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
42079         fixed-value.h real.h statistics.h stmt.h varasm.h.
42080         * cprop.c: Likewise.
42081         * modulo-sched.c: Likewise.
42082         * postreload.c: Likewise.
42083         * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
42084         flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
42085         statistics.h stmt.h varasm.h.
42086         * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
42087         explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
42088         rtl.h statistics.h stmt.h varasm.h.
42089         * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
42090         fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
42091         varasm.h.
42092         * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
42093         function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
42094         varasm.h.
42095         * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
42096         fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
42097         varasm.h.
42098         * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
42099         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
42100         * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
42101         function.h real.h statistics.h stmt.h varasm.h.
42102         * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
42103         insn-config.h real.h statistics.h stmt.h.
42104         * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
42105         statistics.h stmt.h.
42106         * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
42107         fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
42108         statistics.h stmt.h varasm.h.
42109         * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
42110         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
42111         * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
42112         flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
42113         * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
42114         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
42115         statistics.h stmt.h varasm.h.
42116         * ipa-polymorphic-call.c: Likewise.
42117         * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
42118         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
42119         statistics.h stmt.h.
42120         * config/c6x/c6x.c: Likewise.
42121         * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
42122         explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
42123         statistics.h stmt.h varasm.h.
42124         * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
42125         fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
42126         stmt.h varasm.h.
42127         * ipa-split.c: Likewise.
42128         * tree-eh.c: Likewise.
42129         * tree-ssa-dce.c: Likewise.
42130         * tree-ssa-loop-niter.c: Likewise.
42131         * tree-vrp.c: Likewise.
42132         * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
42133         expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
42134         stmt.h.
42135         * config/nds32/nds32-fp-as-gp.c: Likewise.
42136         * config/nds32/nds32-intrinsic.c: Likewise.
42137         * config/nds32/nds32-isr.c: Likewise.
42138         * config/nds32/nds32-md-auxiliary.c: Likewise.
42139         * config/nds32/nds32-memory-manipulation.c: Likewise.
42140         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
42141         * config/nds32/nds32-predicates.c: Likewise.
42142         * config/nds32/nds32.c: Likewise.
42143         * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
42144         fixed-value.h hashtab.h real.h statistics.h.
42145         * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
42146         fixed-value.h hashtab.h real.h statistics.h stmt.h.
42147         * config/arm/arm.c: Likewise.
42148         * config/avr/avr.c: Likewise.
42149         * config/bfin/bfin.c: Likewise.
42150         * config/h8300/h8300.c: Likewise.
42151         * config/i386/i386.c: Likewise.
42152         * config/ia64/ia64.c: Likewise.
42153         * config/iq2000/iq2000.c: Likewise.
42154         * config/m32c/m32c.c: Likewise.
42155         * config/m32r/m32r.c: Likewise.
42156         * config/m68k/m68k.c: Likewise.
42157         * config/mcore/mcore.c: Likewise.
42158         * config/mep/mep.c: Likewise.
42159         * config/mips/mips.c: Likewise.
42160         * config/mn10300/mn10300.c: Likewise.
42161         * config/moxie/moxie.c: Likewise.
42162         * config/pa/pa.c: Likewise.
42163         * config/rl78/rl78.c: Likewise.
42164         * config/rx/rx.c: Likewise.
42165         * config/s390/s390.c: Likewise.
42166         * config/sh/sh.c: Likewise.
42167         * config/sparc/sparc.c: Likewise.
42168         * config/spu/spu.c: Likewise.
42169         * config/stormy16/stormy16.c: Likewise.
42170         * config/v850/v850.c: Likewise.
42171         * config/vax/vax.c: Likewise.
42172         * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
42173         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
42174         * config/msp430/msp430.c: Likewise.
42175         * predict.c: Likewise.
42176         * value-prof.c: Likewise.
42177         * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
42178         expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
42179         * config/microblaze/microblaze.c: Likewise.
42180         * config/nios2/nios2.c: Likewise.
42181         * config/rs6000/rs6000.c: Likewise.
42182         * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
42183         insn-config.h real.h rtl.h statistics.h stmt.h.
42184         * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
42185         insn-config.h real.h statistics.h stmt.h.
42186         * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
42187         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
42188         * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
42189         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
42190         * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
42191         fixed-value.h real.h statistics.h stmt.h.
42192         * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
42193         fixed-value.h statistics.h stmt.h.
42194         * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
42195         stmt.h.
42197 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
42199         * gengtype.c (create_user_defined_type): Workaround
42200         -Wmaybe-uninitialized false positives.
42201         * cse.c (fold_rtx): Likewise.
42202         * loop-invariant.c (gain_for_invariant): Likewise.
42204 2015-01-15  Eric Botcazou  <ebotcazou@adacore.com>
42206         * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
42207         set the memory attributes in all cases but clear MEM_EXPR if need be.
42209 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
42211         PR tree-optimization/64434
42212         * cfgexpand.c (reorder_operands): New function.
42213         (expand_gimple_basic_block): Insert call of reorder_operands if
42214         optimized is true.
42216 2015-01-15  Matthew Fortune  <matthew.fortune@imgtec.com>
42218         * config/mips/micromips.md (*swp): Remove explicit parallel.
42219         (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
42220         * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
42221         (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
42222         (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
42223         (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
42224         (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
42225         (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
42226         (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
42227         (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
42228         (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
42229         (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
42230         (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
42231         (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
42232         (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
42233         (mips_wrdsp): Likewise.
42234         * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
42235         parallel.
42236         (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
42237         (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
42238         (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
42239         (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
42240         (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
42241         (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
42242         * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
42243         (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
42244         (ssmaddsqdq4, ssmsubsqdq4): Likewise.
42246 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
42248         * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
42249         (mips_print_operand): Support 'y' to print exact log2 in decimal
42250         of a const_int.
42251         * config/mips/mips.h (ISA_HAS_LSA): New define.
42252         (ISA_HAS_DLSA): Likewise.
42253         * config/mips/mips.md (<GPR:d>lsa): New define_insn.
42254         * config/mips/predicates.md (const_immlsa_operand): New predicate.
42256 2015-01-15  Martin Liska  <mliska@suse.cz>
42258         PR target/64377
42259         * optc-save-gen.awk: Add support for array types.
42261 2015-01-15  Richard Biener  <rguenther@suse.de>
42263         PR middle-end/64365
42264         * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
42265         for MEM_REF access functions with the same base can never partially
42266         overlap.
42268 2015-01-14  Marcos Diaz <marcos.diaz@tallertechnologies.com>
42270         * common.opt: New option -fstack-protector-explicit.
42271         * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
42272         (stack_protect_decl_phase): Handle stack_protect attribute for
42273         explicit stack protection requests.
42274         (expand_used_vars): Similarly.
42275         * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
42276         * doc/extend.texi: Add documentation for "stack_protect" attribute.
42277         * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
42279 2015-01-14  Oleg Endo  <olegendo@gcc.gnu.org>
42281         PR target/53988
42282         * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
42283         reg-reg copies.
42284         (sh_extending_set_of_reg): New struct.
42285         (sh_find_extending_set_of_reg, sh_split_tst_subregs,
42286         sh_remove_reg_dead_or_unused_notes): New Declarations.
42287         * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
42288         sh_find_extending_set_of_reg, sh_split_tst_subregs,
42289         sh_extending_set_of_reg::use_as_extended_reg): New functions.
42290         * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
42291         convert to insn_and_split and use new function sh_split_tst_subregs.
42293 2015-01-14  Sandra Loosemore  <sandra@codesourcery.com>
42295         * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
42296         option.
42297         (Optimization Options): Move -fuse-ld documentation to...
42298         (Link Options): ...here.
42300 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
42302         * config/mips/constraints.md (ZC): Add support for R6 LL/SC
42303         offsets.
42304         (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
42305         * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
42306         (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
42307         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
42308         instead of ZR for the memory operand of LL/SC.
42309         (compare_and_swap_12, sync_add<mode>): Likewise.
42310         (sync_<optab>_12, sync_old_<optab>_12): Likewise.
42311         (sync_new_<optab>_12, sync_nand_12): Likewise.
42312         (sync_old_nand_12, sync_new_nand_12): Likewise.
42313         (sync_sub<mode>, sync_old_add<mode>): Likewise.
42314         (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
42315         (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
42316         (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
42317         (sync_nand<mode>, sync_old_nand<mode>): Likewise.
42318         (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
42319         (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
42320         (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
42321         * doc/md.texi (ZC): Update description.
42323 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
42325         * builtins.c (expand_builtin_atomic_exchange): Remove error when
42326         memory model is CONSUME.
42327         (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
42328         expand_builtin_atomic_store): Change invalid memory model errors to
42329         warnings.
42330         (expand_builtin_atomic_clear): Change invalid model errors to warnings
42331         and issue warning for CONSUME.
42333 2015-01-14  Aldy Hernandez  <aldyh@redhat.com>
42335         * lto-cgraph: Update function comments for
42336         lto_symtab_encoder_encode_*.
42338 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
42340         * Makefile.in (site.exp): Do not set ENABLE_LTO.
42342 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
42344         * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
42345         * lto-cgraph.c (select_what_to_stream): Remove argument, use
42346         lto_stream_offload_p instead.
42347         * lto-streamer.h (select_what_to_stream): Remove argument.
42348         * passes.c (ipa_write_summaries): Likewise.
42349         * tree-pass.h (ipa_write_summaries): Likewise.
42351 2015-01-14  Richard Biener  <rguenther@suse.de>
42353         PR tree-optimization/59354
42354         * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
42355         groups larger than the slp group size as having gaps.
42357 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
42359         PR middle-end/59448
42360         * builtins.c (get_memmodel): Promote consume to acquire always.
42362 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
42364         PR target/64386
42365         * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
42366         V32HImode.
42368 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
42370         PR target/64393
42371         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
42372         Enable AVX512BW.
42373         (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
42374         * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
42375         AVX512VBMI, as it implies AVX512BW.
42377 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
42379         PR target/64387
42380         * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
42381         (vec_unpacks_hi_v16sf): Ditto.
42383 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
42385         * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
42386         is not available.
42388 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
42390         * doc/invoke.texi (mapcs): Mention deprecation.
42391         (mapcs-frame): Likewise.
42393 2015-01-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
42395         PR target/64453
42396         * config/arm/arm.c (callee_saved_reg_p): Define.
42397         (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
42398         register is callee saved instead of !call_used_regs[reg].
42399         (thumb1_compute_save_reg_mask): Likewise.
42401 2015-01-14  Hale Wang  <hale.wang@arm.com>
42403         * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
42404         Cortex-M7.
42406 2015-01-14  Richard Biener  <rguenther@suse.de>
42408         PR lto/64415
42409         * tree-inline.c (insert_debug_decl_map): Check destination
42410         function MAY_HAVE_DEBUG_STMTS.
42411         (insert_init_debug_bind): Likewise.
42412         (insert_init_stmt): Remove redundant check.
42413         (remap_gimple_stmt): Drop debug stmts if the destination
42414         function has var-tracking assignments disabled.
42416 2015-01-14  Martin Liska  <mliska@suse.cz>
42418         * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
42419         IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
42421 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
42423         PR target/64460
42424         * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
42425         (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
42427 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
42429         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
42430         level from an ARCH; do not inject the default.
42431         (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
42432         MIPS_ISA_LEVEL_SPEC.
42433         (MIPS_ISA_NAN2008_SPEC): Update comment.
42434         (BASE_DRIVER_SELF_SPECS): Likewise.
42435         * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
42436         MIPS_DEFAULT_ISA_LEVEL_SPEC.
42437         * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
42438         * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
42439         * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
42441 2015-01-14  Richard Biener  <rguenther@suse.de>
42443         PR tree-optimization/64493
42444         PR tree-optimization/64495
42445         * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
42446         assign the proper vectorized PHI to the inner loop exit PHIs.
42448 2015-01-14  Joey Ye  <joey.ye@arm.com>
42450         * config/arm/arm.c (arm_compute_save_reg_mask):
42451         Do not save lr in case of tail call.
42452         * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
42454 2015-01-14  Martin Uecker <uecker@eecs.berkeley.edu>
42456         * tree-vrp.c (check_array_ref): Emit more warnings
42457         for warn_array_bounds >= 2.
42458         * common.opt: New option -Warray-bounds=.
42459         * doc/invoke.texi: Document -Warray-bounds=.
42461 2015-01-14  Chung-Ju Wu  <jasonwucj@gmail.com>
42463         * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
42464         (mforbid-fp-as-gp): Remove.
42465         (mex9): Remove.
42466         * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
42467         (nds32_symbol_load_store_p): Remove.
42468         (nds32_fp_as_gp_check_available): Clean up implementation.
42469         * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
42470         cases.
42471         * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
42472         fp-as-gp and ex9 cases.
42474 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
42476         * tree-profile.c (init_ic_make_global_vars): Drop workaround
42477         for bintuils bug 14342.
42478         (init_ic_make_global_vars): Likewise.
42479         (gimple_init_edge_profiler): Likewise.
42480         (gimple_gen_ic_func_profiler): Likewise.
42482 2015-01-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
42484         * ipa-inline.c (inline_small_functions): Swap the operands in
42485         enum.
42487 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
42489         PR ipa/64481
42490         * ipa-inline-analysis.c (node_growth_cache): Remove.
42491         (initialize_growth_caches): Do not initialize it.
42492         (free_growth_caches): Do not free it.
42493         (do_estimate_growth): Rename to ...
42494         (estimate_growth): ... this one; drop growth cache code.
42495         (growth_likely_positive): Always go the heuristics way.
42496         * ipa-inline.c (can_inline_edge_p): Walk through aliases.
42497         (reset_edge_caches): Do not reset node growth.
42498         (heap_edge_removal_hook): Do not maintain cache.
42499         (inline_small_functions): Likewise; strenghten sanity check.
42500         (ipa_inline): Do not maintain caches.
42501         * ipa-inline.h (node_growth_cache): Remove.
42502         (do_estimate_growth): Remove to ...
42503         (estimate_growth): this one; remove inline version.
42504         (reset_node_growth_cache): Remove.
42506 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
42508         PR ipa/64565
42509         * ipa-inline.c (inline_small_functions): Update callee keys after
42510         resolving speculation
42511         (inline_small_functions): Always check monotonicity of the queue.
42513 2015-01-13  Marek Polacek  <polacek@redhat.com>
42515         PR middle-end/64391
42516         * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
42518 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
42520         PR rtl-optimization/64286
42521         * ree.c (combine_reaching_defs): Move part of comment earlier,
42522         remove !SCALAR_INT_MODE_P check.
42523         (add_removable_extension): Don't add vector mode
42524         extensions if all uses of the source register aren't the same
42525         vector extensions.
42527 2015-01-13  Renlin Li  <renlin.li@arm.com>
42529         * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
42530         (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
42532 2015-01-13  Martin Liska  <mliska@suse.cz>
42534         * ipa-icf.c (sem_function::equals_private): Call new functions
42535         cl_target_option_print_diff and cl_optimization_print_diff.
42536         * optc-save-gen.awk (cl_target_option_print_diff): New function.
42537         (cl_optimization_print_diff): Likewise.
42538         * opth-gen.awk: Likewise.
42540 2015-01-13  Richard Sandiford  <richard.sandiford@arm.com>
42542         * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
42543         (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
42544         (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
42545         (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
42546         (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
42547         (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
42549 2015-01-13  Andrew Pinski  <apinski@cavium.com>
42551         * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
42552         instead of src mode.
42554 2015-01-13  Richard Biener  <rguenther@suse.de>
42556         PR lto/64373
42557         * lto-streamer-out.c (tree_is_indexable): Guard for NULL
42558         DECL_CONTEXT.
42560 2015-01-13  Andrew Pinski  <apinski@cavium.com>
42562         * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
42563         volatile mems.
42564         (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
42566 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
42568         PR middle-end/63974
42569         * cfgexpand.c (expand_computed_goto): Don't call
42570         convert_memory_address here.
42572 2015-01-13  Richard Biener  <rguenther@suse.de>
42574         PR tree-optimization/64406
42575         * tree-loop-distibution.c (pass_loop_distribution::execute):
42576         Reset the SCEV hashtable if we distributed anything.
42578 2015-01-13  Richard Biener  <rguenther@suse.de>
42580         PR tree-optimization/64404
42581         * tree-vect-stmts.c (vectorizable_load): Reject conflicting
42582         SLP types for CSEd loads.
42584 2015-01-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
42586         PR tree-optimization/64436
42587         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
42588         merge of two symbolic numbers for a bitwise OR to ...
42589         (perform_symbolic_merge): This. Also fix computation of the range and
42590         end of the symbolic number corresponding to the result of a bitwise OR.
42592 2015-01-13  Richard Biener  <rguenther@suse.de>
42594         PR tree-optimization/64568
42595         * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
42596         release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
42598 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
42600         * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
42601         TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
42603 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
42605         * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
42606         target-specific symbol_ref flag.
42607         (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
42608         resides in rodata section.
42609         * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
42610         (nds32_encode_section_info): New function.
42612 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
42614         * config/nds32/nds32.md (call): Use pseudo instruction bal which
42615         clobbers TA_REGNUM if large code model is specified.
42616         (call_register): Likewise.
42617         (call_immediate): Likewise.
42618         (call_value): Likewise.
42619         (call_value_register): Likewise.
42620         (call_value_immediate): Likewise.
42622 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
42624         * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
42625         (TARGET_CMODEL_MEDIUM): New macro.
42626         (TARGET_CMODEL_LARGE): New macro.
42627         * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
42628         code model setting in assembly code.
42630 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
42632         * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
42633         Remove MASK_GP_DIRECT flag.
42634         * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
42635         one of the multilib default options.
42636         * config/nds32/nds32.opt (mgp-direct): Remove.
42637         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
42638         -mgp-direct.  We also remove unnecessary -mlittle-endian/-mbig-endian.
42640 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
42642         * config/nds32/nds32.opt (mcmodel): Add new option.
42643         * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
42644         to describe code model.
42646 2015-01-13  Oleg Endo  <olegendo@gcc.gnu.org>
42648         PR target/64479
42649         * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
42651 2015-01-12  Kaz Kojima  <kkojima@gcc.gnu.org>
42653         * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
42654         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
42655         (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
42656         (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
42657         __builtin_sh_set_fpscr.
42659 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
42661         * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
42662         after a funtion name just to indicate it is a function.
42663         ([-fsanitize-undefined-trap-on-error]): Likewise.
42664         ([-fdbg-cnt=]): Likewise.
42665         ([-mmemcpy]): Likewise.
42666         ([-mflush-func]): Likewise.
42667         ([-msynci]): Likewise.
42669 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
42671         * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
42672         example.
42674 2015-01-12  Jakub Jelinek  <jakub@redhat.com>
42676         PR tree-optimization/64563
42677         * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
42678         instead of != VR_VARYING.
42680         PR target/64513
42681         * config/i386/i386.c (ix86_expand_prologue): Add
42682         REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
42684         PR tree-optimization/64454
42685         * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
42686         op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
42687         for signed or [0, op1 - 1] for unsigned modulo.
42688         (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
42689         even if op1 does not satisfy integer_pow2p.
42691         PR other/64370
42692         * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
42694 2015-01-12  Jeff Law  <law@redhat.com>
42696         PR target/64461
42697         * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
42698         (trunchiqi2, truncsihi2): Similarly.
42700         * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
42701         rather than calling F.
42703 2015-01-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
42705         * tsan.c (instrument_expr): Use force_gimple_operand.
42706         Use may_be_nonaddressable_p instead of is_gimple_addressable.
42708 2015-01-12  Richard Biener  <rguenther@suse.de>
42710         PR tree-optimization/64530
42711         * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
42712         back dr1.
42714 2015-01-12  Richard Biener  <rguenther@suse.de>
42716         PR middle-end/64357
42717         * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
42718         latches properly.
42720 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
42722         * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
42723         Cortex-A17 tuning parameters.
42724         * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
42726 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
42728         * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
42729         * config/arm/arm.c (arm_macro_fusion_p): New function.
42730         (arm_macro_fusion_pair_p): Likewise.
42731         (TARGET_SCHED_MACRO_FUSION_P): Define.
42732         (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
42733         (ARM_FUSE_NOTHING): Likewise.
42734         (ARM_FUSE_MOVW_MOVT): Likewise.
42735         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
42736         arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
42737         arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
42738         arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
42739         arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
42740         arm_cortex_a5_tune): Specify fuseable_ops value.
42742 2015-01-12  H.J. Lu  <hongjiu.lu@intel.com>
42744         PR bootstrap/64561
42745         * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
42746         test for PIE with copy reloc.
42747         * configure: Regenerated.
42749 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
42751         * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
42752         in gen_rtx_REG.
42753         (arm_tls_descseq_addr): Likewise.
42754         (arm_gen_movmemqi): Likewise.
42755         (arm_expand_epilogue_apcs_frame): Likewise.
42756         (arm_expand_epilogue): Likewise.
42757         (arm_expand_prologue): Likewise.  Use R1_REGNUM instead of constant 1
42758         in gen_rtx_REG.
42760 2015-01-12  Martin Liska  <mliska@suse.cz>
42762         PR ipa/64550
42763         * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
42764         volatility for correct operands.
42766 2015-01-12  Martin Liska  <mliska@suse.cz>
42768         * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
42769         indication that a function is not leaf.
42770         (sem_function::compare_polymorphic_p): Likewise.
42772 2015-01-12  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
42774         * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
42775         machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
42776         fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
42777         fold-const.h, tree-check.h.
42779 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
42781         PR ipa/63967
42782         PR ipa/64425
42783         * ipa-inline.c (compute_uninlined_call_time,
42784         compute_inlined_call_time): Use counts for extra precision when
42785         needed possible.
42786         (big_speedup_p): Fix formating.
42787         (RELATIVE_TIME_BENEFIT_RANGE): Remove.
42788         (relative_time_benefit): Remove.
42789         (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
42790         merge guessed and read profile paths.
42791         (inline_small_functions): Count only !optimize_size functions into
42792         initial size; be more lax about sanity check when profile is used;
42793         be sure to update inlined function profile when profile is read.
42795 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
42797         PR ipa/63470
42798         * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
42799         cost when edge becomes direct.
42800         * ipa-prop.c (make_edge_direct): Do not adjust when speculation
42801         is resolved or when introducing new speculation.
42803 2015-01-12  Chen Gang  <gang.chen.5i5j@gmail.com>
42805         PR ipa/64551
42806         PR ipa/64552
42807         * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
42808         '||' to fix typo issue.
42810         * tree.h (target_opts_for_fn): Check NULL_TREE since it can
42811         accept and return NULL.
42813 2015-01-12  Martin Liska  <mliska@suse.cz>
42815         * cgraph.c (cgraph_edge::remove_callee): Move function to header
42816         file for being inlined.
42817         (cgraph_set_edge_callee): Delete.
42818         (cgraph_edge::redirect_callee): Move function to header file
42819         for being inlined.
42820         (cgraph_edge::make_direct): Use new function.
42821         (cgraph_edge::dump_edge_flags): New function created from
42822         static dump_edge_flags function.
42823         (cgraph_node::dump): Use new function.
42824         (cgraph_edge::verify_count_and_frequency): New function created
42825         from verify_edge_count_and_frequency.
42826         (cgraph_edge::verify_corresponds_to_fndecl): New function created
42827         from verify_edge_corresponds_to_fndecl.
42828         (verify_edge_corresponds_to_fndecl): Delete.
42829         (cgraph_node::verify_node): Use new function.
42830         * cgraph.h (cgraph_edge::set_callee): New function.
42831         (cgraph_edge::dump_edge_flags): Likewise.
42832         (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
42834 2015-01-11  Jan Hubicka  <hubicka@ucw.cz>
42836         * ipa-utils.c (estimate_function_body_sizes): Do not
42837         free node params when called late with early=true.
42839 2015-01-11  James Greenhalgh  <james.greenhalgh@arm.com>
42841         * doc/md.texi (Instruction Patterns): Rewrite text for
42842         clarity.
42843         (Example): Likewise.
42845 2015-01-10  Sandra Loosemore  <sandra@codesourcery.com>
42847         * doc/invoke.texi (Option Summary): Break long lines.
42848         [(-fdiagnostics-color)]: Put long literal in @smallexample
42849         instead of inline.
42850         [(-fsanitize-recover)]: Likewise.
42851         [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
42852         [(-ffast-math)]: Likewise.
42853         [(--param max-inline-insns-recursive)]: Likewise.
42854         [(--param max-inline-recursive-depth)]: Likewise.
42855         [(-mno-text-section-literals)]: Likewise.
42857 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
42859         * doc/install.texi: Update for libgomp being renamed from "GNU
42860         OpenMP Runtime Library" to "GNU Offloading and Multi Processing
42861         Runtime Library".
42862         * doc/sourcebuild.texi: Likewise.
42864 2015-01-10  Anthony Green  <green@moxielogic.com>
42866         * config/moxie/moxie.c (moxie_option_override): Fix forcing of
42867         mul.x availability for moxiebox configuration.
42869 2015-01-09  Anthony Green  <green@moxielogic.com>
42871         * config/moxie/moxie.md: Tabify assembly output.
42873 2015-01-09  Anthony Green  <green@moxielogic.com>
42875         * config/moxie/moxie.md (CC_REG): Correct register definition.
42877 2015-01-09  Sandra Loosemore  <sandra@codesourcery.com>
42879         * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
42880         ([-fvtv-debug], [-fvtv-counts]): Likewise.  Correct location
42881         of log files.
42883 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
42885         * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
42887 2015-01-09  Bernd Schmidt  <bernds@codesourcery.com>
42888             Jakub Jelinek  <jakub@redhat.com>
42890         PR middle-end/64412
42891         * lto-streamer.h (lto_stream_offload_p): New declaration.
42892         * lto-streamer.c (lto_stream_offload_p): New variable.
42893         * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
42894         at the same time as section_name_prefix.
42895         * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
42896         if lto_stream_offload_p.
42897         * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
42898         stream TREE_TARGET_OPTION if lto_stream_offload_p.
42899         (write_ts_function_decl_tree_pointers): Don't
42900         stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
42901         * tree-streamer-in.c (unpack_value_fields): Don't stream
42902         TREE_TARGET_OPTION in if ACCEL_COMPILER.
42903         (lto_input_ts_function_decl_tree_pointers): Don't stream
42904         DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
42905         * lto-opts.c (lto_write_options): Use lto_stream_offload_p
42906         instead of section_name_prefix string comparisons.
42908 2015-01-09  Jakub Jelinek  <jakub@redhat.com>
42910         PR rtl-optimization/64536
42911         * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
42912         tablejumps.
42914 2015-01-09  Michael Collison  <michael.collison@linaro.org>
42916         PR tree-optimization/64322
42917         * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
42918         range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
42920 2015-01-09  Tom de Vries  <tom@codesourcery.com>
42922         PR rtl-optimization/64539
42923         * regcprop.c (kill_clobbered_values): Factor out of ...
42924         (copyprop_hardreg_forward_1): ... here.  Use kill_clobbered_values
42925         instead of note_stores with kill_clobbered_value.
42927 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
42929          * ginclude/unwind-arm-common.h: Revert previous commit.
42931 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
42933         * config.gcc (arm*-*-freebsd*): New configuration.
42934         * config/arm/freebsd.h: New file.
42935         * config.host: Add extra components for arm*-*-freebsd*.
42936         * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
42937         * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
42939 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
42941         * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
42942         for -mcpu=e6500.
42943         * config/rs6000/t-rtems: Add e6500 multilibs.
42945 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
42947         * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
42948         MPC8540.
42950 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
42952         * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
42953         MULTILIB_EXCEPTIONS.
42955 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
42957         * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
42958         MULTILIB_EXCEPTIONS.
42960 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
42962         * config/arm/t-rtems-eabi: Rename to...
42963         * config/arm/t-rtems: ...this.
42964         * config/arm/rtems-eabi.h: Rename to...
42965         * config/arm/rtems.h: ...this.
42966         * config.gcc (arm*-*-rtems*): Reflect changes above.
42968 2015-01-09  Richard Biener  <rguenther@suse.de>
42970         PR tree-optimization/64410
42971         * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
42972         on the LHS.
42973         (execute_update_addresses_taken): Deal with that.
42974         * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
42975         loads/stores for complex variables.
42977 2015-01-09  Martin Liska  <mliska@suse.cz>
42979         * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
42980         name comparison.
42981         (func_checker::compare_memory_operand): New function.
42982         (func_checker::compare_operand): Split case to newly
42983         added functions.
42984         (func_checker::compare_cst_or_decl): New function.
42985         (func_checker::compare_gimple_call): Identify
42986         memory operands.
42987         (func_checker::compare_gimple_assign): Likewise.
42988         * ipa-icf-gimple.h: New function.
42990 2015-01-09  Martin Liska  <mliska@suse.cz>
42992         PR ipa/64503
42993         * sreal.c (sreal::dump): Change unsigned format to signed for
42994         m_exp value.
42995         (sreal::to_double): Replace exp2 with scalbln.
42997 2015-01-09  Martin Liska  <mliska@suse.cz>
42999         * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
43000         * ipa-icf.c (sem_function::equals_private): Add support for target and
43001         (sem_item_optimizer::merge_classes): Remove redundant function
43002         optimization flags comparison.
43003         * tree.h (target_opts_for_fn): New function.
43005 2015-01-09  Tom de Vries  <tom@codesourcery.com>
43007         * omp-low.c (expand_omp_for_static_chunk): Fix assert.
43009 2015-01-09  Kito Cheng  <kito@0xlab.org>
43011         PR rtl-optimization/64348
43012         * lra-constraints.c (split_reg): Fix caller-save store/restore
43013         instruction generation.
43015 2015-01-08  John David Anglin  <danglin@gcc.gnu.org>
43017         PR gcov-profile/61790
43018         * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
43019         long long.  Fallback to int64_t if host doesn't have long long and
43020         use strtol if int64_t is long.  Otherwise, use sscanf for conversion.
43022 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
43024         PR tree-optimization/63989
43025         * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
43026         from 1000 to 10000.
43027         * tree-ssa-strlen.c (get_strinfo): Moved earlier.
43028         (get_stridx): If we don't have a record for certain SSA_NAME,
43029         but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
43030         constant offset, call get_stridx_plus_constant.
43031         (get_stridx_plus_constant): New function.
43032         (zero_length_string): Don't use get_stridx here.
43034         PR target/55023
43035         PR middle-end/64388
43036         * dse.c (struct insn_info): Mention frame_read set also
43037         before reload for tail calls on some targets.
43038         (scan_insn): Revert 2014-12-22 change.  Set frame_read
43039         also before reload for tail calls if
43040         HARD_FRAME_POINTER_IS_ARG_POINTER.  Call add_wild_read
43041         instead of add_non_frame_wild_read for non-const/memset
43042         tail calls after reload.
43044 2015-01-08  Jason Merrill  <jason@redhat.com>
43046         * ubsan.c (do_ubsan_in_current_function): New.
43047         (pass_ubsan::gate): Use it.
43048         * ubsan.h: Declare it.
43049         * convert.c (convert_to_integer): Use it.
43051 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
43053         PR target/64338
43054         * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
43055         compare_code when it is unconditionally overwritten afterwards.
43056         Use ix86_reverse_condition instead of reverse_condition.  Don't
43057         change code if *reverse_condition* returned UNKNOWN and don't
43058         swap ct/cf and negate diff in that case.
43060 2015-01-08  Mike Stump  <mikestump@comcast.net>
43062         * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
43063         (pass_tsan_O0::gate): Likewise.
43064         * extend.texi (Function Attributes): Add no_sanitize_thread
43065         documentation.
43067 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
43069         * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
43070         for registering builtins.
43071         * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
43072         add -fopenmp to the argv_obstack used when invoking
43073         compile_for_target.
43075         * config/i386/intelmic-mkoffload.c (compile_for_target): Always
43076         add "-m32" or "-m64" to argv_obstack.
43077         (generate_host_descr_file): Likewise, when invoking host_compiler.
43078         (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
43079         ld.
43081 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
43083         * config/sh/sh-mem.cc: Use constant as second operand when emitting
43084         tstsi_t insns.
43086 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
43088         PR target/55212
43089         * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
43090         constant load if constant operand fits into I08.
43092 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
43094         PR sanitizer/64336
43095         * tree.c (build2_stat): Fix up initialization of TREE_READONLY
43096         and TREE_THIS_VOLATILE for MEM_REFs.
43097         (build5_stat): Fix up initialization of TREE_READONLY and
43098         TREE_THIS_VOLATILE for TARGET_MEM_REFs.
43100 2015-01-08  Kaz Kojima  <kkojima@gcc.gnu.org>
43102         PR target/64533
43103         * config/sh/sh.md (*addsi3_compact): Use u constraint instead
43104         of r for the second alternative of the destination operand.
43106 2015-01-07  Segher Boessenkool  <segher@kernel.crashing.org>
43108         PR target/36557
43109         * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
43111 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
43113         * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
43114         keywords.
43115         ([-fivar-visibility], [-fvisibility]): Likewise.
43117 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
43119         * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
43120         the file where @code, @command, etc is more appropriate.
43122 2015-01-06  Sandra Loosemore  <sandra@codesourcery.com>
43124         * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
43125         of -mrecip= documentation.
43127 2015-01-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
43129         PR target/64505
43130         * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
43131         correct reload handler if -m32 -mpowerpc64 is used.
43133 2015-01-06  Tom de Vries  <tom@codesourcery.com>
43135         * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
43137 2015-01-08  Christian Bruel  <christian.bruel@st.com>
43139         PR target/64507
43140         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
43142 2015-01-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
43144         PR tree-optimization/63259
43145         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
43146         if optab exists for 16bit byteswap.
43148 2015-01-06  Jakub Jelinek  <jakub@redhat.com>
43150         * opts.c (common_handle_option): Add support for
43151         -fno-sanitize=all and -f{,no-}sanitize-recover=all.
43152         * doc/invoke.texi: Document -fno-sanitize=all,
43153         -f{,no-}sanitize-recover=all.  Document that
43154         -fsanitize=float-cast-overflow is not enabled
43155         by -fsanitize=undefined.  Fix up documentation
43156         of -f{,no-}sanitize-recover.
43158 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
43160         * config.gcc: Add Visium support.
43161         * configure.ac: Likewise.
43162         * configure: Regenerate.
43163         * doc/extend.texi (interrupt attribute): Add Visium.
43164         * doc/invoke.texi: Document Visium options.
43165         * doc/install.texi: Document Visium target.
43166         * doc/md.texi: Document Visium constraints.
43167         * common/config/visium: New directory.
43168         * config/visium: Likewise.
43170 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
43172         * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
43173         for the "(and X (ior (not X) Y) -> (and X Y)" transform.
43175 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
43177         * combine.c (combine_validate_cost): Do not count the cost of a
43178         split I2 twice.  Do not display it twice in the dump, either.
43180 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
43182         Revert parts of r219199.
43183         * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
43184         <inttypes.h>.
43185         ([-Wtraditional]): Restore markup on <limits.h>.
43187 2015-01-05  Trevor Saunders  <tsaunders@mozilla.com>
43189         PR c++/31397
43190         * doc/invoke.texi: Document -Wsuggest-override.
43192 2015-01-05  Radovan Obradovic  <radovan.obradovic@imgtec.com>
43194         PR rtl-optimization/64287
43195         * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
43196         (process_options): Disable flag_ipa_ra if profiling.
43198 2015-01-05  Eric Botcazou  <ebotcazou@adacore.com>
43200         * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
43202 2015-01-05  Max Filippov  <jcmvbkbc@gmail.com>
43204         * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
43205         hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
43206         put under #if TARGET_LOOPS guard.
43208 2015-01-05  Uros Bizjak  <ubizjak@gmail.com>
43210         * config/i386/i386.c (output_387_binary_op): Use std::swap.
43212 2015-01-05  Oleg Endo  <olegendo@gcc.gnu.org>
43214         * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
43215         * rtl.h (refers_to_regno_p): Add overload.
43216         * cse.c: Use it.
43217         * bt-load.c: Likewise.
43218         * combine.c: Likewise.
43219         * df-scan.c: Likewise.
43220         * sched-deps.c: Likewise.
43221         * config/s390/s390.c: Likewise.
43222         * config/m32r/m32r.c: Likewise.
43223         * config/rs6000/spe.md: Likewise.
43224         * config/rs6000/rs6000.c: Likewise.
43225         * config/pa/pa.c: Likewise.
43226         * config/stormy16/stormy16.c: Likewise.
43227         * config/cris/cris.c: Likewise.
43228         * config/arc/arc.md: Likewise.
43229         * config/arc/arc.c: Likewise.
43230         * config/sh/sh.md: Likewise.
43231         * config/sh/sh.c: Likewise.
43232         * config/frv/frv.c: Likewise.
43234 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
43236         PR sanitizer/64265
43237         * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
43238         call as cleanup of the whole body.
43239         * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
43240         * tsan.c (replace_func_exit): New function.
43241         (instrument_func_exit): Moved earlier.
43242         (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
43243         Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
43244         been found.
43245         (tsan_pass): Don't call instrument_func_exit.
43246         * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
43247         * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
43248         inlining.
43250         PR sanitizer/64344
43251         * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
43252         * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
43253         it to libubsan handler instead of EXPR.  Fold comparisons earlier,
43254         if the result is integer_zerop, return NULL_TREE.
43255         * convert.c (convert_to_integer): Pass expr as ARG.
43257         PR tree-optimization/64465
43258         * tree-inline.c (redirect_all_calls): During inlining
43259         clean up EH stmts and EH edges if redirect_call_stmt_to_callee
43260         changed the stmt to a non-throwing call.
43262 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
43264         * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
43265         etc markup throughout the file.
43267 2015-01-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
43269         Enable experimental TSAN support for Ada.
43270         * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
43272 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
43274         PR tree-optimization/64494
43275         * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
43276         clear SSA_NAME_ANTI_RANGE_P flag.
43278 2015-01-05  Marek Polacek  <polacek@redhat.com>
43280         * doc/extend.texi (Arrays of Length Zero): Add missing comma.
43282 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
43284         Update copyright years.
43286         * gcc.c (process_command): Update copyright notice dates.
43287         * gcov-dump.c: Ditto.
43288         * gcov.c: Ditto.
43289         * doc/cpp.texi: Bump @copying's copyright year.
43290         * doc/cppinternals.texi: Ditto.
43291         * doc/gcc.texi: Ditto.
43292         * doc/gccint.texi: Ditto.
43293         * doc/gcov.texi: Ditto.
43294         * doc/install.texi: Ditto.
43295         * doc/invoke.texi: Ditto.
43297         * auto-profile.c, auto-profile.h: Fix up Copyright line.
43299 2015-01-04  Sandra Loosemore  <sandra@codesourcery.com>
43301         * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
43302         verb tense, etc.
43303         ([-fvtable-verify], [-fvtv-debug]): Likewise.
43304         ([-Wabi]): Likewise.
43305         ([-fmessage-length]): Likewise.
43306         ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
43307         ([-Wno-discarded-qualifiers]): Likewise.
43308         ([-Wnodiscarded-array-qualifiers]): Likewise.
43309         ([-Wno-virtual-move-assign]): Likewise.
43310         ([-fsanitize=address], [-fsanitize=thread]): Likewise.
43311         ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
43312         ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
43313         ([-fsanitize-undefined-trap-on-error]): Likewise.
43314         ([-floop-interchange]): Likewise.
43315         ([-ftree-coalesce-inlined-vars]): Likewise.
43316         ([-fvect-cost-model]): Likewise.
43317         ([-flto]): Likewise.
43318         ([--param]): Likewise.
43319         (Spec Files): Likewise.
43320         ([-mstrict-align]): Likewise.
43321         ([-mfix-cortex-a53-835769]): Likewise.
43322         ([-march], [-mtune]): Likewise.
43323         ([-mpic-register]): Likewise.
43324         ([-munaligned-access]): Likewise.
43325         ([-msp8]): Likewise.
43326         (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
43327         (AVR Built-in Macros): Likewise.
43328         ([-mpreferred-stack-boundary]): Likewise.
43329         ([-mtune-crtl]): Likewise.
43330         ([-mashf]): Likewise.
43331         ([-mmcu=]): Likewise.
43332         ([-minrt]): Likewise.
43333         ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
43334         ([-mupper-regs]): Likewise.
43335         ([-matomic-model]): Likewise.
43336         ([-mdiv]): Likewise.
43337         ([-mzdcbranch]): Likewise.
43338         ([-mdisable-callt]): Likewise.
43339         ([-msoft-float]): Likewise.
43340         ([-m8byte-align]): Likewise.
43341         ([-fstack-reuse]): Likewise.
43343 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
43345         * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
43346         Fix markup, light copy-editing.
43347         ([-fauto-profile]): Rewrite to fix formatting and content
43348         problems.
43350 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
43352         * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
43353         Copy-edit description.
43354         ([-fisolate-erroneous-paths-attribute]): Likewise.
43355         * common.opt (fisolate-erroneous-paths-dereference):
43356         Copy-edit description.
43357         (fisolate-erroneous-paths-attribute): Likewise.
43359 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
43361         * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
43362         tidy grammar.
43364 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
43366         * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
43367         ([-fvtv-debug]): Likewise.
43368         ([-Wc++-compat]): Likewise.
43369         ([-Wc++11-compat]): Likewise.
43370         ([-Wc++14-compat]): Likewise.
43371         ([-Wno-sized-deallocation]): Likewise.
43372         ([-femit-class-debug-always]): Likewise.
43373         ([-femit-struct-debug-detailed]): Likewise.
43374         ([-fno-keep-inline-dllexport]): Likewise.
43375         ([-fira-algorithm]): Likewise.
43376         ([-fira-region]): Likewise.
43377         ([-flra-remat]): Likewise.
43378         ([-fipa-ra]): Likewise.
43379         ([-fhoist-adjacent-loads]): Likewise.
43380         ([-fisolate-erroneous-paths-dereference]): Likewise.
43381         ([-fisolate-erroneous-paths-attribute]): Likewise.
43382         ([-ftree-switch-conversion]): Likewise.
43383         ([-ftree-tail-merge]): Likewise.
43384         ([-ftree-loop-if-convert]): Likewise.
43385         ([-ftree-loop-if-convert-stores]): Likewise.
43386         ([-ftree-loop-distribution]): Likewise.
43387         ([-ftree-loop-distribute-patterns]): Likewise.
43388         ([-flto-compression-level]): Likewise.
43389         ([-flto-report]): Likewise.
43390         ([-flto-report-wpa]): Likewise.
43391         ([-fuse-linker-plugin]): Likewise.
43392         ([-mfix-cortex-a53-835769]): Likewise.
43393         ([-mno-fix-cortex-a53-835769]): Likewise.
43394         ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
43395         explicit listing; add a note to the discussion indicating they
43396         exist.  Reorder table to group similar options.  Add missing
43397         @opindex entries.  Add @need commands throughout the table to
43398         allow it to be split across multiple pages.
43399         ([-m8bit-idiv]): Fix @opindex.
43400         ([-mavx256-split-unaligned-load]): Likewise.
43401         ([-mavx256-split-unaligned-store]): Likewise.
43402         ([-mstack-protector-guard]): Likewise.
43403         ([-mcpu=]): Likewise.
43404         ([-mcpu]): Likewise.
43405         ([-mpointer-size=]): Likewise.
43407 2015-01-03  John David Anglin  <danglin@gcc.gnu.org>
43409         * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
43410         instead of `m' constraint.  Likewise for unnamed movb comparison
43411         patterns using reg_before_reload_operand predicate.
43412         * config/pa/predicates.md (reg_before_reload_operand): Tighten
43413         predicate to reject register index and LO_SUM DLT memory forms
43414         after reload.
43416 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
43418         * doc/invoke.texi (Option Summary): Fix spelling of
43419         -fdevirtualize-at-ltrans.
43420         ([-fdevirtualize]): Fix markup.
43421         ([-fdevirtualize-speculatively]): Fix typo.
43422         ([-fdevirtualize-at-ltrans]): Likewise.  Make description less
43423         implementor-speaky.
43424         * common.opt (fdevirtualize-at-ltrans): Likewise.
43425         * ipa-devirt.c: Fix typos in comments throughout the file.
43426         (ipa_devirt): Fix typos in format strings for dump output.
43428 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
43430         * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
43431         discussion of defaults, light copy-editing.
43433 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
43435         * tsan.c (instrument_expr): corrected previous checkin.
43437 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
43439         Instrument bit field and unaligned accesses for TSAN.
43440         * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
43441         (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
43442         * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
43443         Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
43444         unaligned memory regions.
43446 2015-01-01  Anthony Green  <green@moxielogic.com>
43448         * config/moxie/predicates.md (moxie_general_movsrc_operand):
43449         Restrict move source register offsets to 16 bits.
43451 Copyright (C) 2015 Free Software Foundation, Inc.
43453 Copying and distribution of this file, with or without modification,
43454 are permitted in any medium without royalty provided the copyright
43455 notice and this notice are preserved.