1 2015-12-13 Alexandre Oliva <aoliva@redhat.com>
4 * var-tracking.c (reverse_op): Don't add dummy zero to reverse
5 ops that simplify back to the original value.
6 * alias.c (refs_newer_value_p): Cut off recursion for
7 expressions containing the original value.
9 2015-12-13 Kazu Kirata <kazu@gcc.gnu.org>
11 * config/m68k/m68k.md (load feeding clear byte): New peephole2.
13 2015-12-13 Tom de Vries <tom@codesourcery.com>
15 * tree-ssa-structalias.c (find_func_clobbers): Handle sizes and kinds
16 parameters of GOACC_paralllel.
18 2015-12-10 Jan Hubicka <hubicka@ucw.cz>
20 * cgraph.c (cgraph_node::get_untransformed_body): Pass compressed
21 flag to lto_get_section_data.
22 * varpool.c (varpool_node::get_constructor): Likewise.
23 * lto-section-in.c (lto_get_section_data): Add new flag decompress.
24 (lto_free_section_data): Likewise.
25 (lto_get_raw_section_data): New function.
26 (lto_free_raw_section_data): New function.
27 (copy_function_or_variable): Copy sections w/o decompressing.
28 (lto_output_decl_state_refs): Picke compressed bit.
29 * lto-streamer.h (lto_in_decl_state): New flag compressed.
30 (lto_out_decl_state): Likewise.
31 (lto_get_section_data, lto_free_section_data): Update prototypes
32 (lto_get_raw_section_data, lto_free_raw_section_data): Declare.
33 (lto_write_raw_data): Declare.
34 (lto_begin_section): Remove FIXME.
35 (lto_write_raw_data): New function.
36 (lto_write_stream): Remove FIXME.
37 (lto_new_out_decl_state): Set compressed flag.
39 2015-12-10 Jan Hubicka <hubicka@ucw.cz>
41 * tree.c (free_lang_data_in_type, find_decls_types_r): Also free
42 unnecesary type decls.
43 * tree.h (is_redundant_typedef): Declare.
44 * dwarf2out.c (is_redundant_typedef): Export; booleanize
46 2015-12-12 Eric Botcazou <ebotcazou@adacore.com>
48 * config/sparc/sparc.h (TARGET_SUPPORTS_WIDE_INT): Define to 1.
49 * config/sparc/sparc.c (sparc_emit_set_const64): Remove code
50 conditionalized on HOST_BITS_PER_WIDE_INT == 32.
51 (sparc_cannot_force_const_mem) <CONST_WIDE_INT>: New case.
52 <CONST_DOUBLE>: Remove VOIDmode test.
53 (epilogue_renumber) <CONST_WIDE_INT>: New case.
54 (sparc_print_operand): Remove support for CONST_DOUBLE with VOIDmode.
55 (sparc_assemble_integer): Likewise.
56 (set_extends): Likewise.
57 (sparc_rtx_costs) <CONST_INT>: Use SMALL_INT.
58 <CONST_WIDE_INT>: New case.
59 <CONST_DOUBLE>: Remove support for VOIDmode.
60 <MULT>: Remove support for CONST_DOUBLE with VOIDmode.
61 * config/sparc/predicates.md (const_zero_operand): Add const_wide_int.
62 (const_all_ones_operand): Likewise.
63 (uns_small_int_operand): Remove const_double and code conditionalized
64 on HOST_BITS_PER_WIDE_INT == 32.
65 (arith_double_operand): Likewise.
66 (arith_double_add_operand): Likewise.
67 (input_operand): Remove support for CONST_DOUBLE with DImode.
68 * config/sparc/sparc.md (DImode CONST_INT splitter): Remove code
69 conditionalized on HOST_BITS_PER_WIDE_INT == 32.
70 (DFmode CONST_DOUBLE splitter): Likewise.
71 (*adddi3_insn_sp32): Likewise.
72 (*subdi3_insn_sp32): Likewise.
73 (DImode logical splitter): Likewise.
74 (DImode CONST_DOUBLE splitter): Delete.
76 2015-12-12 Paolo Bonzini <bonzini@gnu.org>
79 * c-family/c-ubsan.c (ubsan_instrument_shift): Disable
80 sanitization of left shifts for wrapping signed types as well.
82 2015-12-11 Eric Botcazou <ebotcazou@adacore.com>
85 * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
86 Do not gimplify the result.
87 (do_unop): Adjust call to tree_vec_extract.
89 (do_compare): Likewise.
90 (do_plus_minus): Likewise.
91 (do_negate): Likewise.
92 (expand_vector_condition): Likewise.
95 2015-12-11 Nathan Sidwell <nathan@acm.org>
97 * config/nvptx/nvptx.h (RETURN_ADDR_REGNO): Delete.
98 (OUTGOING_ARG_POINTER_REGNUM): Delete.
99 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
100 (REGISTER_NAMES): Name static chain regs.
101 * config/nvptx/nvptx.c (nvptx_function_arg): Add ARG_UNUSED, merge
103 (nvptx_incoming_arg): Merge ifs.
104 (nvptx_function_arg_boundary): Reimplement to avoid mixing units.
105 (nvptx_function_value): Tail call nvptx_libcall_value.
106 (nvptx_pass_by_reference): Add ARG_UNUSED.
107 (nvptx_static_chain): Use conditional op.
108 (nvptx_handle_kernel_attribute): Use VOID_TYPE_P.
110 2015-12-11 Jan-Benedict Glaw <jbglaw@lug-owl.de>
111 Dominique d'Humieres <dominiq@lps.ens.fr>
116 * config/darwin.c (darwin_use_anchors_for_symbol_p): Fix indention and
119 2015-12-11 Jan Beulich <jbeulich@suse.com>
121 * cfgexpand.c (expand_one_var): Exit early for static and
122 external variables when adjusting stack alignment related.
124 2015-12-11 Dominik Vogt <vogt@linux.vnet.ibm.com>
126 * config/s390/s390.c (s390_rtx_costs)
127 (s390_cannot_force_const_mem, legitimate_pic_operand_p)
128 (s390_preferred_reload_class, s390_reload_symref_address)
129 (legitimate_reload_constant_p, print_operand): Wide int support.
130 * config/s390/predicates.md ("const0_operand", "constm1_operand")
131 ("consttable_operand"): Likewise.
132 ("larl_operand"): Add a comment.
133 * config/s390/s390.h (TARGET_SUPPORTS_WIDE_INT): Enable wide int
136 2015-12-11 Nathan Sidwell <nathan@acm.org>
138 * config/nvptx/nvptx.h (TARGET_SUPPORTS_WIDE_INT): Define.
139 * config/nvptx/nvptx.c (nvptxx_assemble_integer): Return false for
142 2015-12-11 Tom de Vries <tom@codesourcery.com>
144 * passes.def: Remove unpaired TERMINATE_PASS_LIST.
146 2015-12-11 Michael Matz <matz@suse.de>
148 * hash-map.h (hash_map::hash_map): Gather statistics only
149 when GATHER_STATISTICS is true.
150 * hash-set.h (hash_set::hash_set): Ditto.
151 * hash-table.h (hash_table::hash_table): Ditto.
152 (hash_table::create_ggc): Ditto.
154 2015-12-11 Martin Jambor <mjambor@suse.cz>
157 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Add checking
158 assert that align is nonzero.
160 2015-12-11 Dominik Vogt <vogt@linux.vnet.ibm.com>
162 * config/s390/s390.c (s390_expand_setmem): Use new expanders.
163 * config/s390/s390.md ("*setmem_long")
164 ("*setmem_long_and", "*setmem_long_31z"): Fix warnings.
165 ("*setmem_long_and_31z"): New define_insn.
166 ("setmem_long_<P:mode>"): New expanders.
167 * (<modesize>): New mode attribute
169 2015-12-11 Dominik Vogt <vogt@linux.vnet.ibm.com>
171 * config/s390/s390.md ("movstr", "*movstr"): Fix warning.
172 ("movstr<P:mode>"): New indirect expanders used by "movstr".
174 2015-12-11 Martin Liska <mliska@suse.cz>
175 Uros Bizjak <ubizjak@gmail.com>
178 * config/i386/i386.c (ix86_valid_target_attribute_tree):
179 Use ggc_strdup to copy option_strings to opts->x_ix86_arch_string and
180 opts->x_ix86_tune_string.
182 2015-12-11 Richard Biener <rguenther@suse.de>
184 * lto-streamer.h (lto_simple_header_with_strings): Remove
185 main_size field already in lto_simple_header.
187 2015-12-11 Ilya Enkovich <enkovich.gnu@gmail.com>
189 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
192 2015-12-11 Ilya Enkovich <enkovich.gnu@gmail.com>
194 * config/i386/i386.c (ix86_get_mask_mode): Use scalar
195 modes for 32 and 16 byte boolean vectors when possible.
197 2015-12-11 Segher Boessenkool <segher@kernel.crashing.org>
199 PR rtl-optimization/67778
200 PR rtl-optimization/68634
201 * shrink-wrap.c (try_shrink_wrapping): Add a comment about why we want
202 to put the prologue earlier. When determining if an earlier block is
203 suitable, make sure it dominates every block reachable from it.
205 2015-12-11 Segher Boessenkool <segher@kernel.crashing.org>
207 PR rtl-optimization/68814
208 * rtlanal.c (set_noop_p): Use BITS_BIG_ENDIAN instead of
211 2015-12-10 Nathan Sidwell <nathan@acm.org>
213 * config/nvptx/nvptx.c (nvptx_function_arg,
214 nvptx_function_incoming_arg, nvptx_function_arg_advance,
215 nvptx_strict_argument_naming, nvptx_function_arg_boundary,
216 nvptx_libcall_value, nvptx_function_value,
217 nvptx_function_value_regno_p, nvptx_pass_by_reference,
218 nvptx_return_in_memory, nvptx_promote_function_mode,
219 nvptx_static_chain): Move earlier.
220 (write_one_arg): Break out as helper fn for ...
221 (write_arg): ... this new function. Adjust all callers.
223 2015-12-10 Jan Hubicka <hubicka@ucw.cz>
225 * lto-streamer-out.c (wrap_refs): Only wrap public decls.
227 2015-12-10 Jan Hubicka <hubicka@ucw.cz>
229 * ipa-cp.c (ipcp_cloning_candidate_p): Use node->optimize_for_size_p.
230 (good_cloning_opportunity_p): Likewise.
231 (gather_context_independent_values): Do not return true when
232 polymorphic call context is known or when we have known aggregate
233 value of unused parameter.
234 (estimate_local_effects): Try to create clone for all context
235 when either some params are substituted or devirtualization is possible
236 or some params can be removed; use local flag instead of
237 node->will_be_removed_from_program_if_no_direct_calls_p.
238 (identify_dead_nodes): Likewise.
240 2015-12-10 David Malcolm <dmalcolm@redhat.com>
242 * doc/invoke.texi (-Wall): Add -Wmisleading-indentation to the
244 (-Wmisleading-indentation): Update documentation to reflect
245 being enabled by -Wall in C/C++.
247 2015-12-10 Vladimir Makarov <vmakarov@redhat.com>
249 PR rtl-optimization/68691
250 * lra-spills.c (lra_final_code_change): Check pseudo occurrence
251 number in non-debug insns and remove debug insns if necessary.
253 2015-12-10 Martin Sebor <msebor@redhat.com>
255 * invoke.texi (Warning Options): Update -Wall options. Clarify
256 when some -Wextra options are enabled. Add -Wplacement-new example.
258 2015-12-10 Uros Bizjak <ubizjak@gmail.com>
260 * graphite-scop-detection.c (gather_bbs::before_dom_children):
261 Change return type to an edge. Always return NULL.
263 2015-12-10 Jeff Law <law@redhat.com>
265 PR tree-optimization/68619
266 * tree-ssa-dom.c (dom_opt_dom_walker::before_dom_children): Propgate
267 return value from optimize_stmt.
268 (dom_opt_dom_walker): Add new argument to dom_walker constructor.
269 (pass_dominator:execute): If a block has an unreachable edge,
270 remove all jump threads through any successor of the affected block.
271 (record_equivalences_from_phis): Ignore alternative if the edge
272 does not have EDGE_EXECUTABLE set.
273 (single_incoming_edge_ignoring_loop_edges): Similarly.
274 (optimize_stmt): If a gimple_code has a compile-time constant
275 condition, return the edge taken for that constant value. Also
276 change the condition to true/false as necessary.
277 * domwalk.h (dom_walker::dom_walker): Add new argument
278 skip_unreachable_blocks. Don't provide empty constructor body.
279 (dom_walker::before_dom_children): Change return type.
280 (dom_walker::bb_reachable): Declare new private method.
281 (dom_walker::propagate_unreachable_to_edges): Likewise.
282 (dom_walker::m_unreachable_dom): Declare new private data member.
283 (dom_walker::m_skip_unreachable_blocks): Likewise.
284 * domwalk.c: Include dumpfile.h.
285 (dom_walker::dom_walker): New constructor. Initialize private data
286 members. If needed, set EDGE_EXECUTABLE for all edges in the CFG,
287 extracted from tree-ssa-sccvn.c.
288 (dom_walker::bb_reachable): New method extracted from tree-ssa-sccvn.c
289 (dom_walker::propagate_unreachable_to_edges): Likewise.
290 (dom_walker::walk): Only call before_dom_children on reachable
291 blocks. If before_dom_children returns an edge, then clear
292 EDGE_EXECUTABLE for all other outgoing edges from the same block.
293 For unreachable blocks, call propagate_unreachable_to_edges.
294 Similarly, only call after_dom_children on reachable blocks. For
295 unreachable blocks, conditionally clear m_unreachable_dom.
296 * tree-ssa-sccvn.c (sccvn_dom_walker::unreachable_dom): Remove
298 (sccvn_dom_walker::after_dom_children): Use methods from dom_walker
300 (run_scc_vn): Likewise.
301 (sccvn_dom_walker::before_dom_children): Likewise. Return the taken
302 outgoing edge if a COND, SWITCH, or GOTO are optimized.
303 * compare-elim.c (find_comparison_dom_walker::before_dom_children):
304 Change return type to an edge. Always return NULL.
305 * fwprop.c (single_def_use_dom_walker::before_dom_children): Likewise.
306 * gimple-ssa-strength-reduction.c
307 (find_candidates_dom_walker::before_dom_children): Likewise.
308 * ipa-prop.c (analysis_dom_walker::before_dom_children): Likewise.
309 (ipcp_modif_dom_walker::before_dom_children): Likewise.
310 * tree-into-ssa.c (rewrite_dom_walker::before_dom_children): Likewise.
311 (rewrite_update_dom_walker::before_dom_children): Likewise.
312 (mark_def_dom_children::before_dom_children): Likewise.
313 * tree-ssa-dse.c (dse_dom_walker::before_dom_children): Likewise.
315 (invariantness_dom_walker::before_dom_children): Likewise.
316 (move_computations_dom_walker::before_dom_walker): Likewise.
318 (nontrapping_dom_walker::before_dom_children): Likewise.
320 (eliminate_dom_walker::before_dom_children): Likewise.
321 * tree-ssa-propagate.c
322 (substitute_and_fold_dom_walker::before_dom_children): Likewise.
324 (strlen_dom_walker::before_dom_children): Likewise.
326 (uncprop_dom_walker::before_dom_children): Likewise.
328 2015-12-10 Jakub Jelinek <jakub@redhat.com>
330 PR rtl-optimization/68376
331 PR rtl-optimization/68670
332 * ifcvt.c (noce_try_abs): For one_cmpl allow < 0, >= 0
333 or > -1 conditions regardless of negate, and disallow
334 all other conditions.
336 2015-12-10 Ilya Enkovich <enkovich.gnu@gmail.com>
338 * tree-chkp.c (chkp_call_returns_bounds_p): Return true
340 (chkp_fixup_inlined_call): New.
341 * tree-chkp.h (chkp_fixup_inlined_call): New.
342 * tree-stdarg.c: Include tree-chkp.h.
343 (expand_ifn_va_arg_1): Fixup bndret calls for removed
346 2015-12-10 Martin Jambor <mjambor@suse.cz>
348 * tree-inline.c (duplicate_remap_omp_clause_seq): New function.
349 (replace_locals_op): Duplicate gimple sequences in OMP clauses.
351 2015-12-10 David Malcolm <dmalcolm@redhat.com>
353 * graphite-optimize-isl.c (scop_get_domains): Fix indentation.
355 2015-12-10 David Malcolm <dmalcolm@redhat.com>
357 * ifcvt.c (noce_try_inverse_constants): Fix indentation.
359 2015-12-10 David Malcolm <dmalcolm@redhat.com>
361 * regrename.c (scan_rtx_address): Fix indentation.
363 2015-12-10 David Malcolm <dmalcolm@redhat.com>
365 * function.c (locate_and_pad_parm): Fix indentation.
367 2015-12-10 Richard Biener <rguenther@suse.de>
369 * tree-ssa-structalias.c (struct variable_info): Add
370 is_ipa_escape_point flag.
371 (new_var_info): Initialize to false.
372 (find_func_aliases): Generate escape constraints for stores
373 properly in IPA mode.
374 (ipa_pta_execute): Compute is_ipa_escape_point for globals.
376 2015-12-10 Claudiu Zissulescu <claziss@synopsys.com>
378 * config/arc/atomic.md: Add new file.
380 2015-12-10 Claudiu Zissulescu <claziss@synopsys.com>
382 * config/arc/arc-protos.h (arc_expand_atomic_op): Prototype.
383 (arc_split_compare_and_swap): Likewise.
384 (arc_expand_compare_and_swap): Likewise.
385 * config/arc/arc.c (arc_init): Check usage atomic option.
386 (arc_pre_atomic_barrier): New function.
387 (arc_post_atomic_barrier): Likewise.
388 (emit_unlikely_jump): Likewise.
389 (arc_expand_compare_and_swap_qh): Likewise.
390 (arc_expand_compare_and_swap): Likewise.
391 (arc_split_compare_and_swap): Likewise.
392 (arc_expand_atomic_op): Likewise.
393 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): New C macro.
394 (ASM_SPEC): Enable mlock option when matomic is used.
395 * config/arc/arc.md (UNSPEC_ARC_MEMBAR): Define.
396 (VUNSPEC_ARC_CAS): Likewise.
397 (VUNSPEC_ARC_LL): Likewise.
398 (VUNSPEC_ARC_SC): Likewise.
399 (VUNSPEC_ARC_EX): Likewise.
400 * config/arc/arc.opt (matomic): New option.
401 * config/arc/constraints.md (ATO): New constraint.
402 * config/arc/predicates.md (mem_noofs_operand): New predicate.
403 * doc/invoke.texi: Document -matomic.
404 * config/arc/atomic.md: New file.
406 2015-12-10 Richard Biener <rguenther@suse.de>
408 PR tree-optimization/68817
409 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Detect
412 2015-12-10 Ilya Enkovich <enkovich.gnu@gmail.com>
414 * tree-vect-stmts.c (vectorizable_assignment): Support
415 useless boolean conversion.
417 2015-12-10 Alan Lawrence <alan.lawrence@arm.com>
419 * doc/install.texi: Add note against GNAT 4.8 on ARM targets.
421 2015-12-10 Jakub Jelinek <jakub@redhat.com>
423 PR tree-optimization/68785
424 * gimple-fold.c (fold_ctor_reference): Pass return value from
425 native_encode_expr to native_interpret_expr.
426 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Likewise.
428 2015-12-10 Richard Biener <rguenther@suse.de>
431 * tree-ssa-structalias.c (set_uids_in_ptset): Add fndecl
432 parameter and make vars_contains_nonlocal properly have
433 function-scope semantics in IPA mode.
434 (find_what_var_points_to): Add fndecl parameter.
435 (find_what_p_points_to): Likewise.
436 (pt_solution_includes_global): Remove IPA PTA early out.
437 (compute_points_to_sets): Adjust.
438 (ipa_pta_execute): Likewise. Clear final_solutions after
441 2015-12-10 Tom de Vries <tom@codesourcery.com>
444 * doc/include/fdl.texi: Add nodefaultgnufreedocumentationlicensenode
445 ifdef to allow disabling default @node GNU Free Documentation License.
447 2015-12-10 Richard Biener <rguenther@suse.de>
449 * tree-ssa-structalias.c (create_function_info_for): Add missing
450 constraint from nonlocal for DECL_RESULT.
452 2015-12-10 Richard Biener <rguenther@suse.de>
454 * tree-if-conv.c: Include params.h.
455 (ifcvt_memrefs_wont_trap): Use PARAM_ALLOW_STORE_DATA_RACES
456 instead of flag_tree_loop_if_convert_stores to guard cases
457 we'd introduce store-data-races.
459 2015-12-10 Richard Biener <rguenther@suse.de>
462 * ipa-split.c (split_function): Record return value properly
463 when the split part doesn't set it.
465 2015-12-10 Richard Biener <rguenther@suse.de>
467 PR tree-optimization/68806
468 * tree-vect-loop.c (vect_analyze_loop_2): Properly detect
469 reduction chains and ignore SLP reductions.
471 2015-12-10 Richard Biener <rguenther@suse.de>
473 * tree-if-conv.c (if_convertible_loop_p_1): Do not compute
475 (if_convertible_loop_p): Adjust.
477 2015-12-10 Tom de Vries <tom@codesourcery.com>
479 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Remove
482 2015-12-10 Martin Liska <mliska@suse.cz>
484 * tree-vect-data-refs.c: Free an overwritten dataref.
486 2015-12-09 John David Anglin <danglin@gcc.gnu.org>
489 * config/pa/pa.c (pa_emit_move_sequence): Don't check that mode is
490 consistent with modes of the input and output operands when doing
491 reloads to and from floating point registers. Do reload for all
494 2015-12-08 Jan Hubicka <hubicka@ucw.cz>
498 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Use compare_base_decls
499 (nonoverlapping_component_refs_of_decl_p): Update sanity check.
500 (decl_refs_may_alias_p): Use compare_base_decls.
501 * alias.c: Include cgraph.h
502 (get_alias_set): Add cut-off for recursion.
503 (rtx_equal_for_memref_p): Use rtx_equal_for_memref_p.
504 (compare_base_decls): New function.
505 (base_alias_check): Likewise.
506 (memrefs_conflict_p): Likewise.
507 (nonoverlapping_memrefs_p): Likewise.
508 * alias.h (compare_base_decls): Declare.
510 2015-12-08 Jan Hubicka <hubicka@ucw.cz>
513 * ipa-visibility.c (function_and_variable_visibility): Fix vtable
516 2015-12-08 Jan Hubicka <hubicka@ucw.cz>
520 * ipa-reference.c (ipa_reference_get_not_read_global,
521 ipa_reference_get_not_read_global): Fix WRT aliases.
522 (is_improper): Break out from ...
523 (is_proper_for_analysis): ... here; fix WRT aliases.
524 (analyze_function, generate_summary,
525 ipa_reference_write_optimization_summary,
526 ipa_reference_read_optimization_summary): Use ipa_reference_var_uid.
527 * ipa-refrence.h (ipa_reference_var_uid): New inline.
528 * tree-ssa-alias.c: Revert my accidental previous commit.
529 (ref_maybe_used_by_call_p_1,
530 call_may_clobber_ref_p_1): Use ipa_reference_var_uid.
532 2015-12-09 Andreas Tobler <andreast@gcc.gnu.org>
534 * config/rs6000/freebsd64.h: Remove the redefinition of WCHAR_TYPE.
536 2015-12-09 Aditya Kumar <aditya.k7@samsung.com>
537 Sebastian Pop <s.pop@samsung.com>
539 * graphite-optimize-isl.c: Include isl/ast_build.h
540 (optimize_isl): Set several isl_options_set_* options.
542 2015-12-09 Aditya Kumar <aditya.k7@samsung.com>
543 Sebastian Pop <s.pop@samsung.com>
545 * graphite-sese-to-poly.c (pdr_add_memory_accesses): Iterate in
546 the same order as adding data reference access functions.
548 2015-12-09 Aditya Kumar <aditya.k7@samsung.com>
549 Sebastian Pop <s.pop@samsung.com>
551 * graphite-optimize-isl.c (optimize_isl): Improve dump message.
553 2015-12-09 Marek Polacek <polacek@redhat.com>
555 PR tree-optimization/66949
556 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Don't call
557 single_non_singleton_phi_for_edges to get the PHI from
558 factor_out_conditional_conversion. Use NULL_TREE instead of NULL.
559 (factor_out_conditional_conversion): Adjust declaration. Make it
560 return the newly-created PHI.
562 2015-12-09 James Greenhalgh <james.greenhalgh@arm.com>
564 * config/aarch64/aarch64-protos.h
565 (aarch64_cannot_change_mode_class): Bring back.
566 * config/aarch64/aarch64.c
567 (aarch64_cannot_change_mode_class): Likewise.
568 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Likewise.
569 * config/aarch64/aarch64.md (aarch64_movdi_<mode>low): Use
570 zero_extract rather than truncate.
571 (aarch64_movdi_<mode>high): Likewise.
573 2015-12-09 Jakub Jelinek <jakub@redhat.com>
575 PR tree-optimization/68786
576 * tree-if-conv.c: Include builtins.h.
577 (predicate_mem_writes): Put result of get_object_alignment (ref)
578 into second argument's value.
579 * tree-vect-stmts.c (vectorizable_mask_load_store): Put minimum
580 pointer alignment into second argument's value.
581 * tree-data-ref.c (get_references_in_stmt): Use value of second
582 argument for build_aligned_type, and only the type to build
583 a zero second argument for MEM_REF.
584 * internal-fn.c (expand_mask_load_optab_fn,
585 expand_mask_store_optab_fn): Likewise.
587 2015-12-09 Richard Biener <rguenther@suse.de>
589 PR tree-optimization/68583
590 * tree-if-conv.c (if_convertible_phi_p): Drop
591 flag_tree_loop_if_convert_stores check in favor of the
592 existing any_mask_load_store check.
593 (insert_gimplified_predicates): Likewise.
594 (combine_blocks): Likewise.
595 (tree_if_conversion): Likewise.
596 (ifcvt_memrefs_wont_trap): Properly check
597 flag_tree_loop_if_convert_stores in all places that can end
598 up introducing store-data-races.
599 (if_convertible_gimple_assign_stmt_p): Remove restriction
600 on flag_tree_loop_if_convert_stores for stores we can if-convert
601 without introducing store-data-races. Force versioning for
602 all if-converted stores.
604 2015-12-09 Tom de Vries <tom@codesourcery.com>
606 PR tree-optimization/68716
607 * tree-ssa-structalias.c (find_func_clobbers): Fix handling of
608 BUILT_IN_GOMP_PARALLEL and BUILT_IN_GOACC_PARALLEL.
610 2015-12-09 Martin Liska <mliska@suse.cz>
612 * hash-traits.h (struct typed_delete_remove): New function.
613 (typed_delete_remove ::remove): Likewise.
614 * tree-ssa-loop-ivopts.c (struct iv_common_cand): Replace
616 (record_common_cand): Replace XNEW with operator new.
618 2015-12-09 Martin Liska <mliska@suse.cz>
620 * tree-if-conv.c (ifcvt_local_dce): Replace vec with auto_vec.
622 2015-12-09 Martin Liska <mliska@suse.cz>
625 * ipa-icf.c (sem_function::param_used_p): Return true
626 if ipa_node_params_sum equals to NULL.
628 2015-12-09 Richard Biener <rguenther@suse.de>
630 PR tree-optimization/68583
631 * tree-if-conv.c (ifc_dr): Make flags bool, add w_unconditionally
632 flag and rename predicates to w_predicate, rw_predicate and
634 (DR_WRITTEN_AT_LEAST_ONCE): Rename to ...
635 (DR_BASE_W_UNCONDITIONALLY): ... this.
636 (DR_W_UNCONDITIONALLY): Add.
637 (hash_memrefs_baserefs_and_store_DRs_read): Adjust. Compute
638 unconditionally written separately from read or written.
639 (ifcvt_memrefs_wont_trap): Properly treat reads.
640 (ifcvt_could_trap_p): Inline ...
641 (if_convertible_gimple_assign_stmt_p): ... here. Refactor
642 to avoid code duplication.
643 (if_convertible_loop_p_1): Adjust and properly initialize
646 2015-12-09 Richard Biener <rguenther@suse.de>
648 * tree-vect-stmts.c (vectorizable_load): Set new vinfo only
649 if it was not yet set.
650 * tree-vectorizer.h (set_vinfo_for_stmt): Assert we don't
651 overwrite an existing entry.
653 2015-12-09 Chung-Lin Tang <cltang@codesourcery.com>
655 * c-family/c-omp.c (c_finish_oacc_wait): Remove add_stmt() call.
656 * c/c-parser.c (c_parser_oacc_wait): Add add_stmt() call.
657 * cp/parser.c (cp_parser_oacc_wait): Add finish_expr_stmt() call.
659 2015-12-08 Jan Hubicka <hubicka@ucw.cz>
662 * symtab.c (symtab_node::equal_address_to): New parameter
664 * cgraph.h (symtab_node::equal_address_to): Update prototype.
666 2015-12-08 DJ Delorie <dj@redhat.com>
668 * config/rx/rx.opt (-mjsr): Add.
669 * config/rx/predicates.md (rx_call_operand): Avoid overflowing
671 * config/rx/rx.c (rx_function_ok_for_sibcall): Likewise for
673 * doc/invoke.texi (-mjsr): Document it.
675 2015-12-08 Jan Hubicka <hubicka@ucw.cz>
678 * lto-streamer.h (lto_symtab_merge_decls, lto_symtab_merge_symbols,
679 lto_symtab_prevailing_decl): MOve to lto-symtab.h.
680 * lto-streamer-out.c (DFS::DFS_write_tree_body): Check that
681 DECL_ABSTRACT_ORIGIN is not error_mark_node.
683 2015-12-08 David Malcolm <dmalcolm@redhat.com>
685 * tree-nested.c (convert_tramp_reference_stmt): Fix indentation.
687 2015-12-08 David Malcolm <dmalcolm@redhat.com>
689 * tree-ssa-loop-unswitch.c (tree_unswitch_outer_loop): Fix
692 2015-12-08 Jan Hubicka <hubicka@ucw.cz>
695 * lto-cgraph.c (compute_ltrans_boundary): Add transparent alias targets
698 2015-12-08 Jan Hubicka <hubicka@ucw.cz>
701 * varpool.c (varpool_node::get_availability): Recurse only on
702 weakrefs with definition in the target.
703 (symbol_table::remove_unreferenced_decls): Keep aliases in the boundary.
705 2015-12-08 Jan Hubicka <hubicka@ucw.cz>
708 * ipa-visibility.c (can_replace_by_local_alias): Look through
709 transparent aliases; refuse weakrefs.
710 (update_visibility_by_resolution_info): Skip transparent aliases in the
713 2015-12-08 Jan Hubicka <hubicka@ucw.cz>
716 * symtab.c (symtab_node::verify_base): Fix thinko in a conditional.
717 (symtab_node::noninterposable_alias): Do not accept transparent
720 2015-12-08 Nathan Sidwell <nathan@acm.org>
722 * config/nvptx/nvptx.c (decl_chunk_size, decl_chunk_mode,
723 decl_offset, init_part, object_size, object_finished): Replace
725 (struct init_frag): ... this new struct variable.
726 (begin_decl_field, output_decl_chunk): Replace with ...
727 (output_init_frag): ... this new function.
728 (nvptx_assemble_value): Reimplement.
729 (nvptx_assemble_integer, nvptx_output_skip): Adjust.
730 (nvptx_assemble_decl_begin, nvptx_assemble_decl_end): Adjust.
731 (nvptx_output_aligned_decl): Call nvptx_assemble_decl_end.
733 2015-12-08 Eric Botcazou <ebotcazou@adacore.com>
737 * cfgexpand.c (set_rtl): Always accept mode mismatch for SSA names
738 with BLKmode promoted mode based on RESULT_DECLs.
740 2015-12-08 Uros Bizjak <ubizjak@gmail.com>
743 * config/i386/i386.c (ix86_option_override_internal): Enable
744 -maccumulate-outgoing-args when %ebp is fixed due to stack
745 realignment requirements.
747 2015-12-08 Tom de Vries <tom@codesourcery.com>
749 PR tree-optimization/68640
750 * omp-low.c (install_var_field): Clear the restrict qualifier on the var
753 2015-12-08 Kirill Yukhin <kirill.yukhin@intel.com>
755 * config/i386/sse.md (define_insn "<avx512>_vec_dup<mode>_1"): Fix
756 assembler to make source always 128bit.
758 2015-12-08 Jakub Jelinek <jakub@redhat.com>
762 * common.opt (Wframe-larger-than=): Add Warning.
763 * opts.h (control_warning_option): Add ARG argument.
764 * opts-common.c (cmdline_handle_error): New function.
765 (read_cmdline_option): Use it.
766 (control_warning_option): Likewise. Add ARG argument.
767 If non-NULL, decode it if needed and pass through
768 to handle_generated_option. Handle CLVC_ENUM like
770 * opts.c (common_handle_option): Adjust control_warning_option
772 (enable_warning_as_error): Likewise.
774 2015-12-08 Matthew Wahab <matthew.wahab@arm.com>
776 * config/aarch64/aarch64-options-extensions.def: Remove
777 AARCH64_FL_RDMA from "fp" and "simd". Remove "pan", "lor",
779 * config/aarch64/aarch64.h (AARCH64_FL_PAN): Remove.
780 (AARCH64_FL_LOR): Remove.
781 (AARCH64_FL_RDMA): Remove.
782 (AARCH64_FL_V8_1): New.
783 (AARCH64_FL_FOR_AARCH8_1): Replace AARCH64_FL_PAN, AARCH64_FL_LOR
784 and AARCH64_FL_RDMA with AARCH64_FL_V8_1.
785 (AARCH64_ISA_RDMA): Replace AARCH64_FL_RDMA with AARCH64_FL_V8_1.
786 * doc/invoke.texi (AArch64 -march): Rewrite initial paragraph and
787 section on -march=native. Group descriptions of permitted
788 architecture names together. Expand description of
790 (AArch64 -mtune): Slightly rework section on -march=native.
791 (AArch64 -mcpu): Slightly rework section on -march=native.
792 (AArch64 Feature Modifiers): Remove "pan", "lor" and "rdma".
793 State that -march=armv8.1-a enables "crc" and "lse".
795 2015-12-08 Eric Botcazou <ebotcazou@adacore.com>
797 * doc/invoke.texi (SPARC options): Fix typo.
799 2015-12-08 Eric Botcazou <ebotcazou@adacore.com>
801 * config/ia64/ia64.c (ia64_emit_probe_stack_range): Adjust.
802 (output_probe_stack_range): Rotate the loop and simplify.
804 2015-12-08 Uros Bizjak <ubizjak@gmail.com>
806 * config/i386/i386.c (ix86_emit_swsqrtsf): Cleanup
807 infinity filterning code.
809 2015-12-08 Ilya Enkovich <enkovich.gnu@gmail.com>
811 PR tree-optimization/68766
812 * tree-vectorizer.c (vectorize_loops): Check for
813 if-converted loops when debug counters are used.
815 2015-12-07 DJ Delorie <dj@redhat.com>
817 * config/rl78/constraints.md (Wfr): Change to be a non-memory
819 * config/rl78/rl78-protos.h (rl78_one_far_p): Declare.
820 * config/rl78/rl78.c (rl78_one_far_p): Define.
821 * config/rl78/rl78-virt (movqi_virt): Fix far memory
823 (movhi_virt): Likewise.
824 (zero_extendqihi2_virt): Likewise.
825 (extendqihi2_virt): Likewise.
826 (add<mode>3_virt): Likewise.
827 (sub<mode>3_virt): Likewise.
828 (andqi3_virt): Likewise.
829 (iorqi3_virt): Likewise.
830 (xorqi3_virt): Likewise.
831 * config/rl78/rl78-real.md (bf,br): Use long forms to avoid reloc
832 overflow in large files.
834 2015-12-07 Eric Botcazou <ebotcazou@adacore.com>
837 * doc/invoke.texi (SPARC options): Document -mstd-struct-return.
838 * config/sparc/sparc.c (sparc_struct_value_rtx): Minor tweaks.
839 * config/sparc/sparc.h (CALL_REALLY_USED_REGISTERS): Define.
840 * config/sparc/sparc.opt (mstd-struct-return): Accept negative.
842 2015-12-07 Steve Ellcey <sellcey@imgtec.com>
844 * reorg.c (optimize_skip): Do not put frame related instructions
845 in annulled delay slots.
846 (steal_delay_list_from_target): Ditto.
847 (fill_slots_from_thread): Ditto.
849 2015-12-07 Evandro Menezes <e.menezes@samsung.com>
851 * config/aarch64/aarch64-cores.def: Use the Exynos M1 sched model.
852 * config/aarch64/aarch64.md: Include "exynos-m1.md".
853 * config/arm/arm.md: Likewise.
854 * config/arm/exynos-m1.md: New file.
856 2015-12-07 Jan Hubicka <hubicka@ucw.cz>
858 * fold-const.c (operand_equal_p): Drop flag_strict_aliasing check.
860 2015-12-07 Nathan Sidwell <nathan@acm.org>
862 * config//nvptx/nvptx.c (write_return): New.
863 (write_fn_proto, nvptx_declare_function_name): Call it.
865 2015-12-07 Jan Hubicka <hubicka@ucw.cz>
868 * symtab.c (ultimate_transparent_alias_target): New inline function.
869 (symbol_table::assembler_names_equal_p): New method; break out from ...
870 (symbol_table::decl_assembler_name_equal): ... here.
871 (symbol_table::change_decl_assembler_name): Also update names and
872 translation links of transparent aliases.
873 (symtab_node::dump_base): Dump transparent_alias.
874 (symtab_node::verify_base): Implement basic transparent alias
876 (symtab_node::make_decl_local): Support localization of weakrefs;
877 recurse to transparent aliases; set TREE_STATIC.
878 (symtab_node::ultimate_alias_target_1): Handle visibility of
880 (symtab_node::resolve_alias): New parmaeter transparent; handle
881 transparent aliases; recurse to aliases of aliases to fix comdat
883 (symtab_node::get_partitioning_class): Handle transparent aliases.
884 * ipa-visibility.c (cgraph_externally_visible_p,
885 varpool_node::externally_visible_p): Visibility of transparent alias
886 depends on its target.
887 (function_and_variable_visibility): Do not tweak visibility of
889 (function_and_variable_visibility): Likewise.
890 * ipa.c (symbol_table::remove_unreachable_nodes): Clear
891 transparent_alias flag.
892 * alias.c (cgraph_node::create_alias, cgraph_node::get_availability):
893 Support transparent aliases.
894 * cgraph.h (symtab_node): Update prototype of resolve_alias;
895 add transparent_alias flag.
896 (symbol_table: Add assembler_names_equal_p.
897 (symtab_node::real_symbol_p): Skip transparent aliases.
898 * cgraphunit.c (cgraph_node::reset): Reset transparent_alias flag.
899 (handle_alias_pairs): Set transparent_alias for weakref.
900 (cgraph_node::assemble_thunks_and_aliases): Do not asemble transparent
902 * lto-cgraph.c (lto_output_node): When outputting same_comdat_group
903 skip symbols not put into boundary; stream transparent_alias.
904 (lto_output_varpool_node): Likewise.
905 (input_overwrite_node, input_varpool_node): Stream transparent alias.
906 * varpool.c (ctor_for_folding, varpool_node::get_availability,
907 varpool_node::assemble_aliases,
908 symbol_table::remove_unreferenced_decls): Handle transparent aliase.
909 (varpool_node::create_alias): Set transparent_alias.
911 2015-12-07 Eric Botcazou <ebotcazou@adacore.com>
915 * cfgexpand.c (set_rtl): Always accept PARALLELs with BLKmode for
916 SSA names based on RESULT_DECLs.
917 * function.c (expand_function_start): Do not create BLKmode REGs
918 for GIMPLE registers when coalescing is enabled.
920 2015-12-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
922 * final.c (shorten_branches): Fix check for basic asm.
923 * ipa-icf-gimple.c (func_checker::compare_gimple_asm): Add check for
926 2015-12-07 Nathan Sidwell <nathan@acm.org>
928 * config/nvptx/nvptx.c (nvptx_output_call_insn): Emit trap after no
931 2015-12-07 David Malcolm <dmalcolm@redhat.com>
933 * pretty-print.c (text_info::set_range): Rename to...
934 (text_info::set_location): ...this, converting 2nd param
935 from source_range to a location_t.
936 * pretty-print.h (text_info::set_location): Convert
937 from inline function to external definition.
938 (text_info::set_range): Delete.
940 2015-12-07 Nathan Sidwell <nathan@acm.org>
942 * config/nvptx/nvptx.c (nvptx_assemble_decl_begin): Look inside
943 complex and vector types. Cope with packed structs.
945 2015-12-07 Kirill Yukhin <kirill.yukhin@intel.com>
948 * config/i386/sse.md: Make 'v' alternative work on 'avx512f' ISA only.
949 Force destination to 512 bits register.
951 2015-12-07 Kirill Yukhin <kirill.yukhin@intel.com>
954 * config/i386/sse.md (define_insn "kunpckhi"): Fix operands order.
955 (define_insn "kunpcksi"): Ditto.
956 (define_insn "kunpckdi"): Ditto.
958 2015-12-06 Kaz Kojima <kkojima@gcc.gnu.org>
960 * config/sh/sh.md (rsqrtsf2): Adjust for canonical form with unspec.
962 2015-12-06 Victoria Stepanyan <victoria.stepanyan@amd.com>
964 * common/config/i386/i386-common.c
965 (OPTION_MASK_ISA_CLZERO_SET): New.
966 (ix86_handle_option): Handle clzero.
967 * config.gcc (i[34567]86-*-*): Add clzerointrin.h,
968 (x86_64-*-*): Likewise.
969 * config/i386/clzerointrin.h: New header.
970 * config/i386/cpuid.h (bit_CLZERO): Define.
971 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
973 * config/i386/i386.opt (clzero): New.
974 * config/i386/i386-c.c: Define __CLZERO__ if needed.
975 * config/i386/i386.c (ix86_target_string): Define -mclzero option.
977 (ix86_option_override_internal): Handle new option.
978 (processor_alias_table): Added PTA_CLZERO.
979 (ix86_valid_target_attribute_inner_p): Add OPT_mclzero.
980 (ix86_builtins): Add IX86_BUILTIN_CLZERO, IX86_BUILTIN_CLZERO.
981 (ix86_expand_builtin): Handle IX86_BUILTIN_CLZERO and
982 IX86_BUILTIN_CLZERO built-ins.
983 * config/i386/i386.h (TARGET_CLZERO): New.
984 * config/i386/i386.md (unspecv): Add UNSPEC_CLZERO.
985 (clzero): New pattern.
986 (clzero_<mode>): New pattern.
987 * config/i386/x86intrin.h: Include clzerointrin.h.
988 * doc/extend.texi: Document clzero builtins.
989 * doc/invoke.texi: Document -mclzero option.
991 2015-12-05 Jan Hubicka <hubicka@ucw.cz>
993 * ipa-icf.c (sem_function::merge): Check that local_original exists.
995 2015-12-05 David Edelsohn <dje.gcc@gmail.com>
998 * config/rs6000/rs6000-protos.h (rs6000_emit_swsqrt): Rename and add
1000 * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Rename. Add
1001 non-reciporcal path.
1002 * config/rs6000/rs6000.md (rsqrt<mode>2): Call new function name.
1003 (sqrt<mode>2): Replace define_insn with define_expand that may call
1006 2015-12-04 Aditya Kumar <aditya.k7@samsung.com>
1007 Sebastian Pop <s.pop@samsung.com>
1009 * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
1011 (get_rename_from_scev): Check that all the ops in an expression
1012 have their uses dominated by corresponding defs.
1014 2015-12-04 Aditya Kumar <aditya.k7@samsung.com>
1015 Sebastian Pop <s.pop@samsung.com>
1017 PR tree-optimization/68693
1018 * graphite-scop-detection.c (dot_all_sese): New
1019 (dot_all_scops_1): Renamed to dot_all_sese.
1020 (dot_all_scops): Removed.
1023 (scop_detection::get_nearest_dom_with_single_entry): Check that
1024 preds are from different loop levels.
1025 (scop_detection::get_nearest_pdom_with_single_exit): Check that
1026 succs are from different loop levels.
1027 (scop_detection::print_sese): Inlined.
1028 (scop_detection::print_edge): New.
1029 (scop_detection::merge_sese): Added dumps.
1030 * graphite.h: Add declarations.
1032 2015-12-04 James Greenhalgh <james.greenhalgh@arm.com>
1034 * config/aarch64/aarch64.md (add<mode>3_pluslong): Add register
1037 2015-12-04 Vladimir Makarov <vmakarov@redhat.com>
1039 PR rtl-optimization/68349
1040 * lra-eliminations.c (move_plus_up): New function.
1041 (lra_eliminate_regs_1): Use the function.
1043 2015-12-04 Nathan Sidwell <nathan@acm.org>
1045 * config/nvptx/nvptx.c (nvptx_assemble_decl_begin): New, replacing ...
1046 (init_output_initializer): ... this.
1047 (nvptx_output_aligned_decl, nvptx_asm_declare_constant_name,
1048 nvptx_declare_object_name, nvptx_assemble_undefined_decl): Use
1049 nvptx_assemble_decl_begin.
1051 2015-12-04 Dmitry Vyukov <dvyukov@google.com>
1053 * sancov.c: New file.
1054 * Makefile.in (OBJS): Add sancov.o.
1055 * invoke.texi (-fsanitize-coverage=trace-pc): Describe.
1056 * passes.def (sancov_pass): Add.
1057 * tree-pass.h (sancov_pass): Add.
1058 * common.opt (-fsanitize-coverage=trace-pc): Add.
1059 * sanitizer.def (BUILT_IN_SANITIZER_COV_TRACE_PC): Add.
1060 * builtins.def (DEF_SANITIZER_BUILTIN): Enable for
1061 flag_sanitize_coverage.
1063 2015-12-04 Eric Botcazou <ebotcazou@adacore.com>
1066 * config/arm/unspecs.md (unspec): Remove UNSPEC_PROBE_STACK_RANGE.
1067 (unspecv): Add VUNSPEC_PROBE_STACK_RANGE.
1068 * config/arm/arm.md (probe_stack_range): Adjust.
1069 * config/aarch64/aarch64.md (unspec): Remove UNSPEC_PROBE_STACK_RANGE.
1070 (unspecv): Add UNSPECV_PROBE_STACK_RANGE.
1071 (probe_stack_range_<PTR:mode>): Adjust.
1073 2015-12-04 David Malcolm <dmalcolm@redhat.com>
1075 * convert.c (convert_to_real_1): When converting from a
1076 REAL_TYPE, preserve the location of EXPR in the result.
1077 * tree.c (get_pure_location): Make non-static.
1078 (set_source_range): Return the resulting location_t.
1079 (make_location): New function.
1080 * tree.h (get_pure_location): New decl.
1081 (get_finish): New inline function.
1082 (set_source_range): Convert return type from void to location_t.
1083 (make_location): New decl.
1085 2015-12-04 Jakub Jelinek <jakub@redhat.com>
1088 * toplev.c (init_asm_output): Pass UNKNOWN_LOCATION instead of
1089 input_location to inform.
1090 (process_options): Use warning_at (UNKNOWN_LOCATION instead of
1091 warning ( and error_at (UNKNOWN_LOCATION instead of error (.
1092 Pass UNKNOWN_LOCATION instead of input_location to fatal_error.
1094 2015-12-04 Jan Hubicka <hubicka@ucw.cz>
1096 * ipa-inline.c (can_inline_edge_p) Use merged_comdat.
1097 * cgraphclones.c (cgraph_node::create_clone): Use merged_comdat.
1098 * cgraph.c (cgraph_node::dump): Dump merged_comdat.
1099 * ipa-icf.c (sem_function::merge): Drop merged_comdat when merging
1100 comdat and non-comdat.
1101 * cgraph.h (cgraph_node): Rename merged to merged_comdat.
1102 * ipa-inline-analysis.c (simple_edge_hints): Check both merged_comdat
1105 2015-12-04 Segher Boessenkool <segher@kernel.crashing.org>
1107 * config/rs6000/rs6000.md (cstore<mode>4_unsigned): Use gpc_reg_operand
1108 instead of register_operand. Remove empty constraints. Use std::swap.
1109 (cstore_si_as_di, cstore<mode>4_signed_imm,
1110 cstore<mode>4_unsigned_imm, cstore<mode>4 for GPR): Use
1111 gpc_reg_operand instead of register_operand.
1112 (cstore<mode>4 for FP): Use gpc_reg_operand instead of
1113 register_operand. Remove empty constraints.
1115 2015-12-04 Nick Clifton <nickc@redhat.com>
1117 * config.gcc (extra_gcc_objs): Define for MSP430.
1118 * common/config/msp430/msp430-common.c (msp430_handle_option):
1119 Pass both -mmcu and -mcpu on to the back end if they are both defined.
1120 * config/msp430/msp430.c (hwmult_name): New function.
1121 (msp430_option_override): If an unrecognised MCU name is
1122 detected only warn if the user has not provided suitable
1123 -mhwmult and -mcpu options. Use msp430_warn_mcu to control
1124 warning messages. Generate warnings about conflicts between
1125 -mmcu and -mcpu and -mhwmult options.
1126 If neither -mcpu nor -mmcu have been specified but -mhwmult=
1127 f5series has the select the 430X isa.
1128 (msp430_no_hwmult): If -mmcu has not been specified and
1129 msp430_hwmult_type is AUTO then return true.
1130 * config/msp430/msp430.h (EXTRA_SPEC_FUNCTIONS): Define.
1131 (LIB_SPEC): Add hardware multiply library selection.
1132 * config/msp430/t-msp430: Delete hardware multiply multilibs.
1133 Add rule to build driver-msp430.o
1134 * config/msp430/driver-msp430.c: New file.
1135 * config/msp430/msp430.opt (warn-mcu): New option.
1136 * doc/invoke.texi: Update description of -mhwmult=auto.
1137 Document -mwarn-mcu option.
1139 2015-12-04 Segher Boessenkool <segher&kernel.crashing.org>
1141 * config/rs6000/rs6000.md (cstore<mode>4_signed): New expander.
1142 (cstore<mode>4): Call it.
1144 2015-12-04 Jakub Jelinek <jakub@redhat.com>
1146 * tree-tailcall.c (find_tail_calls): Ignore GIMPLE_NOPs.
1148 PR tree-optimization/68680
1149 * calls.c (special_function_p): Return ECF_MAY_BE_ALLOCA for
1150 BUILT_IN_ALLOCA{,_WITH_ALIGN}. Don't check for __builtin_alloca
1153 PR tree-optimization/68671
1154 * tree-ssa-reassoc.c (maybe_optimize_range_tests): For basic
1155 blocks starting with the successor of first bb we've modified
1156 and ending with last_bb call reset_flow_sensitive_info_in_bb.
1158 2015-12-04 Jeff Law <law@redhat.com>
1160 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Return boolean
1161 indicating if a gimple conditional was optimized to true/false.
1162 (reassociate_bb): Bubble up return value from
1163 maybe_optimize_range_tests.
1164 (do_reassoc): Similarly, but for reassociate_bb.
1165 (execute_reassoc): Return TODO_cleanup_cfg as needed.
1167 2015-12-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1169 * config/aarch64/aarch64.c (aarch64_override_options_internal):
1170 Do not alter target_flags due to TARGET_GENERAL_REGS_ONLY_P.
1171 * doc/invoke.texi (AArch64 options): Mention that -mgeneral-regs-only
1172 does not affect the assembler directives.
1174 2015-12-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
1176 * config/s390/s390.c (s390_asm_file_start): Implement hook function to
1177 emit .machine and .machinemode to the top of the assembler file.
1178 (TARGET_ASM_FILE_START): Provide target hook.
1179 (s390_asm_output_machine_for_arch): Protect with
1180 HAVE_AS_MACHINE_MACHINEMODE instead of S390_USE_TARGET_ATTRIBUTE.
1182 2015-12-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
1184 * config/s390/s390.opt (s390_arch_string): Remove.
1185 (s390_tune_string): Likewise.
1186 (s390_cost_pointer): Add Variable.
1187 (s390_tune_flags): Add TargetVariable.
1188 (s390_arch_flags, march=, mbackchain, mdebug, mesa, mhard-dfp),
1189 (mhard-float, mlong-double-128, mlong-double-64, mhtm, mvx),
1190 (mpacked-stack, msmall-exec, msoft-float, mstack-guard=, mstack-size=),
1191 (mtune=, mmvcle, mzvector, mzarch, mbranch-cost=, mwarn-dynamicstack),
1192 (mwarn-framesize=): Save option.
1193 (mno-stack-guard, mno-stack-guard): New option.
1194 (mwarn-dynamicstack): Allow mno-warn-dynamicstack.
1195 (mwarn-framesize=): Convert to UInteger (negative values are rejected
1197 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Split setting
1198 macros changeable through the GCC target pragma into a separate
1200 (s390_cpu_cpp_builtins): Likewise.
1201 (s390_pragma_target_parse): New function, implement GCC target pragma
1203 (s390_register_target_pragmas): Register s390_pragma_target_parse if
1205 * common/config/s390/s390-common.c (s390_handle_option):
1207 Move setting s390_arch_flags to s390.c.
1208 Remove s390_tune_flags.
1209 Allow 0 as argument to -mstack-size (switch to default value).
1210 Allow 0 as argument to -mstack-guard (switch off).
1211 Remove now unnecessary explicit parsing code for -mwarn-framesize.
1212 * config/s390/s390-protos.h (s390_handle_option): Export.
1213 (s390_valid_target_attribute_tree): Export.
1214 (s390_reset_previous_fndecl): Export.
1215 * config/s390/s390-builtins.def: Use new macro B_GROUP to mark the start
1216 and end of HTM and VX builtins.
1217 (s390_asm_output_function_prefix): Declare hook.
1218 (s390_asm_declare_function_size): Likewise.
1219 * config/s390/s390-builtins.h (B_GROUP): Use macro.
1220 * config/s390/s390-opts.h: Add comment about processor_type usage.
1221 * config/s390/s390.h (TARGET_CPU_IEEE_FLOAT_P, TARGET_CPU_ZARCH_P),
1222 (TARGET_CPU_LONG_DISPLACEMENT_P, TARGET_CPU_EXTIMM_P, TARGET_CPU_DFP_P),
1223 (TARGET_CPU_Z10_P, TARGET_CPU_Z196_P, TARGET_CPU_ZEC12_P),
1224 (TARGET_CPU_HTM_P, TARGET_CPU_Z13_P, TARGET_CPU_VX_P),
1225 (TARGET_HARD_FLOAT_P, TARGET_LONG_DISPLACEMENT_P, TARGET_EXTIMM_P),
1226 (TARGET_DFP_P, TARGET_Z10_P, TARGET_Z196_P, TARGET_ZEC12_P),
1227 (TARGET_HTM_P, TARGET_Z13_P, TARGET_VX_P, TARGET_CPU_EXTIMM),
1228 (TARGET_CPU_DFP, TARGET_CPU_Z10, TARGET_CPU_Z196, TARGET_CPU_ZEC12),
1229 (TARGET_CPU_HTM, TARGET_CPU_Z13, TARGET_LONG_DISPLACEMENT),
1230 (TARGET_EXTIMM, TARGET_DFP, TARGET_Z10, TARGET_Z196, TARGET_ZEC12),
1231 (TARGET_Z13, TARGET_VX, S390_USE_TARGET_ATTRIBUTE),
1232 (S390_USE_ARCHITECTURE_MODIFIERS, SWITCHABLE_TARGET),
1233 (ASM_DECLARE_FUNCTION_SIZE, ASM_OUTPUT_FUNCTION_PREFIX): Likewise.
1234 * config/s390/vecintrin.h: Use vector definitions even if __VEC__ is
1236 (vec_all_nan): Rewrite as macro using statement expressions to avoid
1237 that the vector keyword needs to be defined when including the file.
1238 (vec_all_numeric): Likewise.
1239 (vec_any_nan): Likewise.
1240 (vec_any_numeric): Likewise.
1241 * config/s390/s390.c (s390_previous_fndecl): New static variable.
1242 (s390_set_current_function): New function.
1243 (s390_cost): Wrapper macro to allow defining the cost table pointer in
1245 (processor_table): Table for march= and mtune= parsing.
1246 (s390_init_builtins): Enable all builtins and types unconditionally.
1247 (s390_expand_builtin): Generate an error message if builtin is not
1248 supported by current options.
1249 Correct an error message.
1250 (s390_function_specific_restore): New function to set s390_cost.
1251 (s390_asm_output_machine_for_arch): New function for emitting .machine
1252 and .machinmode directives to the assembler file.
1253 (s390_asm_output_function_prefix): Likewise.
1254 (s390_asm_declare_function_size): Likewise.
1255 (s390_asm_output_function_label): Add mdebug output for feature testing.
1256 (s390_option_override): Move implementation into internal function.
1257 (s390_option_override_internal): Likewise.
1258 Implement option overriding based on current options.
1259 (s390_valid_target_attribute_inner_p): New function implementing target
1261 (s390_valid_target_attribute_tree): Likewise.
1262 (s390_valid_target_attribute_p): Likewise.
1263 (s390_reset_previous_fndecl): Likewise.
1264 (s390_set_current_function): Likewise.
1265 (TARGET_SET_CURRENT_FUNCTION): Provide target hook function.
1266 (TARGET_OPTION_VALID_ATTRIBUTE_P): Likewise.
1267 (TARGET_OPTION_RESTORE): Likewise.
1268 * doc/extend.texi: S390: Document target attribute and pragma.
1269 * config.in: Regenerated.
1270 * configure: Regenerated.
1271 * configure.ac: S390: Check for .machinemode and .machine in gas.
1272 S390: Check for architecture modifiers support in gas.
1274 2015-12-04 Kirill Yukhin <kirill.yukhin@intel.com>
1276 * doc/extend.texi ("simd"): Describe new flags.
1278 2015-12-04 Ilya Enkovich <enkovich.gnu@gmail.com>
1280 * config/i386/sse.md (<avx512>_store<mode>_mask): Fix
1281 operand checked for alignment.
1283 2015-12-04 Nathan Sidwell <nathan@acm.org>
1285 * config/nvptx/nvptx.c (write_one_arg): Deal with prologue
1286 emission too. Change 'no_arg_types' to 'prototyped'.
1287 (write_fn_proto): Use write_one_arg for stdarg, static chain &
1289 (nvptx_declare_function_name): Use write_one_arg for prologue copies.
1291 2015-12-04 Richard Biener <rguenther@suse.de>
1293 * tree-ssa-sccvn.c (sccvn_dom_walker): Add unreachable_dom
1294 member and initialize it.
1295 (sccvn_dom_walker::after_dom_children): Reset unreachable_dom
1297 (sccvn_dom_walker::before_dom_children): If unreachable_dom
1298 is set BB is not reachable either. Set unreachable_dom
1299 if not set and BB is unreachable.
1301 2015-12-04 Richard Biener <rguenther@suse.de>
1303 * bitmap.c (bitmap_find_bit): Guard the bitmap descriptor
1304 query with GATHER_STATISTICS.
1306 2015-12-04 Eric Botcazou <ebotcazou@adacore.com>
1309 * gimplify.c (struct gimplify_ctx): Turn boolean fields into 1-bit
1310 fields, add keep_stack and reorder them.
1311 (gimplify_bind_expr): Save gimplify_ctxp->keep_stack on entry then
1312 set it to false. Do not insert a stack save/restore pair if it has
1313 been set to true by the gimplification of the statements.
1314 Restore it to the saved value on exit if it is still false.
1315 (gimplify_vla_decl): Do not set gimplify_ctxp->save_stack here.
1316 (gimplify_call_expr) <BUILT_IN_ALLOCA[_WITH_ALIGN]>: New case. Set
1317 either save_stack or keep_stack depending on CALL_ALLOCA_FOR_VAR_P.
1318 * doc/extend.texi (Variable Length): Document new behavior.
1319 * doc/generic.texi (Blocks): Document new handling of VLAs.
1321 2015-12-04 Eric Botcazou <ebotcazou@adacore.com>
1322 Tristan Gingold <gingold@adacore.com>
1325 * config/aarch64/aarch64-protos.h (aarch64_output_probe_stack-range):
1327 * config/aarch64/aarch64.md: Declare UNSPECV_BLOCKAGE and
1328 UNSPEC_PROBE_STACK_RANGE.
1329 (blockage): New instruction.
1330 (probe_stack_range_<PTR:mode>): Likewise.
1331 * config/aarch64/aarch64.c (aarch64_emit_probe_stack_range): New
1333 (aarch64_output_probe_stack_range): Likewise.
1334 (aarch64_expand_prologue): Invoke aarch64_emit_probe_stack_range if
1335 static builtin stack checking is enabled.
1336 * config/aarch64/aarch64-linux.h (STACK_CHECK_STATIC_BUILTIN):
1339 2015-12-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1342 * config/arm/arm.md (*call_mem): Delete pattern.
1343 (*call_value_mem): Likewise.
1344 * config/arm/arm.c (output_call_mem): Delete.
1345 * config/arm/arm-protos.h (output_call_mem): Delete prototype.
1347 2015-12-04 Bin Cheng <bin.cheng@arm.com>
1349 * config/aarch64/atomics.md (atomic_store<mode>): Use predicate
1350 aarch64_sync_memory_operand.
1352 2015-12-04 Jakub Jelinek <jakub@redhat.com>
1355 * config/i386/i386.c (canonicalize_vector_int_perm): New function.
1356 (expand_vec_perm_1): Use it and recurse if everything else
1357 failed. Use nd.perm instead of perm2.
1358 (expand_vec_perm_even_odd_1): If testing_p, use gen_raw_REG
1359 instead of gen_lowpart for the target.
1360 (ix86_expand_vec_perm_const_1): Use canonicalize_vector_int_perm
1361 and recurse if everything else failed.
1363 2015-12-04 Richard Biener <rguenther@suse.de>
1366 * builtins.c (get_pointer_alignment_1): Take care of byte to
1367 bit alignment computation overflow.
1369 2015-12-04 Richard Biener <rguenther@suse.de>
1372 * match.pd: Guard ~X cmp ~Y -> Y cmp X and the variant with
1373 a constant with single_use.
1375 2015-12-04 Bin Cheng <bin.cheng@arm.com>
1376 Jiong Wang <jiong.wang@arm.com>
1378 * config/aarch64/aarch64.c (aarch64_legitimize_address): legitimize
1379 address expressions like Ra + Rb + CONST and Ra + Rb<<SCALE + CONST.
1381 2015-12-03 Jan Hubicka <hubicka@ucw.cz>
1383 * alias.c (alias_set_subset_of, alias_sets_must_conflict_p):
1384 Add short circuit for !flag_strict_aliasing
1385 (get_alias_set): Remove flag_strict_aliasing check.
1386 (new_alias_set): Likewise.
1388 2015-12-03 Evandro Menezes <e.menezes@samsung.com>
1390 * config/aarch64/aarch64-cores.def: Use the Exynos M1 cost model.
1391 * config/aarch64/aarch64.c (exynosm1_addrcost_table): New variable.
1392 (exynosm1_regmove_cost): Likewise.
1393 (exynosm1_vector_cost): Likewise.
1394 (exynosm1_tunings): Likewise.
1395 * config/arm/aarch-cost-tables.h (exynosm1_extra_costs): Likewise.
1396 * config/arm/arm.c (arm_exynos_m1_tune): Likewise.
1398 2015-12-03 Alan Lawrence <alan.lawrence@arm.com>
1399 Richard Biener <richard.guenther@gmail.com>
1401 * cfgexpand.c (pass_expand::execute): Replace call to
1402 redirect_edge_var_map_destroy with redirect_edge_var_map_empty.
1403 * tree-ssa.c (delete_tree_ssa): Likewise.
1404 * function.c (set_cfun): Call redirect_edge_var_map_empty.
1405 * passes.c (execute_one_ipa_transform_pass, execute_one_pass): Likewise.
1406 * tree-ssa.h (redirect_edge_var_map_destroy): Remove.
1407 (redirect_edge_var_map_empty): New.
1408 * tree-ssa.c (redirect_edge_var_map_destroy): Remove.
1409 (redirect_edge_var_map_empty): New.
1411 2015-12-03 Jeff Law <law@redhat.com>
1413 PR tree-optimization/68599
1414 * loop-init.c (rtl_loop_init): Set LOOPS_HAVE_RECORDED_EXITS
1415 in call to loop_optimizer_init.
1416 * loop-iv.c (get_simple_loop_desc): Only allow unsafe loop
1417 optimization to drop the assumptions/infinite notations if
1418 the loop has a single exit.
1420 2015-12-03 Richard Sandiford <richard.sandiford@arm.com>
1422 * doc/md.texi (vec_load_lanes@var{m}@var{n}): Document that
1423 the pattern cannot FAIL.
1424 (vec_store_lanes@var{m}@var{n}): Likewise.
1425 (maskload@var{m}@var{n}): Likewise.
1426 (maskstore@var{m}@var{n}): Likewise. Fix a cut-&-paste error
1427 in the name of the pattern.
1428 (rsqrt@var{m}2): Document that mode m must be a scalar or vector
1429 floating-point mode and that all operands have that mode.
1430 (fmin@var{m}3, fmax@var{m}3): Likewise. Document that the
1431 pattern cannot FAIL.
1432 (sqrt@var{m}2): Document that mode m must be a scalar or vector
1433 floating-point mode, that all operands have that mode, and that
1434 the patterns cannot FAIL. Remove previous documentation referring
1435 to @code{double} and @code{float}.
1436 (fmod@var{m}3, remainder@var{m}3, cos@var{m}2, sin@var{m}2)
1437 (sincos@var{m}3, log@var{m}2, pow@var{m}3, atan2@var{m}3)
1438 (copysign@var{m}3): Likewise.
1439 (exp@var{m}2): Likewise. Explicitly state the base.
1440 (floor@var{m}2): As for sqrt@var{m}2, but also specify the operands.
1441 (btrunc@var{m}2, rint@var{m}2): Likewise.
1442 (round@var{m}2): Likewise. Fix incorrect description of rounding
1444 (ceil@var{m}2): As for round@var{m}2.
1445 (nearbyint@var{m}2): As for floor@var{m}2, but also mention that
1446 the instruction must not raise an inexact condition.
1447 (scalb@var{m}3): Document previously-undocumented pattern
1448 (ldexp@var{m}3, tan@var{m}2, asin@var{m}2, acos@var{m}2)
1449 (atan@var{m}2, expm1@var{m}2, exp10@var{m}2, exp2@var{m}2)
1450 (log1p@var{m}2, log10@var{m}2, log2@var{m}2, logb@var{m}2)
1451 (significand@var{m}2): Likewise.
1452 (ffs@var{m}2): Fix the description of the modes, so that operand 1 has
1453 mode m and operand 0 is defined more freely. Document that @var{m}
1454 can be a scalar or vector integer mode and that the pattern is not
1456 (clz@var{m}2, ctz@var{m}2, popcount@var{m}2, parity@var{m}2): Likewise.
1457 (clrsb@var{m}2): Likewise, except that the description of the
1458 mode was missing in this case.
1460 2015-12-03 Richard Sandiford <richard.sandiford@arm.com>
1462 * internal-fn.def (RSQRT): New function.
1463 * optabs.def (rsqrt_optab): New optab.
1464 * doc/md.texi (rsqrtM2): Document.
1465 * target.def (builtin_reciprocal): Replace gcall argument with
1466 a function decl. Restrict hook to machine functions.
1467 * doc/tm.texi: Regenerate.
1468 * targhooks.h (default_builtin_reciprocal): Update prototype.
1469 * targhooks.c (default_builtin_reciprocal): Likewise.
1470 * tree-ssa-math-opts.c: Include internal-fn.h.
1471 (internal_fn_reciprocal): New function.
1472 (pass_cse_reciprocals::execute): Call it, and build a call to an
1473 internal function on success. Only call targetm.builtin_reciprocal
1474 for machine functions.
1475 * config/aarch64/aarch64-protos.h (aarch64_builtin_rsqrt): Remove
1477 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin_rsqrt):
1478 Rename aarch64_rsqrt_<mode>2 to rsqrt<mode>2.
1479 (aarch64_builtin_rsqrt): Remove md_fn argument and only handle
1481 * config/aarch64/aarch64.c (use_rsqrt_p): New function.
1482 (aarch64_builtin_reciprocal): Replace gcall argument with a
1483 function decl. Use use_rsqrt_p. Remove optimize_size check.
1484 Only handle machine functions. Update call to aarch64_builtin_rsqrt.
1485 (aarch64_optab_supported_p): New function.
1486 (TARGET_OPTAB_SUPPORTED_P): Define.
1487 * config/aarch64/aarch64-simd.md (aarch64_rsqrt_<mode>2): Rename to...
1488 (rsqrt<mode>2): ...this.
1489 * config/i386/i386.c (use_rsqrt_p): New function.
1490 (ix86_builtin_reciprocal): Replace gcall argument with a
1491 function decl. Use use_rsqrt_p. Remove optimize_insn_for_size_p
1492 check. Only handle machine functions.
1493 (ix86_optab_supported_p): Handle rsqrt_optab.
1494 * config/rs6000/rs6000.c (TARGET_OPTAB_SUPPORTED_P): Define.
1495 (rs6000_builtin_reciprocal): Replace gcall argument with a
1496 function decl. Remove optimize_insn_for_size_p check.
1497 Only handle machine functions.
1498 (rs6000_optab_supported_p): New function.
1500 2015-12-03 Bernd Schmidt <bschmidt@redhat.com>
1504 * config/i386/i386.c (ix86_mitigate_rop): Don't call
1505 compute_bb_for_insn again. Call df_insn_rescan_all.
1506 * config/i386/i386.md (set_got_rex64): Override modrm_class.
1508 * regrename.c (build_def_use): Ignore stack regs if regstack_completed.
1510 2015-12-03 Nathan Sidwell <nathan@acm.org>
1512 * config/nvptx/nvptx-protos.h (npvptx_section_from_addr_space): Delete.
1513 * config/nvptx/nvptx.c (enum nvptx_data_area): New.
1514 (SYMBOL_DATA_AREA, SET_SYMBOL_DATA_AREA): New defines.
1515 (nvptx_option_override): Set data ares for worker vars.
1516 (nvptx_addr_space_from_sym): Delete.
1517 (nvptx_encode_section_info): New.
1518 (section_for_sym, section_for_decl): New.
1519 (nvptx_maybe_convert_symbolic_operand): Get data area from symbol flags.
1520 (nvptx_section_from_addr_space): Delete.
1521 (nvptx_section_for_decl): Delete.
1522 (nvptx_output_aligned, nvptx_declare_object_name,
1523 nvptx_assemble_undefined_decl): Use section_for_decl, remove
1525 (nvptx_print_operand): Add 'D', adjust 'A'.
1526 (nvptx_expand_worker_addr): Adjust unspec generation.
1527 (TARGET_ENCODE_SECTION_INFO): Override.
1528 * config/nvptx/nvptx.h (ADDR_SPACE_GLOBAL, ADDR_SPACE_SHARED,
1529 ADDR_SPACE_CONST, ADDR_SPACE_LOCAL, ADDR_SPACE_PARAM): Delete.
1530 * config/nvptx/nvptx.md (UNSPEC_FROM_GLOBAL, UNSPEC_FROM_LOCAL,
1531 UNSPEC_FROM_PARAM, UNSPEC_FROM_SHARED, UNSPEC_FROM_CONST,
1532 UNSPEC_TO_GLOBAL, UNSPEC_TO_LOCAL, UNSPEC_TO_PARAM,
1533 UNSPEC_TO_SHARED, UNSPEC_TO_CONST): Delete.
1534 (UNSPEC_TO_GENERIC): New.
1535 (nvptx_register_or_symbolic_operand): Delete.
1536 (cvt_code, cvt_name, cvt_str): Delete.
1537 (convaddr_<cvt_name><mode> [P]): Delete.
1538 (convaddr_<mode> [P]): New.
1540 2015-12-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1542 PR rtl-optimization/68624
1543 * ifcvt.c (noce_try_cmove_arith): Check clobbers of temp regs in both
1544 blocks if they exist and simplify the logic choosing the order to emit
1547 2015-12-03 Richard Biener <rguenther@suse.de>
1549 PR tree-optimization/66051
1550 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
1551 on load group size. Do not pass in vectorization_factor.
1552 (vect_transform_slp_perm_load): Do not require any permute support.
1553 (vect_build_slp_tree): Do not pass in vectorization factor.
1554 (vect_analyze_slp_instance): Do not compute vectorization
1555 factor estimate. Use vector size instead of vectorization factor
1556 estimate to split store groups for BB vectorization.
1558 2015-12-03 Ilya Enkovich <enkovich.gnu@gmail.com>
1560 * cfgexpand.c (expand_gimple_stmt_1): Return statement with
1561 DECL as return value is allowed to have NULL bounds.
1563 2015-12-03 Tom de Vries <tom@codesourcery.com>
1565 * graphite-isl-ast-to-gimple.c (binary_op_to_tree)
1566 (gcc_expression_from_isl_expr_op): Guard isl_ast_op_zdiv_r usage with
1567 HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
1569 2015-12-03 Richard Biener <rguenther@suse.de>
1571 PR tree-optimization/67800
1572 PR tree-optimization/68333
1573 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Restore
1574 restriction to reduction contexts but allow SLP reductions as well.
1575 (vect_recog_sad_pattern): Likewise.
1576 (vect_recog_widen_sum_pattern): Likewise.
1578 2015-12-03 Richard Biener <rguenther@suse.de>
1580 PR tree-optimization/68639
1581 * tree-vect-data-refs.c (dr_group_sort_cmp): Split groups
1582 belonging to different loops.
1583 (vect_analyze_data_ref_accesses): Likewise.
1585 2015-12-02 Kirill Yukhin <kirill.yukhin@intel.com>
1587 * config/i386/sse.md (define_insn "vec_extract_hi_<mode>_maskm"):
1588 Remove "prefix_extra".
1589 (define_insn "vec_extract_hi_<mode>_mask"): New.
1590 (define_insn "vec_extract_hi_<mode>"): Remove masking.
1592 2015-12-02 Jan Hubicka <hubicka@ucw.cz>
1594 * ipa-pure-const.c (ignore_edge_for_pure_const): New function.
1595 (propagate_pure_const): Use it; fix comments and optimize loops.
1597 2015-12-02 Jan Hubicka <hubicka@ucw.cz>
1599 * ipa-pure-const.c (ignore_edge): Rename to ...
1600 (ignore_edge_for_nothrow) ... this one; also ignore eges to
1601 interposable functions or ones that can not throw.
1602 (propagate_nothrow): Fix handling of availability.
1604 2015-12-02 Jan Hubicka <hubicka@ucw.cz>
1607 * cgraphunit.c (cgraph_node::analyze): Set can_throw_external.
1609 2015-12-02 Aditya Kumar <aditya.k7@samsung.com>
1610 Sebastian Pop <s.pop@samsung.com>
1612 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Handle
1614 (gcc_expression_from_isl_expr_op): Same.
1616 2015-12-02 Aditya Kumar <aditya.k7@samsung.com>
1617 Sebastian Pop <s.pop@samsung.com>
1619 * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Check
1620 that insertion point is still in the region.
1622 2015-12-02 Aditya Kumar <aditya.k7@samsung.com>
1623 Sebastian Pop <s.pop@samsung.com>
1625 PR tree-optimization/68550
1626 * graphite-isl-ast-to-gimple.c (copy_loop_phi_nodes): Add dump.
1627 (copy_bb_and_scalar_dependences): Do not code generate loop peeled
1630 2015-12-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1632 * configure.ac: Check assembler support for R_PPC64_ENTRY relocation.
1633 * configure: Regenerate.
1634 * config.in: Regenerate.
1635 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p): New
1637 (rs6000_output_function_prologue): Use it instead of checking
1638 cfun->machine->r2_setup_needed. Use internal labels instead of
1639 GNU as local label extension. Handle ELFv2 large code model.
1640 (rs6000_output_mi_thunk): Do not set cfun->machine->r2_setup_needed.
1641 (rs6000_elf_declare_function_name): Handle ELFv2 large code model.
1643 2015-12-02 Jakub Jelinek <jakub@redhat.com>
1646 * optabs.c (expand_doubleword_popcount, expand_doubleword_parity):
1648 (expand_unop): Use them.
1650 2015-12-02 Marek Polacek <polacek@redhat.com>
1653 * tree.c (nonnull_arg_p): Allow OFFSET_TYPE.
1655 2015-12-02 Nathan Sidwell <nathan@acm.org>
1657 * config/nvptx/nvptx.c (enum nvptx_shuffle_kind): New. Absorb
1659 (nvptx_gen_shuffle, nvptx_print_operand, nvptx_expand_shuffle): Adjust.
1661 2015-12-02 Aditya Kumar <aditya.k7@samsung.com>
1662 Sebastian Pop <s.pop@samsung.com>
1664 * graphite-dependences.c (scop_get_reads): Add extra dumps.
1665 (scop_get_must_writes): Same.
1666 (scop_get_may_writes): Same.
1667 (compute_deps): Same.
1668 * graphite-sese-to-poly.c (bounds_are_valid): New.
1669 (pdr_add_data_dimensions): Call bounds_are_valid.
1671 2015-12-02 Aditya Kumar <aditya.k7@samsung.com>
1672 Sebastian Pop <s.pop@samsung.com>
1674 * common.opt (flag_loop_optimize_isl): Renamed flag_loop_nest_optimize.
1675 * graphite-poly.c (apply_poly_transforms): Same.
1676 * graphite.c (gate_graphite_transforms): Same.
1677 * toplev.c (process_options): Same.
1679 2015-12-02 Eric Botcazou <ebotcazou@adacore.com>
1681 * config/mips/mips.c (mips_emit_probe_stack_range): Adjust.
1682 (mips_output_probe_stack_range): Rotate the loop and simplify.
1684 2015-12-02 David Sherwood <david.sherwood@arm.com>
1686 * config/aarch64/aarch64.md: New pattern.
1687 * config/aarch64/aarch64-simd.md: Likewise.
1688 * config/aarch64/iterators.md: New unspecs, iterators.
1690 2015-12-02 Pierre-Marie de Rodat <derodat@adacore.com>
1692 * dwarf2out.c (dwar2out_var_location): In addition to notes,
1693 process indirect calls whose target is compile-time known.
1694 Enhance pattern matching to get the SYMBOL_REF they embed.
1695 (gen_subprogram_die): Handle such calls.
1696 * final.c (final_scan_insn): For call instructions, invoke the
1697 var_location debug hook only after the call has been emitted.
1699 2015-12-02 Tom de Vries <tom@codesourcery.com>
1701 * gimplify.c (enum gimplify_omp_var_data): Add enum value
1703 (oacc_default_clause): Fix default for scalars in oacc kernels.
1704 (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_FORCE.
1706 2015-12-02 Tom de Vries <tom@codesourcery.com>
1708 * omp-low.c (install_var_field, scan_sharing_clauses): Add and handle
1709 parameter base_pointers_restrict.
1710 (omp_target_base_pointers_restrict_p): New function.
1711 (scan_omp_target): Call scan_sharing_clauses with
1712 base_pointers_restrict arg.
1714 2015-12-02 Nathan Sidwell <nathan@acm.org>
1716 * config/nvptx/nvptx-protos.h (nvptx_output_mov_insn): Declare.
1717 (nvptx_underlying_object_mode): Delete.
1718 * config/nvptx/nvptx.c (nvptx_underlying_object_mode): Delete.
1720 (nvptx_declare_function_name): Use output_reg. Remove punning buffer.
1721 (nvptx_output_mov_insn): New.
1722 (nvptx_print_operand): Separate SUBREG handling, remove 'f' case,
1723 Use output_reg. Merge 't' and 'u' handling.
1724 * config/nvptx/nvptx.h (NVPTX_PUNNING_BUFFER_REGNUM): Delete.
1725 (struct machine_function): Remvoe punning_buffer_size.
1726 (REGISTER_NAMES): Remove %punbuffer.
1727 * config/nvptx/nvptx.md (UNSPEC_CPLX_LOWPART,
1728 UNSPEC_CPLX_HIGHPART): Delete.
1729 (*mov<mode>_insn [QHSDIM): Remove unnecessary constraints, use
1730 nvptx_output_mov_insn.
1731 (*mov<mode>_insn [SDFM): Reorder constraints to match integer moc.
1732 Use nvptx_output_mov_insn.
1733 (highpartscsf2, set_highpartscsf2, lowpartscsf2, set_lowpartscsf2):
1735 (mov<mode> [SDCM]): Delete.
1737 2015-12-02 Richard Biener <rguenther@suse.de>
1739 * tree.h (tree_invariant_p): Declare.
1740 * tree.c (tree_invariant_p): Export.
1741 * genmatch.c (dt_simplify::gen_1): For GENERIC code-gen never
1742 create SAVE_EXPRs but reject patterns if we would need to.
1744 2015-12-02 Tom de Vries <tom@codesourcery.com>
1746 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call)
1747 (find_func_clobbers, ipa_pta_execute): Handle BUILT_IN_GOACC_PARALLEL.
1749 2015-12-02 Segher Boessenkool <segher@kernel.crashing.org>
1751 * config/rs6000/rs6000.md (cstore_si_as_di): New expander.
1752 (cstore<mode>4): Use it.
1754 2015-12-02 Richard Biener <rguenther@suse.de>
1756 PR tree-optimization/68625
1757 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not call
1758 cleanup_control_flow_bb.
1759 (cleanup_tree_cfg_1): First perform cleanup_control_flow_bb
1760 on all BBs, then cleanup_tree_cfg_bb and finally iterate
1761 over the worklist doing both.
1763 2015-12-02 Richard Sandiford <richard.sandiford@arm.com>
1765 PR tree-optimization/68432
1766 * coretypes.h (optimization_type): New enum.
1767 * doc/tm.texi.in (TARGET_OPTAB_SUPPORTED_P): New hook.
1768 * doc/tm.texi: Regenerate.
1769 * target.def (optab_supported_p): New hook.
1770 * targhooks.h (default_optab_supported_p): Declare.
1771 * targhooks.c (default_optab_supported_p): New function.
1772 * predict.h (function_optimization_type): Declare.
1773 (bb_optimization_type): Likewise.
1774 * predict.c (function_optimization_type): New function.
1775 (bb_optimization_type): Likewise.
1776 * optabs-query.h (convert_optab_handler): Define an overload
1777 that takes an optimization type.
1778 (direct_optab_handler): Likewise.
1779 * optabs-query.c (convert_optab_handler): Likewise.
1780 (direct_optab_handler): Likewise.
1781 * internal-fn.h (direct_internal_fn_supported_p): Take an
1782 optimization_type argument.
1783 * internal-fn.c (direct_optab_supported_p): Likewise.
1784 (multi_vector_optab_supported_p): Likewise.
1785 (direct_internal_fn_supported_p): Likewise.
1786 * builtins.c (replacement_internal_fn): Update call to
1787 direct_internal_fn_supported_p.
1788 * gimple-match-head.c (build_call_internal): Likewise.
1789 * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
1790 * tree-vect-stmts.c (vectorizable_internal_function): Likewise.
1791 * tree.c (maybe_build_call_expr_loc): Likewise.
1792 * config/i386/i386.c (ix86_optab_supported_p): New function.
1793 (TARGET_OPTAB_SUPPORTED_P): Define.
1794 * config/i386/i386.md (asinxf2): Remove optimize_insn_for_size_p check.
1795 (asin<mode>2, acosxf2, acos<mode>2, log1pxf2, log1p<mode>2)
1796 (expNcorexf3, expxf2, exp<mode>2, exp10xf2, exp10<mode>2, exp2xf2)
1797 (exp2<mode>2, expm1xf2, expm1<mode>2, ldexpxf3, ldexp<mode>3)
1798 (scalbxf3, scalb<mode>3, rint<mode>2, round<mode>2)
1799 (<rounding_insn>xf2, <rounding_insn><mode>2): Likewise.
1801 2015-12-02 Richard Sandiford <richard.sandiford@arm.com>
1803 * Makefile.in (GENSUPPORT_H): New macro.
1804 (build/gensupport.o, build/read-rtl.o, build/genattr.o)
1805 (build/genattr-common.o, build/genattrtab.o, build/genautomata.o)
1806 (build/gencodes.o, build/genconditions.o, build/genconfig.o)
1807 (build/genconstants.o, build/genextract.o, build/genflags.o)
1808 (build/gentarget-def.o): Use it.
1809 (build/genemit.o): Likewise. Depend on internal-fn.def.
1810 * genopinit.c: Move block comment to optabs.def.
1811 (optab_tag, optab_def): Move to gensupport.h
1812 (pattern): Likewise, renaming to optab_pattern.
1813 (match_pattern): Move to gensupport.c
1814 (gen_insn): Use find_optab.
1815 (patterns, pattern_cmp): Replace pattern with optab_pattern.
1816 (main): Likewise. Use num_optabs.
1817 * optabs.def: Add comment that was previously in genopinit.c.
1818 * gensupport.h (optab_tag): Moved from genopinit.c
1819 (optab_def): Likewise, expanding commentary.
1820 (optab_pattern): Likewise, after renaming from pattern.
1821 (optabs, num_optabs, find_optab): Declare.
1822 * gensupport.c (optabs): Moved from genopinit.c.
1823 (num_optabs): New variable.
1824 (match_pattern): Moved from genopinit.c.
1825 (find_optab): New function, extracted from genopinit.c:gen_insn.
1826 * genemit.c (nofail_optabs): New variable.
1827 (emit_c_code): New function.
1828 (gen_expand): Check whether the instruction is an optab that isn't
1829 allowed to fail. Call emit_c_code.
1830 (gen_split): Call emit_c_code here too.
1831 (main): Initialize nofail_optabs. Don't emit FAIL and DONE here.
1833 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1835 * config/s390/predicates.md (const_mask_operand): New predicate.
1836 * config/s390/s390-builtins.def: Set a smaller bitmask
1838 * config/s390/vector.md: Change predicate from immediate_operand
1839 to either const_int_operand or const_mask_operand. Add special
1840 insn conditions on patterns which have to exclude certain values.
1841 * config/s390/vx-builtins.md: Likewise.
1843 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1845 * config/s390/vector.md ("*vec_set<mode>"): Change shift count
1848 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1850 * config/s390/s390-builtin-types.def: New builtin types added.
1851 * config/s390/s390-builtins.def: Add s390_vec_splat_* definitions.
1852 * config/s390/s390.c (s390_expand_builtin): Always truncate
1853 constants to the mode in the pattern.
1854 * config/s390/vecintrin.h: Let the vec_splat_* macros point to the
1855 respective builtin __builtin_s390_vec_splat_*.
1857 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1859 * config/s390/s390-builtin-types.def: Sort builtin types.
1861 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1863 * config/s390/s390-c.c (s390_get_vstring_flags): Invert the
1864 condition for the RT flag.
1866 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1868 * config/s390/constraints.md ("jKK"): New constraint.
1869 * config/s390/s390.c (tm-constrs.h): Include for
1870 satisfies_constraint_*.
1871 (s390_legitimate_constant_p): Allow jKK constants. Use
1872 satisfies_constraint_* also for the others.
1873 (legitimate_reload_vector_constant_p): Likewise.
1874 (print_operand): Allow h output modifier on vectors.
1875 * config/s390/vector.md ("mov<mode>"): Add vrepi.
1877 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1879 * config/s390/vector.md ("*vec_splats<mode>"): Fix constraint
1882 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1884 * config/s390/s390.md ("bswap<mode>2"): Add support for strv and strvg.
1885 ("bswaphi2"): New pattern.
1886 New splitter for HI reg-reg bswap.
1888 2015-11-27 Jiri Engelthaler <engycz@gmail.com>
1891 * opts-common.c (prune_options): Don't ignore -fdiagnostics-color
1892 if it is the first parameter.
1894 2015-12-01 Richard Sandiford <richard.sandiford@arm.com>
1896 PR tree-optimization/68577
1897 * tree-vect-stmts.c (simple_integer_narrowing): New function.
1898 (vectorizable_call): Restrict internal function handling
1899 to NONE and NARROW cases, using simple_integer_narrowing
1900 to test for the latter. Add cost of narrowing operation
1901 and insert it where necessary.
1903 2015-12-01 Andreas Tobler <andreast@gcc.gnu.org>
1905 * config/rs6000/freebsd64.h (ELFv2_ABI_CHECK): Add new macro.
1906 (SUBSUBTARGET_OVERRIDE_OPTIONS): Use it to decide whether to set
1907 rs6000_current_abi to ABI_AIX or ABI_ELFv2.
1909 2015-12-01 Nathan Sidwell <nathan@acm.org>
1911 * config/nvptx/nvptx-protos.h (nvptx_output_aligned_decl): Declare.
1912 * config/nvptx/nvptx.h (ASM_OUTPUT_ALIGNED_DECL_COMMON,
1913 ASM_OUTPUT_ALIGNED_DECL_LOCAL): Forward to nvptx_output_aligned_decl.
1914 * config/nvptx/nvptx.c (write_fn_marker, write_var_marker): New.
1915 (write_fn_proto, write_fn_proto_from_insn): Call write_fn_marker.
1916 (init_output_initializer): Call write_var_marker.
1917 (nvptx_output_aligned_decl): New.
1918 (nvptx_assemble_undefined_decl, nvptx_file_end): Call write_var_marker.
1920 2015-12-01 Jan Hubicka <hubicka@ucw.cz>
1922 * c-common.c (parse_optimize_options): Do not silently ignore
1923 -fstrict-aliasing changes.
1925 2015-12-01 Jan Hubicka <hubicka@ucw.cz>
1927 * lto-streamer-out.c (hash_tree): Do not stream TYPE_ALIAS_SET.
1928 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not
1929 stream TYPE_ALIAS_SET.
1930 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Do not
1931 stream TYPE_ALIAS_SET.
1933 2015-12-01 Nathan Sidwell <nathan@acm.org>
1935 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Don't
1938 2015-12-01 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1940 * config/rs6000/rs6000.c (const_load_sequence_p): Handle extra
1941 indirection for large and small code models.
1942 (adjust_vperm): Likewise.
1944 2015-12-01 Julian Brown <julian@codesourcery.com>
1945 Cesar Philippidis <cesar@codesourcery.com>
1946 James Norris <James_Norris@mentor.com>
1948 * gimple-pretty-print.c (dump_gimple_omp_target): Add host_data support.
1949 * gimple.h (gf_mask): Add GF_OMP_TARGET_KIND_OACC_HOST_DATA.
1950 (is_gimple_omp_oacc): Add support for above.
1951 * gimplify.c (omp_region_type): Add ORT_ACC_HOST_DATA.
1952 (omp_notice_variable): Diagnose undefined implicit uses of
1953 use_device variables in offloaded regions.
1954 (gimplify_scan_omp_clauses): Add host_data, use_device
1955 support. Diagnose undefined mapping of use_device variables in
1957 (gimplify_omp_workshare): Add host_data support.
1958 (gimplify_expr): Likewise.
1959 * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): New.
1960 * omp-low.c (lookup_decl_in_outer_ctx)
1961 (maybe_lookup_decl_in_outer_ctx): Add optional argument to skip
1963 (scan_sharing_clauses): Support use_device.
1964 (check_omp_nesting_restrictions): Support host_data.
1965 (expand_omp_target): Support host_data.
1966 (lower_omp_target): Skip over outer host_data regions when looking
1967 up decls. Support use_device.
1968 (make_gimple_omp_edges): Support host_data.
1969 * tree-nested.c (convert_nonlocal_omp_clauses): Add use_device clause.
1971 2015-12-01 Marek Polacek <polacek@redhat.com>
1974 * cgraphunit.c (check_global_declaration): Only depend
1975 on TREE_THIS_VOLATILE for VAR_DECLs.
1977 2015-12-01 Richard Sandiford <richard.sandiford@arm.com>
1979 PR tree-optimization/68474
1980 * tree-call-cdce.c (use_internal_fn): Protect call to
1981 gen_shrink_wrap_conditions.
1983 2015-12-01 Christian Bruel <christian.bruel@st.com>
1986 * config/arm/arm.opt (unaligned_access): Save.
1987 * config/arm/arm-c.c (__ARM_FEATURE_UNALIGNED): Conditionally define.
1988 * config/arm/arm.c (arm_option_override): Move unaligned_access setting.
1989 (arm_option_override_internal): ... here.
1990 * config/arm/arm.h (TARGET_32BIT_P): New macro.
1992 2015-12-01 Richard Biener <rguenther@suse.de>
1994 PR tree-optimization/68379
1995 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
1996 always base loads on the first used DR of a group.
1997 * tree-vect-data-refs.c (vect_slp_analyze_and_verify_node_alignment):
1998 Compute alignment of the first scalar element unconditionally.
2000 2015-12-01 Richard Biener <rguenther@suse.de>
2003 * genmatch.c (struct capture_info): Add match_use_count.
2004 (capture_info::walk_match): Increment match_use_count.
2005 (dt_simplify::gen_1): For GENERIC, only wrap multi-use
2006 replacements in a save_expr if they occur more often than
2007 in the original expression.
2009 2015-12-01 Richard Biener <rguenther@suse.de>
2012 * ipa-split.c (split_function): Handle main part not returning.
2014 2015-12-01 Ilya Enkovich <enkovich.gnu@gmail.com>
2017 * tree-vect-stmts.c (vect_init_vector): Cast boolean
2018 scalars to a proper value before building a vector.
2020 2015-12-01 Richard Sandiford <richard.sandiford@arm.com>
2022 * genattrtab.c (check_attr_test): Take an attr_desc instead of
2023 an is_const flag. Put the file_location argument first.
2024 Update recursive calls. Improve error messages.
2025 (check_attr_value): Take a file location and use it instead
2026 of attr->loc. Improve error messages. Update calls to
2028 (check_defs): Update call to check_attr_value.
2029 (make_canonical): Likewise.
2030 (gen_attr): Likewise.
2032 (gen_insn_reserv): Update call to check_attr_test.
2034 2015-12-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2036 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Fix typo.
2038 2015-12-01 Richard Biener <rguenther@suse.de>
2041 * match.pd: Merge (eq @0 @0) and (ge/le @0 @0) patterns.
2043 2015-12-01 Jan Hubicka <hubicka@ucw.cz>
2045 * ipa-devirt.c (type_with_linkage_p, type_in_anonymous_namespace_p,
2046 odr_type_p): Move to ...
2047 * ipa-utils.h (type_with_linkage_p, type_in_anonymous_namespace_p,
2048 odr_type_p): here; miscro-optimize.
2050 2015-12-01 Bin Cheng <bin.cheng@arm.com>
2052 PR tree-optimization/68529
2053 * tree-ssa-loop-niter.c (number_of_iterations_ne): Add new param.
2054 Compute no-overflow information for control iv.
2055 (number_of_iterations_lt, number_of_iterations_le): Add new param.
2056 (number_of_iterations_cond): Pass new argument to above functions.
2058 2015-11-30 Jan Hubicka <hubicka@ucw.cz>
2060 * ipa-inline-transform.c (inline_call): Drop -fstrict-aliasing when
2061 inlining -fno-strict-aliasing into -fstrict-aliasing body.
2063 2015-11-30 Aditya Kumar <aditya.k7@samsung.com>
2064 Sebastian Pop <s.pop@samsung.com>
2066 PR tree-optimization/68565
2067 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Early return on
2068 codegen_error. Fail when rhs of division operations is integer_zerop.
2069 (ternary_op_to_tree): Early return on codegen_error.
2070 (unary_op_to_tree): Same.
2071 (nary_op_to_tree): Same.
2072 (gcc_expression_from_isl_expr_op): Same.
2073 (gcc_expression_from_isl_expression): Same.
2074 (graphite_create_new_loop): On codegen_error continue generating
2076 (graphite_create_new_loop_guard): Same.
2077 (build_iv_mapping): Same.
2078 (graphite_create_new_guard): Same.
2080 2015-11-30 Aditya Kumar <aditya.k7@samsung.com>
2081 Sebastian Pop <s.pop@samsung.com>
2083 * graphite-isl-ast-to-gimple.c: Fix dump messages.
2084 * graphite-scop-detection.c: Same.
2085 * graphite-sese-to-poly.c (isl_id_for_ssa_name): Do not call get_name.
2087 2015-11-30 Cesar Philippidis <cesar@codesourcery.com>
2089 * tree-nested.c (convert_nonlocal_omp_clauses): Add support for
2090 OMP_CLAUSE_{NUM_GANGS,NUM_VECTORS,VECTOR_LENGTH,SEQ}.
2091 (convert_local_omp_clauses): Likewise.
2093 2015-11-30 Tom de Vries <tom@codesourcery.com>
2095 PR tree-optimization/46032
2096 * tree-ssa-structalias.c (find_func_aliases_for_call_arg): New function,
2098 (find_func_aliases_for_call): ... here.
2099 (find_func_aliases_for_builtin_call, find_func_clobbers): Handle
2100 BUILT_IN_GOMP_PARALLEL.
2101 (ipa_pta_execute): Same. Handle node->parallelized_function as a local
2104 2015-11-30 Jakub Jelinek <jakub@redhat.com>
2106 PR tree-optimization/68501
2107 * target.def (builtin_reciprocal): Replace the 3 arguments with
2108 a gcall * one, adjust description.
2109 * targhooks.h (default_builtin_reciprocal): Replace the 3 arguments
2111 * targhooks.c (default_builtin_reciprocal): Likewise.
2112 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Use
2113 targetm.builtin_reciprocal even on internal functions, adjust
2114 the arguments and allow replacing an internal function with normal
2116 * config/i386/i386.c (ix86_builtin_reciprocal): Replace the 3 arguments
2117 with a gcall * one. Handle internal fns too.
2118 * config/rs6000/rs6000.c (rs6000_builtin_reciprocal): Likewise.
2119 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
2120 * doc/tm.texi (builtin_reciprocal): Document.
2122 2015-11-30 Richard Biener <rguenther@suse.de>
2124 PR tree-optimization/68592
2125 * tree-vect-loop.c (vect_analyze_loop_2): Reset SLP type also
2126 on the pattern def sequence.
2128 2015-11-30 Nathan Sidwell <nathan@acm.org>
2130 * config/nvptx/nvptx.c (nvptx_name_replacement): Move earlier.
2131 (write_one_arg): Reorder parms, add 'sep' param.
2132 (nvptx_write_function_decl): Rename to ...
2133 (write_fn_proto): ... here. Do name replacement. Emit linaer
2134 comment marker. Deal with both decls and defns. Simplify argument
2136 (write_function_decl_and_comment): Delete.
2137 (write_func_decl_from_insn): Rename to ...
2138 (write_fn_proto_from_insn): ... here. Don't do name replacement.
2139 (nvptx_record_fndecl): Call write_fn_proto.
2140 (nvptx_record_libfunc): Call write_fn_proto_from_insn.
2141 (nvptx_declare_function_name): Adjust for write_fn_proto changes.
2142 (nvotx_output_call_insn): Call write_fn_prot_from_insn.
2144 2015-11-30 Kirill Yukhin <kirill.yukhin@intel.com>
2146 * config/i386/i386.md (define_mode_iterator SWI1248_AVX512BW): New.
2147 (define_insn "*k<logic><mode>"): Use new iterator.
2149 2015-11-30 Eric Botcazou <ebotcazou@adacore.com>
2152 * config/sparc/sparc.c (supersparc_adjust_cost): Fix thinko.
2153 (sparc_adjust_cost): Add missing space.
2155 2015-11-30 Richard Biener <rguenther@suse.de>
2158 * dwarf2out.c (gen_type_die_with_usage): Keep variant types of arrays.
2160 2015-11-30 Venkataramanan Kumar <Venkataramanan.Kumar@amd.com>
2162 * tree-if-conv.c (struct ifc_dr): Add new tree base_predicate field.
2163 (hash_memrefs_baserefs_and_store_DRs_read_written_info): Hash
2164 base ref, DR pairs and store base_predicate for write type DRs.
2165 (ifcvt_memrefs_wont_trap): Guard checks with
2166 -ftree-loop-if-convert-stores flag.
2168 2015-11-29 Jan Hubicka <hubicka@ucw.cz>
2170 * cgraph.c (cgraph_node::make_local): No name is unique during
2171 incremental linking.
2172 * cgraph.h (can_be_discarded_p): Update comment; also common and
2173 WEAK in named sections can be discarded; when doing incremental
2174 link do not rely on resolution being the final one.
2175 * varasm.c (default_binds_local_p_3, decl_binds_to_current_def_p):
2176 When symbol can be discarded, do not rely on resolution info.
2177 * symtab.c (symtab_node::nonzero_address): Take into account that
2178 symbol can be discarded.
2179 * ipa-visibility.c (update_visibility_by_resolution_info): Handle
2180 definition correctly.
2181 (function_and_variable_visibility): Do not set unique_name when
2182 incrementally linking.
2184 2015-11-29 Nathan Sidwell <nathan@acm.org>
2186 * config/nvptx/nvptx.md (const_0_operand, global_mem_operand,
2187 const_mem_operand, param_mem_operand, shared_mem_operand): Delete.
2188 (ctrap<mode>): Use const0_operand.
2190 2015-11-29 Jan Hubicka <hubicka@ucw.cz>
2192 * ipa-devirt.c (add_type_duplicate): Remove redundant
2195 2015-11-29 David Edelsohn <dje.gcc@gmail.com>
2198 * config/rs6000/rs6000.c (rs6000_adjust_cost): Correct
2199 recog_memoized test for insn and check recog_memoized for dep_insn.
2201 2015-11-28 Nathan Sidwell <nathan@acm.org>
2203 * config/nvptx/nvptx.h (FIRST_PARM_OFFSET): Add void cast.
2204 (FRAME_POINTER_CFA_OFFSET): Define.
2205 (struct nvptx_args): Use 'tree' type.
2206 (INIT_CUMULATIVE_ARGS): Remove unnecessary do...while.
2208 2015-11-28 Tom de Vries <tom@codesourcery.com>
2210 * lto-wrapper.c (run_gcc): Handle -flinker-output argument.
2212 2015-11-27 Jonathan Wakely <jwakely@redhat.com>
2214 * doc/invoke.texi (Option Summary): Use negative form of
2215 -Waggressive-loop-optimizations, remove redundant -Wpedantic-ms-format,
2216 sort alphabetically and re-justify.
2218 2015-11-27 Vladimir Makarov <vmakarov@redhat.com>
2220 PR rtl-optimization/68536
2221 * lra.c (lra_emit_add): Add code for null base.
2222 * lra-constraints.c (curr_insn_transform): Skip operators for
2225 2015-11-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2228 2015-11-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2230 * ifcvt.c (insn_valid_noce_process_p): Reject insn if it satisfies
2232 (noce_try_cmove_arith): Add checking asserts that orig_a and orig_b
2233 are not modified by the final modified insns in the basic blocks.
2235 2015-11-27 Nathan Sidwell <nathan@acm.org>
2237 * config/nvptx/nvptx-protos.h (nvptx_addr_space_from_address):
2239 * config/nvptx/nvptx.c (nvptx_addr_space_from_sym): New.
2240 (nvptx_maybe_convert_symbolic_operand): Simplify.
2241 (nvptx_addr_space_from_address): Delete.
2242 (nvptx_print_operand): Adjust 'A' case.
2244 2015-11-27 Richard Biener <rguenther@suse.de>
2246 PR tree-optimization/68559
2247 * tree-vect-data-refs.c (vect_analyze_group_access_1): Move
2248 peeling for gap checks ...
2249 * tree-vect-stmts.c (vectorizable_load): ... here and relax for SLP.
2250 * tree-vect-loop.c (vect_analyze_loop_2): Re-set
2251 LOOP_VINFO_PEELING_FOR_GAPS before re-trying without SLP.
2253 2015-11-27 Nathan Sidwell <nathan@acm.org>
2255 * config/nvptx/nvptx-protos.h (nvptx_record_needed_decl): Don't declare.
2256 * config/nvptx/nvptx.c (write_func_decl_from_insn): Move earlier.
2257 (nvptx_record_fndecl): Don't return value, remove force
2258 argument. Require fndecl.
2259 (nvptx_record_libfunc): New.
2260 (nvptx_record_needed_decl): Deteermine how to record decl here.
2261 (nvptx_maybe_record_fnsym): New.
2262 (nvptx_expand_call): Don't record libfuncs here,
2263 (nvptx_maybe_convert_symbolic_operand): Use
2264 nvptx_maye_record_fnsym.
2265 (nvptx_assemble_integer): Reimplement with single switch.
2266 (nvptx_output_call_insn): Register libfuncs here.
2267 (nvptx_file_end): Adjust nvptx_record_fndecl call.
2268 * config/nvptx/nvptx.md (expand_movdi): Don't call
2269 nvptx_record_needed_decl.
2271 2015-11-27 Richard Biener <rguenther@suse.de>
2273 PR tree-optimization/68553
2274 * tree-vect-slp.c (vect_create_mask_and_perm): Skip VEC_PERM_EXPR
2275 generation for 1:1 permutations.
2276 (vect_transform_slp_perm_load): Detect 1:1 permutations.
2278 2015-11-27 Bernd Schmidt <bschmidt@redhat.com>
2280 * gimple.h (nonbarrier_call_p): Declare.
2281 * gimple.c (nonbarrier_call_p): New function.
2282 * tree-ssa-phiopt.c (nontrapping_dom_walker::before_dom_children):
2283 Also increment call phase for ASMs with vdef and potential barrier
2286 2015-11-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2288 * ifcvt.c (insn_valid_noce_process_p): Reject insn if it satisfies
2290 (noce_try_cmove_arith): Add checking asserts that orig_a and orig_b
2291 are not modified by the final modified insns in the basic blocks.
2293 2015-11-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2295 PR rtl-optimization/68506
2296 * ifcvt.c (noce_try_cmove_arith): Try emitting the else basic block
2297 first if emit_a exists or then_bb modifies 'b'. Reindent if-else
2300 2015-11-27 Martin Liska <mliska@suse.cz>
2303 * vec.h (release_vec_vec): New function.
2305 2015-11-27 Jakub Jelinek <jakub@redhat.com>
2307 PR tree-optimization/68552
2308 * optabs.c (expand_vec_perm_1): Move vec_shr handling from here...
2309 (expand_vec_perm): ... here. Do it regardless of vec_perm_const_optab
2310 or whether v0 == v1.
2312 2015-11-27 Martin Liska <mliska@suse.cz>
2314 * tree-ssa-uninit.c: Fix whitespaces in the source file.
2315 The change is just automatical.
2317 2015-11-27 Martin Liska <mliska@suse.cz>
2319 * tree-chkp.c (chkp_make_static_bounds): Release buffer
2322 2015-11-27 Martin Liska <mliska@suse.cz>
2324 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
2325 Do not release memory for comp_alias_ddrs.
2326 * tree-vect-loop.c (destroy_loop_vec_info): Release
2327 the memory for all loop_vec_info.
2329 2015-11-27 Martin Liska <mliska@suse.cz>
2331 * ipa-devirt.c (ipa_devirt): Use auto_vec instead
2332 of a local-scope vec.
2333 (struct final_warning_record): Use auto_vec instead of vec.
2335 2015-11-27 Richard Biener <rguenther@suse.de>
2337 PR tree-optimization/68553
2338 * tree-vect-slp.c (vect_get_mask_element): Remove.
2339 (vect_transform_slp_perm_load): Implement in a simpler way.
2341 2015-11-26 Alexandre Oliva <aoliva@redhat.com>
2343 PR rtl-optimization/67753
2344 PR rtl-optimization/64164
2345 * function.c (assign_parm_setup_block): Right-shift
2346 upward-padded big-endian args when bypassing the stack slot.
2348 2015-11-26 Maciej W. Rozycki <macro@imgtec.com>
2350 * doc/invoke.texi (Option Summary) <MIPS Options>: Reorder
2351 `-mcompact-branches='.
2352 (MIPS Options): Likewise.
2354 2015-11-26 Jakub Jelinek <jakub@redhat.com>
2356 * Makefile.in (build/genmatch.o): Depend on internal-fn.def.
2358 2015-11-26 David Edelsohn <dje.gcc@gmail.com>
2360 * doc/install.texi (Prerequisites): Increase ISL requirement to
2363 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
2365 * config/aarch64/arm_neon.h
2366 (vqrdmlah_laneq_s16, vqrdmlah_laneq_s32): New.
2367 (vqrdmlahq_laneq_s16, vqrdmlahq_laneq_s32): New.
2368 (vqrdmlsh_lane_s16, vqrdmlsh_lane_s32): New.
2369 (vqrdmlshq_laneq_s16, vqrdmlshq_laneq_s32): New.
2370 (vqrdmlah_lane_s16, vqrdmlah_lane_s32): New.
2371 (vqrdmlahq_lane_s16, vqrdmlahq_lane_s32): New.
2372 (vqrdmlahh_s16, vqrdmlahh_lane_s16, vqrdmlahh_laneq_s16): New.
2373 (vqrdmlahs_s32, vqrdmlahs_lane_s32, vqrdmlahs_laneq_s32): New.
2374 (vqrdmlsh_lane_s16, vqrdmlsh_lane_s32): New.
2375 (vqrdmlshq_lane_s16, vqrdmlshq_lane_s32): New.
2376 (vqrdmlshh_s16, vqrdmlshh_lane_s16, vqrdmlshh_laneq_s16): New.
2377 (vqrdmlshs_s32, vqrdmlshs_lane_s32, vqrdmlshs_laneq_s32): New.
2379 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
2381 * config/aarch64/arm_neon.h (vqrdmlah_s16, vqrdmlah_s32): New.
2382 (vqrdmlahq_s16, vqrdmlahq_s32): New.
2383 (vqrdmlsh_s16, vqrdmlsh_s32): New.
2384 (vqrdmlshq_s16, vqrdmlshq_s32): New.
2386 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
2388 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Add
2391 2015-11-26 Pierre-Marie de Rodat <derodat@adacore.com>
2394 * tree-nested.c (finalize_nesting_tree_1): Append a field to
2395 hold the frame base address.
2396 * dwarf2out.c (gen_subprogram_die): Generate for
2397 DW_AT_static_link a location description that computes the value
2400 2015-11-26 Tom de Vries <tom@codesourcery.com>
2403 2015-11-25 Tom de Vries <tom@codesourcery.com>
2405 * cfgloop.c (find_single_latch): New function, factored out of ...
2406 (flow_loops_find): ... here.
2407 (verify_loop_structure): Improve verification of loop->latch.
2408 * cfgloop.h (find_single_latch): Declare.
2409 * omp-low.c (expand_omp_for_generic): Initialize latch of orig_loop.
2411 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
2413 * config/aarch64/aarch64-simd-builtins.def:
2414 Add missing changes from r230962.
2416 2015-11-26 Nathan Sidwell <nathan@acm.org>
2418 * config/nvptx/nvptx.c (write_func_decl_from_insn): Replace callee
2419 arg with name. Don't deal with split regs. Tweak formatting.
2420 (nvptx_expand_call): Adjust write_func_decl_from_insn call.
2421 (nvptx_output_call_insn): Don't deal with split regs here.
2423 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
2425 * config/aarch64/aarch64-simd-builtins.def
2426 (sqrdmlah, sqrdmlsh): New.
2427 (sqrdmlah_lane, sqrdmlsh_lane): New.
2428 (sqrdmlah_laneq, sqrdmlsh_laneq): New.
2430 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
2432 * config/aarch64/aarch64-simd.md
2433 (aarch64_sqmovun<mode>): Fix some white-space.
2434 (aarch64_<sur>qmovun<mode>): Likewise.
2435 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h<mode>): New.
2436 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): New.
2437 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): New.
2438 * config/aarch64/iterators.md (UNSPEC_SQRDMLAH): New.
2439 (UNSPEC_SQRDMLSH): New.
2443 2015-11-26 Richard Biener <rguenther@suse.de>
2445 PR tree-optimization/66721
2446 * tree-vect-loop.c (vect_analyze_loop_2): Compute scalar
2447 iteration cost earlier. Re-do analysis without SLP when
2448 vectorization using SLP fails and without has a chance to succeed.
2450 2015-11-26 Richard Biener <rguenther@suse.de>
2452 * genmatch.c (dt_simplify::gen_1): For generic wrap all
2453 multi-result-use captures in a SAVE_EXPR.
2455 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
2457 * config/aarch64/aarch64.h (AARCH64_ISA_RDMA): New.
2458 (TARGET_SIMD_RDMA): New.
2460 2015-11-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2462 * combine.c (subst): Do not return clobber of zero in widening mult
2463 case. Just return x unchanged if it is a no-op substitution.
2465 2015-11-26 Vladimir Makarov <vmakarov@redhat.com>
2468 * config/i386/i386.h (enum reg_class): Add
2469 bounds registers to ALL_REGS.
2471 2015-11-26 Jakub Jelinek <jakub@redhat.com>
2473 PR tree-optimization/68128
2474 * tree.h (OMP_CLAUSE_SHARED_READONLY): Define.
2475 * gimplify.c: Include gimple-walk.h.
2476 (enum gimplify_omp_var_data): Add GOVD_WRITTEN.
2477 (omp_notice_variable): Set flags to n->value if n already
2478 exists in target region, but we need to jump to do_outer.
2479 (omp_shared_to_firstprivate_optimizable_decl_p,
2480 omp_mark_stores, omp_find_stores_op, omp_find_stores_stmt): New
2482 (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_SHARED_READONLY
2483 on OMP_CLAUSE_SHARED if it is a scalar non-addressable that is
2484 not modified in the body. Call omp_mark_stores for outer
2485 contexts on OMP_CLAUSE_SHARED clauses if they could be written
2486 in the body or on OMP_CLAUSE_LASTPRIVATE.
2487 (gimplify_adjust_omp_clauses): Add body argument, call
2488 omp_find_stores_{stmt,op} on the body through walk_gimple_seq.
2489 Set OMP_CLAUSE_SHARED_READONLY
2490 on OMP_CLAUSE_SHARED if it is a scalar non-addressable that is
2491 not modified in the body. Call omp_mark_stores for outer
2492 contexts on OMP_CLAUSE_SHARED clauses if they could be written
2493 in the body or on OMP_CLAUSE_LASTPRIVATE or on OMP_CLAUSE_LINEAR
2494 without OMP_CLAUSE_LINEAR_NO_COPYOUT or on OMP_CLAUSE_REDUCTION.
2495 (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task,
2496 gimplify_omp_for, gimplify_omp_workshare, gimplify_omp_target_update,
2497 gimplify_expr): Adjust gimplify_adjust_omp_clauses callers.
2498 * tree-nested.c (convert_nonlocal_omp_clauses,
2499 convert_local_omp_clauses): Clear OMP_CLAUSE_SHARED_READONLY on
2500 non-local vars or local vars referenced from nested routines.
2501 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_SHARED_READONLY
2502 attempt to optimize it into OMP_CLAUSE_FIRSTPRIVATE. Even for
2503 TREE_READONLY, don't call use_pointer_for_field with non-NULL
2504 second argument until we are sure we are keeping OMP_CLAUSE_SHARED.
2506 2015-11-26 Paolo Bonzini <bonzini@gnu.org>
2508 * doc/implement-c.texi (Integers Implementation): Make GCC's promises
2509 about signed left shift stronger and clarify the cases when they're
2512 2015-11-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2513 Bernd Schmidt <bschmidt@redhat.com>
2515 PR rtl-optimization/67226
2516 * calls.c (store_one_arg): Take into account
2517 crtl->args.pretend_args_size when checking for overlap between
2518 arg->value and argblock + arg->locate.offset during sibcall
2521 2015-11-26 Wilco Dijkstra <wdijkstr@arm.com>
2523 * config/aarch64/aarch64.md (cbranch<mode>4): Use
2524 aarch64_fp_compare_operand.
2525 (store_pairsf): Use aarch64_reg_or_fp_zero.
2526 (store_pairdf): Likewise.
2527 (cstore<mode>4): Use aarch64_fp_compare_operand.
2528 (cmov<mode>6): Likewise.
2529 * config/aarch64/aarch64-ldpstp.md: Use aarch64_reg_or_fp_zero.
2531 2015-11-25 Aditya Kumar <aditya.k7@samsung.com>
2532 Sebastian Pop <s.pop@samsung.com>
2534 PR tree-optimization/68453
2535 * graphite-isl-ast-to-gimple.c (translate_isl_ast_for_loop): Do
2536 not redirect edges already pointing to their destination.
2537 (translate_isl_ast_node_for): Split edges after loops to create
2538 basic blocks for close phi nodes. Save merge points at the end of
2540 (translate_isl_ast_node_if): Save merge points at the end of the
2542 (add_close_phis_to_outer_loops): New.
2543 (add_close_phis_to_merge_points): New.
2544 (copy_loop_close_phi_args): Call add_close_phis_to_merge_points.
2545 (copy_bb_and_scalar_dependences): Do not split basic blocks on
2546 loop close phi locations.
2548 2015-11-25 Jan Hubicka <jh@suse.cz>
2550 * ipa-visibility.c (cgraph_externally_visible_p,
2551 varpool_node::externally_visible_p): When doing incremental linking,
2552 hidden symbols may be still used later.
2553 (update_visibility_by_resolution_info): Do not drop weak during
2555 (function_and_variable_visibility): Fix formating.
2556 * flag-types.h (lto_linker_output): Declare.
2557 * common.opt 9flag_incremental_link): New flag.
2559 2015-11-25 Michael Meissner <meissner@linux.vnet.ibm.com>
2561 * config/rs6000/constraints.md (wb constraint): New constraint for
2562 ISA 3.0 d-form scalar addressing.
2564 * config/rs6000/rs6000.c (mode_supports_vmx_dform): Add support
2565 for ISA 3.0 D-form addressing to load SFmode/DFmode scalars into
2566 Altivec registers. Add wb constraint for Altivec registers with
2567 D-form addressing. If we have ISA 3.0 d-form support, undo
2568 secondary reload support for using FPR registers if we want to do
2570 (rs6000_debug_reg_global): Likewise.
2571 (rs6000_setup_reg_addr_masks): Likewise.
2572 (rs6000_init_hard_regno_mode_ok): Likewise.
2573 (rs6000_secondary_reload): Likewise.
2574 (rs6000_preferred_reload_class): Likewise.
2575 (rs6000_secondary_reload_class): Likewise.
2577 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wb
2580 * config/rs6000/rs6000.md (f32_lr2 mode attribute): Add support
2581 for ISA 3.0 SFmode/DFmode d-form addressing to Altivec registers.
2582 (f32_lm2): Likewise.
2583 (f32_li2): Likewise.
2584 (f32_sr2): Likewise.
2585 (f32_sm2): Likewise.
2586 (f32_si2): Likewise.
2588 (extendsfdf2_fpr): Likewise.
2589 (mov<mode>_hardfloat): Likewise.
2590 (mov<mode>_hardfloat32): Likewise.
2591 (mov<mode>_hardfloat64): Likewise.
2593 * doc/md.texi (RS/6000 constraints): Document wb constraint.
2594 Fixup we constraint documentation.
2596 2015-11-25 Tom de Vries <tom@codesourcery.com>
2598 * omp-low.c (pass_expand_omp_ssa::clone): New function.
2599 * passes.def: Add pass_oacc_kernels pass group.
2600 * tree-ssa-loop-ch.c (pass_ch::clone): New function.
2602 2015-11-25 Tom de Vries <tom@codesourcery.com>
2604 * tree-pass.h (make_pass_oacc_kernels, make_pass_oacc_kernels2):
2606 * tree-ssa-loop.c (gate_oacc_kernels): New static function.
2607 (pass_data_oacc_kernels, pass_data_oacc_kernels2): New pass_data.
2608 (class pass_oacc_kernels, class pass_oacc_kernels2): New pass.
2609 (make_pass_oacc_kernels, make_pass_oacc_kernels2): New function.
2611 2015-11-25 Jan Hubicka <hubicka@ucw.cz>
2613 * timevar.def (TV_IPA_LTO_DECOMPRESS, TV_IPA_LTO_COMPRESS,
2614 TV_IPA_LTO_OUTPUT): New.
2615 * lto-compress.c: Include timevar.h
2616 (lto_end_compression, lto_end_uncompression): Add timers.
2617 * langhooks.c: Include timevar.h.
2618 (lhd_append_data): Add timer.
2620 2015-11-25 Jan Hubicka <hubicka@ucw.cz>
2622 * varasm.c (default_elf_asm_output_limited_string,
2623 default_elf_asm_output_ascii): Replace fprintf by putc.
2625 2015-11-25 Vladimir Makarov <vmakarov@redhat.com>
2627 PR rtl-optimization/67954
2628 * lra-constraints.c (curr_insn_transform): Add check on scratch
2629 pseudo when change class to NO_REGS. Add an assert.
2631 2015-11-25 Nathan Sidwell <nathan@acm.org>
2633 * config/nvptx/nvptx.md (load_arg_reg<mode>): Arg number
2635 * config/nvptx/nvptx.c (write_one_arg): Use 'i' directly as arg number.
2636 (nvptx_write_function_decl): Number args from 0.
2637 (nvptx_declare_function_name): Likewise.
2638 (nvptx_function_incoming_arg): Likewise.
2639 (nvptx_output_call_insn): Correct formatting.
2641 2015-11-25 David Sherwood <david.sherwood@arm.com>
2643 * optabs.def: Add new optabs fmax_optab/fmin_optab.
2644 * internal-fn.def: Add new fmax/fmin internal functions.
2645 * doc/md.texi: Add fmin and fmax patterns.
2647 2015-11-25 Jason Merrill <jason@redhat.com>
2650 * tree.c (integer_zerop, integer_onep, integer_each_onep)
2651 (integer_all_onesp, integer_minus_onep, integer_pow2p)
2652 (integer_nonzerop, integer_truep, tree_log2, tree_floor_log2)
2653 (real_zerop, real_onep, real_minus_onep): Remove STRIP_NOPS.
2655 2015-11-25 Richard Biener <rguenther@suse.de>
2658 * fold-const.c (fold_binary_loc): Do not call negate_expr_p
2659 on stripped operands.
2661 2015-11-25 Nathan Sidwell <nathan@acm.org>
2663 * config/nvptx/nvptx.c (walk_args_for_params): Delete.
2664 (nvptx_declare_function_name): Move assignments next to register
2665 declarations, and process params here.
2667 2015-11-25 David Edelsohn <dje.gcc@gmail.com>
2669 * config/rs6000/rs6000.c (rs6000_declare_alias): Rename and globalize
2670 both the symbol and the "dot" symbol for function descriptors. Fix
2671 inversion for rename of symbols with dollar sign.
2673 2015-11-25 Tom de Vries <tom@codesourcery.com>
2675 * cfgloop.c (find_single_latch): New function, factored out of ...
2676 (flow_loops_find): ... here.
2677 (verify_loop_structure): Improve verification of loop->latch.
2678 * cfgloop.h (find_single_latch): Declare.
2679 * omp-low.c (expand_omp_for_generic): Initialize latch of orig_loop.
2681 2015-11-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2683 * config/sol2.h (SUPPORTS_INIT_PRIORITY): Move up.
2684 (STARTFILE_VTV_SPEC, ENDFILE_VTV_SPEC): Define.
2685 (STARTFILE_SPEC): Use %(startfile_vtv).
2686 (ENDFILE_SPEC): Use %(endfile_vtv).
2687 (SUBTARGET_EXTRA_SPECS): Handle STARTFILE_VTV_SPEC,
2690 * gcc.c (LINK_COMMAND_SPEC): Move VTABLE_VERIFICATION_SPEC after %{L*}.
2692 2015-11-25 Bernd Schmidt <bschmidt@redhat.com>
2694 * ifcvt.c (noce_mem_write_may_trap_or_fault_p,
2695 noce_can_store_speculate): Delete.
2696 (noce_process_if_block): Don't try to handle single MEM stores.
2697 * rtl.h (memory_must_be_modified_in_insn_p): Don't declare.
2698 * alias.c (memory_must_be_modified_in_insn_p): Delete.
2700 2015-11-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2702 PR rtl-optimization/68435
2703 * ifcvt.c (noce_try_cmove_arith): Skip final insn when checking
2704 for conflicts between a, b and the set destinations.
2706 2015-11-25 Richard Biener <rguenther@suse.de>
2708 PR tree-optimization/68517
2709 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses):
2710 Properly handle zero-sized types.
2712 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
2714 * ipa-inline-analysis.c: Include gimplify.h
2715 (set_cond_stmt_execution_predicate,
2716 set_switch_stmt_execution_predicate): Be sure to not leak locations
2719 2015-11-25 Jakub Jelinek <jakub@redhat.com>
2722 * tree-ssa-math-opts.c (uaddsub_overflow_check_p,
2723 match_uaddsub_overflow): New functions.
2724 (pass_optimize_widening_mul::execute): Call match_uaddsub_overflow.
2726 2015-11-25 Richard Biener <rguenther@suse.de>
2728 PR tree-optimization/68492
2729 * tree-vect-slp.c (vect_build_slp_tree): Consistently build up
2730 op from scalars after operand swapping.
2732 2015-11-25 Richard Biener <rguenther@suse.de>
2734 PR tree-optimization/68502
2735 * tree-vect-data-refs.c (vect_analyze_group_access_1): Restore
2736 check that the step is a multiple of the type size.
2738 2015-11-24 Michael Collison <michael.collison@linaro.org>
2740 * config/aarch64/aarch64-simd.md (widen_ssum, widen_usum)
2741 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w<mode>_internal): New patterns
2742 * config/aarch64/iterators.md (Vhalf, VDBLW): New mode attributes.
2744 2015-11-24 Steve Ellcey <sellcey@imgtec.com>
2746 * frame-header-opt.c (gate): Check for optimize > 0.
2747 (has_inlined_assembly): New function.
2748 (needs_frame_header_p): Remove is_leaf_function check,
2749 add argument type check.
2750 (callees_functions_use_frame_header): Add is_leaf_function
2751 and has_inlined_assembly calls..
2752 (set_callers_may_not_allocate_frame): New function.
2753 (frame_header_opt): Add is_leaf_function call, add
2754 set_callers_may_not_allocate_frame call.
2755 * config/mips/mips.c (mips_compute_frame_info): Add check
2756 to see if callee saved regs can be put in frame header.
2757 (mips_expand_prologue): Add check to see if step1 is zero,
2758 fix cfa restores when using frame header to store regs.
2759 (mips_can_use_return_insn): Check to see if registers are
2760 stored in frame header.
2761 * config/mips/mips.h (machine_function): Add
2762 callers_may_not_allocate_frame and
2763 use_frame_header_for_callee_saved_regs fields.
2765 2015-11-24 Segher Boessenkool <segher@kernel.crashing.org>
2767 PR rtl-optimization/68520
2768 * shrink-wrap.c (try_shrink_wrapping): Don't push a block to VEC if
2769 its bit was already set in BB_WITH.
2771 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
2773 * alias.c (get_alias_set): Before checking TYPE_ALIAS_SET_KNOWN_P
2774 double check that type is main variant.
2775 * tree.c (build_variant_type_copy): Clear TYPE_ALIAS_SET when producing
2777 (verify_type_variant): Verify that variants have no
2778 TYPE_ALIAS_SET_KNOWN_P set
2779 * tree-streamer-out.c (pack_ts_type_common_value_fields): Reorder
2780 streaming so constant fields come first; stream TYPE_ALIAS_SET==0
2781 only for main variants; stream TYPE_ALIAS_SET as a bit.
2782 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Update
2785 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
2787 * tree.c (make_vector_type): Properly compute canonical type of the
2789 (verify_type): Verify that TYPE_CANONICAL of TYPE_MAIN_VARIANT is
2792 2015-11-24 Nathan Sidwell <nathan@acm.org>
2794 * config/nvptx/nvptx.c (maybe_split_mode): Return new mode or
2795 VOIDmode, don't alter incoming mode.
2796 (nvptx_split_reg_p): Delete.
2797 (write_one_arg, walk_args_for_param, nvptx_declare_function_name,
2798 write_func_decl_from_insn, nvptx_output_call_insn): Adjust
2799 maybe_split_mode calls.
2800 (nvptx_print_operand): Use maybe_split_mode.
2802 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
2804 * lto-streamer-in.c (lto_read_body_or_constructor): Set TYPE_CANONICAL
2805 only for types where LTO sets them.
2806 * tree.c (build_array_type_1): Do ont set TYPE_CANONICAL for LTO.
2807 (make_vector_type): Likewise.
2808 (gimple_canonical_types_compatible_p): Use canonical_type_used_p.
2809 * tree.h (canonical_type_used_p): New inline.
2810 * alias.c (get_alias_set): Handle structural equality for all
2811 types that pass canonical_type_used_p.
2812 (record_component_aliases): Look through all types with
2813 record_component_aliases for possible pointers; sanity check that
2814 the alias sets match.
2816 2015-11-24 Michael Meissner <meissner@linux.vnet.ibm.com>
2818 * config/rs6000/rs6000.md (lround<mode>di2): Remove constraints.
2820 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
2822 * tree.c (free_node): New function.
2823 (type_hash_canon): Use it.
2824 * tree.h (free_node): Declare.
2826 2015-11-24 David Edelsohn <dje.gcc@gmail.com>
2827 Michael Meissner <meissner@linux.vnet.ibm.com>
2829 * config/rs6000/rs6000.md (UNSPEC_XSRDPI): New unspec.
2830 (Fv2): New mode attribute to be used when ISA 2.07 instructions
2831 are used on SF values, and ISA 2.06 instructions on DF values.
2832 (add<mode>3_fpr): Use <Fv2> instead of <Fv>.
2833 (sub<mode>3_fpr): Use <Fv2> instead of <Fv>.
2834 (mul<mode>3_fpr): Use <Fv2> instead of <Fv>.
2835 (div<mode>3_fpr): Use <Fv2> instead of <Fv>.
2836 (sqrt<mode>2): Use <Fv2> instead of <Fv>.
2837 (fre<Fs>): Use <Fv2> instead of <Fv>.
2838 (rsqrt<mode>2): Use <Fv2> instead of <Fv>.
2839 (cmp<mode>_fpr): Use <Fv2> instead of <Fv>.
2840 (xsrdpi<mode>): Add support for the lround function.
2841 (lround<mode>di2): Likewise.
2842 (fma<mode>4_fpr): Use <Fv2> instead of <Fv>.
2843 (fms<mode>4_fpr): Use <Fv2> instead of <Fv>.
2844 (nfma<mode>4_fpr): Use <Fv2> instead of <Fv>.
2845 (nfms<mode>4_fpr): Use <Fv2> instead of <Fv>.
2847 2015-11-24 Aditya Kumar <aditya.k7@samsung.com>
2848 Sebastian Pop <s.pop@samsung.com>
2850 PR tree-optimization/67984
2851 * graphite-isl-ast-to-gimple.c (is_constant): New.
2852 (get_rename): Call is_constant.
2853 (get_new_name): Same.
2855 2015-11-24 Aditya Kumar <aditya.k7@samsung.com>
2856 Sebastian Pop <s.pop@samsung.com>
2858 * graphite-dependences.c: Only include graphite.h.
2859 * graphite-isl-ast-to-gimple.c: Same.
2860 * graphite-optimize-isl.c: Same.
2861 * graphite-poly.c: Same.
2862 * graphite-scop-detection.c: Same.
2863 * graphite-sese-to-poly.c: Same.
2865 * graphite-isl-ast-to-gimple.h: Move to graphite.h.
2866 * graphite-poly.h: Same.
2867 * graphite-scop-detection.h: Same.
2870 2015-11-24 Pierre-Marie de Rodat <derodat@adacore.com>
2872 * dwarf2out.c (gen_decl_die): Generate DW_TAG_imported_* instead of
2873 DW_TAG_namespace for IMPORTED_DECL declarations. Call
2874 dwarf2out_imported_module_or_decl_1 for all DWARF versions as this
2875 function already takes care of checking what it can emit.
2877 2015-11-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
2879 * doc/invoke.texi (-fpic): Add the AArch64 limit.
2880 (-fPIC): Add AArch64.
2882 2015-11-24 Tom de Vries <tom@codesourcery.com>
2884 * tree-ssa-loop-im.c (tree_ssa_lim): Make static.
2885 (pass_lim::execute): Allow to run outside pass_tree_loop.
2887 2015-11-24 Wilco Dijkstra <wdijkstr@arm.com>
2889 * config/aarch64/aarch64.md (add<mode>3):
2890 Block early expansion into 2 add instructions.
2891 (add<mode>3_pluslong): New pattern to combine complex
2892 immediates into 2 additions.
2894 2015-11-24 Segher Boessenkool <segher@kernel.crashing.org>
2899 * config/rs6000/predicates.md (and_operand): Check that the operand
2900 is a const_int before calling rs6000_is_valid_and_mask.
2902 2015-11-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2904 * config/aarch64/aarch64.md (*condjump): Rename to...
2905 (condjump): ... This.
2906 (*compare_condjump<mode>): New define_insn_and_split.
2907 (*compare_cstore<mode>_insn): Likewise.
2908 (*cstore<mode>_insn): Rename to...
2909 (cstore<mode>_insn): ... This.
2910 * config/aarch64/iterators.md (CMP): Handle ne code.
2911 * config/aarch64/predicates.md (aarch64_imm24): New predicate.
2913 2015-11-24 Mikhail Maltsev <maltsevm@gmail.com>
2916 * config/i386/i386.c (output_387_binary_op): Fix assertion for
2919 2015-11-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2921 * tree-ssa-uncprop.c (struct val_ssa_equiv_hash_traits): Remove.
2922 (val_ssa_equiv_hash_traits::remove): Likewise.
2923 (pass_uncprop::execute): Adjust.
2925 2015-11-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2927 * hash-map-traits.h (simple_hashmap_traits ::remove): call
2928 destructors on values that are being removed.
2929 * mem-stats.h (hash_map): Pass type of values to
2930 simple_hashmap_traits.
2931 * tree-sra.c (sra_deinitialize): Remove work around for hash
2932 maps not destructing values.
2933 * genmatch.c (sinfo_hashmap_traits): Adjust.
2934 * tree-ssa-uncprop.c (val_ssa_equiv_hash_traits): Likewise.
2936 2015-11-24 Richard Biener <rguenther@suse.de>
2937 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2940 * cfgloop.c (get_loop_body_in_bfs_order): Restructure loop to avoid
2943 2015-11-24 Jakub Jelinek <jakub@redhat.com>
2946 * tree-vect-generic.c (lower_vec_perm): If VEC_PERM_EXPR
2947 is valid vec_shr pattern, don't lower it even if can_vec_perm_p
2949 * optabs.c (shift_amt_for_vec_perm_mask): Return NULL_RTX
2950 whenever first is nelt or above. Don't mask expected with
2953 2015-11-24 Ilya Enkovich <enkovich.gnu@gmail.com>
2956 * gimple-fold.c: Include ipa-chkp.h.
2957 (gimple_fold_builtin_memory_op): Don't fold call if we
2958 are going to instrument it and it may copy pointers.
2960 2015-11-24 Bernd Schmidt <bschmidt@redhat.com>
2961 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2963 PR rtl-optimization/68194
2964 PR rtl-optimization/68328
2965 PR rtl-optimization/68185
2966 * ree.c (combine_reaching_defs): Reject copy_needed case if
2967 copies_list is not empty.
2969 2015-11-24 Richard Biener <rguenther@suse.de>
2972 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Properly
2975 2015-11-24 Segher Boessenkool <segher@kernel.crashing.org>
2977 PR rtl-optimization/68381
2978 * combine.c (is_parallel_of_n_reg_sets): Return false if the pattern
2981 2015-11-23 Nick Clifton <nickc@redhat.com>
2982 Jeff Law <law@redhat.com>
2984 * ree.c (add_removable_extension): Avoid mis-optimizing cases where
2985 the source/dest of the target extension require a different number of
2987 (combine_set_extension): Remove #if 0 code.
2989 2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
2990 Sebastian Pop <s.pop@samsung.com>
2992 PR tree-optimization/68314
2993 * graphite-optimize-isl.c (optimize_isl): Do not call
2994 isl_union_map_is_equal.
2995 * graphite-poly.c (new_scop): Remove original_schedule.
2997 * graphite-poly.h (struct scop): Same.
2998 * graphite-sese-to-poly.c (build_pbb_minimal_scattering_polyhedrons):
3000 (build_pbb_scattering_polyhedrons): Add back.
3001 (build_scop_minimal_scattering): Remove.
3002 (build_scop_scattering): Add back.
3003 (build_scop_original_schedule): Remove.
3004 (build_poly_scop): Revert to only call build_scop_scattering.
3006 2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
3007 Sebastian Pop <s.pop@samsung.com>
3009 PR tree-optimization/68493
3010 * graphite-isl-ast-to-gimple.c (translate_pending_phi_nodes): Add
3011 missing early return when codegen_error is set.
3013 2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
3014 Sebastian Pop <s.pop@samsung.com>
3016 PR tree-optimization/68279
3017 * graphite-poly.c (new_scop): Remove poly_scop_p.
3018 * graphite-poly.h (struct scop): Same.
3019 (build_poly_scop): Declare.
3020 * graphite-sese-to-poly.c: Do not include graphite-sese-to-poly.h.
3021 (cleanup_loop_iter_dom): New.
3022 (build_loop_iteration_domains): Early return when scev analysis fails.
3023 (create_pw_aff_from_tree): Same.
3024 (add_condition_to_pbb): Same.
3025 (add_conditions_to_domain): Same.
3026 (add_conditions_to_constraints): Same.
3027 (build_scop_iteration_domain): Same.
3028 (build_poly_scop): Same. Do not initialize poly_scop_p.
3029 * graphite-sese-to-poly.h: Remove.
3030 * graphite.c: Do not include graphite-sese-to-poly.h.
3031 (graphite_transform_loops): Stop before code generation when
3032 build_poly_scop fails.
3033 * sese.c (scalar_evolution_in_region): Add fixme note about scev
3036 2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
3037 Sebastian Pop <s.pop@samsung.com>
3039 * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
3040 Remove call to update_ssa.
3041 * sese.c (sese_insert_phis_for_liveouts): Same.
3043 2015-11-23 Marek Polacek <polacek@redhat.com>
3045 PR tree-optimization/68455
3046 * tree-vrp.c (extract_range_from_binary_expr_1): Don't call
3047 extract_range_from_multiplicative_op_1 on symbolic ranges.
3049 2015-11-23 Richard Henderson <rth@redhat.com>
3051 * optabs.def (uaddv4_optab, usubv4_optab): New.
3052 * internal-fn.c (expand_addsub_overflow): Use them.
3053 * doc/md.texi (Standard Names): Add uaddv<m>4, usubv<m>4.
3055 * config/i386/i386.c (ix86_cc_mode): Extend add overflow check
3056 to reversed operands.
3057 * config/i386/i386.md (uaddv<SWI>4, usubv<SWI>4): New.
3058 (*add<SWI>3_cconly_overflow_1): Rename *add<SWI>3_cconly_overflow.
3059 (*add<SWI>3_cc_overflow_1): Rename *add<SWI>3_cc_overflow.
3060 (*addsi3_zext_cc_overflow_1): Rename *add3_zext_cc_overflow.
3061 (*add<SWI>3_cconly_overflow_2): New.
3062 (*add<SWI>3_cc_overflow_2): New.
3063 (*addsi3_zext_cc_overflow_2): New.
3065 2015-11-23 Richard Biener <rguenther@suse.de>
3067 PR tree-optimization/68465
3068 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children):
3069 Also record equalities from multiple predecessor blocks if
3070 only one non-backedge exists.
3072 2015-11-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3075 * config/aarch64/aarch64.c (aarch64_madd_needs_nop): Reject arguments
3076 that are not INSN_P.
3078 2015-11-23 Bilyan Borisov <bilyan.borisov@arm.com>
3080 * config/aarch64/aarch64-builtins.c
3081 (aarch64_gimple_fold_builtin): Fold FMULX.
3083 2015-11-23 David Edelsohn <dje.gcc@gmail.com>
3085 * system.h: Don't poison calloc and strdup if USES_ISL is defined.
3086 * graphite-dependences.c: Define USES_ISL. Include ISL header files
3087 after GCC header files and before graphite header files.
3088 * graphite-dependences.c: Same.
3089 * graphite-isl-ast-to-gimple.c: Same.
3090 * graphite-optimize-isl.c: Same.
3091 * graphite-poly.c: Same.
3092 * graphite-scop-detection.c: Same.
3093 * graphite-sese-to-poly.c: Same.
3096 2015-11-23 Richard Biener <rguenth@gcc.gnu.org>
3097 Jiong Wang <jiong.wang@arm.com>
3099 PR tree-optimization/68317
3100 PR tree-optimization/68326
3101 * tree-vrp.c (adjust_range_with_scev): Call drop_tree_overflow if the
3102 final min and max are not infinity.
3104 2015-11-23 Ilya Enkovich <enkovich.gnu@gmail.com>
3105 Richard Biener <rguenther@suse.de>
3107 PR tree-optimization/68327
3108 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
3109 compute vectype for non-relevant mask producers.
3110 * tree-vect-stmts.c (vectorizable_comparison): Check stmt
3113 2015-11-23 Tom de Vries <tom@codesourcery.com>
3115 PR tree-optimization/68460
3116 * tree-parloops.c (gather_scalar_reductions): Also call
3117 free_stmt_vec_info_vec if simple_loop_info == NULL.
3119 2015-11-23 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
3121 * opts.c (finish_options): Allow -fsanitize-recover=address for
3122 userspace sanitization.
3123 * asan.c (asan_expand_check_ifn): Redefine recover_p.
3124 * doc/invoke.texi (fsanitize-recover): Update documentation.
3126 2015-11-23 Tom de Vries <tom@codesourcery.com>
3128 * omp-low.c (build_receiver_ref): Mark by_ref mem_ref as non-trapping.
3130 2015-11-23 Richard Biener <rguenther@suse.de>
3132 PR tree-optimization/68445
3133 * tree-vect-slp.c (vect_create_mask_and_perm): Properly use
3134 two different strides.
3136 2015-11-23 Robin Dapp <rdapp@linux.vnet.ibm.com>
3138 * config/s390/s390.h: Add new symref flags, _NOTALIGN2 etc.
3139 * config/s390/s390.c (s390_check_symref_alignment): Use new
3140 symref flags, early abort on wrong alignment
3141 (s390_secondary_reload): Use new symref flags.
3142 (s390_encode_section_info): Likewise.
3143 * config/s390/predicates.md: Likewise.
3145 2015-11-23 Kugan Vivekanandarajah <kuganv@linaro.org>
3148 * config/arm/arm.c (arm_function_ok_for_sibcall): Get function type
3149 for indirect function call.
3151 2015-11-22 Bilyan Borisov <bilyan.borisov@arm.com>
3153 * config/aarch64/aarch64-simd.md
3154 (*aarch64_mulx_elt_<vswap_width_name><mode>, VDQSF): New.
3155 (*aarch64_mulx_elt<mode>, VDQF): Likewise.
3156 (*aarch64_mulx_elt_to_64v2df): Likewise.
3157 (*aarch64_vgetfmulx<mode>, VDQF_DF): Likewise.
3158 * config/aarch64/arm_neon.h (vmulx_lane_f32): New.
3159 (vmulx_lane_f64): Likewise.
3160 (vmulxq_lane_f32): Refactored & moved.
3161 (vmulxq_lane_f64): Likewise.
3162 (vmulx_laneq_f32): New.
3163 (vmulx_laneq_f64): Likewise.
3164 (vmulxq_laneq_f32): Likewise.
3165 (vmulxq_laneq_f64): Likewise.
3166 (vmulxs_lane_f32): Likewise.
3167 (vmulxs_laneq_f32): Likewise.
3168 (vmulxd_lane_f64): Likewise.
3169 (vmulxd_laneq_f64): Likewise.
3171 2015-11-21 Jan Hubicka <hubicka@ucw.cz>
3173 * tree.c (build_pointer_type_for_mode,build_reference_type_for_mode):
3174 In LTO we do not compute TYPE_CANONICAL of pointers.
3175 (gimple_canonical_types_compatible_p): Improve coments; sanity check
3176 that pointers do not have canonical type that would make us believe
3178 * alias.c (get_alias_set): Do structural type equality on pointers;
3179 enable pointer path for LTO; also glob pointer to vector with pointer
3180 to vector element; glob pointers and references for LTO; do more strict
3181 sanity checking about build_pointer_type returning the canonical type
3182 which is also the main variant.
3183 (record_component_aliases): When component type is pointer and we
3184 do LTO; record void_type_node alias set.
3186 2015-11-21 Nathan Sidwell <nathan@acm.org>
3188 * config/nvptx/nvptx.md (clz<mode>2): Use operand 1 for type.
3190 * config/nvptx/nvptx.c (write_function_decl_and_comment): Print
3192 (write_func_decl_from_insn): Likewise.
3193 (init_output_initializer, nvptx_assemble_undefined_decl): Likewise.
3194 (nvptx_file_end): Likewise.
3195 (nvptx_function_end): Undent output.
3196 (nvptx_expand_call): Fix formatting.
3197 (nvptx_output_call_insn): Indent output.
3198 * config/nvptx/nvptx.h (ASM_OUTPUT_ALIGNED_DECL_COMMON,
3199 ASM__OUTPUT_ALIGNED_DECL_LOCAL): Print leading blank line.
3201 2015-11-21 Jakub Jelinek <jakub@redhat.com>
3204 * tree-inline.c (copy_debug_stmt): If
3205 gimple_debug_source_bind_get_value is DECL_ORIGIN of a PARM_DECL
3206 in decl_debug_args, don't call remap_gimple_op_r on it.
3208 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
3210 * ipa-icf.c (sem_item::add_type): Do not look for TYPE_CANONICAL;
3211 do not check AGGREGATE_TYPE_P when adding TYPE_MODE;
3212 Check that all record types are complete.
3213 * ipa-icf-gimple.c (func_checker::compatible_types_p): Do not
3214 compare alias sets for types w/o alias sets.
3216 2015-11-20 Eric Botcazou <ebotcazou@adacore.com>
3218 * config/sparc/sparc.md (umulxhi_vis): Move around.
3219 (*umulxhi_sp64): Likewise.
3220 (umulxhi_v8plus): Likewise.
3221 (xmulx_vis): Likewise.
3222 (*xmulx_sp64): Likewise.
3223 (xmulx_v8plus): Likewise.
3224 (xmulxhi_vis): Likewise.
3225 (*xmulxhi_sp64): Likewise.
3226 (xmulxhi_v8plus): Likewise.
3228 2015-11-20 David Malcolm <dmalcolm@redhat.com>
3231 * diagnostic-show-locus.c (colorizer::set_fixit_hint): New.
3232 (class layout): Update comment
3233 (layout::print_any_fixits): New method.
3234 (layout::move_to_column): New method.
3235 (diagnostic_show_locus): Add call to layout.print_any_fixits.
3237 2015-11-20 Jakub Jelinek <jakub@redhat.com>
3240 * omp-low.c (lower_rec_input_clauses): If C/C++ array reduction
3241 has non-zero bias, subtract it in integer type instead of
3242 pointer plus of negated bias.
3245 * omp-low.c (expand_simd_clones): Call node->get_body () before
3246 allocating stuff in GC.
3248 2015-11-20 Jim Wilson <jim.wilson@linaro.org>
3250 * tree-vect-data-refs.c (compare_tree): Call STRIP_NOPS.
3252 2015-11-20 Evandro Menezes <e.menezes@samsung.com>
3254 * config/aarch64/aarch64.md (predicated): Copy attribute from
3256 * config/arm/arm.md (predicated): Added description.
3258 2015-11-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3260 * config/arm/arm.c (arm_option_override): Require TARGET_32BIT
3261 for unaligned_access.
3262 * config/arm/arm.md (unaligned_loadsi): Remove redundant TARGET_32BIT
3263 from matching condition.
3264 (unaligned_loadhis): Likewise.
3265 (unaligned_loadhiu): Likewise.
3266 (unaligned_storesi): Likewise.
3267 (unaligned_storehi): Likewise.
3269 2015-11-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3272 * config/arm/arm.md (unaligned_loaddi): Delete.
3273 (unaligned_storedi): Likewise.
3274 * config/arm/arm.c (gen_movmem_ldrd_strd): Don't generate
3275 unaligned DImode memory ops. Instead perform two back-to-back
3276 unaligned SImode ops.
3278 2015-11-20 Nathan Sidwell <nathan@codesourcery.com>
3279 James Norris <jnorris@codesourcery.com>
3281 * config/nvptx/nvptx.c (nvptx_use_anchors_for_symbol_p): New.
3282 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Override.
3284 2015-11-20 Alan Hayward <alan.hayward@arm.com>
3286 PR tree-optimization/68413
3287 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Cache
3289 (vectorizable_reduction): Use cached base
3291 2015-11-20 Tom de Vries <tom@codesourcery.com>
3293 * tree-parloops.c (build_new_reduction): Fix trailing whitespace in
3295 (try_create_reduction_list): Same. Fix typo in dump-file string.
3297 2015-11-20 Eric Botcazou <ebotcazou@adacore.com>
3299 * doc/md.texi (Standard Names): Move entry for addptr3 around,
3300 add entries for addv4, subv4, mulv4, umulv4 and negv3, fixes
3301 glitch in entries for cbranch4 and jump.
3303 2015-11-20 Tom de Vries <tom@codesourcery.com>
3305 PR tree-optimization/68373
3306 * tree-scalar-evolution.c (final_value_replacement_loop): Factor out
3308 (scev_const_prop): ... here.
3309 * tree-scalar-evolution.h (final_value_replacement_loop): Declare.
3310 * tree-parloops.c (try_create_reduction_list): Call
3311 final_value_replacement_loop.
3313 2015-11-20 Bin Cheng <bin.cheng@arm.com>
3315 PR tree-optimization/52272
3316 * tree-ssa-loop-ivopts.c (struct iv_common_cand): New struct.
3317 (struct iv_common_cand_hasher): New struct.
3318 (iv_common_cand_hasher::hash): New function.
3319 (iv_common_cand_hasher::equal): New function.
3320 (struct ivopts_data): New fields, iv_common_cand_tab and
3322 (tree_ssa_iv_optimize_init): Initialize above fields.
3323 (record_common_cand, common_cand_cmp): New functions.
3324 (add_iv_candidate_derived_from_uses): New function.
3325 (add_iv_candidate_for_use): Record iv_common_cands derived from
3326 iv use in hash table, instead of adding candidates directly.
3327 (add_iv_candidate_for_uses): Call add_iv_candidate_derived_from_uses.
3328 (record_important_candidates): Add important candidates to iv uses'
3329 related_cands. Always keep related_cands for future use.
3330 (try_add_cand_for): Use iv uses' related_cands.
3331 (free_loop_data, tree_ssa_iv_optimize_finalize): Release new fields
3332 in struct ivopts_data, iv_common_cand_tab and iv_common_cands.
3334 2015-11-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3336 * config/s390/s390.md ("bswaphi2"): New pattern.
3338 2015-11-20 Dominik Vogt <vogt@linux.vnet.ibm.com>
3340 * config/s390/s390.md (GPR1_REGNUM): New constant.
3341 ("*trunc<BFP:mode><DFP_ALL:mode>2")
3342 ("*trunc<DFP_ALL:mode><BFP:mode>2")
3343 ("trunc<BFP:mode><DFP_ALL:mode>2")
3344 ("trunc<DFP_ALL:mode><BFP:mode>2")
3345 ("*extend<BFP:mode><DFP_ALL:mode>2")
3346 ("*extend<DFP_ALL:mode><BFP:mode>2")
3347 ("extend<BFP:mode><DFP_ALL:mode>2")
3348 ("extend<DFP_ALL:mode><BFP:mode>2"): Clobber r1.
3350 2015-11-19 Aditya Kumar <aditya.k7@samsung.com>
3351 Sebastian Pop <s.pop@samsung.com>
3353 PR tree-optimization/68428
3354 * graphite-scop-detection.c (harmful_stmt_in_region): Do not iterate
3355 over basic blocks outside the scop.
3357 2015-11-19 Aditya Kumar <aditya.k7@samsung.com>
3358 Sebastian Pop <s.pop@samsung.com>
3360 PR tree-optimization/68341
3361 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Remove
3362 gcc_unreachable and safely fail codegen.
3363 (copy_loop_close_phi_args): Do not insert merge phis in a basic
3364 block with loop phi nodes.
3365 (edge_for_new_close_phis): New.
3366 (copy_bb_and_scalar_dependences): Call edge_for_new_close_phis.
3368 2015-11-19 Nathan Sidwell <nathan@acm.org>
3370 * config/nvptx/nvptx.h (SUPPORTS_WEAK): Define.
3371 * config/nvptx/nvptx.c (nvptx_write_function_decl): Support DECL_WEAK.
3372 (nvptx_declare_objec_name): Likewise.
3374 2015-11-19 Aditya Kumar <aditya.k7@samsung.com>
3376 * graphite-isl-ast-to-gimple.c (get_true_edge_from_guard_bb): Move...
3377 (get_false_edge_from_guard_bb): Move...
3378 * sese.c (get_false_edge_from_guard_bb)
3379 (get_true_edge_from_guard_bb): ... here.
3381 2015-11-19 David Edelsohn <dje.gcc@gmail.com>
3384 2015-11-18 Alan Modra <amodra@gmail.com>
3386 * config/rs6000/rs6000.c (use_toc_relative_ref): Ignore
3387 type-limits warning.
3390 2015-11-19 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
3392 * tree.h (desired_pro_or_demotion_p): New function.
3393 * tree-vrp.c (simplify_cond_using_ranges): Call it.
3395 2015-11-19 Michael Matz <matz@suse.de>
3397 PR rtl-optimization/68392
3398 * fwprop.c (update_uses): Use flag_checking instead of
3399 gcc_checking_assert.
3401 2015-11-19 David Malcolm <dmalcolm@redhat.com>
3403 * doc/gty.texi (Support for inheritance): Fix missing
3404 parentheses in example.
3406 2015-11-19 Marek Polacek <polacek@redhat.com>
3408 PR tree-optimization/68431
3409 * tree-vrp.c (extract_range_from_binary_expr_1): Fix condition.
3411 2015-11-19 Nathan Sidwell <nathan@acm.org>
3413 * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>_1,
3414 atomic_exchange<mode>): Input values can be immediates.
3416 2015-11-19 Eric Botcazou <ebotcazou@adacore.com>
3419 * configure.ac (PLUGIN_LD_SUFFIX): Do not touch the value specified
3421 * configure: Regenerate.
3423 2015-11-19 Eric Botcazou <ebotcazou@adacore.com>
3426 * config/sparc/sp-elf.h (CTORS_SECTION_ASM_OP): Undefine.
3427 (DTORS_SECTION_ASM_OP): Likewise.
3429 2015-11-19 Jakub Jelinek <jakub@redhat.com>
3431 PR rtl-optimization/68376
3432 * ifcvt.c (noce_try_abs): Disable one_cmpl optimization if
3433 encountering x <= 0 ? ~x : x or x > 0 ? ~x : x.
3435 2015-11-19 Richard Biener <rguenther@suse.de>
3438 * tree-ssa.c (delete_tree_ssa): Revert removal of call to
3439 redirect_edge_var_map_destroy.
3441 2015-11-19 Jakub Jelinek <jakub@redhat.com>
3444 * config/i386/i386.md (simple_return): Disable if
3445 ix86_static_chain_on_stack is true.
3447 2015-11-19 Richard Sandiford <richard.sandiford@arm.com>
3450 * internal-fn.c (expand_direct_optab_fn): Handle SUBREG_PROMOTED_VAR_P
3453 2015-11-18 Jeff Law <law@redhat.com>
3455 PR tree-optimization/68198
3456 * tree-ssa-threadupdate.c (valid_jump_thread_path): Distinguish
3457 between threading a multi-way branch and a thread path that contains
3458 a multi-way branch. Disallow the case where a path contains a
3459 multi-way branch and does not thread a multi-way branch.
3460 (thread_through_all_blocks): Update comment.
3462 2015-11-18 Joseph Myers <joseph@codesourcery.com>
3465 * ginclude/stdatomic.h (atomic_thread_fence, atomic_signal_fence)
3466 (atomic_flag_test_and_set, atomic_flag_test_and_set_explicit)
3467 (atomic_flag_clear, atomic_flag_clear_explicit): Declare as
3468 functions before defining as macros.
3470 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
3472 * config/nvptx/nvptx.c (nvptx_process_pars): Fix whitespace.
3473 (nvptx_record_offload_symbol): Remove code compensating for lack
3474 of default dimension handling.
3475 (nvptx_goacc_validate_dims): Remove incorrect ARG_UNUSED markers.
3477 2015-11-18 Aditya Kumar <aditya.k7@samsung.com>
3479 * graphite-isl-ast-to-gimple.c (copy_loop_phi_args): Change the return
3480 type to bool for early exit.
3481 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Early return
3483 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
3484 (add_phi_arg_for_new_expr): Enable codegen for if-block where one
3485 predecessor dominates the other.
3486 (translate_isl_ast_to_gimple::copy_cond_phi_args): Fix. When the
3487 element is not found it returns -1.
3488 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Bail
3489 out early when codegen fails.
3490 (graphite_regenerate_ast_isl): Remove codegen region when pending
3491 phis could not be generated.
3493 2015-11-18 Aditya Kumar <aditya.k7@samsung.com>
3495 * graphite-isl-ast-to-gimple.c (struct ast_build_info): Remove
3497 (class translate_isl_ast_to_gimple): Indentation.
3498 (translate_pending_phi_nodes): Comment.
3499 (add_parameters_to_ivs_params): Moved from sese.c inside class
3500 translate_isl_ast_to_gimple.
3501 (get_max_schedule_dimensions): Same.
3502 (generate_isl_context): Same.
3503 (extend_schedule): Same.
3504 (generate_isl_schedule): Same.
3505 (set_options): Same.
3506 (scop_to_isl_ast): Same.
3507 (is_valid_rename): Same.
3509 (get_rename_from_scev): Same.
3510 (get_def_bb_for_const): Same.
3511 (get_new_name): Same.
3512 (collect_all_ssa_names): Same.
3513 (copy_loop_phi_args): Same.
3514 (copy_loop_phi_nodes): Same.
3515 (copy_loop_close_phi_args): Same.
3516 (copy_loop_close_phi_nodes): Same.
3517 (copy_cond_phi_args): Same.
3518 (copy_cond_phi_nodes): Same.
3519 (graphite_copy_stmts_from_block): Same.
3520 (copy_bb_and_scalar_dependences): Same.
3521 (add_phi_arg_for_new_expr): Same.
3522 (rename_uses): Same.
3524 (set_rename_for_each_def): Same.
3525 (gsi_insert_earliest): Same.
3526 (rename_all_uses): Same.
3527 (codegen_error_p): Same.
3528 (print_isl_ast_node): Same.
3529 (translate_isl_ast_for_loop): Call function codegen_error_p.
3530 (translate_isl_ast_to_gimple::translate_isl_ast): Same.
3531 (translate_isl_ast_node_user): Make nb_loops const and release
3533 (get_true_edge_from_guard_bb): Move all free-functions early.
3534 (get_false_edge_from_guard_bb): Same.
3535 (bb_contains_loop_close_phi_nodes): Same.
3536 (bb_contains_loop_phi_nodes): Same.
3537 (is_loop_closed_ssa_use): Same.
3538 (number_of_phi_nodes): Same.
3539 (phi_uses_name): Same.
3540 (later_of_the_two): Same.
3541 (substitute_ssa_name):
3544 (get_loop_init_value): Same.
3545 (find_init_value): Same.
3546 (find_init_value_close_phi): Same.
3547 (ast_build_before_for): Same.
3548 (graphite_regenerate_ast_isl): Formatting changes.
3549 * graphite-scop-detection.c (build_cross_bb_scalars_use): Same.
3550 * sese.c (get_rename): Move to graphite-isl-ast-to-gimple.c
3552 (gsi_insert_earliest): Same.
3553 (collect_all_ssa_names): Same.
3554 (rename_all_uses): Same.
3555 (rename_uses): Same.
3556 (get_def_bb_for_const): Same.
3557 (copy_loop_phi_nodes): Same.
3558 (copy_loop_close_phi_args): Same.
3559 (copy_loop_close_phi_nodes): Same.
3560 (copy_cond_phi_args): Same.
3561 (copy_cond_phi_nodes): Same.
3562 (set_rename_for_each_def): Same.
3563 (graphite_copy_stmts_from_block): Same.
3564 (copy_bb_and_scalar_dependences): Same.
3565 (if_region_set_false_region): Same.
3566 (scev_analyzable_p): Same.
3567 * sese.h: Delete extern functions moved to graphite-isl-ast-to-gimple.c.
3569 2015-11-18 Andreas Tobler <andreast@gcc.gnu.org>
3571 * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Bring in the
3572 commit from r125920 for FreeBSD.
3574 2015-11-18 Jason Merrill <jason@redhat.com>
3576 * ggc-page.c (ggc_globals): Change finalizers and vec_finalizers
3578 (add_finalizer): Split out from ggc_internal_alloc.
3579 (ggc_handle_finalizers): Run finalizers for the current depth.
3580 (init_ggc, ggc_pch_read): Reserve space for finalizers.
3582 2015-11-18 Sandra Loosemore <sandra@codesourcery.com>
3585 * config/nios2/nios2.c (cdx_and_immed): Remove duplicate tests
3588 2015-11-18 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
3590 * config/avr/avr-mcus.def: Add new avr4 devices atmega48pb and
3591 atmega88pb. Add new avr5 devices ata5791, ata8210, ata8510, atmega168pb
3593 * doc/avr-mmcu.texi: Regenerate.
3595 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
3597 * config/nvptx/nvptx.c (bb_pair_t, bb_pair_vec_t): New types.
3598 (pseudo_node_t, struct bracket, bracket_vec_t): New types.
3599 (struct bb_sese): New struct.
3600 (bb_sese::~bb_sese, bb_sese::append, bb_sese::remove): New.
3601 (BB_GET_SESE, BB_SET_SESE): Define.
3602 (nvptx_sese_number, nvptx_sese_pseudo, nvptx_sese_color): New.
3603 (nvptx_find_sese): New.
3604 (nvptx_neuter_pars): Find SESE regions when optimizing.
3606 2015-11-18 Alan Modra <amodra@gmail.com>
3608 * config/rs6000/rs6000.c (use_toc_relative_ref): Ignore
3609 type-limits warning.
3611 2015-11-18 Richard Sandiford <richard.sandiford@arm.com>
3614 * hash-set.h (hash_set::traverse): Expand Key typedef.
3616 2015-11-18 Martin Liska <mliska@suse.cz>
3618 * config/arm/arm.c (arm_valid_target_attribute_p): Finalize
3621 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
3623 * config/nvptx/nvptx.c (global_lock_var): New.
3624 (nvptx_global_lock_addr): New.
3625 (nvptx_lockless_update): Recomment and adjust for clarity.
3626 (nvptx_lockfull_update): New.
3627 (nvptx_reduction_update): New.
3628 (nvptx_goacc_reduction_fini): Call it.
3630 2015-11-18 Bernd Schmidt <bschmidt@redhat.com>
3632 * regrename.h (struct du_head): Add target_data_1 and target_data_2
3634 * regrename.c (create_new_chain): Clear entire struct after allocating.
3636 * config/i386/i386.opt (mmitigate-rop): New option.
3637 * doc/invoke.texi (mmitigate-rop): Document.
3638 * config/i386/i386.c: Include "regrename.h".
3639 (ix86_rop_should_change_byte_p, reg_encoded_number,
3640 ix86_get_modrm_for_rop, set_rop_modrm_reg_bits, ix86_mitigate_rop): New
3642 (ix86_reorg): Call ix86_mitigate_rop if -fmitigate-rop.
3643 * config/i386/i386.md (attr "modrm_class"): New.
3644 (cmp<mode>_ccno_1, mov<mode>_xor, movstrict<mode>_xor,
3645 x86_mov<mode>cc_0_m1. x86_mov<mode>cc_0_m1_se)
3646 (x86_mov<mode>cc_0_m1_neg): Override modrm_class attribute.
3648 2015-11-18 Ilya Enkovich <enkovich.gnu@gmail.com>
3651 * config/i386/i386.c (ix86_expand_mask_vec_cmp): Add missing break.
3653 2015-11-18 Jakub Jelinek <jakub@redhat.com>
3655 PR tree-optimization/68157
3656 * tree-ssa-reassoc.c (attempt_builtin_powi): Set uid of
3657 pow_stmt or mul_stmt from stmt's uid.
3658 (reassociate_bb): Set uid of mul_stmt from stmt's uid.
3660 2015-11-18 Martin Liska <mliska@suse.cz>
3662 * haifa-sched.c (haifa_finish_h_i_d): Release reg_set_list.
3664 2015-11-18 Martin Liska <mliska@suse.cz>
3666 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
3667 Fix GNU coding style.
3668 (find_def_preds): Use auto_vec.
3669 (destroy_predicate_vecs): Change signature of the function.
3670 (prune_uninit_phi_opnds_in_unrealizable_paths): Use the
3672 (simplify_preds_4): Use destroy_predicate_vecs instread of
3673 just releasing preds vector.
3674 (normalize_preds): Likewise.
3675 (is_use_properly_guarded): Use new signature of
3676 destroy_predicate_vecs.
3677 (find_uninit_use): Likewise.
3679 2015-11-18 Richard Biener <rguenther@suse.de>
3681 PR tree-optimization/67790
3682 * tree-vect-loop.c (vect_is_simple_reduction_1): Remove
3683 IL rewrite for MINUS_EXPR reductions, rename back to ...
3684 (vect_is_simple_reduction): ... this, removing the wrapper.
3685 (vect_force_simple_reduction): Adjust.
3686 (vectorizable_reduction): Adjust reduc_index for MINUS_EXPR
3687 reductions and make use if reduc_index in all places. For
3688 the final reduction of MINUS_EXPR use PLUS_EXPR.
3690 2015-11-18 Alan Modra <amodra@gmail.com>
3692 * configure.ac (POWERPC64_TOC_POINTER_ALIGNMENT): Pass -z norelro
3694 * configure: Regenerate.
3696 2015-11-17 Tom de Vries <tom@codesourcery.com>
3698 * tree-ssa-loop.c (pass_tree_loop_init::execute): Improve comments.
3700 2015-11-17 Tom de Vries <tom@codesourcery.com>
3702 * tree-scalar-evolution.c (scev_const_prop): Dump details if replacing
3703 uses of ssa_name with constant.
3705 2015-11-17 Tom de Vries <tom@codesourcery.com>
3707 * tree-ssa-ccp.c (do_ssa_ccp): Clear LOOP_CLOSED_SSA in loops state if
3710 2015-11-17 Tom de Vries <tom@codesourcery.com>
3712 * cfgloop.h (struct loop): Add in_oacc_kernels_region field.
3713 * omp-low.c (mark_loops_in_oacc_kernels_region): New function.
3714 (expand_omp_target): Call mark_loops_in_oacc_kernels_region.
3716 2015-11-17 Bernd Schmidt <bschmidt@redhat.com>
3718 * regrename.c (regrename_find_superclass): New function, code moved
3720 (rename_chains): ... here. Call it.
3721 * regrename.h (regrename_find_superclass): Declare.
3723 * regrename.c (record_out_operands): Terminate earlyclobbered
3727 * regrename.c (record_operand_use): Keep track of failed operands
3728 and stop appending if we see any.
3729 * regrename.h (struct operand_rr_info): Add a failed field and shrink
3732 2015-11-17 Sandra Loosemore <sandra@codesourcery.com>
3735 * doc/extend.texi (Common Function Attributes) [visibility]:
3736 Add cross-references to matching variable and type attributes.
3737 (Common Variable Attributes) [visibility]: Add missing entry.
3739 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3741 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function): Remove
3742 entries that map directly to optabs.
3744 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3746 * config/i386/i386.c (ix86_builtin_vectorized_function): Remove
3747 entries that map directly to optabs.
3749 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3751 * internal-fn.h (direct_internal_fn_info): Add vectorizable flag.
3752 * internal-fn.c (direct_internal_fn_array): Update accordingly.
3753 * tree-vectorizer.h (vectorizable_function): Delete.
3754 * tree-vect-stmts.c: Include internal-fn.h.
3755 (vectorizable_internal_function): New function.
3756 (vectorizable_function): Inline into...
3757 (vectorizable_call): ...here. Explicitly reject calls that read
3758 from or write to memory. Try using an internal function before
3759 falling back on the old vectorizable_function behavior.
3761 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3763 * target.def (builtin_vectorized_function): Take a combined_fn (in
3764 the form of an unsigned int) rather than a function decl.
3765 (builtin_md_vectorized_function): New.
3766 * targhooks.h (default_builtin_vectorized_function): Replace the
3767 fndecl argument with an unsigned int.
3768 (default_builtin_md_vectorized_function): Declare.
3769 * targhooks.c (default_builtin_vectorized_function): Replace the
3770 fndecl argument with an unsigned int.
3771 (default_builtin_md_vectorized_function): New function.
3772 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_MD_VECTORIZED_FUNCTION):
3774 * doc/tm.texi: Regenerate.
3775 * tree-vect-stmts.c (vectorizable_function): Update call to
3776 builtin_vectorized_function, also passing internal functions.
3777 Call builtin_md_vectorized_function for target-specific builtins.
3778 * config/aarch64/aarch64-protos.h
3779 (aarch64_builtin_vectorized_function): Replace fndecl argument
3780 with an unsigned int.
3781 * config/aarch64/aarch64-builtins.c: Include case-cfn-macros.h.
3782 (aarch64_builtin_vectorized_function): Update after above changes.
3784 * config/arm/arm-protos.h (arm_builtin_vectorized_function): Replace
3785 fndecl argument with an unsigned int.
3786 * config/arm/arm-builtins.c: Include case-cfn-macros.h
3787 (arm_builtin_vectorized_function): Update after above changes.
3789 * config/i386/i386.c: Include case-cfn-macros.h
3790 (ix86_veclib_handler): Take a combined_fn rather than a
3792 (ix86_veclibabi_svml, ix86_veclibabi_acml): Likewise. Use
3793 mathfn_built_in rather than calling builtin_decl_implicit directly.
3794 (ix86_builtin_vectorized_function) Update after above changes.
3796 * config/rs6000/rs6000.c: Include case-cfn-macros.h
3797 (rs6000_builtin_vectorized_libmass): Replace fndecl argument
3798 with a combined_fn. Use CASE_CFN_*. Use mathfn_built_in rather
3799 than calling builtin_decl_implicit directly.
3800 (rs6000_builtin_vectorized_function): Update after above changes.
3801 Use CASE_CFN_*. Move BUILT_IN_MD to...
3802 (rs6000_builtin_md_vectorized_function): ...this new function.
3803 (TARGET_VECTORIZE_BUILTIN_MD_VECTORIZED_FUNCTION): Define.
3805 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3807 * tree-vect-patterns.c: Include internal-fn.h.
3808 (vect_recog_pow_pattern): Use IFN_SQRT instead of BUILT_IN_SQRT*.
3810 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3812 * tree.h (BUILTIN_EXP10_P, BUILTIN_EXPONENT_P, BUILTIN_SQRT_P)
3813 (BUILTIN_CBRT_P, BUILTIN_ROOT_P): Delete.
3815 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3817 * builtins.c (expand_errno_check, expand_builtin_mathfn)
3818 (expand_builtin_mathfn_2): Delete.
3819 (expand_builtin): Remove handling of functions with
3820 internal function equivalents.
3821 * internal-fn.def (SET_EDOM): New internal function.
3822 * internal-fn.h (set_edom_supported_p): Declare.
3823 * internal-fn.c (expand_SET_EDOM): New function.
3824 (set_edom_supported_p): Likewise.
3825 * tree-call-cdce.c: Include builtins.h and internal-fn.h.
3826 Rewrite comment at head of file.
3827 (is_call_dce_candidate): Rename to...
3828 (can_test_argument_range): ...this. Don't check gimple_call_lhs
3829 or gimple_call_builtin_p here.
3830 (edom_only_function): New function.
3831 (shrink_wrap_one_built_in_call_with_conds): New function, split out
3833 (shrink_wrap_one_built_in_call): ...here.
3834 (can_use_internal_fn, use_internal_fn): New functions.
3835 (shrink_wrap_conditional_dead_built_in_calls): Call use_internal_fn
3836 for calls that have an lhs.
3837 (pass_call_cdce::gate): Remove optimize_function_for_speed_p check.
3838 (pass_call_cdce::execute): Skip blocks that are optimized for size.
3839 Check gimple_call_builtin_p here. Use can_use_internal_fn for
3841 * opts.c (default_options_table): Enable -ftree-builtin-call-cdce
3844 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3846 * builtins.h (called_as_built_in): Declare.
3847 * builtins.c (called_as_built_in): Make external.
3848 * internal-fn.h (expand_internal_call): Define a variant that
3849 specifies the internal function explicitly.
3850 * internal-fn.c (expand_load_lanes_optab_fn)
3851 (expand_store_lanes_optab_fn, expand_ANNOTATE, expand_GOMP_SIMD_LANE)
3852 (expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE)
3853 (expand_GOMP_SIMD_ORDERED_START, expand_GOMP_SIMD_ORDERED_END)
3854 (expand_UBSAN_NULL, expand_UBSAN_BOUNDS, expand_UBSAN_VPTR)
3855 (expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK, expand_TSAN_FUNC_EXIT)
3856 (expand_UBSAN_CHECK_ADD, expand_UBSAN_CHECK_SUB)
3857 (expand_UBSAN_CHECK_MUL, expand_ADD_OVERFLOW, expand_SUB_OVERFLOW)
3858 (expand_MUL_OVERFLOW, expand_LOOP_VECTORIZED)
3859 (expand_mask_load_optab_fn, expand_mask_store_optab_fn)
3860 (expand_ABNORMAL_DISPATCHER, expand_BUILTIN_EXPECT, expand_VA_ARG)
3861 (expand_UNIQUE, expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS)
3862 (expand_GOACC_LOOP, expand_GOACC_REDUCTION, expand_direct_optab_fn)
3863 (expand_unary_optab_fn, expand_binary_optab_fn): Add an internal_fn
3865 (internal_fn_expanders): Update prototype.
3866 (expand_internal_call): Define a variant that specifies the
3867 internal function explicitly. Use it to implement the previous
3869 * cfgexpand.c (expand_call_stmt): Try to expand calls to built-in
3870 functions as calls to internal functions.
3872 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3874 * Makefile.in (MOSTLYCLEANFILES): Add cfn-operators.pd.
3875 (generated_files): Likewise.
3876 (s-cfn-operators, cfn-operators.pd): New rules.
3877 (s-match): Depend on cfn-operators.pd.
3878 * gencfn-macros.c: Expand comment to describe -o behavior.
3879 (print_define_operator_list): New function.
3880 (main): Accept -o. Call print_define_operator_list.
3881 * genmatch.c (main): Add the current directory to the include path.
3882 * match.pd (DEFINE_MATH_FN): Delete. Include cfn-operators.pd
3885 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3887 * doc/match-and-simplify.texi: Document the "null" identifier.
3888 * genmatch.c (id_base::NULL_ID): New kind.
3889 (null_id): New variable.
3890 (get_operator): Add a parameter that says whether null identifiers
3892 (contains_id): New function.
3893 (lower_for): Skip substitutions that would have a null_id in
3894 either the match or the result.
3895 (parser::parse_for): Allow the null identifier to be used.
3896 (parser::parse_operator_list): Likewise.
3897 (main): Initialize null_id.
3899 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3901 * match.pd: Use HYPOT and COS rather than hypot and cos.
3902 Use CASE_CFN_* macros. Guard log/exp folds with
3903 SCALAR_FLOAT_TYPE_P.
3904 * genmatch.c (internal_fn): New enum.
3905 (fn_id::fn): Change to an unsigned int.
3906 (fn_id::fn_id): Accept internal_fn too.
3907 (add_builtin): Rename to...
3908 (add_function): ...this and turn into a template.
3909 (get_operator): Only try one variation if the original name fails.
3910 Only add _EXPR if the original name was all lower case.
3911 Try converting internal and built-in function names to their
3913 (expr::gen_transform): Use maybe_build_call_expr_loc for generic.
3914 (dt_simplify::gen_1): Likewise.
3915 (dt_node::gen_kids_1): Use gimple_call_combined_fn for gimple
3916 and get_call_combined_fn for generic.
3917 (dt_simplify::gen): Use combined_fn as the type of fn_ids.
3918 (decision_tree::gen): Likewise.
3919 (main): Use lower case in the strings for {VIEW_,}CONVERT[012].
3920 Use add_function rather than add_builtin. Register internal
3922 * generic-match-head.c: Include case-cfn-macros.h.
3923 * gimple-fold.c (replace_stmt_with_simplification): Use
3924 gimple_call_combined_fn to test whether we can keep an
3926 * gimple-match.h (code_helper): Replace built_in_function
3928 * gimple-match-head.c: Include fold-const-call.h, internal-fn.h
3929 and case-fn-macros.h.
3930 (gimple_resimplify1): Use fold_const_call.
3931 (gimple_resimplify2, gimple_resimplify3): Likewise.
3932 (build_call_internal, build_call): New functions.
3933 (maybe_push_res_to_seq): Use them.
3934 (gimple_simplify): Use fold_const_call. Set *rcode to a combined_fn
3935 rather than a built-in function.
3936 * tree.h (build_call_expr_internal_loc): Declare.
3937 (maybe_build_call_expr_loc): Likewise.
3938 * tree.c (build_call_expr_internal_loc_array): New function.
3939 (maybe_build_call_expr_loc): Likewise.
3941 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3943 * builtins.h (mathfn_built_in): Add a variant that takes
3945 * builtins.c: Include case-cfn-macros.h.
3946 (CASE_MATHFN): Use CASE_CFN_*.
3947 (CASE_MATHFN_REENT): Use CFN_ codes.
3948 (mathfn_built_in_2, mathfn_built_in_1): Replace built_in_function
3949 argument with a combined_fn.
3950 (mathfn_built_in): Add a variant that takes a combined_fn.
3951 (expand_builtin_int_roundingfn_2): Update callers accordingly.
3952 (fold_builtin_sincos, fold_builtin_classify): Likewise.
3954 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3956 * tree-vect-patterns.c: Include case-cfn-macros.h.
3957 (vect_recog_pow_pattern): Use combined_fn instead of built-in codes.
3959 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3961 * tree-ssa-math-opts.c: Include case-cfn-macros.h.
3962 (execute_cse_sincos_1): Use combined_fn instead of built-in codes.
3963 (pass_cse_sincos::execute): Likewise.
3965 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3967 * tree-ssa-reassoc.c: Include case-cfn-macros.h.
3968 (stmt_is_power_of_op): Use combined_fn instead of built-in codes.
3969 (decrement_power, acceptable_pow_call): Likewise.
3970 (attempt_builtin_copysign): Likewise.
3972 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3974 * tree-vrp.c: Include case-cfn-macros.h.
3975 (extract_range_basic): Switch on combined_fn rather than handling
3976 built-in functions and internal functions separately.
3978 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3980 * fold-const.h (negate_mathfn_p): Take a combined_fn rather
3981 than a built_in_function.
3982 (tree_call_nonnegative_warnv_p): Take a combined_fn rather than
3984 (integer_valued_real_call_p): Likewise.
3985 * fold-const.c: Include case-cfn-macros.h
3986 (negate_mathfn_p): Take a combined_fn rather than a built_in_function.
3987 (negate_expr_p): Update accordingly.
3988 (tree_call_nonnegative_warnv_p): Take a combined_fn rather than
3990 (integer_valued_real_call_p): Likewise.
3991 (tree_invalid_nonnegative_warnv_p): Update accordingly.
3992 (integer_valued_real_p): Likewise.
3993 * gimple-fold.c (gimple_call_nonnegative_warnv_p): Update call
3994 to tree_call_nonnegative_warnv_p.
3995 (gimple_call_integer_valued_real_p): Likewise
3996 integer_valued_real_call_p.
3997 * gimple-ssa-backprop.c: Include case-cfn-macros.h.
3998 (backprop::process_builtin_call_use): Extend to combined_fn.
3999 (strip_sign_op_1): Likewise.
4000 (backprop::process_use): Don't check for built-in calls here.
4001 (backprop::execute): Likewise.
4002 (backprop::optimize_builtin_call): Update call to negate_mathfn_p.
4004 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
4006 * fold-const-call.h (fold_const_call): Replace built_in_function
4007 arguments with combined_fn arguments.
4008 * fold-const-call.c: Include case-cfn-macros.h.
4009 (fold_const_call_ss, fold_const_call_cs, fold_const_call_sc)
4010 (fold_const_call_cc, fold_const_call_sss, fold_const_call_ccc)
4011 (fold_const_call_ssss, fold_const_call_1, fold_const_call): Replace
4012 built_in_function arguments with combined_fn arguments.
4013 * builtins.c (fold_builtin_sincos, fold_builtin_1, fold_builtin_2)
4014 (fold_builtin_3): Update calls to fold_const_call.
4016 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
4018 * Makefile.in (HASH_TABLE_H): Add GGC_H.
4019 (MOSTLYCLEANFILES, generated_files): Add case-fn-macros.h.
4020 (s-case-cfn-macros, case-cfn-macros.h, build/gencfn-macros.o)
4021 (build/gencfn-macros$(build_exeext): New rules.
4022 (genprogerr): Add cfn-macros.
4023 * hash-set.h (hash_set): Use the traits value_type as the key.
4024 * gencfn-macros.c: New file.
4026 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
4028 * internal-fn.def (DEF_INTERNAL_INT_FN): New macro.
4029 (CLRSB, CLZ, CTZ, FFS, PARITY, POPCOUNT): New functions.
4030 * builtins.c (associated_internal_fn): Handle them.
4032 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
4034 * builtins.h (associated_internal_fn): Declare.
4035 (replacement_internal_fn): Likewise.
4036 * builtins.c: Include internal-fn.h
4037 (associated_internal_fn, replacement_internal_fn): New functions.
4038 * internal-fn.def (DEF_INTERNAL_FLT_FN): New macro.
4039 (ACOS, ASIN, ATAN, COS, EXP, EXP10, EXP2, EXPM1, LOG, LOG10, LOG1P)
4040 (LOG2, LOGB, SIGNIFICAND, SIN, SQRT, TAN, CEIL, FLOOR, NEARBYINT)
4041 (RINT, ROUND, TRUNC, ATAN2, COPYSIGN, FMOD, POW, REMAINDER, SCALB)
4042 (LDEXP): New functions.
4043 * internal-fn.c: Include recog.h.
4044 (unary_direct, binary_direct): New macros.
4045 (expand_direct_optab_fn): New function.
4046 (expand_unary_optab_fn): New macro.
4047 (expand_binary_optab_fn): Likewise.
4048 (direct_unary_optab_supported_p): Likewise.
4049 (direct_binary_optab_supported_p): Likewise.
4051 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
4053 * coretypes.h (tree_pair): New type.
4054 * internal-fn.def (DEF_INTERNAL_OPTAB_FN): New macro. Use it
4055 for MASK_LOAD, LOAD_LANES, MASK_STORE and STORE_LANES.
4056 * internal-fn.h (direct_internal_fn_info): New structure.
4057 (direct_internal_fn_array): Declare.
4058 (direct_internal_fn_p, direct_internal_fn): New functions.
4059 (direct_internal_fn_types, direct_internal_fn_supported_p): Declare.
4060 * internal-fn.c (not_direct, mask_load_direct, load_lanes_direct)
4061 (mask_store_direct, store_lanes_direct): New macros.
4062 (direct_internal_fn_array) New array.
4063 (get_multi_vector_move): Return the optab handler without asserting
4064 that it is available.
4065 (expand_LOAD_LANES): Rename to...
4066 (expand_load_lanes_optab_fn): ...this and add an optab argument.
4067 (expand_STORE_LANES): Rename to...
4068 (expand_store_lanes_optab_fn): ...this and add an optab argument.
4069 (expand_MASK_LOAD): Rename to...
4070 (expand_mask_load_optab_fn): ...this and add an optab argument.
4071 (expand_MASK_STORE): Rename to...
4072 (expand_mask_store_optab_fn): ...this and add an optab argument.
4073 (direct_internal_fn_types, direct_optab_supported_p)
4074 (multi_vector_optab_supported_p, direct_internal_fn_supported_p)
4075 (direct_internal_fn_supported_p): New functions.
4076 (direct_mask_load_optab_supported_p): New macro.
4077 (direct_load_lanes_optab_supported_p): Likewise.
4078 (direct_mask_store_optab_supported_p): Likewise.
4079 (direct_store_lanes_optab_supported_p): Likewise.
4081 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
4083 * tree-core.h (internal_fn): Move immediately after the definition
4084 of built_in_function.
4085 (combined_fn): New enum.
4086 * tree.h (as_combined_fn, builtin_fn_p, as_builtin_fn)
4087 (internal_fn_p, as_internal_fn): New functions.
4088 (get_call_combined_fn, combined_fn_name): Declare.
4089 * tree.c (get_call_combined_fn): New function.
4090 (combined_fn_name): Likewise.
4091 * gimple.h (gimple_call_combined_fn): Declare.
4092 * gimple.c (gimple_call_combined_fn): New function.
4094 2015-11-17 Martin Sebor <msebor@redhat.com>
4097 * cp/init.c (build_new_1): Check for expression constness
4100 2015-11-17 Sandra Loosemore <sandra@codesourcery.com>
4103 * doc/invoke.texi (Option Summary): Add -mms-bitfields to x86
4105 (x86 Options): Add -mms-bitfields and -mno-ms-bitfields. Move
4106 discussion of the Microsoft structure layout details here from
4107 its former home in extend.texi.
4108 * doc/extend.texi (x86 Variable Attributes): Replace detailed
4109 discussion with pointer to its new location. Add cross-reference
4110 to corresponding type attributes.
4111 (x86 Type Attributes): Add cross-references to command-line options
4112 and variable attributes.
4114 2015-11-17 Ilya Enkovich <enkovich.gnu@gmail.com>
4117 * targhooks.c (default_get_mask_mode): Filter out
4118 scalar modes returned by mode_for_vector.
4120 2015-11-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4123 * config/arm/arm.c (arm_block_set_unaligned_vect): Keep track of
4124 offset from dstbase and use it appropriately in
4125 adjust_automodify_address.
4126 (arm_block_set_aligned_vect): Likewise.
4128 2015-11-17 Eric Botcazou <ebotcazou@adacore.com>
4130 * config/visium/t-visium (MULTILIB_OPTIONS): Add muser-mode.
4131 (MULTILIB_DIRNAMES): Adjust accordingly.
4133 2015-11-17 James Greenhalgh <james.greenhalgh@arm.com>
4135 * config/aarch64/aarch64-cores.def (cortex-a35): New.
4136 * config/aarch64/aarch64.c (cortexa35_tunings): New.
4137 * config/aarch64/aarch64-tune.md: Regenerate.
4138 * doc/invoke.texi (-mcpu): Add Cortex-A35
4140 2015-11-17 Uros Bizjak <ubizjak@gmail.com>
4143 * config/i386/i386.h (BIGGEST_ALIGNMENT): Always define
4145 * config/i386/sse.md (*mov<mode>_internal): Always enable
4146 AVX and SSE unaligned moves for IAMCU.
4148 2015-11-17 Venkataramanan Kumar <Venkataramanan.Kumar@amd.com>
4150 * tree-if-conv.c: Include varasm.h
4151 (ref_DR_map): Define.
4152 (baseref_DR_map): Like wise
4153 (struct ifc_dr): Add new tree predicate field.
4154 (hash_memrefs_baserefs_and_store_DRs_read_written_info): New function.
4155 (memrefs_read_or_written_unconditionally): Remove.
4156 (write_memrefs_written_at_least_once): Remove.
4157 (ifcvt_memrefs_wont_trap): Use hash maps to query
4158 unconditional read/written information.
4159 (if_convertible_loop_p_1): Initialize hash maps and predicates
4160 before hashing data references and delete hashmaps at the end.
4162 2015-11-16 Thomas Preud'homme <thomas.preudhomme@arm.com>
4165 * doc/invoke.texi (Optimize Options): Move @end table to the right
4168 2015-11-16 Sandra Loosemore <sandra@codesourcery.com>
4171 * doc/extend.texi (__builtin_assume_aligned): Fix formatting of
4174 2015-11-16 Michael Meissner <meissner@linux.vnet.ibm.com>
4176 * config/rs6000/vsx.md (VSX_L): Do not include IBM extended double
4177 128-bit types, just types that fit in a single vector.
4178 * config/rs6000/rs6000.md (FMOVE128_GPR): Likewise.
4180 2015-11-16 David Wohlferd <dw@LimeGreenSocks.com>
4182 * doc/md.texi ('#' and '*' constraint modifiers): Do not include these
4183 in the user documentation.
4184 (define_peephole2, define_split): Similarly.
4186 2015-11-16 Andris Pavenis <andris.pavenis@iki.fi>
4188 * lto-streamer-out.c (write_global_references): Adjust integer type.
4189 (lto_output_decl_state_refs): Likewise.
4191 2015-11-16 James Greenhalgh <james.greenhalgh@arm.com>
4193 * config/arm/arm-cores.def (cortex-a35): New.
4194 * config/arm/arm.c (arm_cortex_a35_tune): New.
4195 * config/arm/arm-tables.opt: Regenerate.
4196 * config/arm/arm-tune.md: Regenerate.
4197 * config/arm/bpabi.h (BE8_LINK_SPEC): Add cortex-a35.
4198 * config/arm/t-aprofile: Likewise.
4199 * doc/invoke.texi (-mcpu): Likewise.
4201 2015-11-16 Jim Wilson <jim.wilson@linaro.org>
4203 * config/arm/t-aprofile (MULTILIB_MATCHES): Add lines for exynos-m1
4204 and qdf24xx and xgene1 to match -march=armv8-a.
4206 2015-11-16 Segher Boessenkool <segher@kernel.crashing.org>
4208 PR rtl-optimization/68330
4209 * simplify-rtx.c (simplify_unary_operation_1): Simplify SIGN_EXTEND
4210 of LSHIFTRT by a non-zero constant integer.
4212 2015-11-16 Richard Biener <rguenther@suse.de>
4214 PR tree-optimization/68306
4215 * tree-vect-data-refs.c (vect_verify_datarefs_alignment): Fix
4216 bogus copying from verify_data_ref_alignment and use continue
4219 2015-11-16 Oleg Endo <olegendo@gcc.gnu.org>
4220 Kaz Kojima <kkojima@gcc.gnu.org>
4223 * config/sh/sh.md (addsi3_scr): Handle reg overlap of operands[0] and
4225 (*addsi3): Add another insn_and_split variant for reload.
4227 2015-11-16 Richard Biener <rguenther@suse.de>
4230 * cfgexpand.c (pass_expand::execute): Destroy the edge
4231 redirection var map before setting RTL CFG hooks.
4233 2015-11-16 Alan Lawrence <alan.lawrence@arm.com>
4235 * config/i386/sse.md (reduc_splus_v8df): Rename to...
4236 (reduc_plus_scal_v8df): ...here; reduce to temp and extract scalar.
4238 (reduc_splus_v4df): Rename to...
4239 (reduc_plus_scal_v4df): ...here; reduce to temp and extract scalar.
4241 (reduc_splus_v2df): Rename to...
4242 (reduc_plus_scal_v2df): ...here; reduce to temp and extract scalar.
4244 (reduc_splus_v16sf): Rename to...
4245 (reduc_plus_scal_v16sf): ...here; reduce to temp and extract scalar.
4247 (reduc_splus_v8sf): Rename to...
4248 (reduc_plus_scal_v8sf): ...here; reduce to temp and extract scalar.
4250 (reduc_splus_v4sf): Rename to...
4251 (reduc_plus_scal_v4sf): ...here; reduce to temp and extract scalar.
4253 (reduc_<code>_<mode>, all 3 variants): Rename each to...
4254 (reduc_<code>_scal_<mode>): ...here; reduce to temp and extract scalar.
4256 (reduc_umin_v8hf): Rename to...
4257 (reduc_umin_scal_v8hf): ...here; reduce to temp and extract scalar.
4259 2015-11-16 Kirill Yukhin <kirill.yukhin@intel.com>
4261 * omp-low.c (pass_omp_simd_clone::gate): If target allows - call
4262 without additional conditions.
4263 * doc/extend.texi (@item simd): New.
4265 2015-11-16 Tom de Vries <tom@codesourcery.com>
4267 * passes.c (first_pass_instance): Remove variable.
4268 (execute_todo): Remove setting of first_pass_instance.
4269 * tree-pass.h (first_pass_instance): Remove declaration.
4271 2015-11-16 Tom de Vries <tom@codesourcery.com>
4273 * passes.def: Add arg to pass_ccp pass instantiation.
4274 * tree-ssa-ccp.c (ccp_finalize): Add param nonzero_p. Use nonzero_p
4275 instead of first_pass_instance.
4276 (do_ssa_ccp): Add and handle param nonzero_p.
4277 (pass_ccp::pass_ccp): Initialize nonzero_p.
4278 (pass_ccp::set_pass_param): New member function. Set nonzero_p.
4279 (pass_ccp::execute): Call do_ssa_ccp with extra arg.
4280 (pass_ccp::nonzero_p): New private member.
4282 2015-11-16 Tom de Vries <tom@codesourcery.com>
4284 * passes.def: Add arg to pass_object_sizes pass instantiation.
4285 * tree-object-size.c (pass_object_sizes::pass_object_sizes): Initialize
4287 (pass_object_sizes::set_pass_param): New member function. Set
4289 (pass_object_sizes::insert_min_max_p): New private member.
4290 (pass_object_sizes::execute): Use insert_min_max_p instead of
4291 first_pass_instance.
4293 2015-11-16 Tom de Vries <tom@codesourcery.com>
4295 * passes.def: Add arg to pass_dominator pass instantiation.
4296 * tree-pass.h (first_pass_instance): Remove pass_dominator-related bit
4298 * tree-ssa-dom.c (pass_dominator::pass_dominator): Initialize
4299 may_peel_loop_headers_p.
4300 (pass_dominator::set_pass_param): New member function. Set
4301 may_peel_loop_headers_p.
4302 (pass_dominator::may_peel_loop_headers_p): New private member.
4303 (pass_dominator::execute): Use may_peel_loop_headers_p instead of
4304 first_pass_instance.
4306 2015-11-16 Tom de Vries <tom@codesourcery.com>
4308 * passes.def: Add arg to pass_reassoc pass instantiation.
4309 * tree-ssa-reassoc.c (reassoc_insert_powi_p): New static variable.
4310 (acceptable_pow_call, reassociate_bb): Use reassoc_insert_powi_p instead
4311 of first_pass_instance.
4312 (execute_reassoc): Add and handle insert_powi_p parameter.
4313 (pass_reassoc::insert_powi_p): New private member.
4314 (pass_reassoc::pass_reassoc): Initialize insert_powi_p.
4315 (pass_reassoc::set_pass_param): New member function. Set insert_powi_p.
4316 (pass_reassoc::execute): Call execute_reassoc with extra arg.
4318 2015-11-16 Tom de Vries <tom@codesourcery.com>
4320 * gdbhooks.py (class PassNames): Handle extra arg NEXT_PASS argument.
4321 * gen-pass-instances.awk (handle_line): Same.
4322 * pass_manager.h (class pass_manager): Define and undefine
4324 * passes.c (opt_pass::set_pass_param): New function.
4325 (pass_manager::pass_manager): Define and undefine NEXT_PASS_WITH_ARG.
4326 * passes.def: Add extra arg to NEXT_PASS (pass_vrp).
4327 * tree-pass.h (gimple_opt::set_pass_param): Declare.
4328 * tree-vrp.c (vrp_finalize, execute_vrp): Add and handle
4329 warn_array_bounds_p parameter.
4330 (pass_vrp::pass_vrp): Initialize warn_array_bounds_p.
4331 (pass_vrp::set_pass_param): New function.
4332 (pass_vrp::execute): Add warn_array_bounds_p arg to execute_vrp call.
4333 (pass_vrp::warn_array_bounds_p): New private member.
4335 2015-11-16 Eric Botcazou <ebotcazou@adacore.com>
4337 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Adjust.
4338 (output_probe_stack_range): Rotate the loop and simplify.
4340 2015-11-16 Eric Botcazou <ebotcazou@adacore.com>
4342 * config/rs6000/rs6000.c (rs6000_emit_probe_stack_rang): Adjust.
4343 (output_probe_stack_range): Rotate the loop and simplify.
4345 2015-11-16 Eric Botcazou <ebotcazou@adacore.com>
4347 * config/i386/i386.c (ix86_adjust_stack_and_probe): Adjust and use
4348 an lea instruction when possible.
4349 (output_adjust_stack_and_probe): Rotate the loop and simplify.
4350 (ix86_emit_probe_stack_range): Adjust.
4351 (output_probe_stack_range): Rotate the loop and simplify.
4353 2015-11-16 Christian Bruel <christian.bruel@st.com>
4355 * config/arm/arm_neon.h: Remove #ifndef check on __ARM_NEON.
4356 Replace #ifdef __ARM_FEATURE_CRYPTO, __ARM_FEATURE_FMA, __ARM_FP
4357 with appropriate pragma GCC target.
4359 2015-11-16 Christian Bruel <christian.bruel@st.com>
4362 * config/arm/arm-c.c (arm_cpu_builtins): Conditionally set and reset
4363 __ARM_FEATURE_FMA and __ARM_NEON_FP, __ARM_FP.
4365 2015-11-16 James Greenhalgh <james.greenhalgh@arm.com>
4367 * config/aarch64/aarch64.c (cortexa57_branch_costs): New.
4368 (cortexa57_tunings): Use it.
4370 2015-11-16 Christian Bruel <christian.bruel@st.com>
4373 * config/arm/arm-c.c (arm_cpu_builtins): Set or reset
4374 __ARM_FEATURE_CRYPTO, __VFP_FP__, __ARM_NEON__
4375 (arm_pragma_target_parse): Change check for arm_cpu_builtins.
4377 * config/arm/arm.c (arm_can_inline_p): Check FPUs.
4378 (arm_valid_target_attribute_rec): Handle -mfpu attribute target.
4379 * doc/invoke.texi (-mfpu=): Mention attribute and pragma.
4380 * doc/extend.texi (-mfpu=): Describe attribute.
4382 2015-11-16 Christian Bruel <christian.bruel@st.com>
4385 * config/arm/arm-protos.h (arm_init_neon_builtins): Declare.
4386 * config/arm/arm.c (arm_valid_target_attribute_tree): Call
4387 arm_init_neon_builtins.
4388 * config/arm/arm-builtins.c (arm_init_neon_builtins): Split into...
4389 (arm_init_neon_builtins_internal)
4390 (arm_init_crypto_builtins_internal):
4391 Test and set neon_set_p, neon_crypto_set_p.
4392 (neon_set_p, neon_crypto_set_p): New static booleans.
4394 2015-11-16 Christian Bruel <christian.bruel@st.com>
4397 * config/arm/arm.c (arm_fpu_desc): Remove.
4398 (all_fpus): Make global.
4399 (arm_option_override): Use FPU TARGET accessors.
4400 (arm_declare_function_name): Likewise.
4401 * config/arm/arm.h (TARGET_VFP, TARGET_VFPD32, TARGET_VFP5)
4402 (TARGET_VFP_SINGLE, TARGET_VFP_DOUBLE, TARGET_NEON_FP16)
4403 (TARGET_FP16, TARGET_FMA, TARGET_FPU_ARMV8, TARGET_CRYPTO)
4404 (TARGET_NEON): Likewise.
4405 (all_fpus): Declare extern.
4406 (TARGET_FPU_NAME, TARGET_FPU_MODEL, TARGET_FPU_REV)
4407 (TARGET_FPU_REGS, TARGET_FPU_FEATURES): Define all_fpus accessors.
4409 2015-11-15 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4412 * sdbout.c: Include emit-rtl.h and function.h.
4414 2015-11-15 Gerald Pfeifer <gerald@pfeifer.com>
4416 * config/i386/freebsd.h (SUBTARGET32_DEFAULT_CPU): Change to i586.
4417 Remove support for FreeBSD 5 and earlier.
4419 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4421 * configure: Regenerate.
4422 * configure.ac: Always define ENABLE_OFFLOADING.
4423 * cgraph.c (cgraph_node::create): Adjust.
4424 * gcc.c (process_command): Likewise.
4425 * omp-low.c (create_omp_child_function): Likewise.
4426 (expand_omp_target): Likewise.
4427 * varpool.c (varpool_node::get_create): Likewise.
4429 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4431 * defaults.h (EH_RETURN_HANDLER_RTX): New default definition.
4432 * df-scan.c (df_get_exit_block_use_set): Adjust.
4433 * except.c (expand_eh_return): Likewise.
4435 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4437 * config/i386/i386.h (TARGET_PECOFF): Remove define.
4438 * defaults.h (TARGET_PECOFF): New default definition.
4439 * varasm.c (handle_vtv_comdat_section): Adjust.
4441 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4443 * defaults.h: New definition of SDB_DEBUGGING_INFO.
4444 * doc/tm.texi: Regenerate.
4445 * doc/tm.texi.in: Adjust.
4446 * final.c (rest_of_clean_state): Remove check if
4447 SDB_DEBUGGING_INFO is defined.
4448 * function.c (number_blocks): Likewise.
4449 * output.h: Likewise.
4450 * sdbout.c: Likewise.
4451 * toplev.c (process_options): Likewise.
4453 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4455 * gsyms.h (enum sdb_type): Remove code for EXTENDED_SDB_BASIC_TYPES.
4456 (enum sdb_masks): Likewise.
4457 * sdbout.c (plain_type_1): Likewise.
4458 * system.h: Poison EXTENDED_SDB_BASIC_TYPES macro.
4460 2015-11-14 Jakub Jelinek <jakub@redhat.com>
4462 * omp-low.c (lower_omp_ordered): Add argument to GOMP_SMD_ORDERED_*
4463 internal calls - 0 if ordered simd and 1 for ordered threads simd.
4464 * tree-vectorizer.c (adjust_simduid_builtins): If GOMP_SIMD_ORDERED_*
4465 argument is 1, replace it with GOMP_ordered_* call instead of removing
4468 2015-11-13 Rich Felker <dalias@libc.org>
4470 * config/sh/sh.md (symGOT_load): Suppress __stack_chk_guard
4471 address loading hack for FDPIC targets.
4473 2015-11-13 Ajit Agarwal <ajitkum@xilinx.com>
4474 Jeff Law <law@redhat.com>
4476 * Makefile.in (OBJS): Add gimple-ssa-split-paths.o
4477 * common.opt (-fsplit-paths): New flag controlling path splitting.
4478 * doc/invoke.texi (fsplit-paths): Document.
4479 * opts.c (default_options_table): Add -fsplit-paths to -O2.
4480 * passes.def: Add split_paths pass.
4481 * timevar.def (TV_SPLIT_PATHS): New timevar.
4482 * tracer.c: Include "tracer.h"
4483 (ignore_bb_p): No longer static.
4484 (transform_duplicate): New function, broken out of tail_duplicate.
4485 (tail_duplicate): Use transform_duplicate.
4486 * tracer.h (ignore_bb_p): Declare
4487 (transform_duplicate): Likewise.
4488 * tree-pass.h (make_pass_split_paths): Declare.
4489 * gimple-ssa-split-paths.c: New file.
4491 2015-11-13 Kai Tietz <ktietz70@googlemail.com>
4492 Marek Polacek <polacek@redhat.com>
4493 Jason Merrill <jason@redhat.com>
4495 * convert.c (maybe_fold_build1_loc): New.
4496 (maybe_fold_build2_loc): New.
4497 (convert_to_pointer_1): Split out from convert_to_pointer.
4498 (convert_to_pointer_nofold): New.
4499 (convert_to_real_1): Split out from convert_to_real.
4500 (convert_to_real_nofold): New.
4501 (convert_to_integer_1): Split out from convert_to_integer.
4502 (convert_to_integer_nofold): New.
4503 (convert_to_complex_1): Split out from convert_to_complex.
4504 (convert_to_complex_nofold): New.
4505 * convert.h: Declare new functions.
4506 * tree-complex.c (create_one_component_var): Break up line to
4507 avoid sequence point issues.
4509 2015-11-13 Jason Merrill <jason@redhat.com>
4511 * fold-const.c (fold_convert_const): Fold changing cv-quals on
4514 * hash-map.h (hash_map::empty): New.
4516 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
4518 * omp-low.c (scan_sharing_clauses): Accept INDEPENDENT, AUTO & SEQ.
4519 (oacc_loop_fixed_partitions): Correct return type to bool.
4520 (oacc_loop_auto_partitions): New.
4521 (oacc_loop_partition): Take mask argument, call
4522 oacc_loop_auto_partitions.
4523 (execute_oacc_device_lower): Provide mask to oacc_loop_partition.
4525 2015-11-13 Michael Meissner <meissner@linux.vnet.ibm.com>
4527 * config/rs6000/constraints.md (we constraint): New constraint for
4528 64-bit power9 vector support.
4529 (wL constraint): New constraint for the element in a vector that
4530 can be addressed by the MFVSRLD instruction.
4532 * config/rs6000/rs6000-protos.h (convert_float128_to_int): Add
4534 (convert_int_to_float128): Likewise.
4535 (rs6000_generate_compare): Add support for ISA 3.0 (power9)
4536 hardware support for IEEE 128-bit floating point.
4537 (rs6000_expand_float128_convert): Likewise.
4538 (convert_float128_to_int): Likewise.
4539 (convert_int_to_float128): Likewise.
4541 * config/rs6000/rs6000.md (UNSPEC_ROUND_TO_ODD): New unspecs for
4542 ISA 3.0 hardware IEEE 128-bit floating point.
4543 (UNSPEC_IEEE128_MOVE): Likewise.
4544 (UNSPEC_IEEE128_CONVERT): Likewise.
4545 (FMA_F): Add support for IEEE 128-bit floating point hardware support.
4546 (Ff): Add support for DImode.
4548 (any_fix code iterator): New and updated iterators for IEEE
4549 128-bit floating point hardware support.
4550 (any_float code iterator): Likewise.
4551 (s code attribute): Likewise.
4552 (su code attribute): Likewise.
4553 (az code attribute): Likewise.
4554 (uns code attribute): Likewise.
4555 (neg<mode>2, FLOAT128 iterator): Add support for IEEE 128-bit
4556 floating point hardware support.
4557 (abs<mode>2, FLOAT128 iterator): Likewise.
4558 (add<mode>3, IEEE128 iterator): New insns for IEEE 128-bit
4559 floating point hardware.
4560 (sub<mode>3, IEEE128 iterator): Likewise.
4561 (mul<mode>3, IEEE128 iterator): Likewise.
4562 (div<mode>3, IEEE128 iterator): Likewise.
4563 (copysign<mode>3, IEEE128 iterator): Likewise.
4564 (sqrt<mode>2, IEEE128 iterator): Likewise.
4565 (neg<mode>2, IEEE128 iterator): Likewise.
4566 (abs<mode>2, IEEE128 iterator): Likewise.
4567 (nabs<mode>2, IEEE128 iterator): Likewise.
4568 (fma<mode>4_hw, IEEE128 iterator): Likewise.
4569 (fms<mode>4_hw, IEEE128 iterator): Likewise.
4570 (nfma<mode>4_hw, IEEE128 iterator): Likewise.
4571 (nfms<mode>4_hw, IEEE128 iterator): Likewise.
4572 (extend<SFDF:mode><IEEE128:mode>2_hw): Likewise.
4573 (trunc<mode>df2_hw, IEEE128 iterator): Likewise.
4574 (trunc<mode>sf2_hw, IEEE128 iterator): Likewise.
4575 (fix_fixuns code attribute): Likewise.
4576 (float_floatuns code attribute): Likewise.
4577 (fix<uns>_<mode>si2_hw): Likewise.
4578 (fix<uns>_<mode>di2_hw): Likewise.
4579 (float<uns>_<mode>si2_hw): Likewise.
4580 (float<uns>_<mode>di2_hw): Likewise.
4581 (xscvqp<su>wz_<mode>): Likewise.
4582 (xscvqp<su>dz_<mode>): Likewise.
4583 (xscv<su>dqp_<mode): Likewise.
4584 (ieee128_mfvsrd): Likewise.
4585 (ieee128_mfvsrwz): Likewise.
4586 (ieee128_mtvsrw): Likewise.
4587 (ieee128_mtvsrd): Likewise.
4588 (trunc<mode>df2_odd): Likewise.
4589 (cmp<mode>_h): Likewise.
4590 (128-bit GPR splitters): Don't split a 128-bit move that is a
4591 direct move between GPR and vector registers using ISA 3.0 direct
4593 (maddld4): Add support for the ISA 3.0 integer multiply-add
4596 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add ISA 3.0
4598 (rs6000_init_hard_regno_mode_ok): If ISA 3.0 and 64-bit, enable we
4599 constraint. Disable the VSX<->GPR direct move helpers if we have
4600 the MFVSRLD and MTVSRDD instructions.
4601 (rs6000_secondary_reload_simple_move): Add support for doing
4602 vector direct moves directly without additional scratch registers
4603 if we have ISA 3.0 instructions.
4604 (rs6000_secondary_reload_direct_move): Update comments.
4605 (rs6000_output_move_128bit): Add support for ISA 3.0 vector
4608 * config/rs6000/vsx.md (vsx_mov<mode>): Add support for ISA 3.0
4609 direct move instructions.
4610 (vsx_movti_64bit): Likewise.
4611 (vsx_extract_<mode>): Likewise.
4613 * config/rs6000/rs6000.h (VECTOR_ELEMENT_MFVSRLD_64BIT): New
4614 macros for ISA 3.0 direct move instructions.
4615 (TARGET_DIRECT_MOVE_128): Likewise.
4616 (TARGET_MADDLD): Add support for the ISA 3.0 integer multiply-add
4619 * doc/md.texi (RS/6000 constraints): Document we, wF, wG, wL
4620 constraints. Update wa documentation to say not to use %x<n> on
4621 instructions that only take Altivec registers.
4623 2015-11-13 David Malcolm <dmalcolm@redhat.com>
4625 * Makefile.in (OBJS): Add gcc-rich-location.o.
4626 * diagnostic.c (diagnostic_append_note): Pass line_table to
4628 (emit_diagnostic): Likewise.
4630 (inform_n): Likewise.
4631 (warning): Likewise.
4632 (warning_at): Likewise.
4633 (warning_n): Likewise.
4634 (pedwarn): Likewise.
4635 (permerror): Likewise.
4637 (error_n): Likewise.
4638 (error_at): Likewise.
4640 (fatal_error): Likewise.
4641 (internal_error): Likewise.
4642 (internal_error_no_backtrace): Likewise.
4643 (source_range::debug): Likewise.
4644 * gcc-rich-location.c: New file.
4645 * gcc-rich-location.h: New file.
4646 * genmatch.c (fatal_at): Pass line_table to rich_location ctor.
4647 (warning_at): Likewise.
4648 * gimple.h (gimple_set_block): Use set_block function.
4649 * input.c (dump_line_table_statistics): Dump stats on how many
4650 ranges were optimized vs how many needed ad-hoc table.
4651 (write_digit_row): Add "map" param; use its range_bits
4652 to calculate the per-character offset.
4653 (dump_location_info): Print the range and column bits for each
4654 ordinary map. Use the range bits to calculate the per-character
4655 offset. Pass the map as a new param to the various calls to
4656 write_digit_row. Eliminate uses of
4657 ORDINARY_MAP_NUMBER_OF_COLUMN_BITS.
4658 * print-tree.c (print_node): Print any source range information.
4659 * rtl-error.c (diagnostic_for_asm): Likewise.
4660 * toplev.c (general_init): Initialize line_table's
4662 * tree-cfg.c (move_block_to_fn): Likewise.
4663 (move_block_to_fn): Likewise.
4664 * tree-inline.c (copy_phis_for_bb): Likewise.
4665 * tree.c (tree_set_block): Likewise.
4666 (get_pure_location): New function.
4667 (set_source_range): New functions.
4668 (set_block): New function.
4669 (set_source_range): New functions.
4670 * tree.h (CAN_HAVE_RANGE_P): New.
4671 (EXPR_LOCATION_RANGE): New.
4672 (EXPR_HAS_RANGE): New.
4673 (get_expr_source_range): New inline function.
4674 (DECL_LOCATION_RANGE): New.
4675 (set_source_range): New decls.
4676 (get_decl_source_range): New inline function.
4678 2015-11-13 Alan Lawrence <alan.lawrence@arm.com>
4680 PR tree-optimization/67682
4681 * tree-vect-slp.c (vect_split_slp_store_group): New.
4682 (vect_analyze_slp_instance): During basic block SLP, recurse on
4683 subgroups if vect_build_slp_tree fails after 1st vector.
4685 2015-11-13 Christian Bruel <christian.bruel@st.com>
4688 * config/arm/arm.c (arm_option_override): Move NEON check...
4689 (arm_option_check_internal): here
4690 (arm_file_start): Move .fpu print...
4691 (arm_declare_function_name): here
4692 (arm_option_print): Dump current fpu name.
4693 * config/arm/arm.opt (arm_fpu_index): Mark Save.
4695 2015-11-13 Segher Boessenkool <segher@kernel.crashing.org>
4696 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4698 * combine.c (subst): Don't substitute or simplify when
4699 handling register-wise widening multiply.
4700 (force_to_mode): Likewise.
4702 2015-11-13 Richard Sandiford <richard.sandiford@arm.com>
4704 PR tree-optimization/68264
4705 * tree-call-cdce.c (gen_one_condition): Update commentary.
4706 (gen_conditions_for_pow_int_base): Invert the sense of the tests
4707 passed to gen_one_condition.
4708 (gen_conditions_for_domain): Likewise. Use unordered comparisons.
4709 (shrink_wrap_one_built_in_call): Invert the sense of the tests,
4710 using EDGE_FALSE_VALUE for edges to the call block and
4711 EDGE_TRUE_VALUE for the others.
4713 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
4715 * config/nvptx/nvptx.c (nvptx_generate_vector_shuffle): Deal with
4718 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
4720 * gimplify.c (oacc_default_clause): Use inform for enclosing scope.
4722 2015-11-13 Tom de Vries <tom@codesourcery.com>
4724 * gen-pass-instances.awk (handle_line): Rename prefix_len var to
4727 2015-11-13 Tom de Vries <tom@codesourcery.com>
4729 * gen-pass-instances.awk (handle_line): Add args_str variable.
4731 2015-11-13 Martin Liska <mliska@suse.cz>
4733 * graphite-poly.c (free_scop): Release scop->drs vector.
4734 * graphite-scop-detection.c (scop_detection::harmful_stmt_in_region):
4736 (try_generate_gimple_bb): Use vNULL as a default initialization
4739 2015-11-13 Martin Liska <mliska@suse.cz>
4742 * ipa-icf.c (sem_item_optimizer::traverse_congruence_split):
4743 Replace array initialization (using a variable post-increment)
4744 that possible triggers multiple unsequenced modifications
4745 with a pair of pushes to a vector.
4747 2015-11-13 Richard Biener <rguenther@suse.de>
4749 PR tree-optimization/68306
4750 * tree-vect-data-refs.c (verify_data_ref_alignment): Move
4751 loop related checks ...
4752 (vect_verify_datarefs_alignment): ... here.
4753 (vect_slp_analyze_and_verify_node_alignment): Compute and
4754 verify alignment of the single DR that it matters.
4755 * tree-vect-stmts.c (vectorizable_store): Add an assert.
4756 (vectorizable_load): Add a comment.
4757 * tree-vect-slp.c (vect_analyze_slp_cost_1): Fix DR used
4758 for determining load cost.
4760 2015-11-13 Ilya Enkovich <enkovich.gnu@gmail.com>
4762 * tree-vect-loop.c (vect_determine_vectorization_factor): Check
4763 mix of boolean and integer vectors in a single statement.
4764 * tree-vect-slp.c (vect_mask_constant_operand_p): New.
4765 (vect_get_constant_vectors): Use vect_mask_constant_operand_p to
4766 determine constant type.
4767 * tree-vect-stmts.c (vectorizable_comparison): Provide vectype
4768 for loop invariants.
4770 2015-11-13 Alan Hayward <alan.hayward@arm.com>
4772 PR tree-optimization/66558
4773 * tree-vect-loop.c (is_integer_induction):Add.
4774 (vectorizable_reduction): Add integer induction checks.
4776 2015-11-13 Christophe Lyon <christophe.lyon@linaro.org>
4778 Revert [ARM] Remove neon-testgen.ml and generated tests.
4780 2015-11-12 Christophe Lyon <christophe.lyon@linaro.org>
4782 [ARM] Remove neon-testgen.ml and generated tests.
4784 * config/arm/neon-testgen.ml: Remove.
4786 2015-11-13 Richard Biener <rguenther@suse.de>
4788 * tree-vect-loop.c (vect_analyze_loop_2): Add fatal parameter.
4789 Signal fatal failure if early checks fail.
4790 (vect_analyze_loop): If vect_analyze_loop_2 fails fatally
4791 do not bother testing further vector sizes.
4793 2015-11-13 Uros Bizjak <ubizjak@gmail.com>
4795 * config/i386/predicates.md (misaligned_operand): Return true if
4796 operand is aligned to less than its natural alignmnet.
4798 2015-11-13 Ilya Enkovich <enkovich.gnu@gmail.com>
4800 * doc/md.texi (vec_cmp@var{m}@var{n}): New item.
4801 (vec_cmpu@var{m}@var{n}): New item.
4802 (vcond@var{m}@var{n}): Specify comparison is signed.
4803 (vcondu@var{m}@var{n}): New item.
4804 (vcond_mask_@var{m}@var{n}): New item.
4805 (maskload@var{m}@var{n}): New item.
4806 (maskstore@var{m}@var{n}): New item.
4808 2015-11-13 Ilya Enkovich <enkovich.gnu@gmail.com>
4810 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
4811 types of stored value and storage are compatible.
4813 2015-11-13 Andris Pavenis <andris.pavenis@iki.fi>
4815 * gcc.c (POST_LINK_SPEC): Define if not already defined.
4816 (LINK_COMMAND_SPEC): Use post_link.
4817 (post_link_spec): New, initialize to POST_LINK_SPEC.
4818 (post_link): Initialize new static spec.
4819 * doc/tm.texi.in (POST_LINK_SPEC): Document.
4820 * doc/tm.texi: Regenerated.
4822 2015-11-13 David Malcolm <dmalcolm@redhat.com>
4825 * Makefile.in (GCC_OBJS): Add spellcheck.o.
4826 (OBJS): Add spellcheck-tree.o.
4827 * gcc.c: Include "spellcheck.h".
4828 (suggest_option): New function.
4829 (driver::handle_unrecognized_options): Call suggest_option to
4830 provide a hint about misspelled options.
4831 * spellcheck.c: Update file comment.
4832 (levenshtein_distance): Convert 4-param implementation from static
4833 to extern scope. Remove note about unit tests from leading
4834 comment for const char * implementation. Move tree
4835 implementation to...
4836 * spellcheck-tree.c: New file.
4837 * spellcheck.h (levenshtein_distance): Add 4-param decl.
4839 2015-11-13 David Malcolm <dmalcolm@redhat.com>
4841 * Makefile.in (OBJS): Add spellcheck.o.
4842 * spellcheck.c: New file.
4843 * spellcheck.h: New file.
4845 2015-11-13 James Bowman <james.bowman@ftdichip.com>
4847 * config/ft32/ft32.md (*sne): New insn pattern.
4849 2015-11-12 Brad Lucier <lucier@math.purdue.edu>
4851 * cprop.c (is_too_expensive): Remove.
4853 (one_cprop_pass): Call gcse_or_cprop_is_too_expensive, not
4855 * gcse.h (gcse_or_cprop_is_too_expensive): Declare.
4856 * gcse.c (is_too_expensive): Rename to ...
4857 (gcse_or_cprop_is_too_expensive): ... this.
4858 Expand warning to add required size of max-gcse-memory.
4859 (one_pre_gcse_pass): Use it.
4860 (one_code_hoisting_pass): Use it.
4861 * params.def (max-gcse-memory): Increase from 50MB to 128MB.
4863 2015-11-12 James Norris <jnorris@codesourcery.com>
4864 Joseph Myers <joseph@codesourcery.com>
4866 * gimple-pretty-print.c (dump_gimple_omp_target): Handle
4867 GF_OMP_TARGET_KIND_OACC_DECLARE.
4868 * gimple.h (enum gf_mask): Add GF_OMP_TARGET_KIND_OACC_DECLARE.
4869 (is_gomple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_DECLARE.
4870 * gimplify.c (oacc_declare_returns): New.
4871 (gimplify_bind_expr): Prepend 'exit' stmt to cleanup.
4872 (device_resident_p): New function.
4873 (oacc_default_clause): Handle device_resident clause.
4874 (gimplify_oacc_declare_1, gimplify_oacc_declare): New functions.
4875 (gimplify_expr): Handle OACC_DECLARE.
4876 * omp-builtins.def (BUILT_IN_GOACC_DECLARE): New builtin.
4877 * omp-low.c (expand_omp_target): Handle
4878 GF_OMP_TARGET_KIND_OACC_DECLARE and BUILTIN_GOACC_DECLARE.
4879 (build_omp_regions_1): Handlde GF_OMP_TARGET_KIND_OACC_DECLARE.
4880 (lower_omp_target): Handle GF_OMP_TARGET_KIND_OACC_DECLARE,
4881 GOMP_MAP_DEVICE_RESIDENT and GOMP_MAP_LINK.
4882 (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_OACC_DECLARE.
4883 * tree-pretty-print.c (dump_omp_clause): Handle GOMP_MAP_LINK and
4884 GOMP_MAP_DEVICE_RESIDENT.
4886 2015-11-12 Christophe Lyon <christophe.lyon@linaro.org>
4888 [ARM] Remove neon-testgen.ml and generated tests.
4890 * config/arm/neon-testgen.ml: Remove.
4892 2015-11-12 Jim Wilson <jim.wilson@linaro.org>
4894 * config/aarch64/aarch64-cores.def (qdf24xx): New.
4895 * config/aarch64/aarch64-tune.md: Regenerated.
4896 * config/arm/arm-cores.def (qdf24xx): New.
4897 * config/arm/arm-tables.opt, config/arm/arm-tune.md: Regenerated.
4898 * config/arm/bpabi.h (BE8_LINK_SPEC): Add qdf24xx support.
4899 * doc/invoke.texi (AArch64 Options/-mtune): Add "qdf24xx".
4900 (ARM Options/-mtune): Likewise.
4902 2015-11-12 Martin Liska <mliska@suse.cz>
4904 * config/i386/i386.c (ix86_valid_target_attribute_p):
4905 Finalize options at the of the function.
4906 * gcc.c (driver_get_configure_time_options): Call newly
4907 introduced init_opts_obstack.
4908 * lto-wrapper.c (main): Likewise.
4909 * opts.c (init_opts_obstack): New function.
4910 (init_options_struct): Call newly introduced init_opts_obstack.
4911 * opts.h (init_options_struct): Declare.
4913 2015-11-12 Martin Liska <mliska@suse.cz>
4916 * ipa-icf.c (void sem_item::set_hash): New function.
4917 (sem_function::get_hash): Use renamed m_hash member variable.
4918 (sem_item::update_hash_by_addr_refs): Utilize get_hash.
4919 (sem_item::update_hash_by_local_refs): Likewise.
4920 (sem_variable::get_hash): Use renamed m_hash member variable.
4921 (sem_item_optimizer::update_hash_by_addr_refs): Utilize get_hash.
4922 (sem_item_optimizer::build_hash_based_classes): Utilize set_hash.
4923 (sem_item_optimizer::build_graph): As the hash value of an item
4924 is lazy initialized, force the calculation.
4925 * ipa-icf.h (set_hash): Declare new function and rename hash member
4928 2015-11-12 Richard Biener <rguenther@suse.de>
4930 * tree-vectorizer.h (vect_slp_analyze_data_ref_dependences):
4931 Rename to vect_slp_analyze_instance_dependence.
4932 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
4933 Remove WAR special-case.
4934 (vect_slp_analyze_node_dependences): Instead add more specific
4935 code here, not relying on other instances being vectorized.
4936 (vect_slp_analyze_instance_dependence): Adjust accordingly.
4937 * tree-vect-slp.c (vect_build_slp_tree_1): Remove excessive
4938 vertical space in dump files.
4939 (vect_print_slp_tree): Likewise.
4940 (vect_analyze_slp_instance): Dump a header for the final SLP tree.
4941 (vect_slp_analyze_bb_1): Delay computing relevant stmts and
4942 not vectorized stmts until after dependence analysis removed
4943 instances. Merge alignment and dependence checks.
4944 * tree-vectorizer.c (pass_slp_vectorize::execute): Clear visited
4947 2015-11-12 Evandro Menezes <e.menezes@samsung.com>
4949 * config/aarch64/aarch64-protos.h (tune_params): Add new members
4950 "max_case_values" and "cache_line_size".
4951 * config/aarch64/aarch64.c (aarch64_case_values_threshold): New
4953 (aarch64_override_options_internal): Tune heuristics based on new
4954 members in "tune_params".
4955 (TARGET_CASE_VALUES_THRESHOLD): Define macro.
4957 2015-11-12 Richard Biener <rguenther@suse.de>
4959 PR tree-optimization/68306
4960 * tree-vect-data-refs.c (verify_data_ref_alignment): Remove
4961 relevant and vectorizable checks here.
4962 (vect_verify_datarefs_alignment): Add relevant check here.
4964 2015-11-12 Nathan Sidwell <nathan@codesourcery.com>
4966 * gimplify.c (oacc_default_clause): New.
4967 (omp_notice_variable): Call it.
4969 2015-11-12 Ilya Enkovich <enkovich.gnu@gmail.com>
4971 PR tree-optimization/68305
4972 * tree-vect-slp.c (vect_get_constant_vectors): Support
4973 COND_EXPR with SSA_NAME as a condition.
4975 2015-11-12 Eric Botcazou <ebotcazou@adacore.com>
4977 * config/visium/visium-protos.h (notice_update_cc): Delete.
4978 (print_operand): Likewise.
4979 (print_operand_address): Likewise.
4981 2015-11-12 Uros Bizjak <ubizjak@gmail.com>
4983 * config/alpha/alpha.h (FUNCTION_VALUE, LIBCALL_VALUE,
4984 FUNCTION_VALUE_REGNO_P): Remove.
4985 * config/alpha/alpha-protos.h (function_value): Remove.
4986 * config/alpha/alpha.c (function_value): Rename to...
4987 (alpha_function_value_1): ... this. Make static.
4988 (alpha_function_value, alpha_libcall_value,
4989 alpha_function_value_regno_p): New functions.
4990 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
4991 TARGET_FUNCTION_VALUE_REGNO_P): Define.
4993 2015-11-12 Uros Bizjak <ubizjak@gmail.com>
4995 * config/alpha/alpha.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
4996 * config/alpha/alpha.c (alpha_memory_latency): Make static.
4997 (alpha_register_move_cost, alpha_memory_move_cost): New functions.
4998 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
5000 2015-11-12 Eric Botcazou <ebotcazou@adacore.com>
5003 * config/i386/i386.c (ix86_adjust_stack_and_probe): Remove obsolete
5004 assertion on the CFA register.
5006 2015-11-12 Ilya Enkovich <enkovich.gnu@gmail.com>
5008 * expr.c (do_store_flag): Expand vector comparison as
5009 VEC_COND_EXPR if vector comparison is not supported by target.
5011 2015-11-12 Renlin Li <renlin.li@arm.com>
5013 * config/arm/arm.md (addsi3_compare_op2): Make the order of
5014 assembly pattern consistent with constraint order.
5016 2015-11-12 Tom de Vries <tom@codesourcery.com>
5018 * gen-pass-instances.awk (handle_line): Simplify match regexp.
5020 2015-11-12 Tom de Vries <tom@codesourcery.com>
5022 * gen-pass-instances.awk (handle_line): Simplify init of
5025 2015-11-12 Tom de Vries <tom@codesourcery.com>
5027 * gen-pass-instances.awk (handle_line): Rename var where to
5030 2015-11-12 Claudiu Zissulescu <claziss@synopsys.com>
5032 * config/arc/arc.c (gen_compare_reg): Swap operands also when we
5033 do not expand to rtl.
5035 2015-11-12 Richard Biener <rguenther@suse.de>
5037 PR tree-optimization/58497
5038 * tree-vect-generic.c: Include gimplify.h.
5039 (tree_vec_extract): Lookup constant/constructor DEFs.
5040 (do_cond): Unshare cond.
5042 2015-11-12 Uros Bizjak <ubizjak@gmail.com>
5044 * config/i386/i386.c (ix86_legitimate_combined_insn): Reject
5045 combined insn if the alignment of vector mode memory operand
5046 is less than ssememalign.
5048 2015-11-12 Tom de Vries <tom@codesourcery.com>
5050 * gen-pass-instances.awk (handle_line): Print parentheses and
5051 pass_name explicitly.
5053 2015-11-12 Tom de Vries <tom@codesourcery.com>
5055 * gen-pass-instances.awk (handle_line): Add pass_num, prefix
5058 2015-11-12 Tom de Vries <tom@codesourcery.com>
5060 * gen-pass-instances.awk (handle_line): Add comments.
5062 2015-11-12 Tom de Vries <tom@codesourcery.com>
5064 * gen-pass-instances.awk (handle_line): Rename len_of_end to
5067 2015-11-12 Tom de Vries <tom@codesourcery.com>
5069 * gen-pass-instances.awk (handle_line): Add len_of_call variable.
5071 2015-11-12 Tom de Vries <tom@codesourcery.com>
5073 * gen-pass-instances.awk (handle_line): Restructure using early-out.
5075 2015-11-12 Tom de Vries <tom@codesourcery.com>
5077 * gen-pass-instances.awk (handle_line): Unify semicolon use.
5079 2015-11-12 Tom de Vries <tom@codesourcery.com>
5081 * gen-pass-instances.awk (handle_line): Remove unused var line_length.
5083 2015-11-12 Tom de Vries <tom@codesourcery.com>
5085 * gen-pass-instances.awk: Add emacs indent setting.
5087 2015-11-12 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
5089 * fold-const.c (fold_binary_loc) : Move Convert A/B/C to A/(B*C)
5091 Move Convert A/(B/C) to (A/B)*C to match.pd.
5092 Move Convert C1/(X*C2) into (C1/C2)/X to match.pd.
5093 Move Optimize (X & (-A)) / A where A is a power of 2, to
5094 X >> log2(A) to match.pd.
5096 * match.pd (rdiv (rdiv:s @0 @1) @2): New simplifier.
5097 (rdiv @0 (rdiv:s @1 @2)): New simplifier.
5098 (div (convert? (bit_and @0 INTEGER_CST@1)) INTEGER_CST@2):
5100 (rdiv REAL_CST@0 (mult @1 REAL_CST@2)): New simplifier.
5102 2015-11-12 Charles Baylis <charles.baylis@linaro.org>
5104 * config/arm/neon.md: (neon_vld2_lane<mode>): Remove unused max
5106 (neon_vst2_lane<mode>): Likewise.
5107 (neon_vld3_lane<mode>): Likewise.
5108 (neon_vst3_lane<mode>): Likewise.
5109 (neon_vld4_lane<mode>): Likewise.
5110 (neon_vst4_lane<mode>): Likewise.
5112 2015-11-11 Aditya Kumar <aditya.k7@samsung.com>
5113 Sebastian Pop <s.pop@samsung.com>
5115 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
5116 New member codegen_error
5117 (translate_isl_ast_for_loop): Remove call to single_succ_edge and
5119 (translate_isl_ast_node_user): Early return in case of error.
5120 (translate_isl_ast_to_gimple::translate_isl_ast): Same.
5121 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): New.
5122 (add_parameters_to_ivs_params): Remove macro.
5123 (graphite_regenerate_ast_isl): Add if_region pointer to region.
5124 * graphite-poly.c (new_poly_dr): Remove macro.
5126 (new_gimple_poly_bb): Same.
5127 (free_gimple_poly_bb): Same.
5128 (print_scop_params): Same.
5129 * graphite-poly.h (struct poly_dr): Same.
5130 (struct poly_bb): Add new_bb.
5131 (gbb_from_bb): Remove dead code.
5132 (pbb_from_bb): Same.
5133 * graphite-scop-detection.c (parameter_index_in_region_1): Same.
5134 (parameter_index_in_region): Same.
5135 (find_scop_parameters): Same.
5136 (build_cross_bb_scalars_def): New.
5137 (build_cross_bb_scalars_use): New.
5138 (graphite_find_cross_bb_scalar_vars): New
5139 (try_generate_gimple_bb): Reads and Writes.
5140 (build_alias_set): Move.
5141 (gather_bbs::before_dom_children): Gather bbs visited.
5142 (build_scops): call build_alias_set.
5143 * graphite-sese-to-poly.c (phi_arg_in_outermost_loop): Delete.
5144 (remove_simple_copy_phi): Delete.
5145 (remove_invariant_phi): Delete.
5146 (simple_copy_phi_p): Delete.
5147 (reduction_phi_p): Delete.
5148 (isl_id_for_dr): Remove unused param.
5149 (parameter_index_in_region_1): Remove macro usage.
5150 (set_scop_parameter_dim): Same.
5151 (add_param_constraints): Same.
5152 (add_conditions_to_constraints): Same
5153 (build_scop_iteration_domain): Same.
5154 (pdr_add_alias_set): Comment.
5155 (add_scalar_version_numbers): New.
5156 (build_poly_dr): ISL id.
5157 (build_scop_drs): Move.
5158 (build_poly_sr_1): Same.
5159 (insert_stmts): Remove.
5160 (build_poly_sr): New.
5161 (new_pbb_from_pbb): Delete.
5162 (insert_out_of_ssa_copy_on_edge): Delete.
5163 (create_zero_dim_array): Delete.
5164 (scalar_close_phi_node_p): Delete.
5165 (propagate_expr_outside_region): Delete.
5166 (rewrite_close_phi_out_of_ssa): Delete.
5167 (rewrite_phi_out_of_ssa): Delete.
5168 (rewrite_degenerate_phi): Delete.
5169 (rewrite_reductions_out_of_ssa): Delete.
5170 (rewrite_cross_bb_scalar_dependence): Delete.
5171 (handle_scalar_deps_crossing_scop_limits):
5172 (rewrite_cross_bb_scalar_deps): Delete.
5173 (build_poly_scop): Remove calls to out-of-ssa functions.
5174 * graphite.c (graphite_transform_loops): Early return in case of
5176 * sese.c (debug_rename_map_1): Delete.
5177 (debug_rename_map): Delete.
5178 (sese_record_loop): Remove macro.
5179 (build_sese_loop_nests): Same.
5180 (new_sese_info): Same.
5181 (free_sese_info): Same.
5182 (sese_insert_phis_for_liveouts):
5183 (is_loop_closed_ssa_use): New.
5184 (number_of_phi_nodes): New.
5185 (bb_contains_loop_close_phi_nodes): New.
5186 (bb_contains_loop_phi_nodes): New.
5187 (phi_uses_name): New.
5189 (get_rename): Add old_bb and loop_phi for more precise matching of
5191 (set_rename): Pass region.
5192 (later_of_the_two): New.
5193 (gsi_insert_earliest): New.
5194 (collect_all_ssa_names): New.
5195 (substitute_ssa_name): New.
5196 (rename_all_uses): New.
5197 (get_rename_from_scev): New.
5198 (rename_uses): Pass old_bb for more precise matching of exprs.
5199 (get_def_bb_for_const): New.
5200 (get_new_name): New.
5203 (copy_loop_phi_args): New.
5204 (copy_loop_phi_nodes): New.
5205 (get_loop_init_value): New.
5206 (find_init_value): New.
5207 (find_init_value_close_phi): New.
5208 (copy_loop_close_phi_args): New.
5209 (copy_loop_close_phi_nodes): New.
5210 (add_phi_arg_for_new_expr): New.
5211 (copy_cond_phi_args): New.
5212 (copy_cond_phi_nodes): New.
5213 (copy_phi_nodes): New.
5214 (should_copy_to_new_region): New.
5215 (set_rename_for_each_def): New.
5216 (graphite_copy_stmts_from_block): Early return in case of error.
5217 (copy_bb_and_scalar_dependences): Same.
5218 * sese.h (vec_find): New.
5219 (SESE_PARAMS): Delete.
5220 (SESE_LOOPS): Delete.
5221 (SESE_LOOP_NEST): Delete.
5222 (sese_contains_loop): Remove macro usage.
5223 (sese_nb_params): Same.
5224 (struct gimple_poly_bb): Added read_scalar_refs, write_scalar_refs.
5226 2015-11-11 Abderrazek Zaafrani <a.zaafrani@samsung.com>
5228 * graphite-sese-to-poly.c (build_scop_original_schedule): Call
5229 isl_union_map_add_map on every pbb->schedule.
5231 2015-11-11 Tom de Vries <tom@codesourcery.com>
5233 * tree-parloops.c (create_parallel_loop): Return void.
5235 2015-11-11 Tom de Vries <tom@codesourcery.com>
5237 * tree-parloops.c (transform_to_exit_first_loop_alt): Insert new exit
5238 block only when needed.
5240 2015-11-11 Uros Bizjak <ubizjak@gmail.com>
5242 * config/alpha/alpha-protos.h (print_operand): Remove.
5243 (print_operand_address): Remove.
5244 * config/alpha/alpha.h (PRINT_OPERAND): Remove.
5245 (PRINT_OPERAND_ADDRESS): Remove.
5246 (PRINT_OPERAND_PUNCT_VALID_P): Remove.
5247 * config/alpha/alpha.c (TARGET_PRINT_OPERAND): New hook define.
5248 (TARGET_PRINT_OPERAND_ADDRESS): New hook define.
5249 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): New hook define.
5250 (print_operand_address): Rename to...
5251 (alpha_print_operand_address): ...this and make static.
5252 (print_operand): Rename to...
5253 (alpha_print_operand): ...this and make static.
5254 (alpha_print_operand_punct_valid_p): New static function.
5256 2015-11-11 Richard Biener <rguenther@suse.de>
5258 * tree-vectorizer.h (vect_slp_analyze_and_verify_instance_alignment):
5260 (vect_analyze_data_refs_alignment): Make loop vect specific.
5261 (vect_verify_datarefs_alignment): Likewise.
5262 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependences):
5263 Add missing continue.
5264 (vect_compute_data_ref_alignment): Export.
5265 (vect_compute_data_refs_alignment): Merge into...
5266 (vect_analyze_data_refs_alignment): ... this.
5267 (verify_data_ref_alignment): Split out from ...
5268 (vect_verify_datarefs_alignment): ... here.
5269 (vect_slp_analyze_and_verify_node_alignment): New function.
5270 (vect_slp_analyze_and_verify_instance_alignment): Likewise.
5271 * tree-vect-slp.c (vect_supported_load_permutation_p): Remove
5272 misplaced checks on alignment.
5273 (vect_slp_analyze_bb_1): Add fatal output parameter. Do
5274 alignment analysis after SLP discovery and do it per instance.
5275 (vect_slp_bb): When vect_slp_analyze_bb_1 fatally failed do not
5276 bother to re-try using different vector sizes.
5278 2015-11-11 Nathan Sidwell <nathan@codesourcery.com>
5279 Cesar Philippidis <cesar@codesourcery.com>
5281 * gimplify.c (enum omp_region_type): Add ORT_ACC,
5282 ORT_ACC_DATA, ORT_ACC_PARALLEL, ORT_ACC_KERNELS. Adjust ORT_NONE.
5283 (gimple_add_tmp_var): Add ORT_ACC checks.
5284 (gimplify_var_or_parm_decl): Likewise.
5285 (omp_firstprivatize_variable): Likewise. Use ORT_TARGET_DATA as a mask.
5286 (omp_add_variable): Look in outer contexts for openacc and allow
5287 reductions with other sharing. Add ORT_ACC and ORT_TARGET_DATA checks.
5288 (omp_notice_variable, omp_is_private, omp_check_private): Add
5290 (gimplify_scan_omp_clauses: Treat ORT_ACC as ORT_WORKSHARE.
5291 Permit private openacc reductions.
5292 (gimplify_oacc_cache): Specify ORT_ACC.
5293 (gimplify_omp_workshare): Adjust OpenACC region types.
5294 (gimplify_omp_target_update): Likewise.
5295 * omp-low.c (scan_sharing_clauses): Remove Openacc firstprivate sorry.
5296 (lower-rec_input_clauses): Don't handle openacc firstprivate
5298 (lower_omp_target): Emit initializers for openacc firstprivate vars.
5300 2015-11-11 Eric Botcazou <ebotcazou@adacore.com>
5303 * ira.c (ira_setup_eliminable_regset): Do not necessarily create the
5304 frame pointer for stack checking if non-call exceptions aren't used.
5305 * config/i386/i386.c (ix86_finalize_stack_realign_flags): Likewise.
5307 2015-11-11 Segher Boessenkool <segher@kernel.crashing.org>
5309 * simplify-rtx.c (simplify_truncation): Simplify TRUNCATE of AND of
5312 2015-11-11 Martin Liska <mliska@suse.cz>
5313 Richard Biener <rguenther@suse.de>
5315 PR rtl-optimization/68287
5316 * lra-lives.c (lra_create_live_ranges_1): Reserve the right
5319 2015-11-11 Simon Dardis <simon.dardis@imgtec.com>
5321 * config/mips/mips.c (mips_breakable_sequence_p): New function.
5322 (mips_break_sequence): New function.
5323 (mips_reorg_process_insns): Use them. Use compact branches in selected
5326 2015-11-11 Alan Lawrence <alan.lawrence@arm.com>
5328 * fold-const.c (get_array_ctor_element_at_index): Fix whitespace, typo.
5330 2015-11-11 Jiong Wang <jiong.wang@arm.com>
5331 Jim Wilson <wilson@gcc.gnu.org>
5334 * config/arm/arm.md (neon_vector_mem_operand): Return FALSE if strict
5335 be true and eliminable registers mentioned.
5337 2015-11-11 Claudiu Zissulescu <claziss@synopsys.com>
5339 * common/config/arc/arc-common.c (arc_handle_option): Handle ARCv2
5341 * config/arc/arc-opts.h: Add ARCv2 CPUs.
5342 * config/arc/arc-protos.h (arc_secondary_reload_conv): Prototype.
5343 * config/arc/arc.c (arc_secondary_reload): Handle subreg (reg)
5344 situation, and store instructions with large offsets.
5345 (arc_secondary_reload_conv): New function.
5346 (arc_init): Add ARCv2 options.
5347 (arc_conditional_register_usage): Select the proper register usage
5348 for ARCv2 processors.
5349 (arc_handle_interrupt_attribute): ILINK2 is only valid for ARCv1
5351 (arc_compute_function_type): Likewise.
5352 (arc_print_operand): Handle new ARCv2 punctuation characters.
5353 (arc_return_in_memory): ARCv2 ABI returns in registers up to 16 bytes.
5354 (workaround_arc_anomaly, arc_asm_insn_p, arc_loop_hazard): New
5356 (arc_reorg, arc_hazard): Use it.
5357 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __HS__ and __EM__.
5358 (ASM_SPEC): Add ARCv2 options.
5359 (TARGET_NORM): ARC HS has norm instructions by default.
5360 (TARGET_OPTFPE): Use optimized floating point emulation for ARC HS.
5361 (TARGET_AT_DBR_CONDEXEC): Only for ARC600 family.
5362 (TARGET_EM, TARGET_HS, TARGET_V2, TARGET_MPYW, TARGET_MULTI): Define.
5363 (SIGNED_INT16, TARGET_MPY, TARGET_ARC700_MPY, TARGET_ANY_MPY):
5365 (TARGET_ARC600_FAMILY, TARGET_ARCOMPACT_FAMILY): Likewise.
5366 (TARGET_LP_WR_INTERLOCK): Likewise.
5368 (commutative_binary_mult_comparison_result_used, movsicc_insn)
5369 (mulsi3, mulsi3_600_lib, mulsidi3, mulsidi3_700, mulsi3_highpart)
5370 (umulsi3_highpart_i, umulsi3_highpart_int, umulsi3_highpart)
5371 (umulsidi3, umulsidi3_700, cstoresi4, simple_return, p_return_i):
5373 (mulhisi3, mulhisi3_imm, mulhisi3_reg, umulhisi3, umulhisi3_imm)
5374 (umulhisi3_reg, umulhisi3_reg, mulsi3_v2, nopv, bswapsi2)
5375 (prefetch, divsi3, udivsi3 modsi3, umodsi3, arcset, arcsetltu)
5376 (arcsetgeu, arcsethi, arcsetls, reload_*_load, reload_*_store)
5377 (extzvsi): New pattern.
5378 * config/arc/arc.opt: New ARCv2 options.
5379 * config/arc/arcEM.md: New file.
5380 * config/arc/arcHS.md: Likewise.
5381 * config/arc/constraints.md (C3p): New constraint, accepts 1 and 2
5383 (Cm2): A signed 9-bit integer constant constraint.
5384 (C62): An unsigned 6-bit integer constant constraint.
5385 (C16): A signed 16-bit integer constant constraint.
5386 * config/arc/predicates.md (mult_operator): Add ARCv2 processort.
5387 (short_const_int_operand): New predicate.
5388 * config/arc/t-arc-newlib: Add ARCv2 multilib options.
5389 * doc/invoke.texi: Add documentation for -mcpu=<archs/arcem>
5390 -mcode-density and -mdiv-rem.
5392 2015-11-11 Julia Koval <julia.koval@intel.com>
5394 * config/i386/i386.c (m_SKYLAKE_AVX512): Fix typo.
5396 2015-11-11 Julia Koval <julia.koval@intel.com>
5398 * config/i386/i386.c: Handle "skylake" and "skylake-avx512".
5400 2015-11-11 Martin Liska <mliska@suse.cz>
5402 * gimple-ssa-strength-reduction.c (create_phi_basis):
5404 * passes.c (release_dump_file_name): New function.
5405 (pass_init_dump_file): Used from this function.
5406 (pass_fini_dump_file): Likewise.
5407 * tree-sra.c (convert_callers_for_node): Use xstrdup_for_dump.
5408 * var-tracking.c (vt_initialize): Use pool_allocator.
5410 2015-11-11 Richard Biener <rguenth@gcc.gnu.org>
5411 Jiong Wang <jiong.wang@arm.com>
5413 PR tree-optimization/68234
5414 * tree-vrp.c (vrp_visit_phi_node): Extend SCEV check to those loop PHI
5415 node which estimiated to be VR_VARYING initially.
5417 2015-11-11 Robert Suchanek <robert.suchanek@imgtec.com>
5419 * regname.c (scan_rtx_reg): Check the matching number of consecutive
5420 registers when tying chains.
5421 (build_def_use): Move terminated_this_insn earlier in the function.
5423 2015-11-10 Mike Frysinger <vapier@gentoo.org>
5425 * configure.ac: Use = with test and not ==.
5426 * configure: Regenerated.
5428 2015-11-11 David Edelsohn <dje.gcc@gmail.com>
5430 * config/rs6000/aix.h (TARGET_OS_AIX_CPP_BUILTINS): Add cpu and
5431 machine asserts. Update defines for 64 bit.
5433 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
5436 * config/arm/neon.md (neon_vld1_lane<mode>): Remove error for invalid
5438 (neon_vst1_lane<mode>): Likewise.
5439 (neon_vld2_lane<mode>): Likewise.
5440 (neon_vst2_lane<mode>): Likewise.
5441 (neon_vld3_lane<mode>): Likewise.
5442 (neon_vst3_lane<mode>): Likewise.
5443 (neon_vld4_lane<mode>): Likewise.
5444 (neon_vst4_lane<mode>): Likewise.
5446 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
5449 * config/arm/arm-builtins.c: (arm_load1_qualifiers) Use
5450 qualifier_struct_load_store_lane_index.
5451 (arm_storestruct_lane_qualifiers) Likewise.
5452 * config/arm/neon.md: (neon_vld1_lane<mode>) Reverse lane numbers for
5454 (neon_vst1_lane<mode>) Likewise.
5455 (neon_vld2_lane<mode>) Likewise.
5456 (neon_vst2_lane<mode>) Likewise.
5457 (neon_vld3_lane<mode>) Likewise.
5458 (neon_vst3_lane<mode>) Likewise.
5459 (neon_vld4_lane<mode>) Likewise.
5460 (neon_vst4_lane<mode>) Likewise.
5462 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
5465 * config/arm/arm-builtins.c (enum arm_type_qualifiers): New enumerator
5466 qualifier_struct_load_store_lane_index.
5467 (builtin_arg): New enumerator NEON_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
5468 (arm_expand_neon_args): New parameter. Remove ellipsis. Handle NEON
5469 argument qualifiers.
5470 (arm_expand_neon_builtin): Handle new NEON argument qualifier.
5471 * config/arm/arm.h (NEON_ENDIAN_LANE_N): New macro.
5473 2015-11-10 Nathan Sidwell <nathan@codesourcery.com>
5475 * config/nvptx/nvptx.opt (moptimize): New flag.
5476 * config/nvptx/nvptx.c (nvptx_option_override): Set nvptx_optimize
5478 (nvptx_optimize_inner): New.
5479 (nvptx_process_pars): Call it when optimizing.
5480 * doc/invoke.texi (Nvidia PTX Options): Document -moptimize.
5482 2015-11-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5484 * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
5485 Remove redundant code.
5487 2015-11-10 Jeff Law <law@redhat.com>
5489 * config/ft32/ft32.c (ft32_print_operand): Supply mode to
5490 call to output_address.
5491 * config/moxie/moxie.c (moxie_print_operand_address): Similarly.
5492 Add unnamed machine_mode argument.
5494 2015-11-10 Michael Meissner <meissner@linux.vnet.ibm.com>
5496 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add power9 to hosts that
5499 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
5501 * config/i386/i386.md (*movabs<mode>_1): Add explicit
5502 size directives for -masm=intel.
5503 (*movabs<mode>_2): Ditto.
5505 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
5507 * config/i386/i386.c (ix86_print_operand): Remove dead code that
5508 tried to avoid (%rip) for call operands.
5510 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
5512 * config/i386/i386.c (ix86_print_operand_address_as): Add no_rip
5513 argument. Do not use RIP relative addressing when no_rip is set.
5514 (ix86_print_operand): Update call to ix86_print_operand_address_as.
5515 (ix86_print_operand_address): Ditto.
5516 * config/i386/i386.md (*movabs<mode>_1): Use %P modifier for
5517 absolute movabs operand 0. Add square braces for -masm=intel.
5518 (*movabs<mode>_2): Ditto for operand 1.
5520 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5522 * config/arm/arm.c (arm_new_rtx_costs, FIX case): Handle
5523 combine_vcvtf2i pattern.
5525 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5527 * config/arm/arm.c (neon_valid_immediate): Remove integer
5528 CONST_DOUBLE handling. It should never occur.
5530 2015-11-10 Matthew Wahab <matthew.wahab@arm.com>
5532 * config/aarch64/atomics.md (unspecv): Move to iterators.md.
5533 (ATOMIC_LDOP): Likewise.
5534 (atomic_ldop): Likewise.
5535 * config/aarch64/iterators.md (unspecv): Moved from atomics.md.
5536 (ATOMIC_LDOP): Likewise.
5537 (atomic_ldop): Likewise.
5539 2015-11-10 Martin Liska <mliska@suse.cz>
5541 * alloc-pool.h (allocate_raw): New function.
5542 (operator new (size_t, object_allocator<T> &a)): Use the
5543 function instead of object_allocator::allocate).
5545 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
5547 * config/i386/sse.md (HALFMASKMODE): New attribute.
5548 (DOUBLEMASKMODE): New attribute.
5549 (vec_pack_trunc_qi): New.
5550 (vec_pack_trunc_<mode>): New.
5551 (vec_unpacks_lo_hi): New.
5552 (vec_unpacks_lo_si): New.
5553 (vec_unpacks_lo_di): New.
5554 (vec_unpacks_hi_hi): New.
5555 (vec_unpacks_hi_<mode>): New.
5557 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
5559 * optabs.c (expand_binop_directly): Allow scalar mode for
5560 vec_pack_trunc_optab.
5561 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
5562 boolean vector producers from pattern sequence when computing VF.
5563 * tree-vect-patterns.c (vect_vect_recog_func_ptrs) Add
5564 vect_recog_mask_conversion_pattern.
5565 (search_type_for_mask): Choose the smallest
5566 type if different size types are mixed.
5567 (build_mask_conversion): New.
5568 (vect_recog_mask_conversion_pattern): New.
5569 (vect_pattern_recog_1): Allow scalar mode for boolean vectype.
5570 * tree-vect-stmts.c (vectorizable_mask_load_store): Support masked
5572 (vectorizable_conversion): Support boolean vectors.
5573 (free_stmt_vec_info): Allow patterns for statements with no lhs.
5574 * tree-vectorizer.h (NUM_PATTERNS): Increase to 14.
5576 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
5578 * config/i386/i386-protos.h (ix86_expand_sse_movcc): New.
5579 * config/i386/i386.c (ix86_expand_sse_movcc): Make public.
5580 Cast mask to FP mode if required.
5581 * config/i386/sse.md (vcond_mask_<mode><avx512fmaskmodelower>): New.
5582 (vcond_mask_<mode><avx512fmaskmodelower>): New.
5583 (vcond_mask_<mode><sseintvecmodelower>): New.
5584 (vcond_mask_<mode><sseintvecmodelower>): New.
5585 (vcond_mask_v2div2di): New.
5586 (vcond_mask_<mode><sseintvecmodelower>): New.
5587 (vcond_mask_<mode><sseintvecmodelower>): New.
5589 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
5591 * optabs-query.h (get_vcond_mask_icode): New.
5592 * optabs-tree.c (expand_vec_cond_expr_p): Use
5593 get_vcond_mask_icode for VEC_COND_EXPR with mask.
5594 * optabs.c (expand_vec_cond_mask_expr): New.
5595 (expand_vec_cond_expr): Use get_vcond_mask_icode when possible.
5596 * optabs.def (vcond_mask_optab): New.
5597 * tree-vect-patterns.c (vect_recog_bool_pattern): Don't
5598 generate redundant comparison for COND_EXPR.
5599 * tree-vect-stmts.c (vect_is_simple_cond): Allow SSA_NAME
5601 (vectorizable_condition): Likewise.
5602 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow
5603 cond_exp with no embedded comparison.
5604 (vect_build_slp_tree_1): Likewise.
5606 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
5608 * config/i386/sse.md (maskload<mode>): Rename to ...
5609 (maskload<mode><sseintvecmodelower>): ... this.
5610 (maskstore<mode>): Rename to ...
5611 (maskstore<mode><sseintvecmodelower>): ... this.
5612 (maskload<mode><avx512fmaskmodelower>): New.
5613 (maskstore<mode><avx512fmaskmodelower>): New.
5615 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
5617 * internal-fn.c (expand_MASK_LOAD): Adjust to maskload optab changes.
5618 (expand_MASK_STORE): Adjust to maskstore optab changes.
5619 * optabs-query.c (can_vec_mask_load_store_p): Add MASK_MODE arg.
5620 Adjust to maskload, maskstore optab changes.
5621 * optabs-query.h (can_vec_mask_load_store_p): Add MASK_MODE arg.
5622 * optabs.def (maskload_optab): Transform into convert optab.
5623 (maskstore_optab): Likewise.
5624 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Adjust to
5625 can_vec_mask_load_store_p signature change.
5626 (predicate_mem_writes): Use boolean mask.
5627 * tree-vect-stmts.c (vectorizable_mask_load_store): Adjust to
5628 can_vec_mask_load_store_p signature change. Allow invariant masks.
5629 (vectorizable_operation): Ignore type precision for boolean vectors.
5631 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
5633 * expr.c (do_store_flag): Use expand_vec_cmp_expr for mask results.
5634 (const_vector_mask_from_tree): New.
5635 (const_vector_from_tree): Use const_vector_mask_from_tree
5636 for boolean vectors.
5637 * optabs-query.h (get_vec_cmp_icode): New.
5638 * optabs-tree.c (expand_vec_cmp_expr_p): New.
5639 * optabs-tree.h (expand_vec_cmp_expr_p): New.
5640 * optabs.c (vector_compare_rtx): Add OPNO arg.
5641 (expand_vec_cond_expr): Adjust to vector_compare_rtx change.
5642 (expand_vec_cmp_expr): New.
5643 * optabs.def (vec_cmp_optab): New.
5644 (vec_cmpu_optab): New.
5645 * optabs.h (expand_vec_cmp_expr): New.
5646 * tree-vect-generic.c (expand_vector_comparison): Add vector
5647 comparison optabs check.
5648 * tree-vect-loop.c (vect_determine_vectorization_factor): Ignore mask
5649 operations for VF. Add mask type computation.
5650 * tree-vect-stmts.c (get_mask_type_for_scalar_type): New.
5651 (vectorizable_comparison): New.
5652 (vect_analyze_stmt): Add vectorizable_comparison.
5653 (vect_transform_stmt): Likewise.
5654 (vect_init_vector): Support boolean vector invariants.
5655 (vect_get_vec_def_for_operand): Add VECTYPE arg.
5656 (vectorizable_condition): Directly provide vectype for invariants
5658 * tree-vectorizer.h (get_mask_type_for_scalar_type): New.
5659 (enum vect_var_kind): Add vect_mask_var.
5660 (enum stmt_vec_info_type): Add comparison_vec_info_type.
5661 (vectorizable_comparison): New.
5662 (vect_get_vec_def_for_operand): Add VECTYPE arg.
5663 * tree-vect-data-refs.c (vect_get_new_vect_var): Support vect_mask_var.
5664 (vect_create_destination_var): Likewise.
5665 * tree-vect-patterns.c (check_bool_pattern): Check fails
5666 if we can vectorize comparison directly.
5667 (search_type_for_mask): New.
5668 (vect_recog_bool_pattern): Support cases when bool pattern check fails.
5669 * tree-vect-slp.c (vect_build_slp_tree_1): Allow
5670 comparison statements.
5671 (vect_get_constant_vectors): Support boolean vector constants.
5672 * config/i386/i386-protos.h (ix86_expand_mask_vec_cmp): New.
5673 (ix86_expand_int_vec_cmp): New.
5674 (ix86_expand_fp_vec_cmp): New.
5675 * config/i386/i386.c (ix86_expand_sse_cmp): Allow NULL for
5676 op_true and op_false.
5677 (ix86_int_cmp_code_to_pcmp_immediate): New.
5678 (ix86_fp_cmp_code_to_pcmp_immediate): New.
5679 (ix86_cmp_code_to_pcmp_immediate): New.
5680 (ix86_expand_mask_vec_cmp): New.
5681 (ix86_expand_fp_vec_cmp): New.
5682 (ix86_expand_int_sse_cmp): New.
5683 (ix86_expand_int_vcond): Use ix86_expand_int_sse_cmp.
5684 (ix86_expand_int_vec_cmp): New.
5685 (ix86_get_mask_mode): New.
5686 (TARGET_VECTORIZE_GET_MASK_MODE): New.
5687 * config/i386/sse.md (avx512fmaskmodelower): New.
5688 (vec_cmp<mode><avx512fmaskmodelower>): New.
5689 (vec_cmp<mode><sseintvecmodelower>): New.
5690 (vec_cmpv2div2di): New.
5691 (vec_cmpu<mode><avx512fmaskmodelower>): New.
5692 (vec_cmpu<mode><sseintvecmodelower>): New.
5693 (vec_cmpuv2div2di): New.
5695 2015-11-10 Richard Biener <rguenther@suse.de>
5697 PR tree-optimization/68240
5698 * tree-ssa-sccvn.c (cond_stmts_equal_p): Handle commutative compares
5700 (visit_phi): For PHIs with just a single executable edge
5701 take its value directly.
5702 (expressions_equal_p): Handle VN_TOP properly.
5704 2015-11-10 Richard Biener <rguenther@suse.de>
5706 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences):
5707 Handle memory using/clobbering stmts without a STMT_VINFO_DATA_REF
5710 2015-11-10 Richard Biener <rguenther@suse.de>
5712 PR tree-optimization/56118
5713 * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Make equal
5714 cost favor vectorized version.
5716 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5718 * config/aarch64/aarch64.md (<neg_not_op><mode>cc): New define_expand.
5719 * config/aarch64/iterators.md (NEG_NOT): New code iterator.
5720 (neg_not_op): New code attribute.
5722 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5724 * ifcvt.c (noce_try_inverse_constants): New function.
5725 (noce_process_if_block): Call it.
5726 * optabs.h (emit_conditional_neg_or_complement): Declare prototype.
5727 * optabs.def (negcc_optab, notcc_optab): Declare.
5728 * optabs.c (emit_conditional_neg_or_complement): New function.
5729 * doc/tm.texi (Standard Names): Document negcc, notcc names.
5731 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5733 PR rtl-optimization/68236
5734 * haifa-sched.c (autopref_multipass_dfa_lookahead_guard): Return 0
5735 if insn_queue doesn't exist.
5736 (haifa_sched_finish): Reset insn_queue to NULL.
5738 2015-11-10 Robert Suchanek <robert.suchanek@imgtec.com>
5740 * regrename.c (create_new_chain): Initialize renamed and tied_chain.
5741 (build_def_use): Initialize terminated_this_insn.
5742 (find_best_rename_reg): Pick and check register from the tied chain.
5743 (regrename_do_replace): Mark head as renamed.
5744 (struct du_head *terminated_this_insn). New static variable.
5745 (scan_rtx_reg): Tie chains in move insns. Set terminated_this_insn.
5746 * regrename.h (struct du_head): Add tied_chain, renamed members.
5748 2015-11-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5751 * config/aarch64/aarch64.c (aarch64_use_constant_blocks_p):
5754 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
5757 * config/sparc/sparc.c (sparc_function_value_1): In 32-bit mode, do
5758 not promote the mode for aggregate types.
5760 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
5762 * omp-low.h (replace_oacc_fn_attrib, build_oacc_routine_dims): Declare.
5763 * omp-low.c (build_oacc_routine_dims): New.
5765 2015-11-09 Michael Meissner <meissner@linux.vnet.ibm.com>
5767 * config/rs6000/constraints.md (wF constraint): New constraints
5768 for power9/toc fusion.
5769 (wG constraint): Likewise.
5771 * config/rs6000/predicates.md (u6bit_cint_operand): New
5772 predicate, recognize 0..63.
5773 (upper16_cint_operand): New predicate for power9 and toc fusion.
5774 (fpr_reg_operand): Likewise.
5775 (toc_fusion_or_p9_reg_operand): Likewise.
5776 (toc_fusion_mem_raw): Likewise.
5777 (toc_fusion_mem_wrapped): Likewise.
5778 (fusion_gpr_addis): If power9 fusion, allow fusion for a larger
5780 (fusion_gpr_mem_combo): Delete, use fusion_addis_mem_combo_load
5782 (fusion_addis_mem_combo_load): Add support for power9 fusion of
5783 floating point loads, floating point stores, and gpr stores.
5784 (fusion_addis_mem_combo_store): Likewise.
5785 (fusion_offsettable_mem_operand): Likewise.
5787 * config/rs6000/rs6000-protos.h (emit_fusion_addis): Add declarations.
5788 (emit_fusion_load_store): Likewise.
5789 (fusion_p9_p): Likewise.
5790 (expand_fusion_p9_load): Likewise.
5791 (expand_fusion_p9_store): Likewise.
5792 (emit_fusion_p9_load): Likewise.
5793 (emit_fusion_p9_store): Likewise.
5794 (fusion_wrap_memory_address): Likewise.
5796 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add new
5797 elements for power9 fusion.
5798 (rs6000_debug_print_mode): Rework debug information to print more
5799 information about fusion.
5800 (rs6000_init_hard_regno_mode_ok): Setup for power9 fusion support.
5801 (rs6000_legitimate_address_p): Recognize toc fusion as a valid
5802 offsettable memory address.
5803 (rs6000_rtx_costs): Update costs for new ISA 3.0 instructions.
5804 (emit_fusion_gpr_load): Move most of the code from
5805 emit_fusion_gpr_load into emit_fusion-addis that handles both
5806 power8 and power9 fusion.
5807 (emit_fusion_addis): Likewise.
5808 (emit_fusion_load_store): Likewise.
5809 (fusion_wrap_memory_address): Add support for TOC fusion.
5810 (fusion_split_address): Likewise.
5811 (fusion_p9_p): Add support for power9 fusion.
5812 (expand_fusion_p9_load): Likewise.
5813 (expand_fusion_p9_store): Likewise.
5814 (emit_fusion_p9_load): Likewise.
5815 (emit_fusion_p9_store): Likewise.
5817 * config/rs6000/rs6000.h (TARGET_EXTSWSLI): Macros for support for
5818 new instructions in ISA 3.0.
5819 (TARGET_CTZ): Likewise.
5820 (TARGET_TOC_FUSION_INT): Macros for power9 fusion support.
5821 (TARGET_TOC_FUSION_FP): Likewise.
5823 * config/rs6000/rs6000.md (UNSPEC_FUSION_P9): New power9/toc
5825 (UNSPEC_FUSION_ADDIS): Likewise.
5826 (QHSI mode iterator): New iterator for power9 fusion.
5827 (GPR_FUSION): Likewise.
5828 (FPR_FUSION): Likewise.
5829 (mod<mode>3): Add support for ISA 3.0 modulus instructions.
5830 (umod<mode>3): Likewise.
5831 (divmod peephole): Likewise.
5832 (udivmod peephole): Likewise.
5833 (ctz<mode>2): Add support for ISA 3.0 count trailing zeros scalar
5835 (ctz<mode>2_h): Likewise.
5836 (ashdi3_extswsli): Add support for ISA 3.0 EXTSWSLI instruction.
5837 (ashdi3_extswsli_dot): Likewise.
5838 (ashdi3_extswsli_dot2): Likewise.
5839 (power9 fusion splitter): New power9/toc fusion support.
5840 (toc_fusionload_<mode>): Likewise.
5841 (toc_fusionload_di): Likewise.
5842 (fusion_gpr_load_<mode>): Update predicate function.
5843 (power9 fusion peephole2s): New power9/toc fusion support.
5844 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
5845 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_store): Likewise.
5846 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_load): Likewise.
5847 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
5848 (fusion_p9_<mode>_constant): Likewise.
5850 2015-11-09 Steve Ellcey <sellcey@imgtec.com>
5852 * optabs.c (prepare_libcall_arg): New function.
5853 (expand_fixed_convert): Add call to prepare_libcall_arg.
5855 2015-11-09 Nikolai Bozhenov <n.bozhenov@samsung.com>
5857 * sched-int.h (dump_rgn_dependencies_dot): Declare
5858 * sched-rgn.c (dump_rgn_dependencies_dot): New function
5859 * print-rtl.h (print_insn): Add prototype
5861 * haifa-sched.c (setup_sched_dump): Don't redirect output to stderr.
5862 * common.opt (-fsched-verbose): Set default value to 1.
5863 * invoke.texi (-fsched-verbose): Update the option's description.
5865 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
5867 * config/visium/visium.h (PRINT_OPERAND): Delete.
5868 (PRINT_OPERAND_PUNCT_VALID_P): Likewise.
5869 (PRINT_OPERAND_ADDRESS): Likewise.
5870 * config/visium/visium.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define
5872 (visium_print_operand_punct_valid_p): ...this. New function.
5873 (TARGET_PRINT_OPERAND): Define to...
5874 (print_operand): Rename to...
5875 (visium_print_operand): ...this.
5876 (TARGET_PRINT_OPERAND_ADDRESS): Define to...
5877 (visium_output_address): Rename to...
5878 (visium_print_operand_address): ...this.
5879 (print_operand_address): Delete.
5881 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
5884 * tree.h (reverse_storage_order_for_component_p) <COMPONENT_REF>:
5885 Check that the type of the first operand is an aggregate type.
5887 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
5889 * omp-low.c: Fix some OpenACC comment typos.
5890 (lower_reduction_clauses): Remove BUILT_IN_GOACC_GET_THREAD_NUM call.
5891 * omp-builtins.def (BUILT_IN_GOACC_GET_THREAD_NUM,
5892 BUILT_IN_GOACC_GET_NUM_THREADS): Delete.
5894 2015-11-09 Uros Bizjak <ubizjak@gmail.com>
5896 * config/i386/i386.md (*strmovqi_1): Fix insn enable condition.
5898 2015-11-09 Jeff Law <law@redhat.com>
5900 * tree-ssanames.c (verify_ssaname_freelists): Simplify check for
5901 being in gimple/ssa form. Remove redundant check for SSA_NAME.
5904 2015-11-09 Michael Meissner <meissner@linux.vnet.ibm.com>
5905 Peter Bergner <bergner@vnet.ibm.com>
5907 * config/rs6000/rs6000.opt (-mpower9-fusion): Add new switches for
5909 (-mpower9-vector): Likewise.
5910 (-mpower9-dform): Likewise.
5911 (-mpower9-minmax): Likewise.
5912 (-mtoc-fusion): Likewise.
5913 (-mmodulo): Likewise.
5914 (-mfloat128-hardware): Likewise.
5916 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add option
5917 mask for ISA 3.0 (power9).
5918 (POWERPC_MASKS): Add new ISA 3.0 switches.
5919 (power9 cpu): Add power9 cpu.
5921 * config/rs6000/rs6000.h (ASM_CPU_POWER9_SPEC): Add support for power9.
5922 (ASM_CPU_SPEC): Likewise.
5923 (EXTRA_SPECS): Likewise.
5925 * config/rs6000/rs6000-opts.h (enum processor_type): Add
5928 * config/rs6000/rs6000.c (power9_cost): Initial cost setup for power9.
5929 (rs6000_debug_reg_global): Add support for power9 fusion.
5930 (rs6000_setup_reg_addr_masks): Cache mode size.
5931 (rs6000_option_override_internal): Until real power9 tuning is
5932 added, use -mtune=power8 for -mcpu=power9.
5933 (rs6000_setup_reg_addr_masks): Do not allow pre-increment,
5934 pre-decrement, or pre-modify on SFmode/DFmode if we allow the use
5935 of Altivec registers.
5936 (rs6000_option_override_internal): Add support for ISA 3.0 switches.
5937 (rs6000_loop_align): Add support for power9 cpu.
5938 (rs6000_file_start): Likewise.
5939 (rs6000_adjust_cost): Likewise.
5940 (rs6000_issue_rate): Likewise.
5941 (insn_must_be_first_in_group): Likewise.
5942 (insn_must_be_last_in_group): Likewise.
5943 (force_new_group): Likewise.
5944 (rs6000_register_move_cost): Likewise.
5945 (rs6000_opt_masks): Likewise.
5947 * config/rs6000/rs6000.md (cpu attribute): Add power9.
5948 * config/rs6000/rs6000-tables.opt: Regenerate.
5950 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
5951 _ARCH_PWR9 if power9 support is available.
5953 * config/rs6000/aix61.h (ASM_CPU_SPEC): Add power9.
5954 * config/rs6000/aix53.h (ASM_CPU_SPEC): Likewise.
5956 * configure.ac: Determine if the assembler supports the ISA 3.0
5958 * config.in (HAVE_AS_POWER9): Likewise.
5959 * configure: Regenerate.
5961 * doc/invoke.texi (RS/6000 and PowerPC Options): Document ISA 3.0
5964 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5966 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate):
5967 Remove integer CONST_DOUBLE handling. It should never occur.
5969 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5972 * config/aarch64/aarch64.h (TARGET_SUPPORTS_WIDE_INT): Define to 1.
5973 * config/aarch64/aarch64.c (aarch64_print_operand, CONST_DOUBLE):
5974 Delete VOIDmode case. Assert that mode is not VOIDmode.
5975 * config/aarch64/predicates.md (const0_operand): Remove const_double
5978 2015-11-09 Martin Liska <mliska@suse.cz>
5980 * ipa-inline-analysis.c (estimate_function_body_sizes): Call
5981 body_info release function.
5982 * ipa-prop.c (ipa_release_body_info): New function.
5983 (ipa_analyze_node): Call the function.
5984 (ipa_node_params::~ipa_node_params): Release known_csts.
5985 * ipa-prop.h (ipa_release_body_info): Declare.
5987 2015-11-09 Martin Liska <mliska@suse.cz>
5989 * gcc.c (record_temp_file): Release name string.
5990 * ifcvt.c (noce_convert_multiple_sets): Use auto_vec instead of vec.
5991 * lra-lives.c (free_live_range_list): Utilize
5992 lra_live_range_pool for allocation and deallocation.
5993 (create_live_range): Likewise.
5994 (copy_live_range): Likewise.
5995 (lra_merge_live_ranges): Likewise.
5996 (remove_some_program_points_and_update_live_ranges): Likewise.
5997 (lra_create_live_ranges_1): Release point_freq_vec that can
5998 be not freed from previous iteration of the function.
5999 * tree-eh.c (lower_try_finally_switch): Use auto_vec instead of vec.
6000 * tree-sra.c (sra_deinitialize): Release all vectors in
6002 * tree-ssa-dom.c (free_dom_edge_info): Make the function extern.
6003 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
6004 Release edge_info for a removed edge.
6005 (thread_through_all_blocks): Free region vector.
6006 * tree-ssa.h (free_dom_edge_info): Declare function extern.
6008 2015-11-09 Ilya Enkovich <enkovich.gnu@gmail.com>
6010 * optabs.c (expand_vec_cond_expr): Always get sign from type.
6011 * tree.c (wide_int_to_tree): Support negative values for boolean.
6012 (build_nonstandard_boolean_type): Use signed type for booleans.
6014 2015-11-09 Richard Biener <rguenther@suse.de>
6016 PR tree-optimization/68248
6017 * tree-vect-generic.c (expand_vector_operations_1): Handle scalar rhs2.
6019 2015-11-09 Richard Biener <rguenther@suse.de>
6021 PR tree-optimization/56118
6022 * tree-vectorizer.h (vect_find_last_scalar_stmt_in_slp): Declare.
6023 * tree-vect-slp.c (vect_find_last_scalar_stmt_in_slp): Export.
6024 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences): New
6026 (vect_slp_analyze_data_ref_dependences): Instead of computing
6027 all dependences of the region DRs just analyze the code motions
6028 SLP vectorization will perform. Remove SLP instances that
6029 cannot have their store/load motions applied.
6030 (vect_analyze_data_refs): Allow DRs without a vectype
6031 in BB vectorization.
6033 2015-11-09 Julian Brown <julian@codesourcery.com>
6035 * final.c (output_asm_insn): Pass VOIDmode to output_address.
6036 (output_address): Add MODE argument. Pass to print_operand_address
6038 * targhooks.c (default_print_operand_address): Add MODE argument.
6039 * targhooks.h (default_print_operand_address): Update prototype.
6040 * output.h (output_address): Update prototype.
6041 * target.def (print_operand_address): Add MODE argument.
6042 * config/vax/vax.c (print_operand_address): Pass VOIDmode to
6044 (print_operand): Pass access mode to output_address.
6045 * config/mcore/mcore.c (mcore_print_operand_address): Add MODE
6047 (mcore_print_operand): Update calls to mcore_print_operand_address.
6048 * config/fr30/fr30.c (fr30_print_operand): Pass VOIDmode to
6050 * config/lm32/lm32.c (lm32_print_operand): Pass mode in calls to
6052 * config/tilegx/tilegx.c (output_memory_reference_mode): Remove
6054 (tilegx_print_operand): Don't set above global. Update calls to
6056 (tilegx_print_operand_address): Add MODE argument. Use instead of
6057 output_memory_reference_mode global.
6058 * config/frv/frv.c (frv_print_operand_address): Add MODE argument.
6059 (frv_print_operand): Pass mode to frv_print_operand_address calls.
6060 * config/mn10300/mn10300.c (mn10300_print_operand): Pass mode to
6062 * config/cris/cris.c (cris_print_operand_address): Add MODE argument.
6063 (cris_print_operand): Pass mode to output_address calls.
6064 * config/spu/spu.c (print_operand): Pass mode to output_address calls.
6065 * config/aarch64/aarch64.h (aarch64_print_operand)
6066 (aarch64_print_operand_address): Remove prototypes.
6067 * config/aarch64/aarch64.c (aarch64_memory_reference_mode): Delete
6069 (aarch64_print_operand): Make static. Update calls to output_address.
6070 (aarch64_print_operand_address): Add MODE argument. Use instead of
6071 aarch64_memory_reference_mode global.
6072 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define target
6074 * config/aarch64/aarch64.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
6075 Delete macro definitions.
6076 * config/pa/pa.c (pa_print_operand): Pass mode in output_address calls.
6077 * config/xtensa/xtensa.c (print_operand): Pass mode in
6078 output_address calls.
6079 * config/h8300/h8300.c (h8300_print_operand_address): Add MODE
6081 (h83000_print_operand): Update calls to h8300_print_operand_address
6083 * config/ia64/ia64.c (ia64_print_operand_address): Add MODE argument.
6084 * config/tilepro/tilepro.c (output_memory_reference_mode): Delete
6086 (tilepro_print_operand): Pass mode to output_address.
6087 (tilepro_print_operand_address): Add MODE argument. Use instead of
6088 output_memory_reference_mode.
6089 * config/nvptx/nvptx.c (output_decl_chunk, nvptx_assemble_integer)
6090 (nvptx_output_call_insn, nvptx_print_address_operand): Pass VOIDmode
6091 to output_address calls.
6092 (nvptx_print_operand_address): Add MODE argument.
6093 * config/alpha/alpha.c (print_operand): Pass mode argument in
6094 output_address calls.
6095 * config/m68k/m68k.c (print_operand): Pass mode argument in
6096 output_address call.
6097 * config/avr/avr.c (avr_print_operand_address): Add MODE argument.
6098 (avr_print_operand): Update calls to avr_print_operand_address.
6099 * config/sparc/sparc.c (sparc_print_operand_address): Add MODE
6100 argument. Update calls to output_address.
6101 (sparc_print_operand): Pass mode to output_address.
6102 * config/iq2000/iq2000.c (iq2000_print_operand_address): Add MODE
6104 (iq2000_print_operand): Pass mode in output_address calls.
6105 * config/stormy16/stormy16.c (xstormy16_print_operand_address): Add
6107 (xstormy16_print_operand): Pass mode to
6108 xstormy16_print_operand_address calls.
6109 * config/mips/mips.c (mips_print_operand): Update calls to
6111 (mips_print_operand_address): Add MODE argument.
6112 * config/epiphany/epiphany.c (epiphany_print_operand): Update calls
6114 (epiphany_print_operand_address): Add MODE argument. Add FIXME note.
6115 * config/pdp11/pdp11.c (pdp11_asm_print_operand): Update call to
6117 * config/rx/rx.c (rx_print_operand_address): Add MODE argument.
6118 (rx_print_operand): Update calls to output_address,
6119 rx_print_operand_address.
6120 * config/nds32/nds32.c (nds32_print_operand): Update calls to
6122 (nds32_print_operand_address): Add MODE argument.
6123 * config/rs6000/rs6000.c (print_operand): Pass mem mode to
6124 output_address calls.
6125 * config/c6x/c6x.c (print_address_offset): Pass mem mode to
6126 output_address call.
6127 (c6x_print_address_operand): Update calls to output_address.
6128 (c6x_print_operand_address): Pass mode to above.
6129 * config/v850/v850.c (v850_print_operand_address): Add MODE argument.
6130 (v850_print_operand): Pass mode to v850_print_operand_address,
6132 * config/mmix/mmix.c (mmix_print_operand_address): Add MODE argument.
6133 (mmix_print_operand): Pass mode in output_address calls.
6134 * config/sh/sh.c (sh_print_operand_address): Add MODE argument.
6135 (sh_print_operand): Pass mem mode to output_address,
6136 sh_print_operand_address.
6137 * config/cr16/cr16.c (cr16_print_operand_address): Add MODE argument.
6138 (cr16_print_operand): Pass mode to output_address,
6139 cr16_print_operand_address.
6140 * config/bfin/bfin.c (print_address_operand): Pass VOIDmode to
6142 * config/microblaze/microblaze.c (print_operand): Pass mode to
6144 * config/nios2/nios2.c (nios2_print_operand): Pass VOIDmode to
6146 (nios2_print_operand_address): Add MODE argument. Update call to
6147 nios2_print_operand_address.
6148 * config/s390/s390.c (print_operand): Pass mode to output_address.
6149 * config/m32c/m32c.c (m32c_print_operand_address): Add MODE argument.
6150 * config/arc/arc.c (arc_print_operand): Pass VOIDmode to
6152 * config/arm/arm.c (arm_print_operand_address): Add MODE argument.
6153 Use instead of output_memory_reference_mode.
6154 (output_memory_reference_mode): Delete global.
6155 (arm_print_operand): Pass mem mode to output_address.
6156 * config/m32r/m32r.c (m32r_print_operand_address): Add MODE argument.
6157 (m32r_print_operand): Pass mode to output_address.
6158 * config/msp430/msp430.c (msp430_print_operand_addr): Add MODE
6160 (msp430_print_operand): Pass mode to msp430_print_operand_addr.
6161 * config/i386/i386.c (ix86_print_operand): Pass mode to
6162 output_address calls.
6163 (ix86_print_operand_address): Add MODE argument.
6165 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
6168 * tree-core.h (REF_REVERSE_STORAGE_ORDER): Move around.
6169 * tree.h (REF_REVERSE_STORAGE_ORDER): Change to default_def_flag.
6170 * tree-streamer-in.c (unpack_ts_base_value_fields): Adjust.
6171 * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
6173 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6175 PR rtl-optimization/67749
6176 * ifcvt.c (noce_try_cmove_arith): Do not emit move in IF-ELSE
6177 case before emitting the two blocks. Instead modify the register
6178 in the corresponding final insn of the basic block.
6180 2015-11-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6182 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Allow for differences in
6185 Define HAVE_INITFINI_ARRAY_SUPPORT as 0/1.
6187 * config/sol2.h (SUPPORTS_INIT_PRIORITY): Define to
6188 HAVE_INITFINI_ARRAY_SUPPORT.
6189 * config/initfini-array.h: Check HAVE_INITFINI_ARRAY_SUPPORT value.
6191 * configure.ac (gcc_cv_as_sparc_nobits): Remove.
6192 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section):
6193 Don't check HAVE_AS_SPARC_NOBITS.
6194 Heed SECTION_NOTYPE.
6196 * configure: Regenerate.
6197 * config.in: Regenerate.
6199 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
6202 * fold-const.c (fold_truth_andor_1): Initialize new variables to 0.
6204 2015-11-09 Richard Henderson <rth@redhat.com>
6206 * config/i386/i386-c.c (ix86_target_macros): Define __SEG_FS,
6207 __SEG_GS, __SEG_TLS.
6208 (ix86_register_pragmas): Register address spaces __seg_fs,
6209 __seg_gs, __seg_tls.
6210 * config/i386/i386-protos.h (enum ix86_address_seg): Remove.
6211 (ADDR_SPACE_SEG_FS, ADDR_SPACE_SEG_GS, ADDR_SPACE_SEG_TLS): New.
6212 (struct ix86_address): Use addr_space_t instead of ix86_address_seg.
6213 * config/i386/i386.c (ix86_decompose_address): Likewise.
6214 (ix86_legitimate_address_p): Likewise.
6215 (memory_address_length): Likewise. Check mem address space too.
6216 (ix86_print_operand): Use ix86_print_operand_address_as.
6217 (ix86_print_operand_address_as): Rename from
6218 ix86_print_operand_address, add new addr_space_t parameter.
6219 Validate that either the parameter or the ix86_address segment
6220 is default address space. Handle ADDR_SPACE_SEG_TLS.
6221 (ix86_print_operand_address): New.
6222 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): New.
6223 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): New.
6224 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): New.
6225 (ix86_addr_space_zero_address_valid): New.
6226 (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
6227 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): Use addr_space_t constants.
6228 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Likewise.
6229 * config/i386/predicates.md (address_no_seg_operand): Likewise.
6230 (vsib_address_operand): Likewise.
6231 (address_mpx_no_base_operand): Likewise.
6232 (address_mpx_no_index_operand): Likewise.
6233 * doc/extend.texi (x86 Named Address Spaces): New section.
6235 * config/i386/i386.c (ix86_check_no_addr_space): New.
6236 (decide_alg): Add have_as parameter.
6237 (alg_usable_p): Likewise; disable rep algorithms if set.
6238 (ix86_expand_set_or_movmem): Notice if either MEM has a
6239 non-default address space.
6240 (ix86_expand_strlen): Likewise.
6241 * config/i386/i386.md (strmov, strset): Likewise.
6242 (*strmovdi_rex_1): Use ix86_check_no_addr_space.
6243 (*strmovsi_1, *strmovqi_1, *rep_movdi_rex64, *rep_movsi, *rep_movqi,
6244 *strsetdi_rex_1, *strsetsi_1, *strsethi_1, *strsetqi_1,
6245 *rep_stosdi_rex64, *rep_stossi, *rep_stosqi, *cmpstrnqi_nz_1,
6246 *cmpstrnqi_1, *strlenqi_1): Likewise.
6248 * config/i386/i386.md (*movabs<mode>_1): Print the full memory rtx.
6249 (*movabs<mode>_2): Likewise.
6251 * dwarf2out.c (modified_type_die): Pass the address space number
6252 through TARGET_ADDR_SPACE_DEBUG to produce the dwarf address class.
6253 * target.def (TARGET_ADDR_SPACE_DEBUG): New.
6254 * targhooks.c (default_addr_space_debug): New.
6255 * targhooks.h (default_addr_space_debug): Declare.
6256 * doc/tm.texi.in (TARGET_ADDR_SPACE_DEBUG): Mark it.
6257 * doc/tm.texi: Rebuild.
6259 * gimple.c (check_loadstore): Return false when 0 is a valid address.
6260 * fold-const.c (const_unop) [ADDR_SPACE_CONVERT_EXPR]: Do not fold
6261 null when 0 is valid in the source address space.
6262 * target.def (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
6263 * targhooks.c (default_addr_space_zero_address_valid): New.
6264 * targhooks.h (default_addr_space_zero_address_valid): Declare.
6265 * doc/tm.texi.in (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): Mark it.
6266 * doc/tm.texi: Rebuild.
6268 * cselib.c (add_mem_for_addr): Compare address spaces when
6270 (cselib_lookup_mem): Likewise.
6271 * fold-const.c (operand_equal_p): Check address spaces of
6272 pointer types before checking integer constants.
6275 * tree-ssa-address.c (create_mem_ref_raw): Use a pointer of
6276 the correct type for the base.
6278 2015-11-09 Jeff Law <law@redhat.com>
6280 * tree-into-ssa.c (names_to_release): No longer static.
6281 * tree-into-ssa.h (names_to_release): Declare.
6282 * tree-ssanames.c (verify_ssaname_freelists): New debug function.
6283 (release_free_names_and_compact_live_names): New function extracted
6284 from pass_release_ssa_names::execute.
6285 (pass_release_ssa_names::execute): Use it.
6287 2015-11-09 Alan Modra <amodra@gmail.com>
6289 * gensupport.c (add_mnemonic_string): Make len param a size_t.
6290 (gen_mnemonic_setattr): Make "size" var a size_t. Use
6291 obstack_blank_fast to shrink obstack. Cast obstack_next_free
6294 2015-11-09 Segher Boessenkool <segher@kernel.crashing.org>
6296 PR rtl-optimization/68182
6297 * bb-reorder.c (reorder_basic_blocks_simple): Treat a conditional
6298 branch with only one successor just like unconditional branches.
6300 2015-11-08 Jeff Law <law@redhat.com>
6302 * tree-ssa-threadupdate.c (register_jump_thraed): Assert that a
6303 non-FSM path has no edges marked with EDGE_DFS_BACK.
6304 (ssa_redirect_edges): No longer call mark_loop_for_removal.
6305 (thread_single_edge, def_split_header_continue_p): Remove.
6306 (bb_ends_with_multiway_branch): Likewise.
6307 (thread_through_loop_header): Remove cases of threading from
6308 latch through the header. Simplify knowing we won't thread
6310 (thread_through_all_blocks): Simplify knowing that only the FSM
6311 threader needs to handle backedges.
6313 2015-11-08 Eric Botcazou <ebotcazou@adacore.com>
6315 * doc/extend.texi (type attributes): Document scalar_storage_order.
6316 (Structure-Packing Pragmas): Rename into...
6317 (Structure-Layout Pragmas): ...this. Document scalar_storage_order.
6318 * doc/invoke.texi (C Dialect Options): Document -fsso-struct
6319 (Warnings): Document -Wno-scalar-storage-order.
6320 * flag-types.h (enum scalar_storage_order_kind): New enumeration.
6321 * calls.c (store_unaligned_arguments_into_pseudos): Adjust calls to
6322 extract_bit_field and store_bit_field.
6323 (initialize_argument_information): Adjust call to store_expr.
6324 (load_register_parameters): Adjust call to extract_bit_field.
6325 * expmed.c (check_reverse_storage_order_support): New function.
6326 (check_reverse_float_storage_order_support): Likewise.
6327 (flip_storage_order): Likewise.
6328 (store_bit_field_1): Add REVERSE parameter. Flip the storage order
6329 of the value if it is true. Pass REVERSE to recursive call after
6330 adjusting the target offset.
6331 Do not use extraction or movstrict instruction if REVERSE is true.
6332 Pass REVERSE to store_fixed_bit_field.
6333 (store_bit_field): Add REVERSE parameter and pass to it to above.
6334 (store_fixed_bit_field): Add REVERSE parameter and pass to it to
6335 store_split_bit_field and store_fixed_bit_field_1.
6336 (store_fixed_bit_field_1): Add REVERSE parameter. Flip the storage
6337 order of the value if it is true and adjust the target offset.
6338 (store_split_bit_field): Add REVERSE parameter and pass it to
6339 store_fixed_bit_field. Adjust the target offset if it is true.
6340 (extract_bit_field_1): Add REVERSE parameter. Flip the storage order
6341 of the value if it is true. Pass REVERSE to recursive call after
6342 adjusting the target offset.
6343 Do not use extraction or subreg instruction if REVERSE is true.
6344 Pass REVERSE to extract_fixed_bit_field.
6345 (extract_bit_field): Add REVERSE parameter and pass to it to above.
6346 (extract_fixed_bit_field): Add REVERSE parameter and pass to it to
6347 extract_split_bit_field and extract_fixed_bit_field_1.
6348 (extract_fixed_bit_field_1): Add REVERSE parameter. Flip the storage
6349 order of the value if it is true and adjust the target offset.
6350 (extract_split_bit_field): Add REVERSE parameter and pass it to
6351 extract_fixed_bit_field. Adjust the target offset if it is true.
6352 * expmed.h (flip_storage_order): Declare.
6353 (store_bit_field): Adjust prototype.
6354 (extract_bit_field): Likewise.
6355 * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
6356 (emit_group_store): Adjust call to store_bit_field.
6357 (copy_blkmode_from_reg): Likewise.
6358 (copy_blkmode_to_reg): Likewise.
6359 (write_complex_part): Likewise.
6360 (read_complex_part): Likewise.
6361 (optimize_bitfield_assignment_op): Add REVERSE parameter. Assert
6362 that it isn't true if the target is a register.
6363 <PLUS_EXPR>: If it is, do not optimize unless bitsize is equal to 1,
6364 and flip the storage order of the value.
6365 <BIT_IOR_EXPR>: Flip the storage order of the value.
6366 (get_bit_range): Adjust call to get_inner_reference.
6367 (expand_assignment): Adjust calls to get_inner_reference, store_expr,
6368 optimize_bitfield_assignment_op and store_field. Handle MEM_EXPRs
6369 with reverse storage order.
6370 (store_expr_with_bounds): Add REVERSE parameter and pass it to
6371 recursive calls and call to store_bit_field. Force the value into a
6372 register if it is true and then flip the storage order of the value.
6373 (store_expr): Add REVERSE parameter and pass it to above.
6374 (categorize_ctor_elements_1): Adjust call to
6375 initializer_constant_valid_p.
6376 (store_constructor_field): Add REVERSE parameter and pass it to
6377 recursive calls and call to store_field.
6378 (store_constructor): Add REVERSE parameter and pass it to calls to
6379 store_constructor_field and store_expr. Set it to true for an
6380 aggregate type with TYPE_REVERSE_STORAGE_ORDER.
6381 (store_field): Add REVERSE parameter and pass it to recursive calls
6382 and calls to store_expr and store_bit_field. Temporarily flip the
6383 storage order of the value with record type and integral mode and
6384 adjust the shift if it is true.
6385 (get_inner_reference): Add PREVERSEP parameter and set it to true
6386 upon encoutering a reference with reverse storage order.
6387 (expand_expr_addr_expr_1): Adjust call to get_inner_reference.
6388 (expand_constructor): Adjust call to store_constructor.
6389 (expand_expr_real_2) <CASE_CONVERT>: Pass TYPE_REVERSE_STORAGE_ORDER
6390 of the union type to store_expr in the MEM case and assert that it
6391 isn't set in the REG case. Adjust call to store_field.
6392 (expand_expr_real_1) <MEM_REF>: Handle reverse storage order.
6393 <normal_inner_ref>: Add REVERSEP variable and adjust calls to
6394 get_inner_reference and extract_bit_field. Temporarily flip the
6395 storage order of the value with record type and integral mode and
6396 adjust the shift if it is true. Flip the storage order of the value
6397 at the end if it is true.
6398 <VIEW_CONVERT_EXPR>: Add REVERSEP variable and adjust call to
6399 get_inner_reference. Do not fetch an inner reference if it is true.
6400 * expr.h (store_expr_with_bounds): Ajust prototype.
6401 (store_expr): Likewise.
6402 * fold-const.c (make_bit_field_ref): Add REVERSEP parameter and set
6403 REF_REVERSE_STORAGE_ORDER on the reference according to it.
6404 (optimize_bit_field_compare): Deal with reverse storage order.
6405 Adjust calls to get_inner_reference and make_bit_field_ref.
6406 (decode_field_reference): Add PREVERSEP parameter and adjust call to
6407 get_inner_reference.
6408 (fold_truth_andor_1): Deal with reverse storage order. Adjust calls
6409 to decode_field_reference and make_bit_field_ref.
6410 (fold_unary_loc) <CASE_CONVERT>: Adjust call to get_inner_reference.
6411 <VIEW_CONVERT_EXPR>: Propagate the REF_REVERSE_STORAGE_ORDER flag.
6412 (fold_comparison): Adjust call to get_inner_reference.
6413 (split_address_to_core_and_offset): Adjust call to
6414 get_inner_reference.
6415 * gimple-expr.c (useless_type_conversion_p): Return false for array
6416 types with different TYPE_REVERSE_STORAGE_ORDER flag.
6417 * gimplify.c (gimplify_expr) <MEM_REF>: Propagate the
6418 REF_REVERSE_STORAGE_ORDER flag.
6419 * lto-streamer-out.c (hash_tree): Deal with TYPE_REVERSE_STORAGE_ORDER.
6420 * output.h (assemble_real): Adjust prototype.
6421 * print-tree.c (print_node): Convey TYPE_REVERSE_STORAGE_ORDER.
6422 * stor-layout.c (finish_record_layout): Propagate the
6423 TYPE_REVERSE_STORAGE_ORDER flag to the variants.
6424 * tree-core.h (TYPE_REVERSE_STORAGE_ORDER): Document.
6425 (TYPE_SATURATING): Adjust.
6426 (REF_REVERSE_STORAGE_ORDER): Document.
6427 * tree-dfa.c (get_ref_base_and_extent): Add PREVERSE parameter and
6428 set it to true upon encoutering a reference with reverse storage order.
6429 * tree-dfa.h (get_ref_base_and_extent): Adjust prototype.
6430 * tree-inline.c (remap_gimple_op_r): Propagate the
6431 REF_REVERSE_STORAGE_ORDER flag.
6432 (copy_tree_body_r): Likewise.
6433 * tree-outof-ssa.c (insert_value_copy_on_edge): Adjust call to
6435 * tree-streamer-in.c (unpack_ts_base_value_fields): Deal with
6436 TYPE_REVERSE_STORAGE_ORDER and REF_REVERSE_STORAGE_ORDER.
6437 * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
6438 * tree.c (stabilize_reference) <BIT_FIELD_REF>: Propagate the
6439 REF_REVERSE_STORAGE_ORDER flag.
6440 (verify_type_variant): Deal with TYPE_REVERSE_STORAGE_ORDER.
6441 (gimple_canonical_types_compatible_p): Likewise.
6442 * tree.h (TYPE_REVERSE_STORAGE_ORDER): New flag.
6443 (TYPE_SATURATING): Adjust.
6444 (REF_REVERSE_STORAGE_ORDER): New flag.
6445 (reverse_storage_order_for_component_p): New inline predicate.
6446 (storage_order_barrier_p): Likewise.
6447 (get_inner_reference): Adjust prototype.
6448 * varasm.c: Include expmed.h.
6449 (assemble_variable_contents): Adjust call to output_constant.
6450 (assemble_real): Add REVERSE parameter. Flip the storage
6451 order of the value if REVERSE is true.
6452 (compare_constant) <CONSTRUCTOR>: Compare TYPE_REVERSE_STORAGE_ORDER.
6453 (assemble_constant_contents): Adjust call to output_constant.
6454 (output_constant_pool_2): Adjust call to assemble_real.
6455 (initializer_constant_valid_p_1) <CONSTRUCTOR>: Deal with
6456 TYPE_REVERSE_STORAGE_ORDER.
6457 (initializer_constant_valid_p): Add REVERSE parameter.
6458 (output_constant): Add REVERSE parameter.
6459 <INTEGER_TYPE>: Flip the storage order of the value if REVERSE is true.
6460 <REAL_TYPE>: Adjust call to assemble_real.
6461 <COMPLEX_TYPE>: Pass it to recursive calls.
6462 <ARRAY_TYPE>: Likewise. Adjust call to output_constructor.
6463 <RECORD_TYPE>: Likewise. Adjust call to output_constructor.
6464 (struct oc_local_state): Add REVERSE field.
6465 (output_constructor_array_range): Adjust calls to output_constant.
6466 (output_constructor_regular_field): Likewise.
6467 (output_constructor_bitfield): Adjust call to output_constructor.
6468 Flip the storage order of the value if REVERSE is true.
6469 (output_constructor): Add REVERSE parameter. Set it to true for an
6470 aggregate type with TYPE_REVERSE_STORAGE_ORDER. Adjust call to
6471 output_constructor_bitfield.
6472 * varasm.h (initializer_constant_valid_p): Default REVERSE to false.
6473 * asan.c (instrument_derefs): Adjust call to get_inner_reference.
6474 * builtins.c (get_object_alignment_2): Likewise.
6475 * cfgexpand.c (expand_debug_expr): Adjust call to get_inner_reference
6476 and get_ref_base_and_extent.
6477 * dbxout.c (dbxout_expand_expr): Likewise.
6478 * dwarf2out.c (add_var_loc_to_decl): Likewise.
6479 (loc_list_for_address_of_addr_expr_of_indirect_ref): Likewise.
6480 (loc_list_from_tree): Likewise.
6481 (fortran_common): Likewise.
6482 * gimple-fold.c (gimple_fold_builtin_memory_op): Adjust calls to
6483 get_ref_base_and_extent.
6484 (get_base_constructor): Likewise.
6485 (fold_const_aggregate_ref_1): Likewise.
6486 * gimple-laddress.c (pass_laddress::execute): Adjust call to
6487 get_inner_reference.
6488 * gimple-ssa-strength-reduction.c (slsr_process_ref): Adjust call to
6489 get_inner_reference and bail out on reverse storage order.
6490 * ifcvt.c (noce_emit_move_insn): Adjust calls to store_bit_field.
6491 * ipa-cp.c (ipa_get_jf_ancestor_result): Adjust call to
6492 build_ref_for_offset.
6493 * ipa-polymorphic-call.c (set_by_invariant): Adjust call to
6494 get_ref_base_and_extent.
6495 (ipa_polymorphic_call_context): Likewise.
6496 (extr_type_from_vtbl_ptr_store): Likewise.
6497 (check_stmt_for_type_change): Likewise.
6498 (get_dynamic_type): Likewise.
6499 * ipa-prop.c (ipa_load_from_parm_agg_1): Adjust call to
6500 get_ref_base_and_extent.
6501 (compute_complex_assign_jump_func): Likewise.
6502 (get_ancestor_addr_info): Likewise.
6503 (compute_known_type_jump_func): Likewise.
6504 (determine_known_aggregate_parts): Likewise.
6505 (ipa_get_adjustment_candidate): Likewise.
6506 (ipa_modify_call_arguments): Set REF_REVERSE_STORAGE_ORDER on MEM_REF.
6507 * ipa-prop.h (ipa_parm_adjustment): Add REVERSE field.
6508 (build_ref_for_offset): Adjust prototype.
6509 * simplify-rtx.c (delegitimize_mem_from_attrs): Adjust call to
6510 get_inner_reference.
6511 * tree-affine.c (tree_to_aff_combination): Adjust call to
6512 get_inner_reference.
6513 (get_inner_reference_aff): Likewise.
6514 * tree-data-ref.c (split_constant_offset_1): Likewise.
6515 (dr_analyze_innermost): Likewise. Bail out if reverse storage order.
6516 * tree-scalar-evolution.c (interpret_rhs_expr): Adjust call to
6517 get_inner_reference.
6518 * tree-sra.c (struct access): Add REVERSE and move WRITE around.
6519 (dump_access): Print new fields.
6520 (create_access): Adjust call to get_ref_base_and_extent and set the
6521 REVERSE flag according to the result.
6522 (completely_scalarize_record): Set the REVERSE flag.
6523 (scalarize_elem): Add REVERSE parameter.
6524 (build_access_from_expr_1): Preserve storage order barriers.
6525 (build_accesses_from_assign): Likewise.
6526 (build_ref_for_offset): Add REVERSE parameter and set the
6527 REF_REVERSE_STORAGE_ORDER flag accordingly.
6528 (build_ref_for_model): Adjust call to build_ref_for_offset and clear
6529 the REF_REVERSE_STORAGE_ORDER flag if there are components.
6530 (analyze_access_subtree): Likewise.
6531 (create_artificial_child_access): Set the REVERSE flag.
6532 (get_access_for_expr): Adjust call to get_ref_base_and_extent.
6533 (turn_representatives_into_adjustments): Propagate REVERSE flag.
6534 (ipa_sra_check_caller): Adjust call to get_inner_reference.
6535 * tree-ssa-alias.c (ao_ref_base): Adjust call to
6536 get_ref_base_and_extent.
6537 (aliasing_component_refs_p): Likewise.
6538 (stmt_kills_ref_p_1): Likewise.
6539 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
6540 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p) <MEM_REF>: New.
6541 Return true if reverse storage order.
6542 <BIT_FIELD_REF>: Likewise.
6543 <COMPONENT_REF>: Likewise.
6544 <ARRAY_REF>: Likewise.
6545 <ARRAY_RANGE_REF>: Likewise.
6546 (split_address_cost): Likewise. Bail out if reverse storage order.
6547 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Adjust call to
6548 get_inner_reference. Bail out if reverse storage order.
6549 (bswap_replace): Adjust call to get_inner_reference.
6550 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <MEM_REF>: Set
6551 the REF_REVERSE_STORAGE_ORDER flag.
6552 <BIT_FIELD_REF>: Likewise.
6553 * tree-ssa-sccvn.c (vn_reference_eq): Return false on storage order
6555 (copy_reference_ops_from_ref) <MEM_REF>: Set REVERSE field according
6556 to the REF_REVERSE_STORAGE_ORDER flag.
6557 <BIT_FIELD_REF>: Likewise.
6558 <VIEW_CONVERT_EXPR>: Set it for storage order barriers.
6559 (contains_storage_order_barrier_p): New predicate.
6560 (vn_reference_lookup_3): Adjust calls to get_ref_base_and_extent.
6561 Punt on storage order barriers if necessary.
6562 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add REVERSE.
6563 * tree-ssa-structalias.c (get_constraint_for_component_ref): Adjust
6564 call to get_ref_base_and_extent.
6565 (do_structure_copy): Likewise.
6566 * tree-vect-data-refs.c (vect_check_gather): Adjust call to
6567 get_inner_reference.
6568 (vect_analyze_data_refs): Likewise. Bail out if reverse storage order.
6569 * tsan.c (instrument_expr): Adjust call to get_inner_reference.
6570 * ubsan.c (instrument_bool_enum_load): Likewise.
6571 (instrument_object_size): Likewise.
6572 * var-tracking.c (track_expr_p): Adjust call to
6573 get_ref_base_and_extent.
6574 * config/mips/mips.c (r10k_safe_mem_expr_p): Adjust call to
6575 get_inner_reference.
6576 * config/s390/s390.c (s390_expand_atomic): Adjust call to
6578 * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust call to
6580 * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Likewise.
6582 2015-11-07 Eric Botcazou <ebotcazou@adacore.com>
6584 * config/sparc/sparc.opt (mfix-at697f): Add final period.
6586 2015-11-07 Segher Boessenkool <segher@kernel.crashing.org>
6588 PR rtl-optimization/67864
6589 * common/config/i386/i386-common.c (ix86_option_optimization_table)
6590 <OPT_freorder_blocks_algorithm_>: Use REORDER_BLOCKS_ALGORITHM_STC
6593 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
6595 * trans-mem.c (is_tm_pure_call): Use gimple_call_flags for
6598 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
6600 * builtins.def: #undef DEF_BUILTIN and DEF_BUILTIN_CHKP
6601 * builtins.c, genmatch.c, tree-core.h: Don't undef them here.
6603 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
6605 * internal-fn.def: #undef DEF_INTERNAL_FN at the end.
6606 * internal-fn.c: Don't undef it here.
6607 * tree-core.h: Likewise.
6609 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
6611 * builtins.c (fold_builtin_nan): Delete.
6612 (fold_builtin_memcmp): Remove case where both arguments are constant.
6613 (fold_builtin_strcmp, fold_builtin_strncmp): Likewise.
6614 (fold_builtin_strspn, fold_builtin_strcspn): Likewise.
6615 (fold_builtin_1): Remove BUILT_IN_NAN* handling.
6616 * fold-const-call.c: Include fold-const.h.
6617 (host_size_t_cst_p): New function.
6618 (build_cmp_result, fold_const_builtin_nan): Likewise.
6619 (fold_const_call_1): New function, split out from...
6620 (fold_const_call): ...here (for all three interfaces). Handle
6621 constant nan, nans, strlen, strcmp, strncmp, strspn and strcspn.
6623 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
6625 * builtins.c (fold_builtin_bitop, fold_builtin_bswap): Delete.
6626 (fold_builtin_1): Don't call them.
6627 * fold-const-call.c: Include tm.h.
6628 (fold_const_call_ss): New variant for integer-to-integer folds.
6629 (fold_const_call): Call it.
6631 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
6633 * builtins.c (fold_builtin_classify): Move constant cases to...
6634 * fold-const-call.c (fold_const_call_ss): ...here.
6636 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
6638 * builtins.h (c_getstr): Move to...
6639 * fold-const.h (c_getstr): ...here.
6640 * builtins.c (c_getstr): Move to...
6641 * fold-const.c (c_getstr): ...here.
6643 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
6645 * builtins.def (BUILTIN_RINT, BUILTIN_RINTF, BUILTIN_RINTL): Use
6646 ATTR_MATHFN_FPROUNDING rather than ATTR_MATHFN_FPROUNDING_ERRNO.
6648 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
6650 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Try to update
6651 the dominance info; free it if we can't.
6652 (pass_call_cdce::execute): Don't free the dominance info here.
6654 2015-11-06 Jeff Law <law@redhat.com>
6656 * tree-ssa-threadedge.c (dummy_simplify): Remove.
6657 (thread_around_empty_blocks): Remove backedge_seen_p argument.
6658 If we thread to a backedge, then return false. Update recursive
6659 call to eliminate backedge_seen_p argument.
6660 (thread_through_normal_block): Remove backedge_seen_p argument.
6661 Remove backedge_seen_p argument from calls to
6662 thread_around_empty_blocks. Remove checks on backedge_seen_p.
6663 If we thread to a backedge, then return 0.
6664 (thread_across_edge): Remove bookkeeping for backedge_seen. Don't
6665 pass it to thread_through_normal_block or thread_through_empty_blocks.
6666 For joiner handling, if we see a backedge, do not try normal
6669 2015-11-06 Abderrazek Zaafrani <a.zaafrani@samsung.com>
6671 * graphite-optimize-isl.c (optimize_isl): Call isl_union_map_is_equal.
6672 * graphite-poly.c (new_scop): Initialize original_schedule.
6673 (free_scop): Free original_schedule.
6674 * graphite-poly.h (struct scop): Add field original_schedule.
6675 * graphite-sese-to-poly.c (build_scop_original_schedule): New.
6676 (build_poly_scop): Call build_scop_original_schedule.
6678 2015-11-06 Abderrazek Zaafrani <a.zaafrani@samsung.com>
6680 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
6681 (build_pbb_minimal_scattering_polyhedrons): New.
6682 (build_scop_scattering): Remove.
6683 (build_scop_minimal_scattering): New.
6684 (build_scop_scattering): Call build_pbb_minimal_scattering_polyhedrons.
6685 (build_poly_scop): Call build_scop_minimal_scattering.
6687 2015-11-06 Jeff Law <law@redhat.com>
6689 * cfg-flags.def (IGNORE): New edge flag.
6690 * tree-vrp.c (identify_jump_threads): Mark and clear edges
6691 scheduled for removal with EDGE_IGNORE around call into
6692 jump threader. Do no thread across edges with EDGE_IGNORE,
6693 but do allow threading across those with EDGE_DFS_BACK.
6695 2015-11-06 David Wohlferd <dw@LimeGreenSocks.com>
6697 * doc/md.texi (multi-alternative constraints): Don't document
6698 alternatives inherently tied to reload for the user documentation.
6700 2015-11-06 Michael Collison <michael.collison@linaro.org>
6701 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6704 2015-08-01 Michael Collison <michael.collison@linaro.org
6705 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6707 * config/arm/arm.md (*arm_smin_cmp): New pattern.
6708 (*arm_umin_cmp): Likewise.
6710 2015-11-06 Jakub Jelinek <jakub@redhat.com>
6712 * gimplify.c (gimplify_omp_ordered): Fix up diagnostics wording.
6713 * omp-low.c (check_omp_nesting_restrictions): Update for the
6714 various new OpenMP 4.5 nesting restrictions, clarified
6715 nesting glossary, closely nested region relationship clarified
6716 to mean explicit or implicit parallel regions (target/teams),
6717 use %</%> or %qs where appropriate.
6719 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
6720 Sebastian Pop <s.pop@samsung.com>
6722 * graphite-scop-detection.c (loop_is_valid_scop): Call
6723 optimize_loop_nest_for_speed_p.
6725 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
6726 Sebastian Pop <s.pop@samsung.com>
6728 * graphite-optimize-isl.c (optimize_isl): Call
6729 isl_options_set_schedule_maximize_band_depth.
6731 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
6732 Sebastian Pop <s.pop@samsung.com>
6734 * graphite-scop-detection.c (scop_detection::merge_sese): Entry
6735 and exit edges should not be a part of irreducible loop.
6736 (scop_detection::can_represent_loop_1): Loops should not be
6738 (scop_detection::harmful_stmt_in_region): All the basic block
6739 should belong to reducible loops.
6741 2015-11-06 Christophe Lyon <christophe.lyon@linaro.org>
6743 * config/aarch64/aarch64-simd-builtins.def: Update builtins
6744 tables: add tbl3v16qi, qtbl[34]*, tbx4v16qi, qtbx[34]*.
6745 * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): Rename to...
6746 (aarch64_tbl3<mode>) ... this, which supports v16qi too.
6747 (aarch64_tbx4v8qi): Rename to...
6748 aarch64_tbx4<mode>): ... this.
6749 (aarch64_qtbl3<mode>): New pattern.
6750 (aarch64_qtbx3<mode>): New pattern.
6751 (aarch64_qtbl4<mode>): New pattern.
6752 (aarch64_qtbx4<mode>): New pattern.
6753 * config/aarch64/arm_neon.h (vqtbl2_s8, vqtbl2_u8, vqtbl2_p8)
6754 (vqtbl2q_s8, vqtbl2q_u8, vqtbl2q_p8, vqtbl3_s8, vqtbl3_u8)
6755 (vqtbl3_p8, vqtbl3q_s8, vqtbl3q_u8, vqtbl3q_p8, vqtbl4_s8)
6756 (vqtbl4_u8, vqtbl4_p8, vqtbl4q_s8, vqtbl4q_u8, vqtbl4q_p8)
6757 (vqtbx2_s8, vqtbx2_u8, vqtbx2_p8, vqtbx2q_s8, vqtbx2q_u8)
6758 (vqtbx2q_p8, vqtbx3_s8, vqtbx3_u8, vqtbx3_p8, vqtbx3q_s8)
6759 (vqtbx3q_u8, vqtbx3q_p8, vqtbx4_s8, vqtbx4_u8, vqtbx4_p8)
6760 (vqtbx4q_s8, vqtbx4q_u8, vqtbx4q_p8): Rewrite using builtin
6763 2015-11-06 Mike Stump <mikestump@comcast.net>
6766 * dwarf2out.c (get_full_len): Return a value based upon the actual
6767 precision needed for the value.
6768 (add_const_value_attribute): Use a maximal wide-int for
6769 CONST_WIDE_INTs, not VOIDmode.
6770 (output_die): Don't ever output NULL with printf.
6772 * rtl.h (get_precision of rtx_mode_t): Ensure we never process
6773 BLKmode nor VOIDmode values.
6775 2015-11-06 David Malcolm <dmalcolm@redhat.com>
6777 * diagnostic-color.c (color_dict): Eliminate "caret"; add "range1"
6779 (parse_gcc_colors): Update comment to describe default GCC_COLORS.
6780 * diagnostic-core.h (warning_at_rich_loc): New declaration.
6781 (error_at_rich_loc): New declaration.
6782 (permerror_at_rich_loc): New declaration.
6783 (inform_at_rich_loc): New declaration.
6784 * diagnostic-show-locus.c (adjust_line): Delete.
6785 (struct point_state): New struct.
6786 (class colorizer): New class.
6787 (class layout_point): New class.
6788 (class layout_range): New class.
6789 (struct line_bounds): New.
6790 (class layout): New class.
6791 (colorizer::colorizer): New ctor.
6792 (colorizer::~colorizer): New dtor.
6793 (layout::layout): New ctor.
6794 (layout::print_source_line): New method.
6795 (layout::print_annotation_line): New method.
6796 (layout::get_state_at_point): New method.
6797 (layout::get_x_bound_for_row): New method.
6798 (diagnostic_show_locus): Reimplement in terms of class layout.
6799 (diagnostic_print_caret_line): Delete.
6800 * diagnostic.c (diagnostic_initialize): Replace
6801 MAX_LOCATIONS_PER_MESSAGE with rich_location::MAX_RANGES.
6802 (diagnostic_set_info_translated): Convert param from location_t
6803 to rich_location *. Eliminate calls to set_location on the
6804 message in favor of storing the rich_location ptr there.
6805 (diagnostic_set_info): Convert param from location_t to
6807 (diagnostic_build_prefix): Break out array into...
6808 (diagnostic_kind_color): New variable.
6809 (diagnostic_get_color_for_kind): New function.
6810 (diagnostic_report_diagnostic): Colorize the option_text
6811 using the color for the severity.
6812 (diagnostic_append_note): Update for change in signature of
6813 diagnostic_set_info.
6814 (diagnostic_append_note_at_rich_loc): New function.
6815 (emit_diagnostic): Update for change in signature of
6816 diagnostic_set_info.
6818 (inform_at_rich_loc): New function.
6819 (inform_n): Update for change in signature of diagnostic_set_info.
6820 (warning): Likewise.
6821 (warning_at): Likewise.
6822 (warning_at_rich_loc): New function.
6823 (warning_n): Update for change in signature of diagnostic_set_info.
6824 (pedwarn): Likewise.
6825 (permerror): Likewise.
6826 (permerror_at_rich_loc): New function.
6827 (error): Update for change in signature of diagnostic_set_info.
6828 (error_n): Likewise.
6829 (error_at): Likewise.
6830 (error_at_rich_loc): New function.
6831 (sorry): Update for change in signature of diagnostic_set_info.
6832 (fatal_error): Likewise.
6833 (internal_error): Likewise.
6834 (internal_error_no_backtrace): Likewise.
6835 (source_range::debug): New function.
6836 * diagnostic.h (struct diagnostic_info): Eliminate field
6837 "override_column". Add field "richloc".
6838 (struct diagnostic_context): Add field "colorize_source_p".
6839 (diagnostic_override_column): Delete.
6840 (diagnostic_set_info): Convert param from location_t to
6842 (diagnostic_set_info_translated): Likewise.
6843 (diagnostic_append_note_at_rich_loc): New function.
6844 (diagnostic_num_locations): New function.
6845 (diagnostic_expand_location): Get the location from the
6847 (diagnostic_print_caret_line): Delete.
6848 (diagnostic_get_color_for_kind): New declaration.
6849 * genmatch.c (linemap_client_expand_location_to_spelling_point): New.
6850 (error_cb): Update for change in signature of "error" callback.
6851 (fatal_at): Likewise.
6852 (warning_at): Likewise.
6853 * input.c (linemap_client_expand_location_to_spelling_point): New.
6854 * pretty-print.c (text_info::set_range): New method.
6855 (text_info::get_location): New method.
6856 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): Eliminate this macro.
6857 (struct text_info): Eliminate "locations" array in favor of
6858 "m_richloc", a rich_location *.
6859 (textinfo::set_location): Add a "caret_p" param, and reimplement
6860 in terms of a call to set_range.
6861 (textinfo::get_location): Eliminate inline implementation in favor of
6862 an out-of-line reimplementation.
6863 (textinfo::set_range): New method.
6864 * rtl-error.c (diagnostic_for_asm): Update for change in signature
6865 of diagnostic_set_info.
6866 * tree-diagnostic.c (default_tree_printer): Update for new
6867 "caret_p" param for textinfo::set_location.
6868 * tree-pretty-print.c (percent_K_format): Likewise.
6870 2015-11-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6873 2015-11-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6874 * config/aarch64/aarch64.c
6875 (aarch64_can_use_per_function_literal_pools_p): New.
6876 (aarch64_use_blocks_for_constant_p): Adjust declaration
6877 and use aarch64_can_use_function_literal_pools_p.
6878 (aarch64_select_rtx_section): Update.
6880 2015-11-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6882 * config/arm/arm-ldmstm.ml: Rewrite to generate unified asm templates.
6883 * config/arm/arm.c (arm_asm_trampoline_template): Make unified asm safe.
6884 (arm_output_multireg_pop): Likewise.
6885 (output_move_double): Likewise.
6886 (output_move_quad): Likewise.
6887 (output_return_instruction): Likewise.
6888 (arm_print_operand): Remove support for %( and %. print modifiers.
6889 (arm_output_shift): Make unified asm.
6890 (arm_declare_function_name): Likewise.
6891 * config/arm/arm.h (TARGET_UNIFIED_ASM): Delete.
6892 (ASM_APP_OFF): Adjust.
6893 (ASM_OUTPUT_REG_PUSH): Undo special casing for TARGET_ARM.
6894 (ASM_OUTPUT_REG_POP): Likewise.
6895 * config/arm/arm.md: Adjust uses of %., %(, %)
6896 * config/arm/sync.md: Likewise.
6897 * config/arm/thumb2.md: Likewise.
6898 * config/arm/ldmstm.md: Regenerate.
6899 * config/arm/arm.opt (masm-unified-syntax): Do not special case Thumb.
6900 * doc/invoke.texi (masm-unified-syntax): Update documentation.
6902 2015-11-06 David Malcolm <dmalcolm@redhat.com>
6904 * input.c (dump_line_table_statistics): Dump stats on adhoc table.
6906 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
6908 * tree-core.h (size_type_kind): Remove OEP_CONSTANT_ADDRESS_OF and
6909 add OEP_MATCH_SIDE_EFFECTS.
6910 * fold-const.c (operand_equal_p): Update documentation; handle
6911 OEP_MATCH_SIDE_EFFECTS.
6912 * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Use
6913 OEP_MATCH_SIDE_EFFECTS.
6915 2015-11-06 Benedikt Huber <benedikt.huber@theobroma-systems.com>
6916 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
6918 * config/aarch64/aarch64-builtins.c: Builtins for rsqrt and rsqrtf.
6919 * config/aarch64/aarch64-protos.h: Declare.
6920 * config/aarch64/aarch64-simd.md: Matching expressions for frsqrte and
6922 * config/aarch64/aarch64-tuning-flags.def: Added recip_sqrt.
6923 * config/aarch64/aarch64.c: New functions. Emit rsqrt estimation
6924 code when applicable.
6925 * config/aarch64/aarch64.md: Added enum entries.
6926 * config/aarch64/aarch64.opt: Added option -mlow-precision-recip-sqrt.
6928 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
6932 * ipa-polymorphic-call.c
6933 (ipa_polymorphic_call_context::restrict_to_inner_type): Fix ordering
6934 issue when offset is out of range.
6935 (contains_type_p): Fix out of range check, clear dynamic flag.
6937 2015-11-06 Arnout Vandecappelle <arnout@mind.be>
6939 * config.gcc (e6500): Fix cpu_is_64bit typo.
6941 2015-11-06 Alan Lawrence <alan.lawrence@arm.com>
6943 * tree-sra.c (completely_scalarize): Properly handle negative array
6944 indices using offset_int.
6946 2015-11-06 Richard Biener <rguenther@suse.de>
6948 * alloc-pool.h (object_allocator::allocate): Default-initialize
6951 2015-11-06 Richard Biener <rguenther@suse.de>
6953 * tree-ssa-sccvn.c (class sccvn_dom_walker): Add destructor.
6954 * lra.c (init_reg_info): Truncate copy_vec instead of
6955 re-allocating a new one and leaking the old.
6956 * ipa-inline-analysis.c (estimate_function_body_sizes): Free
6958 * sched-deps.c (sched_deps_finish): Free the dn/dl pools.
6959 * postreload-gcse.c (free_mem): Free modify_mem_list and
6960 canon_modify_mem_list.
6962 2015-11-06 Ilya Enkovich <enkovich.gnu@gmail.com>
6964 PR tree-optimization/68145
6965 * tree-vect-stmts.c (vectorizable_operation): Fix
6966 determination for booleans.
6968 2015-11-06 Tom de Vries <tom@codesourcery.com>
6970 * tree-cfg.c (gimple_split_block_before_cond_jump): Split before
6971 cond_jump, instead of split after last nondebug insn before cond_jump.
6972 * tree-parloops.c (transform_to_exit_first_loop_alt): Verify ssa before
6975 2015-11-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6978 * config/arm/aarch-common.c (aarch_accumulator_forwarding): Strip
6979 subregs from accumulator and make sure it's a register.
6981 2015-11-06 Simon Dardis <simon.dardis@imgtec.com>
6983 * config/mips/loongson.md (vec_loongson_extract_lo_<mode>): New, extract
6985 (reduc_uplus_<mode>): Remove.
6986 (reduc_plus_scal_<mode>): Rename from reduc_splus_<mode>, Use vec
6987 loongson_extract_lo_<mode>.
6988 (reduc_smax_scal_<mode>, reduc_smin_scal_<mode>): Rename from
6989 reduc_smax_<mode>, reduc_smax_<mode>, use vec
6990 loongson_extract_lo_<mode>.
6991 (reduc_umax_scal_<mode>, reduc_umin_scal_<mode>): Rename.
6993 2015-11-06 Richard Biener <rguenther@suse.de>
6995 * tree-vectorizer.h (struct _bb_vec_info): Add region_begin/end
6997 (vect_stmt_in_region_p): Declare.
6998 * tree-vect-slp.c (new_bb_vec_info): Work on a region.
6999 (destroy_bb_vec_info): Likewise.
7000 (vect_bb_slp_scalar_cost): Use vect_stmt_in_region_p.
7001 (vect_get_and_check_slp_defs): Likewise.
7002 (vect_slp_analyze_bb_1): Refactor to make it work on sub-BBs.
7003 (vect_slp_bb): Likewise.
7004 * tree-vect-patterns.c (vect_same_loop_or_bb_p): Implement
7005 in terms of vect_stmt_in_region_p.
7006 (vect_pattern_recog): Iterate over the BB region.
7007 * tree-vect-stmts.c (vect_is_simple_use): Use vect_stmt_in_region_p.
7008 * tree-vectorizer.c (vect_stmt_in_region_p): New function.
7009 (pass_slp_vectorize::execute): Initialize all stmt UIDs to -1.
7010 * config/i386/i386.c: Include gimple-iterator.h.
7011 * config/aarch64/aarch64.c: Likewise.
7013 2015-11-06 Alexandre Oliva <aoliva@redhat.com>
7015 PR rtl-optimization/67753
7016 PR rtl-optimization/64164
7017 * function.c (assign_parm_setup_block): Avoid allocating a
7018 stack slot if we don't have an ABI-reserved one. Emit the
7019 copy to target_reg in the conversion seq if the copy from
7020 entry_parm is in it too. Don't use the conversion seq to copy
7021 a PARALLEL to a REG or a CONCAT.
7023 2015-11-06 Richard Biener <rguenther@suse.de>
7025 * tree-hash-traits.h (tree_operand_hash): Provide equal, not
7028 2015-11-05 Cesar Philippidis <cesar@codesourcery.com>
7029 Thomas Schwinge <thomas@codesourcery.com>
7030 James Norris <jnorris@codesourcery.com>
7033 * gimplify.c (gimplify_scan_omp_clauses): Add support for
7034 OMP_CLAUSE_TILE. Update handling of OMP_CLAUSE_INDEPENDENT.
7035 (gimplify_adjust_omp_clauses): Likewise.
7036 * omp-low.c (scan_sharing_clauses): Add support for OMP_CLAUSE_TILE.
7037 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_TILE.
7038 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_TILE.
7039 * tree.c (omp_clause_num_ops): Add an entry for OMP_CLAUSE_TILE.
7040 (omp_clause_code_name): Likewise.
7041 (walk_tree_1): Handle OMP_CLAUSE_TILE.
7042 * tree.h (OMP_TILE_LIST): New macro.
7044 2015-11-05 Martin Sebor <msebor@redhat.com>
7047 * doc/invoke.texi (-Wplacement-new): Document new option.
7049 2015-11-05 Alan Lawrence <alan.lawrence@arm.com>
7051 PR tree-optimization/65963
7052 * tree-scalar-evolution.c (interpret_rhs_expr): Try to handle
7053 LSHIFT_EXPRs as equivalent unsigned MULT_EXPRs.
7055 2015-11-05 James Greenhalgh <james.greenhalgh@arm.com>
7057 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): New.
7058 (noce_convert_multiple_sets): Likewise.
7059 (noce_process_if_block): Call them.
7061 2015-11-05 Nathan Sidwell <nathan@codesourcery.com>
7063 * gimple-fold.c: Include omp-low.h.
7064 (fold_internal_goacc_dim): New.
7065 (gimple_fold_call): Call it.
7067 2015-11-05 Jakub Jelinek <jakub@redhat.com>
7068 Ilya Verbin <ilya.verbin@intel.com>
7071 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR): Remove.
7072 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): New.
7073 * cgraph.h (enum cgraph_simd_clone_arg_type): Add
7074 SIMD_CLONE_ARG_TYPE_LINEAR_REF_VARIABLE_STEP,
7075 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP and
7076 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP.
7077 (struct cgraph_simd_clone_arg): Adjust comment.
7078 * omp-builtins.def (BUILT_IN_GOMP_TARGET): Rename GOMP_target_41
7079 to GOMP_target_ext. Add num_teams and thread_limit arguments.
7080 (BUILT_IN_GOMP_TARGET_DATA): Rename GOMP_target_data_41
7081 to GOMP_target_data_ext.
7082 (BUILT_IN_GOMP_TARGET_UPDATE): Rename GOMP_target_update_41
7083 to GOMP_target_update_ext.
7084 (BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_START,
7085 BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_START,
7086 BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_NEXT,
7087 BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_NEXT,
7088 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_START,
7089 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_START,
7090 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_NEXT,
7091 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_NEXT,
7092 BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_DYNAMIC,
7093 BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_GUIDED): New built-ins.
7094 * tree-core.h (enum omp_clause_schedule_kind): Add
7095 OMP_CLAUSE_SCHEDULE_MASK, OMP_CLAUSE_SCHEDULE_MONOTONIC,
7096 OMP_CLAUSE_SCHEDULE_NONMONOTONIC and change
7097 OMP_CLAUSE_SCHEDULE_LAST value.
7098 * tree.def (OMP_SIMD, CILK_SIMD, CILK_FOR, OMP_DISTRIBUTE,
7099 OMP_TASKLOOP, OACC_LOOP): Add OMP_FOR_ORIG_DECLS argument.
7100 * tree.h (OMP_FOR_ORIG_DECLS): Use OMP_LOOP_CHECK instead of
7101 OMP_FOR_CHECK. Remove comment.
7102 * tree-pretty-print.c (dump_omp_clause): Handle
7103 GOMP_MAP_FIRSTPRIVATE_REFERENCE and GOMP_MAP_ALWAYS_POINTER.
7104 Simplify. Print schedule clause modifiers.
7105 * tree-vect-stmts.c (vectorizable_simd_clone_call): Add
7106 SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_VARIABLE_STEP
7108 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_ALWAYS_TO.
7109 (omp_default_clause): Tweak for
7110 private/firstprivate/is_device_ptr variables on target
7111 construct and use_device_ptr on target data.
7112 (omp_check_private): Likewise.
7113 (omp_notice_variable): For references check whether what it refers
7114 to has mappable type, rather than the reference itself.
7115 (omp_is_private): Diagnose linear iteration variables on non-simd
7117 (omp_no_lastprivate): Return true only for Fortran.
7118 (gimplify_scan_omp_clauses): Or in GOVD_MAP_ALWAYS_TO for
7119 GOMP_MAP_ALWAYS_TO or GOMP_MAP_ALWAYS_TOFROM kinds.
7120 Add support for GOMP_MAP_FIRSTPRIVATE_REFERENCE and
7121 GOMP_MAP_ALWAYS_POINTER, remove old handling of structure element
7122 based array sections. Use GOMP_MAP_ALWAYS_P. Fix up handling of
7123 lastprivate and linear when combined with distribute. Gimplify
7124 variable low-bound for array reduction. Look through
7125 POINTER_PLUS_EXPR when looking for ADDR_EXPR for array section
7127 (gimplify_adjust_omp_clauses_1): For implicit references to
7128 variables with reference type and when not ref to scalar or
7129 ref to pointer, map what they refer to using tofrom and
7130 use GOMP_MAP_FIRSTPRIVATE_REFERENCE for the reference.
7131 (gimplify_adjust_omp_clauses): Remove GOMP_MAP_ALWAYS_POINTER
7132 from target exit data. Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE.
7133 Drop OMP_CLAUSE_MAP_PRIVATE support. Use GOMP_MAP_ALWAYS_P.
7134 Diagnose the same var on both firstprivate and lastprivate on
7135 distribute construct.
7136 (gimplify_omp_for): Fix up handling of predetermined
7137 lastprivate or linear iter vars when combined with distribute.
7138 (find_omp_teams, computable_teams_clause, optimize_target_teams): New
7140 (gimplify_omp_workshare): Call optimize_target_teams.
7141 * omp-low.c (struct omp_region): Add sched_modifiers field.
7142 (struct omp_for_data): Likewise.
7143 (omp_any_child_fn_dumped): New variable.
7144 (extract_omp_for_data): Fill in sched_modifiers, and mask out
7145 OMP_CLAUSE_SCHEDULE_KIND bits outside of OMP_CLAUSE_SCHEDULE_MASK
7147 (determine_parallel_type): Use only OMP_CLAUSE_SCHEDULE_MASK
7148 bits of OMP_CLAUSE_SCHED_KIND.
7149 (scan_sharing_clauses): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE,
7150 drop OMP_CLAUSE_MAP_PRIVATE support. Look through POINTER_PLUS_EXPR
7151 for array section reductions.
7152 (add_taskreg_looptemp_clauses): Add one extra _looptemp_ clause even
7153 for distribute parallel for, if there are lastprivate clauses on the
7155 (lower_rec_input_clauses): Handle non-zero low-bound on array
7157 (lower_reduction_clauses): Likewise.
7158 (lower_send_clauses): Look through POINTER_PLUS_EXPR
7159 for array section reductions.
7160 (expand_parallel_call): Use nonmonotonic entrypoints for
7161 nonmonotonic: dynamic/guided.
7162 (expand_omp_taskreg): Call assign_assembler_name_if_neeeded on
7163 child_fn if current_function_decl has assembler name set, but child_fn
7164 does not. Dump the header and IL of the child function when not in SSA
7166 (expand_omp_target): Likewise. Pass num_teams and thread_limit
7167 arguments to BUILT_IN_GOMP_TARGET.
7168 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
7169 Initialize the extra _looptemp_ clause to fd->loop.n2.
7170 (expand_omp_for): Use nonmonotonic entrypoints for
7171 nonmonotonic: dynamic/guided. Initialize region->sched_modifiers.
7172 (expand_omp): Clear omp_any_child_fn_dumped. Dump function header
7173 again if we have dumped any child functions.
7174 (lower_omp_for_lastprivate): Determine the right count variable
7175 for distribute simd, or distribute parallel for{, simd}.
7176 (lower_omp_target): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE
7177 and GOMP_MAP_ALWAYS_POINTER. Drop OMP_CLAUSE_MAP_PRIVATE
7179 (simd_clone_clauses_extract): Handle variable step
7180 for references and arguments passed by reference.
7181 (simd_clone_mangle): Mangle ref/uval/val variable steps.
7182 (simd_clone_adjust_argument_types): Handle
7183 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP like
7184 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
7185 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP like
7186 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
7187 (simd_clone_linear_addend): New function.
7188 (simd_clone_adjust): Handle variable step like similarly
7189 to constant step, use simd_clone_linear_addend to determine
7190 the actual step at runtime.
7192 2015-11-05 Nathan Sidwell <nathan@codesourcery.com>
7194 * target.def (goacc.dim_limit): New hook.
7195 * targhooks.h (default_goacc_dim_limit): Declare.
7196 * doc/tm.texi.in (TARGET_GOACC_DIM_LIMIT): Add.
7197 * doc/tm.texi: Rebuilt.
7198 * omp-low.h (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): Declare.
7199 * omp-low.c (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): New.
7200 (default_goacc_dim_limit): New.
7201 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
7202 (nvptx_goacc_dim_limit) New.
7203 (TARGET_GOACC_DIM_LIMIT): Override.
7204 * tree-vrp.c: Include omp-low.h, target.h.
7205 (extract_range_basic): Add handling for IFN_GOACC_DIM_SIZE &
7208 2015-11-05 Ilya Enkovich <enkovich.gnu@gmail.com>
7210 * tree-vect-generic.c (do_compare): Use -1 for true
7211 result instead of 1.
7213 2015-11-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7215 * config/aarch64/aarch64.c
7216 (aarch64_can_use_per_function_literal_pools_p): New.
7217 (aarch64_use_blocks_for_constant_p): Adjust declaration
7218 and use aarch64_can_use_function_literal_pools_p.
7219 (aarch64_select_rtx_section): Update.
7221 2015-11-05 Ilya Enkovich <enkovich.gnu@gmail.com>
7223 * targhooks.c (default_get_mask_mode): Use BLKmode in
7224 case target doesn't support required vector mode.
7225 * stor-layout.c (layout_type); Check for BLKmode.
7227 2015-11-04 Aditya Kumar <aditya.k7@samsung.com>
7228 Sebastian Pop <s.pop@samsung.com>
7230 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
7231 Remove use of parameter_rename_map.
7233 (copy_internal_parameters): Remove.
7234 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
7235 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
7236 (free_sese_info): Do not free parameter_rename_map.
7237 (set_rename): Do not use parameter_rename_map.
7238 (rename_uses): Update call to set_rename.
7239 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
7240 * sese.h (parameter_rename_map_t): Remove.
7241 (struct sese_info_t): Remove field parameter_rename_map.
7243 2015-11-04 Aditya Kumar <aditya.k7@samsung.com>
7244 Sebastian Pop <s.pop@samsung.com>
7246 * graphite-isl-ast-to-gimple.c: Include tree-cfg.h.
7247 (translate_isl_ast_node_user): Add more dumps: call print_loops_bb.
7248 * graphite-scop-detection.c (dot_all_scops_1): Moved out of
7249 anonymous namespace.
7250 * graphite-sese-to-poly.c (ssa_name_version_typesize): Remove.
7251 (isl_id_for_pbb): Use a buffer of size 10.
7252 (isl_id_for_ssa_name): Same.
7253 * sese.c (set_rename): Add more dumps.
7255 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
7257 * omp-low.c (struct omp_context): Remove reduction_map field.
7258 (lookup_oacc_reduction, maybe_lookup_oacc_reduction): Delete.
7259 (new_omp_context, delete_omp_context, scan_omp_target): Remove
7260 reduction_map handling.
7261 (lower_omp_target): Remove obsolete openacc reduction handling.
7263 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
7265 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add checking.
7267 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
7268 Cesar Philippidis <cesar@codesourcery.com>
7270 * config/nvptx/nvptx.c: Include gimple headers.
7271 (worker_red_size, worker_red_align, worker_red_name,
7272 worker_red_sym): New.
7273 (nvptx_option_override): Initialize worker reduction buffer.
7274 (nvptx_file_end): Write out worker reduction buffer var.
7275 (nvptx_expand_shuffle, nvptx_expand_worker_addr,
7276 nvptx_expand_cmp_swap): New builtin expanders.
7277 (enum nvptx_builtins): New.
7278 (nvptx_builtin_decls): New.
7279 (nvptx_builtin_decl, nvptx_init_builtins, nvptx_expand_builtin): New
7280 (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
7281 (nvptx_get_worker_red_addr, nvptx_generate_vector_shuffle,
7282 nvptx_lockless_update): New helpers.
7283 (nvptx_goacc_reduction_setup, nvptx_goacc_reduction_init,
7284 nvptx_goacc_reduction_fini, nvptx_goacc_reduction_teaddown): New.
7285 (nvptx_goacc_reduction): New.
7286 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN,
7287 TARGET_BUILTIN_DECL): Override.
7288 (TARGET_GOACC_REDUCTION): Override.
7290 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
7291 Cesar Philippidis <cesar@codesourcery.com>
7293 * internal-fn.def (GOACC_REDUCTION): New.
7294 * internal-fn.h (enum ifn_goacc_reduction_kind): New.
7295 * internal-fn.c (expand_GOACC_REDUCTION): New.
7296 * target.def (goacc.reduction): New OpenACC hook.
7297 * targhooks.h (default_goacc_reduction): Declare.
7298 * doc/tm.texi.in: Add TARGET_GOACC_REDUCTION.
7299 * doc/tm.texi: Rebuilt.
7300 * omp-low.c (oacc_get_reduction_array_id, oacc_max_threads,
7301 scan_sharing_clauses): Remove oacc reduction handling here.
7302 (lower_rec_input_clauses): Don't handle OpenACC reductions here.
7303 (oacc_lower_reduction_var_helper): Delete.
7304 (lower_oacc_reductions): New.
7305 (lower_reduction_clauses): Don't handle OpenACC reductions here.
7306 (lower_oacc_head_tail): Call lower_oacc_reductions.
7307 (oacc_gimple_assign, oacc_init_reduction_array,
7308 oacc_initialize_reduction_data, oacc_finalize_reduction_data,
7309 oacc_process_reduction_data): Delete.
7310 (lower_omp_target): Remove old OpenACC reduction handling. Insert
7311 dummy OpenACC gang reduction for reductions at outer level.
7312 (oacc_loop_xform_head_tail): Transform IFN_GOACC_REDUCTION.
7313 (default_goacc_reduction): New.
7314 (execute_oacc_device_lower): Handle IFN_GOACC_REDUCTION.
7316 2015-11-04 Martin Liska <mliska@suse.cz>
7318 * cgraphunit.c (cgraph_node::expand_thunk): Call
7319 allocate_struct_function before init_function_start.
7320 (cgraph_node::expand): Use push_cfun and pop_cfun.
7321 * config/i386/i386.c (ix86_code_end): Call
7322 allocate_struct_function before init_function_start.
7323 * config/rs6000/rs6000.c (rs6000_code_end): Likewise.
7324 * function.c (init_function_start): Move preamble to all
7326 * passes.c (do_per_function_toporder): Use push_cfun and pop_cfun.
7327 (execute_one_pass): Handle newly added TODO_discard_function.
7328 (execute_pass_list_1): Terminate if cfun equals to NULL.
7329 (execute_pass_list): Do not push and pop cfun, expect that
7331 * tree-pass.h (TODO_discard_function): Define.
7333 2015-11-04 Mikhail Maltsev <maltsevm@gmail.com>
7335 * cfganal.c (inverted_post_order_compute): Remove conditional
7336 compilation, use flag_checking.
7337 * config.in: Regenerate.
7338 * configure: Regenerate.
7339 * configure.ac: Remove ENABLE_CHECKING.
7340 * genconditions.c: Do not #undef ENABLE_CHECKING.
7341 * sese.h (bb_in_region): Comment out broken check.
7342 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa_1): Remove
7343 conditional compilation, use flag_checking.
7345 2015-11-04 Tom de Vries <tom@codesourcery.com>
7347 PR tree-optimization/67742
7348 * tree-ssa-structalias.c (struct fieldoff): Add restrict_pointed_type
7350 (push_fields_onto_fieldstack): Handle restrict_pointed_type field.
7351 (create_variable_info_for_1): Add and handle handle_param parameter.
7352 Add restrict handling.
7353 (create_variable_info_for): Call create_variable_info_for_1 with extra
7355 (make_param_constraints): Drop restrict_name parameter. Ignore
7356 vi->only_restrict_pointers.
7357 (intra_create_variable_infos): Call create_variable_info_for_1 with
7358 extra arg. Remove restrict handling. Call make_param_constraints with
7361 2015-11-04 Tom de Vries <tom@codesourcery.com>
7363 * tree-ssa-structalias.c (create_variable_info_for_1): Use decl_type
7366 2015-11-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7368 * config/arm/coff.h: Remove.
7370 2015-11-03 Eric Botcazou <ebotcazou@adacore.com>
7372 * gimple-expr.c (useless_type_conversion_p): Reinstate type canonical
7373 check for aggregate types and beef up comment for mode check.
7375 2015-11-03 Richard Biener <rguenther@suse.de>
7377 * tree-vect-data-refs.c (vect_analyze_data_refs): Do not collect
7378 data references here.
7379 * tree-vect-loop.c: Include cgraph.h.
7380 (vect_analyze_loop_2): Collect data references here.
7381 * tree-vect-slp.c (find_bb_location): Inline ...
7382 (vect_slp_bb): ... here. Renamed from vect_slp_analyze_bb.
7383 Factor in vect_slp_transform_bb.
7384 (vect_slp_transform_bb): Removed.
7385 (vect_slp_analyze_bb_1): Collect data references here.
7386 * tree-vectorizer.c (pass_slp_vectorize::execute): Call
7388 * tree-vectorizer.h (vect_slp_bb): Declare.
7389 (vect_slp_analyze_bb): Remove.
7390 (vect_slp_transform_bb): Remove.
7391 (find_bb_location): Remove.
7392 (vect_analyze_data_refs): Remove stmt count reference parameter.
7394 2015-11-03 Evgeny Stupachenko <evstupac@gmail.com>
7396 * multiple_target.c (create_dispatcher_calls): Add target check
7398 (create_target_clone): Change assembler name for versioned declarations.
7400 2015-11-03 Thomas Schwinge <thomas@codesourcery.com>
7401 Chung-Lin Tang <cltang@codesourcery.com>
7403 * builtins.def (DEF_GOMP_BUILTIN): Enable for flag_openacc.
7404 * omp-low.c (check_omp_nesting_restrictions): Allow
7405 GIMPLE_OMP_ATOMIC_LOAD, GIMPLE_OMP_ATOMIC_STORE inside OpenACC
7408 2015-11-03 Bilyan Borisov <bilyan.borisov@arm.com>
7410 * config/aarch64/aarch64-simd-builtins.def (fmulx): New.
7411 * config/aarch64/aarch64-simd.md (aarch64_fmulx<mode>): New.
7412 * config/aarch64/arm_neon.h (vmulx_f32): Rewrite to call fmulx
7414 (vmulxq_f32): Likewise.
7416 (vmulxq_f64): Rewrite to call fmulx builtin.
7417 (vmulxs_f32): Likewise.
7418 (vmulxd_f64): Likewise.
7419 (vmulx_lane_f32): Remove.
7420 * config/aarch64/iterators.md (UNSPEC): Add fmulx.
7422 2015-11-03 Alan Lawrence <alan.lawrence@arm.com>
7424 * config/aarch64/aarch64.md (*movhf_aarch64): Use
7425 aarch64_reg_or_fp_zero for second operand.
7427 2015-11-03 Alexandre Oliva <aoliva@redhat.com>
7429 * gimple-expr.c: Include hash-set.h and rtl.h.
7430 (mark_addressable_queue): New var.
7431 (mark_addressable): Factor actual marking into...
7432 (mark_addressable_1): ... this. Queue it up during expand.
7433 (mark_addressable_2): New.
7434 (flush_mark_addressable_queue): New.
7435 * gimple-expr.h (flush_mark_addressable_queue): Declare.
7436 * cfgexpand.c: Include gimple-expr.h.
7437 (pass_expand::execute): Flush mark_addressable queue.
7439 2015-11-02 Alexandre Oliva <aoliva@redhat.com>
7441 * tree-ssa-ifcombine.c (tree_ssa_ifcombine_bb_1): Factor out
7442 bb_no_side_effects_p tests...
7443 (tree_ssa_ifcombine_bb): ... here.
7445 PR tree-optimization/68083
7446 * tree-ssa-ifcombine.c: Include tree-ssa.h.
7447 (bb_no_side_effects_p): Test for undefined uses too.
7448 * tree-ssa.c (gimple_uses_undefined_value_p): New.
7449 * tree-ssa.h (gimple_uses_undefined_value_p): Declare.
7451 2015-11-02 Jeff Law <law@redhat.com>
7453 * tree-ssa-threadupdate.c (valid_jump_thread_path): Also detect
7454 cases where the loop latch edge is in the middle of an FSM path.
7456 2015-11-03 Tom de Vries <tom@codesourcery.com>
7458 * tree-ssa-structalias.c (make_restrict_var_constraints): Rename to ...
7459 (make_param_constraints): ... this. Add and handle restrict_name
7460 parameter. Handle is_full_var case.
7461 (intra_create_variable_infos): Use make_param_constraints.
7463 2015-11-03 Tom de Vries <tom@codesourcery.com>
7465 * tree-ssa-structalias.c (make_restrict_var_constraints): Replace
7466 make_copy_constraint call with make_constraint_from call.
7468 2015-11-02 Andreas Tobler <andreast@gcc.gnu.org>
7470 * config/rs6000/freebsd64.h (ASM_SPEC32): Adust spec to handle
7473 2015-11-02 Richard Sandiford <richard.sandiford@arm.com>
7475 * builtins.h (fold_fma): Move to fold-const-call.h.
7476 * builtins.c: Include fold-const-call.h.
7477 (mathfn_built_in_2): New function, split out from...
7478 (mathfn_built_in_1): ...here.
7479 (do_real_to_int_conversion, fold_const_builtin_pow)
7480 (fold_const_builtin_logb, fold_const_builtin_significand)
7481 (fold_const_builtin_load_exponent, do_mpfr_arg1, do_mpfr_arg2)
7482 (do_mpfr_arg3, do_mpfr_sincos, do_mpfr_bessel_n, do_mpc_arg1): Delete.
7483 (fold_builtin_sincos): Use fold_const_call to handle constants.
7484 (fold_builtin_1, fold_builtin_2, fold_builtin_3): Add explicit
7485 checks for ERROR_MARK. Use fold_const_call to handle constant
7486 folds for math functions.
7487 (fold_fma): Move to fold-const-call.c.
7488 * fold-const.c: Include fold-const-call.h.
7489 * Makefile.in (OBJS): Add fold-const-call.o.
7490 (PLUGIN_HEADERS): Add fold-const-call.h.
7491 * realmpfr.h (real_from_mpfr): Allow the format to be specified
7493 * realmpfr.c (real_from_mpfr): Likewise.
7494 * fold-const-call.h, fold-const-call.c: New files.
7496 2015-11-02 Julian Brown <julian@codesourcery.com>
7498 * config/arm/neon-testgen.ml (emit_epilogue): Remove extraneous
7499 brackets and semicolon.
7501 2015-11-02 Alan Lawrence <alan.lawrence@arm.com>
7504 2015-10-27 Alan Lawrence <alan.lawrence@arm.com>
7506 PR tree-optimization/65963
7507 * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
7508 LSHIFT_EXPRs as equivalent MULT_EXPRs.
7510 2015-11-02 Thomas Schwinge <thomas@codesourcery.com>
7513 * fold-const.c: Include "md5.h".
7515 2015-11-01 Jeff Law <law@redhat.com>
7517 * vmsdbgout.c: Revert unused header file reduction patch.
7519 * config/mcore/mcore.c: Include regs.h.
7521 2015-10-31 Segher Boessenkool <segher@kernel.crashing.org>
7523 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Rewrite.
7525 2015-10-31 Segher Boessenkool <segher@kernel.crashing.org>
7527 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Use the
7528 same condition for testing whether RS6000_PIC_OFFSET_TABLE_REGNUM is
7529 live as for using it elsewhere, for TARGET_MINIMAL_TOC.
7531 2015-10-31 Markus Trippelsdorf <markus@trippelsdorf.de>
7533 * ggc-common.c: Restore needed header for checking=release.
7535 2015-10-31 Tom de Vries <tom@codesourcery.com>
7537 * fold-const.c (fold_unary_loc): Tune POINTER_PLUS_EXPR folding.
7539 2015-10-31 Tom de Vries <tom@codesourcery.com>
7541 * tree-ssa-structalias.c (intra_create_variable_infos): Don't expect
7542 existing varinfo for arguments.
7544 2015-10-31 Tom de Vries <tom@codesourcery.com>
7546 * tree-ssa-structalias.c (ipa_pta_execute): Add extra arg to call to
7547 create_function_info_for. Dump constraints generated during
7548 create_function_info_for. Move intra_create_variable_infos call and
7549 function-return-values-escape bit to ...
7550 (create_function_info_for): ... here, and merge
7551 intra_create_variable_infos call with argument loop. Add and handle
7552 nonlocal_p parameter.
7554 2015-10-31 Tom de Vries <tom@codesourcery.com>
7556 * tree-ssa-structalias.c (create_function_info_for): Make sure prev_vi
7557 updating is alap, and seperated from preceding code. Make sure
7558 insert_vi_for_tree is seperated from surrounding code.
7560 2015-10-31 Tom de Vries <tom@codesourcery.com>
7562 * tree-ssa-structalias.c (ipa_pta_execute): Use make_copy_constraint.
7564 2015-10-30 Jeff Law <law@redhat.com>
7565 Nathan Sidwell <nathan@acm.org>
7567 * config/nvptx/nvptx.h (HARD_REGNO_NREGS): Avoid warning on unused
7569 (MOVE_MAX): Set to 8.
7571 2015-10-30 Cesar Philippidis <cesar@codesourcery.com>
7573 * cgraph.c: Include context.h for offloading.
7574 * varpool.c: Include context.h and omp-low.h.
7576 2015-10-30 Anatoly Sokolov <aesok@post.ru>
7578 * rtl.h (contains_symbol_ref_p): Declare.
7579 (SYMBOL_REF_P): Define.
7580 * rtlanal.c (contains_symbol_ref_p: New function.
7581 * lra-constraints.c (contains_symbol_ref_p): Remove.
7582 * var-tracking.c (contains_symbol_ref): Remove.
7583 (track_expr_p): Use contains_symbol_ref_p instead of
7584 contains_symbol_ref.
7586 2015-10-30 Alan Lawrence <alan.lawrence@arm.com>
7588 * gimple-fold.c (fold_array_ctor_reference): Move searching code to:
7589 * fold-const.c (get_array_ctor_element_at_index): New.
7590 (fold): Remove binary-search through CONSTRUCTOR, call previous.
7592 * fold-const.h (get_array_ctor_element_at_index): New.
7594 2015-10-30 Evgeny Stupachenko <evstupac@gmail.com>
7596 * Makefile.in (OBJS): Add multiple_target.o.
7597 * attrib.c (make_attribute): Moved from config/i386/i386.c
7598 * config/i386/i386.c (make_attribute): Deleted.
7599 * multiple_target.c (create_dispatcher_calls): New.
7600 (get_attr_len): Ditto.
7601 (get_attr_str): Ditto.
7602 (separate_attrs): Ditto.
7603 (is_valid_asm_symbol): Ditto.
7604 (create_new_asm_name): Ditto.
7605 (create_target_clone): Ditto.
7606 (expand_target_clones): Ditto.
7607 (ipa_target_clone): Ditto.
7608 (ipa_dispatcher_calls): Ditto.
7609 * passes.def (pass_target_clone): Two new ipa passes.
7610 * tree-pass.h (make_pass_target_clone): Ditto.
7611 * doc/extend.texi (target_clones): New attribute description.
7613 2015-10-30 Vladimir Makarov <vmakarov@redhat.com>
7615 PR rtl-optimization/68106
7616 * lra-remat.c (input_regno_present_p): Process hard regs
7617 explicitly present in machine description insns.
7618 (call_used_input_regno_present_p): Ditto.
7619 (calculate_gen_cands): Ditto.
7622 2015-10-30 Jim Wilson <jim.wilson@linaro.org>
7624 * config/arm/neon-testgen.ml: Fix comment typo.
7626 2015-10-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7628 * rtlanal.c (reg_set_p): Expand function comment.
7630 2015-10-30 Andrew MacLeod <amacleod@redhat.com>
7632 * alias.c: Remove unused headers.
7634 * attribs.c: Likewise.
7635 * auto-inc-dec.c: Likewise.
7636 * auto-profile.c: Likewise.
7637 * bb-reorder.c: Likewise.
7638 * bitmap.c: Likewise.
7639 * bt-load.c: Likewise.
7640 * builtins.c: Likewise.
7641 * caller-save.c: Likewise.
7642 * calls.c: Likewise.
7645 * cfganal.c: Likewise.
7646 * cfgbuild.c: Likewise.
7647 * cfgcleanup.c: Likewise.
7648 * cfgexpand.c: Likewise.
7649 * cfghooks.c: Likewise.
7650 * cfgloop.c: Likewise.
7651 * cfgloopanal.c: Likewise.
7652 * cfgloopmanip.c: Likewise.
7653 * cfgrtl.c: Likewise.
7654 * cgraph.c: Likewise.
7655 * cgraphbuild.c: Likewise.
7656 * cgraphclones.c: Likewise.
7657 * cgraphunit.c: Likewise.
7658 * cilk-common.c: Likewise.
7659 * combine-stack-adj.c: Likewise.
7660 * combine.c: Likewise.
7661 * compare-elim.c: Likewise.
7662 * convert.c: Likewise.
7663 * coverage.c: Likewise.
7664 * cppbuiltin.c: Likewise.
7665 * cprop.c: Likewise.
7667 * cselib.c: Likewise.
7668 * data-streamer-in.c: Likewise.
7669 * data-streamer-out.c: Likewise.
7670 * data-streamer.c: Likewise.
7671 * dbxout.c: Likewise.
7674 * debug.c: Likewise.
7675 * df-core.c: Likewise.
7676 * df-problems.c: Likewise.
7677 * df-scan.c: Likewise.
7679 * dojump.c: Likewise.
7680 * dominance.c: Likewise.
7681 * domwalk.c: Likewise.
7682 * double-int.c: Likewise.
7684 * dumpfile.c: Likewise.
7685 * dwarf2asm.c: Likewise.
7686 * dwarf2cfi.c: Likewise.
7687 * dwarf2out.c: Likewise.
7688 * emit-rtl.c: Likewise.
7689 * except.c: Likewise.
7690 * explow.c: Likewise.
7691 * expmed.c: Likewise.
7693 * final.c: Likewise.
7694 * fixed-value.c: Likewise.
7695 * fold-const.c: Likewise.
7696 * function.c: Likewise.
7697 * fwprop.c: Likewise.
7699 * generic-match-head.c: Likewise.
7700 * ggc-common.c: Likewise.
7701 * gimple-builder.c: Likewise.
7702 * gimple-expr.c: Likewise.
7703 * gimple-fold.c: Likewise.
7704 * gimple-iterator.c: Likewise.
7705 * gimple-low.c: Likewise.
7706 * gimple-match-head.c: Likewise.
7707 * gimple-pretty-print.c: Likewise.
7708 * gimple-ssa-isolate-paths.c: Likewise.
7709 * gimple-ssa-strength-reduction.c: Likewise.
7710 * gimple-streamer-in.c: Likewise.
7711 * gimple-streamer-out.c: Likewise.
7712 * gimple-walk.c: Likewise.
7713 * gimple.c: Likewise.
7714 * gimplify-me.c: Likewise.
7715 * gimplify.c: Likewise.
7716 * godump.c: Likewise.
7717 * graph.c: Likewise.
7718 * graphds.c: Likewise.
7719 * haifa-sched.c: Likewise.
7720 * hw-doloop.c: Likewise.
7721 * ifcvt.c: Likewise.
7722 * init-regs.c: Likewise.
7723 * internal-fn.c: Likewise.
7724 * ipa-chkp.c: Likewise.
7725 * ipa-comdats.c: Likewise.
7726 * ipa-cp.c: Likewise.
7727 * ipa-devirt.c: Likewise.
7728 * ipa-icf-gimple.c: Likewise.
7729 * ipa-icf.c: Likewise.
7730 * ipa-inline-analysis.c: Likewise.
7731 * ipa-inline-transform.c: Likewise.
7732 * ipa-inline.c: Likewise.
7733 * ipa-polymorphic-call.c: Likewise.
7734 * ipa-profile.c: Likewise.
7735 * ipa-prop.c: Likewise.
7736 * ipa-pure-const.c: Likewise.
7737 * ipa-ref.c: Likewise.
7738 * ipa-reference.c: Likewise.
7739 * ipa-split.c: Likewise.
7740 * ipa-utils.c: Likewise.
7741 * ipa-visibility.c: Likewise.
7743 * ira-build.c: Likewise.
7744 * ira-color.c: Likewise.
7745 * ira-conflicts.c: Likewise.
7746 * ira-costs.c: Likewise.
7747 * ira-emit.c: Likewise.
7748 * ira-lives.c: Likewise.
7751 * langhooks.c: Likewise.
7753 * lists.c: Likewise.
7754 * loop-doloop.c: Likewise.
7755 * loop-init.c: Likewise.
7756 * loop-invariant.c: Likewise.
7757 * loop-iv.c: Likewise.
7758 * loop-unroll.c: Likewise.
7759 * lower-subreg.c: Likewise.
7760 * lra-assigns.c: Likewise.
7761 * lra-coalesce.c: Likewise.
7762 * lra-constraints.c: Likewise.
7763 * lra-eliminations.c: Likewise.
7764 * lra-lives.c: Likewise.
7765 * lra-remat.c: Likewise.
7766 * lra-spills.c: Likewise.
7768 * lto-cgraph.c: Likewise.
7769 * lto-compress.c: Likewise.
7770 * lto-opts.c: Likewise.
7771 * lto-section-in.c: Likewise.
7772 * lto-section-out.c: Likewise.
7773 * lto-streamer-in.c: Likewise.
7774 * lto-streamer-out.c: Likewise.
7775 * lto-streamer.c: Likewise.
7777 * mode-switching.c: Likewise.
7778 * modulo-sched.c: Likewise.
7779 * optabs.c: Likewise.
7780 * opts-global.c: Likewise.
7781 * passes.c: Likewise.
7782 * plugin.c: Likewise.
7783 * postreload-gcse.c: Likewise.
7784 * postreload.c: Likewise.
7785 * predict.c: Likewise.
7786 * print-tree.c: Likewise.
7787 * profile.c: Likewise.
7789 * realmpfr.c: Likewise.
7790 * recog.c: Likewise.
7792 * reg-stack.c: Likewise.
7793 * regcprop.c: Likewise.
7794 * reginfo.c: Likewise.
7795 * regrename.c: Likewise.
7796 * regstat.c: Likewise.
7797 * reload.c: Likewise.
7798 * reload1.c: Likewise.
7799 * reorg.c: Likewise.
7800 * resource.c: Likewise.
7801 * rtl-chkp.c: Likewise.
7802 * rtl-error.c: Likewise.
7803 * rtlanal.c: Likewise.
7804 * rtlhooks.c: Likewise.
7805 * sanopt.c: Likewise.
7806 * sched-deps.c: Likewise.
7807 * sched-ebb.c: Likewise.
7808 * sched-rgn.c: Likewise.
7809 * sdbout.c: Likewise.
7810 * sel-sched-dump.c: Likewise.
7811 * sel-sched-ir.c: Likewise.
7812 * sel-sched.c: Likewise.
7814 * shrink-wrap.c: Likewise.
7815 * simplify-rtx.c: Likewise.
7816 * stack-ptr-mod.c: Likewise.
7817 * statistics.c: Likewise.
7819 * stor-layout.c: Likewise.
7820 * store-motion.c: Likewise.
7821 * stringpool.c: Likewise.
7822 * symtab.c: Likewise.
7823 * target-globals.c: Likewise.
7824 * targhooks.c: Likewise.
7825 * toplev.c: Likewise.
7826 * tracer.c: Likewise.
7827 * trans-mem.c: Likewise.
7828 * tree-affine.c: Likewise.
7829 * tree-call-cdce.c: Likewise.
7830 * tree-cfg.c: Likewise.
7831 * tree-cfgcleanup.c: Likewise.
7832 * tree-chkp-opt.c: Likewise.
7833 * tree-chkp.c: Likewise.
7834 * tree-chrec.c: Likewise.
7835 * tree-complex.c: Likewise.
7836 * tree-data-ref.c: Likewise.
7837 * tree-dfa.c: Likewise.
7838 * tree-diagnostic.c: Likewise.
7839 * tree-dump.c: Likewise.
7840 * tree-eh.c: Likewise.
7841 * tree-emutls.c: Likewise.
7842 * tree-if-conv.c: Likewise.
7843 * tree-inline.c: Likewise.
7844 * tree-into-ssa.c: Likewise.
7845 * tree-iterator.c: Likewise.
7846 * tree-loop-distribution.c: Likewise.
7847 * tree-nested.c: Likewise.
7848 * tree-nrv.c: Likewise.
7849 * tree-object-size.c: Likewise.
7850 * tree-outof-ssa.c: Likewise.
7851 * tree-parloops.c: Likewise.
7852 * tree-phinodes.c: Likewise.
7853 * tree-predcom.c: Likewise.
7854 * tree-pretty-print.c: Likewise.
7855 * tree-profile.c: Likewise.
7856 * tree-scalar-evolution.c: Likewise.
7857 * tree-sra.c: Likewise.
7858 * tree-ssa-address.c: Likewise.
7859 * tree-ssa-alias.c: Likewise.
7860 * tree-ssa-ccp.c: Likewise.
7861 * tree-ssa-coalesce.c: Likewise.
7862 * tree-ssa-copy.c: Likewise.
7863 * tree-ssa-dce.c: Likewise.
7864 * tree-ssa-dse.c: Likewise.
7865 * tree-ssa-forwprop.c: Likewise.
7866 * tree-ssa-ifcombine.c: Likewise.
7867 * tree-ssa-live.c: Likewise.
7868 * tree-ssa-loop-ch.c: Likewise.
7869 * tree-ssa-loop-im.c: Likewise.
7870 * tree-ssa-loop-ivcanon.c: Likewise.
7871 * tree-ssa-loop-ivopts.c: Likewise.
7872 * tree-ssa-loop-manip.c: Likewise.
7873 * tree-ssa-loop-niter.c: Likewise.
7874 * tree-ssa-loop-prefetch.c: Likewise.
7875 * tree-ssa-loop-unswitch.c: Likewise.
7876 * tree-ssa-loop.c: Likewise.
7877 * tree-ssa-math-opts.c: Likewise.
7878 * tree-ssa-operands.c: Likewise.
7879 * tree-ssa-phiopt.c: Likewise.
7880 * tree-ssa-phiprop.c: Likewise.
7881 * tree-ssa-pre.c: Likewise.
7882 * tree-ssa-propagate.c: Likewise.
7883 * tree-ssa-reassoc.c: Likewise.
7884 * tree-ssa-scopedtables.c: Likewise.
7885 * tree-ssa-sink.c: Likewise.
7886 * tree-ssa-strlen.c: Likewise.
7887 * tree-ssa-structalias.c: Likewise.
7888 * tree-ssa-tail-merge.c: Likewise.
7889 * tree-ssa-ter.c: Likewise.
7890 * tree-ssa-threadupdate.c: Likewise.
7891 * tree-ssa-uncprop.c: Likewise.
7892 * tree-ssa-uninit.c: Likewise.
7893 * tree-ssa.c: Likewise.
7894 * tree-ssanames.c: Likewise.
7895 * tree-stdarg.c: Likewise.
7896 * tree-streamer-in.c: Likewise.
7897 * tree-streamer-out.c: Likewise.
7898 * tree-streamer.c: Likewise.
7899 * tree-switch-conversion.c: Likewise.
7900 * tree-tailcall.c: Likewise.
7901 * tree-vect-data-refs.c: Likewise.
7902 * tree-vect-generic.c: Likewise.
7903 * tree-vect-loop-manip.c: Likewise.
7904 * tree-vect-loop.c: Likewise.
7905 * tree-vect-patterns.c: Likewise.
7906 * tree-vect-slp.c: Likewise.
7907 * tree-vect-stmts.c: Likewise.
7908 * tree-vectorizer.c: Likewise.
7909 * tree-vrp.c: Likewise.
7912 * ubsan.c: Likewise.
7913 * value-prof.c: Likewise.
7914 * var-tracking.c: Likewise.
7915 * varasm.c: Likewise.
7916 * varpool.c: Likewise.
7917 * vmsdbgout.c: Likewise.
7918 * vtable-verify.c: Likewise.
7920 * wide-int-print.cc: Likewise.
7921 * wide-int.cc: Likewise.
7922 * xcoffout.c: Likewise.
7924 2015-10-30 James Greenhalgh <james.greenhalgh@arm.com>
7926 * doc/invoke.texi (fdump-rtl-@var{pass}): Clarify relationship
7927 between pass numbering and execution order.
7929 2015-10-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7931 * config/arm/arm.c (cortex_a9_sched_adjust_cost): Use reg_set_p to
7932 check for dependencies.
7934 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
7936 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Don't free
7939 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
7941 * real.h (format_helper): New.
7942 (real_convert, exact_real_truncate, real_from_string3, real_to_target)
7943 (real_from_target, real_nan, real_2expN, real_value_truncate)
7944 (significand_size, real_from_string2, exact_real_inverse)
7945 (exact_real_inverse, real_powi, real_trunc, real_floor, real_ceil)
7946 (real_round, real_isinteger, real_from_integer): Replace
7947 machine_mode arguments with format_helper arguments.
7948 * real.c (exact_real_inverse, real_from_string2, real_from_string3)
7949 (real_from_integer, real_nan, real_2expN, real_convert)
7950 (real_value_truncate, exact_real_truncate, real_to_target)
7951 (real_from_target, significand_size, real_powi, real_trunc)
7952 (real_floor, real_ceil, real_round, real_isinteger): Replace
7953 machine_mode arguments with format_helper arguments.
7954 (real_to_target_fmt, real_from_target_fmt): Delete.
7955 * dfp.h (decimal_real_convert): Replace mode argument with real_format.
7956 * dfp.c (decimal_to_binary, decimal_real_convert): Replace mode
7957 argument with real_format.
7958 * builtins.c (do_real_to_int_conversion): Update type of fn argument.
7960 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
7962 * fixed-value.c (check_real_for_fixed_mode, fixed_from_string)
7963 (fixed_to_decimal, fixed_convert_from_real)
7964 (real_convert_from_fixed): Fix mode arguments to real_2expN.
7966 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
7968 * real.h (REAL_MODE_FORMAT): Abort if the mode isn't a
7969 SCALAR_FLOAT_MODE_P.
7971 2015-10-30 Alan Lawrence <alan.lawrence@arm.com>
7973 * tree-sra.c (scalarizable_type_p): Comment variable-length arrays.
7974 (completely_scalarize): Comment zero-length arrays.
7975 (get_access_replacement): Correct comment re. precondition.
7977 2015-10-30 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
7979 * config/i386/i386.c (get_builtin_code_for_version): Set priority
7980 for PROCESSOR_ZNVER1.
7981 (enum processor_model): Add M_AMDFAM17H_znver1.
7982 (struct arch_names_table): Likewise.
7983 * doc/extend.texi: ADD znver1.
7985 2015-10-30 Richard Biener <rguenther@suse.de>
7987 * gimple-fold.c (fold_gimple_assign): Do not dispatch to
7988 fold () on single RHSs. Allow CONSTRUCTORS with trailing
7989 zeros to be folded to VECTOR_CSTs.
7990 * tree.c (build_vector_from_ctor): Handle VECTOR_CST elements.
7991 * fold-const.c (fold): Use build_vector_from_ctor.
7993 2015-10-30 Evandro Menezes <e.menezes@samsung.com>
7995 * config/aarch64/aarch64.md (*movhf_aarch64): Change the type of
7996 "mov %0.h[0], %1.h[0] to "neon_move".
7997 (*movtf_aarch64): Change the type of "fmov %s0, wzr" to "f_mcr".
7998 (*cmov<mode>_insn): Change the types of "mov %<w>0, {-1,1}" to
8000 (*cmovsi_insn_uxtw): Likewise.
8002 2015-10-30 Tom de Vries <tom@codesourcery.com>
8004 * tree-ssa-structalias.c (ipa_pta_execute): Declare variable from as
8005 unsigned, and initialize, and use initial value instead of hardcoded
8006 constant. Add generic constraints dumping section. Don't dump global
8007 initializers constraints dumping section if empty. Don't update
8008 variable from if unused.
8010 2015-10-29 Mikhail Maltsev <maltsevm@gmail.com>
8012 * config/alpha/alpha.c (alpha_function_arg): Use gcc_checking_assert,
8013 flag_checking and/or CHECKING_P to eliminate conditional compilation
8015 * config/arm/arm.c (arm_unwind_emit_sequence): Likewise.
8016 * config/bfin/bfin.c (hwloop_optimize): Likewise.
8017 * config/i386/i386.c (ix86_print_operand_address): Likewise.
8018 (output_387_binary_op): Likewise.
8019 * config/ia64/ia64.c (ia64_sched_init, bundling): Likewise.
8020 * config/m68k/m68k.c (m68k_sched_md_init_global): Likewise.
8021 * config/rs6000/rs6000.c (htm_expand_builtin, rs6000_emit_prologue):
8023 * config/rs6000/rs6000.h: Likewise.
8024 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
8026 2015-10-29 Kaz Kojima <kkojima@gcc.gnu.org>
8028 * config/sh/sh.opt (mfdpic): Add missing period.
8030 2015-08-29 Anatoly Sokolov <aesok@post.ru>
8032 * config/mcore/mcore.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
8033 BASE_REGISTER_RTX_P, INDEX_REGISTER_RTX_P,
8034 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
8035 * config/mcore/mcore.c (mcore_reg_ok_for_base_p,
8036 mcore_base_register_rtx_p, mcore_legitimate_index_p,
8037 mcore_legitimate_address_p): New functions.
8038 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
8040 2015-10-29 Jeff Law <law@redhat.com>
8042 * tree-ssa-scopedtables.h (const_and_copies): Remove invalidate
8044 * tree-ssa-scopedtables.h (const_and_copies::invalidate): Remove.
8045 * tree-ssa-threadedge.c
8046 (record_temporary_equivalences_from_stmts_at_dest): Remove
8047 backedge_seen argument and associated code which invalidated
8048 equivalences based on the value of that argument.
8049 (thread_through_normal_block): Corresponding changes.
8051 2015-10-29 Segher Boessenkool <segher@kernel.crashing.org>
8053 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Move this
8054 function earlier in the file.
8055 (first_reg_to_save): Use rs6000_reg_live_or_pic_offset_p instead of
8056 df_regs_ever_live_p.
8058 2015-10-29 Segher Boessenkool <segher@kernel.crashing.org>
8060 * lra-constraints.c (process_address_1): Handle (mem:BLK (scratch))
8063 2015-10-29 Richard Henderson <rth@redhat.com>
8067 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
8068 sse check to the exact conditions of PR 67609.
8070 2015-10-29 Michael Meissner <meissner@linux.vnet.ibm.com>
8072 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Split libfunc
8073 setup into 3 functions: init_float128_ibm, init_float128_ieee, and
8074 rs6000_init_libfuncs. If -mfloat128, add IFmode functions for all
8075 of the traditional names that TFmode uses for handling IEEE
8076 extended double. If -mfloat128, add KFmode functions for all of
8077 the emulation functions. If -mabi=ieeelongdouble and -mfloat128,
8078 make TFmode use the same emulation functions as KFmode.
8079 (init_float128_ibm): Likewise.
8080 (init_float128_ieee): Likewise.
8081 (rs6000_generate_compare): For IEEE 128-bit floating point
8082 comparisons, call the unordered comparison function instead of the
8083 ordered comparison function.
8084 (rs6000_expand_float128_convert): Deal with operands that are
8085 memory operands. Restructure the code to use a switch statement on
8086 the mode. Add support for TFmode defaulting to either IBM extended
8087 double or IEEE 128-bit floating point. If the underlying types are
8088 the same, use a move instead of a conversion function.
8089 (TARGET_C_MODE_FOR_SUFFIX): Define 'q' and 'Q' as the suffix to
8090 use for IEEE 128-bit floating point constants with -mfloat128.
8091 (rs6000_c_mode_for_suffix): Likewise.
8092 (TARGET_INVALID_BINARY_OP): Do not allow inter-mixing of IEEE
8093 128-bit floating point with IBM extended double floating point.
8094 (rs6000_invalid_binary_op): Likewise.
8095 (rs6000_gen_le_vsx_permute): On little endian systems generate a
8096 ROTATE insn instead of VEC_SELECT for IEEE 128-bit floating point
8097 types that can go in vector registers.
8098 (chain_contains_only_swaps): Properly swap IEEE 128-bit floating
8099 point types that can go in vector registers on little endian
8101 (mark_swaps_for_removal): Likewise.
8102 (rs6000_analyze_swaps): Likewise.
8103 (rs6000_mangle_type): Use U10__float128 for IEEE 128-bit floating point.
8105 * config/rs6000/rs6000.md (FLOAT128_SFDFTF): Delete iterator,
8106 rework IEEE 128-bit floating point insns to deal with TFmode being
8107 either IBM extended double or IEEE 128-bit floating point.
8109 (IBM128): Update iterator to add condition that the mode is IBM
8111 (IEEE128): New iterator for IEEE 128-bit floating point.
8112 (TFIFKF): Rename TFIFKF iterator to FLOAT128.
8113 (FLOAT128): Likewise.
8114 (signbit<mode>2): FLOAT128_IBM_P condition test moved into IBM128
8116 (neg<mode>2): Replace TFIFKF iterator with FLOAT128. Add support
8117 for TFmode being IEEE 128-bit floating point. Use IEEE128 iterator
8118 instead of hard coding TFmode or KFmode.
8119 (negtf2_internal): Likewise.
8120 (neg<mode>2_internal): Likewise.
8121 (abs<mode>2): Likewise.
8122 (abstf2_internal): Likewise.
8123 (abs<mode>2_internal): Likewise.
8124 (ieee_128bit_neg<mode>2): Likewise.
8125 (ieee_128bit_neg<mode>2_internal): Likewise.
8126 (ieee_128bit_abs<mode>2): Likewise.
8127 (ieee_128bit_abs<mode>2_internal): Likewise.
8128 (ieee_128bit_nabs<mode>2): Likewise.
8129 (ieee_128bit_nabs<mode>2_internal): Likewise.
8130 (extendiftf2): Add explicit conversions between 128-bit floating
8131 point types. Drop the old conversions that had become unwieldy.
8132 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
8133 (extendifkf2): Likewise.
8134 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
8135 (extendtfkf2): Likewise.
8136 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
8137 (trunciftf2): Likewise.
8138 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
8139 (truncifkf2): Likewise.
8140 (float<SDI:mode><IFKF:mode>2): Likewise.
8141 (trunckftf2): Likewise.
8142 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
8143 (trunctfif2): Likewise.
8144 (FP iterator): Allow TFmode to be IEEE 128-bit floating point.
8145 (extenddftf2): Rework 128-bit floating point conversions to
8146 properly handle -mabi=ieeelongdouble. Merge IFmode, TFmode, and
8147 KFmode expanders into one function.
8148 (extenddf<mode>2): Likewise.
8149 (extenddftf2_fprs): Likewise.
8150 (extenddf<mode>2_fprs): Likewise.
8151 (extenddftf2_vsx): Likewise.
8152 (extenddf<mode>2_vsx): Likewise.
8153 (extendsftf2): Likewise.
8154 (extendsf<mode>2): Likewise.
8155 (trunctfdf2): Likewise.
8156 (trunc<mode>df2): Likewise.
8157 (trunctfdf2_internal1): Likewise.
8158 (trunc<mode>df2_internal1): Likewise.
8159 (trunctfdf2_internal2): Likewise.
8160 (trunc<mode>df2_internal2): Likewise.
8161 (trunctfsf2): Likewise.
8162 (trunc<mode>sf2): Likewise.
8163 (trunctfsf2_fprs): Likewise.
8164 (trunc<mode>sf2_fprs): Likewise.
8165 (floatsit2f): Likewise.
8166 (floatsi<mode>2): Likewise.
8167 (fix_trunc_helper): Likewise.
8168 (fix_trunc_helper<mode>): Likewise.
8169 (fix_trunctfsi2): Likewise.
8170 (fix_trunc<mode>si2): Likewise.
8171 (fix_trunctfsi2_fprs): Likewise.
8172 (fix_trunc<mode>si2_fprs): Likewise.
8173 (fix_trunctfsi2_internal): Likewise.
8174 (fix_trunc<mode>si2_internal): Likewise.
8175 (fix_trunctfdi2): Likewise.
8176 (fix_trunc<mode>di2): Likewise.
8177 (fixuns_trunctf<mode>2): Likewise.
8178 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
8179 (floatditf2): Likewise.
8180 (floatdi<mode>2): Likewise.
8181 (floatuns<mode>tf2): Likewise.
8182 (floatuns<SDI:mode><IEEE128:mode>): Likewise.
8183 (cmptf_internal1): Use a mode iterator to add support for both
8184 types (IFmode, TFmode) that support IBM extended double.
8185 (cmp<mode>_internal1): Likewise.
8186 (cmptf_internal2): Likewise.
8187 (cmp<mode>_internal2): Likewise.
8189 * doc/extend.texi (Floating Types): Document __ibm128 and
8190 __float128 on PowerPC.
8192 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
8193 -mfloat128 and -mno-float128.
8195 2015-10-29 Michael Meissner <meissner@linux.vnet.ibm.com>
8197 * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Add IEEE 128-bit
8198 floating point modes that can go in vector registers.
8199 (MODES_TIEABLE_P): Move tests for vector modes before tests for
8200 scalar floating point, so that IEEE 128-bit floating point that
8201 can go in vector registers bind with vectors and not FP.
8202 (struct rs6000_args): Add libcall field.
8204 * config/rs6000/rs6000.opt (-mfloat128-*): Delete -mfloat128-none
8205 and -mfloat128-software switches. Replace them with a binary
8207 (-mfloat128): Likewise.
8209 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
8210 128-bit floating point types in GPRs, even if the appropriate
8211 option enabling the type was not used.
8212 (rs6000_debug_reg_global): Remove -mfloat128-{software,none}
8214 (rs6000_setup_reg_addr_masks): Do not allow pre-increment and
8215 pre-decrement on IEEE 128-bit floating point values.
8216 (rs6000_init_hard_regno_mode_ok): Change test for whether TFmode
8217 is IEEE 128-bit floating point.
8218 (rs6000_init_hard_regno_mode_ok): Add reload handlers for IEEE
8219 128-bit floating point types that can go in vector registers.
8220 (rs6000_option_override_internal): Change -mfloat128-none and
8221 -mfloat128-software to -mfloat128, and move code to be near other
8222 VSX option handling.
8223 (rs6000_option_override_internal): Disable -mfloat128 if we don't
8224 have the Altivec ABI.
8225 (rs6000_init_builtins): Don't make TFmode use either IFmode or
8226 KFmode floating point nodes. Instead, have three separate nodes.
8227 (rs6000_scalar_mode_supported_p): Add support for IFmode to allow
8228 eventually moving the long double default to IEEE 128-bit floating
8230 (rs6000_opt_masks): Add -mfloat128.
8231 (struct rs6000_opt_var): Fix typo in comment.
8232 (init_cumulative_args): Initialize libcall field in
8234 (rs6000_function_arg): Treat library functions as if they had
8235 prototypes to prevent IEEE 128-bit support functions from passing
8236 arguments in both GPRs and vector registers.
8237 (rs6000_arg_partial_bytes): Likewise.
8239 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add -mfloat128 as
8240 an option that can be turned on via -mcpu=<xxx>.
8242 * config/rs6000/rs6000-opts.h (enum float128_type_t): Delete, no
8245 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
8246 __FLOAT128__ if -mfloat128. Define __LONG_DOUBLE_IEEE128__ if long
8247 double is IEEE 128-bit. Define __LONG_DOUBLE_IBM128__ if long
8248 double is IBM extended double.
8250 * config/rs6000/predicates.md (reg_or_indexed_operand): Allow
8253 2015-10-29 Mikhail Maltsev <maltsevm@gmail.com>
8255 * genautomata.c: Use CHECKING_P instead of ENABLE_CHECKING.
8256 * genconditions.c: Define CHECKING_P in the generated code.
8257 * genextract.c: Use flag_checking in insn_extract.
8258 * gengtype.c (main): Remove conditional compilation.
8259 * gengtype.h: Likewise.
8261 2015-10-29 Jeff Law <law@redhat.com>
8263 PR tree-optimization/67892
8264 * tree-ssa-threadedge.c (simplify_controL_stmt_condition): Fix typo
8266 (thread_through_normal_block): If we have seen a backedge, then
8267 do nothing. No longer call find_jump_threads_backwards here.
8268 (thread_across_edge): Use find_jump_threads_backwards to find
8269 jump threads if the old style threader was not successful.
8270 * tree-ssa-threadbackward.c (get_gimple_control_stmt): Use
8271 gsi_last_nondebug_bb. Return NULL if the block does not end
8272 with a control statement.
8273 (find_jump_threads_backwards): Setup code moved here from
8274 tree-ssa-threadedge.c::thread_through_normal_block. Accept
8275 single edge argument instead of name & block.
8276 * tree-ssa-threadbackward.h (find_jump_threads_backwards): Update
8279 2015-10-29 Tom de Vries <tom@codesourcery.com>
8281 * fold-const.c (fold_unary_loc): Remove folding inhibition for restrict
8284 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
8286 * omp-low.c (lower_omp_target): Remove unreachable code & merge
8289 2015-10-29 Marc Glisse <marc.glisse@inria.fr>
8291 * match.pd (X-(X/Y)*Y): Properly handle conversions and commutativity.
8293 2015-10-29 Richard Sandiford <richard.sandiford@arm.com>
8295 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
8296 guard_bb0 and use guard_bb throughout.
8298 2015-10-29 Richard Sandiford <richard.sandiford@arm.com>
8300 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
8303 2015-10-29 Richard Biener <rguenther@suse.de>
8306 * fold-const.c (extract_muldiv_1): Avoid introducing undefined
8309 2015-10-29 Andrew MacLeod <amacleod@redhat.com>
8311 * alias.c: Reorder #include statements and remove duplicates.
8313 * attribs.c: Likewise.
8314 * auto-inc-dec.c: Likewise.
8315 * auto-profile.c: Likewise.
8316 * bb-reorder.c: Likewise.
8317 * bt-load.c: Likewise.
8318 * builtins.c: Likewise.
8319 * caller-save.c: Likewise.
8320 * calls.c: Likewise.
8323 * cfganal.c: Likewise.
8324 * cfgbuild.c: Likewise.
8325 * cfgcleanup.c: Likewise.
8326 * cfgexpand.c: Likewise.
8327 * cfghooks.c: Likewise.
8328 * cfgloop.c: Likewise.
8329 * cfgloopanal.c: Likewise.
8330 * cfgloopmanip.c: Likewise.
8331 * cfgrtl.c: Likewise.
8332 * cgraph.c: Likewise.
8333 * cgraphbuild.c: Likewise.
8334 * cgraphclones.c: Likewise.
8335 * cgraphunit.c: Likewise.
8336 * cilk-common.c: Likewise.
8337 * combine-stack-adj.c: Likewise.
8338 * combine.c: Likewise.
8339 * compare-elim.c: Likewise.
8340 * convert.c: Likewise.
8341 * coverage.c: Likewise.
8342 * cppbuiltin.c: Likewise.
8343 * cprop.c: Likewise.
8345 * cselib.c: Likewise.
8346 * data-streamer-in.c: Likewise.
8347 * data-streamer-out.c: Likewise.
8348 * data-streamer.c: Likewise.
8349 * dbxout.c: Likewise.
8352 * debug.c: Likewise.
8353 * df-core.c: Likewise.
8354 * df-problems.c: Likewise.
8355 * df-scan.c: Likewise.
8357 * dojump.c: Likewise.
8358 * dominance.c: Likewise.
8359 * double-int.c: Likewise.
8361 * dumpfile.c: Likewise.
8362 * dwarf2asm.c: Likewise.
8363 * dwarf2cfi.c: Likewise.
8364 * dwarf2out.c: Likewise.
8365 * emit-rtl.c: Likewise.
8366 * except.c: Likewise.
8367 * explow.c: Likewise.
8368 * expmed.c: Likewise.
8370 * final.c: Likewise.
8371 * fixed-value.c: Likewise.
8372 * fold-const.c: Likewise.
8373 * function.c: Likewise.
8374 * fwprop.c: Likewise.
8376 * generic-match-head.c: Likewise.
8377 * ggc-common.c: Likewise.
8378 * gimple-builder.c: Likewise.
8379 * gimple-expr.c: Likewise.
8380 * gimple-fold.c: Likewise.
8381 * gimple-iterator.c: Likewise.
8382 * gimple-low.c: Likewise.
8383 * gimple-match-head.c: Likewise.
8384 * gimple-pretty-print.c: Likewise.
8385 * gimple-ssa-isolate-paths.c: Likewise.
8386 * gimple-ssa-strength-reduction.c: Likewise.
8387 * gimple-streamer-in.c: Likewise.
8388 * gimple-streamer-out.c: Likewise.
8389 * gimple-walk.c: Likewise.
8390 * gimple.c: Likewise.
8391 * gimplify-me.c: Likewise.
8392 * gimplify.c: Likewise.
8393 * godump.c: Likewise.
8394 * graph.c: Likewise.
8395 * graphite-poly.c: Likewise.
8396 * haifa-sched.c: Likewise.
8397 * hw-doloop.c: Likewise.
8398 * ifcvt.c: Likewise.
8399 * incpath.c: Likewise.
8400 * init-regs.c: Likewise.
8401 * internal-fn.c: Likewise.
8402 * ipa-chkp.c: Likewise.
8403 * ipa-comdats.c: Likewise.
8404 * ipa-cp.c: Likewise.
8405 * ipa-devirt.c: Likewise.
8406 * ipa-icf-gimple.c: Likewise.
8407 * ipa-icf.c: Likewise.
8408 * ipa-inline-analysis.c: Likewise.
8409 * ipa-inline-transform.c: Likewise.
8410 * ipa-inline.c: Likewise.
8411 * ipa-polymorphic-call.c: Likewise.
8412 * ipa-profile.c: Likewise.
8413 * ipa-prop.c: Likewise.
8414 * ipa-pure-const.c: Likewise.
8415 * ipa-ref.c: Likewise.
8416 * ipa-reference.c: Likewise.
8417 * ipa-split.c: Likewise.
8418 * ipa-utils.c: Likewise.
8419 * ipa-visibility.c: Likewise.
8421 * ira-build.c: Likewise.
8422 * ira-color.c: Likewise.
8423 * ira-conflicts.c: Likewise.
8424 * ira-costs.c: Likewise.
8425 * ira-emit.c: Likewise.
8426 * ira-lives.c: Likewise.
8429 * langhooks.c: Likewise.
8431 * lists.c: Likewise.
8432 * loop-doloop.c: Likewise.
8433 * loop-init.c: Likewise.
8434 * loop-invariant.c: Likewise.
8435 * loop-iv.c: Likewise.
8436 * loop-unroll.c: Likewise.
8437 * lower-subreg.c: Likewise.
8438 * lra-assigns.c: Likewise.
8439 * lra-coalesce.c: Likewise.
8440 * lra-constraints.c: Likewise.
8441 * lra-eliminations.c: Likewise.
8442 * lra-lives.c: Likewise.
8443 * lra-remat.c: Likewise.
8444 * lra-spills.c: Likewise.
8446 * lto-cgraph.c: Likewise.
8447 * lto-compress.c: Likewise.
8448 * lto-opts.c: Likewise.
8449 * lto-section-in.c: Likewise.
8450 * lto-section-out.c: Likewise.
8451 * lto-streamer-in.c: Likewise.
8452 * lto-streamer-out.c: Likewise.
8453 * lto-streamer.c: Likewise.
8454 * mode-switching.c: Likewise.
8455 * modulo-sched.c: Likewise.
8456 * omp-low.c: Likewise.
8457 * optabs.c: Likewise.
8458 * opts-global.c: Likewise.
8459 * passes.c: Likewise.
8460 * plugin.c: Likewise.
8461 * postreload-gcse.c: Likewise.
8462 * postreload.c: Likewise.
8463 * predict.c: Likewise.
8464 * print-tree.c: Likewise.
8465 * profile.c: Likewise.
8467 * realmpfr.c: Likewise.
8468 * recog.c: Likewise.
8470 * reg-stack.c: Likewise.
8471 * regcprop.c: Likewise.
8472 * reginfo.c: Likewise.
8473 * regrename.c: Likewise.
8474 * regstat.c: Likewise.
8475 * reload.c: Likewise.
8476 * reload1.c: Likewise.
8477 * reorg.c: Likewise.
8478 * resource.c: Likewise.
8479 * rtl-chkp.c: Likewise.
8480 * rtl-error.c: Likewise.
8481 * rtlanal.c: Likewise.
8482 * rtlhooks.c: Likewise.
8483 * sanopt.c: Likewise.
8484 * sched-deps.c: Likewise.
8485 * sched-ebb.c: Likewise.
8486 * sched-rgn.c: Likewise.
8488 * shrink-wrap.c: Likewise.
8489 * simplify-rtx.c: Likewise.
8490 * stack-ptr-mod.c: Likewise.
8491 * statistics.c: Likewise.
8493 * stor-layout.c: Likewise.
8494 * store-motion.c: Likewise.
8495 * stringpool.c: Likewise.
8496 * symtab.c: Likewise.
8497 * target-globals.c: Likewise.
8498 * targhooks.c: Likewise.
8499 * toplev.c: Likewise.
8500 * tracer.c: Likewise.
8501 * trans-mem.c: Likewise.
8502 * tree-affine.c: Likewise.
8503 * tree-call-cdce.c: Likewise.
8504 * tree-cfg.c: Likewise.
8505 * tree-cfgcleanup.c: Likewise.
8506 * tree-chkp-opt.c: Likewise.
8507 * tree-chkp.c: Likewise.
8508 * tree-chrec.c: Likewise.
8509 * tree-complex.c: Likewise.
8510 * tree-data-ref.c: Likewise.
8511 * tree-dfa.c: Likewise.
8512 * tree-diagnostic.c: Likewise.
8513 * tree-dump.c: Likewise.
8514 * tree-eh.c: Likewise.
8515 * tree-emutls.c: Likewise.
8516 * tree-if-conv.c: Likewise.
8517 * tree-inline.c: Likewise.
8518 * tree-into-ssa.c: Likewise.
8519 * tree-iterator.c: Likewise.
8520 * tree-loop-distribution.c: Likewise.
8521 * tree-nested.c: Likewise.
8522 * tree-nrv.c: Likewise.
8523 * tree-object-size.c: Likewise.
8524 * tree-outof-ssa.c: Likewise.
8525 * tree-parloops.c: Likewise.
8526 * tree-phinodes.c: Likewise.
8527 * tree-predcom.c: Likewise.
8528 * tree-pretty-print.c: Likewise.
8529 * tree-profile.c: Likewise.
8530 * tree-scalar-evolution.c: Likewise.
8531 * tree-sra.c: Likewise.
8532 * tree-ssa-address.c: Likewise.
8533 * tree-ssa-alias.c: Likewise.
8534 * tree-ssa-ccp.c: Likewise.
8535 * tree-ssa-coalesce.c: Likewise.
8536 * tree-ssa-copy.c: Likewise.
8537 * tree-ssa-dce.c: Likewise.
8538 * tree-ssa-dom.c: Likewise.
8539 * tree-ssa-dse.c: Likewise.
8540 * tree-ssa-forwprop.c: Likewise.
8541 * tree-ssa-ifcombine.c: Likewise.
8542 * tree-ssa-live.c: Likewise.
8543 * tree-ssa-loop-ch.c: Likewise.
8544 * tree-ssa-loop-im.c: Likewise.
8545 * tree-ssa-loop-ivcanon.c: Likewise.
8546 * tree-ssa-loop-ivopts.c: Likewise.
8547 * tree-ssa-loop-manip.c: Likewise.
8548 * tree-ssa-loop-niter.c: Likewise.
8549 * tree-ssa-loop-prefetch.c: Likewise.
8550 * tree-ssa-loop-unswitch.c: Likewise.
8551 * tree-ssa-loop.c: Likewise.
8552 * tree-ssa-math-opts.c: Likewise.
8553 * tree-ssa-operands.c: Likewise.
8554 * tree-ssa-phiopt.c: Likewise.
8555 * tree-ssa-phiprop.c: Likewise.
8556 * tree-ssa-pre.c: Likewise.
8557 * tree-ssa-propagate.c: Likewise.
8558 * tree-ssa-reassoc.c: Likewise.
8559 * tree-ssa-sccvn.c: Likewise.
8560 * tree-ssa-scopedtables.c: Likewise.
8561 * tree-ssa-sink.c: Likewise.
8562 * tree-ssa-strlen.c: Likewise.
8563 * tree-ssa-structalias.c: Likewise.
8564 * tree-ssa-tail-merge.c: Likewise.
8565 * tree-ssa-ter.c: Likewise.
8566 * tree-ssa-threadedge.c: Likewise.
8567 * tree-ssa-threadupdate.c: Likewise.
8568 * tree-ssa-uncprop.c: Likewise.
8569 * tree-ssa-uninit.c: Likewise.
8570 * tree-ssa.c: Likewise.
8571 * tree-ssanames.c: Likewise.
8572 * tree-stdarg.c: Likewise.
8573 * tree-streamer-in.c: Likewise.
8574 * tree-streamer-out.c: Likewise.
8575 * tree-streamer.c: Likewise.
8576 * tree-switch-conversion.c: Likewise.
8577 * tree-tailcall.c: Likewise.
8578 * tree-vect-data-refs.c: Likewise.
8579 * tree-vect-generic.c: Likewise.
8580 * tree-vect-loop-manip.c: Likewise.
8581 * tree-vect-loop.c: Likewise.
8582 * tree-vect-patterns.c: Likewise.
8583 * tree-vect-slp.c: Likewise.
8584 * tree-vect-stmts.c: Likewise.
8585 * tree-vectorizer.c: Likewise.
8586 * tree-vrp.c: Likewise.
8589 * ubsan.c: Likewise.
8590 * value-prof.c: Likewise.
8591 * var-tracking.c: Likewise.
8592 * varasm.c: Likewise.
8593 * varpool.c: Likewise.
8594 * vtable-verify.c: Likewise.
8596 * wide-int-print.cc: Likewise.
8597 * wide-int.cc: Likewise.
8598 * xcoffout.c: Likewise.
8600 2015-10-29 H.J. Lu <hongjiu.lu@intel.com>
8602 * Makefile.in (NO_PIE_CFLAGS): New.
8603 (NO_PIE_FLAG): Likewise.
8604 (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
8605 (NO_PIE_FLAG_FOR_BUILD): Likewise.
8606 (BUILD_NO_PIE_CFLAGS): Likewise.
8607 (BUILD_NO_PIE_FLAG): Likewise.
8608 (COMPILER): Replace @NO_PIE_CFLAGS@ with $(NO_PIE_CFLAGS).
8609 (LINKER): Replace @NO_PIE_FLAG@ with $(NO_PIE_FLAG).
8610 (BUILD_CFLAGS): Replace @NO_PIE_CFLAGS@ with
8611 $(BUILD_NO_PIE_CFLAGS).
8612 (BUILD_CXXFLAGS): Likewise.
8613 (BUILD_LDFLAGS ): Replace @NO_PIE_FLAG@ with
8614 $(BUILD_NO_PIE_FLAG).
8615 * configure.ac (BUILD_NO_PIE_CFLAGS): New. AC_SUBST.
8616 (BUILD_NO_PIE_FLAG): Likewise.
8617 (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
8618 (NO_PIE_FLAG_FOR_BUILD): Likewise.
8619 * configure: Regenerated.
8621 2015-10-29 Richard Biener <rguenther@suse.de>
8624 * fold-const.c (fold_cond_expr_with_comparison): Do not fold
8625 unsigned conditonal negation to ABS_EXPR.
8627 2015-10-29 Richard Biener <rguenther@suse.de>
8629 * gimple-match-head.c (gimple_simplify): Remove premature checking
8630 of builtin_decl_implicit of function calls we simplify.
8632 2015-10-29 Bin Cheng <bin.cheng@arm.com>
8634 * tree-ssa-loop-ivopts.c (split_address_cost): Check depends_on.
8635 (get_computation_cost_at): Ditto.
8636 (determine_use_iv_cost_address): Pass NULL for arguments depends_on
8639 2015-10-28 Tom de Vries <tom@codesourcery.com>
8641 * tree-ssa-structalias.c (intra_create_variable_infos): Remove
8644 2015-10-28 Jason Merrill <jason@redhat.com>
8646 * Makefile.in (TAGS): Include libcpp and libiberty.
8648 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
8650 * omp-low.c (MASK_GANG, MASK_WORKER, MASK_VECTOR): Delete.
8651 (extract_omp_for_data): Remove OpenACC special handling of
8654 * config/nvptx/nvptx.c (nvptx_print_operand): Remove 'd' case.
8655 (struct parallel): Update comment.
8656 (nvptx_reorg): Likewise.
8657 (nvptx_neuter): Cleanup whitespace.
8659 2015-10-28 Richard Henderson <rth@redhat.com>
8661 * tree-eh.c (mark_reachable_handlers): Fix typo in assert.
8663 2015-10-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8666 * config/avr/predicates.md (low_io_address_operand): Don't
8667 consider MODE when computing upper bound.
8668 (io_address_operand): Likewise.
8670 2015-10-28 Jan Hubicka <hubicka@ucw.cz>
8672 * fold-const.c (operand_equal_p): Do not verify that types are
8673 compatible for MEM_REFs.
8675 2015-10-28 Richard Biener <rguenther@suse.de>
8677 * gimple-match-head.c (gimple_simplify): Allow VECTOR_CSTs
8678 in simplifying VEC_COND_EXPR conditions.
8680 2015-10-28 Tom de Vries <tom@codesourcery.com>
8682 * tree-ssa-structalias.c (intra_create_variable_infos): Don't iterate
8683 into vi_next of a full_var.
8685 2015-10-28 Tom de Vries <tom@codesourcery.com>
8687 * tree-ssa-structalias.c (new_var_info, make_heapvar)
8688 (make_constraint_from_restrict, make_constraint_from_global_restrict)
8689 (create_function_info_for, create_variable_info_for_1)
8690 (create_variable_info_for): Add and handle add_id parameter.
8691 (get_call_vi, new_scalar_tmp_constraint_exp, handle_rhs_call)
8692 (init_base_vars): Add extra argument to calls to new_var_info.
8693 (get_vi_for_tree): Add extra argument to call to
8694 create_variable_info_for.
8695 (process_constraint, do_deref, process_all_all_constraints): Add extra
8696 argument to calls to new_scalar_tmp_constraint_exp.
8697 (handle_lhs_call, find_func_aliases_for_builtin_call): Add extra
8698 argument to calls to make_heapvar.
8699 (make_restrict_var_constraints): Add extra argument to call to
8700 make_constraint_from_global_restrict.
8701 (intra_create_variable_infos): Add extra argument to call to
8702 create_variable_info_for_1.
8703 (ipa_pta_execute): Add extra argument to call to
8704 create_function_info_for.
8706 2015-10-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8708 * config/aarch64/aarch64.md (call, call_value, sibcall): Handle noplt.
8709 (sibcall_value): Likewise.
8711 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
8713 * config/nvptx/nvptx.h (struct machine_function): Add
8715 * config/nvptx/nvptx-protos.h (nvptx_expand_oacc_fork,
8716 nvptx_expand_oacc_join): Declare.
8717 * config/nvptx/nvptx.md (UNSPEC_NTID, UNSPEC_TID): Delete.
8718 (UNSPEC_DIM_SIZE, UNSPEC_SHARED_DATA, UNSPEC_BIT_CONV,
8719 UNSPEC_SHUFFLE, UNSPEC_BR_UNIFIED): New.
8720 (UNSPECV_BARSYNC, UNSPECV_DIM_POS, UNSPECV_FORK, UNSPECV_FORKED,
8721 UNSPECV_JOINING, UNSPECV_JOIN): New.
8722 (BITS, BITD): New mode iterators.
8723 (br_true_uni, br_false_uni): New.
8724 (*oacc_ntid_insn, oacc_ntid, *oacc_tid_insn, oacc_tid): Delete.
8725 (oacc_dim_size, oacc_dim_pos): New.
8726 (nvptx_fork, nvptx_forked, nvptx_joining, nvptx_join): New.
8727 (oacc_fork, oacc_join): New.
8728 (nvptx_shuffle<mode>, unpack<mode>si2, packsi<mode>2): New.
8729 (worker_load<mode>, worker_store<mode>): New.
8730 (nvptx_barsync): New.
8731 * config/nvptx/nvptx.c: Include gimple.h & dumpfile.h.
8732 (SHUFFLE_UP, SHUFFLE_DOWN, SHUFFLE_BFLY, SHUFFLE_IDX): Define.
8733 (worker_bcast_hwm, worker_bcast_align, worker_bcast_name,
8734 worker_bcast_sym): New.
8735 (nvptx_option_override): Initialize worker broadcast buffer.
8736 (nvptx_emit_forking, nvptx_emit_joining): New.
8737 (nvptx_init_axis_predicate): New.
8738 (nvptx_declare_function_name): Init axis predicates.
8739 (nvptx_expand_call): Add fork/join markers around routine call.
8740 (nvptx_expand_oacc_fork, nvptx_expand_oacc_join): New.
8741 (nvptx_gen_unpack, nvptx_gen_pack, nvptx_gen_shuffle): New.
8742 (nvptx_gen_vcast): New.
8743 (struct wcast_data_t): New.
8744 (enum propagate_mask): New.
8745 (nvptx_gen_wcast): New.
8746 (nvptx_print_operand): Add 'S' case.
8747 (struct parallel): New.
8748 (parallel::parallel, parallel::~parallel): New.
8749 (bb_insn_map_t, insn_bb_t, insn_bb_vec_t): New typedefs.
8750 (nvptx_split_blocks, nvptx_discover_pre, nvptx_dump_pars,
8751 nvptx_find_par, nvptx_discover_pars): New.
8752 (nvptx_propagate): New.
8753 (vprop_gen, nvptx_vpropagate): New.
8754 (wprop_gen, nvptx_wpropagate): New.
8756 (nvptx_single, nvptx_skip_par): New.
8757 (nvptx_process_pars, nvptx_neuter_pars): New.
8758 (ntptx_reorg): Split blocks, generate parallel structure, apply
8760 (nvptx_cannot_copy_insn_p): New.
8761 (nvptx_file_end): Emit worker broadcast decl.
8762 (nvptx_goacc_fork_join): New.
8763 (TARGET_CANNOT_COPY_INSN_P): Override.
8764 (TARGET_GOACC_FORK_JOIN): Override.
8766 2015-10-28 Richard Biener <rguenther@suse.de>
8768 * fold-const.c (negate_expr_p): Adjust the division case to
8769 properly avoid introducing undefined overflow.
8770 (fold_negate_expr): Likewise.
8772 2015-10-28 Richard Biener <rguenther@suse.de>
8774 PR tree-optimization/65962
8775 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
8776 Avoid creating loop carried dependences also for outer loops
8777 of the loop a use to replace is in.
8779 2015-10-28 Richard Biener <rguenther@suse.de>
8781 * common.opt (fchecking): New flag controlling flag_checking.
8782 * passes.c (verify_curr_properties): Drop DEBUG_FUNCTION.
8783 * timevar.c (timer::print): Adjust output.
8784 * doc/invoke.texi (fchecking): Document.
8786 2015-10-28 Richard Biener <rguenther@suse.de>
8789 * fold-const.c (negate_expr_p): We cannot negate plus or minus
8790 if overflow is not wrapping. Likewise multiplication unless
8791 one operand is constant and not power of two.
8792 (fold_negate_expr): Adjust accordingly.
8794 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
8796 * omp-low.c (struct omp_context): Remove gwv_below, gwv_this
8798 (is_oacc_parallel, is_oacc_kernels): New.
8799 (enclosing_target_ctx): May return NULL.
8800 (ctx_in_oacc_kernels_region): New.
8801 (check_oacc_kernel_gwv): New.
8802 (oacc_loop_or_target_p): Delete.
8803 (scan_omp_for): Don't calculate gwv mask. Check parallel clause
8804 operands. Strip reductions fro kernels.
8805 (scan_omp_target): Don't calculate gwv mask.
8806 (lower_oacc_head_mark, lower_oacc_loop_marker,
8807 lower_oacc_head_tail): New.
8808 (struct oacc_collapse): New.
8809 (expand_oacc_collapse_init, expand_oacc_collapse_vars): New.
8810 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
8811 Remove OpenACC handling.
8812 (expand_oacc_for): New.
8813 (expand_omp_for): Call expand_oacc_for.
8814 (lower_omp_for): Call lower_oacc_head_tail.
8816 2015-10-27 Mikhail Maltsev <maltsevm@gmail.com>
8818 * attribs.c (check_attribute_tables): New function, broken out from...
8819 (init_attributes): Use it.
8820 * cfgcleanup.c (try_optimize_cfg): Use flag_checking, CHECKING_P
8821 gcc_checking_assert and checking_* functions to eliminate
8822 ENABLE_CHECKING conditionals.
8823 * cfgexpand.c (expand_goto, expand_debug_expr): Likewise.
8824 (pass_expand::execute): Likewise.
8825 * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
8826 * cgraphunit.c (mark_functions_to_output): Likewise.
8827 (cgraph_node::expand_thunk): Likewise.
8828 (symbol_table::compile): Likewise.
8829 * ddg.c (add_cross_iteration_register_deps): Likewise.
8830 (create_ddg_all_sccs): Likewise.
8831 * df-core.c (df_finish_pass, df_analyze): Likewise.
8832 * diagnostic-core.h: Likewise.
8833 * diagnostic.c (diagnostic_report_diagnostic): Likewise.
8834 * dominance.c (calculate_dominance_info): Likewise.
8835 * dwarf2out.c (add_AT_die_ref): Likewise.
8836 (const_ok_for_output_1, mem_loc_descriptor): Likewise.
8837 (loc_list_from_tree, gen_lexical_block_die): Likewise.
8838 gen_type_die_with_usage, gen_type_die): Likewise.
8839 (dwarf2out_decl): Likewise.
8840 * emit-rtl.c (verify_rtx_sharing, reorder_insns_nobb): Likewise.
8841 * except.c (duplicate_eh_regions): Likewise.
8842 * fwprop.c (register_active_defs, update_df_init): Likewise.
8843 (fwprop_init, fwprop_done): Likewise.
8844 (update_uses): Likewise.
8845 * ggc-page.c (ggc_grow): Likewise.
8846 * gimplify.c (gimplify_body): Likewise.
8847 (gimplify_hasher::equal): Likewise.
8848 * graphite-isl-ast-to-gimple.c (graphite_verify): Likewise.
8849 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form):
8851 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Likewise.
8852 (rewrite_cross_bb_scalar_deps_out_of_ssa): Likwise.
8853 * hash-table.h (::find_empty_slot_for_expand): Likewise.
8854 * ifcvt.c (if_convert): Likewise.
8855 * ipa-cp.c (ipcp_propagate_stage): Likewise.
8856 * ipa-devirt.c (type_in_anonymous_namespace_p): Likewise.
8857 (odr_type_p, odr_types_equivalent_p): Likewise.
8858 (add_type_duplicate, get_odr_type): Likewise.
8859 * ipa-icf.c (sem_item_optimizer::execute): Likewise.
8860 (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
8861 (sem_item_optimizer::verify_classes): Likewise.
8862 (sem_item_optimizer::traverse_congruence_split): Likewise.
8863 (sem_item_optimizer::checking_verify_classes): New.
8864 * ipa-icf.h (sem_item_optimizer::checking_verify_classes): Add new
8866 * cfgrtl.c (commit_edge_insertions): Likewise.
8867 (fixup_reorder_chain, cfg_layout_finalize): Likewise.
8868 (rtl_flow_call_edges_add): Likewise.
8869 * cgraph.c (symbol_table::create_edge): Likewise.
8870 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
8871 * cgraph.h (symtab_node): Likewise.
8872 (symtab_node::checking_verify_symtab_nodes): Define.
8873 (cgraph_node::checking_verify_cgraph_nodes): Define.
8874 * cfghooks.h (checking_verify_flow_info): Define.
8875 * cfgloop.h (checking_verify_loop_structure): Define.
8876 * dominance.h (checking_verify_dominators): Define.
8877 * et-forest.c: Fix comment.
8878 * ipa-inline-analysis.c (compute_inline_parameters): Use flag_checking,
8879 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
8880 ENABLE_CHECKING conditionals.
8881 * ipa-inline-transform.c (save_inline_function_body): Likewise.
8882 * ipa-inline.c (inline_small_functions): Likewise.
8883 (early_inliner): Likewise.
8884 * ipa-inline.h (estimate_edge_growth): Likewise.
8885 * ipa-visibility.c (function_and_variable_visibility): Likewise.
8886 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
8887 (ipa_single_use): Likewise.
8888 * ira-int.h: Likewise.
8889 * ira.c (ira): Likewise.
8890 * loop-doloop.c (doloop_optimize_loops): Likewise.
8891 * loop-init.c (loop_optimizer_init, fix_loop_structure): Likewise.
8892 * loop-invariant.c (move_loop_invariants): Likewise.
8893 * lra-assigns.c (lra_assign): Likewise.
8894 * lra-constraints.c (lra_constraints): Likewise.
8895 * lra-eliminations.c (lra_eliminate): Likewise.
8896 * lra-int.h (struct lra_reg): Likewise.
8897 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
8898 (lra_create_live_ranges_1): Likewise.
8899 * lra-remat.c (create_remat_bb_data): Likewise.
8900 * lra.c (lra_update_insn_recog_data, restore_scratches): Likewise.
8902 (check_rtl): Always define. Remove incorrect guard around
8903 extract_constrain_insn call.
8904 * lto-cgraph.c (input_cgraph_1: Use flag_checking,
8905 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
8906 ENABLE_CHECKING conditionals.
8907 * lto-streamer-out.c (DFS::DFS): Likewise.
8908 (lto_output): Likewise.
8909 * lto-streamer.c (lto_streamer_init): Likewise.
8910 * omp-low.c (scan_omp_target, expand_omp_taskreg): Likewise.
8911 expand_omp_target, execute_expand_omp): Likewise.
8912 (lower_omp_target): Likewise.
8913 * passes.c (execute_function_todo): Likewise.
8914 (execute_todo, execute_one_pass): Likewise.
8915 (verify_curr_properties): Always define.
8916 * predict.c (tree_estimate_probability: Use flag_checking,
8917 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
8918 ENABLE_CHECKING conditionals.
8919 (propagate_freq): Likewise.
8920 * pretty-print.c (pp_format): Likewise.
8921 * real.c (real_to_decimal_for_mode): Likewise.
8922 * recog.c (split_all_insns): Likewise.
8923 * regcprop.c (kill_value_one_regno): Likewise.
8924 (copy_value): Likewise.
8925 (validate_value_data): Define unconditionally.
8926 * reload.c: Fix comment.
8927 * timevar.c: Include options.h
8928 * tree-ssa.h (checking_verify_ssa): Define.
8929 * tree-ssa-loop-manip.h (checking_verify_loop_closed_ssa): Define.
8930 * sched-deps.c (CHECK): Remove unused macro.
8931 (add_or_update_dep_1, sd_add_dep: Use flag_checking, CHECKING_P
8932 gcc_checking_assert and checking_* functions to eliminate
8933 ENABLE_CHECKING conditionals.
8934 * sel-sched-ir.c (free_regset_pool, tidy_control_flow): Likewise.
8935 * sel-sched.c (struct moveop_static_params): Likewise.
8936 (find_best_reg_for_expr, move_cond_jump): Likewise.
8937 (move_op_orig_expr_not_found): Likewise.
8938 (code_motion_process_successors, move_op): Likewise.
8939 * ssa-iterators.h (first_readonly_imm_use): Likewise.
8940 (next_readonly_imm_use): Likewise.
8941 * store-motion.c (compute_store_table): Likewise.
8942 * symbol-summary.h (function_summary::function_summary): Likewise.
8943 * target.h (cumulative_args_t): Likewise.
8944 (get_cumulative_args, pack_cumulative_args): Likewise.
8945 * timevar.c: (timer::print): Likewise.
8946 * trans-mem.c (ipa_tm_execute): Likewise.
8947 * tree-cfg.c (move_stmt_op): Likewise.
8948 (move_sese_region_to_fn): Likewise.
8949 (gimple_flow_call_edges_add): Likewise.
8950 * tree-cfgcleanup.c (cleanup_tree_cfg_noloop, repair_loop_structures):
8952 * tree-eh.c (remove_unreachable_handlers): Likewise.
8953 * tree-if-conv.c (pass_if_conversion::execute): Likewise.
8954 * tree-inline.c (expand_call_inline, optimize_inline_calls): Likewise.
8955 * tree-into-ssa.c (update_ssa): Likewise.
8956 * tree-loop-distribution.c (pass_loop_distribution::execute): Likewise.
8957 * tree-outof-ssa.c (eliminate_useless_phis, rewrite_trees): Likewise.
8958 * tree-parloops.c (pass_parallelize_loops::execute): Likewise.
8959 * tree-predcom.c (suitable_component_p): Likewise.
8960 * tree-profile.c (gimple_gen_const_delta_profiler): Likewise.
8961 * tree-ssa-alias.c (refs_may_alias_p_1): Likewise.
8962 * tree-ssa-live.c (verify_live_on_entry): Likewise.
8963 * tree-ssa-live.h (register_ssa_partition): Likewise.
8964 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Likewise.
8965 * tree-ssa-loop-manip.c (add_exit_phi): Likewise.
8966 (tree_transform_and_unroll_loop): Likewise.
8967 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
8968 * tree-ssa-operands.c (get_expr_operands): Likewise.
8969 * tree-ssa-propagate.c (replace_exp_1): Likewise.
8970 * tree-ssa-structalias.c (rewrite_constraints): Likewise.
8971 * tree-ssa-ter.c (free_temp_expr_table): Likewise.
8972 * tree-ssa-threadupdate.c (duplicate_thread_path): Likewise.
8973 * tree-ssanames.c (release_ssa_name_fn): Likewise.
8974 * tree-stdarg.c (expand_ifn_va_arg): Likewise.
8975 * tree-vect-loop-manip.c
8976 (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
8977 (slpeel_checking_verify_cfg_after_peeling): Likewise.
8978 (vect_do_peeling_for_loop_bound): Likewise.
8979 (vect_do_peeling_for_alignment): Likewise.
8980 * tree-vrp.c (supports_overflow_infinity): Likewise.
8981 (set_value_range): Likewise.
8982 * tree.c (free_lang_data_in_cgraph): Likewise.
8983 * value-prof.c (gimple_remove_histogram_value): Likewise.
8984 (free_hist): Likewise.
8985 * var-tracking.c (canonicalize_values_star): Likewise.
8986 (compute_bb_dataflow, vt_find_locations, vt_emit_notes): Likewise.
8988 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
8990 * internal-fn.def (IFN_GOACC_DIM_SIZE, IFN_GOACC_DIM_POS,
8991 IFN_GOACC_LOOP): New.
8992 * internal-fn.h (enum ifn_unique_kind): Add IFN_UNIQUE_OACC_FORK,
8993 IFN_UNIQUE_OACC_JOIN, IFN_UNIQUE_OACC_HEAD_MARK,
8994 IFN_UNIQUE_OACC_TAIL_MARK.
8995 (enum ifn_goacc_loop_kind): New.
8996 * internal-fn.c (expand_UNIQUE): Add IFN_UNIQUE_OACC_FORK,
8997 IFN_UNIQUE_OACC_JOIN cases.
8998 (expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS): New.
8999 (expand_GOACC_LOOP): New.
9000 * target-insns.def (oacc_dim_pos, oacc_dim_size): New.
9001 * omp-low.c: Include gimple-pretty-print.h.
9002 (struct oacc_loop): New.
9003 (enum oacc_loop_flags): New.
9004 (oacc_thread_numbers): New.
9005 (oacc_xform_loop): New.
9006 (new_oacc_loop_raw, new_oacc_loop_outer, new_oacc_loop,
9007 new_oacc_loop_routine, finish_oacc_loop, free_oacc_loop): New,
9008 (dump_oacc_loop_part, dump_oacc_loop, debug_oacc_loop): New,
9009 (oacc_loop_discover_walk, oacc_loop_sibling_nrevers,
9010 oacc_loop_discovery): New.
9011 (oacc_loop_xform_head_tail, oacc_loop_xform_loop,
9012 oacc_loop_process): New.
9013 (oacc_loop_fixed_partitions, oacc_loop_partition): New.
9014 (execute_oacc_device_lower): Discover & process loops. Process
9016 * target.def (goacc.fork_join): Change sense of hook, clarify
9018 * doc/tm.texi: Regenerated.
9020 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
9022 * target-insns.def (oacc_fork, oacc_join): Define.
9023 * target.def (goacc.validate_dims): Adjust doc to avoid warning.
9024 (goacc.fork_join): New GOACC hook.
9025 * targhooks.h (default_goacc_fork_join): Declare.
9026 * omp-low.c (default_goacc_forkjoin): New.
9027 * doc/tm.texi.in (TARGET_GOACC_FORK_JOIN): Add.
9028 * doc/tm.texi: Regenerate.
9030 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
9032 * omp-low.c (oacc_init_rediction_array): New.
9033 (oacc_initialize_reduction_data): Initialize array.
9035 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
9037 * omp-low.c (pass_oacc_device_lower::execute): Ignore errors.
9039 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
9041 * internal-fn.c (expand_UNIQUE): New.
9042 * internal-fn.h (enum ifn_unique_kind): New.
9043 * internal-fn.def (IFN_UNIQUE): New.
9044 * target-insns.def (unique): Define.
9045 * gimple.h (gimple_call_internal_unique_p): New.
9046 * gimple.c (gimple_call_same_target_p): Check internal fn
9048 * tracer.c (ignore_bb_p): Check for IFN_UNIQUE call.
9049 * tree-ssa-threadedge.c
9050 (record_temporary_equivalences_from_stmts): Likewise.
9051 * tree-cfg.c (gmple_call_initialize_ctrl_altering): Likewise.
9053 2015-10-27 Richard Henderson <rth@redhat.com>
9056 * config/i386/i386.c (ix86_cannot_change_mode_class): Disallow
9057 narrowing subregs on SSE and MMX registers.
9058 * doc/tm.texi.in (CANNOT_CHANGE_MODE_CLASS): Clarify when subregs that
9059 appear to be sub-words of multi-register pseudos must be rejected.
9060 * doc/tm.texi: Regenerate.
9062 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9065 * config/aarch64/aarch64.md (*movsi_aarch64): Check that
9066 operands[0] is a reg before taking its REGNO in split condition.
9067 (*movdi_aarch64): Likewise.
9069 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9071 * config/aarch64/aarch64.c (aarch64_output_simd_mov_immediate):
9072 Handle floating point inner modes properly.
9074 2015-10-27 Alan Hayward <alan.hayward@arm.com>
9077 (vectorizable_live_operation): Change iterator.
9079 2015-10-27 Abderrazek Zaafrani <a.zaafrani@samsung.com>
9080 Aditya Kumar <aditya.k7@samsung.com>
9082 * graphite-optimize-isl.c (get_schedule_for_node_st): New callback
9083 function to schedule based on isl_schedule_node.
9084 (get_schedule_map_st): New schedule optimizer based on
9086 (scop_get_domains): New. Return the isl_union_set containing the
9087 domains of all the pbbs.
9088 (optimize_isl): Call the new function get_schedule_map_st for isl-0.15
9090 2015-10-27 H.J. Lu <hongjiu.lu@intel.com>
9093 * calls.c (prepare_call_address): Don't handle -fno-plt here.
9094 * config/i386/i386.c (ix86_expand_call): Generate indirect call
9095 via GOT for -fno-plt. Support indirect call via GOT for x32.
9096 * config/i386/predicates.md (sibcall_memory_operand): Allow
9099 2015-10-27 Richard Biener <rguenther@suse.de>
9101 PR tree-optimization/68104
9102 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
9103 strided access check ...
9104 (vect_compute_data_refs_alignment): ... here.
9106 2015-10-27 Daniel Jacobowitz <dan@codesourcery.com>
9107 Joseph Myers <joseph@codesourcery.com>
9108 Mark Shinwell <shinwell@codesourcery.com>
9109 Andrew Stubbs <ams@codesourcery.com>
9110 Rich Felker <dalias@libc.org>
9112 * config.gcc: Handle --enable-fdpic.
9113 * config/sh/constraints.md (Ccl): New constraint.
9114 * config/sh/linux.h (SUBTARGET_LINK_EMUL_SUFFIX): Handle -mfdpic.
9115 * config/sh/sh-c.c (sh_cpu_cpp_builtins): Add __FDPIC__ and
9117 * config/sh/sh-mem.cc (expand_block_move): Support FDPIC for calls to
9119 * config/sh/sh-protos.h (function_symbol_result): New struct.
9120 (function_symbol): Return function_symbol_result.
9121 (sh_get_fdpic_reg_initial_val, sh_load_function_descriptor): New
9123 * config/sh/sh.c (TARGET_ASM_INTEGER, sh_assemble_integer): Implement
9125 (TARGET_CANNOT_FORCE_CONST_MEM, sh_cannot_force_const_mem_p): Likewise.
9126 (sh_option_override): Force -fPIC if FDPIC is in effect.
9127 (sh_asm_output_addr_const_extra): Add UNSPEC_GOTFUNCDESC and
9128 UNSPEC_GOTOFFFUNCDESC cases.
9129 (prepare_move_operands): Use FDPIC initial GOT register for
9130 TLS-related GOT access; inhibit cross-section address offset constants
9132 (sh_assemble_integer): New function.
9133 (sh_cannot_copy_insn_p): Inhibit copying insns that are FDPIC
9134 PC-relative call sites.
9135 (expand_ashiftrt): Adapt invocation of function_symbol.
9136 (sh_expand_prologue): Inhibit PC-relative GOT address load for FDPIC.
9137 (nonpic_symbol_mentioned_p): Add cases for UNSPEC_GOTFUNCDESC and
9138 UNSPEC_GOTOFFFUNCDESC.
9139 (legitimize_pic_address): Resolve function symbols to function
9140 descriptors for FDPIC. Do not use GOT-relative addressing for local
9141 data that may be read-only on FDPIC.
9142 (sh_emit_storesi, sh_emit_storehi): New functions.
9143 (sh_trampoline_init): Generate FDPIC trampolines.
9144 (sh_function_ok_for_sibcall): Add TARGET_FDPIC check.
9145 (sh_expand_sym_label2reg): Don't assume sibcalls are local.
9146 (sh_output_mi_thunk): Generate FDPIC call.
9147 (function_symbol): Return function_symbol_result. For SFUNC_STATIC on
9148 FDPIC, generate call site labels to use PC-relative addressing rather
9149 than GOT-relative addressing.
9150 (sh_conditional_register_usage): Make PIC register fixed and call used
9151 when FDPIC is in effect.
9152 (sh_legitimate_constant_p): Impose FDPIC constant constraints.
9153 (sh_cannot_force_const_mem_p, sh_load_function_descriptor,
9154 sh_get_fdpic_reg_initial_val): New functions.
9155 * config/sh/sh.h (SUBTARGET_ASM_SPEC, SUBTARGET_LINK_EMUL_SUFFIX):
9157 (FDPIC_SELF_SPECS, SUBTARGET_DRIVER_SELF_SPECS,
9158 PIC_OFFSET_TABLE_REG_CALL_CLOBBERED,
9159 SH_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): New macros.
9160 (DRIVER_SELF_SPECS): Add SUBTARGET_DRIVER_SELF_SPECS and
9162 (TRAMPOLINE_SIZE): Select trampoline size for FDPIC.
9163 (ASM_PREFERRED_EH_DATA_FORMAT): Add EH format constraints for FDPIC.
9164 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Handle FDPIC case.
9165 * config/sh/sh.md (UNSPEC_GOTFUNCDESC, UNSPEC_GOTOFFFUNCDESC): New
9167 (calli_fdpic, call_valuei_fdpic, sibcalli_fdpic, sibcalli_pcrel_fdpic,
9168 sibcall_pcrel_fdpic, sibcall_valuei_fdpic, sibcall_valuei_pcrel_fdpic,
9169 sibcall_value_pcrel_fdpic, sym2GOTFUNCDESC, symGOTFUNCDESC2reg,
9170 sym2GOTOFFFUNCDESC, symGOTOFFFUNCDESC2reg): New patterns.
9171 (udivsi3_i1, udivsi3_i4, udivsi3_i4_single, udivsi3,
9172 *divsi_inv_call_combine, divsi3_i4, divsi3_i4_single, divsi3, ashlsi3,
9173 ashlsi3_d_call, ashrsi3_n, lshrsi3, lshrsi3_d_call, calli, call_valuei,
9174 call, call_value, sibcalli, sibcalli_pcrel, sibcall_pcrel, sibcall,
9175 sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
9176 sibcall_value, GOTaddr2picreg, symGOT_load, symGOTOFF2reg,
9177 block_move_real, block_lump_real, block_move_real_i4,
9178 block_lump_real_i4): Add support for FDPIC calls.
9179 (mulsi3, ic_invalidate_line, initialize_trampoline, call_pop,
9180 call_value_pop): Adjust for new function_symbol signature.
9181 * config/sh/sh.opt (-mfdpic): New option.
9182 * doc/install.texi (Options specification): Document --enable-fdpic.
9183 * doc/invoke.texi (SH Options): Document -mfdpic.
9186 2015-10-27 Alan Lawrence <alan.lawrence@arm.com>
9188 PR tree-optimization/65963
9189 * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
9190 LSHIFT_EXPRs as equivalent MULT_EXPRs.
9192 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9195 * config/arm/arm.c (vfp3_const_double_for_bits): Rewrite.
9196 * config/arm/constraints.md (Dp): Update callsite.
9197 * config/arm/predicates.md (const_double_vcvt_power_of_two): Likewise.
9199 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
9201 * builtins.c (fold_builtin_load_exponent): Rename to...
9202 (fold_const_builtin_load_exponent): ...this and only handle
9204 (fold_builtin_2): Update accordingly.
9205 * match.pd: Add rules previously handled by fold_builtin_load_exponent.
9207 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
9209 * builtins.c (fold_builtin_logb): Rename to...
9210 (fold_const_builtin_logb): ...this and remove STRIP_NOPS call.
9211 (fold_builtin_significand): Rename to...
9212 (fold_const_builtin_significand): ...this and remove STRIP_NOPS call.
9213 (fold_builtin_1): Update accordingly.
9215 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
9217 * builtins.c (fold_builtin_fmin_fmax): Delete.
9218 (fold_builtin_2): Handle constant fmin and fmax arguments here.
9219 * match.pd: Add rules previously handled by fold_builtin_fmin_fmax.
9221 2015-10-27 Evandro Menezes <e.menezes@samsung.com>
9223 * config/aarch64/aarch64-protos.h (cpu_addrcost_table): Split member
9224 for register extension into sign and zero register extension.
9225 * config/aarch64/aarch64.c (generic_addrcost_table): Infer values
9226 for sign and zero register extension.
9227 (cortexa57_addrcost_table): Likewise.
9228 (xgene1_addrcost_table): Likewise.
9230 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
9232 * fold-const.c (fold_minmax): Delete.
9233 (fold_binary_loc): Don't call it.
9234 * match.pd: Add rules previously handled by fold_minmax.
9236 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
9238 * builtins.c (fold_builtin_fma): Remove constant handling.
9239 (fold_builtin_3): Handle constant fma arguments here.
9241 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
9243 * builtins.c (fold_builtin_fabs): Remove constant handling.
9244 (fold_builtin_abs): Likewise.
9246 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
9248 * builtins.c (fold_builtin_copysign): Delete.
9249 (fold_builtin_2): Handle constant copysign arguments here.
9250 * match.pd: Add rules previously handled by fold_builtin_copysign.
9252 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
9254 * builtins.c (fold_builtin_signbit): Delete.
9255 (fold_builtin_2): Handle constant signbit arguments here.
9256 * match.pd: Add rules previously handled by fold_builtin_signbit.
9258 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
9260 * match.pd: Handle sqrt(x) cmp 0 specially.
9262 2015-10-27 Ilya Enkovich <enkovich.gnu@gmail.com>
9264 * tree-vect-generic.c (expand_vector_operations_1): Check
9265 optab type before using it.
9267 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9269 * config/aarch64/aarch64-protos.h
9270 (struct tune_params): Add autoprefetcher_model field.
9271 * config/aarch64/aarch64.c: Include params.h
9272 (generic_tunings): Specify autoprefetcher_model value.
9273 (cortexa53_tunings): Likewise.
9274 (cortexa57_tunings): Likewise.
9275 (cortexa72_tunings): Likewise.
9276 (thunderx_tunings): Likewise.
9277 (xgene1_tunings): Likewise.
9278 (aarch64_first_cycle_multipass_dfa_lookahead_guard): New function.
9279 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define.
9280 (aarch64_override_options_internal): Set
9281 PARAM_SCHED_AUTOPREF_QUEUE_DEPTH param.
9283 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
9285 * builtins.c (fold_builtin_exponent): Delete.
9286 (fold_builtin_2): Handle constant expN arguments here.
9287 * match.pd: Fold expN(logN(x)) -> x.
9289 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
9291 * builtins.c (fold_builtin_powi): Delete.
9292 (fold_builtin_2): Handle constant powi arguments here.
9293 * match.pd: Add rules previously handled by fold_builtin_powi.
9295 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
9297 * builtins.c (fold_builtin_pow): Delete in favor of...
9298 (fold_const_builtin_pow): ...this new function. Only handle constant
9300 (fold_builtin_2): Update accordingly.
9301 * match.pd: Add rules previously handled by fold_builtin_pow.
9303 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
9305 * builtins.c (fold_builtin_hypot): Delete.
9306 (fold_builtin_2): Handle constant hypot arguments here.
9307 * match.pd: Fold hypot(x, 0) and hypot(0, x) to x. Canonicalize
9308 hypot(x, x) to fabs(x)*sqrt(2).
9310 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
9312 * gimple-match-head.c (maybe_push_res_to_seq): Use create_tmp_reg
9313 instead of make_ssa_name if not yet in SSA form.
9315 2015-10-27 Richard Biener <rguenther@suse.de>
9317 * cfg.c (free_edge): Add function argument and use it instead of cfun.
9318 (clear_edges): Likewise.
9319 * cfg.h (clear_edges): Adjust prototype.
9320 * cfgexpand.c (pass_expand::execute): Adjust.
9321 * cfgloop.c (release_recorded_exits): Add function argument and use
9323 * cfgloop.h (release_recorded_exits): Adjust prototype.
9324 (loops_state_satisfies_p): Add overload with function argument.
9325 (loops_state_set): Likewise.
9326 (loops_state_clear): Likewise.
9327 (struct loop_iterator): Add function argument to constructor
9328 and iterator and use it instead of cfun.
9329 (FOR_EACH_LOOP_FN): New macro.
9330 (loop_optimizer_finalize): Add overload with function argument.
9331 * loop-init.c (loop_optimizer_init): Adjust.
9332 (fix_loop_structure): Likewise.
9333 (loop_optimizer_finaliz): Add function argument and use it
9335 * tree-cfg.c (delete_tree_cfg_annotations): Likewise.
9336 * tree-cfg.h (delete_tree_cfg_annotations): Adjust prototype.
9337 * cgraph.c (release_function_body): Do not push/pop cfun.
9338 * final.c (rest_of_clean_state): Adjust.
9339 * graphite.c (graphite_finalize): Likewise.
9340 * tree-ssa-copy.c (fini_copy_prop): Likewise.
9341 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
9342 * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Likewise.
9343 (tree_unroll_loops_completely): Likewise.
9344 (pass_complete_unrolli::execute): Likewise.
9345 * tree-ssa-loop-niter.c (free_numbers_of_iterations_estimates):
9346 Add function argument and use it instead of cfun.
9347 * tree-ssa-loop-niter.h (free_numbers_of_iterations_estimates):
9349 * tree-ssa-loop.c (tree_ssa_loop_done): Adjust.
9350 * tree-ssa.c (delete_tree_ssa): Add function argument and use it
9352 * tree-ssa.h (delete_tree_ssa): Adjust prototype.
9353 * tree-ssanames.c (fini_ssanames): Add function argument and use it
9355 * tree-ssanames.c (fini_ssanames): Adjust prototype.
9356 * tree-vrp.c (execute_vrp): Adjust.
9357 * value-prof.c (free_histograms): Add function argument and use it
9359 * value-prof.h (free_histograms): Adjust prototype.
9361 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
9363 * tree.h (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES)
9364 (OACC_KERNELS_BODY, OACC_KERNELS_CLAUSES, OACC_KERNELS_COMBINED)
9365 (OACC_PARALLEL_COMBINED): Don't define macros. Adjust all users.
9367 2015-10-27 Tom de Vries <tom@codesourcery.com>
9369 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Add and use var
9372 2015-10-27 Bin Cheng <bin.cheng@arm.com>
9374 * loop-invariant.c (struct def): New field can_prop_to_addr_uses.
9375 (inv_can_prop_to_addr_use): New function.
9376 (record_use): Call can_prop_to_addr_uses, set the new field.
9377 (get_inv_cost): Count cost if inv can't be propagated into its
9380 2015-10-26 Doug Evans <dje@google.com>
9382 * config/linux.h (INCLUDE_DEFAULTS): Add INCLUDE_DEFAULTS_MUSL_LOCAL.
9384 2015-10-26 Eric Botcazou <ebotcazou@adacore.com>
9386 * match.pd (fold_widened_comparison): Apply simplifications to all
9389 2015-10-26 Simon Dardis <simon.dardis@imgtec.com>
9391 * target.def (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): New hook.
9392 * doc/tm.texi.in (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): Document.
9393 * doc/tm.texi: Regenerated.
9394 * reorg.c (dbr_schedule): Use new hook.
9395 * config/mips/mips.c (mips_no_speculation_in_delay_slots_p): New.
9397 2015-10-26 Jeff Law <law@redhat.com>
9399 PR tree-optimization/68013
9400 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
9401 Make sure the first block in the path is in VISITED_BBs.
9403 2015-10-26 Richard Biener <rguenther@suse.de>
9404 Dominik Vogt <vogt@linux.vnet.ibm.com>
9407 * alias.c (ao_ref_from_mem): Remove promoted subreg handling.
9408 Properly prune ref->ref for accesses outside of ref.
9410 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
9412 * gimple-fold.c (replace_stmt_with_simplification): Don't allow
9413 new statements to be inserted if inplace. Allow calls to have
9416 2015-10-26 Richard Biener <rguenther@suse.de>
9418 * tree-object-size.c: Remove builtins.h include, include tree-cfg.h.
9419 (do_valueize): New function.
9420 (pass_object_sizes::execute): Use gimple_fold_stmt_to_constant and
9422 * tree-ssa-threadedge.c: Remove builtins.h include, include
9424 (fold_assignment_stmt): Remove.
9425 (threadedge_valueize): New function.
9426 (record_temporary_equivalences_from_stmts): Use
9427 gimple_fold_stmt_to_constant_1, note additional cleanup
9430 2015-10-26 Richard Biener <rguenther@suse.de>
9432 * match.pd ((A & ~B) - (A & B) -> (A ^ B) - B): Add missing :c.
9433 ( (X & ~Y) | (~X & Y) -> X ^ Y): Remove redundant :c.
9435 2015-10-26 Alan Hayward <alan.hayward@arm.com>
9437 * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
9438 VEC_COND_EXPR types.
9440 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9442 * auto-inc-dec.c (insert_move_insn_before): Delete.
9443 (attempt_change): Remember to cost the simple move in the
9444 FORM_PRE_ADD and FORM_POST_ADD cases.
9446 2015-10-26 Kaz Kojima <kkojima@gcc.gnu.org>
9449 * config/sh/sh.c (sh_vector_mode_supported_p): Use
9450 TARGET_SHMEDIA_FPU instead of TARGET_FPU_ANY.
9452 2015-10-26 Tom de Vries <tom@codesourcery.com>
9454 * tree-ssa-structalias.c (make_restrict_var_constraints): New function,
9456 (intra_create_variable_infos): ... here.
9458 2015-10-26 Tom de Vries <tom@codesourcery.com>
9460 * tree-ssa-structalias.c (intra_create_variable_infos): Add
9461 restrict_pointer_p and recursive_restrict_p variables.
9463 2015-10-26 Tom de Vries <tom@codesourcery.com>
9465 * tree-ssa-structalias.c (intra_create_variable_infos): Inline
9466 get_vi_for_tree call.
9468 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9471 * optabs.c (expand_atomic_compare_and_swap): Handle case when
9472 ptarget_oval or ptarget_bool are const0_rtx.
9474 2015-10-26 Christian Bruel <christian.bruel@st.com>
9476 * function.h (MINIMUM_METHOD_BOUNDARY): New macro.
9477 * cp/decl.c (grokfndecl): Set DECL_ALIGN with MINIMUM_METHOD_BOUNDARY.
9478 * cp/method.c (implicitly_declare_fn): Likewise.
9479 * cp/lambda.c (maybe_add_lambda_conv_op): Likewise. Remove VBIT setting.
9480 * java/class.c (add_method_1): Likewise.
9482 2015-10-26 Richard Biener <rguenther@suse.de>
9484 * alloc-pool.h (base_pool_allocator): Use placement new.
9485 (base_pool_allocator::remove): Likewise. Compute size outside of
9488 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
9490 * builtins.c (do_real_to_int_conversion): New function.
9491 (fold_fixed_mathfn, fold_builtin_int_roundingfn): Delete.
9492 (fold_builtin_1): Handle constant {i,l,ll}{ceil,floor,round}{f,,l}
9494 * match.pd: Add rules previously handled by fold_fixed_mathfn
9495 and fold_builtin_int_roundingfn.
9497 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
9499 * match.pd: Use macros to define built-in operator lists.
9501 2015-10-20 Richard Sandiford <richard.sandiford@arm.com>
9502 Richard Biener <rguenther@suse.de>
9504 * genmatch.c (dt_simplify::gen): Skip captures that are
9506 (parser::parse_expr): Allow captures in results too.
9507 * builtins.c (fold_builtin_cexp): Delete.
9508 (fold_builtin_1): Handle constant cexp arguments here.
9509 * match.pd: Fold cexp(x+yi) to exp(x) * cexpi(y).
9511 2015-10-26 Mikhail Maltsev <maltsevm@gmail.com>
9513 * alloc-pool.h (base_pool_allocator::initialize, ::allocate): Remove
9514 conditional compilation.
9515 (base_pool_allocator::remove): Use flag_checking.
9517 2015-10-25 John David Anglin <danglin@gcc.gnu.org>
9519 * config/pa/som.h (EH_FRAME_THROUGH_COLLECT2): Define.
9522 * dojump.c (do_compare_and_jump): Canonicalize both function and
9525 2015-10-25 Uros Bizjak <ubizjak@gmail.com>
9528 * config/i386/i386.c (ix86_md_asm_adjust) [case 'a']: Use NE code
9531 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
9534 * ipa-polymorphic-call.c
9535 (ipa_polymorphic_call_context::get_dynamic_type): Do not confuse
9536 instance offset with offset of outer type.
9538 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
9540 * fold-const.c (operand_equal_p): Handle VIEW_CONVERT_EXPR.
9542 2015-10-23 Caroline Tice <cmtice@google.com>
9544 (from Richard Biener
9545 * tree.c (int_cst_hasher::hash): Replace XOR with more efficient
9546 call to iterative_hash_host_wide_int.
9548 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
9550 * config.gcc (powerpc-ibm-aix[6789]) [default_use_cxa_atexit]:
9553 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
9555 * tree-vect-generic.c (expand_vector_operations_1): Check
9556 optab exists before use it.
9558 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
9560 * tree-vect-generic.c (expand_vector_condition): Avoid
9561 uninitialized variable warning.
9563 2015-10-23 Jeff Law <law@redhat.com>
9565 * passes.c (execute_function_todo): Do not call flush_ssaname_freelist
9567 (execute_todo): Call it here.
9568 * tree-ssanames.c (make_ssa_name_fn): Unconditionally gather reuse
9570 (pass_release_ssa_names::execute): Do not call flusH_ssaname_freelist.
9572 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
9573 Szabolcs Nagy <szabolcs.nagy@arm.com>
9575 * config.gcc (enable_secureplt): Add *-linux*-musl*.
9577 2015-10-23 Jeff Law <law@redhat.com>
9579 PR tree-optimization/67830
9580 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
9581 Explicitly verify the mask has no bits outside the type of
9582 the innermost operands.
9584 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
9585 Szabolcs Nagy <szabolcs.nagy@arm.com>
9587 * config/rs6000/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
9588 (MUSL_DYNAMIC_LINKER64): Define.
9589 (GNU_USER_DYNAMIC_LINKER32): Update.
9590 (GNU_USER_DYNAMIC_LINKER64): Update.
9591 (CHOOSE_DYNAMIC_LINKER): Update.
9593 * config/rs6000/sysv4.h (GNU_USER_DYNAMIC_LINKER): Update.
9594 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER_E,)
9595 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
9596 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
9597 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
9598 (CHOOSE_DYNAMIC_LINKER): Update.
9599 (INCLUDE_DEFAULTS): Redefine.
9601 * config/rs6000/sysv4le.h (MUSL_DYNAMIC_LINKER_E): Define.
9603 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
9605 * fold-const.c (operand_equal_p): Do not compare TYPE_MODE when
9606 comparing addresses.
9608 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
9610 * fold-const.c (operand_equal_p): Handle matching of vector
9613 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
9615 * doc/install.texi (*-ibm-aix*): Additional information for AIX 7.1.
9617 2015-10-23 Steve Ellcey <sellcey@imgtec.com>
9618 Andrew Pinski <apinski@cavium.com>
9620 PR rtl-optimization/67736
9621 * combine.c (simplify_comparison): Use gen_lowpart_or_truncate instead
9624 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
9627 * tree.c (build_truth_vector_type): Support BLK mode
9628 returned for boolean vector.
9630 2015-10-23 Alan Hayward <alan.hayward@arm.com>
9632 PR tree-optimization/65947
9634 (vect_is_simple_reduction_1): Find condition reductions.
9635 (vect_model_reduction_cost): Add condition reduction costs.
9636 (get_initial_def_for_reduction): Add condition reduction initial var.
9637 (vect_create_epilog_for_reduction): Add condition reduction epilog.
9638 (vectorizable_reduction): Condition reduction support.
9639 * tree-vect-stmts.c (vectorizable_condition): Add vect reduction arg
9640 * doc/sourcebuild.texi (Vector-specific attributes): Document
9643 2015-10-23 Richard Biener <rguenther@suse.de>
9645 * Makefile.in (build/genmatch.o): Properly depend on is-a.h, tree.def
9648 2015-10-23 Richard Biener <rguenther@suse.de>
9649 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
9651 * fold-const.c (fold_binary_loc) : Move Fold (A & ~B) - (A & B)
9652 into (A ^ B) - B to match.pd
9653 Move (X & ~Y) | (~X & Y) is X ^ Y to match.pd.
9655 * match.pd (minus (bit_and:cs @0 (bit_not @1)) (bit_and:s @0 @1)):
9657 (minus (bit_and:s @0 INTEGER_CST@2) (bit_and:s @0 INTEGER_CST@1)):
9659 (minus (bit_and:s @0 @1) (bit_and:cs @0 (bit_not @1))):
9661 (bit_ior:c (bit_and:c @0 (bit_not @1)) (bit_and:c (bit_not @0) @1)):
9663 (bit_ior:c (bit_and @0 INTEGER_CST@2) (bit_and (bit_not @0)
9664 INTEGER_CST@1)): New simplifier.
9666 2015-10-23 Richard Sandiford <richard.sandiford@arm.com>
9668 * builtins.c (integer_valued_real_p): Move to fold-const.c.
9669 (fold_trunc_transparent_mathfn, fold_builtin_trunc, fold_builtin_floor)
9670 (fold_builtin_ceil, fold_builtin_round): Delete.
9671 (fold_builtin_1): Handle constant trunc, floor, ceil and round
9673 * convert.c (convert_to_real): Remove narrowing of rounding
9675 * fold-const.h (integer_valued_real_unary_p)
9676 (integer_valued_real_binary_p, integer_valued_real_call_p)
9677 (integer_valued_real_single_p, integer_valued_real_p): Declare.
9678 * fold-const.c (tree_single_nonnegative_warnv_p): Move
9679 name_registered_for_update_p check to SSA_NAME case statement.
9680 Don't call tree_simple_nonnegative_warnv_p for SSA names.
9681 (integer_valued_real_unary_p, integer_valued_real_binary_p)
9682 (integer_valued_real_call_p, integer_valued_real_single_p)
9683 (integer_valued_real_invalid_p): New functions.
9684 (integer_valued_real_p): Move from fold-const.c and rework
9685 to call the functions above. Handle SSA names.
9686 * gimple-fold.h (gimple_stmt_integer_valued_real_p): Declare.
9687 * gimple-fold.c (gimple_assign_integer_valued_real_p)
9688 (gimple_call_integer_valued_real_p, gimple_phi_integer_valued_real_p)
9689 (gimple_stmt_integer_valued_real_p): New functions.
9690 * match.pd: Fold f(f(x))->f(x) for fp->fp rounding functions f.
9691 Fold f(x)->x for the same f if x is known to be integer-valued.
9692 Fold f(extend(x))->extend(f'(x)) if doing so doesn't affect
9693 the result. Canonicalize floor(x) as trunc(x) if x is
9696 2015-10-23 Tom de Vries <tom@codesourcery.com>
9698 * tree-ssa-structalias.c (intra_create_variable_infos): Use
9699 make_constraint_from.
9701 2015-10-23 Tom de Vries <tom@codesourcery.com>
9703 * tree-ssa-structalias.c (create_variable_info_for_1): Add missing
9704 setting of is_full_var in case of a single field.
9706 2015-10-22 Martin Sebor <msebor@redhat.com>
9709 * config/i386/i386.opt: Add missing periods to the ends of sentences.
9710 * config/msp430/msp430.opt: Same.
9712 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
9714 * doc/extend.exp (Global Register Variables): Rewrite.
9716 2015-10-22 Jeff Law <law@redhat.com>
9718 * genattrtab.c (main): If we do not have any annul-true or annul-false
9719 slots, then write out a dummy eligible_for_annul_true or
9720 eligible_for_annul_false as needed.
9722 2015-10-22 Nick Clifton <nickc@redhat.com>
9724 * config/msp430/msp430.opt: Add -msilicon-errata and
9725 -msilicon-errata-warn.
9726 * config/msp430/msp430.h (ASM_SPEC): Pass new options on to
9728 * doc/invoke.texi: Document new options.
9730 2015-10-22 Richard Biener <rguenther@suse.de>
9732 PR tree-optimization/58497
9733 * tree-vect-generic.c (ssa_uniform_vector_p): New helper.
9734 (expand_vector_operations_1): Use it. Lower operations on
9735 all uniform vectors to scalar operations if the HW supports it.
9737 2015-10-22 Richard Biener <rguenther@suse.de>
9739 PR tree-optimization/19049
9740 PR tree-optimization/65962
9741 * tree-vect-data-refs.c (vect_analyze_group_access_1): Fall back
9742 to strided accesses if single-element interleaving doesn't work.
9744 2015-10-22 Richard Biener <rguenther@suse.de>
9748 * optabs.c (emit_libcall_block_1): Allow a NULL_RTX equiv.
9749 (expand_binop): For -ftrapv optabs do not record an REG_EQUAL note.
9750 (expand_unop): Likewise.
9752 2015-10-22 Richard Biener <rguenther@suse.de>
9754 * fold-const.c (fold_addr_of_array_ref_difference): Properly
9755 convert operands before folding a MINUS_EXPR.
9756 (fold_binary_loc): Move simplification of MINUS_EXPR on
9757 converted POINTER_PLUS_EXPRs ...
9758 * match.pd: ... here.
9760 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
9762 * builtins.c (fold_builtin_tan): Delete.
9763 (fold_builtin_1): Handle constant tan arguments here.
9764 * match.pd: Simplify (tan (atan x)) to x.
9766 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
9768 * builtins.c (fold_builtin_cproj): Delete.
9769 (fold_builtin_1): Handle constant arguments here.
9770 (build_complex_cproj): Move and rename to...
9771 * tree.c: (build_complex_inf): ...this.
9772 * tree.h (build_complex_inf): Declare.
9773 * match.pd: Fold cproj(x)->x if x has no infinity.
9774 Use build_complex_inf for existing cproj rules.
9776 2015-10-22 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9779 * config/s390/s390.md (mov<mode>cc): Emit compare only if we don't
9780 already have a comparison result.
9782 2015-10-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9785 * config/aarch64/aarch64.c (aarch64_nopcrelative_literal_loads): New.
9786 (aarch64_expand_mov_immediate): Use aarch64_nopcrelative_literal_loads.
9787 (aarch64_classify_address): Likewise.
9788 (aarch64_secondary_reload): Likewise.
9789 (aarch64_override_options_after_change_1): Adjust.
9790 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
9791 Use aarch64_nopcrelative_literal_loads.
9792 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
9793 * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
9796 2015-10-21 Martin Sebor <msebor@redhat.com>
9799 * opts.c (undocumented_msg, use_diagnosed_msg): New globals.
9800 (print_filtered_help): Reference aliased option's name and encourage
9801 readers to use it in preference to the alias if the former is not
9802 documented. Mention when using an option is diagnosed.
9803 * gcc.c (display_help): End each sentence with a period.
9805 * common.opt: End each sentence that describes an option with
9807 * config/aarch64/aarch64.opt: Same.
9808 * config/alpha/alpha.opt: Same.
9809 * config/arc/arc.opt: Same.
9810 * config/arm/arm.opt: Same.
9811 * config/avr/avr.opt: Same.
9812 * config/bfin/bfin.opt: Same.
9813 * config/c6x/c6x.opt: Same.
9814 * config/cr16/cr16.opt: Same.
9815 * config/cris/cris.opt: Same.
9816 * config/cris/linux.opt: Same.
9817 * config/darwin.opt: Same.
9818 * config/epiphany/epiphany.opt: Same.
9819 * config/fr30/fr30.opt: Same.
9820 * config/frv/frv.opt: Same.
9821 * config/ft32/ft32.opt: Same.
9822 * config/g.opt: Same.
9823 * config/h8300/h8300.opt: Same.
9824 * config/i386/cygming.opt: Same.
9825 * config/i386/djgpp.opt: Same.
9826 * config/i386/i386.opt: Same.
9827 * config/i386/interix.opt: Same.
9828 * config/i386/mingw-w64.opt: Same.
9829 * config/i386/mingw.opt: Same.
9830 * config/ia64/ia64.opt: Same.
9831 * config/ia64/ilp32.opt: Same.
9832 * config/iq2000/iq2000.opt: Same.
9833 * config/linux.opt: Same.
9834 * config/lm32/lm32.opt: Same.
9835 * config/lynx.opt: Same.
9836 * config/m32c/m32c.opt: Same.
9837 * config/m32r/m32r.opt: Same.
9838 * config/m68k/ieee.opt: Same.
9839 * config/m68k/m68k.opt: Same.
9840 * config/mcore/mcore.opt: Same.
9841 * config/mep/mep.opt: Same.
9842 * config/microblaze/microblaze.opt: Same.
9843 * config/mips/mips.opt: Same.
9844 * config/mmix/mmix.opt: Same.
9845 * config/mn10300/mn10300.opt: Same.
9846 * config/moxie/moxie.opt: Same.
9847 * config/msp430/msp430.opt: Same.
9848 * config/nios2/elf.opt: Same.
9849 * config/nios2/nios2.opt: Same.
9850 * config/nvptx/nvptx.opt: Same.
9851 * config/pa/pa-hpux.opt: Same.
9852 * config/pa/pa-hpux1010.opt: Same.
9853 * config/pa/pa-hpux1111.opt: Same.
9854 * config/pa/pa-hpux1131.opt: Same.
9855 * config/pa/pa.opt: Same.
9856 * config/pa/pa64-hpux.opt: Same.
9857 * config/pdp11/pdp11.opt: Same.
9858 * config/rl78/rl78.opt: Same.
9859 * config/rs6000/476.opt: Same.
9860 * config/rs6000/aix64.opt: Same.
9861 * config/rs6000/darwin.opt: Same.
9862 * config/rs6000/linux64.opt: Same.
9863 * config/rs6000/rs6000.opt: Same.
9864 * config/rs6000/sysv4.opt: Same.
9865 * config/s390/s390.opt: Same.
9866 * config/s390/tpf.opt: Same.
9867 * config/sh/sh.opt: Same.
9868 * config/sol2.opt: Same.
9869 * config/sparc/long-double-switch.opt: Same.
9870 * config/sparc/sparc.opt: Same.
9871 * config/spu/spu.opt: Same.
9872 * config/stormy16/stormy16.opt: Same.
9873 * config/tilegx/tilegx.opt: Same.
9874 * config/tilepro/tilepro.opt: Same.
9875 * config/v850/v850.opt: Same.
9876 * config/vax/vax.opt: Same.
9877 * config/visium/visium.opt: Same.
9878 * config/vms/vms.opt: Same.
9879 * config/vxworks.opt: Same.
9880 * config/xtensa/xtensa.opt: Same.
9882 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
9883 Sebastian Pop <s.pop@samsung.com>
9885 * graphite-scop-detection.c (parameter_index_in_region): Update call to
9886 invariant_in_sese_p_rec.
9887 * graphite-sese-to-poly.c (extract_affine): Same.
9888 * sese.c (invariant_in_sese_p_rec): Pass in an extra
9889 parameter has_vdefs.
9890 (scalar_evolution_in_region): Return chrec_dont_know when the scalar
9891 variable depends on virtual definitions in the current region.
9892 * sese.h (invariant_in_sese_p_rec): Update declaration.
9894 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
9895 Sebastian Pop <s.pop@samsung.com>
9897 * graphite-scop-detection.c (build_scops): Do not handle scops
9898 with more than PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP arrays.
9899 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP): New.
9901 2015-10-21 Mikhail Maltsev <maltsevm@gmail.com>
9903 * config.in: Regenerate.
9904 * configure: Regenerate.
9905 * configure.ac (CHECKING_P): Define.
9906 * system.h: Use CHECKING_P.
9908 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
9911 * ipa-polymorphic-call.c (possible_placement_new): If cur_offset
9912 is negative we don't know the type.
9913 (check_stmt_for_type_change): Skip constructors of non-polymorphic
9914 types as those won't help devirutalization.
9916 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
9918 * fold-const.c (operand_equal_p): Add code matching empty constructors.
9920 2015-10-21 Eric Botcazou <ebotcazou@adacore.com>
9922 * tree.def (CEIL_DIV_EXPR, FLOOR_DIV_EXPR, ROUND_DIV_EXPR): Tweak
9924 (TRUNC_MOD_EXPR, CEIL_MOD_EXPR, FLOOR_MOD_EXPR, ROUND_MOD_EXPR):
9925 Add comments on sign of the result.
9926 * fold-const.c (tree_binary_nonnegative_warnv_p) <FLOOR_MOD_EXPR>:
9927 Recurse on operand #1 instead of operand #0.
9928 <CEIL_MOD_EXPR>: Do not recurse.
9929 <ROUND_MOD_EXPR>: Likewise.
9931 2015-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9933 * cfgrtl.c (pass_free_cfg::execute): Adjust.
9934 * final.c (dbr_sequence_length): Always define.
9935 (shorten_branches): Adjust.
9936 * genattr-common.c (main): Always define DELAY_SLOTS.
9937 * genattr.c (main): Unconditionally declare functions and define
9938 macros related to delay slots.
9939 * genattrtab.c (write_eligible_delay): Adjust.
9940 (main): Always write out delay slot functions.
9941 * opts.c (default_options_table): Adjust.
9942 * reorg.c (redirect_with_delay_slots_safe_p): Likewise.
9943 (redirect_with_delay_list_safe_p): Likewise.
9944 (fill_simple_delay_slots): Likewise.
9945 (fill_slots_from_thread): Likewise.
9946 (make_return_insns): Likewise.
9947 (dbr_schedule): Likewise.
9948 (rest_of_handle_delay_slots): Likewise.
9949 (pass_delay_slots::gate): Likewise.
9950 * toplev.c (process_options): Likewise.
9952 2015-10-21 Richard Henderson <rth@redhat.com>
9954 * targhooks.c (default_addr_space_pointer_mode): Remove check
9955 for generic address space.
9956 (default_addr_space_address_mode): Likewise.
9957 (default_addr_space_valid_pointer_mode): Likewise.
9958 (default_addr_space_legitimate_address_p): Likewise.
9959 (default_addr_space_legitimize_address): Likewise.
9960 * target.def (addr_space.pointer_mode): Update documentation
9961 of default behavior.
9962 (addr_space.address_mode): Likewise.
9965 * expr.c (expand_expr_real_2): Use convert_modes on disjoint
9968 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
9970 * builtins.c (fold_builtin_cabs): Delete.
9971 (fold_builtin_1): Update accordingly. Handle constant arguments here.
9972 * match.pd: Add rules previously handled by fold_builtin_cabs.
9974 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
9976 * fold-const.h (fold_strip_sign_ops): Delete.
9977 * fold-const.c (fold_strip_sign_ops): Likewise.
9978 (fold_unary_loc, fold_binary_loc): Remove calls to it.
9979 * builtins.c (fold_builtin_cos, fold_builtin_cosh)
9980 (fold_builtin_ccos): Delete.
9981 (fold_builtin_pow): Don't call fold_strip_sign_ops.
9982 (fold_builtin_hypot, fold_builtin_copysign): Likewise.
9983 Remove fndecl argument.
9984 (fold_builtin_1): Update calls accordingly. Handle constant
9985 cos, cosh, ccos and ccosh here.
9987 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
9989 * doc/invoke.texi (-fdump-tree-backprop, -fssa-backprop): Document.
9990 * Makefile.in (OBJS): Add gimple-ssa-backprop.o.
9991 * common.opt (fssa-backprop): New option.
9992 * fold-const.h (negate_mathfn_p): Declare.
9993 * fold-const.c (negate_mathfn_p): Make public.
9994 * timevar.def (TV_TREE_BACKPROP): New.
9995 * tree-pass.h (make_pass_backprop): Declare.
9996 * passes.def (pass_backprop): Add.
9997 * gimple-ssa-backprop.c: New file.
9999 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
10000 Sebastian Pop <s.pop@samsung.com>
10002 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard):
10003 Do not call create_empty_if_region_on_edge when cond_expr is true.
10004 (translate_isl_ast_node_for): Check whether a guard has been generated.
10006 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
10008 * graphite-poly.h (struct dr_info): Added invalid_alias_set number.
10009 (operator=): Removed.
10010 (dr_info): Make alias_set number the last argument with default
10011 value of invalid_alias_set.
10012 * graphite-sese-to-poly.c (build_scop_drs): Update constructor
10014 (rewrite_reductions_out_of_ssa): Iterate only through the
10015 basic blocks which are inside region.
10016 (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
10017 * sese.h (struct sese_l): Removed assignment operator.
10018 (split_region_for_bb): Removed dead code.
10020 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
10022 * graphite-poly.h (struct dr_info): Removed conversion constructor.
10023 (struct scop): Renamed scop::region to scop::scop_info
10024 (scop_set_region): Same.
10025 (SCOP_REGION): Removed
10026 (SCOP_CONTEXT): Removed.
10027 (POLY_SCOP_P): Removed.
10028 * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
10029 Rename scop->region to scop->scop_info.
10030 (add_parameters_to_ivs_params): Same.
10031 (graphite_regenerate_ast_isl): Same.
10032 * graphite-poly.c (new_scop): Same.
10034 (print_scop_params): Same.
10035 * graphite-scop-detection.c (scop_detection::remove_subscops): Same.
10036 (scop_detection::remove_intersecting_scops): Use pointer to sese_l.
10037 (dot_all_scops_1): Rename scop->region to scop->scop_info.
10038 (scop_detection::nb_pbbs_in_loops): Same.
10039 (find_scop_parameters): Same.
10040 (try_generate_gimple_bb): Same.
10041 (gather_bbs::before_dom_children): Same.
10042 (gather_bbs::after_dom_children): Same.
10043 (build_scops): Same.
10044 * graphite-sese-to-poly.c (build_scop_scattering): Same.
10045 (extract_affine_chrec): Same.
10046 (extract_affine): Same.
10047 (set_scop_parameter_dim): Same.
10048 (build_loop_iteration_domains): Same.
10049 (create_pw_aff_from_tree): Same.
10050 (add_param_constraints): Same.
10051 (build_scop_iteration_domain): Same.
10052 (build_scop_drs): Same.
10053 (analyze_drs_in_stmts): Same.
10054 (insert_out_of_ssa_copy_on_edge): Same.
10055 (rewrite_close_phi_out_of_ssa):Same.
10056 (rewrite_reductions_out_of_ssa):Same.
10057 (handle_scalar_deps_crossing_scop_limits):Same.
10058 (rewrite_cross_bb_scalar_deps):Same.
10059 (rewrite_cross_bb_scalar_deps_out_of_ssa):Same.
10060 (build_poly_scop):Same.
10061 (build_alias_set): Use pointer to dr_info.
10062 * graphite.c (print_graphite_scop_statistics):
10063 (graphite_transform_loops):
10064 * sese.h (struct sese_l): Remove conversion constructor.
10066 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
10068 PR middle-end/67966
10069 * tree.c (verify_type): Verify that TYPE_MODE match
10070 between TYPE_CANONICAL and type.
10071 * expr.c (store_expr_with_bounds): Revert my previous change.
10072 * expmed.c (store_bit_field_1): Revert prevoius change.
10073 * gimple-expr.c (useless_type_conversion_p): Require TYPE_MODE
10074 to match for all types.
10076 2015-10-21 Nathan Sidwell <nathan@codesourcery.com>
10078 * omp-low.c (check_omp_nesting_restrictions): Check OpenACC loop
10081 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
10083 * doc/tm.texi: Regenerated.
10084 * doc/tm.texi.in (TARGET_VECTORIZE_GET_MASK_MODE): New.
10085 * stor-layout.c (layout_type): Use mode to get vector mask size.
10086 * target.def (get_mask_mode): New.
10087 * targhooks.c (default_get_mask_mode): New.
10088 * targhooks.h (default_get_mask_mode): New.
10089 * tree-vect-stmts.c (get_same_sized_vectype): Add special case
10090 for boolean vector.
10091 * tree.c (MAX_BOOL_CACHED_PREC): New.
10092 (nonstandard_boolean_type_cache): New.
10093 (build_nonstandard_boolean_type): New.
10094 (make_vector_type): Vector mask has no canonical type.
10095 (build_truth_vector_type): New.
10096 (build_same_sized_truth_vector_type): New.
10097 (truth_type_for): Support vector masks.
10098 * tree.h (VECTOR_BOOLEAN_TYPE_P): New.
10099 (build_truth_vector_type): New.
10100 (build_same_sized_truth_vector_type): New.
10101 (build_nonstandard_boolean_type): New.
10102 * tree-cfg.c (verify_gimple_comparison) Require boolean
10103 vector type for vector comparison.
10104 (verify_gimple_assign_ternary): Likewise.
10105 * optabs.c (expand_vec_cond_expr): Accept boolean vector as
10107 * tree-vect-stmts.c (vectorizable_condition): Use boolean
10108 vector type for vector comparison.
10109 * tree-vect-generic.c (elem_op_func): Add new operand to hold
10111 (do_unop): Adjust to modified function type.
10112 (do_binop): Likewise.
10113 (do_plus_minus): Likewise.
10114 (do_negate); Likewise.
10115 (expand_vector_piecewise): Likewise.
10116 (do_cond): Likewise.
10117 (do_compare): Use comparison instead of condition.
10118 (expand_vector_divmod): Use boolean vector type for comparison.
10119 (expand_vector_operations_1): Skip scalar mask operations.
10121 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
10123 * omp-low.c (simd_clone_create): Set in_other_partition
10124 for created clones.
10126 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
10128 * doc/extend.exp (Local Register Variables): Rewrite.
10130 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
10132 * match.pd: Add rules to simplify ccos, ccosh, hypot, copysign
10133 and x*x in cases where the operands are sign ops. Extend these
10134 rules to handle copysign as a sign op (including for cos, cosh
10135 and pow, which already treated negate and abs as sign ops).
10137 2015-10-21 Uros Bizjak <ubizjak@gmail.com>
10140 * config/i386/i386.c (ix86_compute_frame_layout): Realign the stack
10141 for 64-bit MS_ABI targets also when default incoming stack boundary
10144 2015-10-21 Richard Biener <rguenther@suse.de>
10146 * tree-ssa-sccvn.c (cond_stmts_equal_p): Compare two GIMPLE
10147 cond stmts, enhanced and split out from ...
10148 (vn_phi_eq): ... here.
10150 2015-10-21 Richard Biener <rguenther@suse.de>
10152 PR middle-end/68031
10153 * fold-const.c: Include tree-ssa-operands.h and tree-into-ssa.h.
10154 (tree_ssa_name_nonnegative_warnv_p): Fold into ...
10155 (tree_single_nonnegative_warnv_p): ... here. For SSA names
10156 make sure they are not registered for update.
10158 2015-10-21 Richard Biener <rguenther@suse.de>
10160 PR tree-optimization/68026
10161 * tree-ssa-ccp.c (get_value_for_expr): Zero-extend mask for
10162 unsigned VARYING values.
10164 2015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
10166 * asan.c (asan_emit_stack_protection): Don't pass local stack to
10167 asan_stack_malloc_[n] anymore. Check if asan_stack_malloc_[n] returned
10168 NULL and use local stack than.
10169 (asan_finish_file): Insert __asan_version_mismatch_check_v[n] call
10170 in addition to __asan_init.
10171 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename to __asan_init.
10172 (BUILT_IN_ASAN_VERSION_MISMATCH_CHECK): Add new builtin call.
10173 * asan.h (asan_intercepted_p): Handle new string builtins.
10174 * ubsan.c (ubsan_use_new_style_p): New function.
10175 (ubsan_instrument_float_cast): If location is unknown, assign
10176 input_location to loc. Propagate loc to ubsan_create_data if
10177 ubsan_use_new_style_p returned true.
10179 2015-10-21 Jeff Law <law@redhat.com>
10181 * Makefile.in (OBJS): Remove sched-vis.c
10182 * sched-vis.c: Removed. Code moved into...
10183 * print-rtl.c: Here. Include cfg.h, pretty-print.h and print-rtl.h.
10184 * rtl.h: Remove prototypes for functions now living in print-rtl.c
10185 * print-rtl.h Add prototypes for new functions in print-rtl.c.
10186 * auto-inc-dec.c: Include print-rtl.h
10187 * cfgrtl.c, combine.c, final.c haifa-sched.c: Likewise.
10188 * ira.c, lra-constraints.c, lra.c, sel-sched-dump.c: Likewise.
10190 * varasm.c (handle_vtv_comdat_section): Mark 2nd parameter with
10193 2015-10-21 Richard Biener <rguenther@suse.de>
10194 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
10196 * fold-const.c (fold_binary_loc) : Move (-A) * (-B) -> A * B
10198 * doc/implement-c.texi (Integers Implementation): Make GCC's promises
10199 about signed left shift stronger and clarify the cases when they're
10201 Move (a * (1 << b)) is (a << b) to match.pd.
10202 Move convert (C1/X)*C2 into (C1*C2)/X to match.pd.
10203 Move ~X & X, (X == 0) & X, and !X & X are zero to match.pd.
10204 Move X & ~X , X & (X == 0), and X & !X are zero to match.pd.
10206 * match.pd (mult:c @0 (convert? (lshift integer_onep@1 @2))):
10208 (mult (rdiv:s REAL_CST@0 @1) REAL_CST@2): New simplifier.
10209 (bit_and:c (convert? @0) (convert? (bit_not @0))): New simplifier.
10210 (bit_ior (bit_and:s @0 (bit_not:s @1)) (bit_and:s (bit_not:s @0) @1))
10212 (mult:c (convert1? (negate @0)) (convert2? negate_expr_p@1)):
10214 (match (logical_inverted_value @0) (truth_not @0)) : New Predicate.
10216 2015-10-21 Gregor Richards <gregor.richards@uwaterloo.ca>
10217 Szabolcs Nagy <szabolcs.nagy@arm.com>
10218 Alan Modra <amodra@gmail.com>
10220 * config/rs6000/secureplt.h (LINK_SECURE_PLT_DEFAULT_SPEC): Define.
10221 * config/rs6000/sysv4.h (LINK_SECURE_PLT_SPEC): Define.
10222 (LINK_SPEC): Add %(link_secure_plt).
10223 (SUBTARGET_EXTRA_SPECS): Add "link_secure_plt".
10224 * config/rs6000/linux64.h (LINK_SECURE_PLT_SPEC): Redefine.
10226 2015-10-20 Gregor Richards <gregor.richards@uwaterloo.ca>
10227 Szabolcs Nagy <szabolcs.nagy@arm.com>
10229 * config/sh/linux.h (MUSL_DYNAMIC_LINKER): Define.
10230 (MUSL_DYNAMIC_LINKER_E, MUSL_DYNAMIC_LINKER_FP): Define.
10232 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10234 * config/aarch64/aarch64.c (aarch64_mode_valid_for_sched_fusion_p):
10236 (fusion_load_store): Use it.
10237 * config/aarch64/aarch64-ldpstp.md: Add new peephole2s for
10238 ldp and stp in VD modes.
10239 * config/aarch64/aarch64-simd.md (load_pair<mode>, VD): New pattern.
10240 (store_pair<mode>, VD): Likewise.
10242 2015-10-20 Vladimir Makarov <vmakarov@redhat.com>
10244 PR rtl-optimization/67609
10245 * lra-splill.c (lra_final_code_change): Don't remove all
10248 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10250 * simplify-rtx.c (simplify_binary_operation): If either operand was
10251 a constant pool reference use them if all other simplifications failed.
10253 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10255 * config/aarch64/aarch64.md
10256 (*aarch64_fcvt<su_optab><GPF:mode><GPI:mode>2_mult): New pattern.
10257 * config/aarch64/aarch64-simd.md
10258 (*aarch64_fcvt<su_optab><VDQF:mode><fcvt_target>2_mult): Likewise.
10259 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle above patterns.
10260 (aarch64_fpconst_pow_of_2): New function.
10261 (aarch64_vec_fpconst_pow_of_2): Likewise.
10262 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow_of_2): Declare
10264 (aarch64_vec_fpconst_pow_of_2): Likewise.
10265 * config/aarch64/predicates.md (aarch64_fp_pow2): New predicate.
10266 (aarch64_fp_vec_pow2): Likewise.
10268 2015-10-20 Uros Bizjak <ubizjak@gmail.com>
10270 * config/alpha/alpha.h (HARD_REGNO_NREGS): Use CEIL macro.
10271 (ALPHA_ARG_SIZE): Ditto. Remove unused NAMED argument.
10272 * config/alpha/alpha.c (alpha_function_arg_advance): Update
10273 ALPHA_ARG_SIZE usage.
10274 (alpha_arg_partial_bytes): Ditto.
10276 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
10279 * cgraphbuild.c (pass_build_cgraph_edges::execute): Skip local
10280 error_mark_node decls.
10282 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
10286 * common/config/i386/i386-common.c (ix86_handle_option): Remove
10287 OPT_miamcu handling.
10288 * config/i386/i386.c (PTA_NO_80387): New macro.
10289 (processor_alias_table): Add PTA_NO_80387 to lakemont.
10290 (ix86_option_override_internal): Update MASK_80387 from
10291 PTA_NO_80387. Don't warn x87/MMX/SSE/AVX for -miamcu. Warn
10292 SSE math only if 80387 is supported. Don't change
10293 MASK_FLOAT_RETURNS.
10294 (ix86_valid_target_attribute_tree): Enable FPMATH_387 only if
10295 80387 is supported.
10296 * config/i386/i386.h (TARGET_FLOAT_RETURNS_IN_80387): True only
10297 if TARGET_80387 is true and TARGET_IAMCU is false.
10298 (TARGET_FLOAT_RETURNS_IN_80387_P): True only if TARGET_80387_P
10299 is true and TARGET_IAMCU_P is false.
10301 2015-10-20 Richard Biener <rguenther@suse.de>
10303 PR tree-optimization/68017
10304 * tree-tailcall.c (eliminate_tail_call): Remove stmts backwards.
10306 2015-10-20 Martin Liska <mliska@suse.cz>
10308 * cgraphclones.c (cgraph_node::create_virtual_clone):
10309 Verify cgraph_node.local.versionable instead of calling
10310 tree_versionable_function_p.
10311 * ipa-cp.c (determine_versionability): Save the information
10312 to ipa_node_params summary.
10313 (ipcp_versionable_function_p): Use it.
10314 (ipcp_propagate_stage): Pass IPA_NODE_REF to a called function.
10315 (ipcp_generate_summary): Do not compute cgraph_node
10317 * ipa-inline-analysis.c (inline_generate_summary): Compute
10318 versionability for all cgraph nodes.
10319 * ipa-prop.c (ipa_node_params_t::duplicate): Duplicate
10320 ipa_node_params::versionability.
10321 * ipa-prop.h (struct ipa_node_params): Declare it.
10323 2015-10-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10326 * varasm.c (assemble_variable): Move special vtv handling to..
10327 (handle_vtv_comdat_sections): .. here. New function.
10328 (output_object_block): Handle vtv sections.
10330 2015-10-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
10333 * varasm.c (default_binds_local_p_2): Turn on extern_protected_data.
10335 2015-10-20 Arkadiusz Drabczyk <arkadiusz@drabczyk.org>
10337 * doc/extend.texi: Update documentation WRT inline functions.
10339 2015-10-20 Alan Modra <amodra@gmail.com>
10342 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Don't define.
10343 * config/rs6000/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
10344 (TARGET_CAN_SPLIT_STACK_64BIT): Define.
10346 2015-10-19 Pierre-Marie de Rodat <derodat@adacore.com>
10348 PR rtl-optimization/66790
10349 * df.h (DF_MIR): New macro.
10350 (DF_LAST_PROBLEM_PLUS1): Update to be past DF_MIR
10351 (DF_MIR_INFO_BB): New macro.
10352 (DF_MIR_IN, DF_MIR_OUT): New macros.
10353 (struct df_mir_bb_info): New.
10354 (df_mir): New macro.
10355 (df_mir_add_problem, df_mir_simulate_one_insn): New forward
10357 (df_mir_get_bb_info): New.
10358 * df-problems.c (struct df_mir_problem_data): New.
10359 (df_mir_free_bb_info, df_mir_alloc, df_mir_reset,
10360 df_mir_bb_local_compute, df_mir_local_compute, df_mir_init,
10361 df_mir_confluence_0, df_mir_confluence_n,
10362 df_mir_transfer_function, df_mir_free, df_mir_top_dump,
10363 df_mir_bottom_dump, df_mir_verify_solution_start,
10364 df_mir_verify_solution_end): New.
10365 (problem_MIR): New.
10366 (df_mir_add_problem, df_mir_simulate_one_insn): New.
10367 * timevar.def (TV_DF_MIR): New.
10368 * ree.c: Include bitmap.h
10369 (add_removable_extension): Add an INIT_REGS parameter. Use it
10370 to skip zero-extensions that may get an uninitialized register.
10371 (find_removable_extensions): Compute must-initialized registers
10372 using the MIR dataflow problem. Update the call to
10373 add_removable_extension.
10374 (find_and_remove_re): Call df_mir_add_problem.
10376 2015-10-19 Segher Boessenkool <segher@kernel.crashing.org>
10378 * common/config/mn10300/mn10300-common.c
10379 (mn10300_option_optimization_table) <OPT_freorder_blocks_algorithm_>:
10380 Use REORDER_BLOCKS_ALGORITHM_STC at -Os and up.
10382 2015-10-19 David Wohlferd <dw@LimeGreenSocks.com>
10384 * doc/extend.texi (Explicit Register Variables): Simplify and
10385 avoid unnecessary and confusion abbreviations. Update cross
10387 doc/implement-c.tex: Update cross reference.
10389 2015-10-19 Jeff Law <law@redhat.com>
10391 * tree-ssa-threadupdate.c (valid_jump_thread_path): Reject paths
10392 that create irreducible loops unless the path elimiantes a multiway
10395 2015-10-19 Richard Biener <rguenther@suse.de>
10397 PR tree-optimization/67975
10398 * tree-cfg.h (extract_true_false_controlled_edges): Declare.
10399 * tree-cfg.c (extract_true_false_controlled_edges): Split out
10400 core worker from ...
10401 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): ... here.
10402 * tree-ssa-sccvn.c (vn_phi_compute_hash): Hash number of args
10403 instead of block number for PHIs with two or one args.
10404 (vn_phi_eq): Compare edge predicates of PHIs that are in different
10407 2015-10-19 Richard Biener <rguenther@suse.de>
10409 * gimple-fold.c (gimple_phi_nonnegative_warnv_p): New function.
10410 (gimple_stmt_nonnegative_warnv_p): Use it.
10411 * match.pd (CPROJ): New operator list.
10412 (cproj (complex ...)): Move simplifications from ...
10413 * builtins.c (fold_builtin_cproj): ... here.
10415 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
10417 * config/i386/i386.c (ix86_expand_vector_move): Use
10418 GET_MODE_BITSIZE for IA MCU psABI to get vector natural
10421 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
10423 * doc/invoke.texi: Replace @optindex with @opindex.
10425 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
10428 * config/i386/i386.c (ix86_valid_target_attribute_tree): If
10429 arch= is set, clear all bits in x_ix86_isa_flags, except for
10430 ISA_64BIT, ABI_64, ABI_X32, and CODE16.
10432 2015-10-19 Joost VandeVondele <vondele@gnu.gcc.org>
10434 PR middle-end/68002
10435 * common.opt (fkeep-static-functions): New option.
10436 * doc/invoke.texi: Document it.
10437 * cgraphunit.c (cgraph_node::finalize_function): Use it.
10439 2015-10-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10441 * sched-int.h (struct autopref_multipass_data_): Remove offset
10442 field. Add min_offset, max_offset, multi_mem_insn_p fields.
10443 * haifa-sched.c (analyze_set_insn_for_autopref): New function.
10444 (autopref_multipass_init): Use it. Handle PARALLEL sets.
10445 (autopref_rank_data): New function.
10446 (autopref_rank_for_schedule): Use it.
10447 (autopref_multipass_dfa_lookahead_guard_1): Likewise.
10449 2015-10-18 Mikhail Maltsev <maltsevm@gmail.com>
10452 * gengtype.c (dump_type): Handle TYPE_UNDEFINED correctly.
10454 2015-10-18 Iain Sandoe <iain@codesourcery.com>
10456 * config/darwin.h (TARGET_SYSTEM_ROOT): Remove this from here,
10457 (HAVE_LD_SYSROOT): New. (SYSROOT_SPEC): New.
10458 (LINK_SYSROOT_SPEC): Revise to remove the default for target sysroot.
10459 (STANDARD_STARTFILE_PREFIX_1): New.
10460 (STANDARD_STARTFILE_PREFIX_2): New.
10462 2015-10-18 Iain Sandoe <iain@codesourcery.com>
10464 * config/darwin-driver.c (darwin_default_min_version): Refactor code.
10465 (darwin_driver_init): Note a version-min when provided on the c/l.
10466 * config/darwin.h (%darwin_minversion): Remove.
10467 * config/i386/darwin.h: Likewise.
10468 * config/rs6000/darwin.h: Likewise.
10469 * config/darwin.opt (mmacosx-version-min=): Use the configured default,
10470 rather than an arbitrary constant.
10472 2015-10-18 Iain Sandoe <iain@codesourcery.com>
10474 * config/darwin-driver.c (darwin_driver_init): Handle '-arch' for
10475 PPC, detect conflicts between -arch and multilib settings. Detect
10476 and warn about conflicts between multiple -arch definitions.
10478 2015-10-18 Iain Sandoe <iain@codesourcery.com>
10480 * config/darwin-driver.c: Adjust includes to add diagnostic-core.
10482 2015-10-16 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10484 * lra-constraints.c (add_next_usage_insn): Change argument type
10485 from rtx to rtx_insn *.
10487 2015-10-16 H.J. Lu <hongjiu.lu@intel.com>
10489 * i386/x86-tune.def (X86_TUNE_ALWAYS_FANCY_MATH_387): Disable
10492 2015-10-16 Andrew MacLeod <amacleod@redhat.com>
10494 * config/tilepro/gen-mul-tables.cc: Adjust include files.
10495 * config/tilegx/mul-tables.c: Regenerate.
10496 * config/tilepro/mul-tables.c: Regenerate.
10498 * config/tilegx/tilegx-c.c: Adjust include files.
10499 * config/tilegx/tilegx.c: Likewise.
10500 * config/tilepro/tilepro-c.c: Likewise.
10501 * config/tilepro/tilepro.c: Likewise.
10502 * config/aarch64/aarch64-builtins.c: Likewise.
10503 * config/aarch64/aarch64.c: Likewise.
10504 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
10505 * config/alpha/alpha.c: Likewise.
10506 * config/arc/arc.c: Likewise.
10507 * config/arm/aarch-common.c: Likewise.
10508 * config/arm/arm-builtins.c: Likewise.
10509 * config/arm/arm-c.c: Likewise.
10510 * config/arm/arm.c: Likewise.
10511 * config/avr/avr-c.c: Likewise.
10512 * config/avr/avr-devices.c: Likewise.
10513 * config/avr/avr-log.c: Likewise.
10514 * config/avr/avr.c: Likewise.
10515 * config/bfin/bfin.c: Likewise.
10516 * config/c6x/c6x.c: Likewise.
10517 * config/cr16/cr16.c: Likewise.
10518 * config/cris/cris.c: Likewise.
10519 * config/darwin-c.c: Likewise.
10520 * config/darwin-driver.c: Likewise.
10521 * config/darwin.c: Likewise.
10522 * config/default-c.c: Likewise.
10523 * config/epiphany/epiphany.c: Likewise.
10524 * config/epiphany/mode-switch-use.c: Likewise.
10525 * config/epiphany/resolve-sw-modes.c: Likewise.
10526 * config/fr30/fr30.c: Likewise.
10527 * config/frv/frv.c: Likewise.
10528 * config/ft32/ft32.c: Likewise.
10529 * config/glibc-c.c: Likewise.
10530 * config/h8300/h8300.c: Likewise.
10531 * config/i386/host-cygwin.c: Likewise.
10532 * config/i386/host-mingw32.c: Likewise.
10533 * config/i386/i386-c.c: Likewise.
10534 * config/i386/i386.c: Likewise.
10535 * config/i386/msformat-c.c: Likewise.
10536 * config/i386/winnt-cxx.c: Likewise.
10537 * config/i386/winnt-stubs.c: Likewise.
10538 * config/i386/winnt.c: Likewise.
10539 * config/ia64/ia64-c.c: Likewise.
10540 * config/ia64/ia64.c: Likewise.
10541 * config/iq2000/iq2000.c: Likewise.
10542 * config/lm32/lm32.c: Likewise.
10543 * config/m32c/m32c-pragma.c: Likewise.
10544 * config/m32c/m32c.c: Likewise.
10545 * config/m32r/m32r.c: Likewise.
10546 * config/mcore/mcore.c: Likewise.
10547 * config/mep/mep-pragma.c: Likewise.
10548 * config/mep/mep.c: Likewise.
10549 * config/microblaze/microblaze-c.c: Likewise.
10550 * config/microblaze/microblaze.c: Likewise.
10551 * config/mips/mips-tables.opt
10552 * config/mips/mips.c: Likewise.
10553 * config/mmix/mmix.c: Likewise.
10554 * config/mn10300/mn10300.c: Likewise.
10555 * config/moxie/moxie.c: Likewise.
10556 * config/msp430/msp430-c.c: Likewise.
10557 * config/msp430/msp430.c: Likewise.
10558 * config/nds32/nds32-cost.c: Likewise.
10559 * config/nds32/nds32-fp-as-gp.c: Likewise.
10560 * config/nds32/nds32-intrinsic.c: Likewise.
10561 * config/nds32/nds32-isr.c: Likewise.
10562 * config/nds32/nds32-md-auxiliary.c: Likewise.
10563 * config/nds32/nds32-memory-manipulation.c: Likewise.
10564 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
10565 * config/nds32/nds32-predicates.c: Likewise.
10566 * config/nds32/nds32.c: Likewise.
10567 * config/nios2/nios2.c: Likewise.
10568 * config/nvptx/mkoffload.c: Likewise.
10569 * config/nvptx/nvptx.c: Likewise.
10570 * config/pa/pa.c: Likewise.
10571 * config/pdp11/pdp11.c: Likewise.
10572 * config/rl78/rl78-c.c: Likewise.
10573 * config/rl78/rl78.c: Likewise.
10574 * config/rs6000/host-darwin.c: Likewise.
10575 * config/rs6000/rs6000-c.c: Likewise.
10576 * config/rs6000/rs6000-linux.c: Likewise.
10577 * config/rs6000/rs6000.c: Likewise.
10578 * config/rx/rx.c: Likewise.
10579 * config/s390/s390-c.c: Likewise.
10580 * config/s390/s390.c: Likewise.
10581 * config/sh/sh-c.c: Likewise.
10582 * config/sh/sh-mem.cc: Likewise.
10583 * config/sh/sh.c: Likewise.
10584 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
10585 * config/sh/sh_treg_combine.cc: Likewise.
10586 * config/sol2-c.c: Likewise.
10587 * config/sol2-cxx.c: Likewise.
10588 * config/sol2-stubs.c: Likewise.
10589 * config/sol2.c: Likewise.
10590 * config/sparc/sparc-c.c: Likewise.
10591 * config/sparc/sparc.c: Likewise.
10592 * config/spu/spu-c.c: Likewise.
10593 * config/spu/spu.c: Likewise.
10594 * config/stormy16/stormy16.c: Likewise.
10595 * config/v850/v850-c.c: Likewise.
10596 * config/v850/v850.c: Likewise.
10597 * config/vax/vax.c: Likewise.
10598 * config/visium/visium.c: Likewise.
10599 * config/vms/vms-c.c: Likewise.
10600 * config/vms/vms.c: Likewise.
10601 * config/vxworks.c: Likewise.
10602 * config/winnt-c.c: Likewise.
10603 * config/xtensa/xtensa.c: Likewise.
10605 2015-10-16 Christian Bruel <christian.bruel@st.com>
10608 * config/arm/arm.h (FUNCTION_BOUNDARY): Use FUNCTION_BOUNDARY_P.
10609 (FUNCTION_BOUNDARY_P): New macro:
10610 * config/arm/arm.c (TARGET_RELAYOUT_FUNCTION, arm_relayout_function):
10612 * doc/tm.texi.in (TARGET_RELAYOUT_FUNCTION): Document.
10613 * doc/tm.texi (TARGET_RELAYOUT_FUNCTION): New hook.
10614 * target.def (TARGET_RELAYOUT_FUNCTION): Likewise.
10615 * function.c (allocate_struct_function): Call
10616 relayout_function hook.
10617 * passes.c (rest_of_decl_compilation): Likewise.
10619 2015-10-16 Christian Bruel <christian.bruel@st.com>
10622 * config/arm/arm.h (FUNCTION_BOUNDARY): Move optimize_size condition to:
10623 * config/arm/arm.c (arm_option_override_internal): Call
10624 arm_override_options_after_change_1.
10625 (arm_override_options_after_change): New function.
10626 (arm_override_options_after_change_1): Likewise.
10627 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define hook.
10629 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
10632 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
10633 empty constructors.
10635 2015-10-16 Eric Botcazou <ebotcazou@adacore.com>
10637 * tree.c (recompute_tree_invariant_for_addr_expr): Assert that the
10638 argument is an ADDR_EXPR.
10640 2015-10-16 Richard Biener <rguenther@suse.de>
10642 * gimple-fold.c (gimple_fold_builtin_memory_op): Use gimple_build
10643 and get rid of force_gimple_operand_gsi.
10644 (gimple_fold_builtin_memory_chk): Likewise.
10645 (gimple_fold_builtin_stxcpy_chk): Likewise.
10646 (rewrite_to_defined_overflow): Likewise.
10647 (gimple_convert_to_ptrofftype): New function.
10648 * gimple-fold.h (gimple_convert_to_ptrofftype): New overload, declare.
10650 2015-10-16 Richard Biener <rguenther@suse.de>
10652 * tree-nested.h (build_addr): Adjust prototype.
10653 * tree-nested.c (build_addr): Remove context argument and use
10655 (get_static_chain): Adjust calls to build_addr.
10656 (convert_nl_goto_reference): Likewise.
10657 (convert_tramp_reference_op): Likewise.
10658 (finalize_nesting_tree_1): Likewise.
10659 * value-prof.c (gimple_ic): Likewise.
10660 * gimple-low.c (lower_builtin_setjmp): Likewise.
10661 * tree-parloops.c (take_address_of): Likewise.
10662 (create_call_for_reduction_1): Likewise.
10663 * tree-profile.c (gimple_gen_interval_profiler): Likewise.
10664 (gimple_gen_ic_func_profiler): Likewise.
10666 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
10668 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
10669 empty constructors.
10671 2015-10-16 Michael Collison <michael.collison@linaro.org>
10672 Andrew Pinski <andrew.pinski@caviumnetworks.com>
10674 * match.pd ((x < y) && (x < z) -> x < min (y,z),
10675 (x > y) and (x > z) -> x > max (y,z))
10677 2015-10-15 Gregor Richards <gregor.richards@uwaterloo.ca>
10678 Szabolcs Nagy <szabolcs.nagy@arm.com>
10680 * config/microblaze/linux.h (MUSL_DYNAMIC_LINKER): Define.
10681 (DYNAMIC_LINKER): Renamed to ...
10682 (GLIBC_DYNAMIC_LINKER): This.
10683 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_DYNAMIC_LINKER.
10685 2015-10-15 Marek Polacek <polacek@redhat.com>
10687 * tree-ssa-reassoc.c (attempt_builtin_copysign): Call
10688 gimple_call_builtin instead of is_gimple_call.
10690 2015-10-15 Richard Biener <rguenther@suse.de>
10692 * tree-vect-stmts.c (vect_init_vector): Remove unused vars.
10694 2015-10-15 Richard Biener <rguenther@suse.de>
10696 * tree-vectorizer.h (vect_get_new_ssa_name): Declare.
10697 * tree-vect-data-refs.c (vect_get_new_ssa_name): New helper.
10698 * tree-vect-loop.c (get_initial_def_for_induction): Drop
10699 use of force_gimple_operand in favor of gimple_build.
10700 Use vect_get_new_ssa_name.
10701 * tree-vect-stmts.c (vect_init_vector): Use vect_get_new_ssa_name.
10702 (vectorizable_mask_load_store): Likewise.
10703 (vectorizable_call): Likewise.
10704 (vectorizable_store): Likewise.
10705 (vectorizable_load): Likewise.
10706 (vect_get_vec_def_for_stmt_copy): Remove redundant stmt.
10708 2015-10-15 Richard Sandiford <richard.sandiford@arm.com>
10710 PR tree-optimization/67945
10711 * tree-pass.h (PROP_gimple_opt_math): New property flag.
10712 * generic-match-head.c (canonicalize_math_p): New function.
10713 * gimple-match-head.c: Include tree-pass.h.
10714 (canonicalize_math_p): New function.
10715 * match.pd: Group math built-in rules into simplifications
10716 and canonicalizations. Guard the latter with canonicalize_math_p.
10717 * tree-ssa-math-opts.c (pass_data_cse_sincos): Provide the
10718 PROP_gimple_opt_math property.
10720 2015-10-15 Marek Polacek <polacek@redhat.com>
10722 PR tree-optimization/67953
10723 * match.pd (X - (X / Y) * Y): Don't change signedness of @0.
10725 2015-10-15 Jiong Wang <jiong.wang@arm.com>
10727 * config.gcc: Recognize "." in architecture base name for AArch64.
10729 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
10731 * config/mips/mips.h (MIPS_STACK_ALIGN): Implement using
10733 * config/mips/mips.c (mips_setup_incoming_varargs): Use
10734 ROUND_DOWN to calculate off.
10735 (mips_gimplify_va_arg_expr): Use ROUND_UP to calculate rsize.
10736 (mips_emit_probe_stack_range): Use ROUND_DOWN to calculate
10739 2015-10-14 Eric Botcazou <ebotcazou@adacore.com>
10741 * gimplify.c (gimplify_addr_expr) <MEM_REF>: New case.
10743 2015-10-14 Peter Bergner <bergner@vnet.ibm.com>
10744 Torvald Riegel <triegel@redhat.com>
10747 * config/rs6000/htm.md (UNSPEC_HTM_FENCE): New.
10748 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
10749 trechkpt, treclaim, tsr, ttest): Rename define_insns from this...
10750 (*tabort, *tabort<wd>c, *tabort<wd>ci, *tbegin, *tcheck, *tend,
10751 *trechkpt, *treclaim, *tsr, *ttest): ...to this. Add memory barrier.
10752 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
10753 trechkpt, treclaim, tsr, ttest): New define_expands.
10754 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
10755 __TM_FENCE__ for htm.
10756 * doc/extend.texi: Update documentation for htm builtins.
10758 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
10761 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Do not add
10762 REG_CFA_EXPRESSION to aligned SSE stores.
10764 2015-10-14 Jeff Law <law@redhat.com>
10766 * tree-ssa-threadupdate.c (thread_through_all_blocks): Bump
10767 num_threaded_edges for successful FSM threads too.
10769 2015-10-14 Richard Biener <rguenther@suse.de>
10771 * tree-vectorizer.h (vect_is_simple_use): Remove unused parameters.
10772 (vect_is_simple_use_1): Likewise. Make overload of vect_is_simple_use.
10773 (vect_get_vec_def_for_operand): Remove unused parameter.
10774 * tree-vect-loop.c (get_initial_def_for_induction): Adjust.
10775 (vect_create_epilog_for_reduction): Likewise.
10776 (vectorizable_reduction): Likewise.
10777 (vectorizable_live_operation): Likewise.
10778 * tree-vect-patterns.c (type_conversion_p): Likewise.
10779 (vect_recog_vector_vector_shift_pattern): Likewise.
10780 (check_bool_pattern): Likewise.
10781 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
10782 (vect_analyze_slp_cost_1): Likewise.
10783 * tree-vect-stmts.c (process_use): Likewise.
10784 (vect_get_vec_def_for_operand): Do not handle reductions.
10785 (vect_get_vec_defs): Adjust.
10786 (vectorizable_mask_load_store): Likewise.
10787 (vectorizable_call): Likewise.
10788 (vectorizable_simd_clone_call): Likewise.
10789 (vect_get_loop_based_defs): Likewise.
10790 (vectorizable_conversion): Likewise.
10791 (vectorizable_assignment): Likewise.
10792 (vectorizable_shift): Likewise.
10793 (vectorizable_operation): Likewise.
10794 (vectorizable_store): Likewise.
10795 (vectorizable_load): Likewise.
10796 (vect_is_simple_cond): Likewise.
10797 (vectorizable_condition): Likewise.
10798 (vect_is_simple_use): Remove unused parameters.
10799 (vect_is_simple_use_1): Adjust and rename.
10801 2015-10-14 Richard Biener <rguenther@suse.de>
10803 PR tree-optimization/67915
10804 * match.pd: Handle comparisons of addresses of STRING_CSTs.
10805 * gimplify.c (gimplify_cond_expr): Fold the GIMPLE conds we build.
10806 * tree-cfgcleanup.c (cleanup_control_expr_graph): Remove GENERIC
10807 stmt folding in favor of GIMPLE one.
10809 2015-10-14 Marek Polacek <polacek@redhat.com>
10811 PR tree-optimization/67815
10812 * tree-ssa-reassoc.c (attempt_builtin_copysign): New function.
10813 (reassociate_bb): Call it.
10815 2015-10-14 Richard Biener <rguenther@suse.de>
10817 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
10818 Reset info at start.
10819 (vect_analyze_group_access_1): Add debug print.
10820 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost): Rename ...
10821 (vect_compute_single_scalar_iteration_cost): ... to this.
10822 (vect_analyze_loop_2): Adjust.
10823 * tree-vect-slp.c (struct _slp_oprnd_info): Move from ...
10824 * tree-vectorizer.h: ... here.
10825 (add_stmt_info_to_vec): Remove.
10826 * tree-vect-stmts.c (record_stmt_cost): Inline add_stmt_info_to_vec.
10828 2015-10-14 Dominik Vogt <vogt@linux.vnet.ibm.com>
10830 * targhooks.c (default_target_option_pragma_parse): Do not warn if
10831 called on behalf of "#pragma GCC pop_options".
10833 2015-10-14 Tom de Vries <tom@codesourcery.com>
10835 * cfganal.c (verify_no_unreachable_blocks): New function.
10836 (inverted_post_order_compute) [ENABLE_CHECKING]: Call
10837 verify_no_unreachable_blocks.
10838 cfganal.h (verify_no_unreachable_blocks): Declare.
10840 2015-10-13 Mikhail Maltsev <maltsevm@gmail.com>
10842 * common.opt: Add flag_checking.
10843 * system.h (CHECKING_P): Define.
10845 2015-10-13 Jakub Jelinek <jakub@redhat.com>
10846 Aldy Hernandez <aldyh@redhat.com>
10847 Ilya Verbin <ilya.verbin@intel.com>
10849 * builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR,
10850 BT_FN_BOOL_UINT_ULLPTR_ULLPTR_ULLPTR,
10851 BT_FN_BOOL_UINT_LONGPTR_LONG_LONGPTR_LONGPTR,
10852 BT_FN_BOOL_UINT_ULLPTR_ULL_ULLPTR_ULLPTR,
10853 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_UINT_PTR,
10854 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR,
10855 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT,
10856 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_LONG_LONG_LONG,
10857 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_ULL_ULL_ULL,
10858 BT_FN_VOID_LONG_VAR, BT_FN_VOID_ULL_VAR): New.
10859 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
10860 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
10861 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): Remove.
10862 * cgraph.h (enum cgraph_simd_clone_arg_type): Add
10863 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP,
10864 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
10865 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
10866 (struct cgraph_simd_clone_arg): Adjust comment.
10867 * coretypes.h (struct gomp_ordered): New forward decl.
10868 * gimple.c (gimple_build_omp_critical): Add CLAUSES argument,
10869 set critical clauses to it.
10870 (gimple_build_omp_ordered): Return gomp_ordered * instead of
10871 gimple *. Add CLAUSES argument, set ordered clauses to it.
10872 (gimple_copy): Unshare clauses on GIMPLE_OMP_CRITICAL and
10873 GIMPLE_OMP_ORDERED.
10874 * gimple.def (GIMPLE_OMP_ORDERED): Change from GSS_OMP to
10875 GSS_OMP_SINGLE_LAYOUT, move it after GIMPLE_OMP_TEAMS.
10876 * gimple.h (enum gf_mask): Add GF_OMP_TASK_TASKLOOP. Add another bit
10877 to GF_OMP_FOR_KIND_MASK mask. Add GF_OMP_FOR_KIND_TASKLOOP, renumber
10878 GF_OMP_FOR_KIND_CILKFOR and GF_OMP_FOR_KIND_OACC_LOOP. Adjust
10879 GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED and GF_OMP_FOR_COMBINED_INTO.
10880 Add another bit to GF_OMP_TARGET_KIND_MASK mask. Add
10881 GF_OMP_TARGET_KIND_ENTER_DATA and GF_OMP_TARGET_KIND_EXIT_DATA,
10883 GF_OMP_TARGET_KIND_OACC_{PARALLEL,KERNELS,DATA,UPDATE,ENTER_EXIT_DATA}.
10884 (gomp_critical): Add clauses field.
10885 (gomp_ordered): New struct.
10886 (is_a_helper <gomp_ordered *>::test): New inline.
10887 (gimple_build_omp_critical): Add CLAUSES argument.
10888 (gimple_build_omp_ordered): Likewise. Return gomp_ordered *
10889 instead of gimple *.
10890 (gimple_omp_critical_clauses, gimple_omp_critical_clauses_ptr,
10891 gimple_omp_critical_set_clauses, gimple_omp_ordered_clauses,
10892 gimple_omp_ordered_clauses_ptr, gimple_omp_ordered_set_clauses,
10893 gimple_omp_task_taskloop_p, gimple_omp_task_set_taskloop_p): New
10895 * gimple-pretty-print.c (dump_gimple_omp_for): Handle taskloop.
10896 (dump_gimple_omp_target): Handle enter data and exit data.
10897 (dump_gimple_omp_block): Don't handle GIMPLE_OMP_ORDERED here.
10898 (dump_gimple_omp_critical): Print clauses.
10899 (dump_gimple_omp_ordered): New function.
10900 (dump_gimple_omp_task): Handle taskloop.
10901 (pp_gimple_stmt_1): Use dump_gimple_omp_ordered for
10902 GIMPLE_OMP_ORDERED.
10903 * gimple-walk.c (walk_gimple_op): Walk clauses on
10904 GIMPLE_OMP_CRITICAL and GIMPLE_OMP_ORDERED.
10905 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_0LEN_ARRAY.
10906 (enum omp_region_type): Add ORT_COMBINED_TARGET and ORT_NONE.
10907 (struct gimplify_omp_ctx): Add loop_iter_var,
10908 target_map_scalars_firstprivate, target_map_pointers_as_0len_arrays
10909 and target_firstprivatize_array_bases fields.
10910 (delete_omp_context): Release loop_iter_var.
10911 (gimplify_bind_expr): Handle ORT_NONE.
10912 (maybe_fold_stmt): Adjust check for ORT_TARGET for the addition of
10913 ORT_COMBINED_TARGET.
10914 (is_gimple_stmt): Return true for OMP_TASKLOOP, OMP_TEAMS and
10915 OMP_TARGET{,_DATA,_UPDATE,_ENTER_DATA,_EXIT_DATA}.
10916 (omp_firstprivatize_variable): Handle ORT_NONE. Adjust check for
10917 ORT_TARGET for the addition of ORT_COMBINED_TARGET. Handle
10918 ctx->target_map_scalars_firstprivate.
10919 (omp_add_variable): Handle ORT_NONE. Allow map clause together with
10920 data sharing clauses. For data sharing clause with VLA decl
10921 on omp target/target data don't add firstprivate for the pointer.
10922 Call omp_notice_variable on TYPE_SIZE_UNIT only if it is a DECL_P.
10923 (omp_notice_threadprivate_variable): Adjust check for ORT_TARGET for
10924 the addition of ORT_COMBINED_TARGET.
10925 (omp_notice_variable): Handle ORT_NONE. Adjust check for ORT_TARGET
10926 for the addition of ORT_COMBINED_TARGET. Handle implicit mapping of
10927 pointers as zero length array sections and
10928 ctx->target_map_scalars_firstprivate mapping of scalars as firstprivate
10930 (omp_check_private): Handle omp_member_access_dummy_var vars.
10931 (find_decl_expr): New function.
10932 (gimplify_scan_omp_clauses): Add CODE argument. For OMP_CLAUSE_IF
10933 complain if OMP_CLAUSE_IF_MODIFIER is present and does not match code.
10934 Handle OMP_CLAUSE_GANG separately. Handle
10935 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
10936 clauses. Diagnose linear clause on combined
10937 distribute {, parallel for} simd construct, unless it is the loop
10938 iterator. Handle struct element GOMP_MAP_FIRSTPRIVATE_POINTER.
10939 Handle map clauses with COMPONENT_REF. Initialize
10940 ctx->target_map_scalars_firstprivate,
10941 ctx->target_firstprivatize_array_bases and
10942 ctx->target_map_pointers_as_0len_arrays. Add firstprivate for
10943 linear clause even to target region if combined. Remove
10944 map clauses with GOMP_MAP_FIRSTPRIVATE_POINTER kind from
10945 OMP_TARGET_{,ENTER_,EXIT_}DATA. For GOMP_MAP_FIRSTPRIVATE_POINTER
10946 map kind with non-INTEGER_CST OMP_CLAUSE_SIZE firstprivatize the bias.
10947 Handle OMP_CLAUSE_DEPEND_{SINK,SOURCE}. Handle
10948 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.
10949 For linear clause on worksharing loop combined with parallel add
10950 shared clause on the parallel. Handle OMP_CLAUSE_REDUCTION
10951 with MEM_REF OMP_CLAUSE_DECL. Set DECL_NAME on
10952 omp_member_access_dummy_var vars. Add lastprivate clause to outer
10953 taskloop if needed.
10954 (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_0LEN_ARRAY.
10955 If gimplify_omp_ctxp->target_firstprivatize_array_bases, use
10956 GOMP_MAP_FIRSTPRIVATE_POINTER map kind instead of
10958 (gimplify_adjust_omp_clauses): Add CODE argument. Handle removal
10959 of GOMP_MAP_FIRSTPRIVATE_POINTER struct elements for struct not seen
10960 in target body. Handle removal of struct mapping if struct is not
10961 seen in target body. Remove GOMP_MAP_STRUCT map clause on
10962 OMP_TARGET_EXIT_DATA. Adjust check for ORT_TARGET for the
10963 addition of ORT_COMBINED_TARGET. Use GOMP_MAP_FIRSTPRIVATE_POINTER
10964 instead of GOMP_MAP_POINTER if ctx->target_firstprivatize_array_bases
10965 for VLAs. Set OMP_CLAUSE_MAP_PRIVATE if both data sharing and map
10966 clause appear together. Handle
10967 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}. Don't remove map
10968 clause if it has map-type-modifier always. Handle
10969 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
10971 (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task):
10972 Adjust gimplify_scan_omp_clauses and gimplify_adjust_omp_clauses
10974 (gimplify_omp_for): Likewise. Handle OMP_TASKLOOP. Initialize
10975 loop_iter_var. Use OMP_FOR_ORIG_DECLS. Fix handling of lastprivate
10976 iterators in doacross loops.
10977 (gimplify_omp_workshare): Adjust gimplify_scan_omp_clauses and
10978 gimplify_adjust_omp_clauses callers. Use ORT_COMBINED_TARGET
10979 for OMP_TARGET_COMBINED. Adjust check for ORT_TARGET
10980 for the addition of ORT_COMBINED_TARGET.
10981 (gimplify_omp_target_update): Adjust gimplify_scan_omp_clauses and
10982 gimplify_adjust_omp_clauses callers. Handle OMP_TARGET_ENTER_DATA
10983 and OMP_TARGET_EXIT_DATA.
10984 (gimplify_omp_ordered): New function.
10985 (gimplify_expr): Handle OMP_TASKLOOP, OMP_TARGET_ENTER_DATA and
10986 OMP_TARGET_EXIT_DATA. Use gimplify_omp_ordered for OMP_ORDERED.
10987 Gimplify clauses on OMP_CRITICAL.
10988 * internal-fn.c (expand_GOMP_SIMD_ORDERED_START,
10989 expand_GOMP_SIMD_ORDERED_END): New functions.
10990 * internal-fn.def (GOMP_SIMD_ORDERED_START,
10991 GOMP_SIMD_ORDERED_END): New internal functions.
10992 * omp-builtins.def (BUILT_IN_GOMP_LOOP_DOACROSS_STATIC_START,
10993 BUILT_IN_GOMP_LOOP_DOACROSS_DYNAMIC_START,
10994 BUILT_IN_GOMP_LOOP_DOACROSS_GUIDED_START,
10995 BUILT_IN_GOMP_LOOP_DOACROSS_RUNTIME_START,
10996 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_STATIC_START,
10997 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_DYNAMIC_START,
10998 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_GUIDED_START,
10999 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_RUNTIME_START,
11000 BUILT_IN_GOMP_DOACROSS_POST, BUILT_IN_GOMP_DOACROSS_WAIT,
11001 BUILT_IN_GOMP_DOACROSS_ULL_POST, BUILT_IN_GOMP_DOACROSS_ULL_WAIT,
11002 BUILT_IN_GOMP_TARGET_ENTER_EXIT_DATA, BUILT_IN_GOMP_TASKLOOP,
11003 BUILT_IN_GOMP_TASKLOOP_ULL): New built-ins.
11004 (BUILT_IN_GOMP_TASK): Add INT argument to the end.
11005 (BUILT_IN_GOMP_TARGET): Rename from GOMP_target to GOMP_target_41,
11007 (BUILT_IN_GOMP_TARGET_DATA): Rename from GOMP_target_data to
11008 GOMP_target_data_41, adjust type.
11009 (BUILT_IN_GOMP_TARGET_UPDATE): Rename from GOMP_target_update to
11010 GOMP_target_update_41, adjust type.
11011 * omp-low.c (struct omp_region): Adjust comments, add ord_stmt
11013 (struct omp_for_data): Add ordered and simd_schedule fields.
11014 (omp_member_access_dummy_var, unshare_and_remap_1,
11015 unshare_and_remap, is_taskloop_ctx): New functions.
11016 (is_taskreg_ctx): Use is_parallel_ctx and is_task_ctx.
11017 (extract_omp_for_data): Handle taskloops and doacross loops
11018 and simd schedule modifier.
11019 (omp_adjust_chunk_size): New function.
11020 (get_ws_args_for): Use it.
11021 (lookup_sfield): Change first argument to splay_tree_key,
11022 add overload with first argument tree.
11023 (maybe_lookup_field): Likewise.
11024 (use_pointer_for_field): Handle omp_member_access_dummy_var.
11025 (omp_copy_decl_2): If var is TREE_ADDRESSABLE listed in
11026 task_shared_vars, clear TREE_ADDRESSABLE on the copy.
11027 (build_outer_var_ref): Add LASTPRIVATE argument, handle
11028 taskloops and omp_member_access_dummy_var vars.
11029 (build_sender_ref): Change first argument to splay_tree_key,
11030 add overload with first argument tree.
11031 (install_var_field): For mask & 8 use &DECL_UID as key instead
11032 of the tree itself.
11033 (fixup_child_record_type): Const qualify *.omp_data_i.
11034 (scan_sharing_clauses): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE,
11035 C/C++ array reductions, OMP_CLAUSE_{IS,USE}_DEVICE_PTR clauses,
11036 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,SIMDLEN,THREADS,SIMD} and
11037 OMP_CLAUSE_{NOGROUP,DEFAULTMAP} clauses, OMP_CLAUSE__LOOPTEMP_ clause
11038 on taskloop, GOMP_MAP_FIRSTPRIVATE_POINTER, OMP_CLAUSE_MAP_PRIVATE.
11039 (create_omp_child_function): Set TREE_READONLY on .omp_data_i.
11040 (find_combined_for): Allow searching for different GIMPLE_OMP_FOR
11042 (add_taskreg_looptemp_clauses): New function.
11043 (scan_omp_parallel): Use it.
11044 (scan_omp_task): Likewise.
11045 (finish_taskreg_scan): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
11046 For taskloop, move fields for the first two _LOOPTEMP_ clauses first.
11047 (check_omp_nesting_restrictions): Handle GF_OMP_TARGET_KIND_ENTER_DATA
11048 and GF_OMP_TARGET_KIND_EXIT_DATA. Formatting fixes. Allow the
11049 sandwiched taskloop constructs. Type check
11050 OMP_CLAUSE_DEPEND_{KIND,SOURCE}. Allow ordered simd inside of simd
11051 region. Diagnose depend(source) or depend(sink:...) on
11052 target constructs or task/taskloop.
11053 (handle_simd_reference): Use get_name.
11054 (lower_rec_input_clauses): Likewise. Ignore all
11055 OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses on taskloop construct.
11056 Allow _LOOPTEMP_ clause on GOMP_TASK. Unshare new_var
11057 before passing it to omp_clause_{default,copy}_ctor. Handle
11058 OMP_CLAUSE_REDUCTION with MEM_REF OMP_CLAUSE_DECL. Set
11059 lastprivate_firstprivate flag for linear that needs copyin and
11060 copyout. Use BUILT_IN_ALLOCA_WITH_ALIGN instead of BUILT_IN_ALLOCA.
11061 (lower_lastprivate_clauses): For OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE
11062 on taskloop lookup decl in outer context. Pass true to
11063 build_outer_var_ref lastprivate argument. Handle
11064 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV lastprivate if the decl is global
11065 outside of outer taskloop for.
11066 (lower_reduction_clauses): Handle OMP_CLAUSE_REDUCTION with MEM_REF
11068 (lower_send_clauses): Ignore first two _LOOPTEMP_ clauses in taskloop
11069 GOMP_TASK. Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE. Handle
11070 omp_member_access_dummy_var vars. Handle OMP_CLAUSE_REDUCTION
11071 with MEM_REF OMP_CLAUSE_DECL. Use new lookup_sfield overload.
11072 (lower_send_shared_vars): Ignore fields with NULL or FIELD_DECL
11073 abstract origin. Handle omp_member_access_dummy_var vars.
11074 (expand_parallel_call): Use expand_omp_build_assign.
11075 (expand_task_call): Handle taskloop construct expansion. Add
11076 REGION argument. Use GOMP_TASK_* defines instead of hardcoded
11077 integers. Add priority argument to GOMP_task* calls. Or in
11078 GOMP_TASK_FLAG_PRIORITY into flags if priority is present for
11080 (expand_omp_build_assign): Add prototype. Add AFTER
11081 argument, if true emit statements after *GSI_P and continue linking.
11082 (expand_omp_taskreg): Adjust expand_task_call caller.
11083 (expand_omp_for_init_counts): Rename zero_iter_bb argument to
11084 zero_iter1_bb and first_zero_iter to first_zero_iter1, add
11085 zero_iter2_bb and first_zero_iter2 arguments, handle computation
11086 of counts even for ordered loops.
11087 (expand_omp_for_init_vars): Handle GOMP_TASK inner_stmt.
11088 (expand_omp_ordered_source, expand_omp_ordered_sink,
11089 expand_omp_ordered_source_sink, expand_omp_for_ordered_loops): New
11091 (expand_omp_for_generic): Use omp_adjust_chunk_size. Handle linear
11092 clauses on worksharing loop. Handle DOACROSS loop expansion.
11093 (expand_omp_for_static_nochunk): Handle linear clauses on
11094 worksharing loop. Adjust expand_omp_for_init_counts
11096 (expand_omp_for_static_chunk): Likewise. Use omp_adjust_chunk_size.
11097 (expand_omp_simd): Handle addressable fd->loop.v. Adjust
11098 expand_omp_for_init_counts callers.
11099 (expand_omp_taskloop_for_outer, expand_omp_taskloop_for_inner): New
11101 (expand_omp_for): Call expand_omp_taskloop_for_* for taskloop.
11102 Handle doacross loops.
11103 (expand_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
11104 GF_OMP_TARGET_KIND_EXIT_DATA. Pass flags and depend arguments to
11105 GOMP_target_{41,update_41,enter_exit_data} libcalls.
11106 (expand_omp): Don't expand ordered depend constructs here, record
11107 ord_stmt instead for later expand_omp_for_generic.
11108 (build_omp_regions_1): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
11109 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
11110 clause as stand-alone directive.
11111 (lower_omp_ordered_clauses): New function.
11112 (lower_omp_ordered): Handle OMP_CLAUSE_SIMD, for OMP_CLAUSE_DEPEND
11113 don't lower anything.
11114 (lower_omp_for_lastprivate): Use last _looptemp_ clause
11115 on taskloop for comparison.
11116 (lower_omp_for): Handle taskloop constructs. Adjust OMP_CLAUSE_DECL
11117 and OMP_CLAUSE_LINEAR_STEP so that expand_omp_for_* can use it during
11118 expansion for linear adjustments.
11119 (create_task_copyfn): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
11120 (lower_depend_clauses): Assert not seeing sink/source depend kinds.
11121 Set TREE_ADDRESSABLE on array. Change first argument from gimple *
11122 to tree * pointing to the stmt's clauses.
11123 (lower_omp_taskreg): Adjust lower_depend_clauses caller.
11124 (lower_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA
11125 and GF_OMP_TARGET_KIND_EXIT_DATA, depend clauses,
11126 GOMP_MAP_{RELEASE,ALWAYS_{TO,FROM,TOFROM},FIRSTPRIVATE_POINTER,STRUCT}
11127 map kinds, OMP_CLAUSE_{FIRSTPRIVATE,PRIVATE,{IS,USE}_DEVICE_PTR
11128 clauses. Always use short kind and 8-bit align shift.
11129 (lower_omp_regimplify_p): Use IS_TYPE_OR_DECL_P macro.
11130 (struct lower_omp_regimplify_operands_data): New type.
11131 (lower_omp_regimplify_operands_p, lower_omp_regimplify_operands):
11133 (lower_omp_1): Use lower_omp_regimplify_operands instead of
11134 gimple_regimplify_operands.
11135 (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
11136 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
11137 clause as stand-alone directive.
11138 (simd_clone_clauses_extract): Honor OMP_CLAUSE_LINEAR_KIND.
11139 (simd_clone_mangle): Mangle the various linear kinds
11141 (simd_clone_adjust_argument_types): Handle
11142 SIMD_CLONE_ARG_TYPE_LINEAR_*_CONSTANT_STEP.
11143 (simd_clone_init_simd_arrays): Don't do anything for uval.
11144 (simd_clone_adjust): Handle
11145 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
11146 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.
11147 Handle SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP.
11148 * omp-low.h (omp_member_access_dummy_var): New prototype.
11149 * passes.def (pass_simduid_cleanup): Schedule another copy of the
11150 pass after all optimizations.
11151 * tree.c (omp_clause_code_name): Add entries for
11152 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
11153 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
11154 (omp_clause_num_ops): Likewise. Bump number of OMP_CLAUSE_REDUCTION
11155 arguments to 5 and for OMP_CLAUSE_ORDERED to 1.
11156 (walk_tree_1): Adjust for OMP_CLAUSE_ORDERED having 1 argument and
11157 OMP_CLAUSE_REDUCTION 5 arguments. Handle
11158 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
11159 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}
11161 * tree-core.h (enum omp_clause_linear_kind): New.
11162 (struct tree_omp_clause): Change type of map_kind
11163 from unsigned char to unsigned int. Add subcode.if_modifier
11164 and subcode.linear_kind fields.
11165 (enum omp_clause_code): Add
11166 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
11167 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
11168 (OMP_CLAUSE_REDUCTION): Document
11169 OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
11170 (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_{SOURCE,SINK}.
11171 * tree.def (OMP_FOR): Add OMP_FOR_ORIG_DECLS operand.
11172 (OMP_CRITICAL): Move before OMP_SINGLE. Add OMP_CRITICAL_CLAUSES
11174 (OMP_ORDERED): Move before OMP_SINGLE. Add OMP_ORDERED_CLAUSES
11176 (OMP_TASKLOOP, OMP_TARGET_ENTER_DATA, OMP_TARGET_EXIT_DATA): New tree
11178 * tree.h (OMP_BODY): Replace OMP_CRITICAL with OMP_TASKGROUP.
11179 (OMP_CLAUSE_SET_MAP_KIND): Cast to unsigned int rather than unsigned
11181 (OMP_CRITICAL_NAME): Adjust to be 3rd operand instead of 2nd.
11182 (OMP_CLAUSE_NUM_TASKS_EXPR): Formatting fix.
11183 (OMP_STANDALONE_CLAUSES): Adjust to cover OMP_TARGET_{ENTER,EXIT}_DATA.
11184 (OMP_CLAUSE_DEPEND_SINK_NEGATIVE, OMP_TARGET_COMBINED,
11185 OMP_CLAUSE_MAP_PRIVATE, OMP_FOR_ORIG_DECLS, OMP_CLAUSE_IF_MODIFIER,
11186 OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION, OMP_CRITICAL_CLAUSES,
11187 OMP_CLAUSE_PRIVATE_TASKLOOP_IV, OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV,
11188 OMP_CLAUSE_HINT_EXPR, OMP_CLAUSE_SCHEDULE_SIMD,
11189 OMP_CLAUSE_LINEAR_KIND, OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER,
11190 OMP_CLAUSE_SHARED_FIRSTPRIVATE, OMP_ORDERED_CLAUSES,
11191 OMP_TARGET_ENTER_DATA_CLAUSES, OMP_TARGET_EXIT_DATA_CLAUSES,
11192 OMP_CLAUSE_NUM_TASKS_EXPR, OMP_CLAUSE_GRAINSIZE_EXPR,
11193 OMP_CLAUSE_PRIORITY_EXPR, OMP_CLAUSE_ORDERED_EXPR): Define.
11194 * tree-inline.c (remap_gimple_stmt): Handle clauses on
11195 GIMPLE_OMP_ORDERED and GIMPLE_OMP_CRITICAL. For
11196 IFN_GOMP_SIMD_ORDERED_{START,END} set has_simduid_loops.
11197 * tree-nested.c (convert_nonlocal_omp_clauses): Handle
11198 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
11199 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
11200 clauses. Handle OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
11201 (convert_local_omp_clauses): Likewise.
11202 * tree-pretty-print.c (dump_omp_clause): Handle
11203 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
11204 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
11205 clauses. Handle OMP_CLAUSE_IF_MODIFIER, OMP_CLAUSE_ORDERED_EXPR,
11206 OMP_CLAUSE_SCHEDULE_SIMD, OMP_CLAUSE_LINEAR_KIND,
11207 OMP_CLAUSE_DEPEND_{SOURCE,SINK}. Use "delete" for
11208 GOMP_MAP_FORCE_DEALLOC. Handle
11209 GOMP_MAP_{ALWAYS_{TO,FROM,TOFROM},RELEASE,FIRSTPRIVATE_POINTER,STRUCT}.
11210 (dump_generic_node): Handle OMP_TASKLOOP, OMP_TARGET_{ENTER,EXIT}_DATA
11211 and clauses on OMP_ORDERED and OMP_CRITICAL.
11212 * tree-vectorizer.c (adjust_simduid_builtins): Adjust comment.
11213 Remove IFN_GOMP_SIMD_ORDERED_{START,END}.
11214 (vectorize_loops): Adjust comments.
11215 (pass_simduid_cleanup::execute): Likewise.
11216 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
11217 SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_CONSTANT_STEP.
11218 * wide-int.h (wi::gcd): New.
11220 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
11222 * config/i386/i386.c (classify_argument): Use CEIL where applicable.
11223 (ix86_function_arg_advance): Ditto.
11224 (ix86_function_arg): Ditto.
11225 (ix86_gimplify_va_arg): Ditto.
11226 (ix86_class_max_nregs): Ditto.
11227 (inline_memory_move_cost): Ditto.
11228 (ix86_set_reg_reg_cost): Ditto.
11229 * config/i386/i386.h (HARD_REGNO_NREGS): Ditto.
11231 2015-10-13 Alexandre Oliva <aoliva@redhat.com>
11233 PR middle-end/67912
11234 * expmed.c (store_bit_field_1): Adjust mode of BLKmode inputs.
11236 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
11238 * config/sparc/sparc.h (SPARC_STACK_ALIGN): Implement using
11239 ROUND_UP macro and UNITS_PER_WORD * 2.
11240 * config/sparc/sparc.c (sparc_compute_frame_size):
11241 Use ROUND_UP and ROUND_DOWN macros where applicable.
11242 (function_arg_record_value, function_arg_record_value_1)
11243 (function_arg_record_value_1): Ditto.
11244 (emit_save_or_restore_regs): Use ROUND_DOWN to preserve offset
11245 alignment to double-word.
11246 (sparc_gimplify_va_arg): Use ROUND_UP to calculate rsize.
11247 (sparc_emit_probe_stack_range): Use ROUND_DOWN to calculate
11250 2015-10-13 Nikolai Bozhenov <n.bozhenov@samsung.com>
11252 * rtl.h (print_insn): Fix prototype.
11254 2015-10-13 Tom de Vries <tom@codesourcery.com>
11256 * tree-parloops.c (reduction_phi): Handle cases that gimple_uid is 0 or
11257 -1. Add assert that returned entry matches phi argument.
11258 (parallelize_loops): Move calls to init_stmt_vec_info_vec and
11259 free_stmt_vec_info_vec ...
11260 (gather_scalar_reductions): ... here. Initialize gimple_uids of phis
11263 2014-10-13 Yuri Rumyantsev <ysrumyan@gmail.com>
11265 PR tree-optimization/67909, 67947
11266 * tree-ssa-loop-unswitch.c (find_loop_guard): Add check that GUARD_EDGE
11267 really skip the inner loop.
11269 2015-10-13 Jeff Law <law@redhat.com>
11271 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
11272 Allow single block jump threading paths.
11274 2015-10-13 Tom de Vries <tom@codesourcery.com>
11276 PR tree-optimization/67476
11277 * doc/invoke.texi (@item parloops-schedule): New item.
11278 * params.def (PARAM_PARLOOPS_SCHEDULE): New DEFPARAMENUM5.
11279 * tree-parloops.c: Include params-enum.h.
11280 (create_parallel_loop): Handle PARAM_PARLOOPS_SCHEDULE.
11282 2015-10-13 Tom de Vries <tom@codesourcery.com>
11284 * Makefile.in (PARAMS_H, PLUGIN_HEADERS): Add params-enum.h.
11285 * params-enum.h: New file.
11286 * opts.c (handle_param): Handle case that param arg is a string.
11287 * params-list.h: Handle DEFPARAMENUM5 in params.def.
11288 * params.c (find_param): New function, factored out of ...
11289 (set_param_value): ... here.
11290 (param_string_value_p): New function.
11291 * params.h (struct param_info): Add value_names field.
11292 (find_param, param_string_value_p): Declare.
11294 2015-10-13 Tom de Vries <tom@codesourcery.com>
11296 PR tree-optimization/67476
11297 * omp-low.c (expand_omp_for_generic): Handle original loop tree.
11299 2015-10-13 Richard Biener <rguenther@suse.de>
11301 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences): Allocate
11302 the data dependence vector.
11303 (vect_peeling_hash_insert): Get the peeling hash table as argument.
11304 (vect_peeling_hash_get_lowest_cost): Likewise.
11305 (vect_enhance_data_refs_alignment): Adjust.
11306 (struct _vect_peel_info, struct _vect_peel_extended_info,
11307 struct peel_info_hasher): Move from ...
11308 * tree-vectorizer.h: ... here.
11309 (LOOP_VINFO_COST_MODEL_MIN_ITERS): Remove.
11310 (LOOP_VINFO_PEELING_HTAB): Likewise.
11311 (struct _loop_vec_info): Remove min_profitable_iters and
11312 peeling_htab members.
11313 * tree-vect-loop.c (new_loop_vec_info): Do not allocate vectors
11315 (destroy_loop_vec_info): Adjust.
11316 (vect_analyze_loop_2): Do not set LOOP_VINFO_COST_MODEL_MIN_ITERS.
11317 (vect_estimate_min_profitable_iters): Use LOOP_VINFO_COMP_ALIAS_DDRS
11318 to estimate alias versioning cost.
11319 * tree-vect-slp.c (vect_analyze_slp_cost): Dump header.
11321 2015-10-13 Richard Sandiford <richard.sandiford@arm.com>
11323 * real.h (real_isinteger): Declare.
11324 * real.c (real_isinteger): New function.
11325 * match.pd: Simplify pow(|x|,y) and pow(-x,y) to pow(x,y)
11326 if y is an even integer.
11328 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
11331 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
11332 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
11333 counts when these are more informative.
11335 2015-10-12 Jeff Law <law@redhat.com>
11337 * tree-ssa-threadbackward.c (get_gimple_control_stmt): New function.
11338 (fsm_find_control_stmt_paths): Change name of first argument to
11339 more accurately relfect what it really is. Handle simplification
11340 of GIMPLE_COND after finding a thread path for NAME.
11341 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Allow
11342 nontrivial conditions to be handled by FSM threader.
11343 (thread_through_normal_block): Extract the name to looup via
11344 FSM threader from COND_EXPR.
11346 * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove
11347 restriction that traced SSA_NAME is a user variable.
11349 2015-10-12 Tom de Vries <tom@codesourcery.com>
11351 PR tree-optimization/67476
11352 * omp-low.c (expand_omp_for_generic): Add missing phis.
11354 2015-10-12 Tom de Vries <tom@codesourcery.com>
11356 PR tree-optimization/67476
11357 * omp-low.c (expand_omp_for_generic): Handle simple latch.
11359 2015-10-12 Christophe Lyon <christophe.lyon@linaro.org>
11361 * config/aarch64/aarch64-simd-builtins.def: Update builtins
11362 tables: add tbl3 and tbx4.
11363 * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): New.
11364 (aarch64_tbx4v8qi): New.
11365 * config/aarch64/arm_neon.h (vtbl3_s8, vtbl3_u8, vtbl3_p8)
11366 (vtbl4_s8, vtbl4_u8, vtbl4_p8, vtbx4_s8, vtbx4_u8, vtbx4_p8):
11367 Rewrite using builtin functions.
11368 * config/aarch64/iterators.md (UNSPEC_TBX): New.
11370 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
11372 * config/rs6000/rs6000.h (RS6000_ALIGN): Implement using
11374 * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
11375 Use ROUND_UP and ROUND_DOWN macros where applicable.
11376 (rs6000_darwin64_record_arg_flush): Ditto.
11377 (rs6000_function_arg): Use ROUND_UP to calculate align_words.
11378 (rs6000_emit_probe_stack_range): Use ROUND_DOWN to calculate
11381 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
11383 * config/aarch/aarch64.h (AARCH64_ROUND_UP): Remove.
11384 (AARCH64_ROUND_DOWN): Ditto.
11385 * config/aarch64/aarch64.c: Use ROUND_UP instead of AARCH64_ROUND_UP.
11387 2015-10-12 Richard Biener <rguenther@suse.de>
11390 * ipa-inline-analysis.c (estimate_function_body_sizes): Re-add
11391 code that analyzes IVs on each stmt but in a cheaper way avoiding
11392 quadratic behavior.
11394 2015-10-12 Nick Clifton <nickc@redhat.com>
11396 * config/msp430/msp430.c (msp430_mcu_names): Rename to
11397 msp430_mcu_data, add fields for ISA and hardware multiply
11398 support. Import latest data from the devices.csv file.
11399 (msp430_override_option): Use the data from the new array.
11400 (msp430_use_f5_series_hwmult): Likewise.
11401 (use_32bit_hwmult): Likewise.
11402 (msp430_no_hwmult): Likewise.
11403 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for new
11405 * doc/invoke.texi (MSP430 Options): Note that if the MCU name is
11406 not recognised then no hardware multiply support is assumed and
11407 that only the MSP430 ISA is allowed.
11409 2015-10-12 Richard Biener <rguenther@suse.de>
11411 * tree-vect-loop.c (vect_analyze_loop_operations): Move cost
11413 (vect_analyze_loop_2): ... here.
11415 2015-10-11 Jason Merrill <jason@redhat.com>
11418 * expr.c (store_field): Call store_constructor directly when
11419 storing a CONSTRUCTOR into a target smaller than its type.
11420 Guard against unsafe bitwise copy.
11422 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
11424 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
11425 counts when these are more informative.
11427 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
11429 * tree-profile.c (tree_profiling): Do not clear
11430 pure/const when not instrumenting.
11431 (pass tree_profile): Add dump of symtab.
11433 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
11435 * fold-const.c (fold_comparsion): Pass OEP_ADDRESS_OF when comparing
11437 (fold_addr_of_array_ref_difference): Likewise.
11439 2015-10-11 Jeff Law <law@redhat.com>
11441 * tree-ssa-threadedge.c (fsm_find_thread_path): Moved from here into
11442 tree-ssa-threadbackward.c.
11443 (fsm_find_control_statement_thread_paths): Likewise.
11444 (thread_through_normal_block): Break out FSM bits and move them
11445 into a new function in tree-ssa-threadbackward.c. Call new function
11447 Minimize header file usage.
11448 * tree-ssa-threadbackward.h: New file.
11449 * tree-ssa-threadbackward.c: Likewise.
11450 * Makefile.in (OBJS): Add tree-ssa-threadbackward.o
11452 2015-10-11 Uros Bizjak <ubizjak@gmail.com>
11454 * config/alpha/alpha.h (ALPHA_ROUND): Implement using ROUND_UP macro.
11456 2015-10-11 Segher Boessenkool <segher@kernel.crashing.org>
11458 PR rtl-optimization/67864
11459 * bb-reorder (reorder_basic_blocks_simple): Prefer existing
11460 fallthrough edges for conditional jumps. Don't sort candidate
11461 edges if not optimizing for speed.
11463 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11465 * defaults.h (REVERSE_CONDITION): New default definition.
11466 * jump.c (reversed_comparison_code_parts): Adjust.
11468 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11470 * builtins.c (expand_builtin_setjmp_receiver): Don't use #if to
11471 check HARD_FRAME_POINTER_IS_ARG_POINTER.
11473 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11475 * defaults.h (FRAME_ADDR_RTX): New default definition.
11476 * builtins.c (expand_builtin_return_addr): Adjust.
11478 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11480 * defaults.h (DYNAMIC_CHAIN_ADDRESS): New default definition.
11481 * builtins.c (expand_builtin_return_addr): Adjust.
11483 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11485 * defaults.h (SETUP_FRAME_ADDRESSES): New default definition.
11486 * builtins.c (expand_builtin_return_addr): Adjust.
11487 * doc/tm.texi: Likewise.
11488 * doc/tm.texi.in: Likewise.
11489 * except.c (expand_builtin_unwind_init): Likewise.
11491 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11493 * builtins.c (expand_builtin_return_addr): Adjust.
11494 * defaults.h (INITIAL_FRAME_ADDRESS_RTX): New default definition.
11496 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
11498 * tree.c (type_with_interoperable_signedness): New.
11499 (gimple_canonical_types_compatible_p): Use it.
11500 * tree.h (type_with_interoperable_signedness): Declare
11502 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
11504 * fold-const.c (operand_equal_p): Document OEP_ADDRESS_OF
11505 and OEP_CONSTANT_ADDRESS_OF; skip type compatibility checks
11506 when OEP_ADDRESS_OF is se.
11508 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
11509 Sebastian Pop <s.pop@samsung.com>
11511 * graphite-dependences.c (scop_get_dependences): Add dump of the
11512 data dependence graph.
11513 * graphite-poly.c (print_isl_union_map): New.
11514 (debug_isl_union_map): New.
11515 * graphite-poly.h (print_isl_union_map): Declare.
11516 (debug_isl_union_map): Declare.
11518 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
11519 Sebastian Pop <s.pop@samsung.com>
11521 * graphite-poly.c (print_iteration_domain): Remove verbosity.
11522 Remove OpenScop formatting.
11523 (print_iteration_domains): Same.
11524 (debug_iteration_domain): Same.
11525 (debug_iteration_domains): Same.
11528 (dump_gbb_cases): Same.
11529 (dump_gbb_conditions): Same.
11530 (print_pdrs): Same.
11531 (debug_pdrs): Same.
11532 (print_pbb_body): Same.
11534 (print_scop_params): Same.
11535 (print_scop_context): Same.
11536 (print_scop): Same.
11537 (debug_pbb_domain): Same.
11539 (debug_scop_context): Same.
11540 (debug_scop): Same.
11541 (debug_scop_params): Same.
11542 * graphite-poly.h: Same.
11543 * graphite.c (graphite_transform_loops): Same.
11545 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11547 * function.c (stack_protect_epilogue): Remove as_a<rtx_insn *> ()
11548 call that isn't needed.
11550 2015-10-09 Jeff Law <law@redhat.com>
11552 * tree-ssanames.c (flush_ssaname_freelist): Use splice and truncate
11553 rather than moving each name to the freelist individually.
11555 2015-10-09 Steve Ellcey <sellcey@imgtec.com>
11557 * config.gcc (mips*-*-*): Add frame-header-opt.o to extra_objs.
11558 * frame-header-opt.c: New file.
11559 * config/mips/mips-proto.h (mips_register_frame_header_opt):
11561 * config/mips/mips.c (mips_compute_frame_info): Check
11562 optimize_call_stack flag.
11563 (mips_option_override): Register new frame_header_opt pass.
11564 (mips_frame_info, mips_int_mask, mips_shadow_set,
11565 machine_function): Move these types to...
11566 * config/mips/mips.h: here.
11567 (machine_function): Add does_not_use_frame_header and
11568 optimize_call_stack fields.
11569 * config/mips/t-mips (frame-header-opt.o): Add new make rule.
11570 * doc/invoke.texi (-mframe-header-opt, -mno-frame-header-opt):
11571 Document new flags.
11572 * config/mips/mips.opt (mframe-header-opt): Add new option.
11574 2015-10-09 Uros Bizjak <ubizjak@gmail.com>
11576 * config/i386/i386.c
11577 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Use
11578 ROUND_DOWN where applicable.
11580 2015-10-09 Jeff Law <law@redhat.com>
11582 * tree-vect-stmts.c (free_stmt_vec_info): Free the LHS of the
11585 2015-10-09 Renlin Li <renlin.li@arm.com>
11587 * config/arm/neon.md (neon_vuzp<mode>_insn): Add & modifier for
11588 operands[0] and operands[2].
11589 (neon_vtrn<mode>_insn): Likewise.
11590 (neon_vzip<mode>_insn): Likewise.
11592 2015-10-09 Andre Vieira <andre.simoesdiasvieira@arm.com>
11594 * match.pd: ((X inner_op C0) outer_op C1) New pattern.
11595 ((X & C2) << C1): Expand to...
11596 (X {&,^,|} C2 << C1): ...This.
11597 ((X & C2) >> C1): Expand to...
11598 (X {&,^,|} C2 >> C1): ...This.
11600 2015-10-09 Alexander Fomin <alexander.fomin@intel.com>
11603 * config/i386/sse.md (define_insn "sse_cvtsi2ss<round_name>"):
11604 Adjust embedded rounding/SAE specifier position.
11605 (define_insn "sse_cvtsi2ssq<round_name>"): Likewise.
11606 (define_insn "cvtusi2<ssescalarmodesuffix>32<round_name>"): Likewise.
11607 (define_insn "cvtusi2<ssescalarmodesuffix>64<round_name>"): Likewise.
11608 (define_insn "sse2_cvtsi2sdq<round_name>"): Likewise.
11609 (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
11611 (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Likewise.
11613 2015-10-09 Martin Jambor <mjambor@suse.cz>
11615 tree-optimization/67794
11616 * tree-sra.c (replace_removed_params_ssa_names): Do not distinguish
11617 between types of state,ents but accept original definitions as a
11619 (ipa_sra_modify_function_body): Use FOR_EACH_SSA_DEF_OPERAND to
11620 iterate over definitions.
11622 2015-10-09 James Norris <jnorris@codesourcery.com>
11624 * config/rs6000/rs6000.c (rs6000_offload_options): New.
11625 (TARGET_OFFLOAD_OPTIONS): New.
11627 2015-10-09 Alexandre Oliva <aoliva@redhat.com>
11629 PR middle-end/67891
11630 * cfgexpand.c (set_parm_rtl): Drop is_gimple_reg test.
11632 PR middle-end/67766
11633 * function.c (expand_function_end): Move return value
11634 promotion past the handling of PARALLELs and CONCATs.
11636 PR rtl-optimization/67828
11637 * tree-ssa-loop-unswitch.c: Include tree-ssa.h.
11638 (tree_may_unswitch_on): Don't unswitch on expressions
11639 involving undefined values.
11641 2015-10-09 Richard Biener <rguenther@suse.de>
11643 * genmatch.c (print_operand): Fix formatting.
11644 (dt_node::append_simplify): Warn for multiple simplifiers
11645 that match the same pattern.
11646 * match.pd (log (exp @0)): Remove duplicates.
11648 2015-10-09 Richard Biener <rguenth@suse.de>
11651 * gimple-fold.c (optabs-query.h): Include
11652 (gimple_fold_builtin_memory_op): Allow unaligned stores
11653 when movmisalign_optabs are available.
11655 2015-10-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11658 * config/arm/arm.md (movmisalign<mode>): New.
11659 * config/arm/iterators.md (HSI): New.
11661 2015-10-09 Richard Biener <rguenther@suse.de>
11663 PR tree-optimization/67891
11664 * gimple-match.h (gimple_simplified_result_is_gimple_val):
11666 (gimple_resimplify1): Declare.
11667 (gimple_resimplify2): Likewise.
11668 (gimple_resimplify3): Likewise.
11669 * gimple-match-head.c (gimple_resimplify1): Export.
11670 (gimple_resimplify2): Likewise.
11671 (gimple_resimplify3): Likewise.
11672 (maybe_push_res_to_seq): Use gimple_simplified_result_is_gimple_val.
11673 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
11674 * tree-ssa-sccvn.c (visit_reference_op_load): Use gimple_resimplify1
11675 to avoid creating stmts without VN info.
11677 2015-10-08 Jan Hubicka <hubicka@ucw.cz>
11679 * ipa-icf.c (sem_item::compare_symbol_references): Fix use
11682 2015-10-08 Jeff Law <law@redhat.com>
11684 * value-prof.c (gimple_ic): Add missing calls to unlink_stmt_vdef
11685 and release_ssa_name in two places.
11686 (gimple_stringop_fixed_value): Similarly.
11688 * tree-ssa-loop-im.c (rewrite_bittest): Add missing call to
11691 * tree-stdarg.c (expand_ifn_va_arg_1): Add missing call to
11692 unlink_stmt_vdef and release_ssa_name_fn.
11694 * tree-ssa-dse.c (dse_optimize_stmt): Add missing call to
11697 2015-10-08 H.J. Lu <hongjiu.lu@intel.com>
11699 * config/i386/i386.c (ix86_compute_frame_layout): Round up the
11700 SSE register save area to 16 bytes only if the incoming stack
11701 boundary is no less than 16 bytes.
11703 2015-10-08 Jeff Law <law@redhat.com>
11705 * tree-ssa-phiopt.c (factor_out_conversion): Add missing calls to
11706 release_ssa_name. Fix typo in comment.
11708 2015-10-08 Nathan Sidwell <nathan@acm.org>
11710 * config/nvptx/nvptx.h (struct machine_function): Add comment.
11711 * config/nvptx/nvptx.c (nvptx_declare_function_name): Functions
11712 may return pointer as well as in memory.
11713 (nvptx_output_return): Likewise.
11715 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
11717 * builtins.c (fold_builtin_sqrt, fold_builtin_cbrt): Delete.
11718 (fold_builtin_1): Update accordingly. Handle constant arguments here.
11719 * match.pd: Add rules previously handled by fold_builtin_sqrt
11720 and fold_builtin_cbrt.
11722 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
11724 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): New param.
11725 * doc/invoke.texi (--param max-ssa-name-query-depth): Document.
11726 * fold-const.h (tree_unary_nonnegative_warnv_p)
11727 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
11728 (tree_expr_nonnegative_warnv_p): Add depth parameters.
11729 * fold-const.c: Include gimple-fold.h and params.h.
11730 (tree_ssa_name_nonnegative_warnv_p): New function.
11731 (tree_unary_nonnegative_warnv_p, tree_binary_nonnegative_warnv_p)
11732 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
11733 (tree_invalid_nonnegative_warnv_p, tree_expr_nonnegative_warnv_p):
11734 Add a depth parameter and increment it for recursive calls to
11735 tree_expr_nonnegative_warnv_p. Use tree_ssa_name_nonnegative_warnv_p
11736 to handle SSA names.
11737 * gimple-fold.h (gimple_val_nonnegative_real_p): Delete.
11738 (gimple_stmt_nonnegative_warnv_p): Declare.
11739 * tree-vrp.c (remove_range_assertions): Remove assert that condition
11740 cannot be proven false.
11741 (gimple_assign_nonnegative_warnv_p, gimple_call_nonnegative_warnv_p)
11742 (gimple_stmt_nonnegative_warnv_p): Move to...
11743 * gimple-fold.c: ...here. Add depth parameters and pass them
11744 down to the tree routines. Accept statements that aren't
11745 assignments or calls but just return false for them.
11746 (gimple_val_nonnegative_real_p): Delete.
11747 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
11748 tree_expr_nonnegative_p instead of gimple_val_nonnegative_real_p.
11749 Check HONOR_NANs first.
11751 2015-10-08 Martin Jambor <mjambor@suse.cz>
11753 * ipa-cp.c (meet_with_1): Make the argument of abs signed. Remove
11756 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
11758 * tree-vect-loop.c (vect_analyze_loop_operations): Skip virtual phi
11759 in the tail of outer-loop.
11761 2015-10-08 David Edelsohn <dje.gcc@gmail.com>
11763 * config/rs6000/rs6000.c (rs6000_xcoff_debug_unwind_info): Always
11766 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
11768 * tree-ssa-loop-unswitch.c: Include "gimple-iterator.h" and
11769 "cfghooks.h", add prototypes for introduced new functions.
11770 (tree_ssa_unswitch_loops): Use from innermost loop iterator, move all
11771 checks on ability of loop unswitching to tree_unswitch_single_loop;
11772 invoke tree_unswitch_single_loop or tree_unswitch_outer_loop depending
11773 on innermost loop check.
11774 (tree_unswitch_single_loop): Add all required checks on ability of
11775 loop unswitching under zero recursive level guard.
11776 (tree_unswitch_outer_loop): New function.
11777 (find_loop_guard): Likewise.
11778 (empty_bb_without_guard_p): Likewise.
11779 (used_outside_loop_p): Likewise.
11780 (get_vop_from_header): Likewise.
11781 (hoist_guard): Likewise.
11782 (check_exit_phi): Likewise.
11784 2015-10-08 Marek Polacek <polacek@redhat.com>
11786 * tree-ssa-reassoc.c (dump_ops_vector): Print newline after each
11789 2015-10-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11792 * config/s390/s390.c (s390_atomic_assign_expand_fenv): Use
11793 create_tmp_var_raw instead of create_tmp_var.
11795 2015-10-07 Jan Hubicka <hubicka@ucw.cz>
11797 * expr.c (store_expr_with_bounds): Handle aggregate moves from
11799 * gimple-expr.c (useless_type_conversion_p): Do not use TYPE_CANONICAL
11800 to define gimple type system; compare aggregates only by size.
11802 2015-10-07 Jeff Law <law@redhat.com>
11804 * tree-ssa-dom.c (optimize_stmt): Don't set LOOPS_NEED_FIXUP here.
11805 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Do it
11806 here instead. Tighten test to avoid setting LOOPS_NEED_FIXUP
11809 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
11810 Sebastian Pop <s.pop@samsung.com>
11812 * graphite-dependences.c (scop_get_dependences): Do not use SCOP_BBS.
11813 * graphite-isl-ast-to-gimple.c (get_max_schedule_dimensions): Same.
11814 (generate_isl_schedule): Same.
11815 * graphite-optimize-isl.c (scop_get_domains): Same.
11816 (apply_schedule_map_to_scop): Same.
11817 * graphite-poly.c (print_iteration_domains): Same.
11818 (remove_gbbs_in_scop): Same.
11821 (print_scop): Same.
11822 * graphite-poly.h (struct scop): Rename bbs to pbbs.
11823 (SCOP_BBS): Remove.
11824 * graphite-scop-detection.c (compare_bb_depths): Remove.
11825 (graphite_sort_dominated_info): Remove.
11826 (try_generate_gimple_bb): Move out of scop_detection.
11827 (all_non_dominated_preds_marked_p): Remove.
11828 (build_scop_bbs_1): Remove.
11829 (build_scop_bbs): Remove.
11830 (nb_pbbs_in_loops): Do not use SCOP_BBS.
11831 (find_scop_parameters): Same.
11832 (sese_dom_walker): Rename gather_bbs.
11833 (before_dom_children): Call try_generate_gimple_bb and collect gbb
11835 (build_scops): Call gather_bbs.
11836 * graphite-sese-to-poly.c (build_scop_scattering): Do not use SCOP_BBS.
11837 (add_conditions_to_constraints): Same.
11838 (build_scop_iteration_domain): Same.
11839 (build_scop_drs): Same.
11840 (new_pbb_from_pbb): Same.
11841 * sese.c (new_sese_info): Create bbs.
11842 * sese.h (struct sese_info_t): Add bbs.
11844 2015-10-07 David Edelsohn <dje.gcc@gmail.com>
11846 * config/rs6000/xcoff.h (ASM_PREFERRED_EH_DATA_FORMAT): Use 64-bit
11847 encoding in 64-bit mode.
11849 2015-10-07 Uros Bizjak <ubizjak@gmail.com>
11852 * config/i386/i386.c (ix86_option_override_internal): Always use
11853 8-byte minimum stack boundary in 64-bit mode.
11854 (ix86_compute_frame_layout): Remove assert on INCOMING_STACK_BOUNDARY.
11855 (ix86_emit_save_reg_using_mov): Support unaligned SSE store.
11856 Add a REG_CFA_EXPRESSION note if needed.
11857 (ix86_emit_restore_sse_regs_using_mov): Support unaligned SSE load.
11858 (ix86_handle_force_align_arg_pointer_attribute): New.
11859 (ix86_minimum_incoming_stack_boundary): Remove TARGET_64BIT check.
11860 (ix86_attribute_table): Set ix86_force_align_arg_pointer_string
11861 with ix86_handle_force_align_arg_pointer_attribute.
11862 * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to BITS_PER_WORD.
11864 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
11865 Sebastian Pop <s.pop@samsung.com>
11867 * graphite-scop-detection.c (parameter_index_in_region): Remove
11868 use of SESE_ADD_PARAMS.
11869 (find_scop_parameters): Same.
11870 * sese.c (new_sese_info): Same.
11871 * sese.h (struct sese_info_t): Remove add_params.
11872 (SESE_ADD_PARAMS): Remove.
11874 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
11875 Sebastian Pop <s.pop@samsung.com>
11877 * graphite-isl-ast-to-gimple.c (translate_isl_ast_to_gimple): Use
11880 (copy_internal_parameters): Same.
11881 (translate_isl_ast_to_gimple): Use an sese_l.
11882 (build_iv_mapping): Same.
11883 * graphite-poly.c (new_sese): Rename new_sese_info.
11884 (free_sese): Rename free_sese_info.
11885 * graphite-poly.h (struct scop): Use an sese_info_p.
11886 (scop_set_region): Same.
11887 * graphite-scop-detection.c (struct sese_l): Moved...
11888 (get_entry_bb): Moved...
11889 (get_exit_bb): Moved...
11890 (parameter_index_in_region_1): Use an sese_info_p.
11891 (parameter_index_in_region): Same.
11892 (scan_tree_for_params): Same.
11893 (find_params_in_bb): Same.
11894 (sese_dom_walker): Use an sese_l.
11895 * graphite-sese-to-poly.c (remove_invariant_phi): Same.
11896 (reduction_phi_p): Same.
11897 (parameter_index_in_region_1): Use an sese_info_p.
11898 (propagate_expr_outside_region): Use an sese_l.
11899 * graphite.c: Replace uses of SCOP_REGION.
11900 * sese.c (sese_record_loop): Use an sese_info_p.
11901 (build_sese_loop_nests): Same.
11902 (sese_build_liveouts_use): Same.
11903 (sese_build_liveouts_bb): Same.
11904 (sese_build_liveouts_bb): Same.
11905 (sese_bad_liveouts_use): Same.
11906 (sese_reset_debug_liveouts_bb): Same.
11907 (sese_build_liveouts): Same.
11908 (new_sese): Renamed new_sese_info.
11909 (free_sese): Renamed free_sese_info.
11910 (set_rename): Use an sese_info_p.
11911 (graphite_copy_stmts_from_block): Same.
11912 (copy_bb_and_scalar_dependences): Same.
11913 (outermost_loop_in_sese_1): Use an sese_l.
11914 (outermost_loop_in_sese): Same.
11915 (if_region_set_false_region): Use an sese_info_p.
11916 (move_sese_in_condition): Same.
11917 (scalar_evolution_in_region): Use an sese_l.
11918 * sese.h (struct sese_l): ... here.
11919 (SESE_ENTRY): Remove.
11920 (SESE_ENTRY_BB): Remove.
11921 (SESE_EXIT): Remove.
11922 (SESE_EXIT_BB): Remove.
11923 (sese_contains_loop): Use an sese_info_p.
11924 (sese_nb_params): Same.
11925 (bb_in_sese_p): Use an sese_l.
11926 (stmt_in_sese_p): Same.
11927 (defined_in_sese_p): Same.
11928 (loop_in_sese_p): Same.
11929 (sese_loop_depth): Same.
11930 (struct ifsese_s): Use an sese_info_p.
11931 (gbb_loop_at_index): Use an sese_l.
11932 (nb_common_loops): Same.
11933 (scev_analyzable_p): Same.
11935 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
11937 * config/i386/i386.c (ix86_conditional_register_usage): Use
11938 CALL_USED_REGISTERS_MASK.
11939 * config/i386/i386.h (CALL_USED_REGISTERS_MASK): New macro.
11941 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
11944 * configure.ac (gcc_cv_readelf): Check $READELF_FOR_TARGET.
11945 * configure: Regenerated.
11947 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
11950 * config/i386/i386.c (ix86_maybe_switch_abi): Merged with ...
11951 (ix86_set_current_function): This.
11952 (TARGET_EXPAND_TO_RTL_HOOK): Removed.
11954 2015-10-07 Richard Biener <rguenther@suse.de>
11956 * tree-vectorizer.h (stmt_vec_info_vec): Use vec<stmt_vec_info>.
11957 (vinfo_for_stmt): Adjust.
11958 (set_vinfo_for_stmt): Likewise.
11959 * tree-vectorizer.c (stmt_vec_info_vec): Likewise.
11960 * tree-vect-stmts.c (free_stmt_vec_info_vec): Likewise.
11961 * tree-vect-loop.c (new_loop_vec_info): Remove special-casing
11963 (vect_analyze_loop_1): Remove.
11964 (vect_analyze_loop_form_1): Avoid building a loop_vec_info for
11965 inner loop when vectorizing an outer loop by splitting out from ...
11966 (vect_analyze_loop_form): ... here.
11968 2015-10-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11971 * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv):
11972 Use create_tmp_var_raw instead of create_tmp_var.
11974 2015-10-07 Richard Sandiford <richard.sandiford@arm.com>
11976 * real.h (dconst_quarter, dconst_sixth, dconst_ninth): New macros.
11977 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): Declare.
11978 * real.c (CACHED_FRACTION): New helper macro.
11979 (dconst_third_ptr): Use it.
11980 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): New.
11981 * builtins.c (fold_builtin_sqrt): Use dconst_quarter and
11983 (fold_builtin_cbrt): Use dconst_sixth and dconst_ninth.
11985 2015-10-06 Jeff Law <law@redhat.com>
11987 PR tree-optimization/67816
11988 * tree-ssa-threadupdate.h (remove_jump_threads_including): Renamed
11989 from remove_jump_threads_starting_at. Accept an edge rather than
11991 * tree-ssa-threadupdate.c (removed_edges): New hash table.
11992 (remove_jump_threads_including): Note edges that get removed from
11993 the CFG for later pruning of jump threading paths including them.
11994 (thread_through_all_blocks): Remove paths which include edges that
11996 * tree-ssa-dom.c (optimize_stmt): Call remove_jump_threads_including
11997 on each outgoing edges when optimizing away a control statement.
11999 2015-10-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12001 * reorg.c (emit_delay_sequence): Store list of delay slot insns
12002 in a vector instead of rtx_insn_list.
12003 (add_to_delay_list): Likewise.
12004 (delete_from_delay_slot): Likewise.
12005 (optimize_skip): Likewise.
12006 (redirect_with_delay_list_safe_p): Likewise.
12007 (check_annul_list_true_false): Likewise.
12008 (steal_delay_list_from_target): Likewise.
12009 (steal_delay_list_from_fallthrough): Likewise.
12010 (redundant_insn): Likewise.
12011 (fill_simple_delay_slots): Likewise.
12012 (fill_slots_from_thread): Likewise.
12013 (fill_eager_delay_slots): Likewise.
12014 (relax_delay_slots): Likewise.
12016 2015-10-06 Sandra Loosemore <sandra@codesourcery.com>
12018 * config/nios2/nios2.c (nios2_symbol_ref_in_small_data_p):
12019 For -mgpopt=local, also exclude unintialized common symbols.
12020 * doc/invoke.texi (Nios II Options): Document the change.
12022 2015-10-07 Kugan Vivekanandarajah <kuganv@linaro.org>
12024 * config/aarch64/iterators.md (vwcore): Add missing cases for
12027 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
12028 Sebastian Pop <s.pop@samsung.com>
12030 * graphite-poly.c (new_scop): Initialize drs.
12031 * graphite-poly.h (struct dr_info): New.
12032 (struct scop): Add drs.
12033 * graphite-sese-to-poly.c (pdr_add_alias_set): Use dr_info.
12034 (pdr_add_memory_accesses): Same.
12035 (build_poly_dr): Same.
12036 (build_alias_set): Same.
12037 (build_scop_drs): Same.
12038 (build_pbb_drs): Remove.
12039 * tree-data-ref.c (create_data_ref): Do not initialize alias_set.
12040 * tree-data-ref.h (data_reference): Remove alias_set.
12042 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
12043 Sebastian Pop <s.pop@samsung.com>
12045 * graphite-poly.c (free_data_refs_aux): Remove.
12046 (free_gimple_poly_bb): Do not call free_data_refs_aux.
12047 * graphite-poly.h (struct base_alias_pair): Remove.
12048 * graphite-sese-to-poly.c (pdr_add_alias_set): Remove all uses of
12049 base_alias_pair and dr->aux.
12050 (build_alias_set): Same.
12051 * tree-data-ref.c (create_data_ref): Initialize alias_set.
12052 * tree-data-ref.h (data_reference): Add alias_set.
12054 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
12055 Sebastian Pop <s.pop@samsung.com>
12057 * graphite-poly.c (new_poly_dr): Remove dr_base_object_set.
12058 Do not set PDR_BASE_OBJECT_SET.
12059 * graphite-poly.h (poly_dr): Same.
12060 (PDR_BASE_OBJECT_SET): Remove.
12061 (new_poly_dr): Update decl.
12062 * graphite-sese-to-poly.c (build_poly_dr): Update call to
12064 (write_alias_graph_to_ascii_dimacs): Remove.
12065 (write_alias_graph_to_ascii_dot): Remove.
12066 (write_alias_graph_to_ascii_ecc): Remove.
12067 (dr_same_base_object_p): Remove.
12068 (build_alias_set_optimal_p): Rename build_alias_set. Remove dead
12070 (build_base_obj_set_for_drs): Remove.
12071 (dump_alias_graphs): Remove.
12072 (build_scop_drs): Remove dead code.
12074 2015-10-05 Michael Meissner <meissner@linux.vnet.ibm.com>
12075 Peter Bergner <bergner@vnet.ibm.com>
12078 * config/rs6000/rs6000.md (extenddftf2): In the expander, only
12079 allow registers, but provide insns for the combiner to create for
12080 loads from memory. Separate VSX code from non-VSX code. For
12081 non-VSX code, combine extenddftf2_fprs into extenddftf2 and rename
12082 externaldftf2_internal to externaldftf2_fprs. Reorder constraints
12083 so that registers come before memory operations. Drop support from
12084 converting DFmode to TFmode, if the DFmode value is in a GPR
12086 (extenddftf2_fprs): Likewise.
12087 (extenddftf2_internal): Likewise.
12088 (extenddftf2_vsx): Likewise.
12089 (extendsftf2): In the expander, only allow registers, but provide
12090 insns for the combiner to create for stores and loads.
12092 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12094 * varasm.c (default_elf_asm_named_section): Remove ATTRIBUTE_UNUSED
12095 from the decl parameter.
12097 2015-10-06 Nathan Sidwell <nathan@codesourcery.com>
12100 * gimple-fold.c (gimple_fold_builtin): Add break after
12101 BUILT_IN_PRINTF_CHK, BUILT_IN_VPRINTF_CHK folding.
12103 2015-10-06 H.J. Lu <hongjiu.lu@intel.com>
12105 * graphite-optimize-isl.c (optimize_isl): Rename scop->ctx
12106 to scop->isl_context.
12108 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
12110 * config/arm/arm.c (arm_emit_probe_stack_range): Adjust comment.
12111 (output_probe_stack_range): Rotate the loop and simplify.
12112 (thumb1_expand_prologue): Tweak sorry message.
12113 * config/arm/arm.md (probe_stack): Use bare string.
12115 2015-10-06 Nick Clifton <nickc@redhat.com>
12117 * config.gcc (lm32-elf): Add newlib-stdint.h to tm_file.
12119 2015-10-06 Nick Clifton <nickc@redhat.com>
12121 * config/msp430/msp430.c (ATTR_NOINIT): New constant.
12122 (ATTR_PERSIST): New constant.
12123 (msp430_data_attr): New function - verifies an attribute that only
12124 applies to variables.
12125 (msp430_attributes): Add noinit and persistent attributes.
12126 (noinit_section): New variable.
12127 (presis_section): New variable.
12128 (TARGET_ASM_INIT_SECTIONS): Define.
12129 (msp430_init_sections): New function - initialises the noinit and
12130 persist section variables.
12131 (msp430_select_section): Add support for noinit and persist
12133 (msp430_section_type_flags): Likewise.
12134 * doc/extend.texi: Document the reent, critical, wakeup, noinit
12135 and persistent attributes.
12137 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
12138 Sebastian Pop <s.pop@samsung.com>
12140 * graphite-dependences.c (scop_get_transformed_schedule): Remove.
12141 (no_violations): Remove.
12142 (subtract_commutative_associative_deps): Remove.
12143 (compute_deps): Do not call subtract_commutative_associative_deps.
12144 (transform_is_safe): Remove.
12145 (graphite_legal_transform): Remove.
12146 * graphite-poly.h (graphite_legal_transform): Remove.
12148 2015-10-05 Aditya Kumar <hiraditya@msn.com>
12150 * graphite-sese-to-poly.c (build_loop_iteration_domains): Only loops
12151 which are in this region are passed so gcc_assert and remove redundant
12153 * sese.c (sese_build_liveouts): Pass only those bbs which are not
12155 (sese_bad_liveouts_use): Only BBs which are not in region are passed so
12156 gcc_assert on that and remove unnecessary computation.
12157 (sese_build_liveouts_use): Same.
12159 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
12161 * graphite-dependences.c (scop_get_reads): Renamed scop->context
12162 to scop->param_context.
12163 (scop_get_must_writes): Same.
12164 (scop_get_may_writes): Same.
12165 (scop_get_original_schedule): Same.
12166 (scop_get_transformed_schedule): Same.
12167 (subtract_commutative_associative_deps): Same.
12168 * graphite-isl-ast-to-gimple.c (add_parameters_to_ivs_params): Same.
12169 (generate_isl_context): Same.
12170 (generate_isl_schedule): Same.
12171 (scop_to_isl_ast): Same.
12172 (graphite_regenerate_ast_isl): Same.
12173 * graphite-optimize-isl.c (scop_get_domains): Same.
12174 (optimize_isl): Renamed scop->context to scop->param_context.
12175 * graphite-poly.c (new_poly_bb): Change the type of argument to
12177 (new_scop): Renamed scop->context to scop->param_context.
12179 (print_scop_context): Same.
12180 * graphite-poly.h (new_poly_dr): Change the type of argument from
12181 void* to data_reference_p.
12182 (struct poly_bb): Change the type of black_box to gimple_poly_bb_p.
12183 (new_poly_bb): Change the type of argument from void* to
12185 (pbb_set_black_box): Same.
12186 (struct scop): Rename context to param_context, ctx to isl_context.
12187 * graphite-scop-detection.c (scop_detection::build_scop_bbs_1):
12188 Move declarations closer to assignment.
12189 (find_params_in_bb): Same.
12190 (find_scop_parameters): Same.
12191 * graphite-sese-to-poly.c (unsigned ssa_name_version_typesize):
12192 Global to be used for statement IDs.
12193 (isl_id_for_pbb): Use ssa_name_version_typesize.
12194 (simple_copy_phi_p): Move declarations closer to assignment.
12195 (build_pbb_scattering_polyhedrons): Same.
12196 (build_scop_scattering): Same.
12197 (isl_id_for_ssa_name): Same.
12198 (extract_affine_name): Same.
12199 (extract_affine_int): Same.
12200 (extract_affine): Same.
12201 (set_scop_parameter_dim): Use renamed member.
12202 (build_loop_iteration_domains): Same.
12203 (add_param_constraints): Same.
12204 (build_scop_iteration_domain): Same.
12205 (pdr_add_data_dimensions): Same.
12206 (build_poly_dr): Same.
12207 (build_scop_drs): Move declarations closer to assignment.
12208 (analyze_drs_in_stmts): Same.
12209 (insert_out_of_ssa_copy): Same.
12210 (insert_out_of_ssa_copy_on_edge): Same.
12211 (propagate_expr_outside_region): Same.
12212 (rewrite_phi_out_of_ssa): Same.
12213 (rewrite_degenerate_phi): Same.
12214 (rewrite_reductions_out_of_ssa): Same.
12215 (rewrite_cross_bb_scalar_dependence): Same.
12216 (handle_scalar_deps_crossing_scop_limits): Same.
12217 (rewrite_cross_bb_scalar_deps): Same.
12218 * graphite.c (graphite_transform_loops): Use renamed member.
12220 2015-10-06 Uros Bizjak <ubizjak@gmail.com>
12223 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Use
12224 create_tmp_var_raw instead of create_tmp_var.
12226 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12229 * config/aarch64/aarch64-builtins.c (aarch64_atomic_assign_expand_fenv):
12230 Use create_tmp_var_raw instead of create_tmp_var.
12232 2015-10-06 Alexander Fomin <alexander.fomin@intel.com>
12235 * config/i386/sse.md (define_split vec_select/V8FI): Restrict
12236 split for upper-bank registers when target does not support
12238 (define_insn "vec_extract_lo_<mode><mask_name>"): Restrict
12239 split when target does not support AVX512VL.
12241 2015-10-06 David Edelsohn <dje.gcc@gmail.com>
12244 * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv):
12245 Adjust to use create_tmp_var_raw instead of create_tmp_var.
12247 2015-10-06 Nick Clifton <nickc@redhat.com>
12249 * config/rl78/rl78.c (rl78_rtx_costs): Improve cost estimates for
12252 2015-10-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
12254 * config.gcc (i[34567]86-*-linux* | ...): Add znver1.
12255 (case ${target}): Add znver1.
12256 * config/i386/cpuid.h(bit_CLZERO): Define.
12257 * config/i386/driver-i386.c: (host_detect_local_cpu): Let
12258 -march=native recognize znver1 processors.
12259 * config/i386/i386-c.c (ix86_target_macros_internal): Add
12260 znver1, clzero def_and_undef.
12261 * config/i386/i386.c (struct processor_costs znver1_cost): New.
12262 (m_znver1): New definition.
12263 (m_AMD_MULTIPLE): Includes m_znver1.
12264 (processor_target_table): Add znver1 entry.
12265 (ix86_target_string) : Add clzero entry.
12266 (static const char *const cpu_names): Add znver1 entry.
12267 (ix86_option_override_internal): Add znver1 instruction sets.
12268 (PTA_CLZERO) : New definition.
12269 (ix86_option_override_internal): Handle new clzerooption.
12270 (ix86_issue_rate): Add znver1.
12271 (ix86_adjust_cost): Add znver1.
12272 (ia32_multipass_dfa_lookahead): Add znver1.
12273 (has_dispatch): Add znver1.
12274 * config/i386/i386.h (TARGET_znver1): New definition.
12275 (TARGET_CLZERO): Define.
12276 (TARGET_CLZERO_P): Define.
12277 (struct ix86_size_cost): Add TARGET_ZNVER1.
12278 (enum processor_type): Add PROCESSOR_znver1.
12279 * config/i386/i386.md (define_attr "cpu"): Add znver1.
12280 (set_attr znver1_decode): New definitions for znver1.
12281 * config/i386/i386.opt (flag_dispatch_scheduler): Add znver1.
12283 * config/i386/mmx.md (set_attr znver1_decode): New definitions
12285 * config/i386/sse.md (set_attr znver1_decode): Likewise.
12286 * config/i386/x86-tune.def: Add znver1 tunings.
12287 * config/i386/znver1.md: Introduce znver1 cpu and include new md file.
12288 * doc/invoke.texi: Add details about znver1
12290 2015-10-06 Richard Biener <rguenther@suse.de>
12292 PR tree-optimization/67859
12293 * tree-ssa-pre.c (create_expression_by_pieces): Properly
12294 discard not inserted stmts.
12296 2015-10-06 Jonathan Wakely <jwakely@redhat.com>
12298 * doc/extend.texi (Template Instantiation): Reorder options and
12299 de-emphasize -frepo.
12300 * doc/invoke.texi (C++ Dialect Options): Use -fstrict-enums in
12301 example instead of -frepo.
12303 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
12306 * config/sparc/sparc.c (sparc_atomic_assign_expand_fenv): Adjust to
12307 use create_tmp_var_raw rather than create_tmp_var.
12309 2015-10-06 Richard Biener <rguenther@suse.de>
12311 * tree-vectorizer.h (vec_info): New base class for...
12312 (_loop_vec_info): ... this and ...
12313 (_bb_vec_info): ... this.
12314 (vect_is_simple_use, vect_is_simple_use_1, new_stmt_vec_info,
12315 vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
12316 vect_analyze_data_ref_accesses, vect_analyze_data_refs,
12317 vect_schedule_slp, vect_analyze_slp, vect_pattern_recog,
12318 vect_destroy_datarefs): Adjust interface to take a vec_info *
12319 rather than both a loop_vec_info and a bb_vec_info argument.
12320 * tree-vect-data-refs.c (vect_compute_data_refs_alignment,
12321 vect_verify_datarefs_alignment, vect_enhance_data_refs_alignment,
12322 vect_analyze_data_refs_alignment, vect_analyze_data_ref_accesses,
12323 vect_analyze_data_refs, vect_create_data_ref_ptr): Adjust
12325 * tree-vect-loop.c (new_loop_vec_info): Initialize base class.
12326 (destroy_loop_vec_info, vect_analyze_loop_2,
12327 vect_is_simple_reduction_1, get_initial_def_for_induction,
12328 vect_create_epilog_for_reduction, vectorizable_reduction,
12329 vectorizable_live_operation, vect_transform_loop): Adjust.
12330 * tree-vect-patterns.c (type_conversion_p,
12331 vect_recog_widen_mult_pattern, vect_recog_widen_shift_pattern,
12332 vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern,
12333 vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern,
12334 check_bool_pattern, vect_recog_bool_pattern,
12335 vect_mark_pattern_stmts, vect_pattern_recog): Likewise.
12336 * tree-vect-slp.c (vect_get_and_check_slp_defs,
12337 vect_build_slp_tree_1, vect_build_slp_tree, vect_analyze_slp_cost_1,
12338 vect_analyze_slp_instance, vect_analyze_slp, destroy_bb_vec_info,
12339 vect_slp_analyze_bb_1, vect_schedule_slp): Likewise.
12340 (new_bb_vec_info): Initialize base classs.
12341 * tree-vect-stmts.c (record_stmt_cost, process_use,
12342 vect_get_vec_def_for_operand, vect_finish_stmt_generation,
12343 vectorizable_mask_load_store, vectorizable_call,
12344 vectorizable_simd_clone_call, vectorizable_conversion,
12345 vectorizable_assignment, vectorizable_shift,
12346 vectorizable_operation, vectorizable_store,
12347 vectorizable_load, vect_is_simple_cond, vectorizable_condition,
12348 new_stmt_vec_info, vect_is_simple_use, vect_is_simple_use_1): Likewise.
12349 * tree-vectorizer.c (vect_destroy_datarefs): Likewise.
12351 2015-10-05 Kaz Kojima <kkojima@gcc.gnu.org>
12354 * config/sh/sh.c (sh_atomic_assign_expand_fenv): Adjust to use
12355 create_tmp_var_raw rather than create_tmp_var.
12357 2015-10-05 Marek Polacek <polacek@redhat.com>
12359 * tree-ssa-loop-im.c
12360 (move_computations_dom_walker::before_dom_children): Don't set
12361 SSA_NAME_ANTI_RANGE_P.
12362 * tree-ssa-phiopt.c (value_replacement): Likewise.
12364 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
12365 Sebastian Pop <s.pop@samsung.com>
12367 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Increase to 7.
12369 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
12370 Sebastian Pop <s.pop@samsung.com>
12372 * graphite-poly.c (new_gimple_poly_bb): ... here.
12373 (free_data_refs_aux): ... here.
12374 (free_gimple_poly_bb): ... here.
12375 (remove_gbbs_in_scop): ... here.
12376 (new_scop): Call new_sese.
12377 (free_scop): Call remove_gbbs_in_scop and free_sese.
12378 * graphite-poly.h (base_alias_pair): ... here.
12379 (new_gimple_poly_bb): Declare.
12380 (free_gimple_poly_bb): Declare.
12381 * graphite-scop-detection.c (parameter_index_in_region_1):
12382 (parameter_index_in_region): ... here.
12383 (scan_tree_for_params): ... here.
12384 (find_params_in_bb): ... here.
12385 (find_scop_parameters): ... here.
12386 (build_scops): Call find_scop_parameters.
12387 * graphite-sese-to-poly.c (free_gimple_poly_bb): Move...
12388 (free_scops): Move...
12389 (single_pred_cond_non_loop_exit): Move...
12390 (sese_dom_walker::before_dom_children): Move...
12391 (sese_dom_walker::after_dom_children): Move...
12392 (build_poly_scop): Move...
12393 * graphite-sese-to-poly.h (base_alias_pair): Move...
12394 * graphite.c (free_scops): ... here.
12396 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
12397 Sebastian Pop <s.pop@samsung.com>
12399 * graphite-scop-detection.c: Include domwalk.h and tree-cfg.h.
12400 (trivially_empty_bb_p): Move...
12401 (same_close_phi_node): Move...
12402 (new_gimple_poly_bb): Move...
12403 (compare_bb_depths): Move...
12404 (graphite_sort_dominated_info): Move...
12405 (remove_duplicate_close_phi): Move...
12406 (make_close_phi_nodes_unique): Move...
12407 (canonicalize_loop_closed_ssa): Move...
12408 (canonicalize_loop_closed_ssa_form): Move...
12409 (loop_ivs_can_be_represented): Move...
12410 (single_pred_cond_non_loop_exit): Move...
12411 (graphite_can_represent_init): Move...
12412 (graphite_can_represent_scev): Move...
12413 (stmt_has_simple_data_refs_p): Move...
12414 (stmt_has_side_effects): Move...
12415 (graphite_can_represent_stmt): Move...
12416 (scop_detection): ... here.
12417 (sese_dom_walker): ... and here.
12418 (build_scops): Call all moved functions.
12419 * graphite-sese-to-poly.c (try_generate_gimple_bb): Move...
12420 (all_non_dominated_preds_marked_p): Move...
12421 (build_scop_bbs_1): Move...
12422 (build_scop_bbs): Move...
12423 (set_scop_parameter_dim): Move...
12424 (nb_pbbs_in_loops): Move...
12425 (build_poly_scop): Do not call all the moved functions.
12427 2015-10-05 Martin Jambor <mjambor@suse.cz>
12428 Jan Hubicka <hubicka@ucw.cz>
12430 * ipa-cp.c (ipcp_alignment_lattice): New type.
12431 (ipcp_param_lattices): Use the above to represent alignment.
12432 (ipcp_alignment_lattice::print): New function.
12433 (print_all_lattices): Use it to print alignment information.
12434 (ipcp_alignment_lattice::top_p): New function.
12435 (ipcp_alignment_lattice::bottom_p): Likewise.
12436 (ipcp_alignment_lattice::set_to_bottom): Likewise.
12437 (ipcp_alignment_lattice::meet_with_1): Likewise.
12438 (ipcp_alignment_lattice::meet_with): Two new overloaded functions.
12439 (set_all_contains_variable): Use set_to_bottom of alignment lattice.
12440 (initialize_node_lattices): Likewise.
12441 (propagate_alignment_accross_jump_function): Work with the new class
12442 for alignment lattices.
12443 (propagate_constants_accross_call): Pass only the alignment lattice to
12444 propagate_alignment_accross_jump_function.
12445 (ipcp_store_alignment_results): Work with the new class for alignment
12448 2015-10-05 Marek Polacek <polacek@redhat.com>
12450 PR tree-optimization/67821
12451 * tree-ssanames.c (duplicate_ssa_name_range_info): Remove an assert.
12453 2015-10-05 Thomas Schwinge <thomas@codesourcery.com>
12456 * config/i386/intelmic-mkoffload.c (mkoffload_atexit): Rename
12458 (mkoffload_cleanup): ... this. Adjust all users.
12459 (maybe_unlink): Look at save_temps and verbose flags instead of
12461 (main): Parse "-save-temps" flag.
12462 (generate_target_descr_file, generate_target_offloadend_file)
12463 (generate_host_descr_file, prepare_target_image): Pass it on.
12464 * config/nvptx/mkoffload.c (tool_cleanup): Implement.
12465 (mkoffload_cleanup): New function.
12466 (maybe_unlink): Look at save_temps and verbose flags instead of
12468 (main): Instead of calling utils_cleanup, register atexit handler
12469 for mkoffload_cleanup.
12470 (main): Parse "-save-temps" flag.
12471 (compile_native, main): Pass it on.
12472 * lto-wrapper.c (compile_offload_image): Likewise.
12474 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12476 * gimple.h (gimple_op_ptr): Require a non const gimple *.
12477 (gimple_assign_lhs_ptr): Likewise.
12478 (gimple_assign_rhs1_ptr): Likewise.
12479 (gimple_assign_rhs2_ptr): Likewise.
12480 (gimple_assign_rhs3_ptr): Likewise.
12481 (gimple_call_lhs_ptr): Likewise.
12482 (gimple_call_fn_ptr): Likewise.
12483 (gimple_call_chain_ptr): Likewise.
12484 (gimple_call_arg_ptr): Likewise.
12485 (gimple_cond_lhs_ptr): Likewise.
12486 (gimple_cond_rhs_ptr): Likewise.
12487 (gimple_switch_index_ptr): Likewise.
12488 (gimple_return_retval_ptr): Likewise.
12490 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12492 * gimple.h (gimple_asm_input_op_ptr): Remove.
12493 (gimple_asm_output_op_ptr): Likewise.
12495 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12497 * gimple.h (gimple_location_ptr): Remove.
12498 * tree-vrp.c (check_all_array_refs): Adjust.
12500 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12502 * tree-ssa-operands.c (build_uses): store tree * instead of
12504 (finalize_ssa_uses): Adjust.
12505 (append_use): Likewise.
12506 (verify_ssa_operands): Likewise.
12508 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
12510 * real.h (build_real_truncate): Declare.
12511 * tree.c (build_real_truncate): New function.
12512 (strip_float_extensions): Use it.
12513 * builtins.c (fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_cbrt)
12514 (fold_builtin_hypot, fold_builtin_pow): Likewise.
12515 * match.pd: Likewise.
12517 2015-10-05 James Greenhalgh <james.greenhalgh@arm.com>
12518 Jiong Wang <jiong.wang@arm.com>
12520 * config/aarch64/aarch64.md (tlsie_tiny_sidi): Replace "<w>" with "w".
12522 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
12524 * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Delete.
12525 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p)
12526 (aarch64_print_operand, aarch64_float_const_representable_p)
12527 (aarch64_output_simd_mov_immediate): Use CONST_DOUBLE_REAL_VALUE
12528 instead of REAL_VALUE_FROM_CONST_DOUBLE.
12529 * config/arc/arc.c (arc_print_operand): Likewise.
12530 * config/arm/arm.c (arm_const_double_rtx, vfp3_const_double_index)
12531 (neon_valid_immediate, arm_print_operand, arm_emit_fp16_const)
12532 (vfp3_const_double_for_fract_bits, vfp3_const_double_for_bits):
12534 * config/arm/arm.md (*arm32_movhf, consttable_4, consttable_8)
12535 (consttable_16): Likewise.
12536 * config/arm/vfp.md (*movhf_vfp_neon, *movhf_vfp): Likewise.
12537 * config/avr/avr.c (avr_print_operand): Likewise.
12538 * config/bfin/bfin.md: Likewise (in a define_split).
12539 * config/c6x/c6x.md: Likewise (in a define_split).
12540 * config/cr16/cr16.c (cr16_const_double_ok): Likewise.
12541 (cr16_print_operand): Likewise.
12542 * config/cris/cris.c (cris_print_operand): Likewise.
12543 * config/epiphany/epiphany.c (epiphany_print_operand): Likewise.
12544 * config/fr30/fr30.c (fr30_print_operand): Likewise.
12545 (fr30_const_double_is_zero): Likewise.
12546 * config/frv/frv.c (frv_print_operand, output_move_single): Likewise.
12547 * config/frv/frv.md: Likewise (in a define_split).
12548 * config/frv/predicates.md (int_2word_operand): Likewise.
12549 * config/h8300/h8300.c (h8300_print_operand): Likewise.
12550 * config/i386/i386.c (standard_80387_constant_p): Likewise.
12551 (ix86_print_operand, ix86_split_to_parts): Likewise.
12552 * config/i386/i386.md: Likewise (in a define_split).
12553 * config/ia64/ia64.c (ia64_split_tmode, ia64_print_operand): Likewise.
12554 * config/iq2000/iq2000.md (movsf_lo_sum, movsf_high): Likewise.
12555 * config/m32r/m32r.c (easy_df_const, m32r_print_operand): Likewise.
12556 * config/m68k/m68k.c (handle_move_double, standard_68881_constant_p)
12557 (print_operand): Likewise.
12558 * config/m68k/m68k.md (movsf_cf_hard, movdf_cf_hard): Likewise.
12559 * config/mep/mep.md: Likewise (in define_split).
12560 * config/microblaze/microblaze.c (microblaze_const_double_ok)
12561 (print_operand): Likewise.
12562 * config/mips/mips.md (consttable_float): Likewise.
12563 * config/mmix/mmix.c (mmix_intval): Likewise.
12564 * config/mn10300/mn10300.c (mn10300_print_operand): Likewise.
12565 * config/nvptx/nvptx.c (nvptx_print_operand): Likewise.
12566 * config/pa/pa.c (pa_singlemove_string): Likewise.
12567 * config/pdp11/pdp11.c (pdp11_expand_operands): Likewise.
12568 (pdp11_asm_print_operand, legitimate_const_double_p): Likewise.
12569 * config/rs6000/rs6000.c (num_insns_constant, rs6000_emit_cmove)
12570 (output_toc): Likewise.
12571 * config/rs6000/rs6000.md: Likewise (in define_splits).
12572 * config/rx/rx.c (rx_print_operand): Likewise.
12573 * config/s390/s390.c (s390_output_pool_entry): Likewise.
12574 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
12575 * config/sh/sh.md (consttable_sf, consttable_df): Likewise
12576 (and also in define_splits).
12577 * config/sparc/sparc.c (fp_sethi_p, fp_mov_p): Likewise.
12578 (fp_high_losum_p): Likewise.
12579 * config/sparc/sparc.md (*movsf_insn, *movsf_lo_sum): Likewise.
12580 (*movsf_high): Likewise.
12581 * config/spu/spu.c (const_double_to_hwint): Likewise.
12582 * config/v850/v850.c (const_double_split): Likewise.
12583 * config/vax/vax.c (vax_float_literal): Likewise.
12584 * config/visium/visium.c (visium_expand_copysign): Likewise.
12585 * config/visium/visium.md: Likewise (in define_split).
12586 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
12587 * config/xtensa/xtensa.c (print_operand): Likewise.
12588 (xtensa_output_literal): Likewise.
12589 * cprop.c (implicit_set_cond_p): Likewise.
12590 * dwarf2out.c (insert_float): Likewise.
12591 * expmed.c (expand_mult, make_tree): Likewise.
12592 * expr.c (compress_float_constant): Likewise.
12593 * rtlanal.c (split_double): Likewise.
12594 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
12595 (simplify_const_unary_operation, simplify_binary_operation_1)
12596 (simplify_const_binary_operation): Likewise.
12597 (simplify_const_relational_operation): Likewise.
12598 * varasm.c (output_constant_pool_2): Likewise.
12600 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
12602 * real.h (CONST_DOUBLE_ATOF): Use const_double_from_real_value
12603 instead of CONST_DOUBLE_FROM_REAL_VALUE.
12604 (CONST_DOUBLE_FROM_REAL_VALUE): Delete.
12605 * config/c6x/c6x.md (divsf3, divdf3): Use const_double_from_real_value
12606 instead of CONST_DOUBLE_FROM_REAL_VALUE.
12607 * config/epiphany/epiphany.md (fixuns_truncsfsi2): Likewise.
12608 * config/i386/i386.c (standard_80387_constant_rtx): Likewise.
12609 (ix86_expand_builtin, ix86_emit_i387_log1p, ix86_emit_i387_round)
12610 (ix86_emit_swsqrtsf): Likewise.
12611 * config/ia64/ia64.c (ia64_expand_builtin): Likewise.
12612 * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
12613 (fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
12614 * config/pa/pa.c (pa_expand_builtin): Likewise.
12615 * config/rs6000/rs6000.c (rs6000_load_constant_and_splat): Likewise.
12616 (rs6000_scale_v2df): Likewise.
12617 * config/rs6000/rs6000.md (*cmptf_internal2): Likewise.
12618 * config/s390/s390.md (fixuns_truncdddi2, fixuns_trunctddi2)
12619 (fixuns_trunc<BFP:mode><GPR:mode>2): Likewise.
12620 * config/s390/vx-builtins.md (vec_ctd_s64, vec_ctd_u64, vec_ctsl)
12621 (vec_ctul): Likewise.
12622 * config/sparc/sparc.c (sparc_emit_fixunsdi): Likewise.
12623 * config/spu/spu.c (hwint_to_const_double, spu_float_const): Likewise.
12624 * config/spu/spu.md (floatunsdisf2, floatunstisf2): Likewise.
12625 * cse.c (fold_rtx): Likewise.
12626 * emit-rtl.c (immed_double_const): Likewise (in comments).
12627 (init_emit_once): Likewise.
12628 * expr.c (compress_float_constant, expand_expr_real_1)
12629 (const_vector_from_tree): Likewise.
12630 * optabs.c (expand_float, expand_fix): Likewise.
12631 * reg-stack.c (reg_to_stack): Likewise.
12632 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
12633 (simplify_const_unary_operation, simplify_binary_operation_1)
12634 (simplify_const_binary_operation, simplify_relational_operation)
12635 (simplify_immed_subreg): Likewise.
12637 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
12639 * doc/tm.texi.in (REAL_ARITHMETIC): Delete.
12640 * doc/tm.texi: Regenerate.
12641 * real.h (REAL_ARITHMETIC): Delete.
12642 * config/i386/i386.c (ix86_expand_lround, ix86_expand_round)
12643 (ix86_expand_round_sse4): Use real_arithmetic instead of
12645 * config/i386/sse.md (round<mode>2): Likewise.
12646 * rtl.h (rtx_to_tree_code): Likewise (in comment).
12647 * explow.c (rtx_to_tree_code): Likewise (in comment).
12648 * match.pd: Likewise.
12649 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
12650 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
12651 (expand_pow_as_sqrts): Likewise.
12652 * tree-pretty-print.c (dump_generic_node): Remove code that
12653 was conditional on REAL_ARITHMETIC being undefined.
12655 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
12657 * doc/tm.texi.in (REAL_VALUES_LESS): Delete.
12658 * doc/tm.texi: Regenerate.
12659 * real.h (real_less): Declare.
12660 (REAL_VALUES_LESS): Delete.
12661 * real.c (real_less): New function.
12662 (real_compare): Use it.
12663 * config/m68k/m68k.c (floating_exact_log2): Use real_less instead
12664 of REAL_VALUES_LESS.
12665 * config/microblaze/microblaze.c (microblaze_const_double_ok):
12667 * fold-const.c (fold_convert_const_int_from_real): Likewise.
12668 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
12669 (simplify_const_relational_operation): Likewise.
12670 * tree-call-cdce.c (check_pow): Likewise.
12671 (gen_conditions_for_pow_cst_base): Likewise.
12673 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
12675 * real.h (REAL_VALUES_IDENTICAL): Delete.
12676 * config/m68k/m68k.c (standard_68881_constant_p): Use real_identical
12677 instead of REAL_VALUES_IDENTICAL.
12678 * fold-const.c (operand_equal_p): Likewise.
12679 * ipa-icf.c (sem_variable::equals): Likewise.
12680 * tree-complex.c (some_nonzerop): Likewise.
12681 (expand_complex_multiplication): Likewise.
12682 * tree.c (simple_cst_equal): Likewise.
12683 * varasm.c (compare_constant): Likewise.
12685 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
12687 * real.h (real_equal): Declare.
12688 (REAL_VALUES_EQUAL): Delete.
12689 * real.c (real_equal): New function.
12690 (real_compare): Use it.
12691 * doc/tm.texi.in (REAL_VALUES_EQUAL): Delete.
12692 * doc/tm.texi: Regenerate.
12693 * builtins.c (fold_builtin_pow, fold_builtin_load_exponent): Use
12694 real_equal instead of REAL_VALUES_EQUAL.
12695 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p): Likewise.
12696 * config/arm/arm.c (arm_const_double_rtx, neon_valid_immediate)
12697 (fp_const_from_val): Likewise.
12698 * config/fr30/fr30.c (fr30_const_double_is_zero): Likewise.
12699 * config/m68k/m68k.c (standard_68881_constant_p): Likewise.
12700 (floating_exact_log2): Likewise.
12701 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
12702 * config/vax/vax.c (vax_float_literal): Likewise.
12703 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
12704 * cprop.c (implicit_set_cond_p): Likewise.
12705 * expmed.c (expand_mult): Likewise.
12706 * fold-const.c (const_binop): Likewise.
12707 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
12708 (simplify_const_binary_operation): Likewise.
12709 (simplify_const_relational_operation): Likewise.
12710 * tree-call-cdce.c (check_pow): Likewise.
12711 (gen_conditions_for_pow_cst_base): Likewise.
12712 * tree-inline.c (estimate_num_insns): Likewise.
12713 * tree-ssa-dom.c (record_equality): Likewise.
12714 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
12715 (gimple_expand_builtin_pow): Likewise.
12716 (pass_optimize_widening_mul::execute): Likewise.
12717 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
12718 * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
12719 * tree.c (real_zerop, real_onep, real_minus_onep): Likewise.
12721 2015-10-05 Richard Biener <rguenther@suse.de>
12724 * ipa-inline-analysis.c (estimate_function_body_sizes): Only
12725 consider loop header PHI defs as IVs.
12727 2015-10-05 Richard Biener <rguenther@suse.de>
12729 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Move
12731 (create_expression_by_pieces): ... here and build GIMPLE
12732 calls directly. Use gimple_build API and avoid force_gimple_operand.
12733 (insert_into_preds_of_block): Simplify.
12734 (do_regular_insertion): Add comment.
12736 2015-10-04 Jason Merrill <jason@redhat.com>
12738 * builtins.def (BUILT_IN_ABORT): Add transaction_pure attribute.
12740 2015-10-04 Uros Bizjak <ubizjak@gmail.com>
12742 * config/i386/i386.c (ix86_nsaved_regs): Use GENERAL_REGNO_P to
12743 check for general register.
12744 (ix86_emit_save_regs): Ditto.
12745 (ix86_emit_save_regs_using_mov): Ditto.
12746 (ix86_emit_restore_regs_using_pop): Ditto.
12747 (ix86_emit_restore_regs_using_mov): Ditto.
12749 2015-10-03 Marek Polacek <polacek@redhat.com>
12751 * Makefile.in (insn-latencytab.o): Remove -Wno-duplicated-cond.
12752 (insn-dfatab.o): Likewise.
12754 2015-10-03 Max Filippov <jcmvbkbc@gmail.com>
12756 * config.gcc (xtensa*-*-uclinux*): New configuration.
12757 * config/xtensa/uclinux.h: New file.
12758 * config/xtensa/uclinux.opt: New file.
12760 2015-10-03 Jonathan Wakely <jwakely@redhat.com>
12762 * doc/cpp.texi (Standard Predefined Macros): Document value of
12763 __cplusplus for C++14.
12765 2015-10-02 Bernd Schmidt <bernds@codesourcery.com>
12767 * gcc.c (process_command): Use spec_machine rather than
12768 spec_host_machine to build tooldir_prefix2.
12770 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
12771 Bernd Schmidt <bernds@codesourcery.com>
12773 * config/nvptx/mkoffload.c (Kind, Vis): Remove enums.
12774 (Token, Stmt): Remove structs.
12775 (decls, vars, fns): Remove variables.
12776 (alloc_comment, append_stmt, is_keyword): Remove macros.
12777 (tokenize, write_token, write_tokens, alloc_stmt, rev_stmts)
12778 (write_stmt, write_stmts, parse_insn, parse_list_nosemi)
12779 (parse_init, parse_file): Remove functions.
12780 (read_file): Accept a pointer to a length and store into it.
12781 (process): Don't try to parse the input file, just write it out as
12782 a string, but looking for maps. Also write out the length.
12783 (main): Don't use "-S" to compile PTX code.
12785 2015-10-02 Jeff Law <law@redhat.com>
12787 * tree-ssa-dom.c (optimize_stmt): Note when loop structures need
12790 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
12793 * config/nvptx/mkoffload.c (main): Scan the argument vector for
12794 -fopenmp, and skip generating an offloading image if specified.
12796 2015-10-02 Uros Bizjak <ubizjak@gmail.com>
12798 * system.h (ROUND_UP): New macro definition.
12799 (ROUND_DOWN): Ditto.
12800 * ggc-page.c (ROUND_UP): Remove local macro definition.
12801 (PAGE_ALIGN): Implement using ROUND_UP macro.
12803 * config/i386/i386.h (PUSH_ROUNDING): Implement using ROUND_UP macro.
12804 * config/i386/i386.c (function_arg_advance_64): Use ROUND_UP macro
12806 (ix86_compute_frame_layout): Ditto.
12807 (ix86_expand_prologue): Ditto.
12808 (ix86_adjust_stack_and_probe): Use ROUND_DOWN macro
12809 to round down values.
12810 (expand_set_or_movmem_via_rep): Ditto.
12812 2015-10-02 Marek Polacek <polacek@redhat.com>
12814 * genemit.c (gen_exp): Remove -Wduplicated-cond hack.
12816 2015-10-02 Aditya Kumar <aditya.k7@samsung.com>
12818 * graphite-scop-detection.c (loop_ivs_can_be_represented): New.
12819 (loop_body_is_valid_scop): Call loop_ivs_can_be_represented.
12820 * graphite-sese-to-poly.c (new_gimple_bb): Renamed new_gimple_poly_bb.
12821 (free_gimple_bb): Renamed free_gimple_poly_bb.
12822 (try_generate_gimple_bb): Hoist loop invariant code.
12823 (analyze_drs_in_stmts): Same.
12824 (build_scop_drs): Call renamed functions.
12825 (new_pbb_from_pbb): Same.
12826 (scop_ivs_can_be_represented): Delete as functionality now moved to
12827 graphite-scop-detection.c
12828 (build_poly_scop): Remove call to scop_ivs_can_be_represented.
12830 2015-10-02 Aditya Kumar <hiraditya@msn.com>
12832 * graphite-scop-detection.c (stmt_has_side_effects): New function
12833 outlined from stmt_simple_for_scop_p.
12834 (graphite_can_represent_stmt): Same.
12835 (stmt_simple_for_scop_p): Moved code out of this function for better
12838 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
12840 * config/i386/i386.c (processor_features): Add F_AVX512VBMI,
12842 (isa_names_table): Handle F_AVX512VBMI and F_AVX512IFMA.
12844 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12846 * config/aarch64/aarch64-elf.h (TARGET_ASM_NAMED_SECTION): Delete.
12848 2015-10-02 Vladimir Makarov <vmakarov@redhat.com>
12850 PR rtl-optimization/67756
12851 * lra-constraints.c (match_reload): Add a new parameter. Use it
12852 for creating a pseudo with the same value.
12853 (curr_insn_transform): Pass a new argument to match_reload.
12855 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
12857 * config/i386/i386.c (expand_vec_perm_even_odd_trunc): New.
12858 (expand_vec_perm_even_odd_1): Handle V64QImode.
12859 (ix86_expand_vec_perm_const_1): Try expansion with
12860 expand_vec_perm_even_odd_trunc as well.
12861 * config/i386/sse.md (VI124_AVX512F): Rename to ...
12862 (define_mode_iterator VI124_AVX2_24_AVX512F_1_AVX512BW): This. Extend
12864 (define_mode_iterator VI248_AVX2_8_AVX512F): Rename to ...
12865 (define_mode_iterator VI248_AVX2_8_AVX512F_24_AVX512BW): This. Extend
12866 to V32HI and V16SI.
12867 (define_insn "avx512bw_<code>v32hiv32qi2"): Unhide pattern name.
12868 (define_expand "vec_pack_trunc_<mode>"): Update iterator name.
12869 (define_expand "vec_unpacks_lo_<mode>"): Ditto.
12870 (define_expand "vec_unpacks_hi_<mode>"): Ditto.
12871 (define_expand "vec_unpacku_lo_<mode>"): Ditto.
12872 (define_expand "vec_unpacku_hi_<mode>"): Ditto.
12874 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
12876 * doc/invoke.texi: Mention -mavx512vl, -mavx512bw, -mavx512dq,
12877 -mavx521vbmi, -mavx512ifma. Add missing opindex-es.
12879 2015-10-02 Jason Merrill <jason@redhat.com>
12882 * trans-mem.c (volatile_lvalue_p): Rename from volatile_var_p.
12883 (diagnose_tm_1_op): Also diagnose volatile accesses in
12884 transaction_safe function.
12886 2015-10-02 Jonathan Wakely <jwakely@redhat.com>
12888 * system.h (malloc.h): Don't include obsolete header.
12890 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12892 * config/aarch64/aarch64.c (aarch64_elf_asm_named_section): Delete.
12893 (TLS_SECTION_ASM_FLAG): Delete.
12895 2015-10-02 Marek Polacek <polacek@redhat.com>
12898 * doc/invoke.texi: Document -Wduplicated-cond.
12899 * Makefile.in (insn-latencytab.o): Use -Wno-duplicated-cond.
12900 (insn-dfatab.o): Likewise.
12901 * genemit.c (gen_exp): Rewrite condition to avoid -Wduplicated-cond
12904 2015-10-02 Oleg Endo <olegendo@gcc.gnu.org>
12906 * config/sh/sh.md: Add new unnamed split pattern to handle movt-movt
12909 2015-10-02 Renlin Li <renlin.li@arm.com>
12911 * config/aarch64/aarch64.md (csneg3_insn_uxtw): New pattern.
12913 2015-10-02 Renlin Li <renlin.li@arm.com>
12916 * config/aarch64/aarch64.md (cmovdi_insn_uxtw): New pattern.
12918 2015-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12920 PR rtl-optimization/67786
12921 PR rtl-optimization/67787
12922 * ifcvt.c (bb_valid_for_noce_process_p): Reject basic block if
12923 it modifies a reg used in the condition calculation.
12925 2015-10-02 James Greenhalgh <james.greenhalgh@arm.com>
12927 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Add
12928 alternatives for reads from memory and moves from general-purpose
12930 (*aarch64_combinez_be<mode>): Likewise.
12932 2015-10-02 Kai Tietz <ktietz70@googlemail.com>
12935 * config/i386/winnt.c (ix86_handle_selectany_attribute): Handle
12936 selectany within this function without need to keep attribute.
12937 (i386_pe_encode_section_info): Remove selectany-code.
12939 2015-10-02 Richard Biener <rguenther@suse.de>
12941 * tree-ssa-sccvn.c (has_VN_INFO): New function.
12942 (free_scc_vn): Use it.
12943 (visit_use): Remove dead code and refactor to use gassign
12944 and use less indentation.
12946 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
12950 * config/rs6000/rs6000.c (TARGET_CANNOT_COPY_INSN_P): New.
12951 (rs6000_cannot_copy_insn_p): New function.
12952 * config/rs6000/rs6000.md (cannot_copy): New attribute.
12953 (load_toc_v4_PIC_1_normal): Set cannot_copy.
12954 (load_toc_v4_PIC_1_476): Ditto.
12956 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
12958 * graphite-scop-detection.c (struct sese_l): New conversion constructor
12959 so that this type can be pushed into a vec.
12960 (class scop_builder): use sese_l to collect scops.
12961 (get_scops): New getter function.
12962 (remove_intersecting_scops): Use sese_l instead of scops_p.
12963 (intersects): Same.
12966 (remove_subscops): Same.
12967 (build_scops): Add scops to vec<scops_p> once all the scops have been
12970 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
12972 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
12973 Renamed type from gimple_bb_p to gimple_poly_bb_p.
12974 (translate_isl_ast_node_user): Same.
12975 * graphite-poly.c (new_poly_bb): Same.
12976 * graphite-poly.h (gbb_from_bb): Same.
12978 * graphite-sese-to-poly.c (new_gimple_bb):
12979 gimple_bb_p -> gimple_poly_bb_p
12980 (build_scop_scattering): Same.
12981 (find_params_in_bb): Same.
12982 (add_conditions_to_domain): Same.
12983 (sese_dom_walker::before_dom_children): Same.
12984 (analyze_drs_in_stmts): Same.
12985 (new_pbb_from_pbb): Same.
12986 (free_data_refs_aux): New pointer to type base_alias_pair.
12987 * graphite-sese-to-poly.h: Same.
12988 * sese.c (if_region_set_false_region): Fixed Indentation.
12989 (move_sese_in_condition): Same.
12991 2015-10-01 Sebastian Pop <s.pop@samsung.com>
12992 Aditya Kumar <aditya.k7@samsung.com>
12994 PR tree-optimization/66980
12995 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Return false
12996 when data reference analysis has failed.
12998 2015-10-01 Sebastian Pop <s.pop@samsung.com>
12999 Aditya Kumar <aditya.k7@samsung.com>
13001 PR tree-optimization/67754
13002 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Call
13003 scev analysis on the same loop nest as analyze_drs_in_stmts.
13004 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): Moved and
13006 (try_generate_gimple_bb): Call outermost_loop_in_sese.
13007 (analyze_drs_in_stmts): Same.
13008 * sese.c (outermost_loop_in_sese): ...here.
13010 2015-10-01 Sebastian Pop <s.pop@samsung.com>
13011 Aditya Kumar <aditya.k7@samsung.com>
13013 PR tree-optimization/67754
13014 * graphite-scop-detection.c (loop_body_is_valid_scop): Add missing
13015 recursion on the inner loops.
13017 2015-10-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13019 * cfganal.c, compare-elim.c, coverage.c, cprop.c, df-scan.c,
13020 function.c, read-rtl.c, statistics.c, trans-mem.c, tree-if-conv.c,
13021 tree-into-ssa.c, tree-loop-distribution.c, tree-ssa-coalesce.c,
13022 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-strlen.c,
13023 tree-ssa-tail-merge.c, tree-vrp.c, var-tracking.c: Remove
13025 2015-10-01 Marek Polacek <polacek@redhat.com>
13028 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Adjust to use
13029 create_tmp_var_raw rather than create_tmp_var.
13031 2015-10-01 Marek Polacek <polacek@redhat.com>
13033 PR tree-optimization/67769
13034 * tree-ssa-phiopt.c (conditional_replacement): Call
13035 reset_flow_sensitive_info_in_bb.
13036 (minmax_replacement): Likewise.
13037 (abs_replacement): Likewise.
13039 2015-10-01 Nathan Sidwell <nathan@codesourcery.com>
13041 * builtins.c: Don't include gomp-constants.h.
13042 (fold_builtin_1): Don't fold acc_on_device here.
13043 * gimple-fold.c: Include gomp-constants.h.
13044 (gimple_fold_builtin_acc_on_device): New.
13045 (gimple_fold_builtin): Call it.
13047 2015-10-01 H.J. Lu <hongjiu.lu@intel.com>
13049 * config/i386/x86-tune.def (X86_TUNE_USE_BT): Enable for Lakemont.
13050 (X86_TUNE_ZERO_EXTEND_WITH_AND): Disable for Lakemont.
13052 2015-10-01 James Greenhalgh <james.greenhalgh@arm.com>
13054 * config/arm/aarch-common-protos.h
13055 (aarch_accumulator_forwarding): New.
13056 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
13057 * config/arm/aarch-common.c (aarch_accumulator_forwarding): New.
13058 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
13059 * config/arm/cortex-a53.md: Rewrite.
13061 2015-10-01 Richard Biener <rguenther@suse.de>
13063 * gimple-match.h (mprts_hook): Declare.
13064 * gimple-match.head.c (mprts_hook): Define.
13065 (maybe_push_res_to_seq): Use new hook.
13066 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
13067 * tree-ssa-sccvn.h (vn_ssa_aux::expr): Change to a gimple_seq.
13068 (vn_ssa_aux::has_constants): Remove.
13069 * tree-ssa-sccvn.c: Include gimple-match.h.
13070 (VN_INFO_GET): Assert we don't re-use SSA names.
13071 (vn_get_expr_for): Remove.
13072 (expr_has_constants): Likewise.
13073 (stmt_has_constants): Likewise.
13074 (simplify_binary_expression): Likewise.
13075 (simplify_unary_expression): Likewise.
13076 (vn_lookup_simplify_result): New hook.
13077 (visit_copy): Adjust.
13078 (visit_reference_op_call): Likewise.
13079 (visit_phi): Likewise.
13080 (visit_use): Likewise.
13081 (process_scc): Likewise.
13082 (init_scc_vn): Likewise.
13083 (visit_reference_op_load): Likewise. Use match-and-simplify and
13084 a gimple seq for inserted expressions.
13085 (try_to_simplify): Remove GENERIC stmt combining code.
13086 (sccvn_dom_walker::before_dom_children): Use match-and-simplify.
13087 * tree-ssa-pre.c (eliminate_insert): Adjust.
13088 (eliminate_dom_walker::before_dom_children): Likewise.
13090 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
13092 * doc/invoke.texi (Optimization Options): Add
13093 -freorder-blocks-algorithm=.
13094 (Optimize Options) <-O>: Add -freorder-blocks.
13095 <-O2>: Remove -freorder-blocks. Add -freorder-blocks-algorithm=stc.
13096 <-Os>: Add -freorder-blocks-algorithm=stc as not enabled.
13097 <-freorder-blocks>: Also enabled at levels -O and -Os.
13098 <-freorder-blocks-algorithm=>: Document new option.
13100 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
13102 * bb-reorder.c (reorder_basic_blocks): Use the algorithm selected
13103 with flag_reorder_blocks_algorithm.
13104 * common.opt (freorder-blocks-algorithm=): New flag.
13105 (reorder_blocks_algorithm): New enum.
13106 * flag-types.h (reorder_blocks_algorithm): New enum.
13107 * opts.c (default_options_table): Use -freorder-blocks at -O1 and up,
13108 and -freorder-blocks-algorithm=stc at -O2 and up (not at -Os).
13110 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
13112 * bb-reorder.c: Add intro comment.
13113 (reorder_basic_blocks_software_trace_cache): Print a header to
13115 (edge_order): New function.
13116 (reorder_basic_blocks_simple): New function.
13117 (reorder_basic_blocks): Choose between the STC and the simple
13118 algorithms (always choose the former).
13120 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
13122 * bb-reorder.c (reorder_basic_blocks_software_trace_cache): New
13123 function, factored out from ...
13124 (reorder_basic_blocks): ... here.
13126 2015-10-01 Tom de Vries <tom@codesourcery.com>
13128 * tree-cfg.c (dump_function_to_file): Dump function attributes using
13129 __attribute__(()) string. Move dumping of function attributes to before
13132 2015-10-01 Lynn Boger <laboger@linux.vnet.ibm.com>
13135 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Define.
13136 * configure.ac: Define HAVE_GOLD_ALTERNATE_SPLIT_STACK on Power
13137 based on gold linker version.
13138 * gcc.c: Add -fuse-ld=gold to STACK_SPLIT_SPEC if
13139 HAVE_GOLD_ALTERNATE_SPLIT_STACK defined.
13140 * configure, config.in: Regenerate.
13142 2015-10-01 Alan Modra <amodra@gmail.com>
13144 * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't set
13145 r2_setup_needed when TARGET_SINGLE_PIC_BASE.
13146 (rs6000_output_mi_thunk): Likewise.
13148 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
13150 * config/nvptx/mkoffload.c (process): Change offload data format.
13152 2015-09-30 Jeff Law <law@redhat.com>
13154 * tree-ssa-dom.c (optimize_stmt): Collapse control flow statements
13155 with constant conditions.
13156 * tree-ssa-threadupdate.c (remove_jump_threads_starting_at): New.
13157 (remove_ctrl_stmt_and_useless_edges): No longer static.
13158 * tree-ssa-threadupdate.h (remove_jump_threads_starting_at): Prototype.
13159 (remove_ctrl_stmt_and_useless_edges): Likewise.
13161 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
13162 Cesar Philippidis <cesar@codesourcery.com>
13164 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): New.
13165 (TARGET_GOACC_VALIDATE_DIMS): Override.
13166 * target.def (TARGET_GOACC): New target hook prefix.
13167 (validate_dims): New hook.
13168 * targhooks.h (default_goacc_validate_dims): New.
13169 * omp-low.c (oacc_validate_dims): New.
13170 (execute_oacc_device_lower): New.
13171 (default_goacc_validate_dims): New.
13172 (pass_data_oacc_device_lower): New.
13173 (pass_oacc_device_lower): New pass.
13174 (make_pass_oacc_device_lower): New.
13175 * tree-pass.h (make_pass_oacc_device_lower): Declare.
13176 * passes.def (pass_oacc_device_lower): Add it.
13177 * doc/tm.texi: Rebuilt.
13178 * doc/tm.texi.in (TARGET_GOACC_VALIDATE_DIMS): Add hook.
13179 * doc/invoke.texi (oaccdevlow): Document tree dump flag.
13181 2015-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
13183 PR rtl-optimization/67037
13184 * lra-constraints.c (process_addr_reg): Use copy_rtx when necessary.
13186 2015-09-30 Bernd Schmidt <bernds@redhat.com>
13188 * gimple-ssa.h (gimple_df): Add free_ssanames_queue field.
13189 * passes.c: Include tree-ssanames.h.
13190 (execute_function_todo): Flush the pending free SSA_NAMEs after
13191 eliminating unreachable basic blocks.
13192 * tree-ssanames.c (FREE_SSANAMES_QUEUE): new.
13193 (init_ssanames): Initialize FREE_SSANAMES_QUEUE.
13194 (fini_ssanames): Finalize FREE_SSANAMES_QUEUE.
13195 (flush_ssanames_freelist): New function.
13196 (release_ssaname_fn): Put released names on the queue.
13197 (pass_release_ssa_names::execute): Call flush_ssanames_freelist.
13198 * tree-ssanames.h (flush_ssanames_freelist): Declare.
13200 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
13202 * config/i386/intelmic-mkoffload.c (main): Parse "-v" flag.
13203 (generate_target_descr_file, generate_target_offloadend_file)
13204 (generate_host_descr_file, prepare_target_image): Pass it on.
13205 * config/nvptx/mkoffload.c (main): Parse "-v" flag.
13206 (compile_native, main): Pass it on.
13207 * lto-wrapper.c (compile_offload_image): Likewise.
13209 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
13210 Ilya Verbin <ilya.verbin@intel.com>
13211 Andrey Turetskiy <andrey.turetskiy@intel.com>
13213 * config/i386/intelmic-mkoffload.c (generate_host_descr_file)
13214 (prepare_target_image, main): Refactor argv building to use
13217 2015-09-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13219 * config/spu/spu-protos.h (spu_expand_atomic_op): Add prototype.
13220 * config/spu/spu.c (spu_expand_atomic_op): New function.
13221 * config/spu/spu.md (AINT): New mode iterator.
13222 (ATOMIC): New code iterator.
13223 (atomic_name, atomic_pred): New code predicates.
13224 ("atomic_load<mode>", "atomic_store<mode>"): New expanders.
13225 ("atomic_compare_and_swap<mode>", "atomic_exchange<mode>"): Likewise.
13226 (""atomic_<atomic_name><mode>", "atomic_fetch_<atomic_name><mode>",
13227 "atomic_<atomic_name>_fetch<mode>"): Likewise.
13229 2015-09-30 Ilya Enkovich <enkovich.gnu@gmail.com>
13231 * config/i386/i386.c (scalar_chain::analyze_register_chain): Ignore
13233 (scalar_chain::convert_reg): Likewise.
13235 2015-09-30 Richard Biener <rguenther@suse.de>
13237 * builtins.c: Add comment that no new simplifications should
13240 2015-09-30 Marek Polacek <polacek@redhat.com>
13242 PR tree-optimization/67690
13243 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): Call
13244 reset_flow_sensitive_info_in_bb.
13245 * tree-ssa-tail-merge.c (replace_block_by): Likewise.
13246 * tree-ssanames.c: Include "gimple-iterator.h".
13247 (reset_flow_sensitive_info_in_bb): New function.
13248 * tree-ssanames.h (reset_flow_sensitive_info_in_bb): Declare.
13250 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
13252 * config/i386/intelmic-mkoffload.c (target_ilp32): Remove
13253 variable, replacing it with...
13254 (offload_abi): ... this new variable. Adjust all users.
13255 * config/nvptx/mkoffload.c (target_ilp32, offload_abi): Likewise.
13257 2015-09-30 Matthias Klose <doko@ubuntu.com>
13259 * configure.ac: Remove extraneous ;;.
13260 * configure: Regenerate.
13262 2015-09-29 James Bowman <james.bowman@ftdichip.com>
13264 * config/ft32/predicates.md (ft32_imm_operand): New predicate.
13265 * config/ft32/ft32.md (movmemsi, setmemsi): Use ft32_imm_operand
13266 predicate, disallow register for operand 2.
13268 2015-09-29 Aditya Kumar <aditya.k7@samsung.com>
13270 * graphite-dependences.c (scop_get_dependences): Moved in down
13271 in order to be visible to its caller.
13272 * graphite-poly.h: Removed compute_deps, and extend_schedule.
13274 2015-09-29 Sebastian Pop <s.pop@samsung.com>
13275 Aditya Kumar <aditya.k7@samsung.com>
13277 PR tree-optimization/67754
13278 * graphite-optimize-isl.c (optimize_isl): Call
13279 isl_options_set_schedule_fuse with ISL_SCHEDULE_FUSE_MIN for ISL-14.
13281 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
13283 * builtins.c (expand_builtin_acc_on_device): Delete.
13284 (expand_builtin): Don't call it.
13285 (fold_builtin_1): Fold acc_on_device.
13287 2015-09-29 H.J. Lu <hongjiu.lu@intel.com>
13289 * config/i386/i386.c (ix86_function_arg): Fix typo in comments.
13290 (ix86_nsaved_sseregs): Likewise.
13292 2015-09-29 Jeff Law <law@redhat.com>
13294 * config/microblaze/microblaze.c (microblaze_version_to_int): Remove
13295 computation of unused value.
13297 * config/pdp11/pdp11.c (pdp11_branch_cost): New function.
13298 * config/pdp11/pdp11.h (BRANCH_COST): Call function rather than
13299 inline macro expansion.
13301 * config/i386/t-interix (winnt-stubs.o): Fix compilation rule.
13303 * config/sh/sh.c (gen_shl_and): Fix undefined left shift behaviour.
13304 (gen_shl_sext): Likewise.
13305 * config/sh/sh.md (divsi3): Likewise.
13306 (imm->ext_dest_operand splitter): Likewise.
13308 2015-09-29 Sebastian Pop <s.pop@samsung.com>
13309 Aditya Kumar <aditya.k7@samsung.com>
13311 * graphite-sese-to-poly.c (gsi_for_phi_node): Remove.
13312 (nb_data_writes_in_bb): Remove.
13313 (split_pbb): Remove.
13314 (split_reduction_stmt): Remove.
13315 (is_reduction_operation_p): Remove.
13316 (phi_contains_arg): Remove.
13317 (follow_ssa_with_commutative_ops): Remove.
13318 (detect_commutative_reduction_arg): Remove.
13319 (detect_commutative_reduction_assign): Remove.
13320 (follow_inital_value_to_phi): Remove.
13321 (edge_initial_value_for_loop_phi): Remove.
13322 (initial_value_for_loop_phi): Remove.
13323 (used_outside_reduction): Remove.
13324 (detect_commutative_reduction): Remove.
13325 (translate_scalar_reduction_to_array_for_stmt): Remove.
13326 (remove_phi): Remove.
13327 (dr_indices_valid_in_loop): Remove.
13328 (close_phi_written_to_memory): Remove.
13329 (translate_scalar_reduction_to_array): Remove.
13330 (rewrite_commutative_reductions_out_of_ssa_close_phi): Remove.
13331 (rewrite_commutative_reductions_out_of_ssa_loop): Remove.
13332 (rewrite_commutative_reductions_out_of_ssa): Remove.
13333 (build_poly_scop): Remove call to
13334 rewrite_commutative_reductions_out_of_ssa.
13336 2015-09-29 Evandro Menezes <e.menezes@samsung.com>
13338 * config/arm/types.md (neon_ldp, neon_ldp_q, neon_stp, neon_stp_q):
13339 Add new insn types for vector load and store pairs.
13340 * config/arm/cortex-a53.md (cortex_a53_f_load_2reg): Add insn
13341 types "neon_ldp{,_q}".
13342 * config/arm/cortex-a57.md (neon_load_c): Add insn types
13344 (neon_store_complex): Add insn types "neon_stp{,_q}".
13345 * config/aarch64/aarch64-simd.md (aarch64_be_movoi): Add insn types
13346 "neon_{ldp,stp}_q".
13348 2015-09-29 Jeff Law <law@redhat.com>
13350 * config/rx/constraints.md (Int08): Fix undefined left shift
13352 (Sint08, Sint16, Sint24): Likewise.
13353 * config/rx/rx.c (rx_get_stack_layout): Likewise.
13355 * config/rl78/rl78-expand.md (movqi): Fix undefined left shift
13358 * config/msp430/msp430.c (msp430_legitimate_constant): Fix undefined
13359 left shift behaviour.
13360 * config/msp430/constraints.md ('L' constraint): Similarly.
13361 ('Ys' constraint): Similarly.
13363 2015-09-29 Richard Biener <rguenther@suse.de>
13365 PR tree-optimization/67170
13366 * tree-ssa-alias.h (get_continuation_for_phi): Adjust
13367 the translate function pointer parameter to get the
13368 bool whether to disambiguate only by reference.
13369 (walk_non_aliased_vuses): Likewise.
13370 * tree-ssa-alias.c (maybe_skip_until): Adjust.
13371 (get_continuation_for_phi_1): Likewise.
13372 (get_continuation_for_phi): Likewise.
13373 (walk_non_aliased_vuses): Likewise.
13374 * tree-ssa-sccvn.c (const_parms): New bitmap.
13375 (vn_reference_lookup_3): Adjust for interface change.
13376 Disambiguate parameters pointing to readonly memory.
13377 (free_scc_vn): Free const_parms.
13378 (run_scc_vn): Initialize const_parms from a fn spec attribute.
13380 2015-09-29 Richard Biener <rguenther@suse.de>
13382 PR tree-optimization/67741
13383 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Only recognize
13384 builtin calls with correct signature.
13386 2015-09-29 Ilya Enkovich <enkovich.gnu@gmail.com>
13389 * config/i386/i386.c: Include dbgcnt.h.
13390 (has_non_address_hard_reg): New.
13391 (convertible_comparison_p): New.
13392 (scalar_to_vector_candidate_p): New.
13393 (remove_non_convertible_regs): New.
13394 (scalar_chain): New.
13395 (scalar_chain::scalar_chain): New.
13396 (scalar_chain::~scalar_chain): New.
13397 (scalar_chain::add_to_queue): New.
13398 (scalar_chain::mark_dual_mode_def): New.
13399 (scalar_chain::analyze_register_chain): New.
13400 (scalar_chain::add_insn): New.
13401 (scalar_chain::build): New.
13402 (scalar_chain::compute_convert_gain): New.
13403 (scalar_chain::replace_with_subreg): New.
13404 (scalar_chain::replace_with_subreg_in_insn): New.
13405 (scalar_chain::emit_conversion_insns): New.
13406 (scalar_chain::make_vector_copies): New.
13407 (scalar_chain::convert_reg): New.
13408 (scalar_chain::convert_op): New.
13409 (scalar_chain::convert_insn): New.
13410 (scalar_chain::convert): New.
13411 (convert_scalars_to_vector): New.
13412 (pass_data_stv): New.
13414 (make_pass_stv): New.
13415 (ix86_option_override): Created and register stv pass.
13416 (flag_opts): Add -mstv.
13417 (ix86_option_override_internal): Likewise.
13418 * config/i386/i386.md (SWIM1248x): New.
13419 (*movdi_internal): Add xmm to mem alternative for TARGET_STV.
13420 (and<mode>3): Use SWIM1248x iterator instead of SWIM.
13421 (*anddi3_doubleword): New.
13422 (*zext<mode>_doubleword): New.
13423 (*zextsi_doubleword): New.
13424 (<code><mode>3): Use SWIM1248x iterator instead of SWIM.
13425 (*<code>di3_doubleword): New.
13426 * config/i386/i386.opt (mstv): New.
13427 * dbgcnt.def (stv_conversion): New.
13429 2015-09-29 Tom de Vries <tom@codesourcery.com>
13431 * tree-cfg.c (dump_function_to_file): Dump function attributes.
13433 2015-09-29 Kaz Kojima <kkojima@gcc.gnu.org>
13436 * config/sh/sh.c (sh_override_options_after_change): New.
13437 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
13438 (sh_option_override): Move align_loops, align_jumps and
13439 align_functions handling into sh_override_options_after_change.
13441 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
13443 * config/nvptx/nvptx.c: Include omp-low.h and gomp-constants.h.
13444 (nvptx_record_offload_symbol): Record function execution geometry.
13445 * config/nvptx/mkoffload.c (process): Include launch geometry in
13447 * omp-low.c (oacc_launch_pack): New.
13448 (replace_oacc_fn_attrib): New.
13449 (set_oacc_fn_attrib): New.
13450 (get_oacc_fn_attrib): New.
13451 (expand_omp_target): Create keyed varargs for GOACC_parallel call
13453 * omp-low.h (get_oacc_fn_attrib): Declare.
13454 * builtin-types.def (DEF_FUNCTION_TyPE_VAR_6): New.
13455 (DEF_FUNCTION_TYPE_VAR_11): Delete.
13456 * tree.h (OMP_CLAUSE_EXPR): New.
13457 * omp-builtins.def (BUILT_IN_GOACC_PARALLEL): Change target fn name.
13459 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
13460 Sebastian Pop <s.pop@samsung.com>
13462 * sese.c (invariant_in_sese_p_rec): Remove unused variable.
13464 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
13465 Sebastian Pop <s.pop@samsung.com>
13467 * graphite-optimize-isl.c (optimize_isl): Use ISL_SCHEDULE_FUSE_MAX.
13468 * graphite-scop-detection.c (struct sese_l): New type.
13469 (get_entry_bb): API for getting entry bb of SESE.
13470 (get_exit_bb): API for getting exit bb of SESE.
13471 (class debug_printer): New type. Simple printer in debug mode.
13472 (trivially_empty_bb_p): New. Return true when BB is empty or
13473 contains only debug instructions.
13474 (graphite_can_represent_expr): Call scalar_evoution_in_region
13475 instead of analyze_scalar_evolution. Pass in scop instead of only
13477 (stmt_has_simple_data_refs_p): Pass in scop instead of only the
13479 (stmt_simple_for_scop_p): Same.
13480 (harmful_stmt_in_bb): Same.
13481 (graphite_can_represent_loop): Deleted.
13482 (struct scopdet_info): Deleted.
13483 (scopdet_basic_block_info): Deleted.
13484 (build_scops_1): Deleted.
13485 (bb_in_sd_region): Deleted.
13486 (find_single_entry_edge): Deleted.
13487 (find_single_exit_edge): Deleted.
13488 (create_single_entry_edge): Deleted.
13489 (sd_region_without_exit): Deleted.
13490 (create_single_exit_edge): Deleted.
13491 (unmark_exit_edges): Deleted.
13492 (mark_exit_edges): Deleted.
13493 (create_sese_edges): Deleted.
13494 (build_graphite_scops): Deleted.
13495 (canonicalize_loop_closed_ssa): Recompute all dominators at the end.
13496 (build_scops): Use the new scop_builder to build scops.
13497 (dot_all_scops_1): Use the new pretty printer. Print loop father
13499 (loop_body_is_valid_scop): New. Return true if loop body is a
13501 (class scop_builder): New. Builds SCoPs for polyhedral
13503 (scop_builder): New constructor.
13504 (static sese_l invalid_sese): sese_l with invalid edges.
13505 (get_sese): Get an sese (from a loop) if possible, invalid_sese
13507 (get_nearest_dom_with_single_entry): Get nearest dominator of a
13508 basic_block with single entry. Return NULL if we get to the
13509 beginning of a function.
13510 (get_nearest_pdom_with_single_exit): Get nearest post-dominator of
13511 a basic_block with single exit. Return NULL if we get to the
13512 beginning of a function.
13513 (print_sese): Pretty-print SESE.
13514 (merge_sese): Merge two SESEs if possible and return the new SESE.
13515 (build_scop_depth): Start building the SCoP within a loop nest.
13516 (build_scop_breadth): Start building the SCoP at a single loop
13517 depth. Merge adjacent SESEs if valid.
13518 (can_represent_loop_1): Returns true if Graphite can represent
13519 loop inside SCoP. Helper for can_represent_loop.
13520 (can_represent_loop): Returns true if Graphite can represent LOOP
13521 and all its nested loops in SCoP.
13522 (loop_is_valid_scop): Returns true if LOOP and all its nests
13523 constitute a valid SCoP.
13524 (region_has_one_loop): Returns true of a region has only one loop.
13525 (add_scop): Add SCoP to the list of valid scops. Removes an
13526 already existing scop if it intersects with or subsumed by this one.
13527 (harmful_stmt_in_region): Returns true if SCoP has any statment
13528 which cannot be represented by Graphite.
13529 (subsumes): Returns true of SCoP S1 subsumes SCoP S2.
13530 (remove_subscops): Remove any SCoP from the list of already found
13531 SCoPs, if subsumed by S1.
13532 (intersects): Return true if region bounded by SCoPs S1 and S2
13534 (remove_intersecting_scops): Remove any SCoP which intersects with S1.
13535 * graphite.c (print_graphite_scop_statistics):
13536 (print_graphite_statistics): Print SCoP info while debugging.
13537 (graphite_initialize): Early exit in case number of loops in a
13538 function is less than PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION or
13539 basic blocks are more than PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
13540 (graphite_finalize):
13541 * params.def: Add PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION.
13542 * sese.h (sese_loop_depth): Remove unnecessary gcc_assert.
13543 (recompute_all_dominators): Recalculate POST_DOMINATORS.
13544 * tree-cfg.c (print_loops): Print the function name while printing
13547 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
13548 Sebastian Pop <s.pop@samsung.com>
13550 PR tree-optimization/67700
13551 * graphite-sese-to-poly.c (parameter_index_in_region): Call
13552 invariant_in_sese_p_rec.
13553 (extract_affine): Same.
13554 (rewrite_cross_bb_scalar_deps): Call update_ssa.
13555 * sese.c (invariant_in_sese_p_rec): Export. Handle vdefs and vuses.
13556 * sese.h (invariant_in_sese_p_rec): Declare.
13558 2015-09-28 David Wohlferd <dw@LimeGreenSocks.com>
13560 * doc/extend.texi (Asm Labels): Break out text for data vs functions.
13562 2015-09-28 Jiong Wang <jiong.wang@arm.com>
13565 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13566 Jiong Wang <jiong.wang@arm.com>
13568 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
13569 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
13570 (REG_CLASS_NAMES): Likewise.
13571 (REG_CLASS_CONTENTS): Likewise.
13572 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
13573 (aarch64_register_move_cost): Likewise.
13574 (aarch64_load_symref_appropriately): Invoke the new added pattern if
13576 * config/aarch64/constraints.md (Uc0): New constraint.
13578 2015-09-28 Daniel Hellstrom <daniel@gaisler.com>
13580 * config/sparc/t-rtems: Remove -muser-mode. Add ut699, at697f and leon.
13582 2015-09-28 David Edelsohn <dje.gcc@gmail.com>
13584 * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
13585 SECTION_EXCLUDE in XO mapping class.
13587 2015-09-28 Oleg Endo <olegendo@gcc.gnu.org>
13590 * config/sh/predicates.md (t_reg_operand, negt_reg_operand): Allow
13591 and handle ne and eq codes.
13592 * config/sh/sh.c (sh_rtx_costs): Adjust matching of tst #imm,r0 insn.
13593 (sh_recog_treg_set_expr): Early accept negt_reg_operand. Eearly reject
13594 CONST_INT_P. Use reverse_condition.
13595 (sh_split_treg_set_expr): Likewise.
13597 2015-09-28 James Greenhalgh <james.greenhalgh@arm.com>
13599 * config/arm/types.md (type): Add rotate_imm.
13600 * config/aarch64/aarch64.md (*ror<mode>3_insn): Split out the
13601 ROR immediate case.
13602 (*rorsi3_insn_uxtw): Likewise.
13603 * config/aarch64/thunderx.md (thunderx_shift): Add rotate_imm.
13604 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add rotate_imm.
13605 * config/arm/cortex-a57.md (cortex_a53_alu): Add rotate_imm.
13607 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13609 PR rtl-optimization/67481
13610 * ifcvt.c (contains_ccmode_rtx_p): New function.
13611 (insn_valid_noce_process_p): Use it.
13613 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13615 PR rtl-optimization/67456
13616 PR rtl-optimization/67464
13617 PR rtl-optimization/67465
13618 * ifcvt.c (noce_try_cmove_arith): Bail out if cannot conditionally
13619 move in the mode of x. Handle combination of complex and simple
13620 block pairs as well as the case when one is empty.
13622 2015-09-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13624 * doc/gimple.texi: Update references to gimple_statement_base.
13625 * gdbhooks.py: Likewise.
13626 * gimple.h: Likewise.
13628 2015-09-28 Daniel Cederman <cederman@gaisler.com>
13630 * config/sparc/driver-sparc.c: map LEON to leon3
13632 2015-09-28 Daniel Cederman <cederman@gaisler.com>
13634 * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
13635 and make it inverse to change default
13636 * config/sparc/sync.md: Only use supervisor ASI for CASA when in
13638 * doc/invoke.texi: Document change of default
13640 2015-09-28 Daniel Cederman <cederman@gaisler.com>
13642 * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
13643 true on %f0 for a target without FPU.
13644 * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
13646 (untyped_return): Do not load %f0 for a target without FPU.
13648 2015-09-28 Andrew Pinski <apinski@cavium.com>
13650 * config/aarch64/aarch64.md (prefetch):
13651 Change the predicate of operand 0 to register_operand.
13653 2015-09-27 Uros Bizjak <ubizjak@gmail.com>
13655 * config/i386/predicates.md (register_sse4nonimm_operand): New
13657 * config/i386/sse.md (PEXTR_MODE12): New mode iterator.
13658 (*vec_extract<mode>): Use PEXTR_MODE12 instead of VI12_128 mode.
13659 Use register_sse4nonimm_operand as operand 0 predicate.
13660 (*vec_extractv8hi_sse2): Remove insn pattern.
13661 (*vec_extract<PEXTR_MODE12:mode>_zext): Merge insn pattern from
13662 *vec_extractv8hi_zext and *vec_extractv16qi_zext patterns.
13664 2015-09-27 Oleg Endo <olegendo@gcc.gnu.org>
13665 Kaz Kojima <kkojima@gcc.gnu.org>
13668 * config/sh/sh-protos.h (sh_lra_p): Declare.
13669 * config/sh/sh.c (sh_lra_p): Make non-static.
13670 * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
13671 arith_reg_operand for operands[1]. Remove TARGET_SHMEDIA case.
13672 Expand into addsi3_scr if operands[2] if needed.
13673 (*addsi3_compact): Rename to *addsi3_compact_lra. Use
13674 arith_reg_operand for operands[1]. Allow it only when LRA is enabled.
13675 (addsi3_scr, *addsi3): New insn_and_split patterns.
13677 2015-09-27 Alexandre Oliva <aoliva@redhat.com>
13679 PR rtl-optimization/64164
13680 PR tree-optimization/67312
13681 PR middle-end/67340
13682 PR middle-end/67490
13684 * cfgexpand.c (parm_in_stack_slot_p): Remove.
13685 (ssa_default_def_partition): Remove.
13686 (get_rtl_for_parm_ssa_default_def): Remove.
13687 (set_rtl): Check that RTL assignments match expectations.
13688 Loop on SUBREGs, CONCATs and PARALLELs subexprs. Set only the
13689 default def location for params and results. Record SSA names
13690 or types in REG and MEM attrs, respectively.
13691 (set_parm_rtl): New.
13692 (expand_one_ssa_partition): Drop logic that assigned MEMs with
13693 unassigned addresses.
13694 (adjust_one_expanded_partition_var): Don't accept NULL RTL on
13695 deferred stack alloc vars.
13696 (expand_used_vars): Skip partitions holding parm default defs.
13697 Move adjust_one_expanded_partition_var loop...
13698 (pass_expand::execute): ... here. Drop redundant assert.
13699 Adjust comments before the final loop over all ssa names.
13700 Require assigned rtl of parms and results to match exactly.
13701 Reset its attributes to match them, not any other variables in
13702 the same partition.
13703 (expand_debug_expr): Use entry value for PARM's default defs
13704 only iff they have zero nondebug uses.
13705 * cfgexpand.h (parm_in_stack_slot_p): Remove.
13706 (get_rtl_for_parm_ssa_default_def): Remove.
13707 (set_parm_rtl): Declare.
13708 * doc/invoke.texi: Improve wording.
13709 * explow.c (promote_decl_mode): Fix promote_function_mode for
13710 result decls not by reference.
13711 (promote_ssa_mode): Disregard BLKmode from promote_decl, and
13712 bypass TYPE_MODE to get the actual vector mode.
13713 * function.c: Include tree-dfa.h. Revert 2015-08-14's and
13714 2015-08-19's changes as follows. Drop include of
13715 basic-block.h and df.h.
13716 (rtl_for_parm): Remove.
13717 (maybe_reset_rtl_for_parm): Remove.
13718 (parm_in_unassigned_mem_p): Remove.
13719 (use_register_for_decl): Add logic for RESULT_DECLs matching
13720 assign_parms' behavior.
13721 (split_complex_args): Revert.
13722 (assign_parms_augmented_arg_list): Revert. Add comment
13723 referencing the logic above.
13724 (assign_parm_adjust_stack_rtl): Revert.
13725 (assign_parm_setup_block): Revert. Use set_parm_rtl instead
13726 of SET_DECL_RTL. Set up a REG if the parm demands so.
13727 (assign_parm_setup_reg): Revert. Consolidated SET_DECL_RTL
13728 calls into a single set_parm_rtl. Set up a temporary RTL
13729 temporarily for expand_assignment.
13730 (assign_parm_setup_stack): Revert. Use set_parm_rtl.
13731 (assign_parms_unsplit_complex): Revert. Use set_parm_rtl.
13732 (assign_bounds): Revert.
13733 (assign_parms): Revert. Use set_parm_rtl.
13734 (allocate_struct_function): Relayout result and parms of
13735 non-abstruct functions.
13736 (expand_function_start): Revert. Use set_parm_rtl. If the
13737 result is not a hard reg, create a pseudo from the promoted
13738 mode of the default def. Promote static chain mode.
13739 * tree-outof-ssa.c (remove_ssa_form): Drop unused
13740 partition_has_default_def. Set up
13741 partitions_for_parm_default_defs.
13742 (finish_out_of_ssa): Remove partition_has_default_def.
13743 Release partitions_for_parm_default_defs.
13744 * tree-outof-ssa.h (struct ssaexpand): Remove
13745 partition_has_default_def. Add
13746 partitions_for_parm_default_defs.
13747 * tree-ssa-coalesce.c: Include tree-dfa.h, tm_p.h and
13749 (build_ssa_conflict_graph): Fix conflict-detection of default
13750 defs of even unused default defs of params and results.
13751 (for_all_parms): New.
13752 (create_default_def): New.
13753 (register_default_def): New.
13754 (coalesce_with_default): New.
13755 (create_outofssa_var_map): Create default defs for all parms
13756 and results, and register their partitions. Add GIMPLE_RETURN
13757 operands as coalesce candidates with results. Add default
13758 defs of each parm or result as coalesce candidates with its
13759 other defs. Mark each result def, and each default def of
13760 parms, as used_in_copy.
13761 (gimple_can_coalesce_p): Call it. Call use_register_for_decl
13762 with the ssa names, even anonymous ones. Drop
13763 parm_in_stack_slot_p calls. Require same signedness and
13765 (coalesce_ssa_name): Add coalesce candidates for all defs of
13766 each parm and result, even unused ones.
13767 (parm_default_def_partition_arg): New type.
13768 (set_parm_default_def_partition): New.
13769 (get_parm_default_def_partitions): New.
13770 * tree-ssa-coalesce.h (get_parm_default_def_partitions): New.
13771 * tree-ssa-live.c (partition_view_init): Regard unused defs of
13772 parms and results as used.
13773 (verify_live_on_entry): Don't error out just because they're
13776 2015-09-26 David Edelsohn <dje.gcc@gmail.com>
13778 * dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
13779 (HAVE_XCOFF_DWARF_EXTRAS): Default to 0 definition.
13780 (output_fde): Don't output length for debug_frame on AIX.
13781 (output_call_frame_info): Don't output length for debug_frame on AIX.
13782 (have_macinfo): Force to False for XCOFF_DEBUGGING_INFO and not
13783 HAVE_XCOFF_DWARF_EXTRAS.
13784 (add_AT_loc_list): Return early if XCOFF_DEBUGGING_INFO and not
13785 HAVE_XCOFF_DWARF_EXTRAS.
13786 (output_compilation_unit_header): Don't output length on AIX.
13787 (output_pubnames): Don't output length on AIX.
13788 (output_aranges): Delete argument. Compute length locally. Don't
13789 output length on AIX.
13790 (output_line_info): Don't output length on AIX.
13791 (dwarf2out_finish): Don't compute aranges_length.
13792 * dwarf2asm.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
13793 (dw2_asm_output_nstring): Emit .byte not .ascii on AIX.
13794 * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Emit correct
13795 symbol decoration for AIX.
13796 (rs6000_xcoff_debug_unwind_info): New.
13797 (rs6000_xcoff_asm_named_section): Emit .dwsect pseudo-op
13799 (rs6000_xcoff_declare_function_name): Emit different
13800 .function pseudo-op when DWARF2_DEBUG. Don't call
13801 xcoffout_declare_function for DWARF2_DEBUG.
13802 * config/rs6000/xcoff.h (TARGET_DEBUG_UNWIND_INFO):
13804 * config/rs6000/aix71.h: New.
13805 * configure.ac (gcc_cv_as_aix_dwloc): Check AIX as for DWARF
13807 * configure: Regenerate.
13808 * config.gcc (powerpc-ibm-aix[789]+): New stanza for AIX 7.1+ with
13811 2015-09-26 Jeff Law <law@redhat.com>
13813 * config/arc/arc.c (arc_output_addsi): Fix left shift undefined
13815 * config/arc/constraints.md (Cca, C2a): Fix left shift undefined
13818 * config/sh/sh.h (CONST_OK_FOR_J16): Fix left shift undefined
13821 * config/mips/mips.c (mips_compute_frame_info): Fix left shift
13822 undefined behaviour.
13824 * config/cris/cris.md (asrandb): Fix left shift undefined
13826 (asrandw): Likewise.
13828 2015-09-25 Vladimir Makarov <vmakarov@redhat.com>
13831 * lra-constarints.c (match_reload): Check presence of the input pseudo
13832 in the output operand.
13834 2015-09-25 Tobias Burnus <burnus@net-b.de>
13836 * doc/invoke.texi (-fsanitize): Minor wording tweak.
13838 2015-09-25 Tobias Burnus <burnus@net-b.de>
13840 * doc/invoke.texi (-fsanitize): Update URLs.
13842 2015-09-25 Teresa Johnson <tejohnson@google.com>
13844 * opts.c (finish_options): Unset -freorder-blocks-and-partition
13845 if not using profile.
13847 2015-09-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
13849 PR pretty-print/67567
13850 * pretty-print.c (pp_string): Add gcc_checking_assert.
13851 * pretty-print.h (output_buffer_append_r): Likewise.
13853 2015-09-25 Oleg Endo <olegendo@gcc.gnu.org>
13856 * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
13857 addr2 individually. Don't emit logical or insn if one is known to
13858 be aligned approriately.
13859 (sh_expand_cmpnstr): Likewise.
13861 2015-09-25 Richard Sandiford <richard.sandiford@arm.com>
13863 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
13864 __builtin_aarch64_fp[sc]r arguments into a register.
13866 2015-09-25 H.J. Lu <hongjiu.lu@intel.com>
13868 * config.gcc (x86_archs): Replace lakemount with lakemont.
13869 (with_cpu): Likewise.
13870 (with_arch): Likewise.
13871 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
13872 PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT. Replace
13873 __tune_lakemount__ with __tune_lakemont__.
13874 * config/i386/i386.c (lakemount_cost): Renamed to ...
13875 (lakemont_cost): This.
13876 (m_LAKEMOUNT): Renamed to ...
13877 (m_LAKEMONT): This.
13878 (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
13879 (processor_target_table): Replace "lakemount" with "lakemont".
13880 (processor_alias_table): Likewise.
13881 (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
13882 PROCESSOR_LAKEMONT.
13883 (ix86_adjust_cost): Likewise.
13884 (ia32_multipass_dfa_lookahead): Likewise.
13885 * config/i386/i386.h (processor_type): Likewise.
13886 * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
13887 * doc/invoke.texi: Replace lakemount with lakemont. Replace
13888 Lakemount with Lakemont.
13890 2015-09-24 H.J. Lu <hongjiu.lu@intel.com>
13892 * config.gcc (x86_archs): Replace iamcu with lakemount.
13893 (with_cpu): Likewise.
13894 (with_arch): Likewise.
13895 * doc/invoke.texi: Likewise.
13896 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
13897 PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT. Replace
13898 __tune_iamcu__ with __tune_lakemount__.
13899 * config/i386/i386.c (iamcu_cost): Renamed to ...
13900 (lakemount_cost): This.
13901 (m_IAMCU): Renamed to ...
13902 (m_LAKEMOUNT): This.
13903 (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
13904 (processor_target_table): Replace "iamcu" with "lakemount".
13905 (processor_alias_table): Likewise.
13906 (ix86_issue_rate): Replace PROCESSOR_IAMCU with
13907 PROCESSOR_LAKEMOUNT.
13908 (ix86_adjust_cost): Likewise.
13909 (ia32_multipass_dfa_lookahead): Likewise.
13910 * config/i386/i386.h (processor_type): Likewise.
13911 * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
13913 2015-09-24 John David Anglin <danglin@gcc.gnu.org>
13915 * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
13916 * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
13918 * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
13919 (pa_expand_compare_and_swap_loop): New.
13920 (pa_maybe_emit_compare_and_swap_exchange_loop): New.
13921 * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
13922 atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
13923 (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
13924 (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
13927 2015-09-24 Michael Collison <michael.collison@linaro.org>
13930 * read-md.c (read_name): Allow mode iterators inside angle
13931 brackets in rtl expressions.
13933 2015-09-24 Vladimir Makarov <vmakarov@redhat.com>
13936 * ira-color.c (update_allocno_cost): Add parameter.
13937 (update_costs_from_allocno): Decrease conflict cost. Pass the new
13940 2015-09-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
13943 * opts-common.c (prune_options): Discard all -fdiagnostics-color
13944 but the last one, which is moved to the front to be processed
13946 * opts.c (enable_warning_as_error): Reject options that do not
13949 2015-09-24 Jiong Wang <jiong.wang@arm.com>
13951 * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
13953 2015-09-24 Jiong Wang <jiong.wang@arm.com>
13955 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
13956 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
13957 (aarch64_cannot_force_const_mem): Likewise.
13958 (aarch64_classify_address): Likewise.
13959 (aarch64_classify_symbolic_expression): Likewise.
13960 (aarch64_print_operand): Likewise.
13961 (aarch64_classify_symbol): Likewise.
13962 (aarch64_mov_operand_p): Likewise.
13963 * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
13964 (aarch64_mov_operand): Likewise.
13966 2015-09-24 Segher Boessenkool <segher@kernel.crashing.org>
13968 * config/rs6000/rs6000.c (debug_stack_info): Invert the test
13969 for info->spe_gp_size.
13971 2015-09-24 Richard Biener <rguenther@suse.de>
13974 * lto-cgraph.c (compute_ltrans_boundary): Do not stream
13977 2015-09-24 Thomas Schwinge <thomas@codesourcery.com>
13979 * tree-object-size.c (plus_stmt_object_size)
13980 (cond_expr_object_size): Change the formal parameters from gimple
13982 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
13983 * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
13984 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
13986 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13988 * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
13989 Check for ld -type pie on Solaris 11.x and 12.
13990 * configure: Regenerate.
13991 * config.in: Regenerate.
13993 * gcc.c (LD_PIE_SPEC): Allow redefinition.
13995 * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
13996 (STARTFILE_SPEC): Use it.
13997 (ENDFILE_CRTEND_SPEC): Define.
13998 (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
13999 (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
14000 ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
14001 [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
14002 (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
14003 * config/i386/sol2.h (ENDFILE_SPEC): Remove.
14004 (ENDFILE_ARCH_SPEC): Define.
14005 * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
14007 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14009 * configure.ac (gcc_cv_solaris_crts): New test.
14010 * configure. Regenerate.
14011 * config.in: Regenerate.
14012 * config/sol2.h (STARTFILE_SPEC): Simplify, provide
14013 HAVE_SOLARIS_CRTS variant.
14015 2015-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14017 * tree-inline.h (count_insns_seq): Delete prototype.
14018 (estimate_num_insns_seq): Define prototype.
14019 * tree-inline.c (count_insns_seq): Delete.
14020 (estimate_num_insns_seq): Remove static qualifier.
14021 * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
14022 with estimate_num_insns_seq.
14024 2015-09-24 Richard Biener <rguenther@suse.de>
14026 * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
14028 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
14029 and base for MEM_REF and TARGET_MEM_REF. Handle BIT_FIELD_REF
14031 (ao_ref_init_from_vn_reference): Record clique and base in the
14033 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
14035 2015-09-24 Richard Biener <rguenther@suse.de>
14037 PR tree-optimization/48885
14038 * tree-ssa-structalias.c (visit_loadstore): Handle default defs
14039 as not including any restrict tags from other pointers.
14041 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
14043 * gcc.c (handle_foffload_option): Don't lose the trailing NUL
14044 character when appending to offload_targets.
14046 * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
14047 offload targets by commas, not colons.
14048 * config.in: Regenerate.
14049 * configure: Likewise.
14050 * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
14051 instead of setting up the default offload targets here...
14052 (process_command): ..., do it here.
14054 * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
14055 targets are separated by commas.
14056 * config.h.in: Regenerate.
14058 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
14059 Nathan Sidwell <nathan@codesourcery.com>
14061 * omp-low.h (omp_reduction_init_op): Declare.
14062 * omp-low.c (omp_reduction_init_op): New, broken out of ...
14063 (omp_reduction_init): ... here. Call it.
14064 * tree-parloops.c (initialize_reductions): Use
14065 omp_reduction_init_op.
14067 2015-09-23 Richard Biener <rguenther@suse.de>
14069 PR middle-end/67662
14070 * fold-const.c (fold_binary_loc): Do not reassociate two vars with
14071 undefined overflow unless they will cancel out.
14073 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
14075 * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
14078 2015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
14081 * opts.h (write_langs): Declare.
14082 * opts-global.c (write_langs): Make it extern.
14084 2015-09-23 Oleg Endo <olegendo@gcc.gnu.org>
14087 * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
14088 overlapping regs when matching the pattern.
14090 2015-09-23 James Greenhalgh <james.greenhalgh@arm.com>
14092 * config/aarch64/aarch64-simd.md
14093 (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
14094 (aarch64_float_truncate_hi_v4sf_le): New.
14095 (aarch64_float_truncate_hi_v4sf_be): Likewise.
14097 2015-09-23 Richard Biener <rguenther@suse.de>
14099 * tree-ssa-structalias.c (intra_create_variable_infos): Build
14100 representatives for all restrict qualified pointer destinations.
14102 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
14104 * config/i386/i386.md (define_code_attr mshift): New.
14105 (define_mode_iterator SWI1248_AVX512BW): Rename ...
14106 (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
14108 (define_insn "*k<logic><mode>"): Use new iterator name.
14109 (define_insn "*<mshift><mode>3"): New.
14111 2015-09-23 Mikhail Maltsev <maltsevm@gmail.com>
14113 PR middle-end/67649
14114 * memory-block.h (memory_block_pool::allocate): Use valgrind API to
14115 mark the block as accessible.
14117 2015-09-22 Segher Boessenkool <segher@kernel.crashing.org>
14119 * function.c (thread_prologue_and_epilogue_insns): Delete
14120 orig_entry_edge argument to try_shrink_wrapping.
14121 * shrink-wrap.c (can_get_prologue): New function.
14122 (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
14123 (try_shrink_wrapping): Delete orig_entry_edge argument. Use
14124 can_get_prologue where needed. Remove code that finds a single
14125 edge for the prologue. Remove code that tests if any reg clobbered
14126 by the prologue is live on the prologue edge. Remove code that finds
14127 the new prologue edge after duplicating blocks. Make a new prologue
14129 * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
14131 2015-09-22 Jeff Law <law@redhat.com>
14133 * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
14136 2015-09-22 Nathan Sidwell <nathan@codesourcery.com>
14138 * doc/invoke.texi (-Wmultiple-inheritance, -Wvirtual-inheritance,
14139 -Wtemplates, -Wnamespaces): Document.
14141 2015-09-22 Tom de Vries <tom@codesourcery.com>
14143 PR tree-optimization/67671
14144 * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
14145 pointer references as restrict.
14147 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
14149 * config/nios2/nios2.c (nios2_legitimize_address): When handling
14150 'reg + reloc' cases, allow first operand to be non-REG, and use
14151 force_reg() to enforce address pattern.
14153 2015-09-22 Alexander Fomin <alexander.fomin@intel.com>
14156 * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
14157 (define_mode_iterator VI12_AVX_AVX512F): New.
14158 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
14159 all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
14160 (define_insn "*<code><mode>3"): ... Into new pattern using
14161 VI12_AVX_AVX512F iterators without masking.
14163 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
14165 * config.gcc: Support "skylake-avx512".
14166 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
14167 PROCESSOR_SKYLAKE_AVX512.
14168 * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
14169 (processor_target_table): Add "skylake-avx512".
14170 (PTA_SKYLAKE_AVX512): Define.
14171 (ix86_option_override_internal): Add "skylake_avx512".
14172 (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
14173 F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
14174 * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
14175 (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
14176 * doc/invoke.texi (skylake-avx512): New.
14178 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
14180 * config/i386/i386.md (define_insn "kunpckhi"): Fix
14181 operand in pattern.
14182 (define_insn "kunpcksi"): Ditto.
14183 (define_insn "kunpckdi"): Ditto.
14185 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
14187 * config/i386/i386.md (define_split not/xor SWI1248x): Use
14188 iterator instead of fixed modes.
14190 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
14192 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
14193 Adjust declaration.
14194 * config/aarch64/aarch64.c (aarch64_emit_bic): New.
14195 (aarch64_gen_atomic_ldop): Adjust comment. Add parameter
14196 out_result. Update to support update-fetch operations.
14197 * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
14198 Adjust for change to aarch64_gen_atomic_ldop.
14199 (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
14200 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
14201 (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
14202 (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
14203 (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
14205 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
14207 * config/aarch64/aarch64-protos.h
14208 (aarch64_atomic_ldop_supported_p): Declare.
14209 * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
14210 (enum aarch64_atomic_load_op_code): New.
14211 (aarch64_emit_atomic_load_op): New.
14212 (aarch64_gen_atomic_ldop): Update to support load-operate
14214 * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
14216 (aarch64_atomic_<atomic_optab><mode>): New.
14217 (aarch64_atomic_<atomic_optab><mode>_lse): New.
14218 (atomic_fetch_<atomic_optab><mode>): Change to an expander.
14219 (aarch64_atomic_fetch_<atomic_optab><mode>): New.
14220 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
14222 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
14224 * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
14225 (UNSPECV_ATOMIC_LDOP_OR): New.
14226 (UNSPECV_ATOMIC_LDOP_BIC): New.
14227 (UNSPECV_ATOMIC_LDOP_XOR): New.
14228 (UNSPECV_ATOMIC_LDOP_PLUS): New.
14229 (ATOMIC_LDOP): New.
14230 (atomic_ldop): New.
14231 (aarch64_atomic_load<atomic_ldop><mode>): New.
14233 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
14235 * config/aarch64/aarch64.md
14236 (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
14239 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
14241 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
14243 * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
14244 (aarch64_gen_atomic_ldop): New.
14245 (aarch64_split_atomic_op): Fix whitespace and add a comment.
14246 * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
14247 (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
14248 (atomic_exchange<mode>): Replace with an expander.
14249 (aarch64_atomic_exchange<mode>): New.
14250 (aarch64_atomic_exchange<mode>_lse): New.
14251 (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
14252 (aarch64_atomic_swp<mode>): New.
14254 2015-09-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
14256 * tree-inline.c (expand_call_inline): Use inform for extra note.
14257 Do not give a note with UNKNOWN_LOCATION.
14258 Replace input_location with gimple_location (stmt).
14259 Use true/false instead of TRUE/FALSE.
14261 2015-09-22 Tom de Vries <tom@codesourcery.com>
14263 PR tree-optimization/67666
14264 * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
14265 with single field non-conservative.
14267 2015-09-21 David S. Miller <davem@davemloft.net>
14271 2015-09-11 David S. Miller <davem@davemloft.net>
14273 * config/sparc/constraints.md: Make "U" constraint a real register
14275 * config/sparc/sparc.c (TARGET_LRA_P): Define.
14276 (D_MODES, DF_MODES): Add missing cast.
14277 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
14278 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
14279 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
14281 * config/sparc/sparc.h (PROMOTE_MODE): Define.
14282 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
14283 provide these insn when flag_pic.
14285 2015-09-17 David S. Miller <davem@davemloft.net>
14287 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
14289 * config/sparc/sparc.c (sparc_secondary_memory_needed): New
14291 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
14292 (HARD_REGNO_CALLER_SAVE_MODE): Define.
14293 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
14294 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
14295 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
14296 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
14297 provide when flag_pic.
14299 2015-09-21 Jeff Law <law@redhat.com>
14301 * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
14304 2015-09-21 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14306 * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
14308 2015-09-21 Richard Biener <rguenther@suse.de>
14310 * passes.c (rest_of_decl_compilation): Do not call
14311 dwarf2out_early_global_decl for aliases.
14313 2015-09-21 Richard Biener <rguenther@suse.de>
14316 * dwarf2out.c (add_location_or_const_value_attribute): Remove
14317 attribute parameter. Early exit if either DW_AT_const_value
14318 or DW_AT_location are present already.
14319 (gen_variable_die): Adjust caller.
14320 (dwarf2out_late_global_decl): Likewise.
14322 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
14325 * config/sh/sh.c (sh_remove_overlapping_post_inc,
14326 sh_peephole_emit_move_insn): Add new functions.
14327 * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
14328 sh_peephole_emit_move_insn): Declere them.
14329 * config/sh/sh.md: Use them in various peephole2 patterns.
14331 2015-09-21 Richard Biener <rguenther@suse.de>
14333 PR middle-end/67651
14334 * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
14335 address with -fno-delete-null-pointer-checks.
14337 2015-09-21 Alan Lawrence <alan.lawrence@arm.com>
14339 * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
14340 (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
14341 (reduc_uplus_v16qi): Remove.
14343 * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
14344 (reduc_<VEC_reduc_name>_v2df): Remove.
14345 (reduc_<VEC_reduc_name>_v4sf): Remove.
14346 (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
14348 * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
14349 gen_ function by removing * prefix.
14350 (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
14352 2015-09-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
14354 PR middle-end/60832
14355 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
14356 Print i_bound without converting it to a tree.
14358 2015-09-21 Bilyan Borisov <bilyan.borisov@arm.com>
14360 * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
14361 operands[4] operands[5] swap with std::swap, removed tmp variable.
14362 (arm_evpc_neon_vzip): Replaced in0/in1 and
14363 out0/out1 swaps with std::swap, removed x variable.
14364 (arm_evpc_neon_vtrn): Replaced in0/int1 and
14365 out0/out1 swaos with std::swap, removed x variable.
14366 (arm_expand_vec_perm_const_1): Replaced
14367 d->op0/d->op1 swap with std::swap, removed x variable.
14368 (arm_evpc_neon_vuzp): Replaced in0/in1 and
14369 out0/out1 swaps with std::swap, removed x variable.
14371 2015-09-21 Jonathan Yong <10walls@gmail.com>
14373 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
14374 sysroot/usr/lib/32api for additional win32 libraries,
14375 fixes failing Cygwin bootstrapping.
14377 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
14379 * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
14381 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
14384 * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
14385 (*mov_t_msb_neg): Rewrite negc pattern.
14387 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
14389 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
14390 immediate generation code.
14392 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
14394 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
14395 redundant immediate generation code.
14397 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
14399 * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
14400 (AARCH64_NUM_BITMASKS): Remove.
14401 (aarch64_bitmasks_cmp): Remove.
14402 (aarch64_build_bitmask_table): Remove.
14404 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
14406 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
14407 slow immediate matching loops with a faster algorithm.
14409 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
14411 * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
14414 2015-09-20 Jeff Law <law@redhat.com>
14416 PR tree-optimization/47679
14417 * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
14418 * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
14419 * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
14420 (thread_through_normal_block): Use record_temporary_equivalences.
14422 2015-09-19 Trevor Saunders <tbsaunde@tbsaunde.org>
14424 * coretypes.h (gimple): Change typedef to be a forward declaration.
14425 * gimple.h (gimple_statement_base): rename to gimple.
14426 * (all functions and types using gimple): Adjust.
14427 * *.[ch]: Likewise.
14429 2015-09-19 Andrew Dixie <andrewd@gentrack.com>
14430 David Edelsohn <dje.gcc@gmail.com>
14432 * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
14433 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
14434 (EH_FRAME_THROUGH_COLLECT2): Define.
14435 (EH_TABLES_CAN_BE_READ_ONLY): Define.
14436 (ASM_OUTPUT_DWARF_PCREL): Define.
14437 (ASM_OUTPUT_DWARF_DATAREL): Define.
14439 2015-09-19 John David Anglin <danglin@gcc.gnu.org>
14441 * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
14444 2015-09-18 Jeff Law <law@redhat.com>
14446 PR tree-optimization/47679
14447 * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped. Move
14449 (dom_opt_dom_walker): New private member holding the avail_exprs_stack
14450 object. Update constructor.
14451 (pass_dominator::execute): Corresponding chagnes to declaration
14452 and initialization of avail_exprs_stack. Update constructor call
14453 for dom_opt_dom_walker object.
14454 (lookup_avail_expr, record_cond): Accept additional argument. Pass
14455 it down to children as needed.
14456 (record_equivalences_from_incoming_edge): Likewise.
14457 (eliminate_redundant_computations): Likewise.
14458 (record_equivalences_from_stmt): Likewise.
14459 (simplify_stmt_for_jump_threading): Likewise.
14460 (record_temporary_equivalences): Likewise.
14461 (optimize_stmt): Likewise.
14462 (dom_opt_dom_walker::thread_across_edge): Update access to
14463 avail_exprs_stack object and pass it to children as needed.
14464 (dom_opt_dom_walker::before_dom_children): Similarly.
14465 (dom_opt_dom_walker::after_dom_children): Similarly.
14466 * tree-ssa-threadedge.c (pfn_simplify): New typedef.
14467 (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
14468 Add avail_expr_stack argument. Pass it to children as needed.
14469 (dummy_simplify): Likewise.
14470 (simplify_control_stmt_condition): Likewise.
14471 (thread_around_empty_blocks): Likewise.
14472 (thread_through_normal_block): Likewise.
14473 (thread_across_edge): Likewise.
14474 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
14475 * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
14477 PR tree-optimization/47679
14478 * tree-ssa-dom.c (const_and_copies): No longer file scoped. Move
14480 (dom_opt_dom_walker): New private member holding the const_and_copies
14481 object. Update constructor.
14482 (pass_dominator::execute): Corresponding changes to declaration
14483 and initialization of const_and_copies. Update constructor call
14484 for the dom_opt_dom_walker object.
14485 (record_temporary_equivalences): Accept const_and_copies argument
14486 pass it down to children as needed.
14487 (record_equality): Likewise.
14488 (record_equivalences_from_incoming_edge): Likewise.
14489 (cprop_into_successor_phis, optimize_stmt): Likewise.
14490 (eliminate_redundant_computations): Likewise.
14491 (dom_opt_dom_walker::thread_across_edge): Update access to
14492 const_and_copies object and pass it to children as needed.
14493 (dom_opt_dom_walker::before_dom_children): Similarly.
14494 (dom_opt_dom_walker::after_dom_children): Similarly.
14496 PR tree-optimization/47679
14497 * tree-ssa-dom.c (avail_exprs): No longer file scoped. Bury
14498 it into the avail_exprs_stack class.
14499 (pass_dominator::execute): Corresponding changes to declaration
14500 and initialization of avail_exprs. Pass avail_exprs to
14501 dump_dominator_optimization_stats.
14502 (record_cond): Extract avail_exprs from avail_exprs_stack.
14503 (lookup_avail_expr): Similarly.
14504 (htab_staticstics): Remove unnecessary prototype. Move to earlier
14506 (dump_dominator_optimization_stats): Make static and prototype.
14507 Add argument for the hash table to dump.
14508 (debug_dominator_optimization_stats): Remove.
14509 * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
14511 (debug_dominator_optimization_stats): Similarly.
14512 * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
14513 "void" in prototype for pop_to_marker method. Add accessor method
14514 for the underlying avail_exprs table.
14516 * tree-ssa-threadedge.c: Remove trailing whitespace.
14518 2014-09-18 John David Anglin <danglin@gcc.gnu.org>
14520 * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
14522 (pa_ldil_cint_p): Likewise.
14523 * config/pa/pa.c (pa_cint_ok_for_move): likewise.
14524 (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
14526 * config/pa/pa.md: Likewise.
14528 2015-09-18 David Malcolm <dmalcolm@redhat.com>
14530 * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
14531 * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
14532 (diagnostic_show_locus): Likewise.
14533 (diagnostic_print_caret_line): Likewise.
14534 * diagnostic-show-locus.c: New file.
14536 2015-09-18 David Edelsohn <dje.gcc@gmail.com>
14538 * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
14539 "back" parameter. Declare label in #if block.
14541 2015-09-18 Uros Bizjak <ubizjak@gmail.com>
14543 PR middle-end/67619
14544 * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
14545 the address to a register.
14547 2015-09-18 Jeff Law <law@redhat.com>
14549 PR tree-optimization/47679
14550 * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
14551 * tree-ssa-dom.c: Remove unnecessary header includes.
14552 (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
14553 (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
14554 (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
14555 (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
14556 (pass_phi_only_cprop::execute): Likewise.
14557 (make_pass_phi_only_cprop): Likewise.
14558 * tree-ssa-phionlycprop.c: New file with moved code. Eliminate
14559 uses of file scoped statics by passing the required objects
14560 as parameters wherever needed.
14562 2015-09-18 Andrew Dixie <andrewd@gentrack.com>
14563 David Edelsohn <dje.gcc@gmail.com>
14565 * defaults.h (EH_FRAME_SECTION_NAME): Depend on
14566 EH_FRAME_THROUGH_COLLECT2.
14567 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
14569 * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
14570 even if EH_FRAME_SECTION_NAME is undefined. Restrict special
14571 collect2 labels to EH_FRAME_THROUGH_COLLECT2.
14572 * except.c (switch_to_exception_section): Use a read-only section
14573 even if EH_FRAME_SECTION_NAME is undefined.
14574 * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
14575 * collect2.c (write_c_file_stat): Provide dbase on AIX.
14576 (scan_prog_file): Don't export __dso_handle nor
14577 __gcc_unwind_dbase.
14578 * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
14579 (EH_TABLES_CAN_BE_READ_ONLY): Define.
14580 (ASM_OUTPUT_DWARF_PCREL): Define.
14581 (ASM_OUTPUT_DWARF_DATAREL): Define.
14582 (EH_FRAME_THROUGH_COLLECT2): Define.
14583 (EH_FRAME_IN_DATA_SECTION): Delete.
14584 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
14585 * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
14587 (rs6000_asm_output_dwarf_datarel): Declare.
14588 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
14589 (rs6000_aix_asm_output_dwarf_datarel): New.
14590 (rs6000_xcoff_asm_init_sections): Don't set exception_section.
14591 * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
14592 (EH_FRAME_THROUGH_COLLECT2): Define.
14593 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
14594 (EH_FRAME_THROUGH_COLLECT2): Define.
14595 (EH_TABLES_CAN_BE_READ_ONLY): Define.
14596 * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
14597 (EH_FRAME_THROUGH_COLLECT2): New.
14598 (ASM_OUTPUT_DWARF_DATAREL): New.
14599 * doc/tm.texi: Regenerate.
14601 2015-09-18 Richard Biener <rguenther@suse.de>
14603 * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
14604 we're in early phase.
14605 (schedule_generic_params_dies_gen): Likewise.
14606 (gen_remaining_tmpl_value_param_die_attribute): Do only as much
14607 work as possible, retaining unhandled cases.
14608 (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
14609 clear out generic_type_instances at the end.
14610 (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
14611 (dwarf2out_early_finish): ... here. Do most of
14612 gen_remaining_tmpl_value_param_die_attribute here.
14614 2015-09-18 Alan Lawrence <alan.lawrence@arm.com>
14616 PR tree-optimization/67283
14617 * tree-sra.c (type_consists_of_records_p): Rename to...
14618 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
14619 (completely_scalarize_record): Rename to...
14620 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
14621 (scalarize_elem): New.
14622 (analyze_all_variable_accesses): Follow renamings.
14624 2015-09-18 Richard Biener <rguenther@suse.de>
14626 * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
14629 2015-09-18 Richard Biener <rguenther@suse.de>
14631 PR tree-optimization/66142
14632 * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
14633 treat MEM[&x] and x the same.
14634 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
14635 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
14636 when we simplified sth.
14637 (vn_reference_maybe_forwprop_address): Likewise.
14638 (valueize_refs_1): When we simplified through
14639 vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
14640 set valueized_anything to true.
14641 (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
14642 one ref kills the other instead of just a offset-based test.
14643 * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
14644 for the operand_equal_p test to compare bases and also compare
14647 2015-09-17 Christian Bruel <christian.bruel@st.com>
14649 * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
14651 2015-09-17 Richard Henderson <rth@redhat.com>
14654 * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
14655 pointers that encode the alignment of the object.
14657 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
14659 PR rtl-optimization/66790
14660 * df-problems.c (LIVE): Amend documentation.
14662 2015-09-17 Richard Sandiford <richard.sandiford@arm.com>
14664 * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
14666 (GTFILES): Replace optabs.c with optabs-libfunc.c.
14667 * genopinit.c (main): Add an include guard to insn-opinit.h.
14668 Protect the rtx_code parts with NUM_RTX_CODE.
14669 * optabs.h: Split parts out to...
14670 * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
14671 * optabs.c: Split parts out to...
14672 * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
14673 * cilk-common.c: Include optabs-query.h rather than optabs.h.
14674 * fold-const.c: Likewise.
14675 * target-globals.c: Likewise.
14676 * tree-if-conv.c: Likewise.
14677 * tree-ssa-forwprop.c: Likewise.
14678 * tree-ssa-loop-prefetch.c: Likewise.
14679 * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
14680 Remove unncessary include files.
14681 * tree-ssa-phiopt.c: Likewise.
14682 * tree-ssa-reassoc.c: Likewise.
14683 * tree-switch-conversion.c: Likewise.
14684 * tree-vect-data-refs.c: Likewise.
14685 * tree-vect-generic.c: Likewise.
14686 * tree-vect-loop.c: Likewise.
14687 * tree-vect-patterns.c: Likewise.
14688 * tree-vect-slp.c: Likewise.
14689 * tree-vect-stmts.c: Likewise.
14690 * tree-vrp.c: Likewise.
14691 * toplev.c: Include optabs-query.h and optabs-libfuncs.h
14692 rather than optabs.h.
14693 * expr.c: Include optabs-tree.h.
14694 * function.c: Likewise.
14696 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
14698 PR middle-end/65958
14699 * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
14700 * config/arm/arm-protos.h (output_probe_stack_range): Declare.
14701 * config/arm/arm.c: Include common/common-target.h.
14702 (use_return_insn): Return 0 if the static chain register was saved
14703 above a non-APCS frame.
14704 (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
14705 (struct scratch_reg): New.
14706 (get_scratch_register_on_entry): New function.
14707 (release_scratch_register_on_entry): Likewise.
14708 (arm_emit_probe_stack_range): Likewise.
14709 (output_probe_stack_range): Likewise.
14710 (arm_expand_prologue): Factor out code dealing with the IP register
14711 for nested function and adjust it for stack checking.
14712 Invoke arm_emit_probe_stack_range if static builtin stack checking
14714 (thumb1_expand_prologue): Sorry out if static builtin stack checking
14716 (arm_expand_epilogue): Add the saved static chain register, if any, to
14717 the amount of pre-pushed registers to pop.
14718 (arm_frame_pointer_required): Return true if static stack checking is
14719 enabled and we want to catch the exception with the EABI unwinder.
14720 * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
14721 (UNSPEC_PROBE_STACK_RANGE): Likewise.
14722 * config/arm/arm.md (probe_stack): New insn.
14723 (probe_stack_range): Likewise.
14725 2015-09-17 Richard Biener <rguenther@suse.de>
14727 * genmatch.c (parser::parse_expr): Improve error message
14728 for mis-placed flags.
14730 2015-09-17 Richard Biener <rguenther@suse.de>
14732 * passes.c (rest_of_decl_compilation): Always call early_global_decl
14733 debug hook when we created a varpool node.
14734 * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
14735 dwarf2out_early_global_decl, when not just add location or
14736 value attributes to existing DIEs.
14738 2015-09-17 James Greenhalgh <james.greenhalgh@arm.com>
14740 * config/aarch64/aarch64.md (copysigndf3): New.
14741 (copysignsf3): Likewise.
14743 2015-09-17 David S. Miller <davem@davemloft.net>
14745 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
14746 * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
14747 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
14748 (HARD_REGNO_CALLER_SAVE_MODE): Define.
14749 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
14750 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
14751 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
14752 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
14753 provide when flag_pic.
14755 2015-09-17 Kaz Kojima <kkojima@gcc.gnu.org>
14757 * config/sh/sh.c (label_ref_list_d_pool): Adjust to
14758 object_allocator change.
14760 2015-09-17 Bin Cheng <bin.cheng@arm.com>
14762 PR tree-optimization/66388
14763 * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
14764 (dump_iv): Dump no_overflow information.
14765 (alloc_iv): Initialize new field for struct iv.
14766 (mark_bivs): Count number of no_overflow bivs.
14767 (find_deriving_biv_for_expr, record_biv_for_address_use): New
14769 (idx_find_step): Call new functions above.
14770 (add_candidate_1, add_candidate): New paramter.
14771 (add_iv_candidate_for_biv): Add sizetype cand for BIV.
14772 (get_computation_aff): Simplify convertion of cand for BIV.
14773 (get_computation_cost_at): Step cand's base if necessary.
14775 2015-09-17 Bin Cheng <bin.cheng@arm.com>
14777 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
14779 (tree_simplify_using_condition): Ditto.
14780 (simplify_using_initial_conditions): Ditto.
14781 (loop_exits_before_overflow): Pass new argument to function
14782 simplify_using_initial_conditions. Remove case for type conversions
14784 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
14786 * tree-scalar-evolution.c (simple_iv): Simplify type conversions
14787 in iv base using loop initial conditions.
14789 2015-09-16 Jeff Law <law@redhat.com>
14791 PR tree-optimization/47679
14792 * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
14793 (free_all_edge_infos): Use it.
14794 (allocate_edge_info): Free preexisting edge info data.
14795 (pass_dominator::execute): Set up initial edge info structures.
14796 (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
14797 thread_across_edge.
14798 * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
14799 If non-null, then push/pop markers appropriately.
14800 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
14801 * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
14802 thread-across_edge.
14804 2015-09-16 James Bowman <james.bowman@ftdichip.com>
14806 * config/ft32/ft32.c: Fix the memory address space predicate.
14808 2015-09-16 Kaz Kojima <kkojima@gcc.gnu.org>
14811 * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
14812 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
14814 2015-09-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
14816 * toplev.h (check_global_declaration): Remove declaration.
14817 * toplev.c (check_global_declaration): Move to ...
14818 * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
14819 (analyze_functions): Update call.
14821 2015-09-16 David S. Miller <davem@davemloft.net>
14823 * lra-constraints.c (simplify_operand_subreg): Do not assume that
14824 lowpart of a SUBREG has offset zero.
14826 2015-09-16 Jeff Law <law@redhat.com>
14828 PR tree-optimization/47679
14829 * tree-ssa-dom.c (enum expr_kind): Moved from here to
14830 tree-ssa-scopedtables.h.
14831 (struct hashable_expr, class expr_hash_elt): Likewise.
14832 (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
14833 Move associated methods into tree-ssa-scopedtables.c.
14834 (avail_expr_hash, initialize_expr_from_cond): Similarly.
14835 (hashable_expr_equal_p, add_expr_commutative): Likewise.
14836 (add_hashable_expr): Likewise.
14837 (record_cond): Delete element directly.
14838 * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
14839 private copy ctor and assignment operator methods.
14840 (expr_elt_hasher): Inline trivial methods.
14841 (initialize_expr_from_cond): Prototype.
14842 * tree-ssa-scopedtables.c: Add necessary includes, functions and
14843 methods that were previously in tree-ssa-dom.c. Improve various
14846 2015-09-16 Paolo Carlini <paolo.carlini@oracle.com>
14848 * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
14850 2015-09-16 Segher Boessenkool <segher@kernel.crashing.org>
14853 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
14856 2015-09-16 Richard Biener <rguenther@suse.de>
14858 PR middle-end/67253
14859 * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
14860 location of possibly shared trees.
14862 2015-09-16 Richard Biener <rguenther@suse.de>
14864 PR middle-end/67271
14865 * fold-const.c (native_encode_expr): Bail out on bogus offsets.
14867 2015-09-16 Eric Botcazou <ebotcazou@adacore.com>
14869 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
14870 offset and size computations instead of HOST_WIDE_INT.
14872 2015-09-16 Richard Biener <rguenther@suse.de>
14874 PR middle-end/67442
14875 * fold-const.c (extract_muldiv_1): Properly extend multiplication
14876 result before builting a tree via wide_int_to_tree.
14878 2015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
14880 * Makefile.in: Add memory-block.cc
14881 (pool_allocator::initialize): Use fixed block size.
14882 (pool_allocator::release): Use memory_block_pool.
14883 (pool_allocator::allocate): Likewise.
14884 * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
14886 * cfg.c (initialize_original_copy_tables): Likewise.
14887 * cselib.c (elt_list_pool, elt_loc_list_pool,
14888 cselib_val_pool): Likewise.
14889 * df-problems.c (df_chain_alloc): Likewise.
14890 * df-scan.c (df_scan_alloc): Likewise.
14891 * dse.c (cse_store_info_pool, rtx_store_info_pool,
14892 read_info_type_pool, insn_info_type_pool, bb_info_pool,
14893 group_info_pool, deferred_change_pool): Likewise.
14894 * et-forest.c (et_nodes, et_occurrences): Likewise.
14895 * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
14896 ipcp_agg_lattice_pool): Likewise.
14897 * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
14898 * ipa-profile.c (histogram_pool): Likewise.
14899 * ipa-prop.c (ipa_refdesc_pool): Likewise.
14900 * ira-build.c (live_range_pool, allocno_pool, object_pool,
14901 initiate_cost_vectors, pref_pool, copy_pool): Likewise.
14902 * ira-color.c (update_cost_record_pool): Likewise.
14903 * lra-lives.c (lra_live_range_pool): Likewise.
14904 * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
14905 * memory-block.cc: New file.
14906 * memory-block.h: New file.
14907 * regcprop.c (queued_debug_insn_change_pool): Use common block size.
14908 * sched-deps.c (sched_deps_init): Likewise.
14909 * sel-sched-ir.c (sched_lists_pool): Likewise.
14910 * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
14911 * tree-sra.c (access_pool): Likewise.
14912 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
14913 * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
14914 * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
14915 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
14916 * tree-ssa-strlen.c (strinfo_pool): Likewise.
14917 * tree-ssa-structalias.c (variable_info_pool): Likewise.
14918 * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
14919 location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
14921 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
14923 * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
14925 (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
14928 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
14930 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
14931 to pass TLS call argument, according to current ABI.
14932 * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
14933 callx0 for TLS call, according to current ABI.
14935 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
14937 * tree-eh.c (lower_try_finally_dup_block): Clear location information
14938 on stack restore statements.
14939 (decide_copy_try_finally): Do not consider a stack restore statement as
14940 coming from sources.
14942 2015-09-15 Uros Bizjak <ubizjak@gmail.com>
14944 * config/alpha/alpha.c (alpha_expand_block_clear): Use
14945 HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
14947 2015-09-15 Jeff Law <law@redhat.com>
14949 PR tree-optimization/47679
14950 * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
14951 methods and private members.
14952 (avail_exprs_stack): Similarly. Change type of global
14953 from a pair of expr_hash_elt_t to the new class.
14954 (expr_elt_hasher::hash): Corresponding changes.
14955 (expr_elt_hasher::equal): Similarly.
14956 (avail_expr_hash): Similarly.
14957 (pass_dominator::execute): Similarly.
14958 (dom_opt_dom_walker::thread_across_edge): Similarly.
14959 (record_cond): Similarly.
14960 (dom_opt_dom_walker::before_dom_children): Similarly.
14961 (dom_opt_dom_walker::after_dom_children): Similarly.
14962 (lookup_avail_expr): Likewise.
14963 (initialize_hash_element): Now a expr_hash_elt constructor.
14964 (initialize_hash_element_from_expr): Similarly.
14965 (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
14966 (free_expr_hash_elt): Call dtor for the element.
14967 (remove_local_expressions_from_table): Now the "pop_to_marker"
14968 method in the available_exprs_stack class.
14969 (avail_expr_stack::record_expr): Method factored out.
14970 (print_expr_hash_elt): Now a method in the expr_hash_elt class.
14972 (hashable_expr_equal_p): Fix formatting.
14974 2015-09-15 David Malcolm <dmalcolm@redhat.com>
14976 * input.h (location_get_source_line): Drop "expanded_location"
14977 param in favor of a file and line number.
14978 * input.c (location_get_source_line): Likewise.
14979 (dump_location_info): Update for change in signature of
14980 location_get_source_line.
14981 * diagnostic.c (diagnostic_print_caret_line): Likewise.
14983 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
14985 * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
14986 Bump to 4KB for SJLJ exceptions.
14987 (STACK_CHECK_PROTECT): Likewise. Bump to 8KB for SJLJ exceptions.
14988 * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
14989 * doc/tm.texi: Regenerate.
14991 2015-09-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14993 * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
14994 of -1 when shifting. Change type of val to unsigned HOST_WIDE_INT.
14997 2015-09-15 Richard Biener <rguenther@suse.de>
14999 PR tree-optimization/67470
15000 * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
15001 structure for PHI hoisting by inserting a forwarder block
15004 2015-09-15 Christian Bruel <christian.bruel@st.com>
15006 * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
15007 (arm_option_print): New function.
15009 2015-09-15 Christian Bruel <christian.bruel@st.com>
15012 * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
15013 * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
15014 Remove flags parameter.
15015 * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
15016 (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
15017 (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
15018 (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
15019 (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
15020 (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
15021 (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
15022 * config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
15024 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
15026 * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
15028 * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
15029 AARCH64_VALID_SIMD_DREG_MODE.
15031 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
15033 * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
15034 aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
15035 (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
15036 (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
15037 aarch64_ld4_lane<mode>): Combine together, making...
15038 (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
15039 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
15040 aarch64_st4_lane<mode>): Combine together, making...
15041 (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
15042 * config/aarch64/iterators.md (nregs): Add comment.
15044 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
15046 * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
15047 Change operand mode from <V_TWO_ELEM> to BLK.
15048 (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
15049 (aarch64_vec_store_lanesoi_lane<mode): Likewise
15050 (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
15051 (aarch64_ld2_lane<mode>): Likewise.
15052 (aarch64_st2_lane<VQ:mode>): Likewise.
15053 * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
15055 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
15057 * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
15058 Change operand mode from <V_FOUR_ELEM> to BLK.
15059 (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
15060 (aarch64_vec_store_lanesxi_lane<mode): Likewise.
15061 (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
15062 (aarch64_ld4_lane<mode>): Likewise.
15063 (aarch64_st4_lane<mode>): Likewise.
15064 * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
15066 2015-09-15 Richard Biener <rguenther@suse.de>
15068 PR middle-end/67563
15069 * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
15070 transfer EH info from old to new stmt.
15071 (replace_call_with_value): Likewise.
15072 (replace_call_with_call_and_fold): Likewise.
15073 (gimple_fold_builtin_memory_op): Likewise.
15074 (gimple_fold_builtin_memset): Likewise.
15075 (gimple_fold_builtin_stpcpy): Likewise.
15076 (gimple_fold_call): Likewise.
15078 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
15080 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
15082 * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
15083 (aarch64_simd_intEI_type_node): Likewise.
15084 (aarch64_simd_builtin_std_type): Remove EImode case.
15085 (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
15086 * config/aarch64/aarch64-modes.def: Remove EImode.
15088 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
15090 * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
15091 Change operand mode from <V_THREE_ELEM> to BLK.
15092 (aarch64_vec_load_lanesci_lane<mode>): Likewise.
15093 (aarch64_vec_store_lanesci_lane<mode>): Likewise.
15094 (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
15095 (aarch64_ld3_lane<mode>): Likewise.
15096 (aarch64_st3_lane<mode>): Likewise.
15097 * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
15099 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
15101 * config/aarch64/aarch64-simd.md
15102 (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
15103 Change all TImode operands to BLKmode.
15104 (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
15105 Change all EImode operands to BLKmode.
15106 (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
15107 Change all OImode operands to BLKmode.
15109 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
15110 and call set_mem_size.
15111 (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
15113 * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
15115 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
15117 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
15119 (aarch64_vec_store_lanesoi_lane<mode>): ...this.
15121 (vec_store_lanesci_lane<mode>): Rename to...
15122 (aarch64_vec_store_lanesci_lane<mode>): ...this.
15124 (vec_store_lanesxi_lane<mode>): Rename to...
15125 (aarch64_vec_store_lanesxi_lane<mode>): ...this.
15127 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
15128 aarch64_st4_lane<mode>): Follow renaming.
15130 2015-09-15 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15132 * config/s390/s390.c (s390_const_operand_ok): Add missing
15135 2015-09-15 Richard Biener <rguenther@suse.de>
15138 * lto-streamer.h (lto_location_cache::current_sysp): Properly
15140 * lto-streamer-out.c (clear_line_info): Likewise.
15142 2015-09-15 Richard Biener <rguenther@suse.de>
15144 * doc/match-and-simplify.texi: Fix wording.
15146 2015-09-15 Bin Cheng <bin.cheng@arm.com>
15148 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
15149 unnecessary type conversion in op1.
15151 2015-09-14 Segher Boessenkool <segher@kernel.crashing.org>
15153 * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
15154 (dup_block_and_redirect): Delete function.
15155 (can_dup_for_shrink_wrapping): New function.
15156 (fix_fake_fallthrough_edge): New function.
15157 (try_shrink_wrapping): Rewrite function.
15158 (convert_to_simple_return): Call fix_fake_fallthrough_edge.
15160 2015-09-14 Rich Felker <dalias@libc.org>
15162 * configure.ac: Change target pattern for sh TLS support
15163 test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
15164 * configure: Regenerate.
15166 2015-09-14 Jeff Law <law@redhat.com>
15168 PR tree-optimization/47679
15169 * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
15170 type rather than void *.
15172 2015-09-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
15175 * diagnostic.c (diagnostic_initialize): Do not set
15176 some_warnings_are_errors.
15177 (diagnostic_finish): Use DK_WERROR count instead.
15178 (diagnostic_report_diagnostic): Do not set
15179 some_warnings_are_errors.
15180 * diagnostic.h (struct diagnostic_context): Remove
15181 some_warnings_are_errors.
15183 2015-09-14 Richard Sandiford <richard.sandiford@arm.com>
15185 * config/sparc/predicates.md (const_all_ones_operand): Use
15186 CONSTM1_RTX to simplify definition.
15188 2015-09-14 Oleg Endo <olegendo@gcc.gnu.org>
15191 * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
15194 2015-09-14 Chung-Lin Tang <cltang@codesourcery.com>
15196 * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
15197 OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
15198 OPT_fshow_column to handled saved option cases.
15199 (append_compiler_options): Do not skip the above added options.
15201 2015-09-14 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15204 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
15205 nopcrelative_literal_loads.
15206 (aarch64_classify_address): Likewise.
15207 (aarch64_constant_pool_reload_icode): Define.
15208 (aarch64_secondary_reload): Handle secondary reloads for
15210 (aarch64_override_options): Handle nopcrelative_literal_loads.
15211 (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
15212 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
15214 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
15215 * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
15216 * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
15218 * doc/invoke.texi (mpc-relative-literal-loads): Document.
15220 2015-09-14 John David Anglin <danglin@gcc.gnu.org>
15222 PR middle-end/67401
15223 * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
15224 sync_compare_and_swap_optab libcall to target_oval.
15226 2015-09-14 Marek Polacek <polacek@redhat.com>
15228 * rtlanal.c (split_double): Cast to unsigned when shifting a negative
15230 * sched-int.h (UNKNOWN_DEP_COST): Likewise.
15232 2015-09-11 Mark Wielaard <mjw@redhat.com>
15235 * toplev.c (check_global_declaration): Check and use
15236 warn_unused_const_variable.
15237 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
15238 (-Wunused-variable): Remove non-constant. For C implies
15239 -Wunused-const-variable.
15240 (-Wunused-const-variable): New.
15242 2015-09-14 Richard Biener <rguenther@suse.de>
15244 * doc/match-and-simplify.texi: Update for changed syntax
15245 of inner ifs and the new switch expression.
15247 2015-09-14 Yuri Rumyantsev <ysrumyan@gmail.com>
15249 * config/i386/haswell.md: New file describing Haswell pipeline.
15250 * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
15251 haswell-like processors.
15252 (ix86_reassociation_width): Increase reassociation width for 64-bit
15253 Haswell processor family.
15254 * config/i386/i386.md: Introduce haswell cpu and include new md file.
15256 2015-09-14 Richard Biener <rguenther@suse.de>
15258 * doc/match-and-simplify.texi: Fixup some formatting issues
15259 and document the 's' flag.
15261 2015-09-13 Olivier Hainque <hainque@adacore.com>
15262 Eric Botcazou <ebotcazou@adacore.com>
15264 * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
15265 gr6 as possible values, defaulting to gr5. Set target_cpu_default2.
15266 * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
15267 (TARGET_CPU_gr5): Likewise.
15268 (TARGET_CPU_gr6): Likewise.
15269 (MULTILIB_DEFAULTS): Likewise.
15270 * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
15271 for mcpu=gr5 and mcpu=gr6.
15272 (MULTILIB_DIRNAMES): Adjust accordingly.
15274 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15276 * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
15277 (mem_ref_p): Likewise.
15278 (outermost_indep_loop): Adjust.
15279 (mem_ref_in_stmt): Likewise.
15280 (determine_max_movement): Likewise.
15281 (mem_ref_alloc): Likewise.
15282 (record_mem_ref_loc): Likewise.
15283 (set_ref_stored_in_loop): Likewise.
15284 (mark_ref_stored): Likewise.
15285 (gather_mem_refs_stmt): Likewise.
15286 (mem_refs_may_alias_p): Likewise.
15287 (for_all_locs_in_loop): Likewise.
15288 (struct rewrite_mem_ref_loc): Likewise.
15289 (rewrite_mem_refs): Likewise.
15290 (struct first_mem_ref_loc_1): Likewise.
15291 (first_mem_ref_loc): Likewise.
15292 (struct sm_set_flag_if_changed): Likewise.
15293 (execute_sm_if_changed_flag_set): Likewise.
15294 (execute_sm): Likewise.
15295 (hoist_memory_references):
15296 (struct ref_always_accessed): Likewise.
15297 (ref_always_accessed_p): Likewise.
15298 (refs_independent_p): Likewise.
15299 (record_dep_loop): Likewise.
15300 (ref_indep_loop_p_1): Likewise.
15301 (ref_indep_loop_p_2): Likewise.
15302 (ref_indep_loop_p): Likewise.
15303 (can_sm_ref_p): Likewise.
15304 (find_refs_for_sm): Likewise.
15305 (tree_ssa_lim_finalize): Likewise.
15307 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15309 * dwarf2out.c (dw_attr_ref): Remove typedef.
15310 (dw_line_info_ref): Likewise.
15311 (pubname_ref): Likewise.
15312 (dw_ranges_ref): Likewise.
15313 (dw_ranges_by_label_ref): Likewise.
15314 (comdat_type_node_ref): Likewise.
15316 (get_AT_low_pc): Likewise.
15317 (get_AT_hi_pc): Likewise.
15318 (get_AT_string): Likewise.
15319 (get_AT_flag): Likewise.
15320 (get_AT_unsigned): Likewise.
15321 (get_AT_ref): Likewise.
15322 (get_AT_file): Likewise.
15323 (remove_AT): Likewise.
15324 (print_die): Likewise.
15325 (check_die): Likewise.
15326 (die_checksum): Likewise.
15327 (attr_checksum_ordered): Likewise.
15328 (struct checksum_attributes): Likewise.
15329 (collect_checksum_attributes): Likewise.
15330 (die_checksum_ordered): Likewise.
15331 (same_die_p): Likewise.
15332 (is_declaration_die): Likewise.
15333 (clone_die): Likewise.
15334 (clone_as_declaration): Likewise.
15335 (copy_declaration_context): Likewise.
15336 (break_out_comdat_types): Likewise.
15337 (copy_decls_walk): Likewise.
15338 (output_location_lists): Likewise.
15339 (external_ref_hasher::hash): Likewise.
15340 (optimize_external_refs_1): Likewise.
15341 (build_abbrev_table): Likewise.
15342 (size_of_die): Likewise.
15343 (unmark_all_dies): Likewise.
15344 (size_of_pubnames): Likewise.
15345 (output_die_abbrevs): Likewise.
15346 (output_die): Likewise.
15347 (output_pubnames): Likewise.
15348 (add_ranges_num): Likewise.
15349 (add_ranges_by_labels): Likewise.
15350 (add_high_low_attributes): Likewise.
15351 (gen_producer_string): Likewise.
15352 (dwarf2out_set_name): Likewise.
15353 (new_line_info_table): Likewise.
15354 (prune_unused_types_walk_attribs): Likewise.
15355 (prune_unused_types_update_strings): Likewise.
15356 (prune_unused_types): Likewise.
15357 (resolve_addr): Likewise.
15358 (optimize_location_lists_1): Likewise.
15359 (index_location_lists): Likewise.
15360 (dwarf2out_finish): Likewise.
15362 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15364 * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
15366 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15368 * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
15369 (dump_asserts_for): Adjust.
15370 (register_new_assert_for): Likewise.
15371 (process_assert_insertions): Likewise.
15372 (insert_range_assertions): Likewise.
15374 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15376 * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
15377 and remove typedef.
15378 (new_temp_expr_table): Adjust.
15379 (free_temp_expr_table): Likewise.
15380 (version_to_be_replaced_p): Likewise.
15381 (make_dependent_on_partition): Likewise.
15382 (add_to_partition_kill_list): Likewise.
15383 (remove_from_partition_kill_list): Likewise.
15384 (add_dependence): Likewise.
15385 (finished_with_expr): Likewise.
15386 (process_replaceable): Likewise.
15387 (kill_expr): Likewise.
15388 (kill_virtual_exprs): Likewise.
15389 (mark_replaceable): Likewise.
15390 (find_replaceable_in_bb): Likewise.
15391 (find_replaceable_exprs): Likewise.
15392 (debug_ter): Likewise.
15394 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15396 * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
15397 (struct btr_user): Rename from btr_user_s.
15398 (struct btr_def): Rename from btr_def_s.
15399 (find_btr_def_group): Adjust.
15400 (add_btr_def): Likewise.
15401 (new_btr_user): Likewise.
15402 (note_other_use_this_block): Likewise.
15403 (compute_defs_uses_and_gen): Likewise.
15404 (link_btr_uses): Likewise.
15405 (build_btr_def_use_webs): Likewise.
15406 (block_at_edge_of_live_range_p): Likewise.
15407 (btr_def_live_range): Likewise.
15408 (combine_btr_defs): Likewise.
15409 (move_btr_def): Likewise.
15410 (migrate_btr_def): Likewise.
15411 (migrate_btr_defs): Likewise.
15413 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15415 * var-tracking.c (shared_hash_def): Rename to shared_hash.
15416 (shared_hash): Remove typedef.
15417 (struct dataflow_set): Adjust.
15418 (shared_hash_unshare): Likewise.
15419 (dataflow_set_merge): Likewise.
15420 (vt_initialize): Likewise.
15421 (vt_finalize): Likewise.
15423 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15425 * var-tracking.c (struct location_chain): Rename from
15426 location_chain_def.
15427 (struct variable_part): Adjust.
15428 (variable_htab_free): Likewise.
15429 (unshare_variable): Likewise.
15430 (get_init_value): Likewise.
15431 (get_addr_from_local_cache): Likewise.
15432 (drop_overlapping_mem_locs): Likewise.
15433 (val_reset): Likewise.
15434 (struct variable_union_info): Likewise.
15435 (variable_union): Likewise.
15436 (find_loc_in_1pdv): Likewise.
15437 (insert_into_intersection): Likewise.
15438 (intersect_loc_chains): Likewise.
15439 (canonicalize_loc_order_check): Likewise.
15440 (canonicalize_values_mark): Likewise.
15441 (canonicalize_values_star): Likewise.
15442 (canonicalize_vars_star): Likewise.
15443 (variable_merge_over_cur): Likewise.
15444 (remove_duplicate_values): Likewise.
15445 (variable_post_merge_new_vals): Likewise.
15446 (variable_post_merge_perm_vals): Likewise.
15447 (find_mem_expr_in_1pdv): Likewise.
15448 (dataflow_set_preserve_mem_locs): Likewise.
15449 (dataflow_set_remove_mem_locs): Likewise.
15450 (variable_part_different_p): Likewise.
15451 (onepart_variable_different_p): Likewise.
15452 (find_src_set_src): Likewise.
15453 (dump_var): Likewise.
15454 (set_slot_part): Likewise.
15455 (clobber_slot_part): Likewise.
15456 (delete_slot_part): Likewise.
15457 (vt_expand_var_loc_chain): Likewise.
15458 (emit_note_insn_var_location): Likewise.
15459 (vt_finalize): Likewise.
15461 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15463 * dse.c (store_info_t): Remove typedef.
15464 (group_info_t): Likewise.
15465 (const_group_info_t): Likewise.
15466 (deferred_change_t): Likewise.
15467 (get_group_info): Adjust.
15468 (free_store_info): Likewise.
15469 (canon_address): Likewise.
15470 (clear_rhs_from_active_local_stores): Likewise.
15471 (record_store): Likewise.
15472 (replace_read): Likewise.
15473 (check_mem_read_rtx): Likewise.
15474 (scan_insn): Likewise.
15475 (remove_useless_values): Likewise.
15476 (dse_step1): Likewise.
15477 (dse_step2_init): Likewise.
15478 (dse_step2_nospill): Likewise.
15479 (scan_stores_nospill): Likewise.
15480 (scan_reads_nospill): Likewise.
15481 (dse_step3_exit_block_scan): Likewise.
15482 (dse_step3): Likewise.
15483 (dse_step5_nospill): Likewise.
15484 (dse_step6): Likewise.
15486 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15488 * alias.c (alias_set_entry_d): Rename to alias_set_entry.
15489 (alias_set_entry): Remove typedef.
15490 (alias_set_subset_of): Adjust.
15491 (alias_sets_conflict_p): Likewise.
15492 (init_alias_set_entry): Likewise.
15493 (get_alias_set): Likewise.
15494 (new_alias_set): Likewise.
15495 (record_alias_subset): Likewise.
15497 2015-09-13 Gerald Pfeifer <gerald@pfeifer.com>
15499 * doc/install.texi (Downloading the source): Mark up
15500 contrib/download_prerequisites properly and drop leading "./".
15502 2015-09-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15504 * config/arc/arc.h: Remove define of STRUCT_VALUE.
15505 * config/lm32/lm32.h: Likewise.
15506 * config/mep/mep.h: Likewise.
15507 * config/visium/visium.h: Likewise.
15508 * system.h: Poison STRUCT_VALUE macro.
15510 2015-09-12 John David Anglin <danglin@gcc.gnu.org>
15512 * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
15513 CONSTANT_P operands.
15515 2015-09-11 David S. Miller <davem@davemloft.net>
15517 * config/sparc/constraints.md: Make "U" constraint a real register
15519 * config/sparc/sparc.c (TARGET_LRA_P): Define.
15520 (D_MODES, DF_MODES): Add missing cast.
15521 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
15522 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
15523 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
15525 * config/sparc/sparc.h (PROMOTE_MODE): Define.
15526 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
15527 provide these insn when flag_pic.
15529 2015-09-11 Jeff Law <law@redhat.com>
15531 PR tree-optimization/47679
15532 * tree-ssa-dom.c (struct cond_equivalence): Update comment.
15533 * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
15534 member with m_. Update inline member functions as necessary. Add
15536 * tree-ssa-scopedtables.c: Update const_and_copies's member
15537 functions to use m_ prefix to access the stack.
15539 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
15541 * graphite-optimize-isl.c (disable_tiling): Remove.
15542 (get_schedule_for_band): Do not use disable_tiling.
15543 (get_prevector_map): Delete function.
15544 (enable_polly_vector): Remove.
15545 (get_schedule_for_band_list): Remove dead code.
15547 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
15549 * graphite-optimize-isl.c (get_tile_map): Refactor.
15550 (get_schedule_for_band): Same.
15551 (getScheduleForBand): Same.
15552 (get_prevector_map): Same.
15553 (get_schedule_for_band_list): Same.
15554 (get_schedule_map): Same.
15555 (get_single_map): Same.
15556 (apply_schedule_map_to_scop): Same.
15557 (optimize_isl): Same.
15559 2015-09-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15562 * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
15564 * config/aarch64/iterators.md (GPF_TF_F16): New.
15567 2015-09-10 Nathan Sidwell <nathan@acm.org>
15569 * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
15570 (nvptx_reorg): Adjust comments.
15572 2015-09-15 John David Anglin <danglin@gcc.gnu.org>
15575 * configure.ac: Check if setenv and unsetenv are declared.
15576 * configure: Rebuild.
15577 * config.in: Rebuild.
15578 * system.h: Declare setenv and unsetenv if not declared.
15580 2015-09-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15582 * config/rs6000/rs6000.c (swap_web_entry): Update preceding
15583 commentary to simplify permute mask adjustment equation.
15584 (special_handling_values): Add SH_VPERM.
15585 (const_load_sequence_p): New function.
15586 (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
15587 the mask loaded from the constant pool.
15588 (adjust_vperm): New function.
15589 (handle_special_swappables): Call adjust_vperm.
15590 (dump_swap_insn_table): Handle SH_VPERM.
15592 2015-09-10 H.J. Lu <hongjiu.lu@intel.com>
15594 * shrink-wrap.c (requires_stack_frame_p): Remove static.
15595 * shrink-wrap.h (requires_stack_frame_p): Put back.
15597 2015-09-10 Richard Sandiford <richard.sandiford@arm.com>
15599 * reload1.c (elimination_costs_in_insn): Locally turn
15600 -Wmaybe-uninitialized into a warning.
15602 2015-09-10 Segher Boessenkool <segher@kernel.crashing.org>
15604 * shrink-wrap.c (requires_stack_frame_p): Make static.
15605 (prepare_shrink_wrap): Likewise.
15606 (dup_block_and_redirect): Likewise.
15607 * shrink-wrap.h: Remove declarations of those functions.
15609 2015-09-10 Mark Wielaard <mjw@redhat.com>
15611 * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
15613 2015-09-10 Oleg Endo <olegendo@gcc.gnu.org>
15616 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
15617 missing simplify_gen_subreg.
15619 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15621 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
15622 the vector element is bigger than 64 bit.
15624 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15626 * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
15627 ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
15629 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15631 * config/s390/s390.c: Add V1TImode to constant pool modes.
15633 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15636 * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
15637 predicate. Set predicable_short_it attr to "no".
15639 2015-09-10 Jiong Wang <jiong.wang@arm.com>
15641 PR rtl-optimization/67421
15642 * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
15643 left wide shift tranformation.
15645 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
15647 * common/config/arc/arc-common.c: Remove references to A5.
15648 * config/arc/arc-opts.h: Likewise.
15649 * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
15650 * config/arc/arc.opt, config/arc/constraints.md: Likewise.
15651 * config/arc/t-arc-newlib: Likewise.
15653 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
15655 * config/arc/arc.md (length): Fix attribute length for conditional
15656 executed instructions with long immediate.
15658 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15660 * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
15661 type for second alternative.
15663 2015-09-10 Markus Trippelsdorf <markus@trippelsdorf.de>
15665 * doc/invoke.texi (Downloading GCC): Mention
15666 contrib/download_prerequisites script.
15668 2015-09-10 Jakub Jelinek <jakub@redhat.com>
15671 * gimplify.c (gimplify_omp_for): If inner stmt is not found
15672 for combined loop, assert seen_error () and return GS_ERROR.
15674 PR middle-end/67521
15675 * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
15676 if decl is already in outer->variables.
15678 PR middle-end/67517
15679 * gimplify.c (gimplify_scan_omp_clauses): Instead of
15680 asserting that decl is not specified in octx->variables,
15681 break out of the loop if it is.
15684 * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
15685 iterator is not explicitly determined, but is defined inside
15686 of the combined workshare region, handle it like if it has
15687 DECL_EXPR in OMP_FOR_PRE_BODY.
15689 2015-09-09 Nathan Sidwell <nathan@acm.org>
15691 * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
15692 (*cmp<mode>): Add assembler spacing.
15693 (setcc_int<mode>, set_cc_float<mode>): Likewise.
15694 * config/nvptx/nvptx.c (nvptx_option_override): Override debug
15696 (write_func_decl_from_insn): Refactor argument loops & comma emission.
15697 (nvptx_expand_call): Likewise.
15698 (nvptx_output_call_insn): Likewise.
15699 (nvptx_reorg_subreg): Add spacing.
15701 2015-09-09 Marek Polacek <polacek@redhat.com>
15703 PR middle-end/67512
15704 * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
15707 2015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
15710 * doc/invoke.texi ([Wsubobject-linkage]): Document.
15712 2015-09-09 Tom de Vries <tom@codesourcery.com>
15714 * params-list.h: Add missing copyright notice.
15716 2015-09-09 Nathan Sidwell <nathan@acm.org>
15718 * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
15719 sel_truesi, not andsi.
15721 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15723 * config/arm/arm.md (*subsi3_compare0): Rename to...
15724 (subsi3_compare0): ... This.
15725 (modsi3): New define_expand.
15726 * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
15727 when operand is power of 2.
15729 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15731 * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
15732 (*neg<mode>2_compare0): Rename to...
15733 (neg<mode>2_compare0): ... This.
15734 * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
15735 Move check for speed inside the if-then-elses. Reflect
15736 CSNEG sequence in MOD by power of 2 case.
15738 2015-09-09 Alan Modra <amodra@gmail.com>
15741 * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
15742 reload replacement for PRE_MODIFY address reg.
15744 2015-09-09 Sebastian Pop <s.pop@samsung.com>
15746 PR tree-optimization/53852
15747 * config.in: Regenerate.
15748 * configure: Regenerate.
15749 * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
15750 * graphite-optimize-isl.c (optimize_isl): Stop computation when
15751 PARAM_MAX_ISL_OPERATIONS is reached.
15752 * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
15753 * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
15754 result equal to isl_stat_ok as the status now can be isl_error_quota.
15755 (subtract_commutative_associative_deps): Same.
15756 (compute_deps): Same.
15758 2015-09-08 Aditya Kumar <hiraditya@msn.com>
15759 Sebastian Pop <s.pop@samsung.com>
15761 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
15762 Return the parameter if it was saved in corresponding
15763 parameter_rename_map of the region.
15764 (copy_def): Copy def from sese region to the newly created region.
15765 (copy_internal_parameters): Copy all the internal parameters defined
15766 within a region to the newly created region.
15767 (graphite_regenerate_ast_isl): Copy parameters to the new region before
15768 translating isl to gimple.
15769 * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
15770 the loop-nest does not have any data-references.
15771 (build_graphite_scops): Create a scop only when there is at least one
15773 (contains_only_close_phi_nodes): Deleted.
15774 (print_graphite_scop_statistics): Deleted
15775 (print_graphite_statistics): Deleted
15776 (limit_scops): Deleted.
15777 (build_scops): Removed call to limit_scops.
15778 * sese.c (new_sese): Construct.
15779 (free_sese): Destruct.
15780 (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
15782 (set_rename): Pass sese region so that parameters inside the region can
15783 be added to its parameter_rename_map.
15784 (rename_uses): Pass sese region.
15785 (graphite_copy_stmts_from_block): Do not copy parameters that have been
15786 generated in the header of the scop. For each SSA_NAME in the
15787 parameter_rename_map rename its usage.
15788 (invariant_in_sese_p_rec): Return false if tree t is defined outside
15790 (scalar_evolution_in_region): If the tree t is invariant just return t.
15791 * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
15792 struct sese to keep track of all the parameters which need renaming.
15793 * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
15795 * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
15797 2015-09-08 Tom de Vries <tom@codesourcery.com>
15799 * Makefile.in (generated_files): Add params.list.
15800 (params.list, s-params.list): Add rule.
15801 * params.h (enum compiler_param): Include params-list.h. Move define
15802 DEFPARAM, include params.def and undef DEFPARAM ...
15803 * params-list.h: ... here. New file.
15805 2015-09-08 David Malcolm <dmalcolm@redhat.com>
15807 * pretty-print.h (printer_fn): Fix typo in comment.
15809 2015-09-07 Jeff Law <law@redhat.com>
15811 * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
15813 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
15815 * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
15816 (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
15817 (arm_neon_fp16_hw): New.
15819 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
15821 * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
15822 UNITS_PER_WORD >= 4.
15824 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
15826 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
15827 aarch64_simd_vec_unpacks_hi_<mode>): New insn.
15828 (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
15829 (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
15830 (aarch64_float_extend_lo_v2df): Rename to...
15831 (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
15833 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
15834 (float_extend_lo): Add v4sf.
15836 * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
15837 * config/aarch64/iterators.md (VQ_HSF): New iterator.
15838 (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
15839 (Vwide): New mode_attr.
15841 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
15843 * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
15844 aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
15845 aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
15846 vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
15847 V4HF and V8HF variants to iterator.
15849 * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
15851 * config/aarch64/iterators.md (VDQF_F16): New.
15852 (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
15854 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
15856 * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
15857 vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
15858 vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
15859 vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
15860 vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
15861 vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
15862 vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
15863 vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
15864 vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
15865 vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
15866 vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
15867 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
15868 vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
15869 vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
15870 vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
15871 vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
15872 vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
15873 vld1q_dup_f16): New.
15875 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
15877 * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
15878 Reparameterize to...
15879 (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
15880 (aarch64_float_truncate_hi_v4sf): Reparameterize to...
15881 (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
15883 * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
15885 (float_truncate_lo_): Use BUILTIN_VDF iterator.
15887 * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
15889 * config/aarch64/iterators.md (VDF, Vdtype): New.
15890 (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
15892 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
15894 * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
15895 * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
15896 (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
15897 Add __builtin_aarch64_simd_hf.
15898 * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
15899 float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
15900 vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
15901 vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
15902 vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
15903 vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
15904 vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
15905 vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
15906 vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
15908 * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
15909 V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
15910 (VDC, Vdbl): Add V4HF.
15912 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
15914 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
15915 V4HFmode and V8HFmode.
15916 (aarch64_split_simd_move): Add case for V8HFmode.
15917 * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
15918 (aarch64_simd_builtin_std_type): Handle HFmode.
15919 (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
15921 * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
15922 aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
15923 (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
15925 * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
15928 * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
15929 * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
15931 (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
15932 vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
15933 vst1q_lane_f16): New.
15934 * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
15935 (VALLDI_F16, VALL_F16): New.
15936 (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
15937 Add cases for V4HF and V8HF.
15938 (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
15940 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
15942 * config/arm/arm-builtins.c (VAR11, VAR12): New.
15943 * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
15944 vld4_dup): Add v4hf variant.
15945 (vget_high, vget_low): Add v8hf variant.
15946 (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
15947 vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
15948 v4hf and v8hf variants.
15950 * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
15952 (V_DOUBLE): Add case for V4HF.
15954 (V_HALF): Add case for V8HF.
15955 (VDQX): Add V4HF, V8HF.
15956 (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
15957 V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
15959 * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
15960 neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
15961 vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
15962 neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
15963 neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
15964 neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
15965 vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
15966 neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
15967 neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
15969 (neon_vcreate, neon_vreinterpretv8qi<mode>,
15970 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
15971 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
15972 Change VDX to VD_RE.
15974 (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
15975 neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
15976 Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
15978 * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
15979 float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
15980 vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
15981 vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
15982 vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
15983 vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
15984 vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
15985 vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
15986 vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
15988 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
15990 * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
15991 vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
15992 vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
15993 vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
15994 vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
15995 vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
15996 vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
15997 vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
15998 vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
15999 vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
16002 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
16004 * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
16006 * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
16008 * config/arm/arm-builtins.c (v8hf_UP): New.
16009 (arm_init_simd_builtin_types): Initialise Float16x8_t.
16011 * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
16013 * config/arm/arm_neon.h (float16x8_t): New typedef.
16015 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
16017 * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
16018 vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
16019 vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
16020 vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
16021 vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
16022 vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
16023 vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
16024 vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
16025 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
16026 vreinterpret_u16_f16, vreinterpret_u32_f16): New.
16028 2015-09-07 Ilya Verbin <ilya.verbin@intel.com>
16030 * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
16031 non-alphanumeric characters in the symbol name.
16033 2015-09-07 Marek Polacek <polacek@redhat.com>
16035 PR inline-asm/67448
16036 * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
16039 2015-09-07 Marek Polacek <polacek@redhat.com>
16041 * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
16043 2015-09-04 Paolo Bonzini <bonzini@gnu.org>
16045 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
16048 2015-09-04 Jakub Jelinek <jakub@redhat.com>
16050 PR middle-end/67452
16051 * tree-ssa-live.c: Include cfgloop.h.
16052 (remove_unused_locals): Clear loop->simduid if simduid is about
16053 to be removed from cfun->local_decls.
16055 2015-09-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
16058 * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
16061 2015-09-04 Tom de Vries <tom@codesourcery.com>
16063 * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
16065 2015-09-04 Jeff Law <law@redhat.com>
16067 * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
16068 unnecessary constructor. It's now trivial and implemented inside...
16069 * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
16070 constructor. Add comments to various methods. Remove unused
16072 * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
16073 * tree-vrp.c (identify_jump_threads): Likewise.
16074 * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
16075 indentation issues.
16076 (thread_across_edge): Similarly.
16077 (record_temporary_equivalences_from_stmts_at_dest): Remove unused
16078 arguments in constructor call.
16080 2015-09-04 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
16082 * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
16083 temp path contains a '-'.
16085 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
16086 Petr Murzin <petr.murzin@intel.com>
16087 Kirill Yukhin <kirill.yukhin@intel.com>
16089 * config/i386/i386-builtin-types.def
16090 (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
16091 (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
16092 (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
16093 (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
16094 * config/i386/i386.c
16095 (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
16096 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
16097 IX86_BUILTIN_SCATTERALTDIV16SI.
16098 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
16099 __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
16100 __builtin_ia32_scatteraltdiv8si.
16101 (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
16102 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
16103 IX86_BUILTIN_SCATTERALTDIV16SI.
16104 (ix86_vectorize_builtin_scatter): New.
16105 (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
16106 ix86_vectorize_builtin_scatter.
16108 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
16109 Petr Murzin <petr.murzin@intel.com>
16110 Kirill Yukhin <kirill.yukhin@intel.com>
16112 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
16113 * doc/tm.texi: Regenerate.
16114 * target.def: Add scatter builtin.
16115 * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
16116 for loads/stores in case of gather/scatter accordingly.
16117 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
16118 STMT_VINFO_GATHER_P(S).
16119 (vect_check_gather): Rename to ...
16120 (vect_check_gather_scatter): this.
16121 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
16122 STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
16123 (vect_check_gather_scatter): Use it instead of vect_check_gather.
16124 (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
16125 variable and new checkings for it accordingly.
16126 * tree-vect-stmts.c
16127 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
16128 STMT_VINFO_GATHER_P(S).
16129 (vect_check_gather_scatter): Use it instead of vect_check_gather.
16130 (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
16132 2015-09-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
16134 * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
16136 (mulv16qi3): New define_expand.
16138 2015-09-03 Martin Sebor <msebor@redhat.com>
16141 * doc/extend.texi (Other Builtins): Document when the address
16142 of a built-in function can be taken.
16144 2015-09-03 Richard Biener <rguenther@suse.de>
16146 * dwarf2out.c (flush_limbo_die_list): Split out from ...
16147 (dwarf2out_early_finish): ... here.
16148 (dwarf2out_finish): Do not call dwarf2out_early_finish but
16149 flush_limbo_die_list. Assert we have no deferred asm names.
16151 2015-09-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16153 * optabs.c (expand_binop): Don't create a broadcast vector with a
16154 source element wider than the inner mode.
16156 2015-09-03 Richard Biener <rguenther@suse.de>
16158 * varasm.c (output_constant): Use fold_convert instead of
16161 2015-09-03 Tom de Vries <tom@codesourcery.com>
16163 PR tree-optimization/65637
16164 * omp-low.c (expand_omp_for_static_chunk): Handle case that
16165 fin_bb has 2 predecessors.
16167 2015-09-03 Tom de Vries <tom@codesourcery.com>
16169 PR tree-optimization/65637
16170 * omp-low.c (find_phi_with_arg_on_edge): New function.
16171 (expand_omp_for_static_chunk): Fix inner loop phi.
16173 2015-09-03 Tom de Vries <tom@codesourcery.com>
16175 PR tree-optimization/65637
16176 * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
16179 2015-09-03 Tom de Vries <tom@codesourcery.com>
16181 * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
16183 2015-09-03 Tom de Vries <tom@codesourcery.com>
16185 * doc/invoke.texi (parloops-chunk-size): Add item.
16186 * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
16187 * tree-parloops.c: Include params.h.
16188 (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
16189 param parloops-chunk-size is used.
16191 2015-09-03 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
16193 PR middle-end/67351
16194 * fold-const.c (fold_binary_loc) : Move
16195 Transform (x >> c) << c into x & (-1<<c) or
16196 transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
16197 types using simplify and match.
16198 * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
16199 (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
16201 2015-09-03 Richard Biener <rguenther@suse.de>
16204 * tree-ssa-structalias.c (ctor_for_analysis): New function.
16205 (create_variable_info_for_1): Use ctor_for_analysis instead
16206 of get_constructor.
16207 (create_variable_info_for): Likewise.
16209 2015-09-02 Charles Baylis <charles.baylis@linaro.org>
16212 * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
16213 in new callgraph edge.
16215 2015-09-02 Christophe Lyon <christophe.lyon@linaro.org>
16220 * config/aarch64/aarch64-simd.md
16221 (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
16222 gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
16223 (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
16224 gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
16226 2015-09-02 Alan Modra <amodra@gmail.com>
16228 * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
16229 * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
16230 (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
16232 2015-09-02 Alan Modra <amodra@gmail.com>
16235 * config/rs6000/predicates.md (current_file_function_operand): Don't
16236 return true for weak symbols.
16237 * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
16239 2015-09-01 Matthew Fortune <matthew.fortune@imgtec.com>
16240 Andrew Bennett <andrew.bennett@imgtec.com>
16242 * config/mips/mips-opts.h (mips_cb_setting): New enum.
16243 * config/mips/mips-protos.h: Add definitions for
16244 mips_output_jump and mips_output_equal_conditional_branch
16245 * config/mips/mips.c (MIPS_JR): Change to support the
16247 (mips_emit_compare): Add support for the MIPS R6 conditional
16249 (mips_process_sync_loop): Likewise.
16250 (mips_output_order_conditional_branch): Likewise.
16251 (mips16_build_call_stub): Change MIPS_CALL to
16253 (mips_print_operand_punctuation): Update 's' case to only
16254 apply to micromips r2.
16255 (mips_adjust_insn_length): Add support for forbidden slot
16257 (mips_avoid_hazard): Likewise.
16258 (mips_reorg_process_insns): Likewise.
16259 (mips_output_jump): New function.
16260 (mips_output_equal_conditional_branch): Likewise.
16261 (mips_output_conditional_branch): Use jrc/bc if compact
16262 branch support is enabled. Ensure the forbidden slots
16263 between the two branch instructions is filled with a nop.
16264 (mips_option_override): Add support to process the compact
16265 branch option and set the correct defaults. Prevent
16266 non-explict relocs being using for MIPS R6.
16267 (mips_trampoline_init): Add compact branch support.
16268 (mips_mult_zero_zero_cost): Allow zero initialisation of
16269 accumulators with TARGET_DSP.
16270 * config/mips/mips.h (TARGET_CB_NEVER): New define.
16271 (TARGET_CB_MAYBE): New define.
16272 (TARGET_CB_ALWAYS): New define.
16273 (ISA_HAS_DELAY_SLOTS): New define.
16274 (ISA_HAS_COMPACT_BRANCHES): New define.
16275 (ISA_HAS_JRC): New define.
16276 (MIPS_BRANCH_C): New define.
16277 (MIPS_CALL): Removed.
16278 (MICROMIPS_J): Removed.
16279 * config/mips/mips.md (compact_form): New attr.
16280 (hazard): Add support for forbidden slots.
16281 (define_delay): Add support for compact branches.
16282 (*branch_order<mode>): Likewise.
16283 (*branch_order<mode>_inverted): Likewise.
16284 (*branch_equality<mode>): Likewise.
16285 (*branch_equality<mode>_inverted): Likewise.
16286 (*jump_absolute): Likewise.
16287 (*jump_pic): Likewise.
16288 (indirect_jump): Use mips_output_jump to produce assembly output.
16289 (tablejump_<mode>"): Likewise.
16290 (*<optab>"): Likewise.
16291 (<optab>_internal): Likewise.
16292 (sibcall_internal): Likewise.
16293 (sibcall_value_internal): Likewise.
16294 (sibcall_value_multiple_internal): Likewise.
16295 (call_internal): Likewise.
16296 (call_split): Likewise.
16297 (call_internal_direct): Likewise.
16298 (call_direct_split): Likewise.
16299 (call_value_internal): Likewise.
16300 (call_value_split): Likewise.
16301 (call_value_internal_direct): Likewise.
16302 (call_value_direct_split): Likewise.
16303 (call_value_multiple_internal): Likewise.
16304 (call_value_multiple_split): Likewise.
16305 (mips_get_fcsr_mips16_<mode>): Likewise.
16306 (mips_set_fcsr_mips16_<mode>): Likewise.
16307 (tls_get_tp_mips16_<mode>): Likewise.
16308 * config/mips/mips.opt: Add -mcompact-branches option.
16309 * config/mips/predicates.md (order_operator): Ensure the
16310 conditional compact branches are only used if the ISA them.
16311 * doc/invoke.texi: Document -mcompact-branches option.
16313 2015-09-01 Vladimir Makarov <vmakarov@redhat.com>
16316 * lra-lives.c (process_bb_lives): Process move pseudos with the
16317 same value for copies and preferences
16318 * lra-constraints.c (match_reload): Create match reload pseudo
16319 with the same value from single dying input pseudo.
16321 2015-09-01 Ilya Enkovich <enkovich.gnu@gmail.com>
16324 * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
16326 2015-09-01 Aldy Hernandez <aldyh@redhat.com>
16328 * trans-mem.c: Add contributed-by.
16329 * trans-mem.h: Same.
16331 2015-09-01 Richard Biener <rguenther@suse.de>
16333 * expr.c (expand_expr_real_1): For expanding TERed defs
16334 set the current location to that of the def if not UNKNOWN.
16336 2015-09-01 David Sherwood <david.sherwood@arm.com>
16338 * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
16340 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16342 * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
16343 then_cost, else_cost fields. Change branch_cost field to unsigned int.
16344 (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
16345 Include rtl-iter.h.
16346 (noce_simple_bbs): New function.
16347 (noce_try_move): Bail if basic blocks are not simple.
16348 (noce_try_store_flag): Likewise.
16349 (noce_try_store_flag_constants): Likewise.
16350 (noce_try_addcc): Likewise.
16351 (noce_try_store_flag_mask): Likewise.
16352 (noce_try_cmove): Likewise.
16353 (noce_try_minmax): Likewise.
16354 (noce_try_abs): Likewise.
16355 (noce_try_sign_mask): Likewise.
16356 (noce_try_bitop): Likewise.
16357 (bbs_ok_for_cmove_arith): New function.
16358 (noce_emit_all_but_last): Likewise.
16359 (noce_emit_insn): Likewise.
16360 (noce_emit_bb): Likewise.
16361 (noce_try_cmove_arith): Handle non-simple basic blocks.
16362 (insn_valid_noce_process_p): New function.
16363 (contains_mem_rtx_p): Likewise.
16364 (bb_valid_for_noce_process_p): Likewise.
16365 (noce_process_if_block): Allow non-simple basic blocks
16368 2015-08-31 Alan Lawrence <alan.lawrence@arm.com>
16370 * tree-ssa-dom.c (record_equivalences_from_phis,
16371 record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
16372 (lookup_avail_expr): Likewise, and remove comment and unused temp.
16374 2015-09-01 Nick Clifton <nickc@redhat.com>
16376 * config/msp430/msp430.opt (mcpu): Fix typo.
16378 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16380 * config/aarch64/aarch64.c (aarch64_set_current_function):
16381 Re-layout any vector parameters have non-simd layout.
16382 * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
16384 (aarch64_simd_expand_args): Delete call to the above.
16386 2015-08-31 Mike Frysinger <vapier@gentoo.org>
16388 * doc/invoke.texi (asan-stack): Add space before option.
16390 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
16392 * tree.h (zerop): New function.
16393 * tree.c (zerop): Likewise.
16394 (element_precision): Handle expressions.
16395 * match.pd (define_predicates): Add zerop.
16396 (x <= +Inf): Fix comment.
16397 (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
16398 * fold-const.c (fold_binary_loc): ... here. Remove.
16400 2015-08-31 Richard Biener <rguenther@suse.de>
16402 PR middle-end/67381
16403 * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
16405 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
16407 * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
16408 (CEXPI): New operator list.
16409 (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
16410 imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
16412 * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
16414 2015-08-31 Tom de Vries <tom@codesourcery.com>
16416 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
16417 (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
16419 (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
16420 (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
16421 (rewrite_into_loop_closed_ssa): ... here.
16422 (replace_uses_in_dominated_bbs): Remove function.
16423 (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
16424 rewrite_into_loop_closed_ssa_1.
16426 2015-08-31 Michael Matz <matz@suse.de>
16428 * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
16429 enter entry and exit blocks for reverse post order.
16431 2015-08-31 Richard Biener <rguenther@suse.de>
16433 * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
16434 (lto_location_cache::current_sysp): Likewise.
16435 (output_block::current_sysp): Likewise.
16436 * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
16437 (lto_location_cache::apply_location_cache): Properly record
16438 system header locations.
16439 (lto_location_cache::input_location): Input whether a file
16440 is a system header.
16441 * lto-streamer-out.c (lto_output_location): Stream whether a file
16442 is a system header.
16444 2015-08-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16447 * gcc.c (env_manager::xput): Replace strndup by xstrndup.
16449 2015-08-31 Tom de Vries <tom@codesourcery.com>
16451 * tree-ssa-loop-manip.c (find_uses_to_rename_use)
16452 (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
16453 Improve function header comments.
16455 2015-08-30 Michael Collison <michael.collison@linaro.org>
16458 * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
16461 2015-08-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16463 * config/rs6000/rs6000.c (swap_web_entry): Enlarge
16464 special_handling bitfield.
16465 (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
16466 (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
16467 that represents a general xxpermdi.
16468 (insn_is_swappable_p): Add handling for vec_concat of two
16469 doublewords, which maps to a specific xxpermdi.
16470 (adjust_xxpermdi): New function.
16471 (adjust_concat): Likewise.
16472 (handle_special_swappables): Call adjust_xxpermdi and
16474 (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
16476 2015-08-30 Rich Felker <dalias@libc.org>
16478 * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
16479 case instead of sh[123456ble]-*-*.
16481 2015-08-29 Anatoly Sokolov <aesok@post.ru>
16483 * ira.c (print_unform_and_important_classes,
16484 print_translated_classes): Remove reg_class_names static array.
16485 (print_unform_and_important_classes): Rename to ...
16486 (print_uniform_and_important_classes): ... this.
16487 (ira_debug_allocno_classes): Update accordingly.
16489 2015-08-29 Tom de Vries <tom@codesourcery.com>
16491 PR tree-optimization/46193
16492 * omp-low.c (omp_reduction_init): Handle pointer type for min or max
16495 2015-08-28 Jeff Law <law@redhat.com>
16498 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
16499 unable to find X NE 0 in the tables, return X as the simplified
16501 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
16502 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
16504 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
16505 after removing the control flow statement and unnecessary edges.
16507 2015-08-28 Alan Lawrence <alan.lawrence@arm.com>
16510 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
16512 PR tree-optimization/67283
16513 * tree-sra.c (type_consists_of_records_p): Rename to...
16514 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
16516 (completely_scalarize_record): Rename to...
16517 (completely_scalarize): ...this, add ARRAY_TYPE case, move some
16519 (scalarize_elem): New.
16521 2015-08-28 Jiong Wang <jiong.wang@arm.com>
16523 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
16524 SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
16525 (aarch64_symbol_type): Likewise.
16526 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
16528 (aarch64_expand_mov_immediate): Likewise.
16529 (aarch64_print_operand): Likewise.
16530 (aarch64_classify_tls_symbol): Likewise.
16532 2015-08-28 Richard Biener <rguenther@suse.de>
16534 * cgraphunit.c (symbol_table::compile): Move early debug generation
16536 (symbol_table::finalize_compilation_unit): ... back here and
16537 add a !seen_error () guard.
16539 2015-08-27 Sebastian Pop <s.pop@samsung.com>
16541 * toplev.c (process_options): Do not use flag_loop_block,
16542 flag_loop_interchange, and flag_loop_strip_mine. Add check for
16543 flag_loop_optimize_isl.
16545 2015-08-27 Sebastian Pop <s.pop@samsung.com>
16547 * Makefile.in (OBJS): Remove graphite-blocking.o and
16548 graphite-interchange.o.
16549 * common.opt (floop-strip-mine, floop-interchange, floop-block):
16550 Alias of floop-nest-optimize.
16551 * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
16552 Document as alias of -floop-nest-optimize.
16553 * graphite-blocking.c: Remove.
16554 * graphite-interchange.c: Remove.
16555 * graphite-optimize-isl.c: Include dumpfile.h.
16556 (getScheduleForBand): Add dump for tiled loops. Use
16557 PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
16558 * graphite-poly.c (scop_max_loop_depth): Remove.
16559 (print_scattering_function_1): Remove.
16560 (print_scattering_function): Remove.
16561 (print_scattering_functions): Remove.
16562 (debug_scattering_function): Remove.
16563 (debug_scattering_functions): Remove.
16564 (apply_poly_transforms): Remove use of flag_loop_block,
16565 flag_loop_strip_mine, and flag_loop_interchange.
16566 (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
16568 (print_pdr_access_layout): Remove.
16569 (print_pdr): Print ISL representation.
16570 (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
16571 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
16573 (openscop_print_pbb_domain): Remove.
16574 (print_pbb): Remove call to print_scattering_function.
16575 (openscop_print_scop_context): Remove.
16576 (print_scop_context): Do not print matrices anymore.
16577 (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
16578 SCOP_TRANSFORMED_SCHEDULE.
16579 (print_isl_set): Add printing of a new line.
16580 (print_isl_map): Same.
16581 (print_isl_aff): Same.
16582 (print_isl_constraint): Same.
16583 (loop_to_lst): Remove.
16584 (scop_to_lst): Remove.
16585 (lst_indent_to): Remove.
16586 (print_lst): Remove.
16587 (debug_lst): Remove.
16588 (dot_lst_1): Remove.
16590 (reverse_loop_at_level): Remove.
16591 (reverse_loop_for_pbbs): Remove.
16592 * graphite-poly.h (pdr_dim_iter_domain): Remove.
16593 (pdr_nb_params): Remove.
16594 (pdr_alias_set_dim): Remove.
16595 (pdr_subscript_dim): Remove.
16596 (pdr_iterator_dim): Remove.
16597 (pdr_parameter_dim): Remove.
16598 (same_pdr_p): Remove.
16599 (struct poly_scattering): Remove.
16600 (struct poly_bb): Remove _original, _transformed, _saved.
16601 (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
16602 (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
16603 (PBB_NB_LOCAL_VARIABLES): Remove.
16604 (PBB_NB_SCATTERING_TRANSFORM): Remove.
16605 (schedule_to_scattering): Remove.
16606 (number_of_write_pdrs): Remove.
16607 (pbb_dim_iter_domain): Remove.
16608 (pbb_nb_params): Remove.
16609 (pbb_nb_scattering_orig): Remove.
16610 (pbb_nb_scattering_transform): Remove.
16611 (pbb_nb_dynamic_scattering_transform): Remove.
16612 (pbb_nb_local_vars): Remove.
16613 (pbb_iterator_dim): Remove.
16614 (pbb_parameter_dim): Remove.
16615 (psco_scattering_dim): Remove.
16616 (psct_scattering_dim): Remove.
16617 (psct_local_var_dim): Remove.
16618 (psco_iterator_dim): Remove.
16619 (psct_iterator_dim): Remove.
16620 (psco_parameter_dim): Remove.
16621 (psct_parameter_dim): Remove.
16622 (psct_dynamic_dim): Remove.
16623 (psct_static_dim): Remove.
16624 (psct_add_local_variable): Remove.
16625 (new_lst_loop): Remove.
16626 (new_lst_stmt): Remove.
16627 (free_lst): Remove.
16628 (copy_lst): Remove.
16629 (lst_add_loop_under_loop): Remove.
16630 (lst_depth): Remove.
16631 (lst_dewey_number): Remove.
16632 (lst_dewey_number_at_depth): Remove.
16633 (lst_pred): Remove.
16634 (lst_succ): Remove.
16635 (lst_find_pbb): Remove.
16636 (find_lst_loop): Remove.
16637 (lst_find_first_pbb): Remove.
16638 (lst_empty_p): Remove.
16639 (lst_find_last_pbb): Remove.
16640 (lst_contains_p): Remove.
16641 (lst_contains_pbb): Remove.
16642 (lst_create_nest): Remove.
16643 (lst_remove_from_sequence): Remove.
16644 (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
16645 (lst_niter_for_loop): Remove.
16646 (pbb_update_scattering): Remove.
16647 (lst_update_scattering_under): Remove.
16648 (lst_update_scattering): Remove.
16649 (lst_insert_in_sequence): Remove.
16650 (lst_replace): Remove.
16651 (lst_substitute_3): Remove.
16652 (lst_distribute_lst): Remove.
16653 (lst_remove_all_before_including_pbb): Remove.
16654 (lst_remove_all_before_excluding_pbb): Remove.
16655 (struct scop): Remove original_schedule, transformed_schedule, and
16657 (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
16658 (SCOP_SAVED_SCHEDULE): Remove.
16659 (poly_scattering_new): Remove.
16660 (poly_scattering_free): Remove.
16661 (poly_scattering_copy): Remove.
16662 (store_scattering_pbb): Remove.
16663 (store_lst_schedule): Remove.
16664 (restore_lst_schedule): Remove.
16665 (store_scattering): Remove.
16666 (restore_scattering_pbb): Remove.
16667 (restore_scattering): Remove.
16668 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
16669 Remove scattering_dimensions. Do not use pbb_dim_iter_domain:
16670 compute the scattering polyhedron dimension from the dimension of
16672 (build_scop_scattering): Update call to
16673 build_pbb_scattering_polyhedrons.
16674 (build_poly_scop): Remove call to scop_to_lst.
16675 * graphite.c (graphite_transform_loops): Add call to print_scop.
16676 (gate_graphite_transforms): Remove use of flag_loop_block,
16677 flag_loop_interchange, and flag_loop_strip_mine.
16679 2015-08-27 Sebastian Pop <s.pop@samsung.com>
16681 * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
16682 * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
16683 -floop-nest-optimize.
16684 * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
16685 (generate_luj_sepclass): Remove.
16686 (generate_luj_options): Remove.
16687 (set_options): Remove opt_luj.
16688 (scop_to_isl_ast): Remove opt_luj.
16689 * graphite-optimize-isl.c (getScheduleForBand): Remove check for
16690 flag_loop_unroll_jam.
16691 (getPrevectorMap_full): Remove.
16692 (getScheduleForBandList): Remove map_sepcl.
16693 (getScheduleMap): Same.
16694 (apply_schedule_map_to_scop): Remove sepcl.
16695 (optimize_isl): Same.
16696 * graphite-poly.c (apply_poly_transforms): Remove check for
16697 flag_loop_unroll_jam.
16698 (new_poly_bb): Remove map_sepclass.
16699 * graphite-poly.h (struct poly_bb): Same.
16700 * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
16701 * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
16702 (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
16703 * toplev.c (process_options): Remove flag_loop_unroll_jam.
16705 2015-08-27 Uros Bizjak <ubizjak@gmail.com>
16708 * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
16709 (addqi3_cc): Ditto.
16710 (UNSPEC_ADD_CARRY): Remove.
16711 (addqi3_cconly_overflow): New expander.
16712 (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
16713 Adjust for changed add<mode>3_carry.
16714 (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
16715 (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
16716 (<plusminus_insn><mode>3_carry): Remove expander.
16717 (*<plusminus_insn><mode>3_carry): Split insn pattern to
16718 add<mode>3_carry and sub<mode>3_carry.
16719 (plusminus_carry_mnemonic): Remove code attribute.
16720 (add<mode>3_carry): Canonicalize insn pattern.
16721 (*addsi3_carry_zext): Ditto.
16722 (sub<mode>3_carry): Ditto.
16723 (*subsi3_carry_zext): Ditto.
16724 (adcx<mode>3): Remove insn pattern.
16725 (addcarry<mode>): New insn pattern.
16726 (subborrow<mode>): Ditto.
16727 * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
16728 gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
16729 (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
16730 case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
16731 case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
16732 CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
16733 Rewrite expander to not clobber carry flag chains.
16735 2015-08-27 Pat Haugen <pthaugen@us.ibm.com>
16737 * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
16738 instead of a rotate.
16740 2015-08-27 Marek Polacek <polacek@redhat.com>
16742 PR middle-end/67005
16743 * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
16744 an entry into an irreducible region.
16746 2015-08-27 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
16748 * configure: Regenerate.
16750 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
16752 PR tree-optimization/67283
16753 * tree-sra.c (type_consists_of_records_p): Rename to...
16754 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
16756 (completely_scalarize_record): Rename to...
16757 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
16758 (scalarize_elem): New.
16760 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
16762 * tree-sra.c (completely_scalarize_var): Rename to...
16763 (create_total_scalarization_access): ... Here. Drop call to
16764 completely_scalarize_record.
16766 (analyze_all_variable_accesses): Replace completely_scalarize_var
16767 with create_total_scalarization_access and completely_scalarize_record.
16769 2015-08-27 Alan Modra <amodra@gmail.com>
16772 * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
16775 2015-08-27 Richard Biener <rguenther@suse.de>
16777 * passes.c (rest_of_decl_compilation): Guard early_global_decl
16778 call with !seen_error ().
16779 * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
16780 early debug generation and finish...
16781 (symbol_table::compile): ... here to put it after a !seen_error ()
16784 2015-08-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16786 * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
16789 2015-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16790 Andre Vieira <andre.simoesdiasvieira@arm.com>
16792 * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
16793 (*cb<optab><mode>1): Likewise.
16794 (*tb<optab><mode>1): Likewise.
16795 (*cb<optab><mode>1): Likewise.
16796 * config/aarch64/iterators.md (inv_cb): New code attribute.
16797 (inv_tb): Likewise.
16798 * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
16799 * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
16801 2015-08-27 Richard Biener <rguenther@suse.de>
16803 * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
16805 2015-08-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
16807 * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
16810 2015-08-26 Michael Meissner <meissner@linux.vnet.ibm.com>
16812 * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
16815 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
16817 (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
16818 floating point in VSX registers.
16819 (rs6000_output_move_128bit): Always print out the set insn if we
16820 can't generate an appropriate 128-bit move.
16821 (rs6000_generate_compare): Add support for IEEE 128-bit floating
16822 point in VSX registers comparisons.
16823 (rs6000_expand_float128_convert): Likewise.
16825 * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
16826 predicate for only GPR hard registers.
16828 * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
16829 modes to iterators. Add new iterators for moving 128-bit values in
16830 scalar FPR registers and VSX registers.
16831 (FMOVE128): Likewise.
16832 (FMOVE128_FPR): Likewise.
16833 (FMOVE128_GPR): Likewise.
16834 (FMOVE128_VSX): Likewise.
16835 (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
16838 (IBM128): Likewise.
16839 (TFIFKF): Likewise.
16840 (RELOAD): Add IEEE 128-bit floating point modes.
16841 (signbittf2): Convert TF insns to add support for new IEEE 128-bit
16842 floating point in VSX registers modes.
16843 (signbit<mode>2, IBM128 iterator): Likewise.
16844 (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
16845 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
16846 (negtf2): Likewise.
16847 (neg<mode>2, TFIFKF iterator): Likewise.
16848 (negtf2_internal): Likewise.
16849 (abstf2): Likewise.
16850 (abs<mode>2, TFIFKF iterator): Likewise.
16851 (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
16852 VSX insn support for negate, absolute value, and negative absolute
16854 (ieee_128bit_vsx_neg<mode>2): Likewise.
16855 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
16856 (ieee_128bit_vsx_abs<mode>2): Likewise.
16857 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
16858 (ieee_128bit_vsx_nabs<mode>2): Likewise.
16859 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
16860 (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
16861 floating point in VSX registers.
16862 (unpack<mode>_dm): Likewise.
16863 (unpack<mode>_nodm): Likewise.
16864 (pack<mode>): Likewise.
16865 (unpackv1ti): Likewise.
16866 (unpack<mode>, FMOVE128_VSX iterator): Likewise.
16867 (packv1ti): Likewise.
16868 (pack<mode>, FMOVE128_VSX iterator): Likewise.
16869 (extenddftf2): Add support for IEEE 128-bit floating point in VSX
16871 (extenddftf2_internal): Likewise.
16872 (trunctfdf2): Likewise.
16873 (trunctfdf2_internal2): Likewise.
16874 (fix_trunc_helper): Likewise.
16875 (fix_trunctfdi2"): Likewise.
16876 (floatditf2): Likewise.
16877 (floatuns<mode>tf2): Likewise.
16878 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
16879 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
16880 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
16881 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
16882 (float<SDI:mode><IFKF:mode>2): Likewise.
16883 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
16885 2015-08-26 Renlin Li <renlin.li@arm.com>
16887 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
16889 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
16890 Jiong Wang <jiong.wang@arm.com>
16892 * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
16893 (tlsie_tiny_<mode>): New define_insn.
16894 (tlsie_tiny_sidi): Likewise.
16895 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
16897 (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
16898 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
16900 (aarch64_expand_mov_immediate): Likewise.
16901 (aarch64_print_operand): Likewise.
16902 (arch64_classify_tls_symbol): Likewise.
16904 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
16906 * config/arm/arm-arches.def: Replace single value flags with
16907 an initializer built from ARM_FSET_MAKE_CPU1.
16908 * config/arm/arm-cores.def: Likewise.
16909 * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
16910 derivation from the ARM_CORE macro definition, use the given value
16912 (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
16913 ARM_ARCH macro definition, use the given value instead.
16915 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
16917 * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
16919 (struct builtin_description): Replace field mask with field
16921 (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
16922 (IWMMXT2_BUILTIN): Likewise.
16923 (IWMMXT2_BUILTIN2): Likewise.
16924 (FP_BUILTIN): Likewise.
16925 (CRC32_BUILTIN): Likewise.
16926 (CRYPTO_BUILTIN): Likewise.
16927 (iwmmx_mbuiltin): Likewise.
16928 (iwmmx2_mbuiltin): Likewise.
16929 (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
16930 struct builtin_description.
16932 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
16934 * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
16935 (struct builtin_description): Change type of mask to unsigned
16937 * config/arm/arm-protos.h (insn_flags): Declare as type
16939 (tune_flags): Likewise.
16940 * config/arm/arm.c (feature_count): New.
16941 (insn_flags): Define as type arm_feature_set.
16942 (tune_flags): Likewise.
16943 (struct processors): Define field flags as type arm_feature_set.
16944 (all_cores): Update for change to struct processors.
16945 (all_architectures): Likewise.
16946 (arm_option_check_internal): Use arm_feature_set and ARM_FSET
16948 (arm_option_override_internal): Likewise.
16949 (arm_option_override): Likewise.
16951 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
16952 Jiong Wang <jiong.wang@arm.com>
16954 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
16955 tls size for tiny, small, large memory model.
16956 (aarch64_load_symref_appropriately): Support new symbol types.
16957 (aarch64_expand_mov_immediate): Likewise.
16958 (aarch64_print_operand): Likewise.
16959 (aarch64_classify_tls_symbol): Likewise.
16960 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
16961 (aarch64_symbol_type): Likewise.
16962 * config/aarch64/aarch64.md (tlsle): Deleted.
16963 (tlsle12_<mode>): New define_insn.
16964 (tlsle24_<mode>): Likewise.
16965 (tlsle32_<mode>): Likewise.
16966 (tlsle48_<mode>): Likewise.
16967 * doc/sourcebuild.texi (AArch64-specific attributes): Document
16970 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
16972 * config/arm/arm-protos.h (FL_NONE): New.
16974 (arm_feature_set): New.
16975 (ARM_FSET_MAKE): New.
16976 (ARM_FSET_MAKE_CPU1): New.
16977 (ARM_FSET_MAKE_CPU2): New.
16978 (ARM_FSET_CPU1): New.
16979 (ARM_FSET_CPU2): New.
16980 (ARM_FSET_EMPTY): New.
16981 (ARM_FSET_ANY): New.
16982 (ARM_FSET_HAS_CPU1): New.
16983 (ARM_FSET_HAS_CPU2): New.
16984 (ARM_FSET_HAS_CPU): New.
16985 (ARM_FSET_ADD_CPU1): New.
16986 (ARM_FSET_ADD_CPU2): New.
16987 (ARM_FSET_DEL_CPU1): New.
16988 (ARM_FSET_DEL_CPU2): New.
16989 (ARM_FSET_UNION): New.
16990 (ARM_FSET_INTER): New.
16991 (ARM_FSET_XOR): New.
16992 (ARM_FSET_EXCLUDE): New.
16993 (AFM_FSET_IS_EMPTY): New.
16994 (ARM_FSET_CPU_SUBSET): New.
16996 2015-08-26 Jiong Wang <jiong.wang@arm.com>
16998 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
16999 SYMBOL_TLSLE to SYMBOL_TLSLE24.
17000 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
17002 (aarch64_expand_mov_immediate): Likewise.
17003 (aarch64_print_operand): Likewise.
17004 (aarch64_classify_symbol): Likewise.
17006 2015-08-26 Jiong Wang <jiong.wang@arm.com>
17008 * config/aarch64/aarch64.opt (mtls-size): New entry.
17009 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
17010 (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
17011 * doc/invoke.texi (AArch64 Options): Document -mtls-size.
17013 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
17015 * config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
17016 ARM_CORE entry. Fix some white-space.
17017 * config/arm/arm.c: Remove FL_FOR_ARCH derivation from
17018 ARM_CORE definition.
17020 2015-08-26 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
17022 * fold-const.c (fold_binary_loc) : Move Optimize
17023 root(x)*root(y) as root(x*y) to match.pd.
17024 Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
17025 Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
17026 Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
17027 Move Optimize x/expN(y) into x*expN(-y) to match.pd.
17028 * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
17029 (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
17030 (mult (exps:s @0) (exps:s @1)) : New simplifier.
17031 (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
17032 (rdiv @0 (exps:s @1)) : New simplifier.
17034 2015-08-25 Joseph Myers <joseph@codesourcery.com>
17036 * gcc.c (driver::finalize): Only assign to extra_specs if
17039 2015-08-25 Marek Polacek <polacek@redhat.com>
17041 PR middle-end/67330
17042 * varasm.c (declare_weak): Return after giving an error.
17044 2015-08-25 David Malcolm <dmalcolm@redhat.com>
17046 * gcc-main.c (main): Add params to driver ctor.
17047 * gcc.c (class env_manager): New.
17049 (env_manager::init): New.
17050 (env_manager::get): New.
17051 (env_manager::xput): New.
17052 (env_manager::restore): New.
17053 Poison getenv and putenv.
17054 (DEFAULT_TARGET_SYSTEM_ROOT): New.
17055 (target_system_root): Update initialization to use
17056 DEFAULT_TARGET_SYSTEM_ROOT.
17057 (struct spec_list): Add field "default_ptr".
17058 (INIT_STATIC_SPEC): Initialize new field "default_ptr".
17059 (init_spec): Likewise.
17060 (set_spec): Clear field "default_ptr".
17061 (read_specs): Free "spec" and "buffer".
17062 (xputenv): Reimplement in terms of env_manager.
17063 (process_command): Replace ::getenv calls with calls to the
17064 env_manager singleton.
17065 (process_brace_body): Free string in three places.
17066 (driver::driver): New.
17067 (driver::~driver): New.
17068 (used_arg): Convert from a function to...
17069 (class used_arg_t): ...this class, and...
17070 (used_arg): ...this new global instance.
17071 (used_arg_t::finalize): New function.
17072 (getenv_spec_function): Add "const" to local "value". Replace
17073 ::getenv call with call to the env_manager singleton.
17074 (path_prefix_reset): New function.
17075 (driver::finalize): New function.
17076 * gcc.h (driver::driver): New.
17077 (driver::~driver): New.
17078 (driver::finalize): New.
17080 2015-08-25 Nathan Sidwell <nathan@acm.org>
17082 * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
17083 target doesn't have one.
17085 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
17088 * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
17090 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
17093 * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
17094 a define_insn, remove second alternative.
17096 2015-08-25 Thomas Schwinge <thomas@codesourcery.com>
17097 Joseph Myers <joseph@codesourcery.com>
17099 * gcc.c (struct switchstr): Expand comment.
17101 2015-08-25 Nathan Sidwell <nathan@acm.org>
17103 * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
17104 (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
17106 2015-08-25 Richard Biener <rguenther@suse.de>
17108 PR middle-end/67306
17109 * genmatch.c (expr::gen_transform): Verify the result of
17110 builtin_decl_implicit.
17111 (dt_simplify::gen_1): Likewise.
17113 2015-08-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
17115 * config/arm/constraints.md: Also list Cs and US ARM-specific
17116 constraints as used.
17118 2015-08-24 Kaz Kojima <kkojima@gcc.gnu.org>
17121 * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
17123 (nonpic_symbol_mentioned_p): Likewise.
17124 (sh_delegitimize_address): Likewise.
17125 (sh_function_ok_for_sibcall): Take into account weak symbols.
17126 (sh_expand_sym_label2reg): New.
17127 * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
17128 * config/sh/sh.md (UNSPEC_PCREL): New enum.
17129 (call_pcrel): Use sh_expand_sym_label2reg.
17130 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
17131 (symPCREL_label2reg) New expand.
17133 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
17135 * graphite-poly.c: Change type of region from void* to sese.
17136 * graphite-poly.h (struct scop): Changing the type of scop::region
17137 from void* to sese. Change accessor macro accordingly.
17138 * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
17140 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
17142 * graphite-scop-detection.c (stmt_simple_for_scop_p):
17143 Constrain only on INTEGER_TYPE.
17145 2015-08-24 Michael Meissner <meissner@linux.vnet.ibm.com>
17148 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
17149 -mefficient-unaligned-vsx on ISA 2.7.
17151 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
17152 option to a masked option.
17154 * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
17155 logic for -mefficient-unaligned-vsx so that it is set via an arch
17156 ISA option, instead of being set if -mtune=power8 is set. Move
17157 -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
17158 near other default option handling.
17160 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
17162 * genflags.c (gen_macro): Delete.
17163 (gen_proto): Don't create GEN.*CALL.* macros.
17164 * gensupport.h (get_file_location): Declare.
17165 * gensupport.c (rtx_locs): New variable.
17166 (read_md_rtx): Record rtx locations.
17167 (get_file_location): New function.
17168 * target-insns.def (call, call_pop, call_value, call_value_pop)
17169 (sibcall, sibcall_value): New patterns.
17170 * gentarget-def.c (parse_argument): New function.
17171 (def_target_insn): Use it. Handle optional operands. Raise an
17172 error if an .md pattern has the wrong number of operands for the
17173 pattern name. Remove the names of unused operands from the prototype.
17174 * builtins.c (expand_builtin_apply): Use targetm functions
17175 instead of HAVE_call_value and GEN_CALL_VALUE.
17176 * calls.c (emit_call_1): Likewise. Remove support for sibcall_pop
17177 and sibcall_value_pop.
17178 * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
17180 * config/alpha/alpha.md (untyped_call): Likewise.
17181 * config/iq2000/iq2000.md (untyped_call): Likewise.
17182 * config/m68k/m68k.md (untyped_call): Likewise.
17183 * config/mips/mips.md (untyped_call): Likewise.
17184 * config/pa/pa.md (untyped_call): Likewise.
17185 * config/rs6000/rs6000.md (untyped_call): Likewise.
17186 * config/sparc/sparc.md (untyped_call): Likewise.
17187 * config/tilegx/tilegx.md (untyped_call): Likewise.
17188 * config/tilepro/tilepro.md (untyped_call): Likewise.
17189 * config/visium/visium.md (untyped_call): Likewise.
17190 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
17191 gen_call_value instead of GEN_CALL_VALUE.
17192 * config/arm/arm.md (untyped_call): Likewise.
17193 * config/cr16/cr16.c (cr16_function_arg): Remove reference to
17196 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
17198 * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
17199 (have_cbranchcc4): New variable.
17200 (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
17201 (noce_get_condition): Use it instead of HAVE_cbranchcc4.
17202 (if_convert): Initialize have_cbranchcc4.
17204 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
17206 * builtins.c (expand_cmpstrn): Rename to...
17207 (expand_cmpstrn_or_cmpmem): ...this.
17208 (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
17209 (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
17210 Remove mode argument.
17211 (expand_builtin): Update accordingly.
17213 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
17215 * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
17216 (expand_builtin_strcmp, expand_builtin_strncmp): Use them. Remove
17217 references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
17218 * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
17219 Add predicates for operands 0 and 3.
17220 * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
17222 * config/sh/sh.md (cmpstrnsi): Change the length predicate from
17223 immediate_operand to nonmemory_operand.
17225 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
17227 * df-scan.c (df_insn_info_init_fields): New function, split out
17229 (df_insn_create_insn_record): ...here.
17230 (df_insn_info_free_fields): New function, split out from...
17231 (df_insn_info_delete): ...here.
17232 (df_insn_rescan): Use the new functions instead of freeing and
17233 reallocating the df_insn_info.
17235 2015-08-24 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
17237 * doc/install.texi (Binaries): Remove links no longer valid.
17239 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
17241 * config/nvptx/mkoffload.c (process): Replace
17242 GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
17244 2015-08-24 H.J. Lu <hongjiu.lu@intel.com>
17247 * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
17249 2015-08-24 Renlin Li <renlin.li@arm.com>
17251 * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
17252 * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
17253 * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
17254 * config/arm/constraints.md ("j"): Add check for high code.
17256 2015-08-24 Tom de Vries <tom@codesourcery.com>
17258 PR tree-optimization/65468
17259 * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
17262 2015-08-24 Nathan Sidwell <nathan@acm.org>
17264 * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
17265 change to nvptx_type_from_mode call. Use arg_promotion for both
17266 split and non-split args.
17268 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
17270 * target-insns.def (movstr): New pattern.
17271 * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
17272 (expand_movstr): Use targetm rather than HAVE_movstr/
17275 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
17277 * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
17280 2015-08-24 Andrew Pinski <apinski@cavium.com>
17282 * config/aarch64/aarch64-tuning-flags.def: Remove all index to
17283 AARCH64_EXTRA_TUNING_OPTION.
17284 * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
17286 (aarch64_extra_tuning_flags): Base the shifted value on the index
17287 instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
17288 * config/aarch64/aarch64.c: Remove the last argument to
17289 AARCH64_EXTRA_TUNING_OPTION.
17291 2015-08-23 Nathan Sidwell <nathan@acm.org>
17293 * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
17295 (nvptx_declare_function_name): Insert formatting tabs for
17298 2015-08-23 Tom de Vries <tom@codesourcery.com>
17300 * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
17301 parm_decl, rather than generating a dummy default def in cfun.
17302 * tree-cfg.c (replace_ssa_name): Assume no default defs. Make sure
17303 ssa_name from cfun and child_fn do not share a stmt as def stmt.
17304 (move_stmt_op): Handle PARM_DECl.
17305 (gather_ssa_name_hash_map_from): New function.
17306 (move_sese_region_to_fn): Add default defs for function params, and add
17307 them to vars_map. Release copied ssa names.
17308 * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
17310 2015-08-23 Tom de Vries <tom@codesourcery.com>
17312 * doc/sourcebuild.texi: Rename vect_no_int_max with
17313 vect_no_int_min_max. Update description.
17315 2015-08-22 Andrew Pinski <apinski@cavium.com>
17317 * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
17318 * config/aarch64/aarch64-protos.h
17319 (aarch64_fusion_pairs_index): New enum.
17320 (aarch64_fusion_pairs): Base the shifted value on the index instead
17321 Rewrite AARCH64_FUSE_ALL to be based on the end index.
17322 of the argument to AARCH64_FUSION_PAIR.
17323 * config/aarch64/aarch64.c: Remove the last argument to
17324 AARCH64_FUSION_PAIR.
17326 2015-08-22 Mikhail Maltsev <maltsevm@gmail.com>
17328 * dominance.c (new_zero_array): Define.
17329 (dom_info): Redefine as class with proper encapsulation.
17330 (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
17332 (dom_info::dom_info, ~dom_info): Define. Use new/delete for memory
17333 allocations/deallocations. Pass function as parameter (instead of
17335 (dom_info::get_idom): Define accessor method.
17336 (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
17337 link_roots, calc_idoms): Redefine as class members. Do not use cfun.
17338 (calculate_dominance_info): Adjust to use dom_info class.
17339 (verify_dominators): Likewise.
17341 2015-08-21 Alexandre Oliva <aoliva@redhat.com>
17343 * print-rtl.c (print_rtx): Check the correct range for
17344 flag_dump_unnumbered_links to behave as documented.
17346 PR rtl-optimization/67227
17347 PR rtl-optimization/64164
17348 * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
17349 (nonoverlapping_memrefs_p): Test offsets and sizes when given
17350 identical gimple_reg exprs.
17352 2015-08-21 Nathan Sidwell <nathan@acm.org>
17354 * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
17356 * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
17357 crtl->stack_alignment_needed to determine alignment.
17358 (nvptx_get_drap_rtx): New.
17359 (TARGET_GET_DRAP_RTX): Override.
17360 * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
17362 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
17364 * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
17366 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
17368 * configure.ac: Remove uwin* cases.
17369 * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
17370 i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
17371 i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
17372 i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
17373 * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
17374 i[34567]86-*-uwin*, powerpc-*-beos*.
17376 2015-08-21 Richard Sandiford <richard.sandiford@arm.com>
17378 * gencodes.c (gencodes): Print the comma for the preceding
17379 enum value rather than the current one. Use aliased enum values
17380 rather than #defines for compiled-out patterns.
17381 (main): Update accordingly. Replace LAST_INSN_CODE with
17383 * lra.c (insn_code_data): Update accordingly.
17384 (finish_insn_code_data_once, get_static_insn_data): Likewise.
17385 * recog.h (target_recog): Likewise.
17386 (preprocess_insn_constraints): Change parameter to unsigned int.
17387 * recog.c (preprocess_insn_constraints): Likewise.
17388 (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
17389 * tree-vect-stmts.c (vectorizable_operation): Simplify.
17391 2015-08-21 Markus Trippelsdorf <markus@trippelsdorf.de>
17393 PR rtl-optimization/61657
17394 * loop-iv.c (iv_number_of_iterations): Declare up and down as
17395 unsigned. Remove superflous uint64_t cast.
17397 2014-08-21 Felix Yang <felix.yang@huawei.com>
17398 Jiji Jiang <jiangjiji@huawei.com>
17400 * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
17401 argument and get builtin function code directly from CALL.
17402 (gimple_stringop_fixed_value): Modified accordingly.
17403 (gimple_stringops_transform, gimple_stringops_values_to_profile):
17404 Modified accordingly and only accept BUILT_IN_NORMAL string operations.
17406 2015-08-21 Dominik Vogt <vogt@linux.vnet.ibm.com>
17408 * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
17410 2015-08-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
17412 * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
17414 Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
17415 Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
17416 Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
17417 Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
17418 Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
17419 Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
17420 Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
17421 Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
17422 Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
17423 Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
17425 * match.pd (SIN ) : New Operator.
17426 (TAN) : New Operator.
17427 (mult (SQRT@1 @0) @1) : New simplifier.
17428 (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
17429 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
17430 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
17431 (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
17432 (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
17433 (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
17434 (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
17435 (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
17436 (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
17437 (rdiv @0 (POW:s @1 @2)) : New simplifier.
17439 2015-08-21 Bin Cheng <bin.cheng@arm.com>
17441 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
17442 loop if EXPR is simplified to const value.
17444 2015-08-21 Yury Gribov <y.gribov@samsung.com>
17446 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
17447 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
17449 2015-08-21 Richard Biener <rguenther@suse.de>
17451 PR middle-end/67285
17452 * gimple-fold.c (replace_stmt_with_simplification): Assert
17453 seq is empty when replacing a call with itself but different
17455 * gimple-match-head.c (maybe_push_res_to_seq): When pushing
17456 a call require that it is const.
17458 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17460 * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
17461 * builtins.c (get_object_alignment_2): Adjust.
17462 * varasm.c (align_variable): Likewise.
17463 (get_variable_align): Likewise.
17464 (build_constant_desc): Likewise.
17465 (force_const_mem): Likewise.
17466 * doc/tm.texi.in: Likewise.
17467 * doc/tm.texi: Regenerate.
17469 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17471 * genconfig.c (main): Always define HAVE_cc0.
17472 * recog.c (rest_of_handle_peephole2): Adjust.
17474 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17476 * reorg.c (relax_delay_slots): Don't use #if to check value of
17479 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17481 * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
17482 * targhooks.c (default_have_conditional_execution): Adjust.
17484 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
17486 * rtl.h (rtvec_all_equal_p): Declare.
17487 (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
17488 * rtl.c (rtvec_all_equal_p): New function.
17489 * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
17490 * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
17491 (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
17492 * config/arm/arm.c (neon_vdup_constant): Likewise.
17493 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
17494 * config/tilegx/constraints.md (W, Y): Likewise.
17495 * config/tilepro/constraints.md (W, Y): Likewise.
17496 * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
17497 (classify_immediate): Use unwrap_const_vec_duplicate.
17498 * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
17499 (reg_or_v2s8bit_operand): Likewise.
17500 * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
17501 (reg_or_v4s8bit_operand): Likewise.
17503 2015-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17505 * config/rs6000/altivec.h (vec_pmsum_be): New #define.
17506 (vec_shasigma_be): New #define.
17507 * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
17508 (VPMSUMH): Likewise.
17509 (VPMSUMW): Likewise.
17510 (VPMSUMD): Likewise.
17511 (VPMSUM): New BU_P8V_OVERLOAD_2.
17512 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
17513 entries for VEC_MADD and VEC_VPMSUM.
17515 2015-08-20 Georg-Johann Lay <avr@gjlay.de>
17517 * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
17518 Multiply argument avr_n_flash by 64 to match unit of "KiB".
17519 (avr_pgm_check_var_decl): Same.
17521 2015-08-20 Alan Lawrence <alan.lawrence@arm.com>
17523 * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
17524 initialization of HFmode scalar type (float16_t) to...
17525 (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
17528 (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
17530 * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
17531 having an -mfp16-format.
17533 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
17535 * config/i386/predicates.md (vector_all_ones_operand): Use
17536 CONSTM1_RTX to simplify definition.
17538 2015-08-20 Richard Biener <rguenther@suse.de>
17540 * toplev.c (compile_file): Remove loop calling late_global_decl
17542 * varpool.c (varpool_node::assemble_decl): Call late_global_decl
17543 on decls we assembled.
17545 2015-08-20 James Greenhalgh <james.greenhalgh@arm.com>
17547 * common/config/aarch64/aarch64-common.c
17548 (AARCH64_CPU_NAME_LENGTH): Delete.
17549 (aarch64_option_extension): New.
17550 (all_extensions): Likewise.
17551 (processor_name_to_arch): Likewise.
17552 (arch_to_arch_name): Likewise.
17554 (all_architectures): Likewise.
17555 (aarch64_get_extension_string_for_isa_flags): Likewise.
17556 (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
17557 architecture names.
17558 * config/aarch64/aarch64-protos.h
17559 (aarch64_get_extension_string_for_isa_flags): New.
17560 * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
17561 (aarch64_option_print): Get the string to print from
17562 aarch64_get_extension_string_for_isa_flags.
17563 (aarch64_declare_function_name): Likewise.
17564 * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
17565 (MCPU_TO_MARCH_SPEC): This.
17566 (ASM_CPU_SPEC): Use it.
17567 (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
17568 (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
17569 (EXTRA_SPEC_FUNCTIONS): Use it.
17571 2015-08-20 Simon Dardis <simon.dardis@imgtec.com>
17573 * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
17574 expansion when !ISA_HAS_LWL_LWR.
17575 (mips_block_move_straight): Update the size of elements copied to
17576 account for alignment when !ISA_HAS_LWL_LWR.
17577 * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
17579 2015-08-19 Jiong Wang <jiong.wang@arm.com>
17581 * expr.c (expand_expr_real_2): Check gimple statement during
17582 LSHIFT_EXPR expand.
17584 2015-08-19 Magnus Granberg <zorry@gentoo.org>
17586 * common.opt (fstack-protector): Initialize to -1.
17587 (fstack-protector-all): Likewise.
17588 (fstack-protector-strong): Likewise.
17589 (fstack-protector-explicit): Likewise.
17590 * configure.ac: Add --enable-default-ssp.
17591 * defaults.h (DEFAULT_FLAG_SSP): New. Default SSP to strong.
17592 * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
17594 * doc/install.texi: Document --enable-default-ssp.
17595 * config.in: Regenerated.
17596 * configure: Likewise.
17598 2015-08-19 Alexandre Oliva <aoliva@redhat.com>
17600 PR rtl-optimization/64164
17601 * cfgexpand.c (parm_maybe_byref_p): Renamed to...
17602 (parm_in_stack_slot_p): ... this. Disregard mode, what
17603 matters is whether the parm will live in a pseudo or a stack
17605 (expand_one_ssa_partition): Deal with params without a default
17606 def. Disregard mode.
17607 * cfgexpand.h: Renamed function declaration.
17608 * tree-ssa-coalesce.c: Adjust.
17609 * function.c (split_complex_args): Allocate stack slot for
17610 unassigned parms before splitting.
17611 (parm_in_unassigned_mem_p): New. Use it instead of
17612 parm_maybe_byref_p throughout this file.
17613 (assign_parm_setup_block): Use it. Accept pseudos in the
17614 expand-assigned rtl.
17615 (assign_parm_setup_reg): Drop BLKmode requirement.
17616 (assign_parm_setup_stack): Allocate and fill in the address of
17617 unassigned MEM parms.
17619 2015-08-19 David Sherwood <david.sherwood@arm.com>
17621 * genmodes.c (emit_mode_unit_size_inline): New function.
17622 (emit_mode_unit_precision_inline): New function.
17623 (emit_insn_modes_h): Emit new #define. Emit new functions.
17624 (emit_mode_unit_size): New function.
17625 (emit_mode_unit_precision): New function.
17626 (emit_mode_adjustments): Add mode_unit_size adjustments.
17627 (emit_insn_modes_c): Emit new arrays.
17628 * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
17629 use new inline methods.
17631 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17633 * config/aarch64/aarch64.c (bit_count): Delete prototype
17635 (aarch64_print_operand): Use popcount_hwi instead of the above.
17637 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17639 * config/aarch64/aarch64-option-extensions.def: Delete obsolete
17642 2015-08-19 Marek Polacek <polacek@redhat.com>
17644 PR middle-end/67133
17645 * gimple-ssa-isolate-paths.c
17646 (insert_trap_and_remove_trailing_statements): Rename to ...
17647 (insert_trap): ... this. Don't remove trailing statements; split
17649 (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
17651 2015-08-19 Mikael Morin <mikael@gcc.gnu.org>
17654 * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
17655 conditionalize the whole on __GNUC__. Add fallback code
17656 depending neither on undefined nor implementation-defined behaviour.
17658 2015-08-19 Jiong Wang <jiong.wang@arm.com>
17660 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
17661 whitespaces with tab.
17663 2015-08-19 Florian Weimer <fweimer@redhat.com>
17665 * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
17666 Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
17667 * prj-proc.adb (Process.Process_Expression_Variable_Decl):
17668 Move Name_Ids instantiation to the Prj.Proc package, to avoid
17671 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17673 * config/arm/arm.c (bounds_check): Use %wd print format
17674 for HOST_WIDE_INT arguments.
17676 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
17678 * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
17679 dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
17680 mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
17681 signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
17682 tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
17683 tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
17684 tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
17685 tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
17686 tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
17689 2015-08-18 trevor Saunders <tbsaunde@tbsaunde.org>
17691 * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
17692 function.c, graphite-scop-detection.c, haifa-sched.c,
17693 ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
17694 tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
17695 varasm.c: Remove typedefs of structs.
17697 2015-08-18 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
17699 * config/rs6000/altivec.h (vec_adde): New define.
17700 (vec_addec): Likewise.
17701 (vec_double): Likewise.
17702 (vec_bperm): Likewise.
17703 (vec_gb): Likewise.
17704 * config/rs6000/rs6000-builtin.def (ADDE): New
17705 BU_ALTIVEC_OVERLOAD_3.
17707 (DOUBLE): New BU_VSX_OVERLOAD_1.
17708 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
17709 entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
17710 ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
17711 VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
17712 ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
17713 ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
17714 ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
17715 P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
17716 and P8V_BUILTIN_VEC_VBPERMQ.
17718 2015-08-18 Jason Merrill <jason@redhat.com>
17720 * print-tree.c (print_node): Handle TREE_BINFO.
17722 2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
17724 PR middle-end/36757
17725 * builtins.c (expand_builtin_signbit): Add asserts to make sure
17726 we can expand BUILT_IN_SIGNBIT inline.
17727 * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
17728 * doc/extend.texi: Document the type-generic __builtin_signbit.
17730 2015-08-18 Richard Sandiford <richard.sandiford@arm.com>
17732 PR rtl-optimization/67218
17733 * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
17734 (simplify_unary_operation_1): Use it.
17736 2015-08-18 Marek Polacek <polacek@redhat.com>
17738 PR middle-end/67222
17739 * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
17740 if the call isn't valid.
17741 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
17742 gimple_call_builtin_p.
17743 (call_may_clobber_ref_p_1): Likewise.
17744 (stmt_kills_ref_p): Likewise.
17746 2015-08-18 Robert Suchanek <robert.suchanek@imgtec.com>
17748 * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
17749 * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
17750 (mips_hard_regno_scratch_ok): Likewise.
17751 (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
17752 * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
17754 2015-08-18 Bin Cheng <bin.cheng@arm.com>
17756 * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
17757 (determine_value_range): Call refine_value_range_using_guard for
17758 each loop initial condition to improve value range.
17760 2015-08-17 Aldy Hernandez <aldyh@redhat.com>
17762 * config/i386/i386.c: Remove include of fibheap.h.
17764 2015-08-17 Richard Biener <rguenther@suse.de>
17766 PR tree-optimization/67221
17767 * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
17768 (sccvn_dom_walker::before_dom_children): Mark backedges of
17769 non-executable blocks as not executable.
17771 2015-08-17 David Sherwood <david.sherwood@arm.com>
17773 * config/arm/arm.c (neon_element_bits): Replace call to
17774 GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
17775 * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
17776 (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
17777 (neon_vdup_lane<mode>): Likewise.
17778 * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
17779 (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
17780 (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
17781 * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
17782 * config/spu/spu.c (arith_immediate_p): Likewise.
17783 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
17784 * expr.c (expand_expr_real_2): Likewise.
17785 * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
17786 * simplify-rtx.c (simplify_immed_subreg): Likewise.
17787 * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
17788 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
17790 * fold-const.c (fold_binary_loc): Replace call to
17791 GET_MODE_PRECISION (GET_MODE_INNER (m)) with
17792 GET_MODE_UNIT_PRECISION (m).
17794 2015-08-17 Mike Stump <mikestump@comcast.net>
17796 * config/arm/arm.c (arm_block_move_unaligned_straight):
17797 Emit normal move instead of unaligned load when source or destination
17798 are appropriately aligned.
17800 2015-08-17 Richard Biener <rguenther@suse.de>
17801 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
17803 PR middle-end/16107
17804 * match.pd (div (coss (op @0) : New simplifier.
17806 2015-08-14 Alexandre Oliva <aoliva@redhat.com>
17808 PR rtl-optimization/64164
17810 PR middle-end/66983
17811 PR rtl-optimization/67000
17812 PR middle-end/67034
17813 PR middle-end/67035
17814 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
17815 * tree-ssa-copyrename.c: Removed.
17816 * opts.c (default_options_table): Drop -ftree-copyrename. Add
17817 -ftree-coalesce-vars.
17818 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
17819 * common.opt (ftree-copyrename): Ignore.
17820 (ftree-coalesce-inlined-vars): Likewise.
17821 * doc/invoke.texi: Remove the ignored options above.
17822 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
17823 * tree-ssa-coalesce.h: ... here.
17824 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
17825 headers required by it.
17826 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
17827 across variables when flag_tree_coalesce_vars. Check register
17828 use and promoted modes to allow coalescing. Do not coalesce
17829 maybe-byref parms with SSA_NAMEs of other variables, or
17830 anonymous SSA_NAMEs. Moved to tree-ssa-coalesce.c.
17831 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
17832 with its member functions to tree-ssa-coalesce.c.
17833 (var_map_base_init): Likewise. Renamed to
17834 compute_samebase_partition_bases.
17835 (partition_view_normal): Drop want_bases parameter.
17836 (partition_view_bitmap): Likewise.
17837 * tree-ssa-live.h: Adjust declarations.
17838 * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
17839 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
17840 default defs at the entry point.
17841 (dump_part_var_map): New.
17842 (compute_optimized_partition_bases): New, called by...
17843 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
17844 of compute_samebase_partition_bases. Adjust.
17845 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
17846 * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
17847 (ssa_default_def_partition): New.
17848 (get_rtl_for_parm_ssa_default_def): New.
17849 (align_local_variable, add_stack_var): Support anonymous SSA
17851 (defer_stack_allocation): Likewise. Declare earlier.
17852 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
17853 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
17854 Do no record deferred-allocation marker in
17855 SA.partition_to_pseudo.
17856 (expand_stack_vars): Adjust check for the marker in it.
17857 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
17858 redundant MEM attr setting.
17859 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
17861 (expand_one_stack_var): ... this. New wrapper to check and
17862 skip already expanded SSA partitions.
17863 (record_alignment_for_reg_var): New, factored out of...
17864 (expand_one_var): ... this.
17865 (expand_one_ssa_partition): New.
17866 (adjust_one_expanded_partition_var): New.
17867 (expand_one_register_var): Check and skip already expanded SSA
17869 (expand_used_vars): Don't create DECLs for anonymous SSA
17870 names. Expand all SSA partitions, then adjust all SSA names.
17871 (pass::execute): Replace the loops that set
17872 SA.partition_to_pseudo from partition leaders and cleared
17873 DECL_RTL for multi-location variables, and that which used to
17874 rename vars and set attrs, with one that clears DECL_RTL and
17875 checks that PARMs and RESULTs default_defs match DECL_RTL.
17876 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
17877 * emit-rtl.c: Include stor-layout.h.
17878 (set_reg_attrs_for_parm): Handle NULL decl.
17879 (set_reg_attrs_for_decl_rtl): Take mode from expression if
17881 * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
17882 rather than its possibly-NULL DECL.
17883 * explow.c (promote_ssa_mode): New.
17884 * explow.h (promote_ssa_mode): Declare.
17885 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
17886 (read_complex_part): Export.
17887 * expr.h (read_complex_part): Declare.
17888 * cfgexpand.h (parm_maybe_byref_p): Declare.
17889 * function.c: Include cfgexpand.h.
17890 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
17891 (use_register_for_parm_decl): Wrapper for the above to
17892 special-case the result_ptr.
17893 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
17894 (split_complex_args): Take assign_parm_data_all argument.
17895 Pass it to rtl_for_parm. Set up rtl and context for split
17896 args. Reset complex parm before fetching its default decl
17898 (assign_parms_unsplit_complex): Use the default-def complex
17899 parm rtl if it matches the components.
17900 (assign_parms_augmented_arg_list): Adjust.
17901 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
17902 multiple locations. Recognize split complex args.
17903 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
17904 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
17905 (assign_parm_setup_block): Prefer SSA-assigned location, and
17906 fill in its address if the memory location of a maybe-byref
17907 parm was not assigned by cfgexpand.
17908 (assign_parm_setup_reg): Likewise. Adjust its mode as
17909 needed. Use entry_parm for equiv if stack_parm is NULL. Make
17910 sure passed_pointer parms don't need conversion. Copy address
17911 or value as needed.
17912 (assign_parm_setup_stack): Prefer SSA-assigned location.
17913 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
17914 rtl before testing for pointer bounds. Special-case result_ptr.
17915 (expand_function_start): Maybe reset DECL_RTL of result.
17916 Prefer SSA-assigned location for result and static chain.
17917 Factor out DECL_RESULT and SET_DECL_RTL. Convert static chain
17918 to Pmode if needed, from H.J. Lu <hongjiu.lu@intel.com>.
17919 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
17920 anonymous SSA names. Use promote_ssa_mode.
17921 (get_temp_reg): Likewise.
17922 (remove_ssa_form): Adjust.
17923 * stor-layout.c (layout_decl): Don't set mem attributes of
17925 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
17926 and get its reg_usage for reg invalidation.
17927 (compute_bb_dataflow): Pass it insn.
17928 (emit_notes_in_bb): Likewise.
17930 2015-08-14 Marek Polacek <polacek@redhat.com>
17932 * tree-core.h (tree_base): Fix typo.
17934 2015-08-14 Marek Polacek <polacek@redhat.com>
17936 PR middle-end/67133
17937 * gimple.c (infer_nonnull_range_by_attribute): Check that the
17938 nonnull argument position is not outside function arguments.
17940 2015-08-14 Matthew Wahab <matthew.wahab@arm.com>
17943 * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
17944 'lconst_atomic' with 'const_atomic'.
17945 (atomic_fetch_<optab><mode>): Likewise.
17946 (atomic_<optab>_fetch<mode>): Likewise.
17947 * config/aarch64/iterators.md (lconst-atomic): Move below
17949 (const_atomic): New.
17951 2015-08-14 Thomas Schwinge <thomas@codesourcery.com>
17952 Bernd Schmidt <bernds@codesourcery.com>
17954 * config/nvptx/nvptx.c (nvptx_option_override): Don't override
17956 * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
17957 (DWARF2_DEBUGGING_INFO): Don't define.
17958 * debug.h (dwarf2_lineno_debug_hooks): Declare.
17959 * toplev.c (process_options): Add a case for it.
17960 * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
17961 (dwarf2out_init): Skip most initializations if
17962 DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
17964 * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
17965 DWARF2_LINENO_DEBUGGING_INFO.
17966 * opts.c (set_debug_level): Likewise.
17968 2015-08-14 James Greenhalgh <james.greenhalgh@arm.com>
17970 * config/arm/types.md (is_neon_type): Add missing types.
17972 2015-08-14 Yuri Rumyantsev <ysrumyan@gmail.com>
17974 * config/i386/driver-i386.c (host_detect_local_cpu): Add support
17976 * config/i386/i386.c (PTA_SKYLAKE): New macros.
17977 (processor_alias_table): Add skylake description.
17978 (enum processor_model): Add skylake processor.
17979 (arch_names_table): Add skylake record.
17980 * doc/invoke.texi: Add skylake item.
17982 2015-08-13 Andrew MacLeod <amacleod@redhat.com>
17984 * ira-int.h: Include recog.h.
17985 * ira-build.c: Don't include recog.h.
17986 * ira-color.c: Likewise.
17987 * ira-conflicts.c: Likewise.
17988 * ira-costs.c: Likewise.
17989 * ira-emit.c: Likewise.
17990 * ira-lives.c: Likewise.
17992 * sched-deps.c: Likewise.
17993 * sel-sched.c: Likewise.
17994 * target-globals.c: Likewise.
17996 2015-08-13 Richard Sandiford <richard.sandiford@arm.com>
17999 * reload1.c (elimination_costs_in_insn): Make it obvious to the
18000 compiler that the n_dups and n_operands loop bounds are invariant.
18002 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18004 * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
18005 expressions in A and B.
18007 2015-08-13 Richard Biener <rguenther@suse.de>
18009 * tree.c (nonnull_arg_p): Move from ...
18010 * tree-vrp.c (nonnull_arg_p): ... here.
18011 * tree.h (nonnull_arg_p): Declare.
18012 * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
18013 here, register ptr != 0 for nonnull_arg_p pointer arguments.
18014 Properly initialize static chain and by-reference result pointer.
18015 (run_scc_vn): Adjust.
18017 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
18019 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
18022 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
18024 * config/aarch64/aarch64-protos.h
18025 (aarch64_gen_atomic_cas): Declare.
18026 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
18027 Choose appropriate instruction pattern for the target.
18028 (aarch64_gen_atomic_cas): New.
18029 * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
18030 (atomic_compare_and_swap<mode>_1): Rename to
18031 aarch64_compare_and_swap<mode>. Fix some indentation.
18032 (aarch64_compare_and_swap<mode>_lse): New.
18033 (aarch64_atomic_cas<mode>): New.
18035 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
18037 * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
18040 2015-08-13 Richard Biener <rguenther@suse.de>
18042 PR tree-optimization/67191
18043 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
18044 assert we value-numbered last stmts operand because it can validly
18045 trigger for unreachable code.
18047 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18049 PR rtl-optimization/67103
18050 * ifcvt.c (noce_try_store_flag_constants): Move
18051 x = (-(test != 0) & (b - a)) + a transformation to...
18052 (noce_try_cmove): ... Here. Try it if normal conditional
18055 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
18057 * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
18059 * config/mips/mips.md (processor): Remove w32 and w64.
18061 2015-08-13 Richard Biener <rguenther@suse.de>
18063 PR tree-optimization/66502
18064 PR tree-optimization/67167
18065 * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
18066 backedge arguments.
18067 (vn_phi_lookup): Adjust.
18068 (vn_phi_insert): Likewise.
18069 (visit_phi): Prefer to value-number to another PHI node
18070 over value-numbering to a PHI argument.
18071 (init_scc_vn): Mark DFS back edges.
18073 2015-08-13 Richard Biener <rguenther@suse.de>
18075 * gimple.h (gcall::code_): New constant static member.
18076 (gcond::code_): Likewise.
18077 * gimple.c (gcall::code_): Define.
18078 (gcond::code_): Likewise.
18079 (is_a_helper <const gcond *>): Add.
18080 (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
18081 and forward to a new gcall overload with less checking and a
18082 cheaper way to access the operand.
18083 (gimple_call_lhs_ptr): Likewise.
18084 (gimple_call_set_lhs): Likewise.
18085 (gimple_call_internal_p): Likewise.
18086 (gimple_call_with_bounds_p): Likewise.
18087 (gimple_call_set_with_bounds): Likewise.
18088 (gimple_call_internal_fn): Likewise.
18089 (gimple_call_set_ctrl_altering): Likewise.
18090 (gimple_call_ctrl_altering_p): Likewise.
18091 (gimple_call_fntype): Likewise.
18092 (gimple_call_fn): Likewise.
18093 (gimple_call_fn_ptr): Likewise.
18094 (gimple_call_set_fndecl): Likewise.
18095 (gimple_call_fndecl): Likewise.
18096 (gimple_call_chain): Likewise.
18097 (gimple_call_num_args): Likewise.
18098 (gimple_call_arg): Likewise.
18099 (gimple_call_arg_ptr): Likewise.
18100 (gimple_call_set_arg): Likewise.
18101 (gimple_call_noreturn_p): Likewise.
18102 (gimple_cond_code): Likewise.
18103 (gimple_cond_lhs): Likewise.
18104 (gimple_cond_rhs): Likewise.
18105 (gimple_has_lhs): Reduce checking.
18107 2015-08-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
18109 PR middle-end/25529
18110 * match.pd (div (mult @0 @1) @1) : New simplifier.
18112 2015-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
18115 * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
18116 predicate to allow construction of vector constants using the
18117 VSLDOI vector shift instruction.
18119 * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
18122 * config/rs6000/rs6000.c (vspltis_shifted): New function to return
18123 the number of bytes to be shifted left and filled in with either
18124 all zero or all one bits.
18125 (gen_easy_altivec_constant): Call vsplitis_shifted if no other
18127 (output_vec_const_move): On power8, generate XXLORC to generate
18128 a vector constant with all 1's. Do a split if we need to use a
18129 VSLDOI instruction.
18131 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
18132 properly test for the MSB.
18134 * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
18135 vector constants that can be created with VSLDOI.
18137 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
18140 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
18141 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
18142 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
18143 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
18144 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
18145 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
18146 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
18147 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
18148 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
18150 2015-08-12 Max Filippov <jcmvbkbc@gmail.com>
18152 * config/xtensa/constraints.md (define_constraint "Y"): New
18154 * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
18155 * config/xtensa/linux.h (ASM_SPEC): Likewise.
18156 * config/xtensa/predicates.md (move_operand): Match constants
18157 and symbols in the presence of TARGET_AUTO_LITPOOLS.
18158 * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
18159 immediate references to TLS data.
18160 (xtensa_emit_move_sequence): Don't force constants to memory in
18161 the presence of TARGET_AUTO_LITPOOLS.
18162 (print_operand): Add 'y' format, same as default, but capable of
18163 printing SF mode constants as well.
18164 * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
18165 (movsf_internal): Add movi pattern that loads literal.
18166 (movsf, movdf): Don't force constants to memory in the presence
18167 of TARGET_AUTO_LITPOOLS.
18168 (movdf_internal): Add 'Y' constraint.
18169 * config/xtensa/xtensa.opt (mauto-litpools): New option.
18170 * doc/invoke.text (Xtensa options): Document -mauto-litpools.
18172 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
18174 * config/arm/arm-fpus.def: Replace booleans with feature flags.
18176 * config/arm/arm.c (ARM_FPU): Update macro.
18177 * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
18178 (TARGET_FP16): Likewise.
18179 (TARGET_CRYPTO): Likewise.
18180 (TARGET_NEON): Likewise.
18181 (struct arm_fpu_desc): Remove fields neon, fp16 and crypto. Add
18184 2015-08-12 Tom de Vries <tom@codesourcery.com>
18188 * doc/install.texi: Remove --with_host_libstdcxx item. Update
18189 --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
18190 accordingly. Mention default for --with-stage1-ldflags.
18192 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
18194 * config/arm/arm.h (arm_fpu_feature_set): New.
18195 (ARM_FPU_FSET_HAS): New.
18196 (FPU_FL_NONE): New.
18197 (FPU_FL_NEON): New.
18198 (FPU_FL_FP16): New.
18199 (FPU_FL_CRYPTO): New.
18201 2015-08-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18203 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
18204 after -mcmodel=large -fPIC sorry.
18206 2015-08-12 Richard Biener <rguenther@suse.de>
18208 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
18209 comparison operand order and commutative ternary op operand order.
18210 (sccvn_dom_walker::cond_stack): New state to track temporary
18212 (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
18214 (sccvn_dom_walker::record_cond): Add a single temporary conditional
18216 (sccvn_dom_walker::record_conds): Add a temporary conditional
18217 expressions and all related expressions also true/false.
18218 (sccvn_dom_walker::before_dom_children): Record temporary
18219 expressions based on the controlling condition of a single
18220 predecessor. When trying to simplify a conditional statement
18221 lookup expressions we might have inserted earlier.
18223 2015-08-12 Yvan Roux <yvan.roux@linaro.org>
18226 * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
18227 to ARM core registers.
18229 2015-08-12 Nathan Sidwell <nathan@acm.org>
18231 * tree-vrp.c (simplify_min_or_max_using_ranges): New.
18232 (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
18234 2015-08-12 Simon Dardis <simon.dardis@imgtec.com>
18236 * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
18237 line with comments.
18238 * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
18240 2015-08-12 Richard Biener <rguenther@suse.de>
18242 * gimple.h (remove_pointer): New trait.
18243 (GIMPLE_CHECK2): New inline template function.
18244 (gassign::code_): New constant static member.
18245 (is_a_helper<const gassign *>): Add.
18246 (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
18247 and forward to a new gassign overload with less checking and a
18248 cheaper way to access the operand.
18249 (gimple_assign_lhs_ptr): Likewise.
18250 (gimple_assign_set_lhs): Likewise.
18251 (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
18253 (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
18255 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
18257 (gimple_assign_rhs_code): Likewise.
18258 * gimple.c (gassign::code_): Define.
18260 2015-08-12 Richard Biener <rguenther@suse.de>
18262 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
18263 Eliminate edges marked as not executable by SCCVN.
18264 * tree-ssa-sccvn.c: Include gimple-iterator.h.
18265 (cond_dom_walker): Rename to sccvn_dom_walker.
18266 (sccvn_dom_walker::before_dom_children): Value-number defs
18268 (run_scc_vn): Remove loop value-numbering all SSA names.
18269 Drop not visited SSA names to varying.
18271 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
18273 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
18274 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
18275 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
18276 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
18277 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
18278 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
18279 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
18280 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
18281 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
18283 2015-08-11 Uros Bizjak <ubizjak@gmail.com>
18286 * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
18287 to enum feature_priority and feature_list.
18288 (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
18289 and isa_names_table.
18291 2015-08-11 Yuri Rumyantsev <ysrumyan@gmail.com>
18293 * tree-vect-stmts.c (vectorizable_shift): Add missed test on
18294 vect_induction_def.
18296 2015-08-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
18300 * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
18301 account when deciding what was the command-line status.
18303 2015-08-11 Nathan Sidwell <nathan@acm.org>
18305 * tree-vrp.c (simplify_abs_using_ranges): Simplify.
18307 * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
18308 we're not the only contributor to target phi.
18310 2015-08-11 Jiong Wang <jiong.wang@arm.com>
18312 * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
18315 2015-08-11 Tom de Vries <tom@codesourcery.com>
18317 * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
18319 2015-08-10 H.J. Lu <hongjiu.lu@intel.com>
18321 * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
18323 * config/i386/i386.md (cpu): Remove knl.
18325 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
18328 PR middle-end/66332
18329 * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
18330 open-coded sequence.
18331 * omp-low.c (oacc_process_reduction_data): Remove handline of
18332 GOMP_DEVICE_HOST_NONSHM.
18334 * lto-streamer-in.c (lto_input_mode_table): Adjust to
18335 GET_MODE_INNER changes.
18337 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
18338 Ilya Verbin <ilya.verbin@intel.com>
18340 * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
18342 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
18344 * doc/options.texi (EnabledBy): Document that the argument must be
18346 * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
18347 Not enabled by -Wall.
18348 * optc-gen.awk: Give nicer error messages. Detect if the argument
18349 of EnabledBy is not a Common option.
18350 * common.opt (Wnull-dereference): Not enabled by -Wall.
18351 * opt-functions.awk (lang_enabled_by): Nicer error messages.
18353 2015-08-09 H.J. Lu <hongjiu.lu@intel.com>
18355 * config/i386/driver-i386.c (host_detect_local_cpu): Treat
18356 model == 0x4f as Broadwell.
18358 2015-08-08 Segher Boessenkool <segher@kernel.crashing.org>
18360 PR rtl-optimization/67028
18361 * combine.c (simplify_comparison): Fix comment. Rearrange code.
18362 Add test to see if a const_int fits in the new mode.
18364 2015-08-07 DJ Delorie <dj@redhat.com>
18366 * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
18368 2015-08-07 H.J. Lu <hongjiu.lu@intel.com>
18370 PR rtl-optimization/67029
18371 * ira-color.c: Include "recog.h" before including "ira-int.h".
18372 * target-globals.c: Likewise.
18373 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
18374 adds an alternative_mask argument and use it instead of
18375 preferred_alternatives.
18376 * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
18377 * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
18378 * sched-deps.c: Include "ira-int.h" after including "ira.h".
18379 (sched_analyze_insn): Update call to
18380 ira_implicitly_set_insn_hard_regs.
18381 * sel-sched.c: Include "ira-int.h" after including "ira.h".
18382 (implicit_clobber_conflict_p): Update call to
18383 ira_implicitly_set_insn_hard_regs.
18385 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
18387 * Makefile.in (.INTERMEDIATE): Add gpl.pod.
18389 2015-08-07 Kaz Kojima <kkojima@gcc.gnu.org>
18392 * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
18393 currently_expanding_to_rtl is set.
18395 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
18397 * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
18398 * configure: Regenerate.
18400 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18401 Jiong Wang <jiong.wang@arm.com>
18403 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
18404 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
18405 (REG_CLASS_NAMES): Likewise.
18406 (REG_CLASS_CONTENTS): Likewise.
18407 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
18408 (aarch64_register_move_cost): Likewise.
18409 (aarch64_load_symref_appropriately): Invoke the new added pattern if
18411 * config/aarch64/constraints.md (Uc0): New constraint.
18413 2015-08-06 Jiong Wang <jiong.wang@arm.com>
18415 * config/aarch64/constraints.md (Usf): Add the test of
18416 aarch64_is_noplt_call_p.
18418 2015-08-06 Jiong Wang <jiong.wang@arm.com>
18420 * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
18422 * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
18423 * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
18424 (call_symbol): Likewise.
18426 2015-08-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
18428 * tree-vect-patterns.c (vect_recog_mult_pattern): New function
18429 for vectorizing multiplication patterns.
18430 * tree-vectorizer.h: Adjust the number of patterns.
18432 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
18434 * config/i386/sse.md (*vec_concatv2df): Declare added
18435 alternatives as sselog type.
18437 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18439 * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
18442 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18444 * config/s390/s390.c (s390_expand_tbegin): Expand either
18445 tbegin_1_z13 or tbegin_1 depending on VX flag.
18446 * config/s390/s390.md ("tbegin_1_z13"): New expander.
18448 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18450 * config/s390/s390.opt: Clarify description for -mzvector
18451 * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
18454 2015-08-06 Richard Biener <rguenther@suse.de>
18456 * gimple.h (gimple_call_set_fn): Access op member directly.
18457 (gimple_call_chain_ptr): Likewise.
18458 (gimple_call_set_chain): Likewise.
18459 (gimple_cond_lhs_ptr): Likewise.
18460 (gimple_cond_set_lhs): Likewise.
18461 (gimple_cond_rhs_ptr): Likewise.
18462 (gimple_cond_set_rhs): Likewise.
18463 (gimple_cond_true_label): Likewise.
18464 (gimple_cond_set_true_label): Likewise.
18465 (gimple_cond_set_false_label): Likewise.
18466 (gimple_cond_false_label): Likewise.
18467 (gimple_label_label): Likewise.
18468 (gimple_label_set_label): Likewise.
18469 (gimple_goto_set_dest): Likewise.
18470 (gimple_asm_input_op): Likewise.
18471 (gimple_asm_input_op_ptr): Likewise.
18472 (gimple_asm_set_input_op): Likewise.
18473 (gimple_asm_output_op): Likewise.
18474 (gimple_asm_output_op_ptr): Likewise.
18475 (gimple_asm_set_output_op): Likewise.
18476 (gimple_asm_clobber_op): Likewise.
18477 (gimple_asm_set_clobber_op): Likewise.
18478 (gimple_asm_label_op): Likewise.
18479 (gimple_asm_set_label_op): Likewise.
18480 (gimple_switch_index): Likewise.
18481 (gimple_switch_index_ptr): Likewise.
18482 (gimple_return_retval_ptr): Likewise.
18483 (gimple_return_retval): Likewise.
18484 (gimple_return_set_retval): Likewise.
18485 (gimple_switch_set_index): Likewise. Remove superfluous GIMPLE_CHECK.
18486 (gimple_switch_label): Likewise.
18487 (gimple_switch_set_label): Likewise.
18489 2015-08-06 Richard Biener <rguenther@suse.de>
18491 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
18492 bool comparison canonicalization and restrict to integers.
18494 2015-08-05 Andrew MacLeod <amacleod@redhat.com>
18496 * coretypes.h (enum symbol_visibility): Relocate here.
18497 * flag-types.h (enum symbol_visibility): Remove.
18498 * tree-core.h (enum symbol_visibility): Remove.
18500 2015-08-05 Lynn Boger <laboger@linux.vnet.ibm.com>
18503 * config/rs6000/rs6000.c (rs6000_emit_prologue): Check
18504 for no_split_stack function attribute along with
18506 (rs6000_expand_split_stack_prologue): Likewise.
18508 2015-08-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
18509 Jeff Law <law@redhat.com>
18512 * doc/invoke.texi (Wnull-dereference): New.
18513 * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
18514 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
18515 Warn for potential NULL dereferences.
18516 (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
18517 * ubsan.c (instrument_nonnull_arg): Call
18518 infer_nonnull_range_by_attribute.
18519 (instrument_nonnull_return): Likewise.
18520 * common.opt (Wnull-dereference); New.
18521 * gimple.c (infer_nonnull_range): Remove bool arguments.
18522 (infer_nonnull_range_by_dereference): New.
18523 (infer_nonnull_range_by_attribute): New.
18524 * gimple.h: Update declarations.
18526 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
18528 * gensupport.c (sequence_num): Replace with...
18529 (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
18530 ...these new variables.
18531 (init_rtx_reader_args_cb): Update accordingly.
18532 (get_num_code_insns): Likewise.
18533 (read_md_rtx): Rework to use a while loop and get_c_test.
18534 Use the new counters. Remove redundant DEFINE_SUBST case.
18535 * genoutput.c (gen_split): Delete.
18536 (main): Don't call it.
18538 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
18540 * gensupport.h (get_c_test): Declare.
18541 * gensupport.c (get_c_test): New function.
18542 * genconditions.c (main): Use it.
18543 * genrecog.c (validate_pattern): Likewise.
18544 (match_pattern_1): Likewise. Remove c_test argument.
18545 (match_pattern): Update accordingly and remove c_test argument.
18546 (main): Update accordingly.
18548 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
18550 * gensupport.h (get_num_insn_codes): Declare.
18551 * gensupport.c (get_num_insn_codes): New function.
18552 * genattrtab.c (optimize_attrs): Rename max_insn_code to
18554 (main): Likewise. Use get_num_insn_codes.
18555 * gencodes.c (main): Remove "last" and use get_num_insn_codes.
18557 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
18559 PR middle-end/66311
18560 * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
18561 is zero- rather than sign-extended.
18563 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
18565 * target-insns.def (can_extend): Delete.
18567 2015-08-05 Richard Biener <rguenther@suse.de>
18569 PR tree-optimization/67121
18570 * tree-if-conv.c (combine_blocks): Clear range-info produced
18571 by stmts no longer executed conditionally.
18573 2015-08-05 Nick Clifton <nickc@redhat.com>
18575 * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
18576 to allow identical far pointers to remain.
18578 2015-08-05 Richard Biener <rguenther@suse.de>
18580 PR middle-end/67120
18581 * match.pd: Compare address bases with == if they are decls
18582 or SSA names, not operand_equal_p. Otherwise fail.
18584 2015-08-05 Richard Biener <rguenther@suse.de>
18586 PR tree-optimization/67055
18587 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
18590 * g++.dg/torture/pr67055.C: New testcase.
18592 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
18594 * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
18596 (define_attr "enabled"): Handle avx521vl and noavx512vl.
18597 * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
18598 AVX-512 alternative out of SSE.
18599 (define_insn "*vec_concatv2df"): Ditto.
18601 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
18603 * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
18604 CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
18605 CODE_FOR_avx_ptestv4di.
18606 * config/i386/sse.md (define_mode_iterator V_AVX): New.
18607 (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
18608 (define_insn "avx_ptest256"): Merge this ...
18609 (define_insn "sse4_1_ptest"): And this ...
18610 (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
18612 2015-08-05 Richard Biener <rguenther@suse.de>
18614 PR tree-optimization/67109
18615 * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
18616 against too big groups. Print whether this is a load or store
18617 group. Rename from ...
18618 (vect_analyze_group_access): ... this which is now a wrapper
18619 dissolving an invalid group.
18620 (vect_analyze_data_ref_accesses): Print whether this is a load
18623 2015-08-05 Richard Biener <rguenther@suse.de>
18625 PR middle-end/67107
18626 * match.pd: Guard const_binop result checking against NULL_TREE
18629 2015-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
18631 * cse.c (cse_insn): Restoring old behaviour for src_eqv
18632 when dest and value in the REG_EQUAL are same and dest
18633 is STRICT_LOW_PART.
18635 2015-08-04 Anatoly Sokolov <aesok@post.ru>
18637 * config/moxie/moxie.h (PRINT_OPERAND,
18638 PRINT_OPERAND_ADDRESS): Remove macros.
18639 * config/moxie/moxie-protos.h (moxie_print_operand,
18640 moxie_print_operand_address): Remove declaration.
18641 * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
18642 TARGET_PRINT_OPERAND_ADDRESS): Define.
18643 (moxie_print_operand, moxie_print_operand_address): Make static.
18645 2015-08-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
18648 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
18649 (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
18651 2015-08-04 Richard Biener <rguenther@suse.de>
18653 * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
18655 (dt_operand::gen_gimple_expr): Adjust.
18657 2015-08-04 Richard Biener <rguenther@suse.de>
18659 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
18660 bool compares on RHS.
18661 * match.pd: Add X ==/!= !X is false/true pattern.
18663 2015-08-04 Pawel Kupidura <pawel.kupidura@arm.com>
18665 * config/aarch64/aarch64.c: Change inner loop statement cost
18666 to be consistent with other targets.
18668 2015-08-04 Christophe Lyon <christophe.lyon@linaro.org>
18670 * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
18673 2015-08-04 Nathan Sidwell <nathan@codesourcery.com>
18675 * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
18676 (machine_function): Remove pseudos field.
18678 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18680 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
18681 Exit early and use target_option_current_node if processing current
18684 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18686 * doc/extend.texi (AArch64 Function Attributes): New node.
18687 (AArch64 Pragmas): Likewise.
18689 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18691 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
18692 Initialize simd builtins if TARGET_SIMD.
18693 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
18694 Make sure that the builtins are initialized only once no matter how
18695 many times the function is called.
18696 (aarch64_init_builtins): Unconditionally initialize crc builtins.
18697 (aarch64_relayout_simd_param): New function.
18698 (aarch64_simd_expand_args): Use above during argument expansion.
18699 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
18700 simd builtins if TARGET_SIMD.
18701 * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
18703 (aarch64_relayout_simd_types): Likewise.
18705 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18707 * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
18708 * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
18709 (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
18710 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
18712 (aarch64_reset_previous_fndecl): New function.
18713 (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
18715 * config/aarch64/aarch64-c.c: New file.
18716 * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
18717 Push and pop options at beginning and end. Remove ifdef
18718 __ARM_FEATURE_CRC32.
18719 * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
18720 Add pragma +nothing+simd and +nothing+crypto where appropriate.
18721 * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
18722 * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
18724 (aarch64_register_pragmas): Likewise.
18725 (aarch64_reset_previous_fndecl): Likewise.
18726 (aarch64_process_target_attr): Likewise.
18727 (aarch64_override_options_internal): Likewise.
18729 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18731 * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
18733 (aarch64_can_inline_p): Likewise.
18734 (TARGET_CAN_INLINE_P): Define.
18736 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18738 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
18739 Remove static. Handle OPT_mgeneral_regs_only,
18740 OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
18741 OPT_momit_leaf_frame_pointer.
18742 * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
18743 (aarch64_attr_opt_type): New enum.
18744 (aarch64_attribute_info): New struct.
18745 (aarch64_handle_attr_arch): New function.
18746 (aarch64_handle_attr_cpu): Likewise.
18747 (aarch64_handle_attr_tune): Likewise.
18748 (aarch64_handle_attr_isa_flags): Likewise.
18749 (aarch64_attributes): New table.
18750 (aarch64_process_one_target_attr): New function.
18751 (num_occurences_in_str): Likewise.
18752 (aarch64_process_target_attr): Likewise.
18753 (aarch64_option_valid_attribute_p): Likewise.
18754 (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
18755 * config/aarch64/aarch64-protos.h: Include input.h
18756 (aarch64_handle_option): Declare prototype.
18758 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18760 * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
18761 * config/aarch64/aarch64.c: Include target-globals.h
18762 (aarch64_previous_fndecl): New variable.
18763 (aarch64_set_current_function): New function.
18764 (TARGET_SET_CURRENT_FUNCTION): Define.
18766 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18768 * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
18769 (explicit_arch): Likewise.
18770 (x_aarch64_isa_flags): Likewise.
18771 (mgeneral-regs-only): Mark as Save.
18772 (mfix-cortex-a53-835769): Likewise.
18773 (mcmodel=): Likewise.
18774 (mstrict-align): Likewise.
18775 (momit-leaf-frame-pointer): Likewise.
18776 (mtls-dialect): Likewise.
18777 (master=): Likewise.
18778 * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
18779 (aarch64_isa_flags): Remove extern declaration.
18780 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
18781 to indicate success or failure.
18782 (aarch64_validate_march): Likewise.
18783 (aarch64_validate_mtune): Likewise.
18784 (aarch64_isa_flags): Delete.
18785 (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
18786 instead of aarch64_isa_flags.
18787 (aarch64_get_tune_cpu): New function.
18788 (aarch64_get_arch): Likewise.
18789 (aarch64_override_options): Use above and set up explicit_tune_core
18791 (aarch64_print_extension): Move earlier in file. Add isa_flags
18792 argument and use that instead of the global aarch64_isa_flags.
18793 (aarch64_option_save): New function.
18794 (aarch64_option_restore): Likewise.
18795 (aarch64_option_print): Likewise.
18796 (aarch64_declare_function_name): Likewise.
18797 (aarch64_start_file): Delete.
18798 (TARGET_ASM_FILE_START): Do not define.
18799 (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
18800 * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
18803 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18805 * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
18806 flag_omit_leaf_frame_pointer to 2.
18808 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18810 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
18812 (TARGET_FIX_ERR_A53_835769): New macro.
18813 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
18814 handling of opts->x_aarch64_fix_a53_err835769.
18815 (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
18816 than aarch64_fix_a53_err835769.
18817 * config/aarch64/aarch64-elf-raw.h: Update for above changes.
18818 * config/aarch64/aarch64-linux.h: Likewise.
18820 2015-08-04 Uros Bizjak <ubizjak@gmail.com>
18822 * config/i386/i386.c (ix86_expand_int_movcc): Check result of
18823 ix86_expand_int_movcc as boolean.
18825 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18827 * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
18828 (aarch64_cpu_string): Likewise.
18829 (aarch64_tune_string): Likewise.
18830 * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
18831 (aarch64_parse_extension): Return aarch64_parse_opt_result.
18832 Add extra argument to put result into.
18833 (aarch64_parse_arch): Likewise. Do not set selected_cpu.
18834 (aarch64_parse_cpu): Add arguments to put results into. Return
18835 aarch64_parse_opt_result.
18836 (aarch64_parse_tune): Likewise.
18837 (aarch64_override_options_after_change_1): New function.
18838 (aarch64_override_options_internal): New function.
18839 (aarch64_validate_mcpu): Likewise.
18840 (aarch64_validate_march): Likewise.
18841 (aarch64_validate_mtune): Likewise.
18842 (aarch64_override_options): Update to reflect above changes.
18843 Move some logic into aarch64_override_options_internal.
18844 Initialize target_option_default_node and target_option_current_node.
18845 (aarch64_override_options_after_change): Move logic into
18846 aarch64_override_options_after_change_1 and call it with global_options.
18847 (initialize_aarch64_code_model): Take a gcc_options pointer and use the
18848 flag values from that.
18850 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18852 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
18853 __ARM_ARCH_8A directly rather than with cpp_define_formatted.
18854 * config/aarch64/aarch64.c (struct processor): Add arch field.
18855 (all_architectures): Handle above, move above all_cores.
18856 (all_cores): Handle above.
18857 (aarch64_parse_arch): Handle above changes.
18858 * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
18859 above. Update comments.
18860 (armv8.1-a): Likewise.
18861 * config/aarch64/aarch64-cores.def: Update according to above.
18862 * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
18863 * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
18864 aarch64_arch_driver_info.
18866 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18868 * config/aarch64/aarch64.c (struct processor): Add ident field.
18869 Rename core sched_core.
18870 (all_cores): Handle above changes.
18871 (all_architectures): Likewise.
18872 (aarch64_parse_arch): Likewise.
18873 (aarch64_override_options): Likewise.
18875 2015-08-04 Richard Biener <rguenther@suse.de>
18877 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
18878 dispatching to fold_binary for GIMPLE_BINARY_RHS and for
18879 comparisons embedded in [VEC_]COND_EXPRs.
18881 2015-08-03 Abe Skolnik <a.skolnik@samsung.com>
18883 * tree-if-conv.c: Fix various typos in comments.
18884 * tree-vect-stmts.c: Likewise.
18886 2015-08-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
18888 PR tree-optimization/67043
18889 * loop-invariant.c (move_invariant_reg): Recompute luids in loop
18890 preheader after hoisting invariant in it.
18891 (find_defs): Force recomputation of all luids.
18893 2015-08-03 Peter Bergner <bergner@vnet.ibm.com>
18895 * config/rs6000/htm.md (tabort.): Restrict the source operand to
18896 using a base register.
18898 2015-08-03 David Malcolm <dmalcolm@redhat.com>
18900 * main.c (main): Pass in NULL for toplev's external_timer.
18901 * timevar.c: Include coretypes.h.
18902 (class timer::named_items): New.
18903 (timer::named_items::named_items): New.
18904 (timer::named_items::~named_items): New.
18905 (timer::named_items::push): New.
18906 (timer::named_items::pop): New.
18907 (timer::named_items::print): New.
18908 (timer::timer): Initialize field "m_jit_client_items".
18909 (timer::~timer): New.
18910 (timer::push): Move bulk of implementation to...
18911 (timer::push_internal): ...here. New function.
18912 (timer::pop): Move bulk of implementation to...
18913 (timer::pop_internal): ...here. New function.
18914 (timer::push_client_item): New.
18915 (timer::pop_client_item): New.
18916 (timer::print_row): New function, taken from timer::print.
18917 (timer::print): Print "GCC items" header if we also have client
18918 items. Move row-printing to timer::print_row. Print any client
18920 (timer::get_topmost_item_name): New method.
18921 * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
18922 (TV_JIT_CLIENT_CODE): New.
18923 * timevar.h (timer::push_client_item): New declaration.
18924 (timer::pop_client_item): New declaration.
18925 (timer::get_topmost_item_name): New method.
18926 (timer::push_internal): New declaration.
18927 (timer::pop_internal): New declaration.
18928 (timer::print_row): New declaration.
18929 (timer::named_items): New declaration.
18930 (timer::m_jit_client_items): New field.
18931 (timer): Add friend class named_items.
18932 (auto_timevar::auto_timevar): Add timer param.
18933 (auto_timevar::~auto_timevar): Use field "m_timer".
18934 (auto_timevar::m_timer): New field.
18935 * toplev.c (initialize_rtl): Add g_timer as param when
18936 constructing auto_timevar instance.
18937 (toplev::toplev): Add "external_timer" param, and use it to
18938 initialize the "g_timer" global if non-NULL.
18939 (toplev::~toplev): If this created "g_timer", delete it.
18940 * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
18941 with "external_timer" timer *.
18943 2015-08-03 Alexander Basov <coohpt@gmail.com>
18945 PR middle-end/64744
18946 PR middle-end/48470
18947 PR middle-end/43404
18948 * cfgexpand.c (expand_one_var): Add check if stack is going to
18949 be used in naked function.
18950 * expr.c (expand_expr_addr_expr_1): Remove excess checking
18951 whether expression should not reside in MEM.
18952 * function.c (use_register_for_decl): Do not use registers for
18953 non-register things (volatile, float, BLKMode) in naked functions.
18955 2015-08-03 John David Anglin <danglin@gcc.gnu.org>
18958 * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
18959 Adjust splits to match new pattern.
18961 2015-08-03 Michael Meissner <meissner@linux.vnet.ibm.com>
18963 * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
18966 (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
18967 point in VSX registers.
18969 * config/rs6000/constraints.md (wb constraint): Document unused
18971 (we constraint): Likewise.
18972 (wo constraint): Likewise.
18973 (wp constraint): New constraint for IEEE 128-bit floating point in
18975 (wq constraint): Likewise.
18977 * config/rs6000/predicates.md (easy_fp_constant): Add support for
18978 IEEE 128-bit floating point in VSX registers.
18979 (easy_scalar_constant): Likewise.
18981 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
18982 constraints (wp, wq) for IEEE 128-bit floating point in VSX
18984 (rs6000_init_hard_regno_mode_ok): Likewise.
18986 * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
18987 floating point in VSX registers.
18990 (VSX_M2): Likewise.
18996 (vsx_le_permute_<mode>): Add support to properly swap bytes for
18997 IEEE 128-bit floating point in VSX registers on little endian.
18998 (vsx_le_undo_permute_<mode>): Likewise.
18999 (vsx_le_perm_load_<mode>): Likewise.
19000 (vsx_le_perm_store_<mode>): Likewise.
19001 (splitters for IEEE 128-bit fp moves): Likewise.
19003 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
19006 * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
19007 floating point in VSX registers.
19010 * doc/md.text (Machine Constraints): Document wp and wq
19011 constraints on PowerPC.
19013 2015-08-03 Jeff Law <law@redhat.com>
19015 PR middle-end/66314
19016 PR gcov-profile/66899
19017 * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
19018 iterate over the jump threading paths when an element in the
19019 jump threading paths array is eliminated.
19021 2015-08-03 Segher Boessenkool <segher@kernel.crashing.org>
19023 * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
19025 2015-08-03 Patrick Palka <ppalka@gcc.gnu.org>
19027 * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
19028 is_use_properly_guarded the variable def_preds. Free its
19029 contents before returning.
19030 (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
19031 (is_use_properly_guarded): Replace local variable def_preds with
19032 a parameter. Adjust accordingly. Only update *def_preds if it's
19035 2015-08-03 Richard Biener <rguenther@suse.de>
19037 * genmatch.c (simplify::for_subst_vec): New member.
19038 (binary_ok): New helper for for lowering.
19039 (lower_for): Delay substituting operators into result expressions
19040 if we can merge the results eventually again.
19041 (capture_info::walk_result): Adjust for user_id appearing as
19042 result expression operator.
19043 (expr::gen_transform): Likewise.
19044 (dt_simplify::gen_1): Likewise.
19045 (dt_simplify::gen): Pass not substituted operators to tail
19046 functions or initialize local variable with it.
19047 (decision_tree::gen): Adjust function signature.
19048 * match.pd: Fix tests against global code and add default
19049 cases to switch stmts.
19051 2015-08-03 Richard Biener <rguenther@suse.de>
19053 * genmatch.c (dt_simplify::gen): Create captures array
19054 with an initializer.
19056 2015-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19058 * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
19059 the host compiler is affected by placement new aliasing bug.
19060 * configure: Regenerate.
19061 * Makefile.in (ALIASING_FLAGS): New variable.
19062 (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
19064 2015-08-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
19067 * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
19068 (negmulsf3_vfp): Likewise.
19069 (muldf3negdf_vfp): Disable for -frounding-math.
19070 (mulsf3negsf_vfp): Likewise.
19071 * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
19072 fix MULT cost with -frounding-math.
19074 2015-08-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19076 * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
19077 when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
19078 explicit. Prefer to add the flag whenever possible.
19079 (noce_process_if_block): Try noce_try_store_flag_constants before
19082 2015-08-03 Richard Biener <rguenther@suse.de>
19084 * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
19085 New hash-map to record equivalent transforms.
19086 (dt_node::analyze): Populate the equivalent transforms hash-map.
19087 (dt_simplify::info): Add reference to hash-map entry.
19088 (dt_simplify::gen): If we have split out a function for the
19089 transform, generate a call to it.
19090 (sinfo_hashmap_traits::hash): New function.
19091 (compare_op): New helper function for ...
19092 (sinfo_hashmap_traits::equal_keys): ... this new function.
19093 (decision_tree::gen): Split out common equivalent transforms
19096 2015-08-03 Richard Biener <rguenther@suse.de>
19098 * gimple-fold.c (fold_gimple_assign): Remove folding of
19099 the comparison in COND_EXPRs.
19101 2015-08-03 Richard Biener <rguenther@suse.de>
19103 * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
19104 on the rhs of assignments first simplify the embedded
19107 2015-08-03 Richard Biener <rguenther@suse.de>
19109 PR tree-optimization/66917
19110 * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
19112 (DR_VECT_AUX): New macro.
19113 (set_dr_misalignment): Adjust.
19114 (dr_misalignment): Likewise.
19115 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
19116 Compute whether the base is at least element aligned.
19117 * tree-vect-stmts.c (ensure_base_align): Adjust.
19118 (vectorizable_store): If the base is not element aligned
19119 preserve alignment of the original access if misalignment is unknown.
19120 (vectorizable_load): Likewise.
19122 2015-08-02 Martin Sebor <msebor@redhat.com>
19124 * doc/invoke.texi (Wframe-address): Document it.
19125 * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
19126 Clarify possible effects of calling the functions with non-zero
19127 arguments and mention -Wframe-address.
19128 * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
19130 2015-08-01 Michael Collison <michael.collison@linaro.org
19131 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
19133 * config/arm/arm.md (*arm_smin_cmp): New pattern.
19134 (*arm_umin_cmp): Likewise.
19136 2015-08-01 Caroline Tice <cmtice@google.com>
19139 * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
19141 (vtbl_find_mangled_name): New function.
19142 (vtbl_register_mangled_name): New function.
19143 (vtbl_map_get_node): If DECL_ASSEMBLER_NAME is "<anon>", look up
19144 mangled name in mangled name vectors.
19145 (find_or_create_vtbl_map_node): Ditto.
19146 (var_is_used_for_virtual_call_p): Add recursion_depth parameter;
19147 update recursion_depth on function entry; pass it to every recursive
19148 call; automatically exit if depth > 25 (give up looking at that point).
19149 (verify_bb_vtables): Initialize recursion_depth and pass it to
19150 var_is_used_for_virtual_call_p.
19151 * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
19152 global variable decls.
19153 (vtbl_register_mangled_name): New extern function decl.
19155 2015-08-01 Tom de Vries <tom@codesourcery.com>
19157 * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
19159 * tree.h (operation_can_overflow, operation_no_trapping_overflow):
19161 * tree-vect-loop.c (vect_is_simple_reduction_1): Use
19162 operation_no_trapping_overflow. Allow non-overflow operations.
19163 * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
19166 2015-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
19169 * config/sh/sh.md (GOTaddr2picreg): Fix typo.
19171 2015-07-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19173 * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
19174 Enable for TARGET_32BIT.
19175 (*if_move_neg): Likewise.
19177 2015-07-31 Nick Clifton <nickc@redhat.com>
19179 * config/m32r/m32r.c (m32r_attribute_identifier): New function.
19180 Returns true for __model__.
19181 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
19183 2015-07-31 Alan Modra <amodra@gmail.com>
19186 * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
19187 (rs6000_emit_prologue): Set it.
19188 (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
19190 2015-07-31 Richard Biener <rguenther@suse.de>
19192 * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
19193 -> X == (C1 ^ C2) which is already implemented in match.pd.
19194 Remove redundant dispatching to fold_relational_const.
19195 Move unordered self and NaN compares ...
19196 * match.pd: ... as patterns here. Remove some stray captures
19199 2015-07-31 Petr Murzin <petr.murzin@intel.com>
19201 * config/i386/i386.c
19202 (bdesc_special_args): Convert mask type from signed to unsigned for
19204 (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
19205 UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
19206 V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
19207 V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
19208 V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
19209 V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
19210 V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
19211 V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
19212 V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
19213 HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
19214 V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
19215 V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
19216 V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
19217 V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
19218 V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
19219 V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
19220 V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
19221 V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
19222 V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
19223 V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
19224 V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
19225 HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
19226 VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
19227 V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
19228 * config/i386/i386-builtin-types.def
19229 (V16QI_FTYPE_V16SI): Remove.
19230 (V8DF_FTYPE_V8SI): Ditto.
19231 (V8HI_FTYPE_V8DI): Ditto.
19232 (V8SI_FTYPE_V8DI): Ditto.
19233 (V8SF_FTYPE_V8DF): Ditto.
19234 (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
19235 (V16HI_FTYPE_V16SI): Ditto.
19236 (V16SF_FTYPE_V16HI): Ditto.
19237 (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
19238 (V16SF_FTYPE_V16SI): Ditto.
19239 (V4DI_FTYPE_V4DI): Ditto.
19240 (V16SI_FTYPE_V16SF): Ditto.
19241 (V16SF_FTYPE_FLOAT): Ditto.
19242 (V8DF_FTYPE_DOUBLE): Ditto.
19243 (V8DI_FTYPE_INT64): Ditto.
19244 (V8DI_FTYPE_V4DI): Ditto.
19245 (V16QI_FTYPE_V8DI): Ditto.
19246 (UINT_FTYPE_V4SF): Ditto.
19247 (UINT64_FTYPE_V4SF): Ditto.
19248 (UINT_FTYPE_V2DF): Ditto.
19249 (UINT64_FTYPE_V2DF): Ditto.
19250 (V16SI_FTYPE_V16SI): Ditto.
19251 (V8DI_FTYPE_V8DI): Ditto.
19252 (V16SI_FTYPE_PV4SI): Ditto.
19253 (V16SF_FTYPE_PV4SF): Ditto.
19254 (V8DI_FTYPE_PV2DI): Ditto.
19255 (V8DF_FTYPE_PV2DF): Ditto.
19256 (V4DI_FTYPE_PV2DI): Ditto.
19257 (V4DF_FTYPE_PV2DF): Ditto.
19258 (V16SI_FTYPE_PV2SI): Ditto.
19259 (V16SF_FTYPE_PV2SF): Ditto.
19260 (V8DI_FTYPE_PV4DI): Ditto.
19261 (V8DF_FTYPE_PV4DF): Ditto.
19262 (V8SF_FTYPE_FLOAT): Ditto.
19263 (V4SF_FTYPE_FLOAT): Ditto.
19264 (V4DF_FTYPE_DOUBLE): Ditto.
19265 (V8SF_FTYPE_PV4SF): Ditto.
19266 (V8SI_FTYPE_PV4SI): Ditto.
19267 (V4SI_FTYPE_PV2SI): Ditto.
19268 (V8SF_FTYPE_PV2SF): Ditto.
19269 (V8SI_FTYPE_PV2SI): Ditto.
19270 (V16SF_FTYPE_PV8SF): Ditto.
19271 (V16SI_FTYPE_PV8SI): Ditto.
19272 (V8DI_FTYPE_V8SF): Ditto.
19273 (V4DI_FTYPE_V4SF): Ditto.
19274 (V2DI_FTYPE_V4SF): Ditto.
19275 (V64QI_FTYPE_QI): Ditto.
19276 (V32HI_FTYPE_HI): Ditto.
19277 (V8UHI_FTYPE_V8UHI): Ditto.
19278 (V16UHI_FTYPE_V16UHI): Ditto.
19279 (V32UHI_FTYPE_V32UHI): Ditto.
19280 (V2UDI_FTYPE_V2UDI): Ditto.
19281 (V4UDI_FTYPE_V4UDI): Ditto.
19282 (V8UDI_FTYPE_V8UDI): Ditto.
19283 (V4USI_FTYPE_V4USI): Ditto.
19284 (V8USI_FTYPE_V8USI): Ditto.
19285 (V16USI_FTYPE_V16USI): Ditto.
19286 (V2DF_FTYPE_V2DF_UINT64): Ditto.
19287 (V2DI_FTYPE_V2DF_V2DF): Ditto.
19288 (V2UDI_FTYPE_V4USI_V4USI): Ditto.
19289 (V8DF_FTYPE_V8DF_V8DI): Ditto.
19290 (V4SF_FTYPE_V4SF_UINT64): Ditto.
19291 (V4SI_FTYPE_V4SF_V4SF): Ditto.
19292 (V16SF_FTYPE_V16SF_V16SI): Ditto.
19293 (V64QI_FTYPE_V32HI_V32HI): Ditto.
19294 (V32HI_FTYPE_V16SI_V16SI): Ditto.
19295 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
19296 (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
19297 (V32HI_FTYPE_V64QI_V64QI): Ditto.
19298 (V32HI_FTYPE_V32HI_V32HI): Ditto.
19299 (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
19300 (V16SI_FTYPE_V16SI_V4SI): Ditto.
19301 (V16SI_FTYPE_V16SI_V16SI): Ditto.
19302 (V16SI_FTYPE_V32HI_V32HI): Ditto.
19303 (V16SI_FTYPE_V16SI_SI): Ditto.
19304 (V8DI_FTYPE_V8DI_V8DI): Ditto.
19305 (V4UDI_FTYPE_V8USI_V8USI): Ditto.
19306 (V8DI_FTYPE_V16SI_V16SI): Ditto.
19307 (V8DI_FTYPE_V8DI_V2DI): Ditto.
19308 (QI_FTYPE_QI): Ditto.
19309 (SI_FTYPE_SI): Ditto.
19310 (DI_FTYPE_DI): Ditto.
19311 (QI_FTYPE_QI_QI): Ditto.
19312 (QI_FTYPE_QI_INT): Ditto.
19313 (HI_FTYPE_HI_INT): Ditto.
19314 (SI_FTYPE_SI_INT): Ditto.
19315 (DI_FTYPE_DI_INT): Ditto.
19316 (HI_FTYPE_V16QI_V16QI): Ditto.
19317 (SI_FTYPE_V32QI_V32QI): Ditto.
19318 (DI_FTYPE_V64QI_V64QI): Ditto.
19319 (QI_FTYPE_V8HI_V8HI): Ditto.
19320 (HI_FTYPE_V16HI_V16HI): Ditto.
19321 (SI_FTYPE_V32HI_V32HI): Ditto.
19322 (QI_FTYPE_V4SI_V4SI): Ditto.
19323 (QI_FTYPE_V8SI_V8SI): Ditto.
19324 (QI_FTYPE_V2DI_V2DI): Ditto.
19325 (QI_FTYPE_V4DI_V4DI): Ditto.
19326 (QI_FTYPE_V8DI_V8DI): Ditto.
19327 (HI_FTYPE_V16SI_V16SI): Ditto.
19328 (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
19329 (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
19330 (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
19331 (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
19332 (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
19333 (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
19334 (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
19335 (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
19336 (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
19337 (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
19338 (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
19339 (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
19340 (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
19341 (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
19342 (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
19343 (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
19344 (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
19345 (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
19346 (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
19347 (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
19348 (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
19349 (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
19350 (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
19351 (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
19352 (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
19353 (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
19354 (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
19355 (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
19356 (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
19357 (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
19358 (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
19359 (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
19360 (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
19361 (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
19362 (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
19363 (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
19364 (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
19365 (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
19366 (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
19367 (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
19368 (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
19369 (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
19370 (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
19371 (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
19372 (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
19373 (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
19374 (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
19375 (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
19376 (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
19377 (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
19378 (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
19379 (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
19380 (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
19381 (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
19382 (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
19383 (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
19384 (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
19385 (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
19386 (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
19387 (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
19388 (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
19389 (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
19390 (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
19391 (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
19392 (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
19393 (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
19394 (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
19395 (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
19396 (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
19397 (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
19398 (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
19399 (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
19400 (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
19401 (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
19402 (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
19403 (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
19404 (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
19405 (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
19406 (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
19407 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
19408 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
19409 (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
19410 (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
19411 (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
19412 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
19413 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
19414 (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
19415 (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
19416 (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
19417 (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
19418 (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
19419 (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
19420 (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
19421 (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
19422 (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
19423 (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
19424 (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
19425 (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
19426 (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
19427 (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
19428 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
19429 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
19430 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
19431 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
19432 (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
19433 (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
19434 (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
19435 (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
19436 (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
19437 (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
19438 (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
19439 (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
19440 (HI_FTYPE_HI): Ditto.
19441 (HI_FTYPE_V16QI): Ditto.
19442 (SI_FTYPE_V32QI): Ditto.
19443 (DI_FTYPE_V64QI): Ditto.
19444 (QI_FTYPE_V8HI): Ditto.
19445 (HI_FTYPE_V16HI): Ditto.
19446 (SI_FTYPE_V32HI): Ditto.
19447 (QI_FTYPE_V4SI): Ditto.
19448 (QI_FTYPE_V8SI): Ditto.
19449 (HI_FTYPE_V16SI): Ditto.
19450 (QI_FTYPE_V2DI): Ditto.
19451 (QI_FTYPE_V4DI): Ditto.
19452 (QI_FTYPE_V8DI): Ditto.
19453 (V16QI_FTYPE_HI): Ditto.
19454 (V32QI_FTYPE_SI): Ditto.
19455 (V64QI_FTYPE_DI): Ditto.
19456 (V8HI_FTYPE_QI): Ditto.
19457 (V16HI_FTYPE_HI): Ditto.
19458 (V32HI_FTYPE_SI): Ditto.
19459 (V4SI_FTYPE_QI): Ditto.
19460 (V4SI_FTYPE_HI): Ditto.
19461 (V8SI_FTYPE_QI): Ditto.
19462 (V8SI_FTYPE_HI): Ditto.
19463 (V2DI_FTYPE_QI): Ditto.
19464 (V4DI_FTYPE_QI): Ditto.
19465 (HI_FTYPE_HI_HI): Ditto.
19466 (SI_FTYPE_SI_SI): Ditto.
19467 (DI_FTYPE_DI_DI): Ditto.
19468 (HI_FTYPE_V16QI_V16QI_HI): Ditto.
19469 (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
19470 (SI_FTYPE_V32QI_V32QI_SI): Ditto.
19471 (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
19472 (DI_FTYPE_V64QI_V64QI_DI): Ditto.
19473 (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
19474 (QI_FTYPE_V8HI_V8HI_QI): Ditto.
19475 (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
19476 (HI_FTYPE_V16HI_V16HI_HI): Ditto.
19477 (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
19478 (SI_FTYPE_V32HI_V32HI_SI): Ditto.
19479 (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
19480 (QI_FTYPE_V4SI_V4SI_QI): Ditto.
19481 (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
19482 (QI_FTYPE_V8SI_V8SI_QI): Ditto.
19483 (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
19484 (QI_FTYPE_V2DI_V2DI_QI): Ditto.
19485 (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
19486 (QI_FTYPE_V4DI_V4DI_QI): Ditto.
19487 (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
19488 (QI_FTYPE_V8DI_V8DI_QI): Ditto.
19489 (HI_FTYPE_V16SI_V16SI_HI): Ditto.
19490 (QI_FTYPE_V8DI_V8DI_INT): Ditto.
19491 (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
19492 (HI_FTYPE_V16SI_V16SI_INT): Ditto.
19493 (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
19494 (QI_FTYPE_V8DF_V8DF_INT): Ditto.
19495 (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
19496 (HI_FTYPE_V16SF_V16SF_INT): Ditto.
19497 (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
19498 (QI_FTYPE_V2DF_V2DF_INT): Ditto.
19499 (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
19500 (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
19501 (QI_FTYPE_V4SF_V4SF_INT): Ditto.
19502 (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
19503 (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
19504 (V16SI_FTYPE_HI): Ditto.
19505 (V8DI_FTYPE_QI): Ditto.
19506 (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
19507 (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
19508 (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
19509 (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
19510 (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
19511 (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
19512 (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
19513 (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
19514 (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
19515 (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
19516 (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
19517 (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
19518 (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
19519 (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
19520 (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
19521 (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
19522 (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
19523 (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
19524 (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
19525 (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
19526 (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
19527 (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
19528 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
19529 (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
19530 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
19531 (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
19532 (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
19533 (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
19534 (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
19535 (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
19536 (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
19537 (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
19538 (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
19539 (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
19540 (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
19541 (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
19542 (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
19543 (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
19544 (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
19545 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
19546 (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
19547 (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
19548 (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
19549 (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
19550 (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
19551 (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
19552 (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
19553 (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
19554 (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
19555 (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
19556 (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
19557 (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
19558 (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
19559 (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
19560 (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
19561 (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
19562 (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
19563 (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
19564 (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
19565 (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
19566 (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
19567 (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
19568 (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
19569 (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
19570 (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
19571 (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
19572 (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
19573 (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
19574 (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
19575 (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
19576 (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
19577 (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
19578 (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
19579 (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
19580 (V16SI_FTYPE_SI_V16SI_HI): Ditto.
19581 (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
19582 (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
19583 (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
19584 (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
19585 (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
19586 (V8DI_FTYPE_DI_V8DI_QI): Ditto.
19587 (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
19588 (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
19589 (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
19590 (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
19591 (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
19592 (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
19593 (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
19594 (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
19595 (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
19596 (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
19597 (V8SI_FTYPE_SI_V8SI_QI): Ditto.
19598 (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
19599 (V4SI_FTYPE_SI_V4SI_QI): Ditto.
19600 (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
19601 (V4DI_FTYPE_DI_V4DI_QI): Ditto.
19602 (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
19603 (V2DI_FTYPE_DI_V2DI_QI): Ditto.
19604 (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
19605 (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
19606 (V64QI_FTYPE_QI_V64QI_DI): Ditto.
19607 (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
19608 (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
19609 (V32QI_FTYPE_QI_V32QI_SI): Ditto.
19610 (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
19611 (V16QI_FTYPE_QI_V16QI_HI): Ditto.
19612 (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
19613 (V32HI_FTYPE_HI_V32HI_SI): Ditto.
19614 (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
19615 (V16HI_FTYPE_HI_V16HI_HI): Ditto.
19616 (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
19617 (V8HI_FTYPE_HI_V8HI_QI): Ditto.
19618 (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
19619 (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
19620 (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
19621 (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
19622 (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
19623 (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
19624 (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
19625 (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
19626 (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
19627 (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
19628 (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
19629 (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
19630 (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
19631 (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
19632 (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
19633 (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
19634 (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
19635 (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
19636 (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
19637 (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
19638 (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
19639 (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
19640 (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
19641 (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
19642 (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
19643 (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
19644 (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
19645 (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
19646 (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
19647 (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
19648 (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
19649 (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
19650 (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
19651 (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
19652 (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
19653 (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
19654 (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
19655 (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
19656 (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
19657 (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
19658 (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
19659 (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
19660 (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
19661 (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
19662 (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
19663 (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
19664 (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
19665 (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
19666 (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
19667 (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
19668 (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
19669 (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
19670 (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
19671 (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
19672 (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
19673 (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
19674 (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
19675 (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
19676 (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
19677 (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
19678 (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
19679 (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
19680 (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
19681 (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
19682 (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
19683 (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
19684 (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
19685 (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
19686 (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
19687 (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
19688 (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
19689 (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
19690 (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
19691 (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
19692 (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
19693 (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
19694 (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
19695 (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
19696 (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
19697 (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
19698 (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
19699 (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
19700 (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
19701 (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
19702 (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
19703 (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
19704 (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
19705 (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
19706 (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
19707 (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
19708 (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
19709 (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
19710 (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
19711 (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
19712 (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
19713 (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
19714 (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
19715 (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
19716 (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
19717 (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
19718 (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
19719 (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
19720 (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
19721 (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
19722 (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
19723 (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
19724 (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
19725 (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
19726 (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
19727 (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
19728 (QI_FTYPE_V8DF_INT_QI): Ditto.
19729 (QI_FTYPE_V4DF_INT_QI): Ditto.
19730 (QI_FTYPE_V2DF_INT_QI): Ditto.
19731 (HI_FTYPE_V16SF_INT_HI): Ditto.
19732 (QI_FTYPE_V8SF_INT_QI): Ditto.
19733 (QI_FTYPE_V4SF_INT_QI): Ditto.
19734 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
19736 2015-07-31 Richard Biener <rguenther@suse.de>
19738 * gimple-fold.c (fold_gimple_assign): Remove folding of
19741 2015-07-31 Tom de Vries <tom@codesourcery.com>
19743 PR tree-optimization/66846
19744 * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
19745 verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
19746 (expand_omp_target) [ENABLE_CHECKING]: Same.
19747 (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
19748 cfun if !LOOPS_NEED_FIXUP.
19749 (expand_omp_for_static_nochunk): Handle simple latch bb. Handle case
19750 that omp_for already has its own loop struct.
19751 * tree-parloops.c (create_phi_for_local_result)
19752 (create_call_for_reduction): Handle simple latch bb.
19753 (create_parallel_loop): Add simple latch bb to preserve
19754 LOOPS_HAVE_SIMPLE_LATCHES. Record new exit. Handle simple latch bb.
19755 (gen_parallel_loop): Remove call to cancel_loop_tree.
19756 (parallelize_loops): Skip loops that are inner loops of parallelized
19758 (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
19759 verify_loop_structure.
19761 2015-07-30 Anatoly Sokolov <aesok@post.ru>
19763 * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
19764 * config/v850/v850.md (RV_REGNUM): New constants.
19765 * config/v850/v850.c (v850_libcall_value): New functions.
19766 (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
19767 (TARGET_LIBCALL_VALUE): Define.
19769 2015-07-30 Anatoly Sokolov <aesok@post.ru>
19771 * rtl.h (lowpart_subreg): Move in file.
19772 * loop-iv.c (lowpart_subreg): Move to...
19773 * simplify-rtx.c (lowpart_subreg): ...here.
19774 (simplify_binary_operation_1): Use lowpart_subreg instead of
19775 simplify_gen_subreg.
19776 * expr.c (expand_expr_real_2): Ditto.
19777 * emit-rtl.c (gen_lowpart_common): Ditto.
19778 * combine.c (gen_lowpart_for_combine): Ditto.
19779 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
19780 expand_debug_source_expr): Ditto.
19782 2015-07-30 Richard Sandiford <richard.sandiford@arm.com>
19784 * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
19785 (expand_builtin_atomic_clear): Remove support for atomic_clear
19788 2015-07-30 Richard Biener <rguenther@suse.de>
19790 * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
19791 binaries. Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
19792 (fold_stmt_1): ... here and work on GIMPLE directly. Remove
19793 redundant operand canonicalization.
19795 2015-07-30 David Sherwood <david.sherwood@arm.com>
19797 * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
19798 GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
19799 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
19800 * config/arm/arm.c (neon_valid_immediate): Likewise.
19801 * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
19802 (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
19803 (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
19804 (expand_vec_perm_vpshufb2_vpermq): Likewise.
19805 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
19806 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
19807 * config/i386/sse.md
19808 (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
19809 (*ssse3_palignr<mode>_perm): Likewise.
19810 * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
19811 * config/spu/spu.c (arith_immediate_p): Likewise.
19812 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
19813 (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
19815 2015-07-30 Richard Biener <rguenther@suse.de>
19817 * genmatch.c (decision_tree::gen_gimple): Merge with ...
19818 (decision_tree::gen_generic): ... this into ...
19819 (decision_tree::gen): ... this.
19820 (main): Adjust callers.
19822 2015-07-30 Richard Biener <rguenther@suse.de>
19824 * genmatch.c (verbose): New global.
19825 (warning_at): Add overload with source_location.
19826 (capture_info::capture_info): Add bool whether generating gimple
19827 or generic. Add gimple member.
19828 (capture_info::cinfo): Add capture member.
19829 (capture_info::walk_match): Record capture. Warn on
19830 non-captured leafs.
19831 (capture_info::walk_c_expr): Add more fragments captures cannot
19832 escape through. Warn on escaped captures.
19833 (dt_simplify::gen_1): Warn on operands we force to have no
19835 (main): Initialize verbose.
19836 * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
19838 2015-07-30 Richard Biener <rguenther@suse.de>
19840 PR middle-end/67053
19841 * match.pd: Allow both operands to independently have conversion
19842 when simplifying compares of addresses.
19844 2015-07-29 Segher Boessenkool <segher@kernel.crashing.org>
19848 * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
19849 around those cases that need one.
19851 2015-07-29 Aditya Kumar <hiraditya@msn.com>
19853 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
19855 2015-07-29 H.J. Lu <hongjiu.lu@intel.com>
19857 * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
19858 New. Copied from config/i386/gnu-user.h.
19859 (ASM_COMMENT_START): Likewise.
19860 (DBX_REGISTER_NUMBER): Likewise.
19862 2015-07-29 Richard Biener <rguenther@suse.de>
19864 * gimple-fold.c (fold_gimple_cond): Remove.
19865 (fold_stmt_1): Do not call it.
19867 2015-07-29 Alan Lawrence <alan.lawrence@arm.com>
19869 * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
19870 (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
19872 * config/aarch64/aarch64-modes.def: Add HFmode.
19874 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
19875 __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
19877 * config/aarch64/aarch64.c (aarch64_init_libfuncs,
19878 aarch64_promoted_type): New.
19880 (aarch64_float_const_representable_p): Disable HFmode.
19881 (aarch64_mangle_type): Mangle half-precision floats to "Dh".
19882 (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
19883 (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
19885 * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
19886 (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
19888 * config/aarch64/iterators.md (GPF_F16): New.
19890 2015-07-29 Richard Biener <rguenther@suse.de>
19892 * match.pd: Merge address comparison patterns and make them
19893 handle some more cases.
19895 2015-07-29 Richard Biener <rguenther@suse.de>
19897 * genmatch.c (c_expr::gen_transform): Error on unknown captures.
19898 (parser::parse_capture): Add bool argument on whether to reject
19900 (parser::parse_expr): Adjust.
19901 (parser::parse_op): Likewise.
19902 (parser::parse_pattern): Likewise.
19904 2015-07-29 Richard Biener <rguenther@suse.de>
19906 * gimple-fold.c (has_use_on_stmt): New function.
19907 (replace_stmt_with_simplification): Use it to allow
19908 abnormals originally referenced in the stmt.
19909 (fold_stmt_1): Canonicalize operand order.
19911 2015-07-28 David Sherwood <david.sherwood@arm.com>
19913 * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
19914 GET_MODE_INNER unconditionally.
19915 * config/spu/spu.c (arith_immediate_p): Likewise.
19916 * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
19917 * expmed.c (synth_mult): Remove check for VOIDmode result from
19919 (expand_mult_const): Likewise.
19920 * fold-const.c (fold_binary_loc): Replace call to element_precision
19921 with call to GET_MODE_PRECISION.
19922 * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
19924 (emit_mode_inner): Likewise.
19925 * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
19927 * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
19928 (GET_MODE_UNIT_PRECISION): Likewise.
19929 * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
19930 * simplify-rtx.c (simplify_immed_subreg): Likewise.
19931 * stor-layout.c (bitwise_type_for_mode): Update assert.
19932 (element_precision): Remove.
19934 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
19936 * target-insns.def (reload_load_address): New targetm instruction
19938 * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
19940 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
19942 * target-insns.def (atomic_test_and_set): New targetm instruction
19944 * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
19945 HAVE_*/gen_* interface.
19947 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
19949 * target-insns.def (can_extend, ptr_extend): New targetm instruction
19951 * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
19952 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
19953 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
19954 * rtlanal.c (nonzero_bits1): Likewise.
19955 (num_sign_bit_copies1): Likewise.
19957 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
19959 * target-insns.def (eh_return): New targetm instruction pattern.
19960 * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
19962 * function.c (thread_prologue_and_epilogue_insns): Remove
19963 preprocessor condition.
19965 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
19967 * target-insns.def (indirect_jump): New targetm instruction pattern.
19968 * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
19971 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
19973 * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
19974 instead of nonimmediate_operand. Remove C condiition.
19976 2015-07-28 Richard Biener <rguenther@suse.de>
19978 * match.pd: Add more simplification of address comparisons.
19980 2015-07-28 Richard Biener <rguenther@suse.de>
19982 * match.pd: Re-order two cases in comparison with max/min
19983 value simplification to make it apply for bools.
19985 2015-07-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19987 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
19988 Handle simple SIGN_EXTEND or ZERO_EXTEND.
19989 (aarch64_rtx_costs): Properly strip extend or extract before
19990 passing down to rtx costs again.
19992 2015-07-28 Nick Clifton <nickc@redhat.com>
19994 * config/rl78/rl78.c (rl78_addsi3_internal): New function.
19995 Optimizes the case where -mes0 is active and a constant symbolic
19997 * config/rl78/rl78-protos.h: Prototype the new function.
19998 * config/rl78/rl78.md (addsi3_internal_real): Call new function.
20000 2015-07-28 Tom de Vries <tom@codesourcery.com>
20002 * tree-parloops.c (reduc_stmt_res): New function.
20003 (initialize_reductions, add_field_for_reduction)
20004 (create_phi_for_local_result, create_loads_for_reductions)
20005 (create_stores_for_reduction, build_new_reduction): Handle case that
20006 reduc_stmt is a phi.
20007 (gather_scalar_reductions): Allow double_reduc reductions.
20009 2015-07-28 Richard Biener <rguenther@suse.de>
20011 * fold-const.c (fold_comparison): Remove equality folding
20012 of decl addresses ...
20013 * match.pd: ... here and merge with existing pattern.
20015 2015-07-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
20017 PR tree-optimization/66828
20018 * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
20019 from int64_t to uint64_t.
20021 2015-07-28 Dominik Vogt <vogt@linux.vnet.ibm.com>
20023 * opts-common.c (read_cmdline_option): List DriverOnly enum values
20024 as valid only in the error message of the driver, not in the
20025 messages of the language compilers.
20027 2015-07-27 Tom de Vries <tom@codesourcery.com>
20029 * tree-parloops.c (gather_scalar_reductions): Simplify function
20032 2015-07-27 Marek Polacek <polacek@redhat.com>
20034 * ipa-devirt.c (types_same_for_odr): Fix typo.
20036 2015-07-27 Jason Merrill <jason@redhat.com>
20039 * dwarf2out.c (gen_inlined_subroutine_die): Check
20040 cgraph_function_possibly_inlined_p.
20042 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
20044 * config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
20045 Place integer variant first.
20046 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
20048 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
20051 * config/arm/arm-builtins.c (enum arm_builtins):
20052 Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
20053 (ARM_BUILTIN_NEON_BASE): Rename macro to....
20054 (ARM_BUILTIN_NEON_PATTERN_START): ...this.
20055 (arm_init_neon_builtins): Register __builtin_arm_lane_check.
20056 (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
20058 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
20061 * config/arm/arm-builtins.c (enum arm_type_qualifiers):
20062 Add qualifier_lane_index.
20063 (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
20064 (arm_getlane_qualifiers): Use qualifier_lane_index.
20065 (arm_lanemac_qualifiers): Rename to...
20066 (arm_mac_n_qualifiers): ...this.
20067 (LANEMAC_QUALIFIERS): Rename to...
20068 (MAC_N_QUALIFIERS): ...this.
20069 (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
20070 (arm_setlane_qualifiers): Use qualifier_lane_index.
20071 (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
20072 (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
20073 (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
20074 (arm_expand_neon_builtin): Handle qualifier_lane_index.
20076 * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
20077 * config/arm/arm.c (bounds_check): Likewise, improve error message.
20078 (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
20079 * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
20080 vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
20081 vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
20082 vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
20083 (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
20084 qualifiers to TERNOP_IMM.
20085 (vdup_lane): Change qualifiers to GETLANE.
20086 (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
20087 vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
20088 (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
20089 vqdmlsl_n): Change qualifiers to MAC_N.
20091 * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
20092 neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
20093 neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
20094 neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
20095 neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
20096 neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
20097 neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
20098 neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
20099 neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
20100 Remove call to neon_lane_bounds.
20102 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
20104 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
20105 Place integer variant first.
20107 2015-07-27 Matthew Wahab <matthew.wahab@arm.com>
20109 * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
20110 and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
20111 * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
20112 for armv6kz targets.
20113 * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
20114 * config/arm/arm-protos.h (FL_ARCH6KZ): New.
20115 (FL_FOR_ARCH6ZK): Remove.
20116 (FL_FOR_ARCH6KZ): New.
20117 (arm_arch6zk): New declaration.
20118 * config/arm/arm-tables.opt: Regenerate.
20119 * config/arm/arm.c (arm_arch6kz): New.
20120 (arm_option_override): Set arm_arch6kz.
20121 * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
20122 * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
20123 * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
20125 2015-07-27 Marek Polacek <polacek@redhat.com>
20129 * doc/invoke.texi: Document -Wtautological-compare.
20131 2015-07-27 Richard Biener <rguenther@suse.de>
20133 * genmatch.c (decision_tree::gen_gimple): Split out large
20134 subtrees into separate functions.
20135 (decision_tree::gen_generic): Likewise.
20137 2015-07-26 Uros Bizjak <ubizjak@gmail.com>
20139 * config/alpha/alpha.c: Use SUBREG_P predicate.
20140 * config/alpha/predicates.md: Ditto.
20142 2015-07-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
20144 * config.host (s390*-*-*): Include driver-native.c only when
20145 building with s390* as host *and* target.
20147 2015-07-25 Oleg Endo <olegendo@gcc.gnu.org>
20150 * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
20151 T bit register modified_between_p check.
20153 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
20155 * config/i386/i386.c: Use SUBREG_P predicate.
20156 * config/i386/i386.md: Ditto.
20157 * config/i386/sse.md: Ditto.
20158 * config/i386/predicates.md: Ditto.
20160 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
20163 * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
20164 predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
20166 2015-07-25 Sebastian Pop <s.pop@samsung.com>
20168 * Makefile.in: Remove use of TREEBROWSER.
20169 * config.in: Regenerated.
20170 * configure: Regenerated.
20171 * configure.ac: Remove definition of TREEBROWSER.
20172 * tree-browser.c: Removed.
20173 * tree-browser.def: Removed.
20175 2015-07-25 Sebastian Pop <s.pop@samsung.com>
20177 * graphite-scop-detection.c: Include gimple-pretty-print.h.
20178 (stmt_simple_for_scop_p): Print when a stmt is not handled in
20180 (scopdet_basic_block_info): Print when a loop or bb cannot be
20181 represented in Graphite.
20183 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
20186 * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
20187 execution guard when min_size is less than size_needed.
20189 2015-07-25 Sebastian Pop <s.pop@samsung.com>
20191 * doc/install.texi: Document supported versions of ISL.
20193 2015-07-25 Jeff Law <law@redhat.com>
20197 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
20198 unable to find X NE 0 in the tables, return X as the simplified
20200 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
20201 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
20202 to VISISTED_BBS. */
20203 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
20204 after removing the control flow statement and unnecessary edges.
20206 2015-07-25 David Edelsohn <dje.gcc@gmail.com>
20209 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
20211 PR rtl-optimization/64164
20212 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
20213 * tree-ssa-copyrename.c: Removed.
20214 * opts.c (default_options_table): Drop -ftree-copyrename. Add
20215 -ftree-coalesce-vars.
20216 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
20217 * common.opt (ftree-copyrename): Ignore.
20218 (ftree-coalesce-inlined-vars): Likewise.
20219 * doc/invoke.texi: Remove the ignored options above.
20220 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
20221 * tree-ssa-coalesce.h: ... here.
20222 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
20223 headers required by it.
20224 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
20225 across variables when flag_tree_coalesce_vars. Check register
20226 use and promoted modes to allow coalescing. Moved to
20227 tree-ssa-coalesce.c.
20228 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
20229 with its member functions to tree-ssa-coalesce.c.
20230 (var_map_base_init): Likewise. Renamed to
20231 compute_samebase_partition_bases.
20232 (partition_view_normal): Drop want_bases parameter.
20233 (partition_view_bitmap): Likewise.
20234 * tree-ssa-live.h: Adjust declarations.
20235 * tree-ssa-coalesce.c: Include explow.h.
20236 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
20237 default defs at the entry point.
20238 (dump_part_var_map): New.
20239 (compute_optimized_partition_bases): New, called by...
20240 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
20241 of compute_samebase_partition_bases. Adjust.
20242 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
20243 * cfgexpand.c (leader_merge): New.
20244 (get_rtl_for_parm_ssa_default_def): New.
20245 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
20246 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
20247 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
20248 redundant MEM attr setting.
20249 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
20251 (expand_one_stack_var): ... this. New wrapper to check and
20252 skip already expanded SSA partitions.
20253 (record_alignment_for_reg_var): New, factored out of...
20254 (expand_one_var): ... this.
20255 (expand_one_ssa_partition): New.
20256 (adjust_one_expanded_partition_var): New.
20257 (expand_one_register_var): Check and skip already expanded SSA
20259 (expand_used_vars): Don't create DECLs for anonymous SSA
20260 names. Expand all SSA partitions, then adjust all SSA names.
20261 (pass::execute): Replace the loops that set
20262 SA.partition_to_pseudo from partition leaders and cleared
20263 DECL_RTL for multi-location variables, and that which used to
20264 rename vars and set attrs, with one that clears DECL_RTL and
20265 checks that PARMs and RESULTs default_defs match DECL_RTL.
20266 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
20267 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
20268 * explow.c (promote_ssa_mode): New.
20269 * explow.h (promote_ssa_mode): Declare.
20270 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
20271 * function.c: Include cfgexpand.h.
20272 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
20273 (use_register_for_parm_decl): Wrapper for the above to
20274 special-case the result_ptr.
20275 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
20276 (split_complex_args): Take assign_parm_data_all argument.
20277 Pass it to rtl_for_parm. Set up rtl and context for split
20279 (assign_parms_augmented_arg_list): Adjust.
20280 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
20281 multiple locations. Recognize split complex args.
20282 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
20283 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
20284 (assign_parm_setup_block): Prefer SSA-assigned location.
20285 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
20286 if stack_parm is NULL.
20287 (assign_parm_setup_stack): Prefer SSA-assigned location.
20288 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
20289 rtl before testing for pointer bounds. Special-case result_ptr.
20290 (expand_function_start): Maybe reset DECL_RTL of result.
20291 Prefer SSA-assigned location for result and static chain.
20292 Factor out DECL_RESULT and SET_DECL_RTL.
20293 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
20294 anonymous SSA names. Use promote_ssa_mode.
20295 (get_temp_reg): Likewise.
20296 (remove_ssa_form): Adjust.
20297 * stor-layout.c (layout_decl): Don't set mem attributes of
20299 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
20300 and get its reg_usage for reg invalidation.
20301 (compute_bb_dataflow): Pass it insn.
20302 (emit_notes_in_bb): Likewise.
20304 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
20306 * config/i386/i386.c (ix86_va_start): Remove
20307 unneeded !TARGET_64BIT check.
20308 (ix86_gimplify_va_arg): Ditto.
20310 2015-07-24 Tom de Vries <tom@codesourcery.com>
20312 * graphite-sese-to-poly.c (build_poly_scop): Always call
20313 rewrite_commutative_reductions_out_of_ssa.
20315 2015-07-24 Tom de Vries <tom@codesourcery.com>
20317 * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
20318 flag_associative_math to FLOAT_TYPE_P. Honour
20319 TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
20321 2015-07-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
20324 * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
20325 and "%qD" in warning_at instead of "%q+D" in warning.
20327 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
20329 * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
20330 (ix86_function_abi): Cleanup.
20332 2015-07-24 Michael Darling <darlingm@gmail.com>
20335 * acinclude.m4: Reflects renaming of configure.in to configure.ac
20336 * configure: Likewise
20337 * configure.ac: Likewise
20338 * doc/install.texi: Likewise
20339 * doc/tm.texi: Likewise
20340 * doc/tm.texi.in: Likewise
20342 2015-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20344 * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
20345 manually swapping values.
20346 * cse.c (fold_rtx): Likewise.
20347 * lra-eliminations.c (form_sum): Likewise.
20349 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
20352 * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
20353 * config/i386/i386.md (maybe_prefix_bnd): New attribute.
20354 (*jcc_1, *jcc_2, jump, simple_return_internal)
20355 (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
20356 Set length_nobnd attribute instead of length attribute.
20357 (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
20358 (length_nobnd): Remove attribute.
20359 (length): Remove length_nobnd processing.
20361 2015-07-24 Nathan Sidwell <nathan@codesourcery.com>
20363 * gimplify.c (omp_default_clause): New function. Reorganize flow
20364 for clarity. Broken out of ...
20365 (omp_notice_variable): ... here.
20367 2015-07-24 Gary Funck <gary@intrepid.com>
20369 PR middle-end/66984
20370 * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
20371 fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
20373 2015-07-24 Tom de Vries <tom@codesourcery.com>
20375 * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
20376 exit-first loop transform.
20378 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
20381 * tree-cfg.c (struct replace_decls_d): New struct.
20382 (replace_block_vars_by_duplicates_1): New function.
20383 (replace_block_vars_by_duplicates): Use it to replace the decls
20384 in the value exprs by duplicates.
20386 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
20388 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
20389 -shared, -symbolic, -rdynamic.
20391 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
20394 * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
20395 -dynamic-linker within %{!static %{!shared, and -rdynamic within
20398 2015-07-24 Ilya Enkovich <enkovich.gnu@gmail.com>
20401 * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
20402 edge summary is available.
20404 2015-07-24 Richard Biener <rguenther@suse.de>
20406 * genmatch.c (struct dt_node): Add statistic fields.
20407 (dt_node::analyze): New method.
20408 (decision_tree::gen_gimple): Call analyze on the root node
20409 and print statistics to stderr.
20410 (decision_tree::gen_generic): Likewise.
20412 2015-07-24 Richard Biener <rguenther@suse.de>
20414 * fold-const.c (fold_binary_loc): Move simplifying of comparisons
20415 against the highest or lowest possible integer ...
20416 * match.pd: ... as patterns here.
20418 2015-07-24 Richard Biener <rguenther@suse.de>
20420 * genmatch.c (struct capture_info): Add same_as field.
20421 (capture_info::capture_info): Initialize same_as.
20422 (capture_info::walk_match): Compute same_as.
20423 (capture_info::walk_result): Compute stuff for the leader.
20424 (capture_info::walk_c_expr): Likewise.
20425 (dt_simplify::gen_1): Only look at leaders when deciding
20426 to force no side-effects or emit side-effects of omitted operands.
20428 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20430 * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
20431 reg note to the GPR -> FPR save instructions.
20433 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20435 * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
20437 (s390_expand_insv): Don't generate risbg pattern for constant zero
20439 * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
20440 ("*insv<mode>_z10_appendbitsleft"): New pattern definitions. New
20443 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
20445 * config/s390/s390.c (s390_reorg): Clean up handling of processors
20448 (s390_issue_rate): Likewise.
20449 (s390_sched_reorder): Likewise.
20450 (s390_sched_variable_issue): Likewise.
20451 (s390_loop_unroll_adjust): Likewise.
20452 (s390_option_override): Likewise.
20454 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
20456 * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
20457 processor capabilities with -march=native.
20458 * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
20459 (DRIVER_SELF_SPECS): Likewise. Join specs for 31 and 64 bit.
20460 (S390_TARGET_BITS_STRING): Macro to simplify specs.
20462 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
20464 * config/s390/s390.c (s390_issue_rate): Handle
20465 PROCESSOR_2094_Z9_EC.
20466 (s390_option_override): Likewise.
20467 (s390_adjust_priority): Likewise.
20469 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
20471 * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
20472 when cross compiling.
20474 2015-07-24 Richard Biener <rguenther@suse.de>
20476 * fold-const.c (maybe_canonicalize_comparison_1): Move
20477 A code CST canonicalization ...
20478 * match.pd: ... to a pattern here.
20480 2015-07-24 Jiong Wang <jiong.wang@arm.com>
20483 2015-07-22 Jiong Wang <jiong.wang@arm.com>
20485 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
20486 (HONOR_REG_ALLOC_ORDER): Define.
20488 2015-07-24 Richard Biener <rguenther@suse.de>
20490 * genmatch.c (add_operator): Allow SSA_NAME as predicate.
20491 * fold-const.c (fold_comparison): Move parameter does not
20492 alias &local simplification ...
20493 * match.pd: ... as a pattern here.
20495 2015-07-24 Richard Biener <rguenther@suse.de>
20497 * gimple-fold.c (replace_stmt_with_simplification): Special-case
20498 valueizing call operands.
20499 * gimple-match-head.c (maybe_push_res_to_seq): Take
20500 number of call arguments from ops array.
20501 (do_valueize): New function.
20502 (gimple_simplify): Return true if valueization changed
20503 any operand even if the result didn't simplify further.
20505 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
20507 PR middle-end/25530
20508 * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
20510 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
20512 PR middle-end/25529
20513 * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
20515 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
20517 * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
20520 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
20522 * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
20525 2015-07-23 Uros Bizjak <ubizjak@gmail.com>
20527 * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
20528 from ix86_build_builtin_va_list_abi. Handle only 64bit non-MS_ABI
20530 (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
20531 ms_va_list_type_node initialization.
20533 2015-07-23 Jeff Law <law@redhat.com>
20536 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
20537 unable to find X NE 0 in the tables, return X as the simplified
20539 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
20540 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
20541 to VISISTED_BBS. */
20542 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
20543 after removing the control flow statement and unnecessary edges.
20545 2015-07-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
20547 * tree-pass.h (get_current_pass_name): Removed.
20549 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
20551 PR rtl-optimization/64164
20552 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
20553 * tree-ssa-copyrename.c: Removed.
20554 * opts.c (default_options_table): Drop -ftree-copyrename. Add
20555 -ftree-coalesce-vars.
20556 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
20557 * common.opt (ftree-copyrename): Ignore.
20558 (ftree-coalesce-inlined-vars): Likewise.
20559 * doc/invoke.texi: Remove the ignored options above.
20560 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
20561 * tree-ssa-coalesce.h: ... here.
20562 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
20563 headers required by it.
20564 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
20565 across variables when flag_tree_coalesce_vars. Check register
20566 use and promoted modes to allow coalescing. Moved to
20567 tree-ssa-coalesce.c.
20568 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
20569 with its member functions to tree-ssa-coalesce.c.
20570 (var_map_base_init): Likewise. Renamed to
20571 compute_samebase_partition_bases.
20572 (partition_view_normal): Drop want_bases parameter.
20573 (partition_view_bitmap): Likewise.
20574 * tree-ssa-live.h: Adjust declarations.
20575 * tree-ssa-coalesce.c: Include explow.h.
20576 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
20577 default defs at the entry point.
20578 (dump_part_var_map): New.
20579 (compute_optimized_partition_bases): New, called by...
20580 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
20581 of compute_samebase_partition_bases. Adjust.
20582 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
20583 * cfgexpand.c (leader_merge): New.
20584 (get_rtl_for_parm_ssa_default_def): New.
20585 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
20586 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
20587 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
20588 redundant MEM attr setting.
20589 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
20591 (expand_one_stack_var): ... this. New wrapper to check and
20592 skip already expanded SSA partitions.
20593 (record_alignment_for_reg_var): New, factored out of...
20594 (expand_one_var): ... this.
20595 (expand_one_ssa_partition): New.
20596 (adjust_one_expanded_partition_var): New.
20597 (expand_one_register_var): Check and skip already expanded SSA
20599 (expand_used_vars): Don't create DECLs for anonymous SSA
20600 names. Expand all SSA partitions, then adjust all SSA names.
20601 (pass::execute): Replace the loops that set
20602 SA.partition_to_pseudo from partition leaders and cleared
20603 DECL_RTL for multi-location variables, and that which used to
20604 rename vars and set attrs, with one that clears DECL_RTL and
20605 checks that PARMs and RESULTs default_defs match DECL_RTL.
20606 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
20607 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
20608 * explow.c (promote_ssa_mode): New.
20609 * explow.h (promote_ssa_mode): Declare.
20610 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
20611 * function.c: Include cfgexpand.h.
20612 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
20613 (use_register_for_parm_decl): Wrapper for the above to
20614 special-case the result_ptr.
20615 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
20616 (split_complex_args): Take assign_parm_data_all argument.
20617 Pass it to rtl_for_parm. Set up rtl and context for split
20619 (assign_parms_augmented_arg_list): Adjust.
20620 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
20621 multiple locations. Recognize split complex args.
20622 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
20623 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
20624 (assign_parm_setup_block): Prefer SSA-assigned location.
20625 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
20626 if stack_parm is NULL.
20627 (assign_parm_setup_stack): Prefer SSA-assigned location.
20628 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
20629 rtl before testing for pointer bounds. Special-case result_ptr.
20630 (expand_function_start): Maybe reset DECL_RTL of result.
20631 Prefer SSA-assigned location for result and static chain.
20632 Factor out DECL_RESULT and SET_DECL_RTL.
20633 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
20634 anonymous SSA names. Use promote_ssa_mode.
20635 (get_temp_reg): Likewise.
20636 (remove_ssa_form): Adjust.
20637 * stor-layout.c (layout_decl): Don't set mem attributes of
20639 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
20640 and get its reg_usage for reg invalidation.
20641 (compute_bb_dataflow): Pass it insn.
20642 (emit_notes_in_bb): Likewise.
20644 2015-07-23 Segher Boessenkool <segher@kernel.crashing.org>
20647 * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
20649 * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
20650 (rs6000_emit_2insn_and): Handle dot forms.
20651 * config/rs6000/rs6000.md (and<mode>3): Adjust.
20652 (*and<mode>3_2insn): Remove TODO. Adjust. Add "type" attr.
20653 (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
20655 2015-07-23 Richard Biener <rguenther@suse.de>
20657 * generic-match-head.c: Include cgraph.h.
20658 * gimple-match-head.c: Likewise.
20659 * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
20661 * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
20662 * match.pd: ...to a pattern here. Add &A ==/!= 0 simplification
20665 2015-07-23 Richard Biener <rguenther@suse.de>
20667 * gimple-fold.c (fold_gimple_cond): Do not require folding
20668 results to pass valid_gimple_rhs_p.
20669 * tree-cfg.h (fold_cond_expr_cond): Remove.
20670 * tree-cfg.c (fold_cond_expr_cond): Likewise.
20671 (make_edges): Do not call it.
20672 * tree-inline.c (tree_function_versioning): Likewise.
20674 2015-07-23 Tom de Vries <tom@codesourcery.com>
20676 * tree-parloops.c (gather_scalar_reductions): Add arg to call to
20677 vect_force_simple_reduction.
20678 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
20679 (vect_is_simple_reduction_1): Add and handle
20680 need_wrapping_integral_overflow parameter.
20681 (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
20682 need_wrapping_integral_overflow parameter.
20683 (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
20684 * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
20687 2015-07-23 Yuri Rumyantsev <ysrumyan@gmail.com>
20689 PR tree-optimization/66926,66951
20690 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
20691 INNER_LOOP and fix up condition for renaming virtual operands.
20693 2015-07-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20695 * combine.c (try_combine): Use std::swap instead of manually
20698 2015-07-23 Prachi Godbole <prachi.godbole@imgtec.com>
20700 * config/mips/i6400.md: New file.
20701 * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
20702 (mips64r6): Likewise.
20704 * config/mips/mips-tables.opt: Regenerate.
20705 * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
20706 (mips_issue_rate): Add support for i6400.
20707 (mips_multipass_dfa_lookahead): Likewise.
20708 * config/mips/mips.h (TUNE_I6400): Define.
20709 * config/mips/mips.md: Include i6400.md.
20710 (processor): Add i6400.
20711 * doc/invoke.texi (-march=@var{arch}): Add i6400.
20713 2015-07-23 Richard Biener <rguenther@suse.de>
20715 PR middle-end/66916
20716 * match.pd: Guard widen and sign-change comparison simplification
20719 2015-07-23 Richard Biener <rguenther@suse.de>
20721 PR tree-optimization/66945
20722 * tree-ssa-propagate.c (substitute_and_fold_dom_walker
20723 ::before_dom_children): Force the propagators idea of
20724 non-executable edges to materialize, not what the folder
20727 2015-07-23 Richard Biener <rguenther@suse.de>
20729 * gimple.h (gimple_cond_make_false): Use 0 != 0.
20730 (gimple_cond_make_true): Use 1 != 0.
20732 2015-07-22 DJ Delorie <dj@redhat.com>
20734 * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
20737 * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
20738 (ashrhi3): Likewise.
20739 (lshrhi3): Likewise.
20740 (movhi): Take advantage of zero-extend to load small constants.
20741 (movpsi): Likewise.
20742 (and<mode>3): Likewise.
20743 (zero_extendqihi2): Likewise.
20744 (zero_extendqisi2): New.
20745 * config/msp430/constraints.md (N,O): New.
20746 * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
20748 2015-07-22 Uros Bizjak <ubizjak@gmail.com>
20751 * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
20752 to enum feature_priority and feature_list.
20753 (fold_builtin_cpu): Add F_AES to enum processor_features
20754 and isa_names_table.
20756 2015-07-22 Ilya Enkovich <enkovich.gnu@gmail.com>
20759 * config/i386/linux-common.h (MPX_SPEC): Use linker option
20760 for 64bit target only.
20762 2015-07-22 Bernd Schmidt <bernds@codesourcery.com>
20764 * config/nvptx/nvptx.c: Expand some comments.
20766 2015-07-22 James Greenhalgh <james.greenhalgh@arm.com>
20768 * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
20769 (cortex_a53_advsimd): ...This.
20771 2015-07-22 Richard Biener <rguenther@suse.de>
20773 * genmatch.c (expr::gen_transform): Clarify error message
20774 and display location.
20776 2015-07-22 Richard Biener <rguenther@suse.de>
20778 * genmatch.c (struct operand): Add location member.
20779 (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
20781 (struct simplify): Remove match_location and result_location
20783 (elsehwere): Adjust.
20785 2015-07-22 Prachi Godbole <prachi.godbole@imgtec.com>
20787 * config/mips/m5100.md: New file.
20788 * config/mips/mips-cpus.def (m5100, m5101): Define.
20789 * config/mips/mips-tables.opt: Regenerate.
20790 * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
20791 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
20792 -march=m5101 to -mips32r5.
20793 (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
20794 (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
20796 * config/mips/mips.md: Include m5100.md.
20797 (processor): Add m5100.
20798 * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
20800 2015-07-22 Robert Suchanek <robert.suchanek@imgtec.com>
20802 * config/mips/mips-cpus.def (interaptiv): Define.
20803 * config/mips/mips-tables.opt: Regenerate.
20804 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
20806 (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
20807 * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
20809 2015-07-22 Jiong Wang <jiong.wang@arm.com>
20812 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
20813 (HONOR_REG_ALLOC_ORDER): Define.
20815 2015-07-22 Richard Biener <rguenther@suse.de>
20817 PR tree-optimization/66952
20818 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
20819 blocks we end up executing unconditionally reset all SSA
20820 info such as range and alignment.
20821 * tree-ssanames.h (reset_flow_sensitive_info): Declare.
20822 * tree-ssanames.c (reset_flow_sensitive_info): New function.
20824 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
20826 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
20829 2015-07-22 Richard Biener <rguenther@suse.de>
20831 * genmatch.c (parser::parse_result): Properly handle
20832 match with result operands and conditions.
20834 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
20837 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
20838 Add qualifier_struct_load_store_lane_index.
20839 (aarch64_types_loadstruct_lane_qualifiers): Use
20840 qualifier_struct_load_store_lane_index for lane index argument for
20842 (aarch64_types_storestruct_lane_qualifiers): Ditto.
20843 (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
20844 (aarch64_simd_expand_args): Add new argument describing mode of
20845 builtin. Check lane bounds for arguments with
20846 SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
20847 (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
20848 if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
20849 (aarch64_simd_expand_builtin): Handle arguments with
20850 qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
20851 aarch64_simd_expand_args.
20852 * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
20853 vst[234]_lane with BUILTIN_VALLDIF.
20854 * config/aarch64/aarch64-simd.md:
20855 (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
20856 endianness reversal on lane index.
20857 (aarch64_vec_load_lanesci_lane<mode>): Ditto.
20858 (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
20859 (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
20860 (vec_store_lanesci_lane<mode>): Ditto.
20861 (vec_store_lanesxi_lane<mode>): Ditto.
20862 (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
20863 reversal of lane index.
20864 (aarch64_ld3_lane<mode>): Ditto.
20865 (aarch64_ld4_lane<mode>): Ditto.
20866 (aarch64_st2_lane<mode>): Ditto.
20867 (aarch64_st3_lane<mode>): Ditto.
20868 (aarch64_st4_lane<mode>): Ditto.
20869 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
20870 to qmode. Add new mode parameter. Update uses.
20871 (__LD3_LANE_FUNC): Ditto.
20872 (__LD4_LANE_FUNC): Ditto.
20873 (__ST2_LANE_FUNC): Ditto.
20874 (__ST3_LANE_FUNC): Ditto.
20875 (__ST4_LANE_FUNC): Ditto.
20877 2015-07-22 Jonathan Wakely <jwakely@redhat.com>
20879 * doc/invoke.texi (Language Independent Options): Rename node to
20880 Diagnostic Message Formatting Options.
20882 2015-07-21 Vladimir Makarov <vmakarov@redhat.com>
20885 * lra-remat.c (operand_to_remat): Prevent using insns with input
20886 subregs processed separately by IRA.
20888 2015-07-21 Andrew MacLeod <amacleod@redhat.com>
20890 * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
20892 (single_imm_use): Check for iterator node.
20893 (num_imm_uses): Likewise.
20894 * tree-ssa-operands.c (has_zero_uses_1): Delete.
20895 (single_imm_use_1): Check for iterator node.
20897 2015-07-21 Mike Frysinger <vapier@gentoo.org>
20898 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20900 * configure.ac: Add check for new options in isl-0.15.
20901 * config.in, configure: Rebuilt.
20902 * graphite-blocking.c: Include <isl/constraint.h>
20903 * graphite-interchange.c, graphite-poly.c: Likewise.
20904 * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
20905 * graphite.c: Likewise.
20906 * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
20908 * graphite-dependences.c: Include <isl/constraint.h>.
20909 (max_number_of_out_dimensions): Returns isl_stat.
20910 (extend_schedule_1): Likewise
20911 (extend_schedule): Corresponding changes.
20912 * graphite-optimize-isl.c: Include <isl/constraint.h> and
20914 (getSingleMap): Change return type of isl_stat.
20915 (optimize_isl): Conditionally use
20916 isl_options_set_schedule_serialize_sccs.
20917 * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
20918 if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
20920 2015-07-21 Georg-Johann Lay <avr@gjlay.de>
20923 * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
20924 (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
20926 2015-07-21 Richard Biener <rguenther@suse.de>
20928 PR tree-optimization/66948
20929 * genmatch.c (capture_info::walk_match): Also recurse to
20930 captures. Properly compute expr state from captures of
20932 * match.pd: Add single-use guards to
20933 (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
20935 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
20937 * config/nvptx/mkoffload.c (process): Add static destructor call.
20939 2015-07-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20941 PR middle-end/66915
20942 * match.pd (A - B -> A + (-B)): Don't allow folding
20943 when type if a fixed-point type.
20945 2015-07-20 DJ Delorie <dj@redhat.com>
20947 * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
20948 (iorqi3_real): Likewise for set1.
20950 2015-07-20 Uros Bizjak <ubizjak@gmail.com>
20952 * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
20955 2015-07-20 Aditya Kumar <hiraditya@msn.com>
20957 * graphite-isl-ast-to-gimple.c:
20958 Refactor so that each function can access 'region'. This will help
20959 maintain a parameter rename_map within a region.
20961 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
20963 * config/rs6000/rs6000.md (*lt0_disi): New.
20965 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
20968 * config/rs6000/constraints.md ("S", "T", "t"): Delete. Update
20969 "available letters" comment.
20970 * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
20971 mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
20972 and_2rld_operand): Delete.
20973 (and_operand): Adjust.
20974 (rotate_mask_operator): New.
20975 * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
20976 includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
20977 includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
20978 extract_ME): Delete.
20979 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
20980 rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
20981 rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
20982 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
20983 rs6000_emit_2insn_and): New.
20984 * config/rs6000/rs6000.c (num_insns_constant): Adjust.
20985 (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
20986 includes_rldic_lshift_p, includes_rldicr_lshift_p,
20987 insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
20988 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
20989 rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
20990 s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
20991 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
20992 rs6000_emit_2insn_and): New.
20993 (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
20994 (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
20996 <NOT>: Don't fall through to next case.
20997 <AND>: Handle the various rotate-and-mask cases directly.
20998 <IOR>: Always cost as one insn.
20999 * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
21000 (and<mode>3): Adjust expander for the new patterns.
21001 (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
21002 and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
21003 (*and<mode>3_imm_dot_shifted): New.
21004 (*and<mode>3_mask): Delete, rewrite as ...
21005 (and<mode>3_mask): ... New.
21006 (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
21007 (andsi3_internal0_nomc): Delete.
21008 (*andsi3_internal6): Delete.
21009 (*and<mode>3_2insn): New.
21010 (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
21011 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
21012 *insvsi_internal6, insvdi_internal, *insvdi_internal2,
21013 *insvdi_internal3): Delete.
21014 (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
21015 *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
21016 *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
21017 *ior<mode>_mask): New.
21018 (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
21019 *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
21020 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
21021 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
21023 (ashr<mode>3): Delete expander.
21024 (*ashr<mode>3): Rename to ...
21025 (ashr<mode>3): ... This.
21026 (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
21027 (*rotldi3_internal4, *rotldi3_internal5 and split,
21028 *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
21029 and split, *ashldi3_internal6 and split, *ashldi3_internal7,
21030 ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
21031 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
21032 (splitter for loading a mask): Adjust.
21033 * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
21035 2015-07-20 Marek Polacek <polacek@redhat.com>
21037 * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
21038 output_add_clobbers, output_added_clobbers_hard_reg_p,
21039 gen_rtx_scratch): Remove declarations.
21041 2015-07-20 Marek Polacek <polacek@redhat.com>
21044 * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
21046 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21048 * simplify-rtx.c (simplify_unary_operation_1, NEG case):
21049 (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
21051 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21053 * combine.c (combine_simplify_rtx): Move simplification step
21054 before various transformations/substitutions.
21056 2015-07-20 Mikhail Maltsev <maltsevm@gmail.com>
21058 * wide-int.h (struct binary_traits): Fix partial specialization syntax.
21059 (struct int_traits): Likewise.
21061 2015-07-18 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21063 * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
21064 function to vmsdbgout_function_decl.
21066 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
21069 * config/i386/i386.c (ix86_expand_pextr): Reject extractions
21070 from misaligned positions.
21071 (ix86_expand_pinsr): Reject insertions to misaligned positions.
21073 2015-07-18 Sebastian Pop <s.pop@samsung.com>
21075 PR middle-end/46851
21076 PR middle-end/60340
21077 * Makefile.in: Removed omega.o.
21078 * common.opt: Document flag fcheck-data-deps as deprecated.
21079 * doc/invoke.texi: Remove documentation for fcheck-data-deps and
21080 its associated params: omega-max-vars, omega-max-geqs,
21081 omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
21082 omega-max-keys, omega-eliminate-redundant-constraints.
21083 * doc/loop.texi: Remove all the section on Omega.
21084 * graphite-blocking.c: Include missing params.h: it used to be
21085 included through tree-data-ref.h and omega.h.
21086 * graphite-isl-ast-to-gimple.c: Same.
21087 * graphite-optimize-isl.c: Same.
21088 * graphite-sese-to-poly.c: Same.
21089 * graphite.c: Same.
21092 * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
21093 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
21094 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
21095 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
21096 * passes.def: Remove pass_check_data_deps.
21097 * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
21098 (dump_conflict_function): Same.
21099 (dump_subscript): Same.
21100 (print_direction_vector): Same.
21101 (print_dir_vectors): Same.
21102 (print_lambda_vector): Same.
21103 (print_dist_vectors): Same.
21104 (dump_data_dependence_relation): Same.
21105 (dump_data_dependence_relations): Same.
21106 (dump_dist_dir_vectors): Same.
21108 (init_omega_eq_with_af): Removed.
21109 (omega_extract_distance_vectors): Removed.
21110 (omega_setup_subscript): Removed.
21111 (init_omega_for_ddr_1): Removed.
21112 (init_omega_for_ddr): Removed.
21113 (ddr_consistent_p): Removed.
21114 (compute_affine_dependence): Do not use omega to check data
21116 (compute_data_dependences_for_bb): Removed.
21117 (analyze_all_data_dependences): Removed.
21118 (tree_check_data_deps): Removed.
21119 * tree-data-ref.h: Do not include omega.h.
21120 (compute_data_dependences_for_bb): Removed.
21121 (tree_check_data_deps): Removed.
21122 * tree-ssa-loop.c (pass_check_data_deps): Removed.
21123 (make_pass_check_data_deps): Removed.
21124 * tree-ssa-phiopt.c: Include params.h.
21125 * tree-vect-data-refs.c: Same.
21126 * tree-vect-slp.c: Same.
21128 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
21130 * config/i386/i386.md (pushsf splitter): Pass curr_insn to
21131 find_constant_src. FAIL if find_constant_src returns NULL_RTX.
21132 (mem->fpreg splitters): Ditto.
21133 (general_operand->nonimmediate_operand splitter): Use explicit modes.
21134 Disable DFmode for TARGET_64BIT.
21136 2015-07-17 H.J. Lu <hongjiu.lu@intel.com>
21139 * config/i386/i386.c (ix86_expand_prologue): Replicate static
21140 chain on the stack.
21142 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
21144 * config/nvptx/mkoffload.c (process): Constify host data.
21145 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
21146 Constify host data.
21147 (generate_host_descr_file): Likewise.
21149 2015-07-17 Aditya Kumar <aditya.k7@samsung.com>
21150 Sebastian Pop <s.pop@samsung.com>
21152 PR middle-end/61929
21153 * graphite-dependences.c (add_pdr_constraints): Renamed
21154 pdr->extent to pdr->subscript_sizes.
21155 * graphite-interchange.c (build_linearized_memory_access): Add
21156 back all gcc_assert's that the "isl_int to isl_val conversion"
21157 patch has removed. Refactored.
21158 (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
21159 * graphite-poly.c (new_poly_dr): Same.
21160 (free_poly_dr): Same.
21161 * graphite-poly.h (struct poly_dr): Same.
21162 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
21163 all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
21164 * graphite-scop-detection.h: Fix space.
21165 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
21166 back all gcc_assert's removed by a previous patch.
21167 (wrap): Remove the_isl_ctx global variable that the same patch has
21169 (build_loop_iteration_domains): Same.
21170 (add_param_constraints): Same.
21171 (pdr_add_data_dimensions): Same. Refactored.
21172 (build_poly_dr): Renamed extent to subscript_sizes.
21174 2015-07-17 Marek Polacek <polacek@redhat.com>
21176 * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
21177 * match.pd: ... here.
21179 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
21181 * config/nvptx/mkoffload.c (process): Constify target data.
21182 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
21183 Constify target data.
21184 (generate_target_offloadend_file): Likewise.
21186 2015-07-17 Yuri Rumyantsev <ysrumyan@gmail.com>
21188 * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
21189 to allow renaming of PHI arguments on edges incoming from outer
21190 loop header, add corresponding check before start PHI iterator.
21191 (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
21192 variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
21193 with true force_vectorize. Set-up dominator for outer loop too.
21194 Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
21195 (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
21196 was marked with force_vectorize and has restricted cfg.
21197 (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
21199 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
21200 do peeling for outer loops.
21202 2015-07-17 Yvan Roux <yvan.roux@linaro.org>
21203 Matthias Klose <doko@ubuntu.com>
21205 * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
21206 build-sysroot, sysroot from the `Miscenalleous configure options' to
21207 the `Directories' section and strip trailing `/' from with_sysroot.
21208 (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
21209 * configure: Regenerated.
21211 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
21214 * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
21215 (TARGET_HARD_DF_REGS): Ditto.
21216 (TARGET_HARD_XF_REGS): Ditto.
21217 * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
21218 Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
21219 (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
21220 alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
21221 (*movsf_internal): Add alternatives 16 and 17. Enable
21222 alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
21224 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
21226 PR rtl-optimization/66891
21227 * calls.c (expand_call): Wrap precompute_register_parameters with
21228 NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
21230 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
21232 * config/nvptx/mkoffload.c (process): Constify mapping variables.
21233 Define target data struct and initialize it.
21235 2015-07-16 Vladimir Makarov <vmakarov@redhat.com>
21237 PR rtl-optimization/66626
21238 * ira.h (emit-rtl.h): Include.
21239 (non_spilled_static_chain_regno_p): New.
21240 * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
21241 unless it is non spilled static chain pseudo.
21242 (assign_hard_rego): Spill memory profitable allocno unless it is
21243 non spilled static chain pseudo.
21244 (allocno_spill_priority_compare): Put non spilled static chain
21245 pseudo at the end of sorted array.
21246 (improve_allocation): Do nothing if we have static chain and
21248 (allocno__priority_compare_func): Put non spilled static chain
21249 pseudo at the beginning of sorted array.
21250 (move_spill_restore): Ignore non spilled static chain pseudo.
21251 * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
21252 to non spilled static chain pseudo.
21253 * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
21254 pseudo at the beginning of sorted array.
21255 (spill_for): Spill non spilled static chain pseudo last.
21256 * lra-constraints.c (lra_constraints): Remove static chain pseudo
21257 check for equivalence.
21259 2015-07-16 Martin Liska <mliska@suse.cz>
21262 * ipa-prop.c (update_jump_functions_after_inlining): Create properly
21263 dst_ctx if it does not exist.
21265 2015-07-16 Martin Liska <mliska@suse.cz>
21267 * hash-set.h (remove): New function.
21268 (iterator): New iteration class for hash_set.
21270 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
21272 * genattrtab.c (make_canonical): Add a file_location parameter.
21273 Use fatal_at rather than fatal.
21274 (get_attr_value): Likewise. Update call to make_canonical.
21275 (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
21276 (make_internal_attr): Update calls accordingly.
21278 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
21280 * read-md.h (message_with_line, error_with_line): Delete.
21281 * read-md.c (message_with_line, error_with_line): Delete.
21282 * gensupport.h: Include read-md.h.
21283 (md_rtx_info): New structure.
21284 (read_md_rtx): Use it. Return a bool success value.
21285 * gensupport.c (read_md_rtx): Likewise.
21286 * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
21287 (main): Update after interface changes.
21288 * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
21289 (main): Update after interface changes.
21290 * genattrtab.c (insn_code_number): Delete.
21291 (optimize_attrs): Add a max_insn_code parameter and use it instead
21292 of insn_code_number.
21293 (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
21294 Use *_at rather than *_with_line functions.
21295 (gen_insn): Likewise.
21296 (gen_delay): Likewise.
21297 (gen_insn_reserv): Likewise.
21298 (gen_bypass): Take an md_rtx_info rather than an rtx.
21299 (main): Update after interface changes. Use a local max_insn_code
21300 variable instead of insn_code_number.
21301 * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
21302 an rtx. Use fatal_at rather than fatal.
21303 (gen_query_cpu_unit, gen_bypass, gen_excl_set)
21304 (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
21305 (gen_absence_set, gen_final_absence_set, gen_automaton)
21306 (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
21307 (main): Update after interface changes.
21308 * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
21310 (main): Update after interface changes.
21311 * genconditions.c (main): Use new read_md_rtx interface.
21312 * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
21313 (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
21314 (main): Update after interface changes.
21315 * genemit.c (insn_code_number, insn_index_number): Delete.
21316 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
21317 Use fatal_at rather than fatal.
21318 (gen_expand): Take an md_rtx_info rather than an rtx. Use fatal_at
21320 (gen_split): Likewise.
21321 (main): Update after interface changes.
21322 * genextract.c (line_no): Delete.
21323 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
21324 Update call to walk_rtx.
21325 (VEC_safe_set_locstr): Add an md_rtx_info argument. Use message_at
21326 rather than message_with_line.
21327 (walk_rtx): Add an md_rtx_info argument. Update call to
21328 VEC_safe_set_locstr.
21329 (main): Update after interface changes.
21330 * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
21331 and lineno. Use error_at rather than separate message_with_line
21332 calls and have_error assignments.
21333 (main): Update after interface changes.
21334 * genmddump.c (main): Use new read_md_rtx interface.
21335 * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
21336 (main): Update after interface changes.
21337 * genoutput.c (next_code_number): Delete.
21338 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
21339 (gen_peephole, gen_expand, gen_split): Likewise.
21340 (note_constraint): Likewise. Use *_at rather than *_with_line
21342 (main): Update after interface changes.
21343 * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
21345 (main): Update after interface changes.
21346 * genpreds.c (process_define_predicate): Take an md_rtx_info rather
21347 than an rtx and lineno.
21348 (process_define_constraint): Likewise.
21349 (process_define_register_constraint): Likewise.
21350 (main): Update after interface changes.
21351 * genrecog.c (next_insn_code, pattern_lineno): Delete.
21352 (validate_pattern): Replace top-level rtx with an md_rtx_info.
21353 Use *_at rather than *_with_line functions.
21354 (match_pattern_2): Likewise.
21355 (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
21356 (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
21357 Use *_at rather than *_with_line functions.
21358 * gentarget-def.c (add_insn): New function.
21359 (main): Use it. Use new read_md_rtx interface.
21361 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
21363 * gensupport.h (compute_test_codes): Take a file_location rather
21364 than a line number.
21365 * gensupport.c (compute_test_codes): Likewise. Use *_at functions
21366 rather than *_with_line functions.
21367 (process_define_predicate): Update call to compute_test_codes.
21368 * genpreds.c (validate_exp): Take a file_location rather than a
21369 line number. Use *_at functions rather than *_with_line functions.
21370 (process_define_predicate): Update call to validate_exp.
21371 (constraint_data): Replace lineno field with a file_location.
21372 (add_constraint): Take a file_location rather than a line number.
21373 Use *_at functions rather than *_with_line functions. Fix error
21374 message for address constraints. Update after changes to
21375 validate_exp, constraint_data and compute_test_codes.
21376 (process_define_constraint): Update accordingly.
21377 (process_define_register_constraint): Likewise.
21379 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
21381 * genoutput.c (data): Use a file_location to record the source
21384 (idata, idata_end): Remove initialization.
21385 (constraint_data): Replace lineno with a file_location.
21386 (output_insn_data): Update after changes to data.
21387 (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
21388 (scan_operands): Likewise, using *_at rather than *_with_line
21390 (process_template): Likewise.
21391 (validate_insn_alternatives): Likewise.
21392 (validate_insn_operands): Likewise.
21393 (validate_optab_operands): Likewise.
21394 (init_insn_for_nothing): Initialize idata and idata_end.
21395 (note_constraint): Update after changes to constraint_data,
21396 using at rather than with_line functions.
21397 (mdep_constraint_len): Take a file_location rather than a
21398 line number. Use at rather than with_line functions.
21400 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
21402 * read-md.h (fatal_at): Declare.
21403 * read-md.c (fatal_at): New function.
21404 * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
21405 to record the source position.
21406 (check_attr_test): Take a file_location instead of a line number.
21407 Use fatal_at instead of fatal.
21408 (check_attr_value): Update after above changes, using "at"
21409 rather than "with_line" reporting functions.
21410 (convert_set_attr_alternative): Likewise.
21411 (gen_attr): Likewise.
21412 (check_defs): Likewise. Don't assign to read_md_filename.
21413 (gen_insn): Update initialization after above changes.
21414 (gen_delay): Likewise.
21415 (write_insn_cases): Print the filename for a define_peephole.
21416 (gen_insn_reserv): Take a line number as argument and update
21417 the call to check_attr_test.
21418 (main): Pass a line number to gen_insn_reserv.
21420 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
21422 * read-md.h (file_location): New structure.
21423 (directive_handler_t): Take a file_location rather than a line number.
21424 (message_at, error_at): Declare.
21425 (read_skip_construct): Delete.
21426 * read-md.c (message_with_line_1): Replace with...
21427 (message_at_1): ...this new function.
21428 (message_at, error_at): New functions.
21429 (message_with_line, error_with_line): Update to use message_at_1.
21430 (handle_enum): Take a file_location rather than a line number
21431 and use error_at for error reporting.
21432 (handle_include): Likewise.
21433 (read_skip_construct): Likewise. Make static.
21434 (handle_file): Update after above changes. Pass a file_location
21435 rather than a line number to handle_directive.
21436 * gensupport.c (queue_elem): Replace separate filename and lineno
21437 with a file_location.
21438 (queue_pattern): Replace filename and lineno arguments with a
21439 file_location. Update after change to queue_elem.
21440 (process_define_predicate): Replace lineno argument with a
21441 file_location and use error_at for error reporting. Update
21442 after above changes.
21443 (process_rtx): Likewise.
21444 (subst_pattern_match): Likewise.
21445 (get_alternatives_number): Likewise.
21446 (alter_predicate_for_insn): Likewise.
21447 (rtx_handle_directive): Likewise.
21448 (is_predicable): Update after above changes, using error_at rather
21449 than error_with_line.
21450 (has_subst_attribute): Likewise.
21451 (identify_predicable_attribute): Likewise.
21452 (alter_attrs_for_subst_insn): Likewise.
21453 (process_one_cond_exec): Likewise.
21454 (process_substs_on_one_elem): Likewise.
21455 (process_define_subst): Likewise.
21456 (check_define_attr_duplicates): Likewise.
21457 (read_md_rtx): Update after change to queue_elem.
21459 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
21461 * genoutput.c (next_index_number): Delete.
21462 (data): Remove index_number.
21463 (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
21464 (main): Remove manipulation of next_index_number.
21466 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
21468 * genattrtab.c (check_attr_value): Remove handling of null attrs.
21469 (make_canonical): Likewise.
21471 2015-07-16 Eric Botcazou <ebotcazou@adacore.com>
21473 * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
21474 instead of adjust_address_nv.
21475 (restore_stack_nonlocal): Likewise.
21476 (nonlocal_goto): Likewise.
21478 2015-07-16 Tom de Vries <tom@codesourcery.com>
21480 * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
21481 not have a corresponding loop header phi.
21483 2015-07-16 Tom de Vries <tom@codesourcery.com>
21485 * tree-parloops.c (create_loads_for_reductions): Handle case that
21486 reduction is unused.
21488 2015-07-16 Richard Biener <rguenther@suse.de>
21490 PR tree-optimization/66894
21491 * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
21492 about deriving NE_EXPR from truncated values.
21494 2015-07-16 Martin Liska <mliska@suse.cz>
21497 (object_allocator): Add new class.
21498 (pool_allocator::initialize): Use the underlying class.
21499 (pool_allocator::allocate): Likewise.
21500 (pool_allocator::remove): Likewise.
21501 (operator new): A new generic allocator.
21502 * asan.c (struct asan_mem_ref): Remove unused members.
21503 (asan_mem_ref_new): Replace new operator with
21504 object_allocator::allocate.
21505 (free_mem_ref_resources): Change deallocation.
21506 * cfg.c (initialize_original_copy_tables): Replace pool_allocator
21507 with object_allocator.
21508 * config/sh/sh.c (add_constant): Replace new operator with
21509 object_allocator::allocate.
21510 (sh_reorg): Change call to a release method.
21511 * cselib.c (struct elt_list): Remove unused members.
21512 (new_elt_list): Replace new operator with
21513 object_allocator::allocate.
21514 (new_elt_loc_list): Likewise.
21515 (new_cselib_val): Likewise.
21516 (unchain_one_elt_list): Change delete operator with remove method.
21517 (unchain_one_elt_loc_list): Likewise.
21518 (unchain_one_value): Likewise.
21519 (cselib_finish): Release newly added static allocators.
21520 * cselib.h (struct cselib_val): Remove unused members.
21521 (struct elt_loc_list): Likewise.
21522 * df-problems.c (df_chain_alloc): Replace pool_allocator with
21524 * df-scan.c (struct df_scan_problem_data): Likewise.
21525 (df_scan_alloc): Likewise.
21526 * df.h (struct dataflow): Likewise.
21527 * dse.c (struct read_info_type): Likewise.
21528 (struct insn_info_type): Likewise.
21529 (struct dse_bb_info_type): Likewise.
21530 (struct group_info): Likewise.
21531 (struct deferred_change): Likewise.
21532 (get_group_info): Likewise.
21533 (delete_dead_store_insn): Likewise.
21534 (free_read_records): Likewise.
21535 (replace_read): Likewise.
21536 (check_mem_read_rtx): Likewise.
21537 (scan_insn): Likewise.
21538 (dse_step1): Likewise.
21539 (dse_step7): Likewise.
21540 * et-forest.c (struct et_occ): Remove unused members.
21541 (et_new_occ): Use allocate instead of new operator.
21542 (et_new_tree): Likewise.
21543 (et_free_tree): Call release method explicitly.
21544 (et_free_tree_force): Likewise.
21545 (et_free_pools): Likewise.
21546 (et_split): Use remove instead of delete operator.
21547 * et-forest.h (struct et_node): Remove unused members.
21548 * ipa-cp.c: Change pool_allocator to object_allocator.
21549 * ipa-inline-analysis.c: Likewise.
21550 * ipa-profile.c: Likewise.
21551 * ipa-prop.c: Likewise.
21552 * ipa-prop.h: Likewise.
21553 * ira-build.c (initiate_cost_vectors): Cast return value.
21554 (ira_allocate_cost_vector): Likewise.
21555 * ira-color.c (struct update_cost_record): Remove unused members.
21556 * lra-int.h (struct lra_live_range): Likewise.
21557 (struct lra_copy): Likewise.
21558 (struct lra_insn_reg): Likewise.
21559 * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
21560 * lra.c (new_insn_reg): Replace new operator with allocate method.
21561 (free_insn_regs): Same for operator delete.
21562 (finish_insn_regs): Release new static allocator.
21563 (finish_insn_recog_data): Likewise.
21564 (lra_free_copies): Replace delete operator with remove method.
21565 (lra_create_copy): Replace operator new with allocate method.
21566 (invalidate_insn_data_regno_info): Same for remove method.
21567 * regcprop.c (struct queued_debug_insn_change): Remove unused members.
21568 (free_debug_insn_changes): Replace delete operator with remove method.
21569 (replace_oldest_value_reg): Replace operator new with allocate method.
21570 (pass_cprop_hardreg::execute): Release new static variable.
21571 * sched-deps.c (sched_deps_init): Change pool_allocator to
21573 * sel-sched-ir.c: Likewise.
21574 * sel-sched-ir.h: Likewise.
21575 * stmt.c (expand_case): Likewise.
21576 (expand_sjlj_dispatch_table): Likewise.
21577 * tree-sra.c (struct access): Remove unused members.
21578 (struct assign_link): Likewise.
21579 (sra_deinitialize): Release newly added static pools.
21580 (create_access_1):Replace operator new with allocate method.
21581 (build_accesses_from_assign): Likewise.
21582 (create_artificial_child_access): Likewise.
21583 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
21584 pool_allocator to object_allocator.
21585 * tree-ssa-pre.c: Likewise.
21586 * tree-ssa-reassoc.c: Likewise.
21587 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
21588 * tree-ssa-strlen.c: Likewise.
21589 * tree-ssa-structalias.c: Likewise.
21590 * var-tracking.c (onepart_pool_allocate): New function.
21591 (unshare_variable): Use the newly added function.
21592 (variable_merge_over_cur): Likewise.
21593 (variable_from_dropped): Likewise.
21594 (variable_was_changed): Likewise.
21595 (set_slot_part): Likewise.
21596 (emit_notes_for_differences_1): Likewise.
21597 (vt_finalize): Release newly added static pools.
21599 2015-07-16 Martin Jambor <mjambor@suse.cz>
21601 * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status. Adjust
21602 all uses. Fix two typos in its general comment.
21603 (func_body_info): Rename to ipa_func_body_info. Adjust all uses.
21605 2015-07-16 Ilya Enkovich <enkovich.gnu@gmail.com>
21607 * config/i386/linux-common.h (LINK_MPX): New.
21608 (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
21609 * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
21610 indicating '-z bndplt' support by linker.
21611 * configure: Regenerate.
21612 * config.in: Regenerate.
21614 2015-07-16 Richard Biener <rguenther@suse.de>
21616 * fold-const.c (fold_widened_comparison): Remove.
21617 (fold_sign_changed_comparison): Likewise.
21618 (fold_comparison): Move widened and sign-changed comparison
21620 * match.pd: ... to patterns here.
21621 * generic-match-head.c: Include target.h.
21622 * gimple-match-head.c: Likewise.
21624 2015-07-16 Richard Biener <rguenther@suse.de>
21626 * tree-ssa-dom.c (dom_valueize): New function.
21627 (record_temporary_equivalences): Also record equivalences
21628 for dominating stmts that have uses of equivalences we are
21631 2015-07-16 Bin Cheng <bin.cheng@arm.com>
21633 * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
21634 add_autoinc_candidates.
21635 (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
21636 (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
21637 (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
21638 (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
21640 (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
21641 (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
21642 Remove parameter struct iv*. Call add_autoinc_candidates here.
21643 (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
21644 (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
21646 (find_iv_candidates): Call new functions.
21648 2015-07-16 Sandra Loosemore <sandra@codesourcery.com>
21650 * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
21651 uninitialized-variable warning.
21653 2015-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
21656 * config/sh/sh.md (movdi): Split simple reg move to two movsi
21657 when the destination is R0.
21659 2015-07-16 Uros Bizjak <ubizjak@gmail.com>
21662 * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
21663 * config/i386/i386.c (ix86_expand_pextr): New function.
21664 (ix86_expand_pinsr): Handle V1TI and TI modes. Call ix86_expand_pextr
21665 for non-lowpart subregs.
21666 * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
21667 (insv<mode>): Use SWI248 mode iterator.
21668 (insv<mode>_1): Ditto.
21670 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
21671 Sebastian Pop <s.pop@samsung.com>
21673 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
21674 iterator to use_stmt.
21676 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
21677 Sebastian Pop <s.pop@samsung.com>
21679 * graphite-scop-detection.c (build_scops_1): Discard scops for
21682 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
21683 Sebastian Pop <s.pop@samsung.com>
21685 * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
21686 case of a return statement in scop.
21688 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
21689 Sebastian Pop <s.pop@samsung.com>
21691 * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
21692 INTEGER_TYPE parameters.
21693 (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
21694 VECTOR_CST in scan_tree_for_params.
21695 (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
21697 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
21699 * gimple-pretty-print.h: Don't include pretty-print.h.
21700 * tree-streamer.h: Don't include lto-streamer.h.
21701 * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
21702 * gimple-streamer-in.c: Remove redundant includes.
21703 * gimple-streamer-out.c: Likewise.
21704 * ipa-devirt.c: Likewise.
21705 * ipa-icf.c: Likewise.
21706 * ipa-inline-analysis.c: Likewise.
21707 * ipa-polymorphic-call.c: Likewise.
21708 * ipa-profile.c: Likewise.
21709 * ipa-prop.c: Likewise.
21710 * ipa-pure-const.c: Likewise.
21711 * lto-cgraph.c: Likewise.
21712 * lto-streamer-in.c: Likewise.
21713 * lto-streamer-out.c: Likewise.
21714 * lto-streamer.c: Likewise.
21715 * tree-streamer-in.c: Likewise.
21716 * tree-streamer-out.c: Likewise.
21717 * tree-streamer.c: Likewise.
21719 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
21721 * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
21723 * opts.c: Remove multiline #include comment.
21725 2015-07-15 Nathan Sidwell <nathan@codesourcery.com>
21727 * config/nvptx/mkoffload.c (process): Add C++ protection to
21730 2015-07-14 Michael Meissner <meissner@linux.vnet.ibm.com>
21733 * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
21734 null before IEEE 128-bit floating point support patch.
21736 2015-07-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21738 * simplify-rtx.c (simplify_ternary_operation): Add simplification
21739 for (!c) != {0,...,0} ? a : b for vector modes.
21741 2015-07-15 Paolo Bonzini <bonzini@gnu.org>
21742 Martin Jambor <mjambor@suse.cz>
21744 * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
21745 struct func_body_info* instead of struct ipa_node_params*, expecting
21746 fbi->info to be filled in. Replace throughout. Adjust call to
21747 ipa_load_from_parm_agg.
21748 (set_cond_stmt_execution_predicate): Accept struct func_body_info*
21749 instead of struct ipa_node_params*. Adjust calls to other functions
21750 so that they pass either fbi or fbi->info.
21751 (set_switch_stmt_execution_predicate): Likewise.
21752 (will_be_nonconstant_predicate): Likewise.
21753 (compute_bb_predicates): Likewise.
21754 (estimate_function_body_sizes): Move asserts earlier. Fill in
21755 struct func_body_info, replace parms_info with fbi.info. Adjust
21756 calls to functions that now accept struct func_body_info.
21757 * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
21758 (struct func_body_info): Likewise.
21759 (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
21760 remove static. Adjust callers.
21761 (ipa_load_from_parm_agg): Remove.
21762 * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
21763 (func_body_info): Likewise.
21764 (ipa_load_from_parm_agg): Adjust prototype.
21766 2015-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21768 * gensupport.c (rtx_handle_directive): Adjust.
21769 * read-rtl.c (apply_iterators): Take vector to add rtxs to
21770 instead of expr list rtx.
21771 (add_define_attr_for_define_subst): Likewise.
21772 (add_define_subst_attr): Likewise.
21773 (read_subst_mapping): Likewise.
21774 (read_rtx): Likewise.
21775 * rtl.h (read_rtx): Adjust.
21777 2015-07-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21779 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
21781 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
21784 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
21785 (*tls_local_dynamic_base_64_<mode>): Ditto.
21786 (*tls_local_dynamic_base_64_largepic): Ditto.
21787 (tls_global_dynamic_64_<mode>): Update expander pattern.
21788 (tls_local_dynamic_base_64_<mode>): Ditto.
21790 2015-07-15 Richard Biener <rguenther@suse.de>
21792 * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
21793 and bool_var == 1 -> bool_var simplifications ...
21794 * match.pd: ... to patterns here. Factor out negate_expr_p
21795 cases from the A - B -> A + (-B) patterns as negate_expr_p
21796 predicate and add a -(A + B) -> (-B) - A pattern.
21798 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
21800 * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
21802 2015-07-15 Matthew Fortune <matthew.fortune@imgtec.com>
21803 Robert Suchanek <robert.suchanek@imgtec.com>
21805 * config/mips/mips.c (mips_int_mask): New enum.
21806 (mips_shadow_set): Likewise.
21807 (int_mask): New variable.
21808 (use_shadow_register_set_p): Change type to enum mips_shadow_set.
21809 (machine_function): Add int_mask and use_shadow_register_set.
21810 (mips_attribute_table): Add attribute handlers for interrupt and
21811 use_shadow_register_set.
21812 (mips_interrupt_mask): New static function.
21813 (mips_handle_interrupt_attr): Likewise.
21814 (mips_handle_use_shadow_register_set_attr): Likewise.
21815 (mips_use_shadow_register_set): Change return type to enum
21816 mips_shadow_set. Add argument handling for use_shadow_register_set
21818 (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
21819 compare with mips_shadow_set enum.
21820 (mips_compute_frame_info): Add interrupt mask and
21821 use_shadow_register_set to per-function information structure.
21822 Add a stack slot for EPC unconditionally.
21823 (mips_expand_prologue): Compare use_shadow_register_set value
21824 with mips_shadow_set enum. Save EPC always in K1, clobber only K1 for
21825 masked interrupt register but in EIC mode use K0 and save Cause in K0.
21826 EPC saved and restored unconditionally. Use PMODE_INSN macro when
21827 copying the stack pointer from the shadow register set.
21828 * config/mips/mips.h (SR_IM0): New define.
21829 * config/mips/mips.md (mips_rdpgpr): Rename to...
21830 (mips_rdpgpr_<mode>): ...this. Use the Pmode iterator.
21831 * doc/extend.texi (Declaring Attributes of Functions): Document
21832 optional arguments for interrupt and use_shadow_register_set
21835 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
21837 * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
21838 interrupt attribute.
21839 (mips_expand_prologue): Disable the floating point unit in an ISR.
21840 * config/mips/mips.h (SR_COP1): New define.
21842 2015-07-15 Richard Biener <rguenther@suse.de>
21844 * genmatch.c (parser::peek, parser::peek_ident): Add argument
21845 to tell how many tokens to peek ahead (default 1).
21846 (parser::eat_token, parser::eat_ident): Return token consumed.
21847 (parser::parse_result): Parse new switch statement.
21848 * match.pd: Use case statements where appropriate.
21850 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
21852 PR rtl-optimization/58066
21853 * calls.c (expand_call): Precompute register parameters before stack
21854 alignment is performed.
21856 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
21858 PR rtl-optimization/66838
21859 * postreload.c (reload_cse_move2add): Also process
21860 CALL_INSN_FUNCTION_USAGE when resetting information of
21861 call-clobbered registers.
21863 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
21864 Cesar Philippidis <cesar@codesourcery.com>
21865 Chung-Lin Tang <cltang@codesourcery.com>
21867 * config/nios2/constraints.md (U, v): New constraints.
21868 * config/nios2/predicates.md (rdprs_dcache_operand): New.
21869 (ldstex_memory_operand): New.
21870 * config/nios2/sync.md: New file.
21871 * config/nios2/nios2.md (unspecv): Add new builtin function
21873 (rdprs, flushd, flushda, wrpie, eni): New patterns.
21874 (top-level): Include sync.md.
21875 * config/nios2/nios2.c (N2_FTYPES): Add function types for
21877 (N2_BUILTINS): Add arch field setting, add new builtins.
21878 (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
21880 (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
21881 Also handle ldex/stex/ldsex/stsex builtins.
21882 (nios2_expand_rdprs_builtin): New function.
21883 (nios2_expand_cache_builtin): New function.
21884 (nios2_expand_wrpie_builtin): New function.
21885 (nios2_expand_eni_builtin): New function.
21886 (nios2_expand_builtin): Add arch field handling and new builtin
21888 * doc/extend.texi (Altera Nios II Built-in Functions): Document
21890 * doc/md.texi (Machine Constraints): Document U and v constraints.
21892 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
21893 Cesar Philippidis <cesar@codesourcery.com>
21894 Chung-Lin Tang <cltang@codesourcery.com>
21896 * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
21897 * config/nios2/nios2.c (struct GTY (()) machine_function): Add
21898 callee_save_reg_size and uses_anonymous_args fields.
21899 (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
21900 (nios2_create_cfa_notes): New function.
21901 (nios2_adjust_stack): New function for adjusting stack.
21902 (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
21903 Use nios2_adjust_stack.
21904 (nios2_expand_epilogue): Likewise.
21905 (nios2_expand_return): New function.
21906 (nios2_can_use_return_insn): Update for CDX pop.n usage.
21907 (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
21908 If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
21909 * config/nios2/nios2.md (return): Use nios2_expand_return.
21911 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
21912 Cesar Philippidis <cesar@codesourcery.com>
21913 Chung-Lin Tang <cltang@codesourcery.com>
21915 * config/nios2/predicates.md (pop_operation): New.
21916 (ldwm_operation, stwm_operation): New.
21917 (nios2_hard_register_operand): New.
21918 * config/nios2/nios2-protos.h (pop_operation_p): Declare.
21919 (ldstwm_operation_p): Declare.
21920 (gen_ldstwm_peep): Declare.
21921 * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
21922 (base_reg_adjustment_p): New.
21923 (pop_operation_p): New.
21924 (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
21925 (nios2_ldstwm_regset_p): New.
21926 (ldstwm_operation_p): New.
21928 (nios2_ldst_parallel): New.
21929 (struct ldswm_operand): Declare.
21930 (compare_ldstwm_operands): New.
21931 (can_use_cdx_ldstw): New.
21932 (gen_ldstwm_peep): New.
21933 * config/nios2/nios2-ldstwm.sml: New.
21934 * config/nios2/nios2.md: Include ldstwm.md.
21935 * config/nios2/ldstwm.md: Generated.
21937 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
21938 Cesar Philippidis <cesar@codesourcery.com>
21939 Chung-Lin Tang <cltang@codesourcery.com>
21941 * config/nios2/nios2.h (LABEL_ALIGN): Define.
21942 (REG_ALLOC_ORDER): Define.
21943 (ADJUST_REG_ALLOC_ORDER): Define.
21944 (HONOR_REG_ALLOC_ORDER): Define.
21945 (CDX_REG_P): Define.
21946 (ANDCLEAR_INT): Define.
21947 * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
21948 (nios2_label_align): Declare.
21949 (nios2_cdx_narrow_form_p): Declare.
21950 (nios2_adjust_reg_alloc_order): Declare.
21951 * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
21953 (nios2_large_unspec_reloc_p): New function, split from...
21954 (nios2_legitimate_pic_operand_p): ...here.
21955 (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
21956 (nios2_print_operand_punct_valid_p): New.
21957 (nios2_print_operand): Add %., %!, %x, %y, %A. Remove %U.
21958 (split_mem_address): New.
21959 (split_alu_insn): New.
21961 (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
21962 (enum nios2_add_insn_kind): New.
21963 (nios2_add_insn_names, nios2_add_insn_narrow): New.
21964 (nios2_add_insn_classify): New.
21965 (nios2_add_insn_asm): New.
21966 (nios2_cdx_narrow_form_p): New.
21967 (label_align, min_labelno, max_labelno): New.
21968 (nios2_reorg): New.
21969 (nios2_label_align): New.
21970 (nios2_adjust_reg_alloc_order): New.
21971 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
21972 (TARGET_MACHINE_DEPENDENT_REORG): Define.
21973 * config/nios2/constraints.md (P): New constraint.
21974 * config/nios2/predicates.md (const_and_operand): New.
21975 (and_operand): New.
21976 (stack_memory_operand): New.
21977 * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
21978 (length): Update to use nios2_cdx_narrow_form_p().
21979 (type): Add new insn type values.
21980 (control, alu, st, ld, shift): Update insn reservations with
21981 new insn type values.
21982 (*high, *lo_sum): Define new insn patterns for constant generation.
21983 (movqi_internal, movhi_internal, movsi_internal): Reduce
21984 alternatives, update asm template to handle CDX variants, update
21986 (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
21987 template, update type attributes.
21988 (extendhisi2, extendqi<mode>2): Likewise.
21989 (addsi3): Change to use function for asm string.
21990 (subsi3): Add CDX notation to asm template, update type attributes.
21991 (negsi3, one_cmplsi3): Likewise.
21992 (andsi3): New pattern, specialized from logical patterns.
21993 (<code>si3): Remove and case, combine alternatives, update asm
21995 (<shift_op>si3): Add CDX notation, update type attributes.
21996 (rotrsi3): Update type attribute.
21997 (*merge, extzv, insv): New insn patterns.
21998 (return): Change to define_expand.
21999 (simple_return): Add CDX notation, update type attributes.
22000 (indirect_jump): Add CDX notation.
22001 (jump): Update asm cases, update length attribute expression.
22002 (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
22003 (nios2_cbranch): Update asm cases and length attribute expression
22004 to handle CDX variants.
22005 (nios2_cmp<code>): Update asm template.
22006 (nop): Add CDX notation, update type attributes.
22007 (trap): Add CDX notation.
22008 (ctrapsi4): Update asm cases and length attribute expression to
22009 handle CDX variant.
22010 * doc/md.texi (Machine Constraints): Document P constraint.
22012 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
22013 Cesar Philippidis <cesar@codesourcery.com>
22014 Chung-Lin Tang <cltang@codesourcery.com>
22016 * config/nios2/nios2.h (SMALL_INT12): New macro.
22017 * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
22018 (nios2_valid_addr_expr_p): Use it.
22019 (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
22020 with implicit "io" instructions on R2.
22021 * config/nios2/constraints.md (w): New constraint.
22022 * config/nios2/predicates.md (ldstio_memory_operand): New.
22023 * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
22024 operand predicate and constraint.
22025 (ld<bh>io_signed, st<bhw>io>): Likewise.
22026 * doc/md.texi (Machine Constraints): Document w constraint.
22028 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
22029 Cesar Philippidis <cesar@codesourcery.com>
22030 Chung-Lin Tang <cltang@codesourcery.com>
22032 * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
22033 * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
22034 Nios II architecture level.
22035 * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
22036 (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
22037 (OPTION_DEFAULT_SPECS): Define.
22038 (ASM_SPEC): Add -march= spec strings.
22039 * config/nios2/nios2.c (nios2_option_override): Check for
22040 conflicts involving new options.
22041 * config.gcc (nios2*-*-*): Support --with-arch=.
22042 * doc/invoke.texi (Option Summary, Nios II Options): Document
22043 -march=, -mbmx, and -mcdx.
22045 2015-07-14 Vladimir Makarov <vmakarov@redhat.com>
22047 PR rtl-optimization/66626
22048 * lra-constraints.c (lra_constraints): Prevent equivalence
22049 substitution for static chain pseudo in functions with nonlocal
22052 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
22054 * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
22055 (nios2_emit_stack_limit_check): Add size parameter. Handle
22056 -fstack-limit-symbol as well as -fstack-limit-register.
22057 (nios2_expand_prologue): Emit only a single stack limit check,
22058 even if multiple stack adjustments are required.
22059 (nios2_option_override): Diagnose unsupported combination of -fpic
22060 and -stack-limit-symbol.
22062 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
22064 * Makefile.in (top_srcdir): New.
22065 * configure.ac: Use AM_ZLIB.
22066 * configure: Regeneated.
22068 2015-07-14 Matthias Klose <doko@ubuntu.com>
22071 * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
22073 2015-07-14 Richard Biener <rguenther@suse.de>
22075 PR tree-optimization/66863
22076 * tree-vrp.c (register_edge_assert_for_2): Properly restrict
22077 what we record for conversion use stmt lhs inequalities.
22079 2015-07-14 Richard Biener <rguenther@suse.de>
22081 * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
22082 (decision_tree::gen_gimple): Likewise.
22084 2015-07-14 Tom de Vries <tom@codesourcery.com>
22086 * gcc.c (greater_than_spec_func): Declare forward.
22087 (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
22088 -ftree-parallelize-loops={0,1}.
22089 (static_spec_functions): Add greater_than_spec_func function with name
22091 (greater_than_spec_func): New function.
22093 2015-07-14 Richard Biener <rguenther@suse.de>
22095 * tree-ssa-dom.c (record_temporary_equivalences): Merge
22096 wideing type conversion case from record_equivalences_from_incoming_edge
22097 and use record_equality to record equivalences.
22098 (record_equivalences_from_incoming_edge): Call
22099 record_temporary_equivalences.
22101 2015-07-14 Richard Biener <rguenther@suse.de>
22103 * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
22104 (struct if_expr): New.
22105 (struct with_expr): Likewise.
22106 (is_a_helper): Add helpers for if_expr and with_expr.
22107 (struct simplify): Add simplify_kind enum and member. Remove
22109 (simplify::simplify): Adjust.
22110 (lower_commutative): Adjust.
22111 (lower_opt_convert): Likewise.
22112 (lower_cond): Likewise.
22113 (replace_id): Handle with_expr and if_expr.
22114 (lower_for): Adjust.
22115 (dt_simplify::gen_1): New recursive worker, split out from ...
22116 (dt_simplify::gen): ... here. Deal with if and with expansion
22118 (capture_info::capture_info): Take context argument
22119 (capture_info::walk_result): Only analyze specific result.
22120 (parser::parse_result): New function.
22121 (parser::parse_simplify): Adjust to parse ifs with then end
22123 (parser::parse_if): Simplify.
22124 (parser::parse_pattern): Pass down simplify kind.
22125 * match.pd: Convert if structure to new syntax.
22127 2015-07-13 Marek Polacek <polacek@redhat.com>
22129 * rtl.c (rtx_equal_p_cb): Fix typo.
22131 2015-07-13 Andrew MacLeod <amacleod@redhat.com>
22133 * omega.h: Don't include config.h, don't include params.h again if
22134 omega.h has already been included.
22135 * graphite-poly.h: Include sese.h.
22136 * graphite.c: Don't include sese.h, remove needless includes and
22137 minimize includes outside #ifdef HAVE_isl block.
22138 * graphite-blocking.c: Don't include sese.h, remove needless includes,
22139 and wrap entire file in #ifdef HAVE_isl
22140 * graphite-dependences.c: Likewise.
22141 * graphite-interchange.c: Likewise.
22142 * graphite-isl-ast-to-gimple.c: Likewise.
22143 * graphite-optimize-isl.c: Likewise.
22144 * graphite-poly.c: Likewise.
22145 * graphite-scop-detection.c: Likewise.
22146 * graphite-sese-to-poly.c: Likewise.
22148 2015-07-13 Tom de Vries <tom@codesourcery.com>
22150 * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
22152 2015-07-13 Renlin Li <renlin.li@arm.com>
22155 * simplify-rtx.c (simplify_const_relational_operation): Add
22156 side_effects_p checks.
22158 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
22160 * bitmap.h: Fix double word typos.
22161 * builtins.c: Same.
22163 * cfgloopmanip.c: Same.
22166 * cgraphclones.c: Same.
22168 * config/aarch64/aarch64-protos.h: Same.
22169 * config/aarch64/aarch64.c: Same.
22170 * config/aarch64/aarch64.md: Same.
22171 * config/arm/arm.md: Same.
22172 * config/arm/arm1020e.md: Same.
22173 * config/arm/arm1026ejs.md: Same.
22174 * config/arm/arm926ejs.md: Same.
22175 * config/arm/fa526.md: Same.
22176 * config/arm/fa606te.md: Same.
22177 * config/arm/fa626te.md: Same.
22178 * config/arm/fa726te.md: Same.
22179 * config/arm/fmp626.md: Same.
22180 * config/darwin.c: Same.
22181 * config/epiphany/epiphany.c: Same.
22182 * config/frv/frv.c: Same.
22183 * config/ft32/ft32.c: Same.
22184 * config/gnu-user.h: Same.
22185 * config/h8300/constraints.md: Same.
22186 * config/i386/i386.c: Same.
22187 * config/i386/i386.md: Same.
22188 * config/iq2000/iq2000.md: Same.
22189 * config/mips/mips.c: Same.
22190 * config/mmix/mmix.md: Same.
22191 * config/moxie/moxie.c: Same.
22192 * config/nds32/nds32.md: Same.
22193 * config/pa/pa.h: Same.
22194 * config/rs6000/aix.h: Same.
22195 * config/rs6000/rs6000.h: Same.
22196 * config/sh/sh.c: Same.
22197 * config/tilegx/tilegx.md: Same.
22198 * config/tilepro/gen-mul-tables.cc: Same.
22201 * doc/invoke.texi: Same.
22203 * dwarf2out.c: Same.
22206 * genmatch.c: Same.
22207 * gimplify.c: Same.
22208 * hash-table.h: Same.
22209 * internal-fn.c: Same.
22211 * ipa-devirt.c: Same.
22214 * ipa-profile.c: Same.
22215 * ipa-prop.c: Same.
22216 * ipa-prop.h: Same.
22219 * reg-stack.c: Same.
22220 * regcprop.c: Same.
22225 * tree-inline.c: Same.
22226 * tree-sra.c: Same.
22227 * tree-ssa-dom.c: Same.
22228 * tree-ssa-loop-ivopts.c: Same.
22229 * tree-ssa-structalias.c: Same.
22230 * tree-ssa-tail-merge.c: Same.
22231 * tree-ssa-ter.c: Same.
22232 * tree-ssa-threadupdate.c: Same.
22233 * tree-ssa-uninit.c: Same.
22234 * tree-ssanames.c: Same.
22235 * tree-vect-loop-manip.c: Same.
22236 * tree-vrp.c: Same.
22238 * valtrack.c: Same.
22241 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
22243 PR middle-end/66726
22244 * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
22245 tree_ssa_phiopt_worker): Call it.
22247 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
22249 * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
22250 * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
22253 2015-07-11 Marek Polacek <polacek@redhat.com>
22255 PR middle-end/66353
22256 * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
22257 * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
22258 (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
22259 rather than bb_has_abnormal_call_pred.
22260 * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
22261 (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
22262 rather than bb_has_abnormal_call_pred.
22264 2015-07-10 Anatoly Sokolov <aesok@post.ru>
22266 * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
22267 REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
22268 RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
22269 * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
22270 v850_legitimate_address_p): New functions.
22271 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
22273 2015-07-10 H.J. Lu <hongjiu.lu@intel.com>
22276 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
22277 indirect sibcall with register arguments if register available
22278 for argument passing.
22279 (init_cumulative_args): Set cfun->machine->arg_reg_available
22280 to (cum->nregs > 0) or to true if function has a variable
22282 (function_arg_advance_32): Set cfun->machine->arg_reg_available
22283 to false if cum->nregs <= 0.
22284 * config/i386/i386.h (machine_function): Add arg_reg_available.
22286 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
22288 * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
22289 and gen_higpart instead of gen_rtx_SUBREG.
22290 * config/i386/i386.md
22291 (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
22292 (read-modify peephole2): Use gen_lowpart instead of
22293 gen_rtx_SUBREG for operand 5.
22295 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
22297 * config/tilepro/gen-mul-tables.cc (main): Change include list for
22299 * config/tilepro/mul-tables.c: Regenerate.
22300 * config/tilegx/mul-tables.c: Regenerate.
22302 2015-07-10 Richard Biener <rguenther@suse.de>
22304 * fold-const.c (distribute_bit_expr): Remove.
22305 (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
22306 to (A & C1) | (B & C2), distributing (A & B) | (A & C)
22307 to A & (B | C) and simplifying A << C1 << C2 to ...
22308 * match.pd: ... patterns here.
22310 2015-07-10 Jiong Wang <jiong.wang@arm.com>
22312 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
22313 Mark mem as READONLY and NOTRAP for PIC symbol.
22315 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
22317 * gimple-predict.h: New file.
22318 (gimple_predict_predictor, gimple_predict_set_predictor,
22319 gimple_predict_outcome, gimple_predict_set_outcome,
22320 gimple_build_predict): Relocate here.
22321 * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
22322 gimple_predict_outcome, gimple_predict_set_outcome): Move to
22324 * gimple.c (gimple_build_predict): Move to gimple-predict.h
22325 * basic-block.h: Don't include cfghooks.h.
22326 * backend.h: Don't include predict.h.
22327 * cfghooks.h: Include predict.h.
22328 * gimple-pretty-print.c: Include gimple-predict.h.
22329 * gimplify.c: Likwise.
22330 * predict.c: Adjust includes.
22331 * tree-inline.c: Likewise.
22332 * asan.c: Likewise.
22333 * auto-inc-dec.c: Likewise.
22334 * auto-profile.c: Likewise.
22335 * bb-reorder.c: Likewise.
22336 * builtins.c: Likewise.
22337 * caller-save.c: Likewise.
22338 * calls.c: Likewise.
22339 * cfganal.c: Likewise.
22340 * cfgbuild.c: Likewise.
22342 * cfgcleanup.c: Likewise.
22343 * cfgexpand.c: Likewise.
22344 * cfghooks.c: Likewise.
22345 * cfgloopanal.c: Likewise.
22346 * cfgloop.c: Likewise.
22347 * cfgloopmanip.c: Likewise.
22348 * cfgrtl.c: Likewise.
22349 * cgraph.c: Likewise.
22350 * cgraphunit.c: Likewise.
22351 * combine.c: Likewise.
22352 * cprop.c: Likewise.
22355 * dojump.c: Likewise.
22357 * except.c: Likewise.
22358 * expmed.c: Likewise.
22359 * expr.c: Likewise.
22360 * final.c: Likewise.
22361 * fold-const.c: Likewise.
22362 * function.c: Likewise.
22363 * fwprop.c: Likewise.
22364 * gcc-plugin.h: Likewise.
22365 * gcse.c: Likewise.
22366 * genattrtab.c: Likewise.
22367 * genemit.c: Likewise.
22368 * gengtype.c: Likewise.
22369 * genopinit.c: Likewise.
22370 * genoutput.c: Likewise.
22371 * genpreds.c: Likewise.
22372 * genrecog.c: Likewise.
22373 * gimple-fold.c: Likewise.
22374 * gimple-iterator.c: Likewise.
22375 * gimple-ssa-isolate-paths.c: Likewise.
22376 * gimple-ssa-strength-reduction.c: Likewise.
22377 * graph.c: Likewise.
22378 * graphite-blocking.c: Likewise.
22379 * graphite.c: Likewise.
22380 * graphite-dependences.c: Likewise.
22381 * graphite-interchange.c: Likewise.
22382 * graphite-isl-ast-to-gimple.c: Likewise.
22383 * graphite-optimize-isl.c: Likewise.
22384 * graphite-poly.c: Likewise.
22385 * graphite-scop-detection.c: Likewise.
22386 * graphite-sese-to-poly.c: Likewise.
22387 * haifa-sched.c: Likewise.
22388 * ifcvt.c: Likewise.
22389 * internal-fn.c: Likewise.
22390 * ipa-cp.c: Likewise.
22391 * ipa-profile.c: Likewise.
22392 * ipa-split.c: Likewise.
22393 * ipa-utils.c: Likewise.
22394 * ira-build.c: Likewise.
22395 * ira-color.c: Likewise.
22396 * ira-conflicts.c: Likewise.
22397 * ira-costs.c: Likewise.
22398 * ira-emit.c: Likewise.
22399 * ira-lives.c: Likewise.
22400 * jump.c: Likewise.
22401 * loop-doloop.c: Likewise.
22402 * loop-init.c: Likewise.
22403 * loop-invariant.c: Likewise.
22404 * loop-unroll.c: Likewise.
22405 * lower-subreg.c: Likewise.
22406 * lra-assigns.c: Likewise.
22408 * lra-coalesce.c: Likewise.
22409 * lra-constraints.c: Likewise.
22410 * lra-lives.c: Likewise.
22411 * lto-cgraph.c: Likewise.
22412 * lto-streamer-in.c: Likewise.
22413 * mode-switching.c: Likewise.
22414 * modulo-sched.c: Likewise.
22415 * omp-low.c: Likewise.
22416 * optabs.c: Likewise.
22417 * passes.c: Likewise.
22418 * postreload.c: Likewise.
22419 * postreload-gcse.c: Likewise.
22420 * profile.c: Likewise.
22421 * recog.c: Likewise.
22422 * regstat.c: Likewise.
22423 * reload1.c: Likewise.
22424 * reorg.c: Likewise.
22425 * rtlanal.c: Likewise.
22426 * sched-ebb.c: Likewise.
22427 * sel-sched-ir.c: Likewise.
22428 * sese.c: Likewise.
22429 * shrink-wrap.c: Likewise.
22430 * simplify-rtx.c: Likewise.
22431 * stmt.c: Likewise.
22432 * store-motion.c: Likewise.
22433 * tracer.c: Likewise.
22434 * trans-mem.c: Likewise.
22435 * tree-call-cdce.c: Likewise.
22436 * tree-cfg.c: Likewise.
22437 * tree-cfgcleanup.c: Likewise.
22438 * tree-chkp.c: Likewise.
22439 * tree-complex.c: Likewise.
22440 * tree-eh.c: Likewise.
22441 * tree-if-conv.c: Likewise.
22442 * tree-loop-distribution.c: Likewise.
22443 * tree-outof-ssa.c: Likewise.
22444 * tree-parloops.c: Likewise.
22445 * tree-predcom.c: Likewise.
22446 * tree-pretty-print.c: Likewise.
22447 * tree-profile.c: Likewise.
22448 * tree-sra.c: Likewise.
22449 * tree-ssa.c: Likewise.
22450 * tree-ssa-coalesce.c: Likewise.
22451 * tree-ssa-dce.c: Likewise.
22452 * tree-ssa-dom.c: Likewise.
22453 * tree-ssa-forwprop.c: Likewise.
22454 * tree-ssa-ifcombine.c: Likewise.
22455 * tree-ssa-loop-ch.c: Likewise.
22456 * tree-ssa-loop-im.c: Likewise.
22457 * tree-ssa-loop-ivcanon.c: Likewise.
22458 * tree-ssa-loop-ivopts.c: Likewise.
22459 * tree-ssa-loop-manip.c: Likewise.
22460 * tree-ssa-loop-prefetch.c: Likewise.
22461 * tree-ssa-loop-unswitch.c: Likewise.
22462 * tree-ssa-math-opts.c: Likewise.
22463 * tree-ssa-phiopt.c: Likewise.
22464 * tree-ssa-pre.c: Likewise.
22465 * tree-ssa-reassoc.c: Likewise.
22466 * tree-ssa-sink.c: Likewise.
22467 * tree-ssa-tail-merge.c: Likewise.
22468 * tree-ssa-threadedge.c: Likewise.
22469 * tree-ssa-threadupdate.c: Likewise.
22470 * tree-switch-conversion.c: Likewise.
22471 * tree-tailcall.c: Likewise.
22472 * tree-vect-data-refs.c: Likewise.
22473 * tree-vect-loop.c: Likewise.
22474 * tree-vect-loop-manip.c: Likewise.
22475 * tree-vectorizer.c: Likewise.
22476 * tree-vrp.c: Likewise.
22477 * ubsan.c: Likewise.
22478 * value-prof.c: Likewise.
22479 * varasm.c: Likewise.
22480 * var-tracking.c: Likewise.
22481 * config/aarch64/aarch64-builtins.c: Likewise.
22482 * config/aarch64/aarch64.c: Likewise.
22483 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
22484 * config/alpha/alpha.c: Likewise.
22485 * config/arc/arc.c: Likewise.
22486 * config/arm/arm.c: Likewise.
22487 * config/avr/avr.c: Likewise.
22488 * config/bfin/bfin.c: Likewise.
22489 * config/c6x/c6x.c: Likewise.
22490 * config/cr16/cr16.c: Likewise.
22491 * config/cris/cris.c: Likewise.
22492 * config/darwin.c: Likewise.
22493 * config/darwin-c.c: Likewise.
22494 * config/epiphany/epiphany.c: Likewise.
22495 * config/epiphany/mode-switch-use.c: Likewise.
22496 * config/epiphany/resolve-sw-modes.c: Likewise.
22497 * config/fr30/fr30.c: Likewise.
22498 * config/frv/frv.c: Likewise.
22499 * config/ft32/ft32.c: Likewise.
22500 * config/h8300/h8300.c: Likewise.
22501 * config/i386/i386.c: Likewise.
22502 * config/i386/winnt.c: Likewise.
22503 * config/ia64/ia64.c: Likewise.
22504 * config/iq2000/iq2000.c: Likewise.
22505 * config/lm32/lm32.c: Likewise.
22506 * config/m32c/m32c.c: Likewise.
22507 * config/m32r/m32r.c: Likewise.
22508 * config/m68k/m68k.c: Likewise.
22509 * config/mcore/mcore.c: Likewise.
22510 * config/mep/mep.c: Likewise.
22511 * config/microblaze/microblaze.c: Likewise.
22512 * config/mips/mips.c: Likewise.
22513 * config/mmix/mmix.c: Likewise.
22514 * config/mn10300/mn10300.c: Likewise.
22515 * config/moxie/moxie.c: Likewise.
22516 * config/msp430/msp430.c: Likewise.
22517 * config/nds32/nds32.c: Likewise.
22518 * config/nds32/nds32-cost.c: Likewise.
22519 * config/nds32/nds32-fp-as-gp.c: Likewise.
22520 * config/nds32/nds32-intrinsic.c: Likewise.
22521 * config/nds32/nds32-isr.c: Likewise.
22522 * config/nds32/nds32-md-auxiliary.c: Likewise.
22523 * config/nds32/nds32-memory-manipulation.c: Likewise.
22524 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
22525 * config/nds32/nds32-predicates.c: Likewise.
22526 * config/nios2/nios2.c: Likewise.
22527 * config/nvptx/nvptx.c: Likewise.
22528 * config/pa/pa.c: Likewise.
22529 * config/pdp11/pdp11.c: Likewise.
22530 * config/rl78/rl78.c: Likewise.
22531 * config/rs6000/rs6000.c: Likewise.
22532 * config/rx/rx.c: Likewise.
22533 * config/s390/s390.c: Likewise.
22534 * config/sh/sh.c: Likewise.
22535 * config/sh/sh-mem.cc: Likewise.
22536 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
22537 * config/sh/sh_treg_combine.cc: Likewise.
22538 * config/sparc/sparc.c: Likewise.
22539 * config/spu/spu.c: Likewise.
22540 * config/stormy16/stormy16.c: Likewise.
22541 * config/tilegx/tilegx.c: Likewise.
22542 * config/tilepro/tilepro.c: Likewise.
22543 * config/v850/v850.c: Likewise.
22544 * config/vax/vax.c: Likewise.
22545 * config/visium/visium.c: Likewise.
22546 * config/xtensa/xtensa.c: Likewise.
22548 2015-07-10 Richard Biener <rguenther@suse.de>
22550 * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
22551 (decision_tree::gen_gimple): Likewise.
22552 (decision_tree::gen_generic): Likewise.
22554 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
22557 * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
22558 sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
22560 2015-07-10 Jakub Jelinek <jakub@redhat.com>
22562 PR middle-end/66820
22563 * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
22564 or ORT_TASK contexts.
22565 * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
22568 2015-07-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22570 * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
22573 2015-07-10 Tom de Vries <tom@codesourcery.com>
22575 * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
22576 insert nit + 1 bound.
22578 2015-07-10 Richard Biener <rguenther@suse.de>
22580 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
22581 Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
22582 (if_convertible_loop_p_1): For this always compute bb predicates.
22583 (if_convertible_loop_p): And free them.
22585 2015-07-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
22587 * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
22590 2015-07-10 Richard Biener <rguenther@suse.de>
22592 PR tree-optimization/66823
22593 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
22594 inverted predicate.
22596 2015-07-09 Steve Ellcey <sellcey@imgtec.com>
22598 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
22599 to handle mips[32|64]r3 and mips[32|64]r5.
22601 2015-07-09 Jakub Jelinek <jakub@redhat.com>
22603 PR middle-end/66633
22604 * tree-nested.c (get_static_chain): Or in a flag into
22605 info->static_chain_added.
22606 (get_frame_field, get_nonlocal_debug_decl): Likewise.
22607 (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
22608 2015-07-01 changes.
22609 (convert_tramp_reference_stmt): If a frame_decl or chain_decl
22610 is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
22613 PR tree-optimization/66718
22614 * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
22616 (vect_simd_lane_linear): New function.
22617 (vectorizable_simd_clone_call): Support using linear arguments for
22618 addresses of arrays elements indexed by GOMP_SIMD_LANE result.
22620 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
22623 * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
22625 2015-07-09 Michael Meissner <meissner@linux.vnet.ibm.com>
22627 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
22628 Use machine mode, not enum machine_mode in the prototype.
22630 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
22631 classify 128-bit floating point support.
22632 (FLOAT128_IBM_P): Likewise.
22633 (FLOAT128_VECTOR_P): Likewise.
22634 (FLOAT128_2REG_P): Likewise.
22635 (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
22636 (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
22637 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
22638 (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
22640 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
22641 tests against TFmode/TDmode, since those modes do not use VSX
22643 (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
22645 (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
22646 tests against TFmode, etc.
22647 (invalid_e500_subreg): Add tests against IFmode/KFmode.
22648 (reg_offset_addressing_ok_p): Likewise.
22649 (rs6000_legitimate_offset_address_p): Likewise.
22650 (rs6000_legitimize_address): Likewise.
22651 (rs6000_legitimize_reload_address): Likewise.
22652 (rs6000_legitimate_address_p): Clean up tests against TFmode and
22653 TDmode to use the new helper macros, which will include IFmode and
22655 (rs6000_emit_move): Likewise.
22656 (rs6000_darwin64_record_arg_recurse): Likewise.
22657 (print_operand): Likewise.
22658 (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
22659 that uses a single vector register as a vector and not as a
22660 floating point register in terms of the calling sequence.
22661 (rs6000_discover_homogeneous_aggregate): Likewise.
22662 (rs6000_return_in_memory): Likewise.
22663 (init_cumulative_args): Likewise.
22664 (rs6000_function_arg_boundary): Likewise.
22665 (rs6000_function_arg_advance_1): Likewise.
22666 (rs6000_function_arg): Likewise.
22667 (rs6000_pass_by_reference): Likewise.
22668 (rs6000_gimplify_va_arg): Likewise.
22669 (rs6000_secondary_reload_memory): Use machine_mode not enum
22671 (rs6000_split_multireg_move): Use new helper macros.
22672 (spe_func_has_64bit_regs_p): Likewise.
22673 (rs6000_output_function_epilogue): Add IFmode/KFmode support.
22674 (output_toc): Use new helper macros.
22675 (rs6000_register_move_cost): Likewise.
22676 (rs6000_function_value): Add IEEE 128-bit floating point calling
22678 (rs6000_libcall_value): Likewise.
22679 (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
22680 floating point support.
22681 (rs6000_vector_mode_supported_p): Likewise.
22683 2015-07-09 Vladimir Makarov <vmakarov@redhat.com>
22685 PR rtl-optimization/66782
22686 * lra-int.h (struct lra_insn_recog_data): Add comment about
22687 clobbered hard regs for arg_hard_regs.
22688 * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
22689 * lra-lives.c (process_bb_lives): Process clobbered hard regs.
22690 Add condition for processing used hard regs.
22691 * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
22692 Process clobbered hard regs.
22694 2015-07-09 Michael Matz <matz@suse.de>
22696 * genmatch.c (fprintf_indent): New function.
22697 (operand::gen_transform): Add indent parameter.
22698 (expr::gen_transform, c_expr::gen_transform,
22699 capture::gen_transform): Ditto and use fprintf_indent.
22700 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
22701 (dt_operand::gen, dt_operand::gen_predicate,
22702 dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
22703 dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
22704 (decision_tree::gen_gimple): Adjust calls and indent generated
22706 (decision_tree::gen_generic): Ditto.
22707 (write_predicate): Ditto.
22709 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
22712 * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
22713 * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
22714 (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
22715 {GENERAL,SSE,MMX}_REG_P where appropriate.
22717 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
22719 * lto-streamer.h: Don't include target.h and alloc-pool.h.
22720 * builtins.c: Adjust includes.
22721 * gimple.c: Likewise.
22722 * ipa-icf.c: Likewise.
22723 * lto-opts.c: Likewise.
22724 * ipa-reference.c: Likewise.
22725 * lto-section-out.c: Likewise.
22726 * lto-streamer-in.c: Likewise.
22727 * lto-streamer-out.c: Likewise.
22728 * opts-global.c: Likewise.
22729 * symtab.c: Likewise.
22730 * tree-chkp.c: Likewise.
22731 * tree-ssa-live.c: Likewise.
22732 * tree-streamer-in.c: Likewise.
22733 * tree-streamer-out.c: Likewise.
22734 * config/darwin.c: Likewise.
22735 * config/i386/winnt.c: Likewise.
22737 2015-07-09 Richard Biener <rguenther@suse.de>
22739 * genmatch.c (struct expr): Add force_single_use flag.
22740 (expr::expr): Add copy constructor.
22741 (capture_info::walk_match): Gather force_single_use captures.
22742 (expr::gen_transform): Use possibly NULLified sequence.
22743 (dt_simplify::gen): Apply single-use restrictions by NULLifying
22744 seq if any constrained expr is not single-use.
22745 (parser::parse_expr): Refactor to allow multiple flags. Handle
22746 's' flag to force an expression have a single-use if the pattern
22747 simplifies to more than one statement.
22748 * match.pd: Convert most single_use conditionals to :s flags.
22750 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
22752 * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
22753 (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
22754 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
22756 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
22758 * flags.h: Don't include flag-types.h or options.h.
22759 * opts-common.c: Adjust includes.
22760 * opts-global.c: Likewise.
22761 * common/config/epiphany/epiphany-common.c: Likewise.
22763 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
22766 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
22769 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
22772 * config/i386/i386.c (ix86_return_in_memory): Return true
22773 if int_size_in_bytes returns negative for IA MCU.
22775 2015-07-09 Marek Polacek <polacek@redhat.com>
22777 PR tree-optimization/66718
22778 * Makefile.in (OBJS): Add gimple-laddress.o.
22779 * passes.def: Schedule pass_laddress.
22780 * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
22781 * tree-pass.h (make_pass_laddress): Declare.
22782 * gimple-laddress.c: New file.
22784 2015-07-09 Richard Biener <rguenther@suse.de>
22786 * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
22788 2015-07-09 Richard Biener <rguenther@suse.de>
22790 PR tree-optimization/66807
22791 * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
22793 2015-07-08 Kito Cheng <kito.cheng@gmail.com>
22795 * function.c (stack_protect_epilogue): Use if rather than switch for
22796 check targetm.have_stack_protect_test.
22798 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22800 * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
22801 * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
22802 * config/arc/arc.h: Likewise.
22803 * config/arm/arm.h: Likewise.
22804 * config/bfin/bfin.h: Likewise.
22805 * config/epiphany/epiphany.h: Likewise.
22806 * config/frv/frv.h: Likewise.
22807 * config/ia64/ia64.h: Likewise.
22808 * config/iq2000/iq2000.h: Likewise.
22809 * config/lm32/lm32.h: Likewise.
22810 * config/m32r/m32r.h: Likewise.
22811 * config/mcore/mcore.h: Likewise.
22812 * config/mep/mep.h: Likewise.
22813 * config/microblaze/microblaze.h: Likewise.
22814 * config/mips/mips.h: Likewise.
22815 * config/mmix/mmix.h: Likewise.
22816 * config/mn10300/mn10300.h: Likewise.
22817 * config/nds32/nds32.h: Likewise.
22818 * config/nios2/nios2.h: Likewise.
22819 * config/pa/pa.h: Likewise.
22820 * config/rl78/rl78.h: Likewise.
22821 * config/sh/sh.h: Likewise.
22822 * config/sparc/sparc.h: Likewise.
22823 * config/stormy16/stormy16.h: Likewise.
22824 * config/tilegx/tilegx.h: Likewise.
22825 * config/tilepro/tilepro.h: Likewise.
22826 * config/v850/v850.h: Likewise.
22827 * config/xtensa/xtensa.h: Likewise.
22828 * doc/tm.texi: Regenerate.
22829 * doc/tm.texi.in: Adjust.
22830 * combine.c (simplify_set): Likewise.
22831 (simplify_comparison): Likewise.
22832 * expr.c (store_constructor): Likewise.
22833 * internal-fn.c (expand_arith_overflow): Likewise.
22834 * reload.c (push_reload): Likewise.
22835 (find_reloads): Likewise.
22836 (find_reloads_subreg_address): Likewise.
22837 * reload1.c (eliminate_regs_1): Likewise.
22838 * rtlanal.c (nonzero_bits1): Likewise.
22839 (num_sign_bit_copies1): Likewise.
22840 * simplify-rtx.c (simplify_truncation): Likewise.
22842 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22844 * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
22845 of AUTO_INC_DEC with the preprocessor.
22846 * combine.c (combine_instructions): Likewise.
22847 (can_combine_p): Likewise.
22848 (try_combine): Likewise.
22849 * emit-rtl.c (try_split): Likewise.
22850 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
22851 * lower-subreg.c (resolve_simple_move): Likewise.
22852 * lra.c (update_inc_notes): Likewise.
22853 * recog.c (asm_operand_ok): Likewise.
22854 (constrain_operands): Likewise.
22855 * regrename.c (scan_rtx_address): Likewise.
22856 * reload.c (update_auto_inc_notes): Likewise.
22857 (reg_inc_found_and_valid_p): Likewise.
22858 * reload1.c (reload): Likewise.
22859 (emit_input_reload_insns): Likewise.
22860 (delete_output_reload): Likewise.
22861 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
22862 * valtrack.c (cleanup_auto_inc_dec): Likewise.
22864 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22866 * rtl.h: Always define AUTO_INC_DEC.
22867 * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
22868 * combine.c (combine_instructions): Likewise.
22869 (can_combine_p): Likewise.
22870 (try_combine): Likewise.
22871 * emit-rtl.c (try_split): Likewise.
22872 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
22873 * lower-subreg.c (resolve_simple_move): Likewise.
22874 * lra.c (update_inc_notes): Likewise.
22875 * recog.c (asm_operand_ok): Likewise.
22876 (constrain_operands): Likewise.
22877 * regrename.c (scan_rtx_address): Likewise.
22878 * reload.c (update_auto_inc_notes): Likewise.
22879 (find_equiv_reg): Likewise.
22880 * reload1.c (reload): Likewise.
22881 (reload_as_needed): Likewise.
22882 (choose_reload_regs): Likewise.
22883 (emit_input_reload_insns): Likewise.
22884 (delete_output_reload): Likewise.
22885 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
22886 * valtrack.c (cleanup_auto_inc_dec): Likewise.
22888 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22890 * combine.c (can_combine_def_p): Don't check the value of
22891 HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
22892 (combinable_i3pat): Likewise.
22893 (mark_used_regs_combine): Likewise.
22894 * regrename.c (rename_chains): Likewise.
22895 * reload.c (find_reloads_address): Likewise.
22896 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
22898 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22900 * combine.c (update_rsp_from_reg_equal): Don't check if
22901 SHORT_IMMEDIATES_SIGN_EXTEND is defined.
22902 (reg_nonzero_bits_for_combine): Likewise.
22903 * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
22905 * config/frv/frv.h: Likewise.
22906 * config/lm32/lm32.h: Likewise.
22907 * config/mep/mep.h: Likewise.
22908 * config/mips/mips.h: Likewise.
22909 * config/rs6000/rs6000.h: Likewise.
22910 * config/sh/sh.h: Likewise.
22911 * config/tilegx/tilegx.h (enum reg_class): Likewise.
22912 * config/tilepro/tilepro.h: Likewise.
22913 * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
22914 * doc/tm.texi: Regenerate.
22915 * doc/tm.texi.in: Adjust.
22916 * rtlanal.c (nonzero_bits1): Likewise.
22918 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22920 * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
22921 with the preprocessor.
22922 (combine_instructions): Likewise.
22923 (try_combine): Likewise.
22925 (distribute_notes): Likewise.
22927 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22929 * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
22931 (simplify_set): Likewise.
22932 * cse.c (cse_insn): Likewise.
22933 * fold-const.c (fold_single_bit_test): Likewise.
22934 (fold_unary_loc): Likewise.
22935 * postreload.c (reload_cse_simplify_set): Likewise.
22936 (reload_cse_simplify_operands): Likewise.
22938 2015-07-08 Jiong Wang <jiong.wang@arm.com>
22940 * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
22941 (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
22943 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
22946 * config/i386/x86intrin.h: Include <adxintrin.h> even if
22947 __iamcu__ is defined.
22949 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
22951 * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
22953 2015-07-08 Iain Sandoe <iain@codesourcery.com>
22956 * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
22957 names from preservation.
22959 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
22962 * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
22964 (function_arg_advance_32): Don't pass vectors in registers for
22966 (function_arg_32): Likewise.
22967 (ix86_return_in_memory): Don't return vectors in registers for
22970 2015-07-08 Vladimir Makarov <vmakarov@redhat.com>
22972 PR middle-end/66334
22973 * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
22974 hard regno live at the start of BB with incoming abnormal edges.
22975 * lra-lives.c (process_bb_lives): Ditto.
22977 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
22980 * config/nvptx/mkoffload.c (main): Create an offload image only in
22981 64-bit configurations.
22983 2015-07-08 Martin Liska <mliska@suse.cz>
22986 * tree-sra.c (create_access_1): Call ctor without brackets.
22987 (create_artificial_child_access): Likewise.
22989 2015-07-08 Richard Biener <rguenther@suse.de>
22991 PR tree-optimization/66793
22992 * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
22993 Properly split the block after stmts ending it.
22995 2015-07-08 Richard Biener <rguenther@suse.de>
22997 PR tree-optimization/66794
22998 * passes.c (execute_function_todo): Assert that post-dominators
23000 * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
23001 Free post-dominators.
23003 2015-07-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23005 * config/s390/s390.c (s390_init_frame_layout): Replace assertion
23008 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
23010 * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
23011 more than or equal 8 and less than 32 when optimizing for size.
23013 2015-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23015 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
23016 COSTS_N_INSNS (1) and increment it appropriately throughout the
23019 2015-07-08 Richard Biener <rguenther@suse.de>
23021 * fold-const.c (fold_widened_comparison): Fix inverted comparison.
23023 2015-07-08 Alan Modra <amodra@gmail.com>
23025 * target.def (rtx_costs): Remove "code" param, add "mode".
23026 * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
23027 (set_src_cost, get_full_set_src_cost): Likewise. Move later in file.
23028 (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
23029 * rtlanal.c (rtx_cost): Add "mode" parameter. Update targetm.rtx_costs
23030 call. Track mode when given in rtx.
23031 (get_full_rtx_cost): Add "mode" parameter. Update rtx_cost calls.
23032 (default_address_cost): Pass Pmode to rtx_cost.
23033 (insn_rtx_cost): Pass dest mode of set to set_src_cost.
23034 * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
23036 * cse.c (COST, COST_IN): Add MODE param. Update all uses.
23037 (notreg_cost): Add mode param. Use it.
23038 * gcse.c (want_to_gcse_p): Delete forward declaration. Add
23039 mode param and pass to set_src_cost. Update all calls.
23040 (hash_scan_set): Formatting.
23041 * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
23042 (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
23044 * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
23045 init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
23046 emit_store_flag): Update set_src_cost and rtx_cost calls.
23047 * auto-inc-dec.c (attempt_change): Likewise.
23048 * calls.c (precompute_register_parameters): Likewise.
23049 * combine.c (expand_compound_operation, make_extraction,
23050 force_to_mode, distribute_and_simplify_rtx): Likewise.
23051 * dojump.c (prefer_and_bit_test): Likewise.
23052 * dse.c (find_shift_sequence): Likewise.
23053 * expr.c (compress_float_constant): Likewise.
23054 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
23055 * ifcvt.c (noce_try_sign_mask): Likewise.
23056 * loop-doloop.c (doloop_optimize): Likewise.
23057 * loop-invariant.c (create_new_invariant): Likewise.
23058 * lower-subreg.c (shift_cost, compute_costs): Likewise.
23059 * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
23060 lshift_cheap_p): Likewise.
23061 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
23062 try_replace_in_use, reload_cse_move2add): Likewise.
23063 * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
23065 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
23066 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
23067 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
23068 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
23069 * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
23070 add "mode" param. Use "mode: in place of GET_MODE (x). Pass mode
23072 * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
23073 * config/arc/arc.c (arc_rtx_costs): Likewise.
23074 * config/arm/arm.c (arm_rtx_costs): Likewise.
23075 * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
23076 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
23077 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
23078 * config/cris/cris.c (cris_rtx_costs): Likewise.
23079 * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
23080 * config/frv/frv.c (frv_rtx_costs): Likewise.
23081 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
23082 * config/i386/i386.c (ix86_rtx_costs): Likewise.
23083 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
23084 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
23085 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
23086 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
23087 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
23088 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
23089 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
23090 * config/mep/mep.c (mep_rtx_cost): Likewise.
23091 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
23092 * config/mips/mips.c (mips_rtx_costs): Likewise.
23093 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
23094 * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
23095 * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
23096 * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
23097 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
23098 * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
23099 * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
23100 * config/pa/pa.c (hppa_rtx_costs): Likewise.
23101 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
23102 * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
23103 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
23104 * config/s390/s390.c (s390_rtx_costs): Likewise.
23105 * config/sh/sh.c (sh_rtx_costs): Likewise.
23106 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
23107 * config/spu/spu.c (spu_rtx_costs): Likewise.
23108 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
23109 * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
23110 * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
23111 * config/v850/v850.c (v850_rtx_costs): Likewise.
23112 * config/vax/vax.c (vax_rtx_costs): Likewise.
23113 * config/visium/visium.c (visium_rtx_costs): Likewise.
23114 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
23115 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
23116 "code" param, and pass as outer_code to first rtx_cost call. Pass
23117 mode to rtx_cost calls.
23118 (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
23120 (aarch64_rtx_costs_wrapper): Update.
23121 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
23122 arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
23124 * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
23125 and rtx_cost calls.
23126 (avr_operand_rtx_cost): Similarly.
23127 (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
23128 for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
23129 * config/mips/mips.c (mips_stack_address_p): Comment typo.
23130 (mips_binary_cost): Update rtx_cost and set_src_cost calls.
23131 (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
23132 * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
23134 (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
23135 * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
23136 * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
23137 * doc/tm.texi: Regenerate.
23139 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
23141 * tree-core.h: Include symtab.h.
23142 * rtl.h: Include hard-reg-set.h but not flags.h.
23143 (HARD_CONST): Remove condition compilation involving HARD_CONST since
23144 hard-reg-set.h is always included.
23145 * regs.h: Don't include hard-reg-set.h or rtl.h.
23146 * cfg.h: Include dominance.h.
23147 * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
23148 * backend.h: New. Aggregate commonly used backend header files.
23149 * gimple-ssa.h: Don't include tree-hasher.h.
23150 * ssa.h: New. Aggregate commonly used SSA header files.
23151 * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
23152 * sel-sched-ir.h: Flatten includes.
23153 * lra-int.h: Flatten completely.
23154 * sel-sched-dump.h: Flatten includes.
23155 * ira-int.h: Flatten includes.
23156 * gimple-streamer.h: Remove all includes.
23157 * cfgloop.h: Remove all #includes except cfgloopmanip.h.
23158 * resource.h: Flatten hard-reg-set.h and df.h.
23159 * sched-int.h: Flatten insn-arrt.h and df.h.
23160 * valtrack.h: flatten bitmap.h, df.h, and rtl.h
23161 * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
23162 * genattrtab.c (write_header): Adjust generated includes.
23163 * genautomata.c (main): Likewise.
23164 * genconditions.c (write-header): Likewise.
23165 * genemit.c (main): Likewise.
23166 * gengtype.c (open_base_files): Likewise.
23167 * genopinit.c (main): Likewise.
23168 * genoutput.c (output_prologue): Likewise.
23169 * genpeep.c (main): Likewise.
23170 * genpreds.c (write_insn_preds_c): Likewise.
23171 * genrecog.c (write_header): Likewise.
23172 * alias.c: Adjust includes.
23173 * asan.c: Likewise.
23174 * attribs.c: Likewise.
23175 * auto-inc-dec.c: Likewise.
23176 * auto-profile.c: Likewise.
23177 * bb-reorder.c: Likewise.
23178 * bt-load.c: Likewise.
23179 * builtins.c: Likewise.
23180 * caller-save.c: Likewise.
23181 * calls.c: Likewise.
23182 * ccmp.c: Likewise.
23184 * cfganal.c: Likewise.
23185 * cfgbuild.c: Likewise.
23186 * cfgcleanup.c: Likewise.
23187 * cfgexpand.c: Likewise.
23188 * cfghooks.c: Likewise.
23189 * cfgloop.c: Likewise.
23190 * cfgloopanal.c: Likewise.
23191 * cfgloopmanip.c: Likewise.
23192 * cfgrtl.c: Likewise.
23193 * cgraph.c: Likewise.
23194 * cgraphbuild.c: Likewise.
23195 * cgraphclones.c: Likewise.
23196 * cgraphunit.c: Likewise.
23197 * cilk-common.c: Likewise.
23198 * combine-stack-adj.c: Likewise.
23199 * combine.c: Likewise.
23200 * compare-elim.c: Likewise.
23201 * convert.c: Likewise.
23202 * coverage.c: Likewise.
23203 * cppbuiltin.c: Likewise.
23204 * cprop.c: Likewise.
23206 * cselib.c: Likewise.
23207 * data-streamer-in.c: Likewise.
23208 * data-streamer-out.c: Likewise.
23209 * data-streamer.c: Likewise.
23210 * dbxout.c: Likewise.
23213 * debug.c: Likewise.
23214 * df-core.c: Likewise.
23215 * df-problems.c: Likewise.
23216 * df-scan.c: Likewise.
23218 * dojump.c: Likewise.
23219 * dominance.c: Likewise.
23220 * domwalk.c: Likewise.
23221 * double-int.c: Likewise.
23223 * dumpfile.c: Likewise.
23224 * dwarf2asm.c: Likewise.
23225 * dwarf2cfi.c: Likewise.
23226 * dwarf2out.c: Likewise.
23227 * emit-rtl.c: Likewise.
23228 * et-forest.c: Likewise.
23229 * except.c: Likewise.
23230 * explow.c: Likewise.
23231 * expmed.c: Likewise.
23232 * expr.c: Likewise.
23233 * final.c: Likewise.
23234 * fixed-value.c: Likewise.
23235 * fold-const.c: Likewise.
23236 * function.c: Likewise.
23237 * fwprop.c: Likewise.
23238 * gcc-plugin.h: Likewise.
23239 * gcse-common.c: Likewise.
23240 * gcse.c: Likewise.
23241 * generic-match-head.c: Likewise.
23242 * ggc-page.c: Likewise.
23243 * gimple-builder.c: Likewise.
23244 * gimple-expr.c: Likewise.
23245 * gimple-fold.c: Likewise.
23246 * gimple-iterator.c: Likewise.
23247 * gimple-low.c: Likewise.
23248 * gimple-match-head.c: Likewise.
23249 * gimple-pretty-print.c: Likewise.
23250 * gimple-ssa-isolate-paths.c: Likewise.
23251 * gimple-ssa-strength-reduction.c: Likewise.
23252 * gimple-streamer-in.c: Likewise.
23253 * gimple-streamer-out.c: Likewise.
23254 * gimple-walk.c: Likewise.
23255 * gimple.c: Likewise.
23256 * gimplify-me.c: Likewise.
23257 * gimplify.c: Likewise.
23258 * godump.c: Likewise.
23259 * graph.c: Likewise.
23260 * graphite-blocking.c: Likewise.
23261 * graphite-dependences.c: Likewise.
23262 * graphite-interchange.c: Likewise.
23263 * graphite-isl-ast-to-gimple.c: Likewise.
23264 * graphite-optimize-isl.c: Likewise.
23265 * graphite-poly.c: Likewise.
23266 * graphite-scop-detection.c: Likewise.
23267 * graphite-sese-to-poly.c: Likewise.
23268 * graphite.c: Likewise.
23269 * haifa-sched.c: Likewise.
23270 * hw-doloop.c: Likewise.
23271 * ifcvt.c: Likewise.
23272 * init-regs.c: Likewise.
23273 * internal-fn.c: Likewise.
23274 * ipa-chkp.c: Likewise.
23275 * ipa-comdats.c: Likewise.
23276 * ipa-cp.c: Likewise.
23277 * ipa-devirt.c: Likewise.
23278 * ipa-icf-gimple.c: Likewise.
23279 * ipa-icf.c: Likewise.
23280 * ipa-inline-analysis.c: Likewise.
23281 * ipa-inline-transform.c: Likewise.
23282 * ipa-inline.c: Likewise.
23283 * ipa-polymorphic-call.c: Likewise.
23284 * ipa-profile.c: Likewise.
23285 * ipa-prop.c: Likewise.
23286 * ipa-pure-const.c: Likewise.
23287 * ipa-ref.c: Likewise.
23288 * ipa-reference.c: Likewise.
23289 * ipa-split.c: Likewise.
23290 * ipa-utils.c: Likewise.
23291 * ipa-visibility.c: Likewise.
23293 * ira-build.c: Likewise.
23294 * ira-color.c: Likewise.
23295 * ira-conflicts.c: Likewise.
23296 * ira-costs.c: Likewise.
23297 * ira-emit.c: Likewise.
23298 * ira-lives.c: Likewise.
23300 * jump.c: Likewise.
23301 * langhooks.c: Likewise.
23303 * loop-doloop.c: Likewise.
23304 * loop-init.c: Likewise.
23305 * loop-invariant.c: Likewise.
23306 * loop-iv.c: Likewise.
23307 * loop-unroll.c: Likewise.
23308 * lower-subreg.c: Likewise.
23309 * lra-assigns.c: Likewise.
23310 * lra-coalesce.c: Likewise.
23311 * lra-constraints.c: Likewise.
23312 * lra-eliminations.c: Likewise.
23313 * lra-lives.c: Likewise.
23314 * lra-remat.c: Likewise.
23315 * lra-spills.c: Likewise.
23317 * lto-cgraph.c: Likewise.
23318 * lto-compress.c: Likewise.
23319 * lto-opts.c: Likewise.
23320 * lto-section-in.c: Likewise.
23321 * lto-section-out.c: Likewise.
23322 * lto-streamer-in.c: Likewise.
23323 * lto-streamer-out.c: Likewise.
23324 * lto-streamer.c: Likewise.
23326 * mode-switching.c: Likewise.
23327 * modulo-sched.c: Likewise.
23328 * omega.c: Likewise.
23329 * omp-low.c: Likewise.
23330 * optabs.c: Likewise.
23331 * opts-global.c: Likewise.
23332 * passes.c: Likewise.
23333 * plugin.c: Likewise.
23334 * postreload-gcse.c: Likewise.
23335 * postreload.c: Likewise.
23336 * predict.c: Likewise.
23337 * print-rtl.c: Likewise.
23338 * print-tree.c: Likewise.
23339 * profile.c: Likewise.
23340 * real.c: Likewise.
23341 * realmpfr.c: Likewise.
23342 * recog.c: Likewise.
23344 * reg-stack.c: Likewise.
23345 * regcprop.c: Likewise.
23346 * reginfo.c: Likewise.
23347 * regrename.c: Likewise.
23348 * regstat.c: Likewise.
23349 * reload.c: Likewise.
23350 * reload1.c: Likewise.
23351 * reorg.c: Likewise.
23352 * resource.c: Likewise.
23353 * rtl-chkp.c: Likewise.
23354 * rtlanal.c: Likewise.
23355 * rtlhooks.c: Likewise.
23356 * sanopt.c: Likewise.
23357 * sched-deps.c: Likewise.
23358 * sched-ebb.c: Likewise.
23359 * sched-rgn.c: Likewise.
23360 * sched-vis.c: Likewise.
23361 * sdbout.c: Likewise.
23362 * sel-sched-dump.c: Likewise.
23363 * sel-sched-ir.c: Likewise.
23364 * sel-sched.c: Likewise.
23365 * sese.c: Likewise.
23366 * shrink-wrap.c: Likewise.
23367 * simplify-rtx.c: Likewise.
23368 * stack-ptr-mod.c: Likewise.
23369 * stmt.c: Likewise.
23370 * stor-layout.c: Likewise.
23371 * store-motion.c: Likewise.
23372 * stringpool.c: Likewise.
23373 * symtab.c: Likewise.
23374 * target-globals.c: Likewise.
23375 * targhooks.c: Likewise.
23376 * toplev.c: Likewise.
23377 * tracer.c: Likewise.
23378 * trans-mem.c: Likewise.
23379 * tree-affine.c: Likewise.
23380 * tree-browser.c: Likewise.
23381 * tree-call-cdce.c: Likewise.
23382 * tree-cfg.c: Likewise.
23383 * tree-cfgcleanup.c: Likewise.
23384 * tree-chkp-opt.c: Likewise.
23385 * tree-chkp.c: Likewise.
23386 * tree-chrec.c: Likewise.
23387 * tree-complex.c: Likewise.
23388 * tree-data-ref.c: Likewise.
23389 * tree-dfa.c: Likewise.
23390 * tree-diagnostic.c: Likewise.
23391 * tree-dump.c: Likewise.
23392 * tree-eh.c: Likewise.
23393 * tree-emutls.c: Likewise.
23394 * tree-if-conv.c: Likewise.
23395 * tree-inline.c: Likewise.
23396 * tree-into-ssa.c: Likewise.
23397 * tree-iterator.c: Likewise.
23398 * tree-loop-distribution.c: Likewise.
23399 * tree-nested.c: Likewise.
23400 * tree-nrv.c: Likewise.
23401 * tree-object-size.c: Likewise.
23402 * tree-outof-ssa.c: Likewise.
23403 * tree-parloops.c: Likewise.
23404 * tree-phinodes.c: Likewise.
23405 * tree-predcom.c: Likewise.
23406 * tree-pretty-print.c: Likewise.
23407 * tree-profile.c: Likewise.
23408 * tree-scalar-evolution.c: Likewise.
23409 * tree-sra.c: Likewise.
23410 * tree-ssa-address.c: Likewise.
23411 * tree-ssa-alias.c: Likewise.
23412 * tree-ssa-ccp.c: Likewise.
23413 * tree-ssa-coalesce.c: Likewise.
23414 * tree-ssa-copy.c: Likewise.
23415 * tree-ssa-copyrename.c: Likewise.
23416 * tree-ssa-dce.c: Likewise.
23417 * tree-ssa-dom.c: Likewise.
23418 * tree-ssa-dse.c: Likewise.
23419 * tree-ssa-forwprop.c: Likewise.
23420 * tree-ssa-ifcombine.c: Likewise.
23421 * tree-ssa-live.c: Likewise.
23422 * tree-ssa-loop-ch.c: Likewise.
23423 * tree-ssa-loop-im.c: Likewise.
23424 * tree-ssa-loop-ivcanon.c: Likewise.
23425 * tree-ssa-loop-ivopts.c: Likewise.
23426 * tree-ssa-loop-manip.c: Likewise.
23427 * tree-ssa-loop-niter.c: Likewise.
23428 * tree-ssa-loop-prefetch.c: Likewise.
23429 * tree-ssa-loop-unswitch.c: Likewise.
23430 * tree-ssa-loop.c: Likewise.
23431 * tree-ssa-math-opts.c: Likewise.
23432 * tree-ssa-operands.c: Likewise.
23433 * tree-ssa-phiopt.c: Likewise.
23434 * tree-ssa-phiprop.c: Likewise.
23435 * tree-ssa-pre.c: Likewise.
23436 * tree-ssa-propagate.c: Likewise.
23437 * tree-ssa-reassoc.c: Likewise.
23438 * tree-ssa-sccvn.c: Likewise.
23439 * tree-ssa-scopedtables.c: Likewise.
23440 * tree-ssa-sink.c: Likewise.
23441 * tree-ssa-strlen.c: Likewise.
23442 * tree-ssa-structalias.c: Likewise.
23443 * tree-ssa-tail-merge.c: Likewise.
23444 * tree-ssa-ter.c: Likewise.
23445 * tree-ssa-threadedge.c: Likewise.
23446 * tree-ssa-threadupdate.c: Likewise.
23447 * tree-ssa-uncprop.c: Likewise.
23448 * tree-ssa-uninit.c: Likewise.
23449 * tree-ssa.c: Likewise.
23450 * tree-ssanames.c: Likewise.
23451 * tree-stdarg.c: Likewise.
23452 * tree-streamer-in.c: Likewise.
23453 * tree-streamer-out.c: Likewise.
23454 * tree-streamer.c: Likewise.
23455 * tree-switch-conversion.c: Likewise.
23456 * tree-tailcall.c: Likewise.
23457 * tree-vect-data-refs.c: Likewise.
23458 * tree-vect-generic.c: Likewise.
23459 * tree-vect-loop-manip.c: Likewise.
23460 * tree-vect-loop.c: Likewise.
23461 * tree-vect-patterns.c: Likewise.
23462 * tree-vect-slp.c: Likewise.
23463 * tree-vect-stmts.c: Likewise.
23464 * tree-vectorizer.c: Likewise.
23465 * tree-vrp.c: Likewise.
23466 * tree.c: Likewise.
23467 * tsan.c: Likewise.
23468 * ubsan.c: Likewise.
23469 * valtrack.c: Likewise.
23470 * value-prof.c: Likewise.
23471 * var-tracking.c: Likewise.
23472 * varasm.c: Likewise.
23473 * varpool.c: Likewise.
23474 * vmsdbgout.c: Likewise.
23475 * vtable-verify.c: Likewise.
23477 * wide-int.cc: Likewise.
23478 * xcoffout.c: Likewise.
23479 * config/aarch64/aarch64-builtins.c: Likewise.
23480 * config/aarch64/aarch64.c: Likewise.
23481 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
23482 * config/alpha/alpha.c: Likewise.
23483 * config/arc/arc.c: Likewise.
23484 * config/arm/aarch-common.c: Likewise.
23485 * config/arm/arm-builtins.c: Likewise.
23486 * config/arm/arm-c.c: Likewise.
23487 * config/arm/arm.c: Likewise.
23488 * config/avr/avr-c.c: Likewise.
23489 * config/avr/avr-log.c: Likewise.
23490 * config/avr/avr.c: Likewise.
23491 * config/bfin/bfin.c: Likewise.
23492 * config/c6x/c6x.c: Likewise.
23493 * config/cr16/cr16.c: Likewise.
23494 * config/cris/cris.c: Likewise.
23495 * config/darwin-c.c: Likewise.
23496 * config/darwin.c: Likewise.
23497 * config/epiphany/epiphany.c: Likewise.
23498 * config/epiphany/mode-switch-use.c: Likewise.
23499 * config/epiphany/resolve-sw-modes.c: Likewise.
23500 * config/fr30/fr30.c: Likewise.
23501 * config/frv/frv.c: Likewise.
23502 * config/ft32/ft32.c: Likewise.
23503 * config/h8300/h8300.c: Likewise.
23504 * config/i386/i386-c.c: Likewise.
23505 * config/i386/i386.c: Likewise.
23506 * config/i386/msformat-c.c: Likewise.
23507 * config/i386/winnt-cxx.c: Likewise.
23508 * config/i386/winnt-stubs.c: Likewise.
23509 * config/i386/winnt.c: Likewise.
23510 * config/ia64/ia64-c.c: Likewise.
23511 * config/ia64/ia64.c: Likewise.
23512 * config/iq2000/iq2000.c: Likewise.
23513 * config/lm32/lm32.c: Likewise.
23514 * config/m32c/m32c-pragma.c: Likewise.
23515 * config/m32c/m32c.c: Likewise.
23516 * config/m32r/m32r.c: Likewise.
23517 * config/m68k/m68k.c: Likewise.
23518 * config/mcore/mcore.c: Likewise.
23519 * config/mep/mep-pragma.c: Likewise.
23520 * config/mep/mep.c: Likewise.
23521 * config/microblaze/microblaze-c.c: Likewise.
23522 * config/microblaze/microblaze.c: Likewise.
23523 * config/mips/mips.c: Likewise.
23524 * config/mmix/mmix.c: Likewise.
23525 * config/mn10300/mn10300.c: Likewise.
23526 * config/moxie/moxie.c: Likewise.
23527 * config/msp430/msp430-c.c: Likewise.
23528 * config/msp430/msp430.c: Likewise.
23529 * config/nds32/nds32-cost.c: Likewise.
23530 * config/nds32/nds32-fp-as-gp.c: Likewise.
23531 * config/nds32/nds32-intrinsic.c: Likewise.
23532 * config/nds32/nds32-isr.c: Likewise.
23533 * config/nds32/nds32-md-auxiliary.c: Likewise.
23534 * config/nds32/nds32-memory-manipulation.c: Likewise.
23535 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
23536 * config/nds32/nds32-predicates.c: Likewise.
23537 * config/nds32/nds32.c: Likewise.
23538 * config/nios2/nios2.c: Likewise.
23539 * config/nvptx/nvptx.c: Likewise.
23540 * config/pa/pa.c: Likewise.
23541 * config/pdp11/pdp11.c: Likewise.
23542 * config/rl78/rl78-c.c: Likewise.
23543 * config/rl78/rl78.c: Likewise.
23544 * config/rs6000/rs6000-c.c: Likewise.
23545 * config/rs6000/rs6000.c: Likewise.
23546 * config/rx/rx.c: Likewise.
23547 * config/s390/s390-c.c: Likewise.
23548 * config/s390/s390.c: Likewise.
23549 * config/sh/sh-c.c: Likewise.
23550 * config/sh/sh-mem.cc: Likewise.
23551 * config/sh/sh.c: Likewise.
23552 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
23553 * config/sh/sh_treg_combine.cc: Likewise.
23554 * config/sol2-c.c: Likewise.
23555 * config/sol2-cxx.c: Likewise.
23556 * config/sol2-stubs.c: Likewise.
23557 * config/sol2.c: Likewise.
23558 * config/sparc/sparc-c.c: Likewise.
23559 * config/sparc/sparc.c: Likewise.
23560 * config/spu/spu-c.c: Likewise.
23561 * config/spu/spu.c: Likewise.
23562 * config/stormy16/stormy16.c: Likewise.
23563 * config/tilegx/mul-tables.c: Likewise.
23564 * config/tilegx/tilegx-c.c: Likewise.
23565 * config/tilegx/tilegx.c: Likewise.
23566 * config/tilepro/mul-tables.c: Likewise.
23567 * config/tilepro/tilepro-c.c: Likewise.
23568 * config/tilepro/tilepro.c: Likewise.
23569 * config/v850/v850-c.c: Likewise.
23570 * config/v850/v850.c: Likewise.
23571 * config/vax/vax.c: Likewise.
23572 * config/visium/visium.c: Likewise.
23573 * config/vms/vms-c.c: Likewise.
23574 * config/vms/vms.c: Likewise.
23575 * config/vxworks.c: Likewise.
23576 * config/xtensa/xtensa.c: Likewise.
23578 2015-07-07 Uros Bizjak <ubizjak@gmail.com>
23580 * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
23581 Remove operand constraints. Change operand 2 predicate to
23582 nonmemory operand. Limit const_int values to mode bitsize. Only
23583 allow const_int values less than 32 when optimizing for size.
23584 (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
23585 Remove operand constraints.
23586 (*bt<mode>): Use SImode for const_int values less than 32.
23587 (regmode): Remove mode attribute.
23589 2015-07-07 Anatoly Sokolov <aesok@post.ru>
23591 * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
23592 * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
23593 moxie_legitimate_address_p): New functions.
23594 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
23596 2015-07-07 Tom de Vries <tom@codesourcery.com>
23598 PR tree-optimization/66642
23599 * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
23600 header comment. Rename split_edge variable to edge_at_split. Split
23601 exit edge to create new loop exit bb. Insert loop exit phis in new
23604 2015-07-07 Tom de Vries <tom@codesourcery.com>
23606 * tree-cfg.c (get_virtual_phi): New function.
23607 * tree-cfg.h (get_virtual_phi): Declare.
23608 * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
23609 (rewrite_virtuals_into_loop_closed_ssa): New function.
23610 * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
23612 * tree-parloops.c (replace_uses_in_bbs_by): Remove.
23613 (transform_to_exit_first_loop_alt): Use
23614 rewrite_virtuals_into_loop_closed_ssa.
23616 2015-07-07 Richard Biener <rguenther@suse.de>
23618 * fold-const.c (fold_binary_loc): Move
23619 (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
23620 * match.pd: ... here.
23621 Add (X * C1) % C2 -> 0 simplification pattern derived from
23624 2015-07-07 Kaz Kojima <kkojima@gcc.gnu.org>
23627 * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
23628 change for target/65249.
23630 2015-07-07 Paulo Matos <pmatos@broadcom.com>
23632 * symtab.c (address_matters_1): Fix typo in comment above.
23633 (can_increase_alignment_p): Likewise.
23635 2015-07-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
23637 * function.c (free_after_compilation): Clear PROP_cfg in
23638 f->curr_properties.
23640 2015-07-07 Richard Biener <rguenther@suse.de>
23642 * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
23644 (add_control_edge): Remove excessive vertical space in dumping.
23645 (process_ssa_edge_worklist): Simulate at most one statement and
23646 return whether we did. Do not simulate PHIs if they are in a
23647 BB not yet simulated.
23648 (ssa_propagate): Adjust to always drain the BB worklist whenever
23649 a BB is available there, likewise the VARYING edges list before
23650 the interesting edge list.
23652 2015-07-07 Christian Bruel <christian.bruel@st.com>
23655 * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
23657 2015-07-07 Richard Biener <rguenther@suse.de>
23659 PR middle-end/66739
23660 * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
23663 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
23665 * config/i386/i386.md (insv<mode>): Rename from insv. Use SWI48
23666 modes for operands 0 and 3. Use SImode for operands 2 and 3.
23667 Copy operand 0 to a temporary if !ext_register_operand. Remove
23668 ancient extract_bit_field workaround.
23669 (insv<mode>_1): Rename from mov<mode>_insv_1.
23670 (*insvqi): Rename from *movqi_insv_2.
23671 * config/i386/i386.c (emit_i386_cw_initialization): Update calls
23672 for renamed insvsi_1.
23673 (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
23675 2015-07-06 Nathan Sidwell <nathan@codesourcery.com>
23677 * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars. Fix
23678 call to nvptx_reorg_subreg.
23680 2015-07-06 Jim Wilson <jim.wilson@linaro.org>
23682 * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
23683 * graphite-dependencies.c, graphite-interchange.c,
23684 graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
23685 graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
23688 2015-07-06 Marc Glisse <marc.glisse@inria.fr>
23690 * match.pd: Remove element_mode inside HONOR_*.
23691 (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
23692 (~X | X -> -1, ~X ^ X -> -1): Merge.
23693 * tree.c (build_each_one_cst): New function.
23694 * tree.h (build_each_one_cst): Likewise.
23696 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
23698 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
23701 2015-07-06 Steve Ellcey <sellcey@imgtec.com>
23703 * config.gcc <mips*-*-*>: Add fused-madd.opt.
23704 * config/mips/mips.opt (mfused-madd): Remove.
23705 * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
23706 * config/mips/mips.h (TARGET_MIPS8000): New.
23707 (ISA_HAS_FP_MADD4_MSUB4): Remove.
23708 (ISA_HAS_FP_MADDF_MSUBF): Remove.
23709 (ISA_HAS_FP_MADD3_MSUB3): Remove.
23710 (ISA_HAS_NMADD4_NMSUB4): Remove.
23711 (ISA_HAS_NMADD3_NMSUB3): Remove.
23712 (ISA_HAS_FUSED_MADD4): New.
23713 (ISA_HAS_UNFUSED_MADD4): New.
23714 (ISA_HAS_FUSED_MADDF): New.
23715 (ISA_HAS_FUSED_MADD3): New.
23716 * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
23717 (*fma<mode>4_madd3) New.
23718 (*fma<mode>4_madd4) New.
23719 (*fma<mode>4_maddf) New.
23721 (*fms<mode>4_msub3) New.
23722 (*fms<mode>4_msub4) New.
23724 (*fnma<mode>4_nmadd3) New.
23725 (*fnma<mode>4_nmadd4) New.
23727 (*fnms<mode>4_nmsub3) New.
23728 (*fnms<mode>4_nmsub4) New.
23729 (*madd4<mode>) Modify to be unfused only.
23730 (*msub4<mode>) Modify to be unfused only.
23731 (*nmadd4<mode>) Modify to be unfused only.
23732 (*nmsub4<mode>) Modify to be unfused only.
23733 (*madd3<mode>) Remove.
23734 (*msub3<mode>) Remove.
23735 (*nmadd3<mode>) Remove.
23736 (*nmsub3<mode>) Remove.
23737 (*nmadd3<mode>_fastmath) Remove.
23738 (*nmsub3<mode>_fastmath) Remove.
23739 (*nmadd4<mode>_fastmath) Update condition.
23740 (*nmsub4<mode>_fastmath) Update condition.
23742 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
23745 * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
23746 alignment attribute, exploring one level down for records and arrays.
23748 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
23750 * config/i386/i386.md (extv<mode>): Rename from extv. Use SWI24
23751 modes for operands 0 and 1. Use SImode for operands 2 and 3.
23752 Copy operand 1 to a temporary if !ext_register_operand. Remove
23753 ancient extract_bit_field workaround.
23754 (*extv<mode>): Rename from *mov<mode>_extv_1.
23755 (*extvqi): Rename from *movqi_extv_1.
23756 (extzv<mode>): Rename from extzv. Use SWI248 modes for
23757 operands 0 and 1. Use SImode for operands 2 and 3. Copy operand 1
23758 to a temporary if !ext_register_operand. Remove ancient
23759 extract_bit_field workaround.
23760 (*extzv<mode>): Rename from *mov<mode>_extzv_1.
23761 (*extzvqi): Rename from *movqi_extzv_2.
23762 (*testqi_ext_3): Remove modes from const_int_operand predicated
23763 operands. Add "n" constraint.
23764 (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
23765 operand. Add "J" constraint.
23766 (*btsq, *btrq, *btcq peephole2s): Remove mode from
23767 const_0_to_63 predicated operand.
23768 (regmode): New insn attribute.
23769 (*bt<mode>): Use SImode for operand 1. Change operand 1 predicate
23770 to nonmemory_operand. Use regmode insn attribute.
23771 (*jcc_bt<mode>_1): Convert operand 2 to SImode.
23772 (*jcc_bt<mode>_mask): Remove mode from operand 3.
23773 (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
23774 (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
23775 operands. Use "N" constraint instead of "n".
23777 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
23779 * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
23781 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
23784 * config/i386/i386.c (iamcu_cost): New.
23785 (m_IAMCU): Likewise.
23786 (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
23787 (processor_target_table): Add an entry for "iamcu".
23788 (processor_alias_table): Likewise.
23789 (ix86_issue_rate): Handle PROCESSOR_IAMCU.
23790 (ix86_adjust_cost): Likewise.
23791 (ia32_multipass_dfa_lookahead): Likewise.
23792 * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
23793 * config/i386/x86-tune.def: Updated for m_IAMCU.
23795 2015-07-06 Richard Biener <rguenther@suse.de>
23797 PR tree-optimization/66772
23798 * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
23799 values are available in the PHI node BB when there are
23800 still unexecutable edges.
23802 2015-07-06 Richard Biener <rguenther@suse.de>
23804 PR tree-optimization/66767
23805 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
23806 Make sure to build the alignment test on a SSA name without
23807 final alignment info valid only if the alignment test
23810 2015-07-06 Bernd Schmidt <bernds@codesourcery.com>
23813 * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
23814 loop start when inserting LSETUP.
23816 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
23819 * config/i386/i386.c (ix86_option_override_internal): Allow
23820 -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
23822 2015-07-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23824 * read-md.c (decimal_string): Rename to ...
23825 (md_decimal_string): ... this.
23826 (handle_enum): Reflect this.
23828 2015-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
23831 * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
23833 2015-07-06 Richard Biener <rguenther@suse.de>
23835 PR middle-end/66759
23836 * match.pd: Add missing constraint of y to REAL_CST in
23837 REAL_CST - x CMP y to y - CST CMP x simplification.
23839 2015-07-06 Eric Botcazou <ebotcazou@adacore.com>
23841 PR tree-optimization/66757
23842 * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
23844 2015-07-05 Chung-Lin Tang <cltang@codesourcery.com>
23845 Sandra Loosemore <sandra@codesourcery.com>
23847 * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
23848 Delete extern declaration.
23849 (gprel_constant_p): Add extern declaration.
23850 * config/nios2/constraints.md ("S"): Use gprel_constant_p
23851 instead of nios2_symbol_ref_in_small_data_p.
23852 * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
23853 (nios2_symbol_ref_in_small_data_p): Make static.
23854 (gprel_constant_p): Make non-static.
23856 2015-07-05 Gerald Pfeifer <gerald@pfeifer.com>
23858 * doc/fragments.texi (Target Fragment): Convert debian.org
23860 * doc/install.texi (Configuration): Ditto.
23862 2015-07-05 Jakub Jelinek <jakub@redhat.com>
23864 PR tree-optimization/66718
23865 * tree-vect-stmts.c (vectorizable_call): Replace uses of
23866 GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
23868 PR tree-optimization/66718
23869 * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
23870 vectorizable_load, vectorizable_condition): Move vectype,
23871 nunits, ncopies computation after checking what kind of statement
23874 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
23876 * target-insns.def (extv, extzv, insv): New targetm instruction
23878 * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
23880 * recog.c (simplify_while_replacing): Likewise.
23882 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
23884 * target-insns.def (doloop_begin, doloop_end): New targetm
23885 instruction patterns.
23886 * loop-init.c: Include target.h.
23887 (pass_loop2::gate): Use the new targetm patterns instead of
23888 HAVE_*/gen_* interface.
23889 (pass_rtl_doloop::gate): Likewise.
23890 (pass_rtl_doloop::execute): Remove preprocessor condition.
23891 * hw-doloop.c: Build unconditionally.
23892 * loop-doloop.c: Likewise.
23893 (doloop_optimize): Use the new targetm patterns instead of
23894 HAVE_*/gen_* interface.
23895 (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
23896 * modulo-sched.c (doloop_register_get): Likewise.
23898 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
23900 * target-insns.def (clear_cache): New targetm instruction pattern.
23901 * builtins.c (expand_builtin___clear_cache): Use it instead of
23902 HAVE_*/gen_* interface.
23904 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
23906 * target-insns.def (allocate_stack, check_stack, probe_stack)
23907 (probe_stack_address, split_stack_prologue, split_stack_space_check):
23908 New targetm instruction patterns.
23909 * explow.c (allocate_dynamic_stack_space): Use them instead of
23910 HAVE_*/gen_* interface.
23911 (emit_stack_probe): Likewise.
23912 (probe_stack_range): Likewise.
23913 * function.c (thread_prologue_and_epilogue_insns): Likewise.
23915 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
23917 * target-insns.def (stack_protect_set, stack_protect_test): New
23918 targetm instruction patterns.
23919 * cfgexpand.c (stack_protect_prologue): Use them instead of
23920 HAVE_*/gen_* interface.
23921 * function.c (stack_protect_epilogue): Likewise.
23923 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
23925 * expr.h (gen_move_insn_uncast): Delete.
23926 * expr.c (gen_move_insn_uncast): Delete.
23928 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
23930 * target-insns.def (restore_stack_block, restore_stack_function)
23931 (restore_stack_nonlocal, save_stack_block, save_stack_function)
23932 (save_stack_nonlocal): New targetm instruction patterns.
23933 * builtins.c (expand_builtin_apply): Use them instead of
23934 HAVE_*/gen_* interface.
23935 * explow.c (emit_stack_save, emit_stack_restore): Likewise.
23937 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
23939 * target-insns.def (trap): New targetm instruction pattern.
23940 * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
23942 * explow.c (allocate_dynamic_stack_space): Likewise.
23943 * ifcvt.c (find_if_header): Likewise.
23945 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
23947 * target-insns.def (prefetch): New targetm instruction pattern.
23948 * tree-ssa-loop-prefetch.c: Include targeth.
23949 (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
23950 of HAVE_*/gen_* interface.
23951 * builtins.c (expand_builtin_prefetch): Likewise.
23952 * toplev.c (process_options): Likewise.
23954 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
23956 * target-insns.def (untyped_call, untyped_return): New targetm
23957 instruction patterns.
23958 * builtins.c (expand_builtin_apply): Use them instead of
23959 HAVE_*/gen_* interface.
23960 (result_vector): Define unconditionally.
23962 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
23964 * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
23965 (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
23966 (nonlocal_goto_receiver): New targetm instruction patterns.
23967 * builtins.c (expand_builtin_setjmp_setup): Use them instead
23968 of HAVE_*/gen_* interface.
23969 (expand_builtin_setjmp_receiver): Likewise.
23970 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
23971 * except.c (expand_dw2_landing_pad_for_region): Likewise.
23973 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
23975 * target.def: Add code_for_* hooks.
23976 * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
23977 * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
23978 * target-insns.def (casesi, tablejump): New targetm instruction
23980 * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
23981 (do_tablejump): Likewise.
23982 * stmt.c (expand_switch_as_decision_tree_p): Likewise.
23983 (expand_sjlj_dispatch_table): Likewise.
23984 * targhooks.c (default_case_values_threshold): Likewise.
23986 2015-07-04 Sandra Loosemore <sandra@codesourcery.com>
23988 * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
23989 Use rtx_insn * instead of rtx.
23990 (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
23991 (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
23992 (nios2_call_tls_get_addr): Likewise.
23993 (nios2_emit_expensive_div): Likewise.
23994 (nios2_emit_move_sequence): Change return type to bool.
23995 * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
23996 Change return type to bool.
23998 2015-07-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
24001 * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
24003 2015-07-04 John David Anglin <danglin@gcc.gnu.org>
24006 * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
24007 of register_operand. Remove constraint.
24009 2015-07-04 Marc Glisse <marc.glisse@inria.fr>
24011 * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
24012 the first argument.
24014 2015-07-03 Paolo Carlini <paolo.carlini@oracle.com>
24016 * attribs.c (decl_attributes): Guard inform with the return value
24017 of the preceding warning.
24019 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
24021 * doc/invoke.texi (moverride): Move to correct section.
24023 2015-07-03 Richard Biener <rguenther@suse.de>
24025 * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
24027 (dt_operand::gen_gimple_expr): After valueizing operands
24028 re-canonicalize operand order for commutative tree codes.
24030 2015-07-03 H.J. Lu <hongjiu.lu@intel.com>
24033 * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
24035 (__crc32w): Likewise.
24036 (__crc32d): Likewise.
24037 (__rdpmc): Likewise.
24038 (__rdtscp): Likewise.
24039 (_rdpmc): Likewise.
24040 (_rdtscp): Likewise.
24041 * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
24044 2015-07-03 Richard Biener <rguenther@suse.de>
24046 * fold-const.c (fold_mathfn_compare): Remove.
24047 (fold_inf_compare): Likewise.
24048 (fold_comparison): Move floating point comparison simplifications...
24049 * match.pd: ... to patterns here. Introduce simple_comparisons
24050 operator list and use it for patterns formerly in fold_comparison.
24052 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
24054 PR tree-optimization/66119
24055 * toplev.c (process_options): Don't set up default values for
24056 the sra_max_scalarization_size_{speed,size} parameters.
24057 * tree-sra (analyze_all_variable_accesses): If no values
24058 have been set for the sra_max_scalarization_size_{speed,size}
24059 parameters, call get_move_ratio to get target defaults.
24061 2015-07-03 Richard Biener <rguenther@suse.de>
24063 * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
24064 * match.pd: ... here.
24066 2015-07-03 Gerald Pfeifer <gerald@pfeifer.com>
24069 * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
24070 is not actually the default on FreeBSD.
24072 2015-07-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24074 * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
24076 (CMPGE_8HI): Likewise.
24077 (CMPGE_4SI): Likewise.
24078 (CMPGE_2DI): Likewise.
24079 (CMPGE_U16QI): Likewise.
24080 (CMPGE_U8HI): Likewise.
24081 (CMPGE_U4SI): Likewise.
24082 (CMPGE_U2DI): Likewise.
24083 (CMPLE_16QI): Likewise.
24084 (CMPLE_8HI): Likewise.
24085 (CMPLE_4SI): Likewise.
24086 (CMPLE_2DI): Likewise.
24087 (CMPLE_U16QI): Likewise.
24088 (CMPLE_U8HI): Likewise.
24089 (CMPLE_U4SI): Likewise.
24090 (CMPLE_U2DI): Likewise.
24091 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
24092 overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
24093 ALTIVEC_BUILTIN_VEC_CMPLE.
24094 * config/rs6000/vector.md (vector_ge<mode>): Restrict to
24095 floating-point vector modes.
24096 (vector_nlt<mode>): New define_expand.
24097 (vector_nltu<mode>): Likewise.
24098 (vector_ngt<mode>): Likewise.
24099 (vector_ngtu<mode>): Likewise.
24101 2015-07-02 Segher Boessenkool <segher@kernel.crashing.org>
24103 PR rtl-optimization/66706
24104 * combine.c (make_compound_operation): If an AND of SUBREG of
24105 LSHIFTRT does not simplify, see if just the AND of SUBREG does.
24107 2015-07-02 Alan Lawrence <alan.lawrence@arm.com>
24109 * tree-pass.h (make_pass_ch_vect): New.
24110 * passes.def: Add pass_ch_vect just before pass_if_conversion.
24112 * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
24113 pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
24114 make_pass_ch_vect): New.
24115 (pass_ch): Extend ch_base.
24117 (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
24118 (ch_base::copy_headers): ...here.
24120 2015-07-02 Richard Biener <rguenther@suse.de>
24122 * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
24123 * fold-const.c (get_pointer_modulus_and_residue): Remove.
24124 (fold_binary_loc): Implement (T)ptr & CST in terms of
24125 get_pointer_alignment_1.
24126 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
24127 Make sure to build the alignment test on a SSA name without
24128 final alignment info valid only after the prologue.
24130 2015-07-02 Hans-Peter Nilsson <hp@axis.com>
24132 * config/cris/cris.md ("epilogue"): Remove condition.
24133 ("prologue"): Ditto.
24135 2015-07-02 Richard Biener <rguenther@suse.de>
24137 * tree-ssa-dom.c (build_and_record_new_cond): Add optional
24138 parameter to record a condition that is false.
24139 (record_conditions): When recording an extra NE_EXPR that is
24140 true also record a EQ_EXPR that is false.
24142 2015-07-02 Bin Cheng <bin.cheng@arm.com>
24144 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
24145 (tree_ssa_iv_optimize_init): Initialize iv_obstack.
24146 (alloc_iv): New parameter. Allocate struct iv using obstack_alloc.
24147 (set_iv, find_interesting_uses_address, add_candidate_1): New
24148 argument to alloc_iv.
24149 (find_interesting_uses_op, find_interesting_uses_cond): Don't
24150 duplicate struct iv.
24151 (free_loop_data): Don't free struct iv explicitly.
24152 (tree_ssa_iv_optimize_finalize): Free iv_obstack.
24154 2015-07-01 DJ Delorie <dj@redhat.com>
24156 * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
24158 (SUPPORTS_DISCRIMINATOR): Define.
24160 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
24163 * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
24164 there are no CALLs in the same pattern.
24166 2015-07-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
24168 PR rtl-optimization/61047
24169 * rtlanal.c (get_initial_register_offset): New function.
24170 (rtx_addr_can_trap_p_1): Check offsets of stack references.
24172 2015-07-01 Richard Biener <rguenther@suse.de>
24174 * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
24175 X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
24176 ~X CMP C -> X CMP' ~C to ...
24177 * match.pd: ... patterns here.
24179 2015-07-01 Nick Clifton <nickc@redhat.com>
24181 * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
24182 a 16-bit value into a 20-bit memory slot.
24184 2015-07-01 Jiong Wang <jiong.wang@arm.com>
24186 * doc/sourcebuild.texi (AArch64-specific attributes): Document
24187 "aarch64_tiny", "aarch64_small", "aarch64_large",
24188 "aarch64_little_endian", "aarch64_big_endian".
24190 2015-07-01 Jiong Wang <jiong.wang@arm.com>
24192 * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
24193 Document "aarch64_small_fpic".
24195 2015-07-01 Jiong Wang <jiong.wang@arm.com>
24197 * configure.ac: Add check for aarch64 assembler -fpic relocation
24199 * configure: Regenerate.
24200 * config.in: Regenerate.
24201 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
24202 to -fPIC if not support of -fpic relocation modifier in assembler.
24204 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
24207 * rtl.c (classify_insn): Handle returns in PARALLELs.
24209 2015-07-01 Eric Botcazou <ebotcazou@adacore.com>
24211 PR middle-end/66633
24212 * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
24213 to true if the function is nested and if not optimizing.
24214 (convert_local_omp_clauses): Initialize need_frame to true if the
24215 function contains nested functions and if not optimizing.
24217 2015-07-01 Richard Biener <rguenther@suse.de>
24219 * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
24220 (X & Y) ^ Y -> ~X & Y transforms to ...
24221 * match.pd: ... here.
24223 2015-07-01 Richard Biener <rguenther@suse.de>
24225 * genmatch.c (expr::gen_transform): Shortcut re-simplifying
24226 of converts to avoid uninteresting noise from the conversion
24227 simplifying patterns.
24229 2015-06-30 Sandra Loosemore <sandra@codesourcery.com>
24231 * config/c6x/c6x.c (try_rename_operands): Do not depend on
24232 gcc_assert evaluating its argument for side-effect.
24234 2015-06-30 Kaz Kojima <kkojima@gcc.gnu.org>
24237 * config/sh/sh.md (casesi_worker_1): Set length to 8 when
24240 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
24242 * lto-streamer-out.c (class DFS): Adjust hash_scc method.
24243 (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
24244 (hash_scc): Add this_ref_p and ref_p parameters and pass them
24245 to the inner DFS walk.
24247 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
24249 * target-insns.def (jump): New targetm instruction pattern.
24250 * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
24251 instead of gen_jump.
24252 (fix_up_crossing_landing_pad): Likewise.
24253 (add_labels_and_missing_jumps): Likewise.
24254 (fix_crossing_conditional_branches): Likewise.
24255 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
24256 (force_nonfallthru_and_redirect): Likewise.
24257 * cse.c (cse_insn): Likewise.
24258 * expmed.c (expand_divmod): Likewise.
24259 * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
24260 * haifa-sched.c (init_before_recovery): Likewise.
24261 (sched_create_recovery_edges): Likewise.
24262 * ifcvt.c (find_cond_trap): Likewise.
24263 * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
24264 (expand_float, expand_fix): Likewise.
24265 * stmt.c (emit_jump): Likewise.
24267 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
24269 * defaults.h (HAVE_load_multiple, gen_load_multiple)
24270 (HAVE_store_multiple, gen_store_multiple): Delete.
24271 * target-insns.def (load_multiple, store_multiple): New targetm
24272 instruction patterns.
24273 * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
24274 of HAVE_*/gen_* interface.
24276 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
24278 * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
24279 (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
24280 (gen_mem_signal_fence): Delete.
24281 * target-insns.def (mem_signal_fence, mem_thread_fence)
24282 (memory_barrier): New targetm instruction patterns.
24283 * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
24285 (expand_mem_signal_fence): Likewise.
24287 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
24289 * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
24290 * target-insns.def (epilogue, prologue, sibcall_prologue): New
24291 targetm instruction patterns.
24292 * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
24294 * calls.c (expand_call): Likewise.
24295 * cfgrtl.c (cfg_layout_finalize): Likewise.
24296 * df-scan.c (df_get_entry_block_def_set): Likewise.
24297 (df_get_exit_block_use_set): Likewise.
24298 * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
24299 * final.c (final_start_function): Likewise.
24300 * function.c (thread_prologue_and_epilogue_insns): Likewise.
24301 (reposition_prologue_and_epilogue_notes): Likewise.
24302 * reorg.c (find_end_label): Likewise.
24303 * toplev.c (process_options): Likewise.
24305 2015-06-30 David Malcolm <dmalcolm@redhat.com>
24307 * typed-splay-tree.h: New file.
24309 2015-06-30 Vladimir Makarov <vmakarov@redhat.com>
24312 * lra-int.h (lra_substitute_pseudo): Add a parameter.
24313 (lra_substitute_pseudo_within_insn): Ditto.
24314 * lra.c (lra_substitute_pseudo): Add a parameter. Simplify subreg
24316 (lra_substitute_pseudo_within_insn): Add a parameter. Transfer it
24317 to lra_substitute_pseudo.
24318 * lra-lives.c (process_bb_lives): Add an argument to
24319 lra_substitute_pseudo_within_insn call.
24320 * lra-constraints.c (inherit_reload_reg, split_reg): Add an
24321 argument to lra_substitute_pseudo and
24322 lra_substitute_pseudo_within_insn calls.
24323 (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
24325 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
24327 * configure: Regenerated.
24329 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
24331 * config.gcc: Support i[34567]86-*-elfiamcu target.
24332 * config/i386/iamcu.h: New.
24333 * config/i386/i386.opt: Add -miamcu.
24334 * doc/invoke.texi: Document -miamcu.
24335 * common/config/i386/i386-common.c (ix86_handle_option): Turn
24336 off x87/MMX/SSE/AVX codegen for -miamcu.
24337 * config/i386/i386-c.c (ix86_target_macros_internal): Define
24338 __iamcu/__iamcu__ for -miamcu.
24339 * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
24340 to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
24341 (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
24342 * config/i386/i386.c (ix86_option_override_internal): Ignore and
24343 warn -mregparm for Intel MCU. Turn on -mregparm=3 for Intel
24344 MCU by default. Default long double to 64-bit for Intel MCU.
24345 Turn on -freg-struct-return for Intel MCU. Issue an error when
24346 -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
24348 (function_arg_advance_32): Pass value whose size is no larger
24349 than 8 bytes in registers for Intel MCU.
24350 (function_arg_32): Likewise.
24351 (ix86_return_in_memory): Return value whose size is no larger
24352 than 8 bytes in registers for Intel MCU.
24353 (iamcu_alignment): New function.
24354 (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
24356 (ix86_local_alignment): Don't increase alignment for Intel MCU.
24357 (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
24360 2015-06-30 Marek Polacek <polacek@redhat.com>
24362 * match.pd (X - (X / Y) * Y): Use convert1 and convert2. Convert
24363 both operands of the resulting expression.
24365 * match.pd (~x | x): Don't use tree_nop_conversion_p. Build
24366 the final expression with the operand's type and then convert
24367 it to the type of the expression.
24369 2015-06-30 Richard Biener <rguenther@suse.de>
24371 * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
24372 ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
24373 (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
24374 * match.pd: ... to patterns here.
24376 2015-06-30 Richard Biener <rguenther@suse.de>
24378 PR tree-optimization/66704
24379 * tree-vect-data-refs.c (vect_setup_realignment): Use
24380 make_ssa_name for non-SSA name source.
24382 2015-06-30 Jakub Jelinek <jakub@redhat.com>
24384 PR middle-end/66702
24385 * omp-low.c (simd_clone_adjust): Handle addressable linear
24386 or uniform parameters or non-gimple type uniform parameters.
24388 2015-06-30 Richard Biener <rguenther@suse.de>
24390 * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
24391 ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
24392 ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
24393 * match.pd: ... here.
24394 Add a few cases of A - B -> A + (-B) when B "easily" negates.
24395 Move (x & y) | x -> x and friends before
24396 (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
24398 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
24400 * config/sparc/leon.md (leon_load): Enable for all LEON variants if
24401 -mfix-ut699 is not specified.
24402 (leon3_load): Rename into...
24403 (ut699_load): ...this. Enable for all LEON variants if -mfix-ut699
24406 2015-06-30 Marek Polacek <polacek@redhat.com>
24408 * fold-const.c (fold_binary_loc): Move ~X | X folding ...
24409 * match.pd: ... here.
24411 2015-06-30 Richard Biener <rguenther@suse.de>
24413 * target-insns.def (canonicalize_funcptr_for_compare): Add.
24414 * fold-const.c (build_range_check): Replace uses of
24415 HAVE_canonicalize_funcptr_for_compare.
24416 (fold_widened_comparison): Likewise.
24417 (fold_sign_changed_comparison): Likewise.
24418 * dojump.c: Include "target.h".
24419 (do_compare_and_jump): Replace uses of
24420 HAVE_canonicalize_funcptr_for_compare and
24421 gen_canonicalize_funcptr_for_compare.
24422 * expr.c (do_store_flag): Likewise.
24424 2015-06-30 Tom de Vries <tom@codesourcery.com>
24426 PR tree-optimization/66652
24427 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
24428 max_loop_iterations to determine if nit + 1 overflows.
24430 2015-06-30 Richard Biener <rguenther@suse.de>
24432 * tree-vrp.c (register_edge_assert_for_2): Also register
24433 asserts for dominating conversion results.
24435 2015-06-30 Bin Cheng <bin.cheng@arm.com>
24437 * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
24438 field in struct iv.
24440 2015-06-29 Jack Howarth <howarth.at.gcc@gmail.com>
24443 * configure.ac: Fix filds and fildq test for 64-bit.
24444 * configure: Regenerated.
24446 2015-06-29 Nathan Sidwell <nathan@codesourcery.com>
24448 * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
24449 (nvptx_reorg): Here. Keep the non-subreg pieces.
24451 2015-06-29 H.J. Lu <hongjiu.lu@intel.com>
24453 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
24454 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
24456 2015-06-29 Uros Bizjak <ubizjak@gmail.com>
24458 * config/i386/i386.md (*jcc_1): Use %! in asm template.
24459 Set attribute "length_nobnd" instead of "length".
24462 (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
24464 2015-06-29 Sandra Loosemore <sandra@codesourcery.com>
24466 * config/nios2/nios2.c (nios2_delegitimize_address): Make
24467 assert less restrictive.
24469 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
24472 * cgraphunit.c (cgraph_node::finalize_function): Do not call
24473 do_warn_unused_parameter.
24474 * function.c (do_warn_unused_parameter): Move from here.
24475 * function.h (do_warn_unused_parameter): Do not declare.
24477 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
24480 * gcc.target/arm/armv-sync-comp-swap.c: New.
24481 * gcc.target/arm/armv-sync-op-acquire.c: New.
24482 * gcc.target/arm/armv-sync-op-full.c: New.
24483 * gcc.target/arm/armv-sync-op-release.c: New.
24485 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
24488 * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
24489 initial acquire barrier with final barrier.
24491 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
24494 * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
24495 initial acquire barrier with final barrier.
24497 2015-06-29 Richard Henderson <rth@redhat.com>
24499 * config/i386/constraints.md (Bf): New constraint.
24500 * config/i386/i386-c.c (ix86_target_macros): Define
24501 __GCC_ASM_FLAG_OUTPUTS__.
24502 * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
24504 * doc/extend.texi (FlagOutputOperands): Document them.
24506 2015-06-29 Jiong Wang <jiong.wang@arm.com>
24508 * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
24509 * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
24511 (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
24512 * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
24513 SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
24514 (aarch64_symbol_context): Ditto.
24515 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
24516 and use new pattern name.
24517 (aarch64_expand_mov_immediate): Ditto.
24518 (aarch64_print_operand): Ditto.
24519 (aarch64_classify_tls_symbol): Ditto.
24521 2015-06-29 Marek Polacek <polacek@redhat.com>
24522 Marc Glisse <marc.glisse@inria.fr>
24524 * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
24525 * match.pd: ... pattern here.
24527 2015-06-29 Tom de Vries <tom@codesourcery.com>
24529 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
24530 function structure.
24532 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
24534 * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
24535 feature description, split out the native option, add a link to
24536 the feature documentation, rearrange and slightly rewrite text.
24537 (Aarch64 options, -mcpu): Likewise.
24538 (Aarch64 options, Feature Modifiers): Add an anchor. Mention
24539 +rdma implies Adv. SIMD.
24541 2015-06-29 Marek Polacek <polacek@redhat.com>
24544 * function.c (stack_protect_epilogue): Remove a cast to int.
24545 * doc/invoke.texi: Update -Wswitch-bool description.
24547 2015-06-29 Richard Biener <rguenther@suse.de>
24549 * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
24550 * fold-const.c (fold_binary_loc): Move &A - &B simplification
24551 via ptr_difference_const ...
24552 * match.pd: ... here.
24553 When matching (X ^ Y) == Y also match with swapped operands.
24555 2015-06-29 Richard Biener <rguenther@suse.de>
24557 * lto-streamer.h (LTO_major_version): Bump to 5.
24559 2015-06-29 Richard Biener <rguenther@suse.de>
24561 PR tree-optimization/66677
24562 * tree-vect-stmts.c (vect_transform_stmt): Make assert about
24563 STMT_VINFO_VEC_STMT clobbering less strict.
24565 2015-06-29 Kugan Vivekanandarajah <kuganv@linaro.org>
24567 PR middle-end/64130
24568 * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
24569 division, compute max and min when value ranges for dividend and
24570 divisor are available.
24572 2015-06-28 Chung-Lin Tang <cltang@codesourcery.com>
24573 Sandra Loosemore <sandra@codesourcery.com>
24575 * regrename.h (regrename_do_replace): Change to return bool.
24576 * regrename.c (rename_chains): Check return value of
24577 regname_do_replace.
24578 (regrename_do_replace): Re-validate the modified insns and
24579 return bool status.
24580 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
24581 Update to match rename_chains changes.
24582 * config/c6x/c6x.c (try_rename_operands): Assert that
24583 regrename_do_replace returns true.
24585 2015-06-28 Uros Bizjak <ubizjak@gmail.com>
24587 * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
24588 operand 2 here. Use copy_addr_to_reg to copy non-index
24589 register operand 2 to a temporary.
24590 (<mode>_stx): Ditto for operand 1.
24591 (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
24592 * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
24593 (ix86_store_bounds): Ditto.
24595 2015-06-27 Patrick Palka <ppalka@gcc.gnu.org>
24597 * print-tree.c (print_node) [TREE_VEC]: Print its length.
24599 2015-06-26 Andrew MacLeod <amacleod@redhat.com>
24601 * gimple.c (gimple_call_set_fndecl): Remove.
24602 * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
24603 build1_loc directly instead of build_fold_addr_expr_loc.
24605 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
24607 * hash-map.h (hash_map::traverse): Use the definition of the
24608 Key typedef rather than the typedef itself.
24610 2015-06-26 Martin Jambor <mjambor@suse.cz>
24613 * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
24614 NULL instead of calling dump_enabled_p.
24616 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
24618 * config/aarch64/aarch64.opt: (override): New.
24619 * doc/invoke.texi (override): Document.
24620 * config/aarch64/aarch64.c (aarch64_flag_desc): New
24621 (aarch64_fusible_pairs): Likewise.
24622 (aarch64_tuning_flags): Likewise.
24623 (aarch64_tuning_override_function): Likewise.
24624 (aarch64_tuning_override_functions): Likewise.
24625 (aarch64_parse_one_option_token): Likewise.
24626 (aarch64_parse_boolean_options): Likewise.
24627 (aarch64_parse_fuse_string): Likewise.
24628 (aarch64_parse_tune_string): Likewise.
24629 (aarch64_parse_one_override_token): Likewise.
24630 (aarch64_parse_override_string): Likewise.
24631 (aarch64_override_options): Parse the -override string if it
24634 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
24636 * config/aarch64/aarch64-protos.h (tune_params): Remove
24637 const from members.
24638 (aarch64_tune_params): Remove const, change to no longer be
24640 * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
24641 change to no longer be a pointer, initialize to generic_tunings.
24642 (aarch64_min_divisions_for_recip_mul): Change dereference of
24643 aarch64_tune_params to member access.
24644 (aarch64_reassociation_width): Likewise.
24645 (aarch64_rtx_mult_cost): Likewise.
24646 (aarch64_address_cost): Likewise.
24647 (aarch64_branch_cost): Likewise.
24648 (aarch64_rtx_costs): Likewise.
24649 (aarch64_register_move_cost): Likewise.
24650 (aarch64_memory_move_cost): Likewise.
24651 (aarch64_sched_issue_rate): Likewise.
24652 (aarch64_builtin_vectorization_cost): Likewise.
24653 (aarch64_override_options): Take a copy of the selected tuning
24654 struct in to aarch64_tune_params, rather than just setting
24655 a pointer, change dereferences of aarch64_tune_params to member
24657 (aarch64_override_options_after_change): Change dereferences of
24658 aarch64_tune_params to member access.
24659 (aarch64_macro_fusion_p): Likewise.
24660 (aarch_macro_fusion_pair_p): Likewise.
24661 * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
24663 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
24665 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
24666 (aarch64_tune_flags): Likewise.
24667 (AARCH64_TUNE_FMA_STEERING): Likewise.
24668 * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
24669 to AARCH64_FL_USE_FMA_STEERING_PASS.
24670 (cortex-a57.cortex-a53): Likewise.
24671 (cortex-a72): Use cortexa72_tunings.
24672 (cortex-a72.cortex-a53): Likewise.
24673 (exynos-m1): Likewise.
24674 * config/aarch64/aarch64-protos.h (tune_params): Add
24675 a field: extra_tuning_flags.
24676 * config/aarch64/aarch64-tuning-flags.def: New.
24677 * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
24678 (aarch64_extra_tuning_flags): Likewise.
24679 (aarch64_tune_params): Declare here.
24680 * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
24681 (cortexa53_tunings): Likewise.
24682 (cortexa57_tunings): Likewise.
24683 (thunderx_tunings): Likewise.
24684 (xgene1_tunings): Likewise.
24685 (cortexa72_tunings): New.
24686 * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
24687 (gate): Check against aarch64_tune_params.
24688 * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
24691 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
24693 * config/aarch64/aarch64-fusion-pairs.def: New.
24694 * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
24695 * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
24696 aarch64_fusion_pairs.
24697 (AARCH64_FUSE_MOV_MOVK): Likewise.
24698 (AARCH64_FUSE_ADRP_ADD): Likewise.
24699 (AARCH64_FUSE_MOVK_MOVK): Likewise.
24700 (AARCH64_FUSE_ADRP_LDR): Likewise.
24701 (AARCH64_FUSE_CMP_BRANCH): Likewise.
24703 2015-06-26 Jiong Wang <jiong.wang@arm.com>
24705 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
24706 SYMBOL_SMALL_GOT_28K.
24707 * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
24708 relocation modifiers.
24709 (unspec): New enum "UNSPEC_GOTMALLPIC28K.
24710 (ldr_got_small_28k_<mode>): New.
24711 (ldr_got_small_28k_sidi): New.
24712 * config/aarch64/iterators.md (got_modifier): New mode iterator.
24713 * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
24714 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
24715 SYMBOL_SMALL_GOT_28K.
24716 (aarch64_rtx_costs): Add costs for new instruction sequences.
24717 (initialize_aarch64_code_model): Initialize new model.
24718 (aarch64_classify_symbol): Recognize new model and new symbol classification.
24719 (aarch64_asm_preferred_eh_data_format): Support new model.
24720 (aarch64_load_symref_appropriately): Generate new instruction
24721 sequences for -fpic.
24722 (TARGET_USE_PSEUDO_PIC_REG): New definition.
24723 (aarch64_use_pseudo_pic_reg): New function.
24725 2015-06-26 Jiong Wang <jiong.wang@arm.com>
24727 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
24728 SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
24729 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
24730 (aarch64_expand_mov_immediate): Ditto.
24731 (aarch64_print_operand): Ditto.
24732 (aarch64_classify_symbol): Ditto.
24734 2015-06-26 Nathan Sidwell <nathan@codesourcery.com>
24736 * config/nvptx/nvptx.md (call_operation): Remove unused variables.
24738 2015-06-26 Bin Cheng <bin.cheng@arm.com>
24741 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
24742 assertion failed. Remove assertion itself.
24744 2015-06-26 Richard Biener <rguenther@suse.de>
24746 * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
24747 and -A CMP CST -> A CMP -CST which is redundant with a pattern
24749 Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
24750 (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
24751 (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
24752 * match.pd: ... patterns here.
24754 2015-06-26 Marek Polacek <polacek@redhat.com>
24756 * match.pd ((x | y) & ~(x & y) -> x ^ y,
24757 (x | y) & (~x ^ y) -> x & y): New patterns.
24759 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
24761 * rtl.h (emit): Add an optional boolean parameter to control
24762 whether barriers are emitted.
24763 * emit-rtl.c (emit): Likewise.
24764 * gensupport.c (get_emit_function): Return null rather than "emit".
24765 * genemit.c (gen_emit_seq): Handle the null return value.
24766 Don't emit barriers after the final instruction in the sequence.
24767 * gentarget-def.c (main): Don't emit barriers after the instruction.
24769 2015-06-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24771 * config/arm/arm.c (arm_output_multireg_pop): Fix use of
24772 TARGET_UNIFIED_ASM.
24774 2015-06-26 Richard Biener <rguenther@suse.de>
24776 * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
24778 2015-06-26 Richard Biener <rguenther@suse.de>
24780 * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
24781 irrespective on whether the inner operation has a single use
24782 of both off are constant.
24784 2015-06-26 Uros Bizjak <ubizjak@gmail.com>
24785 Segher Boessenkool <segher@kernel.crashing.org>
24788 * config/i386/i386.md (various splitters): Use shallow_copy_rtx
24789 before doing PUT_MODE or PUT_CODE on operands to avoid
24790 in-place RTX modification.
24792 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
24794 * gentarget-def.c (def_target_insn): Cast return of strtol to
24797 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
24799 * gimple.h (gimple_call_set_fn): Move inline function.
24800 * gimple.c (gimple_call_set_fn): Relocate here.
24802 2015-06-25 Oleg Endo <olegendo@gcc.gnu.org>
24806 * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
24807 the replacement insn will work.
24809 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
24811 * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
24814 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
24816 * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
24817 * cgraph.h: Include ipa-ref.h and plugin-api.h.
24818 (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
24819 (symtab_node::address_can_be_compared_p): Move function.
24820 * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
24822 * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
24823 * auto-profile.c: Likewise.
24824 * bb-reorder.c: Likewise.
24825 * builtins.c: Likewise.
24826 * calls.c: Likewise.
24827 * cfgexpand.c: Likewise.
24828 * cgraphbuild.c: Likewise.
24829 * cgraphclones.c: Likewise.
24830 * cgraphunit.c: Likewise.
24831 * combine.c: Likewise.
24832 * coverage.c: Likewise.
24833 * data-streamer-in.c: Likewise.
24834 * data-streamer-out.c: Likewise.
24835 * data-streamer.c: Likewise.
24836 * dbxout.c: Likewise.
24837 * dwarf2out.c: Likewise.
24838 * except.c: Likewise.
24839 * expr.c: Likewise.
24840 * final.c: Likewise.
24841 * fold-const.c: Likewise.
24842 * ggc-page.c: Likewise.
24843 * gimple-fold.c: Likewise.
24844 * gimple-iterator.c: Likewise.
24845 * gimple-pretty-print.c: Likewise.
24846 * gimple-streamer-in.c: Likewise.
24847 * gimple-streamer-out.c: Likewise.
24848 * gimple.c: Likewise.
24849 * gimplify.c: Likewise.
24850 * ipa-chkp.c: Likewise.
24851 * ipa-comdats.c: Likewise.
24852 * ipa-cp.c: Likewise.
24853 * ipa-devirt.c: Likewise.
24854 * ipa-icf-gimple.c: Likewise.
24855 * ipa-icf.c: Likewise.
24856 * ipa-inline-analysis.c: Likewise.
24857 * ipa-inline-transform.c: Likewise.
24858 * ipa-inline.c: Likewise.
24859 * ipa-polymorphic-call.c: Likewise.
24860 * ipa-profile.c: Likewise.
24861 * ipa-prop.c: Likewise.
24862 * ipa-pure-const.c: Likewise.
24863 * ipa-ref.c: Likewise.
24864 * ipa-reference.c: Likewise.
24865 * ipa-split.c: Likewise.
24866 * ipa-utils.c: Likewise.
24867 * ipa-visibility.c: Likewise.
24869 * langhooks.c: Likewise.
24870 * lto-cgraph.c: Likewise.
24871 * lto-compress.c: Likewise.
24872 * lto-opts.c: Likewise.
24873 * lto-section-in.c: Likewise.
24874 * lto-section-out.c: Likewise.
24875 * lto-streamer-in.c: Likewise.
24876 * lto-streamer-out.c: Likewise.
24877 * lto-streamer.c: Likewise.
24878 * omp-low.c: Likewise.
24879 * opts-global.c: Likewise.
24880 * passes.c: Likewise.
24881 * predict.c: Likewise.
24882 * print-tree.c: Likewise.
24883 * profile.c: Likewise.
24885 * sanopt.c: Likewise.
24886 * stor-layout.c: Likewise.
24887 * symtab.c: Likewise.
24888 * toplev.c: Likewise.
24889 * trans-mem.c: Likewise.
24890 * tree-cfg.c: Likewise.
24891 * tree-chkp.c: Likewise.
24892 * tree-eh.c: Likewise.
24893 * tree-emutls.c: Likewise.
24894 * tree-inline.c: Likewise.
24895 * tree-nested.c: Likewise.
24896 * tree-parloops.c: Likewise.
24897 * tree-pretty-print.c: Likewise.
24898 * tree-profile.c: Likewise.
24899 * tree-sra.c: Likewise.
24900 * tree-ssa-alias.c: Likewise.
24901 * tree-ssa-live.c: Likewise.
24902 * tree-ssa-loop-ivcanon.c: Likewise.
24903 * tree-ssa-loop-ivopts.c: Likewise.
24904 * tree-ssa-pre.c: Likewise.
24905 * tree-ssa-sccvn.c: Likewise.
24906 * tree-ssa-strlen.c: Likewise.
24907 * tree-ssa-structalias.c: Likewise.
24908 * tree-streamer-in.c: Likewise.
24909 * tree-streamer-out.c: Likewise.
24910 * tree-streamer.c: Likewise.
24911 * tree-switch-conversion.c: Likewise.
24912 * tree-tailcall.c: Likewise.
24913 * tree-vect-data-refs.c: Likewise.
24914 * tree-vect-stmts.c: Likewise.
24915 * tree-vectorizer.c: Likewise.
24916 * tree.c: Likewise.
24917 * tsan.c: Likewise.
24918 * ubsan.c: Likewise.
24919 * value-prof.c: Likewise.
24920 * varasm.c: Likewise.
24921 * varpool.c: Likewise.
24922 * config/arm/arm.c: Likewise.
24923 * config/bfin/bfin.c: Likewise.
24924 * config/c6x/c6x.c: Likewise.
24925 * config/cris/cris.c: Likewise.
24926 * config/darwin-c.c: Likewise.
24927 * config/darwin.c: Likewise.
24928 * config/i386/i386.c: Likewise.
24929 * config/i386/winnt.c: Likewise.
24930 * config/microblaze/microblaze.c: Likewise.
24931 * config/mips/mips.c: Likewise.
24932 * config/rs6000/rs6000.c: Likewise.
24933 * config/rx/rx.c: Likewise.
24934 * config/s390/s390.c: Likewise.
24935 * config/tilegx/mul-tables.c: Likewise.
24937 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24939 * config/aarch64/aarch64.c, config/alpha/alpha.c,
24940 config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
24941 config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
24942 config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
24943 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
24944 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
24945 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
24946 config/microblaze/microblaze.c, config/mips/mips.c,
24947 config/mmix/mmix.c, config/mn10300/mn10300.c,
24948 config/moxie/moxie.c, config/msp430/msp430.c,
24949 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
24950 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
24951 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
24952 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
24953 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
24954 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
24955 config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
24956 target-def.h include.
24957 * config/ft32/ft32.c: Likewise. Fix misapplied hunk.
24959 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24961 * Makefile.in (TARGET_DEF): Add target-insns.def.
24962 (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
24963 (build/gentarget-def.o): New rule.
24964 (genprogrtl): Add target-def.
24965 * target-insns.def, gentarget-def.c: New files.
24966 * target.def: Add targetm.have_* and targetm.gen_* hooks,
24967 based on the contents of target-insns.def.
24968 * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
24969 (HAVE_return, gen_return): Delete.
24970 * target-def.h: Include insn-target-def.h.
24971 * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
24972 instead of direct calls. Rely on them to do the appropriate assertions.
24973 * function.c (gen_return_pattern): Likewise. Return an rtx_insn *.
24974 (convert_jumps_to_returns): Use targetm interface instead of
24976 (thread_prologue_and_epilogue_insns): Likewise.
24977 * reorg.c (find_end_label, dbr_schedule): Likewise.
24978 * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
24979 * shrink-wrap.c (convert_to_simple_return): Likewise.
24980 (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
24982 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24984 * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
24985 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
24986 config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
24987 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
24988 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
24989 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
24990 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
24991 config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
24992 config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
24993 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
24994 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
24995 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
24996 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
24997 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
24998 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
24999 config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
25002 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
25004 * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
25005 (unbounded_int_hashmap_traits::key_type): Likewise.
25006 * hash-map.h (hash_map): Get the key type from the traits.
25007 * hash-traits.h (default_hash_traits): By default, inherit from the
25008 template parameter.
25009 * alias.c (alias_set_traits): Delete.
25010 (alias_set_entry_d::children): Use alias_set_hash as the first
25011 template parameter.
25012 (record_alias_subset): Update accordingly.
25013 * except.c (tree_hash_traits): Delete.
25014 (type_to_runtime_map): Use tree_hash as the first template parameter.
25015 (init_eh): Update accordingly.
25016 * genmatch.c (capture_id_map_hasher): Delete.
25017 (cid_map_t): Use nofree_string_hash as first template parameter.
25018 * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
25019 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
25020 Use symbol_compare_hash as the first template parameter in
25021 subdivide_hash_map.
25022 * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
25023 (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
25024 template parameter.
25025 * passes.c (pass_registry_hasher): Delete.
25026 (name_to_pass_map): Use nofree_string_hash as the first template
25028 (register_pass_name): Update accordingly.
25029 * sanopt.c (sanopt_tree_map_traits): Delete.
25030 (sanopt_tree_triplet_map_traits): Delete.
25031 (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
25032 template parameter.
25033 (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
25034 the first template parameter.
25035 * sese.c (rename_map_hasher): Delete.
25036 (rename_map_type): Use tree_ssa_name_hash as the first template
25038 * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
25039 (function_summary::m_map): Use map_hash as the first template
25041 (function_summary::release): Update accordingly.
25042 * tree-if-conv.c (phi_args_hash_traits): Delete.
25043 (predicate_scalar_phi): Use tree_operand_hash as the first template
25044 parameter to phi_arg_map.
25045 * tree-inline.h (dependence_hasher): Delete.
25046 (copy_body_data::dependence_map): Use dependence_hash as the first
25047 template parameter.
25048 * tree-inline.c (remap_dependence_clique): Update accordingly.
25049 * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
25050 (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
25052 (addr_stridxptr): Update accordingly.
25053 * value-prof.c (profile_id_traits): Delete.
25054 (cgraph_node_map): Use profile_id_hash as the first template
25056 (init_node_map): Update accordingly.
25057 * config/alpha/alpha.c (string_traits): Delete.
25058 (machine_function::links): Use nofree_string_hash as the first
25059 template parameter.
25060 (alpha_use_linkage, alpha_write_linkage): Update accordingly.
25061 * config/m32c/m32c.c (pragma_traits): Delete.
25062 (pragma_htab): Use nofree_string_hash as the first template parameter.
25063 (m32c_note_pragma_address): Update accordingly.
25064 * config/mep/mep.c (pragma_traits): Delete.
25065 (pragma_htab): Use nofree_string_hash as the first template parameter.
25066 (mep_note_pragma_flag): Update accordingly.
25067 * config/mips/mips.c (mips16_flip_traits): Delete.
25068 (mflip_mips16_htab): Use nofree_string_hash as the first template
25070 (mflip_mips16_use_mips16_p): Update accordingly.
25071 (local_alias_traits): Delete.
25072 (mips16_local_aliases): Use nofree_string_hash as the first template
25074 (mips16_local_alias): Update accordingly.
25076 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
25078 * hash-map-traits.h (default_hashmap_traits): Delete.
25080 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
25082 * hash-map-traits.h (unbounded_hashmap_traits): New class.
25083 (unbounded_int_hashmap_traits): Likewise.
25084 * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
25086 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
25088 * ipa-icf.h (symbol_compare_hash): New class.
25089 (symbol_compare_hashmap_traits): Use it.
25090 * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
25091 (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
25092 (mem_alloc_description::reverse_mem_map_t): Remove redundant
25093 default_hashmap_traits.
25094 * sanopt.c (sanopt_tree_triplet_hash): New class.
25095 (sanopt_tree_triplet_map_traits): Use it.
25097 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
25099 * gengtype-parse.c (require_template_declaration): Allow '+' in
25100 template parameters. Consolidate cases.
25101 * hash-traits.h (int_hash): New class.
25102 * alias.c (alias_set_hash): New structure.
25103 (alias_set_traits): Use it.
25104 * symbol-summary.h (function_summary::map_hash): New class.
25105 (function_summary::summary_hashmap_traits): Use it.
25106 * tree-inline.h (dependence_hash): New class.
25107 (dependence_hasher): Use it.
25108 * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
25109 * value-prof.c (profile_id_hash): New class.
25110 (profile_id_traits): Use it.
25112 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
25114 * config/mips/mips.c (mips16_flip_traits): Use it.
25115 (local_alias_traits, mips16_local_aliases): Convert from a map of
25116 rtxes to a map of symbol names.
25117 (mips16_local_alias): Update accordingly.
25119 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
25121 * hash-traits.h (string_hash, nofree_string_hash): New classes.
25122 * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
25123 * passes.c (pass_registry_hasher): Likewise.
25124 * config/alpha/alpha.c (string_traits): Likewise.
25125 * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
25126 * config/m32c/m32c.c (pragma_traits): Likewise.
25127 * config/mep/mep.c (pragma_traits): Likewise.
25129 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
25131 * tree-hash-traits.h (tree_hash): New class.
25132 * except.c: Include tree-hash-traits.h.
25133 (tree_hash_traits): Use tree_hash.
25135 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
25137 * tree-hash-traits.h (tree_ssa_name_hasher): New class.
25138 * sese.c: Include tree-hash-traits.h.
25139 (rename_map_hasher): Use tree_ssa_name_hasher.
25141 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
25143 * tree-hash-traits.h (tree_decl_hash): New class.
25144 * tree-ssa-strlen.c: Include tree-hash-traits.h.
25145 (stridxlist_hash_traits): Use tree_decl_hash.
25147 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
25149 * tree-hash-traits.h: New file.
25150 (tree_operand_hash): New class.
25151 * sanopt.c: Include tree-hash-traits.h.
25152 (sanopt_tree_map_traits): Use tree_operand_hash.
25153 * tree-if-conv.c: Include tree-hash-traits.h.
25154 (phi_args_hash_traits): Use tree_operand_hash.
25155 * tree-ssa-uncprop.c: Include tree-hash-traits.h.
25156 (val_ssa_equiv_hash_traits): Use tree_operand_hash.
25158 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
25160 * hash-map-traits.h: Include hash-traits.h.
25161 (simple_hashmap_traits): New class.
25162 * mem-stats.h (hash_map): Change the default traits to
25163 simple_hashmap_traits<default_hash_traits<Key> >.
25165 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
25167 * hash-table.h: Update comments.
25169 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
25171 * hash-traits.h (default_hash_traits): New structure.
25172 * hash-set.h (default_hashset_traits): Delete.
25173 (hash_set): Use default_hash_traits<Key> instead of
25174 default_hashset_traits. Delete hash_entry type and use Key directly.
25175 * ipa-devirt.c (pair_traits): Delete.
25176 (default_hash_traits <type_pair>): Override.
25177 (odr_subtypes_equivalent_p): Remove pair_types template parameter.
25178 (odr_types_equivalent_p, add_type_duplicate): Likewise.
25180 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
25182 * hash-traits.h (typed_noop_remove): Don't require a pointer type.
25184 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
25186 * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
25187 (has_is_empty, is_empty_helper): Delete.
25188 (has_mark_deleted, mark_deleted_helper): Delete.
25189 (has_mark_empty, mark_empty_helper): Delete.
25190 (hash_table::is_deleted): Call the Descriptor unconditionally.
25191 (hash_table::is_empty): Likewise.
25192 (hash_table::mark_deleted): Likewise.
25193 (hash_table::mark_empty): Likewise.
25195 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
25197 * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash. Remove
25198 redundant typedefs and members.
25199 * coverage.c (counts_entry): Inherit from pointer_hash. Remove
25200 redundant typedefs.
25201 * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
25202 * ipa-devirt.c (odr_name_hasher): Likewise.
25203 (polymorphic_call_target_hasher): Likewise.
25204 * ira-costs.c (cost_classes_hasher): Likewise.
25205 * statistics.c (stats_counter_hasher): Likewise.
25206 * trans-mem.c (log_entry_hasher): Likewise.
25207 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
25208 * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
25209 * tree-ssa-tail-merge.c (same_succ_def): Likewise.
25210 * var-tracking.c (variable_hasher): Likewise.
25211 * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
25212 Remove redundant typedefs and members.
25214 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
25216 * hash-traits.h (ggc_cache_hasher): Rename to...
25217 (ggc_cache_remove): ...this and remove typedefs.
25218 (ggc_cache_ptr_hash): New class.
25219 * hash-table.h: Update commentary.
25220 * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
25221 rather than ggc_cache_hasher.
25222 (const_wide_int_hasher, reg_attr_hasher): Likewise.
25223 (const_double_hasher, const_fixed_hasher): Likewise.
25224 * function.c (insn_cache_hasher): Likewise.
25225 * trans-mem.c (tm_wrapper_hasher): Likewise.
25226 * tree.h (tree_decl_map_cache_hasher): Likewise.
25227 * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
25228 (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
25229 * ubsan.c (tree_type_map_cache_hasher): Likewise.
25230 * varasm.c (tm_clone_hasher): Likewise.
25231 * config/i386/i386.c (dllimport_hasher): Likewise.
25232 * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
25233 (tree_hasher): Likewise.
25235 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
25237 * hash-traits.h (ggc_hasher): Rename to...
25238 (ggc_remover): ...this and remove typedefs.
25239 (ggc_cache_hasher): Update accordingly. Add typedefs.
25240 (ggc_ptr_hash): New class.
25241 * hash-table.h: Update comment.
25242 * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
25244 * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
25245 (tree_descriptor_hasher): Likewise.
25246 * cgraph.c (function_version_hasher): Likewise.
25247 * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
25248 (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
25249 (dw_loc_list_hasher, addr_hasher): Likewise.
25250 * function.h (used_type_hasher): Likewise.
25251 * function.c (temp_address_hasher): Likewise.
25252 * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
25253 * libfuncs.h (libfunc_hasher): Likewise.
25254 * lto-streamer.h (decl_state_hasher): Likewise.
25255 * optabs.c (libfunc_decl_hasher): Likewise.
25256 * tree-scalar-evolution.c (scev_info_hasher): Likewise.
25257 * varasm.c (section_hasher, object_block_hasher): Likewise.
25258 (const_rtx_desc_hasher): Likewise.
25259 * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
25260 * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
25262 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
25264 * hash-traits.h (free_ptr_hash): New class.
25265 * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
25266 rather than typed_free_remove. Remove redudant typedefs.
25267 (external_ref_hasher): Likewise.
25268 * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
25269 (ehspec_hasher): Likewise.
25270 * ggc-common.c (saving_hasher): Likewise.
25271 * gimplify.c (gimplify_hasher): Likewise.
25272 * haifa-sched.c (delay_i2_hasher): Likewise.
25273 * loop-invariant.c (invariant_expr_hasher): Likewise.
25274 * loop-iv.c (biv_entry_hasher): Likewise.
25275 * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
25276 * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
25277 * tree-cfg.c (locus_discrim_hasher): Likewise.
25278 * tree-eh.c (finally_tree_hasher): Likewise.
25279 * tree-into-ssa.c (var_info_hasher): Likewise.
25280 * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
25281 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
25282 * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
25283 * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
25284 * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
25285 * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
25286 (shared_bitmap_hasher): Likewise.
25287 * tree-ssa-threadupdate.c (redirection_data): Likewise.
25288 * tree-vectorizer.h (peel_info_hasher): Likewise.
25289 * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
25290 * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
25292 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
25294 * hash-table.h: Update comments.
25295 * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
25296 (nofree_ptr_hash): New class.
25297 * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
25298 than typed_noop_remove. Remove redudant typedefs.
25299 * attribs.c (attribute_hasher): Likewise.
25300 * cfg.c (bb_copy_hasher): Likewise.
25301 * cselib.c (cselib_hasher): Likewise.
25302 * dse.c (invariant_group_base_hasher): Likewise.
25303 * dwarf2cfi.c (trace_info_hasher): Likewise.
25304 * dwarf2out.c (macinfo_entry_hasher): Likewise.
25305 (comdat_type_hasher, loc_list_hasher): Likewise.
25306 * gcse.c (pre_ldst_expr_hasher): Likewise.
25307 * genmatch.c (id_base): Likewise.
25308 * genrecog.c (test_pattern_hasher): Likewise.
25309 * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
25310 * haifa-sched.c (delay_i1_hasher): Likewise.
25311 * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
25312 * ipa-icf.h (congruence_class_group_hash): Likewise.
25313 * ipa-profile.c (histogram_hash): Likewise.
25314 * ira-color.c (allocno_hard_regs_hasher): Likewise.
25315 * lto-streamer.h (string_slot_hasher): Likewise.
25316 * lto-streamer.c (tree_entry_hasher): Likewise.
25317 * plugin.c (event_hasher): Likewise.
25318 * postreload-gcse.c (expr_hasher): Likewise.
25319 * store-motion.c (st_expr_hasher): Likewise.
25320 * tree-sra.c (uid_decl_hasher): Likewise.
25321 * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
25322 (ssa_name_var_hash): Likewise.
25323 * tree-ssa-live.c (tree_int_map_hasher): Likewise.
25324 * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
25325 * tree-ssa-pre.c (pre_expr_d): Likewise.
25326 * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
25327 * vtable-verify.h (registration_hasher): Likewise.
25328 * vtable-verify.c (vtbl_map_hasher): Likewise.
25329 * config/arm/arm.c (libcall_hasher): Likewise.
25330 * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
25331 * config/ia64/ia64.c (bundle_state_hasher): Likewise.
25332 * config/sol2.c (comdat_entry_hasher): Likewise.
25333 * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
25334 (print_fold_checksum, fold_checksum_tree): Likewise.
25335 (debug_fold_checksum, fold_build1_stat_loc): Likewise.
25336 (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
25337 (fold_build_call_array_loc): Likewise.
25338 * tree-ssa-ccp.c (gimple_htab): Likewise.
25339 * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
25340 rather than pointer_type.
25342 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
25344 * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
25345 (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
25347 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
25349 * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
25350 (ggc_hasher::ggc_mx): Likewise.
25351 (ggc_cache_hasher): Inherit from ggc_hasher. Remove definitions
25352 that duplicate ggc_hasher ones.
25354 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
25356 * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
25357 (gt_cleare_cache): Check here for deleted and empty entries.
25358 Replace handle_cache_entry with a call to keep_cache_entry.
25359 * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
25360 (ggc_cache_hasher::keep_cache_entry): New function.
25361 * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
25362 (tm_wrapper_hasher::keep_cache_entry): New function.
25363 * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
25364 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
25365 * tree.c (type_cache_hasher::handle_cache_entry): Delete.
25366 (type_cache_hasher::keep_cache_entry): New function.
25367 (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
25368 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
25369 * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
25370 (tree_type_map_cache_hasher::keep_cache_entry): New function.
25371 * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
25372 (tm_clone_hasher::keep_cache_entry): New function.
25373 * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
25374 (dllimport_hasher::keep_cache_entry): New function.
25376 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
25378 * hash-table.h: Include hash-traits.h.
25379 (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
25380 (ggc_cache_hasher): Move to...
25381 * hash-traits.h: ...this new file.
25383 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
25385 * tree-core.h (struct tree_optimization_option): Make opts a pointer to
25386 struct cl_optimization.
25387 * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
25388 * tree.c (make_node_stat): Allocate cl_optimization struct.
25389 (copy_node_stat): Allocate and copy cl_optimization struct.
25391 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
25393 * function.h (struct incoming_args): Move struct.
25394 (pass_by_reference, reference_callee_copied): Remove prototypes.
25395 * emit-rtl.h (struct incoming_args): Relocate struct here.
25396 * calls.h (pass_by_reference, reference_callee_copied): Relocate
25398 * function.c (pass_by_reference, reference_callee_copied): Move.
25399 * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
25400 * cfgloop.h: Don't include tm.h or hard-reg-set.h.
25401 * ipa-chkp.c: Include calls.h.
25403 2015-06-25 Andrew Macleod <amacleod@redhat.com>
25405 * alias.h (alias_set_type): Move typedef.
25406 * coretypes.h (alias_set_type): Relocate typedef here.
25407 * rtl.h: Don't include alias.h.
25409 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
25411 * cgraph.h (cgraph_rtl_info): Move to rtl.h
25412 (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
25414 * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
25415 * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
25417 * calls.c: Include hard-reg-set.h before rtl.h.
25420 2015-06-25 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
25421 Vladimir Makarov <vmakarov@redhat.com>
25423 * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
25426 2015-06-25 Richard Biener <rguenther@suse.de>
25428 * fold-const.c (fold_binary_loc): Move simplification of
25429 (X <<>> C1) & C2 ...
25430 * match.pd: ... here.
25432 2015-06-25 Eric Botcazou <ebotcazou@adacore.com>
25434 * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
25436 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
25438 * match.pd: Add patterns for vec_conds between 1 and 0.
25440 2015-06-25 Richard Biener <rguenther@suse.de>
25442 * tree-vect-stmts.c (vectorizable_conversion): Do not set
25443 STMT_VINFO_VEC_STMT for SLP.
25444 (vectorizable_store): Likewise.
25445 (vectorizable_load): Likewise.
25446 (vect_transform_stmt): Catch SLP vectorization clobbering
25447 STMT_VINFO_VEC_STMT.
25449 2015-06-25 Richard Biener <rguenther@suse.de>
25451 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
25453 (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
25454 cleanup resulting dead code and parameters.
25455 (vect_transform_slp_perm_load): Adjust.
25457 2015-06-25 Nick Clifton <nickc@redhat.com>
25459 * config/bfin/bfin.c (bfin_expand_prologue): Set
25460 current_function_static_stack_size if flag_stack_usage_info is set.
25461 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
25462 * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
25463 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
25464 * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
25466 2015-06-25 Tom de Vries <tom@codesourcery.com>
25468 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
25469 comment that the generated IV is unsigned.
25471 2015-06-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25474 * config/arm/arm.c (arm_dbx_register_number): Return
25475 DWARF_FRAME_REGISTERS by default.
25477 2015-06-25 Tom de Vries <tom@codesourcery.com>
25479 * dominance.c (calculate_dominance_info): Fix verify_dominators call
25480 argument. Call verify_dominator when reusing dominator info.
25482 2015-06-24 Kaz Kojima <kkojima@gcc.gnu.org>
25485 * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
25486 an additional element of the unspec vector. Modify indices
25488 (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
25489 * config/sh/sh.c (prepare_move_operands): Pass incremented
25490 const_int to gen_GOTaddr2picreg.
25491 (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
25493 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
25495 * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
25496 Condition on TARGET_FLOAT.
25498 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
25500 * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
25503 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
25505 * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
25507 * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
25508 aarch64_err_no_fpadvsimd.
25510 * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
25511 (aarch64_layout_arg, aarch64_init_cumulative_args): Use
25512 aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
25513 (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
25514 Turn error into assert, test TARGET_FLOAT.
25515 (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
25518 2015-06-24 Aldy Hernandez <aldyh@redhat.com>
25521 * dwarf2out.c (gen_formal_parameter_die): Remove assert.
25523 2015-06-24 Ilya Enkovich <enkovich.gnu@gmail.com>
25525 * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
25527 2015-06-24 Renlin Li <renlin.li@arm.com>
25529 * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
25530 __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
25532 2015-06-24 Richard Biener <rguenther@suse.de>
25534 * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
25536 (lower_opt_convert): Support lowering of conditional view_convert.
25537 (parser::parse_operation): Likewise.
25538 (parser::parse_for): Likewise.
25540 2015-06-24 Renlin Li <renlin.li@arm.com>
25542 * varasm.c (emit_local): Use unsigned int for align variable.
25544 2015-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25547 * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
25548 for negative numbers.
25550 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25552 PR rtl-optimization/66306
25553 * reload.c (find_reloads): Swap the match_dup info for
25554 commutative operands.
25556 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25558 * config/s390/vx-builtins.md
25559 ("vec_scatter_element<mode>_<non_vec_int>")
25560 ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
25561 attribute with bhfgq.
25563 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25565 * config/s390/s390-builtins.def: Fix vpopct instruction comments.
25567 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25569 * config/s390/s390-builtin-types.def: Add flag to indicate the
25570 options under which the function type is needed.
25571 * config/s390/s390-builtins.def: Add flag to indicate the options
25572 under which the builtin is enabled.
25573 * config/s390/s390-builtins.h: Add flags parameter to macro
25575 (bflags_for_builtin): New function.
25576 (flags_for_builtin): Renamed to ...
25577 (opflags_for_builtin): ... this.
25578 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
25579 flags_for_builtin to bflags_for_builtin and
25580 flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
25581 * config/s390/s390.c: Add initialization of bflags_builtin and
25582 opflags_builtin arrays.
25583 Remove code for flags_builtin.
25584 (s390_init_builtins): Only create builtin function types if one of
25585 their flags is active.
25586 Only create builtins if all of their flags are active.
25587 (s390_expand_builtin): Rename flags_for_builtin to
25588 opflags_for_builtin.
25590 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25592 * config/s390/vecintrin.h: Remove internal builtins.
25594 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25596 * config/s390/s390.c (s390_secondary_reload): Fix check for
25597 GENERAL_REGS register class.
25599 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25601 * config/s390/s390.c (s390_support_vector_misalignment): Call
25602 default implementation for !TARGET_VX.
25604 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25606 * config/s390/s390.c (s390_legitimate_constant_p): Add
25609 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25611 * config/s390/s390.c (s390_vector_abi): New variable definition.
25612 (s390_check_type_for_vector_abi): New function.
25613 (TARGET_ASM_FILE_END): New macro definition.
25614 (s390_asm_file_end): New function.
25615 (s390_function_arg): Call s390_check_type_for_vector_abi.
25616 (s390_gimplify_va_arg): Likewise.
25617 * configure: Regenerate.
25618 * configure.ac: Check for .gnu_attribute Binutils feature.
25620 2015-06-23 Chen Gang <gang.chen.5i5j@gmail.com>
25623 * config/bfin/bfin.c (hwloop_optimize): Initialize
25624 JUMP_LABEL for newly created jump.
25626 2015-06-23 Tristan Gingold <gingold@adacore.com>
25628 * collect-utils.c (collect_wait): Unlink the response file here
25630 (do_wait): ...here.
25631 (utils_cleanup): ...and here.
25633 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
25635 * df-scan.c: Don't include target-def.h.
25636 * targhooks.c: Likewise.
25637 * config/arm/arm-c.c: Likewise.
25638 * config/i386/i386-c.c: Likewise.
25639 * config/nds32/nds32-cost.c: Likewise.
25640 * config/nds32/nds32-fp-as-gp.c: Likewise.
25641 * config/nds32/nds32-intrinsic.c: Likewise.
25642 * config/nds32/nds32-isr.c: Likewise.
25643 * config/nds32/nds32-md-auxiliary.c: Likewise.
25644 * config/nds32/nds32-memory-manipulation.c: Likewise.
25645 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
25646 * config/nds32/nds32-predicates.c: Likewise.
25648 2015-06-23 Richard Biener <rguenther@suse.de>
25650 PR tree-optimization/66636
25651 * tree-vect-stmts.c (vectorizable_store): Properly compute the
25652 def type for further defs for strided stores.
25654 2015-06-23 Nathan Sidwell <nathan@codesourcery.com>
25656 * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
25657 conditional selects.
25658 (setcc_int<mode>, setcc_float<mode>): Reformat.
25660 2015-06-23 Marek Polacek <polacek@redhat.com>
25662 * match.pd ((x + y) - (x | y) -> x & y,
25663 (x + y) - (x & y) -> x | y): New patterns.
25665 2015-06-23 Ludovic Courtès <ludo@gnu.org>
25668 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
25669 '-dynamic-linker' within %{!shared: ...}.
25671 2015-06-23 Uros Bizjak <ubizjak@gmail.com>
25674 * config/i386/predicates.md (addsub_vm_operator): New predicate.
25675 (addsub_vs_operator): Ditto.
25676 (addsub_vs_parallel): Ditto.
25677 * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
25678 (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
25679 Put minus RTX before plus and adjust vec_merge selector.
25680 (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
25681 (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
25682 (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
25683 (addsub vec_merge splitters): New combiner splitters.
25684 (addsub vec_select/vec_concat splitters): Ditto.
25686 2015-06-23 Bin Cheng <bin.cheng@arm.com>
25688 PR tree-optimization/66449
25689 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
25690 POINTER_PLUS_EXPR for pointers.
25692 2015-06-23 Alan Modra <amodra@gmail.com>
25694 * rtlanal.c (commutative_operand_precedence): Correct comments.
25695 * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
25696 declaration. Return an int. Distinguish REG,REG return from
25698 (struct simplify_plus_minus_op_data): Make local to function.
25699 (simplify_plus_minus): Don't set canonicalized if merely sorting
25700 registers. Avoid packing ops if nothing changes. White space fixes.
25702 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
25704 * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
25705 -fdump-ada-spec is passed but not if -fsyntax-only is.
25707 2015-06-22 Vladimir Makarov <vmakarov@redhat.com>
25710 * lra-lives.c (process_bb_lives): Check insn copying the same
25711 reload pseudo and don't create a copy for it.
25713 2015-06-22 Tom de Vries <tom@codesourcery.com>
25715 * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
25718 2015-06-22 Tom de Vries <tom@codesourcery.com>
25720 * builtins.def (DEF_GOMP_BUILTIN): Test
25721 'flag_tree_parallelize_loops > 1' instead of
25722 'flag_tree_parallelize_loops'. Test flag_cilkplus.
25724 2015-06-22 Tom de Vries <tom@codesourcery.com>
25726 * dominance.c (calculate_dominance_info): Verify dominators if
25729 2015-06-22 Marek Polacek <polacek@redhat.com>
25731 * match.pd ((x ^ y) ^ (x | y) -> x & y,
25732 (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
25733 (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
25734 (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
25736 2015-06-22 Uros Bizjak <ubizjak@gmail.com>
25739 * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
25740 cost of embedded comparison.
25742 2015-06-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25745 * config/rs6000/predicates.md (altivec_register_operand): Permit
25746 virtual stack registers.
25747 (vsx_register_operand): Likewise.
25748 (vfloat_operand): Likewise.
25749 (vint_operand): Likewise.
25750 (vlogical_operand): Likewise.
25752 2015-06-22 Richard Biener <rguenther@suse.de>
25754 * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
25755 and single_scalar_iteration_cost members.
25756 (LOOP_VINFO_SCALAR_ITERATION_COST): New.
25757 (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
25758 (vect_get_single_scalar_iteration_cost): Remove.
25759 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
25760 Use LOOP_VINFO_SCALAR_ITERATION_COST.
25761 * tree-vect-loop.c (destroy_loop_vec_info): Free
25763 (vect_get_single_scalar_iteration_cost): Compute result into
25764 LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
25765 LOOP_VINFO_SCALAR_ITERATION_COST. Make static.
25766 (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
25767 (vect_estimate_min_profitable_iters): Use them.
25769 2015-06-22 Christian Bruel <christian.bruel@st.com>
25772 * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
25773 (TARGET_INSERT_ATTRIBUTES): Define.
25774 (thumb_flipper): New var.
25775 * config/arm/arm.opt (-mflip-thumb): New switch.
25777 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
25778 Martin Liska <mliska@suse.cz>
25781 * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
25782 construction of arg_types.
25783 (sem_function::sem_function): Likewise.
25784 (sem_function::~sem_function): Remove destruction of arg_types.
25785 (sem_function::compatible_parm_types_p): New function.
25786 (sem_function::equals_wpa): Reorg matching of return values
25787 and parameter types.
25788 (sem_function::equals_private): Reorg mathcing of argument types.
25789 (sem_function::parse_tree_args): Remove.
25790 * ipa-icf.h (init_wpa): Do not call it.
25791 (parse_tree_args): Remove.
25792 (compatible_parm_types_p): Declare.
25793 (result_type): Remove.
25794 (arg_types): Remove.
25796 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
25799 * ipa-polymorphic-call.c
25800 (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
25801 initializing alias oracle; fix formating; set base_alias_set if it
25804 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
25806 * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
25807 (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
25808 (find_inc): Likewise.
25809 * combine.c (combine_simplify_rtx): Use std::swap instead of manually
25811 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
25812 * df-scan.c (df_swap_refs): Remove.
25813 (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
25814 * dominance.c (link_roots): Use std::swap instead of manually swapping.
25815 * expr.c (expand_expr_real_2, do_store_flag): Likewise.
25816 * fold-const.c (fold_relational_const): Likewise.
25817 * genattrtab.c (simplify_test_exp): Likewise.
25818 * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
25819 gimple_simplify): Likewise.
25820 * ifcvt.c (noce_try_abs, find_if_header): Likewise.
25821 * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
25822 * ipa-devirt.c (add_type_duplicate): Likewise.
25823 * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
25824 * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
25825 * lra.c (lra_create_copy): Likewise.
25826 * lto-streamer-out.c (DFS::DFS): Likewise.
25827 * modulo-sched.c (get_sched_window): Likewise.
25828 * omega.c (omega_pretty_print_problem): Likewise.
25829 * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
25830 * reload1.c (reloads_unique_chain_p): Likewise.
25831 * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
25832 (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
25834 * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
25836 * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
25837 predicate_mem_writes): Likewise.
25838 * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
25839 * tree-predcom.c (combine_chains): Likewise.
25840 * tree-ssa-alias.c (nonoverlapping_component_refs_p,
25841 refs_may_alias_p_1): Likewise.
25842 * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
25843 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
25844 * tree-ssa-loop-niter.c (refine_bounds_using_guard,
25845 number_of_iterations_cond): Likewise.
25846 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
25847 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
25848 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
25849 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
25850 * tree-vrp.c (extract_range_from_binary_expr_1,
25851 extract_range_from_unary_expr_1): Likewise.
25853 2015-06-20 Marek Polacek <polacek@redhat.com>
25855 * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
25857 2015-06-19 Kaz Kojima <kkojima@gcc.gnu.org>
25860 * config/sh/sh.c (prepare_move_operands): Replace subreg
25861 index term with R0 for base and index addressing.
25863 2015-06-19 Jim Wilson <jim.wilson@linaro.org>
25865 * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
25867 (movsf_aarch64): Change condition from register_operand to
25868 aarch64_reg_or_fp_zero for op1. Change type for alternative 6 to
25869 load1. Change type for alternative 7 to store1.
25870 (movdf_aarch64): Likewise.
25872 2015-06-19 James Greenhalgh <james.greenhalgh@arm.com>
25874 * config/vax/vax.md: Adjust sign/zero extend patterns to
25875 handle SUBREGs in operands[1].
25877 2015-06-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25879 * config/i386/i386.c (ix86_function_versions): Use std::swap instead
25880 of manually swapping.
25881 (expand_vec_perm_interleave2): Likewise.
25883 2015-06-19 Ilya Enkovich <enkovich.gnu@gmail.com>
25885 * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
25886 reuse bounds created for abnormal ssa names.
25888 2015-06-19 Jakub Jelinek <jakub@redhat.com>
25890 * config/nvptx/nvptx.md (allocate_stack): Rename to...
25891 (allocate_stack_<mode>): ... this, and add :P on both
25892 match_operand and unspec.
25893 (allocate_stack): New expander.
25895 2015-06-19 Christian Bruel <christian.bruel@st.com>
25899 * config/arm/arm.c (arm_set_current_function): Handle
25900 explicit default options.
25902 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
25904 * config/i386/i386.md (*movsicc_noc_zext): New insn.
25905 (zero-extended cmove with mem peephole2): New pattern.
25906 (cmove with mem peephole2): Merge patterns.
25908 2015-06-18 Segher Boessenkool <segher@kernel.crashing.org>
25910 * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
25912 2015-06-18 Steve Ellcey <sellcey@imgtec.com>
25914 * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
25915 * config/mips/mips.md (*madd4<mode>): Ditto.
25916 (*nmadd3<mode>) Ditto.
25917 (*nmadd4<mode>_fastmath): Ditto.
25918 (*nmadd3<mode>_fastmath): Ditto.
25919 (*nmsub4<mode>): Ditto.
25920 (*nmsub3<mode>): Ditto.
25921 (*nmsub4<mode>_fastmath): Ditto.
25922 (*nmsub3<mode>_fastmath): Ditto.
25924 2015-06-18 Michael Matz <matz@suse.de>
25926 PR middle-end/66253
25927 * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
25928 grouped strided stores.
25929 (vectorizable_load): Don't use the DR from first_stmt in
25930 the non-SLP grouped strided case.
25932 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
25935 * function.c (assign_bounds): Add arguments assign_regs,
25936 assign_special, assign_bt.
25937 (assign_parms): For vararg functions handle bounds in BT
25938 and special slots after incoming vararg bounds.
25940 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
25942 PR middle-end/66568
25943 * cfgexpand.c (expand_return): Handle missing bounds.
25944 (expand_gimple_stmt_1): Likewise.
25945 * tree-chkp.c (chkp_expand_zero_bounds): New.
25946 * tree-chkp.h (chkp_expand_zero_bounds): New.
25948 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
25950 PR middle-end/66567
25951 * ipa-chkp.c (chkp_maybe_create_clone): Require
25952 functions to be instrumentable.
25953 * tree-chkp.c (chkp_replace_function_pointer): Use
25954 chkp_instrumentable_p instead of attribute check.
25956 2015-06-18 Richard Biener <rguenther@suse.de>
25958 PR tree-optimization/66510
25959 * tree-vect-stmts.c (vectorizable_load): Properly compute the
25960 number of vector loads for SLP permuted loads.
25961 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
25962 check the stride for loop vectorization.
25963 (vect_enhance_data_refs_alignment): Deal with SLP adjusted
25964 vectorization factor.
25965 (vect_analyze_group_access): If the group size is not a power
25966 of two require a epilogue loop.
25967 * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
25968 compute and optimizing and alias test pruning after final
25969 vectorization factor computation.
25970 * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
25972 (vect_transform_slp_perm_load): Properly compute the original
25973 number of vector load stmts.
25975 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
25977 * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
25978 "unlikely character , in @var" warning.
25980 2015-06-17 Uros Bizjak <ubizjak@gmail.com>
25982 * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
25983 (ix86_function_arg_advance): Ditto.
25984 (ix86_pass_by_reference): Ditto. Rewrite MS_ABI part.
25986 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
25988 * function.h (struct rtl_data): Remove struct and accessor macros.
25989 * emit-rtl.h (struct rtl_data): Relocate to here.
25990 * Makefile.in (GTFILES): Add emit-rtl.h.
25991 * df-core.c: Include emit-rtl.h.
25992 * genattrtab.c: Likewise.
25993 * genconditions.c: Likewise.
25994 * genpreds.c: Likewise.
25995 * genrecog.c: Likewise.
25996 * regcprop.c: Likewise.
25997 * resource.c: Likewise.
25998 * sched-rgn.c: Likewise.
25999 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
26000 * config/i386/winnt.c: Likewise.
26002 2015-06-17 Jakub Jelinek <jakub@redhat.com>
26004 PR middle-end/66429
26005 * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
26006 instead of DECL_STRUCT_FUNCTION (child_fn). Or in has_simduid_loops
26007 and has_force_vectorize_loops flags from cfun into
26009 (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
26010 if simduid is non-NULL.
26011 * tree-pass.h (make_pass_simduid_cleanup): New prototype.
26012 * passes.def (pass_simduid_cleanup): Add new pass after loop
26014 * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
26015 indirection from htab argument's type.
26016 (shrink_simd_arrays): New function.
26017 (vectorize_loops): Use it. Adjust adjust_simduid_builtins caller.
26018 Don't call adjust_simduid_builtins if there are no loops.
26019 (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
26020 (pass_simduid_cleanup::execute): New method.
26021 (make_pass_simduid_cleanup): New function.
26023 2017-06-17 Andrew MacLeod <amacleod@redhat.com>
26025 * tree-core.h (tree_target_option): Make opts field a pointer to a
26026 cl_target_option instead of an instance of the struct.
26027 * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
26029 * tree.c (make_node_stat ): Allocate a cl_target_option struct for
26030 TARGET_OPTION_NODE.
26031 (copy_node_stat): Allocate and copy struct cl_target_option.
26033 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
26035 * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
26036 Remove conditional exposure of prototypes.
26037 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
26038 * tree.c (anon_aggrname_format, anon_aggrname_p): New. Replace macro
26039 definitions in tree.h with functions.
26040 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
26042 * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
26044 2015-06-17 Segher Boessenkool <segher@kernel.crashing.org>
26046 * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
26047 (*cmp<mode>_signed): ... this.
26048 (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
26049 (*cmp<mode>_unsigned): ... this. Remove %b.
26051 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
26053 * coretypes.h: Include input.h and as-a.h.
26054 * rtl.h: Include input.h and as-a.h for generator files.
26055 * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
26056 * vec.c: Don't include diagnostic-core.h.
26057 * alias.c: Do not include input.h, line-map.h or is-a.h.
26058 * asan.c: Likewise.
26059 * attribs.c: Likewise.
26060 * auto-inc-dec.c: Likewise.
26061 * auto-profile.c: Likewise.
26062 * bb-reorder.c: Likewise.
26063 * bt-load.c: Likewise.
26064 * builtins.c: Likewise.
26065 * caller-save.c: Likewise.
26066 * calls.c: Likewise.
26067 * ccmp.c: Likewise.
26069 * cfganal.c: Likewise.
26070 * cfgbuild.c: Likewise.
26071 * cfgcleanup.c: Likewise.
26072 * cfgexpand.c: Likewise.
26073 * cfghooks.c: Likewise.
26074 * cfgloop.c: Likewise.
26075 * cfgloop.h: Likewise.
26076 * cfgloopanal.c: Likewise.
26077 * cfgloopmanip.c: Likewise.
26078 * cfgrtl.c: Likewise.
26079 * cgraph.c: Likewise.
26080 * cgraphbuild.c: Likewise.
26081 * cgraphclones.c: Likewise.
26082 * cgraphunit.c: Likewise.
26083 * cilk-common.c: Likewise.
26084 * combine-stack-adj.c: Likewise.
26085 * combine.c: Likewise.
26086 * compare-elim.c: Likewise.
26087 * convert.c: Likewise.
26088 * coverage.c: Likewise.
26089 * cppbuiltin.c: Likewise.
26090 * cprop.c: Likewise.
26092 * cselib.c: Likewise.
26093 * data-streamer-in.c: Likewise.
26094 * data-streamer-out.c: Likewise.
26095 * data-streamer.c: Likewise.
26096 * dbxout.c: Likewise.
26099 * debug.c: Likewise.
26100 * df-core.c: Likewise.
26101 * df-problems.c: Likewise.
26102 * df-scan.c: Likewise.
26105 * diagnostic-core.h: Likewise.
26106 * diagnostic.c: Likewise.
26107 * dojump.c: Likewise.
26108 * dominance.c: Likewise.
26109 * domwalk.c: Likewise.
26110 * double-int.c: Likewise.
26112 * dumpfile.c: Likewise.
26113 * dumpfile.h: Likewise.
26114 * dwarf2asm.c: Likewise.
26115 * dwarf2cfi.c: Likewise.
26116 * dwarf2out.c: Likewise.
26117 * emit-rtl.c: Likewise.
26118 * et-forest.c: Likewise.
26119 * except.c: Likewise.
26120 * explow.c: Likewise.
26121 * expmed.c: Likewise.
26122 * expr.c: Likewise.
26123 * final.c: Likewise.
26124 * fixed-value.c: Likewise.
26125 * fold-const.c: Likewise.
26126 * function.c: Likewise.
26127 * fwprop.c: Likewise.
26128 * gcc-plugin.h: Likewise.
26129 * gcse.c: Likewise.
26130 * generic-match-head.c: Likewise.
26131 * ggc-page.c: Likewise.
26132 * gimple-builder.c: Likewise.
26133 * gimple-expr.c: Likewise.
26134 * gimple-fold.c: Likewise.
26135 * gimple-iterator.c: Likewise.
26136 * gimple-low.c: Likewise.
26137 * gimple-match-head.c: Likewise.
26138 * gimple-pretty-print.c: Likewise.
26139 * gimple-ssa-isolate-paths.c: Likewise.
26140 * gimple-ssa-strength-reduction.c: Likewise.
26141 * gimple-streamer-in.c: Likewise.
26142 * gimple-streamer-out.c: Likewise.
26143 * gimple-streamer.h: Likewise.
26144 * gimple-walk.c: Likewise.
26145 * gimple.c: Likewise.
26146 * gimplify-me.c: Likewise.
26147 * gimplify.c: Likewise.
26148 * godump.c: Likewise.
26149 * graph.c: Likewise.
26150 * graphite-blocking.c: Likewise.
26151 * graphite-dependences.c: Likewise.
26152 * graphite-interchange.c: Likewise.
26153 * graphite-isl-ast-to-gimple.c: Likewise.
26154 * graphite-optimize-isl.c: Likewise.
26155 * graphite-poly.c: Likewise.
26156 * graphite-scop-detection.c: Likewise.
26157 * graphite-sese-to-poly.c: Likewise.
26158 * graphite.c: Likewise.
26159 * haifa-sched.c: Likewise.
26160 * hw-doloop.c: Likewise.
26161 * ifcvt.c: Likewise.
26162 * init-regs.c: Likewise.
26163 * input.c: Likewise.
26164 * internal-fn.c: Likewise.
26165 * ipa-chkp.c: Likewise.
26166 * ipa-comdats.c: Likewise.
26167 * ipa-cp.c: Likewise.
26168 * ipa-devirt.c: Likewise.
26169 * ipa-icf-gimple.c: Likewise.
26170 * ipa-icf.c: Likewise.
26171 * ipa-inline-analysis.c: Likewise.
26172 * ipa-inline-transform.c: Likewise.
26173 * ipa-inline.c: Likewise.
26174 * ipa-polymorphic-call.c: Likewise.
26175 * ipa-profile.c: Likewise.
26176 * ipa-prop.c: Likewise.
26177 * ipa-pure-const.c: Likewise.
26178 * ipa-ref.c: Likewise.
26179 * ipa-reference.c: Likewise.
26180 * ipa-split.c: Likewise.
26181 * ipa-utils.c: Likewise.
26182 * ipa-visibility.c: Likewise.
26184 * ira-build.c: Likewise.
26185 * ira-color.c: Likewise.
26186 * ira-conflicts.c: Likewise.
26187 * ira-costs.c: Likewise.
26188 * ira-emit.c: Likewise.
26189 * ira-lives.c: Likewise.
26191 * jump.c: Likewise.
26192 * langhooks.c: Likewise.
26194 * loop-doloop.c: Likewise.
26195 * loop-init.c: Likewise.
26196 * loop-invariant.c: Likewise.
26197 * loop-iv.c: Likewise.
26198 * loop-unroll.c: Likewise.
26199 * lower-subreg.c: Likewise.
26200 * lra-assigns.c: Likewise.
26201 * lra-coalesce.c: Likewise.
26202 * lra-constraints.c: Likewise.
26203 * lra-eliminations.c: Likewise.
26204 * lra-lives.c: Likewise.
26205 * lra-remat.c: Likewise.
26206 * lra-spills.c: Likewise.
26208 * lto-cgraph.c: Likewise.
26209 * lto-compress.c: Likewise.
26210 * lto-opts.c: Likewise.
26211 * lto-section-in.c: Likewise.
26212 * lto-section-out.c: Likewise.
26213 * lto-streamer-in.c: Likewise.
26214 * lto-streamer-out.c: Likewise.
26215 * lto-streamer.c: Likewise.
26217 * mode-switching.c: Likewise.
26218 * modulo-sched.c: Likewise.
26219 * omega.c: Likewise.
26220 * omp-low.c: Likewise.
26221 * optabs.c: Likewise.
26222 * opts-global.c: Likewise.
26223 * opts.h: Likewise.
26224 * passes.c: Likewise.
26225 * plugin.c: Likewise.
26226 * postreload-gcse.c: Likewise.
26227 * postreload.c: Likewise.
26228 * predict.c: Likewise.
26229 * pretty-print.h: Likewise.
26230 * print-rtl.c: Likewise.
26231 * print-tree.c: Likewise.
26232 * profile.c: Likewise.
26233 * real.c: Likewise.
26234 * realmpfr.c: Likewise.
26235 * recog.c: Likewise.
26237 * reg-stack.c: Likewise.
26238 * regcprop.c: Likewise.
26239 * reginfo.c: Likewise.
26240 * regrename.c: Likewise.
26241 * regstat.c: Likewise.
26242 * reload.c: Likewise.
26243 * reload1.c: Likewise.
26244 * reorg.c: Likewise.
26245 * resource.c: Likewise.
26246 * rtl-chkp.c: Likewise.
26247 * rtl-error.c: Likewise.
26248 * rtlanal.c: Likewise.
26249 * rtlhooks.c: Likewise.
26250 * sanopt.c: Likewise.
26251 * sched-deps.c: Likewise.
26252 * sched-ebb.c: Likewise.
26253 * sched-rgn.c: Likewise.
26254 * sched-vis.c: Likewise.
26255 * sdbout.c: Likewise.
26256 * sel-sched-dump.c: Likewise.
26257 * sel-sched-ir.c: Likewise.
26258 * sel-sched.c: Likewise.
26259 * sese.c: Likewise.
26260 * shrink-wrap.c: Likewise.
26261 * simplify-rtx.c: Likewise.
26262 * stack-ptr-mod.c: Likewise.
26263 * statistics.c: Likewise.
26264 * stmt.c: Likewise.
26265 * stor-layout.c: Likewise.
26266 * store-motion.c: Likewise.
26267 * streamer-hooks.c: Likewise.
26268 * stringpool.c: Likewise.
26269 * symtab.c: Likewise.
26270 * target-globals.c: Likewise.
26271 * targhooks.c: Likewise.
26272 * toplev.c: Likewise.
26273 * tracer.c: Likewise.
26274 * trans-mem.c: Likewise.
26275 * tree-affine.c: Likewise.
26276 * tree-browser.c: Likewise.
26277 * tree-call-cdce.c: Likewise.
26278 * tree-cfg.c: Likewise.
26279 * tree-cfgcleanup.c: Likewise.
26280 * tree-chkp-opt.c: Likewise.
26281 * tree-chkp.c: Likewise.
26282 * tree-chrec.c: Likewise.
26283 * tree-complex.c: Likewise.
26284 * tree-data-ref.c: Likewise.
26285 * tree-dfa.c: Likewise.
26286 * tree-diagnostic.c: Likewise.
26287 * tree-dump.c: Likewise.
26288 * tree-eh.c: Likewise.
26289 * tree-emutls.c: Likewise.
26290 * tree-if-conv.c: Likewise.
26291 * tree-inline.c: Likewise.
26292 * tree-into-ssa.c: Likewise.
26293 * tree-iterator.c: Likewise.
26294 * tree-loop-distribution.c: Likewise.
26295 * tree-nested.c: Likewise.
26296 * tree-nrv.c: Likewise.
26297 * tree-object-size.c: Likewise.
26298 * tree-outof-ssa.c: Likewise.
26299 * tree-parloops.c: Likewise.
26300 * tree-phinodes.c: Likewise.
26301 * tree-predcom.c: Likewise.
26302 * tree-pretty-print.c: Likewise.
26303 * tree-profile.c: Likewise.
26304 * tree-scalar-evolution.c: Likewise.
26305 * tree-sra.c: Likewise.
26306 * tree-ssa-address.c: Likewise.
26307 * tree-ssa-alias.c: Likewise.
26308 * tree-ssa-ccp.c: Likewise.
26309 * tree-ssa-coalesce.c: Likewise.
26310 * tree-ssa-copy.c: Likewise.
26311 * tree-ssa-copyrename.c: Likewise.
26312 * tree-ssa-dce.c: Likewise.
26313 * tree-ssa-dom.c: Likewise.
26314 * tree-ssa-dse.c: Likewise.
26315 * tree-ssa-forwprop.c: Likewise.
26316 * tree-ssa-ifcombine.c: Likewise.
26317 * tree-ssa-live.c: Likewise.
26318 * tree-ssa-loop-ch.c: Likewise.
26319 * tree-ssa-loop-im.c: Likewise.
26320 * tree-ssa-loop-ivcanon.c: Likewise.
26321 * tree-ssa-loop-ivopts.c: Likewise.
26322 * tree-ssa-loop-manip.c: Likewise.
26323 * tree-ssa-loop-niter.c: Likewise.
26324 * tree-ssa-loop-prefetch.c: Likewise.
26325 * tree-ssa-loop-unswitch.c: Likewise.
26326 * tree-ssa-loop.c: Likewise.
26327 * tree-ssa-math-opts.c: Likewise.
26328 * tree-ssa-operands.c: Likewise.
26329 * tree-ssa-phiopt.c: Likewise.
26330 * tree-ssa-phiprop.c: Likewise.
26331 * tree-ssa-pre.c: Likewise.
26332 * tree-ssa-propagate.c: Likewise.
26333 * tree-ssa-reassoc.c: Likewise.
26334 * tree-ssa-sccvn.c: Likewise.
26335 * tree-ssa-scopedtables.c: Likewise.
26336 * tree-ssa-sink.c: Likewise.
26337 * tree-ssa-strlen.c: Likewise.
26338 * tree-ssa-structalias.c: Likewise.
26339 * tree-ssa-tail-merge.c: Likewise.
26340 * tree-ssa-ter.c: Likewise.
26341 * tree-ssa-threadedge.c: Likewise.
26342 * tree-ssa-threadupdate.c: Likewise.
26343 * tree-ssa-uncprop.c: Likewise.
26344 * tree-ssa-uninit.c: Likewise.
26345 * tree-ssa.c: Likewise.
26346 * tree-ssanames.c: Likewise.
26347 * tree-stdarg.c: Likewise.
26348 * tree-streamer-in.c: Likewise.
26349 * tree-streamer-out.c: Likewise.
26350 * tree-streamer.c: Likewise.
26351 * tree-switch-conversion.c: Likewise.
26352 * tree-tailcall.c: Likewise.
26353 * tree-vect-data-refs.c: Likewise.
26354 * tree-vect-generic.c: Likewise.
26355 * tree-vect-loop-manip.c: Likewise.
26356 * tree-vect-loop.c: Likewise.
26357 * tree-vect-patterns.c: Likewise.
26358 * tree-vect-slp.c: Likewise.
26359 * tree-vect-stmts.c: Likewise.
26360 * tree-vectorizer.c: Likewise.
26361 * tree-vrp.c: Likewise.
26362 * tree.c: Likewise.
26363 * tsan.c: Likewise.
26364 * ubsan.c: Likewise.
26365 * valtrack.c: Likewise.
26366 * value-prof.c: Likewise.
26367 * var-tracking.c: Likewise.
26368 * varasm.c: Likewise.
26369 * varpool.c: Likewise.
26370 * vmsdbgout.c: Likewise.
26371 * vtable-verify.c: Likewise.
26373 * wide-int.cc: Likewise.
26374 * xcoffout.c: Likewise.
26375 * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
26376 * common/common-targhooks.c: Likewise.
26377 * config/aarch64/aarch64-builtins.c: Likewise.
26378 * config/aarch64/aarch64.c: Likewise.
26379 * config/alpha/alpha.c: Likewise.
26380 * config/arc/arc.c: Likewise.
26381 * config/arm/aarch-common.c: Likewise.
26382 * config/arm/arm-builtins.c: Likewise.
26383 * config/arm/arm-c.c: Likewise.
26384 * config/arm/arm.c: Likewise.
26385 * config/avr/avr-c.c: Likewise.
26386 * config/avr/avr-log.c: Likewise.
26387 * config/avr/avr.c: Likewise.
26388 * config/bfin/bfin.c: Likewise.
26389 * config/c6x/c6x.c: Likewise.
26390 * config/cr16/cr16.c: Likewise.
26391 * config/cris/cris.c: Likewise.
26392 * config/darwin-c.c: Likewise.
26393 * config/darwin.c: Likewise.
26394 * config/default-c.c: Likewise.
26395 * config/epiphany/epiphany.c: Likewise.
26396 * config/epiphany/mode-switch-use.c: Likewise.
26397 * config/epiphany/resolve-sw-modes.c: Likewise.
26398 * config/fr30/fr30.c: Likewise.
26399 * config/frv/frv.c: Likewise.
26400 * config/ft32/ft32.c: Likewise.
26401 * config/glibc-c.c: Likewise.
26402 * config/h8300/h8300.c: Likewise.
26403 * config/i386/i386-c.c: Likewise.
26404 * config/i386/i386.c: Likewise.
26405 * config/i386/msformat-c.c: Likewise.
26406 * config/i386/winnt-cxx.c: Likewise.
26407 * config/i386/winnt-stubs.c: Likewise.
26408 * config/i386/winnt.c: Likewise.
26409 * config/ia64/ia64-c.c: Likewise.
26410 * config/ia64/ia64.c: Likewise.
26411 * config/iq2000/iq2000.c: Likewise.
26412 * config/lm32/lm32.c: Likewise.
26413 * config/m32c/m32c-pragma.c: Likewise.
26414 * config/m32c/m32c.c: Likewise.
26415 * config/m32r/m32r.c: Likewise.
26416 * config/m68k/m68k.c: Likewise.
26417 * config/mcore/mcore.c: Likewise.
26418 * config/mep/mep-pragma.c: Likewise.
26419 * config/mep/mep.c: Likewise.
26420 * config/microblaze/microblaze-c.c: Likewise.
26421 * config/microblaze/microblaze.c: Likewise.
26422 * config/mips/mips.c: Likewise.
26423 * config/mmix/mmix.c: Likewise.
26424 * config/mn10300/mn10300.c: Likewise.
26425 * config/moxie/moxie.c: Likewise.
26426 * config/msp430/msp430-c.c: Likewise.
26427 * config/msp430/msp430.c: Likewise.
26428 * config/nds32/nds32-cost.c: Likewise.
26429 * config/nds32/nds32-fp-as-gp.c: Likewise.
26430 * config/nds32/nds32-intrinsic.c: Likewise.
26431 * config/nds32/nds32-isr.c: Likewise.
26432 * config/nds32/nds32-md-auxiliary.c: Likewise.
26433 * config/nds32/nds32-memory-manipulation.c: Likewise.
26434 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
26435 * config/nds32/nds32-predicates.c: Likewise.
26436 * config/nds32/nds32.c: Likewise.
26437 * config/nios2/nios2.c: Likewise.
26438 * config/nvptx/nvptx.c: Likewise.
26439 * config/pa/pa.c: Likewise.
26440 * config/pdp11/pdp11.c: Likewise.
26441 * config/rl78/rl78-c.c: Likewise.
26442 * config/rl78/rl78.c: Likewise.
26443 * config/rs6000/rs6000-c.c: Likewise.
26444 * config/rs6000/rs6000.c: Likewise.
26445 * config/rx/rx.c: Likewise.
26446 * config/s390/s390-c.c: Likewise.
26447 * config/s390/s390.c: Likewise.
26448 * config/sh/sh-c.c: Likewise.
26449 * config/sh/sh-mem.cc: Likewise.
26450 * config/sh/sh.c: Likewise.
26451 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
26452 * config/sh/sh_treg_combine.cc: Likewise.
26453 * config/sol2-c.c: Likewise.
26454 * config/sol2-cxx.c: Likewise.
26455 * config/sol2-stubs.c: Likewise.
26456 * config/sol2.c: Likewise.
26457 * config/sparc/sparc-c.c: Likewise.
26458 * config/sparc/sparc.c: Likewise.
26459 * config/spu/spu-c.c: Likewise.
26460 * config/spu/spu.c: Likewise.
26461 * config/stormy16/stormy16.c: Likewise.
26462 * config/tilegx/mul-tables.c: Likewise.
26463 * config/tilegx/tilegx-c.c: Likewise.
26464 * config/tilegx/tilegx.c: Likewise.
26465 * config/tilepro/mul-tables.c: Likewise.
26466 * config/tilepro/tilepro-c.c: Likewise.
26467 * config/tilepro/tilepro.c: Likewise.
26468 * config/v850/v850-c.c: Likewise.
26469 * config/v850/v850.c: Likewise.
26470 * config/vax/vax.c: Likewise.
26471 * config/visium/visium.c: Likewise.
26472 * config/vms/vms-c.c: Likewise.
26473 * config/vms/vms.c: Likewise.
26474 * config/vxworks.c: Likewise.
26475 * config/winnt-c.c: Likewise.
26476 * config/xtensa/xtensa.c: Likewise.
26478 2015-06-17 Robert Suchanek <robert.suchanek@imgtec.com>
26480 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
26482 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
26484 2015-06-17 Richard Biener <rguenther@suse.de>
26486 PR tree-optimization/66251
26487 * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
26488 stmts for SLP strided stores.
26491 2015-05-22 Richard Biener <rguenther@suse.de>
26493 PR tree-optimization/66251
26494 * tree-vect-stmts.c (vectorizable_conversion): Properly
26495 set STMT_VINFO_VEC_STMT even for the SLP case.
26497 2015-05-26 Michael Matz <matz@suse.de>
26499 PR middle-end/66251
26500 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
26501 STMT_VINFO_VEC_STMT, also with SLP.
26503 2015-06-16 Uros Bizjak <ubizjak@gmail.com>
26506 * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
26507 (*avx_addsubv4df3_1s): Ditto.
26508 (*sse3_addsubv2df3_1): Ditto.
26509 (*sse3_addsubv2df3_1s): Ditto.
26510 (*avx_addsubv8sf3_1): Ditto.
26511 (*avx_addsubv8sf3_1s): Ditto.
26512 (*sse3_addsubv4sf3_1): Ditto.
26513 (*sse3_addsubv4sf3_1s): Ditto.
26515 2015-06-16 Steve Ellcey <sellcey@imgtec.com>
26517 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
26518 (SYSROOT_SUFFIX_SPEC): Update.
26519 (SYSROOT_HEADERS_SUFFIX_SPEC): New.
26520 (STARTFILE_PREFIX_SPEC): Update.
26521 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
26522 (MULTILIB_REQUIRED): New.
26523 (MULTILIB_OSDIRNAMES): New.
26524 * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
26525 (MULTILIB_REQUIRED): New.
26526 (MULTILIB_OSDIRNAMES): New.
26528 2015-06-16 Matthew Wahab <matthew.wahab@arm.com>
26530 * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
26531 * config/aarch64/aarch64-options-extensions.def: Update "fP",
26532 "simd" and "crypto". Add "lse", "pan", "lor" and "rdma".
26533 * config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
26534 (AARCH64_FL_PAN): New.
26535 (AARCH64_FL_LOR): New.
26536 (AARCH64_FL_RDMA): New.
26537 (AARCH64_FL_FOR_ARCH8_1): New.
26538 * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
26539 -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
26541 2015-06-16 Martin Liska <mliska@suse.cz>
26543 * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
26544 * hash-table.c (void dump_hash_table_loc_statistics): Add missing
26547 2015-06-16 Richard Biener <rguenther@suse.de>
26549 * tree-vect-stmts.c (vectorizable_store): Adjust.
26550 (vectorizable_load): Likewise.
26551 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
26553 (vect_create_data_ref_ptr): Likewise.
26554 (bump_vector_ptr): Adjust.
26556 2015-06-16 Richard Biener <rguenther@suse.de>
26558 * tree-vect-stmts.c (vectorizable_load): Properly start loads
26559 with the first element if this is grouped loads.
26561 2015-06-16 James Greenhalgh <james.greenhalgh@arm.com>
26563 * config/arm/arm-protos.h (struct tune_params): Rename
26564 log_op_non_sc to log_op_non_short_circuit, and rename enum
26565 values to expand SC to SHORT_CIRCUIT.
26566 * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
26567 to LOG_OP_NON_SHORT_CIRCUIT.
26568 (arm_fastmul_tune):Likewise
26569 (arm_strongarm_tune): Likewise.
26570 (arm_xscale_tune): Likewise.
26571 (arm_9e_tune): Likewise.
26572 (arm_marvell_pj4_tune): Likewise.
26573 (arm_v6t2_tune): Likewise.
26574 (arm_cortex_tune): Likewise.
26575 (arm_cortex_a8_tune): Likewise.
26576 (arm_cortex_a7_tune): Likewise.
26577 (arm_cortex_a15_tune): Likewise.
26578 (arm_cortex_a53_tune): Likewise.
26579 (arm_cortex_a57_tune): Likewise.
26580 (arm_xgene1_tune): Likewise.
26581 (arm_cortex_a5_tune): Likewise.
26582 (arm_cortex_a9_tune): Likewise.
26583 (arm_cortex_a12_tune): Likewise.
26584 (arm_v7m_tune): Likewise.
26585 (arm_cortex_m7_tune): Likewise.
26586 (arm_v6m_tune): Likewise.
26587 (arm_fa726te_tune): Likewise.
26589 2015-06-15 David Edelsohn <dje.gcc@gmail.com>
26591 * altivec.md: Delete UNSPEC_VMLADDUHM.
26592 (mulv4si3_p8): New pattern.
26593 (mulv4si3): Use it for POWER8.
26594 (mulv8hi3): Use vmladduhm with zero addend.
26595 (altivec_vmladduhm): Descriptive RTL.
26597 2015-06-15 Jim Wilson <jim.wilson@linaro.org>
26599 * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
26600 to use neon_move instead of mov_imm.
26601 (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
26602 (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
26604 * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
26605 aarch64_float_const_zero_rtx_p check before TFmode check.
26606 * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
26608 (movtf_aarch64): Separate ?rY alternative into two. Adjust assembly
26609 code and attributes to match. Change condition from register_operand
26610 to aarch64_reg_or_fp_zero for op1. Change type for ldp from
26611 neon_load1_2reg to load2. Change type for stp from neon_store1_2reg
26614 2015-06-15 Aldy Hernandez <aldyh@redhat.com>
26617 * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
26618 there is no parent.
26620 2015-06-14 Shiva Chen <shiva0217@gmail.com>
26622 * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
26623 HOST_WIDE_INT parameter.
26625 2015-06-14 Jan Hubicka <hubicka@ucw.cz>
26628 * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
26629 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
26631 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
26633 2015-06-14 Richard Sandiford <richard.sandiford@arm.com>
26635 * rtl.h (classify_insn): Declare.
26636 * emit-rtl.c (classify_insn): Move to...
26637 * rtl.c: ...here and add generator support.
26638 * gensupport.h (get_emit_function, needs_barrier_p): Declare.
26639 * gensupport.c (get_emit_function, needs_barrier_p): New functions.
26640 * genemit.c (gen_emit_seq): New function.
26641 (gen_expand, gen_split): Use it.
26643 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
26645 * tree.c (make_vector_stat): Fix comment to state that the
26646 function returns a VECTOR_CST.
26648 2015-06-13 Richard Sandiford <richard.sandiford@arm.com>
26650 * gensupport.h (add_implicit_parallel): Declare.
26651 * genrecog.c (add_implicit_parallel): Move to...
26652 * gensupport.c (add_implicit_parallel): ...here.
26653 (process_one_cond_exec): Use it.
26654 * genemit.c (gen_insn): Likewise.
26656 2015-06-13 Iain Sandoe <iain@codesourcery.com>
26659 * passes.c (rest_of_decl_compilation): Do not register globals for
26660 early debug if they are declared in built-ins.
26662 2015-06-12 Aldy Hernandez <aldyh@redhat.com>
26664 * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
26666 2015-06-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26668 * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
26670 (noce_try_cmove_arith): Likewise.
26671 (noce_get_alt_condition): Likewise.
26673 2015-06-12 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
26675 * common/config/i386/i386-common.c
26676 (OPTION_MASK_ISA_MWAITX_SET): New.
26677 (ix86_handle_option): Handle mwaitx.
26678 * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
26679 (x86_64-*-*): Likewise.
26680 * config/i386/mwaitxintrin.h: New header.
26681 * config/i386/cpuid.h (bit_MWAITX): Define.
26682 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
26684 * config/i386/i386.opt (mwaitx): New.
26685 * config/i386/i386-builtin-types.def
26686 (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
26687 * config/i386/i386-c.c: Define __MWAITX__ if needed.
26688 * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
26690 (ix86_option_override_internal): Handle new option.
26691 (processor_alias_table): Added PTA_MWAITX.
26692 (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
26693 (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
26694 (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
26695 IX86_BUILTIN_MONITORX built-ins.
26696 * config/i386/i386.h (TARGET_MWAITX): New.
26697 * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
26699 (mwaitx): New pattern.
26700 (monitorx_<mode>): New pattern.
26701 * config/i386/x86intrin.h: Include mwaitxintrin.h.
26702 * doc/extend.texi: Document monitorx and mwaitx builtins.
26703 * doc/invoke.texi: Document -mmwaitx option.
26705 2015-06-12 Uros Bizjak <ubizjak@gmail.com>
26707 * emit-rtl.c (need_atomic_barrier_p): Mask model with
26708 MEMMODEL_BASE_MASK. Remove MEMMODEL_SYNC_* cases.
26710 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
26712 * dbxout.c (xcoff_debug_hooks): Provide a function for
26713 register_main_translation_unit hook.
26715 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
26717 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
26718 variants cases from switch.
26719 (rs6000_post_atomic_barrier): Same.
26720 (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
26721 (rs6000_expand_atomic_exchange): Same.
26722 (rs6000_expand_atomic_op): Same.
26723 * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
26724 SYNC variants cases from switch.
26725 (atomic_load): Same.
26726 (atomic_store): Same.
26728 2015-06-11 John David Anglin <danglin@gcc.gnu.org>
26730 * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
26731 CONST_INT for goto.
26733 2015-06-11 Aldy Hernandez <aldyh@redhat.com>
26736 * dwarf2out.c (check_die): Check for common duplicate attributes.
26737 (add_location_or_const_value_attribute): Do not add duplicate
26739 (gen_formal_parameter_die): Do not add DW_AT_artificial the second
26741 (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
26742 (gen_type_die_with_usage): Call check_die.
26743 (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
26745 2015-06-11 Jason Merrill <jason@redhat.com>
26747 * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
26750 2015-06-11 Marek Polacek <polacek@redhat.com>
26752 * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
26754 2015-06-11 Eric Botcazou <ebotcazou@adacore.com>
26757 * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
26758 * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
26759 (*addx_extend_sp32): Fix pasto.
26760 (*subx_extend): Rename into...
26761 (*subx_extend_sp32): ...this.
26762 (*adddi3_extend_sp32): Add earlyclobber.
26763 (*subdi3_insn_sp32): Likewise.
26764 (*subdi3_extend_sp32): Likewise.
26765 (*and_not_di_sp32): Likewise.
26766 (*or_not_di_sp32): Likewise.
26767 (*xor_not_di_sp32): Likewise.
26768 (*negdi2_sp32): Likewise.
26769 (*one_cmpldi2_sp32): Likewise.
26771 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
26773 * debug.h (struct gcc_debug_hooks): Add a
26774 register_main_translation_unit hook.
26775 * debug.c (do_nothing_debug_hooks): Provide a function for this
26777 * dbxout.c (dbx_debug_hooks): Likewise.
26778 * sdbout.c (sdb_debug_hooks): Likewise.
26779 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
26780 * dwarf2out.c (main_translation_unit): New global variable.
26781 (dwarf2out_register_main_translation_unit): New function
26782 implementing the new hook.
26783 (dwarf2_debug_hooks): Assign
26784 dwarf2out_register_main_translation_unit to this new hook.
26785 (dwarf2out_init): Associate any main translation unit to
26788 2015-06-11 Marek Polacek <polacek@redhat.com>
26790 * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
26792 2015-06-11 Marek Polacek <polacek@redhat.com>
26794 * match.pd: Use single_use throughout.
26796 2015-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26798 * config/arm/arm.c (arm_option_params_internal): When optimising
26799 for speed set max_insns_skipped when arm_restrict_it.
26801 2015-06-11 Christian Bruel <christian.bruel@st.com>
26804 * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
26806 (arm_cpu_builtins): New function.
26807 (arm_pragma_target_parse): Call arm_cpu_builtins.
26808 * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
26809 (arm_register_target_pragmas): Likewise.
26810 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
26811 Call arm_register_target_pragmas.
26812 * config/arm/arm-c.c (arm_register_target_pragmas): New function.
26813 (arm_pragma_target_parse): Likewise.
26815 2015-06-10 Kaz Kojima <kkojima@gcc.gnu.org>
26817 * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
26818 of the second operand.
26820 2015-06-10 Uros Bizjak <ubizjak@gmail.com>
26823 * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
26824 to prepare mask operand for AVX512 modes.
26826 2015-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
26829 * doc/md.texi (Machine Constraints): Document that on the PowerPC
26830 if you use a constraint that targets a VSX register, you must use
26831 %x<n> in the template.
26833 2015-06-10 Max Filippov <jcmvbkbc@gmail.com>
26835 * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
26836 * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
26837 (define_insn "trap"): New definition.
26839 2015-06-10 Richard Biener <rguenther@suse.de>
26841 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
26843 (vect_supported_load_permutation_p): ... here. Handle
26844 supportable permutations in reductions.
26845 * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
26846 for vectorizing strided group loads.
26848 2015-06-10 Jakub Jelinek <jakub@redhat.com>
26851 * config/i386/i386.c (ix86_split_long_move): For collisions
26852 involving direct tls segment refs, move the UNSPEC_TP possibly
26853 wrapped in ZERO_EXTEND out of the address for lea, to each of
26856 2015-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26858 * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
26859 dmb sy. Adjust tabs.
26861 2015-06-10 Tom de Vries <tom@codesourcery.com>
26863 * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
26865 2015-06-10 Martin Liska <mliska@suse.cz>
26868 * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
26869 all enum values in mem_alloc_origin.
26870 * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
26872 * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
26873 * bitmap.c (bitmap_register): Likewise.
26874 (dump_bitmap_statistics): Likewise.
26875 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
26876 (ggc_record_overhead): Likewise.
26877 * hash-map.h: Likewise.
26878 * hash-set.h: Likewise.
26879 * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
26880 * hash-table.h: Likewise.
26881 * vec.c (vec_prefix::register_overhead): Likewise.
26882 (vec_prefix::release_overhead): Likewise.
26883 (dump_vec_loc_statistics): Likewise.
26885 2015-06-09 Christian Bruel <christian.bruel@st.com>
26888 * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
26889 * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
26890 (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
26891 * config/arm/arm.h (SWITCHABLE_TARGET): Define.
26892 * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
26893 (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
26894 (arm_valid_target_attribute_p): Likewise.
26895 (arm_set_current_function, arm_can_inline_p): Likewise.
26896 (arm_valid_target_attribute_rec): Likewise.
26897 (arm_previous_fndecl): New variable.
26898 (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
26899 (TARGET_CAN_INLINE_P): Define.
26900 (arm_asm_trampoline_template): Emit mode.
26901 (arm_file_start): Don't set unified syntax.
26902 (arm_declare_function_name): Set unified syntax and mode.
26903 (arm_option_override): Init target_option_default_node.
26904 and target_option_current_node.
26905 * config/arm/arm.md (*call_value_symbol): Set mode when possible.
26906 (*call_symbol): Likewise.
26907 * doc/extend.texi: Document ARM/Thumb target attribute.
26908 * doc/invoke.texi: Likewise.
26910 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
26913 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
26914 PR rtl-optimization/64164
26915 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
26916 * tree-ssa-copyrename.c: Removed.
26917 * opts.c (default_options_table): Drop -ftree-copyrename. Add
26918 -ftree-coalesce-vars.
26919 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
26920 * common.opt (ftree-copyrename): Ignore.
26921 (ftree-coalesce-inlined-vars): Likewise.
26922 * doc/invoke.texi: Remove the ignored options above.
26923 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
26924 * tree-ssa-coalesce.h: ... here.
26925 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
26926 headers required by it.
26927 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
26928 across variables when flag_tree_coalesce_vars. Check register
26929 use and promoted modes to allow coalescing. Moved to
26930 tree-ssa-coalesce.c.
26931 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
26932 with its member functions to tree-ssa-coalesce.c.
26933 (var_map_base_init): Likewise. Renamed to
26934 compute_samebase_partition_bases.
26935 (partition_view_normal): Drop want_bases parameter.
26936 (partition_view_bitmap): Likewise.
26937 * tree-ssa-live.h: Adjust declarations.
26938 * tree-ssa-coalesce.c: Include explow.h.
26939 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
26940 default defs at the entry point.
26941 (dump_part_var_map): New.
26942 (compute_optimized_partition_bases): New, called by...
26943 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
26944 of compute_samebase_partition_bases. Adjust.
26945 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
26946 * cfgexpand.c (leader_merge): New.
26947 (get_rtl_for_parm_ssa_default_def): New.
26948 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
26949 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
26950 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
26951 redundant MEM attr setting.
26952 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
26954 (expand_one_stack_var): ... this. New wrapper to check and
26955 skip already expanded SSA partitions.
26956 (record_alignment_for_reg_var): New, factored out of...
26957 (expand_one_var): ... this.
26958 (expand_one_ssa_partition): New.
26959 (adjust_one_expanded_partition_var): New.
26960 (expand_one_register_var): Check and skip already expanded SSA
26962 (expand_used_vars): Don't create DECLs for anonymous SSA
26963 names. Expand all SSA partitions, then adjust all SSA names.
26964 (pass::execute): Replace the loops that set
26965 SA.partition_to_pseudo from partition leaders and cleared
26966 DECL_RTL for multi-location variables, and that which used to
26967 rename vars and set attrs, with one that clears DECL_RTL and
26968 checks that PARMs and RESULTs default_defs match DECL_RTL.
26969 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
26970 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
26971 * explow.c (promote_ssa_mode): New.
26972 * explow.h (promote_ssa_mode): Declare.
26973 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
26974 * function.c: Include cfgexpand.h.
26975 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
26976 (use_register_for_parm_decl): Wrapper for the above to
26977 special-case the result_ptr.
26978 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
26979 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
26980 multiple locations.
26981 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
26982 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
26983 (assign_parm_setup_block): Prefer SSA-assigned location.
26984 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
26985 if stack_parm is NULL.
26986 (assign_parm_setup_stack): Prefer SSA-assigned location.
26987 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
26988 rtl before testing for pointer bounds. Special-case result_ptr.
26989 (expand_function_start): Maybe reset DECL_RTL of result.
26990 Prefer SSA-assigned location for result and static chain.
26991 Factor out DECL_RESULT and SET_DECL_RTL.
26992 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
26993 anonymous SSA names. Use promote_ssa_mode.
26994 (get_temp_reg): Likewise.
26995 (remove_ssa_form): Adjust.
26996 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
26997 and get its reg_usage for reg invalidation.
26998 (compute_bb_dataflow): Pass it insn.
26999 (emit_notes_in_bb): Likewise.
27000 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
27001 fail assert on conversion between unsigned types.
27003 2015-06-09 Tom de Vries <tom@codesourcery.com>
27005 PR tree-optimization/65460
27006 * omp-low.c (expand_omp_target): Set parallelized_function on
27007 cgraph_node for child_fn.
27009 2015-06-09 Tom de Vries <tom@codesourcery.com>
27011 * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
27012 parallelized_function before add_new_function.
27014 2015-06-09 Andrew MacLeod <amacleod@redhat.com>
27016 * gcc-plugin.h: Move decls to plugin.h and include it.
27017 * plugin.h: Relocate decls from gcc-plugin.h
27018 * ggc-page.c: Include required header files.
27019 * passes.c: Likewise.
27020 * cgraphunit.c: Likewise.
27022 2015-06-09 Tom de Vries <tom@codesourcery.com>
27024 * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
27026 2015-06-09 Jason Merrill <jason@redhat.com>
27029 * toplev.c (check_global_declaration): Don't warn about a clone.
27031 2015-06-09 Marek Polacek <polacek@redhat.com>
27033 PR tree-optimization/66299
27034 * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
27035 ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
27038 2015-06-09 Richard Biener <rguenther@suse.de>
27040 * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
27041 (vect_analyze_slp_instance): Instead do not falsely drop
27044 2015-06-09 Richard Biener <rguenther@suse.de>
27046 PR middle-end/66423
27047 * match.pd: Handle A % (unsigned)(1 << B).
27049 2015-06-09 Aldy Hernandez <aldyh@redhat.com>
27051 * varasm.c (output_object_block_htab): Remove.
27052 (output_object_block_compare): New.
27053 (output_object_blocks): Sort named object_blocks before outputting
27056 2015-06-09 Richard Biener <rguenther@suse.de>
27058 PR tree-optimization/66419
27059 * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
27060 consider GROUP_GAP when detecting a perfect subchain.
27062 2015-06-09 Nick Clifton <nickc@redhat.com>
27064 * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
27065 place read only data in the .frodata section.
27067 2015-06-09 Shiva Chen <shiva0217@gmail.com>
27069 * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
27070 (atomic_store<mode>): Likewise.
27072 2015-06-09 Richard Biener <rguenther@suse.de>
27074 * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
27076 2015-06-09 Richard Biener <rguenther@suse.de>
27078 PR middle-end/66413
27079 * tree-inline.c (insert_init_debug_bind): Unshare value.
27081 2015-06-09 Richard Biener <rguenther@suse.de>
27083 PR tree-optimization/66396
27084 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
27085 Rename virtual operands.
27087 2015-06-09 Tom de Vries <tom@codesourcery.com>
27089 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
27090 always return false.
27092 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
27094 PR rtl-optimization/64164
27095 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
27096 * tree-ssa-copyrename.c: Removed.
27097 * opts.c (default_options_table): Drop -ftree-copyrename. Add
27098 -ftree-coalesce-vars.
27099 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
27100 * common.opt (ftree-copyrename): Ignore.
27101 (ftree-coalesce-inlined-vars): Likewise.
27102 * doc/invoke.texi: Remove the ignored options above.
27103 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
27104 * tree-ssa-coalesce.h: ... here.
27105 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
27106 headers required by it.
27107 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
27108 across variables when flag_tree_coalesce_vars. Check register
27109 use and promoted modes to allow coalescing. Moved to
27110 tree-ssa-coalesce.c.
27111 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
27112 with its member functions to tree-ssa-coalesce.c.
27113 (var_map_base_init): Likewise. Renamed to
27114 compute_samebase_partition_bases.
27115 (partition_view_normal): Drop want_bases parameter.
27116 (partition_view_bitmap): Likewise.
27117 * tree-ssa-live.h: Adjust declarations.
27118 * tree-ssa-coalesce.c: Include explow.h.
27119 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
27120 default defs at the entry point.
27121 (dump_part_var_map): New.
27122 (compute_optimized_partition_bases): New, called by...
27123 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
27124 of compute_samebase_partition_bases. Adjust.
27125 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
27126 * cfgexpand.c (leader_merge): New.
27127 (get_rtl_for_parm_ssa_default_def): New.
27128 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
27129 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
27130 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
27131 redundant MEM attr setting.
27132 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
27134 (expand_one_stack_var): ... this. New wrapper to check and
27135 skip already expanded SSA partitions.
27136 (record_alignment_for_reg_var): New, factored out of...
27137 (expand_one_var): ... this.
27138 (expand_one_ssa_partition): New.
27139 (adjust_one_expanded_partition_var): New.
27140 (expand_one_register_var): Check and skip already expanded SSA
27142 (expand_used_vars): Don't create DECLs for anonymous SSA
27143 names. Expand all SSA partitions, then adjust all SSA names.
27144 (pass::execute): Replace the loops that set
27145 SA.partition_to_pseudo from partition leaders and cleared
27146 DECL_RTL for multi-location variables, and that which used to
27147 rename vars and set attrs, with one that clears DECL_RTL and
27148 checks that PARMs and RESULTs default_defs match DECL_RTL.
27149 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
27150 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
27151 * explow.c (promote_ssa_mode): New.
27152 * explow.h (promote_ssa_mode): Declare.
27153 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
27154 * function.c: Include cfgexpand.h.
27155 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
27156 (use_register_for_parm_decl): Wrapper for the above to
27157 special-case the result_ptr.
27158 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
27159 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
27160 multiple locations.
27161 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
27162 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
27163 (assign_parm_setup_block): Prefer SSA-assigned location.
27164 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
27165 if stack_parm is NULL.
27166 (assign_parm_setup_stack): Prefer SSA-assigned location.
27167 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
27168 rtl before testing for pointer bounds. Special-case result_ptr.
27169 (expand_function_start): Maybe reset DECL_RTL of result.
27170 Prefer SSA-assigned location for result and static chain.
27171 Factor out DECL_RESULT and SET_DECL_RTL.
27172 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
27173 anonymous SSA names. Use promote_ssa_mode.
27174 (get_temp_reg): Likewise.
27175 (remove_ssa_form): Adjust.
27176 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
27177 and get its reg_usage for reg invalidation.
27178 (compute_bb_dataflow): Pass it insn.
27179 (emit_notes_in_bb): Likewise.
27180 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
27181 fail assert on conversion between unsigned types.
27183 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
27186 * tree-inline.c (reset_debug_binding): New.
27187 (reset_debug_bindings): Likewise.
27188 (expand_call_inline): Call it.
27190 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
27192 * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
27195 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
27197 * lto-streamer-out.c (lto_output_location): Stream
27198 reserved locations correctly.
27199 * lto-streamer-in.c (lto_output_location): Likewise.
27201 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
27203 * coretypes.h: Include hash-table.h and hash-set.h for host files.
27204 * ggc.h: Don't include statistics.h>
27205 * hash-map.h: Remove all includes.
27206 * hash-set.h: Likewise.
27207 * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
27208 the include list. Remove <new>.
27209 * inchash.h: Remove all includes.
27210 * mem-stats.h: Likewise.
27211 * vec.h: No special processing for generators or ggc.
27212 * alias.c : Adjust include files.
27213 * alloc-pool.c : Likewise.
27214 * alloc-pool.h : Likewise.
27215 * asan.c : Likewise.
27216 * attribs.c : Likewise.
27217 * auto-inc-dec.c : Likewise.
27218 * auto-profile.c : Likewise.
27219 * bb-reorder.c : Likewise.
27220 * bitmap.c : Likewise.
27221 * bitmap.h : Likewise.
27222 * bt-load.c : Likewise.
27223 * builtins.c : Likewise.
27224 * caller-save.c : Likewise.
27225 * calls.c : Likewise.
27226 * ccmp.c : Likewise.
27227 * cfg.c : Likewise.
27228 * cfganal.c : Likewise.
27229 * cfgbuild.c : Likewise.
27230 * cfgcleanup.c : Likewise.
27231 * cfgexpand.c : Likewise.
27232 * cfghooks.c : Likewise.
27233 * cfgloop.c : Likewise.
27234 * cfgloop.h : Likewise.
27235 * cfgloopanal.c : Likewise.
27236 * cfgloopmanip.c : Likewise.
27237 * cfgrtl.c : Likewise.
27238 * cgraph.c : Likewise.
27239 * cgraphbuild.c : Likewise.
27240 * cgraphclones.c : Likewise.
27241 * cgraphunit.c : Likewise.
27242 * cilk-common.c : Likewise.
27243 * combine-stack-adj.c : Likewise.
27244 * combine.c : Likewise.
27245 * compare-elim.c : Likewise.
27246 * context.c : Likewise.
27247 * convert.c : Likewise.
27248 * coverage.c : Likewise.
27249 * cppbuiltin.c : Likewise.
27250 * cprop.c : Likewise.
27251 * cse.c : Likewise.
27252 * cselib.c : Likewise.
27253 * data-streamer-in.c : Likewise.
27254 * data-streamer-out.c : Likewise.
27255 * data-streamer.c : Likewise.
27256 * data-streamer.h : Likewise.
27257 * dbxout.c : Likewise.
27258 * dce.c : Likewise.
27259 * ddg.c : Likewise.
27260 * debug.c : Likewise.
27261 * df-core.c : Likewise.
27262 * df-problems.c : Likewise.
27263 * df-scan.c : Likewise.
27265 * dfp.c : Likewise.
27266 * dojump.c : Likewise.
27267 * dominance.c : Likewise.
27268 * domwalk.c : Likewise.
27269 * double-int.c : Likewise.
27270 * dse.c : Likewise.
27271 * dumpfile.c : Likewise.
27272 * dwarf2asm.c : Likewise.
27273 * dwarf2cfi.c : Likewise.
27274 * dwarf2out.c : Likewise.
27275 * emit-rtl.c : Likewise.
27276 * et-forest.c : Likewise.
27277 * except.c : Likewise.
27278 * except.h : Likewise.
27279 * explow.c : Likewise.
27280 * expmed.c : Likewise.
27281 * expr.c : Likewise.
27282 * final.c : Likewise.
27283 * fixed-value.c : Likewise.
27284 * fold-const.c : Likewise.
27285 * function.c : Likewise.
27286 * fwprop.c : Likewise.
27287 * gcc-plugin.h : Likewise.
27288 * gcc.c : Likewise.
27289 * gcse-common.c : Likewise.
27290 * gcse.c : Likewise.
27291 * genattrtab.c : Likewise.
27292 * genautomata.c : Likewise.
27293 * genconditions.c : Likewise.
27294 * genemit.c : Likewise.
27295 * generic-match-head.c : Likewise.
27296 * genextract.c : Likewise.
27297 * gengtype-state.c : Likewise.
27298 * gengtype.c : Likewise.
27299 * genhooks.c : Likewise.
27300 * genmatch.c : Likewise.
27301 * genmodes.c : Likewise.
27302 * genrecog.c : Likewise.
27303 * gensupport.c : Likewise.
27304 * ggc-common.c : Likewise.
27305 * ggc-internal.h : Likewise.
27306 * ggc-none.c : Likewise.
27307 * ggc-page.c : Likewise.
27308 * gimple-builder.c : Likewise.
27309 * gimple-expr.c : Likewise.
27310 * gimple-fold.c : Likewise.
27311 * gimple-iterator.c : Likewise.
27312 * gimple-low.c : Likewise.
27313 * gimple-match-head.c : Likewise.
27314 * gimple-pretty-print.c : Likewise.
27315 * gimple-ssa-isolate-paths.c : Likewise.
27316 * gimple-ssa-strength-reduction.c : Likewise.
27317 * gimple-ssa.h : Likewise.
27318 * gimple-streamer-in.c : Likewise.
27319 * gimple-streamer-out.c : Likewise.
27320 * gimple-streamer.h : Likewise.
27321 * gimple-walk.c : Likewise.
27322 * gimple.c : Likewise.
27323 * gimplify-me.c : Likewise.
27324 * gimplify.c : Likewise.
27325 * godump.c : Likewise.
27326 * graph.c : Likewise.
27327 * graphds.c : Likewise.
27328 * graphite-blocking.c : Likewise.
27329 * graphite-dependences.c : Likewise.
27330 * graphite-interchange.c : Likewise.
27331 * graphite-isl-ast-to-gimple.c : Likewise.
27332 * graphite-optimize-isl.c : Likewise.
27333 * graphite-poly.c : Likewise.
27334 * graphite-scop-detection.c : Likewise.
27335 * graphite-sese-to-poly.c : Likewise.
27336 * graphite.c : Likewise.
27337 * haifa-sched.c : Likewise.
27338 * hard-reg-set.h : Likewise.
27339 * hw-doloop.c : Likewise.
27340 * ifcvt.c : Likewise.
27341 * inchash.c : Likewise.
27342 * incpath.c : Likewise.
27343 * init-regs.c : Likewise.
27344 * input.c : Likewise.
27345 * internal-fn.c : Likewise.
27346 * ipa-chkp.c : Likewise.
27347 * ipa-comdats.c : Likewise.
27348 * ipa-cp.c : Likewise.
27349 * ipa-devirt.c : Likewise.
27350 * ipa-icf-gimple.c : Likewise.
27351 * ipa-icf.c : Likewise.
27352 * ipa-inline-analysis.c : Likewise.
27353 * ipa-inline-transform.c : Likewise.
27354 * ipa-inline.c : Likewise.
27355 * ipa-polymorphic-call.c : Likewise.
27356 * ipa-profile.c : Likewise.
27357 * ipa-prop.c : Likewise.
27358 * ipa-pure-const.c : Likewise.
27359 * ipa-ref.c : Likewise.
27360 * ipa-reference.c : Likewise.
27361 * ipa-split.c : Likewise.
27362 * ipa-utils.c : Likewise.
27363 * ipa-visibility.c : Likewise.
27364 * ipa.c : Likewise.
27365 * ira-build.c : Likewise.
27366 * ira-color.c : Likewise.
27367 * ira-conflicts.c : Likewise.
27368 * ira-costs.c : Likewise.
27369 * ira-emit.c : Likewise.
27370 * ira-lives.c : Likewise.
27371 * ira.c : Likewise.
27372 * jump.c : Likewise.
27373 * langhooks.c : Likewise.
27374 * lcm.c : Likewise.
27375 * libfuncs.h : Likewise.
27376 * lists.c : Likewise.
27377 * loop-doloop.c : Likewise.
27378 * loop-init.c : Likewise.
27379 * loop-invariant.c : Likewise.
27380 * loop-iv.c : Likewise.
27381 * loop-unroll.c : Likewise.
27382 * lower-subreg.c : Likewise.
27383 * lra-assigns.c : Likewise.
27384 * lra-coalesce.c : Likewise.
27385 * lra-constraints.c : Likewise.
27386 * lra-eliminations.c : Likewise.
27387 * lra-lives.c : Likewise.
27388 * lra-remat.c : Likewise.
27389 * lra-spills.c : Likewise.
27390 * lra.c : Likewise.
27391 * lto-cgraph.c : Likewise.
27392 * lto-compress.c : Likewise.
27393 * lto-opts.c : Likewise.
27394 * lto-section-in.c : Likewise.
27395 * lto-section-out.c : Likewise.
27396 * lto-streamer-in.c : Likewise.
27397 * lto-streamer-out.c : Likewise.
27398 * lto-streamer.c : Likewise.
27399 * lto-streamer.h : Likewise.
27400 * mcf.c : Likewise.
27401 * mode-switching.c : Likewise.
27402 * modulo-sched.c : Likewise.
27403 * omega.c : Likewise.
27404 * omp-low.c : Likewise.
27405 * optabs.c : Likewise.
27406 * opts-global.c : Likewise.
27407 * opts.h : Likewise.
27408 * passes.c : Likewise.
27409 * plugin.c : Likewise.
27410 * postreload-gcse.c : Likewise.
27411 * postreload.c : Likewise.
27412 * predict.c : Likewise.
27413 * print-rtl.c : Likewise.
27414 * print-tree.c : Likewise.
27415 * profile.c : Likewise.
27416 * read-md.c : Likewise.
27417 * read-md.h : Likewise.
27418 * read-rtl.c : Likewise.
27419 * real.c : Likewise.
27420 * realmpfr.c : Likewise.
27421 * recog.c : Likewise.
27422 * ree.c : Likewise.
27423 * reg-stack.c : Likewise.
27424 * regcprop.c : Likewise.
27425 * reginfo.c : Likewise.
27426 * regrename.c : Likewise.
27427 * regstat.c : Likewise.
27428 * reload.c : Likewise.
27429 * reload1.c : Likewise.
27430 * reorg.c : Likewise.
27431 * resource.c : Likewise.
27432 * rtl-chkp.c : Likewise.
27433 * rtl.c : Likewise.
27434 * rtl.h : Likewise.
27435 * rtlanal.c : Likewise.
27436 * rtlhash.c : Likewise.
27437 * rtlhash.h : Likewise.
27438 * rtlhooks.c : Likewise.
27439 * sanopt.c : Likewise.
27440 * sched-deps.c : Likewise.
27441 * sched-ebb.c : Likewise.
27442 * sched-rgn.c : Likewise.
27443 * sched-vis.c : Likewise.
27444 * sdbout.c : Likewise.
27445 * sel-sched-dump.c : Likewise.
27446 * sel-sched-ir.c : Likewise.
27447 * sel-sched-ir.h : Likewise.
27448 * sel-sched.c : Likewise.
27449 * sese.c : Likewise.
27450 * shrink-wrap.c : Likewise.
27451 * shrink-wrap.h : Likewise.
27452 * simplify-rtx.c : Likewise.
27453 * stack-ptr-mod.c : Likewise.
27454 * statistics.c : Likewise.
27455 * stmt.c : Likewise.
27456 * stor-layout.c : Likewise.
27457 * store-motion.c : Likewise.
27458 * stringpool.c : Likewise.
27459 * symtab.c : Likewise.
27460 * target-globals.c : Likewise.
27461 * targhooks.c : Likewise.
27462 * tlink.c : Likewise.
27463 * toplev.c : Likewise.
27464 * tracer.c : Likewise.
27465 * trans-mem.c : Likewise.
27466 * tree-affine.c : Likewise.
27467 * tree-affine.h : Likewise.
27468 * tree-browser.c : Likewise.
27469 * tree-call-cdce.c : Likewise.
27470 * tree-cfg.c : Likewise.
27471 * tree-cfgcleanup.c : Likewise.
27472 * tree-chkp-opt.c : Likewise.
27473 * tree-chkp.c : Likewise.
27474 * tree-chrec.c : Likewise.
27475 * tree-complex.c : Likewise.
27476 * tree-data-ref.c : Likewise.
27477 * tree-dfa.c : Likewise.
27478 * tree-diagnostic.c : Likewise.
27479 * tree-dump.c : Likewise.
27480 * tree-eh.c : Likewise.
27481 * tree-eh.h : Likewise.
27482 * tree-emutls.c : Likewise.
27483 * tree-hasher.h : Likewise.
27484 * tree-if-conv.c : Likewise.
27485 * tree-inline.c : Likewise.
27486 * tree-inline.h : Likewise.
27487 * tree-into-ssa.c : Likewise.
27488 * tree-iterator.c : Likewise.
27489 * tree-loop-distribution.c : Likewise.
27490 * tree-nested.c : Likewise.
27491 * tree-nrv.c : Likewise.
27492 * tree-object-size.c : Likewise.
27493 * tree-outof-ssa.c : Likewise.
27494 * tree-parloops.c : Likewise.
27495 * tree-phinodes.c : Likewise.
27496 * tree-predcom.c : Likewise.
27497 * tree-pretty-print.c : Likewise.
27498 * tree-profile.c : Likewise.
27499 * tree-scalar-evolution.c : Likewise.
27500 * tree-sra.c : Likewise.
27501 * tree-ssa-address.c : Likewise.
27502 * tree-ssa-alias.c : Likewise.
27503 * tree-ssa-ccp.c : Likewise.
27504 * tree-ssa-coalesce.c : Likewise.
27505 * tree-ssa-copy.c : Likewise.
27506 * tree-ssa-copyrename.c : Likewise.
27507 * tree-ssa-dce.c : Likewise.
27508 * tree-ssa-dom.c : Likewise.
27509 * tree-ssa-dse.c : Likewise.
27510 * tree-ssa-forwprop.c : Likewise.
27511 * tree-ssa-ifcombine.c : Likewise.
27512 * tree-ssa-live.c : Likewise.
27513 * tree-ssa-loop-ch.c : Likewise.
27514 * tree-ssa-loop-im.c : Likewise.
27515 * tree-ssa-loop-ivcanon.c : Likewise.
27516 * tree-ssa-loop-ivopts.c : Likewise.
27517 * tree-ssa-loop-manip.c : Likewise.
27518 * tree-ssa-loop-niter.c : Likewise.
27519 * tree-ssa-loop-prefetch.c : Likewise.
27520 * tree-ssa-loop-unswitch.c : Likewise.
27521 * tree-ssa-loop.c : Likewise.
27522 * tree-ssa-math-opts.c : Likewise.
27523 * tree-ssa-operands.c : Likewise.
27524 * tree-ssa-phiopt.c : Likewise.
27525 * tree-ssa-phiprop.c : Likewise.
27526 * tree-ssa-pre.c : Likewise.
27527 * tree-ssa-propagate.c : Likewise.
27528 * tree-ssa-reassoc.c : Likewise.
27529 * tree-ssa-sccvn.c : Likewise.
27530 * tree-ssa-scopedtables.c : Likewise.
27531 * tree-ssa-sink.c : Likewise.
27532 * tree-ssa-strlen.c : Likewise.
27533 * tree-ssa-structalias.c : Likewise.
27534 * tree-ssa-tail-merge.c : Likewise.
27535 * tree-ssa-ter.c : Likewise.
27536 * tree-ssa-threadedge.c : Likewise.
27537 * tree-ssa-threadupdate.c : Likewise.
27538 * tree-ssa-uncprop.c : Likewise.
27539 * tree-ssa-uninit.c : Likewise.
27540 * tree-ssa.c : Likewise.
27541 * tree-ssanames.c : Likewise.
27542 * tree-stdarg.c : Likewise.
27543 * tree-streamer-in.c : Likewise.
27544 * tree-streamer-out.c : Likewise.
27545 * tree-streamer.c : Likewise.
27546 * tree-streamer.h : Likewise.
27547 * tree-switch-conversion.c : Likewise.
27548 * tree-tailcall.c : Likewise.
27549 * tree-vect-data-refs.c : Likewise.
27550 * tree-vect-generic.c : Likewise.
27551 * tree-vect-loop-manip.c : Likewise.
27552 * tree-vect-loop.c : Likewise.
27553 * tree-vect-patterns.c : Likewise.
27554 * tree-vect-slp.c : Likewise.
27555 * tree-vect-stmts.c : Likewise.
27556 * tree-vectorizer.c : Likewise.
27557 * tree-vectorizer.h : Likewise.
27558 * tree-vrp.c : Likewise.
27559 * tree.c : Likewise.
27560 * tsan.c : Likewise.
27561 * ubsan.c : Likewise.
27562 * valtrack.c : Likewise.
27563 * valtrack.h : Likewise.
27564 * value-prof.c : Likewise.
27565 * var-tracking.c : Likewise.
27566 * varasm.c : Likewise.
27567 * varpool.c : Likewise.
27569 * vmsdbgout.c : Likewise.
27570 * vtable-verify.c : Likewise.
27571 * vtable-verify.h : Likewise.
27572 * web.c : Likewise.
27573 * wide-int.cc : Likewise.
27574 * xcoffout.c : Likewise.
27575 * config/aarch64/aarch64-builtins.c : Likewise.
27576 * config/aarch64/aarch64.c : Likewise.
27577 * config/aarch64/cortex-a57-fma-steering.c : Likewise.
27578 * config/alpha/alpha.c : Likewise.
27579 * config/arc/arc.c : Likewise.
27580 * config/arm/aarch-common.c : Likewise.
27581 * config/arm/arm-builtins.c : Likewise.
27582 * config/arm/arm-c.c : Likewise.
27583 * config/arm/arm.c : Likewise.
27584 * config/avr/avr-c.c : Likewise.
27585 * config/avr/avr-log.c : Likewise.
27586 * config/avr/avr.c : Likewise.
27587 * config/bfin/bfin.c : Likewise.
27588 * config/c6x/c6x.c : Likewise.
27589 * config/cr16/cr16.c : Likewise.
27590 * config/cris/cris.c : Likewise.
27591 * config/darwin-c.c : Likewise.
27592 * config/darwin.c : Likewise.
27593 * config/default-c.c : Likewise.
27594 * config/epiphany/epiphany.c : Likewise.
27595 * config/epiphany/mode-switch-use.c : Likewise.
27596 * config/epiphany/resolve-sw-modes.c : Likewise.
27597 * config/fr30/fr30.c : Likewise.
27598 * config/frv/frv.c : Likewise.
27599 * config/ft32/ft32.c : Likewise.
27600 * config/glibc-c.c : Likewise.
27601 * config/h8300/h8300.c : Likewise.
27602 * config/i386/i386-c.c : Likewise.
27603 * config/i386/i386.c : Likewise.
27604 * config/i386/msformat-c.c : Likewise.
27605 * config/i386/winnt-cxx.c : Likewise.
27606 * config/i386/winnt-stubs.c : Likewise.
27607 * config/i386/winnt.c : Likewise.
27608 * config/ia64/ia64-c.c : Likewise.
27609 * config/ia64/ia64.c : Likewise.
27610 * config/iq2000/iq2000.c : Likewise.
27611 * config/lm32/lm32.c : Likewise.
27612 * config/m32c/m32c-pragma.c : Likewise.
27613 * config/m32c/m32c.c : Likewise.
27614 * config/m32r/m32r.c : Likewise.
27615 * config/m68k/m68k.c : Likewise.
27616 * config/mcore/mcore.c : Likewise.
27617 * config/mep/mep-pragma.c : Likewise.
27618 * config/mep/mep.c : Likewise.
27619 * config/microblaze/microblaze-c.c : Likewise.
27620 * config/microblaze/microblaze.c : Likewise.
27621 * config/mips/mips.c : Likewise.
27622 * config/mmix/mmix.c : Likewise.
27623 * config/mn10300/mn10300.c : Likewise.
27624 * config/moxie/moxie.c : Likewise.
27625 * config/msp430/msp430-c.c : Likewise.
27626 * config/msp430/msp430.c : Likewise.
27627 * config/nds32/nds32-cost.c : Likewise.
27628 * config/nds32/nds32-fp-as-gp.c : Likewise.
27629 * config/nds32/nds32-intrinsic.c : Likewise.
27630 * config/nds32/nds32-isr.c : Likewise.
27631 * config/nds32/nds32-md-auxiliary.c : Likewise.
27632 * config/nds32/nds32-memory-manipulation.c : Likewise.
27633 * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
27634 * config/nds32/nds32-predicates.c : Likewise.
27635 * config/nds32/nds32.c : Likewise.
27636 * config/nios2/nios2.c : Likewise.
27637 * config/nvptx/nvptx.c : Likewise.
27638 * config/pa/pa.c : Likewise.
27639 * config/pdp11/pdp11.c : Likewise.
27640 * config/rl78/rl78-c.c : Likewise.
27641 * config/rl78/rl78.c : Likewise.
27642 * config/rs6000/rs6000-c.c : Likewise.
27643 * config/rs6000/rs6000.c : Likewise.
27644 * config/rx/rx.c : Likewise.
27645 * config/s390/s390-c.c : Likewise.
27646 * config/s390/s390.c : Likewise.
27647 * config/sh/sh-c.c : Likewise.
27648 * config/sh/sh-mem.cc : Likewise.
27649 * config/sh/sh.c : Likewise.
27650 * config/sh/sh_optimize_sett_clrt.cc : Likewise.
27651 * config/sh/sh_treg_combine.cc : Likewise.
27652 * config/sol2-c.c : Likewise.
27653 * config/sol2-cxx.c : Likewise.
27654 * config/sol2-stubs.c : Likewise.
27655 * config/sol2.c : Likewise.
27656 * config/sparc/sparc-c.c : Likewise.
27657 * config/sparc/sparc.c : Likewise.
27658 * config/spu/spu-c.c : Likewise.
27659 * config/spu/spu.c : Likewise.
27660 * config/stormy16/stormy16.c : Likewise.
27661 * config/tilegx/mul-tables.c : Likewise.
27662 * config/tilegx/tilegx-c.c : Likewise.
27663 * config/tilegx/tilegx.c : Likewise.
27664 * config/tilepro/mul-tables.c : Likewise.
27665 * config/tilepro/tilepro-c.c : Likewise.
27666 * config/tilepro/tilepro.c : Likewise.
27667 * config/v850/v850-c.c : Likewise.
27668 * config/v850/v850.c : Likewise.
27669 * config/vax/vax.c : Likewise.
27670 * config/visium/visium.c : Likewise.
27671 * config/vms/vms-c.c : Likewise.
27672 * config/vms/vms.c : Likewise.
27673 * config/vxworks.c : Likewise.
27674 * config/winnt-c.c : Likewise.
27675 * config/xtensa/xtensa.c : Likewise.
27677 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
27680 * ipa-utils.h (warn_types_mismatch): Update prototype.
27681 * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
27683 (type_mismatch_p): New function.
27684 (warn_types_mismatch): Reorg to work better on non-C++ types.
27685 (odr_types_equivalent_p): Add loc1/loc2 parameters.
27686 (add_type_duplicate): Update.
27688 2015-06-08 Tom de Vries <tom@codesourcery.com>
27690 PR rtl-optimization/66444
27691 * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
27694 2015-06-08 Richard Biener <rguenther@suse.de>
27696 PR tree-optimization/66422
27697 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
27698 block after inserted gcc_unreachable.
27700 2015-06-08 Nick Clifton <nickc@redhat.com>
27702 * config/rx/rx.c (rx_function_value): Do not promote vector types.
27703 (rx_promote_function_mode): Likewise.
27704 * config/rx/rx.h (LIBCALL_VALUE): Likewise.
27706 2015-06-08 Jakub Jelinek <jakub@redhat.com>
27708 * genattrtab.c (insn_alternatives): Change type from int *
27710 (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
27711 (get_attr_value): Change type of num_alt to uint64_t.
27712 (compute_alternative_mask): Change return type from
27713 int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
27714 (make_alternative_compare, mk_attr_alt): Change argument type
27715 from int to uint64_t.
27716 (simplify_test_exp): Change type of i from int to uint64_t.
27717 Shift ((uint64_t) 1) instead of 1 up.
27718 (main): Adjust oballocvec first argument from int to uint64_t.
27719 Shift ((uint64_t) 1) instead of 1 up.
27721 2015-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
27724 * gdbhooks.py: Import sys.
27725 (intptr): New function. Replace int(...) by intptr(...).
27727 2015-06-08 Richard Biener <rguenther@suse.de>
27729 * tree-vect-stmts.c (vectorizable_load): Compute the pointer
27730 adjustment for gaps at the end of a SLP load group properly.
27731 * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
27732 all permutations we can generate.
27733 (vect_transform_slp_perm_load): Use the correct group-size.
27735 2015-06-08 Marc Glisse <marc.glisse@inria.fr>
27737 * genmatch.c (expr::gen_transform): For conditions, guess the type
27738 from the second operand.
27740 2015-06-08 Tom de Vries <tom@codesourcery.com>
27742 PR tree-optimization/66442
27743 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
27744 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
27745 if the loop latch is not a singleton. Use
27746 gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
27748 2015-06-08 Marek Polacek <polacek@redhat.com>
27751 * toplev.c (check_global_declaration): Don't warn about artificial
27754 2015-06-08 Tom de Vries <tom@codesourcery.com>
27756 PR tree-optimization/66436
27757 * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
27759 * gimplify.c: Add tree-dump.h include.
27760 (gimplify_function_tree): Dump function to gimple dump file.
27761 * stor-layout.c (finalize_size_functions): Don't dump function to gimple
27764 2015-06-08 Tom de Vries <tom@codesourcery.com>
27766 PR tree-optimization/66435
27767 * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
27770 2015-06-06 Jan Hubicka <hubicka@ucw.cz>
27772 * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
27773 of ptr_type_node to not be ptr_to_node.
27774 * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
27775 TREE_TYPE of pointers.
27776 * gimple-expr.c (useless_type_conversion): Reorder the check for
27777 function pointers and TYPE_CANONICAL.
27779 2015-06-06 John David Anglin <danglin@gcc.gnu.org>
27782 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
27783 defines. Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
27784 Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
27786 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
27787 Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
27788 _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
27789 _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
27790 and non iso if unix2003.
27792 2015-06-06 Aldy Hernandez <aldyh@redhat.com>
27794 * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
27796 2015-06-06 Richard Sandiford <richard.sandiford@arm.com>
27798 * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
27799 rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
27800 cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
27801 except.c, final.c, function.c, gcse-common.c, genemit.c,
27802 haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
27803 lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
27804 sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
27805 shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
27808 2015-06-06 Mikhail Maltsev <maltsevm@gmail.com>
27810 * combine.c (combine_split_insns): Remove cast.
27811 * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
27812 * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
27813 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
27814 * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
27815 * genemit.c (gen_split): Change return type of generated functions to
27817 * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
27818 (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
27819 gen_peephole2_* functions.
27820 (print_subroutine, main): Likewise.
27821 * recog.c (peephole2_optimize): Remove cast.
27822 (peep2_next_insn): Promote return type to rtx_insn.
27823 * recog.h (peep2_next_insn): Fix prototype.
27824 * rtl.h (try_split, split_insns): Likewise.
27826 2015-06-06 DJ Delorie <dj@redhat.com>
27828 * config/msp430/msp430.c (msp430_asm_integer): Support addition
27829 and subtraction too.
27831 2015-06-05 Kaz Kojima <kkojima@gcc.gnu.org>
27834 * config/sh/constraints.md (Sid, Ssd): New memory constraints.
27835 * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
27836 instead of Snd. Disparage Sid/z alternative with '^'.
27838 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
27840 * dwarf2out.c: Remove deferred_locations*.
27841 (dwarf2_debug_hooks): Add early_finish hook.
27842 Remove global_decl hook.
27843 Add early_global_decl and late_global_decl hook.
27844 New global early_dwarf.
27845 New structure set_early_dwarf.
27846 (output_die): Indicate whether a DIE was generated early
27847 when generating assembly with -dA.
27848 (struct limbo_die_struct): Document created_for field.
27849 Remove file_table_last_lookup.
27850 (remove_AT): Return TRUE if successful.
27851 (remove_child_TAG): Clear die_parent.
27852 (reparent_child): New function abstracted from...
27853 (splice_child_die): ...here.
27854 (new_die): ICE if a DIE ends up in limbo too late.
27856 (defer_location): Remove.
27857 (add_subscript_info): Reuse DW_TAG_subrange_type if available.
27858 (fill_variable_array_bounds): New.
27859 (decl_start_label): Call fill_variable_array_bounds.
27860 (gen_formal_parameter_die): Rewrite to reuse previously generated
27862 (gen_subprogram_die): Same.
27863 (gen_variable_die): Same.
27864 (gen_const_die): Same.
27865 (gen_label_die): Same.
27866 (gen_lexical_block_die): Same.
27867 (decl_will_get_specification_p): New.
27868 (local_function_static): New.
27869 (gen_struct_or_union_type_die): Fill in variable-length fields.
27870 (gen_typedef_die): Fill in variable-length typedefs.
27871 (gen_tagged_type_die): Gracefully return on error_mark_node.
27872 Handle re-entrancy.
27873 (gen_type_die_with_usage): Handle variable-length types.
27874 Remove duplicate code for ARRAY_TYPE case.
27875 (process_scope_var): Only process imported modules during early
27877 (dwarf2out_early_global_decl): New.
27878 (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
27879 (dwarf2out_type_decl): Set early_dwarf while calling
27881 (dwarf2out_decl): Verify that we did not recreate a previously
27883 Do not return on DECL_EXTERNALs in VAR_DECLs.
27884 Abstract some code to local_function_static.
27885 (lookup_filename): Remove use of file_table_last_lookup.
27886 Gracefully exit on missing file_name.
27887 (dwarf2out_finish): Verify limbo list.
27888 Remove deferred_locations_list use.
27889 Move deferred_asm_name and limbo flushing to...
27890 (dwarf2out_early_finish): ...here. New.
27891 (dwarf2out_c_finalize): Remove set of deferred_location_list,
27892 deferred_asm_name, and file_table_last_lookup.
27893 * cgraph.h (referred_to_p): Add default argument.
27894 * cgraphunit.c (referred_to_p): Add and handle include_self
27896 (analyze_functions): Add first_time argument.
27897 Call check_global_declaration for all symbols.
27898 Call late_global_decl for nodes for moribund nodes.
27899 (finalize_compilation_unit): Add new argument to
27901 Call early_global_decl for functions.
27902 Call early_finish debug hook.
27903 * dbxout.c (dbxout_early_global_decl): New.
27904 (dbxout_late_global_decl): New. Adapted from dbxout_global_decl.
27905 (dbx_debug_hooks): Add new hooks.
27906 (xcoff_debug_hooks): Same.
27907 * debug.c (do_nothing_debug_hooks): Add early_finish field.
27908 Add early and late debug hooks.
27909 Remove global_decl hook.
27910 * debug.h (struct gcc_debug_hooks): Add early_finish,
27911 early_global_decl, and late_global_decl fields.
27912 Remove global_decl field.
27913 Document gcc_debug_hooks.
27914 * gengtype.c (output_typename): Remove.
27915 * godump.c (go_early_global_decl): New.
27916 (go_late_global_decl): New.
27917 (go_global_decl): Remove.
27918 (dump_go_spec_init): Remove global_decl. Add
27919 {early,late}_global_decl.
27920 * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
27921 (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
27922 * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
27923 (write_global_declarations): Remove.
27924 (global_decl_processing): New.
27925 * langhooks.h (struct lang_hooks_for_decls): Remove
27926 final_write_globals field.
27927 Add post_compilation_parsing_cleanups field.
27928 * passes.c (rest_of_decl_compilation): Call early_global_decl.
27929 * sdbout.c: Add early and late_global_decl hooks. Remove
27930 sdbout_global_decl hook.
27931 Add early_finish field for sdb_debug_hooks.
27932 (sdbout_global_decl): Remove.
27933 (sdbout_early_global_decl): New.
27934 (sdbout_late_global_decl): New.
27935 * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
27936 * toplev.c (check_global_declaration): Rename from
27937 check_global_declaration_1.
27938 Adapt to use symtab infrastructure.
27939 (check_global_declarations): Remove.
27940 (emit_debug_global_declarations): Remove.
27941 (compile_file): Remove call to final_write_globals langhook.
27942 Run the actual compilation process.
27943 Perform any post compilation parser cleanups.
27944 Generate late debug info.
27945 * toplev.h (check_global_declaration): New.
27946 (check_global_declaration_1): Remove.
27947 (check_global_declarations): Remove.
27948 (write_global_declarations): Remove.
27949 (emit_debug_global_declarations): Remove.
27950 (global_decl_processing): New.
27951 * tree-core.h (struct tree_block): Add DIE field.
27952 * tree.h (BLOCK_DIE): New.
27953 * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
27955 (vmsdbgout_early_global_decl): New.
27956 (vmsdbgout_late_global_decl): New.
27957 Add early_finish debug hook field to vmsdbg_debug_hooks.
27958 Remove vmsdbgout_decl to vmsdbgout_function_decl.
27959 Add early and late_global_decl debug hooks.
27961 2015-06-05 Julian Brown <julian@codesourcery.com>
27962 Sandra Loosemore <sandra@codesourcery.com>
27964 * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
27965 * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
27966 to print-sysroot-suffix.sh script.
27968 2015-06-05 Tom de Vries <tom@codesourcery.com>
27970 merge from gomp4 branch:
27971 2015-05-28 Tom de Vries <tom@codesourcery.com>
27973 PR tree-optimization/65443
27974 * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
27975 (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
27976 (try_transform_to_exit_first_loop_alt): New function.
27977 (transform_to_exit_first_loop): Use
27978 try_transform_to_exit_first_loop_alt.
27980 2015-06-05 James Greenhalgh <james.greenhalgh@arm.com>
27982 * builtins.c (expand_builtin_atomic_compare_exchange): Call
27983 emit_cmp_and_jump_insns with the mode of target.
27985 2015-06-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
27987 * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
27989 2015-06-04 DJ Delorie <dj@redhat.com>
27991 * config/msp430/msp430.md (movsi_s): New. Special case for
27992 storing a 20-bit symbol into a 32-bit register.
27993 * config/msp430/msp430.c (msp430_subreg): Add support for it.
27994 * config/msp430/predicates.md (msp430_symbol_operand): New.
27996 2015-06-04 Sriraman Tallam <tmsriram@google.com>
27998 * calls.c (prepare_call_address): Check for noplt
28000 * config/i386/i386.c (ix86_expand_call): Check
28001 for noplt attribute.
28002 (ix86_nopic_noplt_attribute_p): New function.
28003 (ix86_output_call_insn): Output indirect call for non-pic
28005 * doc/extend.texi (noplt): Document new attribute.
28006 * doc/invoke.texi: Document new attribute.
28008 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
28010 * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
28011 real.h, and fixed-value.h when included in host source files.
28012 * double-int.h: Remove redundant #includes listed above.
28013 * fixed-value.h: Likewise.
28014 * real.h: Likewise.
28015 * wide-int.h: Likewise.
28016 * inchash.h: Likewise.
28017 * rtl.h: Add some include files When included from a generator file.
28018 * target.h: Remove wide-int.h and insn-modes.h from the include list.
28019 * internal-fn.h: Don't include coretypes.h.
28020 * alias.c: Adjust includes for restructured coretypes.h.
28021 * asan.c: Likewise.
28022 * attribs.c: Likewise.
28023 * auto-inc-dec.c: Likewise.
28024 * auto-profile.c: Likewise.
28025 * bb-reorder.c: Likewise.
28026 * bt-load.c: Likewise.
28027 * builtins.c: Likewise.
28028 * caller-save.c: Likewise.
28029 * calls.c: Likewise.
28030 * ccmp.c: Likewise.
28032 * cfganal.c: Likewise.
28033 * cfgbuild.c: Likewise.
28034 * cfgcleanup.c: Likewise.
28035 * cfgexpand.c: Likewise.
28036 * cfghooks.c: Likewise.
28037 * cfgloop.c: Likewise.
28038 * cfgloop.h: Likewise.
28039 * cfgloopanal.c: Likewise.
28040 * cfgloopmanip.c: Likewise.
28041 * cfgrtl.c: Likewise.
28042 * cgraph.c: Likewise.
28043 * cgraphbuild.c: Likewise.
28044 * cgraphclones.c: Likewise.
28045 * cgraphunit.c: Likewise.
28046 * cilk-common.c: Likewise.
28047 * combine-stack-adj.c: Likewise.
28048 * combine.c: Likewise.
28049 * compare-elim.c: Likewise.
28050 * convert.c: Likewise.
28051 * coverage.c: Likewise.
28052 * cppbuiltin.c: Likewise.
28053 * cprop.c: Likewise.
28055 * cselib.c: Likewise.
28056 * data-streamer-in.c: Likewise.
28057 * data-streamer-out.c: Likewise.
28058 * data-streamer.c: Likewise.
28059 * dbxout.c: Likewise.
28062 * debug.c: Likewise.
28063 * df-core.c: Likewise.
28064 * df-problems.c: Likewise.
28065 * df-scan.c: Likewise.
28068 * dojump.c: Likewise.
28069 * dominance.c: Likewise.
28070 * domwalk.c: Likewise.
28071 * double-int.c: Likewise.
28073 * dumpfile.c: Likewise.
28074 * dwarf2asm.c: Likewise.
28075 * dwarf2cfi.c: Likewise.
28076 * dwarf2out.c: Likewise.
28077 * dwarf2out.h: Likewise.
28078 * emit-rtl.c: Likewise.
28079 * et-forest.c: Likewise.
28080 * except.c: Likewise.
28081 * explow.c: Likewise.
28082 * expmed.c: Likewise.
28083 * expr.c: Likewise.
28084 * final.c: Likewise.
28085 * fixed-value.c: Likewise.
28086 * fold-const.c: Likewise.
28087 * function.c: Likewise.
28088 * fwprop.c: Likewise.
28089 * gcc-plugin.h: Likewise.
28090 * gcse.c: Likewise.
28091 * generic-match-head.c: Likewise.
28092 * ggc-page.c: Likewise.
28093 * gimple-builder.c: Likewise.
28094 * gimple-expr.c: Likewise.
28095 * gimple-fold.c: Likewise.
28096 * gimple-iterator.c: Likewise.
28097 * gimple-low.c: Likewise.
28098 * gimple-match-head.c: Likewise.
28099 * gimple-pretty-print.c: Likewise.
28100 * gimple-ssa-isolate-paths.c: Likewise.
28101 * gimple-ssa-strength-reduction.c: Likewise.
28102 * gimple-streamer-in.c: Likewise.
28103 * gimple-streamer-out.c: Likewise.
28104 * gimple-streamer.h: Likewise.
28105 * gimple-walk.c: Likewise.
28106 * gimple.c: Likewise.
28107 * gimplify-me.c: Likewise.
28108 * gimplify.c: Likewise.
28109 * godump.c: Likewise.
28110 * graph.c: Likewise.
28111 * graphite-blocking.c: Likewise.
28112 * graphite-dependences.c: Likewise.
28113 * graphite-interchange.c: Likewise.
28114 * graphite-isl-ast-to-gimple.c: Likewise.
28115 * graphite-optimize-isl.c: Likewise.
28116 * graphite-poly.c: Likewise.
28117 * graphite-scop-detection.c: Likewise.
28118 * graphite-sese-to-poly.c: Likewise.
28119 * graphite.c: Likewise.
28120 * haifa-sched.c: Likewise.
28121 * hooks.h: Likewise.
28122 * hw-doloop.c: Likewise.
28123 * ifcvt.c: Likewise.
28124 * incpath.c: Likewise.
28125 * init-regs.c: Likewise.
28126 * internal-fn.c: Likewise.
28127 * ipa-chkp.c: Likewise.
28128 * ipa-comdats.c: Likewise.
28129 * ipa-cp.c: Likewise.
28130 * ipa-devirt.c: Likewise.
28131 * ipa-icf-gimple.c: Likewise.
28132 * ipa-icf.c: Likewise.
28133 * ipa-inline-analysis.c: Likewise.
28134 * ipa-inline-transform.c: Likewise.
28135 * ipa-inline.c: Likewise.
28136 * ipa-polymorphic-call.c: Likewise.
28137 * ipa-profile.c: Likewise.
28138 * ipa-prop.c: Likewise.
28139 * ipa-pure-const.c: Likewise.
28140 * ipa-ref.c: Likewise.
28141 * ipa-reference.c: Likewise.
28142 * ipa-split.c: Likewise.
28143 * ipa-utils.c: Likewise.
28144 * ipa-visibility.c: Likewise.
28146 * ira-build.c: Likewise.
28147 * ira-color.c: Likewise.
28148 * ira-conflicts.c: Likewise.
28149 * ira-costs.c: Likewise.
28150 * ira-emit.c: Likewise.
28151 * ira-lives.c: Likewise.
28153 * jump.c: Likewise.
28154 * langhooks.c: Likewise.
28156 * loop-doloop.c: Likewise.
28157 * loop-init.c: Likewise.
28158 * loop-invariant.c: Likewise.
28159 * loop-iv.c: Likewise.
28160 * loop-unroll.c: Likewise.
28161 * lower-subreg.c: Likewise.
28162 * lra-assigns.c: Likewise.
28163 * lra-coalesce.c: Likewise.
28164 * lra-constraints.c: Likewise.
28165 * lra-eliminations.c: Likewise.
28166 * lra-lives.c: Likewise.
28167 * lra-remat.c: Likewise.
28168 * lra-spills.c: Likewise.
28170 * lto-cgraph.c: Likewise.
28171 * lto-compress.c: Likewise.
28172 * lto-opts.c: Likewise.
28173 * lto-section-in.c: Likewise.
28174 * lto-section-out.c: Likewise.
28175 * lto-streamer-in.c: Likewise.
28176 * lto-streamer-out.c: Likewise.
28177 * lto-streamer.c: Likewise.
28179 * mode-switching.c: Likewise.
28180 * modulo-sched.c: Likewise.
28181 * omega.c: Likewise.
28182 * omp-low.c: Likewise.
28183 * optabs.c: Likewise.
28184 * opts-global.c: Likewise.
28185 * passes.c: Likewise.
28186 * plugin.c: Likewise.
28187 * postreload-gcse.c: Likewise.
28188 * postreload.c: Likewise.
28189 * predict.c: Likewise.
28190 * print-rtl.c: Likewise.
28191 * print-tree.c: Likewise.
28192 * profile.c: Likewise.
28193 * real.c: Likewise.
28194 * realmpfr.c: Likewise.
28195 * realmpfr.h: Likewise.
28196 * recog.c: Likewise.
28198 * reg-stack.c: Likewise.
28199 * regcprop.c: Likewise.
28200 * reginfo.c: Likewise.
28201 * regrename.c: Likewise.
28202 * regs.h: Likewise.
28203 * regstat.c: Likewise.
28204 * reload.c: Likewise.
28205 * reload1.c: Likewise.
28206 * reorg.c: Likewise.
28207 * resource.c: Likewise.
28208 * rtl-chkp.c: Likewise.
28209 * rtlanal.c: Likewise.
28210 * rtlhooks.c: Likewise.
28211 * sanopt.c: Likewise.
28212 * sched-deps.c: Likewise.
28213 * sched-ebb.c: Likewise.
28214 * sched-rgn.c: Likewise.
28215 * sched-vis.c: Likewise.
28216 * sdbout.c: Likewise.
28217 * sel-sched-dump.c: Likewise.
28218 * sel-sched-ir.c: Likewise.
28219 * sel-sched.c: Likewise.
28220 * sese.c: Likewise.
28221 * shrink-wrap.c: Likewise.
28222 * shrink-wrap.h: Likewise.
28223 * simplify-rtx.c: Likewise.
28224 * stack-ptr-mod.c: Likewise.
28225 * statistics.c: Likewise.
28226 * stmt.c: Likewise.
28227 * stor-layout.c: Likewise.
28228 * store-motion.c: Likewise.
28229 * stringpool.c: Likewise.
28230 * symtab.c: Likewise.
28231 * target-globals.c: Likewise.
28232 * targhooks.c: Likewise.
28233 * toplev.c: Likewise.
28234 * tracer.c: Likewise.
28235 * trans-mem.c: Likewise.
28236 * tree-affine.c: Likewise.
28237 * tree-affine.h: Likewise.
28238 * tree-browser.c: Likewise.
28239 * tree-call-cdce.c: Likewise.
28240 * tree-cfg.c: Likewise.
28241 * tree-cfgcleanup.c: Likewise.
28242 * tree-chkp-opt.c: Likewise.
28243 * tree-chkp.c: Likewise.
28244 * tree-chrec.c: Likewise.
28245 * tree-complex.c: Likewise.
28246 * tree-data-ref.c: Likewise.
28247 * tree-dfa.c: Likewise.
28248 * tree-diagnostic.c: Likewise.
28249 * tree-dump.c: Likewise.
28250 * tree-eh.c: Likewise.
28251 * tree-emutls.c: Likewise.
28252 * tree-if-conv.c: Likewise.
28253 * tree-inline.c: Likewise.
28254 * tree-into-ssa.c: Likewise.
28255 * tree-iterator.c: Likewise.
28256 * tree-loop-distribution.c: Likewise.
28257 * tree-nested.c: Likewise.
28258 * tree-nrv.c: Likewise.
28259 * tree-object-size.c: Likewise.
28260 * tree-outof-ssa.c: Likewise.
28261 * tree-parloops.c: Likewise.
28262 * tree-phinodes.c: Likewise.
28263 * tree-predcom.c: Likewise.
28264 * tree-pretty-print.c: Likewise.
28265 * tree-pretty-print.h: Likewise.
28266 * tree-profile.c: Likewise.
28267 * tree-scalar-evolution.c: Likewise.
28268 * tree-sra.c: Likewise.
28269 * tree-ssa-address.c: Likewise.
28270 * tree-ssa-alias.c: Likewise.
28271 * tree-ssa-ccp.c: Likewise.
28272 * tree-ssa-coalesce.c: Likewise.
28273 * tree-ssa-copy.c: Likewise.
28274 * tree-ssa-copyrename.c: Likewise.
28275 * tree-ssa-dce.c: Likewise.
28276 * tree-ssa-dom.c: Likewise.
28277 * tree-ssa-dse.c: Likewise.
28278 * tree-ssa-forwprop.c: Likewise.
28279 * tree-ssa-ifcombine.c: Likewise.
28280 * tree-ssa-live.c: Likewise.
28281 * tree-ssa-loop-ch.c: Likewise.
28282 * tree-ssa-loop-im.c: Likewise.
28283 * tree-ssa-loop-ivcanon.c: Likewise.
28284 * tree-ssa-loop-ivopts.c: Likewise.
28285 * tree-ssa-loop-manip.c: Likewise.
28286 * tree-ssa-loop-niter.c: Likewise.
28287 * tree-ssa-loop-prefetch.c: Likewise.
28288 * tree-ssa-loop-unswitch.c: Likewise.
28289 * tree-ssa-loop.c: Likewise.
28290 * tree-ssa-loop.h: Likewise.
28291 * tree-ssa-math-opts.c: Likewise.
28292 * tree-ssa-operands.c: Likewise.
28293 * tree-ssa-phiopt.c: Likewise.
28294 * tree-ssa-phiprop.c: Likewise.
28295 * tree-ssa-pre.c: Likewise.
28296 * tree-ssa-propagate.c: Likewise.
28297 * tree-ssa-reassoc.c: Likewise.
28298 * tree-ssa-sccvn.c: Likewise.
28299 * tree-ssa-scopedtables.c: Likewise.
28300 * tree-ssa-sink.c: Likewise.
28301 * tree-ssa-strlen.c: Likewise.
28302 * tree-ssa-structalias.c: Likewise.
28303 * tree-ssa-tail-merge.c: Likewise.
28304 * tree-ssa-ter.c: Likewise.
28305 * tree-ssa-threadedge.c: Likewise.
28306 * tree-ssa-threadupdate.c: Likewise.
28307 * tree-ssa-uncprop.c: Likewise.
28308 * tree-ssa-uninit.c: Likewise.
28309 * tree-ssa.c: Likewise.
28310 * tree-ssanames.c: Likewise.
28311 * tree-stdarg.c: Likewise.
28312 * tree-streamer-in.c: Likewise.
28313 * tree-streamer-out.c: Likewise.
28314 * tree-streamer.c: Likewise.
28315 * tree-switch-conversion.c: Likewise.
28316 * tree-tailcall.c: Likewise.
28317 * tree-vect-data-refs.c: Likewise.
28318 * tree-vect-generic.c: Likewise.
28319 * tree-vect-loop-manip.c: Likewise.
28320 * tree-vect-loop.c: Likewise.
28321 * tree-vect-patterns.c: Likewise.
28322 * tree-vect-slp.c: Likewise.
28323 * tree-vect-stmts.c: Likewise.
28324 * tree-vectorizer.c: Likewise.
28325 * tree-vrp.c: Likewise.
28326 * tree.c: Likewise.
28327 * tsan.c: Likewise.
28328 * ubsan.c: Likewise.
28329 * valtrack.c: Likewise.
28330 * value-prof.c: Likewise.
28331 * var-tracking.c: Likewise.
28332 * varasm.c: Likewise.
28333 * varpool.c: Likewise.
28334 * vmsdbgout.c: Likewise.
28335 * vtable-verify.c: Likewise.
28337 * wide-int-print.cc: Likewise.
28338 * wide-int-print.h: Likewise.
28339 * wide-int.cc: Likewise.
28340 * xcoffout.c: Likewise.
28341 * config/aarch64/aarch64-builtins.c: Likewise.
28342 * config/aarch64/aarch64.c: Likewise.
28343 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
28344 * config/alpha/alpha.c: Likewise.
28345 * config/arc/arc.c: Likewise.
28346 * config/arm/aarch-common.c: Likewise.
28347 * config/arm/arm-builtins.c: Likewise.
28348 * config/arm/arm-c.c: Likewise.
28349 * config/arm/arm.c: Likewise.
28350 * config/avr/avr-c.c: Likewise.
28351 * config/avr/avr-log.c: Likewise.
28352 * config/avr/avr.c: Likewise.
28353 * config/bfin/bfin.c: Likewise.
28354 * config/c6x/c6x.c: Likewise.
28355 * config/cr16/cr16.c: Likewise.
28356 * config/cris/cris.c: Likewise.
28357 * config/darwin-c.c: Likewise.
28358 * config/darwin.c: Likewise.
28359 * config/default-c.c: Likewise.
28360 * config/epiphany/epiphany.c: Likewise.
28361 * config/epiphany/mode-switch-use.c: Likewise.
28362 * config/epiphany/resolve-sw-modes.c: Likewise.
28363 * config/fr30/fr30.c: Likewise.
28364 * config/frv/frv.c: Likewise.
28365 * config/ft32/ft32.c: Likewise.
28366 * config/glibc-c.c: Likewise.
28367 * config/h8300/h8300.c: Likewise.
28368 * config/i386/i386-c.c: Likewise.
28369 * config/i386/i386.c: Likewise.
28370 * config/i386/msformat-c.c: Likewise.
28371 * config/i386/winnt-cxx.c: Likewise.
28372 * config/i386/winnt-stubs.c: Likewise.
28373 * config/i386/winnt.c: Likewise.
28374 * config/ia64/ia64-c.c: Likewise.
28375 * config/ia64/ia64.c: Likewise.
28376 * config/iq2000/iq2000.c: Likewise.
28377 * config/lm32/lm32.c: Likewise.
28378 * config/m32c/m32c-pragma.c: Likewise.
28379 * config/m32c/m32c.c: Likewise.
28380 * config/m32r/m32r.c: Likewise.
28381 * config/m68k/m68k.c: Likewise.
28382 * config/mcore/mcore.c: Likewise.
28383 * config/mep/mep-pragma.c: Likewise.
28384 * config/mep/mep.c: Likewise.
28385 * config/microblaze/microblaze-c.c: Likewise.
28386 * config/microblaze/microblaze.c: Likewise.
28387 * config/mips/mips.c: Likewise.
28388 * config/mmix/mmix.c: Likewise.
28389 * config/mn10300/mn10300.c: Likewise.
28390 * config/moxie/moxie.c: Likewise.
28391 * config/msp430/msp430-c.c: Likewise.
28392 * config/msp430/msp430.c: Likewise.
28393 * config/nds32/nds32-cost.c: Likewise.
28394 * config/nds32/nds32-fp-as-gp.c: Likewise.
28395 * config/nds32/nds32-intrinsic.c: Likewise.
28396 * config/nds32/nds32-isr.c: Likewise.
28397 * config/nds32/nds32-md-auxiliary.c: Likewise.
28398 * config/nds32/nds32-memory-manipulation.c: Likewise.
28399 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
28400 * config/nds32/nds32-predicates.c: Likewise.
28401 * config/nds32/nds32.c: Likewise.
28402 * config/nios2/nios2.c: Likewise.
28403 * config/nvptx/nvptx.c: Likewise.
28404 * config/pa/pa.c: Likewise.
28405 * config/pdp11/pdp11.c: Likewise.
28406 * config/rl78/rl78-c.c: Likewise.
28407 * config/rl78/rl78.c: Likewise.
28408 * config/rs6000/rs6000-c.c: Likewise.
28409 * config/rs6000/rs6000.c: Likewise.
28410 * config/rx/rx.c: Likewise.
28411 * config/s390/s390-c.c: Likewise.
28412 * config/s390/s390.c: Likewise.
28413 * config/sh/sh-c.c: Likewise.
28414 * config/sh/sh-mem.cc: Likewise.
28415 * config/sh/sh.c: Likewise.
28416 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
28417 * config/sh/sh_treg_combine.cc: Likewise.
28418 * config/sol2-c.c: Likewise.
28419 * config/sol2-cxx.c: Likewise.
28420 * config/sol2-stubs.c: Likewise.
28421 * config/sol2.c: Likewise.
28422 * config/sparc/sparc-c.c: Likewise.
28423 * config/sparc/sparc.c: Likewise.
28424 * config/spu/spu-c.c: Likewise.
28425 * config/spu/spu.c: Likewise.
28426 * config/stormy16/stormy16.c: Likewise.
28427 * config/tilegx/mul-tables.c: Likewise.
28428 * config/tilegx/tilegx-c.c: Likewise.
28429 * config/tilegx/tilegx.c: Likewise.
28430 * config/tilepro/mul-tables.c: Likewise.
28431 * config/tilepro/tilepro-c.c: Likewise.
28432 * config/tilepro/tilepro.c: Likewise.
28433 * config/v850/v850-c.c: Likewise.
28434 * config/v850/v850.c: Likewise.
28435 * config/vax/vax.c: Likewise.
28436 * config/visium/visium.c: Likewise.
28437 * config/vms/vms-c.c: Likewise.
28438 * config/vms/vms.c: Likewise.
28439 * config/vxworks.c: Likewise.
28440 * config/winnt-c.c: Likewise.
28441 * config/xtensa/xtensa.c: Likewise.
28442 * common/config/bfin/bfin-common.c: Likewise.
28444 2015-06-04 Jan Hubicka <hubicka@ucw.cz>
28446 * tree.h (tree_code_for_canonical_type_merging): New function.
28447 * tree.c (gimple_canonical_types_compatible_p): Use
28448 tree_code_for_canonical_type_merging..
28450 2015-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28454 * doc/tm.texi: Regenerate.
28455 * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
28456 * target.def (TARGET_RELAXED_ORDERING): Likewise.
28457 * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
28458 * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
28459 * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
28460 * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
28461 * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
28462 * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
28463 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
28465 2015-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28467 * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
28468 register fma steering pass.
28469 * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
28470 AARCH64_TUNE_FMA_STEERING.
28472 2015-06-03 Jan Hubicka <hubicka@ucw.cz>
28474 * tree.c (verify_type_variant): Verify that type and variant is
28476 (gimple_canonical_types_compatible_p): Look for main variants.
28478 2015-06-03 Michael Meissner <meissner@linux.vnet.ibm.com>
28480 * config.gcc (powerpc*-*-*): Add support for a new configure
28481 option --with-advance-toolchain=<xxx> which overrides using the
28482 default header files, libraries and dynamic linker.
28484 * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
28485 specs to support the configure --with-advance-toolchain=<xxx>
28487 (INCLUDE_EXTRA_SPEC): Likewise.
28488 (LINK_OS_EXTRA_SPEC32): Likewise.
28489 (LINK_OK_EXTRA_SPEC64): Likewise.
28490 (LINK_OS_NEW_DTAGS_SPEC): Likewise.
28491 (DYNAMIC_LINKER_PREFIX): Likewise.
28492 (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
28494 (GLIBC_DYNAMIC_LINKER32): Likewise.
28495 (GLIBC_DYNAMIC_LINKER64): Likewise.
28496 (LINK_OS_LINUX_SPEC32): Likewise.
28497 (LINK_OS_LINUX_SPEC64): Likewise.
28499 * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
28500 configuration option.
28502 2015-06-03 Uros Bizjak <ubizjak@gmail.com>
28505 * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
28506 to determine current function ABI.
28507 (ix86_function_value_regno_p): Ditto.
28509 2015-06-03 Martin Liska <mliska@suse.cz>
28511 * alloc-pool.h (struct pool_usage): Correct GNU coding style.
28512 * bitmap.h (struct bitmap_usage): Likewise.
28513 * ggc-common.c (struct ggc_usage): Likewise.
28514 * mem-stats.h (struct mem_location): Likewise.
28515 (struct mem_usage): Likewise.
28516 * vec.c (struct vec_usage): Likewise.
28518 2015-06-03 Benigno B. Junior <bbj@gentoo.org>
28520 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
28523 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
28525 * doc/plugins.texi (enum plugin_event): New event.
28526 * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
28527 and PLUGIN_FINISH_FUNCTION.
28528 * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
28529 (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
28531 2015-06-03 Richard Biener <rguenther@suse.de>
28533 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
28534 compute GROUP_GAP for the first element.
28535 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
28538 2015-06-03 Nick Clifton <nickc@redhat.com>
28540 * config/rl78/rl78-real.md: Add peepholes to avoid a register
28541 copy when calling a function.
28542 * config/rl78/rl78.c (need_to_save): Do not push the frame
28543 pointer in an interrupt handler prologue if it is never used.
28545 2015-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28547 * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
28549 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
28551 * ipa-chkp.c (chkp_maybe_create_clone): Create alias
28552 reference when cloning alias node.
28554 2015-06-03 Martin Liska <mliska@suse.cz>
28556 * alloc-pool.h (struct pool_usage): Correct space padding.
28557 * ggc-page.c (ggc_print_statistics): Align columns in a report.
28558 * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
28559 * tree.c (dump_tree_statistics): Align columns in a report.
28561 2015-06-03 Martin Liska <mliska@suse.cz>
28563 * alloc-pool.c (allocate_pool_descriptor): Remove.
28564 (struct pool_output_info): Likewise.
28565 (print_alloc_pool_statistics): Likewise.
28566 (dump_alloc_pool_statistics): Likewise.
28567 * alloc-pool.h (struct pool_usage): New struct.
28568 (pool_allocator::initialize): Change usage of memory statistics
28569 to a new interface.
28570 (pool_allocator::release): Likewise.
28571 (pool_allocator::allocate): Likewise.
28572 (pool_allocator::remove): Likewise.
28573 * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
28574 for a pool allocator.
28575 * mem-stats.h (struct mem_location): Add new ctor.
28576 (struct mem_usage): Add counter for number of
28578 (mem_alloc_description::register_descriptor): New overload of
28579 * mem-stats.h (mem_location::to_string): New function.
28580 * bitmap.h (struct bitmap_usage): Use this new function.
28581 * ggc-common.c (struct ggc_usage): Likewise.
28584 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
28586 * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
28587 of GCC_INSN_FLAGS_H block.
28589 2015-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
28591 * explow.c (plus_constant): Update check after force_const_mem call
28592 to see if the value returned is not a NULL_RTX.
28594 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
28596 * ipa.c (symbol_table::remove_unreachable_nodes): Don't
28597 remove instumentation thunks calling reachable functions.
28598 * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
28599 * lto/lto-partition.c (privatize_symbol_name_1): New.
28600 (privatize_symbol_name): Privatize both decl and orig_decl
28601 names for instrumented functions.
28602 * cgraph.c (cgraph_node::verify_node): Add transparent
28603 alias chain check for instrumented node.
28605 2015-06-03 Marek Polacek <polacek@redhat.com>
28609 * tree.c (attribute_value_equal): Handle attribute format.
28610 (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
28612 2015-06-03 Richard Biener <rguenther@suse.de>
28614 PR tree-optimization/63916
28615 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
28616 Forward-propagate non-invariant addresses by splicing their
28617 reference ops if the result isn't going to be used by PRE.
28618 (vn_reference_lookup_3): Remove pointless assert.
28620 2015-06-03 Richard Biener <rguenther@suse.de>
28622 PR tree-optimization/66375
28623 * tree-scalar-evolution.c (follow_ssa_edge_binary): First
28624 add to the evolution before following SSA edges.
28626 2015-06-03 Bin Cheng <bin.cheng@arm.com>
28628 * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
28629 (dump_use, dump_cand, find_induction_variables): Pass new argument
28631 (record_use): Preserve the ssa name information in IV.
28633 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
28635 * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
28637 (add_mode_tests): Don't add mode tests if the predicate only
28638 accepts scalar constant integers. Otherwise, allow the mode
28639 of "op" to be VOIDmode if the predicate does accept such integers.
28641 2015-06-02 Jim Wilson <jim.wilson@linaro.org>
28644 * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
28645 !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
28646 (aarch64_secondary_reload): Likewise
28647 (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
28649 (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
28652 2015-06-03 Kugan Vivekanandarajah <kuganv@linaro.org>
28653 Zhenqiang Chen <zhenqiang.chen@linaro.org>
28656 * cprop.c (try_replace_reg): Check cost of constants before propagating.
28658 2015-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
28660 * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
28661 provide access to the IBM extended double floating point mode if
28662 long double is IEEE 128-bit floating point.
28663 (KFmode): Define KFmode to provide access to IEEE 128-bit floating
28664 point if long double is the IBM extended double type.
28666 * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
28667 enable adding IEEE 128-bit floating point support.
28668 (-mfloat128-software): Likewise.
28669 (-mfloat128-sw): Likewise.
28671 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
28672 128-bit floating point types to occupy any register if
28673 -mlong-double-64. Do not allow use of IFmode/KFmode unless
28674 -mfloat128-software is enabled.
28675 (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
28677 (rs6000_option_override_internal): Add -mfloat128-* support.
28678 (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
28680 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
28681 and float128 type nodes.
28682 (ieee128_float_type_node): Likewise.
28683 (ibm128_float_type_node): Likewise.
28685 2015-06-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
28688 * config/aarch64/geniterators.sh: Rewrite in awk.
28690 2015-06-02 Martin Liska <mliska@suse.cz>
28692 * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
28693 values to avoid -Wmaybe-uninitialized errors.
28695 2015-06-02 Richard Biener <rguenther@suse.de>
28698 * dwarf2out.c (lookup_context_die): New function.
28699 (resolve_addr): Avoid forcing a full DIE for the
28700 target of a DW_TAG_GNU_call_site during late compilation.
28701 Instead create a stub DIE without a type if we have a
28702 context DIE present.
28704 2015-06-02 Uros Bizjak <ubizjak@gmail.com>
28706 * df-scan.c (df_scan_start_dump): Add space between regno and regname.
28708 2015-06-02 Bin Cheng <bin.cheng@arm.com>
28710 PR tree-optimization/48052
28711 * cfgloop.h (struct control_iv): New.
28712 (struct loop): New field control_ivs.
28713 * tree-ssa-loop-niter.c : Include "stor-layout.h".
28714 (number_of_iterations_lt): Set no_overflow information.
28715 (number_of_iterations_exit): Init control iv in niter struct.
28716 (record_control_iv): New.
28717 (estimate_numbers_of_iterations_loop): Call record_control_iv.
28718 (loop_exits_before_overflow): New. Interface factored out of
28719 scev_probably_wraps_p.
28720 (scev_probably_wraps_p): Factor loop niter related code into
28721 loop_exits_before_overflow.
28722 (free_numbers_of_iterations_estimates_loop): Free control ivs.
28723 * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
28725 2015-06-02 Eric Botcazou <ebotcazou@adacore.com>
28727 * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
28728 the target doesn't belong to the current function.
28730 2015-06-02 Marek Polacek <polacek@redhat.com>
28732 PR middle-end/66345
28733 * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
28734 get_maxval_strlen does not produce an INTEGER_CST.
28736 2015-06-02 Richard Sandiford <richard.sandiford@arm.com>
28738 * config/arc/constraints.md: Use lower-case names in match_code.
28739 * config/mmix/constraints.md: Likewise.
28741 2015-06-02 Richard Biener <rguenther@suse.de>
28743 PR tree-optimization/65961
28744 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
28745 check and clarify dump message.
28746 (vect_build_slp_tree): If all children are built up from scalars
28747 build up the parent from scalars instead.
28748 * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
28750 2015-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
28753 * gdbhooks.py: Use int(...) instead of long(...). Use print(...)
28754 instead of print ... .
28756 2015-06-02 Alan Modra <amodra@gmail.com>
28758 * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
28761 2015-06-02 Bin Cheng <bin.cheng@arm.com>
28763 PR tree-optimization/52563
28764 PR tree-optimization/62173
28765 * tree-ssa-loop-ivopts.c (struct iv): New field. Reorder fields.
28766 (alloc_iv, set_iv): New parameter.
28767 (determine_biv_step): Delete.
28768 (find_bivs): Inline original determine_biv_step. Pass new
28769 argument to set_iv.
28770 (idx_find_step): Use no_overflow information for conversion.
28771 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
28772 resolve_mixers handle folded_casts.
28773 (instantiate_scev_name): Change bool parameter to bool pointer.
28774 (instantiate_scev_poly, instantiate_scev_binary): Ditto.
28775 (instantiate_array_ref, instantiate_scev_not): Ditto.
28776 (instantiate_scev_3, instantiate_scev_2): Ditto.
28777 (instantiate_scev_1, instantiate_scev_r): Ditto.
28778 (instantiate_scev_convert, ): Change parameter. Pass argument
28779 to chrec_convert_aggressive.
28780 (instantiate_scev): Change argument.
28781 (resolve_mixers): New parameter and set it.
28782 (scev_const_prop): New argument.
28783 * tree-scalar-evolution.h (resolve_mixers): New parameter.
28784 * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
28786 (chrec_convert): New parameter. Move definition below.
28787 (chrec_convert_aggressive): New parameter and set it. Call
28788 convert_affine_scev.
28789 * tree-chrec.h (chrec_convert): New parameter.
28790 (chrec_convert_aggressive): Ditto.
28792 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
28794 * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
28795 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
28796 the LHS of a no-return call if its type has variable size.
28797 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
28798 * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
28800 2015-06-01 Andreas Tobler <andreast@gcc.gnu.org>
28802 * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
28803 * config.in: Regenerate.
28805 2015-06-01 Yuri Rumyantsev <ysrumyan@gmail.com>
28807 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
28808 consecutive accesses within outer-loop with force_vectorize
28809 for references with zero step in inner-loop.
28811 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
28813 * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
28814 rather than from gcc/build directory.
28816 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
28819 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
28820 for __sync memory models, emit initial loads and final barriers as
28823 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
28826 * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
28827 (aarch64_split_atomic_op): Check for __sync memory models, emit
28828 appropriate initial loads and final barriers.
28830 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
28832 * Makefile.in: Fix gcov dependencies that should
28833 not point to a build folder.
28835 2015-06-01 Richard Biener <rguenther@suse.de>
28838 2015-05-29 Richard Biener <rguenther@suse.de>
28840 PR tree-optimization/66314
28841 * tree-ssa-threadupdate.c (create_block_for_threading): Add
28842 parameter that says which loop the new block belongs to.
28843 (ssa_create_duplicates): Blocks duplicated for the threaded
28844 path belong to the loop of the thread destination.
28846 2015-06-01 Martin Liska <mliska@suse.cz>
28848 * sched-deps.c: Include pool-alloc.h before
28849 cselib.h header file is included.
28851 2015-06-01 Richard Biener <rguenther@suse.de>
28853 * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
28856 2015-06-01 Martin Liska <mliska@suse.cz>
28858 * alloc-pool.h: Add ATTRIBUTE_UNUSED for
28859 a function local variable.
28861 2015-06-01 Martin Liska <mliska@suse.cz>
28863 * alloc-pool.c (create_alloc_pool): Remove.
28864 (empty_alloc_pool): Likewise.
28865 (free_alloc_pool): Likewise.
28866 (free_alloc_pool_if_empty): Likewise.
28867 (pool_alloc): Likewise.
28868 (pool_free): Likewise.
28869 * alloc-pool.h: Remove old declarations.
28871 2015-06-01 Martin Liska <mliska@suse.cz>
28873 * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
28874 (ira_create_object): Likewise.
28875 (ira_create_allocno): Likewise.
28876 (ira_create_live_range): Likewise.
28877 (copy_live_range): Likewise.
28878 (ira_finish_live_range): Likewise.
28879 (ira_free_allocno_costs): Likewise.
28880 (finish_allocno): Likewise.
28881 (finish_allocnos): Likewise.
28882 (initiate_prefs): Likewise.
28883 (ira_create_pref): Likewise.
28884 (finish_pref): Likewise.
28885 (finish_prefs): Likewise.
28886 (initiate_copies): Likewise.
28887 (ira_create_copy): Likewise.
28888 (finish_copy): Likewise.
28889 (finish_copies): Likewise.
28890 (finish_prefs): Likewise.
28892 2015-06-01 Martin Liska <mliska@suse.cz>
28894 * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
28895 (allocate_and_init_ipcp_value): Likewise.
28896 (ipcp_lattice::add_value): Likewise.
28897 (merge_agg_lats_step): Likewise.
28898 (ipcp_driver): Likewise.
28899 * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
28900 (ipa_free_all_structures_after_iinln): Likewise.
28901 * ipa-prop.h: Likewise.
28903 2015-06-01 Martin Liska <mliska@suse.cz>
28905 * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
28907 (set_hint_predicate): Likewise.
28908 (inline_summary_alloc): Likewise.
28909 (reset_inline_edge_summary): Likewise.
28910 (reset_inline_summary): Likewise.
28911 (set_cond_stmt_execution_predicate): Likewise.
28912 (set_switch_stmt_execution_predicate): Likewise.
28913 (compute_bb_predicates): Likewise.
28914 (estimate_function_body_sizes): Likewise.
28915 (inline_free_summary): Likewise.
28917 2015-06-01 Martin Liska <mliska@suse.cz>
28919 * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
28920 (ipa_edge_duplication_hook): Likewise.
28921 (ipa_free_all_structures_after_ipa_cp): Likewise.
28922 (ipa_free_all_structures_after_iinln): Likewise.
28924 2015-06-01 Martin Liska <mliska@suse.cz>
28926 * ipa-profile.c (account_time_size): Use new type-based pool allocator.
28927 (ipa_profile_generate_summary): Likewise.
28928 (ipa_profile_read_summary): Likewise.
28929 (ipa_profile): Likewise.
28931 2015-06-01 Martin Liska <mliska@suse.cz>
28933 * tree-ssa-structalias.c (new_var_info): Use new type-based
28935 (new_constraint): Likewise.
28936 (init_alias_vars): Likewise.
28937 (delete_points_to_sets): Likewise.
28939 2015-06-01 Martin Liska <mliska@suse.cz>
28941 * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
28942 (free_strinfo): Likewise.
28943 (pass_strlen::execute): Likewise.
28945 2015-06-01 Martin Liska <mliska@suse.cz>
28947 * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
28949 (vn_reference_insert_pieces): Likewise.
28950 (vn_phi_insert): Likewise.
28951 (visit_reference_op_call): Likewise.
28952 (copy_phi): Likewise.
28953 (copy_reference): Likewise.
28954 (process_scc): Likewise.
28955 (allocate_vn_table): Likewise.
28956 (free_vn_table): Likewise.
28958 2015-06-01 Martin Liska <mliska@suse.cz>
28960 * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
28962 (add_repeat_to_ops_vec): Likewise.
28963 (get_ops): Likewise.
28964 (maybe_optimize_range_tests): Likewise.
28965 (init_reassoc): Likewise.
28966 (fini_reassoc): Likewise.
28968 2015-06-01 Martin Liska <mliska@suse.cz>
28970 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
28972 (bitmap_set_new): Likewise.
28973 (get_or_alloc_expr_for_constant): Likewise.
28974 (get_or_alloc_expr_for): Likewise.
28975 (phi_translate_1): Likewise.
28976 (compute_avail): Likewise.
28977 (init_pre): Likewise.
28978 (fini_pre): Likewise.
28980 2015-06-01 Martin Liska <mliska@suse.cz>
28982 * sched-deps.c (create_dep_node): Use new type-based pool allocator.
28983 (delete_dep_node): Likewise.
28984 (create_deps_list): Likewise.
28985 (free_deps_list): Likewise.
28986 (sched_deps_init): Likewise.
28987 (sched_deps_finish): Likewise.
28989 2015-06-01 Martin Liska <mliska@suse.cz>
28991 * regcprop.c (free_debug_insn_changes): Use new type-based
28993 (replace_oldest_value_reg): Likewise.
28994 (pass_cprop_hardreg::execute): Likewise.
28996 2015-06-01 Martin Liska <mliska@suse.cz>
28998 * ira-build.c (initiate_cost_vectors): Use new type-based
29000 (ira_allocate_cost_vector): Likewise.
29001 (ira_free_cost_vector): Likewise.
29002 (finish_cost_vectors): Likewise.
29004 2015-06-01 Martin Liska <mliska@suse.cz>
29006 * sel-sched-ir.c (alloc_sched_pools): Use new type-based
29008 (free_sched_pools): Likewise.
29009 * sel-sched-ir.h (_list_alloc): Likewise.
29010 (_list_remove): Likewise.
29012 2015-06-01 Martin Liska <mliska@suse.cz>
29014 * stmt.c (add_case_node): Use new type-based pool allocator.
29015 (expand_case): Likewise.
29016 (expand_sjlj_dispatch_table): Likewise.
29018 2015-06-01 Martin Liska <mliska@suse.cz>
29020 * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
29021 (free_bb): Likewise.
29022 (pass_cse_reciprocals::execute): Likewise.
29024 2015-06-01 Martin Liska <mliska@suse.cz>
29026 * tree-sra.c (sra_initialize): Use new type-based pool allocator.
29027 (sra_deinitialize) Likewise.
29028 (create_access_1) Likewise.
29029 (build_accesses_from_assign) Likewise.
29030 (create_artificial_child_access) Likewise.
29032 2015-06-01 Martin Liska <mliska@suse.cz>
29034 * dse.c (get_group_info):Use new type-based pool allocator.
29035 (dse_step0) Likewise.
29036 (free_store_info) Likewise.
29037 (delete_dead_store_insn) Likewise.
29038 (free_read_records) Likewise.
29039 (record_store) Likewise.
29040 (replace_read) Likewise.
29041 (check_mem_read_rtx) Likewise.
29042 (scan_insn) Likewise.
29043 (dse_step1) Likewise.
29044 (dse_step7) Likewise.
29046 2015-06-01 Martin Liska <mliska@suse.cz>
29048 * df-scan.c (struct df_scan_problem_data):Use new type-based
29050 (df_scan_free_internal) Likewise.
29051 (df_scan_alloc) Likewise.
29052 (df_grow_reg_info) Likewise.
29053 (df_free_ref) Likewise.
29054 (df_insn_create_insn_record) Likewise.
29055 (df_mw_hardreg_chain_delete) Likewise.
29056 (df_insn_info_delete) Likewise.
29057 (df_free_collection_rec) Likewise.
29058 (df_mw_hardreg_chain_delete_eq_uses) Likewise.
29059 (df_sort_and_compress_mws) Likewise.
29060 (df_ref_create_structure) Likewise.
29061 (df_ref_record) Likewise.
29063 2015-06-01 Martin Liska <mliska@suse.cz>
29065 * df-problems.c (df_chain_create):Use new type-based pool allocator.
29066 (df_chain_unlink_1) Likewise.
29067 (df_chain_unlink) Likewise.
29068 (df_chain_remove_problem) Likewise.
29069 (df_chain_alloc) Likewise.
29070 (df_chain_free) Likewise.
29071 * df.h (struct dataflow) Likewise.
29073 2015-06-01 Martin Liska <mliska@suse.cz>
29075 * cselib.c (new_elt_list):Use new type-based pool allocator.
29076 (new_elt_loc_list) Likewise.
29077 (unchain_one_elt_list) Likewise.
29078 (unchain_one_elt_loc_list) Likewise.
29079 (unchain_one_value) Likewise.
29080 (new_cselib_val) Likewise.
29081 (cselib_init) Likewise.
29082 (cselib_finish) Likewise.
29084 2015-06-01 Martin Liska <mliska@suse.cz>
29086 * config/sh/sh.c (add_constant):Use new type-based pool allocator.
29087 (sh_reorg) Likewise.
29089 2015-06-01 Martin Liska <mliska@suse.cz>
29091 * cfg.c (initialize_original_copy_tables):Use new type-based
29093 (free_original_copy_tables) Likewise.
29094 (copy_original_table_clear) Likewise.
29095 (copy_original_table_set) Likewise.
29097 2015-06-01 Martin Liska <mliska@suse.cz>
29099 * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
29101 (asan_mem_ref_new) Likewise.
29102 (free_mem_ref_resources) Likewise.
29104 2015-06-01 Martin Liska <mliska@suse.cz>
29106 * var-tracking.c (variable_htab_free):Use new type-based
29108 (attrs_list_clear) Likewise.
29109 (attrs_list_insert) Likewise.
29110 (attrs_list_copy) Likewise.
29111 (shared_hash_unshare) Likewise.
29112 (shared_hash_destroy) Likewise.
29113 (unshare_variable) Likewise.
29114 (var_reg_delete_and_set) Likewise.
29115 (var_reg_delete) Likewise.
29116 (var_regno_delete) Likewise.
29117 (drop_overlapping_mem_locs) Likewise.
29118 (variable_union) Likewise.
29119 (insert_into_intersection) Likewise.
29120 (canonicalize_values_star) Likewise.
29121 (variable_merge_over_cur) Likewise.
29122 (dataflow_set_merge) Likewise.
29123 (remove_duplicate_values) Likewise.
29124 (variable_post_merge_new_vals) Likewise.
29125 (dataflow_set_preserve_mem_locs) Likewise.
29126 (dataflow_set_remove_mem_locs) Likewise.
29127 (variable_from_dropped) Likewise.
29128 (variable_was_changed) Likewise.
29129 (set_slot_part) Likewise.
29130 (clobber_slot_part) Likewise.
29131 (delete_slot_part) Likewise.
29132 (loc_exp_insert_dep) Likewise.
29133 (notify_dependents_of_changed_value) Likewise.
29134 (emit_notes_for_differences_1) Likewise.
29135 (vt_emit_notes) Likewise.
29136 (vt_initialize) Likewise.
29137 (vt_finalize) Likewise.
29139 2015-06-01 Martin Liska <mliska@suse.cz>
29141 * ira-color.c (init_update_cost_records):Use new type-based
29143 (get_update_cost_record) Likewise.
29144 (free_update_cost_record_list) Likewise.
29145 (finish_update_cost_records) Likewise.
29146 (initiate_cost_update) Likewise.
29148 2015-06-01 Martin Liska <mliska@suse.cz>
29150 * lra.c (init_insn_regs): Use new type-based pool allocator.
29151 (new_insn_reg) Likewise.
29152 (free_insn_reg) Likewise.
29153 (free_insn_regs) Likewise.
29154 (finish_insn_regs) Likewise.
29155 (init_insn_recog_data) Likewise.
29156 (init_reg_info) Likewise.
29157 (finish_reg_info) Likewise.
29158 (lra_free_copies) Likewise.
29159 (lra_create_copy) Likewise.
29160 (invalidate_insn_data_regno_info) Likewise.
29162 2015-06-01 Martin Liska <mliska@suse.cz>
29164 * lra-lives.c (free_live_range): Use new type-based pool allocator.
29165 (free_live_range_list) Likewise.
29166 (create_live_range) Likewise.
29167 (copy_live_range) Likewise.
29168 (lra_merge_live_ranges) Likewise.
29169 (remove_some_program_points_and_update_live_ranges) Likewise.
29170 (lra_live_ranges_init) Likewise.
29171 (lra_live_ranges_finish) Likewise.
29173 2015-06-01 Martin Liska <mliska@suse.cz>
29175 * et-forest.c (et_new_occ): Use new type-based pool allocator.
29176 (et_new_tree): Likewise.
29177 (et_free_tree): Likewise.
29178 (et_free_tree_force): Likewise.
29179 (et_free_pools): Likewise.
29180 (et_split): Likewise.
29182 2015-06-01 Martin Liska <mliska@suse.cz>
29184 * alloc-pool.c (struct alloc_pool_descriptor): Move definition
29186 * alloc-pool.h (pool_allocator::pool_allocator): New function.
29187 (pool_allocator::release): Likewise.
29188 (inline pool_allocator::release_if_empty): Likewise.
29189 (inline pool_allocator::~pool_allocator): Likewise.
29190 (pool_allocator::allocate): Likewise.
29191 (pool_allocator::remove): Likewise.
29193 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
29195 * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
29198 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
29200 * config/arm/arm-protos.h (tune_params): Rename fuseable_ops
29202 * config/arm/arm.c (arm_print_tune_info): Likewise.
29203 (arm_macro_fusion_p): Likewise.
29204 (arm_macro_fusion_pair_p): Likewise.
29206 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
29208 * config/aarch64/aarch64-protos.h (tune_params): Rename
29209 fuseable_ops to fusible_ops.
29210 * config/aarch64/aarch64.c (generic_tunings): Rename
29211 fuseable_ops to fusible_ops.
29212 (cortexa53_tunings): Likewise.
29213 (cortexa57_tunings): Likewise.
29214 (thunderx_tunings): Likewise.
29215 (xgene1_tunings): Likewise.
29216 (aarch64_macro_fusion_p): Likewise.
29217 (aarch64_macro_fusion_pair_p): Likewise.
29219 2015-06-01 Dominik Vogt <vogt@linux.vnet.ibm.com>
29221 * config/s390/driver-native.c: New file.
29222 * config/s390/x-native: New file.
29223 * config.host: Add new files for s390.
29224 * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
29226 * config.gcc: Likewise.
29227 * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
29228 * config/s390/s390-opts.h (enum processor_type): Ditto.
29229 * config/s390/s390.c (s390_option_override): Catch unhandled
29232 2015-06-01 Ilya Enkovich <ilya.enkovich@intel.com>
29235 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
29236 redirection for instrumented calls.
29237 * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
29238 (append_compiler_options): Append -fcheck-pointer-bounds.
29239 * tree-chkp.h (chkp_copy_call_skip_bounds): New.
29240 (chkp_redirect_edge): New.
29241 * tree-chkp.c (chkp_copy_call_skip_bounds): New.
29242 (chkp_redirect_edge): New.
29244 2015-06-01 Richard Biener <rguenther@suse.de>
29246 PR tree-optimization/66280
29247 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
29250 2015-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29252 * config/aarch64/aarch64.md
29253 (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
29256 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
29258 * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
29259 Remove obsolete kludge.
29261 2015-06-01 Richard Biener <rguenther@suse.de>
29263 * tree-ssa-reassoc.c (get_rank): Simplify.
29265 2015-05-31 H.J. Lu <hongjiu.lu@intel.com>
29267 * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
29268 * configure: Regenerated.
29270 2015-05-31 Mikhail Maltsev <maltsevm@gmail.com>
29272 * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
29273 issue (add space between string literal and macro).
29274 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
29276 2015-05-30 Andreas Schwab <schwab@linux-m68k.org>
29278 * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
29279 implict or explicit -fPIE or -fpie.
29281 2015-05-30 Mike Frysinger <vapier@gentoo.org>
29283 * config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
29285 2015-05-28 DJ Delorie <dj@redhat.com>
29287 * expmed.c (extract_bit_field_1): Avoid clobbering a
29288 yet-to-be-used base/index register.
29290 2015-05-30 Jan Hubicka <hubicka@ucw.cz>
29292 * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
29293 (alias_stats): Add num_universal.
29294 (alias_set_subset_of): Special case pointers; be ready for NULL
29296 (alias_sets_conflict_p): Special case pointers; be ready for NULL
29298 (init_alias_set_entry): Break out from ...
29299 (record_alias_subset): ... here; propagate new fields;
29300 allocate children only when really needed.
29301 (get_alias_set): Do less generous pointer globbing.
29302 (dump_alias_stats_in_alias_c): Update statistics.
29304 2015-05-30 Alan Modra <amodra@gmail.com>
29306 * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
29307 correct block for use of r12.
29308 (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
29310 2015-05-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
29313 * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
29316 2015-05-29 Jakub Jelinek <jakub@redhat.com>
29318 PR tree-optimization/66142
29319 * tree-if-conv.c (if_convertible_phi_p): Don't give up on
29320 virtual phis that feed themselves.
29322 2015-05-29 Richard Biener <rguenther@suse.de>
29324 PR tree-optimization/66314
29325 * tree-ssa-threadupdate.c (create_block_for_threading): Add
29326 parameter that says which loop the new block belongs to.
29327 (ssa_create_duplicates): Blocks duplicated for the threaded
29328 path belong to the loop of the thread destination.
29330 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
29332 * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
29333 to cleanup-saved-temps.
29334 * doc/sourcebuild.texi (Clean up generated test files): Expand
29336 (dg-keep-saved-temps): Document new proc.
29337 (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
29338 cleanup-saved-temps): Remove.
29340 2015-05-28 Andreas Tobler <andreast@gcc.gnu.org>
29342 * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
29343 gcc_AC_CHECK_DECLS.
29344 * configure: Regenerate.
29346 2015-05-28 Mike Frysinger <vapier@gentoo.org>
29348 * config/nios2/linux.h (CPP_SPEC): Define.
29350 2015-05-28 Mike Frysinger <vapier@gentoo.org>
29352 * config/microblaze/linux.h (CPP_SPEC): Define.
29354 2015-05-28 Mike Frysinger <vapier@gentoo.org>
29356 * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
29357 -pthread is specified.
29359 2015-05-28 Richard Biener <rguenther@suse.de>
29361 * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
29362 (vect_fixup_scalar_cycles_with_patterns): Likewise.
29363 (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
29364 after pattern recog.
29365 (vect_create_epilog_for_reduction): Properly handle reductions
29367 (vectorizable_reduction): Likewise.
29368 * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
29370 (vect_get_constant_vectors): Create the correct number of
29371 initial values for reductions.
29372 (vect_schedule_slp_instance): Handle reduction chains that are
29373 type changing properly.
29374 * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
29376 2015-05-28 Richard Biener <rguenther@suse.de>
29378 PR tree-optimization/66142
29379 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
29380 values better in memcpy destination handling. Handle non-aliasing
29383 2015-05-28 Lawrence Velázquez <vq@larryv.me>
29386 * config/darwin-c.c (version_components): New global enum.
29387 (parse_version, version_as_legacy_macro)
29388 (version_as_modern_macro, macosx_version_as_macro): New functions.
29389 (version_as_macro): Remove.
29390 (darwin_cpp_builtins): Use new function.
29392 2015-05-28 H.J. Lu <hongjiu.lu@intel.com>
29394 * builtins.c (expand_builtin_acc_on_device): Mark parameters
29395 with ATTRIBUTE_UNUSED.
29397 2015-05-28 Julian Brown <julian@codesourcery.com>
29401 * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
29402 sequence for !ACCEL_COMPILER.
29404 2015-05-28 Nick Clifton <nickc@redhat.com>
29406 * config/rx/rx.c (push_regs): New function. Extracts code from...
29407 (rx_expand_prologue): ... here. Use push_regs to push even small
29408 spans of registers.
29409 (pop_regs): New function.
29410 (rx_expand_epilogue): Use pop_regs to pop even small spans of
29413 2015-05-28 Richard Biener <rguenther@suse.de>
29415 * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
29417 (SLP_INSTANCE_BODY_COST_VEC): Remove.
29418 (vect_update_slp_costs_according_to_vf): Likewise.
29419 (vect_slp_analyze_operations): Update prototype.
29420 * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
29421 vect_update_slp_costs_according_to_vf, adjust.
29422 * tree-vect-slp.c (vect_free_slp_instance): Adjust.
29423 (vect_analyze_slp_cost_1): Likewise.
29424 (vect_analyze_slp_cost): Likewise. Properly deal with
29425 widening reduction ops. Commit body costs.
29426 (vect_analyze_slp_instance): Adjust. Do not analyze SLP
29427 cost for loops from here.
29428 (vect_slp_analyze_operations): But do it from here when
29429 the vectorization factor is known and stmts are analyzed.
29430 (vect_bb_vectorization_profitable_p): Simplify.
29431 (vect_slp_analyze_bb_1): Do not compute SLP cost here.
29432 (vect_update_slp_costs_according_to_vf): Remove.
29434 2015-05-27 Magnus Granberg <zorry@gentoo.org>
29435 H.J. Lu <hongjiu.lu@intel.com>
29437 * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
29438 (BUILD_CFLAGS): Likewise.
29439 (BUILD_CXXFLAGS): Likewise.
29440 (LINKER): Add @NO_PIE_FLAG@.
29441 (BUILD_LDFLAGS): Likewise.
29442 (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
29443 --enable-default-pie.
29444 * common.opt (fPIE): Initialize to -1.
29446 (no-pie): New option.
29447 (pie): Replace "Negative(shared)" with "Negative(no-pie)".
29448 * configure.ac: Add --enable-default-pie.
29449 (NO_PIE_CFLAGS): New. Check if -fno-PIE works. AC_SUBST.
29450 (NO_PIE_FLAG): New. Check if -no-pie works. AC_SUBST.
29451 * defaults.h (DEFAULT_FLAG_PIE): New. Default PIE to -fPIE.
29452 * gcc.c (NO_PIE_SPEC): New.
29453 (PIE_SPEC): Likewise.
29454 (NO_FPIE1_SPEC): Likewise.
29455 (FPIE1_SPEC): Likewise.
29456 (NO_FPIE2_SPEC): Likewise.
29457 (FPIE2_SPEC): Likewise.
29458 (NO_FPIE2_SPEC): Likewise.
29459 (FPIE_SPEC): Likewise.
29460 (NO_FPIE_SPEC): Likewise.
29461 (NO_FPIC1_SPEC): Likewise.
29462 (FPIC1_SPEC): Likewise.
29463 (NO_FPIC2_SPEC): Likewise.
29464 (FPIC2_SPEC): Likewise.
29465 (NO_FPIC2_SPEC): Likewise.
29466 (FPIC_SPEC): Likewise.
29467 (NO_FPIC_SPEC): Likewise.
29468 (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
29469 (FPIE1_OR_FPIC1_SPEC): Likewise.
29470 (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
29471 (FPIE2_OR_FPIC2_SPEC): Likewise.
29472 (NO_FPIE_AND_FPIC_SPEC): Likewise.
29473 (FPIE_OR_FPIC_SPEC): Likewise.
29474 (LD_PIE_SPEC): Likewise.
29475 (LINK_PIE_SPEC): Handle -no-pie. Use PIE_SPEC and LD_PIE_SPEC.
29476 * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
29477 * config/darwin.h (PIE_SPEC): Renamed to ...
29478 (DARWIN_PIE_SPEC): This.
29479 (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
29480 * config/darwin9.h (PIE_SPEC): Renamed to ...
29481 (DARWIN_PIE_SPEC): This.
29482 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
29483 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
29484 * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
29485 FPIE2_OR_FPIC2_SPEC.
29486 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
29487 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
29488 * config/sol2.h (ASM_PIC_SPEC): Likewise.
29489 * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
29490 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
29491 * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
29492 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
29493 * config/m32r/m32r.h (ASM_SPEC): Likewise.
29494 * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
29495 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
29496 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
29497 * config/sparc/freebsd.h (ASM_SPEC): Likewise.
29498 * config/sparc/linux.h (ASM_SPEC): Likewise.
29499 * config/sparc/linux64.h (ASM_SPEC): Likewise.
29500 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
29501 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
29502 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
29503 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
29504 * config/sparc/sparc.h (ASM_SPEC): Likewise.
29505 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
29506 * config/sparc/vxworks.h (ASM_SPEC): Likewise.
29507 * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
29508 FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
29509 * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
29510 * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
29511 NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
29512 (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
29513 * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
29514 * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
29515 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
29516 * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
29517 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
29518 * config/vax/linux.h (ASM_SPEC): Likewise.
29519 * doc/install.texi: Document --enable-default-pie.
29520 * doc/invoke.texi: Document -no-pie.
29521 * config.in: Regenerated.
29522 * configure: Likewise.
29524 2015-05-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
29526 PR rtl-optimization/66168
29527 * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
29528 can_move_invariant_reg.
29530 2015-05-27 John David Anglin <danglin@gcc.gnu.org>
29533 * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
29534 REG_EQUAL note when doing insert.
29536 * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
29537 instead of "%d" for 'o' operand.
29539 2015-05-27 Nathan Sidwell <nathan@acm.org>
29542 * tree.c (build_pointer_type_for_mode): Canonical type does not
29543 inherit can_alias_all.
29544 (build_reference_type_for_mode): Likewise.
29546 2015-05-27 Eric Botcazou <ebotcazou@adacore.com>
29548 * expr.h (array_at_struct_end_p): Move to...
29549 (array_ref_element_size): Likewise.
29550 (component_ref_field_offset): Likewise.
29551 * tree.h (array_ref_element_size): ...here.
29552 (array_at_struct_end_p): Likewise.
29553 (component_ref_field_offset): Likewise.
29554 * expr.c (array_ref_element_size): Move to...
29555 (array_ref_low_bound): Likewise.
29556 (array_at_struct_end_p): Likewise.
29557 (array_ref_up_bound): Likewise.
29558 (component_ref_field_offset): Likewise.
29559 * tree.c (array_ref_element_size): ...here.
29560 (array_ref_low_bound): Likewise.
29561 (array_ref_up_bound): Likewise.
29562 (array_at_struct_end_p): Likewise.
29563 (component_ref_field_offset): Likewise.
29565 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
29566 Szabolcs Nagy <szabolcs.nagy@arm.com>
29568 * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
29570 2015-05-27 Jason Merrill <jason@redhat.com>
29573 * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
29574 ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
29575 ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
29577 2015-05-22 Aditya Kumar <hiraditya@msn.com>
29579 * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
29582 * statistics.c (statistics_fini_pass): Print pass name.
29584 2015-05-27 Richard Biener <rguenther@suse.de>
29586 PR tree-optimization/66272
29588 2014-08-15 Richard Biener <rguenther@suse.de>
29590 PR tree-optimization/62031
29591 * tree-data-ref.c (dr_analyze_indices): Do not set
29592 DR_UNCONSTRAINED_BASE.
29593 (dr_may_alias_p): All indirect accesses have to go the
29594 formerly DR_UNCONSTRAINED_BASE path.
29595 * tree-data-ref.h (struct indices): Remove
29596 unconstrained_base member.
29597 (DR_UNCONSTRAINED_BASE): Remove.
29599 2015-05-27 Aldy Hernandez <aldyh@redhat.com>
29601 * dwarf2out.c: Remove block_map.
29602 (gen_call_site_die): Replace block_map use with BLOCK_DIE.
29603 (gen_lexical_block_die): Same.
29604 (dwarf2out_function_decl): Remove block_map use.
29605 (dwarf2out_c_finalize): Same.
29606 * tree-core.h (struct tree_block): Add die field.
29607 * tree.h (BLOCK_DIE): New.
29609 2015-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29612 * expr.c (memory_load_overlap): New function.
29613 (emit_push_insn): When pushing partial args to the stack would
29614 clobber the register part load the overlapping part into a pseudo
29615 and put it into the hard reg after pushing. Change return type
29616 to bool. Add bool argument.
29617 * expr.h (emit_push_insn): Change return type to bool.
29619 * calls.c (expand_call): Cancel sibcall optimization when encountering
29620 partial argument on targets with ARGS_GROW_DOWNWARD and
29621 !STACK_GROWS_DOWNWARD.
29622 (emit_library_call_value_1): Update callsite of emit_push_insn.
29623 (store_one_arg): Likewise.
29625 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
29627 * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
29629 2015-05-27 Martin Liska <mliska@suse.cz>
29631 * Makefile.in: Add additional dependencies related to memory report
29633 * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
29634 * bitmap.c (struct bitmap_descriptor_d): Remove.
29635 (struct loc): Likewise.
29636 (struct bitmap_desc_hasher): Likewise.
29637 (bitmap_desc_hasher::hash): Likewise.
29638 (bitmap_desc_hasher::equal): Likewise.
29639 (get_bitmap_descriptor): Likewise.
29640 (bitmap_register): User new memory descriptor API.
29641 (register_overhead): Likewise.
29642 (bitmap_find_bit): Register nsearches and search_iter statistics.
29643 (struct bitmap_output_info): Remove.
29644 (print_statistics): Likewise.
29645 (dump_bitmap_statistics): Use new memory descriptor.
29646 * bitmap.h (struct bitmap_usage): New class.
29647 * genmatch.c: Extend header file inclusion.
29648 * genpreds.c: Likewise.
29649 * ggc-common.c (struct ggc_usage): New class.
29650 (struct ggc_loc_desc_hasher): Remove.
29651 (ggc_loc_desc_hasher::hash): Likewise.
29652 (ggc_loc_desc_hasher::equal): Likewise.
29653 (struct ggc_ptr_hash_entry): Likewise.
29654 (struct ptr_hash_hasher): Likewise.
29655 (ptr_hash_hasher::hash): Likewise.
29656 (ptr_hash_hasher::equal): Likewise.
29657 (make_loc_descriptor): Likewise.
29658 (ggc_prune_ptr): Likewise.
29659 (dump_ggc_loc_statistics): Use new memory descriptor.
29660 (ggc_record_overhead): Likewise.
29661 (ggc_free_overhead): Likewise.
29662 (final_cmp_statistic): Remove.
29663 (cmp_statistic): Likewise.
29664 (ggc_add_statistics): Liekwise.
29665 (ggc_prune_overhead_list): Likewise.
29666 * hash-map-traits.h: New file.
29667 * hash-map.h (struct default_hashmap_traits): Move the traits to a
29668 separate header file.
29669 * hash-set.h: Pass memory statistics info to ctor.
29670 * hash-table.c (void dump_hash_table_loc_statistics): New function.
29671 * hash-table.h (hash_table::hash_table): Add new ctor arguments.
29672 (hash_table::~hash_table): Register memory release operation.
29673 (hash_table::alloc_entries): Handle memory allocation operation.
29674 (hash_table::expand): Likewise.
29675 * inchash.c (iterative_hash_hashval_t): Move implementation to header
29677 (iterative_hash_host_wide_int): Likewise.
29678 * inchash.h (class hash): Likewise.
29679 * mem-stats-traits.h: New file.
29680 * mem-stats.h: New file.
29681 (mem_location): Add new class.
29682 (mem_usage): Likewise.
29683 (mem_alloc_description): Likewise.
29684 * sese.c: Add new header file inclusision.
29685 * toplev.c (dump_memory_report): Add report for hash_table, hash_map
29687 * tree-sra.c: Add new header file inclusision.
29688 * vec.c (struct vec_descriptor): Remove.
29689 (hash_descriptor): Likewise.
29690 (struct vec_usage): Likewise.
29691 (struct ptr_hash_entry): Likewise.
29692 (hash_ptr): Likewise.
29693 (eq_ptr): Likewise.
29694 (vec_prefix::register_overhead): Use new memory descriptor API.
29695 (vec_prefix::release_overhead): Likewise.
29696 (add_statistics): Remove.
29697 (dump_vec_loc_statistics): Use new memory descriptor API.
29698 * vec.h (struct vec_prefix): Likewise.
29699 (va_heap::reserve): Likewise.
29700 (va_heap::release): Likewise.
29701 * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
29703 2015-05-27 Richard Biener <rguenther@suse.de>
29705 * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
29706 earlier and remove ??? comment.
29707 (vect_analyze_stmt): If we are analyzing a pure SLP stmt
29708 and got called from loop analysis bail out. Always pass the SLP
29709 node to the vectorizable_* functions.
29710 * tree-vect-loop.c (vect_analyze_loop_operations): Remove
29711 the premature SLP check here.
29712 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
29713 detected SLP stmts.
29714 (vect_detect_hybrid_slp_1): Likewise.
29716 2015-05-26 Jeff Law <law@redhat.com>
29718 * combine.c (find_split_point): Verify that the shift count is a
29719 constant when choosing (plus (ashift ...)) as a split point.
29721 * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
29722 No functional changes.
29724 2015-05-26 Jan Hubicka <hubicka@ucw.cz>
29726 * ipa-polymorphic-call.c
29727 (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
29728 case when call target is already known.
29730 2015-05-26 Oleg Endo <olegendo@gcc.gnu.org>
29733 * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
29734 take into account the case that operands[1] and operands[2]
29735 are the same register.
29737 2015-05-26 Michael Matz <matz@suse.de>
29739 PR middle-end/66251
29741 * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
29743 (vect_create_vectorized_demotion_stmts): Always set
29744 STMT_VINFO_VEC_STMT, also with SLP.
29745 (vectorizable_store): Handle strided group stores.
29747 2015-05-26 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
29750 * config/aarch64/aarch64.md
29751 (*adds_shift_imm_<mode>): New pattern.
29752 (*subs_shift_imm_<mode>): Likewise.
29753 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
29754 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
29755 (*add_uxt<mode>_shift2): Likewise.
29756 (*add_uxtsi_shift2_uxtw): Likewise.
29757 (*sub_uxt<mode>_shift2): Likewise.
29758 (*sub_uxtsi_shift2_uxtw): Likewise.
29760 2015-05-26 David Edelsohn <dje.gcc@gmail.com>
29762 * config/rs6000/constraints.md (Y, U): Use match_test.
29764 2015-05-26 Christian Bruel <christian.bruel@st.com>
29767 * config/arm/arm.c (arm_option_check_internal)
29768 (arm_option_params_internal): Check opts->target_flags to set macros.
29769 (TREE_TARGET_ARM, TREE_TARGET_THUMB)
29770 (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
29771 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
29772 (builtin_define): Replaced with def_or_undef_macro.
29773 * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
29774 TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
29775 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
29776 (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
29777 (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
29778 (TARGET_ARM_FEATURE_LDREX_P)
29779 (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
29780 * config/arm/arm-c.c (def_or_undef_macro): New function.
29781 (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
29783 2015-05-26 Christian Bruel <christian.bruel@st.com>
29785 * c-common.h (builtin_define_with_int_value)
29786 (builtin_define_type_sizeof): Declare.
29787 * c-cppbuiltin.c (builtin_define_with_int_value)
29788 (builtin_define_type_sizeof): Externalize.
29789 (builtin_define_std): Cleanup declaration.
29790 * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
29791 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
29792 * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
29793 (builtin_define, builtin_assert): New macros.
29795 2015-05-26 Richard Biener <rguenther@suse.de>
29797 PR tree-optimization/66142
29798 * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
29799 MEM_REFs for the same base address.
29801 2015-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29804 * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
29806 2015-05-26 Jason Merrill <jason@redhat.com>
29808 * configure.ac: Set CXXFLAGS for ISL test.
29809 * configure: Regenerate.
29811 * configure.ac: Use C++ for all tests. Use AC_CHECK_DECLS for
29812 strstr and basename.
29813 * configure: Regenerate.
29815 2015-05-26 Richard Biener <rguenther@suse.de>
29817 * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
29818 X % C -> X & (C - 1) for C being a power-of two to ...
29819 * match.pd: ... patterns.
29821 2015-05-26 Marc Glisse <marc.glisse@inria.fr>
29823 * match.pd (swapped_tcc_comparison): New operator list.
29824 (-A CMP -B): New simplification.
29825 * fold-const.c (fold_comparison): Remove corresponding code.
29827 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
29829 * caller-save.c (init_caller_save): Base temporary register numbers
29830 on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
29831 * cfgloopanal.c (init_set_costs): Likewise.
29832 * dojump.c (prefer_and_bit_test): Likewise.
29833 * expr.c (init_expr_target): Likewise.
29834 * ira.c (setup_prohibited_mode_move_regs): Likewise.
29835 * lower-subreg.c (init_lower_subreg): Likewise.
29836 * postreload.c (reload_cse_regs_1): Likewise.
29838 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
29840 * gensupport.h (compute_test_codes): Declare.
29841 * gensupport.c (compute_predicate_codes): Rename to...
29842 (compute_test_codes): ...this. Generalize error message.
29843 (process_define_predicate): Update accordingly.
29844 * genpreds.c (compute_maybe_allows): Delete.
29845 (add_constraint): Use compute_test_codes to determine whether
29846 something can accept a SUBREG, REG or MEM.
29848 2015-05-26 Torvald Riegel <triegel@redhat.com>
29850 * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
29851 'memory model' to align with C++11; fix description of memory orders;
29854 2015-05-26 Richard Biener <rguenther@suse.de>
29856 * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
29857 (vect_analyze_loop_operations): ... here. Remove slp parameter,
29858 detect whether we apply SLP. Remove call to
29859 vect_update_slp_costs_according_to_vf.
29860 (vect_analyze_loop_2): Call vect_update_vf_for_slp and
29861 vect_update_slp_costs_according_to_vf from here. Dispatch
29862 to vect_slp_analyze_operations to analyze SLP stmts.
29863 * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
29864 unused bb_vec_info parameter, adjust assert.
29865 (vect_slp_analyze_operations): Pass in the slp instance tree
29866 instead of bb_vec_info.
29867 (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
29868 * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
29870 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
29872 * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
29873 Q_REGS. Expand comment.
29874 (REG_CLASS_NAMES): Ditto.
29875 (REG_CLASS_CONTENTS): Ditto.
29877 2015-05-25 Uros Bizjak <ubizjak@gmail.com>
29880 * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
29881 when LEGACY_INT_REGNO_P is processed.
29883 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
29885 * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
29887 2015-05-25 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
29889 * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
29890 register if not marked dead/unused, before return.
29892 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
29895 * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
29896 is set; check for assembler name at LTO time.
29897 (type_in_anonymous_namespace): Remove hacks, check that all
29898 anonymous types are called "<anon>"
29899 (odr_type_p): Simplify; add check for "<anon>"
29900 (odr_subtypes_equivalent): Add odr_type_p check.
29901 * tree.c (need_assembler_name_p): Even anonymous namespace needs
29904 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
29906 * ipa-utils.h (method_class_type): Remove.
29907 * cgraphunit.c (walk_polymorphic_call_targets): Use
29908 TYPE_METHOD_BASETYPE.
29909 * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
29910 on main variants only.
29911 (method_class_type): Remove.
29912 (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
29913 (build_type_inheritance_graph): Likewise.
29914 * ipa-icf.c (sem_function::equals_wpa): Likewise.
29915 * pa-polymorphic-call.c (decl_maybe_in_construction_p,
29916 check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
29918 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
29920 * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
29921 is_typedef_decl, typedef_variant_p): Constify.
29922 * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
29923 is_typedef_decl, typedef_variant_p): Constify.
29925 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29927 * defaults.h (gen_tablejump): New function.
29928 (HAVE_tablejump): Add default value.
29930 * stmt.c: Likewise.
29932 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29934 * defaults.h (gen_store_multiple): New function.
29935 (HAVE_store_multiple): Add default value.
29936 * expr.c (move_block_from_reg): Adjust.
29938 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29940 * defaults.h (gen_load_multiple): New function.
29941 (HAVE_load_multiple): Add default value.
29942 * expr.c (move_block_to_reg): Adjust.
29944 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29946 * defaults.h (gen_mem_signal_fence): New function.
29947 (HAVE_mem_signal_fence): Add default value.
29948 * optabs.c: Adjust.
29950 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29952 * defaults.h (gen_memory_barrier): New function.
29953 (HAVE_memory_barrier): Add default value.
29954 * optabs.c: Adjust.
29956 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29958 * defaults.h (gen_mem_thread_fence): New function.
29959 (HAVE_mem_thread_fence): Add default definition.
29960 * optabs.c: Adjust.
29962 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29964 * combine.c (find_split_point): Check the value of HAVE_lo_sum
29965 instead of if it is defined.
29966 (combine_simplify_rtx): Likewise.
29967 * lra-constraints.c (process_address_1): Likewise.
29968 * config/darwin.c: Adjust.
29969 * genconfig.c (main): Always define HAVE_lo_sum.
29971 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
29973 * genmatch.c (parser::parse_operation): Reject expanding
29974 operator-list inside 'for'.
29976 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
29978 * genmatch.c (parser::parse_for): Reject iterator if used as
29981 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
29983 * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
29984 after end of id-list.
29986 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
29988 * tree.c (gimple_canonical_types_compatible_p): Sanity check that
29989 we do not try to compute canonical type for type that does not need
29991 (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
29993 * tree.h (type_with_alias_set_p): New.
29995 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
29997 * tree.c (gimple_canonical_types_compatible_p): Do not compare
29998 function attributes.
29999 (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
30001 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
30003 * Makefile.in (check_gcc_parallelize): Delete.
30004 (lang_checks_parallelized): Update comment.
30006 2015-05-22 Mikhail Maltsev <maltsevm@gmail.com>
30008 PR rtl-optimization/66237
30009 * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
30010 location of an "as_a" cast.
30012 2015-05-22 Jeff Law <law@redhat.com>
30014 * config/pa/pa.md (non-canonical shift-add insns): Remove.
30015 (peepholes with non-canonical RTL sources): Remove.
30016 (peepholes for indexed stores of FP regs in integer modes): Match and
30017 generate canonical RTL.
30019 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
30021 PR tree-optimization/63387
30022 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
30023 ((x ord x) & (y ord y) -> (x ord y),
30024 (x ord x) & (x ord y) -> (x ord y)): New simplifications.
30025 * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
30026 vectors like scalars.
30028 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
30030 * convert.c (convert_to_integer, convert_to_vector): Include the
30031 types in the error message.
30033 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
30035 * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
30038 2015-05-22 Jeff Law <law@redhat.com>
30040 * config/pa/pa.md (integer_indexed_store splitters): Use
30041 mem_shadd_operand. Use ASHIFT rather than MULT in the resulting
30042 insns -- adjusting the constant 2nd operand accordingly.
30044 * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
30045 (plus (ashift X log2) Y) if it is a split point.
30047 * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
30048 out of hppa_legitimize_address to handle both forms of a multiply
30050 (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
30051 Always generate the ASHIFT variant as the result is not directly
30052 used in a MEM. Update comments and refactor slightly to improve
30055 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30058 * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
30059 aarch64_composite_type_p. Remove check for aarch64_composite_type_p.
30060 (aarch64_composite_type_p): Return false if given type and mode are
30061 for a short vector.
30063 2015-05-22 Richard Biener <rguenther@suse.de>
30065 * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
30067 * tree-vect-loop.c (vect_analyze_loop_operations): Look at
30068 patterns when determining whether SLP is pure.
30069 (vect_is_slp_reduction): Remove check for pattern stmts.
30070 (vect_is_simple_reduction_1): Remove dead code.
30071 * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
30072 (vect_get_and_check_slp_defs): Pass in the stmt number.
30073 Allow the first def in a reduction to be not a pattern stmt when
30074 the rest of the stmts def are patterns.
30075 (vect_build_slp_tree_1): Allow tcc_expression codes like
30076 SAD_EXPR and DOT_PROD_EXPR.
30077 (vect_build_slp_tree): Adjust.
30078 (vect_analyze_slp): Refactor and move BB vect error message ...
30079 (vect_slp_analyze_bb_1): ... here.
30081 2015-05-22 Aldy Hernandez <aldyh@redhat.com>
30083 * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
30084 for CSWTCH temporary.
30086 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30088 * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
30089 (arm_unspec_cost): Allow UNSPEC_VOLATILE. Do not recurse inside
30092 2015-05-22 Richard Biener <rguenther@suse.de>
30094 PR tree-optimization/66251
30095 * tree-vect-stmts.c (vectorizable_conversion): Properly
30096 set STMT_VINFO_VEC_STMT even for the SLP case.
30098 2015-05-22 Marek Polacek <polacek@redhat.com>
30100 * doc/extend.texi: Use @pxref instead of @xref.
30102 2015-05-22 hiraditya <hiraditya@msn.com>
30104 * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
30107 2015-05-22 Richard Biener <rguenther@suse.de>
30109 PR tree-optimization/65701
30110 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
30111 Move peeling cost models into one place. Peel for alignment
30112 for single loads only if an aligned load is cheaper than
30115 2015-05-22 Marek Polacek <polacek@redhat.com>
30118 * doc/extend.texi (Enumerator Attributes): New section.
30119 Document syntax of enumerator attributes.
30121 2015-05-22 Richard Biener <rguenther@suse.de>
30123 * tree-vect-loop.c (get_reduction_op): New function.
30124 (vect_model_reduction_cost): Use it, add reduc_index parameter.
30125 Make ready for BB reductions.
30126 (vect_create_epilog_for_reduction): Use get_reduction_op.
30127 (vectorizable_reduction): Init reduc_index to a valid value.
30128 Adjust vect_model_reduction_cost call.
30129 * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
30130 operand for reduction defaults. Add SAD_EXPR support.
30131 Assert we have a neutral op for SLP reductions.
30132 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
30133 walking pattern stmt ops only recurse to SSA names.
30135 2015-05-22 Richard Biener <rguenther@suse.de>
30137 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
30138 assert with guard, remove check on detected reduction.
30139 (vect_recog_sad_pattern): Likewise.
30140 (vect_recog_widen_sum_pattern): Likewise.
30142 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30144 * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
30145 __always_inline__ attribute.
30146 (vaesdq_u8): Likewise.
30147 (vaesmcq_u8): Likewise.
30148 (vaesimcq_u8): Likewise.
30149 (vsha1cq_u32): Likewise.
30150 (vsha1mq_u32): Likewise.
30151 (vsha1pq_u32): Likewise.
30152 (vsha1h_u32): Likewise.
30153 (vsha1su0q_u32): Likewise.
30154 (vsha1su1q_u32): Likewise.
30155 (vsha256hq_u32): Likewise.
30156 (vsha256h2q_u32): Likewise.
30157 (vsha256su0q_u32): Likewise.
30158 (vsha256su1q_u32): Likewise.
30159 (vmull_p64): Likewise.
30160 (vmull_high_p64): Likewise.
30162 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30164 * final.c (final_scan_insn): Don't check HAVE_peephole with the
30166 * output.h: Likewise.
30167 * genconfig.c (main): Alwways define HAVE_peephole.
30168 * genpeep.c: Don't emit checks of HAVE_peephole.
30170 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30172 * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
30173 check HAVE_conditional_move with the preprocessor.
30175 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30177 * genconfig.c (main): Always define HAVE_conditional_move.
30178 * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
30179 toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
30182 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30184 * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
30185 reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
30186 and FRAME_POINTER_REGNUM with the preprocessor.
30188 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30190 * defaults.h: Add default for STACK_PUSH_CODE.
30191 * expr.c: Don't redefine STACK_PUSH_CODE.
30192 * recog.c: Likewise.
30194 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30196 * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
30197 sched-deps.c: Use if instead of preprocessor checks with
30198 STACK_GROWS_DOWNWARD.
30200 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30202 * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
30204 * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
30205 * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
30206 * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
30207 * doc/tm.texi: Regenerate.
30209 2015-05-21 H.J. Lu <hongjiu.lu@intel.com>
30212 * config/i386/constraints.md (Bg): New constraint for GOT memory
30214 * config/i386/i386.md (*call_got_x32): New pattern.
30215 (*call_value_got_x32): Likewise.
30216 * config/i386/predicates.md (GOT_memory_operand): New predicate.
30218 2015-05-21 Jakub Jelinek <jakub@redhat.com>
30220 PR tree-optimization/66233
30221 * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
30224 2015-05-21 Jeff Law <law@redhat.com>
30226 * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
30227 than MULT for shadd sequences.
30229 2015-05-08 Jan Hubicka <hubicka@ucw.cz>
30231 * alias.c (alias_stats): New static var.
30232 (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
30233 (dump_alias_stats_in_alias_c): New function.
30234 * alias.h (dump_alias_stats_in_alias_c): Declare.
30235 * tree-ssa-alias.c (dump_alias_stats): Call it.
30237 2015-05-08 Michael Matz <matz@suse.de>
30239 * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
30241 (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
30242 (STMT_VINFO_STRIDED_P): ... this.
30243 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
30244 (vect_verify_datarefs_alignment): Likewise.
30245 (vect_enhance_data_refs_alignment): Likewise.
30246 (vect_analyze_data_ref_access): Likewise.
30247 (vect_analyze_data_refs): Accept strided stores.
30248 * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
30249 (vect_model_load_cost): Adjust for macro rename.
30250 (vectorizable_mask_load_store): Likewise.
30251 (vectorizable_load): Likewise.
30252 (vectorizable_store): Open code strided stores.
30254 2015-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30256 * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
30257 Document sqrt_insn.
30259 2015-05-21 Richard Biener <rguenther@suse.de>
30262 * match.pd: Guard pattern optimzing (int)(float)int
30263 conversions to apply only on GIMPLE.
30265 2015-05-21 Jeff Law <law@redhat.com>
30267 * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
30268 multiply-accumulate/shift-add insn generation.
30270 2015-05-21 Oleg Endo <olegendo@gcc.gnu.org>
30273 * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
30274 operands[1] are the same.
30276 2015-05-21 Ilya Enkovich <enkovich.gnu@gmail.com>
30278 PR middle-end/66221
30279 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
30280 build_distinct_type_copy to copy bounds.
30282 2015-05-21 Thomas Schwinge <thomas@codesourcery.com>
30284 * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
30285 Change to unsigned int.
30287 2015-05-20 Jeff Law <law@redhat.com>
30289 * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
30290 (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
30291 (pa_shadd_constant_p): Allow constants for shadd insns rather
30292 than valid scaling constants for memory addresses.
30293 * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
30294 * config/pa/predicates.md (mem_shadd_operand): New predicate.
30295 * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
30296 (shift-add insns using ASHIFT): New patterns.
30298 2015-05-20 Mikhail Maltsev <maltsevm@gmail.com>
30300 * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
30302 (fix_up_fall_thru_edges): Likewise.
30303 (fix_crossing_conditional_branches): Likewise. Promote jump targets
30304 from to rtx_insn to rtx_code_label where feasible.
30305 * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
30306 gen_move_insn (returned type changed to rtx_insn).
30307 * builtins.c (expand_errno_check): Fix arguments of
30308 do_compare_rtx_and_jump (now expects rtx_code_label).
30309 (expand_builtin_acc_on_device): Likewise.
30310 * cfgcleanup.c (try_simplify_condjump): Add cast when calling
30311 invert_jump (now exprects rtx_jump_insn).
30312 * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
30313 (construct_init_block): Use rtx_code_label.
30314 * cfgrtl.c (block_label): Promote return type to rtx_code_label.
30315 (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
30316 calling redirect_jump.
30317 (patch_jump_insn): Likewise.
30318 (redirect_branch_edge): Likewise.
30319 (force_nonfallthru_and_redirect): Likewise.
30320 (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
30322 (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
30323 * cfgrtl.h: Promote return type of block_label to rtx_code_label.
30324 * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
30325 * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
30326 to store the value retured by gen_label_rtx.
30327 * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
30329 * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
30330 (split_branches): Fix calls of redirect_jump.
30331 * dojump.c (jumpifnot): Promote argument type from rtx to
30333 (jumpifnot_1): Likewise.
30334 (jumpif): Likewise.
30335 (jumpif_1): Likewise.
30336 (do_jump_1): Likewise.
30337 (do_jump): Likewise. Use rtx_code_label when feasible.
30338 (do_jump_by_parts_greater_rtx): Likewise.
30339 (do_jump_by_parts_zero_rtx): Likewise.
30340 (do_jump_by_parts_equality_rtx): Likewise.
30341 (do_compare_rtx_and_jump): Likewise.
30342 * dojump.h: Update function prototypes.
30343 * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
30345 * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
30347 (emit_label_before): Likewise.
30348 (emit_jump_insn_after_noloc): Likewise.
30349 (emit_jump_insn_after_setloc): Likewise.
30350 (emit_jump_insn_after): Likewise
30351 (emit_jump_insn_before_setloc): Likewise.
30352 (emit_jump_insn_before): Likewise.
30353 (emit_label_before): Promote return type to rtx_code_label.
30354 (emit_label): Likewise.
30355 * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
30356 * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
30358 (emit_stack_restore): Likewise.
30359 * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
30360 (do_cmp_and_jump): Likewise.
30361 * expr.c (expand_expr_real_2): Likewise. Promote some local variables
30362 from rtx to rtx_code_label.
30363 (gen_move_insn_uncast): New function.
30364 * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
30365 * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
30366 * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
30367 * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
30368 invert_jump_1 and redirect_jump_1.
30369 * internal-fn.c (expand_arith_overflow_result_store): Fix call of
30370 do_compare_rtx_and_jump.
30371 (expand_addsub_overflow): Likewise.
30372 (expand_neg_overflow): Likewise.
30373 (expand_mul_overflow): Likewise.
30374 * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
30375 return value of gen_move_insn.
30376 * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
30377 * loop-doloop.c (add_test): Use rtx_code_label.
30378 (doloop_modify): Likewise.
30379 (doloop_optimize): Likewise.
30380 * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
30381 * lra-constraints.c (emit_spill_move): Remove cast of value returned
30383 (inherit_reload_reg): Add cast when calling dump_insn_slim.
30384 (split_reg): Likewise.
30385 * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
30387 * optabs.c (expand_binop_directly): Remove casts of values returned by
30389 (expand_unop_direct): Likewise.
30390 (expand_abs): Likewise.
30391 (maybe_emit_unop_insn): Likewise.
30392 (maybe_gen_insn): Promote return type to rtx_insn.
30393 * optabs.h: Update prototype of maybe_gen_insn.
30394 * postreload-gcse.c (eliminate_partially_redundant_load): Remove
30396 * recog.c (struct peep2_insn_data): Promote type of insn field to
30398 (peep2_reinit_state): Use NULL instead of NULL_RTX.
30399 (peep2_attempt): Remove casts of insn in peep2_insn_data.
30400 (peep2_fill_buffer): Promote argument from rtx to rtx_insn
30401 * recog.h (struct insn_gen_fn): Promote return types of function
30402 pointers and operator ().from rtx to rtx_insn.
30403 * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
30404 (fill_eager_delay_slots): Likewise.
30405 (relax_delay_slots): Likewise.
30406 (make_return_insns): Likewise.
30407 (dbr_schedule): Likewise.
30408 (optimize_skips): Likewise.
30409 (reorg_redirect_jump): Likewise.
30410 (fill_slots_from_thread): Likewise.
30411 * reorg.h: Update prototypes.
30412 * resource.c (find_dead_or_set_registers): Use dyn_cast to
30413 rtx_jump_insn instead of check. Use it's jump_target method.
30414 * rtl.h (rtx_jump_insn::jump_label): Define new method.
30415 (rtx_jump_insn::jump_target): Define new method.
30416 (rtx_jump_insn::set_jump_target): Define new method.
30417 * rtlanal.c (tablejump_p): Promote type of one local variable.
30418 * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
30419 (sched_analyze_insn): Likewise.
30420 * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
30421 (print_insn): Likewise.
30422 * stmt.c (label_rtx): Promote return type to rtx_insn.
30423 (force_label_rtx): Likewise.
30424 (jump_target_rtx): Define new function.
30425 (expand_label): Use it, get rid of one cast.
30426 (expand_naked_return): Promote rtx to rtx_code_label.
30427 (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
30428 (expand_case): Use rtx_code_label instread of rtx where feasible.
30429 (expand_sjlj_dispatch_table): Likewise.
30430 (emit_case_nodes): Likewise.
30431 * stmt.h: Declare jump_target_rtx. Update prototypes. Fix comments.
30432 * store-motion.c (insert_store): Make use of new return type of
30433 gen_move_insn and remove a cast.
30434 (replace_store_insn): Likewise.
30436 2015-05-20 Max Filippov <jcmvbkbc@gmail.com>
30438 * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
30439 by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
30441 2015-05-20 Jeff Law <law@redhat.com>
30443 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
30444 dispose of the jump thread path when the jump threading
30445 opportunity is cancelled.
30447 2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
30449 * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
30450 when printing the caret character.
30452 2015-05-20 Marek Polacek <polacek@redhat.com>
30454 * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
30456 2015-05-20 Marek Polacek <polacek@redhat.com>
30458 * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
30459 * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
30460 * gimple-fold.c (canonicalize_bool): Likewise.
30461 (same_bool_result_p): Likewise.
30462 * tree-if-conv.c (parse_predicate): Likewise.
30464 2015-05-20 Marek Polacek <polacek@redhat.com>
30466 * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
30467 * gimplify.c (gimplify_modify_expr_rhs): Likewise.
30469 2015-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30471 * config/aarch64/aarch64.c (aarch64_class_max_nregs):
30472 Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
30475 2015-05-20 Robert Suchanek <robert.suchanek@imgtec.com>
30477 * config/mips/mips.h (micromips_globals): Declare.
30479 2015-05-20 David Malcolm <dmalcolm@redhat.com>
30481 * timevar.def (TV_INITIALIZE_RTL): New.
30482 * toplev.c (initialize_rtl): Use an auto_timevar to account this
30483 function's time to TV_INITIALIZE_RTL.
30485 2015-05-20 Ilya Enkovich <enkovich.gnu@gmail.com>
30487 * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
30488 gimple_build_nop calls.
30489 (chkp_find_bounds_for_elem): Likewise.
30490 (chkp_get_zero_bounds): Likewise.
30491 (chkp_get_none_bounds): Likewise.
30492 (chkp_get_bounds_by_definition): Likewise.
30493 (chkp_generate_extern_var_bounds): Likewise.
30494 (chkp_get_bounds_for_decl_addr): Likewise.
30495 (chkp_get_bounds_for_string_cst): Likewise.
30497 2015-05-20 Bin Cheng <bin.cheng@arm.com>
30499 PR tree-optimization/65447
30500 * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
30501 (dump_use, dump_uses): Support to dump sub use.
30502 (record_use): New parameters to support sub use. Remove call to
30504 (record_sub_use, record_group_use): New functions.
30505 (compute_max_addr_offset, split_all_small_groups): New functions.
30506 (group_address_uses, rewrite_use_address): New functions.
30507 (strip_offset): New declaration.
30508 (find_interesting_uses_address): Call record_group_use.
30509 (add_candidate): New assertion.
30510 (infinite_cost_p): Move definition forward.
30511 (add_costs): Check INFTY cost and return immediately.
30512 (get_computation_cost_at): Clear setup cost and dependent bitmap
30514 (determine_use_iv_cost_address): Compute cost for sub uses.
30515 (rewrite_use_address_1): Rename from old rewrite_use_address.
30516 (free_loop_data): Free sub uses.
30517 (tree_ssa_iv_optimize_loop): Call group_address_uses.
30519 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
30520 Jim Wilson <jim.wilson@linaro.org>
30522 * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
30523 new fields loadv and storev.
30524 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
30525 Initialize loadv and storev.
30526 * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
30527 (cortexa53_extra_costs): Likewise.
30528 (cortexa57_extra_costs): Likewise.
30529 (xgene1_extra_costs): Likewise.
30530 * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
30533 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
30535 * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
30537 (cortexa8_extra_costs): Likewise.
30538 (cortexa5_extra_costs): Likewise.
30539 (cortexa7_extra_costs): Likewise.
30540 (cortexa12_extra_costs): Likewise.
30541 (cortexa15_extra_costs): Likewise.
30542 (v7m_extra_costs): Likewise.
30544 2015-05-20 Jeff Law <law@redhat.com>
30546 * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
30547 instead of open-coded version. Also delete the jump thread created
30548 within this function.
30550 2015-05-20 Alan Modra <amodra@gmail.com>
30552 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
30553 stack adjusting insn. Formatting.
30554 (rs6000_emit_prologue): Track stack adjusting insn, and use of
30555 r12. If possible, emit first -fsplit-stack arg pointer insn
30556 before stack adjust. Don't use r12 to save cr if split-stack.
30558 2015-05-20 Alan Modra <amodra@gmail.com>
30560 * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
30562 (rs6000_supports_split_stack): New function.
30563 * config/rs6000/rs6000.c (machine_function): Add
30564 split_stack_arg_pointer.
30565 (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
30566 (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
30567 rather than virtual_incoming_args_rtx.
30568 (rs6000_va_start): Likewise.
30569 (split_stack_arg_pointer_used_p): New function.
30570 (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
30571 (morestack_ref): New var.
30572 (gen_add3_const, rs6000_expand_split_stack_prologue,
30573 rs6000_internal_arg_pointer, rs6000_live_on_entry,
30574 rs6000_split_stack_space_check): New functions.
30575 (rs6000_elf_file_end): Call file_end_indicate_split_stack.
30576 * config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
30577 (UNSPECV_SPLIT_STACK_RETURN): Define.
30578 (split_stack_prologue, load_split_stack_limit,
30579 load_split_stack_limit_di, load_split_stack_limit_si,
30580 split_stack_return, split_stack_space_check): New expands and insns.
30581 * config/rs6000/rs6000-protos.h
30582 (rs6000_expand_split_stack_prologue): Declare.
30583 (rs6000_split_stack_space_check): Declare.
30585 2015-05-20 Alan Modra <amodra@gmail.com>
30587 * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
30588 (direct_return): Test vrsave_size rather than vrsave_mask.
30589 (rs6000_emit_prologue): Likewise. Remove redundant altivec tests.
30590 (rs6000_emit_epilogue): Likewise.
30592 2015-05-20 Alan Modra <amodra@gmail.com>
30594 * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
30595 when not saving registers.
30596 (debug_stack_info): Adjust to omit printing unused offsets,
30598 (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
30601 2015-05-19 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30604 * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
30605 value_type to const char *.
30607 2015-05-19 Sandra Loosemore <sandra@codesourcery.com>
30609 * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
30610 to build a biarch toolchain again.
30612 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
30614 * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
30615 or implicit declarations.
30616 (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
30618 (get_odr_type): Check type has linkage before adding bases.
30619 (register_odr_type): Check that type has linkage before adding it.
30620 (type_known_to_have_no_deriavations_p): Rename to ..
30621 (type_known_to_have_no_derivations_p): This one.
30622 * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
30623 (type_known_to_have_no_derivations_p): This one.
30624 * ipa-polymorphic-call.c
30625 (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
30628 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
30630 * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
30631 (layout_type): Use RECORD_OR_UNION_TYPE_P.
30633 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30635 * config/s390/s390.c (s390_vector_bool_type_p): New function.
30636 (s390_invalid_binary_op): New function.
30637 (TARGET_INVALID_BINARY_OP): Define macro.
30639 2015-05-19 David Sherwood <david.sherwood@arm.com>
30641 * loop-invariant.c (create_new_invariant): Don't calculate address cost
30642 if mode is not a scalar integer.
30643 (get_inv_cost): Increase computational cost for unused invariants.
30645 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30647 * config.gcc: Add vecintrin.h to extra_headers. Add s390-c.o to
30648 c_target_objs and cxx_target_objs. Add t-s390 to tmake_file.
30649 * config/s390/s390-builtin-types.def: New file.
30650 * config/s390/s390-builtins.def: New file.
30651 * config/s390/s390-builtins.h: New file.
30652 * config/s390/s390-c.c: New file.
30653 * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
30654 CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
30655 * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
30656 (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
30658 * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
30660 (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
30661 (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
30662 variable definitions.
30663 (s390_const_operand_ok): New function.
30664 (s390_expand_builtin): Rewrite.
30665 (s390_init_builtins): New function.
30666 (s390_handle_vectorbool_attribute): New function.
30667 (s390_attribute_table): Add s390_vector_bool attribute.
30668 (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
30669 (s390_branch_condition_mask): Generate masks for new modes.
30670 (s390_expand_vec_compare_cc): New function.
30671 (s390_mangle_type): Add mangling for vector bool types.
30672 (enum s390_builtin): Remove.
30673 (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
30675 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
30676 s390_cpu_cpp_builtins.
30677 (REGISTER_TARGET_PRAGMAS): New macro.
30678 * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
30679 (insn_cmp mode attribute): Add new CC modes.
30680 (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
30681 (lcbb): New pattern definition.
30682 * config/s390/s390intrin.h: Include vecintrin.h.
30683 * config/s390/t-s390: New file.
30684 * config/s390/vecintrin.h: New file.
30685 * config/s390/vector.md: Include vx-builtins.md.
30686 * config/s390/vx-builtins.md: New file.S/390 zvector builtin
30689 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30691 * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
30693 * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
30694 (s390_select_ccmode): Likewise.
30695 (s390_canonicalize_comparison): Swap operands if necessary.
30696 (s390_expand_vec_compare_scalar): Expand DFmode compare using
30697 single element vector instructions.
30698 (s390_emit_compare): Call s390_expand_vec_compare_scalar.
30699 (s390_branch_condition_mask): Generate CC masks for the new modes.
30700 * config/s390/s390.md (v0, vf, vd): New mode attributes.
30701 (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
30702 (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
30703 (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
30704 (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
30705 (*extend<DSF:mode><BFP:mode>2): New insn definition.
30706 (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
30707 (extend<DSF:mode><BFP:mode>2): Turn into expander.
30708 (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
30709 (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
30710 (sqrt<mode>2): Add vector instruction.
30712 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30714 * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
30716 * config/s390/predicates.md (const0_operand, constm1_operand)
30717 (constable_operand): Accept vector operands.
30718 * config/s390/s390-modes.def: Add supported vector modes.
30719 * config/s390/s390-protos.h (s390_cannot_change_mode_class)
30720 (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
30721 (s390_bytemask_vector_p, s390_expand_vec_strlen)
30722 (s390_expand_vec_compare, s390_expand_vcond)
30723 (s390_expand_vec_init): Add prototypes.
30724 * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
30725 (s390_vector_mode_supported_p): New function.
30726 (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
30727 (s390_contiguous_bitmask_vector_p): New function.
30728 (s390_bytemask_vector_p): New function.
30729 (s390_split_ok_p): Vector regs don't work either.
30730 (regclass_map): Add VEC_REGS.
30731 (s390_legitimate_constant_p): Handle vector constants.
30732 (s390_cannot_force_const_mem): Handle CONST_VECTOR.
30733 (legitimate_reload_vector_constant_p): New function.
30734 (s390_preferred_reload_class): Handle CONST_VECTOR.
30735 (s390_reload_symref_address): Likewise.
30736 (s390_secondary_reload): Vector memory instructions only support
30737 short displacements. Rename reload*_nonoffmem* to reload*_la*.
30738 (s390_emit_ccraw_jump): New function.
30739 (s390_expand_vec_strlen): New function.
30740 (s390_expand_vec_compare): New function.
30741 (s390_expand_vcond): New function.
30742 (s390_expand_vec_init): New function.
30743 (s390_dwarf_frame_reg_mode): New function.
30744 (print_operand): Handle addresses with 'O' and 'R' constraints.
30745 (NR_C_MODES, constant_modes): Add vector modes.
30746 (s390_output_pool_entry): Handle vector constants.
30747 (s390_hard_regno_mode_ok): Handle vector registers.
30748 (s390_class_max_nregs): Likewise.
30749 (s390_cannot_change_mode_class): New function.
30750 (s390_invalid_arg_for_unprototyped_fn): New function.
30751 (s390_function_arg_vector): New function.
30752 (s390_function_arg_float): Remove size variable.
30753 (s390_pass_by_reference): Handle vector arguments.
30754 (s390_function_arg_advance): Likewise.
30755 (s390_function_arg): Likewise.
30756 (s390_return_in_memory): Vector values are returned in a VR if
30758 (s390_function_and_libcall_value): Handle vector arguments.
30759 (s390_gimplify_va_arg): Likewise.
30760 (s390_call_saved_register_used): Consider the arguments named.
30761 (s390_conditional_register_usage): Disable v16-v31 for non-vec
30763 (s390_preferred_simd_mode): New function.
30764 (s390_support_vector_misalignment): New function.
30765 (s390_vector_alignment): New function.
30766 (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
30767 (TARGET_VECTOR_MODE_SUPPORTED_P)
30768 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
30769 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
30770 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
30771 (TARGET_VECTOR_ALIGNMENT): Define target macro.
30772 * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
30773 (FIRST_PSEUDO_REGISTER): Increase value.
30774 (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
30775 (VECTOR_REG_P): Define macros.
30776 (FIXED_REGISTERS, CALL_USED_REGISTERS)
30777 (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
30778 (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
30779 (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
30780 Add vector registers.
30781 (CANNOT_CHANGE_MODE_CLASS): Call C function.
30782 (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
30783 (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
30785 (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
30786 (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
30787 * config/s390/s390.md (UNSPEC_VEC_*): New constants.
30788 (VR*_REGNUM): New constants.
30789 (ALL): New mode iterator.
30790 (INTALL): Remove mode iterator.
30792 (movti): Implement TImode moves for VRs.
30793 Disable TImode splitter for VR targets.
30794 Implement splitting TImode GPR<->VR moves.
30795 (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
30796 (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
30797 reload<mode>_la_in, reload<mode>_la_out.
30798 (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
30799 (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
30800 (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
30801 (mov<mode> SF SD): Prefer lder, lde for loading.
30802 Add lrl and strl instructions.
30803 Add vector instructions.
30804 (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
30805 Call s390_expand_vec_strlen on z13.
30806 (*cc_to_int): Change predicate to nonimmediate_operand.
30807 (addti3): Rename to *addti3. New expander.
30808 (subti3): Rename to *subti3. New expander.
30809 * config/s390/vector.md: New file.
30811 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30813 * common/config/s390/s390-common.c (processor_flags_table): Add
30815 * config.gcc: Add z13.
30816 * config/s390/s390-opts.h (enum processor_type): Add
30817 PROCESSOR_2964_Z13.
30818 * config/s390/s390.c (s390_adjust_priority): Check for
30819 PROCESSOR_2964_Z13.
30820 (s390_reorg): Likewise.
30821 (s390_sched_reorder): Likewise.
30822 (s390_sched_variable_issue): Likewise.
30823 (s390_loop_unroll_adjust): Likewise.
30824 (s390_option_override): Likewise. Default to -mvx when available.
30825 * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
30826 (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
30827 (TARGET_VX_ABI): Define macros.
30829 (TARGET_DEFAULT): Add MASK_OPT_VX.
30830 * config/s390/s390.md ("cpu" attribute): Add z13.
30831 ("cpu_facility" attribute): Add vec.
30832 * config/s390/s390.opt (processor_type): Add z13.
30833 (mvx): New options.
30834 * doc/invoke.texi: Add z13 option for -march.
30836 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30838 * config/s390/predicates.md (shift_count_or_setmem_operand): Add
30839 mode check to make sure that only scalar integer values are
30842 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
30844 * tree.c (verify_type_variant): Fix #undef.
30845 (gimple_canonical_types_compatible_p): Move here from lto.c
30846 (verify_type): Verify TYPE_CANONICAL compatibility.
30847 * tree.h (gimple_canonical_types_compatible_p): Declare.
30849 2015-05-19 Jakub Jelinek <jakub@redhat.com>
30851 PR middle-end/66199
30852 * tree.h (OMP_TEAMS_COMBINED): Define.
30853 * gimplify.c (enum gimplify_omp_var_data): Add
30854 GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
30855 (enum omp_region_type): Add ORT_COMBINED_TEAMS.
30856 (omp_notice_variable): Accept both ORT_TEAMS
30857 and ORT_COMBINED_TEAMS. Don't recurse if
30858 GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
30859 GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
30861 (omp_no_lastprivate): New function.
30862 (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
30863 and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
30864 notice_outer and set appropriate bits, otherwise make
30865 sure default(none) combined constructs won't complain.
30866 (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
30867 outer special casing, for OMP_CLAUSE_LASTPRIVATE if
30868 omp_no_lastprivate either remove the clause or turn it
30869 into OMP_CLAUSE_PRIVATE.
30870 (gimplify_omp_for): Fix up handling of implicit
30871 lastprivate or linear iterators.
30872 (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
30873 ORT_COMBINED_TEAMS.
30874 * omp-low.c (lower_omp_for_lastprivate): For combined
30875 for simd use fd.loop.n2 from the for rather than simd.
30877 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
30879 * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
30880 instead of gen_rtx_raw_REG.
30881 (cris_expand_epilogue): Likewise.
30882 * config/microblaze/microblaze.c (microblaze_classify_address):
30884 * config/sparc/sparc.md: Likewise.
30886 2015-05-19 Uros Bizjak <ubizjak@gmail.com>
30888 * config/alpha/alpha.c (alpha_legitimize_reload_address)
30889 (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
30890 CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
30891 (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
30892 Use CASE_CONST_SCALAR_INT.
30893 (print_operand) <case 'M'>: Use mode_width_operand to check the
30894 value of the constant.
30895 * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
30896 * config/alpha/predicates.md (input_operand): Use general_operand
30897 instead of match_code as operand check.
30898 (symbolic_operand): Use match_code with subexpression digits.
30899 * config/alpha/constraints.md (Q): Ditto.
30901 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30903 * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
30905 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30907 * config/s390/s390.c (s390_secondary_reload): Fix check for
30908 load/store relative.
30910 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30912 * recog.h: Increase MAX_RECOG_ALTERNATIVES. Change type of
30913 alternative_mask to uint64_t.
30915 2015-05-19 Jakub Jelinek <jakub@redhat.com>
30917 PR tree-optimization/66187
30918 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
30919 Pass TYPE_SIGN to tree_int_cst_min_precision. If
30920 !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
30922 2015-05-19 David Malcolm <dmalcolm@redhat.com>
30924 * diagnostic.c (diagnostic_report_current_module): Strengthen
30925 local "new_map" from const line_map * to
30926 const line_map_ordinary *.
30927 * genmatch.c (error_cb): Likewise for local "map".
30928 (output_line_directive): Likewise for local "map".
30929 * input.c (expand_location_1): Likewise for local "map".
30930 Pass NULL rather than &map to
30931 linemap_unwind_to_first_non_reserved_loc, since the value is never
30932 read from there, and the value written back not read from here.
30933 (is_location_from_builtin_token): Strengthen local "map" from
30934 const line_map * to const line_map_ordinary *.
30935 (dump_location_info): Strengthen locals "map" from
30936 line_map *, one to const line_map_ordinary *, the other
30937 to const line_map_macro *.
30938 * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
30939 const line_map * to const line_map_macro *.
30940 (maybe_unwind_expanded_macro_loc): Add a call to
30941 linemap_check_macro when writing to the "map" field of the
30943 Introduce local const line_map_ordinary * "ord_map", using it in
30944 place of "map" in the part of the function where we know we have
30945 an ordinary map. Strengthen local "m" from const line_map * to
30946 const line_map_ordinary *.
30948 2015-05-19 Nick Clifton <nickc@redhat.com>
30951 * config/msp430/msp430.md (zero_extendhisi2): Add support for
30952 separate source and destination registers.
30954 2015-05-19 Richard Biener <rguenther@suse.de>
30956 PR tree-optimization/66165
30957 * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
30958 for no load permutation.
30960 PR tree-optimization/66185
30961 * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
30962 when building the SLP node from scalars.
30964 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
30965 Tristan Gingold <gingold@adacore.com>
30967 * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
30968 * builtins.c (expand_builtin_update_setjmp_buf): Make global.
30969 (expand_stack_restore): Call record_new_stack_level.
30970 (expand_stack_save): Do not call do_pending_stack_adjust.
30971 * builtins.h (expand_builtin_update_setjmp_buf): Declare.
30972 * calls.c (expand_call): Call record_new_stack_level for alloca.
30973 * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
30974 wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
30975 (update_sjlj_context): New global function.
30976 * except.h (update_sjlj_context): Declare.
30977 * explow.c (record_new_stack_level): New global function.
30978 (allocate_dynamic_stack_space): Call record_new_stack_level.
30979 * explow.h (record_new_stack_level): Declare.
30980 * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
30981 * cfgrtl.c (duplicate_insn_chain): Likewise.
30983 2015-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30985 * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
30986 (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
30987 STACK_GROWS_DOWNWARD as normal if.
30988 (expand_call): Likewise.
30990 2015-05-19 Oleg Endo <olegendo@gcc.gnu.org>
30993 * config/sh/sh.md (*round_int_even): New insn_and_split and
30994 accompanying new unnamed split.
30996 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
30998 * bitmap.c (bitmap_set_range): Handle count==1 specially.
30999 (bitmap_clear_range): Likewise.
31000 * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
31001 bitmap_set_range unconditionally.
31002 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
31003 * df-scan.c (df_mark_reg): Likewise.
31004 * haifa-sched.c (setup_ref_regs): Likewise.
31005 * sched-rgn.c (update_live_1): Likewise.
31007 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
31009 * regs.h (END_HARD_REGNO): Delete.
31010 (END_REGNO): Move to...
31012 * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
31013 * caller-save.c (mark_set_regs): Likewise.
31014 * combine.c (move_deaths, distribute_notes): Likewise.
31015 * cse.c (invalidate, invalidate_for_call): Likewise.
31016 * df-scan.c (df_ref_record): Likewise.
31017 * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
31018 (record_last_reg_set_info): Likewise.
31019 * reg-stack.c (convert_regs_exit): Likewise.
31020 * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
31021 * resource.c (update_live_status): Likewise.
31022 * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
31024 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
31026 * rtl.h (reg_info): Add an nregs field.
31027 (REG_NREGS): Use it.
31028 (SET_REGNO_RAW): Delete.
31029 (set_regno_raw): New function.
31030 * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
31031 (END_REGNO): Redefine in terms of REG_NREGS.
31032 * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
31034 * emit-rtl.c (set_mode_and_regno): Likewise.
31035 * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
31036 instead of SET_REGNO_RAW.
31038 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
31040 * rtl.h (PUT_MODE_RAW): New macro.
31041 (PUT_REG_NOTE_KIND): Use it.
31042 (set_mode_and_regno): Declare.
31043 (gen_raw_REG): Change regno to "unsigned int".
31044 (gen_rtx_REG): Change "unsigned" to "unsigned int".
31045 (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
31046 use set_mode_and_regno to change the mode of registers.
31047 * gengenrtl.c (gendef): Use PUT_MODE_RAW.
31048 * emit-rtl.c (set_mode_and_regno): New function.
31049 (gen_raw_REG): Change regno to unsigned int. Use set_mode_and_regno.
31050 * caller-save.c (reg_save_code): Use set_mode_and_regno.
31051 * expr.c (init_expr_target): Likewise.
31052 * ira.c (setup_prohibited_mode_move_regs): Likewise.
31053 * postreload.c (reload_cse_simplify_operands): Likewise.
31055 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
31057 * caller-save.c (init_caller_save): Use word_mode and
31058 FIRST_PSEUDO_REGISTER when creating temporary rtxes.
31059 * expr.c (init_expr_target): Likewise.
31060 * ira.c (setup_prohibited_mode_move_regs): Likewise.
31061 * postreload.c (reload_cse_regs_1): Likewise.
31063 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
31065 * rtl.def (REG): Change format to "r".
31066 * rtl.h (rtunion): Remove rt_reg.
31067 (reg_info): New structure.
31068 (rtx_def): Add reg field to main union.
31069 (X0REGATTR): Delete.
31070 (REG_CHECK): New macro.
31071 (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
31072 * rtl.c (rtx_format): Document "r".
31073 (rtx_code_size): Handle REG specially.
31074 * gengenrtl.c (special_format): Return true for formats
31076 * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
31077 Deal with REG_ATTRS after the field loop.
31078 * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
31079 * expmed.c (init_expmed): Call gen_raw_REG instead of
31081 * expr.c (init_expr_target): Likewise.
31082 * regcprop.c (maybe_mode_change): Likewise.
31083 * varasm.c (make_decl_rtl): Likewise.
31084 * final.c (leaf_renumber_regs_insn): Return early after
31086 * genemit.c (gen_exp): Handle 'r' fields.
31087 * genpeep.c (match_rtx): Likewise.
31088 * gensupport.c (subst_pattern_match): Likewise.
31089 (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
31090 (alter_constraints, subst_dup): Likewise.
31091 * read-rtl.c (read_rtx_code): Likewise.
31092 * print-rtl.c (print_rtx): Likewise.
31093 * genrecog.c (find_operand, find_matching_operand): Likewise.
31094 (validate_pattern, match_pattern_2): Likewise.
31095 (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
31096 (rtx_test::regno_field): New function.
31097 (operator ==, safe_to_hoist_p, transition_parameter_type)
31098 (parameter_type_string, print_parameter_value)
31099 (print_nonbool_test, print_test): Handle new enum values.
31100 * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
31101 * lra-constraints.c (operands_match_p): Likewise.
31103 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
31105 * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
31106 Change type of new_regno to unsigned int.
31107 * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
31108 new_regno to unsigned int.
31109 (df_ref_change_reg_with_loc): Remove old_regno parameter.
31110 Change type of new_regno to unsigned int. Use SET_REGNO_RAW.
31111 * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
31112 (SET_REGNO_RAW): Add space after ",".
31114 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
31116 * rtl.h (REG_NREGS): New macro
31117 * alias.c (record_set): Use it.
31118 * cfgcleanup.c (mark_effect): Likewise.
31119 * combine.c (likely_spilled_retval_1): Likewise.
31120 (likely_spilled_retval_p, can_change_dest_mode): Likewise.
31121 (move_deaths, distribute_notes): Likewise.
31122 * cselib.c (cselib_record_set): Likewise.
31123 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
31124 * df-scan.c (df_mark_reg): Likewise.
31125 * dse.c (look_for_hardregs): Likewise.
31126 * dwarf2out.c (reg_loc_descriptor): Likewise.
31127 (multiple_reg_loc_descriptor): Likewise.
31128 * expr.c (write_complex_part, read_complex_part): Likewise.
31129 (emit_move_complex): Likewise.
31130 * haifa-sched.c (setup_ref_regs): Likewise.
31131 * ira-lives.c (mark_hard_reg_live): Likewise.
31132 * lra.c (lra_set_insn_recog_data): Likewise.
31133 * mode-switching.c (create_pre_exit): Likewise.
31134 * postreload.c (reload_combine_recognize_const_pattern): Likewise.
31135 (reload_combine_recognize_pattern): Likewise.
31136 (reload_combine_note_use, move2add_record_mode): Likewise.
31137 (reload_cse_move2add): Likewise.
31138 * reg-stack.c (subst_stack_regs_pat): Likewise.
31139 * regcprop.c (kill_value, copy_value): Likewise.
31140 (copyprop_hardreg_forward_1): Likewise.
31141 * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
31142 (build_def_use): Likewise.
31143 * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
31144 (deps_analyze_insn): Likewise.
31145 * sched-rgn.c (check_live_1, update_live_1): Likewise.
31146 * sel-sched.c (count_occurrences_equiv): Likewise.
31147 * valtrack.c (dead_debug_insert_temp): Likewise.
31149 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
31151 * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
31152 * dse.c (note_add_store): Likewise.
31153 * ira-lives.c (mark_hard_reg_dead): Likewise.
31154 * loop-invariant.c (mark_reg_store): Likewise.
31155 (mark_reg_death): Likewise.
31156 * postreload.c (reload_combine): Likewise.
31157 (reload_combine_note_store): Likewise.
31158 (reload_combine_note_use): Likewise.
31159 * recog.c (peep2_reg_dead_p): Likewise.
31161 2015-05-19 Alan Modra <amodra@gmail.com>
31163 * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
31164 hard registers numbered greater or equal to ARG_POINTER_REGNUM.
31165 (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
31167 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
31168 Use altivec_register_operand. Make insn predicate TARGET_ALTIVEC.
31169 * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
31170 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
31172 2015-05-19 Sameera Deshpande <Sameera.Deshpande@imgtec.com>
31174 * config/mips/mips.md (JOIN_MODE): New mode iterator.
31175 (join2_load_Store<JOIN_MODE:mode>): New pattern.
31176 (join2_loadhi): Likewise.
31177 (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
31178 load-load and store-stores.
31179 * config/mips/mips.opt (mload-store-pairs): New option.
31180 (TARGET_LOAD_STORE_PAIRS): New macro.
31181 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
31182 * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
31183 * config/mips/mips.c (mips_load_store_bonding_p): New function.
31185 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
31187 * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
31189 * dojump.c (do_compare_rtx_and_jump): Likewise.
31190 * expmed.c (emit_store_flag_1): Likewise.
31191 * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
31192 * final.c (sprint_ul): Use std::reverse for reversing a string.
31193 * fold-const.c (extract_muldiv_1): Use std::swap.
31194 * genmodes.c (emit_mode_int_n): Likewise.
31195 * ifcvt.c (dead_or_predicable): Likewise.
31196 * ira-build.c (ira_merge_live_ranges): Likewise.
31197 (swap_allocno_copy_ends_if_necessary): Likewise.
31198 * ira.c (ira_setup_alts): Likewise.
31199 * loop-iv.c (iv_analyze_expr): Likewise.
31200 (implies_p): Likewise.
31201 (canon_condition): Likewise.
31202 * lra-constraints.c (swap_operands): Likewise.
31203 * lra-lives.c (lra_merge_live_ranges): Likewise.
31204 * omega.c (swap): Remove.
31206 (omega_unprotect_1): Use std::swap.
31207 (omega_solve_geq): Likewise.
31208 * optabs.c (expand_binop_directly): Likewise.
31209 (expand_binop): Likewise.
31210 (emit_conditional_move): Likewise.
31211 (emit_conditional_add): Likewise.
31212 * postreload.c (reload_cse_simplify_operands): Likewise.
31213 * reg-stack.c (emit_swap_insn): Likewise.
31214 (swap_to_top): Likewise.
31215 (compare_for_stack_reg): Likewise.
31216 (subst_asm_stack_regs): Likewise.
31217 * reload.c (find_reloads): Likewise.
31218 * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
31219 * sel-sched.c (invoke_reorder_hooks): Likewise.
31220 (create_block_for_bookkeeping): Likewise.
31221 * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
31222 (lambda_matrix_right_hermite): Use std::swap.
31223 * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
31224 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
31225 * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
31226 * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
31227 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
31228 * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
31229 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
31230 * tree-vrp.c (compare_ranges): Likewise.
31231 * var-tracking.c (add_with_sets): Likewise.
31232 (vt_find_locations): Likewise.
31234 2015-05-18 Andreas Tobler <andreast@gcc.gnu.org>
31236 * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
31238 (FBSD_ENDFILE_SPEC): Likewise.
31239 * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
31240 config/freebsd-spec.h.
31241 (ENDFILE_SPEC): Likewise.
31243 2015-05-18 Uros Bizjak <ubizjak@gmail.com>
31244 Richard Henderson <rth@redhat.com>
31247 * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
31248 Check for a memory location that is not a reference (using an AND)
31249 to an unaligned location here.
31250 * config/alpha/predicates.md (normal_memory_operand): Remove.
31252 2015-05-18 Alex Velenko <Alex.Velenko@arm.com>
31254 * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
31255 (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
31257 2015-05-18 Robert Suchanek <robert.suchanek@imgtec.com>
31259 * config/mips/mips.c (micromips_globals): New variable.
31260 (mips_set_compression_mode): Save and reinitialize target-dependent
31261 state for microMIPS.
31263 2015-05-18 Martin Liska <mliska@suse.cz>
31265 * dbgcnt.def: Add new counter.
31266 * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
31268 2015-05-18 Martin Liska <mliska@suse.cz>
31270 * dbgcnt.def: Sort counters.
31271 * opts.c (common_handle_option): Do not compile if
31272 -fdbg-cnt-list is enabled.
31274 2015-05-18 Tom de Vries <tom@codesourcery.com>
31276 * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
31277 (gimplify_va_arg_expr): Remove do_deref handling. Remove adding of
31278 address operator to va_list operand.
31279 * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
31281 * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
31283 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
31284 * config/s390/s390.c (s390_gimplify_va_arg): Same.
31285 * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
31287 2015-05-18 Tom de Vries <tom@codesourcery.com>
31289 * tree-ssa-tail-merge.c: Fix whitespace.
31291 2015-05-17 Jim Wilson <jim.wilson@linaro.org>
31293 * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
31294 cortex-a17, and cortex-a17.cortex-a7.
31296 2015-05-17 Oleg Endo <olegendo@gcc.gnu.org>
31299 * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
31301 2015-05-17 Uros Bizjak <ubizjak@gmail.com>
31304 * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
31305 QImode inner modes for TARGET_AVX512BW. Force mask operand
31306 to a register for AVX512F modes.
31308 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
31310 * toplev.c (emit_debug_global_declarations): Do not output debug info
31311 when doing slim LTO objects.
31313 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
31315 * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
31316 odr_types_equivalent_p): Declare.
31317 (odr_type_p): Use gcc_checking_assert.
31318 (type_in_anonymous_namespace_p) Declare.
31319 (type_with_linkage_p): Declare.
31320 * common.opt (Wlto-type-mismatch): New warning.
31321 * ipa-devirt.c (compound_type_base): New function.
31322 (odr_or_derived_type_p): New function.
31323 (odr_types_equivalent_p): New function.
31324 (add_type_duplicate): Simplify.
31325 (type_with_linkage_p): Add hack to prevent false positives on C types
31326 (type_in_anonymous_namespace_p): Likewise.
31327 * tree.c (need_assembler_name_p): Use type_with_linkage.
31328 * tree.h (type_in_anonymous_namespace_p): Remove.
31329 * doc/invoke.texi (-Wlto-type-mismatch): Document
31331 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
31333 * tree.c (verify_type_variant): Verify tree_base and type_common flags.
31334 (verify_type): Verify STRING_FLAG.
31336 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
31339 * tree-pretty-print.c (percent_K_format): Replace locus pointer
31340 with accessor function.
31341 * tree-diagnostic.c (diagnostic_report_current_function): Use
31342 diagnostic_location function.
31343 (maybe_unwind_expanded_macro_loc): Likewise.
31344 (virt_loc_aware_diagnostic_finalizer): Likewise.
31345 (default_tree_printer): Replace locus pointer with accessor function.
31346 * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
31347 (diagnostic_set_info_translated): Initialize second location.
31348 (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
31349 (diagnostic_show_locus): Handle two locations. Call
31350 diagnostic_print_caret_line.
31351 (diagnostic_print_caret_line): New.
31352 (default_diagnostic_starter): Use diagnostic_location function.
31353 (diagnostic_report_diagnostic): Use diagnostic_location function.
31354 (verbatim): Do not set text.locus.
31355 * diagnostic.h (struct diagnostic_info): Remove location field.
31356 (struct diagnostic_context): Make caret_chars an array of two.
31357 (diagnostic_location): New inline.
31358 (diagnostic_expand_location): Handle two locations.
31359 (diagnostic_same_line): New inline.
31360 (diagnostic_print_caret_line): Declare.
31361 (CARET_LINE_MARGIN): New constant.
31362 * pretty-print.c (pp_printf): Do not set text.locus.
31363 (pp_verbatim): Do not set text.locus.
31364 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
31365 (struct text_info): Replace locus pointer with locations
31366 array. Add accessor functions.
31368 2015-05-16 Kugan Vivekanandarajah <kuganv@linaro.org>
31369 Zhenqiang Chen <zhenqiang.chen@linaro.org>
31372 * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
31373 * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
31374 large constants in register instead of splitting them.
31376 2015-05-16 Uros Bizjak <ubizjak@gmail.com>
31379 * config/alpha/alpha.c (get_aligned_mem): Also look for reload
31380 replacements in memory addresses.
31381 (get_unaligned_address): Ditto.
31383 2015-05-16 James Bowman <james.bowman@ftdichip.com>
31385 * config/ft32/*: New files for FT32 port.
31386 * doc/install.texi: Add FT32 information.
31387 * doc/invoke.texi: Add FT32 information.
31388 * doc/md.texi: Add FT32 information.
31389 * doc/contrib.texi: Self added.
31391 2015-05-15 Marc Glisse <marc.glisse@inria.fr>
31393 PR tree-optimization/64454
31394 * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
31395 (-1 - A -> ~A): Remove unnecessary condition.
31397 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
31399 * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
31400 * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
31401 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
31403 2015-05-15 Ilya Enkovich <ilya.enkovich@intel.com>
31405 * ipa-chkp.h (chkp_wrap_function): New.
31406 * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
31407 (chkp_wrap_function_name): New.
31408 (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
31409 to get wrapper name.
31410 * lto-cgraph.c: Include ipa-chkp.h.
31411 (input_cgraph_1): Avoid alias chain for wrappers.
31413 2015-05-15 Ilya Enkovich <enkovich.gnu@gmail.com>
31415 PR middle-end/66134
31416 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
31417 (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
31419 2015-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31421 * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
31422 (AARCH64_FL_SLOWMUL): Delete.
31423 (AARCH64_FL_CRC): Redefine to 1<<3.
31424 (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
31426 2015-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
31428 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
31431 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
31433 * config/alpha/alpha.md (extendqidi2): Use general_operand
31434 instead of some_operand for operand[1] predicate.
31435 (extendhidi2): Ditto.
31436 (cbranchdi4): Use general_operand instead of some_operand
31437 for operand[1] and operands[2] predicates.
31438 (cstoredi4): Ditto.
31439 * config/alpha/predicates.md (some_operand): Remove unused predicate.
31440 (some_ni_operand): Ditto.
31442 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
31444 * config/alpha/alpha.c (alpha_extract_integer): Do not handle
31445 CONST_WIDE_INT and CONST_DOUBLE. Assert CONST_INT_P (x).
31446 (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
31447 low part of the constant using alpha_emit_set_const_1.
31448 (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
31450 2015-05-14 Rohit Arul Raj <rohitrulraj@freescale.com>
31452 * varasm.c (output_constant_pool_1): Pass down alignment from
31453 constant pool entry's descriptor to output_constant_pool_2.
31454 (output_object_block): Add comment prior to call to
31455 output_constant_pool_1.
31457 2015-05-14 Vladimir Makarov <vmakarov@redhat.com>
31459 PR rtl-optimization/65862
31460 * target.def (ira_change_pseudo_allocno_class): New hook.
31461 * targhooks.c (default_ira_change_pseudo_allocno_class): Default
31463 * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
31464 * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
31466 * ira-costs.c (find_costs_and_classes): Call the hook and change
31467 classes when it is necessary.
31468 * doc/tm.texi: Update.
31470 2015-05-14 Alexander Monakov <amonakov@ispras.ru>
31472 * config/i386/i386.md (sibcall_memory): Check that register with
31473 callee address is not also used as one of the arguments, instead
31474 of checking that it is not live after the sibcall.
31475 (sibcall_pop_memory): Ditto.
31476 (sibcall_value_memory): Ditto.
31477 (sibcall_value_pop_memory): Ditto.
31479 2015-05-14 Marc Glisse <marc.glisse@inria.fr>
31481 * generic-match-head.c (types_match): Handle non-types.
31482 * gimple-match-head.c (types_match): Likewise.
31483 * match.pd: Remove unnecessary TREE_TYPE for types_match.
31485 2015-05-14 Wilco Dijkstra <wdijkstr@arm.com>
31487 * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
31488 (csneg3<mode>_insn): Enable expansion of pattern.
31490 2015-05-14 Nick Clifton <nickc@redhat.com>
31492 * config/rl78/rl78.c (rl78_select_section): Select the correct
31493 default section based upon the category of the decl.
31495 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
31497 PR rtl-optimization/30967
31498 * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
31499 destination mode for the cost of scc patterns.
31501 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
31503 * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
31504 using SWIM248 mode iterator.
31505 (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
31506 (*mulvhi4): mark operand[1] as commutative. Use nonimmediate_operand
31507 for operand[2] constraint.
31508 (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
31510 2015-05-13 Jakub Jelinek <jakub@redhat.com>
31512 PR middle-end/66133
31513 * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
31514 make sure it is never noreturn, even when the task body does not
31516 (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
31517 right before GIMPLE_OMP_RETURN.
31518 (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
31519 for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
31520 GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
31522 2015-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31524 * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
31525 * tree-ssa-math-opts.c: Include params.h
31526 (pow_synth_sqrt_info): New struct.
31527 (representable_as_half_series_p): New function.
31528 (get_fn_chain): Likewise.
31529 (print_nested_fn): Likewise.
31530 (dump_fractional_sqrt_sequence): Likewise.
31531 (dump_integer_part): Likewise.
31532 (expand_pow_as_sqrts): Likewise.
31533 (gimple_expand_builtin_pow): Use above to attempt to expand
31534 pow as series of square roots. Removed now unused variables.
31536 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
31538 * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
31539 (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
31540 Remove *p0 and *p1 arguments. Rewrite function.
31541 (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
31542 (alpha_split_const_mov): Update calls to alpha_extract_integer and
31543 alpha_emit_set_long_const.
31544 (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
31545 (alpha_output_mi_thunk_osf): Ditto.
31546 * config/alpha/alpha.md (movti): Do not check operands[1]
31549 2015-05-13 Richard Biener <rguenther@suse.de>
31551 PR tree-optimization/66129
31552 * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
31554 (vect_schedule_slp_instance): Fix typo.
31556 2015-05-13 David Malcolm <dmalcolm@redhat.com>
31558 * common.opt (fdump-internal-locations): New option.
31559 * input.c: Include diagnostic-core.h.
31560 (get_end_location): New function.
31561 (write_digit): New function.
31562 (write_digit_row): New function.
31563 (dump_location_range): New function.
31564 (dump_labelled_location_range): New function.
31565 (dump_location_info): New function.
31566 * input.h (dump_location_info): New prototype.
31567 * toplev.c (compile_file): Handle flag_dump_locations.
31569 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
31571 * gimple-expr.h (is_gimple_constant): Reorder.
31572 * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
31574 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
31576 * combine.c (simplify_set): When generating a CC set, if the
31577 source already is in the correct mode, do not wrap it in a
31578 compare. Simplify the rest of that code.
31580 2015-05-13 Richard Biener <rguenther@suse.de>
31582 PR tree-optimization/66123
31583 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
31586 2015-05-13 Richard Biener <rguenther@suse.de>
31588 PR middle-end/66110
31589 * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
31591 * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
31593 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
31595 * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
31596 * aclocal.m4: Regenerated with automake-1.11.6.
31598 2015-05-13 Tom de Vries <tom@codesourcery.com>
31600 PR tree-optimization/66010
31601 * gimplify.h (gimplify_va_arg_internal): Remove declaration.
31602 * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
31603 * tree-stdarg.c (expand_ifn_va_arg_1): ... here. Choose between lval
31604 and rval based on do_deref.
31606 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
31609 * config/i386/i386.c (ix86_rtx_costs): We want to propagate
31610 link time constants into adress expressions and therefore set
31613 2015-05-13 Jakub Jelinek <jakub@redhat.com>
31616 * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
31617 Use SWI248 iterator instead of SWI.
31618 (*mulv<mode>4_1): Use SWI48 instead of SWI. Simplify output template.
31619 Use eq_attr "alternative" "0" instead of match_test in
31620 length_immediate attribute computation.
31621 (*mulvhi4, *mulvhi4_1): New define_insns.
31624 * internal-fn.c (get_min_precision): Use UNSIGNED instead of
31625 SIGNED to get precision of non-negative value.
31627 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
31630 * function.c (diddle_return_value_1): Process bounds first.
31631 * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
31634 2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
31636 PR rtl-optimization/64616
31637 * loop-invariant.c (can_move_invariant_reg): New.
31638 (move_invariant_reg): Call above new function to decide whether
31639 instruction can just be moved, skipping creation of temporary
31642 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
31644 PR target/pr66047.c
31645 * i386.c (ix86_function_sseregparm): Only return -1 if local function
31646 with implied regparm is called from -mno-sse function.
31647 (init_cumulative_args): Output error if ix86_function_sseregparm
31648 return -1 and SSE register would be needed.
31649 (function_arg_advance_32): Likewise.
31650 (function_arg_32): Likewise.
31651 * i386.h (ix86_args): Add decl field.
31653 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
31656 * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
31657 inlines across optimization boundary.
31659 2015-05-12 Jason Merrill <jason@redhat.com>
31661 * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
31662 string literal and macro name.
31664 2015-05-12 Steve Ellcey <sellcey@imgtec.com>
31666 * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
31667 * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
31668 * config/mips/predicates.md (const_immlsa_operand): Remove log call.
31670 2015-05-12 David Malcolm <dmalcolm@redhat.com>
31672 * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
31673 (-Wmisleading-indentation): New option.
31674 * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
31676 2015-05-12 Uros Bizjak <ubizjak@gmail.com>
31678 * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
31679 * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
31680 (alpha_extract_integer): Ditto.
31681 (alpha_legitimate_constant_p): Ditto.
31682 (alpha_split_tmode_pair): Ditto.
31683 (alpha_preferred_reload_class): Add CONST_WIDE_INT.
31684 (alpha_expand_mov): Ditto.
31685 (print_operand): Remove handling of 'H' modifier.
31686 <case 'm'>: Remove CONST_DOUBLE handling.
31687 (summarize_insn): Handle CONST_WIDE_INT.
31688 * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
31690 (movti): Handle CONST_WIDE_INT.
31691 * config/alpha/constraints.md ('H'): Remove constraint definition.
31692 ('G'): Do not match MODE_FLOAT class.
31693 * config/alpha/predicates.md (const0_operand): Also match
31695 (non_add_const_operand): Ditto.
31696 (non_zero_const_operand): Ditto.
31697 (some_operand): Ditto.
31698 (input_operand): Ditto. Handle CONST_WIDE_INT.
31699 (and_operand): Do not match const_double.
31700 * config/alpha/sync.md (fetchop_constr): Remove H constraint.
31702 2015-05-12 Andrew MacLeod <amacleod@redhat.com>
31705 * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
31706 (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
31707 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
31708 is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
31709 is_mm_seq_cst, is_mm_sync): New accessor functions.
31710 * builtins.c (expand_builtin_sync_operation,
31711 expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
31712 (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
31713 (get_memmodel, expand_builtin_atomic_compare_exchange,
31714 expand_builtin_atomic_load, expand_builtin_atomic_store,
31715 expand_builtin_atomic_clear): Use new accessor routines.
31716 (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
31717 * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
31718 (maybe_emit_sync_lock_test_and_set): Use new accessors and
31719 MEMMODEL_SYNC_ACQUIRE.
31720 (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
31721 (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
31722 expand_atomic_store): Use new accessors.
31723 * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
31724 * tsan.c (instrument_builtin_call): Update check for memory model beyond
31725 final enum to use MEMMODEL_LAST.
31726 * c-family/c-common.c: Use new accessor for memmodel_base.
31727 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
31729 * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
31730 arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
31731 mem_thread_fence, *dmb): Likewise.
31732 * config/alpha/alpha.c (alpha_split_compare_and_swap,
31733 alpha_split_compare_and_swap_12): Likewise.
31734 * config/arm/arm.c (arm_expand_compare_and_swap,
31735 arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
31736 * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
31737 atomic_loaddi): Likewise.
31738 * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
31740 * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
31741 * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
31743 * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
31744 atomic_store<mode>, atomic_compare_and_swap<mode>,
31745 atomic_exchange<mode>): Use new accessors.
31746 * config/mips/mips.c (mips_process_sync_loop): Likewise.
31747 * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
31748 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
31749 rs6000_post_atomic_barrier): Add new cases.
31750 (rs6000_expand_atomic_compare_and_swap): Use new accessors.
31751 * config/rs6000/sync.md (mem_thread_fence): Add new cases.
31752 (atomic_load<mode>): Add new cases and use new accessors.
31753 (store_quadpti): Add new cases.
31754 * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
31756 * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
31757 * doc/extend.texi: Update docs to indicate 16 bits are used for memory
31760 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
31762 * ipa-devirt.c (type_with_linkage_p): New function.
31763 (type_in_anonymous_namespace_p): Move here from tree.c; assert that
31765 (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
31766 (can_be_name_hashed_p): Simplify.
31767 (hash_odr_name): Check that type has linkage before checking if it is
31769 (types_same_for_odr): Likewise.
31770 (odr_name_hasher::equal): Likewise.
31771 (odr_subtypes_equivalent_p): Likewise.
31772 (warn_types_mismatch): Likewise.
31773 (get_odr_type): Likewise.
31774 (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
31775 * ipa-utils.h (odr_type_p): Move offline.
31776 * tree.c (need_assembler_name_p): Fix handling of types
31778 (type_in_anonymous_namespace_p): Move to ipa-devirt.c
31780 2015-05-12 David Malcolm <dmalcolm@redhat.com>
31782 * timevar.c (timevar_enable): Delete in favor of...
31783 (g_timer): New global.
31784 (struct timevar_def): Move to timevar.h inside class timer.
31785 (struct timevar_stack_def): Likewise.
31786 (timevars): Delete global in favor of field "m_timevars" within
31787 class timer in timevar.h
31788 (stack): Likewise, in favor of field "m_stack".
31789 (unused_stack_instances): Likewise, in favor of field
31790 "m_unused_stack_instances".
31791 (start_time): Likewise, in favor of field "m_start_time".
31792 (get_time): Eliminate check for timevar_enable.
31793 (timer::timer): New function, built from part of timevar_init.
31794 (timevar_init): Rewrite idempotency test from using
31795 "timevar_enable" bool to using dynamic allocation of "g_timer".
31796 Move rest of implementation into timer's constructor.
31797 (timevar_push_1): Rename to...
31798 (timer::push): ...this, adding "m_" prefixes to variables that
31799 are now fields of timer.
31800 (timevar_pop_1): Likewise, rename to...
31801 (timer::pop): ...this, and add "m_" prefixes.
31802 (timevar_start): Replace test for "timevar_enable" with one for
31803 "g_timer", and move bulk of implementation to...
31804 (timer::start): ...here, adding "m_" prefixes.
31805 (timevar_stop): Likewise, from here...
31806 (timer::stop): ...to here.
31807 (timevar_cond_start): Likewise, from here...
31808 (timer::cond_start): ...to here.
31809 (timevar_cond_stop): Likewise, from here...
31810 (timer::cond_stop): ...to here.
31811 (validate_phases): Rename to...
31812 (timer::validate_phases): ...this, and add "m_" prefixes. Make
31813 locals "total" and "tv" const.
31814 (timevar_print): Rename to...
31815 (timer::print): ...this, and add "m_" prefixes. Make locals
31816 "total" and "tv" const. Eliminate test for timevar_enable.
31817 * timevar.h (timevar_enable): Eliminate.
31818 (g_timer): New declaration.
31819 (timevar_push_1): Eliminate.
31820 (timevar_pop_1): Eliminate.
31821 (timevar_print): Eliminate.
31822 (class timer): New class.
31823 (timevar_push): Rewrite to use g_timer.
31824 (timevar_pop): Likewise.
31825 * toplev.c (toplev::~toplev): Likewise.
31827 2015-05-12 Richard Earnshaw <rearnsha@arm.com>
31829 * arm-protos.h (arm_sched_autopref): Delete.
31830 (tune_params): Re-organize, use enums for flag values.
31831 (FUSE_OPS): New macro.
31832 * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
31833 (ARM_PREFETCH_BENEFICIAL): Likewise.
31834 (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
31835 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
31836 (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
31837 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
31838 (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
31839 (arm_cortex_a57_tune, arm_xgene1_tune, arm_cortex_a5_tune)
31840 (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
31841 (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
31843 (arm_option_override, thumb2_reorg, arm_print_tune_info)
31844 (aarch_macro_fusion_pair_p): Update uses of current_tune.
31845 * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
31847 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
31849 * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
31852 2015-05-12 Chung-Lin Tang <cltang@codesourcery.com>
31853 Sandra Loosemore <sandra@codesourcery.com>
31855 * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
31857 (REG_CLASS_NAMES): Add "IJMP_REGS".
31858 (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
31859 * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
31860 use new "c" register constraint.
31861 * config/nios2/constraint.md (c): New register constraint
31862 corresponding to IJMP_REGS.
31864 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
31866 * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
31867 *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
31868 define_splits): Delete, revamp, transmogrify into ...
31869 (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
31870 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
31871 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
31874 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
31876 * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
31877 gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
31879 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
31881 * config/rs6000/rs6000.md (extzv): FAIL for SImode.
31882 (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
31883 *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
31884 *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
31885 *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
31886 *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
31887 *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
31888 *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
31889 *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
31890 *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
31891 *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
31892 *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
31893 *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
31894 *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
31895 *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
31896 *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
31897 and 30 corresponding splitters): Delete.
31899 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
31901 * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
31904 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
31906 * combine.c (recog_for_combine_1): New function, factored out
31907 from recog_for_combine.
31908 (change_zero_ext): New function.
31909 (recog_for_combine): If recog fails, try again with the pattern
31910 modified by change_zero_ext; if that still fails, restore the
31913 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
31915 * combine.c (get_undo_marker): New function.
31916 (undo_to_marker): New function, largely factored out from ...
31917 (undo_all): ... this. Adjust.
31919 2015-05-12 Richard Biener <rguenther@suse.de>
31921 PR tree-optimization/66101
31922 * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
31923 fixup if we turn a loop exit edge to a fallthru edge.
31925 2015-05-12 Richard Biener <rguenther@suse.de>
31927 PR tree-optimization/37021
31928 * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
31929 (SLP_TREE_TWO_OPERATORS): New define.
31930 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
31931 SLP_TREE_TWO_OPERATORS.
31932 (vect_build_slp_tree_1): Allow two mixing plus/minus in an
31934 (vect_build_slp_tree): Adjust.
31935 (vect_analyze_slp_cost_1): Likewise.
31936 (vect_schedule_slp_instance): Vectorize mixing plus/minus by
31937 emitting two vector stmts and mixing the results.
31939 2015-05-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
31941 * call.c (print_z_candidates): Remove dead code.
31943 2015-05-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31945 * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
31946 and zEC12_simple_fp.
31947 * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
31950 2015-05-12 Tom de Vries <tom@codesourcery.com>
31952 PR tree-optimization/66010
31953 * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
31955 * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
31956 (gimplify_va_arg_internal): Remove loc parameter. Assert no array-typed
31957 va_lists are passed, and remove corresponding handling.
31958 (gimplify_va_arg_expr): Only take address of ap if necessary. Add
31959 do_deref argument to ifn_va_arg.
31960 * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
31963 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31966 * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
31967 REG before taking its REGNO.
31969 2015-05-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
31971 * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
31972 rsp->sign_bit_copies and rsp->nonzero_bits into ...
31973 (update_rsp_from_reg_equal): This. Also use REG_EQUAL note on src if
31974 present to get more accurate information about the number of sign bit
31975 copies and non zero bits.
31977 2015-05-12 Richard Biener <rguenther@suse.de>
31979 * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
31980 do not allow unrolling.
31982 2015-05-11 Richard Henderson <rth@redhat.com>
31984 * config/i386/i386-modes.def (CCP): New.
31985 * config/i386/i386.c (put_condition_code): Handle it.
31986 (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
31988 2015-05-11 Richard Henderson <rth@redhat.com>
31990 * target.def (md_asm_clobbers): Replace with...
31991 (md_asm_adjust): this.
31992 * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
31993 (TARGET_MD_ASM_ADJUST): New.
31994 * tm.texi: Rebuild.
31995 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
31996 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
31997 * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
31999 * cfgexpand.c (check_operand_nalternatives): Accept vector of
32000 constraints instead of lists of outputs and inputs.
32001 (expand_asm_stmt): Save and restore input_location around the
32002 body of the function. Move asm data into vectors instead of
32003 building tree lists. Generate cleanup sequences as needed,
32004 rather than waiting til the end. Use new md_asm_adjust hook.
32006 * config/vxworks.c: Include vec.h before target.h.
32007 * gimple.c: Likewise.
32008 * incpath.c: Likewise.
32009 * mode-switching.c: Likewise.
32011 * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
32012 (cris_md_asm_adjust): this.
32013 (TARGET_MD_ASM_CLOBBERS): Remove.
32014 (TARGET_MD_ASM_ADJUST): New.
32015 * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
32016 (ix86_md_asm_adjust): this.
32017 (TARGET_MD_ASM_CLOBBERS): Remove.
32018 (TARGET_MD_ASM_ADJUST): New.
32019 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
32020 (mn10300_md_asm_adjust): this.
32021 (TARGET_MD_ASM_CLOBBERS): Remove.
32022 (TARGET_MD_ASM_ADJUST): New.
32023 * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
32024 (rs6000_md_asm_adjust): this.
32025 (TARGET_MD_ASM_CLOBBERS): Remove.
32026 (TARGET_MD_ASM_ADJUST): New.
32027 * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
32028 (visium_md_asm_adjust): this.
32029 (TARGET_MD_ASM_CLOBBERS): Remove.
32030 (TARGET_MD_ASM_ADJUST): New.
32032 2015-05-11 Richard Henderson <rth@redhat.com>
32034 * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
32035 if noutputs is zero.
32036 * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
32038 * cfgexpand.c (expand_asm_operands): Merge into...
32039 (expand_asm_stmt): ... here.
32041 * cfgexpand.c (expand_asm_operands): Don't call
32042 resolve_asm_operand_names.
32043 * stmt.c (resolve_asm_operand_names): Clarify block comment.
32045 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
32047 * dwarf2out.c (gen_member_die): Sanity check that we access
32048 TYPE_MAIN_VARIANT for TYPE_METHODS.
32049 * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
32050 checking TYPE_METHODS.
32051 * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
32053 (build_distinct_type_copy): Clear TYPE_METHODS.
32054 (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
32055 (verify_type): Allow TYPE_METHODS to be error_mark_node.
32056 * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
32058 2015-05-11 Eric Botcazou <ebotcazou@adacore.com>
32060 * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
32061 (emit_pattern_before_setloc): Likewise.
32063 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
32065 * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
32066 for define_peephole2s.
32067 (get_peephole2_pattern): New function.
32068 (main): Use it. Call validate_pattern.
32070 2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
32072 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
32073 LAST_CALLEE_SAVED_REG instead of hard-coded register number.
32074 (Last callee saved reg is different for AVR_TINY architecture)
32076 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
32078 * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
32079 when looking for memory references.
32081 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
32084 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
32085 via function pointers.
32087 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
32089 * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
32090 indirect call by forcing address into a pseudo with -fno-plt.
32091 * common.opt (flag_plt): New option.
32092 * doc/invoke.texi (Code Generation Options): Add -fno-plt.
32093 ([-fno-plt]): Document.
32095 2015-05-11 Markus Trippelsdorf <markus@trippelsdorf.de>
32098 * config/rs6000/option-defaults.h: Add space between string literal
32101 2015-05-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
32103 * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
32104 accross ARM targets.
32106 2015-05-11 Christian Bruel <christian.bruel@st.com>
32108 * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
32109 * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
32111 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
32113 PR rtl-optimization/66076
32114 * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
32115 Don't grow the heap array if it is already big enough from a
32116 previous iteration.
32118 2015-05-11 Christian Bruel <christian.bruel@st.com>
32120 * config/arm/arm-protos.h (arm_declare_function_name): Declare.
32121 (is_called_in_ARM_mode): Remove.
32122 * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
32123 (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
32124 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
32125 arm_declare_function_name.
32127 2015-05-11 Christian Bruel <christian.bruel@st.com>
32129 * config/arm/arm.c (arm_option_override): Reoganized and split into :
32130 (arm_option_params_internal); New function.
32131 (arm_option_check_internal): New function.
32132 (arm_option_override_internal): New function.
32133 (thumb_code, thumb1_code): Remove.
32134 * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
32135 (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
32136 (thumb_code, thumb1_code): Remove.
32137 * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
32139 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
32141 * config/alpha/alpha.c (alpha_emit_set_const_1)
32142 (alpha_emit_set_long_const, alpha_extract_integer)
32143 (alpha_legitimate_constant_p, alpha_split_const_mov)
32144 (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
32145 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
32146 (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
32148 * config/alpha/predicates.md (mode_mask_operand): Do not match
32150 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
32151 * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
32152 Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
32153 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
32154 (*negtf_internal): Use gen_int_mode instead of immed_double_const.
32156 2015-05-11 Jakub Jelinek <jakub@redhat.com>
32159 * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
32160 default_binds_local_p_2.
32161 * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
32162 * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
32164 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
32166 * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
32168 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
32170 Patch by Richard Biener
32171 * coverage.c (coverage_obj_init): Delay building of type variant
32172 until the type is finished.
32174 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
32176 * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
32177 mismatch between C and C++ type; compoare correctly ARG_TYPES
32178 for non-prototypes and output correctly parameter index for METHOD_TYPE.
32179 (odr_types_equivalent_p): Fix wording of warning about attributes;
32180 it is OK to match prototype and non-prototype.
32182 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
32184 * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
32185 TYPE_ARG_TYPES list.
32186 (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
32187 * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
32189 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
32191 * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
32192 * tree.h (is_lang_specific): Constify.
32194 2015-05-09 Marc Glisse <marc.glisse@inria.fr>
32196 PR tree-optimization/64454
32197 * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
32200 2015-05-08 Jason Merrill <jason@redhat.com>
32202 * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
32203 config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
32204 config/darwin.h, config/darwin9.h, config/elfos.h,
32205 config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
32206 config/microblaze/microblaze.h, config/mips/mips.h,
32207 config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
32208 config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
32209 config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
32210 config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
32211 config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
32212 cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
32213 dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
32214 ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
32215 ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
32216 modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
32217 tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
32218 between string literal and macro name.
32220 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32222 * jump.c: Change argument types to rtx_insn *.
32225 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32227 * lra-constraints.c: Change argument type to rtx_insn *.
32229 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32231 * df-problems.c: Change argument type to rtx_insn *.
32233 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32235 * combine.c: Change argument type to rtx_insn *.
32237 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32240 * rtlanal.c: Change argument type to rtx_insn *.
32242 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32244 * sched-deps.c: Change argument types to rtx_insn *.
32245 * sched-int.h: Adjust.
32247 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32249 * dwarf2cfi.c: Change argument type to rtx_insn *.
32251 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32253 * ira.c (decrease_live_ranges_number): Changetype of local
32254 variable to rtx_insn *.
32255 * recog.c: Change argument types to rtx_insn *.
32258 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32260 * reorg.c: Change argument types to rtx_insn *.
32262 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32264 * ira-color.c: Change argument types to rtx_insn *.
32265 * lra-eliminations.c: Likewise.
32268 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32270 * gcse.c: Change argument types to rtx_insn *.
32272 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32274 * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
32276 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32278 * emit-rtl.c (emit_debug_insn_before): Change argument type to
32282 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32284 * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
32287 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32289 * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
32292 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32294 * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
32297 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32299 * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
32302 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32304 * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
32308 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32310 * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
32314 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32316 * except.c (can_nonlocal_goto): Change type of argument to
32320 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32322 * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
32325 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32327 * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
32328 * cfgrtl.c (can_delete_label_p): Adjust.
32331 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32333 * reorg.c (stop_search_p): Change argument to rtx_insn *.
32335 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32337 * except.c (make_reg_eh_region_note): Change argument to
32339 (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
32340 * except.h: Adjust.
32342 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32344 * mode-switching.c (commit_mode_sets): Change type of local
32345 variable from rtx to rtx_insn *.
32347 2015-05-08 Jim Wilson <jim.wilson@linaro.org>
32349 * doc/install.texi (--enable-languages): Add missing jit and lto info.
32350 Add ^ to grep command.
32351 * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
32352 arg to last gimple_simplify declaration. Add missing gimple_build
32353 declaration for built-in function case with four tree args.
32355 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
32356 Szabolcs Nagy <szabolcs.nagy@arm.com>
32358 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
32359 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
32360 (GNU_USER_DYNAMIC_LINKERN32): Update.
32362 2015-05-08 Richard Biener <rguenther@suse.de>
32364 PR tree-optimization/66036
32365 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
32366 Handle strided group loads.
32367 (vect_verify_datarefs_alignment): Likewise.
32368 (vect_enhance_data_refs_alignment): Likewise.
32369 (vect_analyze_group_access): Likewise.
32370 (vect_analyze_data_ref_access): Likewise.
32371 (vect_analyze_data_ref_accesses): Likewise.
32372 * tree-vect-stmts.c (vect_model_load_cost): Likewise.
32373 (vectorizable_load): Likewise.
32375 2015-05-08 Segher Boessenkool <segher@kernel.crashing.org>
32377 * config/rs6000/rs6000.md: Require operand inequality in one
32380 2015-05-08 Richard Sandiford <richard.sandiford@arm.com>
32381 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
32383 * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
32385 * config/rx/rx.md (movdi, movdf): Likewise.
32386 Likewise for define_peephole2s.
32388 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
32390 * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
32391 vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
32392 vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
32393 vtst_u64): Rewrite using gcc vector extensions.
32395 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
32397 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
32398 vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
32400 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
32402 * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
32404 2015-05-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
32406 * config/glibc-stdint.h (OPTION_MUSL): Define.
32407 (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
32408 Change the definition based on OPTION_MUSL for 64 bit targets.
32409 * config/linux.h (OPTION_MUSL): Redefine.
32410 * config/alpha/linux.h (OPTION_MUSL): Redefine.
32411 * config/rs6000/linux.h (OPTION_MUSL): Redefine.
32412 * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
32414 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
32415 Szabolcs Nagy <szabolcs.nagy@arm.com>
32417 * config.gcc (LIBC_MUSL): New tm_defines macro.
32418 * config/linux.h (OPTION_MUSL): Define.
32419 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
32420 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
32421 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
32422 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
32423 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
32424 * config/linux.opt (mmusl): New option.
32425 * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
32426 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
32427 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
32428 * configure: Regenerate.
32430 2015-05-08 H.J. Lu <hongjiu.lu@intel.com>
32431 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
32434 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
32435 * config/i386/knetbsd-gnu64.h: New file.
32437 2015-05-08 Marek Polacek <polacek@redhat.com>
32440 * doc/invoke.texi: Document -Woverride-init-side-effects.
32442 2015-05-07 Marek Polacek <polacek@redhat.com>
32445 * doc/invoke.texi: Document -Wshift-negative-value.
32447 2015-05-06 Aditya Kumar <hiraditya@msn.com>
32449 * gcov-tool.c (do_merge): Refactore to remove int ret.
32450 * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
32451 !type == FUNC to type != FUNC.
32452 * reload.h (struct target_reload): Changee to type of
32453 x_spill_indirect_levels from bool to unsigned char.
32455 2015-05-07 Richard Sandiford <richard.sandiford@arm.com>
32457 * rtl.h (always_void_p): New function.
32458 * gengenrtl.c (always_void_p): Likewise.
32459 (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
32460 with code foo are always VOIDmode.
32461 * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
32462 * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
32463 compare-elim.c, config/aarch64/aarch64.c,
32464 config/aarch64/aarch64.md, config/alpha/alpha.c,
32465 config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
32466 config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
32467 config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
32468 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
32469 config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
32470 config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
32471 config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
32472 config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
32473 config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
32474 config/ia64/vect.md, config/iq2000/iq2000.c,
32475 config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
32476 config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
32477 config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
32478 config/mep/mep.c, config/microblaze/microblaze.c,
32479 config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
32480 config/mn10300/mn10300.c, config/msp430/msp430.c,
32481 config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
32482 config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
32483 config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
32484 config/rs6000/altivec.md, config/rs6000/rs6000.c,
32485 config/rs6000/rs6000.md, config/rs6000/vector.md,
32486 config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
32487 config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
32488 config/sh/sh.md, config/sh/sh_treg_combine.cc,
32489 config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
32490 config/spu/spu.md, config/stormy16/stormy16.c,
32491 config/tilegx/tilegx.c, config/tilegx/tilegx.md,
32492 config/tilepro/tilepro.c, config/tilepro/tilepro.md,
32493 config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
32494 config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
32495 expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
32496 lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
32497 reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
32498 var-tracking.c: Update calls accordingly.
32500 2015-05-07 Segher Boessenkool <segher@kernel.crashing.org>
32503 PR middle-end/54303
32504 * varasm.c (function_mergeable_rodata_prefix): New function.
32505 (mergeable_string_section): Use it.
32506 (mergeable_constant_section): Use it.
32508 2015-05-07 Jeff Law <law@redhat.com>
32511 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
32512 simplifier to narrow arithmetic.
32513 * generic-match-head.c: (types_match, single_use): New functions.
32514 * gimple-match-head.c: (types_match, single_use): New functions.
32516 2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
32518 * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
32521 2015-05-07 Richard Biener <rguenther@suse.de>
32523 PR tree-optimization/66002
32524 * passes.def: Schedule another pass_merge_phi after ifcombine, right
32527 2015-05-07 Marek Polacek <polacek@redhat.com>
32528 Martin Uecker <uecker@eecs.berkeley.edu>
32530 * doc/invoke.texi: Document -fsanitize=bounds-strict.
32531 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
32532 into SANITIZE_NONDEFAULT.
32533 * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
32535 2015-05-07 Uros Bizjak <ubizjak@gmail.com>
32538 * config/alpha/alpha.c (alpha_override_options_after_change): New.
32539 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
32540 (alpha_override_options): Move align_loops, align_jumps and
32541 align_functions handling into alpha_override_options_after_change.
32543 2015-05-06 Sandra Loosemore <sandra@codesourcery.com>
32544 Chris Jones <chrisj@nvidia.com>
32545 Joshua Conner <jconner@nvidia.com>
32547 * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
32548 linking of crtfastmath.o.
32549 * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
32551 2015-05-06 Segher Boessenkool <segher@kernel.crashing.org>
32553 * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
32554 (cstore<mode>4_unsigned_imm): New expander.
32555 (cstore<mode>4): Remove empty constraint strings. Use the new
32558 2015-05-06 Yvan Roux <yvan.roux@linaro.org>
32561 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
32564 2015-05-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
32566 * config/aarch64/geniterators.sh: Use standard BRE in sed.
32568 2015-05-06 Alan Modra <amodra@gmail.com>
32571 * config/rs6000/rs6000.md (nop): Use an unspec pattern.
32572 (UNSPEC_NOP): Define.
32573 (reload_vsx_from_gpr<mode>): Add missing DONE.
32574 (reload_gpr_from_vsx<mode>): Likewise.
32575 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
32576 (vsx_div_v2di, vsx_udiv_v2di): Likewise.
32578 2015-05-06 Christian Bruel <christian.bruel@st.com>
32581 * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
32582 align_jumps, align_functions into aarch64_override_options_after_change.
32584 2015-05-06 Richard Biener <rguenther@suse.de>
32586 * tree-vect-slp.c (vect_supported_load_permutation_p): Use
32587 vect_transform_slp_perm_load to check if we support a permutation
32588 for basic-block vectorization.
32590 2015-05-06 Nick Clifton <nickc@redhat.com>
32592 * config/rl78/rl78.c (need_to_save): Save register 22 if it is
32593 used, even if it is not being used as a frame pointer.
32595 2015-05-05 Jason Merrill <jason@redhat.com>
32597 * dwarf2out.c (gen_member_die): Don't emit anything for an
32598 anonymous class constructor.
32600 2015-05-05 David Malcolm <dmalcolm@redhat.com>
32602 * auto-profile.c (afdo_find_equiv_class): Fix indentation so
32603 that it reflects the block structure.
32604 (afdo_propagate_edge): Likewise.
32605 (afdo_calculate_branch_prob): Likewise.
32606 (afdo_annotate_cfg): Likewise.
32607 * cfgcleanup.c (equal_different_set_p): Likewise.
32608 (try_crossjump_to_edge): Likewise.
32609 * cgraph.c (cgraph_node::verify_node): Likewise.
32610 * cgraphunit.c (expand_all_functions): Likewise.
32611 * config/i386/i386.c (ix86_expand_copysign): Likewise.
32612 (exact_dependency_1): Likewise.
32613 * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
32614 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
32615 * gensupport.c (process_define_subst): Likewise.
32616 * lto-wrapper.c (merge_and_complain): Likewise.
32617 * tree-if-conv.c (if_convertible_bb_p): Likewise.
32618 * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
32619 * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
32620 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
32621 * tree-vect-loop.c (vectorizable_reduction): Likewise.
32622 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
32623 * tree-vect-stmts.c (vectorizable_shift): Likewise.
32624 * tree-vrp.c (vrp_finalize): Likewise.
32625 * tree.c (variably_modified_type_p): Likewise.
32627 2015-05-05 Jack Howarth <howarth.at.gcc@gmail.com>
32629 * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
32630 on darwin12 and later.
32631 * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
32632 file to pass -rdynamic on darwin12 and later.
32633 * config/darwin.opt (rdynamic): Add.
32635 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
32637 * doc/extend.texi (C Extensions): Update menu for moved Variable
32638 Attributes and Type Attributes sections.
32640 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
32643 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
32644 if rep_8byte stringop strategy was specified for 32-bit target.
32646 2015-05-05 Ilya Tocar <ilya.tocar@intel.com>
32649 * config/i386/i386.md (vector convert to float spltiter): Check for
32650 xmm16+, when splitting scalar float conversion.
32651 * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
32653 2015-05-05 Nick Clifton <nickc@redhat.com>
32655 * config/msp430/msp430-opts.h (enum msp430_regions): New.
32656 * config/msp430/msp430.c (msp430_override_options): Complain if
32657 -mcode-region or -mdata-region is used on a non MSP430X.
32658 (msp430_section_attr): New function. Checks lower, upper and
32660 (msp430_attribute_table): Add lower, upper and either.
32661 (gen_prefix): New function. Generates a prefix for a section
32663 (msp430_select_section): New function - handles the choice of
32664 section for an object. Takes into account memory region
32665 attributes and options.
32666 (msp430_function_section): Use gen_prefix.
32667 (TARGET_SECTION_TYPE_FLAGS): Define.
32668 (msp430_section_type_flags): New function.
32669 (TARGET_ASM_UNIQUE_SECTION): Define.
32670 (msp430_unique_section): New function.
32671 (msp430_output_aligned_decl_common): New function.
32672 (msp430_do_not_relax_short_jumps): New function.
32673 * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
32675 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
32676 * config/msp430/msp430-protos.h
32677 (msp430_do_not_relax_short_jumps): New prototype.
32678 (msp430_output_aligned_decl_common): New prototype.
32679 * config/msp430/msp430.md (length): New attribute.
32680 (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
32681 then use a long code sequence for short jumps.
32682 * config/msp430/msp430.opt (mcode-region): New.
32683 (mdata-region): New.
32684 * doc/invoke.texi: Document new options.
32685 * doc/extend.texi: Document new attributes.
32687 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
32689 * config/aarch64-protos.h (struct cpu_branch_cost): New.
32690 (tune_params): Add field branch_costs.
32691 (aarch64_branch_cost): Declare.
32692 * config/aarch64.c (generic_branch_cost): New.
32693 (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
32694 (cortexa53_tunings): Likewise.
32695 (cortexa57_tunings): Likewise.
32696 (thunderx_tunings): Likewise.
32697 (xgene1_tunings): Likewise.
32698 (aarch64_branch_cost): Define.
32699 * config/aarch64/aarch64.h (BRANCH_COST): Redefine.
32701 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
32703 * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
32704 and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
32705 * config/i386/i386.md: Ditto.
32706 * config/i386/winnt.c: Ditto.
32708 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
32710 * doc/extend.texi (__atomic Builtins): Move implementation details
32711 to the end of the description, rewrite opening paragraphs, state
32712 difference with __sync builtins, state C11/C++11 assumptions,
32713 weaken itemized descriptions, add explanation of memory model
32714 behaviour, expand description of compare-exchange, simplify text.
32716 2015-05-05 Renlin Li <renlin.li@arm.com>
32718 * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
32720 2015-05-05 Yvan Roux <yvan.roux@linaro.org>
32722 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
32723 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
32724 * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
32725 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
32726 * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
32727 * configure: Regenerate.
32728 * configure.ac: Add --enable-fix-cortex-a53-843419 option.
32729 * doc/install.texi (aarch64*-*-*): Document new
32730 --enable-fix-cortex-a53-843419 option.
32731 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
32732 and -mno-fix-cortex-a53-843419 options.
32734 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
32737 * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
32739 2015-05-04 Jan Hubicka <hubicka@ucw.cz>
32741 * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
32742 fix overactive TYPE_MIN_VALUE check and add FIXME for type
32743 compatibility problems.
32745 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
32747 * config/microblaze/microblaze.md (cbranchsi4): Added immediate
32749 (cbranchsi4_reg): New.
32750 * config/microblaze/microblaze.c
32751 (microblaze_expand_conditional_branch_reg): New.
32752 * config/microblaze/microblaze-protos.h
32753 (microblaze_expand_conditional_branch_reg): New prototype.
32755 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
32757 * config/microblaze/microblaze.md (peephole2): New.
32759 2015-05-04 Jeff Law <law@redhat.com>
32762 2015-05-04 Jeff Law <law@redhat.com>
32764 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
32765 simplifier to narrow arithmetic.
32766 * generic-match-head.c: (types_match, single_use): New functions.
32767 * gimple-match-head.c: (types_match, single_use): New functions.
32769 2015-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
32772 * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
32773 (split_branches): Likewise.
32775 2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
32777 * common.opt (fdelete-null-pointer-checks): Init to -1.
32778 * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
32779 override flag_delete_null_pointer_checks default.
32780 * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
32781 behavior re address zero. Better document target-specific behavior.
32782 (-fisolate-errneous-paths-dereference): Mention relationship to
32783 -fdelete-null-pointer-checks.
32785 2015-05-04 Jakub Jelinek <jakub@redhat.com>
32787 PR tree-optimization/65984
32788 * ubsan.c: Include tree-cfg.h.
32789 (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
32790 stmt_could_throw_p test, rename can_throw variable to ends_bb.
32792 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
32794 * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
32795 to CONST_DOUBLE_P predicate.
32796 (standard_sse_constant_p): Return 0 for !TARGET_SSE.
32797 (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
32798 allow only operands that satisfy standard_sse_constant_p predicate.
32799 * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
32800 to CONST_DOUBLE_P predicate.
32802 2015-05-04 Jeff Law <law@redhat.com>
32804 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
32805 simplifier to narrow arithmetic.
32806 * generic-match-head.c: (types_match, single_use): New functions.
32807 * gimple-match-head.c: (types_match, single_use): New functions.
32809 2015-05-04 Andreas Tobler <andreast@gcc.gnu.org>
32811 * config/arm/arm.c: Restore bootstrap.
32813 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
32815 * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
32816 * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
32817 as CONST_WIDE_INT, not CONST_DOUBLE.
32818 (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
32819 (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
32820 (ix86_find_base_term): Do not check for CONST_DOUBLE.
32821 (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
32822 (ix86_build_signbit_mask): Rewrite using wide ints.
32823 (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
32824 (ix86_rtx_costs): Handle CONST_WIDE_INT.
32825 (find_constant): Ditto.
32826 * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
32827 using gen_int_mode.
32828 * config/i386/predicates.md (x86_64_immediate_operand)
32829 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
32830 (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
32831 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
32832 (const0_operand): Also match const_wide_int.
32833 (constm1_operand): Ditto.
32834 (const1_operand): Ditto.
32836 2015-05-04 Richard Biener <rguenther@suse.de>
32838 PR tree-optimization/65965
32839 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
32840 store groups at gaps.
32842 2015-05-04 Richard Biener <rguenther@suse.de>
32844 PR tree-optimization/65935
32845 * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
32846 then make sure to apply that swapping to the IL.
32848 2015-05-04 Jakub Jelinek <jakub@redhat.com>
32850 * Makefile.in (PATCHLEVEL_c): New variable.
32851 (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
32852 expand the same way as if DEVPHASE_c was non-empty.
32854 2015-05-04 Kai Tietz <ktietz@redhat.com>
32857 * lto-wrapper.c (run_gcc): Open filename
32860 2015-05-03 Sandra Loosemore <sandra@codesourcery.com>
32862 * doc/extend.texi (Variable Attributes, Type Attributes): Move
32863 sections up in file, to immediately after the Function Attributes
32866 2015-05-02 Jan Hubicka <hubicka@ucw.cz>
32868 * tree.c (verify_type): Check various uses of TYPE_MINVAL.
32870 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32872 * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
32873 (insert_partition_copy_on_edge): Adjust.
32874 (insert_rtx_to_part_on_edge): Likewise.
32875 (insert_part_to_rtx_on_edge): Likewise.
32877 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32879 * function.c (set_return_jump_label): Change type of argument to
32881 * function.h (set_return_jump_label): Adjust.
32883 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32885 * reload.h (struct reg_equivs_t): Change type of init to
32887 * ira.c (fix_reg_equiv_init): Adjust.
32888 * reload1.c (eliminate_regs_1): Likewise.
32889 (init_eliminable_invariants): Likewise.
32891 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32893 * cselib.c (fp_setter_insn): Take a rtx_insn *.
32894 * cselib.h (fp_setter_insn): Adjust.
32896 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32898 * recog.c (struct validate_replace_src_data): Change type of
32899 insn field to rtx_insn *.
32900 (validate_replace_src_group): Change type of argument to rtx_insn *.
32901 * recog.h (validate_replace_src_group): Adjust.
32903 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32905 * haifa-sched.c: Change the type of some variables to rtx_insn *.
32906 * sched-deps.c: Likewise.
32907 * sched-int.h: Likewise.
32908 * sched-rgn.c: Likewise.
32909 * sel-sched.c: Likewise.
32911 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32914 * config/i386/i386.c: Change the type of some arguments to
32916 * config/arm/arm.c: Likewise.
32918 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32920 * lra-constraints.c: Change type of some arguments to rtx_insn *.
32922 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32924 * regcprop.c (kill_autoinc_value): Change type of argument to
32927 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32929 * genrecog.c (print_subroutine): Adjust.
32930 * recog.c (get_bool_attr_mask_uncached): Likewise.
32931 * recog.h (struct recog_data_d): Change the type of insn to
32934 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32936 * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
32938 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32940 * df-problems.c (df_set_note): Change type of argument to
32943 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32945 * builtins.c (expand_builtin_trap): Change type of local
32946 variable to rtx_insn *.
32947 (add_sched_insns_for_speculation): Likewise.
32948 (ix86_emit_save_regs): Likewise.
32949 (get_scratch_register_on_entry): Likewise.
32950 (ix86_emit_restore_reg_using_pop): Likewise.
32951 (ix86_emit_leave): Likewise.
32952 (ix86_emit_restore_regs_using_mov): Likewise.
32953 (ix86_expand_epilogue): Likewise.
32955 (rl78_alloc_physical_registers_umul): Likewise.
32956 * cselib.c (discard_useless_locs): Likewise.
32957 (cselib_invalidate_regno): Likewise.
32958 (cselib_invalidate_mem): Likewise.
32959 * function.c (expand_function_start): Likewise.
32960 (emit_use_return_register_into_block): Likewise.
32961 * gcse.c: Likewise.
32962 * haifa-sched.c (ok_for_early_queue_removal): Likewise.
32963 * ifcvt.c (noce_get_alt_condition): Likewise.
32964 * loop-doloop.c (doloop_condition_get): Likewise.
32965 * lra-constraints.c (inherit_in_ebb): Likewise.
32966 * modulo-sched.c (sms_schedule_by_order): Likewise.
32967 * recog.c (next_insn_tests_no_inequality): Likewise.
32968 * reorg.c (emit_delay_sequence): Likewise.
32969 (update_reg_dead_notes): Likewise.
32970 (fix_reg_dead_note): Likewise.
32971 (fill_slots_from_thread): Likewise.
32972 (delete_computation): Likewise.
32974 2015-05-01 Sandra Loosemore <sandra@codesourcery.com>
32976 * doc/extend.texi (Variable Attributes): Add menu and proper
32977 @nodes to subsections. Move Microsoft Windows attributes to
32978 their own subsection.
32979 (Type Attributes): Reorganize introduction to remove duplicate
32980 list of attributes. Add menu and proper @nodes to subsections.
32981 Alphabetize the main table of common attributes.
32983 2015-05-01 Rasmus Villemoes <rv@rasmusvillemoes.dk>
32985 * match.pd: New simplification patterns.
32986 (x + (x & 1)) -> ((x + 1) & ~1)
32987 (x & ~(x & y)) -> ((x & ~y))
32988 (x | ~(x | y)) -> ((x | ~y))
32990 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32992 * target.def (attribute_table): Mention that struct attribute_spec
32993 is defined in tree-core.h rather than tree.h
32994 * doc/tm.texi: Regenerate.
32996 2015-05-01 Richard Sandiford <richard.sandiford@arm.com>
32998 * genrecog.c (test): Rename to rtx_test. Update rest of file
33001 2015-05-01 Andreas Schwab <schwab@linux-m68k.org>
33003 PR translation/65959
33004 * params.h (DEFPARAM): Rename msgid to nocmsgid.
33006 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
33008 * config/aarch64/aarch64-protos.h (tune_params):
33009 Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
33010 * config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
33011 Return value depending on target.
33012 (generic_tunings): Initialize new target settings.
33013 (cortexa53_tunings): Likewise.
33014 (cortexa57_tunings): Likewise.
33015 (thunderx_tunings): Likewise.
33016 (xgene1_tunings): Likewise.
33018 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
33020 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
33021 Make Cortex-A53 shift costs more accurate.
33023 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33025 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
33028 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
33030 * config/aarch64/aarch64.c (aarch64_rtx_costs):
33031 Calculate cost of op0 and op1 in PLUS and MINUS cases.
33033 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33035 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
33036 Add cost of op0 in the compare-with-fpzero case.
33038 2015-04-30 David Malcolm <dmalcolm@redhat.com>
33040 * builtins.c (fold_builtin_1): Remove spurious second
33042 * cgraph.h (symtab_node::get_availability): Likewise.
33043 * opts.c (common_handle_option): Remove spurious second semicolon.
33044 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
33045 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
33047 2015-04-30 Caroline Tice <cmtice@google.com>
33049 PR gcov-profile/65929
33050 * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
33051 (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
33052 * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
33053 (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
33054 * doc/tm.texi: Regenerate.
33055 * final.c (final_scan_insn): Use ASM_DECLARE_COLD_FUNCTION_NAME
33056 instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
33057 * varasm.c (assemble_end_function): Use ASM_DECLARE_COLD_FUNCTION_SIZE
33058 instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
33060 2015-04-30 Marek Polacek <polacek@redhat.com>
33062 * varasm.c (handle_cache_entry): Fix logic.
33064 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33066 * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
33067 (*extrsi5_insn_uxtw_alt): Likewise.
33068 * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
33069 (aarch64_rtx_costs, IOR case): Use above to properly cost extr
33072 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33074 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
33077 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33079 * config/aarch64/aarch64.md
33080 (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
33081 (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
33082 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
33083 appropriately. Handle alternative EON form.
33085 2015-04-30 Renlin Li <renlin.li@arm.com>
33087 * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
33088 * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
33090 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
33093 * ipa-inline.c (can_inline_edge_p): It is safe to inline across
33094 -fstrict-aliasing boundaries.
33096 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33098 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
33099 and [SU]MNEGL patterns.
33101 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33103 * config/aarch64/aarch64.c (aarch64_shift_p): New function.
33104 (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
33105 combined arithmetic-shift ops. Properly handle all shift and extend
33106 operations that can occur in combination with PLUS/MINUS.
33107 Rename maybe_fma to compound_p.
33108 (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
33109 arithmetic and shift operations.
33111 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33113 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
33114 rather than arith_shift cost when costing ADD/MINUS of an
33117 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
33120 * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
33123 2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
33125 * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
33126 are for the same position.
33128 2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
33130 * tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of
33132 (vectorize_loops): Use it.
33134 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
33136 * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
33137 for aggregate types.
33138 (register_odr_type): Be ready for MAIN_VARIANT of ODR type
33139 type to be non_ODR.
33140 * tree.c (need_assembler_name_p): Compute mangled name for
33141 non-fundamental types and integer types.
33143 2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
33145 * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
33147 * expr.c (expand_expr_real_2): Likewise.
33149 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
33151 * tree.c (build_common_builtin_nodes): Do not build
33152 __builtin_alloca_with_align as equivalent of library alloca.
33154 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
33156 * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
33157 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
33159 * tree.c: Include print-tree.h and ipa-utils.h
33160 (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
33161 (free_lang_data_in_cgraph): Call verify_type.
33162 (verify_type_variant): New function.
33163 (verify_type): New function.
33164 * tree.h (verify_type): Declare.
33166 2015-04-29 Steve Ellcey <sellcey@imgtec.com>
33168 * config/mips/mips-cpus.def: (mips4): Change default processor
33169 from PROCESSOR_R8000 to PROCESSOR_R10000.
33171 2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
33173 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
33174 la/jalr instead of jal.
33176 2015-04-29 Uros Bizjak <ubizjak@gmail.com>
33179 * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
33180 (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
33181 (setcc+movzbl peephole2): Check also clobbered reg.
33182 (setcc+andl peephole2): Ditto.
33184 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
33187 * config/nvptx/mkoffload.c (target_ilp32): New variable.
33188 (main): Set it depending on "-foffload-abi=[...]".
33189 (compile_native, main): Use it to pass "-m32" or "-m64" to the
33192 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
33195 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
33196 vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
33197 Flip lane index back at assembly time for bigendian.
33199 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
33201 * tree.h (OMP_STANDALONE_CLAUSES): New macro.
33202 * gimplify.c (gimplify_omp_workshare): Use it.
33204 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
33206 * Makefile.in (build/genrecog.o): Depend on inchash.h.
33207 (build/genrecog$(build_exeext): Depend on build/hash-table.o and
33209 * genrecog.c: Rewrite most of the code except for the third page.
33211 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
33213 * inchash.h, inchash.c: Include bconfig.h for build objects.
33214 * Makefile.in (build/inchash.o): New rule.
33216 2015-04-29 Yvan Roux <yvan.roux@linaro.org>
33219 * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
33220 number in type attribute expression.
33222 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
33224 * loop-iv.c (canon_condition): Generalize to all types of integer
33227 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
33229 * gimple-walk.c: Prune duplicate or unneeded includes.
33230 (walk_gimple_asm): Only call parse_input_constraint or
33231 parse_output_constraint if their findings are used.
33232 Honour parse_input_constraint and parse_output_constraint
33235 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
33237 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
33239 2015-04-29 Tom de Vries <tom@codesourcery.com>
33241 PR tree-optimization/65893
33242 * passes.def (pass_all_optimizations): Move pass_stdarg to after
33245 2015-04-29 Richard Biener <rguenther@suse.de>
33247 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
33248 compute GROUP_SIZE for basic-block SLP.
33249 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
33250 take into account gaps.
33251 (vect_get_mask_element): Properly reject references to previous
33253 (vect_transform_slp_perm_load): Likewise.
33255 2015-04-29 Christian Bruel <christian.bruel@st.com>
33258 * config/i386/i386.c (ix86_default_align): New function.
33259 (ix86_override_options_after_change): Call ix86_default_align.
33260 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
33261 (ix86_override_options_after_change): New function.
33263 2015-04-28 Jeff Law <law@redhat.com>
33265 * tree-ssa-dom.c (record_equality); Fix comment typos.
33267 2015-04-28 Tom de Vries <tom@codesourcery.com>
33269 PR tree-optimization/65887
33270 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
33272 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
33274 * doc/extend.texi (Declaring Attributes of Functions): Split into
33275 subsections by target. Alphabetize the table of common attributes.
33276 Rewrite some of the introductory text to reflect the new structure.
33277 Update some cross-references to point to the new subsections.
33278 (Attribute Syntax): Put paragraph about "__" naming here. Remove
33279 duplicate copies in the discussion of function, label, and type
33282 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
33285 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
33287 2015-04-28 Jason Merrill <jason@redhat.com>
33290 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
33291 (finalize_type_size): Respect TYPE_USER_ALIGN.
33292 (layout_type) [ARRAY_TYPE]: Likewise.
33294 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
33296 * config/arm/arm.md (*arm_movt): Fix type attribute.
33297 (*cmpsi_shiftsi): Likewise.
33298 (*cmpsi_shiftsi_swp): Likewise.
33299 (*movsicc_insn): Likewise.
33300 (*cond_move): Likewise.
33301 (*if_plus_move): Likewise.
33302 (*if_move_plus): Likewise.
33303 (*if_arith_move): Likewise.
33304 (*if_move_arith): Likewise.
33305 (*if_shift_move): Likewise.
33306 (*if_move_shift): Likewise.
33307 (*arm_movtas_ze): Likewise.
33308 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
33309 redundancy and type attribute.
33310 (*thumb2_movsi_insn): Fix type attribute.
33311 (*thumb2_addsi_short): Likewise.
33312 (thumb2_addsi3_compare0): Likewise.
33313 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
33314 attributes accordingly.
33316 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
33319 * function.c (pad_to_arg_alignment): Add parentheses.
33321 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
33323 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
33324 libgcc/config/frv/elf-lib.h.
33326 2015-04-28 Tom de Vries <tom@codesourcery.com>
33328 * tree-call-cdce.c: Fix example in header comment.
33330 2015-04-28 Richard Biener <rguenther@suse.de>
33332 PR tree-optimization/62283
33333 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
33334 fails fatally and we are vectorizing a basic-block simply
33335 cause the child to be constructed piecewise.
33336 (vect_analyze_slp_cost_1): Adjust.
33337 (vect_detect_hybrid_slp_stmts): Likewise.
33338 (vect_bb_slp_scalar_cost): Likewise.
33339 (vect_get_constant_vectors): For piecewise constructed
33340 constants place them after the last def.
33341 (vect_get_slp_defs): Adjust.
33342 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
33343 externals for basic-block vectorization.
33345 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
33348 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
33350 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
33351 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
33352 (AARCH64_TUNE_FMA_STEERING): Likewise.
33353 * config/aarch64/aarch64-cores.def: Set
33354 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
33355 FMUL/FMADD instructions.
33356 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
33357 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
33358 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
33359 * config/aarch64/cortex-a57-fma-steering.h: New file.
33360 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
33362 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
33364 * gensupport.c (std_preds): Add missing codes to address_operand entry.
33366 2015-04-28 Richard Biener <rguenther@suse.de>
33368 PR tree-optimization/65851
33369 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
33370 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
33371 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
33372 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
33373 (ccp_visit_phi_node): Adjust.
33374 (evaluate_stmt): For simplifications to SSA names return its
33375 lattice value if that isn't VARYING. Return immediately when
33376 simplified to a constant.
33377 (visit_assignment): Adjust.
33378 (ccp_visit_stmt): Likewise.
33380 2015-04-28 Tom de Vries <tom@codesourcery.com>
33382 PR tree-optimization/65818
33383 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
33386 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33388 * calls.c (save_fixed_argument_area): Don't check
33389 ARGS_GROW_DOWNWARD with the preprocessor.
33390 (restore_fixed_argument_area): Likewise.
33391 (mem_overlaps_already_clobbered_arg_p): Likewise.
33392 (check_sibcall_argument_overlap): Likewise.
33393 (expand_call): Likewise.
33394 (emit_library_call_value_1): Likewise.
33395 (store_one_arg): Likewise.
33396 * function.c (assign_parms): Likewise.
33397 (locate_and_pad_parm): Likewise.
33398 (pad_to_arg_alignment): Likewise.
33399 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
33401 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33403 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
33404 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
33405 * calls.c (save_fixed_argument_area): Don't chekc if
33406 ARGS_GROW_DOWNWARD is defined.
33407 (restore_fixed_argument_area): Likewise.
33408 (mem_overlaps_already_clobbered_arg_p): Likewise.
33409 (check_sibcall_argument_overlap): Likewise.
33410 (expand_call): Likewise.
33411 (emit_library_call_value_1): Likewise.
33412 (store_one_arg): Likewise.
33413 * function.c (assign_parms): Likewise.
33414 (locate_and_pad_parm): Likewise.
33415 (pad_to_arg_alignment): Likewise.
33416 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
33418 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33420 * defaults.h (gen_epilogue): New function.
33421 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
33423 * cfgrtl.c (cfg_layout_finalize): Likewise.
33424 * df-scan.c: Likewise.
33425 * function.c (thread_prologue_and_epilogue_insns): Likewise.
33426 (reposition_prologue_and_epilogue_notes): Likewise.
33427 * reorg.c (find_end_label): Likewise.
33428 * toplev.c: Likewise.
33430 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33432 * bb-reorder.c (HAVE_return): Don't check if its undefined.
33433 * defaults.h (gen_simple_return): New function.
33434 (gen_simple_return): Likewise.
33435 (HAVE_return): Add default definition to false.
33436 (HAVE_simple_return): Likewise.
33437 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
33438 HAVE_return and HAVE_simple_return are defined.
33439 * function.c (gen_return_pattern): Likewise.
33440 (convert_jumps_to_returns): Likewise.
33441 (thread_prologue_and_epilogue_insns): Likewise.
33442 * reorg.c (find_end_label): Likewise.
33443 (dbr_schedule): Likewise.
33444 * shrink-wrap.c: Likewise.
33445 * shrink-wrap.h: Likewise.
33447 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33449 * defaults.h (EPILOGUE_USES): Add default definition of false.
33450 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
33451 * resource.c (init_resource_info): Likewise.
33453 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33455 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
33457 * dwarf2out.c (field_byte_offset): REmove check if
33458 PCC_BITFIELD_TYPE_MATTERS is defined.
33459 * stor-layout.c (layout_decl): Likewise.
33460 (update_alignment_for_field): Likewise.
33461 (place_field): Likewise.
33463 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33465 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
33467 * regrename.c (check_new_reg_p): Remove check if
33468 HARD_REGNO_RENAME_OK is defined.
33469 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
33471 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33473 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
33474 * cse.c (fold_rtx): Likewise.
33475 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
33476 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
33477 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
33478 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
33479 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
33480 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
33481 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
33482 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
33483 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
33484 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
33486 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
33487 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
33488 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
33489 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
33490 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
33491 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
33492 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
33493 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
33494 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
33495 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
33496 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
33497 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
33498 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
33499 * doc/tm.texi: Regenerate.
33500 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
33501 either true or false.
33503 2015-04-27 Jeff Law <law@redhat.com>
33505 PR tree-optimization/65217
33506 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
33507 of them has a single use, make sure it is the LHS of the implied
33510 2015-04-28 Alan Modra <amodra@gmail.com>
33513 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
33514 (offsettable_ok_by_alignment): Use minimum of decl and toc
33515 pointer alignment. Replace dead code with assertion.
33516 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
33517 case if size exceeds toc pointer alignment.
33518 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
33519 (rs6000_emit_move): Likewise.
33520 * configure.ac: Add linker toc pointer alignment check.
33521 * configure: Regenerate.
33522 * config.in: Regenerate.
33524 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
33526 * config.gcc: Add h8300-*-linux.
33527 * config/h8300/linux.h: New.
33528 * config/h8300/t-linux: New.
33529 * config/h8300/h8300.c (h8300_option_override): Normal mode
33530 is not supported for h8300-*-linux.
33531 (h8300_file_start): Target priority change.
33532 (get_shift_alg): Likewise.
33533 (h8300_shift_need_scratch_p): Likewise.
33534 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
33535 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
33537 2015-04-27 Caroline Tice <cmtice@google.com>
33539 * final.c (final_scan_insn): Output cold_function_name as function
33541 * varasm.c (cold_function_name): Make global.
33542 (assemble_start_function): Re-set cold_function_name.
33543 (assemble_end_function): Output cold partition size.
33544 * varasm.h (cold_function_name): Declare global.
33546 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
33548 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
33549 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
33551 (*movxi_internal_avx512f): Ditto.
33552 (define_split): Check for xmm16+, when splitting scalar float_extend.
33553 (*extendsfdf2_mixed): Use "v" constraint.
33554 (define_split): Check for xmm16+, when splitting scalar float_truncate.
33555 (*truncdfsf_fast_sse): Use "v" constraint.
33556 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
33557 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
33558 (define_peephole2): Check for xmm16+, when converting scalar
33560 (define_peephole2): Check for xmm16+, when converting scalar
33562 (*fop_<mode>_comm_mixed): Use "v" constraint.
33563 (*fop_<mode>_comm_sse): Ditto.
33564 (*fop_<mode>_1_mixed): Ditto.
33565 (*sqrt<mode>2_sse): Ditto.
33566 (*ieee_s<ieee_maxmin><mode>3): Ditto.
33568 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33570 * combine.c (simplify_if_then_else): Use std::swap instead
33571 of manually swapping.
33572 (known_cond): Likewise.
33573 (simplify_comparison): Likewise.
33575 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
33578 * config/rs6000/htm.md: Remove all define_expands.
33579 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
33580 UNSPECV_HTM_TABORTWCI): Remove.
33581 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
33582 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
33583 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
33584 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
33585 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
33586 tabortwci_internal): Remove define_insns.
33587 (tabort<wd>c, tabort<wd>ci): New define_insns.
33588 (tabort): Use gpc_reg_operand.
33589 (tcheck): Remove operand.
33590 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
33591 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
33593 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
33594 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
33595 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
33596 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
33597 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
33598 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
33599 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
33600 (tcheck): Remove builtin argument.
33601 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
33603 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
33604 tabortdc and tabortdci builtins when not in 64-bit mode.
33605 Modify code to handle the loss of the HTM define_expands.
33606 Emit code to copy the CR register to TARGET.
33607 (htm_init_builtins): Modify code to handle the loss of the HTM
33609 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
33610 (RS6000_BTC_64BIT): Likewise.
33611 (RS6000_BTC_CR): New macro.
33612 * doc/extend.texi: Update documentation for htm builtins.
33614 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33616 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
33617 of manually swapping.
33618 (simplify_associative_operation): Likewise.
33619 (simplify_binary_operation): Likewise.
33620 (simplify_plus_minus): Likewise.
33621 (simplify_relational_operation): Likewise.
33622 (simplify_ternary_operation): Likewise.
33624 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
33626 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
33627 (xs_hi_nonmemory_operand): Remove error.
33628 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
33629 general_operand rather than xs_hi_general_operand.
33631 2015-04-27 Richard Biener <rguenther@suse.de>
33633 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
33634 (record_equivalences_from_stmt): Valueize rhs.
33635 (record_equality): Canonicalize x and y order via
33636 tree_swap_operands_p. Do not swap operands for same loop depth.
33638 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
33642 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
33643 Add hint how to use own spec file.
33645 2015-04-27 Jakub Jelinek <jakub@redhat.com>
33647 PR tree-optimization/65875
33648 * tree-vrp.c (update_value_range): If in is_new case setting
33649 old_vr to VR_VARYING, also set new_vr to it. Remove
33650 old_vr->type == VR_VARYING test.
33651 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
33652 SSA_PROP_INTERESTING if update_value_range returned true,
33653 but new range is VR_VARYING.
33655 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
33657 * combine.c (sign_extend_short_imm): New.
33658 (set_nonzero_bits_and_sign_copies): Use above new function for sign
33659 extension of src short immediate.
33660 (reg_nonzero_bits_for_combine): Likewise for tem.
33662 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
33664 * stor-layout.c (self_referential_component_ref_p): New predicate.
33665 (copy_self_referential_tree_r): Use it.
33666 (self_referential_size): Punt for simple operations directly involving
33667 self-referential component references.
33668 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
33670 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
33672 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
33674 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
33676 * vec.h (vec): Make splice arguments const. Update definitions
33679 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
33681 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
33684 2015-04-26 Tom de Vries <tom@codesourcery.com>
33686 PR tree-optimization/65826
33687 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
33689 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
33691 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
33692 (*madd3<mode>): Ditto.
33693 (*msub4<mode>): Ditto.
33694 (*msub3<mode>): Ditto.
33695 (*nmadd4<mode>): Ditto.
33696 (*nmadd3<mode>): Ditto.
33697 (*nmadd4<mode>_fastmath): Ditto.
33698 (*nmadd3<mode>_fastmath): Ditto.
33699 (*nmsub4<mode>): Ditto.
33700 (*nmsub3<mode>): Ditto.
33701 (*nmsub4<mode>_fastmath): Ditto.
33702 (*nmsub3<mode>_fastmath): Ditto.
33704 2015-04-24 Jason Merrill <jason@redhat.com>
33707 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
33708 down when building TYPE_CANONICAL.
33709 (build_pointer_type_for_mode): Likewise.
33711 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
33713 * genrecog.c (validate_pattern): Check matching constraint refers
33714 to a lower numbered operand.
33716 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
33719 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
33720 save to independent variables use the Save attribute. This will
33721 allow these options to be modified with the #pragma/attribute
33723 (-mallow-movmisalign): Likewise.
33724 (-mallow-df-permute): Likewise.
33725 (-msched-groups): Likewise.
33726 (-malways-hint): Likewise.
33727 (-malign-branch-targets): Likewise.
33728 (-mvectorize-builtins): Likewise.
33729 (-msave-toc-indirect): Likewise.
33731 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
33732 can be set via the #pragma/attribute target support.
33733 (rs6000_opt_vars): Likewise.
33734 (rs6000_inner_target_options): If VSX was set, also set
33735 -mno-avoid-indexed-addresses.
33737 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33739 * config/arm/iterators.md (shiftable_ops): Rename to...
33740 (SHIFTABLE_OPS): ... This. Update use in comments.
33741 (ior_xor): Rename to...
33742 (IOR_XOR): ... This.
33743 (vqh_ops): Rename to...
33744 (VQH_OPS): ... This.
33745 (vqhs_ops): Rename to...
33746 (VQHS_OPS): ... This.
33747 (rshifts): Rename to...
33748 (RSHIFTS): ... This.
33749 (returns): Rename to...
33750 (RETURNS): ... This.
33751 * config/arm/arm.md: Update uses of the above.
33752 * config/arm/neon.md: Likewise.
33754 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33756 * config.host (case ${host}): Add aarch64*-*-linux case.
33757 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
33758 fields to all the cores.
33759 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
33760 Add MCPU_MTUNE_NATIVE_SPECS.
33761 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
33762 field to all extensions.
33763 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
33764 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
33765 Adjust definition of AARCH64_OPT_EXTENSION.
33766 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
33767 (MCPU_MTUNE_NATIVE_SPECS): Define.
33768 * config/aarch64/driver-aarch64.c: New file.
33769 * config/aarch64/x-arch64: New file.
33770 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
33773 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
33774 Wei Mi <wmi@google.com>
33776 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
33777 * config/i386/i386.c (extract_base_offset_in_addr): New function.
33778 (ix86_operands_ok_for_move_multiple): Ditto.
33779 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
33780 (movlpd/movhpd to movupd peephole2): Ditto.
33782 2015-04-24 Marek Polacek <polacek@redhat.com>
33785 * input.h (from_macro_expansion_at): Define.
33788 * doc/invoke.texi: Update description of -Wlogical-op.
33790 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
33792 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
33793 ternary operator in fprintf and harmonize spacing.
33795 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
33797 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
33798 Mark operand1 commutative.
33800 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
33802 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
33803 input operands in memory.
33804 (*vec_concatv2si_sse4_1): Ditto.
33805 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
33806 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
33808 (vec_extract_hi_v32hi): Ditto.
33809 (vec_extract_hi_v64hi): Ditto.
33810 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
33812 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
33813 Steven Bosscher <steven@gcc.gnu.org>
33815 PR rtl-optimization/34503
33816 * cprop.c (cprop_reg_p): New.
33817 (hash_scan_set): Use above function to check if register can be
33819 (find_avail_set): Return up to two sets, one whose source is a
33820 register and one whose source is a constant. Sets are returned in an
33821 array passed as parameter rather than as a return value.
33822 (cprop_insn): Use a do while loop rather than a goto. Try each of the
33823 sets returned by find_avail_set, starting with the one whose source is
33824 a constant. Use cprop_reg_p to check if register can be propagated.
33825 (do_local_cprop): Use cprop_reg_p to check if register can be
33827 (implicit_set_cond_p): Likewise.
33829 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
33831 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
33832 (sem_function::equals): IGNORED_NODES parameter is now unused;
33833 update call of equals_private.
33834 (sem_function::equals_private): Do not call equals_wpa; skip
33835 gimple body matching if there is no body.
33836 (sem_function::init): Add logic to hash tthunk info.
33837 (sem_function::parse): Also parse thunks.
33838 * ipa-icf.h (equals_private): Update declaration.
33840 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33842 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
33843 asterisk from name so this can be generated directly.
33844 (*altivec_stvx_<mode>_internal): Likewise.
33845 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
33846 that this is never called during or after reload/lra.
33847 (rs6000_frame_related): Remove split_reg
33848 argument and logic that references it.
33849 (emit_frame_save): Remove last parameter from call to
33850 rs6000_frame_related.
33851 (rs6000_emit_prologue): Remove last parameter from eight calls to
33852 rs6000_frame_related. Force generation of stvx instruction for
33853 Altivec register saves. Remove split_reg handling, which is no
33855 (rs6000_emit_epilogue): Force generation of lvx instruction for
33856 Altivec register restores.
33858 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33860 * config/rs6000/rs6000.opt (mcrypto): Change option description to
33861 match category changes in ISA 2.07B.
33863 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33865 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
33867 (cmp_op, cmp_type): New code attributes.
33868 (NEON_VCMP, NEON_VACMP): New int iterators.
33869 (cmp_op_unsp): New int attribute.
33870 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
33871 (neon_vceq<mode>): Delete.
33872 (neon_vc<cmp_op><mode>_insn): New pattern.
33873 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
33874 (neon_vcgeu<mode>): Delete.
33875 (neon_vcle<mode>): Likewise.
33876 (neon_vclt<mode>: Likewise.
33877 (neon_vcage<mode>): Likewise.
33878 (neon_vcagt<mode>): Likewise.
33879 (neon_vca<cmp_op><mode>): New define_expand.
33880 (neon_vca<cmp_op><mode>_insn): New pattern.
33881 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
33883 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
33885 * tree.h (attribute_value_equal): Declare.
33886 * tree.c (attribute_value_equal): Export.
33888 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
33890 * ipa-icf.c (sem_item::compare_attributes): New function.
33891 (sem_item::compare_referenced_symbol_properties): Compare variable
33893 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
33894 (sem_function::param_used_p): New function.
33895 (sem_function::equals_wpa): Fix attribute comparsion; match
33896 parameter type codes; do not compare paremter flags when
33897 they are not used; compare edge flags; compare indirect calls.
33898 (sem_item::update_hash_by_addr_refs): Hash reference type.
33899 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
33900 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
33901 reference use type.
33902 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
33903 * ipa-icf.h (compare_attributes, param_used_p): Declare.
33905 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
33907 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
33909 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
33910 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
33911 (sem_item::compare_referenced_symbol_properties): New.
33912 (sem_item::hash_referenced_symbol_properties): New.
33913 (sem_item::compare_cgraph_references): Rename to ...
33914 (sem_item::compare_symbol_references): ... this one; use
33915 compare_referenced_symbol_properties.
33916 (sem_function::equals_wpa): Do not compare
33917 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
33918 DECL_IS_OPERATOR_NEW; compare pointer sizes.
33919 (sem_item::update_hash_by_addr_refs): Call
33920 hash_referenced_symbol_properties.
33921 (sem_item::update_hash_by_local_refs): Cleanup.
33922 (sem_function::merge): Do not mix up symbol properties.
33923 (sem_variable::equals_wpa): Use compare_symbol_references.
33924 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
33925 (sem_item::hash_referenced_symbol_properties): New.
33926 (sem_item::compare_symbol_references): New.
33927 (sem_item::compare_cgraph_references): Remove.
33929 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
33932 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
33933 Emit size of local.
33935 2015-04-23 Nick Clifton <nickc@redhat.com>
33937 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
33938 ATTRIBUTE_UNUSED to x parameter.
33939 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
33941 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33943 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
33944 TARGET_CRYPTO to TARGET_P8_VECTOR>
33945 (crypto_vpermxor_<mode>): Likewise.
33946 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
33947 (BU_CRYPTO_3A): Likewise.
33948 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
33949 (BU_CRYPTO_OVERLOAD_3A): New #define.
33950 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
33951 (VPMSUMH): Likewise.
33952 (VPMSUMW): Likewise.
33953 (VPMSUMD): Likewise.
33954 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
33955 (VPERMXOR_V4SI): Likewise.
33956 (VPERMXOR_V8HI): Likewise.
33957 (VPERMXOR_V16QI): Likewise.
33958 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
33959 BU_CRYPTO_OVERLOAD_2A.
33960 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
33961 BU_CRYPTO_OVERLOAD_3A.
33962 * config/rs6000/rs6000.opt (mcrypto): Change description of
33965 2015-04-23 Richard Biener <rguenther@suse.de>
33967 * passes.def: Remove copy propagation passes run directly after CCP.
33968 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
33970 (ccp_visit_phi_node): Rework to handle first executable edge
33973 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
33975 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
33976 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
33977 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
33978 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
33979 (thumb_legimitimize_reload_address): Remove.
33980 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
33982 (thumb_legimitimize_reload_address): Remove.
33984 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33986 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
33988 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33990 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
33992 (store_multiple): Likewise.
33994 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33996 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
33997 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
33998 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
33999 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
34000 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
34001 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
34002 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
34003 Specify issue_rate value.
34004 (arm_issue_rate): Look up issue rate from tuning structs. Remove
34005 large switch statement.
34006 (arm_marvell_pj4_tune): New struct.
34007 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
34010 2015-04-23 Richard Biener <rguenther@suse.de>
34012 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
34013 (vect_find_last_store_in_slp_instance): Rename to ...
34014 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
34015 (vect_analyze_slp_cost_1): Use vector_load for constant defs
34016 and vec_construct for external defs when estimating prologue cost.
34017 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
34018 Compute costs here only when vectorizing loops.
34019 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
34020 have been determined.
34021 (vect_schedule_slp_instance): Simplify vectorized code placement
34022 and prepare for in-BB external defs.
34023 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
34024 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
34025 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
34027 (vect_model_load_cost): Likewise.
34028 (vectorizable_store): Instead add it here.
34029 (vectorizable_load): Likewise.
34030 (vect_is_simple_use): Dump def type textually.
34032 2015-04-23 Richard Biener <rguenther@suse.de>
34034 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
34035 * cfgloop.c (verify_loop_structure): Verify the root loop node.
34036 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
34037 instead of get_eh_region_from_lp_number.
34038 * loop-init.c (fix_loop_structure): If we removed a loop, reset
34041 2015-04-23 Anton Blanchard <anton@samba.org>
34043 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
34044 need for -mprofile-kernel to save LR to stack.
34046 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
34048 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
34050 (insn_is_swappable_p): Return 1 for a convert from double to
34051 single precision when all of its uses are splats of BE element
34054 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
34056 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
34058 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
34061 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
34062 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
34063 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
34065 (rs6000_builtin_mask_for_load): Return 0 for targets with
34066 efficient unaligned VSX accesses so that the vectorizer will use
34067 direct unaligned loads.
34068 (rs6000_builtin_support_vector_misalignment): Always return true
34069 for targets with efficient unaligned VSX accesses.
34070 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
34071 stores on targets with efficient unaligned VSX accesses is almost
34072 always the same as the cost of an aligned load or store, so model
34074 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
34075 unaligned vectors if we have efficient unaligned VSX accesses.
34076 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
34077 undocumented option.
34079 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34082 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
34084 * config.gcc (LIBC_MUSL): New tm_defines macro.
34085 * config/linux.h (OPTION_MUSL): Define.
34086 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
34087 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
34088 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
34090 * config/linux.opt (mmusl): New option.
34091 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
34092 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
34094 * configure: Regenerate.
34096 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
34098 * config.gcc (LIBC_MUSL): New tm_defines macro.
34099 * config/linux.h (OPTION_MUSL): Define.
34100 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
34101 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
34102 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
34104 * config/linux.opt (mmusl): New option.
34105 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
34106 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
34108 * configure: Regenerate.
34110 2015-04-22 Yury Gribov <y.gribov@samsung.com>
34112 * doc/invoke.texi (-fsanitize-sections): Update description.
34113 * asan.c (set_sanitized_sections): Parse incoming arg.
34114 (section_sanitized_p): Support wildcards.
34116 2015-04-22 Tom de Vries <tom@codesourcery.com>
34118 PR tree-optimization/65823
34119 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
34120 equality between ap_copy and ap.
34122 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
34125 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
34127 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
34130 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
34132 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
34135 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
34136 remove already contained t-files.
34138 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
34140 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
34141 Remove unneeded forward declarations.
34142 (suitable_for_tail_call_opt_p): Commentary typo fix.
34144 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
34146 * varasm.c (emit_bss): Remove redundant guard.
34148 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
34150 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
34152 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
34154 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
34156 2015-04-22 Hale Wang <hale.wang@arm.com>
34157 Terry Guo <terry.guo@arm.com>
34159 PR rtl-optimization/64818
34160 * combine.c (can_combine_p): Don't combine user-specified
34161 register if it is in an asm input.
34163 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
34166 * passes.def (early_optimizations): Add pass_dse.
34168 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34170 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
34171 * reorg.c (redundant_insn): Remove ifdef
34172 INSN_REFERENCES_ARE_DELAYED.
34173 * resource.c (mark_referenced_resources): Likewise.
34175 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34177 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
34178 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
34179 * resource.c (mark_set_resources): Likewise.
34181 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34183 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
34184 * cfgcleanup.c (flow_find_cross_jump): Likewise.
34185 (flow_find_head_matching_sequence): Likewise.
34186 (try_head_merge_bb): Likewise.
34187 * combine.c (can_combine_p): Likewise.
34188 (try_combine): Likewise.
34189 (distribute_notes): Likewise.
34190 * df-problems.c (can_move_insns_across): Likewise.
34191 * final.c (final): Likewise.
34192 * gcse.c (insert_insn_end_basic_block): Likewise.
34193 * ira.c (find_moveable_pseudos): Likewise.
34194 * reorg.c (try_merge_delay_insns): Likewise.
34195 (fill_simple_delay_slots): Likewise.
34196 (fill_slots_from_thread): Likewise.
34197 * sched-deps.c (sched_analyze_2): Likewise.
34199 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34201 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
34202 PIC_OFFSET_TABLE_REGNUM.
34204 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34206 * alias.c (init_alias_target): Remove ifdef
34207 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
34208 * df-scan.c (df_insn_refs_collect): Likewise.
34209 (df_get_regular_block_artificial_uses): Likewise.
34210 (df_get_eh_block_artificial_uses): Likewise.
34211 (df_get_entry_block_def_set): Likewise.
34212 (df_get_exit_block_use_set): Likewise.
34213 * emit-rtl.c (gen_rtx_REG): Likewise.
34214 * ira.c (ira_setup_eliminable_regset): Likewise.
34215 * reginfo.c (init_reg_sets_1): Likewise.
34216 * regrename.c (rename_chains): Likewise.
34217 * reload1.c (reload): Likewise.
34218 (eliminate_regs_in_insn): Likewise.
34219 * resource.c (mark_referenced_resources): Likewise.
34220 (init_resource_info): Likewise.
34222 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34224 * defaults.h (MASK_RETURN_ADDR): New definition.
34225 * except.c (expand_builtin_extract_return_addr): Remove ifdef
34228 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34230 * defaults.h (RETURN_ADDR_OFFSET): New definition.
34231 * except.c (expand_builtin_extract_return_addr): Remove ifdef
34232 RETURN_ADDR_OFFSET.
34233 (expand_builtin_frob_return_addr): Likewise.
34235 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34237 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
34238 (try_redirect_by_replacing_jump): Likewise.
34239 (rtl_tidy_fallthru_edge): Likewise.
34240 * combine.c (insn_a_feeds_b): Likewise.
34241 (find_split_point): Likewise.
34242 (simplify_set): Likewise.
34243 * cprop.c (cprop_jump): Likewise.
34244 * cse.c (cse_extended_basic_block): Likewise.
34245 * df-problems.c (can_move_insns_across): Likewise.
34246 * function.c (emit_use_return_register_into_block): Likewise.
34247 * haifa-sched.c (sched_init): Likewise.
34248 * ira.c (find_moveable_pseudos): Likewise.
34249 * loop-invariant.c (find_invariant_insn): Likewise.
34250 * lra-constraints.c (curr_insn_transform): Likewise.
34251 * postreload.c (reload_combine_recognize_const_pattern):
34253 * reload.c (find_reloads): Likewise.
34254 * reorg.c (delete_scheduled_jump): Likewise.
34255 (steal_delay_list_from_target): Likewise.
34256 (steal_delay_list_from_fallthrough): Likewise.
34257 (redundant_insn): Likewise.
34258 (fill_simple_delay_slots): Likewise.
34259 (fill_slots_from_thread): Likewise.
34260 (delete_computation): Likewise.
34261 * sched-rgn.c (add_branch_dependences): Likewise.
34263 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34265 * genconfig.c (main): Always define HAVE_cc0.
34266 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
34268 * cfgcleanup.c (flow_find_cross_jump): Likewise.
34269 (flow_find_head_matching_sequence): Likewise.
34270 (try_head_merge_bb): Likewise.
34271 * cfgrtl.c (rtl_merge_blocks): Likewise.
34272 (try_redirect_by_replacing_jump): Likewise.
34273 (rtl_tidy_fallthru_edge): Likewise.
34274 * combine.c (do_SUBST_MODE): Likewise.
34275 (insn_a_feeds_b): Likewise.
34276 (combine_instructions): Likewise.
34277 (can_combine_p): Likewise.
34278 (try_combine): Likewise.
34279 (find_split_point): Likewise.
34281 (simplify_set): Likewise.
34282 (distribute_notes): Likewise.
34283 * cprop.c (cprop_jump): Likewise.
34284 * cse.c (cse_extended_basic_block): Likewise.
34285 * df-problems.c (can_move_insns_across): Likewise.
34286 * final.c (final): Likewise.
34287 (final_scan_insn): Likewise.
34288 * function.c (emit_use_return_register_into_block): Likewise.
34289 * gcse.c (insert_insn_end_basic_block): Likewise.
34290 * haifa-sched.c (sched_init): Likewise.
34291 * ira.c (find_moveable_pseudos): Likewise.
34292 * loop-invariant.c (find_invariant_insn): Likewise.
34293 * lra-constraints.c (curr_insn_transform): Likewise.
34294 * optabs.c (prepare_cmp_insn): Likewise.
34295 * postreload.c (reload_combine_recognize_const_pattern):
34297 * reload.c (find_reloads): Likewise.
34298 (find_reloads_address_1): Likewise.
34299 * reorg.c (delete_scheduled_jump): Likewise.
34300 (steal_delay_list_from_target): Likewise.
34301 (steal_delay_list_from_fallthrough): Likewise.
34302 (try_merge_delay_insns): Likewise.
34303 (redundant_insn): Likewise.
34304 (fill_simple_delay_slots): Likewise.
34305 (fill_slots_from_thread): Likewise.
34306 (delete_computation): Likewise.
34307 (relax_delay_slots): Likewise.
34308 * sched-deps.c (sched_analyze_2): Likewise.
34309 * sched-rgn.c (add_branch_dependences): Likewise.
34311 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34313 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
34314 that is trivially ded on non cc0 targets.
34315 (simplify_set): Likewise.
34316 (mark_used_regs_combine): Likewise.
34317 * cse.c (new_basic_block): Likewise.
34318 (fold_rtx): Likewise.
34319 (cse_insn): Likewise.
34320 (cse_extended_basic_block): Likewise.
34321 (set_live_p): Likewise.
34322 * rtlanal.c (canonicalize_condition): Likewise.
34323 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
34325 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34327 * conditions.h: Define macros even if HAVE_cc0 is undefined.
34328 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
34329 * final.c: Likewise.
34330 * jump.c: Likewise.
34331 * recog.c: Likewise.
34332 * recog.h: Declare functions even when HAVE_cc0 is undefined.
34333 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
34335 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34337 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
34338 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
34339 * builtins.c (expand_builtin): Remove check if
34340 EH_RETURN_DATA_REGNO is defined.
34341 * df-scan.c (df_bb_refs_collect): Likewise.
34342 (df_get_exit_block_use_set): Likewise.
34343 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
34344 * ira-lives.c (process_bb_node_lives): Likewise.
34345 * lra-lives.c (process_bb_lives): Likewise.
34347 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
34349 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
34350 FIRST_PSEUDO_REG): New.
34351 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
34352 (ARG_POINTER_REGNUM): Define to ARGP_REG.
34353 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
34354 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
34355 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
34356 (FIRST_INT_REG): New.
34357 (LAST_INT_REG): New.
34358 (FIRST_*_REG): Define using *_REG.
34359 (LAST_*_REG): Ditto.
34360 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
34361 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
34362 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
34364 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34366 * expmed.c: (synth_mult): Only assume overlapping
34367 shift with previous steps in alg_sub_t_m2 case.
34369 2015-04-21 Richard Biener <rguenther@suse.de>
34371 PR tree-optimization/65650
34372 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
34373 transitions involving copies.
34374 (set_lattice_value): Adjust for copy lattice state.
34375 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
34376 if that doesn't dominate the merge point.
34377 (bit_value_unop): Adjust what we treat as varying mask.
34378 (bit_value_binop): Likewise.
34379 (bit_value_assume_aligned): Likewise.
34380 (evaluate_stmt): When we simplified to a SSA name record a copy
34381 instead of dropping to varying.
34382 (visit_assignment): Simplify.
34384 * gimple-match.h (gimple_simplify): Add another callback.
34385 * gimple-fold.c (fold_stmt_1): Adjust caller.
34386 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
34387 for the 2nd callback.
34388 * gimple-match-head.c (gimple_simplify): Add a callback that is
34389 used to valueize the stmt operands and use it that way.
34391 2015-04-21 Richard Biener <rguenther@suse.de>
34393 PR tree-optimization/65788
34394 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
34396 2015-04-21 Richard Biener <rguenther@suse.de>
34398 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
34399 vec_construct cost by vec_stmt_cost.
34401 2015-04-21 Richard Biener <rguenther@suse.de>
34403 * cfghooks.h (create_basic_block): Replace with two overloads
34404 for RTL and GIMPLE.
34405 (split_block): Likewise.
34406 * cfghooks.c (split_block): Rename to ...
34407 (split_block_1): ... this.
34408 (split_block): Add two type-safe overloads for RTL and GIMPLE.
34409 (split_block_after_labels): Call split_block_1.
34410 (create_basic_block): Rename to ...
34411 (create_basic_block_1): ... this.
34412 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
34413 (create_empty_bb): Call create_basic_block_1.
34414 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
34415 split_block_after_labels.
34416 * omp-low.c (expand_parallel_call): Likewise.
34417 (expand_omp_target): Likewise.
34418 (simd_clone_adjust): Likewise.
34419 * tree-chkp.c (chkp_get_entry_block): Likewise.
34420 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
34421 create_basic_block overload.
34422 (cgraph_node::expand_thunk): Likewise.
34423 * tree-cfg.c (make_blocks): Likewise.
34424 (handle_abnormal_edges): Likewise.
34425 * tree-inline.c (copy_bb): Likewise.
34427 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34429 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
34431 (*xor_one_cmplsidi3_ze): Likewise.
34433 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
34435 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
34436 use df_remove_problem rather than manually removing problems, leaving
34437 holes in df->problems_in_order[].
34439 2015-04-21 Tom de Vries <tom@codesourcery.com>
34441 PR tree-optimization/65802
34442 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
34444 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34446 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
34448 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
34449 at '.'. Assert that there's enough space for everything.
34451 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
34453 PR tree-optimization/64950
34455 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
34458 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
34461 2015-04-20 Shiva Chen <shiva0217@gmail.com>
34463 PR rtl-optimization/64916
34464 * cfgcleanup.c (values_equal_p): New function.
34465 (can_replace_by): Use it.
34467 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
34470 * doc/invoke.texi ([-Wnarrowing]): Update.
34472 2015-04-20 Jeff Law <law@redhat.com>
34474 PR tree-optimization/65658
34475 * tree-ssa-threadupdate.c (redirection_block_p): Remove
34476 redundant test for GIMPLE_ASSIGN in last change.
34478 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
34480 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
34481 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
34482 (legitimize_tls_address): Ditto.
34483 (ix86_expand_move): Ditto.
34484 (ix86_expand_binary_operator): Remove reload_in_progress checks.
34485 (ix86_expand_unary_operator): Ditto.
34486 * config/i386/predicates.md (index_register_operand): Ditto.
34488 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
34490 * reorg.c (try_merge_delay_insns): Improve correctness checking
34491 for targets with multiple delay slots.
34493 2015-04-20 Jeff Law <law@redhat.com>
34495 PR tree-optimization/65658
34496 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
34499 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
34501 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
34502 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
34505 2015-04-20 Jakub Jelinek <jakub@redhat.com>
34508 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
34510 2015-04-20 Richard Biener <rguenther@suse.de>
34512 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
34513 * gimple-fold.c (gimple_build_valueize): New function.
34514 (gimple_build): Always use gimple_build_valueize as valueize hook.
34516 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
34519 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
34520 and overwrite variable parts if <= 1/2 the elements are variable.
34522 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
34524 PR rtl-optimization/65805
34525 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
34526 Don't use difference of offset and previous offset if
34527 update_sp_offset is non-zero.
34528 (eliminate_regs_in_insn): Ditto.
34529 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
34530 lra_eliminate_regs_1 call.
34531 * lra-constraints.c (get_equiv_with_elimination): Ditto.
34533 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
34535 * hash-table.h: Remove version of hash_table that stored value_type *.
34536 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
34537 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
34538 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
34539 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
34540 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
34541 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
34542 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
34543 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
34544 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
34545 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
34546 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
34547 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
34548 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
34549 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
34550 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
34551 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
34553 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
34554 Jakub Jelinek <jakub@redhat.com>
34557 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
34558 subsequent SH_NONE operand does not overwrite an existing *special
34560 (adjust_extract): Handle case where a vec_extract operation is
34561 wrapped in a PARALLEL.
34563 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
34566 * config/i386/i386.c (ix86_binds_local_p): Define only if
34567 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
34569 2015-04-17 Jeff Law <law@redhat.com>
34571 PR tree-optimization/47679
34572 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
34573 * tree-ssa-scopedtables.c: New file.
34574 * tree-ssa-scopedtables.h: New file.
34575 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
34576 (const_and_copies): Change name/type.
34577 (record_const_or_copy): Move into tree-ssa-scopedtables.c
34578 (record_const_or_copy_1): Similarly.
34579 (restore_vars_to_original_value): Similarly.
34580 (pass_dominator::execute): Create and destroy const_and_copies table.
34581 (thread_across_edge): Update passing of const_and_copies.
34582 (record_temporary_equivalence): Use method calls rather than
34583 manipulating const_and_copies directly.
34584 (record_equality, cprop_into_successor_phis): Similarly.
34585 (dom_opt_dom_walker::before_dom_children): Similarly.
34586 (dom_opt_dom_walker::after_dom_children): Similarly.
34587 (eliminate_redundant_computations): Similarly.
34588 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
34589 (record_temporary_equivalence): Likewise.
34590 (invalidate_equivalences): Likewise.
34591 (record_temporary_equivalences_from_phis): Update due to type
34592 change of const_and_copies. Use method calls rather than
34593 manipulating the stack directly.
34594 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
34595 (thread_through_normal_block, thread_across_edge): Likewise.
34596 (thread_across_edge): Likewise.
34597 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
34598 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
34600 (identify_jump_threads): Update due to type change of equiv_stack.
34601 (finalize_jump_threads): Delete the equiv_stack when complete.
34603 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
34605 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
34606 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
34607 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
34609 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
34612 * config.gcc: Exit with a comment when we do not have a major version
34613 number for the FreeBSD target.
34615 2015-04-17 Jakub Jelinek <jakub@redhat.com>
34618 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
34619 maybe_allows_mem bitfields.
34620 (maybe_allows_none_start, maybe_allows_none_end,
34621 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
34622 maybe_allows_mem_end): New variables.
34623 (compute_maybe_allows): New function.
34624 (add_constraint): Use it to initialize maybe_allows_reg and
34625 maybe_allows_mem fields.
34626 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
34627 is_address constraints such that those that allow neither mem nor
34628 reg come first, then those that only allow reg but not mem, then
34629 those that only allow mem but not reg, then the rest.
34630 (write_allows_reg_mem_function): New function.
34631 (write_tm_preds_h): Call it.
34632 * stmt.c (parse_output_constraint, parse_input_constraint): Use
34633 the generated insn_extra_constraint_allows_reg_mem function
34634 instead of always setting *allows_reg = true; *allows_mem = true;
34635 for unknown extra constraints.
34637 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
34640 * output.h (default_binds_local_p_3): New.
34641 * varasm.c (default_binds_local_p_3): Make it public. Take an
34642 argument to indicate if common symbol may be local. If common
34643 symbol may be local, treat non-external variable as defined
34645 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
34646 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
34647 * config/i386/i386.c (ix86_binds_local_p): New.
34648 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
34649 ix86_binds_local_p.
34651 2015-04-17 Jakub Jelinek <jakub@redhat.com>
34654 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
34655 trying mem_loc_descriptor on XEXP (rtl, 0).
34657 2015-04-17 Martin Liska <mliska@suse.cz>
34659 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
34660 Release symbol_compare_collection.
34661 * ipa-reference.c: Add TODO that a vector should be released.
34663 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
34666 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
34667 to new AVR-LibC file layout (bug #44574).
34668 (*avrlibc_devicelib): Same.
34669 * config/avr/avr-mcus.def: Adjust comments.
34670 * config/avr/avr.opt (nodevicelib): Adjust help.
34672 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
34674 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
34676 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
34679 * gimplify.c (gimplify_init_constructor): Always emit a
34680 side-effecting constructor.
34682 2015-04-17 Tom de Vries <tom@codesourcery.com>
34684 PR tree-optimization/64950
34685 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
34686 in cfun->curr_properties.
34687 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
34688 if we generate an IFN_VA_ARG.
34689 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
34690 function if PROP_gimple_lva is not set in src function.
34692 2015-04-17 Tom de Vries <tom@codesourcery.com>
34693 Michael Matz <matz@suse.de>
34695 PR tree-optimization/64950
34696 * gimple-iterator.c (update_modified_stmts): Remove static.
34697 * gimple-iterator.h (update_modified_stmts): Declare.
34698 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
34699 (gimplify_va_arg_internal): New function.
34700 (gimplify_va_arg_expr): Use IFN_VA_ARG.
34701 * gimplify.h (gimplify_va_arg_internal): Declare.
34702 * internal-fn.c (expand_VA_ARG): New unreachable function.
34703 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
34704 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
34705 (expand_ifn_va_arg): New function.
34706 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
34707 (pass_stdarg::execute): Call expand_ifn_va_arg.
34708 (pass_data_lower_vaarg): New pass_data.
34709 (pass_lower_vaarg): New gimple_opt_pass.
34710 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
34711 (make_pass_lower_vaarg): New function.
34712 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
34713 properties_required field.
34714 * passes.def (all_passes): Add pass_lower_vaarg.
34715 * tree-pass.h (PROP_gimple_lva): Add define.
34716 (make_pass_lower_vaarg): Declare.
34718 2015-04-17 Tom de Vries <tom@codesourcery.com>
34720 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
34721 * calls.c (call_expr_flags): Same.
34723 2015-04-17 Tom de Vries <tom@codesourcery.com>
34725 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
34726 (pass_stdarg::execute): ... here.
34728 2015-04-17 Tom de Vries <tom@codesourcery.com>
34729 Michael Matz <matz@suse.de>
34731 * tree-cfg.c (make_blocks_1): Factor out of ...
34732 (make_blocks): ... here.
34733 (make_edges_bb): Factor out of ...
34734 (make_edges): ... here.
34735 (gimple_find_sub_bbs): New function.
34736 * tree-cfg.h (gimple_find_sub_bbs): Declare.
34738 2015-04-17 Tom de Vries <tom@codesourcery.com>
34740 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
34742 2015-04-17 Yury Gribov <y.gribov@samsung.com>
34744 * asan.c (set_sanitized_sections): New function.
34745 (section_sanitized_p): Ditto.
34746 (asan_protect_global): Optionally sanitize user-defined
34748 * asan.h (set_sanitized_sections): Declare new function.
34749 * common.opt (fsanitize-sections): New option.
34750 * doc/invoke.texi (-fsanitize-sections): Document new option.
34751 * opts-global.c (handle_common_deferred_options): Handle new
34754 2015-04-17 Jakub Jelinek <jakub@redhat.com>
34757 * dwarf2out.c (loc_list_from_tree): Return NULL
34758 for DEBUG_EXPR_DECL.
34760 2015-04-17 Christian Bruel <christian.bruel@st.com>
34762 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
34765 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
34767 * ira-color.c (setup_left_conflict_sizes_p): Do not process
34768 node itself when computing left conflict subnode size.
34770 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
34772 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
34773 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
34774 *fop_<mode>_1_sse using enabled attribute. Use
34775 register_mixssei387nonimm_operand operand 1 predicate. Change
34776 alternative 3 constraints from "x" to "v".
34778 2015-04-16 Richard Biener <rguenther@suse.de>
34780 PR tree-optimization/65774
34781 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
34782 bit-value tracking on.
34784 2015-04-16 Richard Biener <rguenther@suse.de>
34786 PR tree-optimization/64277
34787 * tree-vrp.c (check_array_ref): Fix anti-range handling,
34788 simplify upper bound handling.
34789 (search_for_addr_array): Simplify.
34790 (check_array_bounds): Handle ADDR_EXPRs here.
34791 (check_all_array_refs): Simplify.
34793 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
34795 * config/i386/i386.c (print_reg): Rewrite function.
34797 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34799 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
34800 Invert the condition.
34802 2015-04-16 Renlin Li <renlin.li@arm.com>
34804 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
34805 simplifications for UNSIGNED_FLOAT.
34807 2015-04-16 Nick Clifton <nickc@redhat.com>
34809 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
34811 (enum rl78_cpu_type): New.
34812 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
34813 (umulhi3_shift_virt): Remove m constraint from operand 1.
34814 (umulqihi3_virt): Likewise.
34815 * config/rl78/rl78.c (rl78_option_override): Add code to process
34816 -mcpu and -mmul options.
34817 (rl78_alloc_physical_registers): Add code to handle divhi and
34818 divsi valloc attributes.
34819 (set_origin): Likewise.
34820 * config/rl78/rl78.h (RL78_MUL_G14): Define.
34821 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
34822 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
34824 (ASM_SPEC): Pass -mcpu on to assembler.
34825 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
34826 (mulqi3_rl78): Likewise.
34827 (mulhi3_g13): Likewise.
34828 (mulhi3): Generate the G13 or G14 versions of the insn directly.
34829 (mulsi3): Likewise.
34830 (mulhi3_g14): Add clobbers of AX and BC.
34831 (mulsi3_g14): Likewise.
34832 (mulsi3_g13): Likewise.
34833 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
34834 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
34835 * config/rl78/rl78.opt (mmul): Initialise value to
34837 (mcpu): New option.
34838 (m13, m14, mrl78): New option aliases.
34839 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
34840 (MULTILIB_DIRNAMES): Add g13 and g14.
34841 * doc/invoke.texi: Document -mcpu and -mmul options.
34843 2015-04-16 Richard Biener <rguenther@suse.de>
34845 * tree-ssa-ccp.c (likely_value): See if we have operands that
34846 are marked as never simulate again and return CONSTANT in this
34848 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
34849 not have any operands that will be simulated again as
34850 not being simulated again.
34852 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
34854 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
34855 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
34856 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
34858 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
34860 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
34861 *float<SWI48:mode><MODEF:mode>2_sse.
34862 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
34864 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
34867 2015-04-15 Tom de Vries <tom@codesourcery.com>
34870 * function.c (push_dummy_function): New function.
34871 (init_dummy_function_start): Use push_dummy_function.
34872 (pop_dummy_function): New function. Factored out of ...
34873 (expand_dummy_function_end): ... here.
34874 * function.h (push_dummy_function, pop_dummy_function): Declare.
34875 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
34876 pop_dummy_function.
34877 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
34879 2015-04-15 Jeff Law <law@redhat.com>
34881 PR tree-optimization/47679
34882 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
34883 need for forward declaration in upcoming changes.
34884 (record_conditions, record_edge_info): Likewise.
34886 PR rtl-optimization/42522
34887 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
34888 SIGN_EXTRACT as a whole object rather than simplifying
34891 2015-04-15 Jakub Jelinek <jakub@redhat.com>
34894 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
34895 and GIMPLE_PREDICT use break instead of return true. For
34896 GIMPLE_EH_DISPATCH, compare dispatch region.
34898 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
34900 * doc/extend.texi (__sync Builtins): Simplify some text. Update
34901 details about the implementation. Make clear preference for
34902 __atomic builtins. Reduce possibility of future change.
34904 2015-04-15 Nick Clifton <nickc@redhat.com>
34906 * config/rx/rx.opt (mallow-string-insns): New option.
34907 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
34908 builtin if string instructions are denied.
34909 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
34910 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
34912 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
34913 * config/rx/rx.md (movstr): Enable pattern only if string
34914 instructions are allowed.
34915 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
34916 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
34917 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
34918 (MULTILIB_DIRNAMES): Add no-strings.
34919 * doc/invoke.texi: Document -mno-allow-string-insns.
34921 2015-04-15 Alan Modra <amodra@gmail.com>
34925 PR middle-end/36043
34926 * calls.c (load_register_parameters): Don't load past end of
34927 mem unless suitably aligned.
34929 2015-04-15 Nick Clifton <nickc@redhat.com>
34931 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
34932 decrement instruction as being frame related.
34933 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
34935 If zero extending a function address enclose the operation in
34937 (rl78_preferred_reload_class): New function.
34938 (TARGET_PREFERRED_RELOAD_CLASS): Define.
34939 * config/rl78/rl78.md: Remove useless constraints in expanders.
34940 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
34941 (mulhi3_rl78): Likewise.
34942 (mulhi3_g13): Likewise.
34943 (mulsi3_rl78): Likewise.
34944 (es_addr): Move to before the multiply patterns.
34946 2015-04-15 Alan Modra <amodra@gmail.com>
34948 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
34949 and sequence_stack. Add seq.
34950 (seq_stack): Delete.
34951 * function.c (prepare_function_start): Don't access x_last_insn.
34952 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
34953 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
34954 * emit_rtl.c (start_sequence, push_topmost_sequence,
34955 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
34956 sequence accessors.
34957 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
34958 remove_insn): Likewise. Simplify.
34959 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
34960 and pop_topmost_sequence.
34961 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
34963 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
34965 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
34968 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
34971 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
34973 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
34974 (LEGACY_INT_REGNO_P): Ditto.
34975 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
34976 (ANY_MASK_REG_P): Remove.
34977 (BND_REG_P): Rename from ANY_BND_REG_P.
34978 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
34979 legacy integer registers. Do not handle MMX_REG_P in a special way.
34980 Merge 64byte and 32byte SSE handling.
34982 2015-04-14 Nick Clifton <nickc@redhat.com>
34984 * expr.c (expand_assignment): Force an address offset computation
34985 into a register before changing its mode.
34986 (expand_expr_real_1): Likewise.
34988 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
34990 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
34991 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
34992 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
34993 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
34994 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
34995 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
34996 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
34997 and __aarch64_vget_lane_any.
34999 2015-04-14 Jakub Jelinek <jakub@redhat.com>
35001 PR rtl-optimization/65761
35002 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
35003 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
35005 2015-04-14 Richard Biener <rguenther@suse.de>
35007 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
35008 (graphite_can_represent_scev): Use POINTER_TYPE_P.
35010 2015-04-14 Richard Biener <rguenther@suse.de>
35012 PR tree-optimization/65758
35013 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
35015 (ccp_lattice_meet): Likewise.
35016 (bit_value_unop): Likewise.
35017 (bit_value_binop): Likewise.
35018 (bit_value_assume_aligned): Likewise.
35020 2015-04-14 Christian Bruel <christian.bruel@st.com>
35022 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
35025 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
35027 PR tree-optimization/63387
35028 * match.pd ((x unord x) | (y unord y) -> (x unord y),
35029 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
35031 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
35033 * config/i386/predicates.md (any_QIreg_operand): Rename from
35034 q_regs_operand. Do not process subregs.
35035 (QIreg_operand): Use QI_REGNO_P predicate.
35036 (ext_QIreg_operand): Ditto.
35037 (ext_register_operand): Ditto.
35038 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
35039 (AND splitters): Ditto.
35040 (AND with -65536 splitter): Add SWI48 mode for operand 0.
35041 (AND with -256 splitter): Use any_QIreg_operand predicate and
35042 SWI248 mode for operand 0.
35043 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
35044 mode for operand 0.
35045 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
35047 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
35049 * doc/plugins.texi: Rewrite first introductory paragraph.
35051 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
35053 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
35054 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
35056 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
35058 * ipa-profie.c (ipa_profile): Check number of parameters
35059 and possible polymorphic call targets before
35062 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
35064 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
35065 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
35067 2015-04-13 Richard Biener <rguenther@suse.de>
35069 PR tree-optimization/65204
35070 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
35071 takens for bit-CCP.
35073 2015-04-13 Richard Biener <rguenther@suse.de>
35076 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
35077 and cond_not_taken_branch_cost to 4 and 2.
35078 (bdver2_cost): Likewise.
35079 (bdver3_cost): Likewise.
35080 (bdver4_cost): Likewise.
35082 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
35084 * hash-table.h (hash_table constructor): Add mem stats.
35085 (alloc_entries): Likewise.
35087 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
35089 * ipa-cp.c (ipcp_driver): Relase prev_edge.
35090 * passes.c (execute_one_pass): Only add transform if pass has one.
35092 2015-04-12 Joseph Myers <joseph@codesourcery.com>
35094 * config/i386/i386.c (ix86_option_override_internal): Don't set
35095 -fprefetch-loop-arrays if optimizing for size.
35097 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
35098 Gerald Pfeifer <gerald@pfeifer.com>
35100 * doc/contrib.texi (Contributors): Add Martin Jambor and
35103 2015-04-12 Jakub Jelinek <jakub@redhat.com>
35105 * BASE-VER: Set to 6.0.0.
35107 PR tree-optimization/65747
35108 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
35109 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
35111 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
35113 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
35114 sentence. Improve grammar.
35116 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
35118 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
35120 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
35123 * ipa-inline-transform.c (speculation_removed): Remove static var.
35124 (check_speculations): New function.
35125 (clone_inlined_nodes): Do not check spculations.
35126 (inline_call): Call check_speculations.
35127 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
35128 consider non-invariants.
35130 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
35131 Martin Liska <mliska@suse.cz>
35134 * ipa-icf.c (sem_item::compare_cgraph_references): function and
35135 variable can not match.
35136 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
35137 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
35139 2015-04-11 Jakub Jelinek <jakub@redhat.com>
35141 PR tree-optimization/65735
35142 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
35143 Remove visited_phis argument, add visited_bbs, avoid recursing into the
35144 same bb rather than just into the same phi node.
35145 (thread_through_normal_block): Adjust caller.
35147 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
35149 * doc/contrib.texi (Contributors): Add Ira Rosen.
35151 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
35153 * gcov.c (find_source): Fix miswording in error message.
35154 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
35155 (ix86_expand_sse_comi_round): Fix typo in error message.
35157 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
35159 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
35161 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
35163 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
35165 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
35168 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
35169 Print bad_spills_num and insn_pseudos_num.
35171 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35174 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
35175 when creating +1 values for SImode.
35177 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
35180 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
35183 2015-04-10 Jakub Jelinek <jakub@redhat.com>
35184 Iain Sandoe <iain@codesourcery.com>
35187 * configure: Regenerate.
35189 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
35192 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
35194 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
35196 * doc/contrib.texi (Contributors): Add John Marino.
35198 2015-04-09 Jakub Jelinek <jakub@redhat.com>
35200 PR tree-optimization/65709
35201 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
35202 TREE_TYPE (TREE_TYPE (t)).
35204 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
35207 * lra-int.h (lra_bad_spill_regno_start): New.
35208 * lra.c (lra_bad_spill_regno_start): New.
35209 (lra): Set up lra_bad_spill_regno_start. Set up
35210 lra_constraint_new_regno_start unconditionally.
35211 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
35214 2015-04-09 Marek Polacek <polacek@redhat.com>
35215 Jakub Jelinek <jakub@redhat.com>
35217 PR middle-end/65554
35218 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
35219 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
35222 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
35224 PR rtl-optimization/65693
35225 * combine.c (is_parallel_of_n_reg_sets): Move outside of
35228 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
35231 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
35232 device specs file if "device-specs%s" didn't resolve to a path.
35234 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
35237 * config/i386/i386.c (fixup_modeless_constant): New.
35238 (ix86_expand_args_builtin): Fixup modeless constant operand.
35239 (ix86_expand_round_builtin): Ditto.
35240 (ix86_expand_special_args_builtin): Ditto.
35241 (ix86_expand_builtin): Ditto.
35243 2015-04-09 Jakub Jelinek <jakub@redhat.com>
35246 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
35247 any pow2 integer in between 2 and 0x80000000U inclusive.
35249 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
35251 PR rtl-optimization/65693
35252 * combine.c (is_parallel_of_n_reg_sets): Change first argument
35253 from an rtx_insn * to an rtx.
35254 (try_combine): Adjust both callers. Use it once more.
35256 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
35258 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
35259 (chkp_make_static_const_bounds): Search existing
35260 symbol by assembler name. Use make_decl_one_only.
35261 (chkp_get_zero_bounds_var): Remove node search which
35262 is now performed in chkp_make_static_const_bounds.
35263 (chkp_get_none_bounds_var): Likewise.
35265 2015-04-08 Michael Witten <mfwitten@gmail.com>
35267 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
35270 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
35272 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
35274 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
35276 * doc/extend.texi (__sync Builtins): Fix grammar.
35278 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
35280 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
35282 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
35284 * varasm.c (emit_local): Move definition of align.
35286 2015-04-08 Julian Brown <julian@codesourcery.com>
35288 * config/nvptx/mkoffload.c (process): Support variable mapping.
35290 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
35292 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
35294 (alpha_write_one_linkage): Correct typo.
35296 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
35298 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
35300 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
35302 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
35304 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
35306 * tree-chkp.h (chkp_insert_retbnd_call): New.
35307 * tree-chkp.c (chkp_insert_retbnd_call): New.
35308 * ipa-split.c (insert_bndret_call_after): Remove.
35309 (split_function): Use chkp_insert_retbnd_call.
35310 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
35311 bounds for instrumented functions.
35313 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
35316 * calls.c (initialize_argument_information): When producing tail
35317 call also turn SSA_NAMES passed by references to original PARM_DECLs
35319 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
35322 * lra-remat.c (do_remat): Process input and non-input insn
35323 registers separately.
35325 2015-04-07 Jakub Jelinek <jakub@redhat.com>
35328 * valtrack.c (debug_lowpart_subreg): New function.
35329 (dead_debug_insert_temp): Use it.
35331 PR middle-end/65680
35332 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
35333 into signed HOST_WIDE_INT the same as negative bit_offset.
35335 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
35337 * ipa-comdats.c (ipa_comdats): Visit all thunks
35338 to set proper comdat group.
35340 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35343 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
35344 on constants for NEON VSTRUCT modes.
35346 2015-04-07 Jakub Jelinek <jakub@redhat.com>
35347 Iain Sandoe <iain@codesourcery.com>
35350 * configure: Regenerate.
35352 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
35355 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
35356 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
35357 that LFD is used to load double constants instead of LFS. Add
35358 defaults for all costs structures. Add comments for missing
35359 initialization fields.
35360 (size32_cost): Likewise.
35361 (size64_cost): Likewise.
35362 (rs64a_cost): Likewise.
35363 (mpccore_cost): Likewise.
35364 (ppc403_cost): Likewise.
35365 (ppc405_cost): Likewise.
35366 (ppc440_cost): Likewise.
35367 (ppc476_cost): Likewise.
35368 (ppc601_cost): Likewise.
35369 (ppc603_cost): Likewise.
35370 (ppc604_cost): Likewise.
35371 (ppc604e_cost): Likewise.
35372 (ppc620_cost): Likewise.
35373 (ppc630_cost): Likewise.
35374 (ppccell_cost): Likewise.
35375 (ppc750_cost): Likewise.
35376 (ppc7450_cost): Likewise.
35377 (ppc8540_cost): Likewise.
35378 (ppce300c2c3_cost): Likewise.
35379 (ppce500mc_cost): Likewise.
35380 (ppce500mc64_cost): Likewise.
35381 (ppce5500_cost): Likewise.
35382 (ppce6500_cost): Likewise.
35383 (titan_cost): Likewise.
35384 (power4_cost): Likewise.
35385 (power6_cost): Likewise.
35386 (power7_cost): Likewise.
35387 (power8_cost): Likewise.
35388 (ppca2_cost): Likewise.
35389 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
35391 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
35392 instead of XXLOR to copy SFmode to clear out dirty bits created
35393 when SFmode denormals are generated.
35394 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
35395 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
35397 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
35399 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
35400 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
35401 * config/aarch64/aarch64-tune.md: Regenerate.
35403 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
35405 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
35406 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
35407 * config/arm/arm-cores.def (exynos-m1): New core.
35408 * config/arm/arm-tune.md: Regenerate.
35409 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
35410 * config/arm/bpabi.h: Likewise.
35412 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
35414 * ipa-cp (set_single_call_flag): Remove too
35415 restrictive assert.
35417 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
35419 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
35420 GOMP_offload_unregister from the destructor.
35422 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
35424 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
35425 flags for instrumentation thunk.
35426 (chkp_produce_thunks): Likewise.
35428 2015-04-05 Martin Liska <mliska@suse.cz>
35431 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
35432 has computed data structure.
35433 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
35435 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
35437 * invoke.texi (inline-unit-growth): Increase growth to 20%
35438 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
35440 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
35443 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
35445 (lra_rematerialization_iter): New.
35446 * lra.c (lra): Initialize lra_rematerialization_iter.
35447 Stop updating lra_constraint_new_regno_start after switching of
35448 inheritance and rematerialization.
35449 * lra-remat.c (lra_rematerialization_iter): New.
35450 (lra_remat): Add printing pass iteration. Do rematerialization
35451 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
35453 2015-04-04 Richard Biener <rguenther@suse.de>
35455 PR tree-optimization/64909
35456 PR tree-optimization/65660
35457 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
35458 to take a cost vector for scalar iteration cost.
35459 (vect_get_single_scalar_iteration_cost): Likewise.
35460 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
35461 Compute the scalar iteration cost into a cost vector.
35462 (vect_get_known_peeling_cost): Use the scalar cost vector to
35463 account for the cost of the peeled iterations.
35464 (vect_estimate_min_profitable_iters): Likewise.
35465 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
35468 2015-04-04 Alan Modra <amodra@gmail.com>
35472 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
35473 0.0 constant unless TARGET_VSX.
35474 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
35477 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
35480 * ipa-inline-transform.c (inline_call): Skip sanity check to work
35483 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
35486 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
35487 speculative indirect edges to avoid ordering issue.
35489 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
35492 * ipa-inline.c (edge_badness): Add combined size to the denominator.
35494 2015-04-03 Jakub Jelinek <jakub@redhat.com>
35496 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
35497 TYPE_ARTIFICIAL on the .omp_data* types.
35499 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
35501 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
35502 instrumentation thunks.
35504 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
35506 * config/i386/i386.c (ix86_expand_call): Avoid nested
35507 PARALLEL in returned call value.
35509 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
35511 * lto-cgraph.c (input_cgraph_1): Always link instrumented
35512 assembler name with original one.
35514 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
35516 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
35518 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
35520 Revert parts of r216820.
35521 * config/i386/i386.md (movqi_internal): Correct type calculation
35522 for alternatives 3 and 5.
35524 2015-04-02 Jakub Jelinek <jakub@redhat.com>
35526 PR preprocessor/61977
35527 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
35528 predefine __vector/__bool/__pixel macros nor context sensitive
35529 macros for CLK_ASM.
35530 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
35532 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
35534 * config/pa/pa.c (pa_output_move_double): Directly handle register
35535 indexed memory operand. Simplify handling of scaled register indexed
35538 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
35541 * config/i386/linux-common.h (MPX_SPEC): New.
35542 (CHKP_SPEC): Add MPX_SPEC.
35543 * doc/invoke.texi (-fcheck-pointer-boudns): Document
35544 possible issues with '-z bndplt' support in linker.
35546 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
35548 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
35549 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
35550 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
35551 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
35552 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
35554 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
35556 * config/i386/sync.md (UNSPEC_MOVA): Remove.
35557 (atomic_load<mode>): Change operand 0 predicate to
35558 nonimmediate_operand and fix up the destination when needed.
35560 (atomic_loaddi_fpu): Use UNSPEC_LDA.
35561 (atomic_store<mode>): Change operand 1 predicate to
35562 nonimmendate_operand and move the source to register when needed.
35564 (atomic_store<mode>_1): Use UNSPEC_STA.
35565 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
35566 Fix moves from memory operand. Use UNSPEC_STA.
35568 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
35570 * expmed.c (strict_volatile_bitfield_p): Check that the access will
35571 not cross a MODESIZE boundary.
35572 (store_bit_field, extract_bit_field): Added assertions in the
35573 strict volatile bitfields code path.
35575 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
35578 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
35579 Increase args array size by one to avoid buffer overflow.
35581 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
35583 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
35585 * ipa-inline.c (edge_badness): Add wrapper penalty.
35586 (sum_callers): Move up.
35587 (inline_small_functions): Set single_caller.
35588 * ipa-inline.h (inline_summary): Add single_caller.
35589 * ipa-split.c (split_function): Set split_part.
35590 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
35591 * cgraph.h (cgraph_node): Add split_part.
35593 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
35596 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
35597 Do not split operands 0 and operands 2 to halfmode.
35598 (atomic_compare_and_swap<mode>): Update for
35599 atomic_compare_and_swap<dwi>_doubleword changes.
35601 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
35603 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
35604 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
35605 no caching is done.
35607 2015-03-31 Martin Liska <mliska@suse.cz>
35610 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
35611 has already filled up function summary.
35612 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
35614 2015-03-31 Richard Biener <rguenther@suse.de>
35616 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
35619 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
35621 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
35623 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
35624 (s390_asm_output_function_label): Adapt to new signature of
35625 s390_function_num_hotpatch_hw
35626 Optimise the code generating assembler output.
35627 Add comments to assembler file.
35629 2015-03-31 Richard Biener <rguenther@suse.de>
35631 PR middle-end/65626
35632 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
35633 of the noreturn call so it is last and cleanup_control_flow_bb
35634 can do the CFG part.
35636 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
35639 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
35640 same_comdat_group for external symbols.
35641 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
35642 infinite same_comdat_group traversal loop.
35644 2015-03-31 Jakub Jelinek <jakub@redhat.com>
35647 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
35648 automatically to $headers.
35650 2015-03-30 Jakub Jelinek <jakub@redhat.com>
35653 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
35654 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
35656 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
35658 * ipa-prop.c (param_type_may_change_p): Likewise.
35659 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
35660 (remove_unused_scope_block_p): Add in_ctor_dtor_block
35661 argument. Before inlining, preserve
35662 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
35663 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
35665 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
35667 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
35670 * ipa-inline.c (edge_badness): Base denominator on callee's
35673 2015-03-27 Martin Jambor <mjambor@suse.cz>
35676 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
35677 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
35678 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
35679 node_calling_single_call.
35680 * ipa-cp.c (count_callers): New function.
35681 (set_single_call_flag): Likewise.
35682 (initialize_node_lattices): Count callers and set single_flag_call if
35684 (incorporate_penalties): New function.
35685 (good_cloning_opportunity_p): Use it, dump new flags.
35686 (propagate_constants_topo): Set node_within_scc flag if appropriate.
35687 * doc/invoke.texi (ipa-cp-recursion-penalty,
35688 ipa-cp-single-call-pentalty): Document.
35690 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
35693 * symtab.c (symtab_node::get_partitioning_class): Register vars
35695 * varpool.c (symbol_table::output_variables) Do not assemble unefined
35696 decls for non-symbols.
35698 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
35701 * output.h (default_binds_local_p_2): New.
35702 * varasm.c (default_binds_local_p_2): Renamed to ...
35703 (default_binds_local_p_3): This. Don't return true on protected
35704 data symbol if protected data may be external.
35705 (default_binds_local_p): Use default_binds_local_p_3.
35706 (default_binds_local_p_1): Likewise.
35707 (default_binds_local_p_2): New.
35708 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
35709 default_binds_local_p_2 if TARGET_MACHO is undefined.
35711 2015-03-27 Jakub Jelinek <jakub@redhat.com>
35714 * config/i386/i386.c (legitimize_pic_address): If base
35715 is SYMBOL_REF or LABEL_REF using %rip addressing, force
35716 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
35718 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
35721 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
35724 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
35727 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
35728 of optimized out indirect call.
35729 (redirect_to_unreachable): Always build symbol table node for
35730 BUILT_IN_UNREACHABLE
35732 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
35735 * ira-costs.c (record_reg_classes): Process all constraint string
35738 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
35740 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
35744 * config/c6x/constraints.md (S3): New constraint.
35745 * config/c6x/c6x.md (real_jump): Use it.
35747 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
35749 PR middle-end/65595
35750 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
35751 do redirection if the call is not optimized out.
35753 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
35756 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
35757 (fchkp-check-incomplete-type): Add LTO.
35758 (fchkp-zero-input-bounds-for-main): Likewise.
35759 (fchkp-first-field-has-own-bounds): Likewise.
35760 (fchkp-narrow-bounds): Likewise.
35761 (fchkp-narrow-to-innermost-array): Likewise.
35762 (fchkp-use-static-bounds): Likewise.
35763 (fchkp-use-static-const-bounds): Likewise.
35764 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
35766 2015-03-27 Marek Polacek <polacek@redhat.com>
35768 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
35770 2015-03-27 Marek Polacek <polacek@redhat.com>
35773 * ubsan.c (ubsan_create_edge): New function.
35774 (instrument_bool_enum_load): Call it.
35775 (instrument_nonnull_arg): Likewise.
35776 (instrument_nonnull_return): Likewise.
35777 (instrument_object_size): Likewise.
35779 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
35781 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
35784 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
35787 * lto-streamer.h (class lto_location_cache): New.
35788 (struct data_in): Add location_cache.
35789 (lto_input_location): Update prototype.
35790 (stream_input_location_now): New.
35791 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
35792 pointer to location.
35793 (stream_input_location): Update.
35794 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
35795 (warn_odr): Apply location cache before warning.
35796 (lto_input_location): Update prototype.
35797 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
35798 Use stream_input_location_now.
35799 * lto-streamer-in.c (lto_location_cache::current_cache): New static
35801 (lto_location_cache::cmp_loc): New function.
35802 (lto_location_cache::apply_location_cache): New function.
35803 (lto_location_cache::accept_location_cache): New function.
35804 (lto_location_cache::revert_location_cache): New function.
35805 (lto_location_cache::input_location): New function.
35806 (lto_input_location): Do location caching.
35807 (stream_input_location_now): New function.
35808 (input_eh_region, input_struct_function_base): Use
35809 stream_input_location_now.
35810 (lto_data_in_create): use new.
35811 (lto_data_in_delete): Use delete.
35812 * tree-streamer-in.c (unpack_ts_block_value_fields,
35813 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
35814 lto_input_ts_exp_tree_pointers): Update for cached location api.
35816 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
35819 * passes.def: Add pass_nothrow.
35820 * ipa-pure-const.c: (pass_data_nothrow): New.
35821 (pass_nothrow): New.
35822 (pass_nothrow::execute): New.
35823 (make_pass_nothrow): New.
35824 * tree-pass.h (make_pass_nothrow): Declare.
35826 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
35828 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
35829 edge to change by speculation resolution or redirection.
35830 (edge_set_predicate): Likewise.
35831 (inline_summary_t::duplicate): Likewise.
35832 (remap_edge_summaries): Likewise.
35834 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
35836 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
35838 (can_inline_edge_p): Relax option matching for always inline functions.
35840 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
35843 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
35844 Check operand 4 and operand 0 for equality.
35845 (avx512f_vextract<shuffletype>32x4_1_maskm):
35846 Check operand 6 and operand 0 for equality.
35847 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
35849 (vec_extract_hi_<mode>_maskm): Ditto.
35851 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
35853 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
35854 dead calls back to live.
35855 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
35857 (cgraph_node::verify_node): ... here; verify only callee edges,
35859 * cif-code.def (CILK_SPAWN): New code.
35861 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
35863 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
35864 (edge_set_predicate): Use it to mark unreachable edges.
35865 (inline_summary_t::duplicate): Remove unnecesary code.
35866 (remap_edge_summaries): Likewise.
35867 (dump_inline_summary): Report contains_cilk_spawn.
35868 (compute_inline_parameters): Compute contains_cilk_spawn.
35869 (inline_read_section, inline_write_summary): Stream
35870 contains_cilk_spawn.
35871 * ipa-inline.c (can_inline_edge_p): Do not touch
35872 DECL_STRUCT_FUNCTION that may not be available;
35873 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
35874 remove check for callee_fun->can_throw_non_call_exceptions and
35875 replace it by optimization attribute check; check for flag_exceptions.
35876 * ipa-inline-transform.c (inline_call): Maintain
35877 DECL_FUNCTION_PERSONALITY
35878 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
35880 2015-03-26 Jakub Jelinek <jakub@redhat.com>
35882 PR tree-optimization/65551
35883 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
35884 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
35886 2015-03-26 Richard Biener <rguenther@suse.de>
35888 PR middle-end/65555
35889 * tree-cfg.c (verify_gimple_call): Do not require a call to
35890 have no LHS if it wasn't recognized as control altering yet.
35892 2015-03-26 Jakub Jelinek <jakub@redhat.com>
35894 PR tree-optimization/64715
35895 * passes.def: Add another instance of pass_object_sizes before ccp1.
35896 * tree-object-size.c (pass_object_sizes::execute): In
35897 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
35898 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
35899 __bos result and the computed constant. Remove redundant
35900 checks, obsoleted by gimple_call_builtin_p test.
35902 * var-tracking.c (variable_tracking_main_1): Don't track
35903 variables for targetm.no_register_allocation targets.
35905 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
35907 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
35908 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
35910 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
35913 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
35914 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
35915 0.0 is correctly setup.
35916 (extenddftf2_internal): Likewise.
35918 2015-03-25 Sebastian Pop <s.pop@samsung.com>
35920 PR tree-optimization/65177
35921 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
35923 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
35924 edges not adjacent on the path to the original code.
35926 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
35929 * doc/install.texi (Building a native compiler): Document new
35930 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
35931 configuration assumes that the host supports the linker plugin.
35933 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
35936 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
35937 chain for generated call.
35939 2015-03-25 Richard Biener <rguenther@suse.de>
35941 * passes.c (pass_manager::execute_early_local_passes): Guard
35942 execution of pass_chkp_instrumentation_passes with
35943 flag_check_pointer_bounds.
35944 (pass_chkp_instrumentation_passes::gate): Likewise.
35946 2015-03-25 Martin Liska <mliska@suse.cz>
35948 PR tree-optimization/65538
35949 * symbol-summary.h (function_summary::~function_summary):
35950 Relese memory for allocated summaries.
35951 (function_summary::release): New function.
35953 2015-03-25 Jakub Jelinek <jakub@redhat.com>
35956 * lto-streamer-out.c (DFS::worklist): New struct.
35957 (DFS::worklist_vec): New data member.
35958 (DFS::next_dfs_num): Remove.
35959 (DFS::DFS): Rewritten using worklist instead of recursion,
35960 using most of code from DFS::DFS_write_tree.
35961 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
35962 pass it to DFS_write_tree calls.
35963 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
35964 quick initial checks push it into worklist_vec and return.
35966 2015-03-25 Richard Biener <rguenther@suse.de>
35968 PR middle-end/65519
35969 * genmatch.c (expr::gen_transform): Re-write to avoid
35970 using gimple_build.
35972 2015-03-25 Bin Cheng <bin.cheng@arm.com>
35974 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
35976 2015-03-25 Bin Cheng <bin.cheng@arm.com>
35978 * config/arm/arm.opt (print_tune_info): New option.
35979 * config/arm/arm.c (arm_print_tune_info): New function.
35980 (arm_file_start): Call arm_print_tune_info.
35981 * config/arm/arm-protos.h (struct tune_params): Add comment.
35982 * doc/invoke.texi (@item -mprint-tune-info): New item.
35983 (-mtune): mention it in ARM Option Summary.
35985 2015-03-25 DJ Delorie <dj@redhat.com>
35987 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
35990 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
35991 Martin Liska <mliska@suse.cz>
35993 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
35994 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
35995 (sem_item::add_type): New function.
35996 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
35997 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
35998 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
35999 (sem_function::equals_wpa): Fix typo.
36000 * ipa-icf.h (sem_item::add_type): New function.
36001 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
36004 2015-03-24 Jakub Jelinek <jakub@redhat.com>
36006 PR tree-optimization/65533
36007 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
36008 with swapped operands, call vect_free_slp_tree on
36009 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
36012 2015-03-24 Richard Biener <rguenther@suse.de>
36014 PR middle-end/65517
36015 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
36016 for fixup if necessary.
36018 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
36020 * doc/extend.texi (Function Attributes): Add @cindex entries
36021 for all attributes and regularize their format. Delete text
36022 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
36023 information about "eightbit_data", "tiny_data", and "model"
36024 variable attributes to the Variable Attributes section. Fix
36025 some obvious typos and copy-editing issues.
36026 (Variable Attributes, Type Attributes): Likewise add/fix
36027 @cindex entries for all attributes.
36029 2015-03-23 Jakub Jelinek <jakub@redhat.com>
36032 * tree-chkp.c (chkp_build_returned_bound): Ignore
36033 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
36035 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
36038 * config/sh/predicates.md (simple_mem_operand,
36039 displacement_mem_operand): Add test for reg.
36040 (short_displacement_mem_operand): Test for displacement_mem_operand
36041 before invoking sh_disp_addr_displacement.
36042 * config/sh/constraints.md (Sdd, Sra): Simplify.
36043 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
36044 Remove redundant displacement_mem_operand tests.
36046 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
36049 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
36050 the same -mmcu=MCU more than once.
36052 2015-03-23 Jakub Jelinek <jakub@redhat.com>
36055 * ipa-devirt.c: Remove duplicate demangle.h include.
36058 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
36060 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
36061 REG_POINTER on *destptr after adjusting it for prologue size.
36064 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
36065 ultimate_alias_target ()->order ints instead of
36066 ultimate_alias_target () pointers.
36068 2015-03-23 Richard Biener <rguenther@suse.de>
36070 PR tree-optimization/65518
36071 * tree-vect-stmts.c (vectorizable_load): Reject single-element
36072 interleaving cases we generate absymal code for.
36074 2015-03-23 Richard Biener <rguenther@suse.de>
36076 PR tree-optimization/65494
36077 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
36079 (vect_analyze_slp_instance): But do that here, always and once.
36081 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36083 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
36084 adding T or multiplying by T+1 and subracting T.
36086 2015-03-22 Jeff Law <law@redhat.com>
36088 PR rtl-optimization/64317
36089 * Makefile.in (OBJS): Add gcse-common.c
36090 * gcse.c: Include gcse-common.h
36091 (struct modify_pair_s): Move structure definition to gcse-common.h
36092 (compute_transp): Move function to gcse-common.c.
36093 (canon_list_insert): Similarly.
36094 (record_last_mem_set_info): Break out some code and put it into
36095 gcse-common.c. Call into the new common code.
36096 (compute_local_properties): Pass additional arguments to compute_transp.
36097 * postreload-gcse.c: Include gcse-common.h and df.h
36098 (modify_mem_list_set, blocks_with_calls): New variables.
36099 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
36100 (get_bb_avail_insn): Pass in the expression index too.
36101 (alloc_mem): Allocate memory for the new bitmaps and lists.
36102 (free_mem): Free memory for the new bitmaps and lists.
36103 (insert_expr_in_table): Record a bitmap index for each entry we
36105 (record_last_mem_set_info): Call into common code in gcse-common.c.
36106 (get_bb_avail_insn): If no available insn was found in the requested
36107 BB. If BB has a single predecessor, see if the expression is
36108 transparent in BB and available in that single predecessor.
36109 (compute_expr_transp): New wrapper for compute_transp.
36110 (eliminate_partially_redundant_load): Pass expression's bitmap_index
36111 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
36112 (gcse_after_reload_main): If there are elements in the hash table,
36113 then compute transparency for all the elements in the hash table.
36114 * gcse-common.h: New file.
36115 * gcse-common.c: New file.
36117 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
36119 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
36121 (System Headers): Likewise.
36123 (Traditional macros): Likewise.
36124 (Invocation): Likewise.
36125 (Option Index): Likewise.
36126 * doc/cppopts.texi (-M): Likewise.
36127 (-finput-charset): Likewise.
36128 (--help): Likewise.
36129 * doc.invoke.texi (AVR Options): Likewise.
36130 (V850 Options): Likewise.
36132 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
36135 * ipa-devirt.c: Include demangle.h
36136 (odr_type_d): Add field rtti_broken.
36137 (odr_subtypes_equivalent_p): Do not require name to match.
36138 (compare_virtual_tables): Fix typo; if type already has ODR violation,
36139 bypass the tests; be ready for function referneces in vtables that are
36140 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
36141 (warn_odr): Give up for nameless types.
36142 (warn_types_mismatch): Report mismatch in mangled names;
36143 report mismatch in anonymous namespaces; look into component types to
36144 give useful error; report when mismatch is dragged in from other ODR
36146 (odr_types_equivalent_p): Match types for being polymorphic; avoid
36147 duplicated diagnostics.
36148 (add_type_duplicate): Reorder checks so more informative ones come
36149 first; fix typo; do not output "the extra base is defined here" when
36151 (BINFO_N_BASE_BINFOS): Relax sanity check.
36153 2015-03-22 Martin Liska <mliska@suse.cz>
36154 Jakub Jelinek <jakub@redhat.com>
36156 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
36157 masks that can potentially include a builtin.
36158 (ix86_add_new_builtins): Introduce fast filter for isa values
36159 that cannot trigger builtin inclusion.
36161 2015-03-22 Martin Liska <mliska@suse.cz>
36163 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
36164 (sem_item::update_hash_by_local_refs): Likewise.
36165 (sem_variable::get_hash): Empty line is fixed.
36166 (sem_item_optimizer::execute): Include adding of hash references.
36167 (sem_item_optimizer::update_hash_by_addr_refs): New function.
36168 (sem_item_optimizer::build_hash_based_classes): Use local hash.
36169 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
36170 (sem_item::update_hash_by_local_refs): Likewise.
36172 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
36175 * ipa-comdats.c (enqueue_references): Walk through thunks.
36176 (ipa_comdats): Likewise.
36177 (set_comdat_group_1): New function.
36179 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
36182 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
36185 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
36186 Gerald Pfeifer <gerald@pfeifer.com>
36188 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
36190 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
36191 Sandra Loosemore <sandra@codesourcery.com>
36193 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
36194 function parameter declaration.
36195 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
36196 Update arguments to nios2_adjust_call_address().
36197 (sibcall_internal): Rename from *sibcall.
36198 (sibcall_value_internal): Rename from *sibcall_value.
36199 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
36200 (nios2_large_got_address): Add target temp reg parameter.
36201 (nios2_got_address): Adjust call to nios2_large_got_address, add
36202 force_reg around it.
36203 (nios2_load_pic_address): Add target temp reg parameter, replace call
36204 to nios2_got_address with corresponding code.
36205 (nios2_legitimize_constant_address): Update call to
36206 nios2_load_pic_address.
36207 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
36208 to use temp reg for PIC loading purposes.
36209 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
36210 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
36211 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
36213 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
36215 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
36216 usage of "the @option{...}".
36217 (-Wopenmp-simd): Likewise.
36218 (-fsanitize-recover): Likewise.
36219 (-fsanitize-undefined-trap-on-error): Likewise.
36221 (tracer-dynamic-coverage-feedback): Likewise.
36222 (reorder-block-duplicate-feedback): Likewise.
36223 (loop-unroll-jam-size): Likewise.
36226 (-mabs=legacy): Likewise.
36227 (-mupper-regs-df): Likewise.
36228 (-mupper-regs-sf): Likewise.
36229 (-mpointers-to-nested-functions): Likewise.
36231 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
36233 * doc/extend.texi (Cilk Plus Builtins): Add markup.
36235 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
36237 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
36238 additional index entries and cross-references.
36239 (-fchkp-check-incomplete-type): Likewise.
36240 (-fchkp-first-field-has-own-bounds): Likewise.
36241 (-fchkp-narrow-to-innermost-array): Likewise.
36242 (-fchkp-use-fast-string-functions): Likewise.
36243 (-fchkp-use-nochk-string-functions): Likewise.
36244 (-fchkp-use-static-const-bounds): Likewise.
36245 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
36246 (-fchkp-instrument-marked-only): Likewise.
36247 (-fchkp-use-wrappers): Likewise.
36248 (-static-libmpx): Likewise.
36249 (-static-libmpxwrappers): Likewise.
36250 * doc/extend.texi (bnd_legacy): Likewise.
36251 (bnd_instrument): Likewise.
36252 (bnd_variable_size): Likewise.
36253 (Pointer Bounds Checker builtins): Likewise.
36255 2015-03-21 Tom de Vries <tom@codesourcery.com>
36257 PR tree-optimization/65458
36258 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
36259 * cgraph.h (cgraph_node): Add parallelized_function field.
36260 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
36261 (input_overwrite_node): Read parallelized_function field.
36262 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
36263 parallelized_function on cgraph_node for child_fn.
36264 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
36265 Remove include of gt-tree-parloops.h.
36266 (parallelized_functions): Remove static variable.
36267 (parallelized_function_p): Rewrite using parallelized_function field of
36269 (create_loop_fn): Remove adding to parallelized_functions.
36270 * Makefile.in (GTFILES): Remove tree-parloops.c
36272 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
36274 PR rtl-optimization/64366
36275 * lra.c (lra_update_insn_regno_info): Consider regs in
36276 CALL_INSN_FUNCTION_USAGE memory.
36278 2015-03-20 Richard Biener <rguenther@suse.de>
36280 PR middle-end/64715
36281 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
36282 for type comparison and gcc_checking_assert.
36283 (chrec_fold_plus_poly_poly): Likewise.
36284 (chrec_fold_multiply_poly_poly): Likewise.
36285 (chrec_convert_1): Likewise.
36286 * gimplify.c (gimplify_expr): Remove premature folding of
36287 &X + CST to &MEM[&X, CST].
36289 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
36291 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
36293 (ipa_inline): Recompute inline_failed codes.
36294 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
36295 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
36298 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
36300 PR rtl-optimization/60851
36301 * recog.c (constrain_operands): Accept a pseudo register before reload
36302 for LRA enabled targets.
36304 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
36307 * config/rs6000/predicates.md (easy_fp_constant): Remove special
36308 -ffast-math handling that kept non-0 constants live in the RTL
36309 until reload. Remove logic testing the number of instructions it
36310 took to create a constant in a GPR that was never used, due to a
36311 test for soft-float earlier.
36312 (memory_fp_constant): Delete, no longer used.
36314 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
36315 alternatives for loading non-0 constants into GPRs for hard
36316 floating point that is no longer needed due to changes in
36317 easy_fp_constant. Add support for loading 0.0 into GPRs.
36318 (mov<mode>_hardfloat32): Likewise.
36319 (mov<mode>_hardfloat64): Likewise.
36320 (mov<mode>_64bit_dm): Likewise.
36321 (movtd_64bit_nodm): Likewise.
36322 (pre-reload move FP constant define_split): Delete define_split,
36323 since it is no longer used.
36324 (extenddftf2_internal): Remove GHF constraints that are not valid
36327 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
36329 PR rtl-optimization/63491
36330 * lra-constraints.c (check_and_process_move): Use src instead of
36331 sreg. Remove some dead code.
36333 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
36336 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
36337 (sem_variable::merge): Likewise.
36339 2015-03-19 Martin Liska <mliska@suse.cz>
36342 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
36343 all fields of cgraph_thunk_info.
36345 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
36347 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
36348 clone instrumented thunks.
36350 2015-03-19 Richard Biener <rguenther@suse.de>
36353 2015-03-10 Richard Biener <rguenther@suse.de>
36355 PR middle-end/63155
36356 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
36357 * tree-ssa-coalesce.c: Include timevar.h.
36358 (attempt_coalesce): Handle graph being NULL.
36359 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
36360 Split out abnormal coalescing to ...
36361 (perform_abnormal_coalescing): ... this function.
36362 (coalesce_ssa_name): Perform abnormal coalescing without computing
36364 (verify_ssa_coalescing_worker): New function.
36365 (verify_ssa_coalescing): Likewise.
36367 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
36368 Jakub Jelinek <jakub@redhat.com>
36371 * tsan.c (instrument_gimple): Clear tail call flag on
36374 2015-03-19 Jakub Jelinek <jakub@redhat.com>
36377 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
36378 call in the return bb.
36379 (find_split_points): Add RETURN_BB argument, don't call
36381 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
36382 if true append TSAN_FUNC_EXIT internal call after the call to
36383 the split off function.
36384 (execute_split_functions): Call find_return_bb here.
36385 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
36386 Adjust find_split_points and split_function calls.
36388 2015-03-18 DJ Delorie <dj@redhat.com>
36390 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
36391 (iorqi3_virt): Likewise.
36393 2015-03-18 Tom de Vries <tom@codesourcery.com>
36395 * tree-parloops.c (parallelize_loops): Make static.
36396 * tree-parloops.h (parallelize_loops): Remove extern declaration.
36398 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
36400 PR middle-end/64491
36402 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
36404 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
36405 condition would be removed due to undefined behaviour.
36407 2015-03-18 Martin Liska <mliska@suse.cz>
36410 * cgraph.c (cgraph_node::get_create): Remove unnecessary
36411 xstrdup_for_dump wrapper.
36412 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
36414 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
36415 with xstrdup_for_dump.
36416 (sem_variable::equals): Likewise.
36417 (sem_item_optimizer::read_section): Use symtab_node::name instead of
36419 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
36420 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
36421 symtab_node::asm_name with xstrdup_for_dump.
36422 (congruence_class::dump): Use symtab_node::name instead of
36424 * ipa-icf.h (symtab_node::name): Remove.
36425 (symtab_node::asm_name): Likewise.
36427 2015-03-18 Jakub Jelinek <jakub@redhat.com>
36429 PR tree-optimization/65450
36430 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
36432 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
36433 it instead of duplicate_ssa_name_ptr_info.
36436 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
36438 2015-03-18 Richard Biener <rguenther@suse.de>
36440 * tree-data-ref.h (struct access_matrix): Remove.
36441 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
36442 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
36443 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
36444 (am_vector_index_for_loop): Likewise.
36445 (struct data_reference): Remove access_matrix member.
36446 (DR_ACCESS_MATRIX): Remove.
36447 (lambda_vector_new): Add comment.
36448 (lambda_matrix_new): Use XOBNEWVEC.
36450 2015-03-18 Richard Biener <rguenther@suse.de>
36452 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
36453 (pass_ch::execute): Cleanup the CFG only if we did sth.
36454 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
36456 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36458 * expmed.c (synth_mult): Use std::swap instead of manually
36459 swapping algorithms.
36461 2015-03-18 Jakub Jelinek <jakub@redhat.com>
36464 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
36466 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
36469 * config/avr/avr.opt (-nodevicelib): New option.
36470 * doc/invoke.texi (AVR Options): Document it.
36471 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
36472 libgcc.a, libc.a, libm.a.
36473 * config/avr/specs.h: Same.
36474 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
36475 which don't (directly) depend on the device. Print more help.
36476 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
36477 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
36478 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
36480 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
36481 for specs file name.
36482 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
36483 * config/avr/avr-mcus.def: Adjust initializers and comments.
36485 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
36487 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
36488 DECL_ONE_ONLY to check if decl is one only.
36489 * ipa-split.c (consider_split): Limit splitt of one only functions.
36491 2015-03-16 Jakub Jelinek <jakub@redhat.com>
36493 PR tree-optimization/65427
36494 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
36496 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
36498 2015-03-16 Marek Polacek <polacek@redhat.com>
36500 * cgraph.h (add_new_static_var): Remove declaration.
36501 * varpool.c (add_new_static_var): Remove function.
36503 2015-03-16 Jakub Jelinek <jakub@redhat.com>
36505 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
36506 instead of vec<tree> * with vec_alloc and release for args.
36509 PR middle-end/65431
36510 * omp-low.c (delete_omp_context): Only splay_tree_delete
36511 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
36512 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
36514 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
36517 * cfgexpand.c (align_base): New function.
36518 (alloc_stack_frame_space): Call it.
36519 (expand_stack_vars): Align prev_frame to be sure
36520 data->asan_vec elements aligned properly.
36522 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
36524 PR middle-end/65409
36525 * expr.c (store_field): Do not do a direct block copy if the source is
36526 a PARALLEL with BLKmode.
36528 2015-03-16 Tom de Vries <tom@codesourcery.com>
36530 PR middle-end/65414
36532 2015-03-12 Tom de Vries <tom@codesourcery.com>
36534 PR rtl-optimization/64895
36535 * lra-lives.c (check_pseudos_live_through_calls): Use
36536 actual_call_used_reg_set instead of call_used_reg_set, if available.
36538 2015-03-16 Alan Modra <amodra@gmail.com>
36541 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
36542 Modify Z->r bswapdi splitter to use dest in place of scratch.
36543 In r->Z and Z->r bswapdi splitter rename word_high, word_low
36544 to word1, word2 and rearrange logic to suit.
36545 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
36546 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
36547 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
36548 Add one '?' on r->r. Modify Z->r splitter to avoid need for
36551 2015-03-14 Jakub Jelinek <jakub@redhat.com>
36553 PR tree-optimization/65369
36554 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
36555 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
36556 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
36558 PR tree-optimization/65418
36559 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
36560 are casts in the first PLUS_EXPR operand, ensure tbias and
36561 *totallowp are in the inner type.
36563 PR rtl-optimization/65401
36564 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
36565 argument. If true, adjust_address_nv of x with big-endian
36566 correction for the mode widening to GET_MODE (y).
36567 (make_field_assignment): Don't do MEM mode widening here.
36568 Use MEM_P instead of GET_CODE == MEM.
36570 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
36572 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
36573 the external decls.
36575 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36578 * config/arm/arm.c (arm_gen_constant, AND case): Use
36579 ARM_SIGN_EXTEND when constructing AND mask.
36581 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
36583 * graph.c (print_graph_cfg): Make function names visible and append
36584 parenthesis to it. Also make groups of basic blocks belonging to the
36585 same function visible.
36587 2015-03-12 Richard Biener <rguenther@suse.de>
36589 PR middle-end/44563
36590 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
36591 to avoid quadratic behavior with inline expansion splitting blocks.
36592 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
36593 with the successor if the predecessor will be merged with it.
36594 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
36595 entry block with its successor.
36597 2015-03-13 Richard Biener <rguenther@suse.de>
36599 PR middle-end/44563
36600 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
36601 (cleanup_tree_cfg_1): Do not call it.
36602 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
36603 (fixup_noreturn_call): Mark the stmt as control altering.
36604 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
36606 (pass_data_fixup_cfg): Produce a dump file.
36607 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
36608 (need_noreturn_fixup): New global.
36609 (pass_dominator::execute): Fixup queued noreturn calls.
36610 (optimize_stmt): Queue calls that became noreturn for fixup.
36611 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
36612 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
36613 (el_to_fixup): New global.
36614 (eliminate_dom_walker::before_dom_childre): Queue calls that
36615 became noreturn for fixup.
36616 (eliminate): Fixup queued noreturn calls.
36617 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
36618 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
36619 (substitute_and_fold_dom_walker::before_dom_children): Queue
36620 alls that became noreturn for fixup.
36621 (substitute_and_fold): Fixup queued noreturn calls.
36623 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
36625 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
36626 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
36627 are building; for methods check ODR type of class they belong to if
36628 they may lead to a polymorphic call.
36629 (sem_function::compare_polymorphic_p): Be bit smarter about testing
36630 when function may lead to a polymorphic call.
36631 (sem_function::compare_type_list): Remove.
36632 (sem_variable::equals): Update use of compatible_types_p.
36633 (sem_variable::parse_tree_refs): Remove.
36634 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
36636 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
36638 (func_checker::compatible_polymorphic_types_p): Break out from ...
36639 (unc_checker::compatible_types_p): ... here.
36640 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
36642 (unc_checker::compatible_types_p): Update.
36643 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
36646 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36648 PR rtl-optimization/65235
36649 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
36650 When first element of vec_concat is const_int, calculate its size
36651 using second element.
36653 2015-03-12 Richard Biener <rguenther@suse.de>
36655 PR middle-end/65270
36656 * fold-const.c (operand_equal_p): Fix ordering of resetting
36657 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
36659 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
36661 * config/s390/s390.c (s390_reorg): Move code to output nops after label
36663 (s390_asm_output_function_label): Likewise.
36664 * config/s390/s390.c (s390_asm_output_function_label):
36665 Fix function label alignment with -mhtopatch.
36666 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
36667 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
36668 ("nop_2_byte"): New define_insn.
36669 ("nop_4_byte"): Likewise.
36670 ("nop_6_byte"): Likewise.
36671 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
36672 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
36674 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
36677 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
36680 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
36683 * toplev.c (process_options): Restrict Pointer Bounds Checker
36684 usage with Address Sanitizer.
36686 2015-03-12 Richard Biener <rguenther@suse.de>
36688 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
36690 * omp-low.c (expand_omp_taskreg): Split block before removing
36692 (expand_omp_target): Likewise.
36693 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
36694 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
36695 stmt to split_block.
36697 2015-03-12 Tom de Vries <tom@codesourcery.com>
36699 PR rtl-optimization/64895
36700 * lra-lives.c (check_pseudos_live_through_calls): Use
36701 actual_call_used_reg_set instead of call_used_reg_set, if available.
36703 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
36705 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
36706 (cgraph_node::remove): Likewise.
36707 (cgraph_node::get_untransformed_body): Likewise.
36708 * varpool.c (varpool_node::remove): Likewise.
36709 (varpool_node::get_constructor): Add sanity check.
36711 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
36713 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
36715 (-fabi-compat-version): Likewise.
36716 (-ffriend-injection): Likewise.
36717 (-Wdeclaration-after-statement): Likewise.
36718 (-fomit-frame-pointer): Likewise.
36719 (-ftree-coalesce-inlined-vars): Likewise.
36720 (-fvisibility=): Likewise.
36721 * doc/extend.texi (Typeof): Likewise.
36722 (Zero Length): Likewise.
36723 (Escaped Newlines): Likewise.
36724 (Compound Literals): Likewise.
36725 (Function Attributes): Likewise.
36726 (Label Attributes): Likewise.
36727 (Type Attributes): Likewise.
36728 (Function Names): Likewise.
36729 (Other Builtins): Likewise.
36730 (Function Specific Option Pragmas): Likewise.
36731 (C++ Interface): Likewise.
36733 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
36735 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
36737 2015-03-11 Marek Polacek <polacek@redhat.com>
36739 PR tree-optimization/65388
36740 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
36742 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
36745 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
36746 * configure: Regenerate.
36747 * config.in: Regenerate.
36748 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
36749 [-mn-flash]: Document it.
36750 [__AVR_ARCH__]: Document avrtiny.
36752 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
36753 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
36754 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
36756 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
36758 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
36760 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
36763 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
36764 allow reloads of PLUS in floating point/VSX registers.
36766 2015-03-11 Junmo Park <junmoz.park@samsung.com>
36768 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
36769 crypto_sha256_fast.
36770 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
36772 2015-03-11 Richard Biener <rguenther@suse.de>
36774 PR tree-optimization/65310
36775 * tree-sra.c (build_ref_for_offset): Also preserve larger
36778 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
36780 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
36782 2015-03-10 Jakub Jelinek <jakub@redhat.com>
36785 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
36787 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
36789 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
36791 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
36792 (sem_function::equals_wpa): ... here.
36794 2015-03-10 Marek Polacek <polacek@redhat.com>
36795 Jakub Jelinek <jakub@redhat.com>
36798 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
36799 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
36802 2015-03-10 Jakub Jelinek <jakub@redhat.com>
36805 * config/rs6000/t-linux: For powerpc64* target set
36806 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
36808 2015-03-10 Richard Biener <rguenther@suse.de>
36810 PR middle-end/44563
36811 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
36812 for redirect_all_calls.
36814 2015-03-10 Marek Polacek <polacek@redhat.com>
36816 * gdbinit.in (pcfun): Define and document.
36818 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
36820 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
36821 of libgomp-plugin.h.
36822 (find_target_compiler): Support a case when the path to gcc is
36823 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
36824 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
36825 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
36827 (main): Use GCC_INSTALL_NAME as target_driver_name.
36828 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
36830 (mkoffload.o): Remove obsolete include path and defines.
36831 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
36833 2015-03-10 Richard Biener <rguenther@suse.de>
36835 PR middle-end/63155
36836 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
36837 * tree-ssa-coalesce.c: Include timevar.h.
36838 (attempt_coalesce): Handle graph being NULL.
36839 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
36840 Split out abnormal coalescing to ...
36841 (perform_abnormal_coalescing): ... this function.
36842 (coalesce_ssa_name): Perform abnormal coalescing without computing
36844 (verify_ssa_coalescing_worker): New function.
36845 (verify_ssa_coalescing): Likewise.
36847 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
36850 * config.gcc (extra_options) [avr]: Remove.
36851 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
36852 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
36853 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
36855 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
36856 (-mmcu=): Add Var and MissingArgError properties.
36858 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
36859 * config/avr/t-multilib: Regenerate.
36860 * config/avr/specs.h: New file.
36861 * config/avr/driver-avr.c: New file.
36862 * config/avr/genopt.sh: Remove file.
36863 * config/avr/avr-tables.opt: Remove file.
36864 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
36865 * config/avr/avr-c.c: Same.
36866 * avr-arch.h: Same.
36867 (avr_current_device): Remove proto.
36868 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
36869 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
36870 (EXTRA_SPEC_FUNCTIONS): Define.
36871 (avr_devicespecs_file): New specs function proto.
36872 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
36873 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
36874 (avr_current_device): Remove definition and usage.
36875 (avr_set_core_architecture): New static function.
36876 (avr_option_override): Use it.
36877 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
36878 (mcu_name): New static array.
36879 (comparator, avr_archs_str, avr_mcus_str): New static functions.
36880 (avr_inform_devices, avr_inform_core_architectures): New functions.
36881 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
36882 (avrlibc.h) [WITH_AVRLIBC]: Include.
36883 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
36884 (print_mcu): Rewrite from scratch.
36885 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
36886 Forward to avr-specific specs defined in device-specs file.
36887 * config/avr/t-avr (driver-avr.o): New rule.
36888 (avr-devices.o): Depend on avr-arch.h.
36889 (avr-mcus): No more depend on avr-tables.opt.
36890 (avr-tables.opt): Remove rule.
36891 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
36893 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
36895 * c-family/c.opt (fchkp-use-wrappers): New.
36896 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
36897 (chkp_wrap_function): New.
36898 (chkp_build_instrumented_fndecl): Support wrapped
36900 * doc/invoke.texi (-fcheck-pointer-bounds): New.
36901 (-fchkp-check-incomplete-type): New.
36902 (-fchkp-first-field-has-own-bounds): New.
36903 (-fchkp-narrow-bounds): New.
36904 (-fchkp-narrow-to-innermost-array): New.
36905 (-fchkp-optimize): New.
36906 (-fchkp-use-fast-string-functions): New.
36907 (-fchkp-use-nochk-string-functions): New.
36908 (-fchkp-use-static-bounds): New.
36909 (-fchkp-use-static-const-bounds): New.
36910 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
36911 (-fchkp-check-read): New.
36912 (-fchkp-check-write): New.
36913 (-fchkp-store-bounds): New.
36914 (-fchkp-instrument-calls): New.
36915 (-fchkp-instrument-marked-only): New.
36916 (-fchkp-use-wrappers): New.
36917 (-static-libmpx): New.
36918 (-static-libmpxwrappers): New.
36920 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
36922 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
36923 (CHKP_SPEC): Add wrappers library.
36924 * c-family/c.opt (static-libmpxwrappers): New.
36926 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
36928 * config/i386/linux-common.h (LIBMPX_LIBS): New.
36929 (LIBMPX_SPEC): New.
36931 * gcc.c (CHKP_SPEC): New.
36932 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
36933 * c-family/c.opt (static-libmpx): New.
36935 2015-03-10 Richard Biener <rguenther@suse.de>
36937 PR middle-end/44563
36938 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
36940 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
36941 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
36942 (cgraph_add_edge_to_call_site_hash): Likewise.
36943 (cgraph_node::get_edge): Likewise.
36944 (cgraph_edge::set_call_stmt): Likewise.
36945 (cgraph_edge::remove_caller): Likewise.
36947 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
36949 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
36950 (callee_saved_gpr_regs_size): ... this.
36951 (callee_saved_regs_first_regno): Rename to ...
36952 (callee_saved_first_gpr_regno): ... this.
36953 (callee_saved_regs_last_regno) Rename to ...
36954 (callee_saved_last_gpr_regno): ... this.
36955 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
36957 (nds32_initial_elimination_offset): Likewise.
36958 (nds32_expand_prologue): Likewise.
36959 (nds32_expand_epilogue): Likewise.
36960 (nds32_expand_prologue_v3push): Likewise.
36961 (nds32_expand_epilogue_v3pop): Likewise.
36962 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
36963 Adjust renamed variables.
36964 (nds32_output_stack_pop): Likewise.
36966 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
36968 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
36971 2015-03-10 Jakub Jelinek <jakub@redhat.com>
36973 PR rtl-optimization/65321
36974 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
36976 * var-tracking.c (use_narrower_mode): Likewise.
36978 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
36980 PR tree-optimization/65355
36981 * varasm.c (notice_global_symbol): Do not produce RTL.
36982 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
36984 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
36985 check for section anchors.
36987 2015-03-10 Alan Modra <amodra@gmail.com>
36990 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
36991 to be single-arch by default. Set cpu_is_64bit for powerpc64
36992 given --with-cpu=native.
36993 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
36994 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
36996 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
36997 rs6000_isa_flags rather than TARGET_64BIT.
36999 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
37000 Kaz Kojima <kkojima@gcc.gnu.org>
37002 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
37004 2015-03-09 Jakub Jelinek <jakub@redhat.com>
37007 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
37008 on a TREE_BINFO, instead use BINFO_TYPE.
37010 2015-03-09 Richard Biener <rguenther@suse.de>
37012 PR middle-end/65270
37013 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
37014 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
37015 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
37016 of that. When comparing dereferences compare alignment.
37017 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
37019 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
37021 * ipa-inline-analysis.c (check_callers): Check
37022 node->can_remove_if_no_direct_calls_and_refs_p.
37023 (growth_likely_positive): Reorganize to call
37024 can_remove_if_no_direct_calls_p later.
37025 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
37026 will_be_removed_from_program_if_no_direct_calls_p): Add
37027 will_inline parameter.
37028 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
37029 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
37030 Handle inliner case correctly.
37032 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
37034 PR tree-optimization/63743
37035 * cfgexpand.c (reorder_operands): Also reorder if only second operand
37036 had its definition forwarded by TER.
37038 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
37041 * ipa-utils.h (types_odr_comparable): Add strict argument.
37042 * ipa-devirt.c: Fix whitespace;
37043 (odr_hasher): Remove.
37044 (odr_name_hasher, odr_vtable_hasher): New hashers.
37045 (can_be_name_hashed_p): New predicate.
37046 (hash_type_name): remove.
37047 (hash_odr_name): New.
37048 (odr_name_hasher::hash): new.
37049 (can_be_vtable_hashed_p): New.
37050 (hash_odr_vtable): New.
37051 (odr_vtable_hasher::hash): New.
37052 (types_same_for_odr): Add strict parameter.
37053 (types_odr_comparable): Likewise.
37054 (odr_name_hasher::equal): New.
37055 (odr_vtable_hasher::equal): New.
37056 (odr_name_hasher::remove): New.
37057 (odr_hash_type): Change to hash_table<odr_name_hasher>.
37058 (odr_vtable_hash_type): New.
37059 (odr_vtable_hash): New.
37060 (odr_subtypes_equivalent_p): Do strict comparsion.
37061 (add_type_duplicate): Merge type names; cleanup; avoid type
37063 (register_odr_type): Initialize vtable hash.
37064 (build_type_inheritance_graph): Likewise
37065 (get_odr_type): Reorg to use two hashes.
37066 (dump_possible_polymorphic_call_targets): Move sanity check after debug
37068 (ipa_devirt): Dump type_inheritance_graph.
37069 (types_same_for_odr): Add strict mode.
37071 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
37074 * cgraph.h (symtab_node): Add definition_alignment,
37075 can_increase_alignment_p and increase_alignment.
37076 * symtab.c (symtab_node::can_increase_alignment_p,
37077 increase_alignment_1, symtab_node::increase_alignment,
37078 symtab_node::definition_alignment): New.
37079 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
37080 can_increase_alignment_p.
37081 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
37082 * tree-vect-stmts.c (ensure_base_align): Likewise.
37083 * varasm.c (function_section_1): Use definition_alignment.
37084 (assemble_start_function): Likewise.
37085 (emit_local): likewise.
37086 (build_constant_desc): Likewsie.
37087 (output_constant_def_contents): Likewise.
37088 (place_block_symbol): Likewise.
37089 (output_object_block): Likewise.
37091 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
37094 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
37095 when outputting debug.
37097 2015-03-07 Marek Polacek <polacek@redhat.com>
37098 Martin Uecker <uecker@eecs.berkeley.edu>
37101 * doc/invoke.texi: Update description of -fsanitize=bounds.
37103 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
37105 * tree-ssa-phiopt.c (neg_replacement): Remove.
37106 (tree_ssa_phiopt_worker): Remove negate optimization.
37108 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
37111 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
37113 2015-03-06 Richard Biener <rguenther@suse.de>
37115 PR middle-end/64928
37116 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
37117 and liveout_obstack members.
37118 (calculate_live_on_exit): Remove.
37119 (calculate_live_ranges): Change declaration.
37120 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
37121 (new_tree_live_info): Adjust.
37122 (calculate_live_ranges): Delete livein when not wanted.
37123 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
37124 Deal with partly deleted live info.
37125 (loe_visit_block): Remove temporary bitmap by using
37126 bitmap_ior_and_compl_into.
37127 (live_worklist): Adjust accordingly.
37128 (calculate_live_on_exit): Make static.
37129 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
37130 we do not need livein.
37132 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
37134 * real.c (real_from_string): Fix typo in assertion.
37136 2015-03-06 Alex Velenko <alex.velenko@arm.com>
37138 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
37141 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
37143 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
37145 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
37148 * lra-assigns.c (find_hard_regno_for): Rename to
37149 find_hard_regno_for_1. Add a new parameter.
37150 (find_hard_regno_for): New function using find_hard_regno_for_1.
37152 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
37154 PR rtl-optimization/65067
37155 * expmed.c (store_bit_field, extract_bit_field): Reworked the
37156 strict volatile bitfield handling.
37158 2015-03-05 Martin Liska <mliska@suse.cz>
37161 * ipa-icf.c (sem_variable::equals): Compare variables types.
37163 2015-03-05 Richard Henderson <rth@redhat.com>
37166 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
37167 correctly check weak symbol binding.
37169 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
37171 PR middle-end/65315
37172 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
37175 2015-03-05 Martin Liska <mliska@suse.cz>
37177 * ipa-inline.c (inline_small_functions): Set default value to
37178 prevent warning during bootstrap.
37179 * tree.h: Add pragma guard that ignores false positives during
37182 2015-03-05 Richard Biener <rguenther@suse.de>
37184 PR tree-optimization/65310
37185 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
37186 Properly preserve alignment of the base of the access.
37188 2015-03-05 Richard Biener <rguenther@suse.de>
37191 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
37192 Compare dependence info.
37194 2015-03-05 Richard Biener <rguenther@suse.de>
37196 PR middle-end/65233
37197 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
37199 (walk_ssa_copies): Revert last chage. Instead do not walk
37200 SSA names registered for SSA update.
37202 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
37205 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
37206 vtable references for their containing type.
37207 (sem_function::equals_wpa): Compare TYPE_RESTRICT
37208 and type attributes.
37210 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
37212 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
37213 before negating it.
37214 * stor-layout.c (finalize_record_size): Revert latest change.
37216 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
37218 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
37220 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
37222 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
37223 for correct comdat handling.
37224 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
37226 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
37227 (used_from_object_file_p_worker): Remove.
37228 (cgraph_node::only_called_directly_or_alised): Add
37229 used_from_object_file_p.
37230 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
37231 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
37232 can_remove_if_no_direct_calls_and_refs_p.
37234 2015-03-04 Nick Clifton <nickc@redhat.com>
37236 * config/rl78/rl78.h (enum reg_class): Remove real registers from
37237 General register class.
37238 * config/rl78/rl78-real.md: Replace general register constraints
37239 with real+virtual register constraints.
37241 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
37243 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
37244 from checking for -mhtm option.
37246 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
37248 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
37249 (struct ipa_sra_check_caller_data): Add has_thunk field.
37250 (ipa_sra_check_caller): Check for thunk.
37251 (ipa_sra_preliminary_function_checks): Give up on function with
37253 (ipa_early_sra): Use call_for_symbol_and_aliases.
37255 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
37258 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
37259 called for __stack_chk_guard symbol.
37261 2015-03-03 DJ Delorie <dj@redhat.com>
37263 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
37265 (*addhi3_real): Likewise.
37266 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
37267 pattern to match incrementing memory.
37268 * config/rl78/predicates.md (rl78_1_2_operand): New.
37269 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
37270 it's the same and only mem.
37271 (rl78_alloc_physical_registers_op2): If there's effectively only
37272 one MEM, transcode it into HL.
37273 (rl78_far_p): Reject addresses that aren't legitimate.
37275 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
37277 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
37280 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
37282 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
37284 Implement call0 ABI for xtensa
37285 * config/xtensa/constraints.md ("a" constraint): Include stack
37286 pointer in case of call0 ABI.
37287 ("q" constraint): Make empty in case of call0 ABI.
37288 ("D" constraint): Include stack pointer in case of call0 ABI.
37289 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
37290 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
37292 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
37294 (xtensa_regno_to_class): Make it a local variable in the
37295 function xtensa_regno_to_class.
37296 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
37297 macro, function prototype and implementation.
37298 (reg_nonleaf_alloc_order): Make it a local variable in the
37299 function order_regs_for_local_alloc.
37300 (xtensa_conditional_register_usage): New function.
37301 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
37302 (xtensa_valid_move): Allow direct moves to stack pointer
37303 register in call0 ABI.
37304 (xtensa_setup_frame_addresses): Only spill register windows in
37306 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
37307 call0 ABI respectively.
37308 (xtensa_function_arg_1): Only mark a7 register for copying in
37310 (xtensa_call_save_reg): New function.
37311 (compute_frame_size): Add space for callee saved register
37312 storage to the frame size in call0 ABI.
37313 (xtensa_expand_prologue): Generate code to set up stack frame
37314 and save callee-saved registers in call0 ABI.
37315 (xtensa_expand_epilogue): New function.
37316 (xtensa_set_return_address): New function.
37317 (xtensa_return_addr): Calculate return address in call0 ABI.
37318 (xtensa_builtin_saveregs): Only mark a7 register for copying and
37319 emit copying code in windowed ABI.
37320 (order_regs_for_local_alloc): Add preferred register allocation
37321 order for non-leaf function in call0 ABI.
37322 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
37323 (xtensa_asm_trampoline_template): Add trampoline generation for
37325 (xtensa_trampoline_init): Add trampoline initialization for
37327 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
37329 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
37330 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
37331 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
37332 ABI call-used registers.
37333 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
37334 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
37336 (REG_CLASS_CONTENTS): Include all registers into the preferred
37337 reload registers set, adjust the set in the
37338 xtensa_conditional_register_usage.
37339 (xtensa_regno_to_class): Drop variable declaration.
37340 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
37342 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
37344 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
37345 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
37346 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
37347 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
37348 location in call0 ABI.
37349 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
37350 stack adjustment size when handling exception.
37351 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
37352 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
37354 ("return" pattern): Generate ret.n/ret in call0 ABI.
37355 ("epilogue" pattern): Expand epilogue.
37356 ("nonlocal_goto" pattern): Use default in call0 ABI.
37357 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
37358 emit eh_set_a0_* depending on ABI.
37359 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
37360 ("eh_set_a0_call0", "blockage"): New patterns.
37362 2015-03-03 Martin Liska <mliska@suse.cz>
37365 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
37367 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
37370 * config/rs6000/rs6000-tables.opt: Regenerate table.
37372 2015-03-03 Renlin Li <renlin.li@arm.com>
37374 * doc/md.texi (@item ^): Change ? into ^.
37376 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
37378 * doc/tm.texi: Regenerated.
37380 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
37382 * builtins.c (expand_builtin_return_addr): Add
37383 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
37384 surrounding #ifdef.
37385 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
37387 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
37389 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
37391 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
37394 2015-03-03 Martin Jambor <mjambor@suse.cz>
37395 Eric Botcazou <ebotcazou@adacore.com>
37397 * tree-sra.c (ipa_sra_check_caller_data): New type.
37398 (has_caller_p): Removed.
37399 (ipa_sra_check_caller): New function.
37400 (ipa_sra_preliminary_function_checks): Use it.
37402 2015-03-03 Martin Liska <mliska@suse.cz>
37404 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
37405 instead of if branch.
37407 2015-03-03 Martin Liska <mliska@suse.cz>
37410 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
37412 2015-03-23 Jeff Law <law@redhat.com>
37414 PR tree-optimization/65241
37415 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
37416 hash table if INSERT is true.
37418 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
37421 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
37423 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
37426 * config/avr/avr.c (context.h, tree-pass.h): Include them.
37427 (avr_pass_data_recompute_notes): New static variable.
37428 (avr_pass_recompute_notes): New class.
37429 (avr_register_passes): New static function.
37430 (avr_option_override): Call it.
37432 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
37434 Fix various problems with specs file generation.
37437 * config.gcc (extra_gcc_objs) [avr]: Remove.
37438 * config/avr/driver-avr.c: Remove file.
37439 * config/avr/t-avr (driver-avr.o): Remove rule.
37440 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
37441 INCLUDES to build. Depend on TM_H.
37442 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
37443 build warnings. Fix non-matching types and non-existing %-codes.
37445 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
37446 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
37447 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
37448 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
37449 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
37450 (LIBGCC_SPEC): Remove definitions.
37452 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
37454 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
37455 to create a register in testing mode.
37457 2015-03-03 Martin Liska <mliska@suse.cz>
37458 Jan Hubicka <hubicka@ucw.cz>
37461 * cgraph.c (cgraph_node::has_thunk_p): New function.
37462 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
37463 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
37464 (sem_function::merge): Assert is changed.
37466 2015-03-03 Martin Liska <mliska@suse.cz>
37467 Martin Jambor <mjambor@suse.cz>
37470 * ipa-icf.c (sem_item_optimizer::execute): Change function
37471 return value to boolean.
37472 (sem_item_optimizer::merge_classes): Likewise.
37473 (ipa_icf_driver): Return TODO_remove_functions in case there's
37474 a merge operation processed.
37475 * ipa-icf.h: Change function return value to boolean.
37477 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
37480 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
37481 processor type for 64-bit little endian PowerPC.
37483 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
37484 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
37485 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
37486 printing built-in mask so it does not pass NULL pointers.
37488 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
37491 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
37494 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
37495 !ISA_HAS_FP_CONDMOVE.
37497 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
37499 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
37502 2015-03-02 Ulrich Drepper <drepper@gmail.com>
37504 * doc/invoke.texi (Options for Code Generation Conventions):
37505 Fix URL of DSO paper.
37507 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
37510 * ipa-inline.c (check_callers): Looks for recursion.
37511 (inline_to_all_callers): Give up on uninlinable or recursive edges.
37512 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
37513 summary of inline clones.
37514 (do_estimate_growth_1): Fix recursion check.
37516 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
37519 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
37522 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
37523 Aldy Hernandez <aldyh@redhat.com>
37526 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
37527 when checking TYPE_BINFO.
37529 2015-03-02 Richard Biener <rguenther@suse.de>
37532 * ipa-icf-gimple.c: Include builtins.h.
37533 (func_checker::compare_memory_operand): Compare base alignment.
37535 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
37538 * config/i386/i386.c (ix86_pass_by_reference): Bounds are never
37539 passed by reference.
37541 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
37544 * tree-chkp.c (chkp_check_lower): Don't check against
37545 zero bounds for already instrumented functions.
37546 (chkp_check_upper): Likewise.
37547 (chkp_fini): Clean pass local data to avoid wrong reusage.
37549 2015-02-28 Martin Liska <mliska@suse.cz>
37550 Jan Hubicka <hubicka@ucw.cz>
37552 * ipa-icf.c (sem_variable::equals): Improve debug output;
37553 get variable constructor.
37554 (sem_variable::parse): Do not filter out too early; give up on
37555 volatile and register vars.
37556 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
37558 * ipa-icf.h (sem_variable::init): Do not set ctor.
37559 (sem_variable::ctor): Remove.
37561 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
37563 PR middle-end/65233
37564 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
37566 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
37568 * ipa-icf.c: Include stor-layout.h
37569 (sem_function::compare_cgraph_references): Rename to ...
37570 (sem_item::compare_cgraph_references): ... this one.
37571 (sem_variable::equals_wpa): New function
37572 (sem_variable::equals): Do not check stuff already verified by
37574 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
37575 * ipa-icf.h (sem_item): Add compare_cgraph_references.
37576 (sem_function): Remove compare_cgraph_references.
37577 (sem_variable): Turns equals_wpa into non-inline.
37579 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
37581 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
37582 (sem_item::add_expr): New function.
37583 (sem_function::hash_stmt): Handle operands of most statements.
37584 (sem_variable::get_hash): Hash the actual constructor.
37585 * ipa-icf.h (sem_item): Add add_expr.
37586 (sem_function): Update prototype of hash_stmt
37588 2015-02-28 Martin Liska <mliska@suse.cz>
37589 Jan Hubicka <hubicka@ucw.cz>
37592 * ipa-icf-gimple.c (func_checker::compare_function_decl):
37594 (func_checker::compare_variable_decl): Skip symtab vars.
37595 (func_checker::compare_cst_or_decl): Update.
37596 * ipa-icf.c (sem_function::parse): Do not consider aliases.
37597 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
37598 use correct symtab predicates.
37599 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
37600 (sem_variable::parse): Update comment.
37601 (sem_item_optimizer::build_graph): Consider ultimate aliases
37604 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
37606 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
37609 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
37611 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
37612 (sem_variable::merge) Likewise.
37614 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
37616 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
37617 target; also match flag_ipa_devirt.
37619 2015-03-01 Martin Liska <mliska@suse.cz>
37620 Jan Hubicka <hubicka@ucw.cz>
37622 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
37623 Validate variable alignment.
37624 * ipa-icf.c (sem_function::equals_private): Be more precise
37625 about non-common function attributes.
37626 (sem_variable::equals): Likewise.
37628 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
37631 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
37632 across COMDAT group boundary.
37634 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
37637 * ipa-icf.c (clear_decl_rtl): New function.
37638 (sem_function::merge): Clear RTL before forming alias.
37639 (sem_variable::merge): Clear RTL before forming alias.
37641 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
37644 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
37646 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
37648 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
37651 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
37653 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
37654 a typo in the description.
37656 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
37659 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
37660 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
37661 * lra-constraints.c: Include "params.h".
37662 (EBB_PROBABILITY_CUTOFF): Use
37663 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
37664 (lra_inheritance): Use '<' instead of '<=' for
37665 EBB_PROBABILITY_CUTOFF.
37666 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
37669 2015-02-27 Martin Liska <mliska@suse.cz>
37671 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
37672 vector length condition.
37674 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
37676 * doc/extend.texi (x86 transactional memory intrinsics):
37677 Reorganize discussion of _xbegin. Clarify that the return
37678 value is a bit mask. Expand example and move to end of section.
37680 2015-02-26 Jakub Jelinek <jakub@redhat.com>
37681 Aldy Hernandez <aldyh@redhat.com>
37683 PR rtl-optimization/65220
37684 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
37686 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
37689 * lra-remat.c (update_scratch_ops): New.
37690 (do_remat): Call it.
37691 * lra.c (lra_register_new_scratch_op): New. Take code from ...
37692 (remove_scratches): ... here.
37693 * lra-int.h (lra_register_new_scratch_op): New prototype.
37695 2015-02-27 Marek Polacek <polacek@redhat.com>
37698 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
37699 -Wformat-signedness anymore.
37701 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
37703 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
37705 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
37707 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
37709 * config/s390/s390.c (enum s390_builtin):
37710 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
37711 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
37712 (s390_init_builtins): Generate new builtin functions.
37713 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
37714 (s390_sfpc, s390_efpc): New pattern definitions.
37716 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
37718 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
37719 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
37720 (s390_builtin_decls): New array.
37721 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
37722 (s390_builtin_decl): New function.
37723 (TARGET_BUILTIN_DECL): Define macro.
37725 2015-02-27 Richard Biener <rguenther@suse.de>
37727 PR middle-end/63175
37728 * builtins.c (get_object_alignment_2): Make sure to re-apply
37729 the ANDed mask after recursing to its operand gets us a new
37730 misalignment bit position.
37732 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
37733 Martin Liska <mliska@suse.cz>
37736 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
37737 Use address_matters_p.
37738 (redirect_all_callers, set_addressable): New functions.
37739 (sem_function::merge): Reorganize and fix merging issues.
37740 (sem_variable::merge): Likewise.
37741 (sem_variable::compare_sections): Remove.
37742 * common.opt (fmerge-all-constants, fmerge-constants): Remove
37744 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
37746 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
37748 (address_matters_1): New function.
37749 (symtab_node::address_matters_p): New function.
37750 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
37751 check for merged flag.
37752 * cgraph.h (address_matters_p): Declare.
37753 (symtab_node::address_taken_from_non_vtable_p): Remove.
37754 (symtab_node::address_can_be_compared_p): New method.
37755 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
37756 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
37758 (comdat_can_be_unshared_p_1) Use address_matters_p.
37759 (update_vtable_references): Fix formating.
37760 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
37761 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
37762 * cgraphclones.c: Preserve merged and icf_merged flags.
37764 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
37766 * doc/extend.texi (Function Attributes): Fix spelling and typos.
37767 (Label Attributes): Likewise.
37768 (Cilk Plus Builtins): Likewise.
37769 (ARC SIMD Built-in Functions): Likewise.
37770 (ARM C Language Extensions (ACLE)): Likewise.
37771 (PowerPC Built-in Functions): Likewise.
37772 (PowerPC Hardware Transactional Memory Built-in Functions):
37775 2015-02-26 Jakub Jelinek <jakub@redhat.com>
37777 PR tree-optimization/65216
37778 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
37779 new stmt and new SSA_NAME for lhs whenever the arguments have
37780 changed and weren't just swapped. Fix comment typo.
37782 PR tree-optimization/65215
37783 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
37784 for PDP endian targets.
37785 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
37786 Fix up formatting issues.
37787 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
37788 size is smaller than the original, adjust MEM_REF offset by the
37789 difference of sizes. Use is_gimple_mem_ref_addr instead of
37790 is_gimple_min_invariant test to avoid adding address temporaries.
37792 2015-02-26 Martin Liska <mliska@suse.cz>
37793 Jan Hubicka <hubicka@ucw.cz>
37796 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
37797 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
37798 (sem_item_optimizer::process_cong_reduction): Include division by
37799 sensitive references.
37800 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
37801 * ipa-ref.c (ipa_ref::address_matters_p): New function.
37802 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
37804 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
37807 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
37809 * config/avr/avr.c: Same.
37810 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
37811 Refuse any constant address not in 0..0xbf.
37812 * config/avr/avr.md (*mov<mode>, *movsf): Remove
37813 tiny_valid_direct_memory_access_range from insn conditions.
37814 (mov<mode>): Don't special-case expansion of avrtiny addresses.
37816 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
37819 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
37820 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
37821 * config/sh/predicates.md (const_logical_operand): New predicate.
37822 * config/sh/sh.md: Add new peephole2 patterns.
37824 2015-02-26 Marek Polacek <polacek@redhat.com>
37827 * ipa-inline.c (early_inliner): Recompute inline parameters.
37829 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
37832 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
37833 instructions with TImode operands are included in the analysis.
37835 2015-02-26 Sebastian Pop <s.pop@samsung.com>
37837 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
37838 of an EDGE_FSM_THREAD.
37840 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
37842 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
37844 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
37847 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
37849 2015-02-26 Sebastian Pop <s.pop@samsung.com>
37851 PR tree-optimization/65048
37852 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
37853 (thread_through_all_blocks): Call valid_jump_thread_path.
37854 Remove invalid FSM jump-thread paths.
37856 2015-02-26 Jakub Jelinek <jakub@redhat.com>
37858 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
37859 (ipa_write_optimization_summaries): Likewise.
37860 * tree-streamer.h: Include data-streamer.h.
37861 (streamer_mode_table): Declare extern variable.
37862 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
37863 * lto-streamer-out.c (lto_output_init_mode_table,
37864 lto_write_mode_table): New functions.
37865 (produce_asm_for_decls): Call lto_write_mode_table when streaming
37867 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
37868 (lto_create_simple_input_block): Add mode_table argument to the
37869 lto_input_block constructors.
37870 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
37872 * data-streamer-in.c (string_for_index): Likewise.
37873 * ipa-inline-analysis.c (inline_read_section): Likewise.
37874 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
37875 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
37876 * lto-streamer-in.c (lto_read_body_or_constructor,
37877 lto_input_toplevel_asms): Likewise.
37878 (lto_input_mode_table): New function.
37879 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
37880 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
37881 Use bp_pack_machine_mode.
37882 * real.h (struct real_format): Add name field.
37883 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
37884 (class lto_input_block): Add mode_table member.
37885 (lto_input_block::lto_input_block): Add mode_table_ argument,
37886 initialize mode_table.
37887 (struct lto_file_decl_data): Add mode_table field.
37888 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
37889 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
37890 unpack_ts_decl_common_value_fields,
37891 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
37892 * tree-streamer.c (streamer_mode_table): New variable.
37893 * real.c (ieee_single_format, mips_single_format,
37894 motorola_single_format, spu_single_format, ieee_double_format,
37895 mips_double_format, motorola_double_format,
37896 ieee_extended_motorola_format, ieee_extended_intel_96_format,
37897 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
37898 ibm_extended_format, mips_extended_format, ieee_quad_format,
37899 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
37900 decimal_single_format, decimal_double_format, decimal_quad_format,
37901 ieee_half_format, arm_half_format, real_internal_format): Add name
37903 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
37905 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
37908 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
37909 reordering for selective scheduling.
37911 2015-02-26 Terry Guo <terry.guo@arm.com>
37913 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
37914 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
37915 (arm_arch_no_volatile_ce): Declare new global variable.
37916 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
37917 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
37918 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
37919 (TARGET_NO_VOLATILE_CE): New macro.
37920 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
37921 volatile memory access in IT block
37923 2015-02-25 Kai Tietz <ktietz@redhat.com>
37925 PR tree-optimization/61917
37926 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
37927 that reduc_def_stmt is null.
37929 2015-02-25 Martin Liska <mliska@suse.cz>
37931 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
37932 hard register variables.
37934 2015-02-25 Kai Tietz <ktietz@redhat.com>
37937 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
37938 (symtab::noninterposable_alias): Likewise.
37940 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
37943 * config/i386/i386.c (ix86_function_arg_regno_p): Support
37945 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
37947 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
37950 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
37951 as split condition; force split via '#' in output pattern.
37953 2015-02-25 Richard Biener <rguenther@suse.de>
37954 Kai Tietz <ktietz@redhat.com>
37956 PR tree-optimization/61917
37957 * tree-vect-loop.c (vectorizable_reduction): Allow
37958 vect_internal_def without reduction to exit graceful.
37960 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
37963 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
37964 only with NONDEBUG_INSN_P.
37966 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
37968 Use variadic macros with avr-log.c.
37970 * config/avr/avr-protos.h (avr_vdump): New prototype.
37971 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
37972 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
37973 * config/avr/avr-log.c: Adjust comments.
37974 (avr_vdump): New function.
37975 (avr_vadump): Pass caller as 2nd argument instead of format string.
37976 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
37977 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
37979 2015-02-25 Jakub Jelinek <jakub@redhat.com>
37982 * target.def (target_option_stream_in): New target hook.
37983 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
37984 targetm.target_option.post_stream_in if non-NULL.
37985 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
37986 * doc/tm.texi: Updated.
37987 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
37989 (TARGET_OPTION_POST_STREAM_IN): Redefine.
37991 2015-02-24 Jeff Law <law@redhat.com>
37994 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
37995 of operand 0 and operand 2.
37996 (zero_cost_loop_end, loop_end): Similarly.
37998 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
38000 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
38003 2015-02-24 DJ Delorie <dj@redhat.com>
38005 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
38006 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
38007 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
38008 instead of hardcoding SImode.
38010 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
38012 * omp-low.c (create_omp_child_function): Tag entrypoint
38013 functions with a special attribute.
38015 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
38018 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
38020 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
38022 PR rtl-optimization/65123
38023 * lra-remat.c (operand_to_remat): Check hard regs in insn
38026 2015-02-24 Nick Clifton <nickc@redhat.com>
38028 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
38031 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
38034 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
38035 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
38036 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
38037 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
38038 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
38039 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
38040 (BUILT_IN_GOACC_PARALLEL): Specify as
38041 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
38042 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
38043 * builtin-types.def
38044 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
38045 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
38046 Remove function types.
38047 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
38048 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
38049 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
38050 New function types.
38052 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
38054 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
38056 2015-02-24 Jakub Jelinek <jakub@redhat.com>
38058 PR tree-optimization/65170
38059 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
38060 if val[1] < 0, clear also val[2] and return 3.
38062 2015-02-24 Alan Modra <amodra@gmail.com>
38065 * config/rs6000/rs6000.c (get_memref_parts): Only return true
38066 when *base is a reg. Handle nested plus addresses. Simplify
38069 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
38071 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
38072 use natural alignment when optimizing for size.
38074 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
38077 * config/sh/sh.md (movsicc_true+3): Remove peephole.
38078 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
38079 * config/sh/sh.c (replace_n_hard_rtx): Remove.
38081 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
38084 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
38085 too big for a wide_int. Implement missing wrapping operation.
38087 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
38090 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
38091 instead of const_int 4294901760.
38093 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
38095 * config/avr/t-avr: Fix typo in comment.
38097 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
38099 * doc/rtl.texi (fma): Clarify documentation.
38101 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
38104 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
38105 over input_location.
38107 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
38109 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
38110 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
38111 restrict alignments to absolute_biggest_alignment.
38112 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
38114 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
38115 * doc/tm.texi: Regenerate.
38116 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
38118 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
38121 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
38123 2015-02-20 Richard Biener <rguenther@suse.de>
38125 PR tree-optimization/65136
38126 * tree-ssa-propagate.c: Include cfgloop.h.
38127 (replace_phi_args_in): Avoid replacing loop latch edge PHI
38128 arguments with constants.
38130 2015-02-20 Jakub Jelinek <jakub@redhat.com>
38131 Martin Liska <mliska@suse.cz>
38134 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
38135 don't try to create_thunk if stdarg_p. If
38136 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
38137 redirect_callers if possible.
38138 (sem_item_optimizer::execute): Call unregister_hooks here...
38139 (ipa_icf_driver): ... instead of here.
38141 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38143 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
38144 Mark operand 0 as earlyclobber in 2nd alternative.
38145 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
38146 Write negated shift amount into QI lowpart operand 0 and use it
38148 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
38150 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
38152 * cgraph.h (clone_function_name_1): Declare.
38153 * cgraphclones.c (clone_function_name_1): New function.
38154 (clone_function_name): Use it.
38155 * lto-partition.c: Include "stringpool.h".
38156 (must_not_rename, maybe_rewrite_identifier)
38157 (validize_symbol_for_target): New static functions.
38158 (privatize_symbol_name): Use must_not_rename.
38159 (promote_symbol): Call validize_symbol_for_target.
38160 (lto_promote_cross_file_statics): Likewise.
38161 (lto_promote_statics_nonwpa): Likewise.
38163 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
38166 * config/avr/avr.md (pushhi_insn): New insn.
38167 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
38169 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
38170 Jakub Jelinek <jakub@redhat.com>
38172 * tree-streamer.c (preload_common_nodes): Don't preload
38173 TI_VA_LIST* for offloading.
38174 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
38177 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
38179 * config/pa/pa.c (pa_emit_move_sequence): Always force
38180 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
38183 * config/pa/pa.c (pa_reloc_rw_mask): New function.
38184 (TARGET_ASM_RELOC_RW_MASK): Define.
38185 (pa_cannot_force_const_mem): Revert previous change.
38187 2015-02-19 Martin Jambor <mjmabor@suse.cz>
38188 Jan Hubicka <hubicka@ucw.cz>
38191 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
38192 across jump functions.
38194 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
38196 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
38198 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
38200 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
38202 2015-02-19 Richard Henderson <rth@redhat.com>
38204 PR middle-end/65074
38205 * varasm.c (default_binds_local_p_2): Don't test node->definition;
38206 test DECL_EXTERNAL independent of symtab_node.
38208 2015-02-19 Jakub Jelinek <jakub@redhat.com>
38211 * varpool.c (varpool_node::get_constructor): Return early
38212 if this->lto_file_data is NULL.
38214 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
38216 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
38217 (rank_for_schedule_debug): Update.
38218 (ready_sort): Make static. Move sorting logic to ...
38219 (ready_sort_debug, ready_sort_real): New static functions.
38220 (schedule_block): Sort both debug insns and real insns in preparation
38221 for ready list trimming. Improve debug output.
38222 * sched-int.h (ready_sort): Remove global declaration.
38224 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
38226 * ipa-icf.c (sem_function::equals_private): Adjust.
38227 (sem_function::bb_dict_test): Take a vec<int> * instead of
38229 * ipa-icf.h (bb_dict_test): Likewise.
38231 2015-02-18 Jakub Jelinek <jakub@redhat.com>
38233 PR gcov-profile/64634
38234 * tree-eh.c (frob_into_branch_around): Fix up typos
38235 in function comment.
38236 (lower_catch): Put eh_seq resulting from EH lowering of
38237 the cleanup sequence after the cleanup rather than before it.
38239 2015-02-18 Tom de Vries <tom@codesourcery.com>
38241 * common.opt (fstdarg-opt): New option.
38242 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
38243 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
38244 (@item -fstdarg-opt): New item.
38246 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
38249 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
38250 for common symbols.
38252 2015-02-18 Jakub Jelinek <jakub@redhat.com>
38254 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
38256 (ALL_HOST_OBJS): Add mkoffload.o.
38257 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
38259 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
38261 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
38262 (compare_virtual_tables): Be smarter about skipping typeinfos;
38263 do sane output on virtual table table mismatch.
38264 (warn_odr): Be ready for forward declarations of enums;
38265 output sane info on base mismatch and virtual table mismatch.
38266 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
38267 when only one type is polymorphic.
38268 (get_odr_type): Fix hashtable corruption.
38269 (dump_odr_type): Dump mangled names.
38271 2015-02-18 Richard Biener <rguenther@suse.de>
38273 PR tree-optimization/65063
38274 * tree-predcom.c (determine_unroll_factor): Return 1 if we
38275 have replaced looparound PHIs.
38277 2015-02-18 Martin Liska <mliska@suse.cz>
38279 * lto-streamer.c (lto_streamer_init): Encapsulate
38280 streamer_check_handled_ts_structures with checking macro.
38282 2015-02-18 Jakub Jelinek <jakub@redhat.com>
38285 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
38286 section if !implicit_section.
38287 (cgraph_node::create_version_clone_with_body): Likewise.
38288 * trans-mem.c (ipa_tm_create_version): Likewise.
38290 2015-02-18 Richard Biener <rguenther@suse.de>
38292 PR tree-optimization/62217
38293 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
38296 2015-02-18 Marek Polacek <polacek@redhat.com>
38299 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
38300 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
38301 is in range [-16K, -1]. Don't issue run-time error if
38302 (ptr > ptr + offset).
38304 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
38306 * doc/install.texi (nvptx-*-none): New section.
38307 * doc/invoke.texi (Nvidia PTX Options): Likewise.
38308 * config/nvptx/nvptx.opt: Update.
38310 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
38311 (access_check): New functions, copied from
38312 config/i386/intelmic-mkoffload.c.
38313 (main): For non-installed testing, look in all COMPILER_PATHs for
38316 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
38318 2015-02-18 Andrew Pinski <apinski@cavium.com>
38319 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
38321 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
38322 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
38324 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
38326 * ipa-visibility.c (function_and_variable_visibility): Only
38327 check locality if node is not already local.
38328 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
38329 call_for_symbol_and_aliases instead of
38330 call_for_symbol_thunks_and_aliases.
38331 (ipa_inline): Likewise.
38332 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
38333 first walk aliases.
38334 * ipa.c (symbol_table::remove_unreachable_nodes): Use
38335 call_for_symbol_and_aliases.
38336 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
38337 (ipa_propagate_frequency_1): Use it; use opt_for_fn
38338 (ipa_propagate_frequency): Update.
38339 (ipa_profile): Add opt_for_fn gueards.
38341 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
38343 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
38344 * doc/invoke.texi (SH options): Document it.
38345 * config/sh/sh.c (sh_insn_length_adjustment): Check
38346 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
38348 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
38350 * common.opt (fipa-cp-alignment): New.
38351 * ipa-cp.c (ipcp_store_alignment_results): Check
38352 flag_ipa_cp_alignment.
38353 * opts.c (default_options_table): Enable -fipa-cp-alignment for
38355 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
38356 * doc/invoke.texi: Document -fipa-cp-alignment.
38358 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
38361 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
38362 to nil. Adjust comments.
38364 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
38366 * ipa-visibility.c (function_and_variable_visibility): Only
38367 check locality if node is not already local.
38368 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
38369 call_for_symbol_and_aliases instead of
38370 call_for_symbol_thunks_and_aliases.
38371 (ipa_inline): Likewise.
38372 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
38373 first walk aliases.
38374 * ipa.c (symbol_table::remove_unreachable_nodes): Use
38375 call_for_symbol_and_aliases.
38376 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
38377 (ipa_propagate_frequency_1): Use it; use opt_for_fn
38378 (ipa_propagate_frequency): Update.
38379 (ipa_profile): Add opt_for_fn guards.
38381 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
38383 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
38384 skipping of "strange" tokens.
38386 2015-02-17 Jeff Law <law@redhat.com>
38388 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
38391 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
38393 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
38394 as forcing a HARD_DEP between instructions, thereby
38395 disallowing rewriting to break dependencies.
38397 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
38399 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
38400 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
38401 variables in boundary that have no inlitalizer encoded and are
38403 * varasm.c (default_binds_local_p_2): External definitions do not
38404 count as definitions here.
38406 2015-02-16 Jeff Law <law@redhat.com>
38408 PR tree-optimization/64823
38409 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
38411 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
38412 threading through blocks with PHIs, but no statements.
38413 (thread_through_normal_block): Distinguish between blocks where
38414 we did not process all the statements and blocks with no statements.
38416 2015-02-16 Jakub Jelinek <jakub@redhat.com>
38417 James Greenhalgh <james.greenhalgh@arm.com>
38420 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
38421 section if not linkonce. Fix up formatting.
38422 (cgraph_node::create_version_clone_with_body): Copy section.
38423 * trans-mem.c (ipa_tm_create_version): Likewise.
38425 2015-02-16 Richard Biener <rguenther@suse.de>
38427 PR tree-optimization/65077
38428 * tree-ssa-structalias.c (get_constraint_for_1): Handle
38429 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
38430 (find_func_aliases): Allow float values to carry pointers again.
38432 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
38434 * doc/install.texi (Specific): Reorder targets list to put
38435 aarch64 in alphabetical order. Add a link to aarch64*-*-*
38438 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
38439 David Edelsohn <dje.gcc@gmail.com>
38442 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
38443 mapping class to external variable or function reference.
38444 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
38447 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
38450 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
38451 ASM_WEAKEN_DECL if defined.
38453 2015-02-16 Richard Biener <rguenther@suse.de>
38456 * varasm.c (default_file_start): For LTO produced units
38457 emit <artificial> as file directive.
38459 2015-02-16 Richard Biener <rguenther@suse.de>
38461 PR tree-optimization/63593
38462 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
38463 stmts and releasing SSA names until...
38464 (execute_pred_commoning): ... after processing all chains.
38466 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
38469 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
38470 external functions.
38472 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
38474 * doc/bugreport.texi: Adjust section titles throughout the file
38475 to use "Title Case".
38476 * doc/extend.texi: Likewise.
38477 * doc/gcov.texi: Likewise.
38478 * doc/implement-c.texi: Likewise.
38479 * doc/implement-cxx.texi: Likewise.
38480 * doc/invoke.texi: Likewise.
38481 * doc/objc.texi: Likewise.
38482 * doc/standards.texi: Likewise.
38483 * doc/trouble.texi: Likewise.
38485 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
38487 * cgraph.h (symtab_node::has_aliases_p): Simplify.
38488 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
38489 * tree.c (lookup_binfo_at_offset): Make static.
38490 (get_binfo_at_offset): Do not shadow offset; add explanatory
38493 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
38495 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
38496 for all floading point loads and stores except those using a register
38498 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
38501 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
38503 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
38504 (do_estimate_growth_1): Record if any uninlinable edge was seen.
38505 (estimate_growth): Handle uninlinable edges correctly.
38506 (check_callers): New.
38507 (growth_likely_positive): Handle aliases correctly.
38509 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
38511 * ipa-chkp.c: Use iterate_direct_aliases.
38512 * symtab.c (resolution_used_from_other_file_p): Move inline.
38513 (symtab_node::create_reference): Fix formating.
38514 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
38515 (symtab_node::iterate_reference): Move inline.
38516 (symtab_node::iterate_referring): Move inline.
38517 (symtab_node::iterate_direct_aliases): Move inline.
38518 (symtab_node::used_from_object_file_p_worker): Inline into ...
38519 (symtab_node::used_from_object_file_p): ... this one; move inline.
38520 (symtab_node::call_for_symbol_and_aliases): Move inline;
38521 use iterate_direct_aliases.
38522 (symtab_node::call_for_symbol_and_aliases_1): New method.
38523 (cgraph_node::call_for_symbol_and_aliases): Move inline;
38524 use iterate_direct_aliases.
38525 (cgraph_node::call_for_symbol_and_aliases_1): New method.
38526 (varpool_node::call_for_node_and_aliases): Rename to ...
38527 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
38528 use iterate_direct_aliases.
38529 (varpool_node::call_for_symbol_and_aliases_1): New method.
38530 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
38531 (ipa_discover_readonly_nonaddressable_var): Update.
38532 * ipa-devirt.c: Fix formating.
38533 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
38535 (cgraph_node::call_for_symbol_and_aliases): Move inline.
38536 (cgraph_node::call_for_symbol_and_aliases_1): New function..
38537 * cgraph.h (used_from_object_file_p_worker): Remove.
38538 (resolution_used_from_other_file_p): Move inline.
38539 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
38540 (symtab_node::iterate_reference): Move inline.
38541 (symtab_node::iterate_referring): Move inline.
38542 (symtab_node::iterate_direct_aliases): Move inline.
38543 (symtab_node::used_from_object_file_p_worker): Inline into ...
38544 (symtab_node::used_from_object_file_p): Move inline.
38545 * tree-emutls.c (ipa_lower_emutls): Update.
38546 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
38547 (varpool_node::call_for_node_and_aliases): Remove.
38549 2015-02-14 Jakub Jelinek <jakub@redhat.com>
38551 PR tree-optimization/62209
38552 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
38553 op == range->exp, insert seq and gimplified code after labels
38554 instead of after the phi.
38556 2015-02-13 Jeff Law <law@redhat.com>
38559 Revert my change for tree-optimization/64823.
38561 2015-02-13 Jakub Jelinek <jakub@redhat.com>
38563 PR tree-optimization/65053
38564 * tree-ssa-phiopt.c (value_replacement): When moving assign before
38565 cond, either reset VR on lhs or set it to phi result VR.
38567 2015-02-13 Jeff Law <law@redhat.com>
38569 PR tree-optimization/64823
38570 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
38571 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
38572 threading through blocks with PHIs, but no statements.
38573 (thread_through_normal_block): Distinguish between blocks where
38574 we did not process all the statements and blocks with no statements.
38576 PR rtl-optimization/47477
38577 * match.pd (convert (plus/minus (convert @0) (convert @1): New
38578 simplifier to narrow arithmetic.
38580 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
38583 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
38584 polymorphic call info when type is not known to be preserved.
38586 2015-02-13 Maritn Jambor <mjambor@suse.cz>
38589 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
38590 (inline_call): Use it.
38592 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
38594 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
38595 GOMP_DEVICE_NVIDIA_PTX.
38597 2015-02-13 Jakub Jelinek <jakub@redhat.com>
38600 * stmt.c (emit_case_nodes): Use void_type_node instead of
38601 NULL_TREE as LABEL_DECL type.
38603 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
38605 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
38607 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
38608 symbolic references to data to be forced to constant memory on the
38611 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
38613 PR tree-optimization/65002
38614 * tree-cfg.c (pass_data_fixup_cfg): Don't update
38616 * tree-sra.c (some_callers_have_no_vuse_p): New.
38617 (ipa_early_sra): Reject functions whose callers
38618 assume function is read only.
38620 2015-02-13 Richard Biener <rguenther@suse.de>
38623 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
38624 for LTO produced CUs.
38626 2015-02-13 Bin Cheng <bin.cheng@arm.com>
38628 PR tree-optimization/64705
38629 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
38630 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
38631 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
38632 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
38633 expand_simple_operations.
38635 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
38636 Richard Henderson <rth@redhat.com>
38639 * cgraphunit.c (cgraph_node::finalize_function): Set definition
38640 before notice_global_symbol.
38641 (varpool_node::finalize_decl): Likewise.
38642 * varasm.c (default_binds_local_p_2): Rename from
38643 default_binds_local_p_1, add weak_dominate argument. Use direct
38644 returns instead of assigning to local variable. Unify varpool and
38645 cgraph paths via symtab_node. Reject undef weak variables before
38646 testing visibility. Reorder tests for simplicity.
38647 (default_binds_local_p): Use default_binds_local_p_2.
38648 (default_binds_local_p_1): Likewise.
38649 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
38651 (default_elf_asm_output_external): Emit visibility when specified.
38653 2015-02-13 Alan Modra <amodra@gmail.com>
38655 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
38656 code setting up r11 for out-of-line fp restore.
38658 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
38660 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
38661 (muser-mode): Likewise.
38663 2015-02-13 Alan Modra <amodra@gmail.com>
38665 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
38666 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
38668 2015-02-12 David Howells <dhowells@redhat.com>
38670 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
38672 * tree-ssa-uninit.c (dump_predicates): Likewise.
38673 * opts.c (print_filtered_help): Likewise.
38675 2015-02-12 Jakub Jelinek <jakub@redhat.com>
38677 * dwarf2out.c (output_die): Use "%s", name instead of name to
38678 avoid -Wformat-security warning.
38680 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
38681 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
38682 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
38683 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
38685 2015-02-12 Jason Merrill <jason@redhat.com>
38687 * common.opt (-flifetime-dse): New.
38689 2015-02-12 Jakub Jelinek <jakub@redhat.com>
38692 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
38694 PR tree-optimization/65014
38695 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
38696 use original second operand of arg0 or arg1 instead of
38697 that adjusted by STRIP_NOPS.
38699 2015-02-11 Jeff Law <law@redhat.com>
38702 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
38703 that needs to be queued, just queue it for a single cycle.
38705 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
38707 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
38708 bodies of thunks; comment on why.
38709 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
38710 symbols are extern.
38712 2015-02-11 Richard Henderson <rth@redhat.com>
38715 * tree-eh.c (mark_reachable_handlers): Mark source and destination
38716 regions of __builtin_eh_copy_values.
38718 2015-02-11 Jakub Jelinek <jakub@redhat.com>
38720 PR middle-end/65003
38721 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
38722 ultimate alias is MEM with SYMBOL_REF satisfying
38723 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
38724 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
38726 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
38728 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
38729 "diagnostic-core.h".
38730 (main): Initialize progname, and call diagnostic_initialize.
38732 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
38733 instead of __OPENMP_TARGET__.
38735 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
38736 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
38737 hard-coding PTX_ID.
38739 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
38741 * doc/sourcebuild.texi (pie_enabled): Document.
38743 2015-02-11 Martin Liska <mliska@suse.cz>
38746 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
38747 a return value for call to a function that is noreturn.
38749 2015-02-11 Richard Biener <rguenther@suse.de>
38752 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
38755 2015-02-11 Andrew Pinski <apinski@cavium.com>
38758 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
38759 Change the first argument type to size_type_node and add another
38761 (aarch64_simd_expand_builtin): Handle the new argument to
38762 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
38763 print an out when the first two arguments are not
38764 nonzero integer constants.
38765 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
38766 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
38768 2015-02-11 Jakub Jelinek <jakub@redhat.com>
38771 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
38772 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
38773 (ix86_set_current_function): Rewritten.
38774 (ix86_add_new_builtins): Temporarily clear current_target_pragma
38775 when creating builtin fndecls.
38777 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
38780 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
38782 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
38783 have no comdat group.
38784 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
38785 (lto_output_varpool_node): Always output alias info.
38786 (output_refs): Output refs of boundary aliases, too.
38787 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
38788 (output_symtab): Output call eges in thunks in boundary.
38789 (get_alias_symbol): Remove.
38790 (input_node, input_varpool_node): Do not special case weakrefs.
38791 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
38792 alias and thunks targets in the boundary; do not take removed symbols
38793 from their comdat groups.
38794 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
38795 (cgraph_node::global_info): Remove.
38796 (cgraph_node::rtl_info): Look through aliases and thunks.
38797 * cgrpah.h (global_info): Remove.
38798 (non_local_p): Remove.
38800 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
38801 Sandra Loosemore <sandra@codesourcery.com>
38803 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
38804 to inline asm. List dialects in proper order.
38806 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
38807 Sandra Loosemore <sandra@codesourcery.com>
38809 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
38811 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
38813 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
38814 modified) reference to Solaris.
38816 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
38818 * doc/extend.texi (Extended Asm): Fix typos.
38820 2015-02-10 Jakub Jelinek <jakub@redhat.com>
38823 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
38825 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
38828 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
38829 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
38830 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
38831 * config/sh/constraints.md (Ara, Add): New constraints.
38832 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
38834 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
38835 atomic_mem_operand_0. Don't use force_reg on the memory address.
38836 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
38837 Sra constraint. Convert to insn_and_split. Add workaround for
38839 (atomic_compare_and_swap<mode>_hard): Copy to
38840 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
38841 Use atomic_mem_operand_0 predicate.
38842 (atomic_compare_and_swap<mode>_soft_gusa,
38843 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
38844 AraAdd constraints.
38845 (atomic_compare_and_swap<mode>_soft_tcb,
38846 atomic_compare_and_swap<mode>_soft_imask,
38847 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
38848 atomic_mem_operand_0 predicate and SraSdd constraints.
38849 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
38851 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
38852 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
38853 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
38854 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
38855 force_reg on the memory address.
38856 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
38857 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
38858 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
38859 atomic_mem_operand_1 predicate and Sra constraint.
38860 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
38861 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
38862 Use atomic_mem_operand_1 predicate.
38863 (atomic_<fetchop_name><mode>_hard): Copy to
38864 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
38865 Use atomic_mem_operand_1 predicate.
38866 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
38867 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
38868 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
38869 insn_and_split. Use atomic_mem_operand_1 predicate.
38870 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
38871 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
38872 Use atomic_mem_operand_1 predicate.
38873 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
38874 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
38875 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
38876 in generated insn with original mem operand before emitting the insn.
38877 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
38878 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
38879 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
38880 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
38881 Use atomic_mem_operand_1 predicate and AraAdd constraints.
38882 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
38883 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
38884 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
38885 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
38886 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
38887 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
38888 atomic_not_fetch<mode>_soft_tcb,
38889 atomic_<fetchop_name>_fetch<mode>_soft_imask,
38890 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
38891 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
38892 Use atomic_mem_operand_1 predicate and SraSdd constraints.
38894 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
38896 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
38897 and 3 earlyclobber operands.
38899 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
38901 * common.opt (fstack-reuse): Mark as optimization.
38903 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
38906 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
38908 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
38910 PR tree-optimization/64326
38911 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
38913 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
38915 PR gcov-profile/61889
38916 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
38918 2015-02-10 Richard Biener <rguenther@suse.de>
38920 PR tree-optimization/64995
38921 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
38922 value we use is final.
38923 (visit_reference_op_store): Always valueize op.
38924 (visit_use): Properly valueize vuses.
38926 2015-02-10 Richard Biener <rguenther@suse.de>
38928 PR tree-optimization/64909
38929 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
38930 pass a scalar-stmt count estimate to the cost model.
38931 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
38933 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
38935 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
38936 enabled by default together with var-tracking.
38938 2015-02-10 Nick Clifton <nickc@redhat.com>
38940 * config/rl78/rl78.c: Remove DIV attribute code accidentally
38941 included in previous rl78 commit.
38943 2015-02-10 Richard Biener <rguenther@suse.de>
38945 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
38946 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
38947 return the bitpack.
38949 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
38951 PR gcov-profile/61889
38952 * config.in: regenerate.
38953 * configure.in: Likewise.
38954 * configure.ac: Check for ftw.h.
38955 * gcov-tool.c: Check for ftw.h before using nftw.
38957 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
38960 * ipa-visibility.c (update_visibility_by_resolution_info): Only
38961 assert when not in lto mode.
38963 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
38965 * ira-color.c (setup_left_conflict_sizes_p): Simplify
38966 initialization/assignment of conflict_size.
38968 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
38971 * ipa-cp.c (gather_caller_stats): Skip thunks.
38972 (propagate_constants_topo): Skip aliases.
38974 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
38977 * config/sh/sh.c (sh_option_override): Don't change
38978 -freorder-blocks-and-partition to -freorder-blocks even when
38979 unwinding is enabled.
38980 (sh_can_follow_jump): Return false if the followee jump is
38981 a crossing jump when -freorder-blocks-and-partition is specified.
38982 * config/sh/sh.md (*jump_compact_crossing): New insn.
38984 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
38985 Kaz Kojima <kkojima@gcc.gnu.org>
38988 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
38989 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
38990 (sh_can_redirect_branch): Rename to ...
38991 (sh_can_follow_jump): ... this. Constify argument types.
38992 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
38993 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
38994 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
38995 * doc/tm.texi: Regenerate.
38997 2015-02-09 Jakub Jelinek <jakub@redhat.com>
39000 * builtins.c (expand_builtin): Call targetm.expand_builtin
39001 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
39003 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
39006 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
39008 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
39011 * ipa-icf.c (set_local): New function.
39012 (sem_function::merge): Use it.
39014 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
39016 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
39017 (add_type_duplicate): Fix comparison of BINFOs.
39019 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
39021 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
39022 on getting VOID pointer.
39024 2015-02-09 Jakub Jelinek <jakub@redhat.com>
39027 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
39030 2015-02-09 Richard Biener <rguenther@suse.de>
39032 * genmatch.c (replace_id): Copy expr_type.
39034 2015-02-09 Richard Biener <rguenther@suse.de>
39036 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
39037 (streamer_write_tree_bitfields): Declare.
39038 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
39039 properly unpack padding.
39040 (unpack_value_fields): Inline ...
39041 (streamer_read_tree_bitfields): ... here.
39042 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
39043 and properly add padding bits.
39044 (streamer_pack_tree_bitfields): Fold into ...
39045 (streamer_write_tree_bitfields): ... this new function,
39046 exposing the bitpack object.
39047 * lto-streamer-out.c (lto_write_tree_1): Call
39048 streamer_write_tree_bitfields.
39050 2015-02-09 Richard Biener <rguenther@suse.de>
39052 PR tree-optimization/54000
39053 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
39054 (struct ivopts_data): Add loop_loc member.
39055 (tree_ssa_iv_optimize_loop): Dump loop location.
39056 (create_new_ivs): Likewise, also dump number of IVs generated.
39058 2015-02-09 Martin Liska <mliska@suse.cz>
39060 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
39061 just if not yet registered.
39062 (ipa_icf_generate_summary): Register callgraph hooks.
39064 2015-02-08 Andrew Pinski <apinski@cavium.com>
39066 * config/aarch64/aarch64.c (gty_dummy): Delete.
39068 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
39071 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
39072 (cgraph_node::local_p): Remove thunk related FIXME.
39074 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
39077 * i386.c (ix86_function_regparm): Look through aliases to see if callee
39078 is local and optimized.
39079 (ix86_function_sseregparm): Likewise; also use target's SSE math
39080 settings; error out instead of silently generating wrong code
39082 (init_cumulative_args): Look through aliases.
39084 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
39087 * ipa-split.c (execute_split_functions): Split if function has aliases.
39089 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
39092 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
39093 aliases before trying to expand it.
39094 (cgraph_node::expand_thunk): Fix formating.
39096 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
39098 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
39099 (Using Assembly Language with C): Expand introduction.
39100 (Basic Asm): Copy-edit. Add more information about uses of
39102 (Extended Asm): Copy-edit. Document new escape syntax and
39104 (Global Reg Vars): Copy-edit.
39105 (Local Reg Vars): Likewise.
39107 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
39111 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
39112 (DBX_CONTIN_CHAR): Define.
39114 2015-02-06 Sebastian Pop <s.pop@samsung.com>
39115 Brian Rzycki <b.rzycki@samsung.com>
39117 PR tree-optimization/64878
39118 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
39119 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
39120 Stop recursion at loop phi nodes after having visited a loop phi node.
39122 2015-02-06 Jakub Jelinek <jakub@redhat.com>
39124 * toplev.c (process_options): Change flag_ipa_ra before creating
39125 optimization_{default,current}_node.
39128 * cgraphunit.c (cgraph_node::expand_thunk): If
39129 restype is not is_gimple_reg_type nor the thunk_fndecl
39130 returns aggregate_value_p, set restmp to a temporary variable
39131 instead of resdecl.
39133 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
39135 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
39137 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
39140 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
39141 add a general secondary reload handler for SDmode, unless we have
39142 both read/write support for SDmode.
39144 2015-02-06 Jakub Jelinek <jakub@redhat.com>
39146 PR middle-end/64937
39147 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
39148 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
39149 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
39150 1 before, push it to abstract_vec.
39151 (dwarf2out_abstract_function): Adjust caller. Don't call
39152 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
39153 DECL_ABSTRACT_P flags for all abstract_vec elts.
39155 2015-02-06 Renlin Li <renlin.li@arm.com>
39157 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
39159 * tree-ssa.c (execute_update_addresses_taken): Likewise.
39161 2015-02-06 Jeff Law <law@redhat.com>
39164 * config/h8300/h8300.c (push): New argument "in_prologue".
39165 Pass "in_prologue" along to "F".
39166 (h8300_push_pop): Corresponding changes.
39167 (h8300_expand_prologue): Likewise.
39168 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
39170 2015-02-06 Jakub Jelinek <jakub@redhat.com>
39172 PR rtl-optimization/64957
39174 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
39175 IOR rather than for AND.
39177 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
39180 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
39181 of shift-add and (add + shift) operations. Rename local variable.
39183 2015-02-05 Jeff Law <law@redhat.com>
39186 * config/h8300/constraints.md (U): Correctly dectect
39187 "eightbit_data" memory addresses.
39188 * config/h8300/h8300.c (eightbit_constant_address_p): Also
39189 handle (const (plus (symbol_ref (x)))) where x is declared
39190 as an 8-bit data memory address.
39191 * config/h8300/h8300.md (call, call_value): Correctly detect
39192 "funcvec" functions.
39195 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
39196 24 to 28 bits for the H8/300.
39198 2015-02-06 Alan Modra <amodra@gmail.com>
39201 * config/rs6000/rs6000.c (chain_already_loaded): New function.
39202 (rs6000_call_aix): Use it.
39204 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
39206 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
39209 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
39211 * config/h8300/constraints.md ("U" constraint): Use strict
39212 variant of REG_OK_FOR_BASE_P after reload has started.
39214 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
39216 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
39217 define to zero if !TARGET_NEON.
39218 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
39220 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
39221 Trevor Saunders <tsaunders@mozilla.com>
39224 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
39226 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
39229 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
39230 when removing varpool nodes.
39232 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
39235 * varpool.c (varpool_node::remove): Fix order of variables.
39237 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
39240 * ipa-inline.c (inline_small_functions): Fix ordering issue between
39241 speculation resolution and key updates.
39243 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
39245 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
39246 about not letting any speculative edges unupdated.
39248 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
39251 * gcov-io.c (gcov_var): Export.
39253 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
39255 PR middle-end/64922
39256 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
39257 edges that become speculative.
39259 2015-02-04 Jakub Jelinek <jakub@redhat.com>
39261 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
39262 or DW_LANG_Fortran08.
39263 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
39265 (gen_compile_unit_die): Handle "GNU Fortran2003" and
39266 "GNU Fortran2008" language strings.
39267 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
39268 * langhooks.h (lang_GNU_Fortran): New prototype.
39269 * langhooks.c (lang_GNU_Fortran): New function.
39270 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
39273 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
39275 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
39276 (RTX_OK_FOR_OLO10_P): Likewise.
39278 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
39280 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
39282 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
39284 PR middle-end/64922
39285 * gimple.c: Include gimple-ssa.h.
39286 (maybe_remove_unused_call_args): New function.
39287 * gimple.h (maybe_remove_unused_call_args): Declare.
39288 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
39289 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
39290 * gimple-fold.c (gimple_fold_call): Likewise.
39292 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
39294 PR rtl-optimization/64905
39295 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
39296 pointer alignment if it isn't needed.
39298 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
39300 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
39301 cortex-a72.cortex-a53.
39302 * config/aarch64/aarch64-tune.md: Regenerate.
39303 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
39305 2015-02-04 Nick Clifton <nickc@redhat.com>
39307 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
39310 2015-02-04 Jakub Jelinek <jakub@redhat.com>
39312 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
39313 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
39314 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
39316 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
39317 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
39318 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
39319 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
39320 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
39321 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
39322 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
39323 * tree-core.h (enum built_in_function): In between
39324 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
39325 for builtins that use DEF_BUILTIN_CHKP macro.
39327 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
39330 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
39331 operands for tcc_comparison exprs. Fix typos.
39334 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
39335 of two XORs that have an intervening AND or IOR.
39338 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
39339 simplification of XOR of AND to not allocate new rtx before
39340 committing to a simplification.
39342 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
39344 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
39345 manual swaps in all peepholes.
39347 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
39349 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
39350 of manual swapping implementation.
39351 (aarch64_expand_vec_perm_const_1): Likewise.
39353 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
39355 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
39356 (generic_addrcost_table): Remove NAMED_PARAM.
39357 (cortexa57_addrcost_table): Likewise.
39358 (xgene1_addrcost_table): Likewise.
39359 (generic_regmove_table): Likewise.
39360 (cortexa53_regmove_table): Likewise.
39361 (xgene1_regmove_table): Likewise.
39362 (generic_vector_table): Likewise.
39363 (cortexa57_vector_table): Likewise.
39364 (xgene1_vector_table): Likewise.
39365 (generic_tunings): Likewise.
39366 (cortexa53_tunings): Likewise.
39367 (cortexa57_tunings): Likewise.
39368 (xgene1_tunings): Likewise.
39370 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
39372 * config/arm/arm-cores.def: Add cortex-a72 and
39373 cortex-a72.cortex-a53.
39374 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
39375 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
39376 * config/arm/arm-tune.md: Regenerate.
39377 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
39378 "cortex-a72.cortex-a53".
39379 * doc/invoke.texi (ARM Options/-mtune): Likewise.
39381 2015-02-04 Nick Clifton <nickc@redhat.com>
39384 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
39386 (nonimmediate_di_operand): Likewise.
39388 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
39389 prefixes of known F5 using MSP430 MCUs.
39391 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
39393 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
39394 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
39395 instead of __builtin_sqrt.
39397 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
39399 * varasm.c (do_assemble_alias): Follow transparent alias
39401 (default_assemble_visibility): Follow transparent alias
39402 chain for decl name.
39404 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
39406 PR middle-end/62103
39407 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
39408 to compute size of referenced value in the constant case.
39410 2015-02-03 Jakub Jelinek <jakub@redhat.com>
39412 PR rtl-optimization/64756
39413 * cse.c (invalidate_dest): New function.
39414 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
39415 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
39416 invalidate and do not record it.
39418 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
39421 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
39422 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
39423 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
39424 atomic_nand<mode>_soft_tcb): New insns.
39425 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
39426 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
39427 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
39428 Split into atomic_not_fetchsi_hard if operands[0] is unused.
39429 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
39430 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
39431 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
39432 atomic_not<mode>_hard if operands[0] is unused.
39433 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
39434 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
39435 if operands[0] is unused.
39436 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
39437 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
39438 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
39439 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
39441 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
39442 into atomic_not<mode>_soft_tcb if operands[0] is unused.
39443 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
39444 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
39445 if operands[0] is unused.
39446 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
39447 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
39448 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
39449 atomic_nand_fetchsi_hard if operands[0] is unused.
39450 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
39451 atomic_nand<mode>_hard if operands[0] is unused.
39452 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
39453 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
39454 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
39455 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
39456 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
39457 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
39458 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
39459 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
39460 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
39461 atomic_not<mode>_hard if operands[0] is unused.
39462 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
39463 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
39465 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
39466 into atomic_not<mode>_soft_tcb if operands[0] is unused.
39467 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
39468 atomic_nand<mode>_hard if operands[0] is unused.
39469 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
39470 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
39472 2015-02-03 David Malcolm <dmalcolm@redhat.com>
39475 * Makefile.in (GCC_OBJS): Add gcc-main.o.
39476 * gcc-main.c: New file, containing "main" taken from gcc.c.
39477 * gcc.c (do_self_spec): Free decoded_options.
39478 (class driver): Move declaration to gcc.h.
39479 (main): Move declaration and implementation to new file
39481 (driver_get_configure_time_options): New function.
39482 * gcc.h (class driver): Move this declaration here, from
39484 (driver_get_configure_time_options): New declaration.
39486 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
39488 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
39489 cross-module inlining.
39490 * cgraph.h (cgraph_node): Add flag merged.
39491 * ipa-icf.c (sem_function::merge): Maintain it.
39493 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
39495 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
39496 instead of OBJECT_P.
39498 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
39501 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
39502 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
39503 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
39504 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
39506 2015-02-03 Jakub Jelinek <jakub@redhat.com>
39509 * combine.c (reg_n_sets_max): New variable.
39510 (can_change_dest_mode, reg_nonzero_bits_for_combine,
39511 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
39512 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
39513 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
39514 (rest_of_handle_combine): Initialize reg_n_sets_max.
39516 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
39518 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
39519 if some always_inline was inlined, apply changes before inlining
39522 2015-02-02 David Malcolm <dmalcolm@redhat.com>
39525 * config/arm/arm.c (arm_option_override): Set
39526 arm_selected_arch/cpu/tune to NULL on entry.
39528 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
39529 Andrew Pinski <pinskia@gcc.gnu.org>
39530 Jakub Jelinek <jakub@gcc.gnu.org>
39533 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
39534 integer typing for small model. Use IN_RANGE.
39536 2015-02-02 Richard Biener <rguenther@suse.de>
39538 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
39539 * tree-vrp.c (vrp_valueize_1): Likewise.
39541 2015-02-02 Alan Modra <amodra@gmail.com>
39543 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
39544 than mem for toc_restore.
39545 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
39546 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
39547 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
39549 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
39552 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
39553 explicit default options.
39555 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
39558 * ipa-utils.c (ipa_merge_profiles): Add release argument.
39559 * ipa-icf.c (sem_function::merge): Do not release body when merging.
39560 * ipa-utils.h (ipa_merge_profiles): Update prototype.
39562 2015-02-01 Jakub Jelinek <jakub@redhat.com>
39565 * cfgexpand.c (deep_ter_debug_map): New variable.
39566 (avoid_deep_ter_for_debug): New function.
39567 (expand_debug_expr): If TERed SSA_NAME is in
39568 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
39569 instead of trying to expand SSA_NAME's def stmt.
39570 (expand_debug_locations): When expanding debug bind
39571 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
39572 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
39574 (pass_expand::execute): Call avoid_deep_ter_for_debug on
39575 all debug bind stmts. Delete deep_ter_debug_map after
39576 expand_debug_location if non-NULL and clear it.
39578 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
39581 * config/sh/sync.md (atomic_fetch_notsi_hard,
39582 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
39583 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
39584 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
39585 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
39586 atomic_not_fetch<mode>_soft_imask): New insns.
39588 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
39590 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
39591 (rank_for_schedule_debug): Split from ...
39592 (rank_for_schedule): ... this.
39593 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
39594 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
39596 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
39598 * doc/md.texi (Machine Constraints): Alphabetize table by target.
39599 * doc/extend.texi (x86 Variable Attributes): Move section to
39600 correct alphabetization after renaming.
39601 (x86 Type Attributes): Likewise.
39602 (Target Builtins): Re-alphabetize menu.
39603 (x86 Built-in Functions): Move section to correct alphabetization
39605 (x86 transactional memory intrinsics): Likewise.
39606 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
39607 and x86 Windows Options in table and menu.
39608 (x86 Options): Move section to correct alphabetization after
39610 (x86 Windows Options): Likewise.
39612 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
39614 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
39615 preferred names of the architecture and its 32- and 64-bit
39617 * doc/invoke.texi: Likewise.
39618 * doc/md.texi: Likewise.
39620 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
39623 * config/i386/predicates.md (address_no_seg_operand): Reject
39624 non-CONST_INT_P operands in invalid mode.
39626 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
39628 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
39629 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
39630 * config/i386/predicates.md (address_no_seg_operand): Call
39631 address_operand with VOIDmode.
39632 (vsib_address_operand): Ditto.
39633 (address_mpx_no_base_operand): Ditto.
39634 (address_mpx_no_index_operand): Ditto.
39636 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
39639 * lra-constraints.c (original_subreg_reg_mode): New.
39640 (simplify_operand_subreg): Try to simplify subreg of const. Use
39641 original_subreg_reg_mode for it.
39642 (swap_operands): Update original_subreg_reg_mode.
39643 (curr_insn_transform): Set up original_subreg_reg_mode.
39645 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
39648 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
39650 (process_alt_operands): Use it.
39651 (curr_insn_transform): Check the optional reload pseudo class is
39654 2015-01-30 Joseph Myers <joseph@codesourcery.com>
39656 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
39657 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
39659 * toplev.h (init_asm_output): Update comment on use of
39660 UNKNOWN_LOCATION with fatal_error.
39661 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
39662 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
39663 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
39664 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
39665 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
39666 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
39667 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
39668 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
39669 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
39670 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
39671 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
39672 fatal_error changed to pass input_location as first argument.
39674 2015-01-30 Martin Liska <mliska@suse.cz>
39676 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
39677 in #pragma GCC diagnostic guards.
39679 2015-01-30 Richard Biener <rguenther@suse.de>
39681 PR tree-optimization/64829
39682 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
39683 not add a widening conversion pattern but hand off extra
39684 widenings to callers.
39685 (vect_recog_widen_mult_pattern): Handle extra widening produced
39686 by vect_handle_widen_op_by_const.
39687 (vect_recog_widen_shift_pattern): Likewise.
39688 (vect_pattern_recog_1): Remove excess vertical space in dumping.
39689 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
39690 (vect_init_vector_1): Likewise.
39691 (vect_get_vec_def_for_operand): Likewise.
39692 (vect_finish_stmt_generation): Likewise.
39693 (vectorizable_load): Likewise.
39694 (vect_analyze_stmt): Likewise.
39695 (vect_is_simple_use): Likewise.
39697 2015-01-29 Jeff Law <law@redhat.com>
39699 * combine.c (try_combine): Fix typo in comment.
39701 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
39704 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
39705 (rs6000_stack_info): Add assert.
39706 (rs6000_output_savres_externs): New function, split off from...
39707 (rs6000_output_function_prologue): ... here. Do not call it for
39710 2015-01-29 Jeff Law <law@redhat.com>
39713 * combine.c (try_combine): If I0 is a memory load and I3 a store
39714 to a related address, increase the "goodness" of doing a 4-insn
39715 combination with I0-I3.
39716 (make_field_assignment): Handle SUBREGs in the ior+and case.
39718 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
39720 PR tree-optimization/64746
39721 * tree-if-conv.c (mask_exists): New function.
39722 (predicate_mem_writes): Save created mask with given size for further
39724 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
39725 (ifcvt_repair_bool_pattern): Collect all statements that are root
39726 of bool pattern and use iterative algorithm to remove multiple uses
39727 of predicates, display number of required iterations.
39729 2015-01-29 Richard Biener <rguenther@suse.de>
39731 PR tree-optimization/64853
39732 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
39733 stmt will get simulated again.
39734 * tree-ssa-ccp.c (valueize_op_1): Likewise.
39736 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
39738 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
39739 return_in_pc. Remove redundant assignments.
39740 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
39741 (arm_expand_epilogue): Don't compare boolean with true in if condition.
39743 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
39745 * config/i386/i386.c (ix86_mode_after): Make static.
39747 2015-01-29 Richard Biener <rguenther@suse.de>
39749 PR tree-optimization/64844
39750 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
39751 dump cost model analysis.
39752 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
39753 Do not register adjusted load/store costs here.
39755 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
39756 Uros Bizjak <ubizjak@gmail.com>
39758 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
39759 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
39760 using x86_use_pseudo_pic_reg.
39761 * config/i386/i386.c (ix86_conditional_register_usage): Remove
39762 support for fixed PIC register.
39763 (ix86_use_pseudo_pic_reg): Not static any more.
39765 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
39767 PR middle-end/64805
39768 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
39769 to avoid error in cgraph node verification.
39771 2015-01-29 Marek Polacek <polacek@redhat.com>
39773 * doc/standards.texi: Reflect that the default for C is gnu11.
39775 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
39778 * reorg.c (switch_text_sections_between_p): New function.
39779 (relax_delay_slots): Call it when testing if the jump insn
39780 is removable. Use targetm.can_follow_jump when testing if
39781 the conditional branch can follow an unconditional jump.
39783 2015-01-27 Caroline Tice <cmtice@google.com>
39785 Committing VTV Cywin/Ming patch for Patrick Wollgast
39786 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
39787 if -fvtable-verify=preinit/std is used.
39788 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
39789 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
39790 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
39791 if -fvtable-verify=preinit/std is used.
39792 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
39793 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
39794 if -fvtable-verify=preinit/std is used.
39795 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
39796 * config/i386/mingw32.h (LIB_SPEC): Likewise.
39797 * varasm.c (assemble_variable): Add code to properly set the comdat
39798 section and name for the .vtable_map_vars section in case the
39799 target is PE or COFF.
39801 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
39804 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
39805 make sane BB profile.
39806 (cgraph_node::expand_thunk): Make sane BB profile.
39807 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
39808 * cgraph.h (init_lowered_empty_function): Update prototype.
39809 * config/i386/i386.c (make_resolver_func): Update call.
39810 * predict.c (gate): Disable branch prediction pass if
39811 profile is already there.
39813 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
39815 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
39816 * opth-gen.awk: Likewise.
39817 * common.opt: Mark flag_fp_contract_mode as Optimization.
39819 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
39821 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
39822 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
39824 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
39827 * config/sh/predicates.md (atomic_arith_operand,
39828 atomic_logical_operand): Remove.
39829 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
39830 (atomic_arith_operand_0): New predicate.
39831 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
39832 Use atomic_arith_operand_0 for input values.
39833 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
39834 atomic_compare_and_swap<mode>_soft_gusa,
39835 atomic_compare_and_swap<mode>_soft_tcb,
39836 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
39837 arith_reg_operand instead of register_operand.
39838 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
39839 atomic_arith_operand_0 for newval input.
39840 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
39841 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
39842 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
39843 arith_reg_operand instead of register_operand.
39844 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
39845 fetchop_predicate_1, fetchop_constraint_1_llcs,
39846 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
39847 fetchop_constraint_1_imask): New code iterator attributes.
39848 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
39849 register_operand. Use fetchop_predicate_1.
39850 (atomic_fetch_<fetchop_name>si_hard,
39851 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
39852 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
39853 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
39854 and arith_reg_operand instead of register_operand. Use
39855 fetchop_predicate_1, fetchop_constraint_1_gusa.
39856 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
39857 and arith_reg_operand instead of register_operand. Use
39858 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
39860 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
39861 and arith_reg_operand instead of register_operand. Use
39862 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
39864 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
39865 register_operand. Use atomic_logical_operand_1.
39866 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
39867 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
39868 arith_reg_operand instead of register_operand.
39869 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
39870 Use arith_reg_dest and arith_reg_operand instead of register_operand.
39871 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
39872 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
39873 register_operand. Use fetchop_predicate_1.
39874 (atomic_<fetchop_name>_fetchsi_hard,
39875 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
39876 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
39877 fetchop_constraint_1_llcs.
39878 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
39879 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
39880 fetchop_constraint_1_gusa.
39881 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
39882 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
39883 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
39884 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
39885 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
39886 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
39887 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
39888 register_operand. Use atomic_logical_operand_1.
39889 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
39890 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
39891 arith_reg_operand instead of register_operand.
39892 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
39893 arith_reg_operand instead of register_operand. Use logical_operand
39894 and K08. Adjust asm sequence to allow R0 usage.
39895 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
39896 arith_reg_operand instead of register_operand. Use logical_operand
39899 2015-01-28 Jakub Jelinek <jakub@redhat.com>
39902 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
39903 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
39904 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
39905 only get_full_len HOST_WIDE_INTs from get_val () array rather than
39906 all bits in *val_wide.
39908 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
39910 * varpool.c (tls_model_names): Fix names.
39911 (varpool_node::dump): Dump tls- prefix for tls models.
39913 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
39914 Bernd Schmidt <bernds@codesourcery.com>
39915 Nathan Sidwell <nathan@codesourcery.com>
39917 * config/nvptx/mkoffload.c: New file.
39918 * config/nvptx/t-nvptx: Add build rules for it.
39919 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
39920 (extra_programs): Add mkoffload.
39921 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
39923 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
39925 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
39927 PR middle-end/64809
39928 * cfgexpand.c (reorder_operands): Skip debug gimples.
39930 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
39932 PR tree-optimization/64277
39933 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
39934 range info when possible to refine estimation.
39936 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
39938 PR tree-optimization/64718
39939 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
39940 be a 16bit unsigned integer when n->range is 16.
39941 (bswap_replace): Convert src to that type if necessary for all bswap
39942 sizes. Fix rotation right notation in nearby comment. Use bswap_type
39943 set in pass_optimize_bswap::execute ().
39945 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
39947 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
39948 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
39949 integer and floating point variants.
39950 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
39952 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
39954 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
39955 for all vector modes.
39957 2015-01-28 Jakub Jelinek <jakub@redhat.com>
39960 * doc/sourcebuild.texi (comdat_group): Document.
39962 2015-01-28 Terry Guo <terry.guo@arm.com>
39964 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
39966 2015-01-27 David Malcolm <dmalcolm@redhat.com>
39968 * toplev.c (print_version): Add param "show_global_state", and
39969 only print GGC and plugin information if it is true.
39970 (init_asm_output): Pass in "true" for the new param when calling
39972 (process_options): Likewise.
39973 (toplev::main): Likewise.
39974 * toplev.h (print_version): Add new param to decl.
39976 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
39980 * tree.c (lookup_binfo_at_offset): New function.
39981 (get_binfo_at_offset): Use it.
39983 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
39986 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
39987 on vtable being vtable.
39989 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
39991 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
39992 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
39993 -mhotpatch= option.
39994 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
39995 -mno-hotpatch options. Change syntax of -mhotpatch= option.
39996 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
39998 (s390_hotpatch_trampoline_halfwords_max): Renamed.
39999 (s390_hotpatch_hw_max): New name.
40000 (s390_hotpatch_trampoline_halfwords): Renamed.
40001 (s390_hotpatch_hw_before_label): New name.
40002 (get_hotpatch_attribute): Removed.
40003 (s390_hotpatch_hw_after_label): New name.
40004 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
40006 (s390_attribute_table): Ditto.
40007 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
40008 (s390_function_num_hotpatch_hw): New name.
40009 Remove special handling of inline functions and hotpatching.
40010 Return number of nops before and after the function label.
40011 (s390_can_inline_p): Removed.
40012 (s390_asm_output_function_label): Emit a configurable number of nops
40013 after the function label.
40014 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
40015 (TARGET_CAN_INLINE_P) Removed.
40016 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
40018 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
40019 Jiong Wang <jiong.wang@arm.com>
40021 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
40023 (cb<optab><mode>1): Likewise.
40024 * config/aarch64/iterators.md (bcond): New define_code_attr.
40026 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
40028 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
40031 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
40033 * config/s390/s390.c (s390_register_move_cost): Increase costs for
40036 2015-01-27 Richard Biener <rguenther@suse.de>
40038 * tree-vrp.c (update_value_range): Intersect the range with
40039 old recorded SSA name range information.
40041 2015-01-27 Nick Clifton <nickc@redhat.com>
40043 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
40044 BC, DE and HL registers directly, not via AX.
40045 When decrementing the stack pointer by a large amount, transfer SP
40046 into AX and perform the subtraction there.
40047 (rl78_expand_epilogue): Perform the inverse of the above
40050 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
40052 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
40054 2015-01-27 Jakub Jelinek <jakub@redhat.com>
40055 Yury Gribov <y.gribov@samsung.com>
40058 * ubsan.c (ubsan_source_location): Refactor code.
40059 (ubsan_type_descriptor): Update type size. Refactor code.
40061 2015-01-27 Richard Biener <rguenther@suse.de>
40063 PR tree-optimization/56273
40064 PR tree-optimization/59124
40065 PR tree-optimization/64277
40066 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
40067 from the first VRP pass.
40069 2015-01-27 Jakub Jelinek <jakub@redhat.com>
40072 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
40073 handle the first argument in the same loop as all the other arguments.
40075 PR rtl-optimization/61058
40076 * jump.c (cleanup_barriers): Update basic block boundaries
40077 if BLOCK_FOR_INSN is non-NULL on PREV.
40079 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
40081 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
40082 bounds narrowing, already instrumented calls and calls to
40083 not instrumentable functions.
40085 2015-01-27 Jakub Jelinek <jakub@redhat.com>
40087 PR tree-optimization/64807
40088 * wide-int.cc (wi::divmod_internal): Clear
40089 b_dividend[dividend_blocks_needed].
40091 2015-01-26 DJ Delorie <dj@redhat.com>
40093 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
40094 volatile memory references.
40096 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
40099 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
40101 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
40102 shifts if it already fits into K08.
40104 2015-01-26 Jakub Jelinek <jakub@redhat.com>
40107 * ipa-inline.c (inline_small_functions): Print "unknown" even
40108 if edge->call_stmt is non-NULL, but has builtins or unknown
40111 PR middle-end/64421
40112 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
40113 with asterisk, skip the first character.
40115 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
40118 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
40121 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
40124 * config/i386/i386.md (*movdi_internal): Also check operand 0
40125 to determine TYPE_LEA operand.
40126 (*movsi_internal): Ditto.
40128 2015-01-26 Jakub Jelinek <jakub@redhat.com>
40130 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
40131 OPTION_MASK_QUAD_MEMORY_ATOMIC.
40133 2015-01-26 Renlin Li <renlin.li@arm.com>
40135 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
40137 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
40140 2015-01-26 Richard Biener <rguenther@suse.de>
40142 PR middle-end/64764
40143 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
40144 combining two BIT_AND_EXPR predicates.
40146 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
40149 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
40151 2015-01-26 Terry Guo <terry.guo@arm.com>
40153 * config/arm/arm.c (arm_file_start): Update the assignment of
40154 Tag_ABI_HardFP_use.
40156 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
40158 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
40160 config/arm/arm.md: Include the new Cortex-A57 model.
40161 (generic_sched): Don't use generic_sched when tuning for
40164 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
40165 Uros Bizjak <ubizjak@gmail.com>
40167 * config/i386/i386.c (get_builtin_code_for_version): Add
40168 support for BMI and BMI2 multiversion functions.
40170 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
40172 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
40173 (extract_bit_field): Likewise.
40174 (extract_low_bits): Likewise.
40175 (expand_mult): Likewise.
40176 (expand_mult_highpart_adjust): Likewise.
40178 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
40180 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
40181 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
40182 * config/i386/i386.c (processor_model): Add
40183 M_INTEL_COREI7_BROADWELL.
40184 (arch_names_table): Add "broadwell".
40186 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
40195 * config/sh/sh-protos.h
40196 (sh_extending_set_of_reg::can_use_as_unextended_reg,
40197 sh_extending_set_of_reg::use_as_unextended_reg,
40198 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
40199 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
40200 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
40201 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
40202 (sh_treg_insns): New class.
40203 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
40204 (scope_counter): New class.
40205 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
40206 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
40207 sh_extending_set_of_reg::can_use_as_unextended_reg,
40208 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
40209 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
40210 sh_split_treg_set_expr): New functions.
40211 (addsubcosts): Handle treg_set_expr.
40212 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
40213 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
40214 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
40215 (sh_insn_operands_modified_between_p): Make non-static.
40216 * config/sh/predicates.md (zero_extend_movu_operand): Allow
40217 simple_mem_operand in addition to displacement_mem_operand.
40218 (zero_extend_operand): Don't allow zero_extend_movu_operand.
40219 (treg_set_expr, treg_set_expr_not_const01,
40220 arith_reg_or_treg_set_expr): New predicates.
40221 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
40222 arith_or_int_operand instead of logical_operand. Convert to
40223 insn_and_split. Try to optimize constant operand in splitter.
40224 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
40225 (*tstqi_t_zero): Delete.
40226 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
40227 (tstsi_t_and_not): Delete.
40228 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
40229 Convert to insn_and_split.
40230 (unnamed split, tstsi_t_zero_extract_xor,
40231 tstsi_t_zero_extract_subreg_xor_little,
40232 tstsi_t_zero_extract_subreg_xor_big): Delete.
40233 (*tstsi_t_shift_mask): New insn_and_split.
40234 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
40235 to recombine with surrounding insns when splitting.
40236 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
40237 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
40238 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
40239 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
40240 (*cbranch_div0s: Delete.
40241 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
40242 Try to recombine with surrounding insns when splitting. Add operand
40244 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
40245 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
40246 *addc_r_r_msb, *addc_2r_msb): Delete.
40247 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
40249 (*addc_negreg_t): New insn_and_split.
40250 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
40251 Try to recombine with surrounding insns when splitting.
40252 Add operand order variants.
40253 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
40254 insn_and_split patterns.
40255 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
40256 surrounding insns when splitting.
40257 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
40258 (*rotcl): Likewise. Add zero_extract variant.
40259 (*ashrsi2_31): New insn_and_split.
40260 (*negc): Convert to insn_and_split. Use treg_set_expr.
40261 (*zero_extend<mode>si2_disp_mem): Update comment.
40262 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
40264 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
40265 with surrounding insns when splitting.
40266 (any_treg_expr_to_reg): New insn_and_split.
40267 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
40268 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
40269 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
40270 *zero_extract_2): New single bit zero extract patterns.
40271 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
40272 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
40273 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
40274 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
40276 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
40277 register_operand for set source.
40279 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
40281 * i386.opt (prefetch_sse): New targetsave.
40282 * i386.c (ix86_function_specific_save): Save prefetch_sse.
40283 (ix86_function_specific_restore): Restore prefetch_sse and initialize
40284 ix86_cost/ix86_tune_cost.
40286 2015-01-23 David Malcolm <dmalcolm@redhat.com>
40288 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
40289 Support the JIT by using 0 as the language type.
40291 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
40294 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
40295 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
40296 (mark_regno_live, process_bb_lives): Pass new parameter value to
40297 make_hard_regno_born.
40299 2015-01-23 Jakub Jelinek <jakub@redhat.com>
40301 PR rtl-optimization/63637
40302 PR rtl-optimization/60663
40303 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
40304 if elt->cost is MAX_COST for ASM_OPERANDS.
40305 (find_sets_in_insn): Fix up comment typo.
40306 (cse_insn): Don't set src_volatile for all non-volatile
40307 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
40308 or with "memory" clobber. Set elt->cost to MAX_COST
40309 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
40310 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
40312 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
40314 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
40317 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
40319 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
40320 libgcc/config/i386/elf-lib.h.
40322 2015-01-23 Jakub Jelinek <jakub@redhat.com>
40325 * gcc.c (print_configuration): Don't print a blank line at the end
40327 (run_attempt): ... but here unstead.
40329 PR middle-end/64734
40330 * omp-low.c (scan_sharing_clauses): Don't ignore
40331 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
40332 on target data/update constructs.
40334 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
40337 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
40338 (DEBUG_RELOAD): Removed define.
40339 (m32c_limit_reload_class): Enable traces with if DEBUG0.
40340 (m32c_function_arg): Added a type cast.
40341 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
40342 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
40343 * config/m32c/bitops.md (andqi3_16): Likewise.
40344 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
40345 (push_a01_l): Likewise.
40347 2015-01-23 David Malcolm <dmalcolm@redhat.com>
40350 * main.c (main): Construct toplev instances with init_signals=true.
40351 * toplev.c (general_init): Add param "init_signals", and use it to
40352 conditionalize the calls to signal and host_hooks.extra_signals.
40353 (toplev::toplev): Add param "init_signals".
40354 (toplev::main): When invoking general_init, pass m_init_signals
40355 to control whether signal-handlers are installed.
40356 * toplev.h (toplev::toplev): Add param "init_signals".
40357 (toplev::m_init_signals): New field.
40359 2015-01-23 David Malcolm <dmalcolm@redhat.com>
40362 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
40363 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
40364 latter may be affected by the former (e.g. on i686).
40366 2015-01-23 Martin Liska <mliska@suse.cz>
40368 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
40369 false positive during profiledbootstrap.
40371 2015-01-23 Tom de Vries <tom@codesourcery.com>
40374 * lto-opts.c (lto_write_options): Output non-explicit conservative
40376 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
40377 (append_compiler_options): Pass -fopenacc through.
40379 2015-01-23 Tom de Vries <tom@codesourcery.com>
40382 * lto-opts.c (lto_write_options): Output non-explicit conservative
40384 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
40385 (append_compiler_options): Pass -fopenmp through.
40387 2015-01-23 Jakub Jelinek <jakub@redhat.com>
40390 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
40393 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
40394 * diagnostic.def (DK_ICE_NOBT): New kind.
40395 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
40396 like DK_ICE, but never print backtrace.
40397 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
40398 (internal_error_no_backtrace): New function.
40399 * gcc.c (execute): Use internal_error_no_backtrace instead of
40402 2015-01-22 Jeff Law <law@redhat.com>
40405 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
40406 improve code density for small immediate to memory case.
40407 (insv): Better handle bitfield assignments when the field is
40408 being set to all ones.
40409 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
40412 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
40413 Jakub Jelinek <jakub@redhat.com>
40415 PR middle-end/64729
40416 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
40417 for !TARGET_LIBC_PROVIDES_SSP version and
40418 -fstack-protector-{all,strong,explicit} otherwise.
40419 * config/freebsd.h (LINK_SSP_SPEC): Handle
40420 -fstack-protector-{strong,explicit}.
40422 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
40423 H.J. Lu <hongjiu.lu@intel.com>
40426 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
40429 2015-01-22 Wei Mi <wmi@google.com>
40431 PR rtl-optimization/64557
40432 * dse.c (record_store): Call get_addr for mem_addr.
40433 (check_mem_read_rtx): Likewise.
40435 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
40437 * fold-const.c (const_binop): Add early return for non-tcc_binary.
40439 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
40441 * toplev.c (init_local_tick): Process the failure when read
40442 fails for random_seed.
40444 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
40445 'pretty_name' to avoid memory overflow.
40447 2015-01-22 Richard Biener <rguenther@suse.de>
40449 PR middle-end/64728
40450 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
40451 abnormal coalescing on undefined SSA names.
40453 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
40457 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
40459 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
40461 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
40463 PR middle-end/63325
40464 * fold-const.c (fold_checksum_tree): Don't include value of
40465 expr->decl_with_vis.symtab_node in the checksum.
40467 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
40469 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
40471 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
40474 * gcc.c (insert_comments): New function.
40475 (try_generate_repro): Call it.
40476 (append_text): Removed.
40478 2015-01-22 Richard Biener <rguenther@suse.de>
40480 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
40481 with IL incompatible options. Properly honor user optimize
40484 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
40486 PR rtl-optimization/64682
40487 * combine.c (distribute_notes): When moving a death note for
40488 a register that is set in the new I2, make sure to put it
40489 before that new I2.
40491 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
40493 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
40494 not TARGET_DEFAULT.
40496 2015-01-21 Jakub Jelinek <jakub@redhat.com>
40499 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
40500 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
40501 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
40504 * doc/invoke.texi (-fsanitize=vptr): Document.
40506 PR rtl-optimization/62078
40507 * dse.c: Include cfgcleanup.h.
40508 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
40509 anything call purge_all_dead_edges and cleanup_cfg at the end
40512 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
40514 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
40517 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
40519 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
40522 2015-01-21 David Sherwood <david.sherwood@arm.com>
40523 Tejas Belagod <Tejas.Belagod@arm.com>
40525 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
40526 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
40527 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
40530 2015-01-21 David Sherwood <david.sherwood@arm.com>
40531 Tejas Belagod <Tejas.Belagod@arm.com>
40533 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
40534 (aarch64_reverse_mask): New decls.
40535 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
40536 (insn_count): New mode_attr.
40537 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
40538 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
40539 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
40540 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
40541 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
40542 (aarch64_simd_st4): New patterns.
40543 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
40544 (aarch64_reverse_mask): New functions.
40546 2015-01-21 Alan Hayward <alan.hayward@arm.com>
40548 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
40550 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
40551 addressing modes for BE.
40552 (aarch64_print_operand): Add 'R' specifier.
40553 (aarch64_simd_disambiguate_copy): Delete.
40554 (aarch64_simd_emit_reg_reg_move): New function.
40555 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
40556 in define_splits for structural moves.
40557 (mov<mode>): Use less restrictive predicates.
40558 (*aarch64_mov<mode>): Simplify and only allow for LE.
40559 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
40561 2015-01-21 Alan Hayward <alan.hayward@arm.com>
40563 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
40565 2015-01-21 Richard Henderson <rth@redhat.com>
40568 * ccmp.c (used_in_cond_stmt_p): Remove.
40569 (expand_ccmp_expr): Don't use it.
40571 2015-01-21 Nick Clifton <nickc@redhat.com>
40573 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
40576 2015-01-21 Richard Biener <rguenther@suse.de>
40578 PR middle-end/64313
40579 * tree-core.h (builtin_info, builtin_info_type): Turn from
40580 an object with two arrays into an array of an object with
40581 decl and two flags, implicit_p and declared_p.
40582 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
40583 set_builtin_decl, set_builtin_decl_implicit_p,
40584 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
40585 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
40586 * builtins.c (builtin_info): Adjust.
40587 * gimplify.c (gimplify_addr_expr): References to builtins
40588 that have been declared by the user makes them eligible for
40589 use by the compiler. Call set_builtin_decl_implicit_p on them.
40591 2015-01-20 Jeff Law <law@redhat.com>
40594 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
40595 allow pc-relative addresses in operand predicates or constraints.
40597 2015-01-21 Bin Cheng <bin.cheng@arm.com>
40599 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
40600 neon on aarch32 processors for stringops.
40602 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
40605 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
40607 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
40610 * ipa-inline.c: Include lto-streamer.h
40611 (report_inline_failed_reason): Output source file differences and
40612 flags on optimization/target node mismatch.
40613 (can_inline_edge_p): Consider caller to be the outer inline function;
40614 be less restrictive about matching opimize and optimize_size attributes.
40615 (inline_account_function_p): Break out from ...
40616 (inline_small_functions): ... here.
40617 * ipa-inline-transform.c (clone_inlined_nodes): Use
40618 inline_account_function_p.
40619 (inline_call): Use optimize attribution; use inline_account_function_p.
40620 (inline_transform): Use opt_for_fn.
40621 * ipa-inline.h (inline_account_function_p): Declare.
40623 2015-01-20 Jakub Jelinek <jakub@redhat.com>
40626 * dwarf2out.c (decl_piece_node): Don't put bitsize into
40627 mode if bitsize <= 0.
40628 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
40629 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
40630 sizes and positions.
40632 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
40634 * config/nios2/nios2.c (nios2_asm_file_end): Implement
40635 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
40637 (TARGET_ASM_FILE_END): Define.
40639 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
40641 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
40642 (struct tune_params): Use the enum.
40643 * arm.c (arm_*_tune): Update.
40644 (arm_option_override): Update.
40646 2015-01-20 Richard Biener <rguenther@suse.de>
40649 * ipa-reference.c (add_static_var): Inline ...
40650 (analyze_function): ... here after splitting out from ...
40651 (is_proper_for_analysis): ... this.
40653 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
40656 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
40657 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
40658 replace the conditional with it's true branch.
40659 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
40660 (arm_lra_p): Remove.
40662 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
40664 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
40666 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
40668 * config/tilegx/mul-tables.c: Move symtab.h include after
40669 coretypes.h include.
40670 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
40671 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
40672 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
40673 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
40674 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
40676 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
40680 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
40682 PR rtl-optimization/64081
40683 * loop-iv.c (def_pred_latch_p): New function.
40684 (latch_dominating_def): Allow specific cases with non-single
40686 (iv_get_reaching_def): Likewise.
40687 (check_complex_exit_p): New function.
40688 (check_simple_exit): Use check_complex_exit_p to allow certain cases
40689 with exits not executing on any iteration.
40691 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
40694 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
40695 to set branch cost.
40697 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
40700 * i386.c (gate): Check flag_expensive_optimizations and
40702 (ix86_option_override_internal): Drop optimize_size condition
40703 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
40704 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
40705 MASK_PREFER_AVX128.
40706 (ix86_avx256_split_vector_move_misalign,
40707 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
40708 * sse.md (all uses of TARGET_PREFER_AVX128): Add
40709 optimize_insn_for_speed_p check.
40711 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
40713 * config/mips/mips.h (FP_ASM_SPEC): New define.
40714 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
40717 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
40720 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
40721 nullptr for insn when reaching the first insn.
40722 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
40723 (sh_insn_operands_modified_between_p): Add nullptr check.
40724 (sh_find_extending_set_of_reg): Fix log message. Don't accept
40725 sign extending mem load if the insn contains any UNSPEC or
40728 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
40730 * params.def (inline-unit-growth): Drop to 15%.
40731 * invoke.texi (inline-unit-growth): Document change.
40733 2015-01-19 Martin Liska <mliska@suse.cz>
40736 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
40737 function for second argument of OBJ_TYPE_REF.
40739 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
40742 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
40743 whether function is an alias.
40745 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
40747 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
40750 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
40752 PR rtl-optimization/64671
40753 * lra-remat.c (operand_to_remat): Don't consider jump and call
40756 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
40759 * config/rs6000/default64.h: Include rs6000-cpus.def.
40760 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
40761 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
40762 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
40764 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
40766 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
40767 pseudo-op to specify assembler dialect.
40769 2015-01-19 Martin Liska <mliska@suse.cz>
40772 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
40773 Handle safe potentially removed nodes during filtering.
40775 2015-01-19 Martin Liska <mliska@suse.cz>
40777 * doc/extend.texi (no_icf): Add new attribute description.
40778 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
40779 where the pass attempts to merge a function with no_icf attribute.
40781 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
40784 * doc/md.texi (ARM Options): Document register constraints.
40786 2015-01-19 Jiong Wang <jiong.wang@arm.com>
40787 Andrew Pinski <apinski@cavium.com>
40790 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
40791 (ashl<mode>3): Don't expand if operands[2] is not constant.
40793 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40796 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
40797 Match xor-and-xor RTL pattern.
40799 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
40801 PR rtl-optimization/64081
40802 * loop-iv.c (def_pred_latch_p): New function.
40803 (latch_dominating_def): Allow specific cases with non-single
40805 (iv_get_reaching_def): Likewise.
40806 (check_complex_exit_p): New function.
40807 (check_simple_exit): Use check_complex_exit_p to allow certain cases
40808 with exits not executing on any iteration.
40810 2015-01-19 Jakub Jelinek <jakub@redhat.com>
40812 * common.opt (fgraphite): Fix a typo.
40814 2015-01-19 Felix Yang <felix.yang@huawei.com>
40816 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
40818 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
40819 uminp, smax_nanp, smin_nanp): New builtins.
40820 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
40821 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
40822 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
40823 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
40824 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
40825 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
40826 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
40827 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
40828 vpminnms_f32): Rewrite using builtin functions.
40830 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
40833 * omp-low.c (offload_symbol_decl): Remove variable.
40834 (get_offload_symbol_decl): Remove function.
40835 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
40836 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
40837 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
40838 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
40839 BUILT_IN_GOACC_UPDATE don't pass it at all.
40841 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
40843 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
40846 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
40848 * ipa-chkp.c (chkp_produce_thunks): Add early param
40849 to split thunks production into two passes. Keep
40850 'always_inline' function bodies after the first pass.
40851 (pass_data_ipa_chkp_early_produce_thunks): New.
40852 (pass_ipa_chkp_early_produce_thunks): New.
40853 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
40854 chkp_produce_thunks signature.
40855 (make_pass_ipa_chkp_early_produce_thunks): New.
40856 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
40857 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
40858 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
40860 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
40862 * cgraph.c (cgraph_node::dump): Dump profile flags.
40864 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
40867 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
40868 reg appear first in the parallel.
40870 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
40872 * ipa-reference.c (set_reference_optimization_summary,
40873 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
40875 (ignore_module_statics): New static var.
40876 (propagate_bits): If ipa-reference is disabled, do not look into local
40878 (analyze_function): Disable analysis when ipa_reference is disabled.
40879 (generate_summary): Do not dump when reference is disabled;
40880 collect vars accessed from functions with ipa-reference disabled.
40881 (get_read_write_all_from_node): When ipa-reference is disabled, use the
40883 (gate): Enable for LTO.
40884 (ignore_edge_p): New function.
40885 (propagate): Skip functions w/o ipa-reference analysis.
40886 * optc-save-gen.awk: Handle optimize_debug correctly.
40887 * opth-gen.awk: Likewise.
40888 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
40889 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
40890 fira-share-save-slots, fira-share-spill-slots,
40891 fmodulo-sched-allow-regmoves, fpartial-inlining,
40892 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
40893 ftracer, ftree-parallelize-loops, fassociative-math,
40894 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
40896 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
40897 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
40899 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
40902 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
40905 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
40907 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
40909 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
40911 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
40912 Remove duplicate option listings.
40914 2015-01-18 Felix Yang <felix.yang@huawei.com>
40916 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
40917 (autofdo_source_profile::get_callsite_total_count,
40918 function_instance::get_function_instance_by_decl,
40919 string_table::get_index, string_table::get_index_by_decl,
40920 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
40921 Fix comment typos. Reformatting and minor code rearrangement.
40923 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
40925 * config/rs6000/rs6000.md (probe_stack): Delete.
40926 (probe_stack_address): New.
40928 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
40930 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
40931 to test for 32-bit ABIs, not !TARGET_POWERPC64.
40933 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
40935 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
40936 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
40937 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
40939 (rs6000_libcall_value): Use the new function.
40941 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
40943 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
40945 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
40947 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
40948 implement a more precise life analysis for it during backward scan.
40950 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
40952 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
40954 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
40956 PR rtl-optimization/52773
40957 * calls.c (emit_library_call_value): When pushing arguments use
40958 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
40959 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
40960 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
40962 2015-01-17 Jeff Law <law@redhat.com>
40964 PR rtl-optimization/32790
40965 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
40966 not ZERO_EXTEND in SET_DESTs.
40968 2015-01-17 Alan Modra <amodra@gmail.com>
40970 * cprop.c (do_local_cprop): Revert last change.
40972 2015-01-16 DJ Delorie <dj@redhat.com>
40973 Nick Clifton <nickc@redhat.com>
40975 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
40976 (addhi3_real): Likewise. Fix [HL+0] syntax.
40977 (subqi3_real): Likewise.
40978 (subhi3_real): Likewise.
40979 (cbranchqi4_real): Likewise. Allow saddr,#imm.
40980 (cbranchhi4_real): Likewise.
40981 (cbranchhi4_real_inverted): Likewise.
40982 (cbranchsi4_real_lt): Likewise.
40983 (cbranchsi4_real_ge): Likewise.
40984 (cbranchsi4_real_ge): Likewise.
40985 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
40986 (sub<mode>3_virt): Likewise.
40987 (cbranchqi4_virt): Likewise.
40988 (cbranchhi4_virt): Likewise.
40989 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
40990 always use '[reg+imm]' even when imm is zero.
40991 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
40992 (rl78_general_operand): New.
40993 (rl78_nonimmediate_operand): New.
40994 (rl78_nonfar_operand): Use them.
40995 (rl78_nonfar_nonimm_operand): Likewise.
40996 (rl78_stack_based_mem): Fix.
40997 * config/rl78/constraints.md (Ibqi): New.
41002 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
41003 (iorqi3): Likewise.
41004 (xorqi3): Likewise.
41005 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
41007 * config/rl78/constrains (Qs8): New constraint.
41008 * config/rl78/rl78.c (rl78_flags_already_set): New function.
41009 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
41010 * config/rl78/rl78-real.md (update_Z): New attribute.
41011 Update patterns to set it.
41012 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
41013 shorter compare and branch sequence can be used.
41014 (cbranchhi4_real): Likewise.
41015 (cbranchhi4_real_inverted): Likewise.
41017 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
41018 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
41020 * config/rl78/rl78.c (rl78_get_name_encoding): New.
41021 (rl78_option_override): Allow -mes0 only if C.
41022 (characterize_address): Support subregs of symbol_refs.
41023 (rl78_addr_space_address_mode): Move. Add __near.
41024 (rl78_far_p): Likewise.
41025 (rl78_addr_space_pointer_mode): Likewise.
41026 (rl78_as_legitimate_address): Likewise.
41027 (rl78_addr_space_subset_p): Likewise.
41028 (rl78_addr_space_convert): Likewise.
41029 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
41030 symbols with -mes0.
41031 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
41033 (rl78_alloc_physical_registers_op1): Change logic to prefer
41034 symbol[BC] addressing.
41035 (frodata_section): New.
41036 (rl78_asm_init_sections): Initialize it.
41037 (rl78_select_section): Put __far readonly symbols in .frodata.
41038 (rl78_make_type_far): New.
41039 (rl78_insert_attributes): Force all readonly symbols to be
41041 (rl78_asm_out_integer): New.
41042 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
41043 * config/rl78/rl78.opt (-mes0): New.
41045 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
41046 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
41047 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
41048 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
41049 (rl78_saddr_p): New.
41050 (rl78_output_aligned_common): New.
41051 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
41052 (rl78_handle_saddr_attribute): New.
41053 (rl78_handle_naked_attribute): New.
41054 (rl78_attribute_table): Add saddr.
41055 (rl78_print_operand_1): Don't print '!' on saddr operands.
41056 (rl78_print_operand_1): Strip encodings.
41058 (rl78_strip_name_encoding): New.
41059 (rl78_attrlist_to_encoding): New.
41060 (rl78_encode_section_info): New.
41061 (rl78_asm_init_sections): New.
41062 (rl78_select_section): New.
41063 (rl78_output_labelref): New.
41064 (rl78_output_aligned_common): New.
41065 (rl78_asm_out_integer): New.
41066 (rl78_asm_ctor_dtor): New.
41067 (rl78_asm_constructor): New.
41068 (rl78_asm_destructor): New.
41070 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
41071 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
41072 (transcode_memory_rtx): Update.
41073 (rl78_expand_epilogue): Use A_REG instead of 0.
41075 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
41077 * config/arm/arm-protos.h (struct tune_params): New field
41078 sched_autopref_queue_depth.
41079 * config/arm/arm.c (sched-int.h): Include header.
41080 (arm_first_cycle_multipass_dfa_lookahead_guard,)
41081 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
41082 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
41083 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
41084 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
41085 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
41086 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
41087 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
41088 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
41089 * config/arm/t-arm (arm.o): Update.
41090 * haifa-sched.c (update_insn_after_change): Update.
41091 (rank_for_schedule): Use auto-prefetcher model, if requested.
41092 (autopref_multipass_init): New static function.
41093 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
41094 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
41095 variable for debug dumps.
41096 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
41097 (autopref_multipass_dfa_lookahead_guard): New global function that
41098 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
41099 (init_h_i_d): Update.
41100 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
41101 * sched-int.h (enum autopref_multipass_data_status): New const enum.
41102 (autopref_multipass_data_): Structure for auto-prefetcher data.
41103 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
41104 (struct _haifa_insn_data:autopref_multipass_data): New field.
41105 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
41106 (autopref_multipass_dfa_lookahead_guard): Declare.
41108 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
41110 * rtlanal.c (get_base_term): Handle SCRATCH.
41112 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
41114 * config/aarch64/aarch64.c
41115 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
41116 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
41118 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
41119 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
41121 2015-01-17 Alan Modra <amodra@gmail.com>
41123 * cprop.c (do_local_cprop): Disallow replacement of fixed
41126 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41129 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
41132 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
41134 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
41135 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
41137 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41139 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
41140 * config/arm/thumb1.md: ... Here.
41142 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
41144 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
41145 TImode for TARGET_32BIT.
41147 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
41149 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
41150 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
41152 (rs6000_abi_word_mode): New function.
41154 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
41156 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
41157 instead of UNITS_PER_WORD to describe the size of stack slots.
41159 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
41161 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
41162 as rs6000_promote_function_mode. Move comment to there.
41163 (rs6000_promote_function_mode): New function.
41165 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
41167 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
41168 -mpowerpc64 is active.
41170 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
41172 PR middle-end/64353
41173 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
41176 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
41178 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
41179 introduced in revision 219724.
41181 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41182 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
41185 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
41186 destination is not a GP reg.
41187 (*movdi_aarch64): Likewise.
41189 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
41192 * config/rs6000/default64.h: Revert ISA change.
41194 2015-01-16 Richard Biener <rguenther@suse.de>
41196 PR middle-end/64614
41197 * tree-ssa-uninit.c: Include tree-cfg.h.
41198 (MAX_SWITCH_CASES): New define.
41199 (convert_control_dep_chain_into_preds): Handle switch statements.
41200 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
41201 (normalize_one_pred_1): Do not split bit-manipulations.
41204 2015-01-16 Richard Biener <rguenther@suse.de>
41206 PR tree-optimization/64568
41207 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
41208 complex load rewriting for TARGET_MEM_REFs.
41210 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
41212 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
41214 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
41217 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
41219 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
41220 (aarch64_lra_p): Remove.
41222 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
41225 * ipa-chkp.h (chkp_instrumentable_p): New.
41226 * ipa-chkp.c: Include tree-inline.h.
41227 (chkp_instrumentable_p): New.
41228 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
41229 Fix processing of not instrumentable functions.
41230 (chkp_versioning): Use chkp_instrumentable_p. Warn about
41231 not instrumentable functions.
41232 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
41233 chkp_instrumentable_p.
41234 * tree-inline.h (copy_forbidden): New.
41235 * tree-inline.c (copy_forbidden): Not static anymore.
41237 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
41239 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
41242 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
41244 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
41245 type OP_OUT to OP_INOUT.
41247 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
41249 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
41250 (high x) y) to y if x and y have the same base.
41252 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
41254 * config/arm/cortex-a57.md: New.
41255 * config/aarch64/aarch64.md: Include it.
41256 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
41257 * config/aarch64/aarch64-tune.md: Regenerate.
41259 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
41262 * ccmp.c (expand_ccmp_next): New function.
41263 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
41264 and compare insn sequence.
41265 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
41266 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
41267 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
41268 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
41269 (*ccmp_ior): Changed to ccmp_ior<mode>.
41270 (cmp<mode>): New pattern.
41271 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
41273 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
41275 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
41277 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
41278 _mm256_bsrli_epi128): New.
41279 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
41281 2015-01-15 Jiong Wang <jiong.wang@arm.com>
41283 * expmed.c (store_bit_field_using_insv): Improve warning message.
41284 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
41286 2015-01-15 Jiong Wang <jiong.wang@arm.com>
41288 PR rtl-optimization/64011
41289 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
41290 there is partial overflow.
41292 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
41294 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
41296 (nds32_expand_epilogue_v3pop): Likewise.
41297 * config/nds32/nds32.md (sibcall): Define this for sibling call
41299 (sibcall_register): Likewise.
41300 (sibcall_immediate): Likewise.
41301 (sibcall_value): Likewise.
41302 (sibcall_value_register): Likewise.
41303 (sibcall_value_immediate): Likewise.
41304 (sibcall_epilogue): Likewise.
41305 (epilogue): Pass false to indicate this is not a sibcall epilogue.
41306 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
41307 (nds32_expand_epilogue_v3pop): Likewise.
41309 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
41311 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
41312 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
41313 (return_internal): New.
41314 (return): Define this named pattern.
41315 (simple_return): Define this named pattern.
41316 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
41317 pattern instead of unspec_volatile_func_return.
41318 (nds32_expand_epilogue_v3pop): Likewise.
41319 (nds32_can_use_return_insn): New function.
41321 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
41323 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
41324 * config/nds32/nds32.md (pop25return): New.
41325 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
41326 pop25return pattern.
41328 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
41330 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
41331 -mforbid-fp-as-gp, and -mex9 options.
41333 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
41335 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
41336 remove -mgp-direct option.
41338 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
41340 * doc/invoke.texi (--param early-inlining-insns): Update default value.
41341 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
41343 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
41345 * ipa-inline.c (inline_small_functions): Work around hints
41348 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
41351 * doc/invoke.texi (Option Summary): Document new Nios II
41353 (Nios II Options): Likewise.
41354 * config/nios2/nios2.opt: Add -mgpopt= option support.
41355 Modify existing -mgpopt and -mno-gpopt options to be aliases.
41356 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
41357 * config/nios2/nios2.c (nios2_option_override): Adjust
41358 -mgpopt defaulting.
41359 (nios2_in_small_data_p): Return true for explicit small data
41360 sections even with -G0.
41361 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
41364 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
41367 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
41369 (inline_call): Fix removal of aliases.
41371 2015-01-15 Jakub Jelinek <jakub@redhat.com>
41373 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
41374 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
41375 * opts.c (common_handle_option): Add -fsanitize=vptr.
41376 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
41377 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
41378 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
41379 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
41380 (ubsan_expand_vptr_ifn): New prototype.
41381 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
41382 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
41383 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
41384 expand_LOOP_VECTORIZED): Make argument nameless, remove
41386 (expand_UBSAN_VPTR): New function.
41387 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
41389 (UBSAN_VPTR): New internal function.
41390 * sanopt.c (tree_map_traits): Renamed to ...
41391 (sanopt_tree_map_traits): ... this.
41392 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
41393 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
41394 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
41395 (maybe_optimize_ubsan_vptr_ifn): New function.
41396 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
41397 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
41399 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
41400 internal calls like pure functions for aliasing, even when they
41401 have other side-effects that prevent making them ECF_PURE.
41402 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
41403 (ubsan_expand_vptr_ifn): New function.
41405 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
41407 PR rtl-optimization/64110
41408 * stmt.c (parse_output_constraint): Process '^' and '$'.
41409 (parse_input_constraint): Ditto.
41410 * lra-constraints.c (process_alt_operands): Process the new
41412 * ira-costs.c (record_reg_classes): Process the new constraint
41414 * genoutput.c (indep_constraints): Add '^' and '$'.
41415 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
41416 * doc/md.texi: Add description of the new constraints.
41418 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
41419 Bernd Schmidt <bernds@codesourcery.com>
41420 Cesar Philippidis <cesar@codesourcery.com>
41421 James Norris <jnorris@codesourcery.com>
41422 Tom de Vries <tom@codesourcery.com>
41423 Ilmir Usmanov <i.usmanov@samsung.com>
41424 Dmitry Bocharnikov <dmitry.b@samsung.com>
41425 Evgeny Gavrin <e.gavrin@samsung.com>
41426 Jakub Jelinek <jakub@redhat.com>
41428 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
41429 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
41430 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
41431 New function types.
41432 * builtins.c: Include "gomp-constants.h".
41433 (expand_builtin_acc_on_device): New function.
41434 (expand_builtin, is_inexpensive_builtin): Handle
41435 BUILT_IN_ACC_ON_DEVICE.
41436 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
41438 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
41440 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
41441 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
41442 i386/intelmic-offload.h.
41443 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
41444 to libgomp and its dependencies.
41445 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
41446 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
41447 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
41448 * config/ia64/hpux.h (LIB_SPEC): Likewise.
41449 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
41450 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
41451 * doc/generic.texi: Update for OpenACC changes.
41452 * doc/gimple.texi: Likewise.
41453 * doc/invoke.texi: Likewise.
41454 * doc/sourcebuild.texi: Likewise.
41455 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
41456 GF_OMP_FOR_KIND_OACC_LOOP.
41457 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
41458 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
41459 GF_OMP_TARGET_KIND_OACC_UPDATE,
41460 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
41462 * gimple.c: Update comments for OpenACC changes.
41463 * gimple.def: Likewise.
41464 * gimple.h: Likewise.
41465 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
41466 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
41467 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
41468 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
41469 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
41471 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
41472 * gimplify.c: Include "gomp-constants.h".
41473 Update comments for OpenACC changes.
41474 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
41475 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
41476 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
41477 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
41478 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
41479 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
41480 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
41481 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
41482 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
41484 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
41485 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
41486 OMP_CLAUSE_SET_MAP_KIND.
41487 (gimplify_oacc_cache): New function.
41488 (gimplify_omp_for): Handle OACC_LOOP.
41489 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
41491 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
41492 OACC_EXIT_DATA, OACC_UPDATE.
41493 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
41494 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
41495 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
41496 (gimplify_body): Consider flag_openacc next to flag_openmp.
41497 * lto-streamer-out.c: Include "gomp-constants.h".
41498 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
41499 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
41500 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
41501 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
41502 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
41503 (BUILT_IN_ACC_ON_DEVICE): New builtins.
41504 * omp-low.c: Include "gomp-constants.h".
41505 Update comments for OpenACC changes.
41506 (struct omp_context): Add reduction_map, gwv_below, gwv_this
41508 (extract_omp_for_data, use_pointer_for_field, install_var_field)
41509 (new_omp_context, delete_omp_context, scan_sharing_clauses)
41510 (create_omp_child_function, scan_omp_for, scan_omp_target)
41511 (check_omp_nesting_restrictions, lower_reduction_clauses)
41512 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
41513 Update for OpenACC changes.
41514 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
41515 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
41516 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
41517 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
41518 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
41519 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
41521 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
41522 Handle GF_OMP_FOR_KIND_OACC_LOOP.
41523 (expand_omp_target, lower_omp_target): Handle
41524 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
41525 GF_OMP_TARGET_KIND_OACC_UPDATE,
41526 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
41527 GF_OMP_TARGET_KIND_OACC_DATA.
41528 (pass_expand_omp::execute, execute_lower_omp)
41529 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
41531 (offload_symbol_decl): New variable.
41532 (oacc_get_reduction_array_id, oacc_max_threads)
41533 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
41534 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
41535 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
41536 (oacc_gimple_assign, oacc_initialize_reduction_data)
41537 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
41539 (is_targetreg_ctx): Remove function.
41540 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
41541 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
41542 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
41543 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
41544 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
41545 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
41546 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
41547 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
41548 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
41549 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
41550 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
41551 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
41552 * tree-core.h: Update comments for OpenACC changes.
41553 (enum omp_clause_map_kind): Remove.
41554 (struct tree_omp_clause): Change type of map_kind member from enum
41555 omp_clause_map_kind to unsigned char.
41556 * tree-inline.c: Update comments for OpenACC changes.
41557 * tree-nested.c: Likewise. Include "gomp-constants.h".
41558 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
41559 (convert_tramp_reference_stmt, convert_gimple_call): Update for
41560 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
41561 OMP_CLAUSE_SET_MAP_KIND.
41562 * tree-pretty-print.c: Include "gomp-constants.h".
41563 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
41564 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
41565 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
41566 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
41567 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
41568 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
41569 instead of OMP_CLAUSE_MAP_*.
41570 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
41571 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
41572 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
41573 * tree-streamer-in.c: Include "gomp-constants.h".
41574 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
41575 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
41576 * tree-streamer-out.c: Include "gomp-constants.h".
41577 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
41579 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
41580 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
41581 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
41582 * tree.c (omp_clause_num_ops): Update accordingly.
41583 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
41585 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
41586 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
41587 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
41588 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
41589 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
41590 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
41591 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
41592 (OMP_CLAUSE_SET_MAP_KIND): New macro.
41593 * varpool.c (varpool_node::get_create): Consider flag_openacc next
41595 * config/i386/intelmic-offload.h: New file.
41596 * config/nvptx/offload.h: Likewise.
41598 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
41600 * explow.h: Remove duplicate contents.
41601 * dojump.h: Likewise.
41603 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
41605 * arm.c (arm_xgene_tune): Add default initializer for instruction
41608 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
41612 * ipa.c (symbol_table::remove_unreachable_nodes):
41613 Do not put abstract origins into boundary.
41615 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
41617 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
41618 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
41620 2015-01-15 Steve Ellcey <sellcey@mips.com>
41622 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
41623 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
41624 builtins.def, and chkp-builtins.def.
41626 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
41628 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
41631 2015-01-15 Richard Biener <rguenther@suse.de>
41633 PR tree-optimization/61743
41634 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
41635 information on PHIs for some simple cases.
41637 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
41639 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
41641 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
41642 * config/arm/arm-cores.def (xgene1): New entry.
41643 * config/arm/arm-tables.opt: Regenerate.
41644 * config/arm/arm-tune.md: Regenerate.
41645 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
41647 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
41649 * tree-if-conv.c: Include hash-map.h.
41650 (aggressive_if_conv): New variable.
41651 (fold_build_cond_expr): Add simplification of non-zero condition.
41652 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
41653 destination block is not always executed.
41654 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
41655 than two predecessors if AGGRESSIVE_IF_CONV is true.
41656 (if_convertible_stmt_p): Fix commentary.
41657 (all_preds_critical_p): New function.
41658 (has_pred_critical_p): New function.
41659 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
41660 BB can have more than two predecessors and all incoming edges can be
41662 (predicate_bbs): Skip predication for loop exit block, use build2_loc
41663 to compute predicate for true edge.
41664 (find_phi_replacement_condition): Delete this function.
41665 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
41666 Allow interchange PHI arguments if EXTENDED is false.
41667 Change check that block containing reduction statement candidate
41668 is predecessor of phi-block since phi may have more than two arguments.
41669 (phi_args_hash_traits): New helper structure.
41670 (struct phi_args_hash_traits): New type.
41671 (phi_args_hash_traits::hash): New function.
41672 (phi_args_hash_traits::equal_keys): New function.
41673 (gen_phi_arg_condition): New function.
41674 (predicate_scalar_phi): Add handling of phi nodes with more than two
41675 arguments, delete COND and TRUE_BB arguments, insert body of
41676 find_phi_replacement_condition to predicate ordinary phi nodes.
41677 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
41678 delete call of find_phi_replacement_condition and invoke
41679 predicate_scalar_phi with two arguments.
41680 (insert_gimplified_predicates): Add assert that non-predicated block
41681 don't have statements to insert.
41682 (ifcvt_split_critical_edges): New function.
41683 (ifcvt_split_def_stmt): Likewise.
41684 (ifcvt_walk_pattern_tree): Likewise.
41685 (stmt_is_root_of_bool_pattern): Likewise.
41686 (ifcvt_repair_bool_pattern): Likewise.
41687 (ifcvt_local_dce): Likewise.
41688 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
41689 is copy of inner or outer loop force_vectorize field, invoke
41690 ifcvt_split_critical_edges, ifcvt_local_dce and
41691 ifcvt_repair_bool_pattern for aggressive if-conversion.
41693 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
41695 * config/aarch64/aarch64.md: Include xgene1.md.
41696 * config/aarch64/xgene1.md: New file.
41698 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
41700 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
41701 xgene1 (APM XGene-1) core definition.
41702 * config/aarch64/aarch64.c: Add cost tables for APM XGene-1
41703 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
41704 * doc/invoke.texi: Document -mcpu=xgene1.
41706 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
41708 * dojump.h: New header file.
41709 * explow.h: Likewise.
41710 * expr.h: Remove includes.
41711 Move expmed.c prototypes to expmed.h.
41712 Move dojump.c prototypes to dojump.h.
41713 Move alias.c prototypes to alias.h.
41714 Move explow.c prototypes to explow.h.
41715 Move calls.c prototypes to calls.h.
41716 Move emit-rtl.c prototypes to emit-rtl.h.
41717 Move varasm.c prototypes to varasm.h.
41718 Move stmt.c prototypes to stmt.h.
41719 (saved_pending_stack_adjust): Move to dojump.h.
41720 (adjust_address): Move to explow.h.
41721 (adjust_address_nv): Move to emit-rtl.h.
41722 (adjust_bitfield_address): Likewise.
41723 (adjust_bitfield_address_size): Likewise.
41724 (adjust_bitfield_address_nv): Likewise.
41725 (adjust_automodify_address_nv): Likewise.
41726 * explow.c (expr_size): Move to expr.c.
41727 (int_expr_size): Likewise.
41728 (tree_expr_size): Likewise.
41729 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41730 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
41731 * genemit.c (main): Generate includes statistics.h, real.h,
41732 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
41734 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
41735 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
41736 explow.h, emit-rtl.h, stmt.h.
41737 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
41738 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
41739 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
41740 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
41741 emit-rtl.h, varasm.h, stmt.h.
41742 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
41743 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
41744 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
41745 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
41746 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
41747 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
41748 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
41749 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
41750 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
41751 tm.h tree.h varasm.h vec.h wide-int.h.
41752 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
41753 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
41754 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
41755 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
41756 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
41757 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
41758 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
41759 * loop-iv.c: Likewise.
41760 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
41761 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
41762 statistics.h stmt.h tree.h varasm.h wide-int.h.
41763 * lra-constraints.c: Likewise.
41764 * lra-eliminations.c: Likewise.
41765 * lra-lives.c: Likewise.
41766 * lra-remat.c: Likewise.
41767 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
41768 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
41769 statistics.h stmt.h tree.h varasm.h wide-int.h.
41770 * hw-doloop.c: Likewise.
41771 * ira-color.c: Likewise.
41772 * ira-emit.c: Likewise.
41773 * loop-doloop.c: Likewise.
41774 * loop-invariant.c: Likewise.
41775 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
41776 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
41777 statistics.h stmt.h tree.h varasm.h wide-int.h.
41778 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
41779 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
41780 statistics.h stmt.h tree.h varasm.h wide-int.h.
41781 * combine-stack-adj.c: Likewise.
41784 * ifcvt.c: Likewise.
41785 * ira-costs.c: Likewise.
41786 * jump.c: Likewise.
41787 * lra-coalesce.c: Likewise.
41788 * lra-spills.c: Likewise.
41789 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
41790 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
41791 stmt.h varasm.h wide-int.h.
41792 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
41793 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
41795 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
41796 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
41797 statistics.h stmt.h varasm.h wide-int.h.
41798 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
41799 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
41800 varasm.h wide-int.h.
41801 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
41802 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
41803 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
41804 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
41805 statistics.h stmt.h.
41806 * config/tilepro/tilepro.c: Likewise.
41807 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
41808 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
41809 * config/pdp11/pdp11.c: Likewise.
41810 * config/xtensa/xtensa.c: Likewise.
41811 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
41812 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
41814 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41815 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
41816 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
41817 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41818 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
41819 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
41820 * rtl-chkp.c: Likewise.
41821 * tree-chkp-opt.c: Likewise.
41822 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
41823 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
41824 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
41825 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41826 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
41827 statistics.h stmt.h.
41828 * tree-vect-data-refs.c: Likewise.
41829 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
41830 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
41831 rtl.h statistics.h stmt.h varasm.h.
41832 * internal-fn.c: Likewise.
41833 * ipa-icf-gimple.c: Likewise.
41834 * lto-section-out.c: Likewise.
41835 * tree-data-ref.c: Likewise.
41836 * tree-nested.c: Likewise.
41837 * tree-outof-ssa.c: Likewise.
41838 * tree-predcom.c: Likewise.
41839 * tree-pretty-print.c: Likewise.
41840 * tree-scalar-evolution.c: Likewise.
41841 * tree-ssa-strlen.c: Likewise.
41842 * tree-vect-loop.c: Likewise.
41843 * tree-vect-patterns.c: Likewise.
41844 * tree-vect-slp.c: Likewise.
41845 * tree-vect-stmts.c: Likewise.
41846 * tsan.c: Likewise.
41847 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41848 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
41850 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
41851 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
41852 statistics.h stmt.h varasm.h.
41853 * loop-unroll.c: Likewise.
41854 * ubsan.c: Likewise.
41855 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
41856 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
41858 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41859 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
41860 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
41861 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
41862 statistics.h stmt.h.
41863 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
41864 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
41865 statistics.h stmt.h varasm.h.
41866 * gimple-match-head.c: Likewise.
41867 * lto-cgraph.c: Likewise.
41868 * lto-section-in.c: Likewise.
41869 * lto-streamer-in.c: Likewise.
41870 * lto-streamer-out.c: Likewise.
41871 * tree-affine.c: Likewise.
41872 * tree-cfg.c: Likewise.
41873 * tree-cfgcleanup.c: Likewise.
41874 * tree-if-conv.c: Likewise.
41875 * tree-into-ssa.c: Likewise.
41876 * tree-ssa-alias.c: Likewise.
41877 * tree-ssa-copyrename.c: Likewise.
41878 * tree-ssa-dse.c: Likewise.
41879 * tree-ssa-forwprop.c: Likewise.
41880 * tree-ssa-live.c: Likewise.
41881 * tree-ssa-math-opts.c: Likewise.
41882 * tree-ssa-pre.c: Likewise.
41883 * tree-ssa-sccvn.c: Likewise.
41884 * tree-tailcall.c: Likewise.
41885 * tree-vect-generic.c: Likewise.
41886 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41887 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
41888 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41889 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
41890 * varasm.c: Likewise.
41891 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41892 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
41894 * init-regs.c: Likewise.
41896 * omp-low.c: Likewise.
41897 * stack-ptr-mod.c: Likewise.
41898 * tree-ssa-reassoc.c: Likewise.
41899 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41900 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
41902 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41903 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
41904 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41905 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
41906 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41907 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
41908 * tree-ssa-phiopt.c: Likewise.
41909 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41910 fixed-value.h hashtab.h real.h statistics.h stmt.h.
41911 * config/fr30/fr30.c: Likewise.
41912 * config/frv/frv.c: Likewise.
41913 * expr.c: Likewise.
41914 * final.c: Likewise.
41915 * optabs.c: Likewise.
41916 * passes.c: Likewise.
41917 * simplify-rtx.c: Likewise.
41918 * stmt.c: Likewise.
41919 * toplev.c: Likewise.
41920 * var-tracking.c: Likewise.
41921 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41922 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
41923 * lower-subreg.c: Likewise.
41924 * postreload-gcse.c: Likewise.
41926 * reginfo.c: Likewise.
41927 * store-motion.c: Likewise.
41928 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41929 fixed-value.h hashtab.h real.h stmt.h varasm.h.
41930 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41931 fixed-value.h hashtab.h statistics.h stmt.h.
41932 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41933 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
41934 * except.c: Likewise.
41935 * explow.c: Likewise.
41936 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41937 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
41939 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41940 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
41941 * tree-ssa-structalias.c: Likewise.
41942 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41943 fixed-value.h insn-config.h real.h statistics.h.
41944 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41945 fixed-value.h insn-config.h real.h statistics.h stmt.h.
41946 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41947 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
41948 * cfgbuild.c: Likewise.
41949 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41950 fixed-value.h real.h rtl.h statistics.h stmt.h.
41951 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41952 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
41953 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41954 fixed-value.h real.h statistics.h stmt.h.
41955 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41956 fixed-value.h real.h statistics.h stmt.h varasm.h.
41957 * cprop.c: Likewise.
41958 * modulo-sched.c: Likewise.
41959 * postreload.c: Likewise.
41960 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
41961 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
41962 statistics.h stmt.h varasm.h.
41963 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
41964 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
41965 rtl.h statistics.h stmt.h varasm.h.
41966 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
41967 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
41969 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
41970 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
41972 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
41973 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
41975 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
41976 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
41977 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
41978 function.h real.h statistics.h stmt.h varasm.h.
41979 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
41980 insn-config.h real.h statistics.h stmt.h.
41981 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
41982 statistics.h stmt.h.
41983 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
41984 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
41985 statistics.h stmt.h varasm.h.
41986 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
41987 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
41988 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
41989 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
41990 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
41991 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
41992 statistics.h stmt.h varasm.h.
41993 * ipa-polymorphic-call.c: Likewise.
41994 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
41995 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
41996 statistics.h stmt.h.
41997 * config/c6x/c6x.c: Likewise.
41998 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
41999 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
42000 statistics.h stmt.h varasm.h.
42001 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
42002 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
42004 * ipa-split.c: Likewise.
42005 * tree-eh.c: Likewise.
42006 * tree-ssa-dce.c: Likewise.
42007 * tree-ssa-loop-niter.c: Likewise.
42008 * tree-vrp.c: Likewise.
42009 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
42010 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
42012 * config/nds32/nds32-fp-as-gp.c: Likewise.
42013 * config/nds32/nds32-intrinsic.c: Likewise.
42014 * config/nds32/nds32-isr.c: Likewise.
42015 * config/nds32/nds32-md-auxiliary.c: Likewise.
42016 * config/nds32/nds32-memory-manipulation.c: Likewise.
42017 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
42018 * config/nds32/nds32-predicates.c: Likewise.
42019 * config/nds32/nds32.c: Likewise.
42020 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
42021 fixed-value.h hashtab.h real.h statistics.h.
42022 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
42023 fixed-value.h hashtab.h real.h statistics.h stmt.h.
42024 * config/arm/arm.c: Likewise.
42025 * config/avr/avr.c: Likewise.
42026 * config/bfin/bfin.c: Likewise.
42027 * config/h8300/h8300.c: Likewise.
42028 * config/i386/i386.c: Likewise.
42029 * config/ia64/ia64.c: Likewise.
42030 * config/iq2000/iq2000.c: Likewise.
42031 * config/m32c/m32c.c: Likewise.
42032 * config/m32r/m32r.c: Likewise.
42033 * config/m68k/m68k.c: Likewise.
42034 * config/mcore/mcore.c: Likewise.
42035 * config/mep/mep.c: Likewise.
42036 * config/mips/mips.c: Likewise.
42037 * config/mn10300/mn10300.c: Likewise.
42038 * config/moxie/moxie.c: Likewise.
42039 * config/pa/pa.c: Likewise.
42040 * config/rl78/rl78.c: Likewise.
42041 * config/rx/rx.c: Likewise.
42042 * config/s390/s390.c: Likewise.
42043 * config/sh/sh.c: Likewise.
42044 * config/sparc/sparc.c: Likewise.
42045 * config/spu/spu.c: Likewise.
42046 * config/stormy16/stormy16.c: Likewise.
42047 * config/v850/v850.c: Likewise.
42048 * config/vax/vax.c: Likewise.
42049 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
42050 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
42051 * config/msp430/msp430.c: Likewise.
42052 * predict.c: Likewise.
42053 * value-prof.c: Likewise.
42054 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
42055 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
42056 * config/microblaze/microblaze.c: Likewise.
42057 * config/nios2/nios2.c: Likewise.
42058 * config/rs6000/rs6000.c: Likewise.
42059 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
42060 insn-config.h real.h rtl.h statistics.h stmt.h.
42061 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
42062 insn-config.h real.h statistics.h stmt.h.
42063 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
42064 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
42065 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
42066 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
42067 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
42068 fixed-value.h real.h statistics.h stmt.h.
42069 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
42070 fixed-value.h statistics.h stmt.h.
42071 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
42074 2015-01-15 Jakub Jelinek <jakub@redhat.com>
42076 * gengtype.c (create_user_defined_type): Workaround
42077 -Wmaybe-uninitialized false positives.
42078 * cse.c (fold_rtx): Likewise.
42079 * loop-invariant.c (gain_for_invariant): Likewise.
42081 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
42083 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
42084 set the memory attributes in all cases but clear MEM_EXPR if need be.
42086 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
42088 PR tree-optimization/64434
42089 * cfgexpand.c (reorder_operands): New function.
42090 (expand_gimple_basic_block): Insert call of reorder_operands if
42093 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
42095 * config/mips/micromips.md (*swp): Remove explicit parallel.
42096 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
42097 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
42098 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
42099 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
42100 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
42101 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
42102 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
42103 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
42104 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
42105 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
42106 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
42107 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
42108 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
42109 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
42110 (mips_wrdsp): Likewise.
42111 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
42113 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
42114 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
42115 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
42116 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
42117 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
42118 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
42119 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
42120 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
42121 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
42123 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
42125 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
42126 (mips_print_operand): Support 'y' to print exact log2 in decimal
42128 * config/mips/mips.h (ISA_HAS_LSA): New define.
42129 (ISA_HAS_DLSA): Likewise.
42130 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
42131 * config/mips/predicates.md (const_immlsa_operand): New predicate.
42133 2015-01-15 Martin Liska <mliska@suse.cz>
42136 * optc-save-gen.awk: Add support for array types.
42138 2015-01-15 Richard Biener <rguenther@suse.de>
42140 PR middle-end/64365
42141 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
42142 for MEM_REF access functions with the same base can never partially
42145 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
42147 * common.opt: New option -fstack-protector-explicit.
42148 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
42149 (stack_protect_decl_phase): Handle stack_protect attribute for
42150 explicit stack protection requests.
42151 (expand_used_vars): Similarly.
42152 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
42153 * doc/extend.texi: Add documentation for "stack_protect" attribute.
42154 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
42156 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
42159 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
42161 (sh_extending_set_of_reg): New struct.
42162 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
42163 sh_remove_reg_dead_or_unused_notes): New Declarations.
42164 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
42165 sh_find_extending_set_of_reg, sh_split_tst_subregs,
42166 sh_extending_set_of_reg::use_as_extended_reg): New functions.
42167 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
42168 convert to insn_and_split and use new function sh_split_tst_subregs.
42170 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
42172 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
42174 (Optimization Options): Move -fuse-ld documentation to...
42175 (Link Options): ...here.
42177 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
42179 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
42181 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
42182 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
42183 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
42184 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
42185 instead of ZR for the memory operand of LL/SC.
42186 (compare_and_swap_12, sync_add<mode>): Likewise.
42187 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
42188 (sync_new_<optab>_12, sync_nand_12): Likewise.
42189 (sync_old_nand_12, sync_new_nand_12): Likewise.
42190 (sync_sub<mode>, sync_old_add<mode>): Likewise.
42191 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
42192 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
42193 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
42194 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
42195 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
42196 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
42197 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
42198 * doc/md.texi (ZC): Update description.
42200 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
42202 * builtins.c (expand_builtin_atomic_exchange): Remove error when
42203 memory model is CONSUME.
42204 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
42205 expand_builtin_atomic_store): Change invalid memory model errors to
42207 (expand_builtin_atomic_clear): Change invalid model errors to warnings
42208 and issue warning for CONSUME.
42210 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
42212 * lto-cgraph: Update function comments for
42213 lto_symtab_encoder_encode_*.
42215 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
42217 * Makefile.in (site.exp): Do not set ENABLE_LTO.
42219 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
42221 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
42222 * lto-cgraph.c (select_what_to_stream): Remove argument, use
42223 lto_stream_offload_p instead.
42224 * lto-streamer.h (select_what_to_stream): Remove argument.
42225 * passes.c (ipa_write_summaries): Likewise.
42226 * tree-pass.h (ipa_write_summaries): Likewise.
42228 2015-01-14 Richard Biener <rguenther@suse.de>
42230 PR tree-optimization/59354
42231 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
42232 groups larger than the slp group size as having gaps.
42234 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
42236 PR middle-end/59448
42237 * builtins.c (get_memmodel): Promote consume to acquire always.
42239 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
42242 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
42245 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
42248 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
42250 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
42251 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
42252 AVX512VBMI, as it implies AVX512BW.
42254 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
42257 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
42258 (vec_unpacks_hi_v16sf): Ditto.
42260 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
42262 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
42265 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
42267 * doc/invoke.texi (mapcs): Mention deprecation.
42268 (mapcs-frame): Likewise.
42270 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
42273 * config/arm/arm.c (callee_saved_reg_p): Define.
42274 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
42275 register is callee saved instead of !call_used_regs[reg].
42276 (thumb1_compute_save_reg_mask): Likewise.
42278 2015-01-14 Hale Wang <hale.wang@arm.com>
42280 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
42283 2015-01-14 Richard Biener <rguenther@suse.de>
42286 * tree-inline.c (insert_debug_decl_map): Check destination
42287 function MAY_HAVE_DEBUG_STMTS.
42288 (insert_init_debug_bind): Likewise.
42289 (insert_init_stmt): Remove redundant check.
42290 (remap_gimple_stmt): Drop debug stmts if the destination
42291 function has var-tracking assignments disabled.
42293 2015-01-14 Martin Liska <mliska@suse.cz>
42295 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
42296 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
42298 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
42301 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
42302 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
42304 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
42306 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
42307 level from an ARCH; do not inject the default.
42308 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
42309 MIPS_ISA_LEVEL_SPEC.
42310 (MIPS_ISA_NAN2008_SPEC): Update comment.
42311 (BASE_DRIVER_SELF_SPECS): Likewise.
42312 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
42313 MIPS_DEFAULT_ISA_LEVEL_SPEC.
42314 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
42315 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
42316 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
42318 2015-01-14 Richard Biener <rguenther@suse.de>
42320 PR tree-optimization/64493
42321 PR tree-optimization/64495
42322 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
42323 assign the proper vectorized PHI to the inner loop exit PHIs.
42325 2015-01-14 Joey Ye <joey.ye@arm.com>
42327 * config/arm/arm.c (arm_compute_save_reg_mask):
42328 Do not save lr in case of tail call.
42329 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
42331 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
42333 * tree-vrp.c (check_array_ref): Emit more warnings
42334 for warn_array_bounds >= 2.
42335 * common.opt: New option -Warray-bounds=.
42336 * doc/invoke.texi: Document -Warray-bounds=.
42338 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
42340 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
42341 (mforbid-fp-as-gp): Remove.
42343 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
42344 (nds32_symbol_load_store_p): Remove.
42345 (nds32_fp_as_gp_check_available): Clean up implementation.
42346 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
42348 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
42349 fp-as-gp and ex9 cases.
42351 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
42353 * tree-profile.c (init_ic_make_global_vars): Drop workaround
42354 for bintuils bug 14342.
42355 (init_ic_make_global_vars): Likewise.
42356 (gimple_init_edge_profiler): Likewise.
42357 (gimple_gen_ic_func_profiler): Likewise.
42359 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
42361 * ipa-inline.c (inline_small_functions): Swap the operands in
42364 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
42367 * ipa-inline-analysis.c (node_growth_cache): Remove.
42368 (initialize_growth_caches): Do not initialize it.
42369 (free_growth_caches): Do not free it.
42370 (do_estimate_growth): Rename to ...
42371 (estimate_growth): ... this one; drop growth cache code.
42372 (growth_likely_positive): Always go the heuristics way.
42373 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
42374 (reset_edge_caches): Do not reset node growth.
42375 (heap_edge_removal_hook): Do not maintain cache.
42376 (inline_small_functions): Likewise; strenghten sanity check.
42377 (ipa_inline): Do not maintain caches.
42378 * ipa-inline.h (node_growth_cache): Remove.
42379 (do_estimate_growth): Remove to ...
42380 (estimate_growth): this one; remove inline version.
42381 (reset_node_growth_cache): Remove.
42383 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
42386 * ipa-inline.c (inline_small_functions): Update callee keys after
42387 resolving speculation
42388 (inline_small_functions): Always check monotonicity of the queue.
42390 2015-01-13 Marek Polacek <polacek@redhat.com>
42392 PR middle-end/64391
42393 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
42395 2015-01-13 Jakub Jelinek <jakub@redhat.com>
42397 PR rtl-optimization/64286
42398 * ree.c (combine_reaching_defs): Move part of comment earlier,
42399 remove !SCALAR_INT_MODE_P check.
42400 (add_removable_extension): Don't add vector mode
42401 extensions if all uses of the source register aren't the same
42404 2015-01-13 Renlin Li <renlin.li@arm.com>
42406 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
42407 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
42409 2015-01-13 Martin Liska <mliska@suse.cz>
42411 * ipa-icf.c (sem_function::equals_private): Call new functions
42412 cl_target_option_print_diff and cl_optimization_print_diff.
42413 * optc-save-gen.awk (cl_target_option_print_diff): New function.
42414 (cl_optimization_print_diff): Likewise.
42415 * opth-gen.awk: Likewise.
42417 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
42419 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
42420 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
42421 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
42422 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
42423 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
42424 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
42426 2015-01-13 Andrew Pinski <apinski@cavium.com>
42428 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
42429 instead of src mode.
42431 2015-01-13 Richard Biener <rguenther@suse.de>
42434 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
42437 2015-01-13 Andrew Pinski <apinski@cavium.com>
42439 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
42441 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
42443 2015-01-13 Jakub Jelinek <jakub@redhat.com>
42445 PR middle-end/63974
42446 * cfgexpand.c (expand_computed_goto): Don't call
42447 convert_memory_address here.
42449 2015-01-13 Richard Biener <rguenther@suse.de>
42451 PR tree-optimization/64406
42452 * tree-loop-distibution.c (pass_loop_distribution::execute):
42453 Reset the SCEV hashtable if we distributed anything.
42455 2015-01-13 Richard Biener <rguenther@suse.de>
42457 PR tree-optimization/64404
42458 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
42459 SLP types for CSEd loads.
42461 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
42463 PR tree-optimization/64436
42464 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
42465 merge of two symbolic numbers for a bitwise OR to ...
42466 (perform_symbolic_merge): This. Also fix computation of the range and
42467 end of the symbolic number corresponding to the result of a bitwise OR.
42469 2015-01-13 Richard Biener <rguenther@suse.de>
42471 PR tree-optimization/64568
42472 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
42473 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
42475 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
42477 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
42478 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
42480 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
42482 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
42483 target-specific symbol_ref flag.
42484 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
42485 resides in rodata section.
42486 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
42487 (nds32_encode_section_info): New function.
42489 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
42491 * config/nds32/nds32.md (call): Use pseudo instruction bal which
42492 clobbers TA_REGNUM if large code model is specified.
42493 (call_register): Likewise.
42494 (call_immediate): Likewise.
42495 (call_value): Likewise.
42496 (call_value_register): Likewise.
42497 (call_value_immediate): Likewise.
42499 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
42501 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
42502 (TARGET_CMODEL_MEDIUM): New macro.
42503 (TARGET_CMODEL_LARGE): New macro.
42504 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
42505 code model setting in assembly code.
42507 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
42509 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
42510 Remove MASK_GP_DIRECT flag.
42511 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
42512 one of the multilib default options.
42513 * config/nds32/nds32.opt (mgp-direct): Remove.
42514 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
42515 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
42517 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
42519 * config/nds32/nds32.opt (mcmodel): Add new option.
42520 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
42521 to describe code model.
42523 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
42526 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
42528 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
42530 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
42531 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
42532 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
42533 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
42534 __builtin_sh_set_fpscr.
42536 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
42538 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
42539 after a funtion name just to indicate it is a function.
42540 ([-fsanitize-undefined-trap-on-error]): Likewise.
42541 ([-fdbg-cnt=]): Likewise.
42542 ([-mmemcpy]): Likewise.
42543 ([-mflush-func]): Likewise.
42544 ([-msynci]): Likewise.
42546 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
42548 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
42551 2015-01-12 Jakub Jelinek <jakub@redhat.com>
42553 PR tree-optimization/64563
42554 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
42555 instead of != VR_VARYING.
42558 * config/i386/i386.c (ix86_expand_prologue): Add
42559 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
42561 PR tree-optimization/64454
42562 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
42563 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
42564 for signed or [0, op1 - 1] for unsigned modulo.
42565 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
42566 even if op1 does not satisfy integer_pow2p.
42569 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
42571 2015-01-12 Jeff Law <law@redhat.com>
42574 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
42575 (trunchiqi2, truncsihi2): Similarly.
42577 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
42578 rather than calling F.
42580 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
42582 * tsan.c (instrument_expr): Use force_gimple_operand.
42583 Use may_be_nonaddressable_p instead of is_gimple_addressable.
42585 2015-01-12 Richard Biener <rguenther@suse.de>
42587 PR tree-optimization/64530
42588 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
42591 2015-01-12 Richard Biener <rguenther@suse.de>
42593 PR middle-end/64357
42594 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
42597 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
42599 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
42600 Cortex-A17 tuning parameters.
42601 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
42603 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
42605 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
42606 * config/arm/arm.c (arm_macro_fusion_p): New function.
42607 (arm_macro_fusion_pair_p): Likewise.
42608 (TARGET_SCHED_MACRO_FUSION_P): Define.
42609 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
42610 (ARM_FUSE_NOTHING): Likewise.
42611 (ARM_FUSE_MOVW_MOVT): Likewise.
42612 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
42613 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
42614 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
42615 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
42616 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
42617 arm_cortex_a5_tune): Specify fuseable_ops value.
42619 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
42622 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
42623 test for PIE with copy reloc.
42624 * configure: Regenerated.
42626 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
42628 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
42630 (arm_tls_descseq_addr): Likewise.
42631 (arm_gen_movmemqi): Likewise.
42632 (arm_expand_epilogue_apcs_frame): Likewise.
42633 (arm_expand_epilogue): Likewise.
42634 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
42637 2015-01-12 Martin Liska <mliska@suse.cz>
42640 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
42641 volatility for correct operands.
42643 2015-01-12 Martin Liska <mliska@suse.cz>
42645 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
42646 indication that a function is not leaf.
42647 (sem_function::compare_polymorphic_p): Likewise.
42649 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
42651 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
42652 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
42653 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
42654 fold-const.h, tree-check.h.
42656 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
42660 * ipa-inline.c (compute_uninlined_call_time,
42661 compute_inlined_call_time): Use counts for extra precision when
42663 (big_speedup_p): Fix formating.
42664 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
42665 (relative_time_benefit): Remove.
42666 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
42667 merge guessed and read profile paths.
42668 (inline_small_functions): Count only !optimize_size functions into
42669 initial size; be more lax about sanity check when profile is used;
42670 be sure to update inlined function profile when profile is read.
42672 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
42675 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
42676 cost when edge becomes direct.
42677 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
42678 is resolved or when introducing new speculation.
42680 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
42684 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
42685 '||' to fix typo issue.
42687 * tree.h (target_opts_for_fn): Check NULL_TREE since it can
42688 accept and return NULL.
42690 2015-01-12 Martin Liska <mliska@suse.cz>
42692 * cgraph.c (cgraph_edge::remove_callee): Move function to header
42693 file for being inlined.
42694 (cgraph_set_edge_callee): Delete.
42695 (cgraph_edge::redirect_callee): Move function to header file
42697 (cgraph_edge::make_direct): Use new function.
42698 (cgraph_edge::dump_edge_flags): New function created from
42699 static dump_edge_flags function.
42700 (cgraph_node::dump): Use new function.
42701 (cgraph_edge::verify_count_and_frequency): New function created
42702 from verify_edge_count_and_frequency.
42703 (cgraph_edge::verify_corresponds_to_fndecl): New function created
42704 from verify_edge_corresponds_to_fndecl.
42705 (verify_edge_corresponds_to_fndecl): Delete.
42706 (cgraph_node::verify_node): Use new function.
42707 * cgraph.h (cgraph_edge::set_callee): New function.
42708 (cgraph_edge::dump_edge_flags): Likewise.
42709 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
42711 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
42713 * ipa-utils.c (estimate_function_body_sizes): Do not
42714 free node params when called late with early=true.
42716 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
42718 * doc/md.texi (Instruction Patterns): Rewrite text for
42720 (Example): Likewise.
42722 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
42724 * doc/invoke.texi (Option Summary): Break long lines.
42725 [(-fdiagnostics-color)]: Put long literal in @smallexample
42727 [(-fsanitize-recover)]: Likewise.
42728 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
42729 [(-ffast-math)]: Likewise.
42730 [(--param max-inline-insns-recursive)]: Likewise.
42731 [(--param max-inline-recursive-depth)]: Likewise.
42732 [(-mno-text-section-literals)]: Likewise.
42734 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
42736 * doc/install.texi: Update for libgomp being renamed from "GNU
42737 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
42739 * doc/sourcebuild.texi: Likewise.
42741 2015-01-10 Anthony Green <green@moxielogic.com>
42743 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
42744 mul.x availability for moxiebox configuration.
42746 2015-01-09 Anthony Green <green@moxielogic.com>
42748 * config/moxie/moxie.md: Tabify assembly output.
42750 2015-01-09 Anthony Green <green@moxielogic.com>
42752 * config/moxie/moxie.md (CC_REG): Correct register definition.
42754 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
42756 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
42757 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
42760 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
42762 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
42764 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
42765 Jakub Jelinek <jakub@redhat.com>
42767 PR middle-end/64412
42768 * lto-streamer.h (lto_stream_offload_p): New declaration.
42769 * lto-streamer.c (lto_stream_offload_p): New variable.
42770 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
42771 at the same time as section_name_prefix.
42772 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
42773 if lto_stream_offload_p.
42774 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
42775 stream TREE_TARGET_OPTION if lto_stream_offload_p.
42776 (write_ts_function_decl_tree_pointers): Don't
42777 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
42778 * tree-streamer-in.c (unpack_value_fields): Don't stream
42779 TREE_TARGET_OPTION in if ACCEL_COMPILER.
42780 (lto_input_ts_function_decl_tree_pointers): Don't stream
42781 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
42782 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
42783 instead of section_name_prefix string comparisons.
42785 2015-01-09 Jakub Jelinek <jakub@redhat.com>
42787 PR rtl-optimization/64536
42788 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
42791 2015-01-09 Michael Collison <michael.collison@linaro.org>
42793 PR tree-optimization/64322
42794 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
42795 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
42797 2015-01-09 Tom de Vries <tom@codesourcery.com>
42799 PR rtl-optimization/64539
42800 * regcprop.c (kill_clobbered_values): Factor out of ...
42801 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
42802 instead of note_stores with kill_clobbered_value.
42804 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
42806 * ginclude/unwind-arm-common.h: Revert previous commit.
42808 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
42810 * config.gcc (arm*-*-freebsd*): New configuration.
42811 * config/arm/freebsd.h: New file.
42812 * config.host: Add extra components for arm*-*-freebsd*.
42813 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
42814 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
42816 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
42818 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
42820 * config/rs6000/t-rtems: Add e6500 multilibs.
42822 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
42824 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
42827 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
42829 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
42830 MULTILIB_EXCEPTIONS.
42832 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
42834 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
42835 MULTILIB_EXCEPTIONS.
42837 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
42839 * config/arm/t-rtems-eabi: Rename to...
42840 * config/arm/t-rtems: ...this.
42841 * config/arm/rtems-eabi.h: Rename to...
42842 * config/arm/rtems.h: ...this.
42843 * config.gcc (arm*-*-rtems*): Reflect changes above.
42845 2015-01-09 Richard Biener <rguenther@suse.de>
42847 PR tree-optimization/64410
42848 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
42850 (execute_update_addresses_taken): Deal with that.
42851 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
42852 loads/stores for complex variables.
42854 2015-01-09 Martin Liska <mliska@suse.cz>
42856 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
42858 (func_checker::compare_memory_operand): New function.
42859 (func_checker::compare_operand): Split case to newly
42861 (func_checker::compare_cst_or_decl): New function.
42862 (func_checker::compare_gimple_call): Identify
42864 (func_checker::compare_gimple_assign): Likewise.
42865 * ipa-icf-gimple.h: New function.
42867 2015-01-09 Martin Liska <mliska@suse.cz>
42870 * sreal.c (sreal::dump): Change unsigned format to signed for
42872 (sreal::to_double): Replace exp2 with scalbln.
42874 2015-01-09 Martin Liska <mliska@suse.cz>
42876 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
42877 * ipa-icf.c (sem_function::equals_private): Add support for target and
42878 (sem_item_optimizer::merge_classes): Remove redundant function
42879 optimization flags comparison.
42880 * tree.h (target_opts_for_fn): New function.
42882 2015-01-09 Tom de Vries <tom@codesourcery.com>
42884 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
42886 2015-01-09 Kito Cheng <kito@0xlab.org>
42888 PR rtl-optimization/64348
42889 * lra-constraints.c (split_reg): Fix caller-save store/restore
42890 instruction generation.
42892 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
42894 PR gcov-profile/61790
42895 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
42896 long long. Fallback to int64_t if host doesn't have long long and
42897 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
42899 2015-01-08 Jakub Jelinek <jakub@redhat.com>
42901 PR tree-optimization/63989
42902 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
42903 from 1000 to 10000.
42904 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
42905 (get_stridx): If we don't have a record for certain SSA_NAME,
42906 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
42907 constant offset, call get_stridx_plus_constant.
42908 (get_stridx_plus_constant): New function.
42909 (zero_length_string): Don't use get_stridx here.
42912 PR middle-end/64388
42913 * dse.c (struct insn_info): Mention frame_read set also
42914 before reload for tail calls on some targets.
42915 (scan_insn): Revert 2014-12-22 change. Set frame_read
42916 also before reload for tail calls if
42917 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
42918 instead of add_non_frame_wild_read for non-const/memset
42919 tail calls after reload.
42921 2015-01-08 Jason Merrill <jason@redhat.com>
42923 * ubsan.c (do_ubsan_in_current_function): New.
42924 (pass_ubsan::gate): Use it.
42925 * ubsan.h: Declare it.
42926 * convert.c (convert_to_integer): Use it.
42928 2015-01-08 Jakub Jelinek <jakub@redhat.com>
42931 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
42932 compare_code when it is unconditionally overwritten afterwards.
42933 Use ix86_reverse_condition instead of reverse_condition. Don't
42934 change code if *reverse_condition* returned UNKNOWN and don't
42935 swap ct/cf and negate diff in that case.
42937 2015-01-08 Mike Stump <mikestump@comcast.net>
42939 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
42940 (pass_tsan_O0::gate): Likewise.
42941 * extend.texi (Function Attributes): Add no_sanitize_thread
42944 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
42946 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
42947 for registering builtins.
42948 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
42949 add -fopenmp to the argv_obstack used when invoking
42950 compile_for_target.
42952 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
42953 add "-m32" or "-m64" to argv_obstack.
42954 (generate_host_descr_file): Likewise, when invoking host_compiler.
42955 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
42958 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
42960 * config/sh/sh-mem.cc: Use constant as second operand when emitting
42963 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
42966 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
42967 constant load if constant operand fits into I08.
42969 2015-01-08 Jakub Jelinek <jakub@redhat.com>
42972 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
42973 and TREE_THIS_VOLATILE for MEM_REFs.
42974 (build5_stat): Fix up initialization of TREE_READONLY and
42975 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
42977 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
42980 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
42981 of r for the second alternative of the destination operand.
42983 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
42986 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
42988 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
42990 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
42992 ([-fivar-visibility], [-fvisibility]): Likewise.
42994 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
42996 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
42997 the file where @code, @command, etc is more appropriate.
42999 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
43001 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
43002 of -mrecip= documentation.
43004 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
43007 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
43008 correct reload handler if -m32 -mpowerpc64 is used.
43010 2015-01-06 Tom de Vries <tom@codesourcery.com>
43012 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
43014 2015-01-08 Christian Bruel <christian.bruel@st.com>
43017 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
43019 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
43021 PR tree-optimization/63259
43022 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
43023 if optab exists for 16bit byteswap.
43025 2015-01-06 Jakub Jelinek <jakub@redhat.com>
43027 * opts.c (common_handle_option): Add support for
43028 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
43029 * doc/invoke.texi: Document -fno-sanitize=all,
43030 -f{,no-}sanitize-recover=all. Document that
43031 -fsanitize=float-cast-overflow is not enabled
43032 by -fsanitize=undefined. Fix up documentation
43033 of -f{,no-}sanitize-recover.
43035 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
43037 * config.gcc: Add Visium support.
43038 * configure.ac: Likewise.
43039 * configure: Regenerate.
43040 * doc/extend.texi (interrupt attribute): Add Visium.
43041 * doc/invoke.texi: Document Visium options.
43042 * doc/install.texi: Document Visium target.
43043 * doc/md.texi: Document Visium constraints.
43044 * common/config/visium: New directory.
43045 * config/visium: Likewise.
43047 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
43049 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
43050 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
43052 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
43054 * combine.c (combine_validate_cost): Do not count the cost of a
43055 split I2 twice. Do not display it twice in the dump, either.
43057 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
43059 Revert parts of r219199.
43060 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
43062 ([-Wtraditional]): Restore markup on <limits.h>.
43064 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
43067 * doc/invoke.texi: Document -Wsuggest-override.
43069 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
43071 PR rtl-optimization/64287
43072 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
43073 (process_options): Disable flag_ipa_ra if profiling.
43075 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
43077 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
43079 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
43081 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
43082 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
43083 put under #if TARGET_LOOPS guard.
43085 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
43087 * config/i386/i386.c (output_387_binary_op): Use std::swap.
43089 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
43091 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
43092 * rtl.h (refers_to_regno_p): Add overload.
43094 * bt-load.c: Likewise.
43095 * combine.c: Likewise.
43096 * df-scan.c: Likewise.
43097 * sched-deps.c: Likewise.
43098 * config/s390/s390.c: Likewise.
43099 * config/m32r/m32r.c: Likewise.
43100 * config/rs6000/spe.md: Likewise.
43101 * config/rs6000/rs6000.c: Likewise.
43102 * config/pa/pa.c: Likewise.
43103 * config/stormy16/stormy16.c: Likewise.
43104 * config/cris/cris.c: Likewise.
43105 * config/arc/arc.md: Likewise.
43106 * config/arc/arc.c: Likewise.
43107 * config/sh/sh.md: Likewise.
43108 * config/sh/sh.c: Likewise.
43109 * config/frv/frv.c: Likewise.
43111 2015-01-05 Jakub Jelinek <jakub@redhat.com>
43114 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
43115 call as cleanup of the whole body.
43116 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
43117 * tsan.c (replace_func_exit): New function.
43118 (instrument_func_exit): Moved earlier.
43119 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
43120 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
43122 (tsan_pass): Don't call instrument_func_exit.
43123 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
43124 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
43128 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
43129 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
43130 it to libubsan handler instead of EXPR. Fold comparisons earlier,
43131 if the result is integer_zerop, return NULL_TREE.
43132 * convert.c (convert_to_integer): Pass expr as ARG.
43134 PR tree-optimization/64465
43135 * tree-inline.c (redirect_all_calls): During inlining
43136 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
43137 changed the stmt to a non-throwing call.
43139 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
43141 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
43142 etc markup throughout the file.
43144 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
43146 Enable experimental TSAN support for Ada.
43147 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
43149 2015-01-05 Jakub Jelinek <jakub@redhat.com>
43151 PR tree-optimization/64494
43152 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
43153 clear SSA_NAME_ANTI_RANGE_P flag.
43155 2015-01-05 Marek Polacek <polacek@redhat.com>
43157 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
43159 2015-01-05 Jakub Jelinek <jakub@redhat.com>
43161 Update copyright years.
43163 * gcc.c (process_command): Update copyright notice dates.
43164 * gcov-dump.c: Ditto.
43166 * doc/cpp.texi: Bump @copying's copyright year.
43167 * doc/cppinternals.texi: Ditto.
43168 * doc/gcc.texi: Ditto.
43169 * doc/gccint.texi: Ditto.
43170 * doc/gcov.texi: Ditto.
43171 * doc/install.texi: Ditto.
43172 * doc/invoke.texi: Ditto.
43174 * auto-profile.c, auto-profile.h: Fix up Copyright line.
43176 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
43178 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
43180 ([-fvtable-verify], [-fvtv-debug]): Likewise.
43181 ([-Wabi]): Likewise.
43182 ([-fmessage-length]): Likewise.
43183 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
43184 ([-Wno-discarded-qualifiers]): Likewise.
43185 ([-Wnodiscarded-array-qualifiers]): Likewise.
43186 ([-Wno-virtual-move-assign]): Likewise.
43187 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
43188 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
43189 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
43190 ([-fsanitize-undefined-trap-on-error]): Likewise.
43191 ([-floop-interchange]): Likewise.
43192 ([-ftree-coalesce-inlined-vars]): Likewise.
43193 ([-fvect-cost-model]): Likewise.
43194 ([-flto]): Likewise.
43195 ([--param]): Likewise.
43196 (Spec Files): Likewise.
43197 ([-mstrict-align]): Likewise.
43198 ([-mfix-cortex-a53-835769]): Likewise.
43199 ([-march], [-mtune]): Likewise.
43200 ([-mpic-register]): Likewise.
43201 ([-munaligned-access]): Likewise.
43202 ([-msp8]): Likewise.
43203 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
43204 (AVR Built-in Macros): Likewise.
43205 ([-mpreferred-stack-boundary]): Likewise.
43206 ([-mtune-crtl]): Likewise.
43207 ([-mashf]): Likewise.
43208 ([-mmcu=]): Likewise.
43209 ([-minrt]): Likewise.
43210 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
43211 ([-mupper-regs]): Likewise.
43212 ([-matomic-model]): Likewise.
43213 ([-mdiv]): Likewise.
43214 ([-mzdcbranch]): Likewise.
43215 ([-mdisable-callt]): Likewise.
43216 ([-msoft-float]): Likewise.
43217 ([-m8byte-align]): Likewise.
43218 ([-fstack-reuse]): Likewise.
43220 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
43222 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
43223 Fix markup, light copy-editing.
43224 ([-fauto-profile]): Rewrite to fix formatting and content
43227 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
43229 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
43230 Copy-edit description.
43231 ([-fisolate-erroneous-paths-attribute]): Likewise.
43232 * common.opt (fisolate-erroneous-paths-dereference):
43233 Copy-edit description.
43234 (fisolate-erroneous-paths-attribute): Likewise.
43236 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
43238 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
43241 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
43243 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
43244 ([-fvtv-debug]): Likewise.
43245 ([-Wc++-compat]): Likewise.
43246 ([-Wc++11-compat]): Likewise.
43247 ([-Wc++14-compat]): Likewise.
43248 ([-Wno-sized-deallocation]): Likewise.
43249 ([-femit-class-debug-always]): Likewise.
43250 ([-femit-struct-debug-detailed]): Likewise.
43251 ([-fno-keep-inline-dllexport]): Likewise.
43252 ([-fira-algorithm]): Likewise.
43253 ([-fira-region]): Likewise.
43254 ([-flra-remat]): Likewise.
43255 ([-fipa-ra]): Likewise.
43256 ([-fhoist-adjacent-loads]): Likewise.
43257 ([-fisolate-erroneous-paths-dereference]): Likewise.
43258 ([-fisolate-erroneous-paths-attribute]): Likewise.
43259 ([-ftree-switch-conversion]): Likewise.
43260 ([-ftree-tail-merge]): Likewise.
43261 ([-ftree-loop-if-convert]): Likewise.
43262 ([-ftree-loop-if-convert-stores]): Likewise.
43263 ([-ftree-loop-distribution]): Likewise.
43264 ([-ftree-loop-distribute-patterns]): Likewise.
43265 ([-flto-compression-level]): Likewise.
43266 ([-flto-report]): Likewise.
43267 ([-flto-report-wpa]): Likewise.
43268 ([-fuse-linker-plugin]): Likewise.
43269 ([-mfix-cortex-a53-835769]): Likewise.
43270 ([-mno-fix-cortex-a53-835769]): Likewise.
43271 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
43272 explicit listing; add a note to the discussion indicating they
43273 exist. Reorder table to group similar options. Add missing
43274 @opindex entries. Add @need commands throughout the table to
43275 allow it to be split across multiple pages.
43276 ([-m8bit-idiv]): Fix @opindex.
43277 ([-mavx256-split-unaligned-load]): Likewise.
43278 ([-mavx256-split-unaligned-store]): Likewise.
43279 ([-mstack-protector-guard]): Likewise.
43280 ([-mcpu=]): Likewise.
43281 ([-mcpu]): Likewise.
43282 ([-mpointer-size=]): Likewise.
43284 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
43286 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
43287 instead of `m' constraint. Likewise for unnamed movb comparison
43288 patterns using reg_before_reload_operand predicate.
43289 * config/pa/predicates.md (reg_before_reload_operand): Tighten
43290 predicate to reject register index and LO_SUM DLT memory forms
43293 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
43295 * doc/invoke.texi (Option Summary): Fix spelling of
43296 -fdevirtualize-at-ltrans.
43297 ([-fdevirtualize]): Fix markup.
43298 ([-fdevirtualize-speculatively]): Fix typo.
43299 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
43300 implementor-speaky.
43301 * common.opt (fdevirtualize-at-ltrans): Likewise.
43302 * ipa-devirt.c: Fix typos in comments throughout the file.
43303 (ipa_devirt): Fix typos in format strings for dump output.
43305 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
43307 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
43308 discussion of defaults, light copy-editing.
43310 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
43312 * tsan.c (instrument_expr): corrected previous checkin.
43314 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
43316 Instrument bit field and unaligned accesses for TSAN.
43317 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
43318 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
43319 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
43320 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
43321 unaligned memory regions.
43323 2015-01-01 Anthony Green <green@moxielogic.com>
43325 * config/moxie/predicates.md (moxie_general_movsrc_operand):
43326 Restrict move source register offsets to 16 bits.
43328 Copyright (C) 2015 Free Software Foundation, Inc.
43330 Copying and distribution of this file, with or without modification,
43331 are permitted in any medium without royalty provided the copyright
43332 notice and this notice are preserved.