1 2015-12-10 Vladimir Makarov <vmakarov@redhat.com>
3 PR rtl-optimization/68691
4 * lra-spills.c (lra_final_code_change): Check pseudo occurrence
5 number in non-debug insns and remove debug insns if necessary.
7 2015-12-10 Martin Sebor <msebor@redhat.com>
9 * invoke.texi (Warning Options): Update -Wall options. Clarify
10 when some -Wextra options are enabled. Add -Wplacement-new example.
12 2015-12-10 Uros Bizjak <ubizjak@gmail.com>
14 PR tree-optimization/68619
15 * graphite-scop-detection.c (gather_bbs::before_dom_children):
16 Change return type to an edge. Always return NULL.
18 2015-12-10 Jeff Law <law@redhat.com>
20 PR tree-optimization/68619
21 * tree-ssa-dom.c (dom_opt_dom_walker::before_dom_children): Propgate
22 return value from optimize_stmt.
23 (dom_opt_dom_walker): Add new argument to dom_walker constructor.
24 (pass_dominator:execute): If a block has an unreachable edge,
25 remove all jump threads through any successor of the affected block.
26 (record_equivalences_from_phis): Ignore alternative if the edge
27 does not have EDGE_EXECUTABLE set.
28 (single_incoming_edge_ignoring_loop_edges): Similarly.
29 (optimize_stmt): If a gimple_code has a compile-time constant
30 condition, return the edge taken for that constant value. Also
31 change the condition to true/false as necessary.
32 * domwalk.h (dom_walker::dom_walker): Add new argument
33 skip_unreachable_blocks. Don't provide empty constructor body.
34 (dom_walker::before_dom_children): Change return type.
35 (dom_walker::bb_reachable): Declare new private method.
36 (dom_walker::propagate_unreachable_to_edges): Likewise.
37 (dom_walker::m_unreachable_dom): Declare new private data member.
38 (dom_walker::m_skip_unreachable_blocks): Likewise.
39 * domwalk.c: Include dumpfile.h.
40 (dom_walker::dom_walker): New constructor. Initialize private data
41 members. If needed, set EDGE_EXECUTABLE for all edges in the CFG,
42 extracted from tree-ssa-sccvn.c.
43 (dom_walker::bb_reachable): New method extracted from tree-ssa-sccvn.c
44 (dom_walker::propagate_unreachable_to_edges): Likewise.
45 (dom_walker::walk): Only call before_dom_children on reachable
46 blocks. If before_dom_children returns an edge, then clear
47 EDGE_EXECUTABLE for all other outgoing edges from the same block.
48 For unreachable blocks, call propagate_unreachable_to_edges.
49 Similarly, only call after_dom_children on reachable blocks. For
50 unreachable blocks, conditionally clear m_unreachable_dom.
51 * tree-ssa-sccvn.c (sccvn_dom_walker::unreachable_dom): Remove
53 (sccvn_dom_walker::after_dom_children): Use methods from dom_walker
55 (run_scc_vn): Likewise.
56 (sccvn_dom_walker::before_dom_children): Likewise. Return the taken
57 outgoing edge if a COND, SWITCH, or GOTO are optimized.
58 * compare-elim.c (find_comparison_dom_walker::before_dom_children):
59 Change return type to an edge. Always return NULL.
60 * fwprop.c (single_def_use_dom_walker::before_dom_children): Likewise.
61 * gimple-ssa-strength-reduction.c
62 (find_candidates_dom_walker::before_dom_children): Likewise.
63 * ipa-prop.c (analysis_dom_walker::before_dom_children): Likewise.
64 (ipcp_modif_dom_walker::before_dom_children): Likewise.
65 * tree-into-ssa.c (rewrite_dom_walker::before_dom_children): Likewise.
66 (rewrite_update_dom_walker::before_dom_children): Likewise.
67 (mark_def_dom_children::before_dom_children): Likewise.
68 * tree-ssa-dse.c (dse_dom_walker::before_dom_children): Likewise.
70 (invariantness_dom_walker::before_dom_children): Likewise.
71 (move_computations_dom_walker::before_dom_walker): Likewise.
73 (nontrapping_dom_walker::before_dom_children): Likewise.
75 (eliminate_dom_walker::before_dom_children): Likewise.
76 * tree-ssa-propagate.c
77 (substitute_and_fold_dom_walker::before_dom_children): Likewise.
79 (strlen_dom_walker::before_dom_children): Likewise.
81 (uncprop_dom_walker::before_dom_children): Likewise.
83 2015-12-10 Jakub Jelinek <jakub@redhat.com>
85 PR rtl-optimization/68376
86 PR rtl-optimization/68670
87 * ifcvt.c (noce_try_abs): For one_cmpl allow < 0, >= 0
88 or > -1 conditions regardless of negate, and disallow
91 2015-12-10 Ilya Enkovich <enkovich.gnu@gmail.com>
93 * tree-chkp.c (chkp_call_returns_bounds_p): Return true
95 (chkp_fixup_inlined_call): New.
96 * tree-chkp.h (chkp_fixup_inlined_call): New.
97 * tree-stdarg.c: Include tree-chkp.h.
98 (expand_ifn_va_arg_1): Fixup bndret calls for removed
101 2015-12-10 Martin Jambor <mjambor@suse.cz>
103 * tree-inline.c (duplicate_remap_omp_clause_seq): New function.
104 (replace_locals_op): Duplicate gimple sequences in OMP clauses.
106 2015-12-10 David Malcolm <dmalcolm@redhat.com>
108 * graphite-optimize-isl.c (scop_get_domains): Fix indentation.
110 2015-12-10 David Malcolm <dmalcolm@redhat.com>
112 * ifcvt.c (noce_try_inverse_constants): Fix indentation.
114 2015-12-10 David Malcolm <dmalcolm@redhat.com>
116 * regrename.c (scan_rtx_address): Fix indentation.
118 2015-12-10 David Malcolm <dmalcolm@redhat.com>
120 * function.c (locate_and_pad_parm): Fix indentation.
122 2015-12-10 Richard Biener <rguenther@suse.de>
124 * tree-ssa-structalias.c (struct variable_info): Add
125 is_ipa_escape_point flag.
126 (new_var_info): Initialize to false.
127 (find_func_aliases): Generate escape constraints for stores
128 properly in IPA mode.
129 (ipa_pta_execute): Compute is_ipa_escape_point for globals.
131 2015-12-10 Claudiu Zissulescu <claziss@synopsys.com>
133 * config/arc/atomic.md: Add new file.
135 2015-12-10 Claudiu Zissulescu <claziss@synopsys.com>
137 * config/arc/arc-protos.h (arc_expand_atomic_op): Prototype.
138 (arc_split_compare_and_swap): Likewise.
139 (arc_expand_compare_and_swap): Likewise.
140 * config/arc/arc.c (arc_init): Check usage atomic option.
141 (arc_pre_atomic_barrier): New function.
142 (arc_post_atomic_barrier): Likewise.
143 (emit_unlikely_jump): Likewise.
144 (arc_expand_compare_and_swap_qh): Likewise.
145 (arc_expand_compare_and_swap): Likewise.
146 (arc_split_compare_and_swap): Likewise.
147 (arc_expand_atomic_op): Likewise.
148 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): New C macro.
149 (ASM_SPEC): Enable mlock option when matomic is used.
150 * config/arc/arc.md (UNSPEC_ARC_MEMBAR): Define.
151 (VUNSPEC_ARC_CAS): Likewise.
152 (VUNSPEC_ARC_LL): Likewise.
153 (VUNSPEC_ARC_SC): Likewise.
154 (VUNSPEC_ARC_EX): Likewise.
155 * config/arc/arc.opt (matomic): New option.
156 * config/arc/constraints.md (ATO): New constraint.
157 * config/arc/predicates.md (mem_noofs_operand): New predicate.
158 * doc/invoke.texi: Document -matomic.
159 * config/arc/atomic.md: New file.
161 2015-12-10 Richard Biener <rguenther@suse.de>
163 PR tree-optimization/68817
164 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Detect
167 2015-12-10 Ilya Enkovich <enkovich.gnu@gmail.com>
169 * tree-vect-stmts.c (vectorizable_assignment): Support
170 useless boolean conversion.
172 2015-12-10 Alan Lawrence <alan.lawrence@arm.com>
174 * doc/install.texi: Add note against GNAT 4.8 on ARM targets.
176 2015-12-10 Jakub Jelinek <jakub@redhat.com>
178 PR tree-optimization/68785
179 * gimple-fold.c (fold_ctor_reference): Pass return value from
180 native_encode_expr to native_interpret_expr.
181 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Likewise.
183 2015-12-10 Richard Biener <rguenther@suse.de>
186 * tree-ssa-structalias.c (set_uids_in_ptset): Add fndecl
187 parameter and make vars_contains_nonlocal properly have
188 function-scope semantics in IPA mode.
189 (find_what_var_points_to): Add fndecl parameter.
190 (find_what_p_points_to): Likewise.
191 (pt_solution_includes_global): Remove IPA PTA early out.
192 (compute_points_to_sets): Adjust.
193 (ipa_pta_execute): Likewise. Clear final_solutions after
196 2015-12-10 Tom de Vries <tom@codesourcery.com>
199 * doc/include/fdl.texi: Add nodefaultgnufreedocumentationlicensenode
200 ifdef to allow disabling default @node GNU Free Documentation License.
202 2015-12-10 Richard Biener <rguenther@suse.de>
204 * tree-ssa-structalias.c (create_function_info_for): Add missing
205 constraint from nonlocal for DECL_RESULT.
207 2015-12-10 Richard Biener <rguenther@suse.de>
209 * tree-if-conv.c: Include params.h.
210 (ifcvt_memrefs_wont_trap): Use PARAM_ALLOW_STORE_DATA_RACES
211 instead of flag_tree_loop_if_convert_stores to guard cases
212 we'd introduce store-data-races.
214 2015-12-10 Richard Biener <rguenther@suse.de>
217 * ipa-split.c (split_function): Record return value properly
218 when the split part doesn't set it.
220 2015-12-10 Richard Biener <rguenther@suse.de>
222 PR tree-optimization/68806
223 * tree-vect-loop.c (vect_analyze_loop_2): Properly detect
224 reduction chains and ignore SLP reductions.
226 2015-12-10 Richard Biener <rguenther@suse.de>
228 * tree-if-conv.c (if_convertible_loop_p_1): Do not compute
230 (if_convertible_loop_p): Adjust.
232 2015-12-10 Tom de Vries <tom@codesourcery.com>
234 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Remove
237 2015-12-10 Martin Liska <mliska@suse.cz>
239 * tree-vect-data-refs.c: Free an overwritten dataref.
241 2015-12-09 John David Anglin <danglin@gcc.gnu.org>
244 * config/pa/pa.c (pa_emit_move_sequence): Don't check that mode is
245 consistent with modes of the input and output operands when doing
246 reloads to and from floating point registers. Do reload for all
249 2015-12-08 Jan Hubicka <hubicka@ucw.cz>
253 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Use compare_base_decls
254 (nonoverlapping_component_refs_of_decl_p): Update sanity check.
255 (decl_refs_may_alias_p): Use compare_base_decls.
256 * alias.c: Include cgraph.h
257 (get_alias_set): Add cut-off for recursion.
258 (rtx_equal_for_memref_p): Use rtx_equal_for_memref_p.
259 (compare_base_decls): New function.
260 (base_alias_check): Likewise.
261 (memrefs_conflict_p): Likewise.
262 (nonoverlapping_memrefs_p): Likewise.
263 * alias.h (compare_base_decls): Declare.
265 2015-12-08 Jan Hubicka <hubicka@ucw.cz>
268 * ipa-visibility.c (function_and_variable_visibility): Fix vtable
271 2015-12-08 Jan Hubicka <hubicka@ucw.cz>
275 * ipa-reference.c (ipa_reference_get_not_read_global,
276 ipa_reference_get_not_read_global): Fix WRT aliases.
277 (is_improper): Break out from ...
278 (is_proper_for_analysis): ... here; fix WRT aliases.
279 (analyze_function, generate_summary,
280 ipa_reference_write_optimization_summary,
281 ipa_reference_read_optimization_summary): Use ipa_reference_var_uid.
282 * ipa-refrence.h (ipa_reference_var_uid): New inline.
283 * tree-ssa-alias.c: Revert my accidental previous commit.
284 (ref_maybe_used_by_call_p_1,
285 call_may_clobber_ref_p_1): Use ipa_reference_var_uid.
287 2015-12-09 Andreas Tobler <andreast@gcc.gnu.org>
289 * config/rs6000/freebsd64.h: Remove the redefinition of WCHAR_TYPE.
291 2015-12-09 Aditya Kumar <aditya.k7@samsung.com>
292 Sebastian Pop <s.pop@samsung.com>
294 * graphite-optimize-isl.c: Include isl/ast_build.h
295 (optimize_isl): Set several isl_options_set_* options.
297 2015-12-09 Aditya Kumar <aditya.k7@samsung.com>
298 Sebastian Pop <s.pop@samsung.com>
300 * graphite-sese-to-poly.c (pdr_add_memory_accesses): Iterate in
301 the same order as adding data reference access functions.
303 2015-12-09 Aditya Kumar <aditya.k7@samsung.com>
304 Sebastian Pop <s.pop@samsung.com>
306 * graphite-optimize-isl.c (optimize_isl): Improve dump message.
308 2015-12-09 Marek Polacek <polacek@redhat.com>
310 PR tree-optimization/66949
311 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Don't call
312 single_non_singleton_phi_for_edges to get the PHI from
313 factor_out_conditional_conversion. Use NULL_TREE instead of NULL.
314 (factor_out_conditional_conversion): Adjust declaration. Make it
315 return the newly-created PHI.
317 2015-12-09 James Greenhalgh <james.greenhalgh@arm.com>
319 * config/aarch64/aarch64-protos.h
320 (aarch64_cannot_change_mode_class): Bring back.
321 * config/aarch64/aarch64.c
322 (aarch64_cannot_change_mode_class): Likewise.
323 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Likewise.
324 * config/aarch64/aarch64.md (aarch64_movdi_<mode>low): Use
325 zero_extract rather than truncate.
326 (aarch64_movdi_<mode>high): Likewise.
328 2015-12-09 Jakub Jelinek <jakub@redhat.com>
330 PR tree-optimization/68786
331 * tree-if-conv.c: Include builtins.h.
332 (predicate_mem_writes): Put result of get_object_alignment (ref)
333 into second argument's value.
334 * tree-vect-stmts.c (vectorizable_mask_load_store): Put minimum
335 pointer alignment into second argument's value.
336 * tree-data-ref.c (get_references_in_stmt): Use value of second
337 argument for build_aligned_type, and only the type to build
338 a zero second argument for MEM_REF.
339 * internal-fn.c (expand_mask_load_optab_fn,
340 expand_mask_store_optab_fn): Likewise.
342 2015-12-09 Richard Biener <rguenther@suse.de>
344 PR tree-optimization/68583
345 * tree-if-conv.c (if_convertible_phi_p): Drop
346 flag_tree_loop_if_convert_stores check in favor of the
347 existing any_mask_load_store check.
348 (insert_gimplified_predicates): Likewise.
349 (combine_blocks): Likewise.
350 (tree_if_conversion): Likewise.
351 (ifcvt_memrefs_wont_trap): Properly check
352 flag_tree_loop_if_convert_stores in all places that can end
353 up introducing store-data-races.
354 (if_convertible_gimple_assign_stmt_p): Remove restriction
355 on flag_tree_loop_if_convert_stores for stores we can if-convert
356 without introducing store-data-races. Force versioning for
357 all if-converted stores.
359 2015-12-09 Tom de Vries <tom@codesourcery.com>
361 PR tree-optimization/68716
362 * tree-ssa-structalias.c (find_func_clobbers): Fix handling of
363 BUILT_IN_GOMP_PARALLEL and BUILT_IN_GOACC_PARALLEL.
365 2015-12-09 Martin Liska <mliska@suse.cz>
367 * hash-traits.h (struct typed_delete_remove): New function.
368 (typed_delete_remove ::remove): Likewise.
369 * tree-ssa-loop-ivopts.c (struct iv_common_cand): Replace
371 (record_common_cand): Replace XNEW with operator new.
373 2015-12-09 Martin Liska <mliska@suse.cz>
375 * tree-if-conv.c (ifcvt_local_dce): Replace vec with auto_vec.
377 2015-12-09 Martin Liska <mliska@suse.cz>
380 * ipa-icf.c (sem_function::param_used_p): Return true
381 if ipa_node_params_sum equals to NULL.
383 2015-12-09 Richard Biener <rguenther@suse.de>
385 PR tree-optimization/68583
386 * tree-if-conv.c (ifc_dr): Make flags bool, add w_unconditionally
387 flag and rename predicates to w_predicate, rw_predicate and
389 (DR_WRITTEN_AT_LEAST_ONCE): Rename to ...
390 (DR_BASE_W_UNCONDITIONALLY): ... this.
391 (DR_W_UNCONDITIONALLY): Add.
392 (hash_memrefs_baserefs_and_store_DRs_read): Adjust. Compute
393 unconditionally written separately from read or written.
394 (ifcvt_memrefs_wont_trap): Properly treat reads.
395 (ifcvt_could_trap_p): Inline ...
396 (if_convertible_gimple_assign_stmt_p): ... here. Refactor
397 to avoid code duplication.
398 (if_convertible_loop_p_1): Adjust and properly initialize
401 2015-12-09 Richard Biener <rguenther@suse.de>
403 * tree-vect-stmts.c (vectorizable_load): Set new vinfo only
404 if it was not yet set.
405 * tree-vectorizer.h (set_vinfo_for_stmt): Assert we don't
406 overwrite an existing entry.
408 2015-12-09 Chung-Lin Tang <cltang@codesourcery.com>
410 * c-family/c-omp.c (c_finish_oacc_wait): Remove add_stmt() call.
411 * c/c-parser.c (c_parser_oacc_wait): Add add_stmt() call.
412 * cp/parser.c (cp_parser_oacc_wait): Add finish_expr_stmt() call.
414 2015-12-08 Jan Hubicka <hubicka@ucw.cz>
417 * symtab.c (symtab_node::equal_address_to): New parameter
419 * cgraph.h (symtab_node::equal_address_to): Update prototype.
421 2015-12-08 DJ Delorie <dj@redhat.com>
423 * config/rx/rx.opt (-mjsr): Add.
424 * config/rx/predicates.md (rx_call_operand): Avoid overflowing
426 * config/rx/rx.c (rx_function_ok_for_sibcall): Likewise for
428 * doc/invoke.texi (-mjsr): Document it.
430 2015-12-08 Jan Hubicka <hubicka@ucw.cz>
433 * lto-streamer.h (lto_symtab_merge_decls, lto_symtab_merge_symbols,
434 lto_symtab_prevailing_decl): MOve to lto-symtab.h.
435 * lto-streamer-out.c (DFS::DFS_write_tree_body): Check that
436 DECL_ABSTRACT_ORIGIN is not error_mark_node.
438 2015-12-08 David Malcolm <dmalcolm@redhat.com>
440 * tree-nested.c (convert_tramp_reference_stmt): Fix indentation.
442 2015-12-08 David Malcolm <dmalcolm@redhat.com>
444 * tree-ssa-loop-unswitch.c (tree_unswitch_outer_loop): Fix
447 2015-12-08 Jan Hubicka <hubicka@ucw.cz>
450 * lto-cgraph.c (compute_ltrans_boundary): Add transparent alias targets
453 2015-12-08 Jan Hubicka <hubicka@ucw.cz>
456 * varpool.c (varpool_node::get_availability): Recurse only on
457 weakrefs with definition in the target.
458 (symbol_table::remove_unreferenced_decls): Keep aliases in the boundary.
460 2015-12-08 Jan Hubicka <hubicka@ucw.cz>
463 * ipa-visibility.c (can_replace_by_local_alias): Look through
464 transparent aliases; refuse weakrefs.
465 (update_visibility_by_resolution_info): Skip transparent aliases in the
468 2015-12-08 Jan Hubicka <hubicka@ucw.cz>
471 * symtab.c (symtab_node::verify_base): Fix thinko in a conditional.
472 (symtab_node::noninterposable_alias): Do not accept transparent
475 2015-12-08 Nathan Sidwell <nathan@acm.org>
477 * config/nvptx/nvptx.c (decl_chunk_size, decl_chunk_mode,
478 decl_offset, init_part, object_size, object_finished): Replace
480 (struct init_frag): ... this new struct variable.
481 (begin_decl_field, output_decl_chunk): Replace with ...
482 (output_init_frag): ... this new function.
483 (nvptx_assemble_value): Reimplement.
484 (nvptx_assemble_integer, nvptx_output_skip): Adjust.
485 (nvptx_assemble_decl_begin, nvptx_assemble_decl_end): Adjust.
486 (nvptx_output_aligned_decl): Call nvptx_assemble_decl_end.
488 2015-12-08 Eric Botcazou <ebotcazou@adacore.com>
492 * cfgexpand.c (set_rtl): Always accept mode mismatch for SSA names
493 with BLKmode promoted mode based on RESULT_DECLs.
495 2015-12-08 Uros Bizjak <ubizjak@gmail.com>
498 * config/i386/i386.c (ix86_option_override_internal): Enable
499 -maccumulate-outgoing-args when %ebp is fixed due to stack
500 realignment requirements.
502 2015-12-08 Tom de Vries <tom@codesourcery.com>
504 PR tree-optimization/68640
505 * omp-low.c (install_var_field): Clear the restrict qualifier on the var
508 2015-12-08 Kirill Yukhin <kirill.yukhin@intel.com>
510 * config/i386/sse.md (define_insn "<avx512>_vec_dup<mode>_1"): Fix
511 assembler to make source always 128bit.
513 2015-12-08 Jakub Jelinek <jakub@redhat.com>
517 * common.opt (Wframe-larger-than=): Add Warning.
518 * opts.h (control_warning_option): Add ARG argument.
519 * opts-common.c (cmdline_handle_error): New function.
520 (read_cmdline_option): Use it.
521 (control_warning_option): Likewise. Add ARG argument.
522 If non-NULL, decode it if needed and pass through
523 to handle_generated_option. Handle CLVC_ENUM like
525 * opts.c (common_handle_option): Adjust control_warning_option
527 (enable_warning_as_error): Likewise.
529 2015-12-08 Matthew Wahab <matthew.wahab@arm.com>
531 * config/aarch64/aarch64-options-extensions.def: Remove
532 AARCH64_FL_RDMA from "fp" and "simd". Remove "pan", "lor",
534 * config/aarch64/aarch64.h (AARCH64_FL_PAN): Remove.
535 (AARCH64_FL_LOR): Remove.
536 (AARCH64_FL_RDMA): Remove.
537 (AARCH64_FL_V8_1): New.
538 (AARCH64_FL_FOR_AARCH8_1): Replace AARCH64_FL_PAN, AARCH64_FL_LOR
539 and AARCH64_FL_RDMA with AARCH64_FL_V8_1.
540 (AARCH64_ISA_RDMA): Replace AARCH64_FL_RDMA with AARCH64_FL_V8_1.
541 * doc/invoke.texi (AArch64 -march): Rewrite initial paragraph and
542 section on -march=native. Group descriptions of permitted
543 architecture names together. Expand description of
545 (AArch64 -mtune): Slightly rework section on -march=native.
546 (AArch64 -mcpu): Slightly rework section on -march=native.
547 (AArch64 Feature Modifiers): Remove "pan", "lor" and "rdma".
548 State that -march=armv8.1-a enables "crc" and "lse".
550 2015-12-08 Eric Botcazou <ebotcazou@adacore.com>
552 * doc/invoke.texi (SPARC options): Fix typo.
554 2015-12-08 Eric Botcazou <ebotcazou@adacore.com>
556 * config/ia64/ia64.c (ia64_emit_probe_stack_range): Adjust.
557 (output_probe_stack_range): Rotate the loop and simplify.
559 2015-12-08 Uros Bizjak <ubizjak@gmail.com>
561 * config/i386/i386.c (ix86_emit_swsqrtsf): Cleanup
562 infinity filterning code.
564 2015-12-08 Ilya Enkovich <enkovich.gnu@gmail.com>
566 PR tree-optimization/68766
567 * tree-vectorizer.c (vectorize_loops): Check for
568 if-converted loops when debug counters are used.
570 2015-12-07 DJ Delorie <dj@redhat.com>
572 * config/rl78/constraints.md (Wfr): Change to be a non-memory
574 * config/rl78/rl78-protos.h (rl78_one_far_p): Declare.
575 * config/rl78/rl78.c (rl78_one_far_p): Define.
576 * config/rl78/rl78-virt (movqi_virt): Fix far memory
578 (movhi_virt): Likewise.
579 (zero_extendqihi2_virt): Likewise.
580 (extendqihi2_virt): Likewise.
581 (add<mode>3_virt): Likewise.
582 (sub<mode>3_virt): Likewise.
583 (andqi3_virt): Likewise.
584 (iorqi3_virt): Likewise.
585 (xorqi3_virt): Likewise.
586 * config/rl78/rl78-real.md (bf,br): Use long forms to avoid reloc
587 overflow in large files.
589 2015-12-07 Eric Botcazou <ebotcazou@adacore.com>
592 * doc/invoke.texi (SPARC options): Document -mstd-struct-return.
593 * config/sparc/sparc.c (sparc_struct_value_rtx): Minor tweaks.
594 * config/sparc/sparc.h (CALL_REALLY_USED_REGISTERS): Define.
595 * config/sparc/sparc.opt (mstd-struct-return): Accept negative.
597 2015-12-07 Steve Ellcey <sellcey@imgtec.com>
599 * reorg.c (optimize_skip): Do not put frame related instructions
600 in annulled delay slots.
601 (steal_delay_list_from_target): Ditto.
602 (fill_slots_from_thread): Ditto.
604 2015-12-07 Evandro Menezes <e.menezes@samsung.com>
606 * config/aarch64/aarch64-cores.def: Use the Exynos M1 sched model.
607 * config/aarch64/aarch64.md: Include "exynos-m1.md".
608 * config/arm/arm.md: Likewise.
609 * config/arm/exynos-m1.md: New file.
611 2015-12-07 Jan Hubicka <hubicka@ucw.cz>
613 * fold-const.c (operand_equal_p): Drop flag_strict_aliasing check.
615 2015-12-07 Nathan Sidwell <nathan@acm.org>
617 * config//nvptx/nvptx.c (write_return): New.
618 (write_fn_proto, nvptx_declare_function_name): Call it.
620 2015-12-07 Jan Hubicka <hubicka@ucw.cz>
623 * symtab.c (ultimate_transparent_alias_target): New inline function.
624 (symbol_table::assembler_names_equal_p): New method; break out from ...
625 (symbol_table::decl_assembler_name_equal): ... here.
626 (symbol_table::change_decl_assembler_name): Also update names and
627 translation links of transparent aliases.
628 (symtab_node::dump_base): Dump transparent_alias.
629 (symtab_node::verify_base): Implement basic transparent alias
631 (symtab_node::make_decl_local): Support localization of weakrefs;
632 recurse to transparent aliases; set TREE_STATIC.
633 (symtab_node::ultimate_alias_target_1): Handle visibility of
635 (symtab_node::resolve_alias): New parmaeter transparent; handle
636 transparent aliases; recurse to aliases of aliases to fix comdat
638 (symtab_node::get_partitioning_class): Handle transparent aliases.
639 * ipa-visibility.c (cgraph_externally_visible_p,
640 varpool_node::externally_visible_p): Visibility of transparent alias
641 depends on its target.
642 (function_and_variable_visibility): Do not tweak visibility of
644 (function_and_variable_visibility): Likewise.
645 * ipa.c (symbol_table::remove_unreachable_nodes): Clear
646 transparent_alias flag.
647 * alias.c (cgraph_node::create_alias, cgraph_node::get_availability):
648 Support transparent aliases.
649 * cgraph.h (symtab_node): Update prototype of resolve_alias;
650 add transparent_alias flag.
651 (symbol_table: Add assembler_names_equal_p.
652 (symtab_node::real_symbol_p): Skip transparent aliases.
653 * cgraphunit.c (cgraph_node::reset): Reset transparent_alias flag.
654 (handle_alias_pairs): Set transparent_alias for weakref.
655 (cgraph_node::assemble_thunks_and_aliases): Do not asemble transparent
657 * lto-cgraph.c (lto_output_node): When outputting same_comdat_group
658 skip symbols not put into boundary; stream transparent_alias.
659 (lto_output_varpool_node): Likewise.
660 (input_overwrite_node, input_varpool_node): Stream transparent alias.
661 * varpool.c (ctor_for_folding, varpool_node::get_availability,
662 varpool_node::assemble_aliases,
663 symbol_table::remove_unreferenced_decls): Handle transparent aliase.
664 (varpool_node::create_alias): Set transparent_alias.
666 2015-12-07 Eric Botcazou <ebotcazou@adacore.com>
670 * cfgexpand.c (set_rtl): Always accept PARALLELs with BLKmode for
671 SSA names based on RESULT_DECLs.
672 * function.c (expand_function_start): Do not create BLKmode REGs
673 for GIMPLE registers when coalescing is enabled.
675 2015-12-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
677 * final.c (shorten_branches): Fix check for basic asm.
678 * ipa-icf-gimple.c (func_checker::compare_gimple_asm): Add check for
681 2015-12-07 Nathan Sidwell <nathan@acm.org>
683 * config/nvptx/nvptx.c (nvptx_output_call_insn): Emit trap after no
686 2015-12-07 David Malcolm <dmalcolm@redhat.com>
688 * pretty-print.c (text_info::set_range): Rename to...
689 (text_info::set_location): ...this, converting 2nd param
690 from source_range to a location_t.
691 * pretty-print.h (text_info::set_location): Convert
692 from inline function to external definition.
693 (text_info::set_range): Delete.
695 2015-12-07 Nathan Sidwell <nathan@acm.org>
697 * config/nvptx/nvptx.c (nvptx_assemble_decl_begin): Look inside
698 complex and vector types. Cope with packed structs.
700 2015-12-07 Kirill Yukhin <kirill.yukhin@intel.com>
703 * config/i386/sse.md: Make 'v' alternative work on 'avx512f' ISA only.
704 Force destination to 512 bits register.
706 2015-12-07 Kirill Yukhin <kirill.yukhin@intel.com>
709 * config/i386/sse.md (define_insn "kunpckhi"): Fix operands order.
710 (define_insn "kunpcksi"): Ditto.
711 (define_insn "kunpckdi"): Ditto.
713 2015-12-06 Kaz Kojima <kkojima@gcc.gnu.org>
715 * config/sh/sh.md (rsqrtsf2): Adjust for canonical form with unspec.
717 2015-12-06 Victoria Stepanyan <victoria.stepanyan@amd.com>
719 * common/config/i386/i386-common.c
720 (OPTION_MASK_ISA_CLZERO_SET): New.
721 (ix86_handle_option): Handle clzero.
722 * config.gcc (i[34567]86-*-*): Add clzerointrin.h,
723 (x86_64-*-*): Likewise.
724 * config/i386/clzerointrin.h: New header.
725 * config/i386/cpuid.h (bit_CLZERO): Define.
726 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
728 * config/i386/i386.opt (clzero): New.
729 * config/i386/i386-c.c: Define __CLZERO__ if needed.
730 * config/i386/i386.c (ix86_target_string): Define -mclzero option.
732 (ix86_option_override_internal): Handle new option.
733 (processor_alias_table): Added PTA_CLZERO.
734 (ix86_valid_target_attribute_inner_p): Add OPT_mclzero.
735 (ix86_builtins): Add IX86_BUILTIN_CLZERO, IX86_BUILTIN_CLZERO.
736 (ix86_expand_builtin): Handle IX86_BUILTIN_CLZERO and
737 IX86_BUILTIN_CLZERO built-ins.
738 * config/i386/i386.h (TARGET_CLZERO): New.
739 * config/i386/i386.md (unspecv): Add UNSPEC_CLZERO.
740 (clzero): New pattern.
741 (clzero_<mode>): New pattern.
742 * config/i386/x86intrin.h: Include clzerointrin.h.
743 * doc/extend.texi: Document clzero builtins.
744 * doc/invoke.texi: Document -mclzero option.
746 2015-12-05 Jan Hubicka <hubicka@ucw.cz>
748 * ipa-icf.c (sem_function::merge): Check that local_original exists.
750 2015-12-05 David Edelsohn <dje.gcc@gmail.com>
753 * config/rs6000/rs6000-protos.h (rs6000_emit_swsqrt): Rename and add
755 * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Rename. Add
757 * config/rs6000/rs6000.md (rsqrt<mode>2): Call new function name.
758 (sqrt<mode>2): Replace define_insn with define_expand that may call
761 2015-12-04 Aditya Kumar <aditya.k7@samsung.com>
762 Sebastian Pop <s.pop@samsung.com>
764 * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
766 (get_rename_from_scev): Check that all the ops in an expression
767 have their uses dominated by corresponding defs.
769 2015-12-04 Aditya Kumar <aditya.k7@samsung.com>
770 Sebastian Pop <s.pop@samsung.com>
772 PR tree-optimization/68693
773 * graphite-scop-detection.c (dot_all_sese): New
774 (dot_all_scops_1): Renamed to dot_all_sese.
775 (dot_all_scops): Removed.
778 (scop_detection::get_nearest_dom_with_single_entry): Check that
779 preds are from different loop levels.
780 (scop_detection::get_nearest_pdom_with_single_exit): Check that
781 succs are from different loop levels.
782 (scop_detection::print_sese): Inlined.
783 (scop_detection::print_edge): New.
784 (scop_detection::merge_sese): Added dumps.
785 * graphite.h: Add declarations.
787 2015-12-04 James Greenhalgh <james.greenhalgh@arm.com>
789 * config/aarch64/aarch64.md (add<mode>3_pluslong): Add register
792 2015-12-04 Vladimir Makarov <vmakarov@redhat.com>
794 PR rtl-optimization/68349
795 * lra-eliminations.c (move_plus_up): New function.
796 (lra_eliminate_regs_1): Use the function.
798 2015-12-04 Nathan Sidwell <nathan@acm.org>
800 * config/nvptx/nvptx.c (nvptx_assemble_decl_begin): New, replacing ...
801 (init_output_initializer): ... this.
802 (nvptx_output_aligned_decl, nvptx_asm_declare_constant_name,
803 nvptx_declare_object_name, nvptx_assemble_undefined_decl): Use
804 nvptx_assemble_decl_begin.
806 2015-12-04 Dmitry Vyukov <dvyukov@google.com>
808 * sancov.c: New file.
809 * Makefile.in (OBJS): Add sancov.o.
810 * invoke.texi (-fsanitize-coverage=trace-pc): Describe.
811 * passes.def (sancov_pass): Add.
812 * tree-pass.h (sancov_pass): Add.
813 * common.opt (-fsanitize-coverage=trace-pc): Add.
814 * sanitizer.def (BUILT_IN_SANITIZER_COV_TRACE_PC): Add.
815 * builtins.def (DEF_SANITIZER_BUILTIN): Enable for
816 flag_sanitize_coverage.
818 2015-12-04 Eric Botcazou <ebotcazou@adacore.com>
821 * config/arm/unspecs.md (unspec): Remove UNSPEC_PROBE_STACK_RANGE.
822 (unspecv): Add VUNSPEC_PROBE_STACK_RANGE.
823 * config/arm/arm.md (probe_stack_range): Adjust.
824 * config/aarch64/aarch64.md (unspec): Remove UNSPEC_PROBE_STACK_RANGE.
825 (unspecv): Add UNSPECV_PROBE_STACK_RANGE.
826 (probe_stack_range_<PTR:mode>): Adjust.
828 2015-12-04 David Malcolm <dmalcolm@redhat.com>
830 * convert.c (convert_to_real_1): When converting from a
831 REAL_TYPE, preserve the location of EXPR in the result.
832 * tree.c (get_pure_location): Make non-static.
833 (set_source_range): Return the resulting location_t.
834 (make_location): New function.
835 * tree.h (get_pure_location): New decl.
836 (get_finish): New inline function.
837 (set_source_range): Convert return type from void to location_t.
838 (make_location): New decl.
840 2015-12-04 Jakub Jelinek <jakub@redhat.com>
843 * toplev.c (init_asm_output): Pass UNKNOWN_LOCATION instead of
844 input_location to inform.
845 (process_options): Use warning_at (UNKNOWN_LOCATION instead of
846 warning ( and error_at (UNKNOWN_LOCATION instead of error (.
847 Pass UNKNOWN_LOCATION instead of input_location to fatal_error.
849 2015-12-04 Jan Hubicka <hubicka@ucw.cz>
851 * ipa-inline.c (can_inline_edge_p) Use merged_comdat.
852 * cgraphclones.c (cgraph_node::create_clone): Use merged_comdat.
853 * cgraph.c (cgraph_node::dump): Dump merged_comdat.
854 * ipa-icf.c (sem_function::merge): Drop merged_comdat when merging
855 comdat and non-comdat.
856 * cgraph.h (cgraph_node): Rename merged to merged_comdat.
857 * ipa-inline-analysis.c (simple_edge_hints): Check both merged_comdat
860 2015-12-04 Segher Boessenkool <segher@kernel.crashing.org>
862 * config/rs6000/rs6000.md (cstore<mode>4_unsigned): Use gpc_reg_operand
863 instead of register_operand. Remove empty constraints. Use std::swap.
864 (cstore_si_as_di, cstore<mode>4_signed_imm,
865 cstore<mode>4_unsigned_imm, cstore<mode>4 for GPR): Use
866 gpc_reg_operand instead of register_operand.
867 (cstore<mode>4 for FP): Use gpc_reg_operand instead of
868 register_operand. Remove empty constraints.
870 2015-12-04 Nick Clifton <nickc@redhat.com>
872 * config.gcc (extra_gcc_objs): Define for MSP430.
873 * common/config/msp430/msp430-common.c (msp430_handle_option):
874 Pass both -mmcu and -mcpu on to the back end if they are both defined.
875 * config/msp430/msp430.c (hwmult_name): New function.
876 (msp430_option_override): If an unrecognised MCU name is
877 detected only warn if the user has not provided suitable
878 -mhwmult and -mcpu options. Use msp430_warn_mcu to control
879 warning messages. Generate warnings about conflicts between
880 -mmcu and -mcpu and -mhwmult options.
881 If neither -mcpu nor -mmcu have been specified but -mhwmult=
882 f5series has the select the 430X isa.
883 (msp430_no_hwmult): If -mmcu has not been specified and
884 msp430_hwmult_type is AUTO then return true.
885 * config/msp430/msp430.h (EXTRA_SPEC_FUNCTIONS): Define.
886 (LIB_SPEC): Add hardware multiply library selection.
887 * config/msp430/t-msp430: Delete hardware multiply multilibs.
888 Add rule to build driver-msp430.o
889 * config/msp430/driver-msp430.c: New file.
890 * config/msp430/msp430.opt (warn-mcu): New option.
891 * doc/invoke.texi: Update description of -mhwmult=auto.
892 Document -mwarn-mcu option.
894 2015-12-04 Segher Boessenkool <segher&kernel.crashing.org>
896 * config/rs6000/rs6000.md (cstore<mode>4_signed): New expander.
897 (cstore<mode>4): Call it.
899 2015-12-04 Jakub Jelinek <jakub@redhat.com>
901 * tree-tailcall.c (find_tail_calls): Ignore GIMPLE_NOPs.
903 PR tree-optimization/68680
904 * calls.c (special_function_p): Return ECF_MAY_BE_ALLOCA for
905 BUILT_IN_ALLOCA{,_WITH_ALIGN}. Don't check for __builtin_alloca
908 PR tree-optimization/68671
909 * tree-ssa-reassoc.c (maybe_optimize_range_tests): For basic
910 blocks starting with the successor of first bb we've modified
911 and ending with last_bb call reset_flow_sensitive_info_in_bb.
913 2015-12-04 Jeff Law <law@redhat.com>
915 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Return boolean
916 indicating if a gimple conditional was optimized to true/false.
917 (reassociate_bb): Bubble up return value from
918 maybe_optimize_range_tests.
919 (do_reassoc): Similarly, but for reassociate_bb.
920 (execute_reassoc): Return TODO_cleanup_cfg as needed.
922 2015-12-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
924 * config/aarch64/aarch64.c (aarch64_override_options_internal):
925 Do not alter target_flags due to TARGET_GENERAL_REGS_ONLY_P.
926 * doc/invoke.texi (AArch64 options): Mention that -mgeneral-regs-only
927 does not affect the assembler directives.
929 2015-12-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
931 * config/s390/s390.c (s390_asm_file_start): Implement hook function to
932 emit .machine and .machinemode to the top of the assembler file.
933 (TARGET_ASM_FILE_START): Provide target hook.
934 (s390_asm_output_machine_for_arch): Protect with
935 HAVE_AS_MACHINE_MACHINEMODE instead of S390_USE_TARGET_ATTRIBUTE.
937 2015-12-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
939 * config/s390/s390.opt (s390_arch_string): Remove.
940 (s390_tune_string): Likewise.
941 (s390_cost_pointer): Add Variable.
942 (s390_tune_flags): Add TargetVariable.
943 (s390_arch_flags, march=, mbackchain, mdebug, mesa, mhard-dfp),
944 (mhard-float, mlong-double-128, mlong-double-64, mhtm, mvx),
945 (mpacked-stack, msmall-exec, msoft-float, mstack-guard=, mstack-size=),
946 (mtune=, mmvcle, mzvector, mzarch, mbranch-cost=, mwarn-dynamicstack),
947 (mwarn-framesize=): Save option.
948 (mno-stack-guard, mno-stack-guard): New option.
949 (mwarn-dynamicstack): Allow mno-warn-dynamicstack.
950 (mwarn-framesize=): Convert to UInteger (negative values are rejected
952 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Split setting
953 macros changeable through the GCC target pragma into a separate
955 (s390_cpu_cpp_builtins): Likewise.
956 (s390_pragma_target_parse): New function, implement GCC target pragma
958 (s390_register_target_pragmas): Register s390_pragma_target_parse if
960 * common/config/s390/s390-common.c (s390_handle_option):
962 Move setting s390_arch_flags to s390.c.
963 Remove s390_tune_flags.
964 Allow 0 as argument to -mstack-size (switch to default value).
965 Allow 0 as argument to -mstack-guard (switch off).
966 Remove now unnecessary explicit parsing code for -mwarn-framesize.
967 * config/s390/s390-protos.h (s390_handle_option): Export.
968 (s390_valid_target_attribute_tree): Export.
969 (s390_reset_previous_fndecl): Export.
970 * config/s390/s390-builtins.def: Use new macro B_GROUP to mark the start
971 and end of HTM and VX builtins.
972 (s390_asm_output_function_prefix): Declare hook.
973 (s390_asm_declare_function_size): Likewise.
974 * config/s390/s390-builtins.h (B_GROUP): Use macro.
975 * config/s390/s390-opts.h: Add comment about processor_type usage.
976 * config/s390/s390.h (TARGET_CPU_IEEE_FLOAT_P, TARGET_CPU_ZARCH_P),
977 (TARGET_CPU_LONG_DISPLACEMENT_P, TARGET_CPU_EXTIMM_P, TARGET_CPU_DFP_P),
978 (TARGET_CPU_Z10_P, TARGET_CPU_Z196_P, TARGET_CPU_ZEC12_P),
979 (TARGET_CPU_HTM_P, TARGET_CPU_Z13_P, TARGET_CPU_VX_P),
980 (TARGET_HARD_FLOAT_P, TARGET_LONG_DISPLACEMENT_P, TARGET_EXTIMM_P),
981 (TARGET_DFP_P, TARGET_Z10_P, TARGET_Z196_P, TARGET_ZEC12_P),
982 (TARGET_HTM_P, TARGET_Z13_P, TARGET_VX_P, TARGET_CPU_EXTIMM),
983 (TARGET_CPU_DFP, TARGET_CPU_Z10, TARGET_CPU_Z196, TARGET_CPU_ZEC12),
984 (TARGET_CPU_HTM, TARGET_CPU_Z13, TARGET_LONG_DISPLACEMENT),
985 (TARGET_EXTIMM, TARGET_DFP, TARGET_Z10, TARGET_Z196, TARGET_ZEC12),
986 (TARGET_Z13, TARGET_VX, S390_USE_TARGET_ATTRIBUTE),
987 (S390_USE_ARCHITECTURE_MODIFIERS, SWITCHABLE_TARGET),
988 (ASM_DECLARE_FUNCTION_SIZE, ASM_OUTPUT_FUNCTION_PREFIX): Likewise.
989 * config/s390/vecintrin.h: Use vector definitions even if __VEC__ is
991 (vec_all_nan): Rewrite as macro using statement expressions to avoid
992 that the vector keyword needs to be defined when including the file.
993 (vec_all_numeric): Likewise.
994 (vec_any_nan): Likewise.
995 (vec_any_numeric): Likewise.
996 * config/s390/s390.c (s390_previous_fndecl): New static variable.
997 (s390_set_current_function): New function.
998 (s390_cost): Wrapper macro to allow defining the cost table pointer in
1000 (processor_table): Table for march= and mtune= parsing.
1001 (s390_init_builtins): Enable all builtins and types unconditionally.
1002 (s390_expand_builtin): Generate an error message if builtin is not
1003 supported by current options.
1004 Correct an error message.
1005 (s390_function_specific_restore): New function to set s390_cost.
1006 (s390_asm_output_machine_for_arch): New function for emitting .machine
1007 and .machinmode directives to the assembler file.
1008 (s390_asm_output_function_prefix): Likewise.
1009 (s390_asm_declare_function_size): Likewise.
1010 (s390_asm_output_function_label): Add mdebug output for feature testing.
1011 (s390_option_override): Move implementation into internal function.
1012 (s390_option_override_internal): Likewise.
1013 Implement option overriding based on current options.
1014 (s390_valid_target_attribute_inner_p): New function implementing target
1016 (s390_valid_target_attribute_tree): Likewise.
1017 (s390_valid_target_attribute_p): Likewise.
1018 (s390_reset_previous_fndecl): Likewise.
1019 (s390_set_current_function): Likewise.
1020 (TARGET_SET_CURRENT_FUNCTION): Provide target hook function.
1021 (TARGET_OPTION_VALID_ATTRIBUTE_P): Likewise.
1022 (TARGET_OPTION_RESTORE): Likewise.
1023 * doc/extend.texi: S390: Document target attribute and pragma.
1024 * config.in: Regenerated.
1025 * configure: Regenerated.
1026 * configure.ac: S390: Check for .machinemode and .machine in gas.
1027 S390: Check for architecture modifiers support in gas.
1029 2015-12-04 Kirill Yukhin <kirill.yukhin@intel.com>
1031 * doc/extend.texi ("simd"): Describe new flags.
1033 2015-12-04 Ilya Enkovich <enkovich.gnu@gmail.com>
1035 * config/i386/sse.md (<avx512>_store<mode>_mask): Fix
1036 operand checked for alignment.
1038 2015-12-04 Nathan Sidwell <nathan@acm.org>
1040 * config/nvptx/nvptx.c (write_one_arg): Deal with prologue
1041 emission too. Change 'no_arg_types' to 'prototyped'.
1042 (write_fn_proto): Use write_one_arg for stdarg, static chain &
1044 (nvptx_declare_function_name): Use write_one_arg for prologue copies.
1046 2015-12-04 Richard Biener <rguenther@suse.de>
1048 * tree-ssa-sccvn.c (sccvn_dom_walker): Add unreachable_dom
1049 member and initialize it.
1050 (sccvn_dom_walker::after_dom_children): Reset unreachable_dom
1052 (sccvn_dom_walker::before_dom_children): If unreachable_dom
1053 is set BB is not reachable either. Set unreachable_dom
1054 if not set and BB is unreachable.
1056 2015-12-04 Richard Biener <rguenther@suse.de>
1058 * bitmap.c (bitmap_find_bit): Guard the bitmap descriptor
1059 query with GATHER_STATISTICS.
1061 2015-12-04 Eric Botcazou <ebotcazou@adacore.com>
1064 * gimplify.c (struct gimplify_ctx): Turn boolean fields into 1-bit
1065 fields, add keep_stack and reorder them.
1066 (gimplify_bind_expr): Save gimplify_ctxp->keep_stack on entry then
1067 set it to false. Do not insert a stack save/restore pair if it has
1068 been set to true by the gimplification of the statements.
1069 Restore it to the saved value on exit if it is still false.
1070 (gimplify_vla_decl): Do not set gimplify_ctxp->save_stack here.
1071 (gimplify_call_expr) <BUILT_IN_ALLOCA[_WITH_ALIGN]>: New case. Set
1072 either save_stack or keep_stack depending on CALL_ALLOCA_FOR_VAR_P.
1073 * doc/extend.texi (Variable Length): Document new behavior.
1074 * doc/generic.texi (Blocks): Document new handling of VLAs.
1076 2015-12-04 Eric Botcazou <ebotcazou@adacore.com>
1077 Tristan Gingold <gingold@adacore.com>
1080 * config/aarch64/aarch64-protos.h (aarch64_output_probe_stack-range):
1082 * config/aarch64/aarch64.md: Declare UNSPECV_BLOCKAGE and
1083 UNSPEC_PROBE_STACK_RANGE.
1084 (blockage): New instruction.
1085 (probe_stack_range_<PTR:mode>): Likewise.
1086 * config/aarch64/aarch64.c (aarch64_emit_probe_stack_range): New
1088 (aarch64_output_probe_stack_range): Likewise.
1089 (aarch64_expand_prologue): Invoke aarch64_emit_probe_stack_range if
1090 static builtin stack checking is enabled.
1091 * config/aarch64/aarch64-linux.h (STACK_CHECK_STATIC_BUILTIN):
1094 2015-12-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1097 * config/arm/arm.md (*call_mem): Delete pattern.
1098 (*call_value_mem): Likewise.
1099 * config/arm/arm.c (output_call_mem): Delete.
1100 * config/arm/arm-protos.h (output_call_mem): Delete prototype.
1102 2015-12-04 Bin Cheng <bin.cheng@arm.com>
1104 * config/aarch64/atomics.md (atomic_store<mode>): Use predicate
1105 aarch64_sync_memory_operand.
1107 2015-12-04 Jakub Jelinek <jakub@redhat.com>
1110 * config/i386/i386.c (canonicalize_vector_int_perm): New function.
1111 (expand_vec_perm_1): Use it and recurse if everything else
1112 failed. Use nd.perm instead of perm2.
1113 (expand_vec_perm_even_odd_1): If testing_p, use gen_raw_REG
1114 instead of gen_lowpart for the target.
1115 (ix86_expand_vec_perm_const_1): Use canonicalize_vector_int_perm
1116 and recurse if everything else failed.
1118 2015-12-04 Richard Biener <rguenther@suse.de>
1121 * builtins.c (get_pointer_alignment_1): Take care of byte to
1122 bit alignment computation overflow.
1124 2015-12-04 Richard Biener <rguenther@suse.de>
1127 * match.pd: Guard ~X cmp ~Y -> Y cmp X and the variant with
1128 a constant with single_use.
1130 2015-12-04 Bin Cheng <bin.cheng@arm.com>
1131 Jiong Wang <jiong.wang@arm.com>
1133 * config/aarch64/aarch64.c (aarch64_legitimize_address): legitimize
1134 address expressions like Ra + Rb + CONST and Ra + Rb<<SCALE + CONST.
1136 2015-12-03 Jan Hubicka <hubicka@ucw.cz>
1138 * alias.c (alias_set_subset_of, alias_sets_must_conflict_p):
1139 Add short circuit for !flag_strict_aliasing
1140 (get_alias_set): Remove flag_strict_aliasing check.
1141 (new_alias_set): Likewise.
1143 2015-12-03 Evandro Menezes <e.menezes@samsung.com>
1145 * config/aarch64/aarch64-cores.def: Use the Exynos M1 cost model.
1146 * config/aarch64/aarch64.c (exynosm1_addrcost_table): New variable.
1147 (exynosm1_regmove_cost): Likewise.
1148 (exynosm1_vector_cost): Likewise.
1149 (exynosm1_tunings): Likewise.
1150 * config/arm/aarch-cost-tables.h (exynosm1_extra_costs): Likewise.
1151 * config/arm/arm.c (arm_exynos_m1_tune): Likewise.
1153 2015-12-03 Alan Lawrence <alan.lawrence@arm.com>
1154 Richard Biener <richard.guenther@gmail.com>
1156 * cfgexpand.c (pass_expand::execute): Replace call to
1157 redirect_edge_var_map_destroy with redirect_edge_var_map_empty.
1158 * tree-ssa.c (delete_tree_ssa): Likewise.
1159 * function.c (set_cfun): Call redirect_edge_var_map_empty.
1160 * passes.c (execute_one_ipa_transform_pass, execute_one_pass): Likewise.
1161 * tree-ssa.h (redirect_edge_var_map_destroy): Remove.
1162 (redirect_edge_var_map_empty): New.
1163 * tree-ssa.c (redirect_edge_var_map_destroy): Remove.
1164 (redirect_edge_var_map_empty): New.
1166 2015-12-03 Jeff Law <law@redhat.com>
1168 PR tree-optimization/68599
1169 * loop-init.c (rtl_loop_init): Set LOOPS_HAVE_RECORDED_EXITS
1170 in call to loop_optimizer_init.
1171 * loop-iv.c (get_simple_loop_desc): Only allow unsafe loop
1172 optimization to drop the assumptions/infinite notations if
1173 the loop has a single exit.
1175 2015-12-03 Richard Sandiford <richard.sandiford@arm.com>
1177 * doc/md.texi (vec_load_lanes@var{m}@var{n}): Document that
1178 the pattern cannot FAIL.
1179 (vec_store_lanes@var{m}@var{n}): Likewise.
1180 (maskload@var{m}@var{n}): Likewise.
1181 (maskstore@var{m}@var{n}): Likewise. Fix a cut-&-paste error
1182 in the name of the pattern.
1183 (rsqrt@var{m}2): Document that mode m must be a scalar or vector
1184 floating-point mode and that all operands have that mode.
1185 (fmin@var{m}3, fmax@var{m}3): Likewise. Document that the
1186 pattern cannot FAIL.
1187 (sqrt@var{m}2): Document that mode m must be a scalar or vector
1188 floating-point mode, that all operands have that mode, and that
1189 the patterns cannot FAIL. Remove previous documentation referring
1190 to @code{double} and @code{float}.
1191 (fmod@var{m}3, remainder@var{m}3, cos@var{m}2, sin@var{m}2)
1192 (sincos@var{m}3, log@var{m}2, pow@var{m}3, atan2@var{m}3)
1193 (copysign@var{m}3): Likewise.
1194 (exp@var{m}2): Likewise. Explicitly state the base.
1195 (floor@var{m}2): As for sqrt@var{m}2, but also specify the operands.
1196 (btrunc@var{m}2, rint@var{m}2): Likewise.
1197 (round@var{m}2): Likewise. Fix incorrect description of rounding
1199 (ceil@var{m}2): As for round@var{m}2.
1200 (nearbyint@var{m}2): As for floor@var{m}2, but also mention that
1201 the instruction must not raise an inexact condition.
1202 (scalb@var{m}3): Document previously-undocumented pattern
1203 (ldexp@var{m}3, tan@var{m}2, asin@var{m}2, acos@var{m}2)
1204 (atan@var{m}2, expm1@var{m}2, exp10@var{m}2, exp2@var{m}2)
1205 (log1p@var{m}2, log10@var{m}2, log2@var{m}2, logb@var{m}2)
1206 (significand@var{m}2): Likewise.
1207 (ffs@var{m}2): Fix the description of the modes, so that operand 1 has
1208 mode m and operand 0 is defined more freely. Document that @var{m}
1209 can be a scalar or vector integer mode and that the pattern is not
1211 (clz@var{m}2, ctz@var{m}2, popcount@var{m}2, parity@var{m}2): Likewise.
1212 (clrsb@var{m}2): Likewise, except that the description of the
1213 mode was missing in this case.
1215 2015-12-03 Richard Sandiford <richard.sandiford@arm.com>
1217 * internal-fn.def (RSQRT): New function.
1218 * optabs.def (rsqrt_optab): New optab.
1219 * doc/md.texi (rsqrtM2): Document.
1220 * target.def (builtin_reciprocal): Replace gcall argument with
1221 a function decl. Restrict hook to machine functions.
1222 * doc/tm.texi: Regenerate.
1223 * targhooks.h (default_builtin_reciprocal): Update prototype.
1224 * targhooks.c (default_builtin_reciprocal): Likewise.
1225 * tree-ssa-math-opts.c: Include internal-fn.h.
1226 (internal_fn_reciprocal): New function.
1227 (pass_cse_reciprocals::execute): Call it, and build a call to an
1228 internal function on success. Only call targetm.builtin_reciprocal
1229 for machine functions.
1230 * config/aarch64/aarch64-protos.h (aarch64_builtin_rsqrt): Remove
1232 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin_rsqrt):
1233 Rename aarch64_rsqrt_<mode>2 to rsqrt<mode>2.
1234 (aarch64_builtin_rsqrt): Remove md_fn argument and only handle
1236 * config/aarch64/aarch64.c (use_rsqrt_p): New function.
1237 (aarch64_builtin_reciprocal): Replace gcall argument with a
1238 function decl. Use use_rsqrt_p. Remove optimize_size check.
1239 Only handle machine functions. Update call to aarch64_builtin_rsqrt.
1240 (aarch64_optab_supported_p): New function.
1241 (TARGET_OPTAB_SUPPORTED_P): Define.
1242 * config/aarch64/aarch64-simd.md (aarch64_rsqrt_<mode>2): Rename to...
1243 (rsqrt<mode>2): ...this.
1244 * config/i386/i386.c (use_rsqrt_p): New function.
1245 (ix86_builtin_reciprocal): Replace gcall argument with a
1246 function decl. Use use_rsqrt_p. Remove optimize_insn_for_size_p
1247 check. Only handle machine functions.
1248 (ix86_optab_supported_p): Handle rsqrt_optab.
1249 * config/rs6000/rs6000.c (TARGET_OPTAB_SUPPORTED_P): Define.
1250 (rs6000_builtin_reciprocal): Replace gcall argument with a
1251 function decl. Remove optimize_insn_for_size_p check.
1252 Only handle machine functions.
1253 (rs6000_optab_supported_p): New function.
1255 2015-12-03 Bernd Schmidt <bschmidt@redhat.com>
1259 * config/i386/i386.c (ix86_mitigate_rop): Don't call
1260 compute_bb_for_insn again. Call df_insn_rescan_all.
1261 * config/i386/i386.md (set_got_rex64): Override modrm_class.
1263 * regrename.c (build_def_use): Ignore stack regs if regstack_completed.
1265 2015-12-03 Nathan Sidwell <nathan@acm.org>
1267 * config/nvptx/nvptx-protos.h (npvptx_section_from_addr_space): Delete.
1268 * config/nvptx/nvptx.c (enum nvptx_data_area): New.
1269 (SYMBOL_DATA_AREA, SET_SYMBOL_DATA_AREA): New defines.
1270 (nvptx_option_override): Set data ares for worker vars.
1271 (nvptx_addr_space_from_sym): Delete.
1272 (nvptx_encode_section_info): New.
1273 (section_for_sym, section_for_decl): New.
1274 (nvptx_maybe_convert_symbolic_operand): Get data area from symbol flags.
1275 (nvptx_section_from_addr_space): Delete.
1276 (nvptx_section_for_decl): Delete.
1277 (nvptx_output_aligned, nvptx_declare_object_name,
1278 nvptx_assemble_undefined_decl): Use section_for_decl, remove
1280 (nvptx_print_operand): Add 'D', adjust 'A'.
1281 (nvptx_expand_worker_addr): Adjust unspec generation.
1282 (TARGET_ENCODE_SECTION_INFO): Override.
1283 * config/nvptx/nvptx.h (ADDR_SPACE_GLOBAL, ADDR_SPACE_SHARED,
1284 ADDR_SPACE_CONST, ADDR_SPACE_LOCAL, ADDR_SPACE_PARAM): Delete.
1285 * config/nvptx/nvptx.md (UNSPEC_FROM_GLOBAL, UNSPEC_FROM_LOCAL,
1286 UNSPEC_FROM_PARAM, UNSPEC_FROM_SHARED, UNSPEC_FROM_CONST,
1287 UNSPEC_TO_GLOBAL, UNSPEC_TO_LOCAL, UNSPEC_TO_PARAM,
1288 UNSPEC_TO_SHARED, UNSPEC_TO_CONST): Delete.
1289 (UNSPEC_TO_GENERIC): New.
1290 (nvptx_register_or_symbolic_operand): Delete.
1291 (cvt_code, cvt_name, cvt_str): Delete.
1292 (convaddr_<cvt_name><mode> [P]): Delete.
1293 (convaddr_<mode> [P]): New.
1295 2015-12-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1297 PR rtl-optimization/68624
1298 * ifcvt.c (noce_try_cmove_arith): Check clobbers of temp regs in both
1299 blocks if they exist and simplify the logic choosing the order to emit
1302 2015-12-03 Richard Biener <rguenther@suse.de>
1304 PR tree-optimization/66051
1305 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
1306 on load group size. Do not pass in vectorization_factor.
1307 (vect_transform_slp_perm_load): Do not require any permute support.
1308 (vect_build_slp_tree): Do not pass in vectorization factor.
1309 (vect_analyze_slp_instance): Do not compute vectorization
1310 factor estimate. Use vector size instead of vectorization factor
1311 estimate to split store groups for BB vectorization.
1313 2015-12-03 Ilya Enkovich <enkovich.gnu@gmail.com>
1315 * cfgexpand.c (expand_gimple_stmt_1): Return statement with
1316 DECL as return value is allowed to have NULL bounds.
1318 2015-12-03 Tom de Vries <tom@codesourcery.com>
1320 * graphite-isl-ast-to-gimple.c (binary_op_to_tree)
1321 (gcc_expression_from_isl_expr_op): Guard isl_ast_op_zdiv_r usage with
1322 HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
1324 2015-12-03 Richard Biener <rguenther@suse.de>
1326 PR tree-optimization/67800
1327 PR tree-optimization/68333
1328 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Restore
1329 restriction to reduction contexts but allow SLP reductions as well.
1330 (vect_recog_sad_pattern): Likewise.
1331 (vect_recog_widen_sum_pattern): Likewise.
1333 2015-12-03 Richard Biener <rguenther@suse.de>
1335 PR tree-optimization/68639
1336 * tree-vect-data-refs.c (dr_group_sort_cmp): Split groups
1337 belonging to different loops.
1338 (vect_analyze_data_ref_accesses): Likewise.
1340 2015-12-02 Kirill Yukhin <kirill.yukhin@intel.com>
1342 * config/i386/sse.md (define_insn "vec_extract_hi_<mode>_maskm"):
1343 Remove "prefix_extra".
1344 (define_insn "vec_extract_hi_<mode>_mask"): New.
1345 (define_insn "vec_extract_hi_<mode>"): Remove masking.
1347 2015-12-02 Jan Hubicka <hubicka@ucw.cz>
1349 * ipa-pure-const.c (ignore_edge_for_pure_const): New function.
1350 (propagate_pure_const): Use it; fix comments and optimize loops.
1352 2015-12-02 Jan Hubicka <hubicka@ucw.cz>
1354 * ipa-pure-const.c (ignore_edge): Rename to ...
1355 (ignore_edge_for_nothrow) ... this one; also ignore eges to
1356 interposable functions or ones that can not throw.
1357 (propagate_nothrow): Fix handling of availability.
1359 2015-12-02 Jan Hubicka <hubicka@ucw.cz>
1362 * cgraphunit.c (cgraph_node::analyze): Set can_throw_external.
1364 2015-12-02 Aditya Kumar <aditya.k7@samsung.com>
1365 Sebastian Pop <s.pop@samsung.com>
1367 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Handle
1369 (gcc_expression_from_isl_expr_op): Same.
1371 2015-12-02 Aditya Kumar <aditya.k7@samsung.com>
1372 Sebastian Pop <s.pop@samsung.com>
1374 * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Check
1375 that insertion point is still in the region.
1377 2015-12-02 Aditya Kumar <aditya.k7@samsung.com>
1378 Sebastian Pop <s.pop@samsung.com>
1380 PR tree-optimization/68550
1381 * graphite-isl-ast-to-gimple.c (copy_loop_phi_nodes): Add dump.
1382 (copy_bb_and_scalar_dependences): Do not code generate loop peeled
1385 2015-12-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1387 * configure.ac: Check assembler support for R_PPC64_ENTRY relocation.
1388 * configure: Regenerate.
1389 * config.in: Regenerate.
1390 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p): New
1392 (rs6000_output_function_prologue): Use it instead of checking
1393 cfun->machine->r2_setup_needed. Use internal labels instead of
1394 GNU as local label extension. Handle ELFv2 large code model.
1395 (rs6000_output_mi_thunk): Do not set cfun->machine->r2_setup_needed.
1396 (rs6000_elf_declare_function_name): Handle ELFv2 large code model.
1398 2015-12-02 Jakub Jelinek <jakub@redhat.com>
1401 * optabs.c (expand_doubleword_popcount, expand_doubleword_parity):
1403 (expand_unop): Use them.
1405 2015-12-02 Marek Polacek <polacek@redhat.com>
1408 * tree.c (nonnull_arg_p): Allow OFFSET_TYPE.
1410 2015-12-02 Nathan Sidwell <nathan@acm.org>
1412 * config/nvptx/nvptx.c (enum nvptx_shuffle_kind): New. Absorb
1414 (nvptx_gen_shuffle, nvptx_print_operand, nvptx_expand_shuffle): Adjust.
1416 2015-12-02 Aditya Kumar <aditya.k7@samsung.com>
1417 Sebastian Pop <s.pop@samsung.com>
1419 * graphite-dependences.c (scop_get_reads): Add extra dumps.
1420 (scop_get_must_writes): Same.
1421 (scop_get_may_writes): Same.
1422 (compute_deps): Same.
1423 * graphite-sese-to-poly.c (bounds_are_valid): New.
1424 (pdr_add_data_dimensions): Call bounds_are_valid.
1426 2015-12-02 Aditya Kumar <aditya.k7@samsung.com>
1427 Sebastian Pop <s.pop@samsung.com>
1429 * common.opt (flag_loop_optimize_isl): Renamed flag_loop_nest_optimize.
1430 * graphite-poly.c (apply_poly_transforms): Same.
1431 * graphite.c (gate_graphite_transforms): Same.
1432 * toplev.c (process_options): Same.
1434 2015-12-02 Eric Botcazou <ebotcazou@adacore.com>
1436 * config/mips/mips.c (mips_emit_probe_stack_range): Adjust.
1437 (mips_output_probe_stack_range): Rotate the loop and simplify.
1439 2015-12-02 David Sherwood <david.sherwood@arm.com>
1441 * config/aarch64/aarch64.md: New pattern.
1442 * config/aarch64/aarch64-simd.md: Likewise.
1443 * config/aarch64/iterators.md: New unspecs, iterators.
1445 2015-12-02 Pierre-Marie de Rodat <derodat@adacore.com>
1447 * dwarf2out.c (dwar2out_var_location): In addition to notes,
1448 process indirect calls whose target is compile-time known.
1449 Enhance pattern matching to get the SYMBOL_REF they embed.
1450 (gen_subprogram_die): Handle such calls.
1451 * final.c (final_scan_insn): For call instructions, invoke the
1452 var_location debug hook only after the call has been emitted.
1454 2015-12-02 Tom de Vries <tom@codesourcery.com>
1456 * gimplify.c (enum gimplify_omp_var_data): Add enum value
1458 (oacc_default_clause): Fix default for scalars in oacc kernels.
1459 (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_FORCE.
1461 2015-12-02 Tom de Vries <tom@codesourcery.com>
1463 * omp-low.c (install_var_field, scan_sharing_clauses): Add and handle
1464 parameter base_pointers_restrict.
1465 (omp_target_base_pointers_restrict_p): New function.
1466 (scan_omp_target): Call scan_sharing_clauses with
1467 base_pointers_restrict arg.
1469 2015-12-02 Nathan Sidwell <nathan@acm.org>
1471 * config/nvptx/nvptx-protos.h (nvptx_output_mov_insn): Declare.
1472 (nvptx_underlying_object_mode): Delete.
1473 * config/nvptx/nvptx.c (nvptx_underlying_object_mode): Delete.
1475 (nvptx_declare_function_name): Use output_reg. Remove punning buffer.
1476 (nvptx_output_mov_insn): New.
1477 (nvptx_print_operand): Separate SUBREG handling, remove 'f' case,
1478 Use output_reg. Merge 't' and 'u' handling.
1479 * config/nvptx/nvptx.h (NVPTX_PUNNING_BUFFER_REGNUM): Delete.
1480 (struct machine_function): Remvoe punning_buffer_size.
1481 (REGISTER_NAMES): Remove %punbuffer.
1482 * config/nvptx/nvptx.md (UNSPEC_CPLX_LOWPART,
1483 UNSPEC_CPLX_HIGHPART): Delete.
1484 (*mov<mode>_insn [QHSDIM): Remove unnecessary constraints, use
1485 nvptx_output_mov_insn.
1486 (*mov<mode>_insn [SDFM): Reorder constraints to match integer moc.
1487 Use nvptx_output_mov_insn.
1488 (highpartscsf2, set_highpartscsf2, lowpartscsf2, set_lowpartscsf2):
1490 (mov<mode> [SDCM]): Delete.
1492 2015-12-02 Richard Biener <rguenther@suse.de>
1494 * tree.h (tree_invariant_p): Declare.
1495 * tree.c (tree_invariant_p): Export.
1496 * genmatch.c (dt_simplify::gen_1): For GENERIC code-gen never
1497 create SAVE_EXPRs but reject patterns if we would need to.
1499 2015-12-02 Tom de Vries <tom@codesourcery.com>
1501 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call)
1502 (find_func_clobbers, ipa_pta_execute): Handle BUILT_IN_GOACC_PARALLEL.
1504 2015-12-02 Segher Boessenkool <segher@kernel.crashing.org>
1506 * config/rs6000/rs6000.md (cstore_si_as_di): New expander.
1507 (cstore<mode>4): Use it.
1509 2015-12-02 Richard Biener <rguenther@suse.de>
1511 PR tree-optimization/68625
1512 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not call
1513 cleanup_control_flow_bb.
1514 (cleanup_tree_cfg_1): First perform cleanup_control_flow_bb
1515 on all BBs, then cleanup_tree_cfg_bb and finally iterate
1516 over the worklist doing both.
1518 2015-12-02 Richard Sandiford <richard.sandiford@arm.com>
1520 PR tree-optimization/68432
1521 * coretypes.h (optimization_type): New enum.
1522 * doc/tm.texi.in (TARGET_OPTAB_SUPPORTED_P): New hook.
1523 * doc/tm.texi: Regenerate.
1524 * target.def (optab_supported_p): New hook.
1525 * targhooks.h (default_optab_supported_p): Declare.
1526 * targhooks.c (default_optab_supported_p): New function.
1527 * predict.h (function_optimization_type): Declare.
1528 (bb_optimization_type): Likewise.
1529 * predict.c (function_optimization_type): New function.
1530 (bb_optimization_type): Likewise.
1531 * optabs-query.h (convert_optab_handler): Define an overload
1532 that takes an optimization type.
1533 (direct_optab_handler): Likewise.
1534 * optabs-query.c (convert_optab_handler): Likewise.
1535 (direct_optab_handler): Likewise.
1536 * internal-fn.h (direct_internal_fn_supported_p): Take an
1537 optimization_type argument.
1538 * internal-fn.c (direct_optab_supported_p): Likewise.
1539 (multi_vector_optab_supported_p): Likewise.
1540 (direct_internal_fn_supported_p): Likewise.
1541 * builtins.c (replacement_internal_fn): Update call to
1542 direct_internal_fn_supported_p.
1543 * gimple-match-head.c (build_call_internal): Likewise.
1544 * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
1545 * tree-vect-stmts.c (vectorizable_internal_function): Likewise.
1546 * tree.c (maybe_build_call_expr_loc): Likewise.
1547 * config/i386/i386.c (ix86_optab_supported_p): New function.
1548 (TARGET_OPTAB_SUPPORTED_P): Define.
1549 * config/i386/i386.md (asinxf2): Remove optimize_insn_for_size_p check.
1550 (asin<mode>2, acosxf2, acos<mode>2, log1pxf2, log1p<mode>2)
1551 (expNcorexf3, expxf2, exp<mode>2, exp10xf2, exp10<mode>2, exp2xf2)
1552 (exp2<mode>2, expm1xf2, expm1<mode>2, ldexpxf3, ldexp<mode>3)
1553 (scalbxf3, scalb<mode>3, rint<mode>2, round<mode>2)
1554 (<rounding_insn>xf2, <rounding_insn><mode>2): Likewise.
1556 2015-12-02 Richard Sandiford <richard.sandiford@arm.com>
1558 * Makefile.in (GENSUPPORT_H): New macro.
1559 (build/gensupport.o, build/read-rtl.o, build/genattr.o)
1560 (build/genattr-common.o, build/genattrtab.o, build/genautomata.o)
1561 (build/gencodes.o, build/genconditions.o, build/genconfig.o)
1562 (build/genconstants.o, build/genextract.o, build/genflags.o)
1563 (build/gentarget-def.o): Use it.
1564 (build/genemit.o): Likewise. Depend on internal-fn.def.
1565 * genopinit.c: Move block comment to optabs.def.
1566 (optab_tag, optab_def): Move to gensupport.h
1567 (pattern): Likewise, renaming to optab_pattern.
1568 (match_pattern): Move to gensupport.c
1569 (gen_insn): Use find_optab.
1570 (patterns, pattern_cmp): Replace pattern with optab_pattern.
1571 (main): Likewise. Use num_optabs.
1572 * optabs.def: Add comment that was previously in genopinit.c.
1573 * gensupport.h (optab_tag): Moved from genopinit.c
1574 (optab_def): Likewise, expanding commentary.
1575 (optab_pattern): Likewise, after renaming from pattern.
1576 (optabs, num_optabs, find_optab): Declare.
1577 * gensupport.c (optabs): Moved from genopinit.c.
1578 (num_optabs): New variable.
1579 (match_pattern): Moved from genopinit.c.
1580 (find_optab): New function, extracted from genopinit.c:gen_insn.
1581 * genemit.c (nofail_optabs): New variable.
1582 (emit_c_code): New function.
1583 (gen_expand): Check whether the instruction is an optab that isn't
1584 allowed to fail. Call emit_c_code.
1585 (gen_split): Call emit_c_code here too.
1586 (main): Initialize nofail_optabs. Don't emit FAIL and DONE here.
1588 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1590 * config/s390/predicates.md (const_mask_operand): New predicate.
1591 * config/s390/s390-builtins.def: Set a smaller bitmask
1593 * config/s390/vector.md: Change predicate from immediate_operand
1594 to either const_int_operand or const_mask_operand. Add special
1595 insn conditions on patterns which have to exclude certain values.
1596 * config/s390/vx-builtins.md: Likewise.
1598 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1600 * config/s390/vector.md ("*vec_set<mode>"): Change shift count
1603 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1605 * config/s390/s390-builtin-types.def: New builtin types added.
1606 * config/s390/s390-builtins.def: Add s390_vec_splat_* definitions.
1607 * config/s390/s390.c (s390_expand_builtin): Always truncate
1608 constants to the mode in the pattern.
1609 * config/s390/vecintrin.h: Let the vec_splat_* macros point to the
1610 respective builtin __builtin_s390_vec_splat_*.
1612 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1614 * config/s390/s390-builtin-types.def: Sort builtin types.
1616 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1618 * config/s390/s390-c.c (s390_get_vstring_flags): Invert the
1619 condition for the RT flag.
1621 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1623 * config/s390/constraints.md ("jKK"): New constraint.
1624 * config/s390/s390.c (tm-constrs.h): Include for
1625 satisfies_constraint_*.
1626 (s390_legitimate_constant_p): Allow jKK constants. Use
1627 satisfies_constraint_* also for the others.
1628 (legitimate_reload_vector_constant_p): Likewise.
1629 (print_operand): Allow h output modifier on vectors.
1630 * config/s390/vector.md ("mov<mode>"): Add vrepi.
1632 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1634 * config/s390/vector.md ("*vec_splats<mode>"): Fix constraint
1637 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1639 * config/s390/s390.md ("bswap<mode>2"): Add support for strv and strvg.
1640 ("bswaphi2"): New pattern.
1641 New splitter for HI reg-reg bswap.
1643 2015-11-27 Jiri Engelthaler <engycz@gmail.com>
1646 * opts-common.c (prune_options): Don't ignore -fdiagnostics-color
1647 if it is the first parameter.
1649 2015-12-01 Richard Sandiford <richard.sandiford@arm.com>
1651 PR tree-optimization/68577
1652 * tree-vect-stmts.c (simple_integer_narrowing): New function.
1653 (vectorizable_call): Restrict internal function handling
1654 to NONE and NARROW cases, using simple_integer_narrowing
1655 to test for the latter. Add cost of narrowing operation
1656 and insert it where necessary.
1658 2015-12-01 Andreas Tobler <andreast@gcc.gnu.org>
1660 * config/rs6000/freebsd64.h (ELFv2_ABI_CHECK): Add new macro.
1661 (SUBSUBTARGET_OVERRIDE_OPTIONS): Use it to decide whether to set
1662 rs6000_current_abi to ABI_AIX or ABI_ELFv2.
1664 2015-12-01 Nathan Sidwell <nathan@acm.org>
1666 * config/nvptx/nvptx-protos.h (nvptx_output_aligned_decl): Declare.
1667 * config/nvptx/nvptx.h (ASM_OUTPUT_ALIGNED_DECL_COMMON,
1668 ASM_OUTPUT_ALIGNED_DECL_LOCAL): Forward to nvptx_output_aligned_decl.
1669 * config/nvptx/nvptx.c (write_fn_marker, write_var_marker): New.
1670 (write_fn_proto, write_fn_proto_from_insn): Call write_fn_marker.
1671 (init_output_initializer): Call write_var_marker.
1672 (nvptx_output_aligned_decl): New.
1673 (nvptx_assemble_undefined_decl, nvptx_file_end): Call write_var_marker.
1675 2015-12-01 Jan Hubicka <hubicka@ucw.cz>
1677 * c-common.c (parse_optimize_options): Do not silently ignore
1678 -fstrict-aliasing changes.
1680 2015-12-01 Jan Hubicka <hubicka@ucw.cz>
1682 * lto-streamer-out.c (hash_tree): Do not stream TYPE_ALIAS_SET.
1683 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not
1684 stream TYPE_ALIAS_SET.
1685 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Do not
1686 stream TYPE_ALIAS_SET.
1688 2015-12-01 Nathan Sidwell <nathan@acm.org>
1690 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Don't
1693 2015-12-01 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1695 * config/rs6000/rs6000.c (const_load_sequence_p): Handle extra
1696 indirection for large and small code models.
1697 (adjust_vperm): Likewise.
1699 2015-12-01 Julian Brown <julian@codesourcery.com>
1700 Cesar Philippidis <cesar@codesourcery.com>
1701 James Norris <James_Norris@mentor.com>
1703 * gimple-pretty-print.c (dump_gimple_omp_target): Add host_data support.
1704 * gimple.h (gf_mask): Add GF_OMP_TARGET_KIND_OACC_HOST_DATA.
1705 (is_gimple_omp_oacc): Add support for above.
1706 * gimplify.c (omp_region_type): Add ORT_ACC_HOST_DATA.
1707 (omp_notice_variable): Diagnose undefined implicit uses of
1708 use_device variables in offloaded regions.
1709 (gimplify_scan_omp_clauses): Add host_data, use_device
1710 support. Diagnose undefined mapping of use_device variables in
1712 (gimplify_omp_workshare): Add host_data support.
1713 (gimplify_expr): Likewise.
1714 * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): New.
1715 * omp-low.c (lookup_decl_in_outer_ctx)
1716 (maybe_lookup_decl_in_outer_ctx): Add optional argument to skip
1718 (scan_sharing_clauses): Support use_device.
1719 (check_omp_nesting_restrictions): Support host_data.
1720 (expand_omp_target): Support host_data.
1721 (lower_omp_target): Skip over outer host_data regions when looking
1722 up decls. Support use_device.
1723 (make_gimple_omp_edges): Support host_data.
1724 * tree-nested.c (convert_nonlocal_omp_clauses): Add use_device clause.
1726 2015-12-01 Marek Polacek <polacek@redhat.com>
1729 * cgraphunit.c (check_global_declaration): Only depend
1730 on TREE_THIS_VOLATILE for VAR_DECLs.
1732 2015-12-01 Richard Sandiford <richard.sandiford@arm.com>
1734 PR tree-optimization/68474
1735 * tree-call-cdce.c (use_internal_fn): Protect call to
1736 gen_shrink_wrap_conditions.
1738 2015-12-01 Christian Bruel <christian.bruel@st.com>
1741 * config/arm/arm.opt (unaligned_access): Save.
1742 * config/arm/arm-c.c (__ARM_FEATURE_UNALIGNED): Conditionally define.
1743 * config/arm/arm.c (arm_option_override): Move unaligned_access setting.
1744 (arm_option_override_internal): ... here.
1745 * config/arm/arm.h (TARGET_32BIT_P): New macro.
1747 2015-12-01 Richard Biener <rguenther@suse.de>
1749 PR tree-optimization/68379
1750 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
1751 always base loads on the first used DR of a group.
1752 * tree-vect-data-refs.c (vect_slp_analyze_and_verify_node_alignment):
1753 Compute alignment of the first scalar element unconditionally.
1755 2015-12-01 Richard Biener <rguenther@suse.de>
1758 * genmatch.c (struct capture_info): Add match_use_count.
1759 (capture_info::walk_match): Increment match_use_count.
1760 (dt_simplify::gen_1): For GENERIC, only wrap multi-use
1761 replacements in a save_expr if they occur more often than
1762 in the original expression.
1764 2015-12-01 Richard Biener <rguenther@suse.de>
1767 * ipa-split.c (split_function): Handle main part not returning.
1769 2015-12-01 Ilya Enkovich <enkovich.gnu@gmail.com>
1772 * tree-vect-stmts.c (vect_init_vector): Cast boolean
1773 scalars to a proper value before building a vector.
1775 2015-12-01 Richard Sandiford <richard.sandiford@arm.com>
1777 * genattrtab.c (check_attr_test): Take an attr_desc instead of
1778 an is_const flag. Put the file_location argument first.
1779 Update recursive calls. Improve error messages.
1780 (check_attr_value): Take a file location and use it instead
1781 of attr->loc. Improve error messages. Update calls to
1783 (check_defs): Update call to check_attr_value.
1784 (make_canonical): Likewise.
1785 (gen_attr): Likewise.
1787 (gen_insn_reserv): Update call to check_attr_test.
1789 2015-12-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1791 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Fix typo.
1793 2015-12-01 Richard Biener <rguenther@suse.de>
1796 * match.pd: Merge (eq @0 @0) and (ge/le @0 @0) patterns.
1798 2015-12-01 Jan Hubicka <hubicka@ucw.cz>
1800 * ipa-devirt.c (type_with_linkage_p, type_in_anonymous_namespace_p,
1801 odr_type_p): Move to ...
1802 * ipa-utils.h (type_with_linkage_p, type_in_anonymous_namespace_p,
1803 odr_type_p): here; miscro-optimize.
1805 2015-12-01 Bin Cheng <bin.cheng@arm.com>
1807 PR tree-optimization/68529
1808 * tree-ssa-loop-niter.c (number_of_iterations_ne): Add new param.
1809 Compute no-overflow information for control iv.
1810 (number_of_iterations_lt, number_of_iterations_le): Add new param.
1811 (number_of_iterations_cond): Pass new argument to above functions.
1813 2015-11-30 Jan Hubicka <hubicka@ucw.cz>
1815 * ipa-inline-transform.c (inline_call): Drop -fstrict-aliasing when
1816 inlining -fno-strict-aliasing into -fstrict-aliasing body.
1818 2015-11-30 Aditya Kumar <aditya.k7@samsung.com>
1819 Sebastian Pop <s.pop@samsung.com>
1821 PR tree-optimization/68565
1822 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Early return on
1823 codegen_error. Fail when rhs of division operations is integer_zerop.
1824 (ternary_op_to_tree): Early return on codegen_error.
1825 (unary_op_to_tree): Same.
1826 (nary_op_to_tree): Same.
1827 (gcc_expression_from_isl_expr_op): Same.
1828 (gcc_expression_from_isl_expression): Same.
1829 (graphite_create_new_loop): On codegen_error continue generating
1831 (graphite_create_new_loop_guard): Same.
1832 (build_iv_mapping): Same.
1833 (graphite_create_new_guard): Same.
1835 2015-11-30 Aditya Kumar <aditya.k7@samsung.com>
1836 Sebastian Pop <s.pop@samsung.com>
1838 * graphite-isl-ast-to-gimple.c: Fix dump messages.
1839 * graphite-scop-detection.c: Same.
1840 * graphite-sese-to-poly.c (isl_id_for_ssa_name): Do not call get_name.
1842 2015-11-30 Cesar Philippidis <cesar@codesourcery.com>
1844 * tree-nested.c (convert_nonlocal_omp_clauses): Add support for
1845 OMP_CLAUSE_{NUM_GANGS,NUM_VECTORS,VECTOR_LENGTH,SEQ}.
1846 (convert_local_omp_clauses): Likewise.
1848 2015-11-30 Tom de Vries <tom@codesourcery.com>
1850 PR tree-optimization/46032
1851 * tree-ssa-structalias.c (find_func_aliases_for_call_arg): New function,
1853 (find_func_aliases_for_call): ... here.
1854 (find_func_aliases_for_builtin_call, find_func_clobbers): Handle
1855 BUILT_IN_GOMP_PARALLEL.
1856 (ipa_pta_execute): Same. Handle node->parallelized_function as a local
1859 2015-11-30 Jakub Jelinek <jakub@redhat.com>
1861 PR tree-optimization/68501
1862 * target.def (builtin_reciprocal): Replace the 3 arguments with
1863 a gcall * one, adjust description.
1864 * targhooks.h (default_builtin_reciprocal): Replace the 3 arguments
1866 * targhooks.c (default_builtin_reciprocal): Likewise.
1867 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Use
1868 targetm.builtin_reciprocal even on internal functions, adjust
1869 the arguments and allow replacing an internal function with normal
1871 * config/i386/i386.c (ix86_builtin_reciprocal): Replace the 3 arguments
1872 with a gcall * one. Handle internal fns too.
1873 * config/rs6000/rs6000.c (rs6000_builtin_reciprocal): Likewise.
1874 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
1875 * doc/tm.texi (builtin_reciprocal): Document.
1877 2015-11-30 Richard Biener <rguenther@suse.de>
1879 PR tree-optimization/68592
1880 * tree-vect-loop.c (vect_analyze_loop_2): Reset SLP type also
1881 on the pattern def sequence.
1883 2015-11-30 Nathan Sidwell <nathan@acm.org>
1885 * config/nvptx/nvptx.c (nvptx_name_replacement): Move earlier.
1886 (write_one_arg): Reorder parms, add 'sep' param.
1887 (nvptx_write_function_decl): Rename to ...
1888 (write_fn_proto): ... here. Do name replacement. Emit linaer
1889 comment marker. Deal with both decls and defns. Simplify argument
1891 (write_function_decl_and_comment): Delete.
1892 (write_func_decl_from_insn): Rename to ...
1893 (write_fn_proto_from_insn): ... here. Don't do name replacement.
1894 (nvptx_record_fndecl): Call write_fn_proto.
1895 (nvptx_record_libfunc): Call write_fn_proto_from_insn.
1896 (nvptx_declare_function_name): Adjust for write_fn_proto changes.
1897 (nvotx_output_call_insn): Call write_fn_prot_from_insn.
1899 2015-11-30 Kirill Yukhin <kirill.yukhin@intel.com>
1901 * config/i386/i386.md (define_mode_iterator SWI1248_AVX512BW): New.
1902 (define_insn "*k<logic><mode>"): Use new iterator.
1904 2015-11-30 Eric Botcazou <ebotcazou@adacore.com>
1907 * config/sparc/sparc.c (supersparc_adjust_cost): Fix thinko.
1908 (sparc_adjust_cost): Add missing space.
1910 2015-11-30 Richard Biener <rguenther@suse.de>
1913 * dwarf2out.c (gen_type_die_with_usage): Keep variant types of arrays.
1915 2015-11-30 Venkataramanan Kumar <Venkataramanan.Kumar@amd.com>
1917 * tree-if-conv.c (struct ifc_dr): Add new tree base_predicate field.
1918 (hash_memrefs_baserefs_and_store_DRs_read_written_info): Hash
1919 base ref, DR pairs and store base_predicate for write type DRs.
1920 (ifcvt_memrefs_wont_trap): Guard checks with
1921 -ftree-loop-if-convert-stores flag.
1923 2015-11-29 Jan Hubicka <hubicka@ucw.cz>
1925 * cgraph.c (cgraph_node::make_local): No name is unique during
1926 incremental linking.
1927 * cgraph.h (can_be_discarded_p): Update comment; also common and
1928 WEAK in named sections can be discarded; when doing incremental
1929 link do not rely on resolution being the final one.
1930 * varasm.c (default_binds_local_p_3, decl_binds_to_current_def_p):
1931 When symbol can be discarded, do not rely on resolution info.
1932 * symtab.c (symtab_node::nonzero_address): Take into account that
1933 symbol can be discarded.
1934 * ipa-visibility.c (update_visibility_by_resolution_info): Handle
1935 definition correctly.
1936 (function_and_variable_visibility): Do not set unique_name when
1937 incrementally linking.
1939 2015-11-29 Nathan Sidwell <nathan@acm.org>
1941 * config/nvptx/nvptx.md (const_0_operand, global_mem_operand,
1942 const_mem_operand, param_mem_operand, shared_mem_operand): Delete.
1943 (ctrap<mode>): Use const0_operand.
1945 2015-11-29 Jan Hubicka <hubicka@ucw.cz>
1947 * ipa-devirt.c (add_type_duplicate): Remove redundant
1950 2015-11-29 David Edelsohn <dje.gcc@gmail.com>
1953 * config/rs6000/rs6000.c (rs6000_adjust_cost): Correct
1954 recog_memoized test for insn and check recog_memoized for dep_insn.
1956 2015-11-28 Nathan Sidwell <nathan@acm.org>
1958 * config/nvptx/nvptx.h (FIRST_PARM_OFFSET): Add void cast.
1959 (FRAME_POINTER_CFA_OFFSET): Define.
1960 (struct nvptx_args): Use 'tree' type.
1961 (INIT_CUMULATIVE_ARGS): Remove unnecessary do...while.
1963 2015-11-28 Tom de Vries <tom@codesourcery.com>
1965 * lto-wrapper.c (run_gcc): Handle -flinker-output argument.
1967 2015-11-27 Jonathan Wakely <jwakely@redhat.com>
1969 * doc/invoke.texi (Option Summary): Use negative form of
1970 -Waggressive-loop-optimizations, remove redundant -Wpedantic-ms-format,
1971 sort alphabetically and re-justify.
1973 2015-11-27 Vladimir Makarov <vmakarov@redhat.com>
1975 PR rtl-optimization/68536
1976 * lra.c (lra_emit_add): Add code for null base.
1977 * lra-constraints.c (curr_insn_transform): Skip operators for
1980 2015-11-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1983 2015-11-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1985 * ifcvt.c (insn_valid_noce_process_p): Reject insn if it satisfies
1987 (noce_try_cmove_arith): Add checking asserts that orig_a and orig_b
1988 are not modified by the final modified insns in the basic blocks.
1990 2015-11-27 Nathan Sidwell <nathan@acm.org>
1992 * config/nvptx/nvptx-protos.h (nvptx_addr_space_from_address):
1994 * config/nvptx/nvptx.c (nvptx_addr_space_from_sym): New.
1995 (nvptx_maybe_convert_symbolic_operand): Simplify.
1996 (nvptx_addr_space_from_address): Delete.
1997 (nvptx_print_operand): Adjust 'A' case.
1999 2015-11-27 Richard Biener <rguenther@suse.de>
2001 PR tree-optimization/68559
2002 * tree-vect-data-refs.c (vect_analyze_group_access_1): Move
2003 peeling for gap checks ...
2004 * tree-vect-stmts.c (vectorizable_load): ... here and relax for SLP.
2005 * tree-vect-loop.c (vect_analyze_loop_2): Re-set
2006 LOOP_VINFO_PEELING_FOR_GAPS before re-trying without SLP.
2008 2015-11-27 Nathan Sidwell <nathan@acm.org>
2010 * config/nvptx/nvptx-protos.h (nvptx_record_needed_decl): Don't declare.
2011 * config/nvptx/nvptx.c (write_func_decl_from_insn): Move earlier.
2012 (nvptx_record_fndecl): Don't return value, remove force
2013 argument. Require fndecl.
2014 (nvptx_record_libfunc): New.
2015 (nvptx_record_needed_decl): Deteermine how to record decl here.
2016 (nvptx_maybe_record_fnsym): New.
2017 (nvptx_expand_call): Don't record libfuncs here,
2018 (nvptx_maybe_convert_symbolic_operand): Use
2019 nvptx_maye_record_fnsym.
2020 (nvptx_assemble_integer): Reimplement with single switch.
2021 (nvptx_output_call_insn): Register libfuncs here.
2022 (nvptx_file_end): Adjust nvptx_record_fndecl call.
2023 * config/nvptx/nvptx.md (expand_movdi): Don't call
2024 nvptx_record_needed_decl.
2026 2015-11-27 Richard Biener <rguenther@suse.de>
2028 PR tree-optimization/68553
2029 * tree-vect-slp.c (vect_create_mask_and_perm): Skip VEC_PERM_EXPR
2030 generation for 1:1 permutations.
2031 (vect_transform_slp_perm_load): Detect 1:1 permutations.
2033 2015-11-27 Bernd Schmidt <bschmidt@redhat.com>
2035 * gimple.h (nonbarrier_call_p): Declare.
2036 * gimple.c (nonbarrier_call_p): New function.
2037 * tree-ssa-phiopt.c (nontrapping_dom_walker::before_dom_children):
2038 Also increment call phase for ASMs with vdef and potential barrier
2041 2015-11-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2043 * ifcvt.c (insn_valid_noce_process_p): Reject insn if it satisfies
2045 (noce_try_cmove_arith): Add checking asserts that orig_a and orig_b
2046 are not modified by the final modified insns in the basic blocks.
2048 2015-11-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2050 PR rtl-optimization/68506
2051 * ifcvt.c (noce_try_cmove_arith): Try emitting the else basic block
2052 first if emit_a exists or then_bb modifies 'b'. Reindent if-else
2055 2015-11-27 Martin Liska <mliska@suse.cz>
2058 * vec.h (release_vec_vec): New function.
2060 2015-11-27 Jakub Jelinek <jakub@redhat.com>
2062 PR tree-optimization/68552
2063 * optabs.c (expand_vec_perm_1): Move vec_shr handling from here...
2064 (expand_vec_perm): ... here. Do it regardless of vec_perm_const_optab
2065 or whether v0 == v1.
2067 2015-11-27 Martin Liska <mliska@suse.cz>
2069 * tree-ssa-uninit.c: Fix whitespaces in the source file.
2070 The change is just automatical.
2072 2015-11-27 Martin Liska <mliska@suse.cz>
2074 * tree-chkp.c (chkp_make_static_bounds): Release buffer
2077 2015-11-27 Martin Liska <mliska@suse.cz>
2079 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
2080 Do not release memory for comp_alias_ddrs.
2081 * tree-vect-loop.c (destroy_loop_vec_info): Release
2082 the memory for all loop_vec_info.
2084 2015-11-27 Martin Liska <mliska@suse.cz>
2086 * ipa-devirt.c (ipa_devirt): Use auto_vec instead
2087 of a local-scope vec.
2088 (struct final_warning_record): Use auto_vec instead of vec.
2090 2015-11-27 Richard Biener <rguenther@suse.de>
2092 PR tree-optimization/68553
2093 * tree-vect-slp.c (vect_get_mask_element): Remove.
2094 (vect_transform_slp_perm_load): Implement in a simpler way.
2096 2015-11-26 Alexandre Oliva <aoliva@redhat.com>
2098 PR rtl-optimization/67753
2099 PR rtl-optimization/64164
2100 * function.c (assign_parm_setup_block): Right-shift
2101 upward-padded big-endian args when bypassing the stack slot.
2103 2015-11-26 Maciej W. Rozycki <macro@imgtec.com>
2105 * doc/invoke.texi (Option Summary) <MIPS Options>: Reorder
2106 `-mcompact-branches='.
2107 (MIPS Options): Likewise.
2109 2015-11-26 Jakub Jelinek <jakub@redhat.com>
2111 * Makefile.in (build/genmatch.o): Depend on internal-fn.def.
2113 2015-11-26 David Edelsohn <dje.gcc@gmail.com>
2115 * doc/install.texi (Prerequisites): Increase ISL requirement to
2118 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
2120 * config/aarch64/arm_neon.h
2121 (vqrdmlah_laneq_s16, vqrdmlah_laneq_s32): New.
2122 (vqrdmlahq_laneq_s16, vqrdmlahq_laneq_s32): New.
2123 (vqrdmlsh_lane_s16, vqrdmlsh_lane_s32): New.
2124 (vqrdmlshq_laneq_s16, vqrdmlshq_laneq_s32): New.
2125 (vqrdmlah_lane_s16, vqrdmlah_lane_s32): New.
2126 (vqrdmlahq_lane_s16, vqrdmlahq_lane_s32): New.
2127 (vqrdmlahh_s16, vqrdmlahh_lane_s16, vqrdmlahh_laneq_s16): New.
2128 (vqrdmlahs_s32, vqrdmlahs_lane_s32, vqrdmlahs_laneq_s32): New.
2129 (vqrdmlsh_lane_s16, vqrdmlsh_lane_s32): New.
2130 (vqrdmlshq_lane_s16, vqrdmlshq_lane_s32): New.
2131 (vqrdmlshh_s16, vqrdmlshh_lane_s16, vqrdmlshh_laneq_s16): New.
2132 (vqrdmlshs_s32, vqrdmlshs_lane_s32, vqrdmlshs_laneq_s32): New.
2134 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
2136 * config/aarch64/arm_neon.h (vqrdmlah_s16, vqrdmlah_s32): New.
2137 (vqrdmlahq_s16, vqrdmlahq_s32): New.
2138 (vqrdmlsh_s16, vqrdmlsh_s32): New.
2139 (vqrdmlshq_s16, vqrdmlshq_s32): New.
2141 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
2143 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Add
2146 2015-11-26 Pierre-Marie de Rodat <derodat@adacore.com>
2149 * tree-nested.c (finalize_nesting_tree_1): Append a field to
2150 hold the frame base address.
2151 * dwarf2out.c (gen_subprogram_die): Generate for
2152 DW_AT_static_link a location description that computes the value
2155 2015-11-26 Tom de Vries <tom@codesourcery.com>
2158 2015-11-25 Tom de Vries <tom@codesourcery.com>
2160 * cfgloop.c (find_single_latch): New function, factored out of ...
2161 (flow_loops_find): ... here.
2162 (verify_loop_structure): Improve verification of loop->latch.
2163 * cfgloop.h (find_single_latch): Declare.
2164 * omp-low.c (expand_omp_for_generic): Initialize latch of orig_loop.
2166 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
2168 * config/aarch64/aarch64-simd-builtins.def:
2169 Add missing changes from r230962.
2171 2015-11-26 Nathan Sidwell <nathan@acm.org>
2173 * config/nvptx/nvptx.c (write_func_decl_from_insn): Replace callee
2174 arg with name. Don't deal with split regs. Tweak formatting.
2175 (nvptx_expand_call): Adjust write_func_decl_from_insn call.
2176 (nvptx_output_call_insn): Don't deal with split regs here.
2178 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
2180 * config/aarch64/aarch64-simd-builtins.def
2181 (sqrdmlah, sqrdmlsh): New.
2182 (sqrdmlah_lane, sqrdmlsh_lane): New.
2183 (sqrdmlah_laneq, sqrdmlsh_laneq): New.
2185 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
2187 * config/aarch64/aarch64-simd.md
2188 (aarch64_sqmovun<mode>): Fix some white-space.
2189 (aarch64_<sur>qmovun<mode>): Likewise.
2190 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h<mode>): New.
2191 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): New.
2192 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): New.
2193 * config/aarch64/iterators.md (UNSPEC_SQRDMLAH): New.
2194 (UNSPEC_SQRDMLSH): New.
2198 2015-11-26 Richard Biener <rguenther@suse.de>
2200 PR tree-optimization/66721
2201 * tree-vect-loop.c (vect_analyze_loop_2): Compute scalar
2202 iteration cost earlier. Re-do analysis without SLP when
2203 vectorization using SLP fails and without has a chance to succeed.
2205 2015-11-26 Richard Biener <rguenther@suse.de>
2207 * genmatch.c (dt_simplify::gen_1): For generic wrap all
2208 multi-result-use captures in a SAVE_EXPR.
2210 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
2212 * config/aarch64/aarch64.h (AARCH64_ISA_RDMA): New.
2213 (TARGET_SIMD_RDMA): New.
2215 2015-11-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2217 * combine.c (subst): Do not return clobber of zero in widening mult
2218 case. Just return x unchanged if it is a no-op substitution.
2220 2015-11-26 Vladimir Makarov <vmakarov@redhat.com>
2223 * config/i386/i386.h (enum reg_class): Add
2224 bounds registers to ALL_REGS.
2226 2015-11-26 Jakub Jelinek <jakub@redhat.com>
2228 PR tree-optimization/68128
2229 * tree.h (OMP_CLAUSE_SHARED_READONLY): Define.
2230 * gimplify.c: Include gimple-walk.h.
2231 (enum gimplify_omp_var_data): Add GOVD_WRITTEN.
2232 (omp_notice_variable): Set flags to n->value if n already
2233 exists in target region, but we need to jump to do_outer.
2234 (omp_shared_to_firstprivate_optimizable_decl_p,
2235 omp_mark_stores, omp_find_stores_op, omp_find_stores_stmt): New
2237 (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_SHARED_READONLY
2238 on OMP_CLAUSE_SHARED if it is a scalar non-addressable that is
2239 not modified in the body. Call omp_mark_stores for outer
2240 contexts on OMP_CLAUSE_SHARED clauses if they could be written
2241 in the body or on OMP_CLAUSE_LASTPRIVATE.
2242 (gimplify_adjust_omp_clauses): Add body argument, call
2243 omp_find_stores_{stmt,op} on the body through walk_gimple_seq.
2244 Set OMP_CLAUSE_SHARED_READONLY
2245 on OMP_CLAUSE_SHARED if it is a scalar non-addressable that is
2246 not modified in the body. Call omp_mark_stores for outer
2247 contexts on OMP_CLAUSE_SHARED clauses if they could be written
2248 in the body or on OMP_CLAUSE_LASTPRIVATE or on OMP_CLAUSE_LINEAR
2249 without OMP_CLAUSE_LINEAR_NO_COPYOUT or on OMP_CLAUSE_REDUCTION.
2250 (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task,
2251 gimplify_omp_for, gimplify_omp_workshare, gimplify_omp_target_update,
2252 gimplify_expr): Adjust gimplify_adjust_omp_clauses callers.
2253 * tree-nested.c (convert_nonlocal_omp_clauses,
2254 convert_local_omp_clauses): Clear OMP_CLAUSE_SHARED_READONLY on
2255 non-local vars or local vars referenced from nested routines.
2256 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_SHARED_READONLY
2257 attempt to optimize it into OMP_CLAUSE_FIRSTPRIVATE. Even for
2258 TREE_READONLY, don't call use_pointer_for_field with non-NULL
2259 second argument until we are sure we are keeping OMP_CLAUSE_SHARED.
2261 2015-11-26 Paolo Bonzini <bonzini@gnu.org>
2263 * doc/implement-c.texi (Integers Implementation): Make GCC's promises
2264 about signed left shift stronger and clarify the cases when they're
2267 2015-11-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2268 Bernd Schmidt <bschmidt@redhat.com>
2270 PR rtl-optimization/67226
2271 * calls.c (store_one_arg): Take into account
2272 crtl->args.pretend_args_size when checking for overlap between
2273 arg->value and argblock + arg->locate.offset during sibcall
2276 2015-11-26 Wilco Dijkstra <wdijkstr@arm.com>
2278 * config/aarch64/aarch64.md (cbranch<mode>4): Use
2279 aarch64_fp_compare_operand.
2280 (store_pairsf): Use aarch64_reg_or_fp_zero.
2281 (store_pairdf): Likewise.
2282 (cstore<mode>4): Use aarch64_fp_compare_operand.
2283 (cmov<mode>6): Likewise.
2284 * config/aarch64/aarch64-ldpstp.md: Use aarch64_reg_or_fp_zero.
2286 2015-11-25 Aditya Kumar <aditya.k7@samsung.com>
2287 Sebastian Pop <s.pop@samsung.com>
2289 PR tree-optimization/68453
2290 * graphite-isl-ast-to-gimple.c (translate_isl_ast_for_loop): Do
2291 not redirect edges already pointing to their destination.
2292 (translate_isl_ast_node_for): Split edges after loops to create
2293 basic blocks for close phi nodes. Save merge points at the end of
2295 (translate_isl_ast_node_if): Save merge points at the end of the
2297 (add_close_phis_to_outer_loops): New.
2298 (add_close_phis_to_merge_points): New.
2299 (copy_loop_close_phi_args): Call add_close_phis_to_merge_points.
2300 (copy_bb_and_scalar_dependences): Do not split basic blocks on
2301 loop close phi locations.
2303 2015-11-25 Jan Hubicka <jh@suse.cz>
2305 * ipa-visibility.c (cgraph_externally_visible_p,
2306 varpool_node::externally_visible_p): When doing incremental linking,
2307 hidden symbols may be still used later.
2308 (update_visibility_by_resolution_info): Do not drop weak during
2310 (function_and_variable_visibility): Fix formating.
2311 * flag-types.h (lto_linker_output): Declare.
2312 * common.opt 9flag_incremental_link): New flag.
2314 2015-11-25 Michael Meissner <meissner@linux.vnet.ibm.com>
2316 * config/rs6000/constraints.md (wb constraint): New constraint for
2317 ISA 3.0 d-form scalar addressing.
2319 * config/rs6000/rs6000.c (mode_supports_vmx_dform): Add support
2320 for ISA 3.0 D-form addressing to load SFmode/DFmode scalars into
2321 Altivec registers. Add wb constraint for Altivec registers with
2322 D-form addressing. If we have ISA 3.0 d-form support, undo
2323 secondary reload support for using FPR registers if we want to do
2325 (rs6000_debug_reg_global): Likewise.
2326 (rs6000_setup_reg_addr_masks): Likewise.
2327 (rs6000_init_hard_regno_mode_ok): Likewise.
2328 (rs6000_secondary_reload): Likewise.
2329 (rs6000_preferred_reload_class): Likewise.
2330 (rs6000_secondary_reload_class): Likewise.
2332 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wb
2335 * config/rs6000/rs6000.md (f32_lr2 mode attribute): Add support
2336 for ISA 3.0 SFmode/DFmode d-form addressing to Altivec registers.
2337 (f32_lm2): Likewise.
2338 (f32_li2): Likewise.
2339 (f32_sr2): Likewise.
2340 (f32_sm2): Likewise.
2341 (f32_si2): Likewise.
2343 (extendsfdf2_fpr): Likewise.
2344 (mov<mode>_hardfloat): Likewise.
2345 (mov<mode>_hardfloat32): Likewise.
2346 (mov<mode>_hardfloat64): Likewise.
2348 * doc/md.texi (RS/6000 constraints): Document wb constraint.
2349 Fixup we constraint documentation.
2351 2015-11-25 Tom de Vries <tom@codesourcery.com>
2353 * omp-low.c (pass_expand_omp_ssa::clone): New function.
2354 * passes.def: Add pass_oacc_kernels pass group.
2355 * tree-ssa-loop-ch.c (pass_ch::clone): New function.
2357 2015-11-25 Tom de Vries <tom@codesourcery.com>
2359 * tree-pass.h (make_pass_oacc_kernels, make_pass_oacc_kernels2):
2361 * tree-ssa-loop.c (gate_oacc_kernels): New static function.
2362 (pass_data_oacc_kernels, pass_data_oacc_kernels2): New pass_data.
2363 (class pass_oacc_kernels, class pass_oacc_kernels2): New pass.
2364 (make_pass_oacc_kernels, make_pass_oacc_kernels2): New function.
2366 2015-11-25 Jan Hubicka <hubicka@ucw.cz>
2368 * timevar.def (TV_IPA_LTO_DECOMPRESS, TV_IPA_LTO_COMPRESS,
2369 TV_IPA_LTO_OUTPUT): New.
2370 * lto-compress.c: Include timevar.h
2371 (lto_end_compression, lto_end_uncompression): Add timers.
2372 * langhooks.c: Include timevar.h.
2373 (lhd_append_data): Add timer.
2375 2015-11-25 Jan Hubicka <hubicka@ucw.cz>
2377 * varasm.c (default_elf_asm_output_limited_string,
2378 default_elf_asm_output_ascii): Replace fprintf by putc.
2380 2015-11-25 Vladimir Makarov <vmakarov@redhat.com>
2382 PR rtl-optimization/67954
2383 * lra-constraints.c (curr_insn_transform): Add check on scratch
2384 pseudo when change class to NO_REGS. Add an assert.
2386 2015-11-25 Nathan Sidwell <nathan@acm.org>
2388 * config/nvptx/nvptx.md (load_arg_reg<mode>): Arg number
2390 * config/nvptx/nvptx.c (write_one_arg): Use 'i' directly as arg number.
2391 (nvptx_write_function_decl): Number args from 0.
2392 (nvptx_declare_function_name): Likewise.
2393 (nvptx_function_incoming_arg): Likewise.
2394 (nvptx_output_call_insn): Correct formatting.
2396 2015-11-25 David Sherwood <david.sherwood@arm.com>
2398 * optabs.def: Add new optabs fmax_optab/fmin_optab.
2399 * internal-fn.def: Add new fmax/fmin internal functions.
2400 * doc/md.texi: Add fmin and fmax patterns.
2402 2015-11-25 Jason Merrill <jason@redhat.com>
2405 * tree.c (integer_zerop, integer_onep, integer_each_onep)
2406 (integer_all_onesp, integer_minus_onep, integer_pow2p)
2407 (integer_nonzerop, integer_truep, tree_log2, tree_floor_log2)
2408 (real_zerop, real_onep, real_minus_onep): Remove STRIP_NOPS.
2410 2015-11-25 Richard Biener <rguenther@suse.de>
2413 * fold-const.c (fold_binary_loc): Do not call negate_expr_p
2414 on stripped operands.
2416 2015-11-25 Nathan Sidwell <nathan@acm.org>
2418 * config/nvptx/nvptx.c (walk_args_for_params): Delete.
2419 (nvptx_declare_function_name): Move assignments next to register
2420 declarations, and process params here.
2422 2015-11-25 David Edelsohn <dje.gcc@gmail.com>
2424 * config/rs6000/rs6000.c (rs6000_declare_alias): Rename and globalize
2425 both the symbol and the "dot" symbol for function descriptors. Fix
2426 inversion for rename of symbols with dollar sign.
2428 2015-11-25 Tom de Vries <tom@codesourcery.com>
2430 * cfgloop.c (find_single_latch): New function, factored out of ...
2431 (flow_loops_find): ... here.
2432 (verify_loop_structure): Improve verification of loop->latch.
2433 * cfgloop.h (find_single_latch): Declare.
2434 * omp-low.c (expand_omp_for_generic): Initialize latch of orig_loop.
2436 2015-11-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2438 * config/sol2.h (SUPPORTS_INIT_PRIORITY): Move up.
2439 (STARTFILE_VTV_SPEC, ENDFILE_VTV_SPEC): Define.
2440 (STARTFILE_SPEC): Use %(startfile_vtv).
2441 (ENDFILE_SPEC): Use %(endfile_vtv).
2442 (SUBTARGET_EXTRA_SPECS): Handle STARTFILE_VTV_SPEC,
2445 * gcc.c (LINK_COMMAND_SPEC): Move VTABLE_VERIFICATION_SPEC after %{L*}.
2447 2015-11-25 Bernd Schmidt <bschmidt@redhat.com>
2449 * ifcvt.c (noce_mem_write_may_trap_or_fault_p,
2450 noce_can_store_speculate): Delete.
2451 (noce_process_if_block): Don't try to handle single MEM stores.
2452 * rtl.h (memory_must_be_modified_in_insn_p): Don't declare.
2453 * alias.c (memory_must_be_modified_in_insn_p): Delete.
2455 2015-11-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2457 PR rtl-optimization/68435
2458 * ifcvt.c (noce_try_cmove_arith): Skip final insn when checking
2459 for conflicts between a, b and the set destinations.
2461 2015-11-25 Richard Biener <rguenther@suse.de>
2463 PR tree-optimization/68517
2464 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses):
2465 Properly handle zero-sized types.
2467 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
2469 * ipa-inline-analysis.c: Include gimplify.h
2470 (set_cond_stmt_execution_predicate,
2471 set_switch_stmt_execution_predicate): Be sure to not leak locations
2474 2015-11-25 Jakub Jelinek <jakub@redhat.com>
2477 * tree-ssa-math-opts.c (uaddsub_overflow_check_p,
2478 match_uaddsub_overflow): New functions.
2479 (pass_optimize_widening_mul::execute): Call match_uaddsub_overflow.
2481 2015-11-25 Richard Biener <rguenther@suse.de>
2483 PR tree-optimization/68492
2484 * tree-vect-slp.c (vect_build_slp_tree): Consistently build up
2485 op from scalars after operand swapping.
2487 2015-11-25 Richard Biener <rguenther@suse.de>
2489 PR tree-optimization/68502
2490 * tree-vect-data-refs.c (vect_analyze_group_access_1): Restore
2491 check that the step is a multiple of the type size.
2493 2015-11-24 Michael Collison <michael.collison@linaro.org>
2495 * config/aarch64/aarch64-simd.md (widen_ssum, widen_usum)
2496 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w<mode>_internal): New patterns
2497 * config/aarch64/iterators.md (Vhalf, VDBLW): New mode attributes.
2499 2015-11-24 Steve Ellcey <sellcey@imgtec.com>
2501 * frame-header-opt.c (gate): Check for optimize > 0.
2502 (has_inlined_assembly): New function.
2503 (needs_frame_header_p): Remove is_leaf_function check,
2504 add argument type check.
2505 (callees_functions_use_frame_header): Add is_leaf_function
2506 and has_inlined_assembly calls..
2507 (set_callers_may_not_allocate_frame): New function.
2508 (frame_header_opt): Add is_leaf_function call, add
2509 set_callers_may_not_allocate_frame call.
2510 * config/mips/mips.c (mips_compute_frame_info): Add check
2511 to see if callee saved regs can be put in frame header.
2512 (mips_expand_prologue): Add check to see if step1 is zero,
2513 fix cfa restores when using frame header to store regs.
2514 (mips_can_use_return_insn): Check to see if registers are
2515 stored in frame header.
2516 * config/mips/mips.h (machine_function): Add
2517 callers_may_not_allocate_frame and
2518 use_frame_header_for_callee_saved_regs fields.
2520 2015-11-24 Segher Boessenkool <segher@kernel.crashing.org>
2522 PR rtl-optimization/68520
2523 * shrink-wrap.c (try_shrink_wrapping): Don't push a block to VEC if
2524 its bit was already set in BB_WITH.
2526 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
2528 * alias.c (get_alias_set): Before checking TYPE_ALIAS_SET_KNOWN_P
2529 double check that type is main variant.
2530 * tree.c (build_variant_type_copy): Clear TYPE_ALIAS_SET when producing
2532 (verify_type_variant): Verify that variants have no
2533 TYPE_ALIAS_SET_KNOWN_P set
2534 * tree-streamer-out.c (pack_ts_type_common_value_fields): Reorder
2535 streaming so constant fields come first; stream TYPE_ALIAS_SET==0
2536 only for main variants; stream TYPE_ALIAS_SET as a bit.
2537 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Update
2540 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
2542 * tree.c (make_vector_type): Properly compute canonical type of the
2544 (verify_type): Verify that TYPE_CANONICAL of TYPE_MAIN_VARIANT is
2547 2015-11-24 Nathan Sidwell <nathan@acm.org>
2549 * config/nvptx/nvptx.c (maybe_split_mode): Return new mode or
2550 VOIDmode, don't alter incoming mode.
2551 (nvptx_split_reg_p): Delete.
2552 (write_one_arg, walk_args_for_param, nvptx_declare_function_name,
2553 write_func_decl_from_insn, nvptx_output_call_insn): Adjust
2554 maybe_split_mode calls.
2555 (nvptx_print_operand): Use maybe_split_mode.
2557 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
2559 * lto-streamer-in.c (lto_read_body_or_constructor): Set TYPE_CANONICAL
2560 only for types where LTO sets them.
2561 * tree.c (build_array_type_1): Do ont set TYPE_CANONICAL for LTO.
2562 (make_vector_type): Likewise.
2563 (gimple_canonical_types_compatible_p): Use canonical_type_used_p.
2564 * tree.h (canonical_type_used_p): New inline.
2565 * alias.c (get_alias_set): Handle structural equality for all
2566 types that pass canonical_type_used_p.
2567 (record_component_aliases): Look through all types with
2568 record_component_aliases for possible pointers; sanity check that
2569 the alias sets match.
2571 2015-11-24 Michael Meissner <meissner@linux.vnet.ibm.com>
2573 * config/rs6000/rs6000.md (lround<mode>di2): Remove constraints.
2575 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
2577 * tree.c (free_node): New function.
2578 (type_hash_canon): Use it.
2579 * tree.h (free_node): Declare.
2581 2015-11-24 David Edelsohn <dje.gcc@gmail.com>
2582 Michael Meissner <meissner@linux.vnet.ibm.com>
2584 * config/rs6000/rs6000.md (UNSPEC_XSRDPI): New unspec.
2585 (Fv2): New mode attribute to be used when ISA 2.07 instructions
2586 are used on SF values, and ISA 2.06 instructions on DF values.
2587 (add<mode>3_fpr): Use <Fv2> instead of <Fv>.
2588 (sub<mode>3_fpr): Use <Fv2> instead of <Fv>.
2589 (mul<mode>3_fpr): Use <Fv2> instead of <Fv>.
2590 (div<mode>3_fpr): Use <Fv2> instead of <Fv>.
2591 (sqrt<mode>2): Use <Fv2> instead of <Fv>.
2592 (fre<Fs>): Use <Fv2> instead of <Fv>.
2593 (rsqrt<mode>2): Use <Fv2> instead of <Fv>.
2594 (cmp<mode>_fpr): Use <Fv2> instead of <Fv>.
2595 (xsrdpi<mode>): Add support for the lround function.
2596 (lround<mode>di2): Likewise.
2597 (fma<mode>4_fpr): Use <Fv2> instead of <Fv>.
2598 (fms<mode>4_fpr): Use <Fv2> instead of <Fv>.
2599 (nfma<mode>4_fpr): Use <Fv2> instead of <Fv>.
2600 (nfms<mode>4_fpr): Use <Fv2> instead of <Fv>.
2602 2015-11-24 Aditya Kumar <aditya.k7@samsung.com>
2603 Sebastian Pop <s.pop@samsung.com>
2605 PR tree-optimization/67984
2606 * graphite-isl-ast-to-gimple.c (is_constant): New.
2607 (get_rename): Call is_constant.
2608 (get_new_name): Same.
2610 2015-11-24 Aditya Kumar <aditya.k7@samsung.com>
2611 Sebastian Pop <s.pop@samsung.com>
2613 * graphite-dependences.c: Only include graphite.h.
2614 * graphite-isl-ast-to-gimple.c: Same.
2615 * graphite-optimize-isl.c: Same.
2616 * graphite-poly.c: Same.
2617 * graphite-scop-detection.c: Same.
2618 * graphite-sese-to-poly.c: Same.
2620 * graphite-isl-ast-to-gimple.h: Move to graphite.h.
2621 * graphite-poly.h: Same.
2622 * graphite-scop-detection.h: Same.
2625 2015-11-24 Pierre-Marie de Rodat <derodat@adacore.com>
2627 * dwarf2out.c (gen_decl_die): Generate DW_TAG_imported_* instead of
2628 DW_TAG_namespace for IMPORTED_DECL declarations. Call
2629 dwarf2out_imported_module_or_decl_1 for all DWARF versions as this
2630 function already takes care of checking what it can emit.
2632 2015-11-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
2634 * doc/invoke.texi (-fpic): Add the AArch64 limit.
2635 (-fPIC): Add AArch64.
2637 2015-11-24 Tom de Vries <tom@codesourcery.com>
2639 * tree-ssa-loop-im.c (tree_ssa_lim): Make static.
2640 (pass_lim::execute): Allow to run outside pass_tree_loop.
2642 2015-11-24 Wilco Dijkstra <wdijkstr@arm.com>
2644 * config/aarch64/aarch64.md (add<mode>3):
2645 Block early expansion into 2 add instructions.
2646 (add<mode>3_pluslong): New pattern to combine complex
2647 immediates into 2 additions.
2649 2015-11-24 Segher Boessenkool <segher@kernel.crashing.org>
2654 * config/rs6000/predicates.md (and_operand): Check that the operand
2655 is a const_int before calling rs6000_is_valid_and_mask.
2657 2015-11-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2659 * config/aarch64/aarch64.md (*condjump): Rename to...
2660 (condjump): ... This.
2661 (*compare_condjump<mode>): New define_insn_and_split.
2662 (*compare_cstore<mode>_insn): Likewise.
2663 (*cstore<mode>_insn): Rename to...
2664 (cstore<mode>_insn): ... This.
2665 * config/aarch64/iterators.md (CMP): Handle ne code.
2666 * config/aarch64/predicates.md (aarch64_imm24): New predicate.
2668 2015-11-24 Mikhail Maltsev <maltsevm@gmail.com>
2671 * config/i386/i386.c (output_387_binary_op): Fix assertion for
2674 2015-11-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2676 * tree-ssa-uncprop.c (struct val_ssa_equiv_hash_traits): Remove.
2677 (val_ssa_equiv_hash_traits::remove): Likewise.
2678 (pass_uncprop::execute): Adjust.
2680 2015-11-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2682 * hash-map-traits.h (simple_hashmap_traits ::remove): call
2683 destructors on values that are being removed.
2684 * mem-stats.h (hash_map): Pass type of values to
2685 simple_hashmap_traits.
2686 * tree-sra.c (sra_deinitialize): Remove work around for hash
2687 maps not destructing values.
2688 * genmatch.c (sinfo_hashmap_traits): Adjust.
2689 * tree-ssa-uncprop.c (val_ssa_equiv_hash_traits): Likewise.
2691 2015-11-24 Richard Biener <rguenther@suse.de>
2692 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2695 * cfgloop.c (get_loop_body_in_bfs_order): Restructure loop to avoid
2698 2015-11-24 Jakub Jelinek <jakub@redhat.com>
2701 * tree-vect-generic.c (lower_vec_perm): If VEC_PERM_EXPR
2702 is valid vec_shr pattern, don't lower it even if can_vec_perm_p
2704 * optabs.c (shift_amt_for_vec_perm_mask): Return NULL_RTX
2705 whenever first is nelt or above. Don't mask expected with
2708 2015-11-24 Ilya Enkovich <enkovich.gnu@gmail.com>
2711 * gimple-fold.c: Include ipa-chkp.h.
2712 (gimple_fold_builtin_memory_op): Don't fold call if we
2713 are going to instrument it and it may copy pointers.
2715 2015-11-24 Bernd Schmidt <bschmidt@redhat.com>
2716 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2718 PR rtl-optimization/68194
2719 PR rtl-optimization/68328
2720 PR rtl-optimization/68185
2721 * ree.c (combine_reaching_defs): Reject copy_needed case if
2722 copies_list is not empty.
2724 2015-11-24 Richard Biener <rguenther@suse.de>
2727 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Properly
2730 2015-11-24 Segher Boessenkool <segher@kernel.crashing.org>
2732 PR rtl-optimization/68381
2733 * combine.c (is_parallel_of_n_reg_sets): Return false if the pattern
2736 2015-11-23 Nick Clifton <nickc@redhat.com>
2737 Jeff Law <law@redhat.com>
2739 * ree.c (add_removable_extension): Avoid mis-optimizing cases where
2740 the source/dest of the target extension require a different number of
2742 (combine_set_extension): Remove #if 0 code.
2744 2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
2745 Sebastian Pop <s.pop@samsung.com>
2747 PR tree-optimization/68314
2748 * graphite-optimize-isl.c (optimize_isl): Do not call
2749 isl_union_map_is_equal.
2750 * graphite-poly.c (new_scop): Remove original_schedule.
2752 * graphite-poly.h (struct scop): Same.
2753 * graphite-sese-to-poly.c (build_pbb_minimal_scattering_polyhedrons):
2755 (build_pbb_scattering_polyhedrons): Add back.
2756 (build_scop_minimal_scattering): Remove.
2757 (build_scop_scattering): Add back.
2758 (build_scop_original_schedule): Remove.
2759 (build_poly_scop): Revert to only call build_scop_scattering.
2761 2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
2762 Sebastian Pop <s.pop@samsung.com>
2764 PR tree-optimization/68493
2765 * graphite-isl-ast-to-gimple.c (translate_pending_phi_nodes): Add
2766 missing early return when codegen_error is set.
2768 2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
2769 Sebastian Pop <s.pop@samsung.com>
2771 PR tree-optimization/68279
2772 * graphite-poly.c (new_scop): Remove poly_scop_p.
2773 * graphite-poly.h (struct scop): Same.
2774 (build_poly_scop): Declare.
2775 * graphite-sese-to-poly.c: Do not include graphite-sese-to-poly.h.
2776 (cleanup_loop_iter_dom): New.
2777 (build_loop_iteration_domains): Early return when scev analysis fails.
2778 (create_pw_aff_from_tree): Same.
2779 (add_condition_to_pbb): Same.
2780 (add_conditions_to_domain): Same.
2781 (add_conditions_to_constraints): Same.
2782 (build_scop_iteration_domain): Same.
2783 (build_poly_scop): Same. Do not initialize poly_scop_p.
2784 * graphite-sese-to-poly.h: Remove.
2785 * graphite.c: Do not include graphite-sese-to-poly.h.
2786 (graphite_transform_loops): Stop before code generation when
2787 build_poly_scop fails.
2788 * sese.c (scalar_evolution_in_region): Add fixme note about scev
2791 2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
2792 Sebastian Pop <s.pop@samsung.com>
2794 * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
2795 Remove call to update_ssa.
2796 * sese.c (sese_insert_phis_for_liveouts): Same.
2798 2015-11-23 Marek Polacek <polacek@redhat.com>
2800 PR tree-optimization/68455
2801 * tree-vrp.c (extract_range_from_binary_expr_1): Don't call
2802 extract_range_from_multiplicative_op_1 on symbolic ranges.
2804 2015-11-23 Richard Henderson <rth@redhat.com>
2806 * optabs.def (uaddv4_optab, usubv4_optab): New.
2807 * internal-fn.c (expand_addsub_overflow): Use them.
2808 * doc/md.texi (Standard Names): Add uaddv<m>4, usubv<m>4.
2810 * config/i386/i386.c (ix86_cc_mode): Extend add overflow check
2811 to reversed operands.
2812 * config/i386/i386.md (uaddv<SWI>4, usubv<SWI>4): New.
2813 (*add<SWI>3_cconly_overflow_1): Rename *add<SWI>3_cconly_overflow.
2814 (*add<SWI>3_cc_overflow_1): Rename *add<SWI>3_cc_overflow.
2815 (*addsi3_zext_cc_overflow_1): Rename *add3_zext_cc_overflow.
2816 (*add<SWI>3_cconly_overflow_2): New.
2817 (*add<SWI>3_cc_overflow_2): New.
2818 (*addsi3_zext_cc_overflow_2): New.
2820 2015-11-23 Richard Biener <rguenther@suse.de>
2822 PR tree-optimization/68465
2823 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children):
2824 Also record equalities from multiple predecessor blocks if
2825 only one non-backedge exists.
2827 2015-11-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2830 * config/aarch64/aarch64.c (aarch64_madd_needs_nop): Reject arguments
2831 that are not INSN_P.
2833 2015-11-23 Bilyan Borisov <bilyan.borisov@arm.com>
2835 * config/aarch64/aarch64-builtins.c
2836 (aarch64_gimple_fold_builtin): Fold FMULX.
2838 2015-11-23 David Edelsohn <dje.gcc@gmail.com>
2840 * system.h: Don't poison calloc and strdup if USES_ISL is defined.
2841 * graphite-dependences.c: Define USES_ISL. Include ISL header files
2842 after GCC header files and before graphite header files.
2843 * graphite-dependences.c: Same.
2844 * graphite-isl-ast-to-gimple.c: Same.
2845 * graphite-optimize-isl.c: Same.
2846 * graphite-poly.c: Same.
2847 * graphite-scop-detection.c: Same.
2848 * graphite-sese-to-poly.c: Same.
2851 2015-11-23 Richard Biener <rguenth@gcc.gnu.org>
2852 Jiong Wang <jiong.wang@arm.com>
2854 PR tree-optimization/68317
2855 PR tree-optimization/68326
2856 * tree-vrp.c (adjust_range_with_scev): Call drop_tree_overflow if the
2857 final min and max are not infinity.
2859 2015-11-23 Ilya Enkovich <enkovich.gnu@gmail.com>
2860 Richard Biener <rguenther@suse.de>
2862 PR tree-optimization/68327
2863 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
2864 compute vectype for non-relevant mask producers.
2865 * tree-vect-stmts.c (vectorizable_comparison): Check stmt
2868 2015-11-23 Tom de Vries <tom@codesourcery.com>
2870 PR tree-optimization/68460
2871 * tree-parloops.c (gather_scalar_reductions): Also call
2872 free_stmt_vec_info_vec if simple_loop_info == NULL.
2874 2015-11-23 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
2876 * opts.c (finish_options): Allow -fsanitize-recover=address for
2877 userspace sanitization.
2878 * asan.c (asan_expand_check_ifn): Redefine recover_p.
2879 * doc/invoke.texi (fsanitize-recover): Update documentation.
2881 2015-11-23 Tom de Vries <tom@codesourcery.com>
2883 * omp-low.c (build_receiver_ref): Mark by_ref mem_ref as non-trapping.
2885 2015-11-23 Richard Biener <rguenther@suse.de>
2887 PR tree-optimization/68445
2888 * tree-vect-slp.c (vect_create_mask_and_perm): Properly use
2889 two different strides.
2891 2015-11-23 Robin Dapp <rdapp@linux.vnet.ibm.com>
2893 * config/s390/s390.h: Add new symref flags, _NOTALIGN2 etc.
2894 * config/s390/s390.c (s390_check_symref_alignment): Use new
2895 symref flags, early abort on wrong alignment
2896 (s390_secondary_reload): Use new symref flags.
2897 (s390_encode_section_info): Likewise.
2898 * config/s390/predicates.md: Likewise.
2900 2015-11-23 Kugan Vivekanandarajah <kuganv@linaro.org>
2903 * config/arm/arm.c (arm_function_ok_for_sibcall): Get function type
2904 for indirect function call.
2906 2015-11-22 Bilyan Borisov <bilyan.borisov@arm.com>
2908 * config/aarch64/aarch64-simd.md
2909 (*aarch64_mulx_elt_<vswap_width_name><mode>, VDQSF): New.
2910 (*aarch64_mulx_elt<mode>, VDQF): Likewise.
2911 (*aarch64_mulx_elt_to_64v2df): Likewise.
2912 (*aarch64_vgetfmulx<mode>, VDQF_DF): Likewise.
2913 * config/aarch64/arm_neon.h (vmulx_lane_f32): New.
2914 (vmulx_lane_f64): Likewise.
2915 (vmulxq_lane_f32): Refactored & moved.
2916 (vmulxq_lane_f64): Likewise.
2917 (vmulx_laneq_f32): New.
2918 (vmulx_laneq_f64): Likewise.
2919 (vmulxq_laneq_f32): Likewise.
2920 (vmulxq_laneq_f64): Likewise.
2921 (vmulxs_lane_f32): Likewise.
2922 (vmulxs_laneq_f32): Likewise.
2923 (vmulxd_lane_f64): Likewise.
2924 (vmulxd_laneq_f64): Likewise.
2926 2015-11-21 Jan Hubicka <hubicka@ucw.cz>
2928 * tree.c (build_pointer_type_for_mode,build_reference_type_for_mode):
2929 In LTO we do not compute TYPE_CANONICAL of pointers.
2930 (gimple_canonical_types_compatible_p): Improve coments; sanity check
2931 that pointers do not have canonical type that would make us believe
2933 * alias.c (get_alias_set): Do structural type equality on pointers;
2934 enable pointer path for LTO; also glob pointer to vector with pointer
2935 to vector element; glob pointers and references for LTO; do more strict
2936 sanity checking about build_pointer_type returning the canonical type
2937 which is also the main variant.
2938 (record_component_aliases): When component type is pointer and we
2939 do LTO; record void_type_node alias set.
2941 2015-11-21 Nathan Sidwell <nathan@acm.org>
2943 * config/nvptx/nvptx.md (clz<mode>2): Use operand 1 for type.
2945 * config/nvptx/nvptx.c (write_function_decl_and_comment): Print
2947 (write_func_decl_from_insn): Likewise.
2948 (init_output_initializer, nvptx_assemble_undefined_decl): Likewise.
2949 (nvptx_file_end): Likewise.
2950 (nvptx_function_end): Undent output.
2951 (nvptx_expand_call): Fix formatting.
2952 (nvptx_output_call_insn): Indent output.
2953 * config/nvptx/nvptx.h (ASM_OUTPUT_ALIGNED_DECL_COMMON,
2954 ASM__OUTPUT_ALIGNED_DECL_LOCAL): Print leading blank line.
2956 2015-11-21 Jakub Jelinek <jakub@redhat.com>
2959 * tree-inline.c (copy_debug_stmt): If
2960 gimple_debug_source_bind_get_value is DECL_ORIGIN of a PARM_DECL
2961 in decl_debug_args, don't call remap_gimple_op_r on it.
2963 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
2965 * ipa-icf.c (sem_item::add_type): Do not look for TYPE_CANONICAL;
2966 do not check AGGREGATE_TYPE_P when adding TYPE_MODE;
2967 Check that all record types are complete.
2968 * ipa-icf-gimple.c (func_checker::compatible_types_p): Do not
2969 compare alias sets for types w/o alias sets.
2971 2015-11-20 Eric Botcazou <ebotcazou@adacore.com>
2973 * config/sparc/sparc.md (umulxhi_vis): Move around.
2974 (*umulxhi_sp64): Likewise.
2975 (umulxhi_v8plus): Likewise.
2976 (xmulx_vis): Likewise.
2977 (*xmulx_sp64): Likewise.
2978 (xmulx_v8plus): Likewise.
2979 (xmulxhi_vis): Likewise.
2980 (*xmulxhi_sp64): Likewise.
2981 (xmulxhi_v8plus): Likewise.
2983 2015-11-20 David Malcolm <dmalcolm@redhat.com>
2986 * diagnostic-show-locus.c (colorizer::set_fixit_hint): New.
2987 (class layout): Update comment
2988 (layout::print_any_fixits): New method.
2989 (layout::move_to_column): New method.
2990 (diagnostic_show_locus): Add call to layout.print_any_fixits.
2992 2015-11-20 Jakub Jelinek <jakub@redhat.com>
2995 * omp-low.c (lower_rec_input_clauses): If C/C++ array reduction
2996 has non-zero bias, subtract it in integer type instead of
2997 pointer plus of negated bias.
3000 * omp-low.c (expand_simd_clones): Call node->get_body () before
3001 allocating stuff in GC.
3003 2015-11-20 Jim Wilson <jim.wilson@linaro.org>
3005 * tree-vect-data-refs.c (compare_tree): Call STRIP_NOPS.
3007 2015-11-20 Evandro Menezes <e.menezes@samsung.com>
3009 * config/aarch64/aarch64.md (predicated): Copy attribute from
3011 * config/arm/arm.md (predicated): Added description.
3013 2015-11-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3015 * config/arm/arm.c (arm_option_override): Require TARGET_32BIT
3016 for unaligned_access.
3017 * config/arm/arm.md (unaligned_loadsi): Remove redundant TARGET_32BIT
3018 from matching condition.
3019 (unaligned_loadhis): Likewise.
3020 (unaligned_loadhiu): Likewise.
3021 (unaligned_storesi): Likewise.
3022 (unaligned_storehi): Likewise.
3024 2015-11-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3027 * config/arm/arm.md (unaligned_loaddi): Delete.
3028 (unaligned_storedi): Likewise.
3029 * config/arm/arm.c (gen_movmem_ldrd_strd): Don't generate
3030 unaligned DImode memory ops. Instead perform two back-to-back
3031 unaligned SImode ops.
3033 2015-11-20 Nathan Sidwell <nathan@codesourcery.com>
3034 James Norris <jnorris@codesourcery.com>
3036 * config/nvptx/nvptx.c (nvptx_use_anchors_for_symbol_p): New.
3037 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Override.
3039 2015-11-20 Alan Hayward <alan.hayward@arm.com>
3041 PR tree-optimization/68413
3042 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Cache
3044 (vectorizable_reduction): Use cached base
3046 2015-11-20 Tom de Vries <tom@codesourcery.com>
3048 * tree-parloops.c (build_new_reduction): Fix trailing whitespace in
3050 (try_create_reduction_list): Same. Fix typo in dump-file string.
3052 2015-11-20 Eric Botcazou <ebotcazou@adacore.com>
3054 * doc/md.texi (Standard Names): Move entry for addptr3 around,
3055 add entries for addv4, subv4, mulv4, umulv4 and negv3, fixes
3056 glitch in entries for cbranch4 and jump.
3058 2015-11-20 Tom de Vries <tom@codesourcery.com>
3060 PR tree-optimization/68373
3061 * tree-scalar-evolution.c (final_value_replacement_loop): Factor out
3063 (scev_const_prop): ... here.
3064 * tree-scalar-evolution.h (final_value_replacement_loop): Declare.
3065 * tree-parloops.c (try_create_reduction_list): Call
3066 final_value_replacement_loop.
3068 2015-11-20 Bin Cheng <bin.cheng@arm.com>
3070 PR tree-optimization/52272
3071 * tree-ssa-loop-ivopts.c (struct iv_common_cand): New struct.
3072 (struct iv_common_cand_hasher): New struct.
3073 (iv_common_cand_hasher::hash): New function.
3074 (iv_common_cand_hasher::equal): New function.
3075 (struct ivopts_data): New fields, iv_common_cand_tab and
3077 (tree_ssa_iv_optimize_init): Initialize above fields.
3078 (record_common_cand, common_cand_cmp): New functions.
3079 (add_iv_candidate_derived_from_uses): New function.
3080 (add_iv_candidate_for_use): Record iv_common_cands derived from
3081 iv use in hash table, instead of adding candidates directly.
3082 (add_iv_candidate_for_uses): Call add_iv_candidate_derived_from_uses.
3083 (record_important_candidates): Add important candidates to iv uses'
3084 related_cands. Always keep related_cands for future use.
3085 (try_add_cand_for): Use iv uses' related_cands.
3086 (free_loop_data, tree_ssa_iv_optimize_finalize): Release new fields
3087 in struct ivopts_data, iv_common_cand_tab and iv_common_cands.
3089 2015-11-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3091 * config/s390/s390.md ("bswaphi2"): New pattern.
3093 2015-11-20 Dominik Vogt <vogt@linux.vnet.ibm.com>
3095 * config/s390/s390.md (GPR1_REGNUM): New constant.
3096 ("*trunc<BFP:mode><DFP_ALL:mode>2")
3097 ("*trunc<DFP_ALL:mode><BFP:mode>2")
3098 ("trunc<BFP:mode><DFP_ALL:mode>2")
3099 ("trunc<DFP_ALL:mode><BFP:mode>2")
3100 ("*extend<BFP:mode><DFP_ALL:mode>2")
3101 ("*extend<DFP_ALL:mode><BFP:mode>2")
3102 ("extend<BFP:mode><DFP_ALL:mode>2")
3103 ("extend<DFP_ALL:mode><BFP:mode>2"): Clobber r1.
3105 2015-11-19 Aditya Kumar <aditya.k7@samsung.com>
3106 Sebastian Pop <s.pop@samsung.com>
3108 PR tree-optimization/68428
3109 * graphite-scop-detection.c (harmful_stmt_in_region): Do not iterate
3110 over basic blocks outside the scop.
3112 2015-11-19 Aditya Kumar <aditya.k7@samsung.com>
3113 Sebastian Pop <s.pop@samsung.com>
3115 PR tree-optimization/68341
3116 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Remove
3117 gcc_unreachable and safely fail codegen.
3118 (copy_loop_close_phi_args): Do not insert merge phis in a basic
3119 block with loop phi nodes.
3120 (edge_for_new_close_phis): New.
3121 (copy_bb_and_scalar_dependences): Call edge_for_new_close_phis.
3123 2015-11-19 Nathan Sidwell <nathan@acm.org>
3125 * config/nvptx/nvptx.h (SUPPORTS_WEAK): Define.
3126 * config/nvptx/nvptx.c (nvptx_write_function_decl): Support DECL_WEAK.
3127 (nvptx_declare_objec_name): Likewise.
3129 2015-11-19 Aditya Kumar <aditya.k7@samsung.com>
3131 * graphite-isl-ast-to-gimple.c (get_true_edge_from_guard_bb): Move...
3132 (get_false_edge_from_guard_bb): Move...
3133 * sese.c (get_false_edge_from_guard_bb)
3134 (get_true_edge_from_guard_bb): ... here.
3136 2015-11-19 David Edelsohn <dje.gcc@gmail.com>
3139 2015-11-18 Alan Modra <amodra@gmail.com>
3141 * config/rs6000/rs6000.c (use_toc_relative_ref): Ignore
3142 type-limits warning.
3145 2015-11-19 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
3147 * tree.h (desired_pro_or_demotion_p): New function.
3148 * tree-vrp.c (simplify_cond_using_ranges): Call it.
3150 2015-11-19 Michael Matz <matz@suse.de>
3152 * fwprop.c (update_uses): Use flag_checking instead of
3153 gcc_checking_assert.
3155 2015-11-19 David Malcolm <dmalcolm@redhat.com>
3157 * doc/gty.texi (Support for inheritance): Fix missing
3158 parentheses in example.
3160 2015-11-19 Marek Polacek <polacek@redhat.com>
3162 PR tree-optimization/68431
3163 * tree-vrp.c (extract_range_from_binary_expr_1): Fix condition.
3165 2015-11-19 Nathan Sidwell <nathan@acm.org>
3167 * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>_1,
3168 atomic_exchange<mode>): Input values can be immediates.
3170 2015-11-19 Eric Botcazou <ebotcazou@adacore.com>
3173 * configure.ac (PLUGIN_LD_SUFFIX): Do not touch the value specified
3175 * configure: Regenerate.
3177 2015-11-19 Eric Botcazou <ebotcazou@adacore.com>
3180 * config/sparc/sp-elf.h (CTORS_SECTION_ASM_OP): Undefine.
3181 (DTORS_SECTION_ASM_OP): Likewise.
3183 2015-11-19 Jakub Jelinek <jakub@redhat.com>
3185 PR rtl-optimization/68376
3186 * ifcvt.c (noce_try_abs): Disable one_cmpl optimization if
3187 encountering x <= 0 ? ~x : x or x > 0 ? ~x : x.
3189 2015-11-19 Richard Biener <rguenther@suse.de>
3192 * tree-ssa.c (delete_tree_ssa): Revert removal of call to
3193 redirect_edge_var_map_destroy.
3195 2015-11-19 Jakub Jelinek <jakub@redhat.com>
3198 * config/i386/i386.md (simple_return): Disable if
3199 ix86_static_chain_on_stack is true.
3201 2015-11-19 Richard Sandiford <richard.sandiford@arm.com>
3204 * internal-fn.c (expand_direct_optab_fn): Handle SUBREG_PROMOTED_VAR_P
3207 2015-11-18 Jeff Law <law@redhat.com>
3209 PR tree-optimization/68198
3210 * tree-ssa-threadupdate.c (valid_jump_thread_path): Distinguish
3211 between threading a multi-way branch and a thread path that contains
3212 a multi-way branch. Disallow the case where a path contains a
3213 multi-way branch and does not thread a multi-way branch.
3214 (thread_through_all_blocks): Update comment.
3216 2015-11-18 Joseph Myers <joseph@codesourcery.com>
3219 * ginclude/stdatomic.h (atomic_thread_fence, atomic_signal_fence)
3220 (atomic_flag_test_and_set, atomic_flag_test_and_set_explicit)
3221 (atomic_flag_clear, atomic_flag_clear_explicit): Declare as
3222 functions before defining as macros.
3224 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
3226 * config/nvptx/nvptx.c (nvptx_process_pars): Fix whitespace.
3227 (nvptx_record_offload_symbol): Remove code compensating for lack
3228 of default dimension handling.
3229 (nvptx_goacc_validate_dims): Remove incorrect ARG_UNUSED markers.
3231 2015-11-18 Aditya Kumar <aditya.k7@samsung.com>
3233 * graphite-isl-ast-to-gimple.c (copy_loop_phi_args): Change the return
3234 type to bool for early exit.
3235 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Early return
3237 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
3238 (add_phi_arg_for_new_expr): Enable codegen for if-block where one
3239 predecessor dominates the other.
3240 (translate_isl_ast_to_gimple::copy_cond_phi_args): Fix. When the
3241 element is not found it returns -1.
3242 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Bail
3243 out early when codegen fails.
3244 (graphite_regenerate_ast_isl): Remove codegen region when pending
3245 phis could not be generated.
3247 2015-11-18 Aditya Kumar <aditya.k7@samsung.com>
3249 * graphite-isl-ast-to-gimple.c (struct ast_build_info): Remove
3251 (class translate_isl_ast_to_gimple): Indentation.
3252 (translate_pending_phi_nodes): Comment.
3253 (add_parameters_to_ivs_params): Moved from sese.c inside class
3254 translate_isl_ast_to_gimple.
3255 (get_max_schedule_dimensions): Same.
3256 (generate_isl_context): Same.
3257 (extend_schedule): Same.
3258 (generate_isl_schedule): Same.
3259 (set_options): Same.
3260 (scop_to_isl_ast): Same.
3261 (is_valid_rename): Same.
3263 (get_rename_from_scev): Same.
3264 (get_def_bb_for_const): Same.
3265 (get_new_name): Same.
3266 (collect_all_ssa_names): Same.
3267 (copy_loop_phi_args): Same.
3268 (copy_loop_phi_nodes): Same.
3269 (copy_loop_close_phi_args): Same.
3270 (copy_loop_close_phi_nodes): Same.
3271 (copy_cond_phi_args): Same.
3272 (copy_cond_phi_nodes): Same.
3273 (graphite_copy_stmts_from_block): Same.
3274 (copy_bb_and_scalar_dependences): Same.
3275 (add_phi_arg_for_new_expr): Same.
3276 (rename_uses): Same.
3278 (set_rename_for_each_def): Same.
3279 (gsi_insert_earliest): Same.
3280 (rename_all_uses): Same.
3281 (codegen_error_p): Same.
3282 (print_isl_ast_node): Same.
3283 (translate_isl_ast_for_loop): Call function codegen_error_p.
3284 (translate_isl_ast_to_gimple::translate_isl_ast): Same.
3285 (translate_isl_ast_node_user): Make nb_loops const and release
3287 (get_true_edge_from_guard_bb): Move all free-functions early.
3288 (get_false_edge_from_guard_bb): Same.
3289 (bb_contains_loop_close_phi_nodes): Same.
3290 (bb_contains_loop_phi_nodes): Same.
3291 (is_loop_closed_ssa_use): Same.
3292 (number_of_phi_nodes): Same.
3293 (phi_uses_name): Same.
3294 (later_of_the_two): Same.
3295 (substitute_ssa_name):
3298 (get_loop_init_value): Same.
3299 (find_init_value): Same.
3300 (find_init_value_close_phi): Same.
3301 (ast_build_before_for): Same.
3302 (graphite_regenerate_ast_isl): Formatting changes.
3303 * graphite-scop-detection.c (build_cross_bb_scalars_use): Same.
3304 * sese.c (get_rename): Move to graphite-isl-ast-to-gimple.c
3306 (gsi_insert_earliest): Same.
3307 (collect_all_ssa_names): Same.
3308 (rename_all_uses): Same.
3309 (rename_uses): Same.
3310 (get_def_bb_for_const): Same.
3311 (copy_loop_phi_nodes): Same.
3312 (copy_loop_close_phi_args): Same.
3313 (copy_loop_close_phi_nodes): Same.
3314 (copy_cond_phi_args): Same.
3315 (copy_cond_phi_nodes): Same.
3316 (set_rename_for_each_def): Same.
3317 (graphite_copy_stmts_from_block): Same.
3318 (copy_bb_and_scalar_dependences): Same.
3319 (if_region_set_false_region): Same.
3320 (scev_analyzable_p): Same.
3321 * sese.h: Delete extern functions moved to graphite-isl-ast-to-gimple.c.
3323 2015-11-18 Andreas Tobler <andreast@gcc.gnu.org>
3325 * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Bring in the
3326 commit from r125920 for FreeBSD.
3328 2015-11-18 Jason Merrill <jason@redhat.com>
3330 * ggc-page.c (ggc_globals): Change finalizers and vec_finalizers
3332 (add_finalizer): Split out from ggc_internal_alloc.
3333 (ggc_handle_finalizers): Run finalizers for the current depth.
3334 (init_ggc, ggc_pch_read): Reserve space for finalizers.
3336 2015-11-18 Sandra Loosemore <sandra@codesourcery.com>
3339 * config/nios2/nios2.c (cdx_and_immed): Remove duplicate tests
3342 2015-11-18 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
3344 * config/avr/avr-mcus.def: Add new avr4 devices atmega48pb and
3345 atmega88pb. Add new avr5 devices ata5791, ata8210, ata8510, atmega168pb
3347 * doc/avr-mmcu.texi: Regenerate.
3349 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
3351 * config/nvptx/nvptx.c (bb_pair_t, bb_pair_vec_t): New types.
3352 (pseudo_node_t, struct bracket, bracket_vec_t): New types.
3353 (struct bb_sese): New struct.
3354 (bb_sese::~bb_sese, bb_sese::append, bb_sese::remove): New.
3355 (BB_GET_SESE, BB_SET_SESE): Define.
3356 (nvptx_sese_number, nvptx_sese_pseudo, nvptx_sese_color): New.
3357 (nvptx_find_sese): New.
3358 (nvptx_neuter_pars): Find SESE regions when optimizing.
3360 2015-11-18 Alan Modra <amodra@gmail.com>
3362 * config/rs6000/rs6000.c (use_toc_relative_ref): Ignore
3363 type-limits warning.
3365 2015-11-18 Richard Sandiford <richard.sandiford@arm.com>
3368 * hash-set.h (hash_set::traverse): Expand Key typedef.
3370 2015-11-18 Martin Liska <mliska@suse.cz>
3372 * config/arm/arm.c (arm_valid_target_attribute_p): Finalize
3375 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
3377 * config/nvptx/nvptx.c (global_lock_var): New.
3378 (nvptx_global_lock_addr): New.
3379 (nvptx_lockless_update): Recomment and adjust for clarity.
3380 (nvptx_lockfull_update): New.
3381 (nvptx_reduction_update): New.
3382 (nvptx_goacc_reduction_fini): Call it.
3384 2015-11-18 Bernd Schmidt <bschmidt@redhat.com>
3386 * regrename.h (struct du_head): Add target_data_1 and target_data_2
3388 * regrename.c (create_new_chain): Clear entire struct after allocating.
3390 * config/i386/i386.opt (mmitigate-rop): New option.
3391 * doc/invoke.texi (mmitigate-rop): Document.
3392 * config/i386/i386.c: Include "regrename.h".
3393 (ix86_rop_should_change_byte_p, reg_encoded_number,
3394 ix86_get_modrm_for_rop, set_rop_modrm_reg_bits, ix86_mitigate_rop): New
3396 (ix86_reorg): Call ix86_mitigate_rop if -fmitigate-rop.
3397 * config/i386/i386.md (attr "modrm_class"): New.
3398 (cmp<mode>_ccno_1, mov<mode>_xor, movstrict<mode>_xor,
3399 x86_mov<mode>cc_0_m1. x86_mov<mode>cc_0_m1_se)
3400 (x86_mov<mode>cc_0_m1_neg): Override modrm_class attribute.
3402 2015-11-18 Ilya Enkovich <enkovich.gnu@gmail.com>
3405 * config/i386/i386.c (ix86_expand_mask_vec_cmp): Add missing break.
3407 2015-11-18 Jakub Jelinek <jakub@redhat.com>
3409 PR tree-optimization/68157
3410 * tree-ssa-reassoc.c (attempt_builtin_powi): Set uid of
3411 pow_stmt or mul_stmt from stmt's uid.
3412 (reassociate_bb): Set uid of mul_stmt from stmt's uid.
3414 2015-11-18 Martin Liska <mliska@suse.cz>
3416 * haifa-sched.c (haifa_finish_h_i_d): Release reg_set_list.
3418 2015-11-18 Martin Liska <mliska@suse.cz>
3420 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
3421 Fix GNU coding style.
3422 (find_def_preds): Use auto_vec.
3423 (destroy_predicate_vecs): Change signature of the function.
3424 (prune_uninit_phi_opnds_in_unrealizable_paths): Use the
3426 (simplify_preds_4): Use destroy_predicate_vecs instread of
3427 just releasing preds vector.
3428 (normalize_preds): Likewise.
3429 (is_use_properly_guarded): Use new signature of
3430 destroy_predicate_vecs.
3431 (find_uninit_use): Likewise.
3433 2015-11-18 Richard Biener <rguenther@suse.de>
3435 PR tree-optimization/67790
3436 * tree-vect-loop.c (vect_is_simple_reduction_1): Remove
3437 IL rewrite for MINUS_EXPR reductions, rename back to ...
3438 (vect_is_simple_reduction): ... this, removing the wrapper.
3439 (vect_force_simple_reduction): Adjust.
3440 (vectorizable_reduction): Adjust reduc_index for MINUS_EXPR
3441 reductions and make use if reduc_index in all places. For
3442 the final reduction of MINUS_EXPR use PLUS_EXPR.
3444 2015-11-18 Alan Modra <amodra@gmail.com>
3446 * configure.ac (POWERPC64_TOC_POINTER_ALIGNMENT): Pass -z norelro
3448 * configure: Regenerate.
3450 2015-11-17 Tom de Vries <tom@codesourcery.com>
3452 * tree-ssa-loop.c (pass_tree_loop_init::execute): Improve comments.
3454 2015-11-17 Tom de Vries <tom@codesourcery.com>
3456 * tree-scalar-evolution.c (scev_const_prop): Dump details if replacing
3457 uses of ssa_name with constant.
3459 2015-11-17 Tom de Vries <tom@codesourcery.com>
3461 * tree-ssa-ccp.c (do_ssa_ccp): Clear LOOP_CLOSED_SSA in loops state if
3464 2015-11-17 Tom de Vries <tom@codesourcery.com>
3466 * cfgloop.h (struct loop): Add in_oacc_kernels_region field.
3467 * omp-low.c (mark_loops_in_oacc_kernels_region): New function.
3468 (expand_omp_target): Call mark_loops_in_oacc_kernels_region.
3470 2015-11-17 Bernd Schmidt <bschmidt@redhat.com>
3472 * regrename.c (regrename_find_superclass): New function, code moved
3474 (rename_chains): ... here. Call it.
3475 * regrename.h (regrename_find_superclass): Declare.
3477 * regrename.c (record_out_operands): Terminate earlyclobbered
3481 * regrename.c (record_operand_use): Keep track of failed operands
3482 and stop appending if we see any.
3483 * regrename.h (struct operand_rr_info): Add a failed field and shrink
3486 2015-11-17 Sandra Loosemore <sandra@codesourcery.com>
3489 * doc/extend.texi (Common Function Attributes) [visibility]:
3490 Add cross-references to matching variable and type attributes.
3491 (Common Variable Attributes) [visibility]: Add missing entry.
3493 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3495 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function): Remove
3496 entries that map directly to optabs.
3498 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3500 * config/i386/i386.c (ix86_builtin_vectorized_function): Remove
3501 entries that map directly to optabs.
3503 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3505 * internal-fn.h (direct_internal_fn_info): Add vectorizable flag.
3506 * internal-fn.c (direct_internal_fn_array): Update accordingly.
3507 * tree-vectorizer.h (vectorizable_function): Delete.
3508 * tree-vect-stmts.c: Include internal-fn.h.
3509 (vectorizable_internal_function): New function.
3510 (vectorizable_function): Inline into...
3511 (vectorizable_call): ...here. Explicitly reject calls that read
3512 from or write to memory. Try using an internal function before
3513 falling back on the old vectorizable_function behavior.
3515 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3517 * target.def (builtin_vectorized_function): Take a combined_fn (in
3518 the form of an unsigned int) rather than a function decl.
3519 (builtin_md_vectorized_function): New.
3520 * targhooks.h (default_builtin_vectorized_function): Replace the
3521 fndecl argument with an unsigned int.
3522 (default_builtin_md_vectorized_function): Declare.
3523 * targhooks.c (default_builtin_vectorized_function): Replace the
3524 fndecl argument with an unsigned int.
3525 (default_builtin_md_vectorized_function): New function.
3526 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_MD_VECTORIZED_FUNCTION):
3528 * doc/tm.texi: Regenerate.
3529 * tree-vect-stmts.c (vectorizable_function): Update call to
3530 builtin_vectorized_function, also passing internal functions.
3531 Call builtin_md_vectorized_function for target-specific builtins.
3532 * config/aarch64/aarch64-protos.h
3533 (aarch64_builtin_vectorized_function): Replace fndecl argument
3534 with an unsigned int.
3535 * config/aarch64/aarch64-builtins.c: Include case-cfn-macros.h.
3536 (aarch64_builtin_vectorized_function): Update after above changes.
3538 * config/arm/arm-protos.h (arm_builtin_vectorized_function): Replace
3539 fndecl argument with an unsigned int.
3540 * config/arm/arm-builtins.c: Include case-cfn-macros.h
3541 (arm_builtin_vectorized_function): Update after above changes.
3543 * config/i386/i386.c: Include case-cfn-macros.h
3544 (ix86_veclib_handler): Take a combined_fn rather than a
3546 (ix86_veclibabi_svml, ix86_veclibabi_acml): Likewise. Use
3547 mathfn_built_in rather than calling builtin_decl_implicit directly.
3548 (ix86_builtin_vectorized_function) Update after above changes.
3550 * config/rs6000/rs6000.c: Include case-cfn-macros.h
3551 (rs6000_builtin_vectorized_libmass): Replace fndecl argument
3552 with a combined_fn. Use CASE_CFN_*. Use mathfn_built_in rather
3553 than calling builtin_decl_implicit directly.
3554 (rs6000_builtin_vectorized_function): Update after above changes.
3555 Use CASE_CFN_*. Move BUILT_IN_MD to...
3556 (rs6000_builtin_md_vectorized_function): ...this new function.
3557 (TARGET_VECTORIZE_BUILTIN_MD_VECTORIZED_FUNCTION): Define.
3559 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3561 * tree-vect-patterns.c: Include internal-fn.h.
3562 (vect_recog_pow_pattern): Use IFN_SQRT instead of BUILT_IN_SQRT*.
3564 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3566 * tree.h (BUILTIN_EXP10_P, BUILTIN_EXPONENT_P, BUILTIN_SQRT_P)
3567 (BUILTIN_CBRT_P, BUILTIN_ROOT_P): Delete.
3569 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3571 * builtins.c (expand_errno_check, expand_builtin_mathfn)
3572 (expand_builtin_mathfn_2): Delete.
3573 (expand_builtin): Remove handling of functions with
3574 internal function equivalents.
3575 * internal-fn.def (SET_EDOM): New internal function.
3576 * internal-fn.h (set_edom_supported_p): Declare.
3577 * internal-fn.c (expand_SET_EDOM): New function.
3578 (set_edom_supported_p): Likewise.
3579 * tree-call-cdce.c: Include builtins.h and internal-fn.h.
3580 Rewrite comment at head of file.
3581 (is_call_dce_candidate): Rename to...
3582 (can_test_argument_range): ...this. Don't check gimple_call_lhs
3583 or gimple_call_builtin_p here.
3584 (edom_only_function): New function.
3585 (shrink_wrap_one_built_in_call_with_conds): New function, split out
3587 (shrink_wrap_one_built_in_call): ...here.
3588 (can_use_internal_fn, use_internal_fn): New functions.
3589 (shrink_wrap_conditional_dead_built_in_calls): Call use_internal_fn
3590 for calls that have an lhs.
3591 (pass_call_cdce::gate): Remove optimize_function_for_speed_p check.
3592 (pass_call_cdce::execute): Skip blocks that are optimized for size.
3593 Check gimple_call_builtin_p here. Use can_use_internal_fn for
3595 * opts.c (default_options_table): Enable -ftree-builtin-call-cdce
3598 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3600 * builtins.h (called_as_built_in): Declare.
3601 * builtins.c (called_as_built_in): Make external.
3602 * internal-fn.h (expand_internal_call): Define a variant that
3603 specifies the internal function explicitly.
3604 * internal-fn.c (expand_load_lanes_optab_fn)
3605 (expand_store_lanes_optab_fn, expand_ANNOTATE, expand_GOMP_SIMD_LANE)
3606 (expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE)
3607 (expand_GOMP_SIMD_ORDERED_START, expand_GOMP_SIMD_ORDERED_END)
3608 (expand_UBSAN_NULL, expand_UBSAN_BOUNDS, expand_UBSAN_VPTR)
3609 (expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK, expand_TSAN_FUNC_EXIT)
3610 (expand_UBSAN_CHECK_ADD, expand_UBSAN_CHECK_SUB)
3611 (expand_UBSAN_CHECK_MUL, expand_ADD_OVERFLOW, expand_SUB_OVERFLOW)
3612 (expand_MUL_OVERFLOW, expand_LOOP_VECTORIZED)
3613 (expand_mask_load_optab_fn, expand_mask_store_optab_fn)
3614 (expand_ABNORMAL_DISPATCHER, expand_BUILTIN_EXPECT, expand_VA_ARG)
3615 (expand_UNIQUE, expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS)
3616 (expand_GOACC_LOOP, expand_GOACC_REDUCTION, expand_direct_optab_fn)
3617 (expand_unary_optab_fn, expand_binary_optab_fn): Add an internal_fn
3619 (internal_fn_expanders): Update prototype.
3620 (expand_internal_call): Define a variant that specifies the
3621 internal function explicitly. Use it to implement the previous
3623 * cfgexpand.c (expand_call_stmt): Try to expand calls to built-in
3624 functions as calls to internal functions.
3626 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3628 * Makefile.in (MOSTLYCLEANFILES): Add cfn-operators.pd.
3629 (generated_files): Likewise.
3630 (s-cfn-operators, cfn-operators.pd): New rules.
3631 (s-match): Depend on cfn-operators.pd.
3632 * gencfn-macros.c: Expand comment to describe -o behavior.
3633 (print_define_operator_list): New function.
3634 (main): Accept -o. Call print_define_operator_list.
3635 * genmatch.c (main): Add the current directory to the include path.
3636 * match.pd (DEFINE_MATH_FN): Delete. Include cfn-operators.pd
3639 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3641 * doc/match-and-simplify.texi: Document the "null" identifier.
3642 * genmatch.c (id_base::NULL_ID): New kind.
3643 (null_id): New variable.
3644 (get_operator): Add a parameter that says whether null identifiers
3646 (contains_id): New function.
3647 (lower_for): Skip substitutions that would have a null_id in
3648 either the match or the result.
3649 (parser::parse_for): Allow the null identifier to be used.
3650 (parser::parse_operator_list): Likewise.
3651 (main): Initialize null_id.
3653 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3655 * match.pd: Use HYPOT and COS rather than hypot and cos.
3656 Use CASE_CFN_* macros. Guard log/exp folds with
3657 SCALAR_FLOAT_TYPE_P.
3658 * genmatch.c (internal_fn): New enum.
3659 (fn_id::fn): Change to an unsigned int.
3660 (fn_id::fn_id): Accept internal_fn too.
3661 (add_builtin): Rename to...
3662 (add_function): ...this and turn into a template.
3663 (get_operator): Only try one variation if the original name fails.
3664 Only add _EXPR if the original name was all lower case.
3665 Try converting internal and built-in function names to their
3667 (expr::gen_transform): Use maybe_build_call_expr_loc for generic.
3668 (dt_simplify::gen_1): Likewise.
3669 (dt_node::gen_kids_1): Use gimple_call_combined_fn for gimple
3670 and get_call_combined_fn for generic.
3671 (dt_simplify::gen): Use combined_fn as the type of fn_ids.
3672 (decision_tree::gen): Likewise.
3673 (main): Use lower case in the strings for {VIEW_,}CONVERT[012].
3674 Use add_function rather than add_builtin. Register internal
3676 * generic-match-head.c: Include case-cfn-macros.h.
3677 * gimple-fold.c (replace_stmt_with_simplification): Use
3678 gimple_call_combined_fn to test whether we can keep an
3680 * gimple-match.h (code_helper): Replace built_in_function
3682 * gimple-match-head.c: Include fold-const-call.h, internal-fn.h
3683 and case-fn-macros.h.
3684 (gimple_resimplify1): Use fold_const_call.
3685 (gimple_resimplify2, gimple_resimplify3): Likewise.
3686 (build_call_internal, build_call): New functions.
3687 (maybe_push_res_to_seq): Use them.
3688 (gimple_simplify): Use fold_const_call. Set *rcode to a combined_fn
3689 rather than a built-in function.
3690 * tree.h (build_call_expr_internal_loc): Declare.
3691 (maybe_build_call_expr_loc): Likewise.
3692 * tree.c (build_call_expr_internal_loc_array): New function.
3693 (maybe_build_call_expr_loc): Likewise.
3695 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3697 * builtins.h (mathfn_built_in): Add a variant that takes
3699 * builtins.c: Include case-cfn-macros.h.
3700 (CASE_MATHFN): Use CASE_CFN_*.
3701 (CASE_MATHFN_REENT): Use CFN_ codes.
3702 (mathfn_built_in_2, mathfn_built_in_1): Replace built_in_function
3703 argument with a combined_fn.
3704 (mathfn_built_in): Add a variant that takes a combined_fn.
3705 (expand_builtin_int_roundingfn_2): Update callers accordingly.
3706 (fold_builtin_sincos, fold_builtin_classify): Likewise.
3708 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3710 * tree-vect-patterns.c: Include case-cfn-macros.h.
3711 (vect_recog_pow_pattern): Use combined_fn instead of built-in codes.
3713 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3715 * tree-ssa-math-opts.c: Include case-cfn-macros.h.
3716 (execute_cse_sincos_1): Use combined_fn instead of built-in codes.
3717 (pass_cse_sincos::execute): Likewise.
3719 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3721 * tree-ssa-reassoc.c: Include case-cfn-macros.h.
3722 (stmt_is_power_of_op): Use combined_fn instead of built-in codes.
3723 (decrement_power, acceptable_pow_call): Likewise.
3724 (attempt_builtin_copysign): Likewise.
3726 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3728 * tree-vrp.c: Include case-cfn-macros.h.
3729 (extract_range_basic): Switch on combined_fn rather than handling
3730 built-in functions and internal functions separately.
3732 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3734 * fold-const.h (negate_mathfn_p): Take a combined_fn rather
3735 than a built_in_function.
3736 (tree_call_nonnegative_warnv_p): Take a combined_fn rather than
3738 (integer_valued_real_call_p): Likewise.
3739 * fold-const.c: Include case-cfn-macros.h
3740 (negate_mathfn_p): Take a combined_fn rather than a built_in_function.
3741 (negate_expr_p): Update accordingly.
3742 (tree_call_nonnegative_warnv_p): Take a combined_fn rather than
3744 (integer_valued_real_call_p): Likewise.
3745 (tree_invalid_nonnegative_warnv_p): Update accordingly.
3746 (integer_valued_real_p): Likewise.
3747 * gimple-fold.c (gimple_call_nonnegative_warnv_p): Update call
3748 to tree_call_nonnegative_warnv_p.
3749 (gimple_call_integer_valued_real_p): Likewise
3750 integer_valued_real_call_p.
3751 * gimple-ssa-backprop.c: Include case-cfn-macros.h.
3752 (backprop::process_builtin_call_use): Extend to combined_fn.
3753 (strip_sign_op_1): Likewise.
3754 (backprop::process_use): Don't check for built-in calls here.
3755 (backprop::execute): Likewise.
3756 (backprop::optimize_builtin_call): Update call to negate_mathfn_p.
3758 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3760 * fold-const-call.h (fold_const_call): Replace built_in_function
3761 arguments with combined_fn arguments.
3762 * fold-const-call.c: Include case-cfn-macros.h.
3763 (fold_const_call_ss, fold_const_call_cs, fold_const_call_sc)
3764 (fold_const_call_cc, fold_const_call_sss, fold_const_call_ccc)
3765 (fold_const_call_ssss, fold_const_call_1, fold_const_call): Replace
3766 built_in_function arguments with combined_fn arguments.
3767 * builtins.c (fold_builtin_sincos, fold_builtin_1, fold_builtin_2)
3768 (fold_builtin_3): Update calls to fold_const_call.
3770 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3772 * Makefile.in (HASH_TABLE_H): Add GGC_H.
3773 (MOSTLYCLEANFILES, generated_files): Add case-fn-macros.h.
3774 (s-case-cfn-macros, case-cfn-macros.h, build/gencfn-macros.o)
3775 (build/gencfn-macros$(build_exeext): New rules.
3776 (genprogerr): Add cfn-macros.
3777 * hash-set.h (hash_set): Use the traits value_type as the key.
3778 * gencfn-macros.c: New file.
3780 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3782 * internal-fn.def (DEF_INTERNAL_INT_FN): New macro.
3783 (CLRSB, CLZ, CTZ, FFS, PARITY, POPCOUNT): New functions.
3784 * builtins.c (associated_internal_fn): Handle them.
3786 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3788 * builtins.h (associated_internal_fn): Declare.
3789 (replacement_internal_fn): Likewise.
3790 * builtins.c: Include internal-fn.h
3791 (associated_internal_fn, replacement_internal_fn): New functions.
3792 * internal-fn.def (DEF_INTERNAL_FLT_FN): New macro.
3793 (ACOS, ASIN, ATAN, COS, EXP, EXP10, EXP2, EXPM1, LOG, LOG10, LOG1P)
3794 (LOG2, LOGB, SIGNIFICAND, SIN, SQRT, TAN, CEIL, FLOOR, NEARBYINT)
3795 (RINT, ROUND, TRUNC, ATAN2, COPYSIGN, FMOD, POW, REMAINDER, SCALB)
3796 (LDEXP): New functions.
3797 * internal-fn.c: Include recog.h.
3798 (unary_direct, binary_direct): New macros.
3799 (expand_direct_optab_fn): New function.
3800 (expand_unary_optab_fn): New macro.
3801 (expand_binary_optab_fn): Likewise.
3802 (direct_unary_optab_supported_p): Likewise.
3803 (direct_binary_optab_supported_p): Likewise.
3805 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3807 * coretypes.h (tree_pair): New type.
3808 * internal-fn.def (DEF_INTERNAL_OPTAB_FN): New macro. Use it
3809 for MASK_LOAD, LOAD_LANES, MASK_STORE and STORE_LANES.
3810 * internal-fn.h (direct_internal_fn_info): New structure.
3811 (direct_internal_fn_array): Declare.
3812 (direct_internal_fn_p, direct_internal_fn): New functions.
3813 (direct_internal_fn_types, direct_internal_fn_supported_p): Declare.
3814 * internal-fn.c (not_direct, mask_load_direct, load_lanes_direct)
3815 (mask_store_direct, store_lanes_direct): New macros.
3816 (direct_internal_fn_array) New array.
3817 (get_multi_vector_move): Return the optab handler without asserting
3818 that it is available.
3819 (expand_LOAD_LANES): Rename to...
3820 (expand_load_lanes_optab_fn): ...this and add an optab argument.
3821 (expand_STORE_LANES): Rename to...
3822 (expand_store_lanes_optab_fn): ...this and add an optab argument.
3823 (expand_MASK_LOAD): Rename to...
3824 (expand_mask_load_optab_fn): ...this and add an optab argument.
3825 (expand_MASK_STORE): Rename to...
3826 (expand_mask_store_optab_fn): ...this and add an optab argument.
3827 (direct_internal_fn_types, direct_optab_supported_p)
3828 (multi_vector_optab_supported_p, direct_internal_fn_supported_p)
3829 (direct_internal_fn_supported_p): New functions.
3830 (direct_mask_load_optab_supported_p): New macro.
3831 (direct_load_lanes_optab_supported_p): Likewise.
3832 (direct_mask_store_optab_supported_p): Likewise.
3833 (direct_store_lanes_optab_supported_p): Likewise.
3835 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3837 * tree-core.h (internal_fn): Move immediately after the definition
3838 of built_in_function.
3839 (combined_fn): New enum.
3840 * tree.h (as_combined_fn, builtin_fn_p, as_builtin_fn)
3841 (internal_fn_p, as_internal_fn): New functions.
3842 (get_call_combined_fn, combined_fn_name): Declare.
3843 * tree.c (get_call_combined_fn): New function.
3844 (combined_fn_name): Likewise.
3845 * gimple.h (gimple_call_combined_fn): Declare.
3846 * gimple.c (gimple_call_combined_fn): New function.
3848 2015-11-17 Martin Sebor <msebor@redhat.com>
3851 * cp/init.c (build_new_1): Check for expression constness
3854 2015-11-17 Sandra Loosemore <sandra@codesourcery.com>
3857 * doc/invoke.texi (Option Summary): Add -mms-bitfields to x86
3859 (x86 Options): Add -mms-bitfields and -mno-ms-bitfields. Move
3860 discussion of the Microsoft structure layout details here from
3861 its former home in extend.texi.
3862 * doc/extend.texi (x86 Variable Attributes): Replace detailed
3863 discussion with pointer to its new location. Add cross-reference
3864 to corresponding type attributes.
3865 (x86 Type Attributes): Add cross-references to command-line options
3866 and variable attributes.
3868 2015-11-17 Ilya Enkovich <enkovich.gnu@gmail.com>
3871 * targhooks.c (default_get_mask_mode): Filter out
3872 scalar modes returned by mode_for_vector.
3874 2015-11-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3877 * config/arm/arm.c (arm_block_set_unaligned_vect): Keep track of
3878 offset from dstbase and use it appropriately in
3879 adjust_automodify_address.
3880 (arm_block_set_aligned_vect): Likewise.
3882 2015-11-17 Eric Botcazou <ebotcazou@adacore.com>
3884 * config/visium/t-visium (MULTILIB_OPTIONS): Add muser-mode.
3885 (MULTILIB_DIRNAMES): Adjust accordingly.
3887 2015-11-17 James Greenhalgh <james.greenhalgh@arm.com>
3889 * config/aarch64/aarch64-cores.def (cortex-a35): New.
3890 * config/aarch64/aarch64.c (cortexa35_tunings): New.
3891 * config/aarch64/aarch64-tune.md: Regenerate.
3892 * doc/invoke.texi (-mcpu): Add Cortex-A35
3894 2015-11-17 Uros Bizjak <ubizjak@gmail.com>
3897 * config/i386/i386.h (BIGGEST_ALIGNMENT): Always define
3899 * config/i386/sse.md (*mov<mode>_internal): Always enable
3900 AVX and SSE unaligned moves for IAMCU.
3902 2015-11-17 Venkataramanan Kumar <Venkataramanan.Kumar@amd.com>
3904 * tree-if-conv.c: Include varasm.h
3905 (ref_DR_map): Define.
3906 (baseref_DR_map): Like wise
3907 (struct ifc_dr): Add new tree predicate field.
3908 (hash_memrefs_baserefs_and_store_DRs_read_written_info): New function.
3909 (memrefs_read_or_written_unconditionally): Remove.
3910 (write_memrefs_written_at_least_once): Remove.
3911 (ifcvt_memrefs_wont_trap): Use hash maps to query
3912 unconditional read/written information.
3913 (if_convertible_loop_p_1): Initialize hash maps and predicates
3914 before hashing data references and delete hashmaps at the end.
3916 2015-11-16 Thomas Preud'homme <thomas.preudhomme@arm.com>
3919 * doc/invoke.texi (Optimize Options): Move @end table to the right
3922 2015-11-16 Sandra Loosemore <sandra@codesourcery.com>
3925 * doc/extend.texi (__builtin_assume_aligned): Fix formatting of
3928 2015-11-16 Michael Meissner <meissner@linux.vnet.ibm.com>
3930 * config/rs6000/vsx.md (VSX_L): Do not include IBM extended double
3931 128-bit types, just types that fit in a single vector.
3932 * config/rs6000/rs6000.md (FMOVE128_GPR): Likewise.
3934 2015-11-16 David Wohlferd <dw@LimeGreenSocks.com>
3936 * doc/md.texi ('#' and '*' constraint modifiers): Do not include these
3937 in the user documentation.
3938 (define_peephole2, define_split): Similarly.
3940 2015-11-16 Andris Pavenis <andris.pavenis@iki.fi>
3942 * lto-streamer-out.c (write_global_references): Adjust integer type.
3943 (lto_output_decl_state_refs): Likewise.
3945 2015-11-16 James Greenhalgh <james.greenhalgh@arm.com>
3947 * config/arm/arm-cores.def (cortex-a35): New.
3948 * config/arm/arm.c (arm_cortex_a35_tune): New.
3949 * config/arm/arm-tables.opt: Regenerate.
3950 * config/arm/arm-tune.md: Regenerate.
3951 * config/arm/bpabi.h (BE8_LINK_SPEC): Add cortex-a35.
3952 * config/arm/t-aprofile: Likewise.
3953 * doc/invoke.texi (-mcpu): Likewise.
3955 2015-11-16 Jim Wilson <jim.wilson@linaro.org>
3957 * config/arm/t-aprofile (MULTILIB_MATCHES): Add lines for exynos-m1
3958 and qdf24xx and xgene1 to match -march=armv8-a.
3960 2015-11-16 Segher Boessenkool <segher@kernel.crashing.org>
3962 PR rtl-optimization/68330
3963 * simplify-rtx.c (simplify_unary_operation_1): Simplify SIGN_EXTEND
3964 of LSHIFTRT by a non-zero constant integer.
3966 2015-11-16 Richard Biener <rguenther@suse.de>
3968 PR tree-optimization/68306
3969 * tree-vect-data-refs.c (vect_verify_datarefs_alignment): Fix
3970 bogus copying from verify_data_ref_alignment and use continue
3973 2015-11-16 Oleg Endo <olegendo@gcc.gnu.org>
3974 Kaz Kojima <kkojima@gcc.gnu.org>
3977 * config/sh/sh.md (addsi3_scr): Handle reg overlap of operands[0] and
3979 (*addsi3): Add another insn_and_split variant for reload.
3981 2015-11-16 Richard Biener <rguenther@suse.de>
3984 * cfgexpand.c (pass_expand::execute): Destroy the edge
3985 redirection var map before setting RTL CFG hooks.
3987 2015-11-16 Alan Lawrence <alan.lawrence@arm.com>
3989 * config/i386/sse.md (reduc_splus_v8df): Rename to...
3990 (reduc_plus_scal_v8df): ...here; reduce to temp and extract scalar.
3992 (reduc_splus_v4df): Rename to...
3993 (reduc_plus_scal_v4df): ...here; reduce to temp and extract scalar.
3995 (reduc_splus_v2df): Rename to...
3996 (reduc_plus_scal_v2df): ...here; reduce to temp and extract scalar.
3998 (reduc_splus_v16sf): Rename to...
3999 (reduc_plus_scal_v16sf): ...here; reduce to temp and extract scalar.
4001 (reduc_splus_v8sf): Rename to...
4002 (reduc_plus_scal_v8sf): ...here; reduce to temp and extract scalar.
4004 (reduc_splus_v4sf): Rename to...
4005 (reduc_plus_scal_v4sf): ...here; reduce to temp and extract scalar.
4007 (reduc_<code>_<mode>, all 3 variants): Rename each to...
4008 (reduc_<code>_scal_<mode>): ...here; reduce to temp and extract scalar.
4010 (reduc_umin_v8hf): Rename to...
4011 (reduc_umin_scal_v8hf): ...here; reduce to temp and extract scalar.
4013 2015-11-16 Kirill Yukhin <kirill.yukhin@intel.com>
4015 * omp-low.c (pass_omp_simd_clone::gate): If target allows - call
4016 without additional conditions.
4017 * doc/extend.texi (@item simd): New.
4019 2015-11-16 Tom de Vries <tom@codesourcery.com>
4021 * passes.c (first_pass_instance): Remove variable.
4022 (execute_todo): Remove setting of first_pass_instance.
4023 * tree-pass.h (first_pass_instance): Remove declaration.
4025 2015-11-16 Tom de Vries <tom@codesourcery.com>
4027 * passes.def: Add arg to pass_ccp pass instantiation.
4028 * tree-ssa-ccp.c (ccp_finalize): Add param nonzero_p. Use nonzero_p
4029 instead of first_pass_instance.
4030 (do_ssa_ccp): Add and handle param nonzero_p.
4031 (pass_ccp::pass_ccp): Initialize nonzero_p.
4032 (pass_ccp::set_pass_param): New member function. Set nonzero_p.
4033 (pass_ccp::execute): Call do_ssa_ccp with extra arg.
4034 (pass_ccp::nonzero_p): New private member.
4036 2015-11-16 Tom de Vries <tom@codesourcery.com>
4038 * passes.def: Add arg to pass_object_sizes pass instantiation.
4039 * tree-object-size.c (pass_object_sizes::pass_object_sizes): Initialize
4041 (pass_object_sizes::set_pass_param): New member function. Set
4043 (pass_object_sizes::insert_min_max_p): New private member.
4044 (pass_object_sizes::execute): Use insert_min_max_p instead of
4045 first_pass_instance.
4047 2015-11-16 Tom de Vries <tom@codesourcery.com>
4049 * passes.def: Add arg to pass_dominator pass instantiation.
4050 * tree-pass.h (first_pass_instance): Remove pass_dominator-related bit
4052 * tree-ssa-dom.c (pass_dominator::pass_dominator): Initialize
4053 may_peel_loop_headers_p.
4054 (pass_dominator::set_pass_param): New member function. Set
4055 may_peel_loop_headers_p.
4056 (pass_dominator::may_peel_loop_headers_p): New private member.
4057 (pass_dominator::execute): Use may_peel_loop_headers_p instead of
4058 first_pass_instance.
4060 2015-11-16 Tom de Vries <tom@codesourcery.com>
4062 * passes.def: Add arg to pass_reassoc pass instantiation.
4063 * tree-ssa-reassoc.c (reassoc_insert_powi_p): New static variable.
4064 (acceptable_pow_call, reassociate_bb): Use reassoc_insert_powi_p instead
4065 of first_pass_instance.
4066 (execute_reassoc): Add and handle insert_powi_p parameter.
4067 (pass_reassoc::insert_powi_p): New private member.
4068 (pass_reassoc::pass_reassoc): Initialize insert_powi_p.
4069 (pass_reassoc::set_pass_param): New member function. Set insert_powi_p.
4070 (pass_reassoc::execute): Call execute_reassoc with extra arg.
4072 2015-11-16 Tom de Vries <tom@codesourcery.com>
4074 * gdbhooks.py (class PassNames): Handle extra arg NEXT_PASS argument.
4075 * gen-pass-instances.awk (handle_line): Same.
4076 * pass_manager.h (class pass_manager): Define and undefine
4078 * passes.c (opt_pass::set_pass_param): New function.
4079 (pass_manager::pass_manager): Define and undefine NEXT_PASS_WITH_ARG.
4080 * passes.def: Add extra arg to NEXT_PASS (pass_vrp).
4081 * tree-pass.h (gimple_opt::set_pass_param): Declare.
4082 * tree-vrp.c (vrp_finalize, execute_vrp): Add and handle
4083 warn_array_bounds_p parameter.
4084 (pass_vrp::pass_vrp): Initialize warn_array_bounds_p.
4085 (pass_vrp::set_pass_param): New function.
4086 (pass_vrp::execute): Add warn_array_bounds_p arg to execute_vrp call.
4087 (pass_vrp::warn_array_bounds_p): New private member.
4089 2015-11-16 Eric Botcazou <ebotcazou@adacore.com>
4091 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Adjust.
4092 (output_probe_stack_range): Rotate the loop and simplify.
4094 2015-11-16 Eric Botcazou <ebotcazou@adacore.com>
4096 * config/rs6000/rs6000.c (rs6000_emit_probe_stack_rang): Adjust.
4097 (output_probe_stack_range): Rotate the loop and simplify.
4099 2015-11-16 Eric Botcazou <ebotcazou@adacore.com>
4101 * config/i386/i386.c (ix86_adjust_stack_and_probe): Adjust and use
4102 an lea instruction when possible.
4103 (output_adjust_stack_and_probe): Rotate the loop and simplify.
4104 (ix86_emit_probe_stack_range): Adjust.
4105 (output_probe_stack_range): Rotate the loop and simplify.
4107 2015-11-16 Christian Bruel <christian.bruel@st.com>
4109 * config/arm/arm_neon.h: Remove #ifndef check on __ARM_NEON.
4110 Replace #ifdef __ARM_FEATURE_CRYPTO, __ARM_FEATURE_FMA, __ARM_FP
4111 with appropriate pragma GCC target.
4113 2015-11-16 Christian Bruel <christian.bruel@st.com>
4116 * config/arm/arm-c.c (arm_cpu_builtins): Conditionally set and reset
4117 __ARM_FEATURE_FMA and __ARM_NEON_FP, __ARM_FP.
4119 2015-11-16 James Greenhalgh <james.greenhalgh@arm.com>
4121 * config/aarch64/aarch64.c (cortexa57_branch_costs): New.
4122 (cortexa57_tunings): Use it.
4124 2015-11-16 Christian Bruel <christian.bruel@st.com>
4127 * config/arm/arm-c.c (arm_cpu_builtins): Set or reset
4128 __ARM_FEATURE_CRYPTO, __VFP_FP__, __ARM_NEON__
4129 (arm_pragma_target_parse): Change check for arm_cpu_builtins.
4131 * config/arm/arm.c (arm_can_inline_p): Check FPUs.
4132 (arm_valid_target_attribute_rec): Handle -mfpu attribute target.
4133 * doc/invoke.texi (-mfpu=): Mention attribute and pragma.
4134 * doc/extend.texi (-mfpu=): Describe attribute.
4136 2015-11-16 Christian Bruel <christian.bruel@st.com>
4139 * config/arm/arm-protos.h (arm_init_neon_builtins): Declare.
4140 * config/arm/arm.c (arm_valid_target_attribute_tree): Call
4141 arm_init_neon_builtins.
4142 * config/arm/arm-builtins.c (arm_init_neon_builtins): Split into...
4143 (arm_init_neon_builtins_internal)
4144 (arm_init_crypto_builtins_internal):
4145 Test and set neon_set_p, neon_crypto_set_p.
4146 (neon_set_p, neon_crypto_set_p): New static booleans.
4148 2015-11-16 Christian Bruel <christian.bruel@st.com>
4151 * config/arm/arm.c (arm_fpu_desc): Remove.
4152 (all_fpus): Make global.
4153 (arm_option_override): Use FPU TARGET accessors.
4154 (arm_declare_function_name): Likewise.
4155 * config/arm/arm.h (TARGET_VFP, TARGET_VFPD32, TARGET_VFP5)
4156 (TARGET_VFP_SINGLE, TARGET_VFP_DOUBLE, TARGET_NEON_FP16)
4157 (TARGET_FP16, TARGET_FMA, TARGET_FPU_ARMV8, TARGET_CRYPTO)
4158 (TARGET_NEON): Likewise.
4159 (all_fpus): Declare extern.
4160 (TARGET_FPU_NAME, TARGET_FPU_MODEL, TARGET_FPU_REV)
4161 (TARGET_FPU_REGS, TARGET_FPU_FEATURES): Define all_fpus accessors.
4163 2015-11-15 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4166 * sdbout.c: Include emit-rtl.h and function.h.
4168 2015-11-15 Gerald Pfeifer <gerald@pfeifer.com>
4170 * config/i386/freebsd.h (SUBTARGET32_DEFAULT_CPU): Change to i586.
4171 Remove support for FreeBSD 5 and earlier.
4173 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4175 * configure: Regenerate.
4176 * configure.ac: Always define ENABLE_OFFLOADING.
4177 * cgraph.c (cgraph_node::create): Adjust.
4178 * gcc.c (process_command): Likewise.
4179 * omp-low.c (create_omp_child_function): Likewise.
4180 (expand_omp_target): Likewise.
4181 * varpool.c (varpool_node::get_create): Likewise.
4183 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4185 * defaults.h (EH_RETURN_HANDLER_RTX): New default definition.
4186 * df-scan.c (df_get_exit_block_use_set): Adjust.
4187 * except.c (expand_eh_return): Likewise.
4189 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4191 * config/i386/i386.h (TARGET_PECOFF): Remove define.
4192 * defaults.h (TARGET_PECOFF): New default definition.
4193 * varasm.c (handle_vtv_comdat_section): Adjust.
4195 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4197 * defaults.h: New definition of SDB_DEBUGGING_INFO.
4198 * doc/tm.texi: Regenerate.
4199 * doc/tm.texi.in: Adjust.
4200 * final.c (rest_of_clean_state): Remove check if
4201 SDB_DEBUGGING_INFO is defined.
4202 * function.c (number_blocks): Likewise.
4203 * output.h: Likewise.
4204 * sdbout.c: Likewise.
4205 * toplev.c (process_options): Likewise.
4207 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4209 * gsyms.h (enum sdb_type): Remove code for EXTENDED_SDB_BASIC_TYPES.
4210 (enum sdb_masks): Likewise.
4211 * sdbout.c (plain_type_1): Likewise.
4212 * system.h: Poison EXTENDED_SDB_BASIC_TYPES macro.
4214 2015-11-14 Jakub Jelinek <jakub@redhat.com>
4216 * omp-low.c (lower_omp_ordered): Add argument to GOMP_SMD_ORDERED_*
4217 internal calls - 0 if ordered simd and 1 for ordered threads simd.
4218 * tree-vectorizer.c (adjust_simduid_builtins): If GOMP_SIMD_ORDERED_*
4219 argument is 1, replace it with GOMP_ordered_* call instead of removing
4222 2015-11-13 Rich Felker <dalias@libc.org>
4224 * config/sh/sh.md (symGOT_load): Suppress __stack_chk_guard
4225 address loading hack for FDPIC targets.
4227 2015-11-13 Ajit Agarwal <ajitkum@xilinx.com>
4228 Jeff Law <law@redhat.com>
4230 * Makefile.in (OBJS): Add gimple-ssa-split-paths.o
4231 * common.opt (-fsplit-paths): New flag controlling path splitting.
4232 * doc/invoke.texi (fsplit-paths): Document.
4233 * opts.c (default_options_table): Add -fsplit-paths to -O2.
4234 * passes.def: Add split_paths pass.
4235 * timevar.def (TV_SPLIT_PATHS): New timevar.
4236 * tracer.c: Include "tracer.h"
4237 (ignore_bb_p): No longer static.
4238 (transform_duplicate): New function, broken out of tail_duplicate.
4239 (tail_duplicate): Use transform_duplicate.
4240 * tracer.h (ignore_bb_p): Declare
4241 (transform_duplicate): Likewise.
4242 * tree-pass.h (make_pass_split_paths): Declare.
4243 * gimple-ssa-split-paths.c: New file.
4245 2015-11-13 Kai Tietz <ktietz70@googlemail.com>
4246 Marek Polacek <polacek@redhat.com>
4247 Jason Merrill <jason@redhat.com>
4249 * convert.c (maybe_fold_build1_loc): New.
4250 (maybe_fold_build2_loc): New.
4251 (convert_to_pointer_1): Split out from convert_to_pointer.
4252 (convert_to_pointer_nofold): New.
4253 (convert_to_real_1): Split out from convert_to_real.
4254 (convert_to_real_nofold): New.
4255 (convert_to_integer_1): Split out from convert_to_integer.
4256 (convert_to_integer_nofold): New.
4257 (convert_to_complex_1): Split out from convert_to_complex.
4258 (convert_to_complex_nofold): New.
4259 * convert.h: Declare new functions.
4260 * tree-complex.c (create_one_component_var): Break up line to
4261 avoid sequence point issues.
4263 2015-11-13 Jason Merrill <jason@redhat.com>
4265 * fold-const.c (fold_convert_const): Fold changing cv-quals on
4268 * hash-map.h (hash_map::empty): New.
4270 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
4272 * omp-low.c (scan_sharing_clauses): Accept INDEPENDENT, AUTO & SEQ.
4273 (oacc_loop_fixed_partitions): Correct return type to bool.
4274 (oacc_loop_auto_partitions): New.
4275 (oacc_loop_partition): Take mask argument, call
4276 oacc_loop_auto_partitions.
4277 (execute_oacc_device_lower): Provide mask to oacc_loop_partition.
4279 2015-11-13 Michael Meissner <meissner@linux.vnet.ibm.com>
4281 * config/rs6000/constraints.md (we constraint): New constraint for
4282 64-bit power9 vector support.
4283 (wL constraint): New constraint for the element in a vector that
4284 can be addressed by the MFVSRLD instruction.
4286 * config/rs6000/rs6000-protos.h (convert_float128_to_int): Add
4288 (convert_int_to_float128): Likewise.
4289 (rs6000_generate_compare): Add support for ISA 3.0 (power9)
4290 hardware support for IEEE 128-bit floating point.
4291 (rs6000_expand_float128_convert): Likewise.
4292 (convert_float128_to_int): Likewise.
4293 (convert_int_to_float128): Likewise.
4295 * config/rs6000/rs6000.md (UNSPEC_ROUND_TO_ODD): New unspecs for
4296 ISA 3.0 hardware IEEE 128-bit floating point.
4297 (UNSPEC_IEEE128_MOVE): Likewise.
4298 (UNSPEC_IEEE128_CONVERT): Likewise.
4299 (FMA_F): Add support for IEEE 128-bit floating point hardware support.
4300 (Ff): Add support for DImode.
4302 (any_fix code iterator): New and updated iterators for IEEE
4303 128-bit floating point hardware support.
4304 (any_float code iterator): Likewise.
4305 (s code attribute): Likewise.
4306 (su code attribute): Likewise.
4307 (az code attribute): Likewise.
4308 (uns code attribute): Likewise.
4309 (neg<mode>2, FLOAT128 iterator): Add support for IEEE 128-bit
4310 floating point hardware support.
4311 (abs<mode>2, FLOAT128 iterator): Likewise.
4312 (add<mode>3, IEEE128 iterator): New insns for IEEE 128-bit
4313 floating point hardware.
4314 (sub<mode>3, IEEE128 iterator): Likewise.
4315 (mul<mode>3, IEEE128 iterator): Likewise.
4316 (div<mode>3, IEEE128 iterator): Likewise.
4317 (copysign<mode>3, IEEE128 iterator): Likewise.
4318 (sqrt<mode>2, IEEE128 iterator): Likewise.
4319 (neg<mode>2, IEEE128 iterator): Likewise.
4320 (abs<mode>2, IEEE128 iterator): Likewise.
4321 (nabs<mode>2, IEEE128 iterator): Likewise.
4322 (fma<mode>4_hw, IEEE128 iterator): Likewise.
4323 (fms<mode>4_hw, IEEE128 iterator): Likewise.
4324 (nfma<mode>4_hw, IEEE128 iterator): Likewise.
4325 (nfms<mode>4_hw, IEEE128 iterator): Likewise.
4326 (extend<SFDF:mode><IEEE128:mode>2_hw): Likewise.
4327 (trunc<mode>df2_hw, IEEE128 iterator): Likewise.
4328 (trunc<mode>sf2_hw, IEEE128 iterator): Likewise.
4329 (fix_fixuns code attribute): Likewise.
4330 (float_floatuns code attribute): Likewise.
4331 (fix<uns>_<mode>si2_hw): Likewise.
4332 (fix<uns>_<mode>di2_hw): Likewise.
4333 (float<uns>_<mode>si2_hw): Likewise.
4334 (float<uns>_<mode>di2_hw): Likewise.
4335 (xscvqp<su>wz_<mode>): Likewise.
4336 (xscvqp<su>dz_<mode>): Likewise.
4337 (xscv<su>dqp_<mode): Likewise.
4338 (ieee128_mfvsrd): Likewise.
4339 (ieee128_mfvsrwz): Likewise.
4340 (ieee128_mtvsrw): Likewise.
4341 (ieee128_mtvsrd): Likewise.
4342 (trunc<mode>df2_odd): Likewise.
4343 (cmp<mode>_h): Likewise.
4344 (128-bit GPR splitters): Don't split a 128-bit move that is a
4345 direct move between GPR and vector registers using ISA 3.0 direct
4347 (maddld4): Add support for the ISA 3.0 integer multiply-add
4350 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add ISA 3.0
4352 (rs6000_init_hard_regno_mode_ok): If ISA 3.0 and 64-bit, enable we
4353 constraint. Disable the VSX<->GPR direct move helpers if we have
4354 the MFVSRLD and MTVSRDD instructions.
4355 (rs6000_secondary_reload_simple_move): Add support for doing
4356 vector direct moves directly without additional scratch registers
4357 if we have ISA 3.0 instructions.
4358 (rs6000_secondary_reload_direct_move): Update comments.
4359 (rs6000_output_move_128bit): Add support for ISA 3.0 vector
4362 * config/rs6000/vsx.md (vsx_mov<mode>): Add support for ISA 3.0
4363 direct move instructions.
4364 (vsx_movti_64bit): Likewise.
4365 (vsx_extract_<mode>): Likewise.
4367 * config/rs6000/rs6000.h (VECTOR_ELEMENT_MFVSRLD_64BIT): New
4368 macros for ISA 3.0 direct move instructions.
4369 (TARGET_DIRECT_MOVE_128): Likewise.
4370 (TARGET_MADDLD): Add support for the ISA 3.0 integer multiply-add
4373 * doc/md.texi (RS/6000 constraints): Document we, wF, wG, wL
4374 constraints. Update wa documentation to say not to use %x<n> on
4375 instructions that only take Altivec registers.
4377 2015-11-13 David Malcolm <dmalcolm@redhat.com>
4379 * Makefile.in (OBJS): Add gcc-rich-location.o.
4380 * diagnostic.c (diagnostic_append_note): Pass line_table to
4382 (emit_diagnostic): Likewise.
4384 (inform_n): Likewise.
4385 (warning): Likewise.
4386 (warning_at): Likewise.
4387 (warning_n): Likewise.
4388 (pedwarn): Likewise.
4389 (permerror): Likewise.
4391 (error_n): Likewise.
4392 (error_at): Likewise.
4394 (fatal_error): Likewise.
4395 (internal_error): Likewise.
4396 (internal_error_no_backtrace): Likewise.
4397 (source_range::debug): Likewise.
4398 * gcc-rich-location.c: New file.
4399 * gcc-rich-location.h: New file.
4400 * genmatch.c (fatal_at): Pass line_table to rich_location ctor.
4401 (warning_at): Likewise.
4402 * gimple.h (gimple_set_block): Use set_block function.
4403 * input.c (dump_line_table_statistics): Dump stats on how many
4404 ranges were optimized vs how many needed ad-hoc table.
4405 (write_digit_row): Add "map" param; use its range_bits
4406 to calculate the per-character offset.
4407 (dump_location_info): Print the range and column bits for each
4408 ordinary map. Use the range bits to calculate the per-character
4409 offset. Pass the map as a new param to the various calls to
4410 write_digit_row. Eliminate uses of
4411 ORDINARY_MAP_NUMBER_OF_COLUMN_BITS.
4412 * print-tree.c (print_node): Print any source range information.
4413 * rtl-error.c (diagnostic_for_asm): Likewise.
4414 * toplev.c (general_init): Initialize line_table's
4416 * tree-cfg.c (move_block_to_fn): Likewise.
4417 (move_block_to_fn): Likewise.
4418 * tree-inline.c (copy_phis_for_bb): Likewise.
4419 * tree.c (tree_set_block): Likewise.
4420 (get_pure_location): New function.
4421 (set_source_range): New functions.
4422 (set_block): New function.
4423 (set_source_range): New functions.
4424 * tree.h (CAN_HAVE_RANGE_P): New.
4425 (EXPR_LOCATION_RANGE): New.
4426 (EXPR_HAS_RANGE): New.
4427 (get_expr_source_range): New inline function.
4428 (DECL_LOCATION_RANGE): New.
4429 (set_source_range): New decls.
4430 (get_decl_source_range): New inline function.
4432 2015-11-13 Alan Lawrence <alan.lawrence@arm.com>
4434 PR tree-optimization/67682
4435 * tree-vect-slp.c (vect_split_slp_store_group): New.
4436 (vect_analyze_slp_instance): During basic block SLP, recurse on
4437 subgroups if vect_build_slp_tree fails after 1st vector.
4439 2015-11-13 Christian Bruel <christian.bruel@st.com>
4442 * config/arm/arm.c (arm_option_override): Move NEON check...
4443 (arm_option_check_internal): here
4444 (arm_file_start): Move .fpu print...
4445 (arm_declare_function_name): here
4446 (arm_option_print): Dump current fpu name.
4447 * config/arm/arm.opt (arm_fpu_index): Mark Save.
4449 2015-11-13 Segher Boessenkool <segher@kernel.crashing.org>
4450 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4452 * combine.c (subst): Don't substitute or simplify when
4453 handling register-wise widening multiply.
4454 (force_to_mode): Likewise.
4456 2015-11-13 Richard Sandiford <richard.sandiford@arm.com>
4458 PR tree-optimization/68264
4459 * tree-call-cdce.c (gen_one_condition): Update commentary.
4460 (gen_conditions_for_pow_int_base): Invert the sense of the tests
4461 passed to gen_one_condition.
4462 (gen_conditions_for_domain): Likewise. Use unordered comparisons.
4463 (shrink_wrap_one_built_in_call): Invert the sense of the tests,
4464 using EDGE_FALSE_VALUE for edges to the call block and
4465 EDGE_TRUE_VALUE for the others.
4467 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
4469 * config/nvptx/nvptx.c (nvptx_generate_vector_shuffle): Deal with
4472 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
4474 * gimplify.c (oacc_default_clause): Use inform for enclosing scope.
4476 2015-11-13 Tom de Vries <tom@codesourcery.com>
4478 * gen-pass-instances.awk (handle_line): Rename prefix_len var to
4481 2015-11-13 Tom de Vries <tom@codesourcery.com>
4483 * gen-pass-instances.awk (handle_line): Add args_str variable.
4485 2015-11-13 Martin Liska <mliska@suse.cz>
4487 * graphite-poly.c (free_scop): Release scop->drs vector.
4488 * graphite-scop-detection.c (scop_detection::harmful_stmt_in_region):
4490 (try_generate_gimple_bb): Use vNULL as a default initialization
4493 2015-11-13 Martin Liska <mliska@suse.cz>
4496 * ipa-icf.c (sem_item_optimizer::traverse_congruence_split):
4497 Replace array initialization (using a variable post-increment)
4498 that possible triggers multiple unsequenced modifications
4499 with a pair of pushes to a vector.
4501 2015-11-13 Richard Biener <rguenther@suse.de>
4503 PR tree-optimization/68306
4504 * tree-vect-data-refs.c (verify_data_ref_alignment): Move
4505 loop related checks ...
4506 (vect_verify_datarefs_alignment): ... here.
4507 (vect_slp_analyze_and_verify_node_alignment): Compute and
4508 verify alignment of the single DR that it matters.
4509 * tree-vect-stmts.c (vectorizable_store): Add an assert.
4510 (vectorizable_load): Add a comment.
4511 * tree-vect-slp.c (vect_analyze_slp_cost_1): Fix DR used
4512 for determining load cost.
4514 2015-11-13 Ilya Enkovich <enkovich.gnu@gmail.com>
4516 * tree-vect-loop.c (vect_determine_vectorization_factor): Check
4517 mix of boolean and integer vectors in a single statement.
4518 * tree-vect-slp.c (vect_mask_constant_operand_p): New.
4519 (vect_get_constant_vectors): Use vect_mask_constant_operand_p to
4520 determine constant type.
4521 * tree-vect-stmts.c (vectorizable_comparison): Provide vectype
4522 for loop invariants.
4524 2015-11-13 Alan Hayward <alan.hayward@arm.com>
4526 PR tree-optimization/66558
4527 * tree-vect-loop.c (is_integer_induction):Add.
4528 (vectorizable_reduction): Add integer induction checks.
4530 2015-11-13 Christophe Lyon <christophe.lyon@linaro.org>
4532 Revert [ARM] Remove neon-testgen.ml and generated tests.
4534 2015-11-12 Christophe Lyon <christophe.lyon@linaro.org>
4536 [ARM] Remove neon-testgen.ml and generated tests.
4538 * config/arm/neon-testgen.ml: Remove.
4540 2015-11-13 Richard Biener <rguenther@suse.de>
4542 * tree-vect-loop.c (vect_analyze_loop_2): Add fatal parameter.
4543 Signal fatal failure if early checks fail.
4544 (vect_analyze_loop): If vect_analyze_loop_2 fails fatally
4545 do not bother testing further vector sizes.
4547 2015-11-13 Uros Bizjak <ubizjak@gmail.com>
4549 * config/i386/predicates.md (misaligned_operand): Return true if
4550 operand is aligned to less than its natural alignmnet.
4552 2015-11-13 Ilya Enkovich <enkovich.gnu@gmail.com>
4554 * doc/md.texi (vec_cmp@var{m}@var{n}): New item.
4555 (vec_cmpu@var{m}@var{n}): New item.
4556 (vcond@var{m}@var{n}): Specify comparison is signed.
4557 (vcondu@var{m}@var{n}): New item.
4558 (vcond_mask_@var{m}@var{n}): New item.
4559 (maskload@var{m}@var{n}): New item.
4560 (maskstore@var{m}@var{n}): New item.
4562 2015-11-13 Ilya Enkovich <enkovich.gnu@gmail.com>
4564 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
4565 types of stored value and storage are compatible.
4567 2015-11-13 Andris Pavenis <andris.pavenis@iki.fi>
4569 * gcc.c (POST_LINK_SPEC): Define if not already defined.
4570 (LINK_COMMAND_SPEC): Use post_link.
4571 (post_link_spec): New, initialize to POST_LINK_SPEC.
4572 (post_link): Initialize new static spec.
4573 * doc/tm.texi.in (POST_LINK_SPEC): Document.
4574 * doc/tm.texi: Regenerated.
4576 2015-11-13 David Malcolm <dmalcolm@redhat.com>
4579 * Makefile.in (GCC_OBJS): Add spellcheck.o.
4580 (OBJS): Add spellcheck-tree.o.
4581 * gcc.c: Include "spellcheck.h".
4582 (suggest_option): New function.
4583 (driver::handle_unrecognized_options): Call suggest_option to
4584 provide a hint about misspelled options.
4585 * spellcheck.c: Update file comment.
4586 (levenshtein_distance): Convert 4-param implementation from static
4587 to extern scope. Remove note about unit tests from leading
4588 comment for const char * implementation. Move tree
4589 implementation to...
4590 * spellcheck-tree.c: New file.
4591 * spellcheck.h (levenshtein_distance): Add 4-param decl.
4593 2015-11-13 David Malcolm <dmalcolm@redhat.com>
4595 * Makefile.in (OBJS): Add spellcheck.o.
4596 * spellcheck.c: New file.
4597 * spellcheck.h: New file.
4599 2015-11-13 James Bowman <james.bowman@ftdichip.com>
4601 * config/ft32/ft32.md (*sne): New insn pattern.
4603 2015-11-12 Brad Lucier <lucier@math.purdue.edu>
4605 * cprop.c (is_too_expensive): Remove.
4607 (one_cprop_pass): Call gcse_or_cprop_is_too_expensive, not
4609 * gcse.h (gcse_or_cprop_is_too_expensive): Declare.
4610 * gcse.c (is_too_expensive): Rename to ...
4611 (gcse_or_cprop_is_too_expensive): ... this.
4612 Expand warning to add required size of max-gcse-memory.
4613 (one_pre_gcse_pass): Use it.
4614 (one_code_hoisting_pass): Use it.
4615 * params.def (max-gcse-memory): Increase from 50MB to 128MB.
4617 2015-11-12 James Norris <jnorris@codesourcery.com>
4618 Joseph Myers <joseph@codesourcery.com>
4620 * gimple-pretty-print.c (dump_gimple_omp_target): Handle
4621 GF_OMP_TARGET_KIND_OACC_DECLARE.
4622 * gimple.h (enum gf_mask): Add GF_OMP_TARGET_KIND_OACC_DECLARE.
4623 (is_gomple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_DECLARE.
4624 * gimplify.c (oacc_declare_returns): New.
4625 (gimplify_bind_expr): Prepend 'exit' stmt to cleanup.
4626 (device_resident_p): New function.
4627 (oacc_default_clause): Handle device_resident clause.
4628 (gimplify_oacc_declare_1, gimplify_oacc_declare): New functions.
4629 (gimplify_expr): Handle OACC_DECLARE.
4630 * omp-builtins.def (BUILT_IN_GOACC_DECLARE): New builtin.
4631 * omp-low.c (expand_omp_target): Handle
4632 GF_OMP_TARGET_KIND_OACC_DECLARE and BUILTIN_GOACC_DECLARE.
4633 (build_omp_regions_1): Handlde GF_OMP_TARGET_KIND_OACC_DECLARE.
4634 (lower_omp_target): Handle GF_OMP_TARGET_KIND_OACC_DECLARE,
4635 GOMP_MAP_DEVICE_RESIDENT and GOMP_MAP_LINK.
4636 (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_OACC_DECLARE.
4637 * tree-pretty-print.c (dump_omp_clause): Handle GOMP_MAP_LINK and
4638 GOMP_MAP_DEVICE_RESIDENT.
4640 2015-11-12 Christophe Lyon <christophe.lyon@linaro.org>
4642 [ARM] Remove neon-testgen.ml and generated tests.
4644 * config/arm/neon-testgen.ml: Remove.
4646 2015-11-12 Jim Wilson <jim.wilson@linaro.org>
4648 * config/aarch64/aarch64-cores.def (qdf24xx): New.
4649 * config/aarch64/aarch64-tune.md: Regenerated.
4650 * config/arm/arm-cores.def (qdf24xx): New.
4651 * config/arm/arm-tables.opt, config/arm/arm-tune.md: Regenerated.
4652 * config/arm/bpabi.h (BE8_LINK_SPEC): Add qdf24xx support.
4653 * doc/invoke.texi (AArch64 Options/-mtune): Add "qdf24xx".
4654 (ARM Options/-mtune): Likewise.
4656 2015-11-12 Martin Liska <mliska@suse.cz>
4658 * config/i386/i386.c (ix86_valid_target_attribute_p):
4659 Finalize options at the of the function.
4660 * gcc.c (driver_get_configure_time_options): Call newly
4661 introduced init_opts_obstack.
4662 * lto-wrapper.c (main): Likewise.
4663 * opts.c (init_opts_obstack): New function.
4664 (init_options_struct): Call newly introduced init_opts_obstack.
4665 * opts.h (init_options_struct): Declare.
4667 2015-11-12 Martin Liska <mliska@suse.cz>
4670 * ipa-icf.c (void sem_item::set_hash): New function.
4671 (sem_function::get_hash): Use renamed m_hash member variable.
4672 (sem_item::update_hash_by_addr_refs): Utilize get_hash.
4673 (sem_item::update_hash_by_local_refs): Likewise.
4674 (sem_variable::get_hash): Use renamed m_hash member variable.
4675 (sem_item_optimizer::update_hash_by_addr_refs): Utilize get_hash.
4676 (sem_item_optimizer::build_hash_based_classes): Utilize set_hash.
4677 (sem_item_optimizer::build_graph): As the hash value of an item
4678 is lazy initialized, force the calculation.
4679 * ipa-icf.h (set_hash): Declare new function and rename hash member
4682 2015-11-12 Richard Biener <rguenther@suse.de>
4684 * tree-vectorizer.h (vect_slp_analyze_data_ref_dependences):
4685 Rename to vect_slp_analyze_instance_dependence.
4686 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
4687 Remove WAR special-case.
4688 (vect_slp_analyze_node_dependences): Instead add more specific
4689 code here, not relying on other instances being vectorized.
4690 (vect_slp_analyze_instance_dependence): Adjust accordingly.
4691 * tree-vect-slp.c (vect_build_slp_tree_1): Remove excessive
4692 vertical space in dump files.
4693 (vect_print_slp_tree): Likewise.
4694 (vect_analyze_slp_instance): Dump a header for the final SLP tree.
4695 (vect_slp_analyze_bb_1): Delay computing relevant stmts and
4696 not vectorized stmts until after dependence analysis removed
4697 instances. Merge alignment and dependence checks.
4698 * tree-vectorizer.c (pass_slp_vectorize::execute): Clear visited
4701 2015-11-12 Evandro Menezes <e.menezes@samsung.com>
4703 * config/aarch64/aarch64-protos.h (tune_params): Add new members
4704 "max_case_values" and "cache_line_size".
4705 * config/aarch64/aarch64.c (aarch64_case_values_threshold): New
4707 (aarch64_override_options_internal): Tune heuristics based on new
4708 members in "tune_params".
4709 (TARGET_CASE_VALUES_THRESHOLD): Define macro.
4711 2015-11-12 Richard Biener <rguenther@suse.de>
4713 PR tree-optimization/68306
4714 * tree-vect-data-refs.c (verify_data_ref_alignment): Remove
4715 relevant and vectorizable checks here.
4716 (vect_verify_datarefs_alignment): Add relevant check here.
4718 2015-11-12 Nathan Sidwell <nathan@codesourcery.com>
4720 * gimplify.c (oacc_default_clause): New.
4721 (omp_notice_variable): Call it.
4723 2015-11-12 Ilya Enkovich <enkovich.gnu@gmail.com>
4725 PR tree-optimization/68305
4726 * tree-vect-slp.c (vect_get_constant_vectors): Support
4727 COND_EXPR with SSA_NAME as a condition.
4729 2015-11-12 Eric Botcazou <ebotcazou@adacore.com>
4731 * config/visium/visium-protos.h (notice_update_cc): Delete.
4732 (print_operand): Likewise.
4733 (print_operand_address): Likewise.
4735 2015-11-12 Uros Bizjak <ubizjak@gmail.com>
4737 * config/alpha/alpha.h (FUNCTION_VALUE, LIBCALL_VALUE,
4738 FUNCTION_VALUE_REGNO_P): Remove.
4739 * config/alpha/alpha-protos.h (function_value): Remove.
4740 * config/alpha/alpha.c (function_value): Rename to...
4741 (alpha_function_value_1): ... this. Make static.
4742 (alpha_function_value, alpha_libcall_value,
4743 alpha_function_value_regno_p): New functions.
4744 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
4745 TARGET_FUNCTION_VALUE_REGNO_P): Define.
4747 2015-11-12 Uros Bizjak <ubizjak@gmail.com>
4749 * config/alpha/alpha.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
4750 * config/alpha/alpha.c (alpha_memory_latency): Make static.
4751 (alpha_register_move_cost, alpha_memory_move_cost): New functions.
4752 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
4754 2015-11-12 Eric Botcazou <ebotcazou@adacore.com>
4757 * config/i386/i386.c (ix86_adjust_stack_and_probe): Remove obsolete
4758 assertion on the CFA register.
4760 2015-11-12 Ilya Enkovich <enkovich.gnu@gmail.com>
4762 * expr.c (do_store_flag): Expand vector comparison as
4763 VEC_COND_EXPR if vector comparison is not supported by target.
4765 2015-11-12 Renlin Li <renlin.li@arm.com>
4767 * config/arm/arm.md (addsi3_compare_op2): Make the order of
4768 assembly pattern consistent with constraint order.
4770 2015-11-12 Tom de Vries <tom@codesourcery.com>
4772 * gen-pass-instances.awk (handle_line): Simplify match regexp.
4774 2015-11-12 Tom de Vries <tom@codesourcery.com>
4776 * gen-pass-instances.awk (handle_line): Simplify init of
4779 2015-11-12 Tom de Vries <tom@codesourcery.com>
4781 * gen-pass-instances.awk (handle_line): Rename var where to
4784 2015-11-12 Claudiu Zissulescu <claziss@synopsys.com>
4786 * config/arc/arc.c (gen_compare_reg): Swap operands also when we
4787 do not expand to rtl.
4789 2015-11-12 Richard Biener <rguenther@suse.de>
4791 PR tree-optimization/58497
4792 * tree-vect-generic.c: Include gimplify.h.
4793 (tree_vec_extract): Lookup constant/constructor DEFs.
4794 (do_cond): Unshare cond.
4796 2015-11-12 Uros Bizjak <ubizjak@gmail.com>
4798 * config/i386/i386.c (ix86_legitimate_combined_insn): Reject
4799 combined insn if the alignment of vector mode memory operand
4800 is less than ssememalign.
4802 2015-11-12 Tom de Vries <tom@codesourcery.com>
4804 * gen-pass-instances.awk (handle_line): Print parentheses and
4805 pass_name explicitly.
4807 2015-11-12 Tom de Vries <tom@codesourcery.com>
4809 * gen-pass-instances.awk (handle_line): Add pass_num, prefix
4812 2015-11-12 Tom de Vries <tom@codesourcery.com>
4814 * gen-pass-instances.awk (handle_line): Add comments.
4816 2015-11-12 Tom de Vries <tom@codesourcery.com>
4818 * gen-pass-instances.awk (handle_line): Rename len_of_end to
4821 2015-11-12 Tom de Vries <tom@codesourcery.com>
4823 * gen-pass-instances.awk (handle_line): Add len_of_call variable.
4825 2015-11-12 Tom de Vries <tom@codesourcery.com>
4827 * gen-pass-instances.awk (handle_line): Restructure using early-out.
4829 2015-11-12 Tom de Vries <tom@codesourcery.com>
4831 * gen-pass-instances.awk (handle_line): Unify semicolon use.
4833 2015-11-12 Tom de Vries <tom@codesourcery.com>
4835 * gen-pass-instances.awk (handle_line): Remove unused var line_length.
4837 2015-11-12 Tom de Vries <tom@codesourcery.com>
4839 * gen-pass-instances.awk: Add emacs indent setting.
4841 2015-11-12 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4843 * fold-const.c (fold_binary_loc) : Move Convert A/B/C to A/(B*C)
4845 Move Convert A/(B/C) to (A/B)*C to match.pd.
4846 Move Convert C1/(X*C2) into (C1/C2)/X to match.pd.
4847 Move Optimize (X & (-A)) / A where A is a power of 2, to
4848 X >> log2(A) to match.pd.
4850 * match.pd (rdiv (rdiv:s @0 @1) @2): New simplifier.
4851 (rdiv @0 (rdiv:s @1 @2)): New simplifier.
4852 (div (convert? (bit_and @0 INTEGER_CST@1)) INTEGER_CST@2):
4854 (rdiv REAL_CST@0 (mult @1 REAL_CST@2)): New simplifier.
4856 2015-11-12 Charles Baylis <charles.baylis@linaro.org>
4858 * config/arm/neon.md: (neon_vld2_lane<mode>): Remove unused max
4860 (neon_vst2_lane<mode>): Likewise.
4861 (neon_vld3_lane<mode>): Likewise.
4862 (neon_vst3_lane<mode>): Likewise.
4863 (neon_vld4_lane<mode>): Likewise.
4864 (neon_vst4_lane<mode>): Likewise.
4866 2015-11-11 Aditya Kumar <aditya.k7@samsung.com>
4867 Sebastian Pop <s.pop@samsung.com>
4869 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
4870 New member codegen_error
4871 (translate_isl_ast_for_loop): Remove call to single_succ_edge and
4873 (translate_isl_ast_node_user): Early return in case of error.
4874 (translate_isl_ast_to_gimple::translate_isl_ast): Same.
4875 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): New.
4876 (add_parameters_to_ivs_params): Remove macro.
4877 (graphite_regenerate_ast_isl): Add if_region pointer to region.
4878 * graphite-poly.c (new_poly_dr): Remove macro.
4880 (new_gimple_poly_bb): Same.
4881 (free_gimple_poly_bb): Same.
4882 (print_scop_params): Same.
4883 * graphite-poly.h (struct poly_dr): Same.
4884 (struct poly_bb): Add new_bb.
4885 (gbb_from_bb): Remove dead code.
4886 (pbb_from_bb): Same.
4887 * graphite-scop-detection.c (parameter_index_in_region_1): Same.
4888 (parameter_index_in_region): Same.
4889 (find_scop_parameters): Same.
4890 (build_cross_bb_scalars_def): New.
4891 (build_cross_bb_scalars_use): New.
4892 (graphite_find_cross_bb_scalar_vars): New
4893 (try_generate_gimple_bb): Reads and Writes.
4894 (build_alias_set): Move.
4895 (gather_bbs::before_dom_children): Gather bbs visited.
4896 (build_scops): call build_alias_set.
4897 * graphite-sese-to-poly.c (phi_arg_in_outermost_loop): Delete.
4898 (remove_simple_copy_phi): Delete.
4899 (remove_invariant_phi): Delete.
4900 (simple_copy_phi_p): Delete.
4901 (reduction_phi_p): Delete.
4902 (isl_id_for_dr): Remove unused param.
4903 (parameter_index_in_region_1): Remove macro usage.
4904 (set_scop_parameter_dim): Same.
4905 (add_param_constraints): Same.
4906 (add_conditions_to_constraints): Same
4907 (build_scop_iteration_domain): Same.
4908 (pdr_add_alias_set): Comment.
4909 (add_scalar_version_numbers): New.
4910 (build_poly_dr): ISL id.
4911 (build_scop_drs): Move.
4912 (build_poly_sr_1): Same.
4913 (insert_stmts): Remove.
4914 (build_poly_sr): New.
4915 (new_pbb_from_pbb): Delete.
4916 (insert_out_of_ssa_copy_on_edge): Delete.
4917 (create_zero_dim_array): Delete.
4918 (scalar_close_phi_node_p): Delete.
4919 (propagate_expr_outside_region): Delete.
4920 (rewrite_close_phi_out_of_ssa): Delete.
4921 (rewrite_phi_out_of_ssa): Delete.
4922 (rewrite_degenerate_phi): Delete.
4923 (rewrite_reductions_out_of_ssa): Delete.
4924 (rewrite_cross_bb_scalar_dependence): Delete.
4925 (handle_scalar_deps_crossing_scop_limits):
4926 (rewrite_cross_bb_scalar_deps): Delete.
4927 (build_poly_scop): Remove calls to out-of-ssa functions.
4928 * graphite.c (graphite_transform_loops): Early return in case of
4930 * sese.c (debug_rename_map_1): Delete.
4931 (debug_rename_map): Delete.
4932 (sese_record_loop): Remove macro.
4933 (build_sese_loop_nests): Same.
4934 (new_sese_info): Same.
4935 (free_sese_info): Same.
4936 (sese_insert_phis_for_liveouts):
4937 (is_loop_closed_ssa_use): New.
4938 (number_of_phi_nodes): New.
4939 (bb_contains_loop_close_phi_nodes): New.
4940 (bb_contains_loop_phi_nodes): New.
4941 (phi_uses_name): New.
4943 (get_rename): Add old_bb and loop_phi for more precise matching of
4945 (set_rename): Pass region.
4946 (later_of_the_two): New.
4947 (gsi_insert_earliest): New.
4948 (collect_all_ssa_names): New.
4949 (substitute_ssa_name): New.
4950 (rename_all_uses): New.
4951 (get_rename_from_scev): New.
4952 (rename_uses): Pass old_bb for more precise matching of exprs.
4953 (get_def_bb_for_const): New.
4954 (get_new_name): New.
4957 (copy_loop_phi_args): New.
4958 (copy_loop_phi_nodes): New.
4959 (get_loop_init_value): New.
4960 (find_init_value): New.
4961 (find_init_value_close_phi): New.
4962 (copy_loop_close_phi_args): New.
4963 (copy_loop_close_phi_nodes): New.
4964 (add_phi_arg_for_new_expr): New.
4965 (copy_cond_phi_args): New.
4966 (copy_cond_phi_nodes): New.
4967 (copy_phi_nodes): New.
4968 (should_copy_to_new_region): New.
4969 (set_rename_for_each_def): New.
4970 (graphite_copy_stmts_from_block): Early return in case of error.
4971 (copy_bb_and_scalar_dependences): Same.
4972 * sese.h (vec_find): New.
4973 (SESE_PARAMS): Delete.
4974 (SESE_LOOPS): Delete.
4975 (SESE_LOOP_NEST): Delete.
4976 (sese_contains_loop): Remove macro usage.
4977 (sese_nb_params): Same.
4978 (struct gimple_poly_bb): Added read_scalar_refs, write_scalar_refs.
4980 2015-11-11 Abderrazek Zaafrani <a.zaafrani@samsung.com>
4982 * graphite-sese-to-poly.c (build_scop_original_schedule): Call
4983 isl_union_map_add_map on every pbb->schedule.
4985 2015-11-11 Tom de Vries <tom@codesourcery.com>
4987 * tree-parloops.c (create_parallel_loop): Return void.
4989 2015-11-11 Tom de Vries <tom@codesourcery.com>
4991 * tree-parloops.c (transform_to_exit_first_loop_alt): Insert new exit
4992 block only when needed.
4994 2015-11-11 Uros Bizjak <ubizjak@gmail.com>
4996 * config/alpha/alpha-protos.h (print_operand): Remove.
4997 (print_operand_address): Remove.
4998 * config/alpha/alpha.h (PRINT_OPERAND): Remove.
4999 (PRINT_OPERAND_ADDRESS): Remove.
5000 (PRINT_OPERAND_PUNCT_VALID_P): Remove.
5001 * config/alpha/alpha.c (TARGET_PRINT_OPERAND): New hook define.
5002 (TARGET_PRINT_OPERAND_ADDRESS): New hook define.
5003 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): New hook define.
5004 (print_operand_address): Rename to...
5005 (alpha_print_operand_address): ...this and make static.
5006 (print_operand): Rename to...
5007 (alpha_print_operand): ...this and make static.
5008 (alpha_print_operand_punct_valid_p): New static function.
5010 2015-11-11 Richard Biener <rguenther@suse.de>
5012 * tree-vectorizer.h (vect_slp_analyze_and_verify_instance_alignment):
5014 (vect_analyze_data_refs_alignment): Make loop vect specific.
5015 (vect_verify_datarefs_alignment): Likewise.
5016 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependences):
5017 Add missing continue.
5018 (vect_compute_data_ref_alignment): Export.
5019 (vect_compute_data_refs_alignment): Merge into...
5020 (vect_analyze_data_refs_alignment): ... this.
5021 (verify_data_ref_alignment): Split out from ...
5022 (vect_verify_datarefs_alignment): ... here.
5023 (vect_slp_analyze_and_verify_node_alignment): New function.
5024 (vect_slp_analyze_and_verify_instance_alignment): Likewise.
5025 * tree-vect-slp.c (vect_supported_load_permutation_p): Remove
5026 misplaced checks on alignment.
5027 (vect_slp_analyze_bb_1): Add fatal output parameter. Do
5028 alignment analysis after SLP discovery and do it per instance.
5029 (vect_slp_bb): When vect_slp_analyze_bb_1 fatally failed do not
5030 bother to re-try using different vector sizes.
5032 2015-11-11 Nathan Sidwell <nathan@codesourcery.com>
5033 Cesar Philippidis <cesar@codesourcery.com>
5035 * gimplify.c (enum omp_region_type): Add ORT_ACC,
5036 ORT_ACC_DATA, ORT_ACC_PARALLEL, ORT_ACC_KERNELS. Adjust ORT_NONE.
5037 (gimple_add_tmp_var): Add ORT_ACC checks.
5038 (gimplify_var_or_parm_decl): Likewise.
5039 (omp_firstprivatize_variable): Likewise. Use ORT_TARGET_DATA as a mask.
5040 (omp_add_variable): Look in outer contexts for openacc and allow
5041 reductions with other sharing. Add ORT_ACC and ORT_TARGET_DATA checks.
5042 (omp_notice_variable, omp_is_private, omp_check_private): Add
5044 (gimplify_scan_omp_clauses: Treat ORT_ACC as ORT_WORKSHARE.
5045 Permit private openacc reductions.
5046 (gimplify_oacc_cache): Specify ORT_ACC.
5047 (gimplify_omp_workshare): Adjust OpenACC region types.
5048 (gimplify_omp_target_update): Likewise.
5049 * omp-low.c (scan_sharing_clauses): Remove Openacc firstprivate sorry.
5050 (lower-rec_input_clauses): Don't handle openacc firstprivate
5052 (lower_omp_target): Emit initializers for openacc firstprivate vars.
5054 2015-11-11 Eric Botcazou <ebotcazou@adacore.com>
5057 * ira.c (ira_setup_eliminable_regset): Do not necessarily create the
5058 frame pointer for stack checking if non-call exceptions aren't used.
5059 * config/i386/i386.c (ix86_finalize_stack_realign_flags): Likewise.
5061 2015-11-11 Segher Boessenkool <segher@kernel.crashing.org>
5063 * simplify-rtx.c (simplify_truncation): Simplify TRUNCATE of AND of
5066 2015-11-11 Martin Liska <mliska@suse.cz>
5067 Richard Biener <rguenther@suse.de>
5069 PR rtl-optimization/68287
5070 * lra-lives.c (lra_create_live_ranges_1): Reserve the right
5073 2015-11-11 Simon Dardis <simon.dardis@imgtec.com>
5075 * config/mips/mips.c (mips_breakable_sequence_p): New function.
5076 (mips_break_sequence): New function.
5077 (mips_reorg_process_insns): Use them. Use compact branches in selected
5080 2015-11-11 Alan Lawrence <alan.lawrence@arm.com>
5082 * fold-const.c (get_array_ctor_element_at_index): Fix whitespace, typo.
5084 2015-11-11 Jiong Wang <jiong.wang@arm.com>
5085 Jim Wilson <wilson@gcc.gnu.org>
5088 * config/arm/arm.md (neon_vector_mem_operand): Return FALSE if strict
5089 be true and eliminable registers mentioned.
5091 2015-11-11 Claudiu Zissulescu <claziss@synopsys.com>
5093 * common/config/arc/arc-common.c (arc_handle_option): Handle ARCv2
5095 * config/arc/arc-opts.h: Add ARCv2 CPUs.
5096 * config/arc/arc-protos.h (arc_secondary_reload_conv): Prototype.
5097 * config/arc/arc.c (arc_secondary_reload): Handle subreg (reg)
5098 situation, and store instructions with large offsets.
5099 (arc_secondary_reload_conv): New function.
5100 (arc_init): Add ARCv2 options.
5101 (arc_conditional_register_usage): Select the proper register usage
5102 for ARCv2 processors.
5103 (arc_handle_interrupt_attribute): ILINK2 is only valid for ARCv1
5105 (arc_compute_function_type): Likewise.
5106 (arc_print_operand): Handle new ARCv2 punctuation characters.
5107 (arc_return_in_memory): ARCv2 ABI returns in registers up to 16 bytes.
5108 (workaround_arc_anomaly, arc_asm_insn_p, arc_loop_hazard): New
5110 (arc_reorg, arc_hazard): Use it.
5111 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __HS__ and __EM__.
5112 (ASM_SPEC): Add ARCv2 options.
5113 (TARGET_NORM): ARC HS has norm instructions by default.
5114 (TARGET_OPTFPE): Use optimized floating point emulation for ARC HS.
5115 (TARGET_AT_DBR_CONDEXEC): Only for ARC600 family.
5116 (TARGET_EM, TARGET_HS, TARGET_V2, TARGET_MPYW, TARGET_MULTI): Define.
5117 (SIGNED_INT16, TARGET_MPY, TARGET_ARC700_MPY, TARGET_ANY_MPY):
5119 (TARGET_ARC600_FAMILY, TARGET_ARCOMPACT_FAMILY): Likewise.
5120 (TARGET_LP_WR_INTERLOCK): Likewise.
5122 (commutative_binary_mult_comparison_result_used, movsicc_insn)
5123 (mulsi3, mulsi3_600_lib, mulsidi3, mulsidi3_700, mulsi3_highpart)
5124 (umulsi3_highpart_i, umulsi3_highpart_int, umulsi3_highpart)
5125 (umulsidi3, umulsidi3_700, cstoresi4, simple_return, p_return_i):
5127 (mulhisi3, mulhisi3_imm, mulhisi3_reg, umulhisi3, umulhisi3_imm)
5128 (umulhisi3_reg, umulhisi3_reg, mulsi3_v2, nopv, bswapsi2)
5129 (prefetch, divsi3, udivsi3 modsi3, umodsi3, arcset, arcsetltu)
5130 (arcsetgeu, arcsethi, arcsetls, reload_*_load, reload_*_store)
5131 (extzvsi): New pattern.
5132 * config/arc/arc.opt: New ARCv2 options.
5133 * config/arc/arcEM.md: New file.
5134 * config/arc/arcHS.md: Likewise.
5135 * config/arc/constraints.md (C3p): New constraint, accepts 1 and 2
5137 (Cm2): A signed 9-bit integer constant constraint.
5138 (C62): An unsigned 6-bit integer constant constraint.
5139 (C16): A signed 16-bit integer constant constraint.
5140 * config/arc/predicates.md (mult_operator): Add ARCv2 processort.
5141 (short_const_int_operand): New predicate.
5142 * config/arc/t-arc-newlib: Add ARCv2 multilib options.
5143 * doc/invoke.texi: Add documentation for -mcpu=<archs/arcem>
5144 -mcode-density and -mdiv-rem.
5146 2015-11-11 Julia Koval <julia.koval@intel.com>
5148 * config/i386/i386.c (m_SKYLAKE_AVX512): Fix typo.
5150 2015-11-11 Julia Koval <julia.koval@intel.com>
5152 * config/i386/i386.c: Handle "skylake" and "skylake-avx512".
5154 2015-11-11 Martin Liska <mliska@suse.cz>
5156 * gimple-ssa-strength-reduction.c (create_phi_basis):
5158 * passes.c (release_dump_file_name): New function.
5159 (pass_init_dump_file): Used from this function.
5160 (pass_fini_dump_file): Likewise.
5161 * tree-sra.c (convert_callers_for_node): Use xstrdup_for_dump.
5162 * var-tracking.c (vt_initialize): Use pool_allocator.
5164 2015-11-11 Richard Biener <rguenth@gcc.gnu.org>
5165 Jiong Wang <jiong.wang@arm.com>
5167 PR tree-optimization/68234
5168 * tree-vrp.c (vrp_visit_phi_node): Extend SCEV check to those loop PHI
5169 node which estimiated to be VR_VARYING initially.
5171 2015-11-11 Robert Suchanek <robert.suchanek@imgtec.com>
5173 * regname.c (scan_rtx_reg): Check the matching number of consecutive
5174 registers when tying chains.
5175 (build_def_use): Move terminated_this_insn earlier in the function.
5177 2015-11-10 Mike Frysinger <vapier@gentoo.org>
5179 * configure.ac: Use = with test and not ==.
5180 * configure: Regenerated.
5182 2015-11-11 David Edelsohn <dje.gcc@gmail.com>
5184 * config/rs6000/aix.h (TARGET_OS_AIX_CPP_BUILTINS): Add cpu and
5185 machine asserts. Update defines for 64 bit.
5187 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
5190 * config/arm/neon.md (neon_vld1_lane<mode>): Remove error for invalid
5192 (neon_vst1_lane<mode>): Likewise.
5193 (neon_vld2_lane<mode>): Likewise.
5194 (neon_vst2_lane<mode>): Likewise.
5195 (neon_vld3_lane<mode>): Likewise.
5196 (neon_vst3_lane<mode>): Likewise.
5197 (neon_vld4_lane<mode>): Likewise.
5198 (neon_vst4_lane<mode>): Likewise.
5200 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
5203 * config/arm/arm-builtins.c: (arm_load1_qualifiers) Use
5204 qualifier_struct_load_store_lane_index.
5205 (arm_storestruct_lane_qualifiers) Likewise.
5206 * config/arm/neon.md: (neon_vld1_lane<mode>) Reverse lane numbers for
5208 (neon_vst1_lane<mode>) Likewise.
5209 (neon_vld2_lane<mode>) Likewise.
5210 (neon_vst2_lane<mode>) Likewise.
5211 (neon_vld3_lane<mode>) Likewise.
5212 (neon_vst3_lane<mode>) Likewise.
5213 (neon_vld4_lane<mode>) Likewise.
5214 (neon_vst4_lane<mode>) Likewise.
5216 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
5219 * config/arm/arm-builtins.c (enum arm_type_qualifiers): New enumerator
5220 qualifier_struct_load_store_lane_index.
5221 (builtin_arg): New enumerator NEON_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
5222 (arm_expand_neon_args): New parameter. Remove ellipsis. Handle NEON
5223 argument qualifiers.
5224 (arm_expand_neon_builtin): Handle new NEON argument qualifier.
5225 * config/arm/arm.h (NEON_ENDIAN_LANE_N): New macro.
5227 2015-11-10 Nathan Sidwell <nathan@codesourcery.com>
5229 * config/nvptx/nvptx.opt (moptimize): New flag.
5230 * config/nvptx/nvptx.c (nvptx_option_override): Set nvptx_optimize
5232 (nvptx_optimize_inner): New.
5233 (nvptx_process_pars): Call it when optimizing.
5234 * doc/invoke.texi (Nvidia PTX Options): Document -moptimize.
5236 2015-11-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5238 * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
5239 Remove redundant code.
5241 2015-11-10 Jeff Law <law@redhat.com>
5243 * config/ft32/ft32.c (ft32_print_operand): Supply mode to
5244 call to output_address.
5245 * config/moxie/moxie.c (moxie_print_operand_address): Similarly.
5246 Add unnamed machine_mode argument.
5248 2015-11-10 Michael Meissner <meissner@linux.vnet.ibm.com>
5250 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add power9 to hosts that
5253 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
5255 * config/i386/i386.md (*movabs<mode>_1): Add explicit
5256 size directives for -masm=intel.
5257 (*movabs<mode>_2): Ditto.
5259 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
5261 * config/i386/i386.c (ix86_print_operand): Remove dead code that
5262 tried to avoid (%rip) for call operands.
5264 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
5266 * config/i386/i386.c (ix86_print_operand_address_as): Add no_rip
5267 argument. Do not use RIP relative addressing when no_rip is set.
5268 (ix86_print_operand): Update call to ix86_print_operand_address_as.
5269 (ix86_print_operand_address): Ditto.
5270 * config/i386/i386.md (*movabs<mode>_1): Use %P modifier for
5271 absolute movabs operand 0. Add square braces for -masm=intel.
5272 (*movabs<mode>_2): Ditto for operand 1.
5274 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5276 * config/arm/arm.c (arm_new_rtx_costs, FIX case): Handle
5277 combine_vcvtf2i pattern.
5279 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5281 * config/arm/arm.c (neon_valid_immediate): Remove integer
5282 CONST_DOUBLE handling. It should never occur.
5284 2015-11-10 Matthew Wahab <matthew.wahab@arm.com>
5286 * config/aarch64/atomics.md (unspecv): Move to iterators.md.
5287 (ATOMIC_LDOP): Likewise.
5288 (atomic_ldop): Likewise.
5289 * config/aarch64/iterators.md (unspecv): Moved from atomics.md.
5290 (ATOMIC_LDOP): Likewise.
5291 (atomic_ldop): Likewise.
5293 2015-11-10 Martin Liska <mliska@suse.cz>
5295 * alloc-pool.h (allocate_raw): New function.
5296 (operator new (size_t, object_allocator<T> &a)): Use the
5297 function instead of object_allocator::allocate).
5299 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
5301 * config/i386/sse.md (HALFMASKMODE): New attribute.
5302 (DOUBLEMASKMODE): New attribute.
5303 (vec_pack_trunc_qi): New.
5304 (vec_pack_trunc_<mode>): New.
5305 (vec_unpacks_lo_hi): New.
5306 (vec_unpacks_lo_si): New.
5307 (vec_unpacks_lo_di): New.
5308 (vec_unpacks_hi_hi): New.
5309 (vec_unpacks_hi_<mode>): New.
5311 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
5313 * optabs.c (expand_binop_directly): Allow scalar mode for
5314 vec_pack_trunc_optab.
5315 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
5316 boolean vector producers from pattern sequence when computing VF.
5317 * tree-vect-patterns.c (vect_vect_recog_func_ptrs) Add
5318 vect_recog_mask_conversion_pattern.
5319 (search_type_for_mask): Choose the smallest
5320 type if different size types are mixed.
5321 (build_mask_conversion): New.
5322 (vect_recog_mask_conversion_pattern): New.
5323 (vect_pattern_recog_1): Allow scalar mode for boolean vectype.
5324 * tree-vect-stmts.c (vectorizable_mask_load_store): Support masked
5326 (vectorizable_conversion): Support boolean vectors.
5327 (free_stmt_vec_info): Allow patterns for statements with no lhs.
5328 * tree-vectorizer.h (NUM_PATTERNS): Increase to 14.
5330 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
5332 * config/i386/i386-protos.h (ix86_expand_sse_movcc): New.
5333 * config/i386/i386.c (ix86_expand_sse_movcc): Make public.
5334 Cast mask to FP mode if required.
5335 * config/i386/sse.md (vcond_mask_<mode><avx512fmaskmodelower>): New.
5336 (vcond_mask_<mode><avx512fmaskmodelower>): New.
5337 (vcond_mask_<mode><sseintvecmodelower>): New.
5338 (vcond_mask_<mode><sseintvecmodelower>): New.
5339 (vcond_mask_v2div2di): New.
5340 (vcond_mask_<mode><sseintvecmodelower>): New.
5341 (vcond_mask_<mode><sseintvecmodelower>): New.
5343 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
5345 * optabs-query.h (get_vcond_mask_icode): New.
5346 * optabs-tree.c (expand_vec_cond_expr_p): Use
5347 get_vcond_mask_icode for VEC_COND_EXPR with mask.
5348 * optabs.c (expand_vec_cond_mask_expr): New.
5349 (expand_vec_cond_expr): Use get_vcond_mask_icode when possible.
5350 * optabs.def (vcond_mask_optab): New.
5351 * tree-vect-patterns.c (vect_recog_bool_pattern): Don't
5352 generate redundant comparison for COND_EXPR.
5353 * tree-vect-stmts.c (vect_is_simple_cond): Allow SSA_NAME
5355 (vectorizable_condition): Likewise.
5356 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow
5357 cond_exp with no embedded comparison.
5358 (vect_build_slp_tree_1): Likewise.
5360 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
5362 * config/i386/sse.md (maskload<mode>): Rename to ...
5363 (maskload<mode><sseintvecmodelower>): ... this.
5364 (maskstore<mode>): Rename to ...
5365 (maskstore<mode><sseintvecmodelower>): ... this.
5366 (maskload<mode><avx512fmaskmodelower>): New.
5367 (maskstore<mode><avx512fmaskmodelower>): New.
5369 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
5371 * internal-fn.c (expand_MASK_LOAD): Adjust to maskload optab changes.
5372 (expand_MASK_STORE): Adjust to maskstore optab changes.
5373 * optabs-query.c (can_vec_mask_load_store_p): Add MASK_MODE arg.
5374 Adjust to maskload, maskstore optab changes.
5375 * optabs-query.h (can_vec_mask_load_store_p): Add MASK_MODE arg.
5376 * optabs.def (maskload_optab): Transform into convert optab.
5377 (maskstore_optab): Likewise.
5378 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Adjust to
5379 can_vec_mask_load_store_p signature change.
5380 (predicate_mem_writes): Use boolean mask.
5381 * tree-vect-stmts.c (vectorizable_mask_load_store): Adjust to
5382 can_vec_mask_load_store_p signature change. Allow invariant masks.
5383 (vectorizable_operation): Ignore type precision for boolean vectors.
5385 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
5387 * expr.c (do_store_flag): Use expand_vec_cmp_expr for mask results.
5388 (const_vector_mask_from_tree): New.
5389 (const_vector_from_tree): Use const_vector_mask_from_tree
5390 for boolean vectors.
5391 * optabs-query.h (get_vec_cmp_icode): New.
5392 * optabs-tree.c (expand_vec_cmp_expr_p): New.
5393 * optabs-tree.h (expand_vec_cmp_expr_p): New.
5394 * optabs.c (vector_compare_rtx): Add OPNO arg.
5395 (expand_vec_cond_expr): Adjust to vector_compare_rtx change.
5396 (expand_vec_cmp_expr): New.
5397 * optabs.def (vec_cmp_optab): New.
5398 (vec_cmpu_optab): New.
5399 * optabs.h (expand_vec_cmp_expr): New.
5400 * tree-vect-generic.c (expand_vector_comparison): Add vector
5401 comparison optabs check.
5402 * tree-vect-loop.c (vect_determine_vectorization_factor): Ignore mask
5403 operations for VF. Add mask type computation.
5404 * tree-vect-stmts.c (get_mask_type_for_scalar_type): New.
5405 (vectorizable_comparison): New.
5406 (vect_analyze_stmt): Add vectorizable_comparison.
5407 (vect_transform_stmt): Likewise.
5408 (vect_init_vector): Support boolean vector invariants.
5409 (vect_get_vec_def_for_operand): Add VECTYPE arg.
5410 (vectorizable_condition): Directly provide vectype for invariants
5412 * tree-vectorizer.h (get_mask_type_for_scalar_type): New.
5413 (enum vect_var_kind): Add vect_mask_var.
5414 (enum stmt_vec_info_type): Add comparison_vec_info_type.
5415 (vectorizable_comparison): New.
5416 (vect_get_vec_def_for_operand): Add VECTYPE arg.
5417 * tree-vect-data-refs.c (vect_get_new_vect_var): Support vect_mask_var.
5418 (vect_create_destination_var): Likewise.
5419 * tree-vect-patterns.c (check_bool_pattern): Check fails
5420 if we can vectorize comparison directly.
5421 (search_type_for_mask): New.
5422 (vect_recog_bool_pattern): Support cases when bool pattern check fails.
5423 * tree-vect-slp.c (vect_build_slp_tree_1): Allow
5424 comparison statements.
5425 (vect_get_constant_vectors): Support boolean vector constants.
5426 * config/i386/i386-protos.h (ix86_expand_mask_vec_cmp): New.
5427 (ix86_expand_int_vec_cmp): New.
5428 (ix86_expand_fp_vec_cmp): New.
5429 * config/i386/i386.c (ix86_expand_sse_cmp): Allow NULL for
5430 op_true and op_false.
5431 (ix86_int_cmp_code_to_pcmp_immediate): New.
5432 (ix86_fp_cmp_code_to_pcmp_immediate): New.
5433 (ix86_cmp_code_to_pcmp_immediate): New.
5434 (ix86_expand_mask_vec_cmp): New.
5435 (ix86_expand_fp_vec_cmp): New.
5436 (ix86_expand_int_sse_cmp): New.
5437 (ix86_expand_int_vcond): Use ix86_expand_int_sse_cmp.
5438 (ix86_expand_int_vec_cmp): New.
5439 (ix86_get_mask_mode): New.
5440 (TARGET_VECTORIZE_GET_MASK_MODE): New.
5441 * config/i386/sse.md (avx512fmaskmodelower): New.
5442 (vec_cmp<mode><avx512fmaskmodelower>): New.
5443 (vec_cmp<mode><sseintvecmodelower>): New.
5444 (vec_cmpv2div2di): New.
5445 (vec_cmpu<mode><avx512fmaskmodelower>): New.
5446 (vec_cmpu<mode><sseintvecmodelower>): New.
5447 (vec_cmpuv2div2di): New.
5449 2015-11-10 Richard Biener <rguenther@suse.de>
5451 PR tree-optimization/68240
5452 * tree-ssa-sccvn.c (cond_stmts_equal_p): Handle commutative compares
5454 (visit_phi): For PHIs with just a single executable edge
5455 take its value directly.
5456 (expressions_equal_p): Handle VN_TOP properly.
5458 2015-11-10 Richard Biener <rguenther@suse.de>
5460 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences):
5461 Handle memory using/clobbering stmts without a STMT_VINFO_DATA_REF
5464 2015-11-10 Richard Biener <rguenther@suse.de>
5466 PR tree-optimization/56118
5467 * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Make equal
5468 cost favor vectorized version.
5470 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5472 * config/aarch64/aarch64.md (<neg_not_op><mode>cc): New define_expand.
5473 * config/aarch64/iterators.md (NEG_NOT): New code iterator.
5474 (neg_not_op): New code attribute.
5476 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5478 * ifcvt.c (noce_try_inverse_constants): New function.
5479 (noce_process_if_block): Call it.
5480 * optabs.h (emit_conditional_neg_or_complement): Declare prototype.
5481 * optabs.def (negcc_optab, notcc_optab): Declare.
5482 * optabs.c (emit_conditional_neg_or_complement): New function.
5483 * doc/tm.texi (Standard Names): Document negcc, notcc names.
5485 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5487 PR rtl-optimization/68236
5488 * haifa-sched.c (autopref_multipass_dfa_lookahead_guard): Return 0
5489 if insn_queue doesn't exist.
5490 (haifa_sched_finish): Reset insn_queue to NULL.
5492 2015-11-10 Robert Suchanek <robert.suchanek@imgtec.com>
5494 * regrename.c (create_new_chain): Initialize renamed and tied_chain.
5495 (build_def_use): Initialize terminated_this_insn.
5496 (find_best_rename_reg): Pick and check register from the tied chain.
5497 (regrename_do_replace): Mark head as renamed.
5498 (struct du_head *terminated_this_insn). New static variable.
5499 (scan_rtx_reg): Tie chains in move insns. Set terminated_this_insn.
5500 * regrename.h (struct du_head): Add tied_chain, renamed members.
5502 2015-11-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5505 * config/aarch64/aarch64.c (aarch64_use_constant_blocks_p):
5508 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
5511 * config/sparc/sparc.c (sparc_function_value_1): In 32-bit mode, do
5512 not promote the mode for aggregate types.
5514 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
5516 * omp-low.h (replace_oacc_fn_attrib, build_oacc_routine_dims): Declare.
5517 * omp-low.c (build_oacc_routine_dims): New.
5519 2015-11-09 Michael Meissner <meissner@linux.vnet.ibm.com>
5521 * config/rs6000/constraints.md (wF constraint): New constraints
5522 for power9/toc fusion.
5523 (wG constraint): Likewise.
5525 * config/rs6000/predicates.md (u6bit_cint_operand): New
5526 predicate, recognize 0..63.
5527 (upper16_cint_operand): New predicate for power9 and toc fusion.
5528 (fpr_reg_operand): Likewise.
5529 (toc_fusion_or_p9_reg_operand): Likewise.
5530 (toc_fusion_mem_raw): Likewise.
5531 (toc_fusion_mem_wrapped): Likewise.
5532 (fusion_gpr_addis): If power9 fusion, allow fusion for a larger
5534 (fusion_gpr_mem_combo): Delete, use fusion_addis_mem_combo_load
5536 (fusion_addis_mem_combo_load): Add support for power9 fusion of
5537 floating point loads, floating point stores, and gpr stores.
5538 (fusion_addis_mem_combo_store): Likewise.
5539 (fusion_offsettable_mem_operand): Likewise.
5541 * config/rs6000/rs6000-protos.h (emit_fusion_addis): Add declarations.
5542 (emit_fusion_load_store): Likewise.
5543 (fusion_p9_p): Likewise.
5544 (expand_fusion_p9_load): Likewise.
5545 (expand_fusion_p9_store): Likewise.
5546 (emit_fusion_p9_load): Likewise.
5547 (emit_fusion_p9_store): Likewise.
5548 (fusion_wrap_memory_address): Likewise.
5550 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add new
5551 elements for power9 fusion.
5552 (rs6000_debug_print_mode): Rework debug information to print more
5553 information about fusion.
5554 (rs6000_init_hard_regno_mode_ok): Setup for power9 fusion support.
5555 (rs6000_legitimate_address_p): Recognize toc fusion as a valid
5556 offsettable memory address.
5557 (rs6000_rtx_costs): Update costs for new ISA 3.0 instructions.
5558 (emit_fusion_gpr_load): Move most of the code from
5559 emit_fusion_gpr_load into emit_fusion-addis that handles both
5560 power8 and power9 fusion.
5561 (emit_fusion_addis): Likewise.
5562 (emit_fusion_load_store): Likewise.
5563 (fusion_wrap_memory_address): Add support for TOC fusion.
5564 (fusion_split_address): Likewise.
5565 (fusion_p9_p): Add support for power9 fusion.
5566 (expand_fusion_p9_load): Likewise.
5567 (expand_fusion_p9_store): Likewise.
5568 (emit_fusion_p9_load): Likewise.
5569 (emit_fusion_p9_store): Likewise.
5571 * config/rs6000/rs6000.h (TARGET_EXTSWSLI): Macros for support for
5572 new instructions in ISA 3.0.
5573 (TARGET_CTZ): Likewise.
5574 (TARGET_TOC_FUSION_INT): Macros for power9 fusion support.
5575 (TARGET_TOC_FUSION_FP): Likewise.
5577 * config/rs6000/rs6000.md (UNSPEC_FUSION_P9): New power9/toc
5579 (UNSPEC_FUSION_ADDIS): Likewise.
5580 (QHSI mode iterator): New iterator for power9 fusion.
5581 (GPR_FUSION): Likewise.
5582 (FPR_FUSION): Likewise.
5583 (mod<mode>3): Add support for ISA 3.0 modulus instructions.
5584 (umod<mode>3): Likewise.
5585 (divmod peephole): Likewise.
5586 (udivmod peephole): Likewise.
5587 (ctz<mode>2): Add support for ISA 3.0 count trailing zeros scalar
5589 (ctz<mode>2_h): Likewise.
5590 (ashdi3_extswsli): Add support for ISA 3.0 EXTSWSLI instruction.
5591 (ashdi3_extswsli_dot): Likewise.
5592 (ashdi3_extswsli_dot2): Likewise.
5593 (power9 fusion splitter): New power9/toc fusion support.
5594 (toc_fusionload_<mode>): Likewise.
5595 (toc_fusionload_di): Likewise.
5596 (fusion_gpr_load_<mode>): Update predicate function.
5597 (power9 fusion peephole2s): New power9/toc fusion support.
5598 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
5599 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_store): Likewise.
5600 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_load): Likewise.
5601 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
5602 (fusion_p9_<mode>_constant): Likewise.
5604 2015-11-09 Steve Ellcey <sellcey@imgtec.com>
5606 * optabs.c (prepare_libcall_arg): New function.
5607 (expand_fixed_convert): Add call to prepare_libcall_arg.
5609 2015-11-09 Nikolai Bozhenov <n.bozhenov@samsung.com>
5611 * sched-int.h (dump_rgn_dependencies_dot): Declare
5612 * sched-rgn.c (dump_rgn_dependencies_dot): New function
5613 * print-rtl.h (print_insn): Add prototype
5615 * haifa-sched.c (setup_sched_dump): Don't redirect output to stderr.
5616 * common.opt (-fsched-verbose): Set default value to 1.
5617 * invoke.texi (-fsched-verbose): Update the option's description.
5619 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
5621 * config/visium/visium.h (PRINT_OPERAND): Delete.
5622 (PRINT_OPERAND_PUNCT_VALID_P): Likewise.
5623 (PRINT_OPERAND_ADDRESS): Likewise.
5624 * config/visium/visium.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define
5626 (visium_print_operand_punct_valid_p): ...this. New function.
5627 (TARGET_PRINT_OPERAND): Define to...
5628 (print_operand): Rename to...
5629 (visium_print_operand): ...this.
5630 (TARGET_PRINT_OPERAND_ADDRESS): Define to...
5631 (visium_output_address): Rename to...
5632 (visium_print_operand_address): ...this.
5633 (print_operand_address): Delete.
5635 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
5638 * tree.h (reverse_storage_order_for_component_p) <COMPONENT_REF>:
5639 Check that the type of the first operand is an aggregate type.
5641 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
5643 * omp-low.c: Fix some OpenACC comment typos.
5644 (lower_reduction_clauses): Remove BUILT_IN_GOACC_GET_THREAD_NUM call.
5645 * omp-builtins.def (BUILT_IN_GOACC_GET_THREAD_NUM,
5646 BUILT_IN_GOACC_GET_NUM_THREADS): Delete.
5648 2015-11-09 Uros Bizjak <ubizjak@gmail.com>
5650 * config/i386/i386.md (*strmovqi_1): Fix insn enable condition.
5652 2015-11-09 Jeff Law <law@redhat.com>
5654 * tree-ssanames.c (verify_ssaname_freelists): Simplify check for
5655 being in gimple/ssa form. Remove redundant check for SSA_NAME.
5658 2015-11-09 Michael Meissner <meissner@linux.vnet.ibm.com>
5659 Peter Bergner <bergner@vnet.ibm.com>
5661 * config/rs6000/rs6000.opt (-mpower9-fusion): Add new switches for
5663 (-mpower9-vector): Likewise.
5664 (-mpower9-dform): Likewise.
5665 (-mpower9-minmax): Likewise.
5666 (-mtoc-fusion): Likewise.
5667 (-mmodulo): Likewise.
5668 (-mfloat128-hardware): Likewise.
5670 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add option
5671 mask for ISA 3.0 (power9).
5672 (POWERPC_MASKS): Add new ISA 3.0 switches.
5673 (power9 cpu): Add power9 cpu.
5675 * config/rs6000/rs6000.h (ASM_CPU_POWER9_SPEC): Add support for power9.
5676 (ASM_CPU_SPEC): Likewise.
5677 (EXTRA_SPECS): Likewise.
5679 * config/rs6000/rs6000-opts.h (enum processor_type): Add
5682 * config/rs6000/rs6000.c (power9_cost): Initial cost setup for power9.
5683 (rs6000_debug_reg_global): Add support for power9 fusion.
5684 (rs6000_setup_reg_addr_masks): Cache mode size.
5685 (rs6000_option_override_internal): Until real power9 tuning is
5686 added, use -mtune=power8 for -mcpu=power9.
5687 (rs6000_setup_reg_addr_masks): Do not allow pre-increment,
5688 pre-decrement, or pre-modify on SFmode/DFmode if we allow the use
5689 of Altivec registers.
5690 (rs6000_option_override_internal): Add support for ISA 3.0 switches.
5691 (rs6000_loop_align): Add support for power9 cpu.
5692 (rs6000_file_start): Likewise.
5693 (rs6000_adjust_cost): Likewise.
5694 (rs6000_issue_rate): Likewise.
5695 (insn_must_be_first_in_group): Likewise.
5696 (insn_must_be_last_in_group): Likewise.
5697 (force_new_group): Likewise.
5698 (rs6000_register_move_cost): Likewise.
5699 (rs6000_opt_masks): Likewise.
5701 * config/rs6000/rs6000.md (cpu attribute): Add power9.
5702 * config/rs6000/rs6000-tables.opt: Regenerate.
5704 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
5705 _ARCH_PWR9 if power9 support is available.
5707 * config/rs6000/aix61.h (ASM_CPU_SPEC): Add power9.
5708 * config/rs6000/aix53.h (ASM_CPU_SPEC): Likewise.
5710 * configure.ac: Determine if the assembler supports the ISA 3.0
5712 * config.in (HAVE_AS_POWER9): Likewise.
5713 * configure: Regenerate.
5715 * doc/invoke.texi (RS/6000 and PowerPC Options): Document ISA 3.0
5718 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5720 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate):
5721 Remove integer CONST_DOUBLE handling. It should never occur.
5723 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5726 * config/aarch64/aarch64.h (TARGET_SUPPORTS_WIDE_INT): Define to 1.
5727 * config/aarch64/aarch64.c (aarch64_print_operand, CONST_DOUBLE):
5728 Delete VOIDmode case. Assert that mode is not VOIDmode.
5729 * config/aarch64/predicates.md (const0_operand): Remove const_double
5732 2015-11-09 Martin Liska <mliska@suse.cz>
5734 * ipa-inline-analysis.c (estimate_function_body_sizes): Call
5735 body_info release function.
5736 * ipa-prop.c (ipa_release_body_info): New function.
5737 (ipa_analyze_node): Call the function.
5738 (ipa_node_params::~ipa_node_params): Release known_csts.
5739 * ipa-prop.h (ipa_release_body_info): Declare.
5741 2015-11-09 Martin Liska <mliska@suse.cz>
5743 * gcc.c (record_temp_file): Release name string.
5744 * ifcvt.c (noce_convert_multiple_sets): Use auto_vec instead of vec.
5745 * lra-lives.c (free_live_range_list): Utilize
5746 lra_live_range_pool for allocation and deallocation.
5747 (create_live_range): Likewise.
5748 (copy_live_range): Likewise.
5749 (lra_merge_live_ranges): Likewise.
5750 (remove_some_program_points_and_update_live_ranges): Likewise.
5751 (lra_create_live_ranges_1): Release point_freq_vec that can
5752 be not freed from previous iteration of the function.
5753 * tree-eh.c (lower_try_finally_switch): Use auto_vec instead of vec.
5754 * tree-sra.c (sra_deinitialize): Release all vectors in
5756 * tree-ssa-dom.c (free_dom_edge_info): Make the function extern.
5757 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
5758 Release edge_info for a removed edge.
5759 (thread_through_all_blocks): Free region vector.
5760 * tree-ssa.h (free_dom_edge_info): Declare function extern.
5762 2015-11-09 Ilya Enkovich <enkovich.gnu@gmail.com>
5764 * optabs.c (expand_vec_cond_expr): Always get sign from type.
5765 * tree.c (wide_int_to_tree): Support negative values for boolean.
5766 (build_nonstandard_boolean_type): Use signed type for booleans.
5768 2015-11-09 Richard Biener <rguenther@suse.de>
5770 PR tree-optimization/68248
5771 * tree-vect-generic.c (expand_vector_operations_1): Handle scalar rhs2.
5773 2015-11-09 Richard Biener <rguenther@suse.de>
5775 PR tree-optimization/56118
5776 * tree-vectorizer.h (vect_find_last_scalar_stmt_in_slp): Declare.
5777 * tree-vect-slp.c (vect_find_last_scalar_stmt_in_slp): Export.
5778 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences): New
5780 (vect_slp_analyze_data_ref_dependences): Instead of computing
5781 all dependences of the region DRs just analyze the code motions
5782 SLP vectorization will perform. Remove SLP instances that
5783 cannot have their store/load motions applied.
5784 (vect_analyze_data_refs): Allow DRs without a vectype
5785 in BB vectorization.
5787 2015-11-09 Julian Brown <julian@codesourcery.com>
5789 * final.c (output_asm_insn): Pass VOIDmode to output_address.
5790 (output_address): Add MODE argument. Pass to print_operand_address
5792 * targhooks.c (default_print_operand_address): Add MODE argument.
5793 * targhooks.h (default_print_operand_address): Update prototype.
5794 * output.h (output_address): Update prototype.
5795 * target.def (print_operand_address): Add MODE argument.
5796 * config/vax/vax.c (print_operand_address): Pass VOIDmode to
5798 (print_operand): Pass access mode to output_address.
5799 * config/mcore/mcore.c (mcore_print_operand_address): Add MODE
5801 (mcore_print_operand): Update calls to mcore_print_operand_address.
5802 * config/fr30/fr30.c (fr30_print_operand): Pass VOIDmode to
5804 * config/lm32/lm32.c (lm32_print_operand): Pass mode in calls to
5806 * config/tilegx/tilegx.c (output_memory_reference_mode): Remove
5808 (tilegx_print_operand): Don't set above global. Update calls to
5810 (tilegx_print_operand_address): Add MODE argument. Use instead of
5811 output_memory_reference_mode global.
5812 * config/frv/frv.c (frv_print_operand_address): Add MODE argument.
5813 (frv_print_operand): Pass mode to frv_print_operand_address calls.
5814 * config/mn10300/mn10300.c (mn10300_print_operand): Pass mode to
5816 * config/cris/cris.c (cris_print_operand_address): Add MODE argument.
5817 (cris_print_operand): Pass mode to output_address calls.
5818 * config/spu/spu.c (print_operand): Pass mode to output_address calls.
5819 * config/aarch64/aarch64.h (aarch64_print_operand)
5820 (aarch64_print_operand_address): Remove prototypes.
5821 * config/aarch64/aarch64.c (aarch64_memory_reference_mode): Delete
5823 (aarch64_print_operand): Make static. Update calls to output_address.
5824 (aarch64_print_operand_address): Add MODE argument. Use instead of
5825 aarch64_memory_reference_mode global.
5826 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define target
5828 * config/aarch64/aarch64.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
5829 Delete macro definitions.
5830 * config/pa/pa.c (pa_print_operand): Pass mode in output_address calls.
5831 * config/xtensa/xtensa.c (print_operand): Pass mode in
5832 output_address calls.
5833 * config/h8300/h8300.c (h8300_print_operand_address): Add MODE
5835 (h83000_print_operand): Update calls to h8300_print_operand_address
5837 * config/ia64/ia64.c (ia64_print_operand_address): Add MODE argument.
5838 * config/tilepro/tilepro.c (output_memory_reference_mode): Delete
5840 (tilepro_print_operand): Pass mode to output_address.
5841 (tilepro_print_operand_address): Add MODE argument. Use instead of
5842 output_memory_reference_mode.
5843 * config/nvptx/nvptx.c (output_decl_chunk, nvptx_assemble_integer)
5844 (nvptx_output_call_insn, nvptx_print_address_operand): Pass VOIDmode
5845 to output_address calls.
5846 (nvptx_print_operand_address): Add MODE argument.
5847 * config/alpha/alpha.c (print_operand): Pass mode argument in
5848 output_address calls.
5849 * config/m68k/m68k.c (print_operand): Pass mode argument in
5850 output_address call.
5851 * config/avr/avr.c (avr_print_operand_address): Add MODE argument.
5852 (avr_print_operand): Update calls to avr_print_operand_address.
5853 * config/sparc/sparc.c (sparc_print_operand_address): Add MODE
5854 argument. Update calls to output_address.
5855 (sparc_print_operand): Pass mode to output_address.
5856 * config/iq2000/iq2000.c (iq2000_print_operand_address): Add MODE
5858 (iq2000_print_operand): Pass mode in output_address calls.
5859 * config/stormy16/stormy16.c (xstormy16_print_operand_address): Add
5861 (xstormy16_print_operand): Pass mode to
5862 xstormy16_print_operand_address calls.
5863 * config/mips/mips.c (mips_print_operand): Update calls to
5865 (mips_print_operand_address): Add MODE argument.
5866 * config/epiphany/epiphany.c (epiphany_print_operand): Update calls
5868 (epiphany_print_operand_address): Add MODE argument. Add FIXME note.
5869 * config/pdp11/pdp11.c (pdp11_asm_print_operand): Update call to
5871 * config/rx/rx.c (rx_print_operand_address): Add MODE argument.
5872 (rx_print_operand): Update calls to output_address,
5873 rx_print_operand_address.
5874 * config/nds32/nds32.c (nds32_print_operand): Update calls to
5876 (nds32_print_operand_address): Add MODE argument.
5877 * config/rs6000/rs6000.c (print_operand): Pass mem mode to
5878 output_address calls.
5879 * config/c6x/c6x.c (print_address_offset): Pass mem mode to
5880 output_address call.
5881 (c6x_print_address_operand): Update calls to output_address.
5882 (c6x_print_operand_address): Pass mode to above.
5883 * config/v850/v850.c (v850_print_operand_address): Add MODE argument.
5884 (v850_print_operand): Pass mode to v850_print_operand_address,
5886 * config/mmix/mmix.c (mmix_print_operand_address): Add MODE argument.
5887 (mmix_print_operand): Pass mode in output_address calls.
5888 * config/sh/sh.c (sh_print_operand_address): Add MODE argument.
5889 (sh_print_operand): Pass mem mode to output_address,
5890 sh_print_operand_address.
5891 * config/cr16/cr16.c (cr16_print_operand_address): Add MODE argument.
5892 (cr16_print_operand): Pass mode to output_address,
5893 cr16_print_operand_address.
5894 * config/bfin/bfin.c (print_address_operand): Pass VOIDmode to
5896 * config/microblaze/microblaze.c (print_operand): Pass mode to
5898 * config/nios2/nios2.c (nios2_print_operand): Pass VOIDmode to
5900 (nios2_print_operand_address): Add MODE argument. Update call to
5901 nios2_print_operand_address.
5902 * config/s390/s390.c (print_operand): Pass mode to output_address.
5903 * config/m32c/m32c.c (m32c_print_operand_address): Add MODE argument.
5904 * config/arc/arc.c (arc_print_operand): Pass VOIDmode to
5906 * config/arm/arm.c (arm_print_operand_address): Add MODE argument.
5907 Use instead of output_memory_reference_mode.
5908 (output_memory_reference_mode): Delete global.
5909 (arm_print_operand): Pass mem mode to output_address.
5910 * config/m32r/m32r.c (m32r_print_operand_address): Add MODE argument.
5911 (m32r_print_operand): Pass mode to output_address.
5912 * config/msp430/msp430.c (msp430_print_operand_addr): Add MODE
5914 (msp430_print_operand): Pass mode to msp430_print_operand_addr.
5915 * config/i386/i386.c (ix86_print_operand): Pass mode to
5916 output_address calls.
5917 (ix86_print_operand_address): Add MODE argument.
5919 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
5922 * tree-core.h (REF_REVERSE_STORAGE_ORDER): Move around.
5923 * tree.h (REF_REVERSE_STORAGE_ORDER): Change to default_def_flag.
5924 * tree-streamer-in.c (unpack_ts_base_value_fields): Adjust.
5925 * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
5927 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5929 PR rtl-optimization/67749
5930 * ifcvt.c (noce_try_cmove_arith): Do not emit move in IF-ELSE
5931 case before emitting the two blocks. Instead modify the register
5932 in the corresponding final insn of the basic block.
5934 2015-11-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5936 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Allow for differences in
5939 Define HAVE_INITFINI_ARRAY_SUPPORT as 0/1.
5941 * config/sol2.h (SUPPORTS_INIT_PRIORITY): Define to
5942 HAVE_INITFINI_ARRAY_SUPPORT.
5943 * config/initfini-array.h: Check HAVE_INITFINI_ARRAY_SUPPORT value.
5945 * configure.ac (gcc_cv_as_sparc_nobits): Remove.
5946 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section):
5947 Don't check HAVE_AS_SPARC_NOBITS.
5948 Heed SECTION_NOTYPE.
5950 * configure: Regenerate.
5951 * config.in: Regenerate.
5953 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
5956 * fold-const.c (fold_truth_andor_1): Initialize new variables to 0.
5958 2015-11-09 Richard Henderson <rth@redhat.com>
5960 * config/i386/i386-c.c (ix86_target_macros): Define __SEG_FS,
5961 __SEG_GS, __SEG_TLS.
5962 (ix86_register_pragmas): Register address spaces __seg_fs,
5963 __seg_gs, __seg_tls.
5964 * config/i386/i386-protos.h (enum ix86_address_seg): Remove.
5965 (ADDR_SPACE_SEG_FS, ADDR_SPACE_SEG_GS, ADDR_SPACE_SEG_TLS): New.
5966 (struct ix86_address): Use addr_space_t instead of ix86_address_seg.
5967 * config/i386/i386.c (ix86_decompose_address): Likewise.
5968 (ix86_legitimate_address_p): Likewise.
5969 (memory_address_length): Likewise. Check mem address space too.
5970 (ix86_print_operand): Use ix86_print_operand_address_as.
5971 (ix86_print_operand_address_as): Rename from
5972 ix86_print_operand_address, add new addr_space_t parameter.
5973 Validate that either the parameter or the ix86_address segment
5974 is default address space. Handle ADDR_SPACE_SEG_TLS.
5975 (ix86_print_operand_address): New.
5976 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): New.
5977 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): New.
5978 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): New.
5979 (ix86_addr_space_zero_address_valid): New.
5980 (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
5981 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): Use addr_space_t constants.
5982 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Likewise.
5983 * config/i386/predicates.md (address_no_seg_operand): Likewise.
5984 (vsib_address_operand): Likewise.
5985 (address_mpx_no_base_operand): Likewise.
5986 (address_mpx_no_index_operand): Likewise.
5987 * doc/extend.texi (x86 Named Address Spaces): New section.
5989 * config/i386/i386.c (ix86_check_no_addr_space): New.
5990 (decide_alg): Add have_as parameter.
5991 (alg_usable_p): Likewise; disable rep algorithms if set.
5992 (ix86_expand_set_or_movmem): Notice if either MEM has a
5993 non-default address space.
5994 (ix86_expand_strlen): Likewise.
5995 * config/i386/i386.md (strmov, strset): Likewise.
5996 (*strmovdi_rex_1): Use ix86_check_no_addr_space.
5997 (*strmovsi_1, *strmovqi_1, *rep_movdi_rex64, *rep_movsi, *rep_movqi,
5998 *strsetdi_rex_1, *strsetsi_1, *strsethi_1, *strsetqi_1,
5999 *rep_stosdi_rex64, *rep_stossi, *rep_stosqi, *cmpstrnqi_nz_1,
6000 *cmpstrnqi_1, *strlenqi_1): Likewise.
6002 * config/i386/i386.md (*movabs<mode>_1): Print the full memory rtx.
6003 (*movabs<mode>_2): Likewise.
6005 * dwarf2out.c (modified_type_die): Pass the address space number
6006 through TARGET_ADDR_SPACE_DEBUG to produce the dwarf address class.
6007 * target.def (TARGET_ADDR_SPACE_DEBUG): New.
6008 * targhooks.c (default_addr_space_debug): New.
6009 * targhooks.h (default_addr_space_debug): Declare.
6010 * doc/tm.texi.in (TARGET_ADDR_SPACE_DEBUG): Mark it.
6011 * doc/tm.texi: Rebuild.
6013 * gimple.c (check_loadstore): Return false when 0 is a valid address.
6014 * fold-const.c (const_unop) [ADDR_SPACE_CONVERT_EXPR]: Do not fold
6015 null when 0 is valid in the source address space.
6016 * target.def (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
6017 * targhooks.c (default_addr_space_zero_address_valid): New.
6018 * targhooks.h (default_addr_space_zero_address_valid): Declare.
6019 * doc/tm.texi.in (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): Mark it.
6020 * doc/tm.texi: Rebuild.
6022 * cselib.c (add_mem_for_addr): Compare address spaces when
6024 (cselib_lookup_mem): Likewise.
6025 * fold-const.c (operand_equal_p): Check address spaces of
6026 pointer types before checking integer constants.
6029 * tree-ssa-address.c (create_mem_ref_raw): Use a pointer of
6030 the correct type for the base.
6032 2015-11-09 Jeff Law <law@redhat.com>
6034 * tree-into-ssa.c (names_to_release): No longer static.
6035 * tree-into-ssa.h (names_to_release): Declare.
6036 * tree-ssanames.c (verify_ssaname_freelists): New debug function.
6037 (release_free_names_and_compact_live_names): New function extracted
6038 from pass_release_ssa_names::execute.
6039 (pass_release_ssa_names::execute): Use it.
6041 2015-11-09 Alan Modra <amodra@gmail.com>
6043 * gensupport.c (add_mnemonic_string): Make len param a size_t.
6044 (gen_mnemonic_setattr): Make "size" var a size_t. Use
6045 obstack_blank_fast to shrink obstack. Cast obstack_next_free
6048 2015-11-09 Segher Boessenkool <segher@kernel.crashing.org>
6050 PR rtl-optimization/68182
6051 * bb-reorder.c (reorder_basic_blocks_simple): Treat a conditional
6052 branch with only one successor just like unconditional branches.
6054 2015-11-08 Jeff Law <law@redhat.com>
6056 * tree-ssa-threadupdate.c (register_jump_thraed): Assert that a
6057 non-FSM path has no edges marked with EDGE_DFS_BACK.
6058 (ssa_redirect_edges): No longer call mark_loop_for_removal.
6059 (thread_single_edge, def_split_header_continue_p): Remove.
6060 (bb_ends_with_multiway_branch): Likewise.
6061 (thread_through_loop_header): Remove cases of threading from
6062 latch through the header. Simplify knowing we won't thread
6064 (thread_through_all_blocks): Simplify knowing that only the FSM
6065 threader needs to handle backedges.
6067 2015-11-08 Eric Botcazou <ebotcazou@adacore.com>
6069 * doc/extend.texi (type attributes): Document scalar_storage_order.
6070 (Structure-Packing Pragmas): Rename into...
6071 (Structure-Layout Pragmas): ...this. Document scalar_storage_order.
6072 * doc/invoke.texi (C Dialect Options): Document -fsso-struct
6073 (Warnings): Document -Wno-scalar-storage-order.
6074 * flag-types.h (enum scalar_storage_order_kind): New enumeration.
6075 * calls.c (store_unaligned_arguments_into_pseudos): Adjust calls to
6076 extract_bit_field and store_bit_field.
6077 (initialize_argument_information): Adjust call to store_expr.
6078 (load_register_parameters): Adjust call to extract_bit_field.
6079 * expmed.c (check_reverse_storage_order_support): New function.
6080 (check_reverse_float_storage_order_support): Likewise.
6081 (flip_storage_order): Likewise.
6082 (store_bit_field_1): Add REVERSE parameter. Flip the storage order
6083 of the value if it is true. Pass REVERSE to recursive call after
6084 adjusting the target offset.
6085 Do not use extraction or movstrict instruction if REVERSE is true.
6086 Pass REVERSE to store_fixed_bit_field.
6087 (store_bit_field): Add REVERSE parameter and pass to it to above.
6088 (store_fixed_bit_field): Add REVERSE parameter and pass to it to
6089 store_split_bit_field and store_fixed_bit_field_1.
6090 (store_fixed_bit_field_1): Add REVERSE parameter. Flip the storage
6091 order of the value if it is true and adjust the target offset.
6092 (store_split_bit_field): Add REVERSE parameter and pass it to
6093 store_fixed_bit_field. Adjust the target offset if it is true.
6094 (extract_bit_field_1): Add REVERSE parameter. Flip the storage order
6095 of the value if it is true. Pass REVERSE to recursive call after
6096 adjusting the target offset.
6097 Do not use extraction or subreg instruction if REVERSE is true.
6098 Pass REVERSE to extract_fixed_bit_field.
6099 (extract_bit_field): Add REVERSE parameter and pass to it to above.
6100 (extract_fixed_bit_field): Add REVERSE parameter and pass to it to
6101 extract_split_bit_field and extract_fixed_bit_field_1.
6102 (extract_fixed_bit_field_1): Add REVERSE parameter. Flip the storage
6103 order of the value if it is true and adjust the target offset.
6104 (extract_split_bit_field): Add REVERSE parameter and pass it to
6105 extract_fixed_bit_field. Adjust the target offset if it is true.
6106 * expmed.h (flip_storage_order): Declare.
6107 (store_bit_field): Adjust prototype.
6108 (extract_bit_field): Likewise.
6109 * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
6110 (emit_group_store): Adjust call to store_bit_field.
6111 (copy_blkmode_from_reg): Likewise.
6112 (copy_blkmode_to_reg): Likewise.
6113 (write_complex_part): Likewise.
6114 (read_complex_part): Likewise.
6115 (optimize_bitfield_assignment_op): Add REVERSE parameter. Assert
6116 that it isn't true if the target is a register.
6117 <PLUS_EXPR>: If it is, do not optimize unless bitsize is equal to 1,
6118 and flip the storage order of the value.
6119 <BIT_IOR_EXPR>: Flip the storage order of the value.
6120 (get_bit_range): Adjust call to get_inner_reference.
6121 (expand_assignment): Adjust calls to get_inner_reference, store_expr,
6122 optimize_bitfield_assignment_op and store_field. Handle MEM_EXPRs
6123 with reverse storage order.
6124 (store_expr_with_bounds): Add REVERSE parameter and pass it to
6125 recursive calls and call to store_bit_field. Force the value into a
6126 register if it is true and then flip the storage order of the value.
6127 (store_expr): Add REVERSE parameter and pass it to above.
6128 (categorize_ctor_elements_1): Adjust call to
6129 initializer_constant_valid_p.
6130 (store_constructor_field): Add REVERSE parameter and pass it to
6131 recursive calls and call to store_field.
6132 (store_constructor): Add REVERSE parameter and pass it to calls to
6133 store_constructor_field and store_expr. Set it to true for an
6134 aggregate type with TYPE_REVERSE_STORAGE_ORDER.
6135 (store_field): Add REVERSE parameter and pass it to recursive calls
6136 and calls to store_expr and store_bit_field. Temporarily flip the
6137 storage order of the value with record type and integral mode and
6138 adjust the shift if it is true.
6139 (get_inner_reference): Add PREVERSEP parameter and set it to true
6140 upon encoutering a reference with reverse storage order.
6141 (expand_expr_addr_expr_1): Adjust call to get_inner_reference.
6142 (expand_constructor): Adjust call to store_constructor.
6143 (expand_expr_real_2) <CASE_CONVERT>: Pass TYPE_REVERSE_STORAGE_ORDER
6144 of the union type to store_expr in the MEM case and assert that it
6145 isn't set in the REG case. Adjust call to store_field.
6146 (expand_expr_real_1) <MEM_REF>: Handle reverse storage order.
6147 <normal_inner_ref>: Add REVERSEP variable and adjust calls to
6148 get_inner_reference and extract_bit_field. Temporarily flip the
6149 storage order of the value with record type and integral mode and
6150 adjust the shift if it is true. Flip the storage order of the value
6151 at the end if it is true.
6152 <VIEW_CONVERT_EXPR>: Add REVERSEP variable and adjust call to
6153 get_inner_reference. Do not fetch an inner reference if it is true.
6154 * expr.h (store_expr_with_bounds): Ajust prototype.
6155 (store_expr): Likewise.
6156 * fold-const.c (make_bit_field_ref): Add REVERSEP parameter and set
6157 REF_REVERSE_STORAGE_ORDER on the reference according to it.
6158 (optimize_bit_field_compare): Deal with reverse storage order.
6159 Adjust calls to get_inner_reference and make_bit_field_ref.
6160 (decode_field_reference): Add PREVERSEP parameter and adjust call to
6161 get_inner_reference.
6162 (fold_truth_andor_1): Deal with reverse storage order. Adjust calls
6163 to decode_field_reference and make_bit_field_ref.
6164 (fold_unary_loc) <CASE_CONVERT>: Adjust call to get_inner_reference.
6165 <VIEW_CONVERT_EXPR>: Propagate the REF_REVERSE_STORAGE_ORDER flag.
6166 (fold_comparison): Adjust call to get_inner_reference.
6167 (split_address_to_core_and_offset): Adjust call to
6168 get_inner_reference.
6169 * gimple-expr.c (useless_type_conversion_p): Return false for array
6170 types with different TYPE_REVERSE_STORAGE_ORDER flag.
6171 * gimplify.c (gimplify_expr) <MEM_REF>: Propagate the
6172 REF_REVERSE_STORAGE_ORDER flag.
6173 * lto-streamer-out.c (hash_tree): Deal with TYPE_REVERSE_STORAGE_ORDER.
6174 * output.h (assemble_real): Adjust prototype.
6175 * print-tree.c (print_node): Convey TYPE_REVERSE_STORAGE_ORDER.
6176 * stor-layout.c (finish_record_layout): Propagate the
6177 TYPE_REVERSE_STORAGE_ORDER flag to the variants.
6178 * tree-core.h (TYPE_REVERSE_STORAGE_ORDER): Document.
6179 (TYPE_SATURATING): Adjust.
6180 (REF_REVERSE_STORAGE_ORDER): Document.
6181 * tree-dfa.c (get_ref_base_and_extent): Add PREVERSE parameter and
6182 set it to true upon encoutering a reference with reverse storage order.
6183 * tree-dfa.h (get_ref_base_and_extent): Adjust prototype.
6184 * tree-inline.c (remap_gimple_op_r): Propagate the
6185 REF_REVERSE_STORAGE_ORDER flag.
6186 (copy_tree_body_r): Likewise.
6187 * tree-outof-ssa.c (insert_value_copy_on_edge): Adjust call to
6189 * tree-streamer-in.c (unpack_ts_base_value_fields): Deal with
6190 TYPE_REVERSE_STORAGE_ORDER and REF_REVERSE_STORAGE_ORDER.
6191 * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
6192 * tree.c (stabilize_reference) <BIT_FIELD_REF>: Propagate the
6193 REF_REVERSE_STORAGE_ORDER flag.
6194 (verify_type_variant): Deal with TYPE_REVERSE_STORAGE_ORDER.
6195 (gimple_canonical_types_compatible_p): Likewise.
6196 * tree.h (TYPE_REVERSE_STORAGE_ORDER): New flag.
6197 (TYPE_SATURATING): Adjust.
6198 (REF_REVERSE_STORAGE_ORDER): New flag.
6199 (reverse_storage_order_for_component_p): New inline predicate.
6200 (storage_order_barrier_p): Likewise.
6201 (get_inner_reference): Adjust prototype.
6202 * varasm.c: Include expmed.h.
6203 (assemble_variable_contents): Adjust call to output_constant.
6204 (assemble_real): Add REVERSE parameter. Flip the storage
6205 order of the value if REVERSE is true.
6206 (compare_constant) <CONSTRUCTOR>: Compare TYPE_REVERSE_STORAGE_ORDER.
6207 (assemble_constant_contents): Adjust call to output_constant.
6208 (output_constant_pool_2): Adjust call to assemble_real.
6209 (initializer_constant_valid_p_1) <CONSTRUCTOR>: Deal with
6210 TYPE_REVERSE_STORAGE_ORDER.
6211 (initializer_constant_valid_p): Add REVERSE parameter.
6212 (output_constant): Add REVERSE parameter.
6213 <INTEGER_TYPE>: Flip the storage order of the value if REVERSE is true.
6214 <REAL_TYPE>: Adjust call to assemble_real.
6215 <COMPLEX_TYPE>: Pass it to recursive calls.
6216 <ARRAY_TYPE>: Likewise. Adjust call to output_constructor.
6217 <RECORD_TYPE>: Likewise. Adjust call to output_constructor.
6218 (struct oc_local_state): Add REVERSE field.
6219 (output_constructor_array_range): Adjust calls to output_constant.
6220 (output_constructor_regular_field): Likewise.
6221 (output_constructor_bitfield): Adjust call to output_constructor.
6222 Flip the storage order of the value if REVERSE is true.
6223 (output_constructor): Add REVERSE parameter. Set it to true for an
6224 aggregate type with TYPE_REVERSE_STORAGE_ORDER. Adjust call to
6225 output_constructor_bitfield.
6226 * varasm.h (initializer_constant_valid_p): Default REVERSE to false.
6227 * asan.c (instrument_derefs): Adjust call to get_inner_reference.
6228 * builtins.c (get_object_alignment_2): Likewise.
6229 * cfgexpand.c (expand_debug_expr): Adjust call to get_inner_reference
6230 and get_ref_base_and_extent.
6231 * dbxout.c (dbxout_expand_expr): Likewise.
6232 * dwarf2out.c (add_var_loc_to_decl): Likewise.
6233 (loc_list_for_address_of_addr_expr_of_indirect_ref): Likewise.
6234 (loc_list_from_tree): Likewise.
6235 (fortran_common): Likewise.
6236 * gimple-fold.c (gimple_fold_builtin_memory_op): Adjust calls to
6237 get_ref_base_and_extent.
6238 (get_base_constructor): Likewise.
6239 (fold_const_aggregate_ref_1): Likewise.
6240 * gimple-laddress.c (pass_laddress::execute): Adjust call to
6241 get_inner_reference.
6242 * gimple-ssa-strength-reduction.c (slsr_process_ref): Adjust call to
6243 get_inner_reference and bail out on reverse storage order.
6244 * ifcvt.c (noce_emit_move_insn): Adjust calls to store_bit_field.
6245 * ipa-cp.c (ipa_get_jf_ancestor_result): Adjust call to
6246 build_ref_for_offset.
6247 * ipa-polymorphic-call.c (set_by_invariant): Adjust call to
6248 get_ref_base_and_extent.
6249 (ipa_polymorphic_call_context): Likewise.
6250 (extr_type_from_vtbl_ptr_store): Likewise.
6251 (check_stmt_for_type_change): Likewise.
6252 (get_dynamic_type): Likewise.
6253 * ipa-prop.c (ipa_load_from_parm_agg_1): Adjust call to
6254 get_ref_base_and_extent.
6255 (compute_complex_assign_jump_func): Likewise.
6256 (get_ancestor_addr_info): Likewise.
6257 (compute_known_type_jump_func): Likewise.
6258 (determine_known_aggregate_parts): Likewise.
6259 (ipa_get_adjustment_candidate): Likewise.
6260 (ipa_modify_call_arguments): Set REF_REVERSE_STORAGE_ORDER on MEM_REF.
6261 * ipa-prop.h (ipa_parm_adjustment): Add REVERSE field.
6262 (build_ref_for_offset): Adjust prototype.
6263 * simplify-rtx.c (delegitimize_mem_from_attrs): Adjust call to
6264 get_inner_reference.
6265 * tree-affine.c (tree_to_aff_combination): Adjust call to
6266 get_inner_reference.
6267 (get_inner_reference_aff): Likewise.
6268 * tree-data-ref.c (split_constant_offset_1): Likewise.
6269 (dr_analyze_innermost): Likewise. Bail out if reverse storage order.
6270 * tree-scalar-evolution.c (interpret_rhs_expr): Adjust call to
6271 get_inner_reference.
6272 * tree-sra.c (struct access): Add REVERSE and move WRITE around.
6273 (dump_access): Print new fields.
6274 (create_access): Adjust call to get_ref_base_and_extent and set the
6275 REVERSE flag according to the result.
6276 (completely_scalarize_record): Set the REVERSE flag.
6277 (scalarize_elem): Add REVERSE parameter.
6278 (build_access_from_expr_1): Preserve storage order barriers.
6279 (build_accesses_from_assign): Likewise.
6280 (build_ref_for_offset): Add REVERSE parameter and set the
6281 REF_REVERSE_STORAGE_ORDER flag accordingly.
6282 (build_ref_for_model): Adjust call to build_ref_for_offset and clear
6283 the REF_REVERSE_STORAGE_ORDER flag if there are components.
6284 (analyze_access_subtree): Likewise.
6285 (create_artificial_child_access): Set the REVERSE flag.
6286 (get_access_for_expr): Adjust call to get_ref_base_and_extent.
6287 (turn_representatives_into_adjustments): Propagate REVERSE flag.
6288 (ipa_sra_check_caller): Adjust call to get_inner_reference.
6289 * tree-ssa-alias.c (ao_ref_base): Adjust call to
6290 get_ref_base_and_extent.
6291 (aliasing_component_refs_p): Likewise.
6292 (stmt_kills_ref_p_1): Likewise.
6293 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
6294 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p) <MEM_REF>: New.
6295 Return true if reverse storage order.
6296 <BIT_FIELD_REF>: Likewise.
6297 <COMPONENT_REF>: Likewise.
6298 <ARRAY_REF>: Likewise.
6299 <ARRAY_RANGE_REF>: Likewise.
6300 (split_address_cost): Likewise. Bail out if reverse storage order.
6301 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Adjust call to
6302 get_inner_reference. Bail out if reverse storage order.
6303 (bswap_replace): Adjust call to get_inner_reference.
6304 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <MEM_REF>: Set
6305 the REF_REVERSE_STORAGE_ORDER flag.
6306 <BIT_FIELD_REF>: Likewise.
6307 * tree-ssa-sccvn.c (vn_reference_eq): Return false on storage order
6309 (copy_reference_ops_from_ref) <MEM_REF>: Set REVERSE field according
6310 to the REF_REVERSE_STORAGE_ORDER flag.
6311 <BIT_FIELD_REF>: Likewise.
6312 <VIEW_CONVERT_EXPR>: Set it for storage order barriers.
6313 (contains_storage_order_barrier_p): New predicate.
6314 (vn_reference_lookup_3): Adjust calls to get_ref_base_and_extent.
6315 Punt on storage order barriers if necessary.
6316 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add REVERSE.
6317 * tree-ssa-structalias.c (get_constraint_for_component_ref): Adjust
6318 call to get_ref_base_and_extent.
6319 (do_structure_copy): Likewise.
6320 * tree-vect-data-refs.c (vect_check_gather): Adjust call to
6321 get_inner_reference.
6322 (vect_analyze_data_refs): Likewise. Bail out if reverse storage order.
6323 * tsan.c (instrument_expr): Adjust call to get_inner_reference.
6324 * ubsan.c (instrument_bool_enum_load): Likewise.
6325 (instrument_object_size): Likewise.
6326 * var-tracking.c (track_expr_p): Adjust call to
6327 get_ref_base_and_extent.
6328 * config/mips/mips.c (r10k_safe_mem_expr_p): Adjust call to
6329 get_inner_reference.
6330 * config/s390/s390.c (s390_expand_atomic): Adjust call to
6332 * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust call to
6334 * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Likewise.
6336 2015-11-07 Eric Botcazou <ebotcazou@adacore.com>
6338 * config/sparc/sparc.opt (mfix-at697f): Add final period.
6340 2015-11-07 Segher Boessenkool <segher@kernel.crashing.org>
6342 PR rtl-optimization/67864
6343 * common/config/i386/i386-common.c (ix86_option_optimization_table)
6344 <OPT_freorder_blocks_algorithm_>: Use REORDER_BLOCKS_ALGORITHM_STC
6347 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
6349 * trans-mem.c (is_tm_pure_call): Use gimple_call_flags for
6352 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
6354 * builtins.def: #undef DEF_BUILTIN and DEF_BUILTIN_CHKP
6355 * builtins.c, genmatch.c, tree-core.h: Don't undef them here.
6357 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
6359 * internal-fn.def: #undef DEF_INTERNAL_FN at the end.
6360 * internal-fn.c: Don't undef it here.
6361 * tree-core.h: Likewise.
6363 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
6365 * builtins.c (fold_builtin_nan): Delete.
6366 (fold_builtin_memcmp): Remove case where both arguments are constant.
6367 (fold_builtin_strcmp, fold_builtin_strncmp): Likewise.
6368 (fold_builtin_strspn, fold_builtin_strcspn): Likewise.
6369 (fold_builtin_1): Remove BUILT_IN_NAN* handling.
6370 * fold-const-call.c: Include fold-const.h.
6371 (host_size_t_cst_p): New function.
6372 (build_cmp_result, fold_const_builtin_nan): Likewise.
6373 (fold_const_call_1): New function, split out from...
6374 (fold_const_call): ...here (for all three interfaces). Handle
6375 constant nan, nans, strlen, strcmp, strncmp, strspn and strcspn.
6377 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
6379 * builtins.c (fold_builtin_bitop, fold_builtin_bswap): Delete.
6380 (fold_builtin_1): Don't call them.
6381 * fold-const-call.c: Include tm.h.
6382 (fold_const_call_ss): New variant for integer-to-integer folds.
6383 (fold_const_call): Call it.
6385 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
6387 * builtins.c (fold_builtin_classify): Move constant cases to...
6388 * fold-const-call.c (fold_const_call_ss): ...here.
6390 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
6392 * builtins.h (c_getstr): Move to...
6393 * fold-const.h (c_getstr): ...here.
6394 * builtins.c (c_getstr): Move to...
6395 * fold-const.c (c_getstr): ...here.
6397 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
6399 * builtins.def (BUILTIN_RINT, BUILTIN_RINTF, BUILTIN_RINTL): Use
6400 ATTR_MATHFN_FPROUNDING rather than ATTR_MATHFN_FPROUNDING_ERRNO.
6402 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
6404 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Try to update
6405 the dominance info; free it if we can't.
6406 (pass_call_cdce::execute): Don't free the dominance info here.
6408 2015-11-06 Jeff Law <law@redhat.com>
6410 * tree-ssa-threadedge.c (dummy_simplify): Remove.
6411 (thread_around_empty_blocks): Remove backedge_seen_p argument.
6412 If we thread to a backedge, then return false. Update recursive
6413 call to eliminate backedge_seen_p argument.
6414 (thread_through_normal_block): Remove backedge_seen_p argument.
6415 Remove backedge_seen_p argument from calls to
6416 thread_around_empty_blocks. Remove checks on backedge_seen_p.
6417 If we thread to a backedge, then return 0.
6418 (thread_across_edge): Remove bookkeeping for backedge_seen. Don't
6419 pass it to thread_through_normal_block or thread_through_empty_blocks.
6420 For joiner handling, if we see a backedge, do not try normal
6423 2015-11-06 Abderrazek Zaafrani <a.zaafrani@samsung.com>
6425 * graphite-optimize-isl.c (optimize_isl): Call isl_union_map_is_equal.
6426 * graphite-poly.c (new_scop): Initialize original_schedule.
6427 (free_scop): Free original_schedule.
6428 * graphite-poly.h (struct scop): Add field original_schedule.
6429 * graphite-sese-to-poly.c (build_scop_original_schedule): New.
6430 (build_poly_scop): Call build_scop_original_schedule.
6432 2015-11-06 Abderrazek Zaafrani <a.zaafrani@samsung.com>
6434 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
6435 (build_pbb_minimal_scattering_polyhedrons): New.
6436 (build_scop_scattering): Remove.
6437 (build_scop_minimal_scattering): New.
6438 (build_scop_scattering): Call build_pbb_minimal_scattering_polyhedrons.
6439 (build_poly_scop): Call build_scop_minimal_scattering.
6441 2015-11-06 Jeff Law <law@redhat.com>
6443 * cfg-flags.def (IGNORE): New edge flag.
6444 * tree-vrp.c (identify_jump_threads): Mark and clear edges
6445 scheduled for removal with EDGE_IGNORE around call into
6446 jump threader. Do no thread across edges with EDGE_IGNORE,
6447 but do allow threading across those with EDGE_DFS_BACK.
6449 2015-11-06 David Wohlferd <dw@LimeGreenSocks.com>
6451 * doc/md.texi (multi-alternative constraints): Don't document
6452 alternatives inherently tied to reload for the user documentation.
6454 2015-11-06 Michael Collison <michael.collison@linaro.org>
6455 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6458 2015-08-01 Michael Collison <michael.collison@linaro.org
6459 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6461 * config/arm/arm.md (*arm_smin_cmp): New pattern.
6462 (*arm_umin_cmp): Likewise.
6464 2015-11-06 Jakub Jelinek <jakub@redhat.com>
6466 * gimplify.c (gimplify_omp_ordered): Fix up diagnostics wording.
6467 * omp-low.c (check_omp_nesting_restrictions): Update for the
6468 various new OpenMP 4.5 nesting restrictions, clarified
6469 nesting glossary, closely nested region relationship clarified
6470 to mean explicit or implicit parallel regions (target/teams),
6471 use %</%> or %qs where appropriate.
6473 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
6474 Sebastian Pop <s.pop@samsung.com>
6476 * graphite-scop-detection.c (loop_is_valid_scop): Call
6477 optimize_loop_nest_for_speed_p.
6479 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
6480 Sebastian Pop <s.pop@samsung.com>
6482 * graphite-optimize-isl.c (optimize_isl): Call
6483 isl_options_set_schedule_maximize_band_depth.
6485 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
6486 Sebastian Pop <s.pop@samsung.com>
6488 * graphite-scop-detection.c (scop_detection::merge_sese): Entry
6489 and exit edges should not be a part of irreducible loop.
6490 (scop_detection::can_represent_loop_1): Loops should not be
6492 (scop_detection::harmful_stmt_in_region): All the basic block
6493 should belong to reducible loops.
6495 2015-11-06 Christophe Lyon <christophe.lyon@linaro.org>
6497 * config/aarch64/aarch64-simd-builtins.def: Update builtins
6498 tables: add tbl3v16qi, qtbl[34]*, tbx4v16qi, qtbx[34]*.
6499 * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): Rename to...
6500 (aarch64_tbl3<mode>) ... this, which supports v16qi too.
6501 (aarch64_tbx4v8qi): Rename to...
6502 aarch64_tbx4<mode>): ... this.
6503 (aarch64_qtbl3<mode>): New pattern.
6504 (aarch64_qtbx3<mode>): New pattern.
6505 (aarch64_qtbl4<mode>): New pattern.
6506 (aarch64_qtbx4<mode>): New pattern.
6507 * config/aarch64/arm_neon.h (vqtbl2_s8, vqtbl2_u8, vqtbl2_p8)
6508 (vqtbl2q_s8, vqtbl2q_u8, vqtbl2q_p8, vqtbl3_s8, vqtbl3_u8)
6509 (vqtbl3_p8, vqtbl3q_s8, vqtbl3q_u8, vqtbl3q_p8, vqtbl4_s8)
6510 (vqtbl4_u8, vqtbl4_p8, vqtbl4q_s8, vqtbl4q_u8, vqtbl4q_p8)
6511 (vqtbx2_s8, vqtbx2_u8, vqtbx2_p8, vqtbx2q_s8, vqtbx2q_u8)
6512 (vqtbx2q_p8, vqtbx3_s8, vqtbx3_u8, vqtbx3_p8, vqtbx3q_s8)
6513 (vqtbx3q_u8, vqtbx3q_p8, vqtbx4_s8, vqtbx4_u8, vqtbx4_p8)
6514 (vqtbx4q_s8, vqtbx4q_u8, vqtbx4q_p8): Rewrite using builtin
6517 2015-11-06 Mike Stump <mikestump@comcast.net>
6520 * dwarf2out.c (get_full_len): Return a value based upon the actual
6521 precision needed for the value.
6522 (add_const_value_attribute): Use a maximal wide-int for
6523 CONST_WIDE_INTs, not VOIDmode.
6524 (output_die): Don't ever output NULL with printf.
6526 * rtl.h (get_precision of rtx_mode_t): Ensure we never process
6527 BLKmode nor VOIDmode values.
6529 2015-11-06 David Malcolm <dmalcolm@redhat.com>
6531 * diagnostic-color.c (color_dict): Eliminate "caret"; add "range1"
6533 (parse_gcc_colors): Update comment to describe default GCC_COLORS.
6534 * diagnostic-core.h (warning_at_rich_loc): New declaration.
6535 (error_at_rich_loc): New declaration.
6536 (permerror_at_rich_loc): New declaration.
6537 (inform_at_rich_loc): New declaration.
6538 * diagnostic-show-locus.c (adjust_line): Delete.
6539 (struct point_state): New struct.
6540 (class colorizer): New class.
6541 (class layout_point): New class.
6542 (class layout_range): New class.
6543 (struct line_bounds): New.
6544 (class layout): New class.
6545 (colorizer::colorizer): New ctor.
6546 (colorizer::~colorizer): New dtor.
6547 (layout::layout): New ctor.
6548 (layout::print_source_line): New method.
6549 (layout::print_annotation_line): New method.
6550 (layout::get_state_at_point): New method.
6551 (layout::get_x_bound_for_row): New method.
6552 (diagnostic_show_locus): Reimplement in terms of class layout.
6553 (diagnostic_print_caret_line): Delete.
6554 * diagnostic.c (diagnostic_initialize): Replace
6555 MAX_LOCATIONS_PER_MESSAGE with rich_location::MAX_RANGES.
6556 (diagnostic_set_info_translated): Convert param from location_t
6557 to rich_location *. Eliminate calls to set_location on the
6558 message in favor of storing the rich_location ptr there.
6559 (diagnostic_set_info): Convert param from location_t to
6561 (diagnostic_build_prefix): Break out array into...
6562 (diagnostic_kind_color): New variable.
6563 (diagnostic_get_color_for_kind): New function.
6564 (diagnostic_report_diagnostic): Colorize the option_text
6565 using the color for the severity.
6566 (diagnostic_append_note): Update for change in signature of
6567 diagnostic_set_info.
6568 (diagnostic_append_note_at_rich_loc): New function.
6569 (emit_diagnostic): Update for change in signature of
6570 diagnostic_set_info.
6572 (inform_at_rich_loc): New function.
6573 (inform_n): Update for change in signature of diagnostic_set_info.
6574 (warning): Likewise.
6575 (warning_at): Likewise.
6576 (warning_at_rich_loc): New function.
6577 (warning_n): Update for change in signature of diagnostic_set_info.
6578 (pedwarn): Likewise.
6579 (permerror): Likewise.
6580 (permerror_at_rich_loc): New function.
6581 (error): Update for change in signature of diagnostic_set_info.
6582 (error_n): Likewise.
6583 (error_at): Likewise.
6584 (error_at_rich_loc): New function.
6585 (sorry): Update for change in signature of diagnostic_set_info.
6586 (fatal_error): Likewise.
6587 (internal_error): Likewise.
6588 (internal_error_no_backtrace): Likewise.
6589 (source_range::debug): New function.
6590 * diagnostic.h (struct diagnostic_info): Eliminate field
6591 "override_column". Add field "richloc".
6592 (struct diagnostic_context): Add field "colorize_source_p".
6593 (diagnostic_override_column): Delete.
6594 (diagnostic_set_info): Convert param from location_t to
6596 (diagnostic_set_info_translated): Likewise.
6597 (diagnostic_append_note_at_rich_loc): New function.
6598 (diagnostic_num_locations): New function.
6599 (diagnostic_expand_location): Get the location from the
6601 (diagnostic_print_caret_line): Delete.
6602 (diagnostic_get_color_for_kind): New declaration.
6603 * genmatch.c (linemap_client_expand_location_to_spelling_point): New.
6604 (error_cb): Update for change in signature of "error" callback.
6605 (fatal_at): Likewise.
6606 (warning_at): Likewise.
6607 * input.c (linemap_client_expand_location_to_spelling_point): New.
6608 * pretty-print.c (text_info::set_range): New method.
6609 (text_info::get_location): New method.
6610 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): Eliminate this macro.
6611 (struct text_info): Eliminate "locations" array in favor of
6612 "m_richloc", a rich_location *.
6613 (textinfo::set_location): Add a "caret_p" param, and reimplement
6614 in terms of a call to set_range.
6615 (textinfo::get_location): Eliminate inline implementation in favor of
6616 an out-of-line reimplementation.
6617 (textinfo::set_range): New method.
6618 * rtl-error.c (diagnostic_for_asm): Update for change in signature
6619 of diagnostic_set_info.
6620 * tree-diagnostic.c (default_tree_printer): Update for new
6621 "caret_p" param for textinfo::set_location.
6622 * tree-pretty-print.c (percent_K_format): Likewise.
6624 2015-11-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6627 2015-11-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6628 * config/aarch64/aarch64.c
6629 (aarch64_can_use_per_function_literal_pools_p): New.
6630 (aarch64_use_blocks_for_constant_p): Adjust declaration
6631 and use aarch64_can_use_function_literal_pools_p.
6632 (aarch64_select_rtx_section): Update.
6634 2015-11-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6636 * config/arm/arm-ldmstm.ml: Rewrite to generate unified asm templates.
6637 * config/arm/arm.c (arm_asm_trampoline_template): Make unified asm safe.
6638 (arm_output_multireg_pop): Likewise.
6639 (output_move_double): Likewise.
6640 (output_move_quad): Likewise.
6641 (output_return_instruction): Likewise.
6642 (arm_print_operand): Remove support for %( and %. print modifiers.
6643 (arm_output_shift): Make unified asm.
6644 (arm_declare_function_name): Likewise.
6645 * config/arm/arm.h (TARGET_UNIFIED_ASM): Delete.
6646 (ASM_APP_OFF): Adjust.
6647 (ASM_OUTPUT_REG_PUSH): Undo special casing for TARGET_ARM.
6648 (ASM_OUTPUT_REG_POP): Likewise.
6649 * config/arm/arm.md: Adjust uses of %., %(, %)
6650 * config/arm/sync.md: Likewise.
6651 * config/arm/thumb2.md: Likewise.
6652 * config/arm/ldmstm.md: Regenerate.
6653 * config/arm/arm.opt (masm-unified-syntax): Do not special case Thumb.
6654 * doc/invoke.texi (masm-unified-syntax): Update documentation.
6656 2015-11-06 David Malcolm <dmalcolm@redhat.com>
6658 * input.c (dump_line_table_statistics): Dump stats on adhoc table.
6660 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
6662 * tree-core.h (size_type_kind): Remove OEP_CONSTANT_ADDRESS_OF and
6663 add OEP_MATCH_SIDE_EFFECTS.
6664 * fold-const.c (operand_equal_p): Update documentation; handle
6665 OEP_MATCH_SIDE_EFFECTS.
6666 * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Use
6667 OEP_MATCH_SIDE_EFFECTS.
6669 2015-11-06 Benedikt Huber <benedikt.huber@theobroma-systems.com>
6670 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
6672 * config/aarch64/aarch64-builtins.c: Builtins for rsqrt and rsqrtf.
6673 * config/aarch64/aarch64-protos.h: Declare.
6674 * config/aarch64/aarch64-simd.md: Matching expressions for frsqrte and
6676 * config/aarch64/aarch64-tuning-flags.def: Added recip_sqrt.
6677 * config/aarch64/aarch64.c: New functions. Emit rsqrt estimation
6678 code when applicable.
6679 * config/aarch64/aarch64.md: Added enum entries.
6680 * config/aarch64/aarch64.opt: Added option -mlow-precision-recip-sqrt.
6682 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
6686 * ipa-polymorphic-call.c
6687 (ipa_polymorphic_call_context::restrict_to_inner_type): Fix ordering
6688 issue when offset is out of range.
6689 (contains_type_p): Fix out of range check, clear dynamic flag.
6691 2015-11-06 Arnout Vandecappelle <arnout@mind.be>
6693 * config.gcc (e6500): Fix cpu_is_64bit typo.
6695 2015-11-06 Alan Lawrence <alan.lawrence@arm.com>
6697 * tree-sra.c (completely_scalarize): Properly handle negative array
6698 indices using offset_int.
6700 2015-11-06 Richard Biener <rguenther@suse.de>
6702 * alloc-pool.h (object_allocator::allocate): Default-initialize
6705 2015-11-06 Richard Biener <rguenther@suse.de>
6707 * tree-ssa-sccvn.c (class sccvn_dom_walker): Add destructor.
6708 * lra.c (init_reg_info): Truncate copy_vec instead of
6709 re-allocating a new one and leaking the old.
6710 * ipa-inline-analysis.c (estimate_function_body_sizes): Free
6712 * sched-deps.c (sched_deps_finish): Free the dn/dl pools.
6713 * postreload-gcse.c (free_mem): Free modify_mem_list and
6714 canon_modify_mem_list.
6716 2015-11-06 Ilya Enkovich <enkovich.gnu@gmail.com>
6718 PR tree-optimization/68145
6719 * tree-vect-stmts.c (vectorizable_operation): Fix
6720 determination for booleans.
6722 2015-11-06 Tom de Vries <tom@codesourcery.com>
6724 * tree-cfg.c (gimple_split_block_before_cond_jump): Split before
6725 cond_jump, instead of split after last nondebug insn before cond_jump.
6726 * tree-parloops.c (transform_to_exit_first_loop_alt): Verify ssa before
6729 2015-11-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6732 * config/arm/aarch-common.c (aarch_accumulator_forwarding): Strip
6733 subregs from accumulator and make sure it's a register.
6735 2015-11-06 Simon Dardis <simon.dardis@imgtec.com>
6737 * config/mips/loongson.md (vec_loongson_extract_lo_<mode>): New, extract
6739 (reduc_uplus_<mode>): Remove.
6740 (reduc_plus_scal_<mode>): Rename from reduc_splus_<mode>, Use vec
6741 loongson_extract_lo_<mode>.
6742 (reduc_smax_scal_<mode>, reduc_smin_scal_<mode>): Rename from
6743 reduc_smax_<mode>, reduc_smax_<mode>, use vec
6744 loongson_extract_lo_<mode>.
6745 (reduc_umax_scal_<mode>, reduc_umin_scal_<mode>): Rename.
6747 2015-11-06 Richard Biener <rguenther@suse.de>
6749 * tree-vectorizer.h (struct _bb_vec_info): Add region_begin/end
6751 (vect_stmt_in_region_p): Declare.
6752 * tree-vect-slp.c (new_bb_vec_info): Work on a region.
6753 (destroy_bb_vec_info): Likewise.
6754 (vect_bb_slp_scalar_cost): Use vect_stmt_in_region_p.
6755 (vect_get_and_check_slp_defs): Likewise.
6756 (vect_slp_analyze_bb_1): Refactor to make it work on sub-BBs.
6757 (vect_slp_bb): Likewise.
6758 * tree-vect-patterns.c (vect_same_loop_or_bb_p): Implement
6759 in terms of vect_stmt_in_region_p.
6760 (vect_pattern_recog): Iterate over the BB region.
6761 * tree-vect-stmts.c (vect_is_simple_use): Use vect_stmt_in_region_p.
6762 * tree-vectorizer.c (vect_stmt_in_region_p): New function.
6763 (pass_slp_vectorize::execute): Initialize all stmt UIDs to -1.
6764 * config/i386/i386.c: Include gimple-iterator.h.
6765 * config/aarch64/aarch64.c: Likewise.
6767 2015-11-06 Alexandre Oliva <aoliva@redhat.com>
6769 PR rtl-optimization/67753
6770 PR rtl-optimization/64164
6771 * function.c (assign_parm_setup_block): Avoid allocating a
6772 stack slot if we don't have an ABI-reserved one. Emit the
6773 copy to target_reg in the conversion seq if the copy from
6774 entry_parm is in it too. Don't use the conversion seq to copy
6775 a PARALLEL to a REG or a CONCAT.
6777 2015-11-06 Richard Biener <rguenther@suse.de>
6779 * tree-hash-traits.h (tree_operand_hash): Provide equal, not
6782 2015-11-05 Cesar Philippidis <cesar@codesourcery.com>
6783 Thomas Schwinge <thomas@codesourcery.com>
6784 James Norris <jnorris@codesourcery.com>
6787 * gimplify.c (gimplify_scan_omp_clauses): Add support for
6788 OMP_CLAUSE_TILE. Update handling of OMP_CLAUSE_INDEPENDENT.
6789 (gimplify_adjust_omp_clauses): Likewise.
6790 * omp-low.c (scan_sharing_clauses): Add support for OMP_CLAUSE_TILE.
6791 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_TILE.
6792 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_TILE.
6793 * tree.c (omp_clause_num_ops): Add an entry for OMP_CLAUSE_TILE.
6794 (omp_clause_code_name): Likewise.
6795 (walk_tree_1): Handle OMP_CLAUSE_TILE.
6796 * tree.h (OMP_TILE_LIST): New macro.
6798 2015-11-05 Martin Sebor <msebor@redhat.com>
6801 * doc/invoke.texi (-Wplacement-new): Document new option.
6803 2015-11-05 Alan Lawrence <alan.lawrence@arm.com>
6805 PR tree-optimization/65963
6806 * tree-scalar-evolution.c (interpret_rhs_expr): Try to handle
6807 LSHIFT_EXPRs as equivalent unsigned MULT_EXPRs.
6809 2015-11-05 James Greenhalgh <james.greenhalgh@arm.com>
6811 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): New.
6812 (noce_convert_multiple_sets): Likewise.
6813 (noce_process_if_block): Call them.
6815 2015-11-05 Nathan Sidwell <nathan@codesourcery.com>
6817 * gimple-fold.c: Include omp-low.h.
6818 (fold_internal_goacc_dim): New.
6819 (gimple_fold_call): Call it.
6821 2015-11-05 Jakub Jelinek <jakub@redhat.com>
6822 Ilya Verbin <ilya.verbin@intel.com>
6825 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR): Remove.
6826 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): New.
6827 * cgraph.h (enum cgraph_simd_clone_arg_type): Add
6828 SIMD_CLONE_ARG_TYPE_LINEAR_REF_VARIABLE_STEP,
6829 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP and
6830 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP.
6831 (struct cgraph_simd_clone_arg): Adjust comment.
6832 * omp-builtins.def (BUILT_IN_GOMP_TARGET): Rename GOMP_target_41
6833 to GOMP_target_ext. Add num_teams and thread_limit arguments.
6834 (BUILT_IN_GOMP_TARGET_DATA): Rename GOMP_target_data_41
6835 to GOMP_target_data_ext.
6836 (BUILT_IN_GOMP_TARGET_UPDATE): Rename GOMP_target_update_41
6837 to GOMP_target_update_ext.
6838 (BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_START,
6839 BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_START,
6840 BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_NEXT,
6841 BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_NEXT,
6842 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_START,
6843 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_START,
6844 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_NEXT,
6845 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_NEXT,
6846 BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_DYNAMIC,
6847 BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_GUIDED): New built-ins.
6848 * tree-core.h (enum omp_clause_schedule_kind): Add
6849 OMP_CLAUSE_SCHEDULE_MASK, OMP_CLAUSE_SCHEDULE_MONOTONIC,
6850 OMP_CLAUSE_SCHEDULE_NONMONOTONIC and change
6851 OMP_CLAUSE_SCHEDULE_LAST value.
6852 * tree.def (OMP_SIMD, CILK_SIMD, CILK_FOR, OMP_DISTRIBUTE,
6853 OMP_TASKLOOP, OACC_LOOP): Add OMP_FOR_ORIG_DECLS argument.
6854 * tree.h (OMP_FOR_ORIG_DECLS): Use OMP_LOOP_CHECK instead of
6855 OMP_FOR_CHECK. Remove comment.
6856 * tree-pretty-print.c (dump_omp_clause): Handle
6857 GOMP_MAP_FIRSTPRIVATE_REFERENCE and GOMP_MAP_ALWAYS_POINTER.
6858 Simplify. Print schedule clause modifiers.
6859 * tree-vect-stmts.c (vectorizable_simd_clone_call): Add
6860 SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_VARIABLE_STEP
6862 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_ALWAYS_TO.
6863 (omp_default_clause): Tweak for
6864 private/firstprivate/is_device_ptr variables on target
6865 construct and use_device_ptr on target data.
6866 (omp_check_private): Likewise.
6867 (omp_notice_variable): For references check whether what it refers
6868 to has mappable type, rather than the reference itself.
6869 (omp_is_private): Diagnose linear iteration variables on non-simd
6871 (omp_no_lastprivate): Return true only for Fortran.
6872 (gimplify_scan_omp_clauses): Or in GOVD_MAP_ALWAYS_TO for
6873 GOMP_MAP_ALWAYS_TO or GOMP_MAP_ALWAYS_TOFROM kinds.
6874 Add support for GOMP_MAP_FIRSTPRIVATE_REFERENCE and
6875 GOMP_MAP_ALWAYS_POINTER, remove old handling of structure element
6876 based array sections. Use GOMP_MAP_ALWAYS_P. Fix up handling of
6877 lastprivate and linear when combined with distribute. Gimplify
6878 variable low-bound for array reduction. Look through
6879 POINTER_PLUS_EXPR when looking for ADDR_EXPR for array section
6881 (gimplify_adjust_omp_clauses_1): For implicit references to
6882 variables with reference type and when not ref to scalar or
6883 ref to pointer, map what they refer to using tofrom and
6884 use GOMP_MAP_FIRSTPRIVATE_REFERENCE for the reference.
6885 (gimplify_adjust_omp_clauses): Remove GOMP_MAP_ALWAYS_POINTER
6886 from target exit data. Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE.
6887 Drop OMP_CLAUSE_MAP_PRIVATE support. Use GOMP_MAP_ALWAYS_P.
6888 Diagnose the same var on both firstprivate and lastprivate on
6889 distribute construct.
6890 (gimplify_omp_for): Fix up handling of predetermined
6891 lastprivate or linear iter vars when combined with distribute.
6892 (find_omp_teams, computable_teams_clause, optimize_target_teams): New
6894 (gimplify_omp_workshare): Call optimize_target_teams.
6895 * omp-low.c (struct omp_region): Add sched_modifiers field.
6896 (struct omp_for_data): Likewise.
6897 (omp_any_child_fn_dumped): New variable.
6898 (extract_omp_for_data): Fill in sched_modifiers, and mask out
6899 OMP_CLAUSE_SCHEDULE_KIND bits outside of OMP_CLAUSE_SCHEDULE_MASK
6901 (determine_parallel_type): Use only OMP_CLAUSE_SCHEDULE_MASK
6902 bits of OMP_CLAUSE_SCHED_KIND.
6903 (scan_sharing_clauses): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE,
6904 drop OMP_CLAUSE_MAP_PRIVATE support. Look through POINTER_PLUS_EXPR
6905 for array section reductions.
6906 (add_taskreg_looptemp_clauses): Add one extra _looptemp_ clause even
6907 for distribute parallel for, if there are lastprivate clauses on the
6909 (lower_rec_input_clauses): Handle non-zero low-bound on array
6911 (lower_reduction_clauses): Likewise.
6912 (lower_send_clauses): Look through POINTER_PLUS_EXPR
6913 for array section reductions.
6914 (expand_parallel_call): Use nonmonotonic entrypoints for
6915 nonmonotonic: dynamic/guided.
6916 (expand_omp_taskreg): Call assign_assembler_name_if_neeeded on
6917 child_fn if current_function_decl has assembler name set, but child_fn
6918 does not. Dump the header and IL of the child function when not in SSA
6920 (expand_omp_target): Likewise. Pass num_teams and thread_limit
6921 arguments to BUILT_IN_GOMP_TARGET.
6922 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
6923 Initialize the extra _looptemp_ clause to fd->loop.n2.
6924 (expand_omp_for): Use nonmonotonic entrypoints for
6925 nonmonotonic: dynamic/guided. Initialize region->sched_modifiers.
6926 (expand_omp): Clear omp_any_child_fn_dumped. Dump function header
6927 again if we have dumped any child functions.
6928 (lower_omp_for_lastprivate): Determine the right count variable
6929 for distribute simd, or distribute parallel for{, simd}.
6930 (lower_omp_target): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE
6931 and GOMP_MAP_ALWAYS_POINTER. Drop OMP_CLAUSE_MAP_PRIVATE
6933 (simd_clone_clauses_extract): Handle variable step
6934 for references and arguments passed by reference.
6935 (simd_clone_mangle): Mangle ref/uval/val variable steps.
6936 (simd_clone_adjust_argument_types): Handle
6937 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP like
6938 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
6939 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP like
6940 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
6941 (simd_clone_linear_addend): New function.
6942 (simd_clone_adjust): Handle variable step like similarly
6943 to constant step, use simd_clone_linear_addend to determine
6944 the actual step at runtime.
6946 2015-11-05 Nathan Sidwell <nathan@codesourcery.com>
6948 * target.def (goacc.dim_limit): New hook.
6949 * targhooks.h (default_goacc_dim_limit): Declare.
6950 * doc/tm.texi.in (TARGET_GOACC_DIM_LIMIT): Add.
6951 * doc/tm.texi: Rebuilt.
6952 * omp-low.h (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): Declare.
6953 * omp-low.c (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): New.
6954 (default_goacc_dim_limit): New.
6955 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
6956 (nvptx_goacc_dim_limit) New.
6957 (TARGET_GOACC_DIM_LIMIT): Override.
6958 * tree-vrp.c: Include omp-low.h, target.h.
6959 (extract_range_basic): Add handling for IFN_GOACC_DIM_SIZE &
6962 2015-11-05 Ilya Enkovich <enkovich.gnu@gmail.com>
6964 * tree-vect-generic.c (do_compare): Use -1 for true
6965 result instead of 1.
6967 2015-11-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6969 * config/aarch64/aarch64.c
6970 (aarch64_can_use_per_function_literal_pools_p): New.
6971 (aarch64_use_blocks_for_constant_p): Adjust declaration
6972 and use aarch64_can_use_function_literal_pools_p.
6973 (aarch64_select_rtx_section): Update.
6975 2015-11-05 Ilya Enkovich <enkovich.gnu@gmail.com>
6977 * targhooks.c (default_get_mask_mode): Use BLKmode in
6978 case target doesn't support required vector mode.
6979 * stor-layout.c (layout_type); Check for BLKmode.
6981 2015-11-04 Aditya Kumar <aditya.k7@samsung.com>
6982 Sebastian Pop <s.pop@samsung.com>
6984 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
6985 Remove use of parameter_rename_map.
6987 (copy_internal_parameters): Remove.
6988 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
6989 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
6990 (free_sese_info): Do not free parameter_rename_map.
6991 (set_rename): Do not use parameter_rename_map.
6992 (rename_uses): Update call to set_rename.
6993 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
6994 * sese.h (parameter_rename_map_t): Remove.
6995 (struct sese_info_t): Remove field parameter_rename_map.
6997 2015-11-04 Aditya Kumar <aditya.k7@samsung.com>
6998 Sebastian Pop <s.pop@samsung.com>
7000 * graphite-isl-ast-to-gimple.c: Include tree-cfg.h.
7001 (translate_isl_ast_node_user): Add more dumps: call print_loops_bb.
7002 * graphite-scop-detection.c (dot_all_scops_1): Moved out of
7003 anonymous namespace.
7004 * graphite-sese-to-poly.c (ssa_name_version_typesize): Remove.
7005 (isl_id_for_pbb): Use a buffer of size 10.
7006 (isl_id_for_ssa_name): Same.
7007 * sese.c (set_rename): Add more dumps.
7009 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
7011 * omp-low.c (struct omp_context): Remove reduction_map field.
7012 (lookup_oacc_reduction, maybe_lookup_oacc_reduction): Delete.
7013 (new_omp_context, delete_omp_context, scan_omp_target): Remove
7014 reduction_map handling.
7015 (lower_omp_target): Remove obsolete openacc reduction handling.
7017 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
7019 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add checking.
7021 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
7022 Cesar Philippidis <cesar@codesourcery.com>
7024 * config/nvptx/nvptx.c: Include gimple headers.
7025 (worker_red_size, worker_red_align, worker_red_name,
7026 worker_red_sym): New.
7027 (nvptx_option_override): Initialize worker reduction buffer.
7028 (nvptx_file_end): Write out worker reduction buffer var.
7029 (nvptx_expand_shuffle, nvptx_expand_worker_addr,
7030 nvptx_expand_cmp_swap): New builtin expanders.
7031 (enum nvptx_builtins): New.
7032 (nvptx_builtin_decls): New.
7033 (nvptx_builtin_decl, nvptx_init_builtins, nvptx_expand_builtin): New
7034 (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
7035 (nvptx_get_worker_red_addr, nvptx_generate_vector_shuffle,
7036 nvptx_lockless_update): New helpers.
7037 (nvptx_goacc_reduction_setup, nvptx_goacc_reduction_init,
7038 nvptx_goacc_reduction_fini, nvptx_goacc_reduction_teaddown): New.
7039 (nvptx_goacc_reduction): New.
7040 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN,
7041 TARGET_BUILTIN_DECL): Override.
7042 (TARGET_GOACC_REDUCTION): Override.
7044 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
7045 Cesar Philippidis <cesar@codesourcery.com>
7047 * internal-fn.def (GOACC_REDUCTION): New.
7048 * internal-fn.h (enum ifn_goacc_reduction_kind): New.
7049 * internal-fn.c (expand_GOACC_REDUCTION): New.
7050 * target.def (goacc.reduction): New OpenACC hook.
7051 * targhooks.h (default_goacc_reduction): Declare.
7052 * doc/tm.texi.in: Add TARGET_GOACC_REDUCTION.
7053 * doc/tm.texi: Rebuilt.
7054 * omp-low.c (oacc_get_reduction_array_id, oacc_max_threads,
7055 scan_sharing_clauses): Remove oacc reduction handling here.
7056 (lower_rec_input_clauses): Don't handle OpenACC reductions here.
7057 (oacc_lower_reduction_var_helper): Delete.
7058 (lower_oacc_reductions): New.
7059 (lower_reduction_clauses): Don't handle OpenACC reductions here.
7060 (lower_oacc_head_tail): Call lower_oacc_reductions.
7061 (oacc_gimple_assign, oacc_init_reduction_array,
7062 oacc_initialize_reduction_data, oacc_finalize_reduction_data,
7063 oacc_process_reduction_data): Delete.
7064 (lower_omp_target): Remove old OpenACC reduction handling. Insert
7065 dummy OpenACC gang reduction for reductions at outer level.
7066 (oacc_loop_xform_head_tail): Transform IFN_GOACC_REDUCTION.
7067 (default_goacc_reduction): New.
7068 (execute_oacc_device_lower): Handle IFN_GOACC_REDUCTION.
7070 2015-11-04 Martin Liska <mliska@suse.cz>
7072 * cgraphunit.c (cgraph_node::expand_thunk): Call
7073 allocate_struct_function before init_function_start.
7074 (cgraph_node::expand): Use push_cfun and pop_cfun.
7075 * config/i386/i386.c (ix86_code_end): Call
7076 allocate_struct_function before init_function_start.
7077 * config/rs6000/rs6000.c (rs6000_code_end): Likewise.
7078 * function.c (init_function_start): Move preamble to all
7080 * passes.c (do_per_function_toporder): Use push_cfun and pop_cfun.
7081 (execute_one_pass): Handle newly added TODO_discard_function.
7082 (execute_pass_list_1): Terminate if cfun equals to NULL.
7083 (execute_pass_list): Do not push and pop cfun, expect that
7085 * tree-pass.h (TODO_discard_function): Define.
7087 2015-11-04 Mikhail Maltsev <maltsevm@gmail.com>
7089 * cfganal.c (inverted_post_order_compute): Remove conditional
7090 compilation, use flag_checking.
7091 * config.in: Regenerate.
7092 * configure: Regenerate.
7093 * configure.ac: Remove ENABLE_CHECKING.
7094 * genconditions.c: Do not #undef ENABLE_CHECKING.
7095 * sese.h (bb_in_region): Comment out broken check.
7096 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa_1): Remove
7097 conditional compilation, use flag_checking.
7099 2015-11-04 Tom de Vries <tom@codesourcery.com>
7101 PR tree-optimization/67742
7102 * tree-ssa-structalias.c (struct fieldoff): Add restrict_pointed_type
7104 (push_fields_onto_fieldstack): Handle restrict_pointed_type field.
7105 (create_variable_info_for_1): Add and handle handle_param parameter.
7106 Add restrict handling.
7107 (create_variable_info_for): Call create_variable_info_for_1 with extra
7109 (make_param_constraints): Drop restrict_name parameter. Ignore
7110 vi->only_restrict_pointers.
7111 (intra_create_variable_infos): Call create_variable_info_for_1 with
7112 extra arg. Remove restrict handling. Call make_param_constraints with
7115 2015-11-04 Tom de Vries <tom@codesourcery.com>
7117 * tree-ssa-structalias.c (create_variable_info_for_1): Use decl_type
7120 2015-11-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7122 * config/arm/coff.h: Remove.
7124 2015-11-03 Eric Botcazou <ebotcazou@adacore.com>
7126 * gimple-expr.c (useless_type_conversion_p): Reinstate type canonical
7127 check for aggregate types and beef up comment for mode check.
7129 2015-11-03 Richard Biener <rguenther@suse.de>
7131 * tree-vect-data-refs.c (vect_analyze_data_refs): Do not collect
7132 data references here.
7133 * tree-vect-loop.c: Include cgraph.h.
7134 (vect_analyze_loop_2): Collect data references here.
7135 * tree-vect-slp.c (find_bb_location): Inline ...
7136 (vect_slp_bb): ... here. Renamed from vect_slp_analyze_bb.
7137 Factor in vect_slp_transform_bb.
7138 (vect_slp_transform_bb): Removed.
7139 (vect_slp_analyze_bb_1): Collect data references here.
7140 * tree-vectorizer.c (pass_slp_vectorize::execute): Call
7142 * tree-vectorizer.h (vect_slp_bb): Declare.
7143 (vect_slp_analyze_bb): Remove.
7144 (vect_slp_transform_bb): Remove.
7145 (find_bb_location): Remove.
7146 (vect_analyze_data_refs): Remove stmt count reference parameter.
7148 2015-11-03 Evgeny Stupachenko <evstupac@gmail.com>
7150 * multiple_target.c (create_dispatcher_calls): Add target check
7152 (create_target_clone): Change assembler name for versioned declarations.
7154 2015-11-03 Thomas Schwinge <thomas@codesourcery.com>
7155 Chung-Lin Tang <cltang@codesourcery.com>
7157 * builtins.def (DEF_GOMP_BUILTIN): Enable for flag_openacc.
7158 * omp-low.c (check_omp_nesting_restrictions): Allow
7159 GIMPLE_OMP_ATOMIC_LOAD, GIMPLE_OMP_ATOMIC_STORE inside OpenACC
7162 2015-11-03 Bilyan Borisov <bilyan.borisov@arm.com>
7164 * config/aarch64/aarch64-simd-builtins.def (fmulx): New.
7165 * config/aarch64/aarch64-simd.md (aarch64_fmulx<mode>): New.
7166 * config/aarch64/arm_neon.h (vmulx_f32): Rewrite to call fmulx
7168 (vmulxq_f32): Likewise.
7170 (vmulxq_f64): Rewrite to call fmulx builtin.
7171 (vmulxs_f32): Likewise.
7172 (vmulxd_f64): Likewise.
7173 (vmulx_lane_f32): Remove.
7174 * config/aarch64/iterators.md (UNSPEC): Add fmulx.
7176 2015-11-03 Alan Lawrence <alan.lawrence@arm.com>
7178 * config/aarch64/aarch64.md (*movhf_aarch64): Use
7179 aarch64_reg_or_fp_zero for second operand.
7181 2015-11-03 Alexandre Oliva <aoliva@redhat.com>
7183 * gimple-expr.c: Include hash-set.h and rtl.h.
7184 (mark_addressable_queue): New var.
7185 (mark_addressable): Factor actual marking into...
7186 (mark_addressable_1): ... this. Queue it up during expand.
7187 (mark_addressable_2): New.
7188 (flush_mark_addressable_queue): New.
7189 * gimple-expr.h (flush_mark_addressable_queue): Declare.
7190 * cfgexpand.c: Include gimple-expr.h.
7191 (pass_expand::execute): Flush mark_addressable queue.
7193 2015-11-02 Alexandre Oliva <aoliva@redhat.com>
7195 * tree-ssa-ifcombine.c (tree_ssa_ifcombine_bb_1): Factor out
7196 bb_no_side_effects_p tests...
7197 (tree_ssa_ifcombine_bb): ... here.
7199 PR tree-optimization/68083
7200 * tree-ssa-ifcombine.c: Include tree-ssa.h.
7201 (bb_no_side_effects_p): Test for undefined uses too.
7202 * tree-ssa.c (gimple_uses_undefined_value_p): New.
7203 * tree-ssa.h (gimple_uses_undefined_value_p): Declare.
7205 2015-11-02 Jeff Law <law@redhat.com>
7207 * tree-ssa-threadupdate.c (valid_jump_thread_path): Also detect
7208 cases where the loop latch edge is in the middle of an FSM path.
7210 2015-11-03 Tom de Vries <tom@codesourcery.com>
7212 * tree-ssa-structalias.c (make_restrict_var_constraints): Rename to ...
7213 (make_param_constraints): ... this. Add and handle restrict_name
7214 parameter. Handle is_full_var case.
7215 (intra_create_variable_infos): Use make_param_constraints.
7217 2015-11-03 Tom de Vries <tom@codesourcery.com>
7219 * tree-ssa-structalias.c (make_restrict_var_constraints): Replace
7220 make_copy_constraint call with make_constraint_from call.
7222 2015-11-02 Andreas Tobler <andreast@gcc.gnu.org>
7224 * config/rs6000/freebsd64.h (ASM_SPEC32): Adust spec to handle
7227 2015-11-02 Richard Sandiford <richard.sandiford@arm.com>
7229 * builtins.h (fold_fma): Move to fold-const-call.h.
7230 * builtins.c: Include fold-const-call.h.
7231 (mathfn_built_in_2): New function, split out from...
7232 (mathfn_built_in_1): ...here.
7233 (do_real_to_int_conversion, fold_const_builtin_pow)
7234 (fold_const_builtin_logb, fold_const_builtin_significand)
7235 (fold_const_builtin_load_exponent, do_mpfr_arg1, do_mpfr_arg2)
7236 (do_mpfr_arg3, do_mpfr_sincos, do_mpfr_bessel_n, do_mpc_arg1): Delete.
7237 (fold_builtin_sincos): Use fold_const_call to handle constants.
7238 (fold_builtin_1, fold_builtin_2, fold_builtin_3): Add explicit
7239 checks for ERROR_MARK. Use fold_const_call to handle constant
7240 folds for math functions.
7241 (fold_fma): Move to fold-const-call.c.
7242 * fold-const.c: Include fold-const-call.h.
7243 * Makefile.in (OBJS): Add fold-const-call.o.
7244 (PLUGIN_HEADERS): Add fold-const-call.h.
7245 * realmpfr.h (real_from_mpfr): Allow the format to be specified
7247 * realmpfr.c (real_from_mpfr): Likewise.
7248 * fold-const-call.h, fold-const-call.c: New files.
7250 2015-11-02 Julian Brown <julian@codesourcery.com>
7252 * config/arm/neon-testgen.ml (emit_epilogue): Remove extraneous
7253 brackets and semicolon.
7255 2015-11-02 Alan Lawrence <alan.lawrence@arm.com>
7258 2015-10-27 Alan Lawrence <alan.lawrence@arm.com>
7260 PR tree-optimization/65963
7261 * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
7262 LSHIFT_EXPRs as equivalent MULT_EXPRs.
7264 2015-11-02 Thomas Schwinge <thomas@codesourcery.com>
7267 * fold-const.c: Include "md5.h".
7269 2015-11-01 Jeff Law <law@redhat.com>
7271 * vmsdbgout.c: Revert unused header file reduction patch.
7273 * config/mcore/mcore.c: Include regs.h.
7275 2015-10-31 Segher Boessenkool <segher@kernel.crashing.org>
7277 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Rewrite.
7279 2015-10-31 Segher Boessenkool <segher@kernel.crashing.org>
7281 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Use the
7282 same condition for testing whether RS6000_PIC_OFFSET_TABLE_REGNUM is
7283 live as for using it elsewhere, for TARGET_MINIMAL_TOC.
7285 2015-10-31 Markus Trippelsdorf <markus@trippelsdorf.de>
7287 * ggc-common.c: Restore needed header for checking=release.
7289 2015-10-31 Tom de Vries <tom@codesourcery.com>
7291 * fold-const.c (fold_unary_loc): Tune POINTER_PLUS_EXPR folding.
7293 2015-10-31 Tom de Vries <tom@codesourcery.com>
7295 * tree-ssa-structalias.c (intra_create_variable_infos): Don't expect
7296 existing varinfo for arguments.
7298 2015-10-31 Tom de Vries <tom@codesourcery.com>
7300 * tree-ssa-structalias.c (ipa_pta_execute): Add extra arg to call to
7301 create_function_info_for. Dump constraints generated during
7302 create_function_info_for. Move intra_create_variable_infos call and
7303 function-return-values-escape bit to ...
7304 (create_function_info_for): ... here, and merge
7305 intra_create_variable_infos call with argument loop. Add and handle
7306 nonlocal_p parameter.
7308 2015-10-31 Tom de Vries <tom@codesourcery.com>
7310 * tree-ssa-structalias.c (create_function_info_for): Make sure prev_vi
7311 updating is alap, and seperated from preceding code. Make sure
7312 insert_vi_for_tree is seperated from surrounding code.
7314 2015-10-31 Tom de Vries <tom@codesourcery.com>
7316 * tree-ssa-structalias.c (ipa_pta_execute): Use make_copy_constraint.
7318 2015-10-30 Jeff Law <law@redhat.com>
7319 Nathan Sidwell <nathan@acm.org>
7321 * config/nvptx/nvptx.h (HARD_REGNO_NREGS): Avoid warning on unused
7323 (MOVE_MAX): Set to 8.
7325 2015-10-30 Cesar Philippidis <cesar@codesourcery.com>
7327 * cgraph.c: Include context.h for offloading.
7328 * varpool.c: Include context.h and omp-low.h.
7330 2015-10-30 Anatoly Sokolov <aesok@post.ru>
7332 * rtl.h (contains_symbol_ref_p): Declare.
7333 (SYMBOL_REF_P): Define.
7334 * rtlanal.c (contains_symbol_ref_p: New function.
7335 * lra-constraints.c (contains_symbol_ref_p): Remove.
7336 * var-tracking.c (contains_symbol_ref): Remove.
7337 (track_expr_p): Use contains_symbol_ref_p instead of
7338 contains_symbol_ref.
7340 2015-10-30 Alan Lawrence <alan.lawrence@arm.com>
7342 * gimple-fold.c (fold_array_ctor_reference): Move searching code to:
7343 * fold-const.c (get_array_ctor_element_at_index): New.
7344 (fold): Remove binary-search through CONSTRUCTOR, call previous.
7346 * fold-const.h (get_array_ctor_element_at_index): New.
7348 2015-10-30 Evgeny Stupachenko <evstupac@gmail.com>
7350 * Makefile.in (OBJS): Add multiple_target.o.
7351 * attrib.c (make_attribute): Moved from config/i386/i386.c
7352 * config/i386/i386.c (make_attribute): Deleted.
7353 * multiple_target.c (create_dispatcher_calls): New.
7354 (get_attr_len): Ditto.
7355 (get_attr_str): Ditto.
7356 (separate_attrs): Ditto.
7357 (is_valid_asm_symbol): Ditto.
7358 (create_new_asm_name): Ditto.
7359 (create_target_clone): Ditto.
7360 (expand_target_clones): Ditto.
7361 (ipa_target_clone): Ditto.
7362 (ipa_dispatcher_calls): Ditto.
7363 * passes.def (pass_target_clone): Two new ipa passes.
7364 * tree-pass.h (make_pass_target_clone): Ditto.
7365 * doc/extend.texi (target_clones): New attribute description.
7367 2015-10-30 Vladimir Makarov <vmakarov@redhat.com>
7369 PR rtl-optimization/68106
7370 * lra-remat.c (input_regno_present_p): Process hard regs
7371 explicitly present in machine description insns.
7372 (call_used_input_regno_present_p): Ditto.
7373 (calculate_gen_cands): Ditto.
7376 2015-10-30 Jim Wilson <jim.wilson@linaro.org>
7378 * config/arm/neon-testgen.ml: Fix comment typo.
7380 2015-10-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7382 * rtlanal.c (reg_set_p): Expand function comment.
7384 2015-10-30 Andrew MacLeod <amacleod@redhat.com>
7386 * alias.c: Remove unused headers.
7388 * attribs.c: Likewise.
7389 * auto-inc-dec.c: Likewise.
7390 * auto-profile.c: Likewise.
7391 * bb-reorder.c: Likewise.
7392 * bitmap.c: Likewise.
7393 * bt-load.c: Likewise.
7394 * builtins.c: Likewise.
7395 * caller-save.c: Likewise.
7396 * calls.c: Likewise.
7399 * cfganal.c: Likewise.
7400 * cfgbuild.c: Likewise.
7401 * cfgcleanup.c: Likewise.
7402 * cfgexpand.c: Likewise.
7403 * cfghooks.c: Likewise.
7404 * cfgloop.c: Likewise.
7405 * cfgloopanal.c: Likewise.
7406 * cfgloopmanip.c: Likewise.
7407 * cfgrtl.c: Likewise.
7408 * cgraph.c: Likewise.
7409 * cgraphbuild.c: Likewise.
7410 * cgraphclones.c: Likewise.
7411 * cgraphunit.c: Likewise.
7412 * cilk-common.c: Likewise.
7413 * combine-stack-adj.c: Likewise.
7414 * combine.c: Likewise.
7415 * compare-elim.c: Likewise.
7416 * convert.c: Likewise.
7417 * coverage.c: Likewise.
7418 * cppbuiltin.c: Likewise.
7419 * cprop.c: Likewise.
7421 * cselib.c: Likewise.
7422 * data-streamer-in.c: Likewise.
7423 * data-streamer-out.c: Likewise.
7424 * data-streamer.c: Likewise.
7425 * dbxout.c: Likewise.
7428 * debug.c: Likewise.
7429 * df-core.c: Likewise.
7430 * df-problems.c: Likewise.
7431 * df-scan.c: Likewise.
7433 * dojump.c: Likewise.
7434 * dominance.c: Likewise.
7435 * domwalk.c: Likewise.
7436 * double-int.c: Likewise.
7438 * dumpfile.c: Likewise.
7439 * dwarf2asm.c: Likewise.
7440 * dwarf2cfi.c: Likewise.
7441 * dwarf2out.c: Likewise.
7442 * emit-rtl.c: Likewise.
7443 * except.c: Likewise.
7444 * explow.c: Likewise.
7445 * expmed.c: Likewise.
7447 * final.c: Likewise.
7448 * fixed-value.c: Likewise.
7449 * fold-const.c: Likewise.
7450 * function.c: Likewise.
7451 * fwprop.c: Likewise.
7453 * generic-match-head.c: Likewise.
7454 * ggc-common.c: Likewise.
7455 * gimple-builder.c: Likewise.
7456 * gimple-expr.c: Likewise.
7457 * gimple-fold.c: Likewise.
7458 * gimple-iterator.c: Likewise.
7459 * gimple-low.c: Likewise.
7460 * gimple-match-head.c: Likewise.
7461 * gimple-pretty-print.c: Likewise.
7462 * gimple-ssa-isolate-paths.c: Likewise.
7463 * gimple-ssa-strength-reduction.c: Likewise.
7464 * gimple-streamer-in.c: Likewise.
7465 * gimple-streamer-out.c: Likewise.
7466 * gimple-walk.c: Likewise.
7467 * gimple.c: Likewise.
7468 * gimplify-me.c: Likewise.
7469 * gimplify.c: Likewise.
7470 * godump.c: Likewise.
7471 * graph.c: Likewise.
7472 * graphds.c: Likewise.
7473 * haifa-sched.c: Likewise.
7474 * hw-doloop.c: Likewise.
7475 * ifcvt.c: Likewise.
7476 * init-regs.c: Likewise.
7477 * internal-fn.c: Likewise.
7478 * ipa-chkp.c: Likewise.
7479 * ipa-comdats.c: Likewise.
7480 * ipa-cp.c: Likewise.
7481 * ipa-devirt.c: Likewise.
7482 * ipa-icf-gimple.c: Likewise.
7483 * ipa-icf.c: Likewise.
7484 * ipa-inline-analysis.c: Likewise.
7485 * ipa-inline-transform.c: Likewise.
7486 * ipa-inline.c: Likewise.
7487 * ipa-polymorphic-call.c: Likewise.
7488 * ipa-profile.c: Likewise.
7489 * ipa-prop.c: Likewise.
7490 * ipa-pure-const.c: Likewise.
7491 * ipa-ref.c: Likewise.
7492 * ipa-reference.c: Likewise.
7493 * ipa-split.c: Likewise.
7494 * ipa-utils.c: Likewise.
7495 * ipa-visibility.c: Likewise.
7497 * ira-build.c: Likewise.
7498 * ira-color.c: Likewise.
7499 * ira-conflicts.c: Likewise.
7500 * ira-costs.c: Likewise.
7501 * ira-emit.c: Likewise.
7502 * ira-lives.c: Likewise.
7505 * langhooks.c: Likewise.
7507 * lists.c: Likewise.
7508 * loop-doloop.c: Likewise.
7509 * loop-init.c: Likewise.
7510 * loop-invariant.c: Likewise.
7511 * loop-iv.c: Likewise.
7512 * loop-unroll.c: Likewise.
7513 * lower-subreg.c: Likewise.
7514 * lra-assigns.c: Likewise.
7515 * lra-coalesce.c: Likewise.
7516 * lra-constraints.c: Likewise.
7517 * lra-eliminations.c: Likewise.
7518 * lra-lives.c: Likewise.
7519 * lra-remat.c: Likewise.
7520 * lra-spills.c: Likewise.
7522 * lto-cgraph.c: Likewise.
7523 * lto-compress.c: Likewise.
7524 * lto-opts.c: Likewise.
7525 * lto-section-in.c: Likewise.
7526 * lto-section-out.c: Likewise.
7527 * lto-streamer-in.c: Likewise.
7528 * lto-streamer-out.c: Likewise.
7529 * lto-streamer.c: Likewise.
7531 * mode-switching.c: Likewise.
7532 * modulo-sched.c: Likewise.
7533 * optabs.c: Likewise.
7534 * opts-global.c: Likewise.
7535 * passes.c: Likewise.
7536 * plugin.c: Likewise.
7537 * postreload-gcse.c: Likewise.
7538 * postreload.c: Likewise.
7539 * predict.c: Likewise.
7540 * print-tree.c: Likewise.
7541 * profile.c: Likewise.
7543 * realmpfr.c: Likewise.
7544 * recog.c: Likewise.
7546 * reg-stack.c: Likewise.
7547 * regcprop.c: Likewise.
7548 * reginfo.c: Likewise.
7549 * regrename.c: Likewise.
7550 * regstat.c: Likewise.
7551 * reload.c: Likewise.
7552 * reload1.c: Likewise.
7553 * reorg.c: Likewise.
7554 * resource.c: Likewise.
7555 * rtl-chkp.c: Likewise.
7556 * rtl-error.c: Likewise.
7557 * rtlanal.c: Likewise.
7558 * rtlhooks.c: Likewise.
7559 * sanopt.c: Likewise.
7560 * sched-deps.c: Likewise.
7561 * sched-ebb.c: Likewise.
7562 * sched-rgn.c: Likewise.
7563 * sdbout.c: Likewise.
7564 * sel-sched-dump.c: Likewise.
7565 * sel-sched-ir.c: Likewise.
7566 * sel-sched.c: Likewise.
7568 * shrink-wrap.c: Likewise.
7569 * simplify-rtx.c: Likewise.
7570 * stack-ptr-mod.c: Likewise.
7571 * statistics.c: Likewise.
7573 * stor-layout.c: Likewise.
7574 * store-motion.c: Likewise.
7575 * stringpool.c: Likewise.
7576 * symtab.c: Likewise.
7577 * target-globals.c: Likewise.
7578 * targhooks.c: Likewise.
7579 * toplev.c: Likewise.
7580 * tracer.c: Likewise.
7581 * trans-mem.c: Likewise.
7582 * tree-affine.c: Likewise.
7583 * tree-call-cdce.c: Likewise.
7584 * tree-cfg.c: Likewise.
7585 * tree-cfgcleanup.c: Likewise.
7586 * tree-chkp-opt.c: Likewise.
7587 * tree-chkp.c: Likewise.
7588 * tree-chrec.c: Likewise.
7589 * tree-complex.c: Likewise.
7590 * tree-data-ref.c: Likewise.
7591 * tree-dfa.c: Likewise.
7592 * tree-diagnostic.c: Likewise.
7593 * tree-dump.c: Likewise.
7594 * tree-eh.c: Likewise.
7595 * tree-emutls.c: Likewise.
7596 * tree-if-conv.c: Likewise.
7597 * tree-inline.c: Likewise.
7598 * tree-into-ssa.c: Likewise.
7599 * tree-iterator.c: Likewise.
7600 * tree-loop-distribution.c: Likewise.
7601 * tree-nested.c: Likewise.
7602 * tree-nrv.c: Likewise.
7603 * tree-object-size.c: Likewise.
7604 * tree-outof-ssa.c: Likewise.
7605 * tree-parloops.c: Likewise.
7606 * tree-phinodes.c: Likewise.
7607 * tree-predcom.c: Likewise.
7608 * tree-pretty-print.c: Likewise.
7609 * tree-profile.c: Likewise.
7610 * tree-scalar-evolution.c: Likewise.
7611 * tree-sra.c: Likewise.
7612 * tree-ssa-address.c: Likewise.
7613 * tree-ssa-alias.c: Likewise.
7614 * tree-ssa-ccp.c: Likewise.
7615 * tree-ssa-coalesce.c: Likewise.
7616 * tree-ssa-copy.c: Likewise.
7617 * tree-ssa-dce.c: Likewise.
7618 * tree-ssa-dse.c: Likewise.
7619 * tree-ssa-forwprop.c: Likewise.
7620 * tree-ssa-ifcombine.c: Likewise.
7621 * tree-ssa-live.c: Likewise.
7622 * tree-ssa-loop-ch.c: Likewise.
7623 * tree-ssa-loop-im.c: Likewise.
7624 * tree-ssa-loop-ivcanon.c: Likewise.
7625 * tree-ssa-loop-ivopts.c: Likewise.
7626 * tree-ssa-loop-manip.c: Likewise.
7627 * tree-ssa-loop-niter.c: Likewise.
7628 * tree-ssa-loop-prefetch.c: Likewise.
7629 * tree-ssa-loop-unswitch.c: Likewise.
7630 * tree-ssa-loop.c: Likewise.
7631 * tree-ssa-math-opts.c: Likewise.
7632 * tree-ssa-operands.c: Likewise.
7633 * tree-ssa-phiopt.c: Likewise.
7634 * tree-ssa-phiprop.c: Likewise.
7635 * tree-ssa-pre.c: Likewise.
7636 * tree-ssa-propagate.c: Likewise.
7637 * tree-ssa-reassoc.c: Likewise.
7638 * tree-ssa-scopedtables.c: Likewise.
7639 * tree-ssa-sink.c: Likewise.
7640 * tree-ssa-strlen.c: Likewise.
7641 * tree-ssa-structalias.c: Likewise.
7642 * tree-ssa-tail-merge.c: Likewise.
7643 * tree-ssa-ter.c: Likewise.
7644 * tree-ssa-threadupdate.c: Likewise.
7645 * tree-ssa-uncprop.c: Likewise.
7646 * tree-ssa-uninit.c: Likewise.
7647 * tree-ssa.c: Likewise.
7648 * tree-ssanames.c: Likewise.
7649 * tree-stdarg.c: Likewise.
7650 * tree-streamer-in.c: Likewise.
7651 * tree-streamer-out.c: Likewise.
7652 * tree-streamer.c: Likewise.
7653 * tree-switch-conversion.c: Likewise.
7654 * tree-tailcall.c: Likewise.
7655 * tree-vect-data-refs.c: Likewise.
7656 * tree-vect-generic.c: Likewise.
7657 * tree-vect-loop-manip.c: Likewise.
7658 * tree-vect-loop.c: Likewise.
7659 * tree-vect-patterns.c: Likewise.
7660 * tree-vect-slp.c: Likewise.
7661 * tree-vect-stmts.c: Likewise.
7662 * tree-vectorizer.c: Likewise.
7663 * tree-vrp.c: Likewise.
7666 * ubsan.c: Likewise.
7667 * value-prof.c: Likewise.
7668 * var-tracking.c: Likewise.
7669 * varasm.c: Likewise.
7670 * varpool.c: Likewise.
7671 * vmsdbgout.c: Likewise.
7672 * vtable-verify.c: Likewise.
7674 * wide-int-print.cc: Likewise.
7675 * wide-int.cc: Likewise.
7676 * xcoffout.c: Likewise.
7678 2015-10-30 James Greenhalgh <james.greenhalgh@arm.com>
7680 * doc/invoke.texi (fdump-rtl-@var{pass}): Clarify relationship
7681 between pass numbering and execution order.
7683 2015-10-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7685 * config/arm/arm.c (cortex_a9_sched_adjust_cost): Use reg_set_p to
7686 check for dependencies.
7688 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
7690 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Don't free
7693 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
7695 * real.h (format_helper): New.
7696 (real_convert, exact_real_truncate, real_from_string3, real_to_target)
7697 (real_from_target, real_nan, real_2expN, real_value_truncate)
7698 (significand_size, real_from_string2, exact_real_inverse)
7699 (exact_real_inverse, real_powi, real_trunc, real_floor, real_ceil)
7700 (real_round, real_isinteger, real_from_integer): Replace
7701 machine_mode arguments with format_helper arguments.
7702 * real.c (exact_real_inverse, real_from_string2, real_from_string3)
7703 (real_from_integer, real_nan, real_2expN, real_convert)
7704 (real_value_truncate, exact_real_truncate, real_to_target)
7705 (real_from_target, significand_size, real_powi, real_trunc)
7706 (real_floor, real_ceil, real_round, real_isinteger): Replace
7707 machine_mode arguments with format_helper arguments.
7708 (real_to_target_fmt, real_from_target_fmt): Delete.
7709 * dfp.h (decimal_real_convert): Replace mode argument with real_format.
7710 * dfp.c (decimal_to_binary, decimal_real_convert): Replace mode
7711 argument with real_format.
7712 * builtins.c (do_real_to_int_conversion): Update type of fn argument.
7714 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
7716 * fixed-value.c (check_real_for_fixed_mode, fixed_from_string)
7717 (fixed_to_decimal, fixed_convert_from_real)
7718 (real_convert_from_fixed): Fix mode arguments to real_2expN.
7720 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
7722 * real.h (REAL_MODE_FORMAT): Abort if the mode isn't a
7723 SCALAR_FLOAT_MODE_P.
7725 2015-10-30 Alan Lawrence <alan.lawrence@arm.com>
7727 * tree-sra.c (scalarizable_type_p): Comment variable-length arrays.
7728 (completely_scalarize): Comment zero-length arrays.
7729 (get_access_replacement): Correct comment re. precondition.
7731 2015-10-30 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
7733 * config/i386/i386.c (get_builtin_code_for_version): Set priority
7734 for PROCESSOR_ZNVER1.
7735 (enum processor_model): Add M_AMDFAM17H_znver1.
7736 (struct arch_names_table): Likewise.
7737 * doc/extend.texi: ADD znver1.
7739 2015-10-30 Richard Biener <rguenther@suse.de>
7741 * gimple-fold.c (fold_gimple_assign): Do not dispatch to
7742 fold () on single RHSs. Allow CONSTRUCTORS with trailing
7743 zeros to be folded to VECTOR_CSTs.
7744 * tree.c (build_vector_from_ctor): Handle VECTOR_CST elements.
7745 * fold-const.c (fold): Use build_vector_from_ctor.
7747 2015-10-30 Evandro Menezes <e.menezes@samsung.com>
7749 * config/aarch64/aarch64.md (*movhf_aarch64): Change the type of
7750 "mov %0.h[0], %1.h[0] to "neon_move".
7751 (*movtf_aarch64): Change the type of "fmov %s0, wzr" to "f_mcr".
7752 (*cmov<mode>_insn): Change the types of "mov %<w>0, {-1,1}" to
7754 (*cmovsi_insn_uxtw): Likewise.
7756 2015-10-30 Tom de Vries <tom@codesourcery.com>
7758 * tree-ssa-structalias.c (ipa_pta_execute): Declare variable from as
7759 unsigned, and initialize, and use initial value instead of hardcoded
7760 constant. Add generic constraints dumping section. Don't dump global
7761 initializers constraints dumping section if empty. Don't update
7762 variable from if unused.
7764 2015-10-29 Mikhail Maltsev <maltsevm@gmail.com>
7766 * config/alpha/alpha.c (alpha_function_arg): Use gcc_checking_assert,
7767 flag_checking and/or CHECKING_P to eliminate conditional compilation
7769 * config/arm/arm.c (arm_unwind_emit_sequence): Likewise.
7770 * config/bfin/bfin.c (hwloop_optimize): Likewise.
7771 * config/i386/i386.c (ix86_print_operand_address): Likewise.
7772 (output_387_binary_op): Likewise.
7773 * config/ia64/ia64.c (ia64_sched_init, bundling): Likewise.
7774 * config/m68k/m68k.c (m68k_sched_md_init_global): Likewise.
7775 * config/rs6000/rs6000.c (htm_expand_builtin, rs6000_emit_prologue):
7777 * config/rs6000/rs6000.h: Likewise.
7778 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
7780 2015-10-29 Kaz Kojima <kkojima@gcc.gnu.org>
7782 * config/sh/sh.opt (mfdpic): Add missing period.
7784 2015-08-29 Anatoly Sokolov <aesok@post.ru>
7786 * config/mcore/mcore.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
7787 BASE_REGISTER_RTX_P, INDEX_REGISTER_RTX_P,
7788 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
7789 * config/mcore/mcore.c (mcore_reg_ok_for_base_p,
7790 mcore_base_register_rtx_p, mcore_legitimate_index_p,
7791 mcore_legitimate_address_p): New functions.
7792 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
7794 2015-10-29 Jeff Law <law@redhat.com>
7796 * tree-ssa-scopedtables.h (const_and_copies): Remove invalidate
7798 * tree-ssa-scopedtables.h (const_and_copies::invalidate): Remove.
7799 * tree-ssa-threadedge.c
7800 (record_temporary_equivalences_from_stmts_at_dest): Remove
7801 backedge_seen argument and associated code which invalidated
7802 equivalences based on the value of that argument.
7803 (thread_through_normal_block): Corresponding changes.
7805 2015-10-29 Segher Boessenkool <segher@kernel.crashing.org>
7807 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Move this
7808 function earlier in the file.
7809 (first_reg_to_save): Use rs6000_reg_live_or_pic_offset_p instead of
7810 df_regs_ever_live_p.
7812 2015-10-29 Segher Boessenkool <segher@kernel.crashing.org>
7814 * lra-constraints.c (process_address_1): Handle (mem:BLK (scratch))
7817 2015-10-29 Richard Henderson <rth@redhat.com>
7821 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
7822 sse check to the exact conditions of PR 67609.
7824 2015-10-29 Michael Meissner <meissner@linux.vnet.ibm.com>
7826 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Split libfunc
7827 setup into 3 functions: init_float128_ibm, init_float128_ieee, and
7828 rs6000_init_libfuncs. If -mfloat128, add IFmode functions for all
7829 of the traditional names that TFmode uses for handling IEEE
7830 extended double. If -mfloat128, add KFmode functions for all of
7831 the emulation functions. If -mabi=ieeelongdouble and -mfloat128,
7832 make TFmode use the same emulation functions as KFmode.
7833 (init_float128_ibm): Likewise.
7834 (init_float128_ieee): Likewise.
7835 (rs6000_generate_compare): For IEEE 128-bit floating point
7836 comparisons, call the unordered comparison function instead of the
7837 ordered comparison function.
7838 (rs6000_expand_float128_convert): Deal with operands that are
7839 memory operands. Restructure the code to use a switch statement on
7840 the mode. Add support for TFmode defaulting to either IBM extended
7841 double or IEEE 128-bit floating point. If the underlying types are
7842 the same, use a move instead of a conversion function.
7843 (TARGET_C_MODE_FOR_SUFFIX): Define 'q' and 'Q' as the suffix to
7844 use for IEEE 128-bit floating point constants with -mfloat128.
7845 (rs6000_c_mode_for_suffix): Likewise.
7846 (TARGET_INVALID_BINARY_OP): Do not allow inter-mixing of IEEE
7847 128-bit floating point with IBM extended double floating point.
7848 (rs6000_invalid_binary_op): Likewise.
7849 (rs6000_gen_le_vsx_permute): On little endian systems generate a
7850 ROTATE insn instead of VEC_SELECT for IEEE 128-bit floating point
7851 types that can go in vector registers.
7852 (chain_contains_only_swaps): Properly swap IEEE 128-bit floating
7853 point types that can go in vector registers on little endian
7855 (mark_swaps_for_removal): Likewise.
7856 (rs6000_analyze_swaps): Likewise.
7857 (rs6000_mangle_type): Use U10__float128 for IEEE 128-bit floating point.
7859 * config/rs6000/rs6000.md (FLOAT128_SFDFTF): Delete iterator,
7860 rework IEEE 128-bit floating point insns to deal with TFmode being
7861 either IBM extended double or IEEE 128-bit floating point.
7863 (IBM128): Update iterator to add condition that the mode is IBM
7865 (IEEE128): New iterator for IEEE 128-bit floating point.
7866 (TFIFKF): Rename TFIFKF iterator to FLOAT128.
7867 (FLOAT128): Likewise.
7868 (signbit<mode>2): FLOAT128_IBM_P condition test moved into IBM128
7870 (neg<mode>2): Replace TFIFKF iterator with FLOAT128. Add support
7871 for TFmode being IEEE 128-bit floating point. Use IEEE128 iterator
7872 instead of hard coding TFmode or KFmode.
7873 (negtf2_internal): Likewise.
7874 (neg<mode>2_internal): Likewise.
7875 (abs<mode>2): Likewise.
7876 (abstf2_internal): Likewise.
7877 (abs<mode>2_internal): Likewise.
7878 (ieee_128bit_neg<mode>2): Likewise.
7879 (ieee_128bit_neg<mode>2_internal): Likewise.
7880 (ieee_128bit_abs<mode>2): Likewise.
7881 (ieee_128bit_abs<mode>2_internal): Likewise.
7882 (ieee_128bit_nabs<mode>2): Likewise.
7883 (ieee_128bit_nabs<mode>2_internal): Likewise.
7884 (extendiftf2): Add explicit conversions between 128-bit floating
7885 point types. Drop the old conversions that had become unwieldy.
7886 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
7887 (extendifkf2): Likewise.
7888 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
7889 (extendtfkf2): Likewise.
7890 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
7891 (trunciftf2): Likewise.
7892 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
7893 (truncifkf2): Likewise.
7894 (float<SDI:mode><IFKF:mode>2): Likewise.
7895 (trunckftf2): Likewise.
7896 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
7897 (trunctfif2): Likewise.
7898 (FP iterator): Allow TFmode to be IEEE 128-bit floating point.
7899 (extenddftf2): Rework 128-bit floating point conversions to
7900 properly handle -mabi=ieeelongdouble. Merge IFmode, TFmode, and
7901 KFmode expanders into one function.
7902 (extenddf<mode>2): Likewise.
7903 (extenddftf2_fprs): Likewise.
7904 (extenddf<mode>2_fprs): Likewise.
7905 (extenddftf2_vsx): Likewise.
7906 (extenddf<mode>2_vsx): Likewise.
7907 (extendsftf2): Likewise.
7908 (extendsf<mode>2): Likewise.
7909 (trunctfdf2): Likewise.
7910 (trunc<mode>df2): Likewise.
7911 (trunctfdf2_internal1): Likewise.
7912 (trunc<mode>df2_internal1): Likewise.
7913 (trunctfdf2_internal2): Likewise.
7914 (trunc<mode>df2_internal2): Likewise.
7915 (trunctfsf2): Likewise.
7916 (trunc<mode>sf2): Likewise.
7917 (trunctfsf2_fprs): Likewise.
7918 (trunc<mode>sf2_fprs): Likewise.
7919 (floatsit2f): Likewise.
7920 (floatsi<mode>2): Likewise.
7921 (fix_trunc_helper): Likewise.
7922 (fix_trunc_helper<mode>): Likewise.
7923 (fix_trunctfsi2): Likewise.
7924 (fix_trunc<mode>si2): Likewise.
7925 (fix_trunctfsi2_fprs): Likewise.
7926 (fix_trunc<mode>si2_fprs): Likewise.
7927 (fix_trunctfsi2_internal): Likewise.
7928 (fix_trunc<mode>si2_internal): Likewise.
7929 (fix_trunctfdi2): Likewise.
7930 (fix_trunc<mode>di2): Likewise.
7931 (fixuns_trunctf<mode>2): Likewise.
7932 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
7933 (floatditf2): Likewise.
7934 (floatdi<mode>2): Likewise.
7935 (floatuns<mode>tf2): Likewise.
7936 (floatuns<SDI:mode><IEEE128:mode>): Likewise.
7937 (cmptf_internal1): Use a mode iterator to add support for both
7938 types (IFmode, TFmode) that support IBM extended double.
7939 (cmp<mode>_internal1): Likewise.
7940 (cmptf_internal2): Likewise.
7941 (cmp<mode>_internal2): Likewise.
7943 * doc/extend.texi (Floating Types): Document __ibm128 and
7944 __float128 on PowerPC.
7946 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
7947 -mfloat128 and -mno-float128.
7949 2015-10-29 Michael Meissner <meissner@linux.vnet.ibm.com>
7951 * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Add IEEE 128-bit
7952 floating point modes that can go in vector registers.
7953 (MODES_TIEABLE_P): Move tests for vector modes before tests for
7954 scalar floating point, so that IEEE 128-bit floating point that
7955 can go in vector registers bind with vectors and not FP.
7956 (struct rs6000_args): Add libcall field.
7958 * config/rs6000/rs6000.opt (-mfloat128-*): Delete -mfloat128-none
7959 and -mfloat128-software switches. Replace them with a binary
7961 (-mfloat128): Likewise.
7963 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
7964 128-bit floating point types in GPRs, even if the appropriate
7965 option enabling the type was not used.
7966 (rs6000_debug_reg_global): Remove -mfloat128-{software,none}
7968 (rs6000_setup_reg_addr_masks): Do not allow pre-increment and
7969 pre-decrement on IEEE 128-bit floating point values.
7970 (rs6000_init_hard_regno_mode_ok): Change test for whether TFmode
7971 is IEEE 128-bit floating point.
7972 (rs6000_init_hard_regno_mode_ok): Add reload handlers for IEEE
7973 128-bit floating point types that can go in vector registers.
7974 (rs6000_option_override_internal): Change -mfloat128-none and
7975 -mfloat128-software to -mfloat128, and move code to be near other
7976 VSX option handling.
7977 (rs6000_option_override_internal): Disable -mfloat128 if we don't
7978 have the Altivec ABI.
7979 (rs6000_init_builtins): Don't make TFmode use either IFmode or
7980 KFmode floating point nodes. Instead, have three separate nodes.
7981 (rs6000_scalar_mode_supported_p): Add support for IFmode to allow
7982 eventually moving the long double default to IEEE 128-bit floating
7984 (rs6000_opt_masks): Add -mfloat128.
7985 (struct rs6000_opt_var): Fix typo in comment.
7986 (init_cumulative_args): Initialize libcall field in
7988 (rs6000_function_arg): Treat library functions as if they had
7989 prototypes to prevent IEEE 128-bit support functions from passing
7990 arguments in both GPRs and vector registers.
7991 (rs6000_arg_partial_bytes): Likewise.
7993 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add -mfloat128 as
7994 an option that can be turned on via -mcpu=<xxx>.
7996 * config/rs6000/rs6000-opts.h (enum float128_type_t): Delete, no
7999 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
8000 __FLOAT128__ if -mfloat128. Define __LONG_DOUBLE_IEEE128__ if long
8001 double is IEEE 128-bit. Define __LONG_DOUBLE_IBM128__ if long
8002 double is IBM extended double.
8004 * config/rs6000/predicates.md (reg_or_indexed_operand): Allow
8007 2015-10-29 Mikhail Maltsev <maltsevm@gmail.com>
8009 * genautomata.c: Use CHECKING_P instead of ENABLE_CHECKING.
8010 * genconditions.c: Define CHECKING_P in the generated code.
8011 * genextract.c: Use flag_checking in insn_extract.
8012 * gengtype.c (main): Remove conditional compilation.
8013 * gengtype.h: Likewise.
8015 2015-10-29 Jeff Law <law@redhat.com>
8017 PR tree-optimization/67892
8018 * tree-ssa-threadedge.c (simplify_controL_stmt_condition): Fix typo
8020 (thread_through_normal_block): If we have seen a backedge, then
8021 do nothing. No longer call find_jump_threads_backwards here.
8022 (thread_across_edge): Use find_jump_threads_backwards to find
8023 jump threads if the old style threader was not successful.
8024 * tree-ssa-threadbackward.c (get_gimple_control_stmt): Use
8025 gsi_last_nondebug_bb. Return NULL if the block does not end
8026 with a control statement.
8027 (find_jump_threads_backwards): Setup code moved here from
8028 tree-ssa-threadedge.c::thread_through_normal_block. Accept
8029 single edge argument instead of name & block.
8030 * tree-ssa-threadbackward.h (find_jump_threads_backwards): Update
8033 2015-10-29 Tom de Vries <tom@codesourcery.com>
8035 * fold-const.c (fold_unary_loc): Remove folding inhibition for restrict
8038 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
8040 * omp-low.c (lower_omp_target): Remove unreachable code & merge
8043 2015-10-29 Marc Glisse <marc.glisse@inria.fr>
8045 * match.pd (X-(X/Y)*Y): Properly handle conversions and commutativity.
8047 2015-10-29 Richard Sandiford <richard.sandiford@arm.com>
8049 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
8050 guard_bb0 and use guard_bb throughout.
8052 2015-10-29 Richard Sandiford <richard.sandiford@arm.com>
8054 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
8057 2015-10-29 Richard Biener <rguenther@suse.de>
8060 * fold-const.c (extract_muldiv_1): Avoid introducing undefined
8063 2015-10-29 Andrew MacLeod <amacleod@redhat.com>
8065 * alias.c: Reorder #include statements and remove duplicates.
8067 * attribs.c: Likewise.
8068 * auto-inc-dec.c: Likewise.
8069 * auto-profile.c: Likewise.
8070 * bb-reorder.c: Likewise.
8071 * bt-load.c: Likewise.
8072 * builtins.c: Likewise.
8073 * caller-save.c: Likewise.
8074 * calls.c: Likewise.
8077 * cfganal.c: Likewise.
8078 * cfgbuild.c: Likewise.
8079 * cfgcleanup.c: Likewise.
8080 * cfgexpand.c: Likewise.
8081 * cfghooks.c: Likewise.
8082 * cfgloop.c: Likewise.
8083 * cfgloopanal.c: Likewise.
8084 * cfgloopmanip.c: Likewise.
8085 * cfgrtl.c: Likewise.
8086 * cgraph.c: Likewise.
8087 * cgraphbuild.c: Likewise.
8088 * cgraphclones.c: Likewise.
8089 * cgraphunit.c: Likewise.
8090 * cilk-common.c: Likewise.
8091 * combine-stack-adj.c: Likewise.
8092 * combine.c: Likewise.
8093 * compare-elim.c: Likewise.
8094 * convert.c: Likewise.
8095 * coverage.c: Likewise.
8096 * cppbuiltin.c: Likewise.
8097 * cprop.c: Likewise.
8099 * cselib.c: Likewise.
8100 * data-streamer-in.c: Likewise.
8101 * data-streamer-out.c: Likewise.
8102 * data-streamer.c: Likewise.
8103 * dbxout.c: Likewise.
8106 * debug.c: Likewise.
8107 * df-core.c: Likewise.
8108 * df-problems.c: Likewise.
8109 * df-scan.c: Likewise.
8111 * dojump.c: Likewise.
8112 * dominance.c: Likewise.
8113 * double-int.c: Likewise.
8115 * dumpfile.c: Likewise.
8116 * dwarf2asm.c: Likewise.
8117 * dwarf2cfi.c: Likewise.
8118 * dwarf2out.c: Likewise.
8119 * emit-rtl.c: Likewise.
8120 * except.c: Likewise.
8121 * explow.c: Likewise.
8122 * expmed.c: Likewise.
8124 * final.c: Likewise.
8125 * fixed-value.c: Likewise.
8126 * fold-const.c: Likewise.
8127 * function.c: Likewise.
8128 * fwprop.c: Likewise.
8130 * generic-match-head.c: Likewise.
8131 * ggc-common.c: Likewise.
8132 * gimple-builder.c: Likewise.
8133 * gimple-expr.c: Likewise.
8134 * gimple-fold.c: Likewise.
8135 * gimple-iterator.c: Likewise.
8136 * gimple-low.c: Likewise.
8137 * gimple-match-head.c: Likewise.
8138 * gimple-pretty-print.c: Likewise.
8139 * gimple-ssa-isolate-paths.c: Likewise.
8140 * gimple-ssa-strength-reduction.c: Likewise.
8141 * gimple-streamer-in.c: Likewise.
8142 * gimple-streamer-out.c: Likewise.
8143 * gimple-walk.c: Likewise.
8144 * gimple.c: Likewise.
8145 * gimplify-me.c: Likewise.
8146 * gimplify.c: Likewise.
8147 * godump.c: Likewise.
8148 * graph.c: Likewise.
8149 * graphite-poly.c: Likewise.
8150 * haifa-sched.c: Likewise.
8151 * hw-doloop.c: Likewise.
8152 * ifcvt.c: Likewise.
8153 * incpath.c: Likewise.
8154 * init-regs.c: Likewise.
8155 * internal-fn.c: Likewise.
8156 * ipa-chkp.c: Likewise.
8157 * ipa-comdats.c: Likewise.
8158 * ipa-cp.c: Likewise.
8159 * ipa-devirt.c: Likewise.
8160 * ipa-icf-gimple.c: Likewise.
8161 * ipa-icf.c: Likewise.
8162 * ipa-inline-analysis.c: Likewise.
8163 * ipa-inline-transform.c: Likewise.
8164 * ipa-inline.c: Likewise.
8165 * ipa-polymorphic-call.c: Likewise.
8166 * ipa-profile.c: Likewise.
8167 * ipa-prop.c: Likewise.
8168 * ipa-pure-const.c: Likewise.
8169 * ipa-ref.c: Likewise.
8170 * ipa-reference.c: Likewise.
8171 * ipa-split.c: Likewise.
8172 * ipa-utils.c: Likewise.
8173 * ipa-visibility.c: Likewise.
8175 * ira-build.c: Likewise.
8176 * ira-color.c: Likewise.
8177 * ira-conflicts.c: Likewise.
8178 * ira-costs.c: Likewise.
8179 * ira-emit.c: Likewise.
8180 * ira-lives.c: Likewise.
8183 * langhooks.c: Likewise.
8185 * lists.c: Likewise.
8186 * loop-doloop.c: Likewise.
8187 * loop-init.c: Likewise.
8188 * loop-invariant.c: Likewise.
8189 * loop-iv.c: Likewise.
8190 * loop-unroll.c: Likewise.
8191 * lower-subreg.c: Likewise.
8192 * lra-assigns.c: Likewise.
8193 * lra-coalesce.c: Likewise.
8194 * lra-constraints.c: Likewise.
8195 * lra-eliminations.c: Likewise.
8196 * lra-lives.c: Likewise.
8197 * lra-remat.c: Likewise.
8198 * lra-spills.c: Likewise.
8200 * lto-cgraph.c: Likewise.
8201 * lto-compress.c: Likewise.
8202 * lto-opts.c: Likewise.
8203 * lto-section-in.c: Likewise.
8204 * lto-section-out.c: Likewise.
8205 * lto-streamer-in.c: Likewise.
8206 * lto-streamer-out.c: Likewise.
8207 * lto-streamer.c: Likewise.
8208 * mode-switching.c: Likewise.
8209 * modulo-sched.c: Likewise.
8210 * omp-low.c: Likewise.
8211 * optabs.c: Likewise.
8212 * opts-global.c: Likewise.
8213 * passes.c: Likewise.
8214 * plugin.c: Likewise.
8215 * postreload-gcse.c: Likewise.
8216 * postreload.c: Likewise.
8217 * predict.c: Likewise.
8218 * print-tree.c: Likewise.
8219 * profile.c: Likewise.
8221 * realmpfr.c: Likewise.
8222 * recog.c: Likewise.
8224 * reg-stack.c: Likewise.
8225 * regcprop.c: Likewise.
8226 * reginfo.c: Likewise.
8227 * regrename.c: Likewise.
8228 * regstat.c: Likewise.
8229 * reload.c: Likewise.
8230 * reload1.c: Likewise.
8231 * reorg.c: Likewise.
8232 * resource.c: Likewise.
8233 * rtl-chkp.c: Likewise.
8234 * rtl-error.c: Likewise.
8235 * rtlanal.c: Likewise.
8236 * rtlhooks.c: Likewise.
8237 * sanopt.c: Likewise.
8238 * sched-deps.c: Likewise.
8239 * sched-ebb.c: Likewise.
8240 * sched-rgn.c: Likewise.
8242 * shrink-wrap.c: Likewise.
8243 * simplify-rtx.c: Likewise.
8244 * stack-ptr-mod.c: Likewise.
8245 * statistics.c: Likewise.
8247 * stor-layout.c: Likewise.
8248 * store-motion.c: Likewise.
8249 * stringpool.c: Likewise.
8250 * symtab.c: Likewise.
8251 * target-globals.c: Likewise.
8252 * targhooks.c: Likewise.
8253 * toplev.c: Likewise.
8254 * tracer.c: Likewise.
8255 * trans-mem.c: Likewise.
8256 * tree-affine.c: Likewise.
8257 * tree-call-cdce.c: Likewise.
8258 * tree-cfg.c: Likewise.
8259 * tree-cfgcleanup.c: Likewise.
8260 * tree-chkp-opt.c: Likewise.
8261 * tree-chkp.c: Likewise.
8262 * tree-chrec.c: Likewise.
8263 * tree-complex.c: Likewise.
8264 * tree-data-ref.c: Likewise.
8265 * tree-dfa.c: Likewise.
8266 * tree-diagnostic.c: Likewise.
8267 * tree-dump.c: Likewise.
8268 * tree-eh.c: Likewise.
8269 * tree-emutls.c: Likewise.
8270 * tree-if-conv.c: Likewise.
8271 * tree-inline.c: Likewise.
8272 * tree-into-ssa.c: Likewise.
8273 * tree-iterator.c: Likewise.
8274 * tree-loop-distribution.c: Likewise.
8275 * tree-nested.c: Likewise.
8276 * tree-nrv.c: Likewise.
8277 * tree-object-size.c: Likewise.
8278 * tree-outof-ssa.c: Likewise.
8279 * tree-parloops.c: Likewise.
8280 * tree-phinodes.c: Likewise.
8281 * tree-predcom.c: Likewise.
8282 * tree-pretty-print.c: Likewise.
8283 * tree-profile.c: Likewise.
8284 * tree-scalar-evolution.c: Likewise.
8285 * tree-sra.c: Likewise.
8286 * tree-ssa-address.c: Likewise.
8287 * tree-ssa-alias.c: Likewise.
8288 * tree-ssa-ccp.c: Likewise.
8289 * tree-ssa-coalesce.c: Likewise.
8290 * tree-ssa-copy.c: Likewise.
8291 * tree-ssa-dce.c: Likewise.
8292 * tree-ssa-dom.c: Likewise.
8293 * tree-ssa-dse.c: Likewise.
8294 * tree-ssa-forwprop.c: Likewise.
8295 * tree-ssa-ifcombine.c: Likewise.
8296 * tree-ssa-live.c: Likewise.
8297 * tree-ssa-loop-ch.c: Likewise.
8298 * tree-ssa-loop-im.c: Likewise.
8299 * tree-ssa-loop-ivcanon.c: Likewise.
8300 * tree-ssa-loop-ivopts.c: Likewise.
8301 * tree-ssa-loop-manip.c: Likewise.
8302 * tree-ssa-loop-niter.c: Likewise.
8303 * tree-ssa-loop-prefetch.c: Likewise.
8304 * tree-ssa-loop-unswitch.c: Likewise.
8305 * tree-ssa-loop.c: Likewise.
8306 * tree-ssa-math-opts.c: Likewise.
8307 * tree-ssa-operands.c: Likewise.
8308 * tree-ssa-phiopt.c: Likewise.
8309 * tree-ssa-phiprop.c: Likewise.
8310 * tree-ssa-pre.c: Likewise.
8311 * tree-ssa-propagate.c: Likewise.
8312 * tree-ssa-reassoc.c: Likewise.
8313 * tree-ssa-sccvn.c: Likewise.
8314 * tree-ssa-scopedtables.c: Likewise.
8315 * tree-ssa-sink.c: Likewise.
8316 * tree-ssa-strlen.c: Likewise.
8317 * tree-ssa-structalias.c: Likewise.
8318 * tree-ssa-tail-merge.c: Likewise.
8319 * tree-ssa-ter.c: Likewise.
8320 * tree-ssa-threadedge.c: Likewise.
8321 * tree-ssa-threadupdate.c: Likewise.
8322 * tree-ssa-uncprop.c: Likewise.
8323 * tree-ssa-uninit.c: Likewise.
8324 * tree-ssa.c: Likewise.
8325 * tree-ssanames.c: Likewise.
8326 * tree-stdarg.c: Likewise.
8327 * tree-streamer-in.c: Likewise.
8328 * tree-streamer-out.c: Likewise.
8329 * tree-streamer.c: Likewise.
8330 * tree-switch-conversion.c: Likewise.
8331 * tree-tailcall.c: Likewise.
8332 * tree-vect-data-refs.c: Likewise.
8333 * tree-vect-generic.c: Likewise.
8334 * tree-vect-loop-manip.c: Likewise.
8335 * tree-vect-loop.c: Likewise.
8336 * tree-vect-patterns.c: Likewise.
8337 * tree-vect-slp.c: Likewise.
8338 * tree-vect-stmts.c: Likewise.
8339 * tree-vectorizer.c: Likewise.
8340 * tree-vrp.c: Likewise.
8343 * ubsan.c: Likewise.
8344 * value-prof.c: Likewise.
8345 * var-tracking.c: Likewise.
8346 * varasm.c: Likewise.
8347 * varpool.c: Likewise.
8348 * vtable-verify.c: Likewise.
8350 * wide-int-print.cc: Likewise.
8351 * wide-int.cc: Likewise.
8352 * xcoffout.c: Likewise.
8354 2015-10-29 H.J. Lu <hongjiu.lu@intel.com>
8356 * Makefile.in (NO_PIE_CFLAGS): New.
8357 (NO_PIE_FLAG): Likewise.
8358 (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
8359 (NO_PIE_FLAG_FOR_BUILD): Likewise.
8360 (BUILD_NO_PIE_CFLAGS): Likewise.
8361 (BUILD_NO_PIE_FLAG): Likewise.
8362 (COMPILER): Replace @NO_PIE_CFLAGS@ with $(NO_PIE_CFLAGS).
8363 (LINKER): Replace @NO_PIE_FLAG@ with $(NO_PIE_FLAG).
8364 (BUILD_CFLAGS): Replace @NO_PIE_CFLAGS@ with
8365 $(BUILD_NO_PIE_CFLAGS).
8366 (BUILD_CXXFLAGS): Likewise.
8367 (BUILD_LDFLAGS ): Replace @NO_PIE_FLAG@ with
8368 $(BUILD_NO_PIE_FLAG).
8369 * configure.ac (BUILD_NO_PIE_CFLAGS): New. AC_SUBST.
8370 (BUILD_NO_PIE_FLAG): Likewise.
8371 (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
8372 (NO_PIE_FLAG_FOR_BUILD): Likewise.
8373 * configure: Regenerated.
8375 2015-10-29 Richard Biener <rguenther@suse.de>
8378 * fold-const.c (fold_cond_expr_with_comparison): Do not fold
8379 unsigned conditonal negation to ABS_EXPR.
8381 2015-10-29 Richard Biener <rguenther@suse.de>
8383 * gimple-match-head.c (gimple_simplify): Remove premature checking
8384 of builtin_decl_implicit of function calls we simplify.
8386 2015-10-29 Bin Cheng <bin.cheng@arm.com>
8388 * tree-ssa-loop-ivopts.c (split_address_cost): Check depends_on.
8389 (get_computation_cost_at): Ditto.
8390 (determine_use_iv_cost_address): Pass NULL for arguments depends_on
8393 2015-10-28 Tom de Vries <tom@codesourcery.com>
8395 * tree-ssa-structalias.c (intra_create_variable_infos): Remove
8398 2015-10-28 Jason Merrill <jason@redhat.com>
8400 * Makefile.in (TAGS): Include libcpp and libiberty.
8402 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
8404 * omp-low.c (MASK_GANG, MASK_WORKER, MASK_VECTOR): Delete.
8405 (extract_omp_for_data): Remove OpenACC special handling of
8408 * config/nvptx/nvptx.c (nvptx_print_operand): Remove 'd' case.
8409 (struct parallel): Update comment.
8410 (nvptx_reorg): Likewise.
8411 (nvptx_neuter): Cleanup whitespace.
8413 2015-10-28 Richard Henderson <rth@redhat.com>
8415 * tree-eh.c (mark_reachable_handlers): Fix typo in assert.
8417 2015-10-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8420 * config/avr/predicates.md (low_io_address_operand): Don't
8421 consider MODE when computing upper bound.
8422 (io_address_operand): Likewise.
8424 2015-10-28 Jan Hubicka <hubicka@ucw.cz>
8426 * fold-const.c (operand_equal_p): Do not verify that types are
8427 compatible for MEM_REFs.
8429 2015-10-28 Richard Biener <rguenther@suse.de>
8431 * gimple-match-head.c (gimple_simplify): Allow VECTOR_CSTs
8432 in simplifying VEC_COND_EXPR conditions.
8434 2015-10-28 Tom de Vries <tom@codesourcery.com>
8436 * tree-ssa-structalias.c (intra_create_variable_infos): Don't iterate
8437 into vi_next of a full_var.
8439 2015-10-28 Tom de Vries <tom@codesourcery.com>
8441 * tree-ssa-structalias.c (new_var_info, make_heapvar)
8442 (make_constraint_from_restrict, make_constraint_from_global_restrict)
8443 (create_function_info_for, create_variable_info_for_1)
8444 (create_variable_info_for): Add and handle add_id parameter.
8445 (get_call_vi, new_scalar_tmp_constraint_exp, handle_rhs_call)
8446 (init_base_vars): Add extra argument to calls to new_var_info.
8447 (get_vi_for_tree): Add extra argument to call to
8448 create_variable_info_for.
8449 (process_constraint, do_deref, process_all_all_constraints): Add extra
8450 argument to calls to new_scalar_tmp_constraint_exp.
8451 (handle_lhs_call, find_func_aliases_for_builtin_call): Add extra
8452 argument to calls to make_heapvar.
8453 (make_restrict_var_constraints): Add extra argument to call to
8454 make_constraint_from_global_restrict.
8455 (intra_create_variable_infos): Add extra argument to call to
8456 create_variable_info_for_1.
8457 (ipa_pta_execute): Add extra argument to call to
8458 create_function_info_for.
8460 2015-10-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8462 * config/aarch64/aarch64.md (call, call_value, sibcall): Handle noplt.
8463 (sibcall_value): Likewise.
8465 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
8467 * config/nvptx/nvptx.h (struct machine_function): Add
8469 * config/nvptx/nvptx-protos.h (nvptx_expand_oacc_fork,
8470 nvptx_expand_oacc_join): Declare.
8471 * config/nvptx/nvptx.md (UNSPEC_NTID, UNSPEC_TID): Delete.
8472 (UNSPEC_DIM_SIZE, UNSPEC_SHARED_DATA, UNSPEC_BIT_CONV,
8473 UNSPEC_SHUFFLE, UNSPEC_BR_UNIFIED): New.
8474 (UNSPECV_BARSYNC, UNSPECV_DIM_POS, UNSPECV_FORK, UNSPECV_FORKED,
8475 UNSPECV_JOINING, UNSPECV_JOIN): New.
8476 (BITS, BITD): New mode iterators.
8477 (br_true_uni, br_false_uni): New.
8478 (*oacc_ntid_insn, oacc_ntid, *oacc_tid_insn, oacc_tid): Delete.
8479 (oacc_dim_size, oacc_dim_pos): New.
8480 (nvptx_fork, nvptx_forked, nvptx_joining, nvptx_join): New.
8481 (oacc_fork, oacc_join): New.
8482 (nvptx_shuffle<mode>, unpack<mode>si2, packsi<mode>2): New.
8483 (worker_load<mode>, worker_store<mode>): New.
8484 (nvptx_barsync): New.
8485 * config/nvptx/nvptx.c: Include gimple.h & dumpfile.h.
8486 (SHUFFLE_UP, SHUFFLE_DOWN, SHUFFLE_BFLY, SHUFFLE_IDX): Define.
8487 (worker_bcast_hwm, worker_bcast_align, worker_bcast_name,
8488 worker_bcast_sym): New.
8489 (nvptx_option_override): Initialize worker broadcast buffer.
8490 (nvptx_emit_forking, nvptx_emit_joining): New.
8491 (nvptx_init_axis_predicate): New.
8492 (nvptx_declare_function_name): Init axis predicates.
8493 (nvptx_expand_call): Add fork/join markers around routine call.
8494 (nvptx_expand_oacc_fork, nvptx_expand_oacc_join): New.
8495 (nvptx_gen_unpack, nvptx_gen_pack, nvptx_gen_shuffle): New.
8496 (nvptx_gen_vcast): New.
8497 (struct wcast_data_t): New.
8498 (enum propagate_mask): New.
8499 (nvptx_gen_wcast): New.
8500 (nvptx_print_operand): Add 'S' case.
8501 (struct parallel): New.
8502 (parallel::parallel, parallel::~parallel): New.
8503 (bb_insn_map_t, insn_bb_t, insn_bb_vec_t): New typedefs.
8504 (nvptx_split_blocks, nvptx_discover_pre, nvptx_dump_pars,
8505 nvptx_find_par, nvptx_discover_pars): New.
8506 (nvptx_propagate): New.
8507 (vprop_gen, nvptx_vpropagate): New.
8508 (wprop_gen, nvptx_wpropagate): New.
8510 (nvptx_single, nvptx_skip_par): New.
8511 (nvptx_process_pars, nvptx_neuter_pars): New.
8512 (ntptx_reorg): Split blocks, generate parallel structure, apply
8514 (nvptx_cannot_copy_insn_p): New.
8515 (nvptx_file_end): Emit worker broadcast decl.
8516 (nvptx_goacc_fork_join): New.
8517 (TARGET_CANNOT_COPY_INSN_P): Override.
8518 (TARGET_GOACC_FORK_JOIN): Override.
8520 2015-10-28 Richard Biener <rguenther@suse.de>
8522 * fold-const.c (negate_expr_p): Adjust the division case to
8523 properly avoid introducing undefined overflow.
8524 (fold_negate_expr): Likewise.
8526 2015-10-28 Richard Biener <rguenther@suse.de>
8528 PR tree-optimization/65962
8529 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
8530 Avoid creating loop carried dependences also for outer loops
8531 of the loop a use to replace is in.
8533 2015-10-28 Richard Biener <rguenther@suse.de>
8535 * common.opt (fchecking): New flag controlling flag_checking.
8536 * passes.c (verify_curr_properties): Drop DEBUG_FUNCTION.
8537 * timevar.c (timer::print): Adjust output.
8538 * doc/invoke.texi (fchecking): Document.
8540 2015-10-28 Richard Biener <rguenther@suse.de>
8543 * fold-const.c (negate_expr_p): We cannot negate plus or minus
8544 if overflow is not wrapping. Likewise multiplication unless
8545 one operand is constant and not power of two.
8546 (fold_negate_expr): Adjust accordingly.
8548 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
8550 * omp-low.c (struct omp_context): Remove gwv_below, gwv_this
8552 (is_oacc_parallel, is_oacc_kernels): New.
8553 (enclosing_target_ctx): May return NULL.
8554 (ctx_in_oacc_kernels_region): New.
8555 (check_oacc_kernel_gwv): New.
8556 (oacc_loop_or_target_p): Delete.
8557 (scan_omp_for): Don't calculate gwv mask. Check parallel clause
8558 operands. Strip reductions fro kernels.
8559 (scan_omp_target): Don't calculate gwv mask.
8560 (lower_oacc_head_mark, lower_oacc_loop_marker,
8561 lower_oacc_head_tail): New.
8562 (struct oacc_collapse): New.
8563 (expand_oacc_collapse_init, expand_oacc_collapse_vars): New.
8564 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
8565 Remove OpenACC handling.
8566 (expand_oacc_for): New.
8567 (expand_omp_for): Call expand_oacc_for.
8568 (lower_omp_for): Call lower_oacc_head_tail.
8570 2015-10-27 Mikhail Maltsev <maltsevm@gmail.com>
8572 * attribs.c (check_attribute_tables): New function, broken out from...
8573 (init_attributes): Use it.
8574 * cfgcleanup.c (try_optimize_cfg): Use flag_checking, CHECKING_P
8575 gcc_checking_assert and checking_* functions to eliminate
8576 ENABLE_CHECKING conditionals.
8577 * cfgexpand.c (expand_goto, expand_debug_expr): Likewise.
8578 (pass_expand::execute): Likewise.
8579 * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
8580 * cgraphunit.c (mark_functions_to_output): Likewise.
8581 (cgraph_node::expand_thunk): Likewise.
8582 (symbol_table::compile): Likewise.
8583 * ddg.c (add_cross_iteration_register_deps): Likewise.
8584 (create_ddg_all_sccs): Likewise.
8585 * df-core.c (df_finish_pass, df_analyze): Likewise.
8586 * diagnostic-core.h: Likewise.
8587 * diagnostic.c (diagnostic_report_diagnostic): Likewise.
8588 * dominance.c (calculate_dominance_info): Likewise.
8589 * dwarf2out.c (add_AT_die_ref): Likewise.
8590 (const_ok_for_output_1, mem_loc_descriptor): Likewise.
8591 (loc_list_from_tree, gen_lexical_block_die): Likewise.
8592 gen_type_die_with_usage, gen_type_die): Likewise.
8593 (dwarf2out_decl): Likewise.
8594 * emit-rtl.c (verify_rtx_sharing, reorder_insns_nobb): Likewise.
8595 * except.c (duplicate_eh_regions): Likewise.
8596 * fwprop.c (register_active_defs, update_df_init): Likewise.
8597 (fwprop_init, fwprop_done): Likewise.
8598 (update_uses): Likewise.
8599 * ggc-page.c (ggc_grow): Likewise.
8600 * gimplify.c (gimplify_body): Likewise.
8601 (gimplify_hasher::equal): Likewise.
8602 * graphite-isl-ast-to-gimple.c (graphite_verify): Likewise.
8603 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form):
8605 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Likewise.
8606 (rewrite_cross_bb_scalar_deps_out_of_ssa): Likwise.
8607 * hash-table.h (::find_empty_slot_for_expand): Likewise.
8608 * ifcvt.c (if_convert): Likewise.
8609 * ipa-cp.c (ipcp_propagate_stage): Likewise.
8610 * ipa-devirt.c (type_in_anonymous_namespace_p): Likewise.
8611 (odr_type_p, odr_types_equivalent_p): Likewise.
8612 (add_type_duplicate, get_odr_type): Likewise.
8613 * ipa-icf.c (sem_item_optimizer::execute): Likewise.
8614 (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
8615 (sem_item_optimizer::verify_classes): Likewise.
8616 (sem_item_optimizer::traverse_congruence_split): Likewise.
8617 (sem_item_optimizer::checking_verify_classes): New.
8618 * ipa-icf.h (sem_item_optimizer::checking_verify_classes): Add new
8620 * cfgrtl.c (commit_edge_insertions): Likewise.
8621 (fixup_reorder_chain, cfg_layout_finalize): Likewise.
8622 (rtl_flow_call_edges_add): Likewise.
8623 * cgraph.c (symbol_table::create_edge): Likewise.
8624 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
8625 * cgraph.h (symtab_node): Likewise.
8626 (symtab_node::checking_verify_symtab_nodes): Define.
8627 (cgraph_node::checking_verify_cgraph_nodes): Define.
8628 * cfghooks.h (checking_verify_flow_info): Define.
8629 * cfgloop.h (checking_verify_loop_structure): Define.
8630 * dominance.h (checking_verify_dominators): Define.
8631 * et-forest.c: Fix comment.
8632 * ipa-inline-analysis.c (compute_inline_parameters): Use flag_checking,
8633 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
8634 ENABLE_CHECKING conditionals.
8635 * ipa-inline-transform.c (save_inline_function_body): Likewise.
8636 * ipa-inline.c (inline_small_functions): Likewise.
8637 (early_inliner): Likewise.
8638 * ipa-inline.h (estimate_edge_growth): Likewise.
8639 * ipa-visibility.c (function_and_variable_visibility): Likewise.
8640 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
8641 (ipa_single_use): Likewise.
8642 * ira-int.h: Likewise.
8643 * ira.c (ira): Likewise.
8644 * loop-doloop.c (doloop_optimize_loops): Likewise.
8645 * loop-init.c (loop_optimizer_init, fix_loop_structure): Likewise.
8646 * loop-invariant.c (move_loop_invariants): Likewise.
8647 * lra-assigns.c (lra_assign): Likewise.
8648 * lra-constraints.c (lra_constraints): Likewise.
8649 * lra-eliminations.c (lra_eliminate): Likewise.
8650 * lra-int.h (struct lra_reg): Likewise.
8651 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
8652 (lra_create_live_ranges_1): Likewise.
8653 * lra-remat.c (create_remat_bb_data): Likewise.
8654 * lra.c (lra_update_insn_recog_data, restore_scratches): Likewise.
8656 (check_rtl): Always define. Remove incorrect guard around
8657 extract_constrain_insn call.
8658 * lto-cgraph.c (input_cgraph_1: Use flag_checking,
8659 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
8660 ENABLE_CHECKING conditionals.
8661 * lto-streamer-out.c (DFS::DFS): Likewise.
8662 (lto_output): Likewise.
8663 * lto-streamer.c (lto_streamer_init): Likewise.
8664 * omp-low.c (scan_omp_target, expand_omp_taskreg): Likewise.
8665 expand_omp_target, execute_expand_omp): Likewise.
8666 (lower_omp_target): Likewise.
8667 * passes.c (execute_function_todo): Likewise.
8668 (execute_todo, execute_one_pass): Likewise.
8669 (verify_curr_properties): Always define.
8670 * predict.c (tree_estimate_probability: Use flag_checking,
8671 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
8672 ENABLE_CHECKING conditionals.
8673 (propagate_freq): Likewise.
8674 * pretty-print.c (pp_format): Likewise.
8675 * real.c (real_to_decimal_for_mode): Likewise.
8676 * recog.c (split_all_insns): Likewise.
8677 * regcprop.c (kill_value_one_regno): Likewise.
8678 (copy_value): Likewise.
8679 (validate_value_data): Define unconditionally.
8680 * reload.c: Fix comment.
8681 * timevar.c: Include options.h
8682 * tree-ssa.h (checking_verify_ssa): Define.
8683 * tree-ssa-loop-manip.h (checking_verify_loop_closed_ssa): Define.
8684 * sched-deps.c (CHECK): Remove unused macro.
8685 (add_or_update_dep_1, sd_add_dep: Use flag_checking, CHECKING_P
8686 gcc_checking_assert and checking_* functions to eliminate
8687 ENABLE_CHECKING conditionals.
8688 * sel-sched-ir.c (free_regset_pool, tidy_control_flow): Likewise.
8689 * sel-sched.c (struct moveop_static_params): Likewise.
8690 (find_best_reg_for_expr, move_cond_jump): Likewise.
8691 (move_op_orig_expr_not_found): Likewise.
8692 (code_motion_process_successors, move_op): Likewise.
8693 * ssa-iterators.h (first_readonly_imm_use): Likewise.
8694 (next_readonly_imm_use): Likewise.
8695 * store-motion.c (compute_store_table): Likewise.
8696 * symbol-summary.h (function_summary::function_summary): Likewise.
8697 * target.h (cumulative_args_t): Likewise.
8698 (get_cumulative_args, pack_cumulative_args): Likewise.
8699 * timevar.c: (timer::print): Likewise.
8700 * trans-mem.c (ipa_tm_execute): Likewise.
8701 * tree-cfg.c (move_stmt_op): Likewise.
8702 (move_sese_region_to_fn): Likewise.
8703 (gimple_flow_call_edges_add): Likewise.
8704 * tree-cfgcleanup.c (cleanup_tree_cfg_noloop, repair_loop_structures):
8706 * tree-eh.c (remove_unreachable_handlers): Likewise.
8707 * tree-if-conv.c (pass_if_conversion::execute): Likewise.
8708 * tree-inline.c (expand_call_inline, optimize_inline_calls): Likewise.
8709 * tree-into-ssa.c (update_ssa): Likewise.
8710 * tree-loop-distribution.c (pass_loop_distribution::execute): Likewise.
8711 * tree-outof-ssa.c (eliminate_useless_phis, rewrite_trees): Likewise.
8712 * tree-parloops.c (pass_parallelize_loops::execute): Likewise.
8713 * tree-predcom.c (suitable_component_p): Likewise.
8714 * tree-profile.c (gimple_gen_const_delta_profiler): Likewise.
8715 * tree-ssa-alias.c (refs_may_alias_p_1): Likewise.
8716 * tree-ssa-live.c (verify_live_on_entry): Likewise.
8717 * tree-ssa-live.h (register_ssa_partition): Likewise.
8718 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Likewise.
8719 * tree-ssa-loop-manip.c (add_exit_phi): Likewise.
8720 (tree_transform_and_unroll_loop): Likewise.
8721 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
8722 * tree-ssa-operands.c (get_expr_operands): Likewise.
8723 * tree-ssa-propagate.c (replace_exp_1): Likewise.
8724 * tree-ssa-structalias.c (rewrite_constraints): Likewise.
8725 * tree-ssa-ter.c (free_temp_expr_table): Likewise.
8726 * tree-ssa-threadupdate.c (duplicate_thread_path): Likewise.
8727 * tree-ssanames.c (release_ssa_name_fn): Likewise.
8728 * tree-stdarg.c (expand_ifn_va_arg): Likewise.
8729 * tree-vect-loop-manip.c
8730 (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
8731 (slpeel_checking_verify_cfg_after_peeling): Likewise.
8732 (vect_do_peeling_for_loop_bound): Likewise.
8733 (vect_do_peeling_for_alignment): Likewise.
8734 * tree-vrp.c (supports_overflow_infinity): Likewise.
8735 (set_value_range): Likewise.
8736 * tree.c (free_lang_data_in_cgraph): Likewise.
8737 * value-prof.c (gimple_remove_histogram_value): Likewise.
8738 (free_hist): Likewise.
8739 * var-tracking.c (canonicalize_values_star): Likewise.
8740 (compute_bb_dataflow, vt_find_locations, vt_emit_notes): Likewise.
8742 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
8744 * internal-fn.def (IFN_GOACC_DIM_SIZE, IFN_GOACC_DIM_POS,
8745 IFN_GOACC_LOOP): New.
8746 * internal-fn.h (enum ifn_unique_kind): Add IFN_UNIQUE_OACC_FORK,
8747 IFN_UNIQUE_OACC_JOIN, IFN_UNIQUE_OACC_HEAD_MARK,
8748 IFN_UNIQUE_OACC_TAIL_MARK.
8749 (enum ifn_goacc_loop_kind): New.
8750 * internal-fn.c (expand_UNIQUE): Add IFN_UNIQUE_OACC_FORK,
8751 IFN_UNIQUE_OACC_JOIN cases.
8752 (expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS): New.
8753 (expand_GOACC_LOOP): New.
8754 * target-insns.def (oacc_dim_pos, oacc_dim_size): New.
8755 * omp-low.c: Include gimple-pretty-print.h.
8756 (struct oacc_loop): New.
8757 (enum oacc_loop_flags): New.
8758 (oacc_thread_numbers): New.
8759 (oacc_xform_loop): New.
8760 (new_oacc_loop_raw, new_oacc_loop_outer, new_oacc_loop,
8761 new_oacc_loop_routine, finish_oacc_loop, free_oacc_loop): New,
8762 (dump_oacc_loop_part, dump_oacc_loop, debug_oacc_loop): New,
8763 (oacc_loop_discover_walk, oacc_loop_sibling_nrevers,
8764 oacc_loop_discovery): New.
8765 (oacc_loop_xform_head_tail, oacc_loop_xform_loop,
8766 oacc_loop_process): New.
8767 (oacc_loop_fixed_partitions, oacc_loop_partition): New.
8768 (execute_oacc_device_lower): Discover & process loops. Process
8770 * target.def (goacc.fork_join): Change sense of hook, clarify
8772 * doc/tm.texi: Regenerated.
8774 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
8776 * target-insns.def (oacc_fork, oacc_join): Define.
8777 * target.def (goacc.validate_dims): Adjust doc to avoid warning.
8778 (goacc.fork_join): New GOACC hook.
8779 * targhooks.h (default_goacc_fork_join): Declare.
8780 * omp-low.c (default_goacc_forkjoin): New.
8781 * doc/tm.texi.in (TARGET_GOACC_FORK_JOIN): Add.
8782 * doc/tm.texi: Regenerate.
8784 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
8786 * omp-low.c (oacc_init_rediction_array): New.
8787 (oacc_initialize_reduction_data): Initialize array.
8789 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
8791 * omp-low.c (pass_oacc_device_lower::execute): Ignore errors.
8793 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
8795 * internal-fn.c (expand_UNIQUE): New.
8796 * internal-fn.h (enum ifn_unique_kind): New.
8797 * internal-fn.def (IFN_UNIQUE): New.
8798 * target-insns.def (unique): Define.
8799 * gimple.h (gimple_call_internal_unique_p): New.
8800 * gimple.c (gimple_call_same_target_p): Check internal fn
8802 * tracer.c (ignore_bb_p): Check for IFN_UNIQUE call.
8803 * tree-ssa-threadedge.c
8804 (record_temporary_equivalences_from_stmts): Likewise.
8805 * tree-cfg.c (gmple_call_initialize_ctrl_altering): Likewise.
8807 2015-10-27 Richard Henderson <rth@redhat.com>
8810 * config/i386/i386.c (ix86_cannot_change_mode_class): Disallow
8811 narrowing subregs on SSE and MMX registers.
8812 * doc/tm.texi.in (CANNOT_CHANGE_MODE_CLASS): Clarify when subregs that
8813 appear to be sub-words of multi-register pseudos must be rejected.
8814 * doc/tm.texi: Regenerate.
8816 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8819 * config/aarch64/aarch64.md (*movsi_aarch64): Check that
8820 operands[0] is a reg before taking its REGNO in split condition.
8821 (*movdi_aarch64): Likewise.
8823 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8825 * config/aarch64/aarch64.c (aarch64_output_simd_mov_immediate):
8826 Handle floating point inner modes properly.
8828 2015-10-27 Alan Hayward <alan.hayward@arm.com>
8831 (vectorizable_live_operation): Change iterator.
8833 2015-10-27 Abderrazek Zaafrani <a.zaafrani@samsung.com>
8834 Aditya Kumar <aditya.k7@samsung.com>
8836 * graphite-optimize-isl.c (get_schedule_for_node_st): New callback
8837 function to schedule based on isl_schedule_node.
8838 (get_schedule_map_st): New schedule optimizer based on
8840 (scop_get_domains): New. Return the isl_union_set containing the
8841 domains of all the pbbs.
8842 (optimize_isl): Call the new function get_schedule_map_st for isl-0.15
8844 2015-10-27 H.J. Lu <hongjiu.lu@intel.com>
8847 * calls.c (prepare_call_address): Don't handle -fno-plt here.
8848 * config/i386/i386.c (ix86_expand_call): Generate indirect call
8849 via GOT for -fno-plt. Support indirect call via GOT for x32.
8850 * config/i386/predicates.md (sibcall_memory_operand): Allow
8853 2015-10-27 Richard Biener <rguenther@suse.de>
8855 PR tree-optimization/68104
8856 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
8857 strided access check ...
8858 (vect_compute_data_refs_alignment): ... here.
8860 2015-10-27 Daniel Jacobowitz <dan@codesourcery.com>
8861 Joseph Myers <joseph@codesourcery.com>
8862 Mark Shinwell <shinwell@codesourcery.com>
8863 Andrew Stubbs <ams@codesourcery.com>
8864 Rich Felker <dalias@libc.org>
8866 * config.gcc: Handle --enable-fdpic.
8867 * config/sh/constraints.md (Ccl): New constraint.
8868 * config/sh/linux.h (SUBTARGET_LINK_EMUL_SUFFIX): Handle -mfdpic.
8869 * config/sh/sh-c.c (sh_cpu_cpp_builtins): Add __FDPIC__ and
8871 * config/sh/sh-mem.cc (expand_block_move): Support FDPIC for calls to
8873 * config/sh/sh-protos.h (function_symbol_result): New struct.
8874 (function_symbol): Return function_symbol_result.
8875 (sh_get_fdpic_reg_initial_val, sh_load_function_descriptor): New
8877 * config/sh/sh.c (TARGET_ASM_INTEGER, sh_assemble_integer): Implement
8879 (TARGET_CANNOT_FORCE_CONST_MEM, sh_cannot_force_const_mem_p): Likewise.
8880 (sh_option_override): Force -fPIC if FDPIC is in effect.
8881 (sh_asm_output_addr_const_extra): Add UNSPEC_GOTFUNCDESC and
8882 UNSPEC_GOTOFFFUNCDESC cases.
8883 (prepare_move_operands): Use FDPIC initial GOT register for
8884 TLS-related GOT access; inhibit cross-section address offset constants
8886 (sh_assemble_integer): New function.
8887 (sh_cannot_copy_insn_p): Inhibit copying insns that are FDPIC
8888 PC-relative call sites.
8889 (expand_ashiftrt): Adapt invocation of function_symbol.
8890 (sh_expand_prologue): Inhibit PC-relative GOT address load for FDPIC.
8891 (nonpic_symbol_mentioned_p): Add cases for UNSPEC_GOTFUNCDESC and
8892 UNSPEC_GOTOFFFUNCDESC.
8893 (legitimize_pic_address): Resolve function symbols to function
8894 descriptors for FDPIC. Do not use GOT-relative addressing for local
8895 data that may be read-only on FDPIC.
8896 (sh_emit_storesi, sh_emit_storehi): New functions.
8897 (sh_trampoline_init): Generate FDPIC trampolines.
8898 (sh_function_ok_for_sibcall): Add TARGET_FDPIC check.
8899 (sh_expand_sym_label2reg): Don't assume sibcalls are local.
8900 (sh_output_mi_thunk): Generate FDPIC call.
8901 (function_symbol): Return function_symbol_result. For SFUNC_STATIC on
8902 FDPIC, generate call site labels to use PC-relative addressing rather
8903 than GOT-relative addressing.
8904 (sh_conditional_register_usage): Make PIC register fixed and call used
8905 when FDPIC is in effect.
8906 (sh_legitimate_constant_p): Impose FDPIC constant constraints.
8907 (sh_cannot_force_const_mem_p, sh_load_function_descriptor,
8908 sh_get_fdpic_reg_initial_val): New functions.
8909 * config/sh/sh.h (SUBTARGET_ASM_SPEC, SUBTARGET_LINK_EMUL_SUFFIX):
8911 (FDPIC_SELF_SPECS, SUBTARGET_DRIVER_SELF_SPECS,
8912 PIC_OFFSET_TABLE_REG_CALL_CLOBBERED,
8913 SH_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): New macros.
8914 (DRIVER_SELF_SPECS): Add SUBTARGET_DRIVER_SELF_SPECS and
8916 (TRAMPOLINE_SIZE): Select trampoline size for FDPIC.
8917 (ASM_PREFERRED_EH_DATA_FORMAT): Add EH format constraints for FDPIC.
8918 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Handle FDPIC case.
8919 * config/sh/sh.md (UNSPEC_GOTFUNCDESC, UNSPEC_GOTOFFFUNCDESC): New
8921 (calli_fdpic, call_valuei_fdpic, sibcalli_fdpic, sibcalli_pcrel_fdpic,
8922 sibcall_pcrel_fdpic, sibcall_valuei_fdpic, sibcall_valuei_pcrel_fdpic,
8923 sibcall_value_pcrel_fdpic, sym2GOTFUNCDESC, symGOTFUNCDESC2reg,
8924 sym2GOTOFFFUNCDESC, symGOTOFFFUNCDESC2reg): New patterns.
8925 (udivsi3_i1, udivsi3_i4, udivsi3_i4_single, udivsi3,
8926 *divsi_inv_call_combine, divsi3_i4, divsi3_i4_single, divsi3, ashlsi3,
8927 ashlsi3_d_call, ashrsi3_n, lshrsi3, lshrsi3_d_call, calli, call_valuei,
8928 call, call_value, sibcalli, sibcalli_pcrel, sibcall_pcrel, sibcall,
8929 sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
8930 sibcall_value, GOTaddr2picreg, symGOT_load, symGOTOFF2reg,
8931 block_move_real, block_lump_real, block_move_real_i4,
8932 block_lump_real_i4): Add support for FDPIC calls.
8933 (mulsi3, ic_invalidate_line, initialize_trampoline, call_pop,
8934 call_value_pop): Adjust for new function_symbol signature.
8935 * config/sh/sh.opt (-mfdpic): New option.
8936 * doc/install.texi (Options specification): Document --enable-fdpic.
8937 * doc/invoke.texi (SH Options): Document -mfdpic.
8940 2015-10-27 Alan Lawrence <alan.lawrence@arm.com>
8942 PR tree-optimization/65963
8943 * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
8944 LSHIFT_EXPRs as equivalent MULT_EXPRs.
8946 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8949 * config/arm/arm.c (vfp3_const_double_for_bits): Rewrite.
8950 * config/arm/constraints.md (Dp): Update callsite.
8951 * config/arm/predicates.md (const_double_vcvt_power_of_two): Likewise.
8953 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8955 * builtins.c (fold_builtin_load_exponent): Rename to...
8956 (fold_const_builtin_load_exponent): ...this and only handle
8958 (fold_builtin_2): Update accordingly.
8959 * match.pd: Add rules previously handled by fold_builtin_load_exponent.
8961 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8963 * builtins.c (fold_builtin_logb): Rename to...
8964 (fold_const_builtin_logb): ...this and remove STRIP_NOPS call.
8965 (fold_builtin_significand): Rename to...
8966 (fold_const_builtin_significand): ...this and remove STRIP_NOPS call.
8967 (fold_builtin_1): Update accordingly.
8969 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8971 * builtins.c (fold_builtin_fmin_fmax): Delete.
8972 (fold_builtin_2): Handle constant fmin and fmax arguments here.
8973 * match.pd: Add rules previously handled by fold_builtin_fmin_fmax.
8975 2015-10-27 Evandro Menezes <e.menezes@samsung.com>
8977 * config/aarch64/aarch64-protos.h (cpu_addrcost_table): Split member
8978 for register extension into sign and zero register extension.
8979 * config/aarch64/aarch64.c (generic_addrcost_table): Infer values
8980 for sign and zero register extension.
8981 (cortexa57_addrcost_table): Likewise.
8982 (xgene1_addrcost_table): Likewise.
8984 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8986 * fold-const.c (fold_minmax): Delete.
8987 (fold_binary_loc): Don't call it.
8988 * match.pd: Add rules previously handled by fold_minmax.
8990 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8992 * builtins.c (fold_builtin_fma): Remove constant handling.
8993 (fold_builtin_3): Handle constant fma arguments here.
8995 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8997 * builtins.c (fold_builtin_fabs): Remove constant handling.
8998 (fold_builtin_abs): Likewise.
9000 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
9002 * builtins.c (fold_builtin_copysign): Delete.
9003 (fold_builtin_2): Handle constant copysign arguments here.
9004 * match.pd: Add rules previously handled by fold_builtin_copysign.
9006 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
9008 * builtins.c (fold_builtin_signbit): Delete.
9009 (fold_builtin_2): Handle constant signbit arguments here.
9010 * match.pd: Add rules previously handled by fold_builtin_signbit.
9012 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
9014 * match.pd: Handle sqrt(x) cmp 0 specially.
9016 2015-10-27 Ilya Enkovich <enkovich.gnu@gmail.com>
9018 * tree-vect-generic.c (expand_vector_operations_1): Check
9019 optab type before using it.
9021 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9023 * config/aarch64/aarch64-protos.h
9024 (struct tune_params): Add autoprefetcher_model field.
9025 * config/aarch64/aarch64.c: Include params.h
9026 (generic_tunings): Specify autoprefetcher_model value.
9027 (cortexa53_tunings): Likewise.
9028 (cortexa57_tunings): Likewise.
9029 (cortexa72_tunings): Likewise.
9030 (thunderx_tunings): Likewise.
9031 (xgene1_tunings): Likewise.
9032 (aarch64_first_cycle_multipass_dfa_lookahead_guard): New function.
9033 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define.
9034 (aarch64_override_options_internal): Set
9035 PARAM_SCHED_AUTOPREF_QUEUE_DEPTH param.
9037 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
9039 * builtins.c (fold_builtin_exponent): Delete.
9040 (fold_builtin_2): Handle constant expN arguments here.
9041 * match.pd: Fold expN(logN(x)) -> x.
9043 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
9045 * builtins.c (fold_builtin_powi): Delete.
9046 (fold_builtin_2): Handle constant powi arguments here.
9047 * match.pd: Add rules previously handled by fold_builtin_powi.
9049 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
9051 * builtins.c (fold_builtin_pow): Delete in favor of...
9052 (fold_const_builtin_pow): ...this new function. Only handle constant
9054 (fold_builtin_2): Update accordingly.
9055 * match.pd: Add rules previously handled by fold_builtin_pow.
9057 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
9059 * builtins.c (fold_builtin_hypot): Delete.
9060 (fold_builtin_2): Handle constant hypot arguments here.
9061 * match.pd: Fold hypot(x, 0) and hypot(0, x) to x. Canonicalize
9062 hypot(x, x) to fabs(x)*sqrt(2).
9064 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
9066 * gimple-match-head.c (maybe_push_res_to_seq): Use create_tmp_reg
9067 instead of make_ssa_name if not yet in SSA form.
9069 2015-10-27 Richard Biener <rguenther@suse.de>
9071 * cfg.c (free_edge): Add function argument and use it instead of cfun.
9072 (clear_edges): Likewise.
9073 * cfg.h (clear_edges): Adjust prototype.
9074 * cfgexpand.c (pass_expand::execute): Adjust.
9075 * cfgloop.c (release_recorded_exits): Add function argument and use
9077 * cfgloop.h (release_recorded_exits): Adjust prototype.
9078 (loops_state_satisfies_p): Add overload with function argument.
9079 (loops_state_set): Likewise.
9080 (loops_state_clear): Likewise.
9081 (struct loop_iterator): Add function argument to constructor
9082 and iterator and use it instead of cfun.
9083 (FOR_EACH_LOOP_FN): New macro.
9084 (loop_optimizer_finalize): Add overload with function argument.
9085 * loop-init.c (loop_optimizer_init): Adjust.
9086 (fix_loop_structure): Likewise.
9087 (loop_optimizer_finaliz): Add function argument and use it
9089 * tree-cfg.c (delete_tree_cfg_annotations): Likewise.
9090 * tree-cfg.h (delete_tree_cfg_annotations): Adjust prototype.
9091 * cgraph.c (release_function_body): Do not push/pop cfun.
9092 * final.c (rest_of_clean_state): Adjust.
9093 * graphite.c (graphite_finalize): Likewise.
9094 * tree-ssa-copy.c (fini_copy_prop): Likewise.
9095 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
9096 * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Likewise.
9097 (tree_unroll_loops_completely): Likewise.
9098 (pass_complete_unrolli::execute): Likewise.
9099 * tree-ssa-loop-niter.c (free_numbers_of_iterations_estimates):
9100 Add function argument and use it instead of cfun.
9101 * tree-ssa-loop-niter.h (free_numbers_of_iterations_estimates):
9103 * tree-ssa-loop.c (tree_ssa_loop_done): Adjust.
9104 * tree-ssa.c (delete_tree_ssa): Add function argument and use it
9106 * tree-ssa.h (delete_tree_ssa): Adjust prototype.
9107 * tree-ssanames.c (fini_ssanames): Add function argument and use it
9109 * tree-ssanames.c (fini_ssanames): Adjust prototype.
9110 * tree-vrp.c (execute_vrp): Adjust.
9111 * value-prof.c (free_histograms): Add function argument and use it
9113 * value-prof.h (free_histograms): Adjust prototype.
9115 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
9117 * tree.h (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES)
9118 (OACC_KERNELS_BODY, OACC_KERNELS_CLAUSES, OACC_KERNELS_COMBINED)
9119 (OACC_PARALLEL_COMBINED): Don't define macros. Adjust all users.
9121 2015-10-27 Tom de Vries <tom@codesourcery.com>
9123 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Add and use var
9126 2015-10-27 Bin Cheng <bin.cheng@arm.com>
9128 * loop-invariant.c (struct def): New field can_prop_to_addr_uses.
9129 (inv_can_prop_to_addr_use): New function.
9130 (record_use): Call can_prop_to_addr_uses, set the new field.
9131 (get_inv_cost): Count cost if inv can't be propagated into its
9134 2015-10-26 Doug Evans <dje@google.com>
9136 * config/linux.h (INCLUDE_DEFAULTS): Add INCLUDE_DEFAULTS_MUSL_LOCAL.
9138 2015-10-26 Eric Botcazou <ebotcazou@adacore.com>
9140 * match.pd (fold_widened_comparison): Apply simplifications to all
9143 2015-10-26 Simon Dardis <simon.dardis@imgtec.com>
9145 * target.def (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): New hook.
9146 * doc/tm.texi.in (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): Document.
9147 * doc/tm.texi: Regenerated.
9148 * reorg.c (dbr_schedule): Use new hook.
9149 * config/mips/mips.c (mips_no_speculation_in_delay_slots_p): New.
9151 2015-10-26 Jeff Law <law@redhat.com>
9153 PR tree-optimization/68013
9154 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
9155 Make sure the first block in the path is in VISITED_BBs.
9157 2015-10-26 Richard Biener <rguenther@suse.de>
9158 Dominik Vogt <vogt@linux.vnet.ibm.com>
9161 * alias.c (ao_ref_from_mem): Remove promoted subreg handling.
9162 Properly prune ref->ref for accesses outside of ref.
9164 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
9166 * gimple-fold.c (replace_stmt_with_simplification): Don't allow
9167 new statements to be inserted if inplace. Allow calls to have
9170 2015-10-26 Richard Biener <rguenther@suse.de>
9172 * tree-object-size.c: Remove builtins.h include, include tree-cfg.h.
9173 (do_valueize): New function.
9174 (pass_object_sizes::execute): Use gimple_fold_stmt_to_constant and
9176 * tree-ssa-threadedge.c: Remove builtins.h include, include
9178 (fold_assignment_stmt): Remove.
9179 (threadedge_valueize): New function.
9180 (record_temporary_equivalences_from_stmts): Use
9181 gimple_fold_stmt_to_constant_1, note additional cleanup
9184 2015-10-26 Richard Biener <rguenther@suse.de>
9186 * match.pd ((A & ~B) - (A & B) -> (A ^ B) - B): Add missing :c.
9187 ( (X & ~Y) | (~X & Y) -> X ^ Y): Remove redundant :c.
9189 2015-10-26 Alan Hayward <alan.hayward@arm.com>
9191 * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
9192 VEC_COND_EXPR types.
9194 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9196 * auto-inc-dec.c (insert_move_insn_before): Delete.
9197 (attempt_change): Remember to cost the simple move in the
9198 FORM_PRE_ADD and FORM_POST_ADD cases.
9200 2015-10-26 Kaz Kojima <kkojima@gcc.gnu.org>
9203 * config/sh/sh.c (sh_vector_mode_supported_p): Use
9204 TARGET_SHMEDIA_FPU instead of TARGET_FPU_ANY.
9206 2015-10-26 Tom de Vries <tom@codesourcery.com>
9208 * tree-ssa-structalias.c (make_restrict_var_constraints): New function,
9210 (intra_create_variable_infos): ... here.
9212 2015-10-26 Tom de Vries <tom@codesourcery.com>
9214 * tree-ssa-structalias.c (intra_create_variable_infos): Add
9215 restrict_pointer_p and recursive_restrict_p variables.
9217 2015-10-26 Tom de Vries <tom@codesourcery.com>
9219 * tree-ssa-structalias.c (intra_create_variable_infos): Inline
9220 get_vi_for_tree call.
9222 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9225 * optabs.c (expand_atomic_compare_and_swap): Handle case when
9226 ptarget_oval or ptarget_bool are const0_rtx.
9228 2015-10-26 Christian Bruel <christian.bruel@st.com>
9230 * function.h (MINIMUM_METHOD_BOUNDARY): New macro.
9231 * cp/decl.c (grokfndecl): Set DECL_ALIGN with MINIMUM_METHOD_BOUNDARY.
9232 * cp/method.c (implicitly_declare_fn): Likewise.
9233 * cp/lambda.c (maybe_add_lambda_conv_op): Likewise. Remove VBIT setting.
9234 * java/class.c (add_method_1): Likewise.
9236 2015-10-26 Richard Biener <rguenther@suse.de>
9238 * alloc-pool.h (base_pool_allocator): Use placement new.
9239 (base_pool_allocator::remove): Likewise. Compute size outside of
9242 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
9244 * builtins.c (do_real_to_int_conversion): New function.
9245 (fold_fixed_mathfn, fold_builtin_int_roundingfn): Delete.
9246 (fold_builtin_1): Handle constant {i,l,ll}{ceil,floor,round}{f,,l}
9248 * match.pd: Add rules previously handled by fold_fixed_mathfn
9249 and fold_builtin_int_roundingfn.
9251 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
9253 * match.pd: Use macros to define built-in operator lists.
9255 2015-10-20 Richard Sandiford <richard.sandiford@arm.com>
9256 Richard Biener <rguenther@suse.de>
9258 * genmatch.c (dt_simplify::gen): Skip captures that are
9260 (parser::parse_expr): Allow captures in results too.
9261 * builtins.c (fold_builtin_cexp): Delete.
9262 (fold_builtin_1): Handle constant cexp arguments here.
9263 * match.pd: Fold cexp(x+yi) to exp(x) * cexpi(y).
9265 2015-10-26 Mikhail Maltsev <maltsevm@gmail.com>
9267 * alloc-pool.h (base_pool_allocator::initialize, ::allocate): Remove
9268 conditional compilation.
9269 (base_pool_allocator::remove): Use flag_checking.
9271 2015-10-25 John David Anglin <danglin@gcc.gnu.org>
9273 * config/pa/som.h (EH_FRAME_THROUGH_COLLECT2): Define.
9276 * dojump.c (do_compare_and_jump): Canonicalize both function and
9279 2015-10-25 Uros Bizjak <ubizjak@gmail.com>
9282 * config/i386/i386.c (ix86_md_asm_adjust) [case 'a']: Use NE code
9285 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
9288 * ipa-polymorphic-call.c
9289 (ipa_polymorphic_call_context::get_dynamic_type): Do not confuse
9290 instance offset with offset of outer type.
9292 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
9294 * fold-const.c (operand_equal_p): Handle VIEW_CONVERT_EXPR.
9296 2015-10-23 Caroline Tice <cmtice@google.com>
9298 (from Richard Biener
9299 * tree.c (int_cst_hasher::hash): Replace XOR with more efficient
9300 call to iterative_hash_host_wide_int.
9302 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
9304 * config.gcc (powerpc-ibm-aix[6789]) [default_use_cxa_atexit]:
9307 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
9309 * tree-vect-generic.c (expand_vector_operations_1): Check
9310 optab exists before use it.
9312 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
9314 * tree-vect-generic.c (expand_vector_condition): Avoid
9315 uninitialized variable warning.
9317 2015-10-23 Jeff Law <law@redhat.com>
9319 * passes.c (execute_function_todo): Do not call flush_ssaname_freelist
9321 (execute_todo): Call it here.
9322 * tree-ssanames.c (make_ssa_name_fn): Unconditionally gather reuse
9324 (pass_release_ssa_names::execute): Do not call flusH_ssaname_freelist.
9326 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
9327 Szabolcs Nagy <szabolcs.nagy@arm.com>
9329 * config.gcc (enable_secureplt): Add *-linux*-musl*.
9331 2015-10-23 Jeff Law <law@redhat.com>
9333 PR tree-optimization/67830
9334 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
9335 Explicitly verify the mask has no bits outside the type of
9336 the innermost operands.
9338 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
9339 Szabolcs Nagy <szabolcs.nagy@arm.com>
9341 * config/rs6000/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
9342 (MUSL_DYNAMIC_LINKER64): Define.
9343 (GNU_USER_DYNAMIC_LINKER32): Update.
9344 (GNU_USER_DYNAMIC_LINKER64): Update.
9345 (CHOOSE_DYNAMIC_LINKER): Update.
9347 * config/rs6000/sysv4.h (GNU_USER_DYNAMIC_LINKER): Update.
9348 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER_E,)
9349 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
9350 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
9351 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
9352 (CHOOSE_DYNAMIC_LINKER): Update.
9353 (INCLUDE_DEFAULTS): Redefine.
9355 * config/rs6000/sysv4le.h (MUSL_DYNAMIC_LINKER_E): Define.
9357 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
9359 * fold-const.c (operand_equal_p): Do not compare TYPE_MODE when
9360 comparing addresses.
9362 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
9364 * fold-const.c (operand_equal_p): Handle matching of vector
9367 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
9369 * doc/install.texi (*-ibm-aix*): Additional information for AIX 7.1.
9371 2015-10-23 Steve Ellcey <sellcey@imgtec.com>
9372 Andrew Pinski <apinski@cavium.com>
9374 PR rtl-optimization/67736
9375 * combine.c (simplify_comparison): Use gen_lowpart_or_truncate instead
9378 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
9381 * tree.c (build_truth_vector_type): Support BLK mode
9382 returned for boolean vector.
9384 2015-10-23 Alan Hayward <alan.hayward@arm.com>
9386 PR tree-optimization/65947
9388 (vect_is_simple_reduction_1): Find condition reductions.
9389 (vect_model_reduction_cost): Add condition reduction costs.
9390 (get_initial_def_for_reduction): Add condition reduction initial var.
9391 (vect_create_epilog_for_reduction): Add condition reduction epilog.
9392 (vectorizable_reduction): Condition reduction support.
9393 * tree-vect-stmts.c (vectorizable_condition): Add vect reduction arg
9394 * doc/sourcebuild.texi (Vector-specific attributes): Document
9397 2015-10-23 Richard Biener <rguenther@suse.de>
9399 * Makefile.in (build/genmatch.o): Properly depend on is-a.h, tree.def
9402 2015-10-23 Richard Biener <rguenther@suse.de>
9403 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
9405 * fold-const.c (fold_binary_loc) : Move Fold (A & ~B) - (A & B)
9406 into (A ^ B) - B to match.pd
9407 Move (X & ~Y) | (~X & Y) is X ^ Y to match.pd.
9409 * match.pd (minus (bit_and:cs @0 (bit_not @1)) (bit_and:s @0 @1)):
9411 (minus (bit_and:s @0 INTEGER_CST@2) (bit_and:s @0 INTEGER_CST@1)):
9413 (minus (bit_and:s @0 @1) (bit_and:cs @0 (bit_not @1))):
9415 (bit_ior:c (bit_and:c @0 (bit_not @1)) (bit_and:c (bit_not @0) @1)):
9417 (bit_ior:c (bit_and @0 INTEGER_CST@2) (bit_and (bit_not @0)
9418 INTEGER_CST@1)): New simplifier.
9420 2015-10-23 Richard Sandiford <richard.sandiford@arm.com>
9422 * builtins.c (integer_valued_real_p): Move to fold-const.c.
9423 (fold_trunc_transparent_mathfn, fold_builtin_trunc, fold_builtin_floor)
9424 (fold_builtin_ceil, fold_builtin_round): Delete.
9425 (fold_builtin_1): Handle constant trunc, floor, ceil and round
9427 * convert.c (convert_to_real): Remove narrowing of rounding
9429 * fold-const.h (integer_valued_real_unary_p)
9430 (integer_valued_real_binary_p, integer_valued_real_call_p)
9431 (integer_valued_real_single_p, integer_valued_real_p): Declare.
9432 * fold-const.c (tree_single_nonnegative_warnv_p): Move
9433 name_registered_for_update_p check to SSA_NAME case statement.
9434 Don't call tree_simple_nonnegative_warnv_p for SSA names.
9435 (integer_valued_real_unary_p, integer_valued_real_binary_p)
9436 (integer_valued_real_call_p, integer_valued_real_single_p)
9437 (integer_valued_real_invalid_p): New functions.
9438 (integer_valued_real_p): Move from fold-const.c and rework
9439 to call the functions above. Handle SSA names.
9440 * gimple-fold.h (gimple_stmt_integer_valued_real_p): Declare.
9441 * gimple-fold.c (gimple_assign_integer_valued_real_p)
9442 (gimple_call_integer_valued_real_p, gimple_phi_integer_valued_real_p)
9443 (gimple_stmt_integer_valued_real_p): New functions.
9444 * match.pd: Fold f(f(x))->f(x) for fp->fp rounding functions f.
9445 Fold f(x)->x for the same f if x is known to be integer-valued.
9446 Fold f(extend(x))->extend(f'(x)) if doing so doesn't affect
9447 the result. Canonicalize floor(x) as trunc(x) if x is
9450 2015-10-23 Tom de Vries <tom@codesourcery.com>
9452 * tree-ssa-structalias.c (intra_create_variable_infos): Use
9453 make_constraint_from.
9455 2015-10-23 Tom de Vries <tom@codesourcery.com>
9457 * tree-ssa-structalias.c (create_variable_info_for_1): Add missing
9458 setting of is_full_var in case of a single field.
9460 2015-10-22 Martin Sebor <msebor@redhat.com>
9463 * config/i386/i386.opt: Add missing periods to the ends of sentences.
9464 * config/msp430/msp430.opt: Same.
9466 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
9468 * doc/extend.exp (Global Register Variables): Rewrite.
9470 2015-10-22 Jeff Law <law@redhat.com>
9472 * genattrtab.c (main): If we do not have any annul-true or annul-false
9473 slots, then write out a dummy eligible_for_annul_true or
9474 eligible_for_annul_false as needed.
9476 2015-10-22 Nick Clifton <nickc@redhat.com>
9478 * config/msp430/msp430.opt: Add -msilicon-errata and
9479 -msilicon-errata-warn.
9480 * config/msp430/msp430.h (ASM_SPEC): Pass new options on to
9482 * doc/invoke.texi: Document new options.
9484 2015-10-22 Richard Biener <rguenther@suse.de>
9486 PR tree-optimization/58497
9487 * tree-vect-generic.c (ssa_uniform_vector_p): New helper.
9488 (expand_vector_operations_1): Use it. Lower operations on
9489 all uniform vectors to scalar operations if the HW supports it.
9491 2015-10-22 Richard Biener <rguenther@suse.de>
9493 PR tree-optimization/19049
9494 PR tree-optimization/65962
9495 * tree-vect-data-refs.c (vect_analyze_group_access_1): Fall back
9496 to strided accesses if single-element interleaving doesn't work.
9498 2015-10-22 Richard Biener <rguenther@suse.de>
9502 * optabs.c (emit_libcall_block_1): Allow a NULL_RTX equiv.
9503 (expand_binop): For -ftrapv optabs do not record an REG_EQUAL note.
9504 (expand_unop): Likewise.
9506 2015-10-22 Richard Biener <rguenther@suse.de>
9508 * fold-const.c (fold_addr_of_array_ref_difference): Properly
9509 convert operands before folding a MINUS_EXPR.
9510 (fold_binary_loc): Move simplification of MINUS_EXPR on
9511 converted POINTER_PLUS_EXPRs ...
9512 * match.pd: ... here.
9514 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
9516 * builtins.c (fold_builtin_tan): Delete.
9517 (fold_builtin_1): Handle constant tan arguments here.
9518 * match.pd: Simplify (tan (atan x)) to x.
9520 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
9522 * builtins.c (fold_builtin_cproj): Delete.
9523 (fold_builtin_1): Handle constant arguments here.
9524 (build_complex_cproj): Move and rename to...
9525 * tree.c: (build_complex_inf): ...this.
9526 * tree.h (build_complex_inf): Declare.
9527 * match.pd: Fold cproj(x)->x if x has no infinity.
9528 Use build_complex_inf for existing cproj rules.
9530 2015-10-22 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9533 * config/s390/s390.md (mov<mode>cc): Emit compare only if we don't
9534 already have a comparison result.
9536 2015-10-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9539 * config/aarch64/aarch64.c (aarch64_nopcrelative_literal_loads): New.
9540 (aarch64_expand_mov_immediate): Use aarch64_nopcrelative_literal_loads.
9541 (aarch64_classify_address): Likewise.
9542 (aarch64_secondary_reload): Likewise.
9543 (aarch64_override_options_after_change_1): Adjust.
9544 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
9545 Use aarch64_nopcrelative_literal_loads.
9546 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
9547 * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
9550 2015-10-21 Martin Sebor <msebor@redhat.com>
9553 * opts.c (undocumented_msg, use_diagnosed_msg): New globals.
9554 (print_filtered_help): Reference aliased option's name and encourage
9555 readers to use it in preference to the alias if the former is not
9556 documented. Mention when using an option is diagnosed.
9557 * gcc.c (display_help): End each sentence with a period.
9559 * common.opt: End each sentence that describes an option with
9561 * config/aarch64/aarch64.opt: Same.
9562 * config/alpha/alpha.opt: Same.
9563 * config/arc/arc.opt: Same.
9564 * config/arm/arm.opt: Same.
9565 * config/avr/avr.opt: Same.
9566 * config/bfin/bfin.opt: Same.
9567 * config/c6x/c6x.opt: Same.
9568 * config/cr16/cr16.opt: Same.
9569 * config/cris/cris.opt: Same.
9570 * config/cris/linux.opt: Same.
9571 * config/darwin.opt: Same.
9572 * config/epiphany/epiphany.opt: Same.
9573 * config/fr30/fr30.opt: Same.
9574 * config/frv/frv.opt: Same.
9575 * config/ft32/ft32.opt: Same.
9576 * config/g.opt: Same.
9577 * config/h8300/h8300.opt: Same.
9578 * config/i386/cygming.opt: Same.
9579 * config/i386/djgpp.opt: Same.
9580 * config/i386/i386.opt: Same.
9581 * config/i386/interix.opt: Same.
9582 * config/i386/mingw-w64.opt: Same.
9583 * config/i386/mingw.opt: Same.
9584 * config/ia64/ia64.opt: Same.
9585 * config/ia64/ilp32.opt: Same.
9586 * config/iq2000/iq2000.opt: Same.
9587 * config/linux.opt: Same.
9588 * config/lm32/lm32.opt: Same.
9589 * config/lynx.opt: Same.
9590 * config/m32c/m32c.opt: Same.
9591 * config/m32r/m32r.opt: Same.
9592 * config/m68k/ieee.opt: Same.
9593 * config/m68k/m68k.opt: Same.
9594 * config/mcore/mcore.opt: Same.
9595 * config/mep/mep.opt: Same.
9596 * config/microblaze/microblaze.opt: Same.
9597 * config/mips/mips.opt: Same.
9598 * config/mmix/mmix.opt: Same.
9599 * config/mn10300/mn10300.opt: Same.
9600 * config/moxie/moxie.opt: Same.
9601 * config/msp430/msp430.opt: Same.
9602 * config/nios2/elf.opt: Same.
9603 * config/nios2/nios2.opt: Same.
9604 * config/nvptx/nvptx.opt: Same.
9605 * config/pa/pa-hpux.opt: Same.
9606 * config/pa/pa-hpux1010.opt: Same.
9607 * config/pa/pa-hpux1111.opt: Same.
9608 * config/pa/pa-hpux1131.opt: Same.
9609 * config/pa/pa.opt: Same.
9610 * config/pa/pa64-hpux.opt: Same.
9611 * config/pdp11/pdp11.opt: Same.
9612 * config/rl78/rl78.opt: Same.
9613 * config/rs6000/476.opt: Same.
9614 * config/rs6000/aix64.opt: Same.
9615 * config/rs6000/darwin.opt: Same.
9616 * config/rs6000/linux64.opt: Same.
9617 * config/rs6000/rs6000.opt: Same.
9618 * config/rs6000/sysv4.opt: Same.
9619 * config/s390/s390.opt: Same.
9620 * config/s390/tpf.opt: Same.
9621 * config/sh/sh.opt: Same.
9622 * config/sol2.opt: Same.
9623 * config/sparc/long-double-switch.opt: Same.
9624 * config/sparc/sparc.opt: Same.
9625 * config/spu/spu.opt: Same.
9626 * config/stormy16/stormy16.opt: Same.
9627 * config/tilegx/tilegx.opt: Same.
9628 * config/tilepro/tilepro.opt: Same.
9629 * config/v850/v850.opt: Same.
9630 * config/vax/vax.opt: Same.
9631 * config/visium/visium.opt: Same.
9632 * config/vms/vms.opt: Same.
9633 * config/vxworks.opt: Same.
9634 * config/xtensa/xtensa.opt: Same.
9636 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
9637 Sebastian Pop <s.pop@samsung.com>
9639 * graphite-scop-detection.c (parameter_index_in_region): Update call to
9640 invariant_in_sese_p_rec.
9641 * graphite-sese-to-poly.c (extract_affine): Same.
9642 * sese.c (invariant_in_sese_p_rec): Pass in an extra
9643 parameter has_vdefs.
9644 (scalar_evolution_in_region): Return chrec_dont_know when the scalar
9645 variable depends on virtual definitions in the current region.
9646 * sese.h (invariant_in_sese_p_rec): Update declaration.
9648 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
9649 Sebastian Pop <s.pop@samsung.com>
9651 * graphite-scop-detection.c (build_scops): Do not handle scops
9652 with more than PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP arrays.
9653 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP): New.
9655 2015-10-21 Mikhail Maltsev <maltsevm@gmail.com>
9657 * config.in: Regenerate.
9658 * configure: Regenerate.
9659 * configure.ac (CHECKING_P): Define.
9660 * system.h: Use CHECKING_P.
9662 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
9665 * ipa-polymorphic-call.c (possible_placement_new): If cur_offset
9666 is negative we don't know the type.
9667 (check_stmt_for_type_change): Skip constructors of non-polymorphic
9668 types as those won't help devirutalization.
9670 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
9672 * fold-const.c (operand_equal_p): Add code matching empty constructors.
9674 2015-10-21 Eric Botcazou <ebotcazou@adacore.com>
9676 * tree.def (CEIL_DIV_EXPR, FLOOR_DIV_EXPR, ROUND_DIV_EXPR): Tweak
9678 (TRUNC_MOD_EXPR, CEIL_MOD_EXPR, FLOOR_MOD_EXPR, ROUND_MOD_EXPR):
9679 Add comments on sign of the result.
9680 * fold-const.c (tree_binary_nonnegative_warnv_p) <FLOOR_MOD_EXPR>:
9681 Recurse on operand #1 instead of operand #0.
9682 <CEIL_MOD_EXPR>: Do not recurse.
9683 <ROUND_MOD_EXPR>: Likewise.
9685 2015-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9687 * cfgrtl.c (pass_free_cfg::execute): Adjust.
9688 * final.c (dbr_sequence_length): Always define.
9689 (shorten_branches): Adjust.
9690 * genattr-common.c (main): Always define DELAY_SLOTS.
9691 * genattr.c (main): Unconditionally declare functions and define
9692 macros related to delay slots.
9693 * genattrtab.c (write_eligible_delay): Adjust.
9694 (main): Always write out delay slot functions.
9695 * opts.c (default_options_table): Adjust.
9696 * reorg.c (redirect_with_delay_slots_safe_p): Likewise.
9697 (redirect_with_delay_list_safe_p): Likewise.
9698 (fill_simple_delay_slots): Likewise.
9699 (fill_slots_from_thread): Likewise.
9700 (make_return_insns): Likewise.
9701 (dbr_schedule): Likewise.
9702 (rest_of_handle_delay_slots): Likewise.
9703 (pass_delay_slots::gate): Likewise.
9704 * toplev.c (process_options): Likewise.
9706 2015-10-21 Richard Henderson <rth@redhat.com>
9708 * targhooks.c (default_addr_space_pointer_mode): Remove check
9709 for generic address space.
9710 (default_addr_space_address_mode): Likewise.
9711 (default_addr_space_valid_pointer_mode): Likewise.
9712 (default_addr_space_legitimate_address_p): Likewise.
9713 (default_addr_space_legitimize_address): Likewise.
9714 * target.def (addr_space.pointer_mode): Update documentation
9715 of default behavior.
9716 (addr_space.address_mode): Likewise.
9719 * expr.c (expand_expr_real_2): Use convert_modes on disjoint
9722 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
9724 * builtins.c (fold_builtin_cabs): Delete.
9725 (fold_builtin_1): Update accordingly. Handle constant arguments here.
9726 * match.pd: Add rules previously handled by fold_builtin_cabs.
9728 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
9730 * fold-const.h (fold_strip_sign_ops): Delete.
9731 * fold-const.c (fold_strip_sign_ops): Likewise.
9732 (fold_unary_loc, fold_binary_loc): Remove calls to it.
9733 * builtins.c (fold_builtin_cos, fold_builtin_cosh)
9734 (fold_builtin_ccos): Delete.
9735 (fold_builtin_pow): Don't call fold_strip_sign_ops.
9736 (fold_builtin_hypot, fold_builtin_copysign): Likewise.
9737 Remove fndecl argument.
9738 (fold_builtin_1): Update calls accordingly. Handle constant
9739 cos, cosh, ccos and ccosh here.
9741 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
9743 * doc/invoke.texi (-fdump-tree-backprop, -fssa-backprop): Document.
9744 * Makefile.in (OBJS): Add gimple-ssa-backprop.o.
9745 * common.opt (fssa-backprop): New option.
9746 * fold-const.h (negate_mathfn_p): Declare.
9747 * fold-const.c (negate_mathfn_p): Make public.
9748 * timevar.def (TV_TREE_BACKPROP): New.
9749 * tree-pass.h (make_pass_backprop): Declare.
9750 * passes.def (pass_backprop): Add.
9751 * gimple-ssa-backprop.c: New file.
9753 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
9754 Sebastian Pop <s.pop@samsung.com>
9756 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard):
9757 Do not call create_empty_if_region_on_edge when cond_expr is true.
9758 (translate_isl_ast_node_for): Check whether a guard has been generated.
9760 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
9762 * graphite-poly.h (struct dr_info): Added invalid_alias_set number.
9763 (operator=): Removed.
9764 (dr_info): Make alias_set number the last argument with default
9765 value of invalid_alias_set.
9766 * graphite-sese-to-poly.c (build_scop_drs): Update constructor
9768 (rewrite_reductions_out_of_ssa): Iterate only through the
9769 basic blocks which are inside region.
9770 (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
9771 * sese.h (struct sese_l): Removed assignment operator.
9772 (split_region_for_bb): Removed dead code.
9774 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
9776 * graphite-poly.h (struct dr_info): Removed conversion constructor.
9777 (struct scop): Renamed scop::region to scop::scop_info
9778 (scop_set_region): Same.
9779 (SCOP_REGION): Removed
9780 (SCOP_CONTEXT): Removed.
9781 (POLY_SCOP_P): Removed.
9782 * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
9783 Rename scop->region to scop->scop_info.
9784 (add_parameters_to_ivs_params): Same.
9785 (graphite_regenerate_ast_isl): Same.
9786 * graphite-poly.c (new_scop): Same.
9788 (print_scop_params): Same.
9789 * graphite-scop-detection.c (scop_detection::remove_subscops): Same.
9790 (scop_detection::remove_intersecting_scops): Use pointer to sese_l.
9791 (dot_all_scops_1): Rename scop->region to scop->scop_info.
9792 (scop_detection::nb_pbbs_in_loops): Same.
9793 (find_scop_parameters): Same.
9794 (try_generate_gimple_bb): Same.
9795 (gather_bbs::before_dom_children): Same.
9796 (gather_bbs::after_dom_children): Same.
9797 (build_scops): Same.
9798 * graphite-sese-to-poly.c (build_scop_scattering): Same.
9799 (extract_affine_chrec): Same.
9800 (extract_affine): Same.
9801 (set_scop_parameter_dim): Same.
9802 (build_loop_iteration_domains): Same.
9803 (create_pw_aff_from_tree): Same.
9804 (add_param_constraints): Same.
9805 (build_scop_iteration_domain): Same.
9806 (build_scop_drs): Same.
9807 (analyze_drs_in_stmts): Same.
9808 (insert_out_of_ssa_copy_on_edge): Same.
9809 (rewrite_close_phi_out_of_ssa):Same.
9810 (rewrite_reductions_out_of_ssa):Same.
9811 (handle_scalar_deps_crossing_scop_limits):Same.
9812 (rewrite_cross_bb_scalar_deps):Same.
9813 (rewrite_cross_bb_scalar_deps_out_of_ssa):Same.
9814 (build_poly_scop):Same.
9815 (build_alias_set): Use pointer to dr_info.
9816 * graphite.c (print_graphite_scop_statistics):
9817 (graphite_transform_loops):
9818 * sese.h (struct sese_l): Remove conversion constructor.
9820 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
9823 * tree.c (verify_type): Verify that TYPE_MODE match
9824 between TYPE_CANONICAL and type.
9825 * expr.c (store_expr_with_bounds): Revert my previous change.
9826 * expmed.c (store_bit_field_1): Revert prevoius change.
9827 * gimple-expr.c (useless_type_conversion_p): Require TYPE_MODE
9828 to match for all types.
9830 2015-10-21 Nathan Sidwell <nathan@codesourcery.com>
9832 * omp-low.c (check_omp_nesting_restrictions): Check OpenACC loop
9835 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
9837 * doc/tm.texi: Regenerated.
9838 * doc/tm.texi.in (TARGET_VECTORIZE_GET_MASK_MODE): New.
9839 * stor-layout.c (layout_type): Use mode to get vector mask size.
9840 * target.def (get_mask_mode): New.
9841 * targhooks.c (default_get_mask_mode): New.
9842 * targhooks.h (default_get_mask_mode): New.
9843 * tree-vect-stmts.c (get_same_sized_vectype): Add special case
9845 * tree.c (MAX_BOOL_CACHED_PREC): New.
9846 (nonstandard_boolean_type_cache): New.
9847 (build_nonstandard_boolean_type): New.
9848 (make_vector_type): Vector mask has no canonical type.
9849 (build_truth_vector_type): New.
9850 (build_same_sized_truth_vector_type): New.
9851 (truth_type_for): Support vector masks.
9852 * tree.h (VECTOR_BOOLEAN_TYPE_P): New.
9853 (build_truth_vector_type): New.
9854 (build_same_sized_truth_vector_type): New.
9855 (build_nonstandard_boolean_type): New.
9856 * tree-cfg.c (verify_gimple_comparison) Require boolean
9857 vector type for vector comparison.
9858 (verify_gimple_assign_ternary): Likewise.
9859 * optabs.c (expand_vec_cond_expr): Accept boolean vector as
9861 * tree-vect-stmts.c (vectorizable_condition): Use boolean
9862 vector type for vector comparison.
9863 * tree-vect-generic.c (elem_op_func): Add new operand to hold
9865 (do_unop): Adjust to modified function type.
9866 (do_binop): Likewise.
9867 (do_plus_minus): Likewise.
9868 (do_negate); Likewise.
9869 (expand_vector_piecewise): Likewise.
9870 (do_cond): Likewise.
9871 (do_compare): Use comparison instead of condition.
9872 (expand_vector_divmod): Use boolean vector type for comparison.
9873 (expand_vector_operations_1): Skip scalar mask operations.
9875 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
9877 * omp-low.c (simd_clone_create): Set in_other_partition
9880 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
9882 * doc/extend.exp (Local Register Variables): Rewrite.
9884 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
9886 * match.pd: Add rules to simplify ccos, ccosh, hypot, copysign
9887 and x*x in cases where the operands are sign ops. Extend these
9888 rules to handle copysign as a sign op (including for cos, cosh
9889 and pow, which already treated negate and abs as sign ops).
9891 2015-10-21 Uros Bizjak <ubizjak@gmail.com>
9894 * config/i386/i386.c (ix86_compute_frame_layout): Realign the stack
9895 for 64-bit MS_ABI targets also when default incoming stack boundary
9898 2015-10-21 Richard Biener <rguenther@suse.de>
9900 * tree-ssa-sccvn.c (cond_stmts_equal_p): Compare two GIMPLE
9901 cond stmts, enhanced and split out from ...
9902 (vn_phi_eq): ... here.
9904 2015-10-21 Richard Biener <rguenther@suse.de>
9907 * fold-const.c: Include tree-ssa-operands.h and tree-into-ssa.h.
9908 (tree_ssa_name_nonnegative_warnv_p): Fold into ...
9909 (tree_single_nonnegative_warnv_p): ... here. For SSA names
9910 make sure they are not registered for update.
9912 2015-10-21 Richard Biener <rguenther@suse.de>
9914 PR tree-optimization/68026
9915 * tree-ssa-ccp.c (get_value_for_expr): Zero-extend mask for
9916 unsigned VARYING values.
9918 2015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
9920 * asan.c (asan_emit_stack_protection): Don't pass local stack to
9921 asan_stack_malloc_[n] anymore. Check if asan_stack_malloc_[n] returned
9922 NULL and use local stack than.
9923 (asan_finish_file): Insert __asan_version_mismatch_check_v[n] call
9924 in addition to __asan_init.
9925 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename to __asan_init.
9926 (BUILT_IN_ASAN_VERSION_MISMATCH_CHECK): Add new builtin call.
9927 * asan.h (asan_intercepted_p): Handle new string builtins.
9928 * ubsan.c (ubsan_use_new_style_p): New function.
9929 (ubsan_instrument_float_cast): If location is unknown, assign
9930 input_location to loc. Propagate loc to ubsan_create_data if
9931 ubsan_use_new_style_p returned true.
9933 2015-10-21 Jeff Law <law@redhat.com>
9935 * Makefile.in (OBJS): Remove sched-vis.c
9936 * sched-vis.c: Removed. Code moved into...
9937 * print-rtl.c: Here. Include cfg.h, pretty-print.h and print-rtl.h.
9938 * rtl.h: Remove prototypes for functions now living in print-rtl.c
9939 * print-rtl.h Add prototypes for new functions in print-rtl.c.
9940 * auto-inc-dec.c: Include print-rtl.h
9941 * cfgrtl.c, combine.c, final.c haifa-sched.c: Likewise.
9942 * ira.c, lra-constraints.c, lra.c, sel-sched-dump.c: Likewise.
9944 * varasm.c (handle_vtv_comdat_section): Mark 2nd parameter with
9947 2015-10-21 Richard Biener <rguenther@suse.de>
9948 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
9950 * fold-const.c (fold_binary_loc) : Move (-A) * (-B) -> A * B
9952 * doc/implement-c.texi (Integers Implementation): Make GCC's promises
9953 about signed left shift stronger and clarify the cases when they're
9955 Move (a * (1 << b)) is (a << b) to match.pd.
9956 Move convert (C1/X)*C2 into (C1*C2)/X to match.pd.
9957 Move ~X & X, (X == 0) & X, and !X & X are zero to match.pd.
9958 Move X & ~X , X & (X == 0), and X & !X are zero to match.pd.
9960 * match.pd (mult:c @0 (convert? (lshift integer_onep@1 @2))):
9962 (mult (rdiv:s REAL_CST@0 @1) REAL_CST@2): New simplifier.
9963 (bit_and:c (convert? @0) (convert? (bit_not @0))): New simplifier.
9964 (bit_ior (bit_and:s @0 (bit_not:s @1)) (bit_and:s (bit_not:s @0) @1))
9966 (mult:c (convert1? (negate @0)) (convert2? negate_expr_p@1)):
9968 (match (logical_inverted_value @0) (truth_not @0)) : New Predicate.
9970 2015-10-21 Gregor Richards <gregor.richards@uwaterloo.ca>
9971 Szabolcs Nagy <szabolcs.nagy@arm.com>
9972 Alan Modra <amodra@gmail.com>
9974 * config/rs6000/secureplt.h (LINK_SECURE_PLT_DEFAULT_SPEC): Define.
9975 * config/rs6000/sysv4.h (LINK_SECURE_PLT_SPEC): Define.
9976 (LINK_SPEC): Add %(link_secure_plt).
9977 (SUBTARGET_EXTRA_SPECS): Add "link_secure_plt".
9978 * config/rs6000/linux64.h (LINK_SECURE_PLT_SPEC): Redefine.
9980 2015-10-20 Gregor Richards <gregor.richards@uwaterloo.ca>
9981 Szabolcs Nagy <szabolcs.nagy@arm.com>
9983 * config/sh/linux.h (MUSL_DYNAMIC_LINKER): Define.
9984 (MUSL_DYNAMIC_LINKER_E, MUSL_DYNAMIC_LINKER_FP): Define.
9986 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9988 * config/aarch64/aarch64.c (aarch64_mode_valid_for_sched_fusion_p):
9990 (fusion_load_store): Use it.
9991 * config/aarch64/aarch64-ldpstp.md: Add new peephole2s for
9992 ldp and stp in VD modes.
9993 * config/aarch64/aarch64-simd.md (load_pair<mode>, VD): New pattern.
9994 (store_pair<mode>, VD): Likewise.
9996 2015-10-20 Vladimir Makarov <vmakarov@redhat.com>
9998 PR rtl-optimization/67609
9999 * lra-splill.c (lra_final_code_change): Don't remove all
10002 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10004 * simplify-rtx.c (simplify_binary_operation): If either operand was
10005 a constant pool reference use them if all other simplifications failed.
10007 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10009 * config/aarch64/aarch64.md
10010 (*aarch64_fcvt<su_optab><GPF:mode><GPI:mode>2_mult): New pattern.
10011 * config/aarch64/aarch64-simd.md
10012 (*aarch64_fcvt<su_optab><VDQF:mode><fcvt_target>2_mult): Likewise.
10013 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle above patterns.
10014 (aarch64_fpconst_pow_of_2): New function.
10015 (aarch64_vec_fpconst_pow_of_2): Likewise.
10016 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow_of_2): Declare
10018 (aarch64_vec_fpconst_pow_of_2): Likewise.
10019 * config/aarch64/predicates.md (aarch64_fp_pow2): New predicate.
10020 (aarch64_fp_vec_pow2): Likewise.
10022 2015-10-20 Uros Bizjak <ubizjak@gmail.com>
10024 * config/alpha/alpha.h (HARD_REGNO_NREGS): Use CEIL macro.
10025 (ALPHA_ARG_SIZE): Ditto. Remove unused NAMED argument.
10026 * config/alpha/alpha.c (alpha_function_arg_advance): Update
10027 ALPHA_ARG_SIZE usage.
10028 (alpha_arg_partial_bytes): Ditto.
10030 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
10033 * cgraphbuild.c (pass_build_cgraph_edges::execute): Skip local
10034 error_mark_node decls.
10036 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
10040 * common/config/i386/i386-common.c (ix86_handle_option): Remove
10041 OPT_miamcu handling.
10042 * config/i386/i386.c (PTA_NO_80387): New macro.
10043 (processor_alias_table): Add PTA_NO_80387 to lakemont.
10044 (ix86_option_override_internal): Update MASK_80387 from
10045 PTA_NO_80387. Don't warn x87/MMX/SSE/AVX for -miamcu. Warn
10046 SSE math only if 80387 is supported. Don't change
10047 MASK_FLOAT_RETURNS.
10048 (ix86_valid_target_attribute_tree): Enable FPMATH_387 only if
10049 80387 is supported.
10050 * config/i386/i386.h (TARGET_FLOAT_RETURNS_IN_80387): True only
10051 if TARGET_80387 is true and TARGET_IAMCU is false.
10052 (TARGET_FLOAT_RETURNS_IN_80387_P): True only if TARGET_80387_P
10053 is true and TARGET_IAMCU_P is false.
10055 2015-10-20 Richard Biener <rguenther@suse.de>
10057 PR tree-optimization/68017
10058 * tree-tailcall.c (eliminate_tail_call): Remove stmts backwards.
10060 2015-10-20 Martin Liska <mliska@suse.cz>
10062 * cgraphclones.c (cgraph_node::create_virtual_clone):
10063 Verify cgraph_node.local.versionable instead of calling
10064 tree_versionable_function_p.
10065 * ipa-cp.c (determine_versionability): Save the information
10066 to ipa_node_params summary.
10067 (ipcp_versionable_function_p): Use it.
10068 (ipcp_propagate_stage): Pass IPA_NODE_REF to a called function.
10069 (ipcp_generate_summary): Do not compute cgraph_node
10071 * ipa-inline-analysis.c (inline_generate_summary): Compute
10072 versionability for all cgraph nodes.
10073 * ipa-prop.c (ipa_node_params_t::duplicate): Duplicate
10074 ipa_node_params::versionability.
10075 * ipa-prop.h (struct ipa_node_params): Declare it.
10077 2015-10-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10080 * varasm.c (assemble_variable): Move special vtv handling to..
10081 (handle_vtv_comdat_sections): .. here. New function.
10082 (output_object_block): Handle vtv sections.
10084 2015-10-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
10087 * varasm.c (default_binds_local_p_2): Turn on extern_protected_data.
10089 2015-10-20 Arkadiusz Drabczyk <arkadiusz@drabczyk.org>
10091 * doc/extend.texi: Update documentation WRT inline functions.
10093 2015-10-20 Alan Modra <amodra@gmail.com>
10096 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Don't define.
10097 * config/rs6000/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
10098 (TARGET_CAN_SPLIT_STACK_64BIT): Define.
10100 2015-10-19 Pierre-Marie de Rodat <derodat@adacore.com>
10102 PR rtl-optimization/66790
10103 * df.h (DF_MIR): New macro.
10104 (DF_LAST_PROBLEM_PLUS1): Update to be past DF_MIR
10105 (DF_MIR_INFO_BB): New macro.
10106 (DF_MIR_IN, DF_MIR_OUT): New macros.
10107 (struct df_mir_bb_info): New.
10108 (df_mir): New macro.
10109 (df_mir_add_problem, df_mir_simulate_one_insn): New forward
10111 (df_mir_get_bb_info): New.
10112 * df-problems.c (struct df_mir_problem_data): New.
10113 (df_mir_free_bb_info, df_mir_alloc, df_mir_reset,
10114 df_mir_bb_local_compute, df_mir_local_compute, df_mir_init,
10115 df_mir_confluence_0, df_mir_confluence_n,
10116 df_mir_transfer_function, df_mir_free, df_mir_top_dump,
10117 df_mir_bottom_dump, df_mir_verify_solution_start,
10118 df_mir_verify_solution_end): New.
10119 (problem_MIR): New.
10120 (df_mir_add_problem, df_mir_simulate_one_insn): New.
10121 * timevar.def (TV_DF_MIR): New.
10122 * ree.c: Include bitmap.h
10123 (add_removable_extension): Add an INIT_REGS parameter. Use it
10124 to skip zero-extensions that may get an uninitialized register.
10125 (find_removable_extensions): Compute must-initialized registers
10126 using the MIR dataflow problem. Update the call to
10127 add_removable_extension.
10128 (find_and_remove_re): Call df_mir_add_problem.
10130 2015-10-19 Segher Boessenkool <segher@kernel.crashing.org>
10132 * common/config/mn10300/mn10300-common.c
10133 (mn10300_option_optimization_table) <OPT_freorder_blocks_algorithm_>:
10134 Use REORDER_BLOCKS_ALGORITHM_STC at -Os and up.
10136 2015-10-19 David Wohlferd <dw@LimeGreenSocks.com>
10138 * doc/extend.texi (Explicit Register Variables): Simplify and
10139 avoid unnecessary and confusion abbreviations. Update cross
10141 doc/implement-c.tex: Update cross reference.
10143 2015-10-19 Jeff Law <law@redhat.com>
10145 * tree-ssa-threadupdate.c (valid_jump_thread_path): Reject paths
10146 that create irreducible loops unless the path elimiantes a multiway
10149 2015-10-19 Richard Biener <rguenther@suse.de>
10151 PR tree-optimization/67975
10152 * tree-cfg.h (extract_true_false_controlled_edges): Declare.
10153 * tree-cfg.c (extract_true_false_controlled_edges): Split out
10154 core worker from ...
10155 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): ... here.
10156 * tree-ssa-sccvn.c (vn_phi_compute_hash): Hash number of args
10157 instead of block number for PHIs with two or one args.
10158 (vn_phi_eq): Compare edge predicates of PHIs that are in different
10161 2015-10-19 Richard Biener <rguenther@suse.de>
10163 * gimple-fold.c (gimple_phi_nonnegative_warnv_p): New function.
10164 (gimple_stmt_nonnegative_warnv_p): Use it.
10165 * match.pd (CPROJ): New operator list.
10166 (cproj (complex ...)): Move simplifications from ...
10167 * builtins.c (fold_builtin_cproj): ... here.
10169 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
10171 * config/i386/i386.c (ix86_expand_vector_move): Use
10172 GET_MODE_BITSIZE for IA MCU psABI to get vector natural
10175 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
10177 * doc/invoke.texi: Replace @optindex with @opindex.
10179 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
10182 * config/i386/i386.c (ix86_valid_target_attribute_tree): If
10183 arch= is set, clear all bits in x_ix86_isa_flags, except for
10184 ISA_64BIT, ABI_64, ABI_X32, and CODE16.
10186 2015-10-19 Joost VandeVondele <vondele@gnu.gcc.org>
10188 PR middle-end/68002
10189 * common.opt (fkeep-static-functions): New option.
10190 * doc/invoke.texi: Document it.
10191 * cgraphunit.c (cgraph_node::finalize_function): Use it.
10193 2015-10-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10195 * sched-int.h (struct autopref_multipass_data_): Remove offset
10196 field. Add min_offset, max_offset, multi_mem_insn_p fields.
10197 * haifa-sched.c (analyze_set_insn_for_autopref): New function.
10198 (autopref_multipass_init): Use it. Handle PARALLEL sets.
10199 (autopref_rank_data): New function.
10200 (autopref_rank_for_schedule): Use it.
10201 (autopref_multipass_dfa_lookahead_guard_1): Likewise.
10203 2015-10-18 Mikhail Maltsev <maltsevm@gmail.com>
10206 * gengtype.c (dump_type): Handle TYPE_UNDEFINED correctly.
10208 2015-10-18 Iain Sandoe <iain@codesourcery.com>
10210 * config/darwin.h (TARGET_SYSTEM_ROOT): Remove this from here,
10211 (HAVE_LD_SYSROOT): New. (SYSROOT_SPEC): New.
10212 (LINK_SYSROOT_SPEC): Revise to remove the default for target sysroot.
10213 (STANDARD_STARTFILE_PREFIX_1): New.
10214 (STANDARD_STARTFILE_PREFIX_2): New.
10216 2015-10-18 Iain Sandoe <iain@codesourcery.com>
10218 * config/darwin-driver.c (darwin_default_min_version): Refactor code.
10219 (darwin_driver_init): Note a version-min when provided on the c/l.
10220 * config/darwin.h (%darwin_minversion): Remove.
10221 * config/i386/darwin.h: Likewise.
10222 * config/rs6000/darwin.h: Likewise.
10223 * config/darwin.opt (mmacosx-version-min=): Use the configured default,
10224 rather than an arbitrary constant.
10226 2015-10-18 Iain Sandoe <iain@codesourcery.com>
10228 * config/darwin-driver.c (darwin_driver_init): Handle '-arch' for
10229 PPC, detect conflicts between -arch and multilib settings. Detect
10230 and warn about conflicts between multiple -arch definitions.
10232 2015-10-18 Iain Sandoe <iain@codesourcery.com>
10234 * config/darwin-driver.c: Adjust includes to add diagnostic-core.
10236 2015-10-16 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10238 * lra-constraints.c (add_next_usage_insn): Change argument type
10239 from rtx to rtx_insn *.
10241 2015-10-16 H.J. Lu <hongjiu.lu@intel.com>
10243 * i386/x86-tune.def (X86_TUNE_ALWAYS_FANCY_MATH_387): Disable
10246 2015-10-16 Andrew MacLeod <amacleod@redhat.com>
10248 * config/tilepro/gen-mul-tables.cc: Adjust include files.
10249 * config/tilegx/mul-tables.c: Regenerate.
10250 * config/tilepro/mul-tables.c: Regenerate.
10252 * config/tilegx/tilegx-c.c: Adjust include files.
10253 * config/tilegx/tilegx.c: Likewise.
10254 * config/tilepro/tilepro-c.c: Likewise.
10255 * config/tilepro/tilepro.c: Likewise.
10256 * config/aarch64/aarch64-builtins.c: Likewise.
10257 * config/aarch64/aarch64.c: Likewise.
10258 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
10259 * config/alpha/alpha.c: Likewise.
10260 * config/arc/arc.c: Likewise.
10261 * config/arm/aarch-common.c: Likewise.
10262 * config/arm/arm-builtins.c: Likewise.
10263 * config/arm/arm-c.c: Likewise.
10264 * config/arm/arm.c: Likewise.
10265 * config/avr/avr-c.c: Likewise.
10266 * config/avr/avr-devices.c: Likewise.
10267 * config/avr/avr-log.c: Likewise.
10268 * config/avr/avr.c: Likewise.
10269 * config/bfin/bfin.c: Likewise.
10270 * config/c6x/c6x.c: Likewise.
10271 * config/cr16/cr16.c: Likewise.
10272 * config/cris/cris.c: Likewise.
10273 * config/darwin-c.c: Likewise.
10274 * config/darwin-driver.c: Likewise.
10275 * config/darwin.c: Likewise.
10276 * config/default-c.c: Likewise.
10277 * config/epiphany/epiphany.c: Likewise.
10278 * config/epiphany/mode-switch-use.c: Likewise.
10279 * config/epiphany/resolve-sw-modes.c: Likewise.
10280 * config/fr30/fr30.c: Likewise.
10281 * config/frv/frv.c: Likewise.
10282 * config/ft32/ft32.c: Likewise.
10283 * config/glibc-c.c: Likewise.
10284 * config/h8300/h8300.c: Likewise.
10285 * config/i386/host-cygwin.c: Likewise.
10286 * config/i386/host-mingw32.c: Likewise.
10287 * config/i386/i386-c.c: Likewise.
10288 * config/i386/i386.c: Likewise.
10289 * config/i386/msformat-c.c: Likewise.
10290 * config/i386/winnt-cxx.c: Likewise.
10291 * config/i386/winnt-stubs.c: Likewise.
10292 * config/i386/winnt.c: Likewise.
10293 * config/ia64/ia64-c.c: Likewise.
10294 * config/ia64/ia64.c: Likewise.
10295 * config/iq2000/iq2000.c: Likewise.
10296 * config/lm32/lm32.c: Likewise.
10297 * config/m32c/m32c-pragma.c: Likewise.
10298 * config/m32c/m32c.c: Likewise.
10299 * config/m32r/m32r.c: Likewise.
10300 * config/mcore/mcore.c: Likewise.
10301 * config/mep/mep-pragma.c: Likewise.
10302 * config/mep/mep.c: Likewise.
10303 * config/microblaze/microblaze-c.c: Likewise.
10304 * config/microblaze/microblaze.c: Likewise.
10305 * config/mips/mips-tables.opt
10306 * config/mips/mips.c: Likewise.
10307 * config/mmix/mmix.c: Likewise.
10308 * config/mn10300/mn10300.c: Likewise.
10309 * config/moxie/moxie.c: Likewise.
10310 * config/msp430/msp430-c.c: Likewise.
10311 * config/msp430/msp430.c: Likewise.
10312 * config/nds32/nds32-cost.c: Likewise.
10313 * config/nds32/nds32-fp-as-gp.c: Likewise.
10314 * config/nds32/nds32-intrinsic.c: Likewise.
10315 * config/nds32/nds32-isr.c: Likewise.
10316 * config/nds32/nds32-md-auxiliary.c: Likewise.
10317 * config/nds32/nds32-memory-manipulation.c: Likewise.
10318 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
10319 * config/nds32/nds32-predicates.c: Likewise.
10320 * config/nds32/nds32.c: Likewise.
10321 * config/nios2/nios2.c: Likewise.
10322 * config/nvptx/mkoffload.c: Likewise.
10323 * config/nvptx/nvptx.c: Likewise.
10324 * config/pa/pa.c: Likewise.
10325 * config/pdp11/pdp11.c: Likewise.
10326 * config/rl78/rl78-c.c: Likewise.
10327 * config/rl78/rl78.c: Likewise.
10328 * config/rs6000/host-darwin.c: Likewise.
10329 * config/rs6000/rs6000-c.c: Likewise.
10330 * config/rs6000/rs6000-linux.c: Likewise.
10331 * config/rs6000/rs6000.c: Likewise.
10332 * config/rx/rx.c: Likewise.
10333 * config/s390/s390-c.c: Likewise.
10334 * config/s390/s390.c: Likewise.
10335 * config/sh/sh-c.c: Likewise.
10336 * config/sh/sh-mem.cc: Likewise.
10337 * config/sh/sh.c: Likewise.
10338 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
10339 * config/sh/sh_treg_combine.cc: Likewise.
10340 * config/sol2-c.c: Likewise.
10341 * config/sol2-cxx.c: Likewise.
10342 * config/sol2-stubs.c: Likewise.
10343 * config/sol2.c: Likewise.
10344 * config/sparc/sparc-c.c: Likewise.
10345 * config/sparc/sparc.c: Likewise.
10346 * config/spu/spu-c.c: Likewise.
10347 * config/spu/spu.c: Likewise.
10348 * config/stormy16/stormy16.c: Likewise.
10349 * config/v850/v850-c.c: Likewise.
10350 * config/v850/v850.c: Likewise.
10351 * config/vax/vax.c: Likewise.
10352 * config/visium/visium.c: Likewise.
10353 * config/vms/vms-c.c: Likewise.
10354 * config/vms/vms.c: Likewise.
10355 * config/vxworks.c: Likewise.
10356 * config/winnt-c.c: Likewise.
10357 * config/xtensa/xtensa.c: Likewise.
10359 2015-10-16 Christian Bruel <christian.bruel@st.com>
10362 * config/arm/arm.h (FUNCTION_BOUNDARY): Use FUNCTION_BOUNDARY_P.
10363 (FUNCTION_BOUNDARY_P): New macro:
10364 * config/arm/arm.c (TARGET_RELAYOUT_FUNCTION, arm_relayout_function):
10366 * doc/tm.texi.in (TARGET_RELAYOUT_FUNCTION): Document.
10367 * doc/tm.texi (TARGET_RELAYOUT_FUNCTION): New hook.
10368 * target.def (TARGET_RELAYOUT_FUNCTION): Likewise.
10369 * function.c (allocate_struct_function): Call
10370 relayout_function hook.
10371 * passes.c (rest_of_decl_compilation): Likewise.
10373 2015-10-16 Christian Bruel <christian.bruel@st.com>
10376 * config/arm/arm.h (FUNCTION_BOUNDARY): Move optimize_size condition to:
10377 * config/arm/arm.c (arm_option_override_internal): Call
10378 arm_override_options_after_change_1.
10379 (arm_override_options_after_change): New function.
10380 (arm_override_options_after_change_1): Likewise.
10381 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define hook.
10383 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
10386 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
10387 empty constructors.
10389 2015-10-16 Eric Botcazou <ebotcazou@adacore.com>
10391 * tree.c (recompute_tree_invariant_for_addr_expr): Assert that the
10392 argument is an ADDR_EXPR.
10394 2015-10-16 Richard Biener <rguenther@suse.de>
10396 * gimple-fold.c (gimple_fold_builtin_memory_op): Use gimple_build
10397 and get rid of force_gimple_operand_gsi.
10398 (gimple_fold_builtin_memory_chk): Likewise.
10399 (gimple_fold_builtin_stxcpy_chk): Likewise.
10400 (rewrite_to_defined_overflow): Likewise.
10401 (gimple_convert_to_ptrofftype): New function.
10402 * gimple-fold.h (gimple_convert_to_ptrofftype): New overload, declare.
10404 2015-10-16 Richard Biener <rguenther@suse.de>
10406 * tree-nested.h (build_addr): Adjust prototype.
10407 * tree-nested.c (build_addr): Remove context argument and use
10409 (get_static_chain): Adjust calls to build_addr.
10410 (convert_nl_goto_reference): Likewise.
10411 (convert_tramp_reference_op): Likewise.
10412 (finalize_nesting_tree_1): Likewise.
10413 * value-prof.c (gimple_ic): Likewise.
10414 * gimple-low.c (lower_builtin_setjmp): Likewise.
10415 * tree-parloops.c (take_address_of): Likewise.
10416 (create_call_for_reduction_1): Likewise.
10417 * tree-profile.c (gimple_gen_interval_profiler): Likewise.
10418 (gimple_gen_ic_func_profiler): Likewise.
10420 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
10422 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
10423 empty constructors.
10425 2015-10-16 Michael Collison <michael.collison@linaro.org>
10426 Andrew Pinski <andrew.pinski@caviumnetworks.com>
10428 * match.pd ((x < y) && (x < z) -> x < min (y,z),
10429 (x > y) and (x > z) -> x > max (y,z))
10431 2015-10-15 Gregor Richards <gregor.richards@uwaterloo.ca>
10432 Szabolcs Nagy <szabolcs.nagy@arm.com>
10434 * config/microblaze/linux.h (MUSL_DYNAMIC_LINKER): Define.
10435 (DYNAMIC_LINKER): Renamed to ...
10436 (GLIBC_DYNAMIC_LINKER): This.
10437 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_DYNAMIC_LINKER.
10439 2015-10-15 Marek Polacek <polacek@redhat.com>
10441 * tree-ssa-reassoc.c (attempt_builtin_copysign): Call
10442 gimple_call_builtin instead of is_gimple_call.
10444 2015-10-15 Richard Biener <rguenther@suse.de>
10446 * tree-vect-stmts.c (vect_init_vector): Remove unused vars.
10448 2015-10-15 Richard Biener <rguenther@suse.de>
10450 * tree-vectorizer.h (vect_get_new_ssa_name): Declare.
10451 * tree-vect-data-refs.c (vect_get_new_ssa_name): New helper.
10452 * tree-vect-loop.c (get_initial_def_for_induction): Drop
10453 use of force_gimple_operand in favor of gimple_build.
10454 Use vect_get_new_ssa_name.
10455 * tree-vect-stmts.c (vect_init_vector): Use vect_get_new_ssa_name.
10456 (vectorizable_mask_load_store): Likewise.
10457 (vectorizable_call): Likewise.
10458 (vectorizable_store): Likewise.
10459 (vectorizable_load): Likewise.
10460 (vect_get_vec_def_for_stmt_copy): Remove redundant stmt.
10462 2015-10-15 Richard Sandiford <richard.sandiford@arm.com>
10464 PR tree-optimization/67945
10465 * tree-pass.h (PROP_gimple_opt_math): New property flag.
10466 * generic-match-head.c (canonicalize_math_p): New function.
10467 * gimple-match-head.c: Include tree-pass.h.
10468 (canonicalize_math_p): New function.
10469 * match.pd: Group math built-in rules into simplifications
10470 and canonicalizations. Guard the latter with canonicalize_math_p.
10471 * tree-ssa-math-opts.c (pass_data_cse_sincos): Provide the
10472 PROP_gimple_opt_math property.
10474 2015-10-15 Marek Polacek <polacek@redhat.com>
10476 PR tree-optimization/67953
10477 * match.pd (X - (X / Y) * Y): Don't change signedness of @0.
10479 2015-10-15 Jiong Wang <jiong.wang@arm.com>
10481 * config.gcc: Recognize "." in architecture base name for AArch64.
10483 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
10485 * config/mips/mips.h (MIPS_STACK_ALIGN): Implement using
10487 * config/mips/mips.c (mips_setup_incoming_varargs): Use
10488 ROUND_DOWN to calculate off.
10489 (mips_gimplify_va_arg_expr): Use ROUND_UP to calculate rsize.
10490 (mips_emit_probe_stack_range): Use ROUND_DOWN to calculate
10493 2015-10-14 Eric Botcazou <ebotcazou@adacore.com>
10495 * gimplify.c (gimplify_addr_expr) <MEM_REF>: New case.
10497 2015-10-14 Peter Bergner <bergner@vnet.ibm.com>
10498 Torvald Riegel <triegel@redhat.com>
10501 * config/rs6000/htm.md (UNSPEC_HTM_FENCE): New.
10502 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
10503 trechkpt, treclaim, tsr, ttest): Rename define_insns from this...
10504 (*tabort, *tabort<wd>c, *tabort<wd>ci, *tbegin, *tcheck, *tend,
10505 *trechkpt, *treclaim, *tsr, *ttest): ...to this. Add memory barrier.
10506 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
10507 trechkpt, treclaim, tsr, ttest): New define_expands.
10508 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
10509 __TM_FENCE__ for htm.
10510 * doc/extend.texi: Update documentation for htm builtins.
10512 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
10515 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Do not add
10516 REG_CFA_EXPRESSION to aligned SSE stores.
10518 2015-10-14 Jeff Law <law@redhat.com>
10520 * tree-ssa-threadupdate.c (thread_through_all_blocks): Bump
10521 num_threaded_edges for successful FSM threads too.
10523 2015-10-14 Richard Biener <rguenther@suse.de>
10525 * tree-vectorizer.h (vect_is_simple_use): Remove unused parameters.
10526 (vect_is_simple_use_1): Likewise. Make overload of vect_is_simple_use.
10527 (vect_get_vec_def_for_operand): Remove unused parameter.
10528 * tree-vect-loop.c (get_initial_def_for_induction): Adjust.
10529 (vect_create_epilog_for_reduction): Likewise.
10530 (vectorizable_reduction): Likewise.
10531 (vectorizable_live_operation): Likewise.
10532 * tree-vect-patterns.c (type_conversion_p): Likewise.
10533 (vect_recog_vector_vector_shift_pattern): Likewise.
10534 (check_bool_pattern): Likewise.
10535 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
10536 (vect_analyze_slp_cost_1): Likewise.
10537 * tree-vect-stmts.c (process_use): Likewise.
10538 (vect_get_vec_def_for_operand): Do not handle reductions.
10539 (vect_get_vec_defs): Adjust.
10540 (vectorizable_mask_load_store): Likewise.
10541 (vectorizable_call): Likewise.
10542 (vectorizable_simd_clone_call): Likewise.
10543 (vect_get_loop_based_defs): Likewise.
10544 (vectorizable_conversion): Likewise.
10545 (vectorizable_assignment): Likewise.
10546 (vectorizable_shift): Likewise.
10547 (vectorizable_operation): Likewise.
10548 (vectorizable_store): Likewise.
10549 (vectorizable_load): Likewise.
10550 (vect_is_simple_cond): Likewise.
10551 (vectorizable_condition): Likewise.
10552 (vect_is_simple_use): Remove unused parameters.
10553 (vect_is_simple_use_1): Adjust and rename.
10555 2015-10-14 Richard Biener <rguenther@suse.de>
10557 PR tree-optimization/67915
10558 * match.pd: Handle comparisons of addresses of STRING_CSTs.
10559 * gimplify.c (gimplify_cond_expr): Fold the GIMPLE conds we build.
10560 * tree-cfgcleanup.c (cleanup_control_expr_graph): Remove GENERIC
10561 stmt folding in favor of GIMPLE one.
10563 2015-10-14 Marek Polacek <polacek@redhat.com>
10565 PR tree-optimization/67815
10566 * tree-ssa-reassoc.c (attempt_builtin_copysign): New function.
10567 (reassociate_bb): Call it.
10569 2015-10-14 Richard Biener <rguenther@suse.de>
10571 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
10572 Reset info at start.
10573 (vect_analyze_group_access_1): Add debug print.
10574 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost): Rename ...
10575 (vect_compute_single_scalar_iteration_cost): ... to this.
10576 (vect_analyze_loop_2): Adjust.
10577 * tree-vect-slp.c (struct _slp_oprnd_info): Move from ...
10578 * tree-vectorizer.h: ... here.
10579 (add_stmt_info_to_vec): Remove.
10580 * tree-vect-stmts.c (record_stmt_cost): Inline add_stmt_info_to_vec.
10582 2015-10-14 Dominik Vogt <vogt@linux.vnet.ibm.com>
10584 * targhooks.c (default_target_option_pragma_parse): Do not warn if
10585 called on behalf of "#pragma GCC pop_options".
10587 2015-10-14 Tom de Vries <tom@codesourcery.com>
10589 * cfganal.c (verify_no_unreachable_blocks): New function.
10590 (inverted_post_order_compute) [ENABLE_CHECKING]: Call
10591 verify_no_unreachable_blocks.
10592 cfganal.h (verify_no_unreachable_blocks): Declare.
10594 2015-10-13 Mikhail Maltsev <maltsevm@gmail.com>
10596 * common.opt: Add flag_checking.
10597 * system.h (CHECKING_P): Define.
10599 2015-10-13 Jakub Jelinek <jakub@redhat.com>
10600 Aldy Hernandez <aldyh@redhat.com>
10601 Ilya Verbin <ilya.verbin@intel.com>
10603 * builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR,
10604 BT_FN_BOOL_UINT_ULLPTR_ULLPTR_ULLPTR,
10605 BT_FN_BOOL_UINT_LONGPTR_LONG_LONGPTR_LONGPTR,
10606 BT_FN_BOOL_UINT_ULLPTR_ULL_ULLPTR_ULLPTR,
10607 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_UINT_PTR,
10608 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR,
10609 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT,
10610 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_LONG_LONG_LONG,
10611 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_ULL_ULL_ULL,
10612 BT_FN_VOID_LONG_VAR, BT_FN_VOID_ULL_VAR): New.
10613 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
10614 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
10615 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): Remove.
10616 * cgraph.h (enum cgraph_simd_clone_arg_type): Add
10617 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP,
10618 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
10619 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
10620 (struct cgraph_simd_clone_arg): Adjust comment.
10621 * coretypes.h (struct gomp_ordered): New forward decl.
10622 * gimple.c (gimple_build_omp_critical): Add CLAUSES argument,
10623 set critical clauses to it.
10624 (gimple_build_omp_ordered): Return gomp_ordered * instead of
10625 gimple *. Add CLAUSES argument, set ordered clauses to it.
10626 (gimple_copy): Unshare clauses on GIMPLE_OMP_CRITICAL and
10627 GIMPLE_OMP_ORDERED.
10628 * gimple.def (GIMPLE_OMP_ORDERED): Change from GSS_OMP to
10629 GSS_OMP_SINGLE_LAYOUT, move it after GIMPLE_OMP_TEAMS.
10630 * gimple.h (enum gf_mask): Add GF_OMP_TASK_TASKLOOP. Add another bit
10631 to GF_OMP_FOR_KIND_MASK mask. Add GF_OMP_FOR_KIND_TASKLOOP, renumber
10632 GF_OMP_FOR_KIND_CILKFOR and GF_OMP_FOR_KIND_OACC_LOOP. Adjust
10633 GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED and GF_OMP_FOR_COMBINED_INTO.
10634 Add another bit to GF_OMP_TARGET_KIND_MASK mask. Add
10635 GF_OMP_TARGET_KIND_ENTER_DATA and GF_OMP_TARGET_KIND_EXIT_DATA,
10637 GF_OMP_TARGET_KIND_OACC_{PARALLEL,KERNELS,DATA,UPDATE,ENTER_EXIT_DATA}.
10638 (gomp_critical): Add clauses field.
10639 (gomp_ordered): New struct.
10640 (is_a_helper <gomp_ordered *>::test): New inline.
10641 (gimple_build_omp_critical): Add CLAUSES argument.
10642 (gimple_build_omp_ordered): Likewise. Return gomp_ordered *
10643 instead of gimple *.
10644 (gimple_omp_critical_clauses, gimple_omp_critical_clauses_ptr,
10645 gimple_omp_critical_set_clauses, gimple_omp_ordered_clauses,
10646 gimple_omp_ordered_clauses_ptr, gimple_omp_ordered_set_clauses,
10647 gimple_omp_task_taskloop_p, gimple_omp_task_set_taskloop_p): New
10649 * gimple-pretty-print.c (dump_gimple_omp_for): Handle taskloop.
10650 (dump_gimple_omp_target): Handle enter data and exit data.
10651 (dump_gimple_omp_block): Don't handle GIMPLE_OMP_ORDERED here.
10652 (dump_gimple_omp_critical): Print clauses.
10653 (dump_gimple_omp_ordered): New function.
10654 (dump_gimple_omp_task): Handle taskloop.
10655 (pp_gimple_stmt_1): Use dump_gimple_omp_ordered for
10656 GIMPLE_OMP_ORDERED.
10657 * gimple-walk.c (walk_gimple_op): Walk clauses on
10658 GIMPLE_OMP_CRITICAL and GIMPLE_OMP_ORDERED.
10659 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_0LEN_ARRAY.
10660 (enum omp_region_type): Add ORT_COMBINED_TARGET and ORT_NONE.
10661 (struct gimplify_omp_ctx): Add loop_iter_var,
10662 target_map_scalars_firstprivate, target_map_pointers_as_0len_arrays
10663 and target_firstprivatize_array_bases fields.
10664 (delete_omp_context): Release loop_iter_var.
10665 (gimplify_bind_expr): Handle ORT_NONE.
10666 (maybe_fold_stmt): Adjust check for ORT_TARGET for the addition of
10667 ORT_COMBINED_TARGET.
10668 (is_gimple_stmt): Return true for OMP_TASKLOOP, OMP_TEAMS and
10669 OMP_TARGET{,_DATA,_UPDATE,_ENTER_DATA,_EXIT_DATA}.
10670 (omp_firstprivatize_variable): Handle ORT_NONE. Adjust check for
10671 ORT_TARGET for the addition of ORT_COMBINED_TARGET. Handle
10672 ctx->target_map_scalars_firstprivate.
10673 (omp_add_variable): Handle ORT_NONE. Allow map clause together with
10674 data sharing clauses. For data sharing clause with VLA decl
10675 on omp target/target data don't add firstprivate for the pointer.
10676 Call omp_notice_variable on TYPE_SIZE_UNIT only if it is a DECL_P.
10677 (omp_notice_threadprivate_variable): Adjust check for ORT_TARGET for
10678 the addition of ORT_COMBINED_TARGET.
10679 (omp_notice_variable): Handle ORT_NONE. Adjust check for ORT_TARGET
10680 for the addition of ORT_COMBINED_TARGET. Handle implicit mapping of
10681 pointers as zero length array sections and
10682 ctx->target_map_scalars_firstprivate mapping of scalars as firstprivate
10684 (omp_check_private): Handle omp_member_access_dummy_var vars.
10685 (find_decl_expr): New function.
10686 (gimplify_scan_omp_clauses): Add CODE argument. For OMP_CLAUSE_IF
10687 complain if OMP_CLAUSE_IF_MODIFIER is present and does not match code.
10688 Handle OMP_CLAUSE_GANG separately. Handle
10689 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
10690 clauses. Diagnose linear clause on combined
10691 distribute {, parallel for} simd construct, unless it is the loop
10692 iterator. Handle struct element GOMP_MAP_FIRSTPRIVATE_POINTER.
10693 Handle map clauses with COMPONENT_REF. Initialize
10694 ctx->target_map_scalars_firstprivate,
10695 ctx->target_firstprivatize_array_bases and
10696 ctx->target_map_pointers_as_0len_arrays. Add firstprivate for
10697 linear clause even to target region if combined. Remove
10698 map clauses with GOMP_MAP_FIRSTPRIVATE_POINTER kind from
10699 OMP_TARGET_{,ENTER_,EXIT_}DATA. For GOMP_MAP_FIRSTPRIVATE_POINTER
10700 map kind with non-INTEGER_CST OMP_CLAUSE_SIZE firstprivatize the bias.
10701 Handle OMP_CLAUSE_DEPEND_{SINK,SOURCE}. Handle
10702 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.
10703 For linear clause on worksharing loop combined with parallel add
10704 shared clause on the parallel. Handle OMP_CLAUSE_REDUCTION
10705 with MEM_REF OMP_CLAUSE_DECL. Set DECL_NAME on
10706 omp_member_access_dummy_var vars. Add lastprivate clause to outer
10707 taskloop if needed.
10708 (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_0LEN_ARRAY.
10709 If gimplify_omp_ctxp->target_firstprivatize_array_bases, use
10710 GOMP_MAP_FIRSTPRIVATE_POINTER map kind instead of
10712 (gimplify_adjust_omp_clauses): Add CODE argument. Handle removal
10713 of GOMP_MAP_FIRSTPRIVATE_POINTER struct elements for struct not seen
10714 in target body. Handle removal of struct mapping if struct is not
10715 seen in target body. Remove GOMP_MAP_STRUCT map clause on
10716 OMP_TARGET_EXIT_DATA. Adjust check for ORT_TARGET for the
10717 addition of ORT_COMBINED_TARGET. Use GOMP_MAP_FIRSTPRIVATE_POINTER
10718 instead of GOMP_MAP_POINTER if ctx->target_firstprivatize_array_bases
10719 for VLAs. Set OMP_CLAUSE_MAP_PRIVATE if both data sharing and map
10720 clause appear together. Handle
10721 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}. Don't remove map
10722 clause if it has map-type-modifier always. Handle
10723 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
10725 (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task):
10726 Adjust gimplify_scan_omp_clauses and gimplify_adjust_omp_clauses
10728 (gimplify_omp_for): Likewise. Handle OMP_TASKLOOP. Initialize
10729 loop_iter_var. Use OMP_FOR_ORIG_DECLS. Fix handling of lastprivate
10730 iterators in doacross loops.
10731 (gimplify_omp_workshare): Adjust gimplify_scan_omp_clauses and
10732 gimplify_adjust_omp_clauses callers. Use ORT_COMBINED_TARGET
10733 for OMP_TARGET_COMBINED. Adjust check for ORT_TARGET
10734 for the addition of ORT_COMBINED_TARGET.
10735 (gimplify_omp_target_update): Adjust gimplify_scan_omp_clauses and
10736 gimplify_adjust_omp_clauses callers. Handle OMP_TARGET_ENTER_DATA
10737 and OMP_TARGET_EXIT_DATA.
10738 (gimplify_omp_ordered): New function.
10739 (gimplify_expr): Handle OMP_TASKLOOP, OMP_TARGET_ENTER_DATA and
10740 OMP_TARGET_EXIT_DATA. Use gimplify_omp_ordered for OMP_ORDERED.
10741 Gimplify clauses on OMP_CRITICAL.
10742 * internal-fn.c (expand_GOMP_SIMD_ORDERED_START,
10743 expand_GOMP_SIMD_ORDERED_END): New functions.
10744 * internal-fn.def (GOMP_SIMD_ORDERED_START,
10745 GOMP_SIMD_ORDERED_END): New internal functions.
10746 * omp-builtins.def (BUILT_IN_GOMP_LOOP_DOACROSS_STATIC_START,
10747 BUILT_IN_GOMP_LOOP_DOACROSS_DYNAMIC_START,
10748 BUILT_IN_GOMP_LOOP_DOACROSS_GUIDED_START,
10749 BUILT_IN_GOMP_LOOP_DOACROSS_RUNTIME_START,
10750 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_STATIC_START,
10751 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_DYNAMIC_START,
10752 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_GUIDED_START,
10753 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_RUNTIME_START,
10754 BUILT_IN_GOMP_DOACROSS_POST, BUILT_IN_GOMP_DOACROSS_WAIT,
10755 BUILT_IN_GOMP_DOACROSS_ULL_POST, BUILT_IN_GOMP_DOACROSS_ULL_WAIT,
10756 BUILT_IN_GOMP_TARGET_ENTER_EXIT_DATA, BUILT_IN_GOMP_TASKLOOP,
10757 BUILT_IN_GOMP_TASKLOOP_ULL): New built-ins.
10758 (BUILT_IN_GOMP_TASK): Add INT argument to the end.
10759 (BUILT_IN_GOMP_TARGET): Rename from GOMP_target to GOMP_target_41,
10761 (BUILT_IN_GOMP_TARGET_DATA): Rename from GOMP_target_data to
10762 GOMP_target_data_41, adjust type.
10763 (BUILT_IN_GOMP_TARGET_UPDATE): Rename from GOMP_target_update to
10764 GOMP_target_update_41, adjust type.
10765 * omp-low.c (struct omp_region): Adjust comments, add ord_stmt
10767 (struct omp_for_data): Add ordered and simd_schedule fields.
10768 (omp_member_access_dummy_var, unshare_and_remap_1,
10769 unshare_and_remap, is_taskloop_ctx): New functions.
10770 (is_taskreg_ctx): Use is_parallel_ctx and is_task_ctx.
10771 (extract_omp_for_data): Handle taskloops and doacross loops
10772 and simd schedule modifier.
10773 (omp_adjust_chunk_size): New function.
10774 (get_ws_args_for): Use it.
10775 (lookup_sfield): Change first argument to splay_tree_key,
10776 add overload with first argument tree.
10777 (maybe_lookup_field): Likewise.
10778 (use_pointer_for_field): Handle omp_member_access_dummy_var.
10779 (omp_copy_decl_2): If var is TREE_ADDRESSABLE listed in
10780 task_shared_vars, clear TREE_ADDRESSABLE on the copy.
10781 (build_outer_var_ref): Add LASTPRIVATE argument, handle
10782 taskloops and omp_member_access_dummy_var vars.
10783 (build_sender_ref): Change first argument to splay_tree_key,
10784 add overload with first argument tree.
10785 (install_var_field): For mask & 8 use &DECL_UID as key instead
10786 of the tree itself.
10787 (fixup_child_record_type): Const qualify *.omp_data_i.
10788 (scan_sharing_clauses): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE,
10789 C/C++ array reductions, OMP_CLAUSE_{IS,USE}_DEVICE_PTR clauses,
10790 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,SIMDLEN,THREADS,SIMD} and
10791 OMP_CLAUSE_{NOGROUP,DEFAULTMAP} clauses, OMP_CLAUSE__LOOPTEMP_ clause
10792 on taskloop, GOMP_MAP_FIRSTPRIVATE_POINTER, OMP_CLAUSE_MAP_PRIVATE.
10793 (create_omp_child_function): Set TREE_READONLY on .omp_data_i.
10794 (find_combined_for): Allow searching for different GIMPLE_OMP_FOR
10796 (add_taskreg_looptemp_clauses): New function.
10797 (scan_omp_parallel): Use it.
10798 (scan_omp_task): Likewise.
10799 (finish_taskreg_scan): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
10800 For taskloop, move fields for the first two _LOOPTEMP_ clauses first.
10801 (check_omp_nesting_restrictions): Handle GF_OMP_TARGET_KIND_ENTER_DATA
10802 and GF_OMP_TARGET_KIND_EXIT_DATA. Formatting fixes. Allow the
10803 sandwiched taskloop constructs. Type check
10804 OMP_CLAUSE_DEPEND_{KIND,SOURCE}. Allow ordered simd inside of simd
10805 region. Diagnose depend(source) or depend(sink:...) on
10806 target constructs or task/taskloop.
10807 (handle_simd_reference): Use get_name.
10808 (lower_rec_input_clauses): Likewise. Ignore all
10809 OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses on taskloop construct.
10810 Allow _LOOPTEMP_ clause on GOMP_TASK. Unshare new_var
10811 before passing it to omp_clause_{default,copy}_ctor. Handle
10812 OMP_CLAUSE_REDUCTION with MEM_REF OMP_CLAUSE_DECL. Set
10813 lastprivate_firstprivate flag for linear that needs copyin and
10814 copyout. Use BUILT_IN_ALLOCA_WITH_ALIGN instead of BUILT_IN_ALLOCA.
10815 (lower_lastprivate_clauses): For OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE
10816 on taskloop lookup decl in outer context. Pass true to
10817 build_outer_var_ref lastprivate argument. Handle
10818 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV lastprivate if the decl is global
10819 outside of outer taskloop for.
10820 (lower_reduction_clauses): Handle OMP_CLAUSE_REDUCTION with MEM_REF
10822 (lower_send_clauses): Ignore first two _LOOPTEMP_ clauses in taskloop
10823 GOMP_TASK. Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE. Handle
10824 omp_member_access_dummy_var vars. Handle OMP_CLAUSE_REDUCTION
10825 with MEM_REF OMP_CLAUSE_DECL. Use new lookup_sfield overload.
10826 (lower_send_shared_vars): Ignore fields with NULL or FIELD_DECL
10827 abstract origin. Handle omp_member_access_dummy_var vars.
10828 (expand_parallel_call): Use expand_omp_build_assign.
10829 (expand_task_call): Handle taskloop construct expansion. Add
10830 REGION argument. Use GOMP_TASK_* defines instead of hardcoded
10831 integers. Add priority argument to GOMP_task* calls. Or in
10832 GOMP_TASK_FLAG_PRIORITY into flags if priority is present for
10834 (expand_omp_build_assign): Add prototype. Add AFTER
10835 argument, if true emit statements after *GSI_P and continue linking.
10836 (expand_omp_taskreg): Adjust expand_task_call caller.
10837 (expand_omp_for_init_counts): Rename zero_iter_bb argument to
10838 zero_iter1_bb and first_zero_iter to first_zero_iter1, add
10839 zero_iter2_bb and first_zero_iter2 arguments, handle computation
10840 of counts even for ordered loops.
10841 (expand_omp_for_init_vars): Handle GOMP_TASK inner_stmt.
10842 (expand_omp_ordered_source, expand_omp_ordered_sink,
10843 expand_omp_ordered_source_sink, expand_omp_for_ordered_loops): New
10845 (expand_omp_for_generic): Use omp_adjust_chunk_size. Handle linear
10846 clauses on worksharing loop. Handle DOACROSS loop expansion.
10847 (expand_omp_for_static_nochunk): Handle linear clauses on
10848 worksharing loop. Adjust expand_omp_for_init_counts
10850 (expand_omp_for_static_chunk): Likewise. Use omp_adjust_chunk_size.
10851 (expand_omp_simd): Handle addressable fd->loop.v. Adjust
10852 expand_omp_for_init_counts callers.
10853 (expand_omp_taskloop_for_outer, expand_omp_taskloop_for_inner): New
10855 (expand_omp_for): Call expand_omp_taskloop_for_* for taskloop.
10856 Handle doacross loops.
10857 (expand_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
10858 GF_OMP_TARGET_KIND_EXIT_DATA. Pass flags and depend arguments to
10859 GOMP_target_{41,update_41,enter_exit_data} libcalls.
10860 (expand_omp): Don't expand ordered depend constructs here, record
10861 ord_stmt instead for later expand_omp_for_generic.
10862 (build_omp_regions_1): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
10863 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
10864 clause as stand-alone directive.
10865 (lower_omp_ordered_clauses): New function.
10866 (lower_omp_ordered): Handle OMP_CLAUSE_SIMD, for OMP_CLAUSE_DEPEND
10867 don't lower anything.
10868 (lower_omp_for_lastprivate): Use last _looptemp_ clause
10869 on taskloop for comparison.
10870 (lower_omp_for): Handle taskloop constructs. Adjust OMP_CLAUSE_DECL
10871 and OMP_CLAUSE_LINEAR_STEP so that expand_omp_for_* can use it during
10872 expansion for linear adjustments.
10873 (create_task_copyfn): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
10874 (lower_depend_clauses): Assert not seeing sink/source depend kinds.
10875 Set TREE_ADDRESSABLE on array. Change first argument from gimple *
10876 to tree * pointing to the stmt's clauses.
10877 (lower_omp_taskreg): Adjust lower_depend_clauses caller.
10878 (lower_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA
10879 and GF_OMP_TARGET_KIND_EXIT_DATA, depend clauses,
10880 GOMP_MAP_{RELEASE,ALWAYS_{TO,FROM,TOFROM},FIRSTPRIVATE_POINTER,STRUCT}
10881 map kinds, OMP_CLAUSE_{FIRSTPRIVATE,PRIVATE,{IS,USE}_DEVICE_PTR
10882 clauses. Always use short kind and 8-bit align shift.
10883 (lower_omp_regimplify_p): Use IS_TYPE_OR_DECL_P macro.
10884 (struct lower_omp_regimplify_operands_data): New type.
10885 (lower_omp_regimplify_operands_p, lower_omp_regimplify_operands):
10887 (lower_omp_1): Use lower_omp_regimplify_operands instead of
10888 gimple_regimplify_operands.
10889 (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
10890 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
10891 clause as stand-alone directive.
10892 (simd_clone_clauses_extract): Honor OMP_CLAUSE_LINEAR_KIND.
10893 (simd_clone_mangle): Mangle the various linear kinds
10895 (simd_clone_adjust_argument_types): Handle
10896 SIMD_CLONE_ARG_TYPE_LINEAR_*_CONSTANT_STEP.
10897 (simd_clone_init_simd_arrays): Don't do anything for uval.
10898 (simd_clone_adjust): Handle
10899 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
10900 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.
10901 Handle SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP.
10902 * omp-low.h (omp_member_access_dummy_var): New prototype.
10903 * passes.def (pass_simduid_cleanup): Schedule another copy of the
10904 pass after all optimizations.
10905 * tree.c (omp_clause_code_name): Add entries for
10906 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
10907 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
10908 (omp_clause_num_ops): Likewise. Bump number of OMP_CLAUSE_REDUCTION
10909 arguments to 5 and for OMP_CLAUSE_ORDERED to 1.
10910 (walk_tree_1): Adjust for OMP_CLAUSE_ORDERED having 1 argument and
10911 OMP_CLAUSE_REDUCTION 5 arguments. Handle
10912 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
10913 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}
10915 * tree-core.h (enum omp_clause_linear_kind): New.
10916 (struct tree_omp_clause): Change type of map_kind
10917 from unsigned char to unsigned int. Add subcode.if_modifier
10918 and subcode.linear_kind fields.
10919 (enum omp_clause_code): Add
10920 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
10921 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
10922 (OMP_CLAUSE_REDUCTION): Document
10923 OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
10924 (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_{SOURCE,SINK}.
10925 * tree.def (OMP_FOR): Add OMP_FOR_ORIG_DECLS operand.
10926 (OMP_CRITICAL): Move before OMP_SINGLE. Add OMP_CRITICAL_CLAUSES
10928 (OMP_ORDERED): Move before OMP_SINGLE. Add OMP_ORDERED_CLAUSES
10930 (OMP_TASKLOOP, OMP_TARGET_ENTER_DATA, OMP_TARGET_EXIT_DATA): New tree
10932 * tree.h (OMP_BODY): Replace OMP_CRITICAL with OMP_TASKGROUP.
10933 (OMP_CLAUSE_SET_MAP_KIND): Cast to unsigned int rather than unsigned
10935 (OMP_CRITICAL_NAME): Adjust to be 3rd operand instead of 2nd.
10936 (OMP_CLAUSE_NUM_TASKS_EXPR): Formatting fix.
10937 (OMP_STANDALONE_CLAUSES): Adjust to cover OMP_TARGET_{ENTER,EXIT}_DATA.
10938 (OMP_CLAUSE_DEPEND_SINK_NEGATIVE, OMP_TARGET_COMBINED,
10939 OMP_CLAUSE_MAP_PRIVATE, OMP_FOR_ORIG_DECLS, OMP_CLAUSE_IF_MODIFIER,
10940 OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION, OMP_CRITICAL_CLAUSES,
10941 OMP_CLAUSE_PRIVATE_TASKLOOP_IV, OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV,
10942 OMP_CLAUSE_HINT_EXPR, OMP_CLAUSE_SCHEDULE_SIMD,
10943 OMP_CLAUSE_LINEAR_KIND, OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER,
10944 OMP_CLAUSE_SHARED_FIRSTPRIVATE, OMP_ORDERED_CLAUSES,
10945 OMP_TARGET_ENTER_DATA_CLAUSES, OMP_TARGET_EXIT_DATA_CLAUSES,
10946 OMP_CLAUSE_NUM_TASKS_EXPR, OMP_CLAUSE_GRAINSIZE_EXPR,
10947 OMP_CLAUSE_PRIORITY_EXPR, OMP_CLAUSE_ORDERED_EXPR): Define.
10948 * tree-inline.c (remap_gimple_stmt): Handle clauses on
10949 GIMPLE_OMP_ORDERED and GIMPLE_OMP_CRITICAL. For
10950 IFN_GOMP_SIMD_ORDERED_{START,END} set has_simduid_loops.
10951 * tree-nested.c (convert_nonlocal_omp_clauses): Handle
10952 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
10953 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
10954 clauses. Handle OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
10955 (convert_local_omp_clauses): Likewise.
10956 * tree-pretty-print.c (dump_omp_clause): Handle
10957 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
10958 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
10959 clauses. Handle OMP_CLAUSE_IF_MODIFIER, OMP_CLAUSE_ORDERED_EXPR,
10960 OMP_CLAUSE_SCHEDULE_SIMD, OMP_CLAUSE_LINEAR_KIND,
10961 OMP_CLAUSE_DEPEND_{SOURCE,SINK}. Use "delete" for
10962 GOMP_MAP_FORCE_DEALLOC. Handle
10963 GOMP_MAP_{ALWAYS_{TO,FROM,TOFROM},RELEASE,FIRSTPRIVATE_POINTER,STRUCT}.
10964 (dump_generic_node): Handle OMP_TASKLOOP, OMP_TARGET_{ENTER,EXIT}_DATA
10965 and clauses on OMP_ORDERED and OMP_CRITICAL.
10966 * tree-vectorizer.c (adjust_simduid_builtins): Adjust comment.
10967 Remove IFN_GOMP_SIMD_ORDERED_{START,END}.
10968 (vectorize_loops): Adjust comments.
10969 (pass_simduid_cleanup::execute): Likewise.
10970 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
10971 SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_CONSTANT_STEP.
10972 * wide-int.h (wi::gcd): New.
10974 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
10976 * config/i386/i386.c (classify_argument): Use CEIL where applicable.
10977 (ix86_function_arg_advance): Ditto.
10978 (ix86_function_arg): Ditto.
10979 (ix86_gimplify_va_arg): Ditto.
10980 (ix86_class_max_nregs): Ditto.
10981 (inline_memory_move_cost): Ditto.
10982 (ix86_set_reg_reg_cost): Ditto.
10983 * config/i386/i386.h (HARD_REGNO_NREGS): Ditto.
10985 2015-10-13 Alexandre Oliva <aoliva@redhat.com>
10987 PR middle-end/67912
10988 * expmed.c (store_bit_field_1): Adjust mode of BLKmode inputs.
10990 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
10992 * config/sparc/sparc.h (SPARC_STACK_ALIGN): Implement using
10993 ROUND_UP macro and UNITS_PER_WORD * 2.
10994 * config/sparc/sparc.c (sparc_compute_frame_size):
10995 Use ROUND_UP and ROUND_DOWN macros where applicable.
10996 (function_arg_record_value, function_arg_record_value_1)
10997 (function_arg_record_value_1): Ditto.
10998 (emit_save_or_restore_regs): Use ROUND_DOWN to preserve offset
10999 alignment to double-word.
11000 (sparc_gimplify_va_arg): Use ROUND_UP to calculate rsize.
11001 (sparc_emit_probe_stack_range): Use ROUND_DOWN to calculate
11004 2015-10-13 Nikolai Bozhenov <n.bozhenov@samsung.com>
11006 * rtl.h (print_insn): Fix prototype.
11008 2015-10-13 Tom de Vries <tom@codesourcery.com>
11010 * tree-parloops.c (reduction_phi): Handle cases that gimple_uid is 0 or
11011 -1. Add assert that returned entry matches phi argument.
11012 (parallelize_loops): Move calls to init_stmt_vec_info_vec and
11013 free_stmt_vec_info_vec ...
11014 (gather_scalar_reductions): ... here. Initialize gimple_uids of phis
11017 2014-10-13 Yuri Rumyantsev <ysrumyan@gmail.com>
11019 PR tree-optimization/67909, 67947
11020 * tree-ssa-loop-unswitch.c (find_loop_guard): Add check that GUARD_EDGE
11021 really skip the inner loop.
11023 2015-10-13 Jeff Law <law@redhat.com>
11025 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
11026 Allow single block jump threading paths.
11028 2015-10-13 Tom de Vries <tom@codesourcery.com>
11030 PR tree-optimization/67476
11031 * doc/invoke.texi (@item parloops-schedule): New item.
11032 * params.def (PARAM_PARLOOPS_SCHEDULE): New DEFPARAMENUM5.
11033 * tree-parloops.c: Include params-enum.h.
11034 (create_parallel_loop): Handle PARAM_PARLOOPS_SCHEDULE.
11036 2015-10-13 Tom de Vries <tom@codesourcery.com>
11038 * Makefile.in (PARAMS_H, PLUGIN_HEADERS): Add params-enum.h.
11039 * params-enum.h: New file.
11040 * opts.c (handle_param): Handle case that param arg is a string.
11041 * params-list.h: Handle DEFPARAMENUM5 in params.def.
11042 * params.c (find_param): New function, factored out of ...
11043 (set_param_value): ... here.
11044 (param_string_value_p): New function.
11045 * params.h (struct param_info): Add value_names field.
11046 (find_param, param_string_value_p): Declare.
11048 2015-10-13 Tom de Vries <tom@codesourcery.com>
11050 PR tree-optimization/67476
11051 * omp-low.c (expand_omp_for_generic): Handle original loop tree.
11053 2015-10-13 Richard Biener <rguenther@suse.de>
11055 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences): Allocate
11056 the data dependence vector.
11057 (vect_peeling_hash_insert): Get the peeling hash table as argument.
11058 (vect_peeling_hash_get_lowest_cost): Likewise.
11059 (vect_enhance_data_refs_alignment): Adjust.
11060 (struct _vect_peel_info, struct _vect_peel_extended_info,
11061 struct peel_info_hasher): Move from ...
11062 * tree-vectorizer.h: ... here.
11063 (LOOP_VINFO_COST_MODEL_MIN_ITERS): Remove.
11064 (LOOP_VINFO_PEELING_HTAB): Likewise.
11065 (struct _loop_vec_info): Remove min_profitable_iters and
11066 peeling_htab members.
11067 * tree-vect-loop.c (new_loop_vec_info): Do not allocate vectors
11069 (destroy_loop_vec_info): Adjust.
11070 (vect_analyze_loop_2): Do not set LOOP_VINFO_COST_MODEL_MIN_ITERS.
11071 (vect_estimate_min_profitable_iters): Use LOOP_VINFO_COMP_ALIAS_DDRS
11072 to estimate alias versioning cost.
11073 * tree-vect-slp.c (vect_analyze_slp_cost): Dump header.
11075 2015-10-13 Richard Sandiford <richard.sandiford@arm.com>
11077 * real.h (real_isinteger): Declare.
11078 * real.c (real_isinteger): New function.
11079 * match.pd: Simplify pow(|x|,y) and pow(-x,y) to pow(x,y)
11080 if y is an even integer.
11082 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
11085 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
11086 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
11087 counts when these are more informative.
11089 2015-10-12 Jeff Law <law@redhat.com>
11091 * tree-ssa-threadbackward.c (get_gimple_control_stmt): New function.
11092 (fsm_find_control_stmt_paths): Change name of first argument to
11093 more accurately relfect what it really is. Handle simplification
11094 of GIMPLE_COND after finding a thread path for NAME.
11095 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Allow
11096 nontrivial conditions to be handled by FSM threader.
11097 (thread_through_normal_block): Extract the name to looup via
11098 FSM threader from COND_EXPR.
11100 * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove
11101 restriction that traced SSA_NAME is a user variable.
11103 2015-10-12 Tom de Vries <tom@codesourcery.com>
11105 PR tree-optimization/67476
11106 * omp-low.c (expand_omp_for_generic): Add missing phis.
11108 2015-10-12 Tom de Vries <tom@codesourcery.com>
11110 PR tree-optimization/67476
11111 * omp-low.c (expand_omp_for_generic): Handle simple latch.
11113 2015-10-12 Christophe Lyon <christophe.lyon@linaro.org>
11115 * config/aarch64/aarch64-simd-builtins.def: Update builtins
11116 tables: add tbl3 and tbx4.
11117 * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): New.
11118 (aarch64_tbx4v8qi): New.
11119 * config/aarch64/arm_neon.h (vtbl3_s8, vtbl3_u8, vtbl3_p8)
11120 (vtbl4_s8, vtbl4_u8, vtbl4_p8, vtbx4_s8, vtbx4_u8, vtbx4_p8):
11121 Rewrite using builtin functions.
11122 * config/aarch64/iterators.md (UNSPEC_TBX): New.
11124 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
11126 * config/rs6000/rs6000.h (RS6000_ALIGN): Implement using
11128 * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
11129 Use ROUND_UP and ROUND_DOWN macros where applicable.
11130 (rs6000_darwin64_record_arg_flush): Ditto.
11131 (rs6000_function_arg): Use ROUND_UP to calculate align_words.
11132 (rs6000_emit_probe_stack_range): Use ROUND_DOWN to calculate
11135 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
11137 * config/aarch/aarch64.h (AARCH64_ROUND_UP): Remove.
11138 (AARCH64_ROUND_DOWN): Ditto.
11139 * config/aarch64/aarch64.c: Use ROUND_UP instead of AARCH64_ROUND_UP.
11141 2015-10-12 Richard Biener <rguenther@suse.de>
11144 * ipa-inline-analysis.c (estimate_function_body_sizes): Re-add
11145 code that analyzes IVs on each stmt but in a cheaper way avoiding
11146 quadratic behavior.
11148 2015-10-12 Nick Clifton <nickc@redhat.com>
11150 * config/msp430/msp430.c (msp430_mcu_names): Rename to
11151 msp430_mcu_data, add fields for ISA and hardware multiply
11152 support. Import latest data from the devices.csv file.
11153 (msp430_override_option): Use the data from the new array.
11154 (msp430_use_f5_series_hwmult): Likewise.
11155 (use_32bit_hwmult): Likewise.
11156 (msp430_no_hwmult): Likewise.
11157 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for new
11159 * doc/invoke.texi (MSP430 Options): Note that if the MCU name is
11160 not recognised then no hardware multiply support is assumed and
11161 that only the MSP430 ISA is allowed.
11163 2015-10-12 Richard Biener <rguenther@suse.de>
11165 * tree-vect-loop.c (vect_analyze_loop_operations): Move cost
11167 (vect_analyze_loop_2): ... here.
11169 2015-10-11 Jason Merrill <jason@redhat.com>
11172 * expr.c (store_field): Call store_constructor directly when
11173 storing a CONSTRUCTOR into a target smaller than its type.
11174 Guard against unsafe bitwise copy.
11176 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
11178 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
11179 counts when these are more informative.
11181 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
11183 * tree-profile.c (tree_profiling): Do not clear
11184 pure/const when not instrumenting.
11185 (pass tree_profile): Add dump of symtab.
11187 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
11189 * fold-const.c (fold_comparsion): Pass OEP_ADDRESS_OF when comparing
11191 (fold_addr_of_array_ref_difference): Likewise.
11193 2015-10-11 Jeff Law <law@redhat.com>
11195 * tree-ssa-threadedge.c (fsm_find_thread_path): Moved from here into
11196 tree-ssa-threadbackward.c.
11197 (fsm_find_control_statement_thread_paths): Likewise.
11198 (thread_through_normal_block): Break out FSM bits and move them
11199 into a new function in tree-ssa-threadbackward.c. Call new function
11201 Minimize header file usage.
11202 * tree-ssa-threadbackward.h: New file.
11203 * tree-ssa-threadbackward.c: Likewise.
11204 * Makefile.in (OBJS): Add tree-ssa-threadbackward.o
11206 2015-10-11 Uros Bizjak <ubizjak@gmail.com>
11208 * config/alpha/alpha.h (ALPHA_ROUND): Implement using ROUND_UP macro.
11210 2015-10-11 Segher Boessenkool <segher@kernel.crashing.org>
11212 PR rtl-optimization/67864
11213 * bb-reorder (reorder_basic_blocks_simple): Prefer existing
11214 fallthrough edges for conditional jumps. Don't sort candidate
11215 edges if not optimizing for speed.
11217 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11219 * defaults.h (REVERSE_CONDITION): New default definition.
11220 * jump.c (reversed_comparison_code_parts): Adjust.
11222 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11224 * builtins.c (expand_builtin_setjmp_receiver): Don't use #if to
11225 check HARD_FRAME_POINTER_IS_ARG_POINTER.
11227 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11229 * defaults.h (FRAME_ADDR_RTX): New default definition.
11230 * builtins.c (expand_builtin_return_addr): Adjust.
11232 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11234 * defaults.h (DYNAMIC_CHAIN_ADDRESS): New default definition.
11235 * builtins.c (expand_builtin_return_addr): Adjust.
11237 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11239 * defaults.h (SETUP_FRAME_ADDRESSES): New default definition.
11240 * builtins.c (expand_builtin_return_addr): Adjust.
11241 * doc/tm.texi: Likewise.
11242 * doc/tm.texi.in: Likewise.
11243 * except.c (expand_builtin_unwind_init): Likewise.
11245 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11247 * builtins.c (expand_builtin_return_addr): Adjust.
11248 * defaults.h (INITIAL_FRAME_ADDRESS_RTX): New default definition.
11250 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
11252 * tree.c (type_with_interoperable_signedness): New.
11253 (gimple_canonical_types_compatible_p): Use it.
11254 * tree.h (type_with_interoperable_signedness): Declare
11256 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
11258 * fold-const.c (operand_equal_p): Document OEP_ADDRESS_OF
11259 and OEP_CONSTANT_ADDRESS_OF; skip type compatibility checks
11260 when OEP_ADDRESS_OF is se.
11262 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
11263 Sebastian Pop <s.pop@samsung.com>
11265 * graphite-dependences.c (scop_get_dependences): Add dump of the
11266 data dependence graph.
11267 * graphite-poly.c (print_isl_union_map): New.
11268 (debug_isl_union_map): New.
11269 * graphite-poly.h (print_isl_union_map): Declare.
11270 (debug_isl_union_map): Declare.
11272 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
11273 Sebastian Pop <s.pop@samsung.com>
11275 * graphite-poly.c (print_iteration_domain): Remove verbosity.
11276 Remove OpenScop formatting.
11277 (print_iteration_domains): Same.
11278 (debug_iteration_domain): Same.
11279 (debug_iteration_domains): Same.
11282 (dump_gbb_cases): Same.
11283 (dump_gbb_conditions): Same.
11284 (print_pdrs): Same.
11285 (debug_pdrs): Same.
11286 (print_pbb_body): Same.
11288 (print_scop_params): Same.
11289 (print_scop_context): Same.
11290 (print_scop): Same.
11291 (debug_pbb_domain): Same.
11293 (debug_scop_context): Same.
11294 (debug_scop): Same.
11295 (debug_scop_params): Same.
11296 * graphite-poly.h: Same.
11297 * graphite.c (graphite_transform_loops): Same.
11299 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11301 * function.c (stack_protect_epilogue): Remove as_a<rtx_insn *> ()
11302 call that isn't needed.
11304 2015-10-09 Jeff Law <law@redhat.com>
11306 * tree-ssanames.c (flush_ssaname_freelist): Use splice and truncate
11307 rather than moving each name to the freelist individually.
11309 2015-10-09 Steve Ellcey <sellcey@imgtec.com>
11311 * config.gcc (mips*-*-*): Add frame-header-opt.o to extra_objs.
11312 * frame-header-opt.c: New file.
11313 * config/mips/mips-proto.h (mips_register_frame_header_opt):
11315 * config/mips/mips.c (mips_compute_frame_info): Check
11316 optimize_call_stack flag.
11317 (mips_option_override): Register new frame_header_opt pass.
11318 (mips_frame_info, mips_int_mask, mips_shadow_set,
11319 machine_function): Move these types to...
11320 * config/mips/mips.h: here.
11321 (machine_function): Add does_not_use_frame_header and
11322 optimize_call_stack fields.
11323 * config/mips/t-mips (frame-header-opt.o): Add new make rule.
11324 * doc/invoke.texi (-mframe-header-opt, -mno-frame-header-opt):
11325 Document new flags.
11326 * config/mips/mips.opt (mframe-header-opt): Add new option.
11328 2015-10-09 Uros Bizjak <ubizjak@gmail.com>
11330 * config/i386/i386.c
11331 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Use
11332 ROUND_DOWN where applicable.
11334 2015-10-09 Jeff Law <law@redhat.com>
11336 * tree-vect-stmts.c (free_stmt_vec_info): Free the LHS of the
11339 2015-10-09 Renlin Li <renlin.li@arm.com>
11341 * config/arm/neon.md (neon_vuzp<mode>_insn): Add & modifier for
11342 operands[0] and operands[2].
11343 (neon_vtrn<mode>_insn): Likewise.
11344 (neon_vzip<mode>_insn): Likewise.
11346 2015-10-09 Andre Vieira <andre.simoesdiasvieira@arm.com>
11348 * match.pd: ((X inner_op C0) outer_op C1) New pattern.
11349 ((X & C2) << C1): Expand to...
11350 (X {&,^,|} C2 << C1): ...This.
11351 ((X & C2) >> C1): Expand to...
11352 (X {&,^,|} C2 >> C1): ...This.
11354 2015-10-09 Alexander Fomin <alexander.fomin@intel.com>
11357 * config/i386/sse.md (define_insn "sse_cvtsi2ss<round_name>"):
11358 Adjust embedded rounding/SAE specifier position.
11359 (define_insn "sse_cvtsi2ssq<round_name>"): Likewise.
11360 (define_insn "cvtusi2<ssescalarmodesuffix>32<round_name>"): Likewise.
11361 (define_insn "cvtusi2<ssescalarmodesuffix>64<round_name>"): Likewise.
11362 (define_insn "sse2_cvtsi2sdq<round_name>"): Likewise.
11363 (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
11365 (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Likewise.
11367 2015-10-09 Martin Jambor <mjambor@suse.cz>
11369 tree-optimization/67794
11370 * tree-sra.c (replace_removed_params_ssa_names): Do not distinguish
11371 between types of state,ents but accept original definitions as a
11373 (ipa_sra_modify_function_body): Use FOR_EACH_SSA_DEF_OPERAND to
11374 iterate over definitions.
11376 2015-10-09 James Norris <jnorris@codesourcery.com>
11378 * config/rs6000/rs6000.c (rs6000_offload_options): New.
11379 (TARGET_OFFLOAD_OPTIONS): New.
11381 2015-10-09 Alexandre Oliva <aoliva@redhat.com>
11383 PR middle-end/67891
11384 * cfgexpand.c (set_parm_rtl): Drop is_gimple_reg test.
11386 PR middle-end/67766
11387 * function.c (expand_function_end): Move return value
11388 promotion past the handling of PARALLELs and CONCATs.
11390 PR rtl-optimization/67828
11391 * tree-ssa-loop-unswitch.c: Include tree-ssa.h.
11392 (tree_may_unswitch_on): Don't unswitch on expressions
11393 involving undefined values.
11395 2015-10-09 Richard Biener <rguenther@suse.de>
11397 * genmatch.c (print_operand): Fix formatting.
11398 (dt_node::append_simplify): Warn for multiple simplifiers
11399 that match the same pattern.
11400 * match.pd (log (exp @0)): Remove duplicates.
11402 2015-10-09 Richard Biener <rguenth@suse.de>
11405 * gimple-fold.c (optabs-query.h): Include
11406 (gimple_fold_builtin_memory_op): Allow unaligned stores
11407 when movmisalign_optabs are available.
11409 2015-10-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11412 * config/arm/arm.md (movmisalign<mode>): New.
11413 * config/arm/iterators.md (HSI): New.
11415 2015-10-09 Richard Biener <rguenther@suse.de>
11417 PR tree-optimization/67891
11418 * gimple-match.h (gimple_simplified_result_is_gimple_val):
11420 (gimple_resimplify1): Declare.
11421 (gimple_resimplify2): Likewise.
11422 (gimple_resimplify3): Likewise.
11423 * gimple-match-head.c (gimple_resimplify1): Export.
11424 (gimple_resimplify2): Likewise.
11425 (gimple_resimplify3): Likewise.
11426 (maybe_push_res_to_seq): Use gimple_simplified_result_is_gimple_val.
11427 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
11428 * tree-ssa-sccvn.c (visit_reference_op_load): Use gimple_resimplify1
11429 to avoid creating stmts without VN info.
11431 2015-10-08 Jan Hubicka <hubicka@ucw.cz>
11433 * ipa-icf.c (sem_item::compare_symbol_references): Fix use
11436 2015-10-08 Jeff Law <law@redhat.com>
11438 * value-prof.c (gimple_ic): Add missing calls to unlink_stmt_vdef
11439 and release_ssa_name in two places.
11440 (gimple_stringop_fixed_value): Similarly.
11442 * tree-ssa-loop-im.c (rewrite_bittest): Add missing call to
11445 * tree-stdarg.c (expand_ifn_va_arg_1): Add missing call to
11446 unlink_stmt_vdef and release_ssa_name_fn.
11448 * tree-ssa-dse.c (dse_optimize_stmt): Add missing call to
11451 2015-10-08 H.J. Lu <hongjiu.lu@intel.com>
11453 * config/i386/i386.c (ix86_compute_frame_layout): Round up the
11454 SSE register save area to 16 bytes only if the incoming stack
11455 boundary is no less than 16 bytes.
11457 2015-10-08 Jeff Law <law@redhat.com>
11459 * tree-ssa-phiopt.c (factor_out_conversion): Add missing calls to
11460 release_ssa_name. Fix typo in comment.
11462 2015-10-08 Nathan Sidwell <nathan@acm.org>
11464 * config/nvptx/nvptx.h (struct machine_function): Add comment.
11465 * config/nvptx/nvptx.c (nvptx_declare_function_name): Functions
11466 may return pointer as well as in memory.
11467 (nvptx_output_return): Likewise.
11469 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
11471 * builtins.c (fold_builtin_sqrt, fold_builtin_cbrt): Delete.
11472 (fold_builtin_1): Update accordingly. Handle constant arguments here.
11473 * match.pd: Add rules previously handled by fold_builtin_sqrt
11474 and fold_builtin_cbrt.
11476 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
11478 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): New param.
11479 * doc/invoke.texi (--param max-ssa-name-query-depth): Document.
11480 * fold-const.h (tree_unary_nonnegative_warnv_p)
11481 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
11482 (tree_expr_nonnegative_warnv_p): Add depth parameters.
11483 * fold-const.c: Include gimple-fold.h and params.h.
11484 (tree_ssa_name_nonnegative_warnv_p): New function.
11485 (tree_unary_nonnegative_warnv_p, tree_binary_nonnegative_warnv_p)
11486 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
11487 (tree_invalid_nonnegative_warnv_p, tree_expr_nonnegative_warnv_p):
11488 Add a depth parameter and increment it for recursive calls to
11489 tree_expr_nonnegative_warnv_p. Use tree_ssa_name_nonnegative_warnv_p
11490 to handle SSA names.
11491 * gimple-fold.h (gimple_val_nonnegative_real_p): Delete.
11492 (gimple_stmt_nonnegative_warnv_p): Declare.
11493 * tree-vrp.c (remove_range_assertions): Remove assert that condition
11494 cannot be proven false.
11495 (gimple_assign_nonnegative_warnv_p, gimple_call_nonnegative_warnv_p)
11496 (gimple_stmt_nonnegative_warnv_p): Move to...
11497 * gimple-fold.c: ...here. Add depth parameters and pass them
11498 down to the tree routines. Accept statements that aren't
11499 assignments or calls but just return false for them.
11500 (gimple_val_nonnegative_real_p): Delete.
11501 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
11502 tree_expr_nonnegative_p instead of gimple_val_nonnegative_real_p.
11503 Check HONOR_NANs first.
11505 2015-10-08 Martin Jambor <mjambor@suse.cz>
11507 * ipa-cp.c (meet_with_1): Make the argument of abs signed. Remove
11510 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
11512 * tree-vect-loop.c (vect_analyze_loop_operations): Skip virtual phi
11513 in the tail of outer-loop.
11515 2015-10-08 David Edelsohn <dje.gcc@gmail.com>
11517 * config/rs6000/rs6000.c (rs6000_xcoff_debug_unwind_info): Always
11520 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
11522 * tree-ssa-loop-unswitch.c: Include "gimple-iterator.h" and
11523 "cfghooks.h", add prototypes for introduced new functions.
11524 (tree_ssa_unswitch_loops): Use from innermost loop iterator, move all
11525 checks on ability of loop unswitching to tree_unswitch_single_loop;
11526 invoke tree_unswitch_single_loop or tree_unswitch_outer_loop depending
11527 on innermost loop check.
11528 (tree_unswitch_single_loop): Add all required checks on ability of
11529 loop unswitching under zero recursive level guard.
11530 (tree_unswitch_outer_loop): New function.
11531 (find_loop_guard): Likewise.
11532 (empty_bb_without_guard_p): Likewise.
11533 (used_outside_loop_p): Likewise.
11534 (get_vop_from_header): Likewise.
11535 (hoist_guard): Likewise.
11536 (check_exit_phi): Likewise.
11538 2015-10-08 Marek Polacek <polacek@redhat.com>
11540 * tree-ssa-reassoc.c (dump_ops_vector): Print newline after each
11543 2015-10-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11546 * config/s390/s390.c (s390_atomic_assign_expand_fenv): Use
11547 create_tmp_var_raw instead of create_tmp_var.
11549 2015-10-07 Jan Hubicka <hubicka@ucw.cz>
11551 * expr.c (store_expr_with_bounds): Handle aggregate moves from
11553 * gimple-expr.c (useless_type_conversion_p): Do not use TYPE_CANONICAL
11554 to define gimple type system; compare aggregates only by size.
11556 2015-10-07 Jeff Law <law@redhat.com>
11558 * tree-ssa-dom.c (optimize_stmt): Don't set LOOPS_NEED_FIXUP here.
11559 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Do it
11560 here instead. Tighten test to avoid setting LOOPS_NEED_FIXUP
11563 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
11564 Sebastian Pop <s.pop@samsung.com>
11566 * graphite-dependences.c (scop_get_dependences): Do not use SCOP_BBS.
11567 * graphite-isl-ast-to-gimple.c (get_max_schedule_dimensions): Same.
11568 (generate_isl_schedule): Same.
11569 * graphite-optimize-isl.c (scop_get_domains): Same.
11570 (apply_schedule_map_to_scop): Same.
11571 * graphite-poly.c (print_iteration_domains): Same.
11572 (remove_gbbs_in_scop): Same.
11575 (print_scop): Same.
11576 * graphite-poly.h (struct scop): Rename bbs to pbbs.
11577 (SCOP_BBS): Remove.
11578 * graphite-scop-detection.c (compare_bb_depths): Remove.
11579 (graphite_sort_dominated_info): Remove.
11580 (try_generate_gimple_bb): Move out of scop_detection.
11581 (all_non_dominated_preds_marked_p): Remove.
11582 (build_scop_bbs_1): Remove.
11583 (build_scop_bbs): Remove.
11584 (nb_pbbs_in_loops): Do not use SCOP_BBS.
11585 (find_scop_parameters): Same.
11586 (sese_dom_walker): Rename gather_bbs.
11587 (before_dom_children): Call try_generate_gimple_bb and collect gbb
11589 (build_scops): Call gather_bbs.
11590 * graphite-sese-to-poly.c (build_scop_scattering): Do not use SCOP_BBS.
11591 (add_conditions_to_constraints): Same.
11592 (build_scop_iteration_domain): Same.
11593 (build_scop_drs): Same.
11594 (new_pbb_from_pbb): Same.
11595 * sese.c (new_sese_info): Create bbs.
11596 * sese.h (struct sese_info_t): Add bbs.
11598 2015-10-07 David Edelsohn <dje.gcc@gmail.com>
11600 * config/rs6000/xcoff.h (ASM_PREFERRED_EH_DATA_FORMAT): Use 64-bit
11601 encoding in 64-bit mode.
11603 2015-10-07 Uros Bizjak <ubizjak@gmail.com>
11606 * config/i386/i386.c (ix86_option_override_internal): Always use
11607 8-byte minimum stack boundary in 64-bit mode.
11608 (ix86_compute_frame_layout): Remove assert on INCOMING_STACK_BOUNDARY.
11609 (ix86_emit_save_reg_using_mov): Support unaligned SSE store.
11610 Add a REG_CFA_EXPRESSION note if needed.
11611 (ix86_emit_restore_sse_regs_using_mov): Support unaligned SSE load.
11612 (ix86_handle_force_align_arg_pointer_attribute): New.
11613 (ix86_minimum_incoming_stack_boundary): Remove TARGET_64BIT check.
11614 (ix86_attribute_table): Set ix86_force_align_arg_pointer_string
11615 with ix86_handle_force_align_arg_pointer_attribute.
11616 * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to BITS_PER_WORD.
11618 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
11619 Sebastian Pop <s.pop@samsung.com>
11621 * graphite-scop-detection.c (parameter_index_in_region): Remove
11622 use of SESE_ADD_PARAMS.
11623 (find_scop_parameters): Same.
11624 * sese.c (new_sese_info): Same.
11625 * sese.h (struct sese_info_t): Remove add_params.
11626 (SESE_ADD_PARAMS): Remove.
11628 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
11629 Sebastian Pop <s.pop@samsung.com>
11631 * graphite-isl-ast-to-gimple.c (translate_isl_ast_to_gimple): Use
11634 (copy_internal_parameters): Same.
11635 (translate_isl_ast_to_gimple): Use an sese_l.
11636 (build_iv_mapping): Same.
11637 * graphite-poly.c (new_sese): Rename new_sese_info.
11638 (free_sese): Rename free_sese_info.
11639 * graphite-poly.h (struct scop): Use an sese_info_p.
11640 (scop_set_region): Same.
11641 * graphite-scop-detection.c (struct sese_l): Moved...
11642 (get_entry_bb): Moved...
11643 (get_exit_bb): Moved...
11644 (parameter_index_in_region_1): Use an sese_info_p.
11645 (parameter_index_in_region): Same.
11646 (scan_tree_for_params): Same.
11647 (find_params_in_bb): Same.
11648 (sese_dom_walker): Use an sese_l.
11649 * graphite-sese-to-poly.c (remove_invariant_phi): Same.
11650 (reduction_phi_p): Same.
11651 (parameter_index_in_region_1): Use an sese_info_p.
11652 (propagate_expr_outside_region): Use an sese_l.
11653 * graphite.c: Replace uses of SCOP_REGION.
11654 * sese.c (sese_record_loop): Use an sese_info_p.
11655 (build_sese_loop_nests): Same.
11656 (sese_build_liveouts_use): Same.
11657 (sese_build_liveouts_bb): Same.
11658 (sese_build_liveouts_bb): Same.
11659 (sese_bad_liveouts_use): Same.
11660 (sese_reset_debug_liveouts_bb): Same.
11661 (sese_build_liveouts): Same.
11662 (new_sese): Renamed new_sese_info.
11663 (free_sese): Renamed free_sese_info.
11664 (set_rename): Use an sese_info_p.
11665 (graphite_copy_stmts_from_block): Same.
11666 (copy_bb_and_scalar_dependences): Same.
11667 (outermost_loop_in_sese_1): Use an sese_l.
11668 (outermost_loop_in_sese): Same.
11669 (if_region_set_false_region): Use an sese_info_p.
11670 (move_sese_in_condition): Same.
11671 (scalar_evolution_in_region): Use an sese_l.
11672 * sese.h (struct sese_l): ... here.
11673 (SESE_ENTRY): Remove.
11674 (SESE_ENTRY_BB): Remove.
11675 (SESE_EXIT): Remove.
11676 (SESE_EXIT_BB): Remove.
11677 (sese_contains_loop): Use an sese_info_p.
11678 (sese_nb_params): Same.
11679 (bb_in_sese_p): Use an sese_l.
11680 (stmt_in_sese_p): Same.
11681 (defined_in_sese_p): Same.
11682 (loop_in_sese_p): Same.
11683 (sese_loop_depth): Same.
11684 (struct ifsese_s): Use an sese_info_p.
11685 (gbb_loop_at_index): Use an sese_l.
11686 (nb_common_loops): Same.
11687 (scev_analyzable_p): Same.
11689 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
11691 * config/i386/i386.c (ix86_conditional_register_usage): Use
11692 CALL_USED_REGISTERS_MASK.
11693 * config/i386/i386.h (CALL_USED_REGISTERS_MASK): New macro.
11695 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
11698 * configure.ac (gcc_cv_readelf): Check $READELF_FOR_TARGET.
11699 * configure: Regenerated.
11701 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
11704 * config/i386/i386.c (ix86_maybe_switch_abi): Merged with ...
11705 (ix86_set_current_function): This.
11706 (TARGET_EXPAND_TO_RTL_HOOK): Removed.
11708 2015-10-07 Richard Biener <rguenther@suse.de>
11710 * tree-vectorizer.h (stmt_vec_info_vec): Use vec<stmt_vec_info>.
11711 (vinfo_for_stmt): Adjust.
11712 (set_vinfo_for_stmt): Likewise.
11713 * tree-vectorizer.c (stmt_vec_info_vec): Likewise.
11714 * tree-vect-stmts.c (free_stmt_vec_info_vec): Likewise.
11715 * tree-vect-loop.c (new_loop_vec_info): Remove special-casing
11717 (vect_analyze_loop_1): Remove.
11718 (vect_analyze_loop_form_1): Avoid building a loop_vec_info for
11719 inner loop when vectorizing an outer loop by splitting out from ...
11720 (vect_analyze_loop_form): ... here.
11722 2015-10-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11725 * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv):
11726 Use create_tmp_var_raw instead of create_tmp_var.
11728 2015-10-07 Richard Sandiford <richard.sandiford@arm.com>
11730 * real.h (dconst_quarter, dconst_sixth, dconst_ninth): New macros.
11731 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): Declare.
11732 * real.c (CACHED_FRACTION): New helper macro.
11733 (dconst_third_ptr): Use it.
11734 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): New.
11735 * builtins.c (fold_builtin_sqrt): Use dconst_quarter and
11737 (fold_builtin_cbrt): Use dconst_sixth and dconst_ninth.
11739 2015-10-06 Jeff Law <law@redhat.com>
11741 PR tree-optimization/67816
11742 * tree-ssa-threadupdate.h (remove_jump_threads_including): Renamed
11743 from remove_jump_threads_starting_at. Accept an edge rather than
11745 * tree-ssa-threadupdate.c (removed_edges): New hash table.
11746 (remove_jump_threads_including): Note edges that get removed from
11747 the CFG for later pruning of jump threading paths including them.
11748 (thread_through_all_blocks): Remove paths which include edges that
11750 * tree-ssa-dom.c (optimize_stmt): Call remove_jump_threads_including
11751 on each outgoing edges when optimizing away a control statement.
11753 2015-10-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11755 * reorg.c (emit_delay_sequence): Store list of delay slot insns
11756 in a vector instead of rtx_insn_list.
11757 (add_to_delay_list): Likewise.
11758 (delete_from_delay_slot): Likewise.
11759 (optimize_skip): Likewise.
11760 (redirect_with_delay_list_safe_p): Likewise.
11761 (check_annul_list_true_false): Likewise.
11762 (steal_delay_list_from_target): Likewise.
11763 (steal_delay_list_from_fallthrough): Likewise.
11764 (redundant_insn): Likewise.
11765 (fill_simple_delay_slots): Likewise.
11766 (fill_slots_from_thread): Likewise.
11767 (fill_eager_delay_slots): Likewise.
11768 (relax_delay_slots): Likewise.
11770 2015-10-06 Sandra Loosemore <sandra@codesourcery.com>
11772 * config/nios2/nios2.c (nios2_symbol_ref_in_small_data_p):
11773 For -mgpopt=local, also exclude unintialized common symbols.
11774 * doc/invoke.texi (Nios II Options): Document the change.
11776 2015-10-07 Kugan Vivekanandarajah <kuganv@linaro.org>
11778 * config/aarch64/iterators.md (vwcore): Add missing cases for
11781 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
11782 Sebastian Pop <s.pop@samsung.com>
11784 * graphite-poly.c (new_scop): Initialize drs.
11785 * graphite-poly.h (struct dr_info): New.
11786 (struct scop): Add drs.
11787 * graphite-sese-to-poly.c (pdr_add_alias_set): Use dr_info.
11788 (pdr_add_memory_accesses): Same.
11789 (build_poly_dr): Same.
11790 (build_alias_set): Same.
11791 (build_scop_drs): Same.
11792 (build_pbb_drs): Remove.
11793 * tree-data-ref.c (create_data_ref): Do not initialize alias_set.
11794 * tree-data-ref.h (data_reference): Remove alias_set.
11796 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
11797 Sebastian Pop <s.pop@samsung.com>
11799 * graphite-poly.c (free_data_refs_aux): Remove.
11800 (free_gimple_poly_bb): Do not call free_data_refs_aux.
11801 * graphite-poly.h (struct base_alias_pair): Remove.
11802 * graphite-sese-to-poly.c (pdr_add_alias_set): Remove all uses of
11803 base_alias_pair and dr->aux.
11804 (build_alias_set): Same.
11805 * tree-data-ref.c (create_data_ref): Initialize alias_set.
11806 * tree-data-ref.h (data_reference): Add alias_set.
11808 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
11809 Sebastian Pop <s.pop@samsung.com>
11811 * graphite-poly.c (new_poly_dr): Remove dr_base_object_set.
11812 Do not set PDR_BASE_OBJECT_SET.
11813 * graphite-poly.h (poly_dr): Same.
11814 (PDR_BASE_OBJECT_SET): Remove.
11815 (new_poly_dr): Update decl.
11816 * graphite-sese-to-poly.c (build_poly_dr): Update call to
11818 (write_alias_graph_to_ascii_dimacs): Remove.
11819 (write_alias_graph_to_ascii_dot): Remove.
11820 (write_alias_graph_to_ascii_ecc): Remove.
11821 (dr_same_base_object_p): Remove.
11822 (build_alias_set_optimal_p): Rename build_alias_set. Remove dead
11824 (build_base_obj_set_for_drs): Remove.
11825 (dump_alias_graphs): Remove.
11826 (build_scop_drs): Remove dead code.
11828 2015-10-05 Michael Meissner <meissner@linux.vnet.ibm.com>
11829 Peter Bergner <bergner@vnet.ibm.com>
11832 * config/rs6000/rs6000.md (extenddftf2): In the expander, only
11833 allow registers, but provide insns for the combiner to create for
11834 loads from memory. Separate VSX code from non-VSX code. For
11835 non-VSX code, combine extenddftf2_fprs into extenddftf2 and rename
11836 externaldftf2_internal to externaldftf2_fprs. Reorder constraints
11837 so that registers come before memory operations. Drop support from
11838 converting DFmode to TFmode, if the DFmode value is in a GPR
11840 (extenddftf2_fprs): Likewise.
11841 (extenddftf2_internal): Likewise.
11842 (extenddftf2_vsx): Likewise.
11843 (extendsftf2): In the expander, only allow registers, but provide
11844 insns for the combiner to create for stores and loads.
11846 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11848 * varasm.c (default_elf_asm_named_section): Remove ATTRIBUTE_UNUSED
11849 from the decl parameter.
11851 2015-10-06 Nathan Sidwell <nathan@codesourcery.com>
11854 * gimple-fold.c (gimple_fold_builtin): Add break after
11855 BUILT_IN_PRINTF_CHK, BUILT_IN_VPRINTF_CHK folding.
11857 2015-10-06 H.J. Lu <hongjiu.lu@intel.com>
11859 * graphite-optimize-isl.c (optimize_isl): Rename scop->ctx
11860 to scop->isl_context.
11862 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
11864 * config/arm/arm.c (arm_emit_probe_stack_range): Adjust comment.
11865 (output_probe_stack_range): Rotate the loop and simplify.
11866 (thumb1_expand_prologue): Tweak sorry message.
11867 * config/arm/arm.md (probe_stack): Use bare string.
11869 2015-10-06 Nick Clifton <nickc@redhat.com>
11871 * config.gcc (lm32-elf): Add newlib-stdint.h to tm_file.
11873 2015-10-06 Nick Clifton <nickc@redhat.com>
11875 * config/msp430/msp430.c (ATTR_NOINIT): New constant.
11876 (ATTR_PERSIST): New constant.
11877 (msp430_data_attr): New function - verifies an attribute that only
11878 applies to variables.
11879 (msp430_attributes): Add noinit and persistent attributes.
11880 (noinit_section): New variable.
11881 (presis_section): New variable.
11882 (TARGET_ASM_INIT_SECTIONS): Define.
11883 (msp430_init_sections): New function - initialises the noinit and
11884 persist section variables.
11885 (msp430_select_section): Add support for noinit and persist
11887 (msp430_section_type_flags): Likewise.
11888 * doc/extend.texi: Document the reent, critical, wakeup, noinit
11889 and persistent attributes.
11891 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
11892 Sebastian Pop <s.pop@samsung.com>
11894 * graphite-dependences.c (scop_get_transformed_schedule): Remove.
11895 (no_violations): Remove.
11896 (subtract_commutative_associative_deps): Remove.
11897 (compute_deps): Do not call subtract_commutative_associative_deps.
11898 (transform_is_safe): Remove.
11899 (graphite_legal_transform): Remove.
11900 * graphite-poly.h (graphite_legal_transform): Remove.
11902 2015-10-05 Aditya Kumar <hiraditya@msn.com>
11904 * graphite-sese-to-poly.c (build_loop_iteration_domains): Only loops
11905 which are in this region are passed so gcc_assert and remove redundant
11907 * sese.c (sese_build_liveouts): Pass only those bbs which are not
11909 (sese_bad_liveouts_use): Only BBs which are not in region are passed so
11910 gcc_assert on that and remove unnecessary computation.
11911 (sese_build_liveouts_use): Same.
11913 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
11915 * graphite-dependences.c (scop_get_reads): Renamed scop->context
11916 to scop->param_context.
11917 (scop_get_must_writes): Same.
11918 (scop_get_may_writes): Same.
11919 (scop_get_original_schedule): Same.
11920 (scop_get_transformed_schedule): Same.
11921 (subtract_commutative_associative_deps): Same.
11922 * graphite-isl-ast-to-gimple.c (add_parameters_to_ivs_params): Same.
11923 (generate_isl_context): Same.
11924 (generate_isl_schedule): Same.
11925 (scop_to_isl_ast): Same.
11926 (graphite_regenerate_ast_isl): Same.
11927 * graphite-optimize-isl.c (scop_get_domains): Same.
11928 (optimize_isl): Renamed scop->context to scop->param_context.
11929 * graphite-poly.c (new_poly_bb): Change the type of argument to
11931 (new_scop): Renamed scop->context to scop->param_context.
11933 (print_scop_context): Same.
11934 * graphite-poly.h (new_poly_dr): Change the type of argument from
11935 void* to data_reference_p.
11936 (struct poly_bb): Change the type of black_box to gimple_poly_bb_p.
11937 (new_poly_bb): Change the type of argument from void* to
11939 (pbb_set_black_box): Same.
11940 (struct scop): Rename context to param_context, ctx to isl_context.
11941 * graphite-scop-detection.c (scop_detection::build_scop_bbs_1):
11942 Move declarations closer to assignment.
11943 (find_params_in_bb): Same.
11944 (find_scop_parameters): Same.
11945 * graphite-sese-to-poly.c (unsigned ssa_name_version_typesize):
11946 Global to be used for statement IDs.
11947 (isl_id_for_pbb): Use ssa_name_version_typesize.
11948 (simple_copy_phi_p): Move declarations closer to assignment.
11949 (build_pbb_scattering_polyhedrons): Same.
11950 (build_scop_scattering): Same.
11951 (isl_id_for_ssa_name): Same.
11952 (extract_affine_name): Same.
11953 (extract_affine_int): Same.
11954 (extract_affine): Same.
11955 (set_scop_parameter_dim): Use renamed member.
11956 (build_loop_iteration_domains): Same.
11957 (add_param_constraints): Same.
11958 (build_scop_iteration_domain): Same.
11959 (pdr_add_data_dimensions): Same.
11960 (build_poly_dr): Same.
11961 (build_scop_drs): Move declarations closer to assignment.
11962 (analyze_drs_in_stmts): Same.
11963 (insert_out_of_ssa_copy): Same.
11964 (insert_out_of_ssa_copy_on_edge): Same.
11965 (propagate_expr_outside_region): Same.
11966 (rewrite_phi_out_of_ssa): Same.
11967 (rewrite_degenerate_phi): Same.
11968 (rewrite_reductions_out_of_ssa): Same.
11969 (rewrite_cross_bb_scalar_dependence): Same.
11970 (handle_scalar_deps_crossing_scop_limits): Same.
11971 (rewrite_cross_bb_scalar_deps): Same.
11972 * graphite.c (graphite_transform_loops): Use renamed member.
11974 2015-10-06 Uros Bizjak <ubizjak@gmail.com>
11977 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Use
11978 create_tmp_var_raw instead of create_tmp_var.
11980 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11983 * config/aarch64/aarch64-builtins.c (aarch64_atomic_assign_expand_fenv):
11984 Use create_tmp_var_raw instead of create_tmp_var.
11986 2015-10-06 Alexander Fomin <alexander.fomin@intel.com>
11989 * config/i386/sse.md (define_split vec_select/V8FI): Restrict
11990 split for upper-bank registers when target does not support
11992 (define_insn "vec_extract_lo_<mode><mask_name>"): Restrict
11993 split when target does not support AVX512VL.
11995 2015-10-06 David Edelsohn <dje.gcc@gmail.com>
11998 * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv):
11999 Adjust to use create_tmp_var_raw instead of create_tmp_var.
12001 2015-10-06 Nick Clifton <nickc@redhat.com>
12003 * config/rl78/rl78.c (rl78_rtx_costs): Improve cost estimates for
12006 2015-10-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
12008 * config.gcc (i[34567]86-*-linux* | ...): Add znver1.
12009 (case ${target}): Add znver1.
12010 * config/i386/cpuid.h(bit_CLZERO): Define.
12011 * config/i386/driver-i386.c: (host_detect_local_cpu): Let
12012 -march=native recognize znver1 processors.
12013 * config/i386/i386-c.c (ix86_target_macros_internal): Add
12014 znver1, clzero def_and_undef.
12015 * config/i386/i386.c (struct processor_costs znver1_cost): New.
12016 (m_znver1): New definition.
12017 (m_AMD_MULTIPLE): Includes m_znver1.
12018 (processor_target_table): Add znver1 entry.
12019 (ix86_target_string) : Add clzero entry.
12020 (static const char *const cpu_names): Add znver1 entry.
12021 (ix86_option_override_internal): Add znver1 instruction sets.
12022 (PTA_CLZERO) : New definition.
12023 (ix86_option_override_internal): Handle new clzerooption.
12024 (ix86_issue_rate): Add znver1.
12025 (ix86_adjust_cost): Add znver1.
12026 (ia32_multipass_dfa_lookahead): Add znver1.
12027 (has_dispatch): Add znver1.
12028 * config/i386/i386.h (TARGET_znver1): New definition.
12029 (TARGET_CLZERO): Define.
12030 (TARGET_CLZERO_P): Define.
12031 (struct ix86_size_cost): Add TARGET_ZNVER1.
12032 (enum processor_type): Add PROCESSOR_znver1.
12033 * config/i386/i386.md (define_attr "cpu"): Add znver1.
12034 (set_attr znver1_decode): New definitions for znver1.
12035 * config/i386/i386.opt (flag_dispatch_scheduler): Add znver1.
12037 * config/i386/mmx.md (set_attr znver1_decode): New definitions
12039 * config/i386/sse.md (set_attr znver1_decode): Likewise.
12040 * config/i386/x86-tune.def: Add znver1 tunings.
12041 * config/i386/znver1.md: Introduce znver1 cpu and include new md file.
12042 * doc/invoke.texi: Add details about znver1
12044 2015-10-06 Richard Biener <rguenther@suse.de>
12046 PR tree-optimization/67859
12047 * tree-ssa-pre.c (create_expression_by_pieces): Properly
12048 discard not inserted stmts.
12050 2015-10-06 Jonathan Wakely <jwakely@redhat.com>
12052 * doc/extend.texi (Template Instantiation): Reorder options and
12053 de-emphasize -frepo.
12054 * doc/invoke.texi (C++ Dialect Options): Use -fstrict-enums in
12055 example instead of -frepo.
12057 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
12060 * config/sparc/sparc.c (sparc_atomic_assign_expand_fenv): Adjust to
12061 use create_tmp_var_raw rather than create_tmp_var.
12063 2015-10-06 Richard Biener <rguenther@suse.de>
12065 * tree-vectorizer.h (vec_info): New base class for...
12066 (_loop_vec_info): ... this and ...
12067 (_bb_vec_info): ... this.
12068 (vect_is_simple_use, vect_is_simple_use_1, new_stmt_vec_info,
12069 vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
12070 vect_analyze_data_ref_accesses, vect_analyze_data_refs,
12071 vect_schedule_slp, vect_analyze_slp, vect_pattern_recog,
12072 vect_destroy_datarefs): Adjust interface to take a vec_info *
12073 rather than both a loop_vec_info and a bb_vec_info argument.
12074 * tree-vect-data-refs.c (vect_compute_data_refs_alignment,
12075 vect_verify_datarefs_alignment, vect_enhance_data_refs_alignment,
12076 vect_analyze_data_refs_alignment, vect_analyze_data_ref_accesses,
12077 vect_analyze_data_refs, vect_create_data_ref_ptr): Adjust
12079 * tree-vect-loop.c (new_loop_vec_info): Initialize base class.
12080 (destroy_loop_vec_info, vect_analyze_loop_2,
12081 vect_is_simple_reduction_1, get_initial_def_for_induction,
12082 vect_create_epilog_for_reduction, vectorizable_reduction,
12083 vectorizable_live_operation, vect_transform_loop): Adjust.
12084 * tree-vect-patterns.c (type_conversion_p,
12085 vect_recog_widen_mult_pattern, vect_recog_widen_shift_pattern,
12086 vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern,
12087 vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern,
12088 check_bool_pattern, vect_recog_bool_pattern,
12089 vect_mark_pattern_stmts, vect_pattern_recog): Likewise.
12090 * tree-vect-slp.c (vect_get_and_check_slp_defs,
12091 vect_build_slp_tree_1, vect_build_slp_tree, vect_analyze_slp_cost_1,
12092 vect_analyze_slp_instance, vect_analyze_slp, destroy_bb_vec_info,
12093 vect_slp_analyze_bb_1, vect_schedule_slp): Likewise.
12094 (new_bb_vec_info): Initialize base classs.
12095 * tree-vect-stmts.c (record_stmt_cost, process_use,
12096 vect_get_vec_def_for_operand, vect_finish_stmt_generation,
12097 vectorizable_mask_load_store, vectorizable_call,
12098 vectorizable_simd_clone_call, vectorizable_conversion,
12099 vectorizable_assignment, vectorizable_shift,
12100 vectorizable_operation, vectorizable_store,
12101 vectorizable_load, vect_is_simple_cond, vectorizable_condition,
12102 new_stmt_vec_info, vect_is_simple_use, vect_is_simple_use_1): Likewise.
12103 * tree-vectorizer.c (vect_destroy_datarefs): Likewise.
12105 2015-10-05 Kaz Kojima <kkojima@gcc.gnu.org>
12108 * config/sh/sh.c (sh_atomic_assign_expand_fenv): Adjust to use
12109 create_tmp_var_raw rather than create_tmp_var.
12111 2015-10-05 Marek Polacek <polacek@redhat.com>
12113 * tree-ssa-loop-im.c
12114 (move_computations_dom_walker::before_dom_children): Don't set
12115 SSA_NAME_ANTI_RANGE_P.
12116 * tree-ssa-phiopt.c (value_replacement): Likewise.
12118 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
12119 Sebastian Pop <s.pop@samsung.com>
12121 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Increase to 7.
12123 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
12124 Sebastian Pop <s.pop@samsung.com>
12126 * graphite-poly.c (new_gimple_poly_bb): ... here.
12127 (free_data_refs_aux): ... here.
12128 (free_gimple_poly_bb): ... here.
12129 (remove_gbbs_in_scop): ... here.
12130 (new_scop): Call new_sese.
12131 (free_scop): Call remove_gbbs_in_scop and free_sese.
12132 * graphite-poly.h (base_alias_pair): ... here.
12133 (new_gimple_poly_bb): Declare.
12134 (free_gimple_poly_bb): Declare.
12135 * graphite-scop-detection.c (parameter_index_in_region_1):
12136 (parameter_index_in_region): ... here.
12137 (scan_tree_for_params): ... here.
12138 (find_params_in_bb): ... here.
12139 (find_scop_parameters): ... here.
12140 (build_scops): Call find_scop_parameters.
12141 * graphite-sese-to-poly.c (free_gimple_poly_bb): Move...
12142 (free_scops): Move...
12143 (single_pred_cond_non_loop_exit): Move...
12144 (sese_dom_walker::before_dom_children): Move...
12145 (sese_dom_walker::after_dom_children): Move...
12146 (build_poly_scop): Move...
12147 * graphite-sese-to-poly.h (base_alias_pair): Move...
12148 * graphite.c (free_scops): ... here.
12150 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
12151 Sebastian Pop <s.pop@samsung.com>
12153 * graphite-scop-detection.c: Include domwalk.h and tree-cfg.h.
12154 (trivially_empty_bb_p): Move...
12155 (same_close_phi_node): Move...
12156 (new_gimple_poly_bb): Move...
12157 (compare_bb_depths): Move...
12158 (graphite_sort_dominated_info): Move...
12159 (remove_duplicate_close_phi): Move...
12160 (make_close_phi_nodes_unique): Move...
12161 (canonicalize_loop_closed_ssa): Move...
12162 (canonicalize_loop_closed_ssa_form): Move...
12163 (loop_ivs_can_be_represented): Move...
12164 (single_pred_cond_non_loop_exit): Move...
12165 (graphite_can_represent_init): Move...
12166 (graphite_can_represent_scev): Move...
12167 (stmt_has_simple_data_refs_p): Move...
12168 (stmt_has_side_effects): Move...
12169 (graphite_can_represent_stmt): Move...
12170 (scop_detection): ... here.
12171 (sese_dom_walker): ... and here.
12172 (build_scops): Call all moved functions.
12173 * graphite-sese-to-poly.c (try_generate_gimple_bb): Move...
12174 (all_non_dominated_preds_marked_p): Move...
12175 (build_scop_bbs_1): Move...
12176 (build_scop_bbs): Move...
12177 (set_scop_parameter_dim): Move...
12178 (nb_pbbs_in_loops): Move...
12179 (build_poly_scop): Do not call all the moved functions.
12181 2015-10-05 Martin Jambor <mjambor@suse.cz>
12182 Jan Hubicka <hubicka@ucw.cz>
12184 * ipa-cp.c (ipcp_alignment_lattice): New type.
12185 (ipcp_param_lattices): Use the above to represent alignment.
12186 (ipcp_alignment_lattice::print): New function.
12187 (print_all_lattices): Use it to print alignment information.
12188 (ipcp_alignment_lattice::top_p): New function.
12189 (ipcp_alignment_lattice::bottom_p): Likewise.
12190 (ipcp_alignment_lattice::set_to_bottom): Likewise.
12191 (ipcp_alignment_lattice::meet_with_1): Likewise.
12192 (ipcp_alignment_lattice::meet_with): Two new overloaded functions.
12193 (set_all_contains_variable): Use set_to_bottom of alignment lattice.
12194 (initialize_node_lattices): Likewise.
12195 (propagate_alignment_accross_jump_function): Work with the new class
12196 for alignment lattices.
12197 (propagate_constants_accross_call): Pass only the alignment lattice to
12198 propagate_alignment_accross_jump_function.
12199 (ipcp_store_alignment_results): Work with the new class for alignment
12202 2015-10-05 Marek Polacek <polacek@redhat.com>
12204 PR tree-optimization/67821
12205 * tree-ssanames.c (duplicate_ssa_name_range_info): Remove an assert.
12207 2015-10-05 Thomas Schwinge <thomas@codesourcery.com>
12210 * config/i386/intelmic-mkoffload.c (mkoffload_atexit): Rename
12212 (mkoffload_cleanup): ... this. Adjust all users.
12213 (maybe_unlink): Look at save_temps and verbose flags instead of
12215 (main): Parse "-save-temps" flag.
12216 (generate_target_descr_file, generate_target_offloadend_file)
12217 (generate_host_descr_file, prepare_target_image): Pass it on.
12218 * config/nvptx/mkoffload.c (tool_cleanup): Implement.
12219 (mkoffload_cleanup): New function.
12220 (maybe_unlink): Look at save_temps and verbose flags instead of
12222 (main): Instead of calling utils_cleanup, register atexit handler
12223 for mkoffload_cleanup.
12224 (main): Parse "-save-temps" flag.
12225 (compile_native, main): Pass it on.
12226 * lto-wrapper.c (compile_offload_image): Likewise.
12228 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12230 * gimple.h (gimple_op_ptr): Require a non const gimple *.
12231 (gimple_assign_lhs_ptr): Likewise.
12232 (gimple_assign_rhs1_ptr): Likewise.
12233 (gimple_assign_rhs2_ptr): Likewise.
12234 (gimple_assign_rhs3_ptr): Likewise.
12235 (gimple_call_lhs_ptr): Likewise.
12236 (gimple_call_fn_ptr): Likewise.
12237 (gimple_call_chain_ptr): Likewise.
12238 (gimple_call_arg_ptr): Likewise.
12239 (gimple_cond_lhs_ptr): Likewise.
12240 (gimple_cond_rhs_ptr): Likewise.
12241 (gimple_switch_index_ptr): Likewise.
12242 (gimple_return_retval_ptr): Likewise.
12244 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12246 * gimple.h (gimple_asm_input_op_ptr): Remove.
12247 (gimple_asm_output_op_ptr): Likewise.
12249 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12251 * gimple.h (gimple_location_ptr): Remove.
12252 * tree-vrp.c (check_all_array_refs): Adjust.
12254 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12256 * tree-ssa-operands.c (build_uses): store tree * instead of
12258 (finalize_ssa_uses): Adjust.
12259 (append_use): Likewise.
12260 (verify_ssa_operands): Likewise.
12262 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
12264 * real.h (build_real_truncate): Declare.
12265 * tree.c (build_real_truncate): New function.
12266 (strip_float_extensions): Use it.
12267 * builtins.c (fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_cbrt)
12268 (fold_builtin_hypot, fold_builtin_pow): Likewise.
12269 * match.pd: Likewise.
12271 2015-10-05 James Greenhalgh <james.greenhalgh@arm.com>
12272 Jiong Wang <jiong.wang@arm.com>
12274 * config/aarch64/aarch64.md (tlsie_tiny_sidi): Replace "<w>" with "w".
12276 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
12278 * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Delete.
12279 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p)
12280 (aarch64_print_operand, aarch64_float_const_representable_p)
12281 (aarch64_output_simd_mov_immediate): Use CONST_DOUBLE_REAL_VALUE
12282 instead of REAL_VALUE_FROM_CONST_DOUBLE.
12283 * config/arc/arc.c (arc_print_operand): Likewise.
12284 * config/arm/arm.c (arm_const_double_rtx, vfp3_const_double_index)
12285 (neon_valid_immediate, arm_print_operand, arm_emit_fp16_const)
12286 (vfp3_const_double_for_fract_bits, vfp3_const_double_for_bits):
12288 * config/arm/arm.md (*arm32_movhf, consttable_4, consttable_8)
12289 (consttable_16): Likewise.
12290 * config/arm/vfp.md (*movhf_vfp_neon, *movhf_vfp): Likewise.
12291 * config/avr/avr.c (avr_print_operand): Likewise.
12292 * config/bfin/bfin.md: Likewise (in a define_split).
12293 * config/c6x/c6x.md: Likewise (in a define_split).
12294 * config/cr16/cr16.c (cr16_const_double_ok): Likewise.
12295 (cr16_print_operand): Likewise.
12296 * config/cris/cris.c (cris_print_operand): Likewise.
12297 * config/epiphany/epiphany.c (epiphany_print_operand): Likewise.
12298 * config/fr30/fr30.c (fr30_print_operand): Likewise.
12299 (fr30_const_double_is_zero): Likewise.
12300 * config/frv/frv.c (frv_print_operand, output_move_single): Likewise.
12301 * config/frv/frv.md: Likewise (in a define_split).
12302 * config/frv/predicates.md (int_2word_operand): Likewise.
12303 * config/h8300/h8300.c (h8300_print_operand): Likewise.
12304 * config/i386/i386.c (standard_80387_constant_p): Likewise.
12305 (ix86_print_operand, ix86_split_to_parts): Likewise.
12306 * config/i386/i386.md: Likewise (in a define_split).
12307 * config/ia64/ia64.c (ia64_split_tmode, ia64_print_operand): Likewise.
12308 * config/iq2000/iq2000.md (movsf_lo_sum, movsf_high): Likewise.
12309 * config/m32r/m32r.c (easy_df_const, m32r_print_operand): Likewise.
12310 * config/m68k/m68k.c (handle_move_double, standard_68881_constant_p)
12311 (print_operand): Likewise.
12312 * config/m68k/m68k.md (movsf_cf_hard, movdf_cf_hard): Likewise.
12313 * config/mep/mep.md: Likewise (in define_split).
12314 * config/microblaze/microblaze.c (microblaze_const_double_ok)
12315 (print_operand): Likewise.
12316 * config/mips/mips.md (consttable_float): Likewise.
12317 * config/mmix/mmix.c (mmix_intval): Likewise.
12318 * config/mn10300/mn10300.c (mn10300_print_operand): Likewise.
12319 * config/nvptx/nvptx.c (nvptx_print_operand): Likewise.
12320 * config/pa/pa.c (pa_singlemove_string): Likewise.
12321 * config/pdp11/pdp11.c (pdp11_expand_operands): Likewise.
12322 (pdp11_asm_print_operand, legitimate_const_double_p): Likewise.
12323 * config/rs6000/rs6000.c (num_insns_constant, rs6000_emit_cmove)
12324 (output_toc): Likewise.
12325 * config/rs6000/rs6000.md: Likewise (in define_splits).
12326 * config/rx/rx.c (rx_print_operand): Likewise.
12327 * config/s390/s390.c (s390_output_pool_entry): Likewise.
12328 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
12329 * config/sh/sh.md (consttable_sf, consttable_df): Likewise
12330 (and also in define_splits).
12331 * config/sparc/sparc.c (fp_sethi_p, fp_mov_p): Likewise.
12332 (fp_high_losum_p): Likewise.
12333 * config/sparc/sparc.md (*movsf_insn, *movsf_lo_sum): Likewise.
12334 (*movsf_high): Likewise.
12335 * config/spu/spu.c (const_double_to_hwint): Likewise.
12336 * config/v850/v850.c (const_double_split): Likewise.
12337 * config/vax/vax.c (vax_float_literal): Likewise.
12338 * config/visium/visium.c (visium_expand_copysign): Likewise.
12339 * config/visium/visium.md: Likewise (in define_split).
12340 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
12341 * config/xtensa/xtensa.c (print_operand): Likewise.
12342 (xtensa_output_literal): Likewise.
12343 * cprop.c (implicit_set_cond_p): Likewise.
12344 * dwarf2out.c (insert_float): Likewise.
12345 * expmed.c (expand_mult, make_tree): Likewise.
12346 * expr.c (compress_float_constant): Likewise.
12347 * rtlanal.c (split_double): Likewise.
12348 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
12349 (simplify_const_unary_operation, simplify_binary_operation_1)
12350 (simplify_const_binary_operation): Likewise.
12351 (simplify_const_relational_operation): Likewise.
12352 * varasm.c (output_constant_pool_2): Likewise.
12354 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
12356 * real.h (CONST_DOUBLE_ATOF): Use const_double_from_real_value
12357 instead of CONST_DOUBLE_FROM_REAL_VALUE.
12358 (CONST_DOUBLE_FROM_REAL_VALUE): Delete.
12359 * config/c6x/c6x.md (divsf3, divdf3): Use const_double_from_real_value
12360 instead of CONST_DOUBLE_FROM_REAL_VALUE.
12361 * config/epiphany/epiphany.md (fixuns_truncsfsi2): Likewise.
12362 * config/i386/i386.c (standard_80387_constant_rtx): Likewise.
12363 (ix86_expand_builtin, ix86_emit_i387_log1p, ix86_emit_i387_round)
12364 (ix86_emit_swsqrtsf): Likewise.
12365 * config/ia64/ia64.c (ia64_expand_builtin): Likewise.
12366 * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
12367 (fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
12368 * config/pa/pa.c (pa_expand_builtin): Likewise.
12369 * config/rs6000/rs6000.c (rs6000_load_constant_and_splat): Likewise.
12370 (rs6000_scale_v2df): Likewise.
12371 * config/rs6000/rs6000.md (*cmptf_internal2): Likewise.
12372 * config/s390/s390.md (fixuns_truncdddi2, fixuns_trunctddi2)
12373 (fixuns_trunc<BFP:mode><GPR:mode>2): Likewise.
12374 * config/s390/vx-builtins.md (vec_ctd_s64, vec_ctd_u64, vec_ctsl)
12375 (vec_ctul): Likewise.
12376 * config/sparc/sparc.c (sparc_emit_fixunsdi): Likewise.
12377 * config/spu/spu.c (hwint_to_const_double, spu_float_const): Likewise.
12378 * config/spu/spu.md (floatunsdisf2, floatunstisf2): Likewise.
12379 * cse.c (fold_rtx): Likewise.
12380 * emit-rtl.c (immed_double_const): Likewise (in comments).
12381 (init_emit_once): Likewise.
12382 * expr.c (compress_float_constant, expand_expr_real_1)
12383 (const_vector_from_tree): Likewise.
12384 * optabs.c (expand_float, expand_fix): Likewise.
12385 * reg-stack.c (reg_to_stack): Likewise.
12386 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
12387 (simplify_const_unary_operation, simplify_binary_operation_1)
12388 (simplify_const_binary_operation, simplify_relational_operation)
12389 (simplify_immed_subreg): Likewise.
12391 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
12393 * doc/tm.texi.in (REAL_ARITHMETIC): Delete.
12394 * doc/tm.texi: Regenerate.
12395 * real.h (REAL_ARITHMETIC): Delete.
12396 * config/i386/i386.c (ix86_expand_lround, ix86_expand_round)
12397 (ix86_expand_round_sse4): Use real_arithmetic instead of
12399 * config/i386/sse.md (round<mode>2): Likewise.
12400 * rtl.h (rtx_to_tree_code): Likewise (in comment).
12401 * explow.c (rtx_to_tree_code): Likewise (in comment).
12402 * match.pd: Likewise.
12403 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
12404 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
12405 (expand_pow_as_sqrts): Likewise.
12406 * tree-pretty-print.c (dump_generic_node): Remove code that
12407 was conditional on REAL_ARITHMETIC being undefined.
12409 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
12411 * doc/tm.texi.in (REAL_VALUES_LESS): Delete.
12412 * doc/tm.texi: Regenerate.
12413 * real.h (real_less): Declare.
12414 (REAL_VALUES_LESS): Delete.
12415 * real.c (real_less): New function.
12416 (real_compare): Use it.
12417 * config/m68k/m68k.c (floating_exact_log2): Use real_less instead
12418 of REAL_VALUES_LESS.
12419 * config/microblaze/microblaze.c (microblaze_const_double_ok):
12421 * fold-const.c (fold_convert_const_int_from_real): Likewise.
12422 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
12423 (simplify_const_relational_operation): Likewise.
12424 * tree-call-cdce.c (check_pow): Likewise.
12425 (gen_conditions_for_pow_cst_base): Likewise.
12427 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
12429 * real.h (REAL_VALUES_IDENTICAL): Delete.
12430 * config/m68k/m68k.c (standard_68881_constant_p): Use real_identical
12431 instead of REAL_VALUES_IDENTICAL.
12432 * fold-const.c (operand_equal_p): Likewise.
12433 * ipa-icf.c (sem_variable::equals): Likewise.
12434 * tree-complex.c (some_nonzerop): Likewise.
12435 (expand_complex_multiplication): Likewise.
12436 * tree.c (simple_cst_equal): Likewise.
12437 * varasm.c (compare_constant): Likewise.
12439 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
12441 * real.h (real_equal): Declare.
12442 (REAL_VALUES_EQUAL): Delete.
12443 * real.c (real_equal): New function.
12444 (real_compare): Use it.
12445 * doc/tm.texi.in (REAL_VALUES_EQUAL): Delete.
12446 * doc/tm.texi: Regenerate.
12447 * builtins.c (fold_builtin_pow, fold_builtin_load_exponent): Use
12448 real_equal instead of REAL_VALUES_EQUAL.
12449 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p): Likewise.
12450 * config/arm/arm.c (arm_const_double_rtx, neon_valid_immediate)
12451 (fp_const_from_val): Likewise.
12452 * config/fr30/fr30.c (fr30_const_double_is_zero): Likewise.
12453 * config/m68k/m68k.c (standard_68881_constant_p): Likewise.
12454 (floating_exact_log2): Likewise.
12455 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
12456 * config/vax/vax.c (vax_float_literal): Likewise.
12457 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
12458 * cprop.c (implicit_set_cond_p): Likewise.
12459 * expmed.c (expand_mult): Likewise.
12460 * fold-const.c (const_binop): Likewise.
12461 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
12462 (simplify_const_binary_operation): Likewise.
12463 (simplify_const_relational_operation): Likewise.
12464 * tree-call-cdce.c (check_pow): Likewise.
12465 (gen_conditions_for_pow_cst_base): Likewise.
12466 * tree-inline.c (estimate_num_insns): Likewise.
12467 * tree-ssa-dom.c (record_equality): Likewise.
12468 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
12469 (gimple_expand_builtin_pow): Likewise.
12470 (pass_optimize_widening_mul::execute): Likewise.
12471 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
12472 * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
12473 * tree.c (real_zerop, real_onep, real_minus_onep): Likewise.
12475 2015-10-05 Richard Biener <rguenther@suse.de>
12478 * ipa-inline-analysis.c (estimate_function_body_sizes): Only
12479 consider loop header PHI defs as IVs.
12481 2015-10-05 Richard Biener <rguenther@suse.de>
12483 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Move
12485 (create_expression_by_pieces): ... here and build GIMPLE
12486 calls directly. Use gimple_build API and avoid force_gimple_operand.
12487 (insert_into_preds_of_block): Simplify.
12488 (do_regular_insertion): Add comment.
12490 2015-10-04 Jason Merrill <jason@redhat.com>
12492 * builtins.def (BUILT_IN_ABORT): Add transaction_pure attribute.
12494 2015-10-04 Uros Bizjak <ubizjak@gmail.com>
12496 * config/i386/i386.c (ix86_nsaved_regs): Use GENERAL_REGNO_P to
12497 check for general register.
12498 (ix86_emit_save_regs): Ditto.
12499 (ix86_emit_save_regs_using_mov): Ditto.
12500 (ix86_emit_restore_regs_using_pop): Ditto.
12501 (ix86_emit_restore_regs_using_mov): Ditto.
12503 2015-10-03 Marek Polacek <polacek@redhat.com>
12505 * Makefile.in (insn-latencytab.o): Remove -Wno-duplicated-cond.
12506 (insn-dfatab.o): Likewise.
12508 2015-10-03 Max Filippov <jcmvbkbc@gmail.com>
12510 * config.gcc (xtensa*-*-uclinux*): New configuration.
12511 * config/xtensa/uclinux.h: New file.
12512 * config/xtensa/uclinux.opt: New file.
12514 2015-10-03 Jonathan Wakely <jwakely@redhat.com>
12516 * doc/cpp.texi (Standard Predefined Macros): Document value of
12517 __cplusplus for C++14.
12519 2015-10-02 Bernd Schmidt <bernds@codesourcery.com>
12521 * gcc.c (process_command): Use spec_machine rather than
12522 spec_host_machine to build tooldir_prefix2.
12524 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
12525 Bernd Schmidt <bernds@codesourcery.com>
12527 * config/nvptx/mkoffload.c (Kind, Vis): Remove enums.
12528 (Token, Stmt): Remove structs.
12529 (decls, vars, fns): Remove variables.
12530 (alloc_comment, append_stmt, is_keyword): Remove macros.
12531 (tokenize, write_token, write_tokens, alloc_stmt, rev_stmts)
12532 (write_stmt, write_stmts, parse_insn, parse_list_nosemi)
12533 (parse_init, parse_file): Remove functions.
12534 (read_file): Accept a pointer to a length and store into it.
12535 (process): Don't try to parse the input file, just write it out as
12536 a string, but looking for maps. Also write out the length.
12537 (main): Don't use "-S" to compile PTX code.
12539 2015-10-02 Jeff Law <law@redhat.com>
12541 * tree-ssa-dom.c (optimize_stmt): Note when loop structures need
12544 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
12547 * config/nvptx/mkoffload.c (main): Scan the argument vector for
12548 -fopenmp, and skip generating an offloading image if specified.
12550 2015-10-02 Uros Bizjak <ubizjak@gmail.com>
12552 * system.h (ROUND_UP): New macro definition.
12553 (ROUND_DOWN): Ditto.
12554 * ggc-page.c (ROUND_UP): Remove local macro definition.
12555 (PAGE_ALIGN): Implement using ROUND_UP macro.
12557 * config/i386/i386.h (PUSH_ROUNDING): Implement using ROUND_UP macro.
12558 * config/i386/i386.c (function_arg_advance_64): Use ROUND_UP macro
12560 (ix86_compute_frame_layout): Ditto.
12561 (ix86_expand_prologue): Ditto.
12562 (ix86_adjust_stack_and_probe): Use ROUND_DOWN macro
12563 to round down values.
12564 (expand_set_or_movmem_via_rep): Ditto.
12566 2015-10-02 Marek Polacek <polacek@redhat.com>
12568 * genemit.c (gen_exp): Remove -Wduplicated-cond hack.
12570 2015-10-02 Aditya Kumar <aditya.k7@samsung.com>
12572 * graphite-scop-detection.c (loop_ivs_can_be_represented): New.
12573 (loop_body_is_valid_scop): Call loop_ivs_can_be_represented.
12574 * graphite-sese-to-poly.c (new_gimple_bb): Renamed new_gimple_poly_bb.
12575 (free_gimple_bb): Renamed free_gimple_poly_bb.
12576 (try_generate_gimple_bb): Hoist loop invariant code.
12577 (analyze_drs_in_stmts): Same.
12578 (build_scop_drs): Call renamed functions.
12579 (new_pbb_from_pbb): Same.
12580 (scop_ivs_can_be_represented): Delete as functionality now moved to
12581 graphite-scop-detection.c
12582 (build_poly_scop): Remove call to scop_ivs_can_be_represented.
12584 2015-10-02 Aditya Kumar <hiraditya@msn.com>
12586 * graphite-scop-detection.c (stmt_has_side_effects): New function
12587 outlined from stmt_simple_for_scop_p.
12588 (graphite_can_represent_stmt): Same.
12589 (stmt_simple_for_scop_p): Moved code out of this function for better
12592 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
12594 * config/i386/i386.c (processor_features): Add F_AVX512VBMI,
12596 (isa_names_table): Handle F_AVX512VBMI and F_AVX512IFMA.
12598 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12600 * config/aarch64/aarch64-elf.h (TARGET_ASM_NAMED_SECTION): Delete.
12602 2015-10-02 Vladimir Makarov <vmakarov@redhat.com>
12604 PR rtl-optimization/67756
12605 * lra-constraints.c (match_reload): Add a new parameter. Use it
12606 for creating a pseudo with the same value.
12607 (curr_insn_transform): Pass a new argument to match_reload.
12609 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
12611 * config/i386/i386.c (expand_vec_perm_even_odd_trunc): New.
12612 (expand_vec_perm_even_odd_1): Handle V64QImode.
12613 (ix86_expand_vec_perm_const_1): Try expansion with
12614 expand_vec_perm_even_odd_trunc as well.
12615 * config/i386/sse.md (VI124_AVX512F): Rename to ...
12616 (define_mode_iterator VI124_AVX2_24_AVX512F_1_AVX512BW): This. Extend
12618 (define_mode_iterator VI248_AVX2_8_AVX512F): Rename to ...
12619 (define_mode_iterator VI248_AVX2_8_AVX512F_24_AVX512BW): This. Extend
12620 to V32HI and V16SI.
12621 (define_insn "avx512bw_<code>v32hiv32qi2"): Unhide pattern name.
12622 (define_expand "vec_pack_trunc_<mode>"): Update iterator name.
12623 (define_expand "vec_unpacks_lo_<mode>"): Ditto.
12624 (define_expand "vec_unpacks_hi_<mode>"): Ditto.
12625 (define_expand "vec_unpacku_lo_<mode>"): Ditto.
12626 (define_expand "vec_unpacku_hi_<mode>"): Ditto.
12628 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
12630 * doc/invoke.texi: Mention -mavx512vl, -mavx512bw, -mavx512dq,
12631 -mavx521vbmi, -mavx512ifma. Add missing opindex-es.
12633 2015-10-02 Jason Merrill <jason@redhat.com>
12636 * trans-mem.c (volatile_lvalue_p): Rename from volatile_var_p.
12637 (diagnose_tm_1_op): Also diagnose volatile accesses in
12638 transaction_safe function.
12640 2015-10-02 Jonathan Wakely <jwakely@redhat.com>
12642 * system.h (malloc.h): Don't include obsolete header.
12644 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12646 * config/aarch64/aarch64.c (aarch64_elf_asm_named_section): Delete.
12647 (TLS_SECTION_ASM_FLAG): Delete.
12649 2015-10-02 Marek Polacek <polacek@redhat.com>
12652 * doc/invoke.texi: Document -Wduplicated-cond.
12653 * Makefile.in (insn-latencytab.o): Use -Wno-duplicated-cond.
12654 (insn-dfatab.o): Likewise.
12655 * genemit.c (gen_exp): Rewrite condition to avoid -Wduplicated-cond
12658 2015-10-02 Oleg Endo <olegendo@gcc.gnu.org>
12660 * config/sh/sh.md: Add new unnamed split pattern to handle movt-movt
12663 2015-10-02 Renlin Li <renlin.li@arm.com>
12665 * config/aarch64/aarch64.md (csneg3_insn_uxtw): New pattern.
12667 2015-10-02 Renlin Li <renlin.li@arm.com>
12670 * config/aarch64/aarch64.md (cmovdi_insn_uxtw): New pattern.
12672 2015-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12674 PR rtl-optimization/67786
12675 PR rtl-optimization/67787
12676 * ifcvt.c (bb_valid_for_noce_process_p): Reject basic block if
12677 it modifies a reg used in the condition calculation.
12679 2015-10-02 James Greenhalgh <james.greenhalgh@arm.com>
12681 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Add
12682 alternatives for reads from memory and moves from general-purpose
12684 (*aarch64_combinez_be<mode>): Likewise.
12686 2015-10-02 Kai Tietz <ktietz70@googlemail.com>
12689 * config/i386/winnt.c (ix86_handle_selectany_attribute): Handle
12690 selectany within this function without need to keep attribute.
12691 (i386_pe_encode_section_info): Remove selectany-code.
12693 2015-10-02 Richard Biener <rguenther@suse.de>
12695 * tree-ssa-sccvn.c (has_VN_INFO): New function.
12696 (free_scc_vn): Use it.
12697 (visit_use): Remove dead code and refactor to use gassign
12698 and use less indentation.
12700 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
12704 * config/rs6000/rs6000.c (TARGET_CANNOT_COPY_INSN_P): New.
12705 (rs6000_cannot_copy_insn_p): New function.
12706 * config/rs6000/rs6000.md (cannot_copy): New attribute.
12707 (load_toc_v4_PIC_1_normal): Set cannot_copy.
12708 (load_toc_v4_PIC_1_476): Ditto.
12710 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
12712 * graphite-scop-detection.c (struct sese_l): New conversion constructor
12713 so that this type can be pushed into a vec.
12714 (class scop_builder): use sese_l to collect scops.
12715 (get_scops): New getter function.
12716 (remove_intersecting_scops): Use sese_l instead of scops_p.
12717 (intersects): Same.
12720 (remove_subscops): Same.
12721 (build_scops): Add scops to vec<scops_p> once all the scops have been
12724 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
12726 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
12727 Renamed type from gimple_bb_p to gimple_poly_bb_p.
12728 (translate_isl_ast_node_user): Same.
12729 * graphite-poly.c (new_poly_bb): Same.
12730 * graphite-poly.h (gbb_from_bb): Same.
12732 * graphite-sese-to-poly.c (new_gimple_bb):
12733 gimple_bb_p -> gimple_poly_bb_p
12734 (build_scop_scattering): Same.
12735 (find_params_in_bb): Same.
12736 (add_conditions_to_domain): Same.
12737 (sese_dom_walker::before_dom_children): Same.
12738 (analyze_drs_in_stmts): Same.
12739 (new_pbb_from_pbb): Same.
12740 (free_data_refs_aux): New pointer to type base_alias_pair.
12741 * graphite-sese-to-poly.h: Same.
12742 * sese.c (if_region_set_false_region): Fixed Indentation.
12743 (move_sese_in_condition): Same.
12745 2015-10-01 Sebastian Pop <s.pop@samsung.com>
12746 Aditya Kumar <aditya.k7@samsung.com>
12748 PR tree-optimization/66980
12749 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Return false
12750 when data reference analysis has failed.
12752 2015-10-01 Sebastian Pop <s.pop@samsung.com>
12753 Aditya Kumar <aditya.k7@samsung.com>
12755 PR tree-optimization/67754
12756 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Call
12757 scev analysis on the same loop nest as analyze_drs_in_stmts.
12758 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): Moved and
12760 (try_generate_gimple_bb): Call outermost_loop_in_sese.
12761 (analyze_drs_in_stmts): Same.
12762 * sese.c (outermost_loop_in_sese): ...here.
12764 2015-10-01 Sebastian Pop <s.pop@samsung.com>
12765 Aditya Kumar <aditya.k7@samsung.com>
12767 PR tree-optimization/67754
12768 * graphite-scop-detection.c (loop_body_is_valid_scop): Add missing
12769 recursion on the inner loops.
12771 2015-10-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12773 * cfganal.c, compare-elim.c, coverage.c, cprop.c, df-scan.c,
12774 function.c, read-rtl.c, statistics.c, trans-mem.c, tree-if-conv.c,
12775 tree-into-ssa.c, tree-loop-distribution.c, tree-ssa-coalesce.c,
12776 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-strlen.c,
12777 tree-ssa-tail-merge.c, tree-vrp.c, var-tracking.c: Remove
12779 2015-10-01 Marek Polacek <polacek@redhat.com>
12782 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Adjust to use
12783 create_tmp_var_raw rather than create_tmp_var.
12785 2015-10-01 Marek Polacek <polacek@redhat.com>
12787 PR tree-optimization/67769
12788 * tree-ssa-phiopt.c (conditional_replacement): Call
12789 reset_flow_sensitive_info_in_bb.
12790 (minmax_replacement): Likewise.
12791 (abs_replacement): Likewise.
12793 2015-10-01 Nathan Sidwell <nathan@codesourcery.com>
12795 * builtins.c: Don't include gomp-constants.h.
12796 (fold_builtin_1): Don't fold acc_on_device here.
12797 * gimple-fold.c: Include gomp-constants.h.
12798 (gimple_fold_builtin_acc_on_device): New.
12799 (gimple_fold_builtin): Call it.
12801 2015-10-01 H.J. Lu <hongjiu.lu@intel.com>
12803 * config/i386/x86-tune.def (X86_TUNE_USE_BT): Enable for Lakemont.
12804 (X86_TUNE_ZERO_EXTEND_WITH_AND): Disable for Lakemont.
12806 2015-10-01 James Greenhalgh <james.greenhalgh@arm.com>
12808 * config/arm/aarch-common-protos.h
12809 (aarch_accumulator_forwarding): New.
12810 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
12811 * config/arm/aarch-common.c (aarch_accumulator_forwarding): New.
12812 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
12813 * config/arm/cortex-a53.md: Rewrite.
12815 2015-10-01 Richard Biener <rguenther@suse.de>
12817 * gimple-match.h (mprts_hook): Declare.
12818 * gimple-match.head.c (mprts_hook): Define.
12819 (maybe_push_res_to_seq): Use new hook.
12820 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
12821 * tree-ssa-sccvn.h (vn_ssa_aux::expr): Change to a gimple_seq.
12822 (vn_ssa_aux::has_constants): Remove.
12823 * tree-ssa-sccvn.c: Include gimple-match.h.
12824 (VN_INFO_GET): Assert we don't re-use SSA names.
12825 (vn_get_expr_for): Remove.
12826 (expr_has_constants): Likewise.
12827 (stmt_has_constants): Likewise.
12828 (simplify_binary_expression): Likewise.
12829 (simplify_unary_expression): Likewise.
12830 (vn_lookup_simplify_result): New hook.
12831 (visit_copy): Adjust.
12832 (visit_reference_op_call): Likewise.
12833 (visit_phi): Likewise.
12834 (visit_use): Likewise.
12835 (process_scc): Likewise.
12836 (init_scc_vn): Likewise.
12837 (visit_reference_op_load): Likewise. Use match-and-simplify and
12838 a gimple seq for inserted expressions.
12839 (try_to_simplify): Remove GENERIC stmt combining code.
12840 (sccvn_dom_walker::before_dom_children): Use match-and-simplify.
12841 * tree-ssa-pre.c (eliminate_insert): Adjust.
12842 (eliminate_dom_walker::before_dom_children): Likewise.
12844 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
12846 * doc/invoke.texi (Optimization Options): Add
12847 -freorder-blocks-algorithm=.
12848 (Optimize Options) <-O>: Add -freorder-blocks.
12849 <-O2>: Remove -freorder-blocks. Add -freorder-blocks-algorithm=stc.
12850 <-Os>: Add -freorder-blocks-algorithm=stc as not enabled.
12851 <-freorder-blocks>: Also enabled at levels -O and -Os.
12852 <-freorder-blocks-algorithm=>: Document new option.
12854 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
12856 * bb-reorder.c (reorder_basic_blocks): Use the algorithm selected
12857 with flag_reorder_blocks_algorithm.
12858 * common.opt (freorder-blocks-algorithm=): New flag.
12859 (reorder_blocks_algorithm): New enum.
12860 * flag-types.h (reorder_blocks_algorithm): New enum.
12861 * opts.c (default_options_table): Use -freorder-blocks at -O1 and up,
12862 and -freorder-blocks-algorithm=stc at -O2 and up (not at -Os).
12864 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
12866 * bb-reorder.c: Add intro comment.
12867 (reorder_basic_blocks_software_trace_cache): Print a header to
12869 (edge_order): New function.
12870 (reorder_basic_blocks_simple): New function.
12871 (reorder_basic_blocks): Choose between the STC and the simple
12872 algorithms (always choose the former).
12874 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
12876 * bb-reorder.c (reorder_basic_blocks_software_trace_cache): New
12877 function, factored out from ...
12878 (reorder_basic_blocks): ... here.
12880 2015-10-01 Tom de Vries <tom@codesourcery.com>
12882 * tree-cfg.c (dump_function_to_file): Dump function attributes using
12883 __attribute__(()) string. Move dumping of function attributes to before
12886 2015-10-01 Lynn Boger <laboger@linux.vnet.ibm.com>
12889 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Define.
12890 * configure.ac: Define HAVE_GOLD_ALTERNATE_SPLIT_STACK on Power
12891 based on gold linker version.
12892 * gcc.c: Add -fuse-ld=gold to STACK_SPLIT_SPEC if
12893 HAVE_GOLD_ALTERNATE_SPLIT_STACK defined.
12894 * configure, config.in: Regenerate.
12896 2015-10-01 Alan Modra <amodra@gmail.com>
12898 * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't set
12899 r2_setup_needed when TARGET_SINGLE_PIC_BASE.
12900 (rs6000_output_mi_thunk): Likewise.
12902 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
12904 * config/nvptx/mkoffload.c (process): Change offload data format.
12906 2015-09-30 Jeff Law <law@redhat.com>
12908 * tree-ssa-dom.c (optimize_stmt): Collapse control flow statements
12909 with constant conditions.
12910 * tree-ssa-threadupdate.c (remove_jump_threads_starting_at): New.
12911 (remove_ctrl_stmt_and_useless_edges): No longer static.
12912 * tree-ssa-threadupdate.h (remove_jump_threads_starting_at): Prototype.
12913 (remove_ctrl_stmt_and_useless_edges): Likewise.
12915 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
12916 Cesar Philippidis <cesar@codesourcery.com>
12918 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): New.
12919 (TARGET_GOACC_VALIDATE_DIMS): Override.
12920 * target.def (TARGET_GOACC): New target hook prefix.
12921 (validate_dims): New hook.
12922 * targhooks.h (default_goacc_validate_dims): New.
12923 * omp-low.c (oacc_validate_dims): New.
12924 (execute_oacc_device_lower): New.
12925 (default_goacc_validate_dims): New.
12926 (pass_data_oacc_device_lower): New.
12927 (pass_oacc_device_lower): New pass.
12928 (make_pass_oacc_device_lower): New.
12929 * tree-pass.h (make_pass_oacc_device_lower): Declare.
12930 * passes.def (pass_oacc_device_lower): Add it.
12931 * doc/tm.texi: Rebuilt.
12932 * doc/tm.texi.in (TARGET_GOACC_VALIDATE_DIMS): Add hook.
12933 * doc/invoke.texi (oaccdevlow): Document tree dump flag.
12935 2015-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
12937 PR rtl-optimization/67037
12938 * lra-constraints.c (process_addr_reg): Use copy_rtx when necessary.
12940 2015-09-30 Bernd Schmidt <bernds@redhat.com>
12942 * gimple-ssa.h (gimple_df): Add free_ssanames_queue field.
12943 * passes.c: Include tree-ssanames.h.
12944 (execute_function_todo): Flush the pending free SSA_NAMEs after
12945 eliminating unreachable basic blocks.
12946 * tree-ssanames.c (FREE_SSANAMES_QUEUE): new.
12947 (init_ssanames): Initialize FREE_SSANAMES_QUEUE.
12948 (fini_ssanames): Finalize FREE_SSANAMES_QUEUE.
12949 (flush_ssanames_freelist): New function.
12950 (release_ssaname_fn): Put released names on the queue.
12951 (pass_release_ssa_names::execute): Call flush_ssanames_freelist.
12952 * tree-ssanames.h (flush_ssanames_freelist): Declare.
12954 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
12956 * config/i386/intelmic-mkoffload.c (main): Parse "-v" flag.
12957 (generate_target_descr_file, generate_target_offloadend_file)
12958 (generate_host_descr_file, prepare_target_image): Pass it on.
12959 * config/nvptx/mkoffload.c (main): Parse "-v" flag.
12960 (compile_native, main): Pass it on.
12961 * lto-wrapper.c (compile_offload_image): Likewise.
12963 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
12964 Ilya Verbin <ilya.verbin@intel.com>
12965 Andrey Turetskiy <andrey.turetskiy@intel.com>
12967 * config/i386/intelmic-mkoffload.c (generate_host_descr_file)
12968 (prepare_target_image, main): Refactor argv building to use
12971 2015-09-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12973 * config/spu/spu-protos.h (spu_expand_atomic_op): Add prototype.
12974 * config/spu/spu.c (spu_expand_atomic_op): New function.
12975 * config/spu/spu.md (AINT): New mode iterator.
12976 (ATOMIC): New code iterator.
12977 (atomic_name, atomic_pred): New code predicates.
12978 ("atomic_load<mode>", "atomic_store<mode>"): New expanders.
12979 ("atomic_compare_and_swap<mode>", "atomic_exchange<mode>"): Likewise.
12980 (""atomic_<atomic_name><mode>", "atomic_fetch_<atomic_name><mode>",
12981 "atomic_<atomic_name>_fetch<mode>"): Likewise.
12983 2015-09-30 Ilya Enkovich <enkovich.gnu@gmail.com>
12985 * config/i386/i386.c (scalar_chain::analyze_register_chain): Ignore
12987 (scalar_chain::convert_reg): Likewise.
12989 2015-09-30 Richard Biener <rguenther@suse.de>
12991 * builtins.c: Add comment that no new simplifications should
12994 2015-09-30 Marek Polacek <polacek@redhat.com>
12996 PR tree-optimization/67690
12997 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): Call
12998 reset_flow_sensitive_info_in_bb.
12999 * tree-ssa-tail-merge.c (replace_block_by): Likewise.
13000 * tree-ssanames.c: Include "gimple-iterator.h".
13001 (reset_flow_sensitive_info_in_bb): New function.
13002 * tree-ssanames.h (reset_flow_sensitive_info_in_bb): Declare.
13004 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
13006 * config/i386/intelmic-mkoffload.c (target_ilp32): Remove
13007 variable, replacing it with...
13008 (offload_abi): ... this new variable. Adjust all users.
13009 * config/nvptx/mkoffload.c (target_ilp32, offload_abi): Likewise.
13011 2015-09-30 Matthias Klose <doko@ubuntu.com>
13013 * configure.ac: Remove extraneous ;;.
13014 * configure: Regenerate.
13016 2015-09-29 James Bowman <james.bowman@ftdichip.com>
13018 * config/ft32/predicates.md (ft32_imm_operand): New predicate.
13019 * config/ft32/ft32.md (movmemsi, setmemsi): Use ft32_imm_operand
13020 predicate, disallow register for operand 2.
13022 2015-09-29 Aditya Kumar <aditya.k7@samsung.com>
13024 * graphite-dependences.c (scop_get_dependences): Moved in down
13025 in order to be visible to its caller.
13026 * graphite-poly.h: Removed compute_deps, and extend_schedule.
13028 2015-09-29 Sebastian Pop <s.pop@samsung.com>
13029 Aditya Kumar <aditya.k7@samsung.com>
13031 PR tree-optimization/67754
13032 * graphite-optimize-isl.c (optimize_isl): Call
13033 isl_options_set_schedule_fuse with ISL_SCHEDULE_FUSE_MIN for ISL-14.
13035 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
13037 * builtins.c (expand_builtin_acc_on_device): Delete.
13038 (expand_builtin): Don't call it.
13039 (fold_builtin_1): Fold acc_on_device.
13041 2015-09-29 H.J. Lu <hongjiu.lu@intel.com>
13043 * config/i386/i386.c (ix86_function_arg): Fix typo in comments.
13044 (ix86_nsaved_sseregs): Likewise.
13046 2015-09-29 Jeff Law <law@redhat.com>
13048 * config/microblaze/microblaze.c (microblaze_version_to_int): Remove
13049 computation of unused value.
13051 * config/pdp11/pdp11.c (pdp11_branch_cost): New function.
13052 * config/pdp11/pdp11.h (BRANCH_COST): Call function rather than
13053 inline macro expansion.
13055 * config/i386/t-interix (winnt-stubs.o): Fix compilation rule.
13057 * config/sh/sh.c (gen_shl_and): Fix undefined left shift behaviour.
13058 (gen_shl_sext): Likewise.
13059 * config/sh/sh.md (divsi3): Likewise.
13060 (imm->ext_dest_operand splitter): Likewise.
13062 2015-09-29 Sebastian Pop <s.pop@samsung.com>
13063 Aditya Kumar <aditya.k7@samsung.com>
13065 * graphite-sese-to-poly.c (gsi_for_phi_node): Remove.
13066 (nb_data_writes_in_bb): Remove.
13067 (split_pbb): Remove.
13068 (split_reduction_stmt): Remove.
13069 (is_reduction_operation_p): Remove.
13070 (phi_contains_arg): Remove.
13071 (follow_ssa_with_commutative_ops): Remove.
13072 (detect_commutative_reduction_arg): Remove.
13073 (detect_commutative_reduction_assign): Remove.
13074 (follow_inital_value_to_phi): Remove.
13075 (edge_initial_value_for_loop_phi): Remove.
13076 (initial_value_for_loop_phi): Remove.
13077 (used_outside_reduction): Remove.
13078 (detect_commutative_reduction): Remove.
13079 (translate_scalar_reduction_to_array_for_stmt): Remove.
13080 (remove_phi): Remove.
13081 (dr_indices_valid_in_loop): Remove.
13082 (close_phi_written_to_memory): Remove.
13083 (translate_scalar_reduction_to_array): Remove.
13084 (rewrite_commutative_reductions_out_of_ssa_close_phi): Remove.
13085 (rewrite_commutative_reductions_out_of_ssa_loop): Remove.
13086 (rewrite_commutative_reductions_out_of_ssa): Remove.
13087 (build_poly_scop): Remove call to
13088 rewrite_commutative_reductions_out_of_ssa.
13090 2015-09-29 Evandro Menezes <e.menezes@samsung.com>
13092 * config/arm/types.md (neon_ldp, neon_ldp_q, neon_stp, neon_stp_q):
13093 Add new insn types for vector load and store pairs.
13094 * config/arm/cortex-a53.md (cortex_a53_f_load_2reg): Add insn
13095 types "neon_ldp{,_q}".
13096 * config/arm/cortex-a57.md (neon_load_c): Add insn types
13098 (neon_store_complex): Add insn types "neon_stp{,_q}".
13099 * config/aarch64/aarch64-simd.md (aarch64_be_movoi): Add insn types
13100 "neon_{ldp,stp}_q".
13102 2015-09-29 Jeff Law <law@redhat.com>
13104 * config/rx/constraints.md (Int08): Fix undefined left shift
13106 (Sint08, Sint16, Sint24): Likewise.
13107 * config/rx/rx.c (rx_get_stack_layout): Likewise.
13109 * config/rl78/rl78-expand.md (movqi): Fix undefined left shift
13112 * config/msp430/msp430.c (msp430_legitimate_constant): Fix undefined
13113 left shift behaviour.
13114 * config/msp430/constraints.md ('L' constraint): Similarly.
13115 ('Ys' constraint): Similarly.
13117 2015-09-29 Richard Biener <rguenther@suse.de>
13119 PR tree-optimization/67170
13120 * tree-ssa-alias.h (get_continuation_for_phi): Adjust
13121 the translate function pointer parameter to get the
13122 bool whether to disambiguate only by reference.
13123 (walk_non_aliased_vuses): Likewise.
13124 * tree-ssa-alias.c (maybe_skip_until): Adjust.
13125 (get_continuation_for_phi_1): Likewise.
13126 (get_continuation_for_phi): Likewise.
13127 (walk_non_aliased_vuses): Likewise.
13128 * tree-ssa-sccvn.c (const_parms): New bitmap.
13129 (vn_reference_lookup_3): Adjust for interface change.
13130 Disambiguate parameters pointing to readonly memory.
13131 (free_scc_vn): Free const_parms.
13132 (run_scc_vn): Initialize const_parms from a fn spec attribute.
13134 2015-09-29 Richard Biener <rguenther@suse.de>
13136 PR tree-optimization/67741
13137 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Only recognize
13138 builtin calls with correct signature.
13140 2015-09-29 Ilya Enkovich <enkovich.gnu@gmail.com>
13143 * config/i386/i386.c: Include dbgcnt.h.
13144 (has_non_address_hard_reg): New.
13145 (convertible_comparison_p): New.
13146 (scalar_to_vector_candidate_p): New.
13147 (remove_non_convertible_regs): New.
13148 (scalar_chain): New.
13149 (scalar_chain::scalar_chain): New.
13150 (scalar_chain::~scalar_chain): New.
13151 (scalar_chain::add_to_queue): New.
13152 (scalar_chain::mark_dual_mode_def): New.
13153 (scalar_chain::analyze_register_chain): New.
13154 (scalar_chain::add_insn): New.
13155 (scalar_chain::build): New.
13156 (scalar_chain::compute_convert_gain): New.
13157 (scalar_chain::replace_with_subreg): New.
13158 (scalar_chain::replace_with_subreg_in_insn): New.
13159 (scalar_chain::emit_conversion_insns): New.
13160 (scalar_chain::make_vector_copies): New.
13161 (scalar_chain::convert_reg): New.
13162 (scalar_chain::convert_op): New.
13163 (scalar_chain::convert_insn): New.
13164 (scalar_chain::convert): New.
13165 (convert_scalars_to_vector): New.
13166 (pass_data_stv): New.
13168 (make_pass_stv): New.
13169 (ix86_option_override): Created and register stv pass.
13170 (flag_opts): Add -mstv.
13171 (ix86_option_override_internal): Likewise.
13172 * config/i386/i386.md (SWIM1248x): New.
13173 (*movdi_internal): Add xmm to mem alternative for TARGET_STV.
13174 (and<mode>3): Use SWIM1248x iterator instead of SWIM.
13175 (*anddi3_doubleword): New.
13176 (*zext<mode>_doubleword): New.
13177 (*zextsi_doubleword): New.
13178 (<code><mode>3): Use SWIM1248x iterator instead of SWIM.
13179 (*<code>di3_doubleword): New.
13180 * config/i386/i386.opt (mstv): New.
13181 * dbgcnt.def (stv_conversion): New.
13183 2015-09-29 Tom de Vries <tom@codesourcery.com>
13185 * tree-cfg.c (dump_function_to_file): Dump function attributes.
13187 2015-09-29 Kaz Kojima <kkojima@gcc.gnu.org>
13190 * config/sh/sh.c (sh_override_options_after_change): New.
13191 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
13192 (sh_option_override): Move align_loops, align_jumps and
13193 align_functions handling into sh_override_options_after_change.
13195 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
13197 * config/nvptx/nvptx.c: Include omp-low.h and gomp-constants.h.
13198 (nvptx_record_offload_symbol): Record function execution geometry.
13199 * config/nvptx/mkoffload.c (process): Include launch geometry in
13201 * omp-low.c (oacc_launch_pack): New.
13202 (replace_oacc_fn_attrib): New.
13203 (set_oacc_fn_attrib): New.
13204 (get_oacc_fn_attrib): New.
13205 (expand_omp_target): Create keyed varargs for GOACC_parallel call
13207 * omp-low.h (get_oacc_fn_attrib): Declare.
13208 * builtin-types.def (DEF_FUNCTION_TyPE_VAR_6): New.
13209 (DEF_FUNCTION_TYPE_VAR_11): Delete.
13210 * tree.h (OMP_CLAUSE_EXPR): New.
13211 * omp-builtins.def (BUILT_IN_GOACC_PARALLEL): Change target fn name.
13213 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
13214 Sebastian Pop <s.pop@samsung.com>
13216 * sese.c (invariant_in_sese_p_rec): Remove unused variable.
13218 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
13219 Sebastian Pop <s.pop@samsung.com>
13221 * graphite-optimize-isl.c (optimize_isl): Use ISL_SCHEDULE_FUSE_MAX.
13222 * graphite-scop-detection.c (struct sese_l): New type.
13223 (get_entry_bb): API for getting entry bb of SESE.
13224 (get_exit_bb): API for getting exit bb of SESE.
13225 (class debug_printer): New type. Simple printer in debug mode.
13226 (trivially_empty_bb_p): New. Return true when BB is empty or
13227 contains only debug instructions.
13228 (graphite_can_represent_expr): Call scalar_evoution_in_region
13229 instead of analyze_scalar_evolution. Pass in scop instead of only
13231 (stmt_has_simple_data_refs_p): Pass in scop instead of only the
13233 (stmt_simple_for_scop_p): Same.
13234 (harmful_stmt_in_bb): Same.
13235 (graphite_can_represent_loop): Deleted.
13236 (struct scopdet_info): Deleted.
13237 (scopdet_basic_block_info): Deleted.
13238 (build_scops_1): Deleted.
13239 (bb_in_sd_region): Deleted.
13240 (find_single_entry_edge): Deleted.
13241 (find_single_exit_edge): Deleted.
13242 (create_single_entry_edge): Deleted.
13243 (sd_region_without_exit): Deleted.
13244 (create_single_exit_edge): Deleted.
13245 (unmark_exit_edges): Deleted.
13246 (mark_exit_edges): Deleted.
13247 (create_sese_edges): Deleted.
13248 (build_graphite_scops): Deleted.
13249 (canonicalize_loop_closed_ssa): Recompute all dominators at the end.
13250 (build_scops): Use the new scop_builder to build scops.
13251 (dot_all_scops_1): Use the new pretty printer. Print loop father
13253 (loop_body_is_valid_scop): New. Return true if loop body is a
13255 (class scop_builder): New. Builds SCoPs for polyhedral
13257 (scop_builder): New constructor.
13258 (static sese_l invalid_sese): sese_l with invalid edges.
13259 (get_sese): Get an sese (from a loop) if possible, invalid_sese
13261 (get_nearest_dom_with_single_entry): Get nearest dominator of a
13262 basic_block with single entry. Return NULL if we get to the
13263 beginning of a function.
13264 (get_nearest_pdom_with_single_exit): Get nearest post-dominator of
13265 a basic_block with single exit. Return NULL if we get to the
13266 beginning of a function.
13267 (print_sese): Pretty-print SESE.
13268 (merge_sese): Merge two SESEs if possible and return the new SESE.
13269 (build_scop_depth): Start building the SCoP within a loop nest.
13270 (build_scop_breadth): Start building the SCoP at a single loop
13271 depth. Merge adjacent SESEs if valid.
13272 (can_represent_loop_1): Returns true if Graphite can represent
13273 loop inside SCoP. Helper for can_represent_loop.
13274 (can_represent_loop): Returns true if Graphite can represent LOOP
13275 and all its nested loops in SCoP.
13276 (loop_is_valid_scop): Returns true if LOOP and all its nests
13277 constitute a valid SCoP.
13278 (region_has_one_loop): Returns true of a region has only one loop.
13279 (add_scop): Add SCoP to the list of valid scops. Removes an
13280 already existing scop if it intersects with or subsumed by this one.
13281 (harmful_stmt_in_region): Returns true if SCoP has any statment
13282 which cannot be represented by Graphite.
13283 (subsumes): Returns true of SCoP S1 subsumes SCoP S2.
13284 (remove_subscops): Remove any SCoP from the list of already found
13285 SCoPs, if subsumed by S1.
13286 (intersects): Return true if region bounded by SCoPs S1 and S2
13288 (remove_intersecting_scops): Remove any SCoP which intersects with S1.
13289 * graphite.c (print_graphite_scop_statistics):
13290 (print_graphite_statistics): Print SCoP info while debugging.
13291 (graphite_initialize): Early exit in case number of loops in a
13292 function is less than PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION or
13293 basic blocks are more than PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
13294 (graphite_finalize):
13295 * params.def: Add PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION.
13296 * sese.h (sese_loop_depth): Remove unnecessary gcc_assert.
13297 (recompute_all_dominators): Recalculate POST_DOMINATORS.
13298 * tree-cfg.c (print_loops): Print the function name while printing
13301 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
13302 Sebastian Pop <s.pop@samsung.com>
13304 PR tree-optimization/67700
13305 * graphite-sese-to-poly.c (parameter_index_in_region): Call
13306 invariant_in_sese_p_rec.
13307 (extract_affine): Same.
13308 (rewrite_cross_bb_scalar_deps): Call update_ssa.
13309 * sese.c (invariant_in_sese_p_rec): Export. Handle vdefs and vuses.
13310 * sese.h (invariant_in_sese_p_rec): Declare.
13312 2015-09-28 David Wohlferd <dw@LimeGreenSocks.com>
13314 * doc/extend.texi (Asm Labels): Break out text for data vs functions.
13316 2015-09-28 Jiong Wang <jiong.wang@arm.com>
13319 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13320 Jiong Wang <jiong.wang@arm.com>
13322 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
13323 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
13324 (REG_CLASS_NAMES): Likewise.
13325 (REG_CLASS_CONTENTS): Likewise.
13326 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
13327 (aarch64_register_move_cost): Likewise.
13328 (aarch64_load_symref_appropriately): Invoke the new added pattern if
13330 * config/aarch64/constraints.md (Uc0): New constraint.
13332 2015-09-28 Daniel Hellstrom <daniel@gaisler.com>
13334 * config/sparc/t-rtems: Remove -muser-mode. Add ut699, at697f and leon.
13336 2015-09-28 David Edelsohn <dje.gcc@gmail.com>
13338 * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
13339 SECTION_EXCLUDE in XO mapping class.
13341 2015-09-28 Oleg Endo <olegendo@gcc.gnu.org>
13344 * config/sh/predicates.md (t_reg_operand, negt_reg_operand): Allow
13345 and handle ne and eq codes.
13346 * config/sh/sh.c (sh_rtx_costs): Adjust matching of tst #imm,r0 insn.
13347 (sh_recog_treg_set_expr): Early accept negt_reg_operand. Eearly reject
13348 CONST_INT_P. Use reverse_condition.
13349 (sh_split_treg_set_expr): Likewise.
13351 2015-09-28 James Greenhalgh <james.greenhalgh@arm.com>
13353 * config/arm/types.md (type): Add rotate_imm.
13354 * config/aarch64/aarch64.md (*ror<mode>3_insn): Split out the
13355 ROR immediate case.
13356 (*rorsi3_insn_uxtw): Likewise.
13357 * config/aarch64/thunderx.md (thunderx_shift): Add rotate_imm.
13358 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add rotate_imm.
13359 * config/arm/cortex-a57.md (cortex_a53_alu): Add rotate_imm.
13361 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13363 PR rtl-optimization/67481
13364 * ifcvt.c (contains_ccmode_rtx_p): New function.
13365 (insn_valid_noce_process_p): Use it.
13367 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13369 PR rtl-optimization/67456
13370 PR rtl-optimization/67464
13371 PR rtl-optimization/67465
13372 * ifcvt.c (noce_try_cmove_arith): Bail out if cannot conditionally
13373 move in the mode of x. Handle combination of complex and simple
13374 block pairs as well as the case when one is empty.
13376 2015-09-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13378 * doc/gimple.texi: Update references to gimple_statement_base.
13379 * gdbhooks.py: Likewise.
13380 * gimple.h: Likewise.
13382 2015-09-28 Daniel Cederman <cederman@gaisler.com>
13384 * config/sparc/driver-sparc.c: map LEON to leon3
13386 2015-09-28 Daniel Cederman <cederman@gaisler.com>
13388 * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
13389 and make it inverse to change default
13390 * config/sparc/sync.md: Only use supervisor ASI for CASA when in
13392 * doc/invoke.texi: Document change of default
13394 2015-09-28 Daniel Cederman <cederman@gaisler.com>
13396 * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
13397 true on %f0 for a target without FPU.
13398 * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
13400 (untyped_return): Do not load %f0 for a target without FPU.
13402 2015-09-28 Andrew Pinski <apinski@cavium.com>
13404 * config/aarch64/aarch64.md (prefetch):
13405 Change the predicate of operand 0 to register_operand.
13407 2015-09-27 Uros Bizjak <ubizjak@gmail.com>
13409 * config/i386/predicates.md (register_sse4nonimm_operand): New
13411 * config/i386/sse.md (PEXTR_MODE12): New mode iterator.
13412 (*vec_extract<mode>): Use PEXTR_MODE12 instead of VI12_128 mode.
13413 Use register_sse4nonimm_operand as operand 0 predicate.
13414 (*vec_extractv8hi_sse2): Remove insn pattern.
13415 (*vec_extract<PEXTR_MODE12:mode>_zext): Merge insn pattern from
13416 *vec_extractv8hi_zext and *vec_extractv16qi_zext patterns.
13418 2015-09-27 Oleg Endo <olegendo@gcc.gnu.org>
13419 Kaz Kojima <kkojima@gcc.gnu.org>
13422 * config/sh/sh-protos.h (sh_lra_p): Declare.
13423 * config/sh/sh.c (sh_lra_p): Make non-static.
13424 * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
13425 arith_reg_operand for operands[1]. Remove TARGET_SHMEDIA case.
13426 Expand into addsi3_scr if operands[2] if needed.
13427 (*addsi3_compact): Rename to *addsi3_compact_lra. Use
13428 arith_reg_operand for operands[1]. Allow it only when LRA is enabled.
13429 (addsi3_scr, *addsi3): New insn_and_split patterns.
13431 2015-09-27 Alexandre Oliva <aoliva@redhat.com>
13433 PR rtl-optimization/64164
13434 PR tree-optimization/67312
13435 PR middle-end/67340
13436 PR middle-end/67490
13438 * cfgexpand.c (parm_in_stack_slot_p): Remove.
13439 (ssa_default_def_partition): Remove.
13440 (get_rtl_for_parm_ssa_default_def): Remove.
13441 (set_rtl): Check that RTL assignments match expectations.
13442 Loop on SUBREGs, CONCATs and PARALLELs subexprs. Set only the
13443 default def location for params and results. Record SSA names
13444 or types in REG and MEM attrs, respectively.
13445 (set_parm_rtl): New.
13446 (expand_one_ssa_partition): Drop logic that assigned MEMs with
13447 unassigned addresses.
13448 (adjust_one_expanded_partition_var): Don't accept NULL RTL on
13449 deferred stack alloc vars.
13450 (expand_used_vars): Skip partitions holding parm default defs.
13451 Move adjust_one_expanded_partition_var loop...
13452 (pass_expand::execute): ... here. Drop redundant assert.
13453 Adjust comments before the final loop over all ssa names.
13454 Require assigned rtl of parms and results to match exactly.
13455 Reset its attributes to match them, not any other variables in
13456 the same partition.
13457 (expand_debug_expr): Use entry value for PARM's default defs
13458 only iff they have zero nondebug uses.
13459 * cfgexpand.h (parm_in_stack_slot_p): Remove.
13460 (get_rtl_for_parm_ssa_default_def): Remove.
13461 (set_parm_rtl): Declare.
13462 * doc/invoke.texi: Improve wording.
13463 * explow.c (promote_decl_mode): Fix promote_function_mode for
13464 result decls not by reference.
13465 (promote_ssa_mode): Disregard BLKmode from promote_decl, and
13466 bypass TYPE_MODE to get the actual vector mode.
13467 * function.c: Include tree-dfa.h. Revert 2015-08-14's and
13468 2015-08-19's changes as follows. Drop include of
13469 basic-block.h and df.h.
13470 (rtl_for_parm): Remove.
13471 (maybe_reset_rtl_for_parm): Remove.
13472 (parm_in_unassigned_mem_p): Remove.
13473 (use_register_for_decl): Add logic for RESULT_DECLs matching
13474 assign_parms' behavior.
13475 (split_complex_args): Revert.
13476 (assign_parms_augmented_arg_list): Revert. Add comment
13477 referencing the logic above.
13478 (assign_parm_adjust_stack_rtl): Revert.
13479 (assign_parm_setup_block): Revert. Use set_parm_rtl instead
13480 of SET_DECL_RTL. Set up a REG if the parm demands so.
13481 (assign_parm_setup_reg): Revert. Consolidated SET_DECL_RTL
13482 calls into a single set_parm_rtl. Set up a temporary RTL
13483 temporarily for expand_assignment.
13484 (assign_parm_setup_stack): Revert. Use set_parm_rtl.
13485 (assign_parms_unsplit_complex): Revert. Use set_parm_rtl.
13486 (assign_bounds): Revert.
13487 (assign_parms): Revert. Use set_parm_rtl.
13488 (allocate_struct_function): Relayout result and parms of
13489 non-abstruct functions.
13490 (expand_function_start): Revert. Use set_parm_rtl. If the
13491 result is not a hard reg, create a pseudo from the promoted
13492 mode of the default def. Promote static chain mode.
13493 * tree-outof-ssa.c (remove_ssa_form): Drop unused
13494 partition_has_default_def. Set up
13495 partitions_for_parm_default_defs.
13496 (finish_out_of_ssa): Remove partition_has_default_def.
13497 Release partitions_for_parm_default_defs.
13498 * tree-outof-ssa.h (struct ssaexpand): Remove
13499 partition_has_default_def. Add
13500 partitions_for_parm_default_defs.
13501 * tree-ssa-coalesce.c: Include tree-dfa.h, tm_p.h and
13503 (build_ssa_conflict_graph): Fix conflict-detection of default
13504 defs of even unused default defs of params and results.
13505 (for_all_parms): New.
13506 (create_default_def): New.
13507 (register_default_def): New.
13508 (coalesce_with_default): New.
13509 (create_outofssa_var_map): Create default defs for all parms
13510 and results, and register their partitions. Add GIMPLE_RETURN
13511 operands as coalesce candidates with results. Add default
13512 defs of each parm or result as coalesce candidates with its
13513 other defs. Mark each result def, and each default def of
13514 parms, as used_in_copy.
13515 (gimple_can_coalesce_p): Call it. Call use_register_for_decl
13516 with the ssa names, even anonymous ones. Drop
13517 parm_in_stack_slot_p calls. Require same signedness and
13519 (coalesce_ssa_name): Add coalesce candidates for all defs of
13520 each parm and result, even unused ones.
13521 (parm_default_def_partition_arg): New type.
13522 (set_parm_default_def_partition): New.
13523 (get_parm_default_def_partitions): New.
13524 * tree-ssa-coalesce.h (get_parm_default_def_partitions): New.
13525 * tree-ssa-live.c (partition_view_init): Regard unused defs of
13526 parms and results as used.
13527 (verify_live_on_entry): Don't error out just because they're
13530 2015-09-26 David Edelsohn <dje.gcc@gmail.com>
13532 * dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
13533 (HAVE_XCOFF_DWARF_EXTRAS): Default to 0 definition.
13534 (output_fde): Don't output length for debug_frame on AIX.
13535 (output_call_frame_info): Don't output length for debug_frame on AIX.
13536 (have_macinfo): Force to False for XCOFF_DEBUGGING_INFO and not
13537 HAVE_XCOFF_DWARF_EXTRAS.
13538 (add_AT_loc_list): Return early if XCOFF_DEBUGGING_INFO and not
13539 HAVE_XCOFF_DWARF_EXTRAS.
13540 (output_compilation_unit_header): Don't output length on AIX.
13541 (output_pubnames): Don't output length on AIX.
13542 (output_aranges): Delete argument. Compute length locally. Don't
13543 output length on AIX.
13544 (output_line_info): Don't output length on AIX.
13545 (dwarf2out_finish): Don't compute aranges_length.
13546 * dwarf2asm.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
13547 (dw2_asm_output_nstring): Emit .byte not .ascii on AIX.
13548 * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Emit correct
13549 symbol decoration for AIX.
13550 (rs6000_xcoff_debug_unwind_info): New.
13551 (rs6000_xcoff_asm_named_section): Emit .dwsect pseudo-op
13553 (rs6000_xcoff_declare_function_name): Emit different
13554 .function pseudo-op when DWARF2_DEBUG. Don't call
13555 xcoffout_declare_function for DWARF2_DEBUG.
13556 * config/rs6000/xcoff.h (TARGET_DEBUG_UNWIND_INFO):
13558 * config/rs6000/aix71.h: New.
13559 * configure.ac (gcc_cv_as_aix_dwloc): Check AIX as for DWARF
13561 * configure: Regenerate.
13562 * config.gcc (powerpc-ibm-aix[789]+): New stanza for AIX 7.1+ with
13565 2015-09-26 Jeff Law <law@redhat.com>
13567 * config/arc/arc.c (arc_output_addsi): Fix left shift undefined
13569 * config/arc/constraints.md (Cca, C2a): Fix left shift undefined
13572 * config/sh/sh.h (CONST_OK_FOR_J16): Fix left shift undefined
13575 * config/mips/mips.c (mips_compute_frame_info): Fix left shift
13576 undefined behaviour.
13578 * config/cris/cris.md (asrandb): Fix left shift undefined
13580 (asrandw): Likewise.
13582 2015-09-25 Vladimir Makarov <vmakarov@redhat.com>
13585 * lra-constarints.c (match_reload): Check presence of the input pseudo
13586 in the output operand.
13588 2015-09-25 Tobias Burnus <burnus@net-b.de>
13590 * doc/invoke.texi (-fsanitize): Minor wording tweak.
13592 2015-09-25 Tobias Burnus <burnus@net-b.de>
13594 * doc/invoke.texi (-fsanitize): Update URLs.
13596 2015-09-25 Teresa Johnson <tejohnson@google.com>
13598 * opts.c (finish_options): Unset -freorder-blocks-and-partition
13599 if not using profile.
13601 2015-09-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
13603 PR pretty-print/67567
13604 * pretty-print.c (pp_string): Add gcc_checking_assert.
13605 * pretty-print.h (output_buffer_append_r): Likewise.
13607 2015-09-25 Oleg Endo <olegendo@gcc.gnu.org>
13610 * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
13611 addr2 individually. Don't emit logical or insn if one is known to
13612 be aligned approriately.
13613 (sh_expand_cmpnstr): Likewise.
13615 2015-09-25 Richard Sandiford <richard.sandiford@arm.com>
13617 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
13618 __builtin_aarch64_fp[sc]r arguments into a register.
13620 2015-09-25 H.J. Lu <hongjiu.lu@intel.com>
13622 * config.gcc (x86_archs): Replace lakemount with lakemont.
13623 (with_cpu): Likewise.
13624 (with_arch): Likewise.
13625 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
13626 PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT. Replace
13627 __tune_lakemount__ with __tune_lakemont__.
13628 * config/i386/i386.c (lakemount_cost): Renamed to ...
13629 (lakemont_cost): This.
13630 (m_LAKEMOUNT): Renamed to ...
13631 (m_LAKEMONT): This.
13632 (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
13633 (processor_target_table): Replace "lakemount" with "lakemont".
13634 (processor_alias_table): Likewise.
13635 (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
13636 PROCESSOR_LAKEMONT.
13637 (ix86_adjust_cost): Likewise.
13638 (ia32_multipass_dfa_lookahead): Likewise.
13639 * config/i386/i386.h (processor_type): Likewise.
13640 * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
13641 * doc/invoke.texi: Replace lakemount with lakemont. Replace
13642 Lakemount with Lakemont.
13644 2015-09-24 H.J. Lu <hongjiu.lu@intel.com>
13646 * config.gcc (x86_archs): Replace iamcu with lakemount.
13647 (with_cpu): Likewise.
13648 (with_arch): Likewise.
13649 * doc/invoke.texi: Likewise.
13650 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
13651 PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT. Replace
13652 __tune_iamcu__ with __tune_lakemount__.
13653 * config/i386/i386.c (iamcu_cost): Renamed to ...
13654 (lakemount_cost): This.
13655 (m_IAMCU): Renamed to ...
13656 (m_LAKEMOUNT): This.
13657 (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
13658 (processor_target_table): Replace "iamcu" with "lakemount".
13659 (processor_alias_table): Likewise.
13660 (ix86_issue_rate): Replace PROCESSOR_IAMCU with
13661 PROCESSOR_LAKEMOUNT.
13662 (ix86_adjust_cost): Likewise.
13663 (ia32_multipass_dfa_lookahead): Likewise.
13664 * config/i386/i386.h (processor_type): Likewise.
13665 * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
13667 2015-09-24 John David Anglin <danglin@gcc.gnu.org>
13669 * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
13670 * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
13672 * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
13673 (pa_expand_compare_and_swap_loop): New.
13674 (pa_maybe_emit_compare_and_swap_exchange_loop): New.
13675 * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
13676 atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
13677 (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
13678 (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
13681 2015-09-24 Michael Collison <michael.collison@linaro.org>
13684 * read-md.c (read_name): Allow mode iterators inside angle
13685 brackets in rtl expressions.
13687 2015-09-24 Vladimir Makarov <vmakarov@redhat.com>
13690 * ira-color.c (update_allocno_cost): Add parameter.
13691 (update_costs_from_allocno): Decrease conflict cost. Pass the new
13694 2015-09-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
13697 * opts-common.c (prune_options): Discard all -fdiagnostics-color
13698 but the last one, which is moved to the front to be processed
13700 * opts.c (enable_warning_as_error): Reject options that do not
13703 2015-09-24 Jiong Wang <jiong.wang@arm.com>
13705 * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
13707 2015-09-24 Jiong Wang <jiong.wang@arm.com>
13709 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
13710 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
13711 (aarch64_cannot_force_const_mem): Likewise.
13712 (aarch64_classify_address): Likewise.
13713 (aarch64_classify_symbolic_expression): Likewise.
13714 (aarch64_print_operand): Likewise.
13715 (aarch64_classify_symbol): Likewise.
13716 (aarch64_mov_operand_p): Likewise.
13717 * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
13718 (aarch64_mov_operand): Likewise.
13720 2015-09-24 Segher Boessenkool <segher@kernel.crashing.org>
13722 * config/rs6000/rs6000.c (debug_stack_info): Invert the test
13723 for info->spe_gp_size.
13725 2015-09-24 Richard Biener <rguenther@suse.de>
13728 * lto-cgraph.c (compute_ltrans_boundary): Do not stream
13731 2015-09-24 Thomas Schwinge <thomas@codesourcery.com>
13733 * tree-object-size.c (plus_stmt_object_size)
13734 (cond_expr_object_size): Change the formal parameters from gimple
13736 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
13737 * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
13738 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
13740 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13742 * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
13743 Check for ld -type pie on Solaris 11.x and 12.
13744 * configure: Regenerate.
13745 * config.in: Regenerate.
13747 * gcc.c (LD_PIE_SPEC): Allow redefinition.
13749 * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
13750 (STARTFILE_SPEC): Use it.
13751 (ENDFILE_CRTEND_SPEC): Define.
13752 (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
13753 (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
13754 ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
13755 [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
13756 (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
13757 * config/i386/sol2.h (ENDFILE_SPEC): Remove.
13758 (ENDFILE_ARCH_SPEC): Define.
13759 * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
13761 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13763 * configure.ac (gcc_cv_solaris_crts): New test.
13764 * configure. Regenerate.
13765 * config.in: Regenerate.
13766 * config/sol2.h (STARTFILE_SPEC): Simplify, provide
13767 HAVE_SOLARIS_CRTS variant.
13769 2015-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13771 * tree-inline.h (count_insns_seq): Delete prototype.
13772 (estimate_num_insns_seq): Define prototype.
13773 * tree-inline.c (count_insns_seq): Delete.
13774 (estimate_num_insns_seq): Remove static qualifier.
13775 * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
13776 with estimate_num_insns_seq.
13778 2015-09-24 Richard Biener <rguenther@suse.de>
13780 * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
13782 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
13783 and base for MEM_REF and TARGET_MEM_REF. Handle BIT_FIELD_REF
13785 (ao_ref_init_from_vn_reference): Record clique and base in the
13787 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
13789 2015-09-24 Richard Biener <rguenther@suse.de>
13791 PR tree-optimization/48885
13792 * tree-ssa-structalias.c (visit_loadstore): Handle default defs
13793 as not including any restrict tags from other pointers.
13795 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
13797 * gcc.c (handle_foffload_option): Don't lose the trailing NUL
13798 character when appending to offload_targets.
13800 * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
13801 offload targets by commas, not colons.
13802 * config.in: Regenerate.
13803 * configure: Likewise.
13804 * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
13805 instead of setting up the default offload targets here...
13806 (process_command): ..., do it here.
13808 * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
13809 targets are separated by commas.
13810 * config.h.in: Regenerate.
13812 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
13813 Nathan Sidwell <nathan@codesourcery.com>
13815 * omp-low.h (omp_reduction_init_op): Declare.
13816 * omp-low.c (omp_reduction_init_op): New, broken out of ...
13817 (omp_reduction_init): ... here. Call it.
13818 * tree-parloops.c (initialize_reductions): Use
13819 omp_reduction_init_op.
13821 2015-09-23 Richard Biener <rguenther@suse.de>
13823 PR middle-end/67662
13824 * fold-const.c (fold_binary_loc): Do not reassociate two vars with
13825 undefined overflow unless they will cancel out.
13827 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
13829 * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
13832 2015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
13835 * opts.h (write_langs): Declare.
13836 * opts-global.c (write_langs): Make it extern.
13838 2015-09-23 Oleg Endo <olegendo@gcc.gnu.org>
13841 * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
13842 overlapping regs when matching the pattern.
13844 2015-09-23 James Greenhalgh <james.greenhalgh@arm.com>
13846 * config/aarch64/aarch64-simd.md
13847 (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
13848 (aarch64_float_truncate_hi_v4sf_le): New.
13849 (aarch64_float_truncate_hi_v4sf_be): Likewise.
13851 2015-09-23 Richard Biener <rguenther@suse.de>
13853 * tree-ssa-structalias.c (intra_create_variable_infos): Build
13854 representatives for all restrict qualified pointer destinations.
13856 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
13858 * config/i386/i386.md (define_code_attr mshift): New.
13859 (define_mode_iterator SWI1248_AVX512BW): Rename ...
13860 (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
13862 (define_insn "*k<logic><mode>"): Use new iterator name.
13863 (define_insn "*<mshift><mode>3"): New.
13865 2015-09-23 Mikhail Maltsev <maltsevm@gmail.com>
13867 PR middle-end/67649
13868 * memory-block.h (memory_block_pool::allocate): Use valgrind API to
13869 mark the block as accessible.
13871 2015-09-22 Segher Boessenkool <segher@kernel.crashing.org>
13873 * function.c (thread_prologue_and_epilogue_insns): Delete
13874 orig_entry_edge argument to try_shrink_wrapping.
13875 * shrink-wrap.c (can_get_prologue): New function.
13876 (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
13877 (try_shrink_wrapping): Delete orig_entry_edge argument. Use
13878 can_get_prologue where needed. Remove code that finds a single
13879 edge for the prologue. Remove code that tests if any reg clobbered
13880 by the prologue is live on the prologue edge. Remove code that finds
13881 the new prologue edge after duplicating blocks. Make a new prologue
13883 * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
13885 2015-09-22 Jeff Law <law@redhat.com>
13887 * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
13890 2015-09-22 Nathan Sidwell <nathan@codesourcery.com>
13892 * doc/invoke.texi (-Wmultiple-inheritance, -Wvirtual-inheritance,
13893 -Wtemplates, -Wnamespaces): Document.
13895 2015-09-22 Tom de Vries <tom@codesourcery.com>
13897 PR tree-optimization/67671
13898 * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
13899 pointer references as restrict.
13901 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
13903 * config/nios2/nios2.c (nios2_legitimize_address): When handling
13904 'reg + reloc' cases, allow first operand to be non-REG, and use
13905 force_reg() to enforce address pattern.
13907 2015-09-22 Alexander Fomin <alexander.fomin@intel.com>
13910 * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
13911 (define_mode_iterator VI12_AVX_AVX512F): New.
13912 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
13913 all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
13914 (define_insn "*<code><mode>3"): ... Into new pattern using
13915 VI12_AVX_AVX512F iterators without masking.
13917 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
13919 * config.gcc: Support "skylake-avx512".
13920 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
13921 PROCESSOR_SKYLAKE_AVX512.
13922 * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
13923 (processor_target_table): Add "skylake-avx512".
13924 (PTA_SKYLAKE_AVX512): Define.
13925 (ix86_option_override_internal): Add "skylake_avx512".
13926 (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
13927 F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
13928 * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
13929 (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
13930 * doc/invoke.texi (skylake-avx512): New.
13932 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
13934 * config/i386/i386.md (define_insn "kunpckhi"): Fix
13935 operand in pattern.
13936 (define_insn "kunpcksi"): Ditto.
13937 (define_insn "kunpckdi"): Ditto.
13939 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
13941 * config/i386/i386.md (define_split not/xor SWI1248x): Use
13942 iterator instead of fixed modes.
13944 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
13946 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
13947 Adjust declaration.
13948 * config/aarch64/aarch64.c (aarch64_emit_bic): New.
13949 (aarch64_gen_atomic_ldop): Adjust comment. Add parameter
13950 out_result. Update to support update-fetch operations.
13951 * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
13952 Adjust for change to aarch64_gen_atomic_ldop.
13953 (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
13954 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
13955 (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
13956 (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
13957 (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
13959 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
13961 * config/aarch64/aarch64-protos.h
13962 (aarch64_atomic_ldop_supported_p): Declare.
13963 * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
13964 (enum aarch64_atomic_load_op_code): New.
13965 (aarch64_emit_atomic_load_op): New.
13966 (aarch64_gen_atomic_ldop): Update to support load-operate
13968 * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
13970 (aarch64_atomic_<atomic_optab><mode>): New.
13971 (aarch64_atomic_<atomic_optab><mode>_lse): New.
13972 (atomic_fetch_<atomic_optab><mode>): Change to an expander.
13973 (aarch64_atomic_fetch_<atomic_optab><mode>): New.
13974 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
13976 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
13978 * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
13979 (UNSPECV_ATOMIC_LDOP_OR): New.
13980 (UNSPECV_ATOMIC_LDOP_BIC): New.
13981 (UNSPECV_ATOMIC_LDOP_XOR): New.
13982 (UNSPECV_ATOMIC_LDOP_PLUS): New.
13983 (ATOMIC_LDOP): New.
13984 (atomic_ldop): New.
13985 (aarch64_atomic_load<atomic_ldop><mode>): New.
13987 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
13989 * config/aarch64/aarch64.md
13990 (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
13993 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
13995 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
13997 * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
13998 (aarch64_gen_atomic_ldop): New.
13999 (aarch64_split_atomic_op): Fix whitespace and add a comment.
14000 * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
14001 (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
14002 (atomic_exchange<mode>): Replace with an expander.
14003 (aarch64_atomic_exchange<mode>): New.
14004 (aarch64_atomic_exchange<mode>_lse): New.
14005 (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
14006 (aarch64_atomic_swp<mode>): New.
14008 2015-09-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
14010 * tree-inline.c (expand_call_inline): Use inform for extra note.
14011 Do not give a note with UNKNOWN_LOCATION.
14012 Replace input_location with gimple_location (stmt).
14013 Use true/false instead of TRUE/FALSE.
14015 2015-09-22 Tom de Vries <tom@codesourcery.com>
14017 PR tree-optimization/67666
14018 * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
14019 with single field non-conservative.
14021 2015-09-21 David S. Miller <davem@davemloft.net>
14025 2015-09-11 David S. Miller <davem@davemloft.net>
14027 * config/sparc/constraints.md: Make "U" constraint a real register
14029 * config/sparc/sparc.c (TARGET_LRA_P): Define.
14030 (D_MODES, DF_MODES): Add missing cast.
14031 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
14032 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
14033 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
14035 * config/sparc/sparc.h (PROMOTE_MODE): Define.
14036 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
14037 provide these insn when flag_pic.
14039 2015-09-17 David S. Miller <davem@davemloft.net>
14041 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
14043 * config/sparc/sparc.c (sparc_secondary_memory_needed): New
14045 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
14046 (HARD_REGNO_CALLER_SAVE_MODE): Define.
14047 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
14048 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
14049 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
14050 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
14051 provide when flag_pic.
14053 2015-09-21 Jeff Law <law@redhat.com>
14055 * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
14058 2015-09-21 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14060 * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
14062 2015-09-21 Richard Biener <rguenther@suse.de>
14064 * passes.c (rest_of_decl_compilation): Do not call
14065 dwarf2out_early_global_decl for aliases.
14067 2015-09-21 Richard Biener <rguenther@suse.de>
14070 * dwarf2out.c (add_location_or_const_value_attribute): Remove
14071 attribute parameter. Early exit if either DW_AT_const_value
14072 or DW_AT_location are present already.
14073 (gen_variable_die): Adjust caller.
14074 (dwarf2out_late_global_decl): Likewise.
14076 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
14079 * config/sh/sh.c (sh_remove_overlapping_post_inc,
14080 sh_peephole_emit_move_insn): Add new functions.
14081 * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
14082 sh_peephole_emit_move_insn): Declere them.
14083 * config/sh/sh.md: Use them in various peephole2 patterns.
14085 2015-09-21 Richard Biener <rguenther@suse.de>
14087 PR middle-end/67651
14088 * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
14089 address with -fno-delete-null-pointer-checks.
14091 2015-09-21 Alan Lawrence <alan.lawrence@arm.com>
14093 * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
14094 (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
14095 (reduc_uplus_v16qi): Remove.
14097 * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
14098 (reduc_<VEC_reduc_name>_v2df): Remove.
14099 (reduc_<VEC_reduc_name>_v4sf): Remove.
14100 (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
14102 * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
14103 gen_ function by removing * prefix.
14104 (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
14106 2015-09-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
14108 PR middle-end/60832
14109 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
14110 Print i_bound without converting it to a tree.
14112 2015-09-21 Bilyan Borisov <bilyan.borisov@arm.com>
14114 * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
14115 operands[4] operands[5] swap with std::swap, removed tmp variable.
14116 (arm_evpc_neon_vzip): Replaced in0/in1 and
14117 out0/out1 swaps with std::swap, removed x variable.
14118 (arm_evpc_neon_vtrn): Replaced in0/int1 and
14119 out0/out1 swaos with std::swap, removed x variable.
14120 (arm_expand_vec_perm_const_1): Replaced
14121 d->op0/d->op1 swap with std::swap, removed x variable.
14122 (arm_evpc_neon_vuzp): Replaced in0/in1 and
14123 out0/out1 swaps with std::swap, removed x variable.
14125 2015-09-21 Jonathan Yong <10walls@gmail.com>
14127 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
14128 sysroot/usr/lib/32api for additional win32 libraries,
14129 fixes failing Cygwin bootstrapping.
14131 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
14133 * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
14135 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
14138 * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
14139 (*mov_t_msb_neg): Rewrite negc pattern.
14141 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
14143 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
14144 immediate generation code.
14146 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
14148 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
14149 redundant immediate generation code.
14151 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
14153 * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
14154 (AARCH64_NUM_BITMASKS): Remove.
14155 (aarch64_bitmasks_cmp): Remove.
14156 (aarch64_build_bitmask_table): Remove.
14158 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
14160 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
14161 slow immediate matching loops with a faster algorithm.
14163 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
14165 * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
14168 2015-09-20 Jeff Law <law@redhat.com>
14170 PR tree-optimization/47679
14171 * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
14172 * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
14173 * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
14174 (thread_through_normal_block): Use record_temporary_equivalences.
14176 2015-09-19 Trevor Saunders <tbsaunde@tbsaunde.org>
14178 * coretypes.h (gimple): Change typedef to be a forward declaration.
14179 * gimple.h (gimple_statement_base): rename to gimple.
14180 * (all functions and types using gimple): Adjust.
14181 * *.[ch]: Likewise.
14183 2015-09-19 Andrew Dixie <andrewd@gentrack.com>
14184 David Edelsohn <dje.gcc@gmail.com>
14186 * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
14187 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
14188 (EH_FRAME_THROUGH_COLLECT2): Define.
14189 (EH_TABLES_CAN_BE_READ_ONLY): Define.
14190 (ASM_OUTPUT_DWARF_PCREL): Define.
14191 (ASM_OUTPUT_DWARF_DATAREL): Define.
14193 2015-09-19 John David Anglin <danglin@gcc.gnu.org>
14195 * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
14198 2015-09-18 Jeff Law <law@redhat.com>
14200 PR tree-optimization/47679
14201 * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped. Move
14203 (dom_opt_dom_walker): New private member holding the avail_exprs_stack
14204 object. Update constructor.
14205 (pass_dominator::execute): Corresponding chagnes to declaration
14206 and initialization of avail_exprs_stack. Update constructor call
14207 for dom_opt_dom_walker object.
14208 (lookup_avail_expr, record_cond): Accept additional argument. Pass
14209 it down to children as needed.
14210 (record_equivalences_from_incoming_edge): Likewise.
14211 (eliminate_redundant_computations): Likewise.
14212 (record_equivalences_from_stmt): Likewise.
14213 (simplify_stmt_for_jump_threading): Likewise.
14214 (record_temporary_equivalences): Likewise.
14215 (optimize_stmt): Likewise.
14216 (dom_opt_dom_walker::thread_across_edge): Update access to
14217 avail_exprs_stack object and pass it to children as needed.
14218 (dom_opt_dom_walker::before_dom_children): Similarly.
14219 (dom_opt_dom_walker::after_dom_children): Similarly.
14220 * tree-ssa-threadedge.c (pfn_simplify): New typedef.
14221 (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
14222 Add avail_expr_stack argument. Pass it to children as needed.
14223 (dummy_simplify): Likewise.
14224 (simplify_control_stmt_condition): Likewise.
14225 (thread_around_empty_blocks): Likewise.
14226 (thread_through_normal_block): Likewise.
14227 (thread_across_edge): Likewise.
14228 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
14229 * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
14231 PR tree-optimization/47679
14232 * tree-ssa-dom.c (const_and_copies): No longer file scoped. Move
14234 (dom_opt_dom_walker): New private member holding the const_and_copies
14235 object. Update constructor.
14236 (pass_dominator::execute): Corresponding changes to declaration
14237 and initialization of const_and_copies. Update constructor call
14238 for the dom_opt_dom_walker object.
14239 (record_temporary_equivalences): Accept const_and_copies argument
14240 pass it down to children as needed.
14241 (record_equality): Likewise.
14242 (record_equivalences_from_incoming_edge): Likewise.
14243 (cprop_into_successor_phis, optimize_stmt): Likewise.
14244 (eliminate_redundant_computations): Likewise.
14245 (dom_opt_dom_walker::thread_across_edge): Update access to
14246 const_and_copies object and pass it to children as needed.
14247 (dom_opt_dom_walker::before_dom_children): Similarly.
14248 (dom_opt_dom_walker::after_dom_children): Similarly.
14250 PR tree-optimization/47679
14251 * tree-ssa-dom.c (avail_exprs): No longer file scoped. Bury
14252 it into the avail_exprs_stack class.
14253 (pass_dominator::execute): Corresponding changes to declaration
14254 and initialization of avail_exprs. Pass avail_exprs to
14255 dump_dominator_optimization_stats.
14256 (record_cond): Extract avail_exprs from avail_exprs_stack.
14257 (lookup_avail_expr): Similarly.
14258 (htab_staticstics): Remove unnecessary prototype. Move to earlier
14260 (dump_dominator_optimization_stats): Make static and prototype.
14261 Add argument for the hash table to dump.
14262 (debug_dominator_optimization_stats): Remove.
14263 * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
14265 (debug_dominator_optimization_stats): Similarly.
14266 * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
14267 "void" in prototype for pop_to_marker method. Add accessor method
14268 for the underlying avail_exprs table.
14270 * tree-ssa-threadedge.c: Remove trailing whitespace.
14272 2014-09-18 John David Anglin <danglin@gcc.gnu.org>
14274 * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
14276 (pa_ldil_cint_p): Likewise.
14277 * config/pa/pa.c (pa_cint_ok_for_move): likewise.
14278 (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
14280 * config/pa/pa.md: Likewise.
14282 2015-09-18 David Malcolm <dmalcolm@redhat.com>
14284 * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
14285 * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
14286 (diagnostic_show_locus): Likewise.
14287 (diagnostic_print_caret_line): Likewise.
14288 * diagnostic-show-locus.c: New file.
14290 2015-09-18 David Edelsohn <dje.gcc@gmail.com>
14292 * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
14293 "back" parameter. Declare label in #if block.
14295 2015-09-18 Uros Bizjak <ubizjak@gmail.com>
14297 PR middle-end/67619
14298 * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
14299 the address to a register.
14301 2015-09-18 Jeff Law <law@redhat.com>
14303 PR tree-optimization/47679
14304 * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
14305 * tree-ssa-dom.c: Remove unnecessary header includes.
14306 (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
14307 (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
14308 (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
14309 (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
14310 (pass_phi_only_cprop::execute): Likewise.
14311 (make_pass_phi_only_cprop): Likewise.
14312 * tree-ssa-phionlycprop.c: New file with moved code. Eliminate
14313 uses of file scoped statics by passing the required objects
14314 as parameters wherever needed.
14316 2015-09-18 Andrew Dixie <andrewd@gentrack.com>
14317 David Edelsohn <dje.gcc@gmail.com>
14319 * defaults.h (EH_FRAME_SECTION_NAME): Depend on
14320 EH_FRAME_THROUGH_COLLECT2.
14321 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
14323 * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
14324 even if EH_FRAME_SECTION_NAME is undefined. Restrict special
14325 collect2 labels to EH_FRAME_THROUGH_COLLECT2.
14326 * except.c (switch_to_exception_section): Use a read-only section
14327 even if EH_FRAME_SECTION_NAME is undefined.
14328 * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
14329 * collect2.c (write_c_file_stat): Provide dbase on AIX.
14330 (scan_prog_file): Don't export __dso_handle nor
14331 __gcc_unwind_dbase.
14332 * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
14333 (EH_TABLES_CAN_BE_READ_ONLY): Define.
14334 (ASM_OUTPUT_DWARF_PCREL): Define.
14335 (ASM_OUTPUT_DWARF_DATAREL): Define.
14336 (EH_FRAME_THROUGH_COLLECT2): Define.
14337 (EH_FRAME_IN_DATA_SECTION): Delete.
14338 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
14339 * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
14341 (rs6000_asm_output_dwarf_datarel): Declare.
14342 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
14343 (rs6000_aix_asm_output_dwarf_datarel): New.
14344 (rs6000_xcoff_asm_init_sections): Don't set exception_section.
14345 * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
14346 (EH_FRAME_THROUGH_COLLECT2): Define.
14347 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
14348 (EH_FRAME_THROUGH_COLLECT2): Define.
14349 (EH_TABLES_CAN_BE_READ_ONLY): Define.
14350 * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
14351 (EH_FRAME_THROUGH_COLLECT2): New.
14352 (ASM_OUTPUT_DWARF_DATAREL): New.
14353 * doc/tm.texi: Regenerate.
14355 2015-09-18 Richard Biener <rguenther@suse.de>
14357 * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
14358 we're in early phase.
14359 (schedule_generic_params_dies_gen): Likewise.
14360 (gen_remaining_tmpl_value_param_die_attribute): Do only as much
14361 work as possible, retaining unhandled cases.
14362 (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
14363 clear out generic_type_instances at the end.
14364 (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
14365 (dwarf2out_early_finish): ... here. Do most of
14366 gen_remaining_tmpl_value_param_die_attribute here.
14368 2015-09-18 Alan Lawrence <alan.lawrence@arm.com>
14370 PR tree-optimization/67283
14371 * tree-sra.c (type_consists_of_records_p): Rename to...
14372 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
14373 (completely_scalarize_record): Rename to...
14374 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
14375 (scalarize_elem): New.
14376 (analyze_all_variable_accesses): Follow renamings.
14378 2015-09-18 Richard Biener <rguenther@suse.de>
14380 * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
14383 2015-09-18 Richard Biener <rguenther@suse.de>
14385 PR tree-optimization/66142
14386 * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
14387 treat MEM[&x] and x the same.
14388 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
14389 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
14390 when we simplified sth.
14391 (vn_reference_maybe_forwprop_address): Likewise.
14392 (valueize_refs_1): When we simplified through
14393 vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
14394 set valueized_anything to true.
14395 (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
14396 one ref kills the other instead of just a offset-based test.
14397 * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
14398 for the operand_equal_p test to compare bases and also compare
14401 2015-09-17 Christian Bruel <christian.bruel@st.com>
14403 * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
14405 2015-09-17 Richard Henderson <rth@redhat.com>
14408 * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
14409 pointers that encode the alignment of the object.
14411 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
14413 PR rtl-optimization/66790
14414 * df-problems.c (LIVE): Amend documentation.
14416 2015-09-17 Richard Sandiford <richard.sandiford@arm.com>
14418 * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
14420 (GTFILES): Replace optabs.c with optabs-libfunc.c.
14421 * genopinit.c (main): Add an include guard to insn-opinit.h.
14422 Protect the rtx_code parts with NUM_RTX_CODE.
14423 * optabs.h: Split parts out to...
14424 * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
14425 * optabs.c: Split parts out to...
14426 * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
14427 * cilk-common.c: Include optabs-query.h rather than optabs.h.
14428 * fold-const.c: Likewise.
14429 * target-globals.c: Likewise.
14430 * tree-if-conv.c: Likewise.
14431 * tree-ssa-forwprop.c: Likewise.
14432 * tree-ssa-loop-prefetch.c: Likewise.
14433 * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
14434 Remove unncessary include files.
14435 * tree-ssa-phiopt.c: Likewise.
14436 * tree-ssa-reassoc.c: Likewise.
14437 * tree-switch-conversion.c: Likewise.
14438 * tree-vect-data-refs.c: Likewise.
14439 * tree-vect-generic.c: Likewise.
14440 * tree-vect-loop.c: Likewise.
14441 * tree-vect-patterns.c: Likewise.
14442 * tree-vect-slp.c: Likewise.
14443 * tree-vect-stmts.c: Likewise.
14444 * tree-vrp.c: Likewise.
14445 * toplev.c: Include optabs-query.h and optabs-libfuncs.h
14446 rather than optabs.h.
14447 * expr.c: Include optabs-tree.h.
14448 * function.c: Likewise.
14450 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
14452 PR middle-end/65958
14453 * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
14454 * config/arm/arm-protos.h (output_probe_stack_range): Declare.
14455 * config/arm/arm.c: Include common/common-target.h.
14456 (use_return_insn): Return 0 if the static chain register was saved
14457 above a non-APCS frame.
14458 (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
14459 (struct scratch_reg): New.
14460 (get_scratch_register_on_entry): New function.
14461 (release_scratch_register_on_entry): Likewise.
14462 (arm_emit_probe_stack_range): Likewise.
14463 (output_probe_stack_range): Likewise.
14464 (arm_expand_prologue): Factor out code dealing with the IP register
14465 for nested function and adjust it for stack checking.
14466 Invoke arm_emit_probe_stack_range if static builtin stack checking
14468 (thumb1_expand_prologue): Sorry out if static builtin stack checking
14470 (arm_expand_epilogue): Add the saved static chain register, if any, to
14471 the amount of pre-pushed registers to pop.
14472 (arm_frame_pointer_required): Return true if static stack checking is
14473 enabled and we want to catch the exception with the EABI unwinder.
14474 * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
14475 (UNSPEC_PROBE_STACK_RANGE): Likewise.
14476 * config/arm/arm.md (probe_stack): New insn.
14477 (probe_stack_range): Likewise.
14479 2015-09-17 Richard Biener <rguenther@suse.de>
14481 * genmatch.c (parser::parse_expr): Improve error message
14482 for mis-placed flags.
14484 2015-09-17 Richard Biener <rguenther@suse.de>
14486 * passes.c (rest_of_decl_compilation): Always call early_global_decl
14487 debug hook when we created a varpool node.
14488 * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
14489 dwarf2out_early_global_decl, when not just add location or
14490 value attributes to existing DIEs.
14492 2015-09-17 James Greenhalgh <james.greenhalgh@arm.com>
14494 * config/aarch64/aarch64.md (copysigndf3): New.
14495 (copysignsf3): Likewise.
14497 2015-09-17 David S. Miller <davem@davemloft.net>
14499 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
14500 * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
14501 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
14502 (HARD_REGNO_CALLER_SAVE_MODE): Define.
14503 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
14504 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
14505 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
14506 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
14507 provide when flag_pic.
14509 2015-09-17 Kaz Kojima <kkojima@gcc.gnu.org>
14511 * config/sh/sh.c (label_ref_list_d_pool): Adjust to
14512 object_allocator change.
14514 2015-09-17 Bin Cheng <bin.cheng@arm.com>
14516 PR tree-optimization/66388
14517 * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
14518 (dump_iv): Dump no_overflow information.
14519 (alloc_iv): Initialize new field for struct iv.
14520 (mark_bivs): Count number of no_overflow bivs.
14521 (find_deriving_biv_for_expr, record_biv_for_address_use): New
14523 (idx_find_step): Call new functions above.
14524 (add_candidate_1, add_candidate): New paramter.
14525 (add_iv_candidate_for_biv): Add sizetype cand for BIV.
14526 (get_computation_aff): Simplify convertion of cand for BIV.
14527 (get_computation_cost_at): Step cand's base if necessary.
14529 2015-09-17 Bin Cheng <bin.cheng@arm.com>
14531 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
14533 (tree_simplify_using_condition): Ditto.
14534 (simplify_using_initial_conditions): Ditto.
14535 (loop_exits_before_overflow): Pass new argument to function
14536 simplify_using_initial_conditions. Remove case for type conversions
14538 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
14540 * tree-scalar-evolution.c (simple_iv): Simplify type conversions
14541 in iv base using loop initial conditions.
14543 2015-09-16 Jeff Law <law@redhat.com>
14545 PR tree-optimization/47679
14546 * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
14547 (free_all_edge_infos): Use it.
14548 (allocate_edge_info): Free preexisting edge info data.
14549 (pass_dominator::execute): Set up initial edge info structures.
14550 (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
14551 thread_across_edge.
14552 * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
14553 If non-null, then push/pop markers appropriately.
14554 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
14555 * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
14556 thread-across_edge.
14558 2015-09-16 James Bowman <james.bowman@ftdichip.com>
14560 * config/ft32/ft32.c: Fix the memory address space predicate.
14562 2015-09-16 Kaz Kojima <kkojima@gcc.gnu.org>
14565 * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
14566 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
14568 2015-09-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
14570 * toplev.h (check_global_declaration): Remove declaration.
14571 * toplev.c (check_global_declaration): Move to ...
14572 * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
14573 (analyze_functions): Update call.
14575 2015-09-16 David S. Miller <davem@davemloft.net>
14577 * lra-constraints.c (simplify_operand_subreg): Do not assume that
14578 lowpart of a SUBREG has offset zero.
14580 2015-09-16 Jeff Law <law@redhat.com>
14582 PR tree-optimization/47679
14583 * tree-ssa-dom.c (enum expr_kind): Moved from here to
14584 tree-ssa-scopedtables.h.
14585 (struct hashable_expr, class expr_hash_elt): Likewise.
14586 (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
14587 Move associated methods into tree-ssa-scopedtables.c.
14588 (avail_expr_hash, initialize_expr_from_cond): Similarly.
14589 (hashable_expr_equal_p, add_expr_commutative): Likewise.
14590 (add_hashable_expr): Likewise.
14591 (record_cond): Delete element directly.
14592 * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
14593 private copy ctor and assignment operator methods.
14594 (expr_elt_hasher): Inline trivial methods.
14595 (initialize_expr_from_cond): Prototype.
14596 * tree-ssa-scopedtables.c: Add necessary includes, functions and
14597 methods that were previously in tree-ssa-dom.c. Improve various
14600 2015-09-16 Paolo Carlini <paolo.carlini@oracle.com>
14602 * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
14604 2015-09-16 Segher Boessenkool <segher@kernel.crashing.org>
14607 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
14610 2015-09-16 Richard Biener <rguenther@suse.de>
14612 PR middle-end/67253
14613 * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
14614 location of possibly shared trees.
14616 2015-09-16 Richard Biener <rguenther@suse.de>
14618 PR middle-end/67271
14619 * fold-const.c (native_encode_expr): Bail out on bogus offsets.
14621 2015-09-16 Eric Botcazou <ebotcazou@adacore.com>
14623 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
14624 offset and size computations instead of HOST_WIDE_INT.
14626 2015-09-16 Richard Biener <rguenther@suse.de>
14628 PR middle-end/67442
14629 * fold-const.c (extract_muldiv_1): Properly extend multiplication
14630 result before builting a tree via wide_int_to_tree.
14632 2015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
14634 * Makefile.in: Add memory-block.cc
14635 (pool_allocator::initialize): Use fixed block size.
14636 (pool_allocator::release): Use memory_block_pool.
14637 (pool_allocator::allocate): Likewise.
14638 * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
14640 * cfg.c (initialize_original_copy_tables): Likewise.
14641 * cselib.c (elt_list_pool, elt_loc_list_pool,
14642 cselib_val_pool): Likewise.
14643 * df-problems.c (df_chain_alloc): Likewise.
14644 * df-scan.c (df_scan_alloc): Likewise.
14645 * dse.c (cse_store_info_pool, rtx_store_info_pool,
14646 read_info_type_pool, insn_info_type_pool, bb_info_pool,
14647 group_info_pool, deferred_change_pool): Likewise.
14648 * et-forest.c (et_nodes, et_occurrences): Likewise.
14649 * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
14650 ipcp_agg_lattice_pool): Likewise.
14651 * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
14652 * ipa-profile.c (histogram_pool): Likewise.
14653 * ipa-prop.c (ipa_refdesc_pool): Likewise.
14654 * ira-build.c (live_range_pool, allocno_pool, object_pool,
14655 initiate_cost_vectors, pref_pool, copy_pool): Likewise.
14656 * ira-color.c (update_cost_record_pool): Likewise.
14657 * lra-lives.c (lra_live_range_pool): Likewise.
14658 * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
14659 * memory-block.cc: New file.
14660 * memory-block.h: New file.
14661 * regcprop.c (queued_debug_insn_change_pool): Use common block size.
14662 * sched-deps.c (sched_deps_init): Likewise.
14663 * sel-sched-ir.c (sched_lists_pool): Likewise.
14664 * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
14665 * tree-sra.c (access_pool): Likewise.
14666 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
14667 * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
14668 * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
14669 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
14670 * tree-ssa-strlen.c (strinfo_pool): Likewise.
14671 * tree-ssa-structalias.c (variable_info_pool): Likewise.
14672 * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
14673 location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
14675 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
14677 * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
14679 (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
14682 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
14684 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
14685 to pass TLS call argument, according to current ABI.
14686 * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
14687 callx0 for TLS call, according to current ABI.
14689 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
14691 * tree-eh.c (lower_try_finally_dup_block): Clear location information
14692 on stack restore statements.
14693 (decide_copy_try_finally): Do not consider a stack restore statement as
14694 coming from sources.
14696 2015-09-15 Uros Bizjak <ubizjak@gmail.com>
14698 * config/alpha/alpha.c (alpha_expand_block_clear): Use
14699 HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
14701 2015-09-15 Jeff Law <law@redhat.com>
14703 PR tree-optimization/47679
14704 * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
14705 methods and private members.
14706 (avail_exprs_stack): Similarly. Change type of global
14707 from a pair of expr_hash_elt_t to the new class.
14708 (expr_elt_hasher::hash): Corresponding changes.
14709 (expr_elt_hasher::equal): Similarly.
14710 (avail_expr_hash): Similarly.
14711 (pass_dominator::execute): Similarly.
14712 (dom_opt_dom_walker::thread_across_edge): Similarly.
14713 (record_cond): Similarly.
14714 (dom_opt_dom_walker::before_dom_children): Similarly.
14715 (dom_opt_dom_walker::after_dom_children): Similarly.
14716 (lookup_avail_expr): Likewise.
14717 (initialize_hash_element): Now a expr_hash_elt constructor.
14718 (initialize_hash_element_from_expr): Similarly.
14719 (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
14720 (free_expr_hash_elt): Call dtor for the element.
14721 (remove_local_expressions_from_table): Now the "pop_to_marker"
14722 method in the available_exprs_stack class.
14723 (avail_expr_stack::record_expr): Method factored out.
14724 (print_expr_hash_elt): Now a method in the expr_hash_elt class.
14726 (hashable_expr_equal_p): Fix formatting.
14728 2015-09-15 David Malcolm <dmalcolm@redhat.com>
14730 * input.h (location_get_source_line): Drop "expanded_location"
14731 param in favor of a file and line number.
14732 * input.c (location_get_source_line): Likewise.
14733 (dump_location_info): Update for change in signature of
14734 location_get_source_line.
14735 * diagnostic.c (diagnostic_print_caret_line): Likewise.
14737 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
14739 * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
14740 Bump to 4KB for SJLJ exceptions.
14741 (STACK_CHECK_PROTECT): Likewise. Bump to 8KB for SJLJ exceptions.
14742 * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
14743 * doc/tm.texi: Regenerate.
14745 2015-09-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14747 * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
14748 of -1 when shifting. Change type of val to unsigned HOST_WIDE_INT.
14751 2015-09-15 Richard Biener <rguenther@suse.de>
14753 PR tree-optimization/67470
14754 * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
14755 structure for PHI hoisting by inserting a forwarder block
14758 2015-09-15 Christian Bruel <christian.bruel@st.com>
14760 * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
14761 (arm_option_print): New function.
14763 2015-09-15 Christian Bruel <christian.bruel@st.com>
14766 * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
14767 * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
14768 Remove flags parameter.
14769 * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
14770 (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
14771 (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
14772 (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
14773 (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
14774 (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
14775 (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
14776 * config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
14778 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
14780 * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
14782 * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
14783 AARCH64_VALID_SIMD_DREG_MODE.
14785 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
14787 * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
14788 aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
14789 (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
14790 (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
14791 aarch64_ld4_lane<mode>): Combine together, making...
14792 (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
14793 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
14794 aarch64_st4_lane<mode>): Combine together, making...
14795 (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
14796 * config/aarch64/iterators.md (nregs): Add comment.
14798 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
14800 * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
14801 Change operand mode from <V_TWO_ELEM> to BLK.
14802 (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
14803 (aarch64_vec_store_lanesoi_lane<mode): Likewise
14804 (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
14805 (aarch64_ld2_lane<mode>): Likewise.
14806 (aarch64_st2_lane<VQ:mode>): Likewise.
14807 * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
14809 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
14811 * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
14812 Change operand mode from <V_FOUR_ELEM> to BLK.
14813 (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
14814 (aarch64_vec_store_lanesxi_lane<mode): Likewise.
14815 (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
14816 (aarch64_ld4_lane<mode>): Likewise.
14817 (aarch64_st4_lane<mode>): Likewise.
14818 * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
14820 2015-09-15 Richard Biener <rguenther@suse.de>
14822 PR middle-end/67563
14823 * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
14824 transfer EH info from old to new stmt.
14825 (replace_call_with_value): Likewise.
14826 (replace_call_with_call_and_fold): Likewise.
14827 (gimple_fold_builtin_memory_op): Likewise.
14828 (gimple_fold_builtin_memset): Likewise.
14829 (gimple_fold_builtin_stpcpy): Likewise.
14830 (gimple_fold_call): Likewise.
14832 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
14834 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
14836 * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
14837 (aarch64_simd_intEI_type_node): Likewise.
14838 (aarch64_simd_builtin_std_type): Remove EImode case.
14839 (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
14840 * config/aarch64/aarch64-modes.def: Remove EImode.
14842 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
14844 * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
14845 Change operand mode from <V_THREE_ELEM> to BLK.
14846 (aarch64_vec_load_lanesci_lane<mode>): Likewise.
14847 (aarch64_vec_store_lanesci_lane<mode>): Likewise.
14848 (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
14849 (aarch64_ld3_lane<mode>): Likewise.
14850 (aarch64_st3_lane<mode>): Likewise.
14851 * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
14853 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
14855 * config/aarch64/aarch64-simd.md
14856 (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
14857 Change all TImode operands to BLKmode.
14858 (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
14859 Change all EImode operands to BLKmode.
14860 (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
14861 Change all OImode operands to BLKmode.
14863 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
14864 and call set_mem_size.
14865 (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
14867 * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
14869 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
14871 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
14873 (aarch64_vec_store_lanesoi_lane<mode>): ...this.
14875 (vec_store_lanesci_lane<mode>): Rename to...
14876 (aarch64_vec_store_lanesci_lane<mode>): ...this.
14878 (vec_store_lanesxi_lane<mode>): Rename to...
14879 (aarch64_vec_store_lanesxi_lane<mode>): ...this.
14881 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
14882 aarch64_st4_lane<mode>): Follow renaming.
14884 2015-09-15 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14886 * config/s390/s390.c (s390_const_operand_ok): Add missing
14889 2015-09-15 Richard Biener <rguenther@suse.de>
14892 * lto-streamer.h (lto_location_cache::current_sysp): Properly
14894 * lto-streamer-out.c (clear_line_info): Likewise.
14896 2015-09-15 Richard Biener <rguenther@suse.de>
14898 * doc/match-and-simplify.texi: Fix wording.
14900 2015-09-15 Bin Cheng <bin.cheng@arm.com>
14902 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
14903 unnecessary type conversion in op1.
14905 2015-09-14 Segher Boessenkool <segher@kernel.crashing.org>
14907 * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
14908 (dup_block_and_redirect): Delete function.
14909 (can_dup_for_shrink_wrapping): New function.
14910 (fix_fake_fallthrough_edge): New function.
14911 (try_shrink_wrapping): Rewrite function.
14912 (convert_to_simple_return): Call fix_fake_fallthrough_edge.
14914 2015-09-14 Rich Felker <dalias@libc.org>
14916 * configure.ac: Change target pattern for sh TLS support
14917 test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
14918 * configure: Regenerate.
14920 2015-09-14 Jeff Law <law@redhat.com>
14922 PR tree-optimization/47679
14923 * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
14924 type rather than void *.
14926 2015-09-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
14929 * diagnostic.c (diagnostic_initialize): Do not set
14930 some_warnings_are_errors.
14931 (diagnostic_finish): Use DK_WERROR count instead.
14932 (diagnostic_report_diagnostic): Do not set
14933 some_warnings_are_errors.
14934 * diagnostic.h (struct diagnostic_context): Remove
14935 some_warnings_are_errors.
14937 2015-09-14 Richard Sandiford <richard.sandiford@arm.com>
14939 * config/sparc/predicates.md (const_all_ones_operand): Use
14940 CONSTM1_RTX to simplify definition.
14942 2015-09-14 Oleg Endo <olegendo@gcc.gnu.org>
14945 * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
14948 2015-09-14 Chung-Lin Tang <cltang@codesourcery.com>
14950 * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
14951 OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
14952 OPT_fshow_column to handled saved option cases.
14953 (append_compiler_options): Do not skip the above added options.
14955 2015-09-14 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14958 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
14959 nopcrelative_literal_loads.
14960 (aarch64_classify_address): Likewise.
14961 (aarch64_constant_pool_reload_icode): Define.
14962 (aarch64_secondary_reload): Handle secondary reloads for
14964 (aarch64_override_options): Handle nopcrelative_literal_loads.
14965 (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
14966 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
14968 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
14969 * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
14970 * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
14972 * doc/invoke.texi (mpc-relative-literal-loads): Document.
14974 2015-09-14 John David Anglin <danglin@gcc.gnu.org>
14976 PR middle-end/67401
14977 * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
14978 sync_compare_and_swap_optab libcall to target_oval.
14980 2015-09-14 Marek Polacek <polacek@redhat.com>
14982 * rtlanal.c (split_double): Cast to unsigned when shifting a negative
14984 * sched-int.h (UNKNOWN_DEP_COST): Likewise.
14986 2015-09-11 Mark Wielaard <mjw@redhat.com>
14989 * toplev.c (check_global_declaration): Check and use
14990 warn_unused_const_variable.
14991 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
14992 (-Wunused-variable): Remove non-constant. For C implies
14993 -Wunused-const-variable.
14994 (-Wunused-const-variable): New.
14996 2015-09-14 Richard Biener <rguenther@suse.de>
14998 * doc/match-and-simplify.texi: Update for changed syntax
14999 of inner ifs and the new switch expression.
15001 2015-09-14 Yuri Rumyantsev <ysrumyan@gmail.com>
15003 * config/i386/haswell.md: New file describing Haswell pipeline.
15004 * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
15005 haswell-like processors.
15006 (ix86_reassociation_width): Increase reassociation width for 64-bit
15007 Haswell processor family.
15008 * config/i386/i386.md: Introduce haswell cpu and include new md file.
15010 2015-09-14 Richard Biener <rguenther@suse.de>
15012 * doc/match-and-simplify.texi: Fixup some formatting issues
15013 and document the 's' flag.
15015 2015-09-13 Olivier Hainque <hainque@adacore.com>
15016 Eric Botcazou <ebotcazou@adacore.com>
15018 * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
15019 gr6 as possible values, defaulting to gr5. Set target_cpu_default2.
15020 * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
15021 (TARGET_CPU_gr5): Likewise.
15022 (TARGET_CPU_gr6): Likewise.
15023 (MULTILIB_DEFAULTS): Likewise.
15024 * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
15025 for mcpu=gr5 and mcpu=gr6.
15026 (MULTILIB_DIRNAMES): Adjust accordingly.
15028 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15030 * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
15031 (mem_ref_p): Likewise.
15032 (outermost_indep_loop): Adjust.
15033 (mem_ref_in_stmt): Likewise.
15034 (determine_max_movement): Likewise.
15035 (mem_ref_alloc): Likewise.
15036 (record_mem_ref_loc): Likewise.
15037 (set_ref_stored_in_loop): Likewise.
15038 (mark_ref_stored): Likewise.
15039 (gather_mem_refs_stmt): Likewise.
15040 (mem_refs_may_alias_p): Likewise.
15041 (for_all_locs_in_loop): Likewise.
15042 (struct rewrite_mem_ref_loc): Likewise.
15043 (rewrite_mem_refs): Likewise.
15044 (struct first_mem_ref_loc_1): Likewise.
15045 (first_mem_ref_loc): Likewise.
15046 (struct sm_set_flag_if_changed): Likewise.
15047 (execute_sm_if_changed_flag_set): Likewise.
15048 (execute_sm): Likewise.
15049 (hoist_memory_references):
15050 (struct ref_always_accessed): Likewise.
15051 (ref_always_accessed_p): Likewise.
15052 (refs_independent_p): Likewise.
15053 (record_dep_loop): Likewise.
15054 (ref_indep_loop_p_1): Likewise.
15055 (ref_indep_loop_p_2): Likewise.
15056 (ref_indep_loop_p): Likewise.
15057 (can_sm_ref_p): Likewise.
15058 (find_refs_for_sm): Likewise.
15059 (tree_ssa_lim_finalize): Likewise.
15061 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15063 * dwarf2out.c (dw_attr_ref): Remove typedef.
15064 (dw_line_info_ref): Likewise.
15065 (pubname_ref): Likewise.
15066 (dw_ranges_ref): Likewise.
15067 (dw_ranges_by_label_ref): Likewise.
15068 (comdat_type_node_ref): Likewise.
15070 (get_AT_low_pc): Likewise.
15071 (get_AT_hi_pc): Likewise.
15072 (get_AT_string): Likewise.
15073 (get_AT_flag): Likewise.
15074 (get_AT_unsigned): Likewise.
15075 (get_AT_ref): Likewise.
15076 (get_AT_file): Likewise.
15077 (remove_AT): Likewise.
15078 (print_die): Likewise.
15079 (check_die): Likewise.
15080 (die_checksum): Likewise.
15081 (attr_checksum_ordered): Likewise.
15082 (struct checksum_attributes): Likewise.
15083 (collect_checksum_attributes): Likewise.
15084 (die_checksum_ordered): Likewise.
15085 (same_die_p): Likewise.
15086 (is_declaration_die): Likewise.
15087 (clone_die): Likewise.
15088 (clone_as_declaration): Likewise.
15089 (copy_declaration_context): Likewise.
15090 (break_out_comdat_types): Likewise.
15091 (copy_decls_walk): Likewise.
15092 (output_location_lists): Likewise.
15093 (external_ref_hasher::hash): Likewise.
15094 (optimize_external_refs_1): Likewise.
15095 (build_abbrev_table): Likewise.
15096 (size_of_die): Likewise.
15097 (unmark_all_dies): Likewise.
15098 (size_of_pubnames): Likewise.
15099 (output_die_abbrevs): Likewise.
15100 (output_die): Likewise.
15101 (output_pubnames): Likewise.
15102 (add_ranges_num): Likewise.
15103 (add_ranges_by_labels): Likewise.
15104 (add_high_low_attributes): Likewise.
15105 (gen_producer_string): Likewise.
15106 (dwarf2out_set_name): Likewise.
15107 (new_line_info_table): Likewise.
15108 (prune_unused_types_walk_attribs): Likewise.
15109 (prune_unused_types_update_strings): Likewise.
15110 (prune_unused_types): Likewise.
15111 (resolve_addr): Likewise.
15112 (optimize_location_lists_1): Likewise.
15113 (index_location_lists): Likewise.
15114 (dwarf2out_finish): Likewise.
15116 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15118 * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
15120 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15122 * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
15123 (dump_asserts_for): Adjust.
15124 (register_new_assert_for): Likewise.
15125 (process_assert_insertions): Likewise.
15126 (insert_range_assertions): Likewise.
15128 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15130 * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
15131 and remove typedef.
15132 (new_temp_expr_table): Adjust.
15133 (free_temp_expr_table): Likewise.
15134 (version_to_be_replaced_p): Likewise.
15135 (make_dependent_on_partition): Likewise.
15136 (add_to_partition_kill_list): Likewise.
15137 (remove_from_partition_kill_list): Likewise.
15138 (add_dependence): Likewise.
15139 (finished_with_expr): Likewise.
15140 (process_replaceable): Likewise.
15141 (kill_expr): Likewise.
15142 (kill_virtual_exprs): Likewise.
15143 (mark_replaceable): Likewise.
15144 (find_replaceable_in_bb): Likewise.
15145 (find_replaceable_exprs): Likewise.
15146 (debug_ter): Likewise.
15148 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15150 * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
15151 (struct btr_user): Rename from btr_user_s.
15152 (struct btr_def): Rename from btr_def_s.
15153 (find_btr_def_group): Adjust.
15154 (add_btr_def): Likewise.
15155 (new_btr_user): Likewise.
15156 (note_other_use_this_block): Likewise.
15157 (compute_defs_uses_and_gen): Likewise.
15158 (link_btr_uses): Likewise.
15159 (build_btr_def_use_webs): Likewise.
15160 (block_at_edge_of_live_range_p): Likewise.
15161 (btr_def_live_range): Likewise.
15162 (combine_btr_defs): Likewise.
15163 (move_btr_def): Likewise.
15164 (migrate_btr_def): Likewise.
15165 (migrate_btr_defs): Likewise.
15167 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15169 * var-tracking.c (shared_hash_def): Rename to shared_hash.
15170 (shared_hash): Remove typedef.
15171 (struct dataflow_set): Adjust.
15172 (shared_hash_unshare): Likewise.
15173 (dataflow_set_merge): Likewise.
15174 (vt_initialize): Likewise.
15175 (vt_finalize): Likewise.
15177 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15179 * var-tracking.c (struct location_chain): Rename from
15180 location_chain_def.
15181 (struct variable_part): Adjust.
15182 (variable_htab_free): Likewise.
15183 (unshare_variable): Likewise.
15184 (get_init_value): Likewise.
15185 (get_addr_from_local_cache): Likewise.
15186 (drop_overlapping_mem_locs): Likewise.
15187 (val_reset): Likewise.
15188 (struct variable_union_info): Likewise.
15189 (variable_union): Likewise.
15190 (find_loc_in_1pdv): Likewise.
15191 (insert_into_intersection): Likewise.
15192 (intersect_loc_chains): Likewise.
15193 (canonicalize_loc_order_check): Likewise.
15194 (canonicalize_values_mark): Likewise.
15195 (canonicalize_values_star): Likewise.
15196 (canonicalize_vars_star): Likewise.
15197 (variable_merge_over_cur): Likewise.
15198 (remove_duplicate_values): Likewise.
15199 (variable_post_merge_new_vals): Likewise.
15200 (variable_post_merge_perm_vals): Likewise.
15201 (find_mem_expr_in_1pdv): Likewise.
15202 (dataflow_set_preserve_mem_locs): Likewise.
15203 (dataflow_set_remove_mem_locs): Likewise.
15204 (variable_part_different_p): Likewise.
15205 (onepart_variable_different_p): Likewise.
15206 (find_src_set_src): Likewise.
15207 (dump_var): Likewise.
15208 (set_slot_part): Likewise.
15209 (clobber_slot_part): Likewise.
15210 (delete_slot_part): Likewise.
15211 (vt_expand_var_loc_chain): Likewise.
15212 (emit_note_insn_var_location): Likewise.
15213 (vt_finalize): Likewise.
15215 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15217 * dse.c (store_info_t): Remove typedef.
15218 (group_info_t): Likewise.
15219 (const_group_info_t): Likewise.
15220 (deferred_change_t): Likewise.
15221 (get_group_info): Adjust.
15222 (free_store_info): Likewise.
15223 (canon_address): Likewise.
15224 (clear_rhs_from_active_local_stores): Likewise.
15225 (record_store): Likewise.
15226 (replace_read): Likewise.
15227 (check_mem_read_rtx): Likewise.
15228 (scan_insn): Likewise.
15229 (remove_useless_values): Likewise.
15230 (dse_step1): Likewise.
15231 (dse_step2_init): Likewise.
15232 (dse_step2_nospill): Likewise.
15233 (scan_stores_nospill): Likewise.
15234 (scan_reads_nospill): Likewise.
15235 (dse_step3_exit_block_scan): Likewise.
15236 (dse_step3): Likewise.
15237 (dse_step5_nospill): Likewise.
15238 (dse_step6): Likewise.
15240 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15242 * alias.c (alias_set_entry_d): Rename to alias_set_entry.
15243 (alias_set_entry): Remove typedef.
15244 (alias_set_subset_of): Adjust.
15245 (alias_sets_conflict_p): Likewise.
15246 (init_alias_set_entry): Likewise.
15247 (get_alias_set): Likewise.
15248 (new_alias_set): Likewise.
15249 (record_alias_subset): Likewise.
15251 2015-09-13 Gerald Pfeifer <gerald@pfeifer.com>
15253 * doc/install.texi (Downloading the source): Mark up
15254 contrib/download_prerequisites properly and drop leading "./".
15256 2015-09-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15258 * config/arc/arc.h: Remove define of STRUCT_VALUE.
15259 * config/lm32/lm32.h: Likewise.
15260 * config/mep/mep.h: Likewise.
15261 * config/visium/visium.h: Likewise.
15262 * system.h: Poison STRUCT_VALUE macro.
15264 2015-09-12 John David Anglin <danglin@gcc.gnu.org>
15266 * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
15267 CONSTANT_P operands.
15269 2015-09-11 David S. Miller <davem@davemloft.net>
15271 * config/sparc/constraints.md: Make "U" constraint a real register
15273 * config/sparc/sparc.c (TARGET_LRA_P): Define.
15274 (D_MODES, DF_MODES): Add missing cast.
15275 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
15276 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
15277 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
15279 * config/sparc/sparc.h (PROMOTE_MODE): Define.
15280 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
15281 provide these insn when flag_pic.
15283 2015-09-11 Jeff Law <law@redhat.com>
15285 PR tree-optimization/47679
15286 * tree-ssa-dom.c (struct cond_equivalence): Update comment.
15287 * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
15288 member with m_. Update inline member functions as necessary. Add
15290 * tree-ssa-scopedtables.c: Update const_and_copies's member
15291 functions to use m_ prefix to access the stack.
15293 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
15295 * graphite-optimize-isl.c (disable_tiling): Remove.
15296 (get_schedule_for_band): Do not use disable_tiling.
15297 (get_prevector_map): Delete function.
15298 (enable_polly_vector): Remove.
15299 (get_schedule_for_band_list): Remove dead code.
15301 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
15303 * graphite-optimize-isl.c (get_tile_map): Refactor.
15304 (get_schedule_for_band): Same.
15305 (getScheduleForBand): Same.
15306 (get_prevector_map): Same.
15307 (get_schedule_for_band_list): Same.
15308 (get_schedule_map): Same.
15309 (get_single_map): Same.
15310 (apply_schedule_map_to_scop): Same.
15311 (optimize_isl): Same.
15313 2015-09-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15316 * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
15318 * config/aarch64/iterators.md (GPF_TF_F16): New.
15321 2015-09-10 Nathan Sidwell <nathan@acm.org>
15323 * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
15324 (nvptx_reorg): Adjust comments.
15326 2015-09-15 John David Anglin <danglin@gcc.gnu.org>
15329 * configure.ac: Check if setenv and unsetenv are declared.
15330 * configure: Rebuild.
15331 * config.in: Rebuild.
15332 * system.h: Declare setenv and unsetenv if not declared.
15334 2015-09-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15336 * config/rs6000/rs6000.c (swap_web_entry): Update preceding
15337 commentary to simplify permute mask adjustment equation.
15338 (special_handling_values): Add SH_VPERM.
15339 (const_load_sequence_p): New function.
15340 (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
15341 the mask loaded from the constant pool.
15342 (adjust_vperm): New function.
15343 (handle_special_swappables): Call adjust_vperm.
15344 (dump_swap_insn_table): Handle SH_VPERM.
15346 2015-09-10 H.J. Lu <hongjiu.lu@intel.com>
15348 * shrink-wrap.c (requires_stack_frame_p): Remove static.
15349 * shrink-wrap.h (requires_stack_frame_p): Put back.
15351 2015-09-10 Richard Sandiford <richard.sandiford@arm.com>
15353 * reload1.c (elimination_costs_in_insn): Locally turn
15354 -Wmaybe-uninitialized into a warning.
15356 2015-09-10 Segher Boessenkool <segher@kernel.crashing.org>
15358 * shrink-wrap.c (requires_stack_frame_p): Make static.
15359 (prepare_shrink_wrap): Likewise.
15360 (dup_block_and_redirect): Likewise.
15361 * shrink-wrap.h: Remove declarations of those functions.
15363 2015-09-10 Mark Wielaard <mjw@redhat.com>
15365 * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
15367 2015-09-10 Oleg Endo <olegendo@gcc.gnu.org>
15370 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
15371 missing simplify_gen_subreg.
15373 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15375 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
15376 the vector element is bigger than 64 bit.
15378 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15380 * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
15381 ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
15383 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15385 * config/s390/s390.c: Add V1TImode to constant pool modes.
15387 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15390 * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
15391 predicate. Set predicable_short_it attr to "no".
15393 2015-09-10 Jiong Wang <jiong.wang@arm.com>
15395 PR rtl-optimization/67421
15396 * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
15397 left wide shift tranformation.
15399 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
15401 * common/config/arc/arc-common.c: Remove references to A5.
15402 * config/arc/arc-opts.h: Likewise.
15403 * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
15404 * config/arc/arc.opt, config/arc/constraints.md: Likewise.
15405 * config/arc/t-arc-newlib: Likewise.
15407 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
15409 * config/arc/arc.md (length): Fix attribute length for conditional
15410 executed instructions with long immediate.
15412 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15414 * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
15415 type for second alternative.
15417 2015-09-10 Markus Trippelsdorf <markus@trippelsdorf.de>
15419 * doc/invoke.texi (Downloading GCC): Mention
15420 contrib/download_prerequisites script.
15422 2015-09-10 Jakub Jelinek <jakub@redhat.com>
15425 * gimplify.c (gimplify_omp_for): If inner stmt is not found
15426 for combined loop, assert seen_error () and return GS_ERROR.
15428 PR middle-end/67521
15429 * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
15430 if decl is already in outer->variables.
15432 PR middle-end/67517
15433 * gimplify.c (gimplify_scan_omp_clauses): Instead of
15434 asserting that decl is not specified in octx->variables,
15435 break out of the loop if it is.
15438 * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
15439 iterator is not explicitly determined, but is defined inside
15440 of the combined workshare region, handle it like if it has
15441 DECL_EXPR in OMP_FOR_PRE_BODY.
15443 2015-09-09 Nathan Sidwell <nathan@acm.org>
15445 * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
15446 (*cmp<mode>): Add assembler spacing.
15447 (setcc_int<mode>, set_cc_float<mode>): Likewise.
15448 * config/nvptx/nvptx.c (nvptx_option_override): Override debug
15450 (write_func_decl_from_insn): Refactor argument loops & comma emission.
15451 (nvptx_expand_call): Likewise.
15452 (nvptx_output_call_insn): Likewise.
15453 (nvptx_reorg_subreg): Add spacing.
15455 2015-09-09 Marek Polacek <polacek@redhat.com>
15457 PR middle-end/67512
15458 * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
15461 2015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
15464 * doc/invoke.texi ([Wsubobject-linkage]): Document.
15466 2015-09-09 Tom de Vries <tom@codesourcery.com>
15468 * params-list.h: Add missing copyright notice.
15470 2015-09-09 Nathan Sidwell <nathan@acm.org>
15472 * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
15473 sel_truesi, not andsi.
15475 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15477 * config/arm/arm.md (*subsi3_compare0): Rename to...
15478 (subsi3_compare0): ... This.
15479 (modsi3): New define_expand.
15480 * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
15481 when operand is power of 2.
15483 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15485 * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
15486 (*neg<mode>2_compare0): Rename to...
15487 (neg<mode>2_compare0): ... This.
15488 * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
15489 Move check for speed inside the if-then-elses. Reflect
15490 CSNEG sequence in MOD by power of 2 case.
15492 2015-09-09 Alan Modra <amodra@gmail.com>
15495 * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
15496 reload replacement for PRE_MODIFY address reg.
15498 2015-09-09 Sebastian Pop <s.pop@samsung.com>
15500 PR tree-optimization/53852
15501 * config.in: Regenerate.
15502 * configure: Regenerate.
15503 * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
15504 * graphite-optimize-isl.c (optimize_isl): Stop computation when
15505 PARAM_MAX_ISL_OPERATIONS is reached.
15506 * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
15507 * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
15508 result equal to isl_stat_ok as the status now can be isl_error_quota.
15509 (subtract_commutative_associative_deps): Same.
15510 (compute_deps): Same.
15512 2015-09-08 Aditya Kumar <hiraditya@msn.com>
15513 Sebastian Pop <s.pop@samsung.com>
15515 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
15516 Return the parameter if it was saved in corresponding
15517 parameter_rename_map of the region.
15518 (copy_def): Copy def from sese region to the newly created region.
15519 (copy_internal_parameters): Copy all the internal parameters defined
15520 within a region to the newly created region.
15521 (graphite_regenerate_ast_isl): Copy parameters to the new region before
15522 translating isl to gimple.
15523 * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
15524 the loop-nest does not have any data-references.
15525 (build_graphite_scops): Create a scop only when there is at least one
15527 (contains_only_close_phi_nodes): Deleted.
15528 (print_graphite_scop_statistics): Deleted
15529 (print_graphite_statistics): Deleted
15530 (limit_scops): Deleted.
15531 (build_scops): Removed call to limit_scops.
15532 * sese.c (new_sese): Construct.
15533 (free_sese): Destruct.
15534 (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
15536 (set_rename): Pass sese region so that parameters inside the region can
15537 be added to its parameter_rename_map.
15538 (rename_uses): Pass sese region.
15539 (graphite_copy_stmts_from_block): Do not copy parameters that have been
15540 generated in the header of the scop. For each SSA_NAME in the
15541 parameter_rename_map rename its usage.
15542 (invariant_in_sese_p_rec): Return false if tree t is defined outside
15544 (scalar_evolution_in_region): If the tree t is invariant just return t.
15545 * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
15546 struct sese to keep track of all the parameters which need renaming.
15547 * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
15549 * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
15551 2015-09-08 Tom de Vries <tom@codesourcery.com>
15553 * Makefile.in (generated_files): Add params.list.
15554 (params.list, s-params.list): Add rule.
15555 * params.h (enum compiler_param): Include params-list.h. Move define
15556 DEFPARAM, include params.def and undef DEFPARAM ...
15557 * params-list.h: ... here. New file.
15559 2015-09-08 David Malcolm <dmalcolm@redhat.com>
15561 * pretty-print.h (printer_fn): Fix typo in comment.
15563 2015-09-07 Jeff Law <law@redhat.com>
15565 * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
15567 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
15569 * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
15570 (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
15571 (arm_neon_fp16_hw): New.
15573 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
15575 * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
15576 UNITS_PER_WORD >= 4.
15578 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
15580 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
15581 aarch64_simd_vec_unpacks_hi_<mode>): New insn.
15582 (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
15583 (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
15584 (aarch64_float_extend_lo_v2df): Rename to...
15585 (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
15587 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
15588 (float_extend_lo): Add v4sf.
15590 * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
15591 * config/aarch64/iterators.md (VQ_HSF): New iterator.
15592 (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
15593 (Vwide): New mode_attr.
15595 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
15597 * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
15598 aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
15599 aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
15600 vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
15601 V4HF and V8HF variants to iterator.
15603 * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
15605 * config/aarch64/iterators.md (VDQF_F16): New.
15606 (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
15608 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
15610 * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
15611 vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
15612 vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
15613 vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
15614 vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
15615 vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
15616 vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
15617 vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
15618 vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
15619 vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
15620 vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
15621 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
15622 vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
15623 vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
15624 vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
15625 vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
15626 vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
15627 vld1q_dup_f16): New.
15629 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
15631 * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
15632 Reparameterize to...
15633 (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
15634 (aarch64_float_truncate_hi_v4sf): Reparameterize to...
15635 (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
15637 * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
15639 (float_truncate_lo_): Use BUILTIN_VDF iterator.
15641 * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
15643 * config/aarch64/iterators.md (VDF, Vdtype): New.
15644 (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
15646 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
15648 * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
15649 * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
15650 (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
15651 Add __builtin_aarch64_simd_hf.
15652 * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
15653 float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
15654 vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
15655 vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
15656 vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
15657 vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
15658 vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
15659 vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
15660 vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
15662 * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
15663 V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
15664 (VDC, Vdbl): Add V4HF.
15666 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
15668 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
15669 V4HFmode and V8HFmode.
15670 (aarch64_split_simd_move): Add case for V8HFmode.
15671 * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
15672 (aarch64_simd_builtin_std_type): Handle HFmode.
15673 (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
15675 * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
15676 aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
15677 (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
15679 * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
15682 * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
15683 * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
15685 (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
15686 vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
15687 vst1q_lane_f16): New.
15688 * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
15689 (VALLDI_F16, VALL_F16): New.
15690 (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
15691 Add cases for V4HF and V8HF.
15692 (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
15694 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
15696 * config/arm/arm-builtins.c (VAR11, VAR12): New.
15697 * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
15698 vld4_dup): Add v4hf variant.
15699 (vget_high, vget_low): Add v8hf variant.
15700 (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
15701 vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
15702 v4hf and v8hf variants.
15704 * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
15706 (V_DOUBLE): Add case for V4HF.
15708 (V_HALF): Add case for V8HF.
15709 (VDQX): Add V4HF, V8HF.
15710 (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
15711 V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
15713 * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
15714 neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
15715 vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
15716 neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
15717 neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
15718 neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
15719 vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
15720 neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
15721 neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
15723 (neon_vcreate, neon_vreinterpretv8qi<mode>,
15724 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
15725 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
15726 Change VDX to VD_RE.
15728 (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
15729 neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
15730 Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
15732 * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
15733 float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
15734 vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
15735 vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
15736 vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
15737 vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
15738 vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
15739 vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
15740 vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
15742 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
15744 * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
15745 vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
15746 vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
15747 vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
15748 vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
15749 vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
15750 vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
15751 vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
15752 vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
15753 vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
15756 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
15758 * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
15760 * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
15762 * config/arm/arm-builtins.c (v8hf_UP): New.
15763 (arm_init_simd_builtin_types): Initialise Float16x8_t.
15765 * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
15767 * config/arm/arm_neon.h (float16x8_t): New typedef.
15769 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
15771 * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
15772 vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
15773 vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
15774 vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
15775 vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
15776 vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
15777 vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
15778 vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
15779 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
15780 vreinterpret_u16_f16, vreinterpret_u32_f16): New.
15782 2015-09-07 Ilya Verbin <ilya.verbin@intel.com>
15784 * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
15785 non-alphanumeric characters in the symbol name.
15787 2015-09-07 Marek Polacek <polacek@redhat.com>
15789 PR inline-asm/67448
15790 * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
15793 2015-09-07 Marek Polacek <polacek@redhat.com>
15795 * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
15797 2015-09-04 Paolo Bonzini <bonzini@gnu.org>
15799 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
15802 2015-09-04 Jakub Jelinek <jakub@redhat.com>
15804 PR middle-end/67452
15805 * tree-ssa-live.c: Include cfgloop.h.
15806 (remove_unused_locals): Clear loop->simduid if simduid is about
15807 to be removed from cfun->local_decls.
15809 2015-09-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
15812 * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
15815 2015-09-04 Tom de Vries <tom@codesourcery.com>
15817 * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
15819 2015-09-04 Jeff Law <law@redhat.com>
15821 * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
15822 unnecessary constructor. It's now trivial and implemented inside...
15823 * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
15824 constructor. Add comments to various methods. Remove unused
15826 * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
15827 * tree-vrp.c (identify_jump_threads): Likewise.
15828 * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
15829 indentation issues.
15830 (thread_across_edge): Similarly.
15831 (record_temporary_equivalences_from_stmts_at_dest): Remove unused
15832 arguments in constructor call.
15834 2015-09-04 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
15836 * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
15837 temp path contains a '-'.
15839 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
15840 Petr Murzin <petr.murzin@intel.com>
15841 Kirill Yukhin <kirill.yukhin@intel.com>
15843 * config/i386/i386-builtin-types.def
15844 (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
15845 (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
15846 (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
15847 (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
15848 * config/i386/i386.c
15849 (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
15850 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
15851 IX86_BUILTIN_SCATTERALTDIV16SI.
15852 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
15853 __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
15854 __builtin_ia32_scatteraltdiv8si.
15855 (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
15856 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
15857 IX86_BUILTIN_SCATTERALTDIV16SI.
15858 (ix86_vectorize_builtin_scatter): New.
15859 (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
15860 ix86_vectorize_builtin_scatter.
15862 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
15863 Petr Murzin <petr.murzin@intel.com>
15864 Kirill Yukhin <kirill.yukhin@intel.com>
15866 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
15867 * doc/tm.texi: Regenerate.
15868 * target.def: Add scatter builtin.
15869 * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
15870 for loads/stores in case of gather/scatter accordingly.
15871 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
15872 STMT_VINFO_GATHER_P(S).
15873 (vect_check_gather): Rename to ...
15874 (vect_check_gather_scatter): this.
15875 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
15876 STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
15877 (vect_check_gather_scatter): Use it instead of vect_check_gather.
15878 (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
15879 variable and new checkings for it accordingly.
15880 * tree-vect-stmts.c
15881 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
15882 STMT_VINFO_GATHER_P(S).
15883 (vect_check_gather_scatter): Use it instead of vect_check_gather.
15884 (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
15886 2015-09-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
15888 * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
15890 (mulv16qi3): New define_expand.
15892 2015-09-03 Martin Sebor <msebor@redhat.com>
15895 * doc/extend.texi (Other Builtins): Document when the address
15896 of a built-in function can be taken.
15898 2015-09-03 Richard Biener <rguenther@suse.de>
15900 * dwarf2out.c (flush_limbo_die_list): Split out from ...
15901 (dwarf2out_early_finish): ... here.
15902 (dwarf2out_finish): Do not call dwarf2out_early_finish but
15903 flush_limbo_die_list. Assert we have no deferred asm names.
15905 2015-09-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15907 * optabs.c (expand_binop): Don't create a broadcast vector with a
15908 source element wider than the inner mode.
15910 2015-09-03 Richard Biener <rguenther@suse.de>
15912 * varasm.c (output_constant): Use fold_convert instead of
15915 2015-09-03 Tom de Vries <tom@codesourcery.com>
15917 PR tree-optimization/65637
15918 * omp-low.c (expand_omp_for_static_chunk): Handle case that
15919 fin_bb has 2 predecessors.
15921 2015-09-03 Tom de Vries <tom@codesourcery.com>
15923 PR tree-optimization/65637
15924 * omp-low.c (find_phi_with_arg_on_edge): New function.
15925 (expand_omp_for_static_chunk): Fix inner loop phi.
15927 2015-09-03 Tom de Vries <tom@codesourcery.com>
15929 PR tree-optimization/65637
15930 * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
15933 2015-09-03 Tom de Vries <tom@codesourcery.com>
15935 * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
15937 2015-09-03 Tom de Vries <tom@codesourcery.com>
15939 * doc/invoke.texi (parloops-chunk-size): Add item.
15940 * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
15941 * tree-parloops.c: Include params.h.
15942 (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
15943 param parloops-chunk-size is used.
15945 2015-09-03 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
15947 PR middle-end/67351
15948 * fold-const.c (fold_binary_loc) : Move
15949 Transform (x >> c) << c into x & (-1<<c) or
15950 transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
15951 types using simplify and match.
15952 * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
15953 (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
15955 2015-09-03 Richard Biener <rguenther@suse.de>
15958 * tree-ssa-structalias.c (ctor_for_analysis): New function.
15959 (create_variable_info_for_1): Use ctor_for_analysis instead
15960 of get_constructor.
15961 (create_variable_info_for): Likewise.
15963 2015-09-02 Charles Baylis <charles.baylis@linaro.org>
15966 * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
15967 in new callgraph edge.
15969 2015-09-02 Christophe Lyon <christophe.lyon@linaro.org>
15974 * config/aarch64/aarch64-simd.md
15975 (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
15976 gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
15977 (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
15978 gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
15980 2015-09-02 Alan Modra <amodra@gmail.com>
15982 * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
15983 * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
15984 (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
15986 2015-09-02 Alan Modra <amodra@gmail.com>
15989 * config/rs6000/predicates.md (current_file_function_operand): Don't
15990 return true for weak symbols.
15991 * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
15993 2015-09-01 Matthew Fortune <matthew.fortune@imgtec.com>
15994 Andrew Bennett <andrew.bennett@imgtec.com>
15996 * config/mips/mips-opts.h (mips_cb_setting): New enum.
15997 * config/mips/mips-protos.h: Add definitions for
15998 mips_output_jump and mips_output_equal_conditional_branch
15999 * config/mips/mips.c (MIPS_JR): Change to support the
16001 (mips_emit_compare): Add support for the MIPS R6 conditional
16003 (mips_process_sync_loop): Likewise.
16004 (mips_output_order_conditional_branch): Likewise.
16005 (mips16_build_call_stub): Change MIPS_CALL to
16007 (mips_print_operand_punctuation): Update 's' case to only
16008 apply to micromips r2.
16009 (mips_adjust_insn_length): Add support for forbidden slot
16011 (mips_avoid_hazard): Likewise.
16012 (mips_reorg_process_insns): Likewise.
16013 (mips_output_jump): New function.
16014 (mips_output_equal_conditional_branch): Likewise.
16015 (mips_output_conditional_branch): Use jrc/bc if compact
16016 branch support is enabled. Ensure the forbidden slots
16017 between the two branch instructions is filled with a nop.
16018 (mips_option_override): Add support to process the compact
16019 branch option and set the correct defaults. Prevent
16020 non-explict relocs being using for MIPS R6.
16021 (mips_trampoline_init): Add compact branch support.
16022 (mips_mult_zero_zero_cost): Allow zero initialisation of
16023 accumulators with TARGET_DSP.
16024 * config/mips/mips.h (TARGET_CB_NEVER): New define.
16025 (TARGET_CB_MAYBE): New define.
16026 (TARGET_CB_ALWAYS): New define.
16027 (ISA_HAS_DELAY_SLOTS): New define.
16028 (ISA_HAS_COMPACT_BRANCHES): New define.
16029 (ISA_HAS_JRC): New define.
16030 (MIPS_BRANCH_C): New define.
16031 (MIPS_CALL): Removed.
16032 (MICROMIPS_J): Removed.
16033 * config/mips/mips.md (compact_form): New attr.
16034 (hazard): Add support for forbidden slots.
16035 (define_delay): Add support for compact branches.
16036 (*branch_order<mode>): Likewise.
16037 (*branch_order<mode>_inverted): Likewise.
16038 (*branch_equality<mode>): Likewise.
16039 (*branch_equality<mode>_inverted): Likewise.
16040 (*jump_absolute): Likewise.
16041 (*jump_pic): Likewise.
16042 (indirect_jump): Use mips_output_jump to produce assembly output.
16043 (tablejump_<mode>"): Likewise.
16044 (*<optab>"): Likewise.
16045 (<optab>_internal): Likewise.
16046 (sibcall_internal): Likewise.
16047 (sibcall_value_internal): Likewise.
16048 (sibcall_value_multiple_internal): Likewise.
16049 (call_internal): Likewise.
16050 (call_split): Likewise.
16051 (call_internal_direct): Likewise.
16052 (call_direct_split): Likewise.
16053 (call_value_internal): Likewise.
16054 (call_value_split): Likewise.
16055 (call_value_internal_direct): Likewise.
16056 (call_value_direct_split): Likewise.
16057 (call_value_multiple_internal): Likewise.
16058 (call_value_multiple_split): Likewise.
16059 (mips_get_fcsr_mips16_<mode>): Likewise.
16060 (mips_set_fcsr_mips16_<mode>): Likewise.
16061 (tls_get_tp_mips16_<mode>): Likewise.
16062 * config/mips/mips.opt: Add -mcompact-branches option.
16063 * config/mips/predicates.md (order_operator): Ensure the
16064 conditional compact branches are only used if the ISA them.
16065 * doc/invoke.texi: Document -mcompact-branches option.
16067 2015-09-01 Vladimir Makarov <vmakarov@redhat.com>
16070 * lra-lives.c (process_bb_lives): Process move pseudos with the
16071 same value for copies and preferences
16072 * lra-constraints.c (match_reload): Create match reload pseudo
16073 with the same value from single dying input pseudo.
16075 2015-09-01 Ilya Enkovich <enkovich.gnu@gmail.com>
16078 * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
16080 2015-09-01 Aldy Hernandez <aldyh@redhat.com>
16082 * trans-mem.c: Add contributed-by.
16083 * trans-mem.h: Same.
16085 2015-09-01 Richard Biener <rguenther@suse.de>
16087 * expr.c (expand_expr_real_1): For expanding TERed defs
16088 set the current location to that of the def if not UNKNOWN.
16090 2015-09-01 David Sherwood <david.sherwood@arm.com>
16092 * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
16094 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16096 * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
16097 then_cost, else_cost fields. Change branch_cost field to unsigned int.
16098 (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
16099 Include rtl-iter.h.
16100 (noce_simple_bbs): New function.
16101 (noce_try_move): Bail if basic blocks are not simple.
16102 (noce_try_store_flag): Likewise.
16103 (noce_try_store_flag_constants): Likewise.
16104 (noce_try_addcc): Likewise.
16105 (noce_try_store_flag_mask): Likewise.
16106 (noce_try_cmove): Likewise.
16107 (noce_try_minmax): Likewise.
16108 (noce_try_abs): Likewise.
16109 (noce_try_sign_mask): Likewise.
16110 (noce_try_bitop): Likewise.
16111 (bbs_ok_for_cmove_arith): New function.
16112 (noce_emit_all_but_last): Likewise.
16113 (noce_emit_insn): Likewise.
16114 (noce_emit_bb): Likewise.
16115 (noce_try_cmove_arith): Handle non-simple basic blocks.
16116 (insn_valid_noce_process_p): New function.
16117 (contains_mem_rtx_p): Likewise.
16118 (bb_valid_for_noce_process_p): Likewise.
16119 (noce_process_if_block): Allow non-simple basic blocks
16122 2015-08-31 Alan Lawrence <alan.lawrence@arm.com>
16124 * tree-ssa-dom.c (record_equivalences_from_phis,
16125 record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
16126 (lookup_avail_expr): Likewise, and remove comment and unused temp.
16128 2015-09-01 Nick Clifton <nickc@redhat.com>
16130 * config/msp430/msp430.opt (mcpu): Fix typo.
16132 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16134 * config/aarch64/aarch64.c (aarch64_set_current_function):
16135 Re-layout any vector parameters have non-simd layout.
16136 * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
16138 (aarch64_simd_expand_args): Delete call to the above.
16140 2015-08-31 Mike Frysinger <vapier@gentoo.org>
16142 * doc/invoke.texi (asan-stack): Add space before option.
16144 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
16146 * tree.h (zerop): New function.
16147 * tree.c (zerop): Likewise.
16148 (element_precision): Handle expressions.
16149 * match.pd (define_predicates): Add zerop.
16150 (x <= +Inf): Fix comment.
16151 (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
16152 * fold-const.c (fold_binary_loc): ... here. Remove.
16154 2015-08-31 Richard Biener <rguenther@suse.de>
16156 PR middle-end/67381
16157 * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
16159 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
16161 * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
16162 (CEXPI): New operator list.
16163 (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
16164 imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
16166 * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
16168 2015-08-31 Tom de Vries <tom@codesourcery.com>
16170 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
16171 (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
16173 (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
16174 (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
16175 (rewrite_into_loop_closed_ssa): ... here.
16176 (replace_uses_in_dominated_bbs): Remove function.
16177 (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
16178 rewrite_into_loop_closed_ssa_1.
16180 2015-08-31 Michael Matz <matz@suse.de>
16182 * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
16183 enter entry and exit blocks for reverse post order.
16185 2015-08-31 Richard Biener <rguenther@suse.de>
16187 * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
16188 (lto_location_cache::current_sysp): Likewise.
16189 (output_block::current_sysp): Likewise.
16190 * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
16191 (lto_location_cache::apply_location_cache): Properly record
16192 system header locations.
16193 (lto_location_cache::input_location): Input whether a file
16194 is a system header.
16195 * lto-streamer-out.c (lto_output_location): Stream whether a file
16196 is a system header.
16198 2015-08-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16201 * gcc.c (env_manager::xput): Replace strndup by xstrndup.
16203 2015-08-31 Tom de Vries <tom@codesourcery.com>
16205 * tree-ssa-loop-manip.c (find_uses_to_rename_use)
16206 (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
16207 Improve function header comments.
16209 2015-08-30 Michael Collison <michael.collison@linaro.org>
16212 * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
16215 2015-08-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16217 * config/rs6000/rs6000.c (swap_web_entry): Enlarge
16218 special_handling bitfield.
16219 (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
16220 (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
16221 that represents a general xxpermdi.
16222 (insn_is_swappable_p): Add handling for vec_concat of two
16223 doublewords, which maps to a specific xxpermdi.
16224 (adjust_xxpermdi): New function.
16225 (adjust_concat): Likewise.
16226 (handle_special_swappables): Call adjust_xxpermdi and
16228 (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
16230 2015-08-30 Rich Felker <dalias@libc.org>
16232 * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
16233 case instead of sh[123456ble]-*-*.
16235 2015-08-29 Anatoly Sokolov <aesok@post.ru>
16237 * ira.c (print_unform_and_important_classes,
16238 print_translated_classes): Remove reg_class_names static array.
16239 (print_unform_and_important_classes): Rename to ...
16240 (print_uniform_and_important_classes): ... this.
16241 (ira_debug_allocno_classes): Update accordingly.
16243 2015-08-29 Tom de Vries <tom@codesourcery.com>
16245 PR tree-optimization/46193
16246 * omp-low.c (omp_reduction_init): Handle pointer type for min or max
16249 2015-08-28 Jeff Law <law@redhat.com>
16252 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
16253 unable to find X NE 0 in the tables, return X as the simplified
16255 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
16256 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
16258 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
16259 after removing the control flow statement and unnecessary edges.
16261 2015-08-28 Alan Lawrence <alan.lawrence@arm.com>
16264 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
16266 PR tree-optimization/67283
16267 * tree-sra.c (type_consists_of_records_p): Rename to...
16268 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
16270 (completely_scalarize_record): Rename to...
16271 (completely_scalarize): ...this, add ARRAY_TYPE case, move some
16273 (scalarize_elem): New.
16275 2015-08-28 Jiong Wang <jiong.wang@arm.com>
16277 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
16278 SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
16279 (aarch64_symbol_type): Likewise.
16280 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
16282 (aarch64_expand_mov_immediate): Likewise.
16283 (aarch64_print_operand): Likewise.
16284 (aarch64_classify_tls_symbol): Likewise.
16286 2015-08-28 Richard Biener <rguenther@suse.de>
16288 * cgraphunit.c (symbol_table::compile): Move early debug generation
16290 (symbol_table::finalize_compilation_unit): ... back here and
16291 add a !seen_error () guard.
16293 2015-08-27 Sebastian Pop <s.pop@samsung.com>
16295 * toplev.c (process_options): Do not use flag_loop_block,
16296 flag_loop_interchange, and flag_loop_strip_mine. Add check for
16297 flag_loop_optimize_isl.
16299 2015-08-27 Sebastian Pop <s.pop@samsung.com>
16301 * Makefile.in (OBJS): Remove graphite-blocking.o and
16302 graphite-interchange.o.
16303 * common.opt (floop-strip-mine, floop-interchange, floop-block):
16304 Alias of floop-nest-optimize.
16305 * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
16306 Document as alias of -floop-nest-optimize.
16307 * graphite-blocking.c: Remove.
16308 * graphite-interchange.c: Remove.
16309 * graphite-optimize-isl.c: Include dumpfile.h.
16310 (getScheduleForBand): Add dump for tiled loops. Use
16311 PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
16312 * graphite-poly.c (scop_max_loop_depth): Remove.
16313 (print_scattering_function_1): Remove.
16314 (print_scattering_function): Remove.
16315 (print_scattering_functions): Remove.
16316 (debug_scattering_function): Remove.
16317 (debug_scattering_functions): Remove.
16318 (apply_poly_transforms): Remove use of flag_loop_block,
16319 flag_loop_strip_mine, and flag_loop_interchange.
16320 (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
16322 (print_pdr_access_layout): Remove.
16323 (print_pdr): Print ISL representation.
16324 (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
16325 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
16327 (openscop_print_pbb_domain): Remove.
16328 (print_pbb): Remove call to print_scattering_function.
16329 (openscop_print_scop_context): Remove.
16330 (print_scop_context): Do not print matrices anymore.
16331 (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
16332 SCOP_TRANSFORMED_SCHEDULE.
16333 (print_isl_set): Add printing of a new line.
16334 (print_isl_map): Same.
16335 (print_isl_aff): Same.
16336 (print_isl_constraint): Same.
16337 (loop_to_lst): Remove.
16338 (scop_to_lst): Remove.
16339 (lst_indent_to): Remove.
16340 (print_lst): Remove.
16341 (debug_lst): Remove.
16342 (dot_lst_1): Remove.
16344 (reverse_loop_at_level): Remove.
16345 (reverse_loop_for_pbbs): Remove.
16346 * graphite-poly.h (pdr_dim_iter_domain): Remove.
16347 (pdr_nb_params): Remove.
16348 (pdr_alias_set_dim): Remove.
16349 (pdr_subscript_dim): Remove.
16350 (pdr_iterator_dim): Remove.
16351 (pdr_parameter_dim): Remove.
16352 (same_pdr_p): Remove.
16353 (struct poly_scattering): Remove.
16354 (struct poly_bb): Remove _original, _transformed, _saved.
16355 (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
16356 (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
16357 (PBB_NB_LOCAL_VARIABLES): Remove.
16358 (PBB_NB_SCATTERING_TRANSFORM): Remove.
16359 (schedule_to_scattering): Remove.
16360 (number_of_write_pdrs): Remove.
16361 (pbb_dim_iter_domain): Remove.
16362 (pbb_nb_params): Remove.
16363 (pbb_nb_scattering_orig): Remove.
16364 (pbb_nb_scattering_transform): Remove.
16365 (pbb_nb_dynamic_scattering_transform): Remove.
16366 (pbb_nb_local_vars): Remove.
16367 (pbb_iterator_dim): Remove.
16368 (pbb_parameter_dim): Remove.
16369 (psco_scattering_dim): Remove.
16370 (psct_scattering_dim): Remove.
16371 (psct_local_var_dim): Remove.
16372 (psco_iterator_dim): Remove.
16373 (psct_iterator_dim): Remove.
16374 (psco_parameter_dim): Remove.
16375 (psct_parameter_dim): Remove.
16376 (psct_dynamic_dim): Remove.
16377 (psct_static_dim): Remove.
16378 (psct_add_local_variable): Remove.
16379 (new_lst_loop): Remove.
16380 (new_lst_stmt): Remove.
16381 (free_lst): Remove.
16382 (copy_lst): Remove.
16383 (lst_add_loop_under_loop): Remove.
16384 (lst_depth): Remove.
16385 (lst_dewey_number): Remove.
16386 (lst_dewey_number_at_depth): Remove.
16387 (lst_pred): Remove.
16388 (lst_succ): Remove.
16389 (lst_find_pbb): Remove.
16390 (find_lst_loop): Remove.
16391 (lst_find_first_pbb): Remove.
16392 (lst_empty_p): Remove.
16393 (lst_find_last_pbb): Remove.
16394 (lst_contains_p): Remove.
16395 (lst_contains_pbb): Remove.
16396 (lst_create_nest): Remove.
16397 (lst_remove_from_sequence): Remove.
16398 (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
16399 (lst_niter_for_loop): Remove.
16400 (pbb_update_scattering): Remove.
16401 (lst_update_scattering_under): Remove.
16402 (lst_update_scattering): Remove.
16403 (lst_insert_in_sequence): Remove.
16404 (lst_replace): Remove.
16405 (lst_substitute_3): Remove.
16406 (lst_distribute_lst): Remove.
16407 (lst_remove_all_before_including_pbb): Remove.
16408 (lst_remove_all_before_excluding_pbb): Remove.
16409 (struct scop): Remove original_schedule, transformed_schedule, and
16411 (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
16412 (SCOP_SAVED_SCHEDULE): Remove.
16413 (poly_scattering_new): Remove.
16414 (poly_scattering_free): Remove.
16415 (poly_scattering_copy): Remove.
16416 (store_scattering_pbb): Remove.
16417 (store_lst_schedule): Remove.
16418 (restore_lst_schedule): Remove.
16419 (store_scattering): Remove.
16420 (restore_scattering_pbb): Remove.
16421 (restore_scattering): Remove.
16422 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
16423 Remove scattering_dimensions. Do not use pbb_dim_iter_domain:
16424 compute the scattering polyhedron dimension from the dimension of
16426 (build_scop_scattering): Update call to
16427 build_pbb_scattering_polyhedrons.
16428 (build_poly_scop): Remove call to scop_to_lst.
16429 * graphite.c (graphite_transform_loops): Add call to print_scop.
16430 (gate_graphite_transforms): Remove use of flag_loop_block,
16431 flag_loop_interchange, and flag_loop_strip_mine.
16433 2015-08-27 Sebastian Pop <s.pop@samsung.com>
16435 * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
16436 * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
16437 -floop-nest-optimize.
16438 * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
16439 (generate_luj_sepclass): Remove.
16440 (generate_luj_options): Remove.
16441 (set_options): Remove opt_luj.
16442 (scop_to_isl_ast): Remove opt_luj.
16443 * graphite-optimize-isl.c (getScheduleForBand): Remove check for
16444 flag_loop_unroll_jam.
16445 (getPrevectorMap_full): Remove.
16446 (getScheduleForBandList): Remove map_sepcl.
16447 (getScheduleMap): Same.
16448 (apply_schedule_map_to_scop): Remove sepcl.
16449 (optimize_isl): Same.
16450 * graphite-poly.c (apply_poly_transforms): Remove check for
16451 flag_loop_unroll_jam.
16452 (new_poly_bb): Remove map_sepclass.
16453 * graphite-poly.h (struct poly_bb): Same.
16454 * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
16455 * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
16456 (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
16457 * toplev.c (process_options): Remove flag_loop_unroll_jam.
16459 2015-08-27 Uros Bizjak <ubizjak@gmail.com>
16462 * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
16463 (addqi3_cc): Ditto.
16464 (UNSPEC_ADD_CARRY): Remove.
16465 (addqi3_cconly_overflow): New expander.
16466 (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
16467 Adjust for changed add<mode>3_carry.
16468 (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
16469 (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
16470 (<plusminus_insn><mode>3_carry): Remove expander.
16471 (*<plusminus_insn><mode>3_carry): Split insn pattern to
16472 add<mode>3_carry and sub<mode>3_carry.
16473 (plusminus_carry_mnemonic): Remove code attribute.
16474 (add<mode>3_carry): Canonicalize insn pattern.
16475 (*addsi3_carry_zext): Ditto.
16476 (sub<mode>3_carry): Ditto.
16477 (*subsi3_carry_zext): Ditto.
16478 (adcx<mode>3): Remove insn pattern.
16479 (addcarry<mode>): New insn pattern.
16480 (subborrow<mode>): Ditto.
16481 * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
16482 gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
16483 (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
16484 case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
16485 case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
16486 CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
16487 Rewrite expander to not clobber carry flag chains.
16489 2015-08-27 Pat Haugen <pthaugen@us.ibm.com>
16491 * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
16492 instead of a rotate.
16494 2015-08-27 Marek Polacek <polacek@redhat.com>
16496 PR middle-end/67005
16497 * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
16498 an entry into an irreducible region.
16500 2015-08-27 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
16502 * configure: Regenerate.
16504 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
16506 PR tree-optimization/67283
16507 * tree-sra.c (type_consists_of_records_p): Rename to...
16508 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
16510 (completely_scalarize_record): Rename to...
16511 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
16512 (scalarize_elem): New.
16514 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
16516 * tree-sra.c (completely_scalarize_var): Rename to...
16517 (create_total_scalarization_access): ... Here. Drop call to
16518 completely_scalarize_record.
16520 (analyze_all_variable_accesses): Replace completely_scalarize_var
16521 with create_total_scalarization_access and completely_scalarize_record.
16523 2015-08-27 Alan Modra <amodra@gmail.com>
16526 * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
16529 2015-08-27 Richard Biener <rguenther@suse.de>
16531 * passes.c (rest_of_decl_compilation): Guard early_global_decl
16532 call with !seen_error ().
16533 * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
16534 early debug generation and finish...
16535 (symbol_table::compile): ... here to put it after a !seen_error ()
16538 2015-08-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16540 * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
16543 2015-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16544 Andre Vieira <andre.simoesdiasvieira@arm.com>
16546 * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
16547 (*cb<optab><mode>1): Likewise.
16548 (*tb<optab><mode>1): Likewise.
16549 (*cb<optab><mode>1): Likewise.
16550 * config/aarch64/iterators.md (inv_cb): New code attribute.
16551 (inv_tb): Likewise.
16552 * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
16553 * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
16555 2015-08-27 Richard Biener <rguenther@suse.de>
16557 * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
16559 2015-08-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
16561 * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
16564 2015-08-26 Michael Meissner <meissner@linux.vnet.ibm.com>
16566 * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
16569 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
16571 (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
16572 floating point in VSX registers.
16573 (rs6000_output_move_128bit): Always print out the set insn if we
16574 can't generate an appropriate 128-bit move.
16575 (rs6000_generate_compare): Add support for IEEE 128-bit floating
16576 point in VSX registers comparisons.
16577 (rs6000_expand_float128_convert): Likewise.
16579 * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
16580 predicate for only GPR hard registers.
16582 * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
16583 modes to iterators. Add new iterators for moving 128-bit values in
16584 scalar FPR registers and VSX registers.
16585 (FMOVE128): Likewise.
16586 (FMOVE128_FPR): Likewise.
16587 (FMOVE128_GPR): Likewise.
16588 (FMOVE128_VSX): Likewise.
16589 (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
16592 (IBM128): Likewise.
16593 (TFIFKF): Likewise.
16594 (RELOAD): Add IEEE 128-bit floating point modes.
16595 (signbittf2): Convert TF insns to add support for new IEEE 128-bit
16596 floating point in VSX registers modes.
16597 (signbit<mode>2, IBM128 iterator): Likewise.
16598 (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
16599 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
16600 (negtf2): Likewise.
16601 (neg<mode>2, TFIFKF iterator): Likewise.
16602 (negtf2_internal): Likewise.
16603 (abstf2): Likewise.
16604 (abs<mode>2, TFIFKF iterator): Likewise.
16605 (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
16606 VSX insn support for negate, absolute value, and negative absolute
16608 (ieee_128bit_vsx_neg<mode>2): Likewise.
16609 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
16610 (ieee_128bit_vsx_abs<mode>2): Likewise.
16611 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
16612 (ieee_128bit_vsx_nabs<mode>2): Likewise.
16613 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
16614 (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
16615 floating point in VSX registers.
16616 (unpack<mode>_dm): Likewise.
16617 (unpack<mode>_nodm): Likewise.
16618 (pack<mode>): Likewise.
16619 (unpackv1ti): Likewise.
16620 (unpack<mode>, FMOVE128_VSX iterator): Likewise.
16621 (packv1ti): Likewise.
16622 (pack<mode>, FMOVE128_VSX iterator): Likewise.
16623 (extenddftf2): Add support for IEEE 128-bit floating point in VSX
16625 (extenddftf2_internal): Likewise.
16626 (trunctfdf2): Likewise.
16627 (trunctfdf2_internal2): Likewise.
16628 (fix_trunc_helper): Likewise.
16629 (fix_trunctfdi2"): Likewise.
16630 (floatditf2): Likewise.
16631 (floatuns<mode>tf2): Likewise.
16632 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
16633 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
16634 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
16635 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
16636 (float<SDI:mode><IFKF:mode>2): Likewise.
16637 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
16639 2015-08-26 Renlin Li <renlin.li@arm.com>
16641 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
16643 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
16644 Jiong Wang <jiong.wang@arm.com>
16646 * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
16647 (tlsie_tiny_<mode>): New define_insn.
16648 (tlsie_tiny_sidi): Likewise.
16649 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
16651 (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
16652 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
16654 (aarch64_expand_mov_immediate): Likewise.
16655 (aarch64_print_operand): Likewise.
16656 (arch64_classify_tls_symbol): Likewise.
16658 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
16660 * config/arm/arm-arches.def: Replace single value flags with
16661 an initializer built from ARM_FSET_MAKE_CPU1.
16662 * config/arm/arm-cores.def: Likewise.
16663 * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
16664 derivation from the ARM_CORE macro definition, use the given value
16666 (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
16667 ARM_ARCH macro definition, use the given value instead.
16669 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
16671 * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
16673 (struct builtin_description): Replace field mask with field
16675 (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
16676 (IWMMXT2_BUILTIN): Likewise.
16677 (IWMMXT2_BUILTIN2): Likewise.
16678 (FP_BUILTIN): Likewise.
16679 (CRC32_BUILTIN): Likewise.
16680 (CRYPTO_BUILTIN): Likewise.
16681 (iwmmx_mbuiltin): Likewise.
16682 (iwmmx2_mbuiltin): Likewise.
16683 (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
16684 struct builtin_description.
16686 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
16688 * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
16689 (struct builtin_description): Change type of mask to unsigned
16691 * config/arm/arm-protos.h (insn_flags): Declare as type
16693 (tune_flags): Likewise.
16694 * config/arm/arm.c (feature_count): New.
16695 (insn_flags): Define as type arm_feature_set.
16696 (tune_flags): Likewise.
16697 (struct processors): Define field flags as type arm_feature_set.
16698 (all_cores): Update for change to struct processors.
16699 (all_architectures): Likewise.
16700 (arm_option_check_internal): Use arm_feature_set and ARM_FSET
16702 (arm_option_override_internal): Likewise.
16703 (arm_option_override): Likewise.
16705 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
16706 Jiong Wang <jiong.wang@arm.com>
16708 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
16709 tls size for tiny, small, large memory model.
16710 (aarch64_load_symref_appropriately): Support new symbol types.
16711 (aarch64_expand_mov_immediate): Likewise.
16712 (aarch64_print_operand): Likewise.
16713 (aarch64_classify_tls_symbol): Likewise.
16714 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
16715 (aarch64_symbol_type): Likewise.
16716 * config/aarch64/aarch64.md (tlsle): Deleted.
16717 (tlsle12_<mode>): New define_insn.
16718 (tlsle24_<mode>): Likewise.
16719 (tlsle32_<mode>): Likewise.
16720 (tlsle48_<mode>): Likewise.
16721 * doc/sourcebuild.texi (AArch64-specific attributes): Document
16724 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
16726 * config/arm/arm-protos.h (FL_NONE): New.
16728 (arm_feature_set): New.
16729 (ARM_FSET_MAKE): New.
16730 (ARM_FSET_MAKE_CPU1): New.
16731 (ARM_FSET_MAKE_CPU2): New.
16732 (ARM_FSET_CPU1): New.
16733 (ARM_FSET_CPU2): New.
16734 (ARM_FSET_EMPTY): New.
16735 (ARM_FSET_ANY): New.
16736 (ARM_FSET_HAS_CPU1): New.
16737 (ARM_FSET_HAS_CPU2): New.
16738 (ARM_FSET_HAS_CPU): New.
16739 (ARM_FSET_ADD_CPU1): New.
16740 (ARM_FSET_ADD_CPU2): New.
16741 (ARM_FSET_DEL_CPU1): New.
16742 (ARM_FSET_DEL_CPU2): New.
16743 (ARM_FSET_UNION): New.
16744 (ARM_FSET_INTER): New.
16745 (ARM_FSET_XOR): New.
16746 (ARM_FSET_EXCLUDE): New.
16747 (AFM_FSET_IS_EMPTY): New.
16748 (ARM_FSET_CPU_SUBSET): New.
16750 2015-08-26 Jiong Wang <jiong.wang@arm.com>
16752 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
16753 SYMBOL_TLSLE to SYMBOL_TLSLE24.
16754 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
16756 (aarch64_expand_mov_immediate): Likewise.
16757 (aarch64_print_operand): Likewise.
16758 (aarch64_classify_symbol): Likewise.
16760 2015-08-26 Jiong Wang <jiong.wang@arm.com>
16762 * config/aarch64/aarch64.opt (mtls-size): New entry.
16763 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
16764 (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
16765 * doc/invoke.texi (AArch64 Options): Document -mtls-size.
16767 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
16769 * config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
16770 ARM_CORE entry. Fix some white-space.
16771 * config/arm/arm.c: Remove FL_FOR_ARCH derivation from
16772 ARM_CORE definition.
16774 2015-08-26 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
16776 * fold-const.c (fold_binary_loc) : Move Optimize
16777 root(x)*root(y) as root(x*y) to match.pd.
16778 Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
16779 Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
16780 Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
16781 Move Optimize x/expN(y) into x*expN(-y) to match.pd.
16782 * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
16783 (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
16784 (mult (exps:s @0) (exps:s @1)) : New simplifier.
16785 (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
16786 (rdiv @0 (exps:s @1)) : New simplifier.
16788 2015-08-25 Joseph Myers <joseph@codesourcery.com>
16790 * gcc.c (driver::finalize): Only assign to extra_specs if
16793 2015-08-25 Marek Polacek <polacek@redhat.com>
16795 PR middle-end/67330
16796 * varasm.c (declare_weak): Return after giving an error.
16798 2015-08-25 David Malcolm <dmalcolm@redhat.com>
16800 * gcc-main.c (main): Add params to driver ctor.
16801 * gcc.c (class env_manager): New.
16803 (env_manager::init): New.
16804 (env_manager::get): New.
16805 (env_manager::xput): New.
16806 (env_manager::restore): New.
16807 Poison getenv and putenv.
16808 (DEFAULT_TARGET_SYSTEM_ROOT): New.
16809 (target_system_root): Update initialization to use
16810 DEFAULT_TARGET_SYSTEM_ROOT.
16811 (struct spec_list): Add field "default_ptr".
16812 (INIT_STATIC_SPEC): Initialize new field "default_ptr".
16813 (init_spec): Likewise.
16814 (set_spec): Clear field "default_ptr".
16815 (read_specs): Free "spec" and "buffer".
16816 (xputenv): Reimplement in terms of env_manager.
16817 (process_command): Replace ::getenv calls with calls to the
16818 env_manager singleton.
16819 (process_brace_body): Free string in three places.
16820 (driver::driver): New.
16821 (driver::~driver): New.
16822 (used_arg): Convert from a function to...
16823 (class used_arg_t): ...this class, and...
16824 (used_arg): ...this new global instance.
16825 (used_arg_t::finalize): New function.
16826 (getenv_spec_function): Add "const" to local "value". Replace
16827 ::getenv call with call to the env_manager singleton.
16828 (path_prefix_reset): New function.
16829 (driver::finalize): New function.
16830 * gcc.h (driver::driver): New.
16831 (driver::~driver): New.
16832 (driver::finalize): New.
16834 2015-08-25 Nathan Sidwell <nathan@acm.org>
16836 * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
16837 target doesn't have one.
16839 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
16842 * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
16844 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
16847 * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
16848 a define_insn, remove second alternative.
16850 2015-08-25 Thomas Schwinge <thomas@codesourcery.com>
16851 Joseph Myers <joseph@codesourcery.com>
16853 * gcc.c (struct switchstr): Expand comment.
16855 2015-08-25 Nathan Sidwell <nathan@acm.org>
16857 * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
16858 (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
16860 2015-08-25 Richard Biener <rguenther@suse.de>
16862 PR middle-end/67306
16863 * genmatch.c (expr::gen_transform): Verify the result of
16864 builtin_decl_implicit.
16865 (dt_simplify::gen_1): Likewise.
16867 2015-08-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
16869 * config/arm/constraints.md: Also list Cs and US ARM-specific
16870 constraints as used.
16872 2015-08-24 Kaz Kojima <kkojima@gcc.gnu.org>
16875 * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
16877 (nonpic_symbol_mentioned_p): Likewise.
16878 (sh_delegitimize_address): Likewise.
16879 (sh_function_ok_for_sibcall): Take into account weak symbols.
16880 (sh_expand_sym_label2reg): New.
16881 * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
16882 * config/sh/sh.md (UNSPEC_PCREL): New enum.
16883 (call_pcrel): Use sh_expand_sym_label2reg.
16884 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
16885 (symPCREL_label2reg) New expand.
16887 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
16889 * graphite-poly.c: Change type of region from void* to sese.
16890 * graphite-poly.h (struct scop): Changing the type of scop::region
16891 from void* to sese. Change accessor macro accordingly.
16892 * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
16894 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
16896 * graphite-scop-detection.c (stmt_simple_for_scop_p):
16897 Constrain only on INTEGER_TYPE.
16899 2015-08-24 Michael Meissner <meissner@linux.vnet.ibm.com>
16902 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
16903 -mefficient-unaligned-vsx on ISA 2.7.
16905 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
16906 option to a masked option.
16908 * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
16909 logic for -mefficient-unaligned-vsx so that it is set via an arch
16910 ISA option, instead of being set if -mtune=power8 is set. Move
16911 -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
16912 near other default option handling.
16914 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
16916 * genflags.c (gen_macro): Delete.
16917 (gen_proto): Don't create GEN.*CALL.* macros.
16918 * gensupport.h (get_file_location): Declare.
16919 * gensupport.c (rtx_locs): New variable.
16920 (read_md_rtx): Record rtx locations.
16921 (get_file_location): New function.
16922 * target-insns.def (call, call_pop, call_value, call_value_pop)
16923 (sibcall, sibcall_value): New patterns.
16924 * gentarget-def.c (parse_argument): New function.
16925 (def_target_insn): Use it. Handle optional operands. Raise an
16926 error if an .md pattern has the wrong number of operands for the
16927 pattern name. Remove the names of unused operands from the prototype.
16928 * builtins.c (expand_builtin_apply): Use targetm functions
16929 instead of HAVE_call_value and GEN_CALL_VALUE.
16930 * calls.c (emit_call_1): Likewise. Remove support for sibcall_pop
16931 and sibcall_value_pop.
16932 * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
16934 * config/alpha/alpha.md (untyped_call): Likewise.
16935 * config/iq2000/iq2000.md (untyped_call): Likewise.
16936 * config/m68k/m68k.md (untyped_call): Likewise.
16937 * config/mips/mips.md (untyped_call): Likewise.
16938 * config/pa/pa.md (untyped_call): Likewise.
16939 * config/rs6000/rs6000.md (untyped_call): Likewise.
16940 * config/sparc/sparc.md (untyped_call): Likewise.
16941 * config/tilegx/tilegx.md (untyped_call): Likewise.
16942 * config/tilepro/tilepro.md (untyped_call): Likewise.
16943 * config/visium/visium.md (untyped_call): Likewise.
16944 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
16945 gen_call_value instead of GEN_CALL_VALUE.
16946 * config/arm/arm.md (untyped_call): Likewise.
16947 * config/cr16/cr16.c (cr16_function_arg): Remove reference to
16950 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
16952 * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
16953 (have_cbranchcc4): New variable.
16954 (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
16955 (noce_get_condition): Use it instead of HAVE_cbranchcc4.
16956 (if_convert): Initialize have_cbranchcc4.
16958 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
16960 * builtins.c (expand_cmpstrn): Rename to...
16961 (expand_cmpstrn_or_cmpmem): ...this.
16962 (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
16963 (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
16964 Remove mode argument.
16965 (expand_builtin): Update accordingly.
16967 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
16969 * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
16970 (expand_builtin_strcmp, expand_builtin_strncmp): Use them. Remove
16971 references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
16972 * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
16973 Add predicates for operands 0 and 3.
16974 * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
16976 * config/sh/sh.md (cmpstrnsi): Change the length predicate from
16977 immediate_operand to nonmemory_operand.
16979 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
16981 * df-scan.c (df_insn_info_init_fields): New function, split out
16983 (df_insn_create_insn_record): ...here.
16984 (df_insn_info_free_fields): New function, split out from...
16985 (df_insn_info_delete): ...here.
16986 (df_insn_rescan): Use the new functions instead of freeing and
16987 reallocating the df_insn_info.
16989 2015-08-24 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
16991 * doc/install.texi (Binaries): Remove links no longer valid.
16993 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
16995 * config/nvptx/mkoffload.c (process): Replace
16996 GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
16998 2015-08-24 H.J. Lu <hongjiu.lu@intel.com>
17001 * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
17003 2015-08-24 Renlin Li <renlin.li@arm.com>
17005 * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
17006 * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
17007 * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
17008 * config/arm/constraints.md ("j"): Add check for high code.
17010 2015-08-24 Tom de Vries <tom@codesourcery.com>
17012 PR tree-optimization/65468
17013 * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
17016 2015-08-24 Nathan Sidwell <nathan@acm.org>
17018 * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
17019 change to nvptx_type_from_mode call. Use arg_promotion for both
17020 split and non-split args.
17022 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
17024 * target-insns.def (movstr): New pattern.
17025 * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
17026 (expand_movstr): Use targetm rather than HAVE_movstr/
17029 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
17031 * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
17034 2015-08-24 Andrew Pinski <apinski@cavium.com>
17036 * config/aarch64/aarch64-tuning-flags.def: Remove all index to
17037 AARCH64_EXTRA_TUNING_OPTION.
17038 * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
17040 (aarch64_extra_tuning_flags): Base the shifted value on the index
17041 instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
17042 * config/aarch64/aarch64.c: Remove the last argument to
17043 AARCH64_EXTRA_TUNING_OPTION.
17045 2015-08-23 Nathan Sidwell <nathan@acm.org>
17047 * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
17049 (nvptx_declare_function_name): Insert formatting tabs for
17052 2015-08-23 Tom de Vries <tom@codesourcery.com>
17054 * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
17055 parm_decl, rather than generating a dummy default def in cfun.
17056 * tree-cfg.c (replace_ssa_name): Assume no default defs. Make sure
17057 ssa_name from cfun and child_fn do not share a stmt as def stmt.
17058 (move_stmt_op): Handle PARM_DECl.
17059 (gather_ssa_name_hash_map_from): New function.
17060 (move_sese_region_to_fn): Add default defs for function params, and add
17061 them to vars_map. Release copied ssa names.
17062 * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
17064 2015-08-23 Tom de Vries <tom@codesourcery.com>
17066 * doc/sourcebuild.texi: Rename vect_no_int_max with
17067 vect_no_int_min_max. Update description.
17069 2015-08-22 Andrew Pinski <apinski@cavium.com>
17071 * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
17072 * config/aarch64/aarch64-protos.h
17073 (aarch64_fusion_pairs_index): New enum.
17074 (aarch64_fusion_pairs): Base the shifted value on the index instead
17075 Rewrite AARCH64_FUSE_ALL to be based on the end index.
17076 of the argument to AARCH64_FUSION_PAIR.
17077 * config/aarch64/aarch64.c: Remove the last argument to
17078 AARCH64_FUSION_PAIR.
17080 2015-08-22 Mikhail Maltsev <maltsevm@gmail.com>
17082 * dominance.c (new_zero_array): Define.
17083 (dom_info): Redefine as class with proper encapsulation.
17084 (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
17086 (dom_info::dom_info, ~dom_info): Define. Use new/delete for memory
17087 allocations/deallocations. Pass function as parameter (instead of
17089 (dom_info::get_idom): Define accessor method.
17090 (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
17091 link_roots, calc_idoms): Redefine as class members. Do not use cfun.
17092 (calculate_dominance_info): Adjust to use dom_info class.
17093 (verify_dominators): Likewise.
17095 2015-08-21 Alexandre Oliva <aoliva@redhat.com>
17097 * print-rtl.c (print_rtx): Check the correct range for
17098 flag_dump_unnumbered_links to behave as documented.
17100 PR rtl-optimization/67227
17101 PR rtl-optimization/64164
17102 * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
17103 (nonoverlapping_memrefs_p): Test offsets and sizes when given
17104 identical gimple_reg exprs.
17106 2015-08-21 Nathan Sidwell <nathan@acm.org>
17108 * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
17110 * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
17111 crtl->stack_alignment_needed to determine alignment.
17112 (nvptx_get_drap_rtx): New.
17113 (TARGET_GET_DRAP_RTX): Override.
17114 * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
17116 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
17118 * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
17120 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
17122 * configure.ac: Remove uwin* cases.
17123 * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
17124 i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
17125 i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
17126 i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
17127 * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
17128 i[34567]86-*-uwin*, powerpc-*-beos*.
17130 2015-08-21 Richard Sandiford <richard.sandiford@arm.com>
17132 * gencodes.c (gencodes): Print the comma for the preceding
17133 enum value rather than the current one. Use aliased enum values
17134 rather than #defines for compiled-out patterns.
17135 (main): Update accordingly. Replace LAST_INSN_CODE with
17137 * lra.c (insn_code_data): Update accordingly.
17138 (finish_insn_code_data_once, get_static_insn_data): Likewise.
17139 * recog.h (target_recog): Likewise.
17140 (preprocess_insn_constraints): Change parameter to unsigned int.
17141 * recog.c (preprocess_insn_constraints): Likewise.
17142 (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
17143 * tree-vect-stmts.c (vectorizable_operation): Simplify.
17145 2015-08-21 Markus Trippelsdorf <markus@trippelsdorf.de>
17147 PR rtl-optimization/61657
17148 * loop-iv.c (iv_number_of_iterations): Declare up and down as
17149 unsigned. Remove superflous uint64_t cast.
17151 2014-08-21 Felix Yang <felix.yang@huawei.com>
17152 Jiji Jiang <jiangjiji@huawei.com>
17154 * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
17155 argument and get builtin function code directly from CALL.
17156 (gimple_stringop_fixed_value): Modified accordingly.
17157 (gimple_stringops_transform, gimple_stringops_values_to_profile):
17158 Modified accordingly and only accept BUILT_IN_NORMAL string operations.
17160 2015-08-21 Dominik Vogt <vogt@linux.vnet.ibm.com>
17162 * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
17164 2015-08-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
17166 * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
17168 Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
17169 Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
17170 Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
17171 Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
17172 Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
17173 Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
17174 Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
17175 Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
17176 Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
17177 Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
17179 * match.pd (SIN ) : New Operator.
17180 (TAN) : New Operator.
17181 (mult (SQRT@1 @0) @1) : New simplifier.
17182 (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
17183 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
17184 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
17185 (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
17186 (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
17187 (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
17188 (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
17189 (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
17190 (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
17191 (rdiv @0 (POW:s @1 @2)) : New simplifier.
17193 2015-08-21 Bin Cheng <bin.cheng@arm.com>
17195 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
17196 loop if EXPR is simplified to const value.
17198 2015-08-21 Yury Gribov <y.gribov@samsung.com>
17200 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
17201 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
17203 2015-08-21 Richard Biener <rguenther@suse.de>
17205 PR middle-end/67285
17206 * gimple-fold.c (replace_stmt_with_simplification): Assert
17207 seq is empty when replacing a call with itself but different
17209 * gimple-match-head.c (maybe_push_res_to_seq): When pushing
17210 a call require that it is const.
17212 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17214 * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
17215 * builtins.c (get_object_alignment_2): Adjust.
17216 * varasm.c (align_variable): Likewise.
17217 (get_variable_align): Likewise.
17218 (build_constant_desc): Likewise.
17219 (force_const_mem): Likewise.
17220 * doc/tm.texi.in: Likewise.
17221 * doc/tm.texi: Regenerate.
17223 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17225 * genconfig.c (main): Always define HAVE_cc0.
17226 * recog.c (rest_of_handle_peephole2): Adjust.
17228 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17230 * reorg.c (relax_delay_slots): Don't use #if to check value of
17233 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17235 * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
17236 * targhooks.c (default_have_conditional_execution): Adjust.
17238 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
17240 * rtl.h (rtvec_all_equal_p): Declare.
17241 (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
17242 * rtl.c (rtvec_all_equal_p): New function.
17243 * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
17244 * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
17245 (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
17246 * config/arm/arm.c (neon_vdup_constant): Likewise.
17247 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
17248 * config/tilegx/constraints.md (W, Y): Likewise.
17249 * config/tilepro/constraints.md (W, Y): Likewise.
17250 * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
17251 (classify_immediate): Use unwrap_const_vec_duplicate.
17252 * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
17253 (reg_or_v2s8bit_operand): Likewise.
17254 * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
17255 (reg_or_v4s8bit_operand): Likewise.
17257 2015-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17259 * config/rs6000/altivec.h (vec_pmsum_be): New #define.
17260 (vec_shasigma_be): New #define.
17261 * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
17262 (VPMSUMH): Likewise.
17263 (VPMSUMW): Likewise.
17264 (VPMSUMD): Likewise.
17265 (VPMSUM): New BU_P8V_OVERLOAD_2.
17266 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
17267 entries for VEC_MADD and VEC_VPMSUM.
17269 2015-08-20 Georg-Johann Lay <avr@gjlay.de>
17271 * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
17272 Multiply argument avr_n_flash by 64 to match unit of "KiB".
17273 (avr_pgm_check_var_decl): Same.
17275 2015-08-20 Alan Lawrence <alan.lawrence@arm.com>
17277 * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
17278 initialization of HFmode scalar type (float16_t) to...
17279 (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
17282 (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
17284 * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
17285 having an -mfp16-format.
17287 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
17289 * config/i386/predicates.md (vector_all_ones_operand): Use
17290 CONSTM1_RTX to simplify definition.
17292 2015-08-20 Richard Biener <rguenther@suse.de>
17294 * toplev.c (compile_file): Remove loop calling late_global_decl
17296 * varpool.c (varpool_node::assemble_decl): Call late_global_decl
17297 on decls we assembled.
17299 2015-08-20 James Greenhalgh <james.greenhalgh@arm.com>
17301 * common/config/aarch64/aarch64-common.c
17302 (AARCH64_CPU_NAME_LENGTH): Delete.
17303 (aarch64_option_extension): New.
17304 (all_extensions): Likewise.
17305 (processor_name_to_arch): Likewise.
17306 (arch_to_arch_name): Likewise.
17308 (all_architectures): Likewise.
17309 (aarch64_get_extension_string_for_isa_flags): Likewise.
17310 (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
17311 architecture names.
17312 * config/aarch64/aarch64-protos.h
17313 (aarch64_get_extension_string_for_isa_flags): New.
17314 * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
17315 (aarch64_option_print): Get the string to print from
17316 aarch64_get_extension_string_for_isa_flags.
17317 (aarch64_declare_function_name): Likewise.
17318 * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
17319 (MCPU_TO_MARCH_SPEC): This.
17320 (ASM_CPU_SPEC): Use it.
17321 (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
17322 (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
17323 (EXTRA_SPEC_FUNCTIONS): Use it.
17325 2015-08-20 Simon Dardis <simon.dardis@imgtec.com>
17327 * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
17328 expansion when !ISA_HAS_LWL_LWR.
17329 (mips_block_move_straight): Update the size of elements copied to
17330 account for alignment when !ISA_HAS_LWL_LWR.
17331 * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
17333 2015-08-19 Jiong Wang <jiong.wang@arm.com>
17335 * expr.c (expand_expr_real_2): Check gimple statement during
17336 LSHIFT_EXPR expand.
17338 2015-08-19 Magnus Granberg <zorry@gentoo.org>
17340 * common.opt (fstack-protector): Initialize to -1.
17341 (fstack-protector-all): Likewise.
17342 (fstack-protector-strong): Likewise.
17343 (fstack-protector-explicit): Likewise.
17344 * configure.ac: Add --enable-default-ssp.
17345 * defaults.h (DEFAULT_FLAG_SSP): New. Default SSP to strong.
17346 * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
17348 * doc/install.texi: Document --enable-default-ssp.
17349 * config.in: Regenerated.
17350 * configure: Likewise.
17352 2015-08-19 Alexandre Oliva <aoliva@redhat.com>
17354 PR rtl-optimization/64164
17355 * cfgexpand.c (parm_maybe_byref_p): Renamed to...
17356 (parm_in_stack_slot_p): ... this. Disregard mode, what
17357 matters is whether the parm will live in a pseudo or a stack
17359 (expand_one_ssa_partition): Deal with params without a default
17360 def. Disregard mode.
17361 * cfgexpand.h: Renamed function declaration.
17362 * tree-ssa-coalesce.c: Adjust.
17363 * function.c (split_complex_args): Allocate stack slot for
17364 unassigned parms before splitting.
17365 (parm_in_unassigned_mem_p): New. Use it instead of
17366 parm_maybe_byref_p throughout this file.
17367 (assign_parm_setup_block): Use it. Accept pseudos in the
17368 expand-assigned rtl.
17369 (assign_parm_setup_reg): Drop BLKmode requirement.
17370 (assign_parm_setup_stack): Allocate and fill in the address of
17371 unassigned MEM parms.
17373 2015-08-19 David Sherwood <david.sherwood@arm.com>
17375 * genmodes.c (emit_mode_unit_size_inline): New function.
17376 (emit_mode_unit_precision_inline): New function.
17377 (emit_insn_modes_h): Emit new #define. Emit new functions.
17378 (emit_mode_unit_size): New function.
17379 (emit_mode_unit_precision): New function.
17380 (emit_mode_adjustments): Add mode_unit_size adjustments.
17381 (emit_insn_modes_c): Emit new arrays.
17382 * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
17383 use new inline methods.
17385 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17387 * config/aarch64/aarch64.c (bit_count): Delete prototype
17389 (aarch64_print_operand): Use popcount_hwi instead of the above.
17391 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17393 * config/aarch64/aarch64-option-extensions.def: Delete obsolete
17396 2015-08-19 Marek Polacek <polacek@redhat.com>
17398 PR middle-end/67133
17399 * gimple-ssa-isolate-paths.c
17400 (insert_trap_and_remove_trailing_statements): Rename to ...
17401 (insert_trap): ... this. Don't remove trailing statements; split
17403 (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
17405 2015-08-19 Mikael Morin <mikael@gcc.gnu.org>
17408 * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
17409 conditionalize the whole on __GNUC__. Add fallback code
17410 depending neither on undefined nor implementation-defined behaviour.
17412 2015-08-19 Jiong Wang <jiong.wang@arm.com>
17414 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
17415 whitespaces with tab.
17417 2015-08-19 Florian Weimer <fweimer@redhat.com>
17419 * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
17420 Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
17421 * prj-proc.adb (Process.Process_Expression_Variable_Decl):
17422 Move Name_Ids instantiation to the Prj.Proc package, to avoid
17425 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17427 * config/arm/arm.c (bounds_check): Use %wd print format
17428 for HOST_WIDE_INT arguments.
17430 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
17432 * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
17433 dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
17434 mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
17435 signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
17436 tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
17437 tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
17438 tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
17439 tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
17440 tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
17443 2015-08-18 trevor Saunders <tbsaunde@tbsaunde.org>
17445 * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
17446 function.c, graphite-scop-detection.c, haifa-sched.c,
17447 ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
17448 tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
17449 varasm.c: Remove typedefs of structs.
17451 2015-08-18 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
17453 * config/rs6000/altivec.h (vec_adde): New define.
17454 (vec_addec): Likewise.
17455 (vec_double): Likewise.
17456 (vec_bperm): Likewise.
17457 (vec_gb): Likewise.
17458 * config/rs6000/rs6000-builtin.def (ADDE): New
17459 BU_ALTIVEC_OVERLOAD_3.
17461 (DOUBLE): New BU_VSX_OVERLOAD_1.
17462 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
17463 entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
17464 ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
17465 VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
17466 ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
17467 ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
17468 ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
17469 P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
17470 and P8V_BUILTIN_VEC_VBPERMQ.
17472 2015-08-18 Jason Merrill <jason@redhat.com>
17474 * print-tree.c (print_node): Handle TREE_BINFO.
17476 2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
17478 PR middle-end/36757
17479 * builtins.c (expand_builtin_signbit): Add asserts to make sure
17480 we can expand BUILT_IN_SIGNBIT inline.
17481 * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
17482 * doc/extend.texi: Document the type-generic __builtin_signbit.
17484 2015-08-18 Richard Sandiford <richard.sandiford@arm.com>
17486 PR rtl-optimization/67218
17487 * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
17488 (simplify_unary_operation_1): Use it.
17490 2015-08-18 Marek Polacek <polacek@redhat.com>
17492 PR middle-end/67222
17493 * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
17494 if the call isn't valid.
17495 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
17496 gimple_call_builtin_p.
17497 (call_may_clobber_ref_p_1): Likewise.
17498 (stmt_kills_ref_p): Likewise.
17500 2015-08-18 Robert Suchanek <robert.suchanek@imgtec.com>
17502 * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
17503 * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
17504 (mips_hard_regno_scratch_ok): Likewise.
17505 (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
17506 * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
17508 2015-08-18 Bin Cheng <bin.cheng@arm.com>
17510 * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
17511 (determine_value_range): Call refine_value_range_using_guard for
17512 each loop initial condition to improve value range.
17514 2015-08-17 Aldy Hernandez <aldyh@redhat.com>
17516 * config/i386/i386.c: Remove include of fibheap.h.
17518 2015-08-17 Richard Biener <rguenther@suse.de>
17520 PR tree-optimization/67221
17521 * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
17522 (sccvn_dom_walker::before_dom_children): Mark backedges of
17523 non-executable blocks as not executable.
17525 2015-08-17 David Sherwood <david.sherwood@arm.com>
17527 * config/arm/arm.c (neon_element_bits): Replace call to
17528 GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
17529 * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
17530 (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
17531 (neon_vdup_lane<mode>): Likewise.
17532 * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
17533 (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
17534 (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
17535 * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
17536 * config/spu/spu.c (arith_immediate_p): Likewise.
17537 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
17538 * expr.c (expand_expr_real_2): Likewise.
17539 * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
17540 * simplify-rtx.c (simplify_immed_subreg): Likewise.
17541 * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
17542 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
17544 * fold-const.c (fold_binary_loc): Replace call to
17545 GET_MODE_PRECISION (GET_MODE_INNER (m)) with
17546 GET_MODE_UNIT_PRECISION (m).
17548 2015-08-17 Mike Stump <mikestump@comcast.net>
17550 * config/arm/arm.c (arm_block_move_unaligned_straight):
17551 Emit normal move instead of unaligned load when source or destination
17552 are appropriately aligned.
17554 2015-08-17 Richard Biener <rguenther@suse.de>
17555 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
17557 PR middle-end/16107
17558 * match.pd (div (coss (op @0) : New simplifier.
17560 2015-08-14 Alexandre Oliva <aoliva@redhat.com>
17562 PR rtl-optimization/64164
17564 PR middle-end/66983
17565 PR rtl-optimization/67000
17566 PR middle-end/67034
17567 PR middle-end/67035
17568 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
17569 * tree-ssa-copyrename.c: Removed.
17570 * opts.c (default_options_table): Drop -ftree-copyrename. Add
17571 -ftree-coalesce-vars.
17572 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
17573 * common.opt (ftree-copyrename): Ignore.
17574 (ftree-coalesce-inlined-vars): Likewise.
17575 * doc/invoke.texi: Remove the ignored options above.
17576 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
17577 * tree-ssa-coalesce.h: ... here.
17578 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
17579 headers required by it.
17580 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
17581 across variables when flag_tree_coalesce_vars. Check register
17582 use and promoted modes to allow coalescing. Do not coalesce
17583 maybe-byref parms with SSA_NAMEs of other variables, or
17584 anonymous SSA_NAMEs. Moved to tree-ssa-coalesce.c.
17585 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
17586 with its member functions to tree-ssa-coalesce.c.
17587 (var_map_base_init): Likewise. Renamed to
17588 compute_samebase_partition_bases.
17589 (partition_view_normal): Drop want_bases parameter.
17590 (partition_view_bitmap): Likewise.
17591 * tree-ssa-live.h: Adjust declarations.
17592 * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
17593 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
17594 default defs at the entry point.
17595 (dump_part_var_map): New.
17596 (compute_optimized_partition_bases): New, called by...
17597 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
17598 of compute_samebase_partition_bases. Adjust.
17599 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
17600 * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
17601 (ssa_default_def_partition): New.
17602 (get_rtl_for_parm_ssa_default_def): New.
17603 (align_local_variable, add_stack_var): Support anonymous SSA
17605 (defer_stack_allocation): Likewise. Declare earlier.
17606 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
17607 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
17608 Do no record deferred-allocation marker in
17609 SA.partition_to_pseudo.
17610 (expand_stack_vars): Adjust check for the marker in it.
17611 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
17612 redundant MEM attr setting.
17613 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
17615 (expand_one_stack_var): ... this. New wrapper to check and
17616 skip already expanded SSA partitions.
17617 (record_alignment_for_reg_var): New, factored out of...
17618 (expand_one_var): ... this.
17619 (expand_one_ssa_partition): New.
17620 (adjust_one_expanded_partition_var): New.
17621 (expand_one_register_var): Check and skip already expanded SSA
17623 (expand_used_vars): Don't create DECLs for anonymous SSA
17624 names. Expand all SSA partitions, then adjust all SSA names.
17625 (pass::execute): Replace the loops that set
17626 SA.partition_to_pseudo from partition leaders and cleared
17627 DECL_RTL for multi-location variables, and that which used to
17628 rename vars and set attrs, with one that clears DECL_RTL and
17629 checks that PARMs and RESULTs default_defs match DECL_RTL.
17630 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
17631 * emit-rtl.c: Include stor-layout.h.
17632 (set_reg_attrs_for_parm): Handle NULL decl.
17633 (set_reg_attrs_for_decl_rtl): Take mode from expression if
17635 * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
17636 rather than its possibly-NULL DECL.
17637 * explow.c (promote_ssa_mode): New.
17638 * explow.h (promote_ssa_mode): Declare.
17639 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
17640 (read_complex_part): Export.
17641 * expr.h (read_complex_part): Declare.
17642 * cfgexpand.h (parm_maybe_byref_p): Declare.
17643 * function.c: Include cfgexpand.h.
17644 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
17645 (use_register_for_parm_decl): Wrapper for the above to
17646 special-case the result_ptr.
17647 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
17648 (split_complex_args): Take assign_parm_data_all argument.
17649 Pass it to rtl_for_parm. Set up rtl and context for split
17650 args. Reset complex parm before fetching its default decl
17652 (assign_parms_unsplit_complex): Use the default-def complex
17653 parm rtl if it matches the components.
17654 (assign_parms_augmented_arg_list): Adjust.
17655 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
17656 multiple locations. Recognize split complex args.
17657 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
17658 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
17659 (assign_parm_setup_block): Prefer SSA-assigned location, and
17660 fill in its address if the memory location of a maybe-byref
17661 parm was not assigned by cfgexpand.
17662 (assign_parm_setup_reg): Likewise. Adjust its mode as
17663 needed. Use entry_parm for equiv if stack_parm is NULL. Make
17664 sure passed_pointer parms don't need conversion. Copy address
17665 or value as needed.
17666 (assign_parm_setup_stack): Prefer SSA-assigned location.
17667 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
17668 rtl before testing for pointer bounds. Special-case result_ptr.
17669 (expand_function_start): Maybe reset DECL_RTL of result.
17670 Prefer SSA-assigned location for result and static chain.
17671 Factor out DECL_RESULT and SET_DECL_RTL. Convert static chain
17672 to Pmode if needed, from H.J. Lu <hongjiu.lu@intel.com>.
17673 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
17674 anonymous SSA names. Use promote_ssa_mode.
17675 (get_temp_reg): Likewise.
17676 (remove_ssa_form): Adjust.
17677 * stor-layout.c (layout_decl): Don't set mem attributes of
17679 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
17680 and get its reg_usage for reg invalidation.
17681 (compute_bb_dataflow): Pass it insn.
17682 (emit_notes_in_bb): Likewise.
17684 2015-08-14 Marek Polacek <polacek@redhat.com>
17686 * tree-core.h (tree_base): Fix typo.
17688 2015-08-14 Marek Polacek <polacek@redhat.com>
17690 PR middle-end/67133
17691 * gimple.c (infer_nonnull_range_by_attribute): Check that the
17692 nonnull argument position is not outside function arguments.
17694 2015-08-14 Matthew Wahab <matthew.wahab@arm.com>
17697 * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
17698 'lconst_atomic' with 'const_atomic'.
17699 (atomic_fetch_<optab><mode>): Likewise.
17700 (atomic_<optab>_fetch<mode>): Likewise.
17701 * config/aarch64/iterators.md (lconst-atomic): Move below
17703 (const_atomic): New.
17705 2015-08-14 Thomas Schwinge <thomas@codesourcery.com>
17706 Bernd Schmidt <bernds@codesourcery.com>
17708 * config/nvptx/nvptx.c (nvptx_option_override): Don't override
17710 * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
17711 (DWARF2_DEBUGGING_INFO): Don't define.
17712 * debug.h (dwarf2_lineno_debug_hooks): Declare.
17713 * toplev.c (process_options): Add a case for it.
17714 * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
17715 (dwarf2out_init): Skip most initializations if
17716 DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
17718 * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
17719 DWARF2_LINENO_DEBUGGING_INFO.
17720 * opts.c (set_debug_level): Likewise.
17722 2015-08-14 James Greenhalgh <james.greenhalgh@arm.com>
17724 * config/arm/types.md (is_neon_type): Add missing types.
17726 2015-08-14 Yuri Rumyantsev <ysrumyan@gmail.com>
17728 * config/i386/driver-i386.c (host_detect_local_cpu): Add support
17730 * config/i386/i386.c (PTA_SKYLAKE): New macros.
17731 (processor_alias_table): Add skylake description.
17732 (enum processor_model): Add skylake processor.
17733 (arch_names_table): Add skylake record.
17734 * doc/invoke.texi: Add skylake item.
17736 2015-08-13 Andrew MacLeod <amacleod@redhat.com>
17738 * ira-int.h: Include recog.h.
17739 * ira-build.c: Don't include recog.h.
17740 * ira-color.c: Likewise.
17741 * ira-conflicts.c: Likewise.
17742 * ira-costs.c: Likewise.
17743 * ira-emit.c: Likewise.
17744 * ira-lives.c: Likewise.
17746 * sched-deps.c: Likewise.
17747 * sel-sched.c: Likewise.
17748 * target-globals.c: Likewise.
17750 2015-08-13 Richard Sandiford <richard.sandiford@arm.com>
17753 * reload1.c (elimination_costs_in_insn): Make it obvious to the
17754 compiler that the n_dups and n_operands loop bounds are invariant.
17756 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17758 * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
17759 expressions in A and B.
17761 2015-08-13 Richard Biener <rguenther@suse.de>
17763 * tree.c (nonnull_arg_p): Move from ...
17764 * tree-vrp.c (nonnull_arg_p): ... here.
17765 * tree.h (nonnull_arg_p): Declare.
17766 * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
17767 here, register ptr != 0 for nonnull_arg_p pointer arguments.
17768 Properly initialize static chain and by-reference result pointer.
17769 (run_scc_vn): Adjust.
17771 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
17773 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
17776 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
17778 * config/aarch64/aarch64-protos.h
17779 (aarch64_gen_atomic_cas): Declare.
17780 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
17781 Choose appropriate instruction pattern for the target.
17782 (aarch64_gen_atomic_cas): New.
17783 * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
17784 (atomic_compare_and_swap<mode>_1): Rename to
17785 aarch64_compare_and_swap<mode>. Fix some indentation.
17786 (aarch64_compare_and_swap<mode>_lse): New.
17787 (aarch64_atomic_cas<mode>): New.
17789 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
17791 * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
17794 2015-08-13 Richard Biener <rguenther@suse.de>
17796 PR tree-optimization/67191
17797 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
17798 assert we value-numbered last stmts operand because it can validly
17799 trigger for unreachable code.
17801 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17803 PR rtl-optimization/67103
17804 * ifcvt.c (noce_try_store_flag_constants): Move
17805 x = (-(test != 0) & (b - a)) + a transformation to...
17806 (noce_try_cmove): ... Here. Try it if normal conditional
17809 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
17811 * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
17813 * config/mips/mips.md (processor): Remove w32 and w64.
17815 2015-08-13 Richard Biener <rguenther@suse.de>
17817 PR tree-optimization/66502
17818 PR tree-optimization/67167
17819 * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
17820 backedge arguments.
17821 (vn_phi_lookup): Adjust.
17822 (vn_phi_insert): Likewise.
17823 (visit_phi): Prefer to value-number to another PHI node
17824 over value-numbering to a PHI argument.
17825 (init_scc_vn): Mark DFS back edges.
17827 2015-08-13 Richard Biener <rguenther@suse.de>
17829 * gimple.h (gcall::code_): New constant static member.
17830 (gcond::code_): Likewise.
17831 * gimple.c (gcall::code_): Define.
17832 (gcond::code_): Likewise.
17833 (is_a_helper <const gcond *>): Add.
17834 (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
17835 and forward to a new gcall overload with less checking and a
17836 cheaper way to access the operand.
17837 (gimple_call_lhs_ptr): Likewise.
17838 (gimple_call_set_lhs): Likewise.
17839 (gimple_call_internal_p): Likewise.
17840 (gimple_call_with_bounds_p): Likewise.
17841 (gimple_call_set_with_bounds): Likewise.
17842 (gimple_call_internal_fn): Likewise.
17843 (gimple_call_set_ctrl_altering): Likewise.
17844 (gimple_call_ctrl_altering_p): Likewise.
17845 (gimple_call_fntype): Likewise.
17846 (gimple_call_fn): Likewise.
17847 (gimple_call_fn_ptr): Likewise.
17848 (gimple_call_set_fndecl): Likewise.
17849 (gimple_call_fndecl): Likewise.
17850 (gimple_call_chain): Likewise.
17851 (gimple_call_num_args): Likewise.
17852 (gimple_call_arg): Likewise.
17853 (gimple_call_arg_ptr): Likewise.
17854 (gimple_call_set_arg): Likewise.
17855 (gimple_call_noreturn_p): Likewise.
17856 (gimple_cond_code): Likewise.
17857 (gimple_cond_lhs): Likewise.
17858 (gimple_cond_rhs): Likewise.
17859 (gimple_has_lhs): Reduce checking.
17861 2015-08-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
17863 PR middle-end/25529
17864 * match.pd (div (mult @0 @1) @1) : New simplifier.
17866 2015-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
17869 * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
17870 predicate to allow construction of vector constants using the
17871 VSLDOI vector shift instruction.
17873 * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
17876 * config/rs6000/rs6000.c (vspltis_shifted): New function to return
17877 the number of bytes to be shifted left and filled in with either
17878 all zero or all one bits.
17879 (gen_easy_altivec_constant): Call vsplitis_shifted if no other
17881 (output_vec_const_move): On power8, generate XXLORC to generate
17882 a vector constant with all 1's. Do a split if we need to use a
17883 VSLDOI instruction.
17885 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
17886 properly test for the MSB.
17888 * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
17889 vector constants that can be created with VSLDOI.
17891 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
17894 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
17895 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
17896 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
17897 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
17898 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
17899 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
17900 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
17901 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
17902 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
17904 2015-08-12 Max Filippov <jcmvbkbc@gmail.com>
17906 * config/xtensa/constraints.md (define_constraint "Y"): New
17908 * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
17909 * config/xtensa/linux.h (ASM_SPEC): Likewise.
17910 * config/xtensa/predicates.md (move_operand): Match constants
17911 and symbols in the presence of TARGET_AUTO_LITPOOLS.
17912 * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
17913 immediate references to TLS data.
17914 (xtensa_emit_move_sequence): Don't force constants to memory in
17915 the presence of TARGET_AUTO_LITPOOLS.
17916 (print_operand): Add 'y' format, same as default, but capable of
17917 printing SF mode constants as well.
17918 * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
17919 (movsf_internal): Add movi pattern that loads literal.
17920 (movsf, movdf): Don't force constants to memory in the presence
17921 of TARGET_AUTO_LITPOOLS.
17922 (movdf_internal): Add 'Y' constraint.
17923 * config/xtensa/xtensa.opt (mauto-litpools): New option.
17924 * doc/invoke.text (Xtensa options): Document -mauto-litpools.
17926 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
17928 * config/arm/arm-fpus.def: Replace booleans with feature flags.
17930 * config/arm/arm.c (ARM_FPU): Update macro.
17931 * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
17932 (TARGET_FP16): Likewise.
17933 (TARGET_CRYPTO): Likewise.
17934 (TARGET_NEON): Likewise.
17935 (struct arm_fpu_desc): Remove fields neon, fp16 and crypto. Add
17938 2015-08-12 Tom de Vries <tom@codesourcery.com>
17942 * doc/install.texi: Remove --with_host_libstdcxx item. Update
17943 --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
17944 accordingly. Mention default for --with-stage1-ldflags.
17946 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
17948 * config/arm/arm.h (arm_fpu_feature_set): New.
17949 (ARM_FPU_FSET_HAS): New.
17950 (FPU_FL_NONE): New.
17951 (FPU_FL_NEON): New.
17952 (FPU_FL_FP16): New.
17953 (FPU_FL_CRYPTO): New.
17955 2015-08-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17957 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
17958 after -mcmodel=large -fPIC sorry.
17960 2015-08-12 Richard Biener <rguenther@suse.de>
17962 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
17963 comparison operand order and commutative ternary op operand order.
17964 (sccvn_dom_walker::cond_stack): New state to track temporary
17966 (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
17968 (sccvn_dom_walker::record_cond): Add a single temporary conditional
17970 (sccvn_dom_walker::record_conds): Add a temporary conditional
17971 expressions and all related expressions also true/false.
17972 (sccvn_dom_walker::before_dom_children): Record temporary
17973 expressions based on the controlling condition of a single
17974 predecessor. When trying to simplify a conditional statement
17975 lookup expressions we might have inserted earlier.
17977 2015-08-12 Yvan Roux <yvan.roux@linaro.org>
17980 * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
17981 to ARM core registers.
17983 2015-08-12 Nathan Sidwell <nathan@acm.org>
17985 * tree-vrp.c (simplify_min_or_max_using_ranges): New.
17986 (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
17988 2015-08-12 Simon Dardis <simon.dardis@imgtec.com>
17990 * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
17991 line with comments.
17992 * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
17994 2015-08-12 Richard Biener <rguenther@suse.de>
17996 * gimple.h (remove_pointer): New trait.
17997 (GIMPLE_CHECK2): New inline template function.
17998 (gassign::code_): New constant static member.
17999 (is_a_helper<const gassign *>): Add.
18000 (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
18001 and forward to a new gassign overload with less checking and a
18002 cheaper way to access the operand.
18003 (gimple_assign_lhs_ptr): Likewise.
18004 (gimple_assign_set_lhs): Likewise.
18005 (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
18007 (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
18009 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
18011 (gimple_assign_rhs_code): Likewise.
18012 * gimple.c (gassign::code_): Define.
18014 2015-08-12 Richard Biener <rguenther@suse.de>
18016 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
18017 Eliminate edges marked as not executable by SCCVN.
18018 * tree-ssa-sccvn.c: Include gimple-iterator.h.
18019 (cond_dom_walker): Rename to sccvn_dom_walker.
18020 (sccvn_dom_walker::before_dom_children): Value-number defs
18022 (run_scc_vn): Remove loop value-numbering all SSA names.
18023 Drop not visited SSA names to varying.
18025 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
18027 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
18028 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
18029 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
18030 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
18031 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
18032 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
18033 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
18034 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
18035 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
18037 2015-08-11 Uros Bizjak <ubizjak@gmail.com>
18040 * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
18041 to enum feature_priority and feature_list.
18042 (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
18043 and isa_names_table.
18045 2015-08-11 Yuri Rumyantsev <ysrumyan@gmail.com>
18047 * tree-vect-stmts.c (vectorizable_shift): Add missed test on
18048 vect_induction_def.
18050 2015-08-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
18054 * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
18055 account when deciding what was the command-line status.
18057 2015-08-11 Nathan Sidwell <nathan@acm.org>
18059 * tree-vrp.c (simplify_abs_using_ranges): Simplify.
18061 * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
18062 we're not the only contributor to target phi.
18064 2015-08-11 Jiong Wang <jiong.wang@arm.com>
18066 * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
18069 2015-08-11 Tom de Vries <tom@codesourcery.com>
18071 * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
18073 2015-08-10 H.J. Lu <hongjiu.lu@intel.com>
18075 * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
18077 * config/i386/i386.md (cpu): Remove knl.
18079 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
18082 PR middle-end/66332
18083 * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
18084 open-coded sequence.
18085 * omp-low.c (oacc_process_reduction_data): Remove handline of
18086 GOMP_DEVICE_HOST_NONSHM.
18088 * lto-streamer-in.c (lto_input_mode_table): Adjust to
18089 GET_MODE_INNER changes.
18091 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
18092 Ilya Verbin <ilya.verbin@intel.com>
18094 * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
18096 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
18098 * doc/options.texi (EnabledBy): Document that the argument must be
18100 * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
18101 Not enabled by -Wall.
18102 * optc-gen.awk: Give nicer error messages. Detect if the argument
18103 of EnabledBy is not a Common option.
18104 * common.opt (Wnull-dereference): Not enabled by -Wall.
18105 * opt-functions.awk (lang_enabled_by): Nicer error messages.
18107 2015-08-09 H.J. Lu <hongjiu.lu@intel.com>
18109 * config/i386/driver-i386.c (host_detect_local_cpu): Treat
18110 model == 0x4f as Broadwell.
18112 2015-08-08 Segher Boessenkool <segher@kernel.crashing.org>
18114 PR rtl-optimization/67028
18115 * combine.c (simplify_comparison): Fix comment. Rearrange code.
18116 Add test to see if a const_int fits in the new mode.
18118 2015-08-07 DJ Delorie <dj@redhat.com>
18120 * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
18122 2015-08-07 H.J. Lu <hongjiu.lu@intel.com>
18124 PR rtl-optimization/67029
18125 * ira-color.c: Include "recog.h" before including "ira-int.h".
18126 * target-globals.c: Likewise.
18127 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
18128 adds an alternative_mask argument and use it instead of
18129 preferred_alternatives.
18130 * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
18131 * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
18132 * sched-deps.c: Include "ira-int.h" after including "ira.h".
18133 (sched_analyze_insn): Update call to
18134 ira_implicitly_set_insn_hard_regs.
18135 * sel-sched.c: Include "ira-int.h" after including "ira.h".
18136 (implicit_clobber_conflict_p): Update call to
18137 ira_implicitly_set_insn_hard_regs.
18139 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
18141 * Makefile.in (.INTERMEDIATE): Add gpl.pod.
18143 2015-08-07 Kaz Kojima <kkojima@gcc.gnu.org>
18146 * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
18147 currently_expanding_to_rtl is set.
18149 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
18151 * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
18152 * configure: Regenerate.
18154 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18155 Jiong Wang <jiong.wang@arm.com>
18157 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
18158 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
18159 (REG_CLASS_NAMES): Likewise.
18160 (REG_CLASS_CONTENTS): Likewise.
18161 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
18162 (aarch64_register_move_cost): Likewise.
18163 (aarch64_load_symref_appropriately): Invoke the new added pattern if
18165 * config/aarch64/constraints.md (Uc0): New constraint.
18167 2015-08-06 Jiong Wang <jiong.wang@arm.com>
18169 * config/aarch64/constraints.md (Usf): Add the test of
18170 aarch64_is_noplt_call_p.
18172 2015-08-06 Jiong Wang <jiong.wang@arm.com>
18174 * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
18176 * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
18177 * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
18178 (call_symbol): Likewise.
18180 2015-08-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
18182 * tree-vect-patterns.c (vect_recog_mult_pattern): New function
18183 for vectorizing multiplication patterns.
18184 * tree-vectorizer.h: Adjust the number of patterns.
18186 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
18188 * config/i386/sse.md (*vec_concatv2df): Declare added
18189 alternatives as sselog type.
18191 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18193 * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
18196 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18198 * config/s390/s390.c (s390_expand_tbegin): Expand either
18199 tbegin_1_z13 or tbegin_1 depending on VX flag.
18200 * config/s390/s390.md ("tbegin_1_z13"): New expander.
18202 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18204 * config/s390/s390.opt: Clarify description for -mzvector
18205 * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
18208 2015-08-06 Richard Biener <rguenther@suse.de>
18210 * gimple.h (gimple_call_set_fn): Access op member directly.
18211 (gimple_call_chain_ptr): Likewise.
18212 (gimple_call_set_chain): Likewise.
18213 (gimple_cond_lhs_ptr): Likewise.
18214 (gimple_cond_set_lhs): Likewise.
18215 (gimple_cond_rhs_ptr): Likewise.
18216 (gimple_cond_set_rhs): Likewise.
18217 (gimple_cond_true_label): Likewise.
18218 (gimple_cond_set_true_label): Likewise.
18219 (gimple_cond_set_false_label): Likewise.
18220 (gimple_cond_false_label): Likewise.
18221 (gimple_label_label): Likewise.
18222 (gimple_label_set_label): Likewise.
18223 (gimple_goto_set_dest): Likewise.
18224 (gimple_asm_input_op): Likewise.
18225 (gimple_asm_input_op_ptr): Likewise.
18226 (gimple_asm_set_input_op): Likewise.
18227 (gimple_asm_output_op): Likewise.
18228 (gimple_asm_output_op_ptr): Likewise.
18229 (gimple_asm_set_output_op): Likewise.
18230 (gimple_asm_clobber_op): Likewise.
18231 (gimple_asm_set_clobber_op): Likewise.
18232 (gimple_asm_label_op): Likewise.
18233 (gimple_asm_set_label_op): Likewise.
18234 (gimple_switch_index): Likewise.
18235 (gimple_switch_index_ptr): Likewise.
18236 (gimple_return_retval_ptr): Likewise.
18237 (gimple_return_retval): Likewise.
18238 (gimple_return_set_retval): Likewise.
18239 (gimple_switch_set_index): Likewise. Remove superfluous GIMPLE_CHECK.
18240 (gimple_switch_label): Likewise.
18241 (gimple_switch_set_label): Likewise.
18243 2015-08-06 Richard Biener <rguenther@suse.de>
18245 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
18246 bool comparison canonicalization and restrict to integers.
18248 2015-08-05 Andrew MacLeod <amacleod@redhat.com>
18250 * coretypes.h (enum symbol_visibility): Relocate here.
18251 * flag-types.h (enum symbol_visibility): Remove.
18252 * tree-core.h (enum symbol_visibility): Remove.
18254 2015-08-05 Lynn Boger <laboger@linux.vnet.ibm.com>
18257 * config/rs6000/rs6000.c (rs6000_emit_prologue): Check
18258 for no_split_stack function attribute along with
18260 (rs6000_expand_split_stack_prologue): Likewise.
18262 2015-08-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
18263 Jeff Law <law@redhat.com>
18266 * doc/invoke.texi (Wnull-dereference): New.
18267 * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
18268 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
18269 Warn for potential NULL dereferences.
18270 (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
18271 * ubsan.c (instrument_nonnull_arg): Call
18272 infer_nonnull_range_by_attribute.
18273 (instrument_nonnull_return): Likewise.
18274 * common.opt (Wnull-dereference); New.
18275 * gimple.c (infer_nonnull_range): Remove bool arguments.
18276 (infer_nonnull_range_by_dereference): New.
18277 (infer_nonnull_range_by_attribute): New.
18278 * gimple.h: Update declarations.
18280 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
18282 * gensupport.c (sequence_num): Replace with...
18283 (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
18284 ...these new variables.
18285 (init_rtx_reader_args_cb): Update accordingly.
18286 (get_num_code_insns): Likewise.
18287 (read_md_rtx): Rework to use a while loop and get_c_test.
18288 Use the new counters. Remove redundant DEFINE_SUBST case.
18289 * genoutput.c (gen_split): Delete.
18290 (main): Don't call it.
18292 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
18294 * gensupport.h (get_c_test): Declare.
18295 * gensupport.c (get_c_test): New function.
18296 * genconditions.c (main): Use it.
18297 * genrecog.c (validate_pattern): Likewise.
18298 (match_pattern_1): Likewise. Remove c_test argument.
18299 (match_pattern): Update accordingly and remove c_test argument.
18300 (main): Update accordingly.
18302 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
18304 * gensupport.h (get_num_insn_codes): Declare.
18305 * gensupport.c (get_num_insn_codes): New function.
18306 * genattrtab.c (optimize_attrs): Rename max_insn_code to
18308 (main): Likewise. Use get_num_insn_codes.
18309 * gencodes.c (main): Remove "last" and use get_num_insn_codes.
18311 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
18313 PR middle-end/66311
18314 * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
18315 is zero- rather than sign-extended.
18317 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
18319 * target-insns.def (can_extend): Delete.
18321 2015-08-05 Richard Biener <rguenther@suse.de>
18323 PR tree-optimization/67121
18324 * tree-if-conv.c (combine_blocks): Clear range-info produced
18325 by stmts no longer executed conditionally.
18327 2015-08-05 Nick Clifton <nickc@redhat.com>
18329 * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
18330 to allow identical far pointers to remain.
18332 2015-08-05 Richard Biener <rguenther@suse.de>
18334 PR middle-end/67120
18335 * match.pd: Compare address bases with == if they are decls
18336 or SSA names, not operand_equal_p. Otherwise fail.
18338 2015-08-05 Richard Biener <rguenther@suse.de>
18340 PR tree-optimization/67055
18341 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
18344 * g++.dg/torture/pr67055.C: New testcase.
18346 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
18348 * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
18350 (define_attr "enabled"): Handle avx521vl and noavx512vl.
18351 * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
18352 AVX-512 alternative out of SSE.
18353 (define_insn "*vec_concatv2df"): Ditto.
18355 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
18357 * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
18358 CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
18359 CODE_FOR_avx_ptestv4di.
18360 * config/i386/sse.md (define_mode_iterator V_AVX): New.
18361 (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
18362 (define_insn "avx_ptest256"): Merge this ...
18363 (define_insn "sse4_1_ptest"): And this ...
18364 (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
18366 2015-08-05 Richard Biener <rguenther@suse.de>
18368 PR tree-optimization/67109
18369 * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
18370 against too big groups. Print whether this is a load or store
18371 group. Rename from ...
18372 (vect_analyze_group_access): ... this which is now a wrapper
18373 dissolving an invalid group.
18374 (vect_analyze_data_ref_accesses): Print whether this is a load
18377 2015-08-05 Richard Biener <rguenther@suse.de>
18379 PR middle-end/67107
18380 * match.pd: Guard const_binop result checking against NULL_TREE
18383 2015-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
18385 * cse.c (cse_insn): Restoring old behaviour for src_eqv
18386 when dest and value in the REG_EQUAL are same and dest
18387 is STRICT_LOW_PART.
18389 2015-08-04 Anatoly Sokolov <aesok@post.ru>
18391 * config/moxie/moxie.h (PRINT_OPERAND,
18392 PRINT_OPERAND_ADDRESS): Remove macros.
18393 * config/moxie/moxie-protos.h (moxie_print_operand,
18394 moxie_print_operand_address): Remove declaration.
18395 * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
18396 TARGET_PRINT_OPERAND_ADDRESS): Define.
18397 (moxie_print_operand, moxie_print_operand_address): Make static.
18399 2015-08-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
18402 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
18403 (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
18405 2015-08-04 Richard Biener <rguenther@suse.de>
18407 * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
18409 (dt_operand::gen_gimple_expr): Adjust.
18411 2015-08-04 Richard Biener <rguenther@suse.de>
18413 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
18414 bool compares on RHS.
18415 * match.pd: Add X ==/!= !X is false/true pattern.
18417 2015-08-04 Pawel Kupidura <pawel.kupidura@arm.com>
18419 * config/aarch64/aarch64.c: Change inner loop statement cost
18420 to be consistent with other targets.
18422 2015-08-04 Christophe Lyon <christophe.lyon@linaro.org>
18424 * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
18427 2015-08-04 Nathan Sidwell <nathan@codesourcery.com>
18429 * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
18430 (machine_function): Remove pseudos field.
18432 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18434 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
18435 Exit early and use target_option_current_node if processing current
18438 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18440 * doc/extend.texi (AArch64 Function Attributes): New node.
18441 (AArch64 Pragmas): Likewise.
18443 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18445 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
18446 Initialize simd builtins if TARGET_SIMD.
18447 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
18448 Make sure that the builtins are initialized only once no matter how
18449 many times the function is called.
18450 (aarch64_init_builtins): Unconditionally initialize crc builtins.
18451 (aarch64_relayout_simd_param): New function.
18452 (aarch64_simd_expand_args): Use above during argument expansion.
18453 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
18454 simd builtins if TARGET_SIMD.
18455 * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
18457 (aarch64_relayout_simd_types): Likewise.
18459 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18461 * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
18462 * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
18463 (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
18464 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
18466 (aarch64_reset_previous_fndecl): New function.
18467 (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
18469 * config/aarch64/aarch64-c.c: New file.
18470 * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
18471 Push and pop options at beginning and end. Remove ifdef
18472 __ARM_FEATURE_CRC32.
18473 * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
18474 Add pragma +nothing+simd and +nothing+crypto where appropriate.
18475 * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
18476 * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
18478 (aarch64_register_pragmas): Likewise.
18479 (aarch64_reset_previous_fndecl): Likewise.
18480 (aarch64_process_target_attr): Likewise.
18481 (aarch64_override_options_internal): Likewise.
18483 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18485 * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
18487 (aarch64_can_inline_p): Likewise.
18488 (TARGET_CAN_INLINE_P): Define.
18490 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18492 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
18493 Remove static. Handle OPT_mgeneral_regs_only,
18494 OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
18495 OPT_momit_leaf_frame_pointer.
18496 * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
18497 (aarch64_attr_opt_type): New enum.
18498 (aarch64_attribute_info): New struct.
18499 (aarch64_handle_attr_arch): New function.
18500 (aarch64_handle_attr_cpu): Likewise.
18501 (aarch64_handle_attr_tune): Likewise.
18502 (aarch64_handle_attr_isa_flags): Likewise.
18503 (aarch64_attributes): New table.
18504 (aarch64_process_one_target_attr): New function.
18505 (num_occurences_in_str): Likewise.
18506 (aarch64_process_target_attr): Likewise.
18507 (aarch64_option_valid_attribute_p): Likewise.
18508 (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
18509 * config/aarch64/aarch64-protos.h: Include input.h
18510 (aarch64_handle_option): Declare prototype.
18512 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18514 * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
18515 * config/aarch64/aarch64.c: Include target-globals.h
18516 (aarch64_previous_fndecl): New variable.
18517 (aarch64_set_current_function): New function.
18518 (TARGET_SET_CURRENT_FUNCTION): Define.
18520 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18522 * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
18523 (explicit_arch): Likewise.
18524 (x_aarch64_isa_flags): Likewise.
18525 (mgeneral-regs-only): Mark as Save.
18526 (mfix-cortex-a53-835769): Likewise.
18527 (mcmodel=): Likewise.
18528 (mstrict-align): Likewise.
18529 (momit-leaf-frame-pointer): Likewise.
18530 (mtls-dialect): Likewise.
18531 (master=): Likewise.
18532 * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
18533 (aarch64_isa_flags): Remove extern declaration.
18534 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
18535 to indicate success or failure.
18536 (aarch64_validate_march): Likewise.
18537 (aarch64_validate_mtune): Likewise.
18538 (aarch64_isa_flags): Delete.
18539 (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
18540 instead of aarch64_isa_flags.
18541 (aarch64_get_tune_cpu): New function.
18542 (aarch64_get_arch): Likewise.
18543 (aarch64_override_options): Use above and set up explicit_tune_core
18545 (aarch64_print_extension): Move earlier in file. Add isa_flags
18546 argument and use that instead of the global aarch64_isa_flags.
18547 (aarch64_option_save): New function.
18548 (aarch64_option_restore): Likewise.
18549 (aarch64_option_print): Likewise.
18550 (aarch64_declare_function_name): Likewise.
18551 (aarch64_start_file): Delete.
18552 (TARGET_ASM_FILE_START): Do not define.
18553 (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
18554 * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
18557 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18559 * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
18560 flag_omit_leaf_frame_pointer to 2.
18562 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18564 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
18566 (TARGET_FIX_ERR_A53_835769): New macro.
18567 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
18568 handling of opts->x_aarch64_fix_a53_err835769.
18569 (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
18570 than aarch64_fix_a53_err835769.
18571 * config/aarch64/aarch64-elf-raw.h: Update for above changes.
18572 * config/aarch64/aarch64-linux.h: Likewise.
18574 2015-08-04 Uros Bizjak <ubizjak@gmail.com>
18576 * config/i386/i386.c (ix86_expand_int_movcc): Check result of
18577 ix86_expand_int_movcc as boolean.
18579 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18581 * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
18582 (aarch64_cpu_string): Likewise.
18583 (aarch64_tune_string): Likewise.
18584 * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
18585 (aarch64_parse_extension): Return aarch64_parse_opt_result.
18586 Add extra argument to put result into.
18587 (aarch64_parse_arch): Likewise. Do not set selected_cpu.
18588 (aarch64_parse_cpu): Add arguments to put results into. Return
18589 aarch64_parse_opt_result.
18590 (aarch64_parse_tune): Likewise.
18591 (aarch64_override_options_after_change_1): New function.
18592 (aarch64_override_options_internal): New function.
18593 (aarch64_validate_mcpu): Likewise.
18594 (aarch64_validate_march): Likewise.
18595 (aarch64_validate_mtune): Likewise.
18596 (aarch64_override_options): Update to reflect above changes.
18597 Move some logic into aarch64_override_options_internal.
18598 Initialize target_option_default_node and target_option_current_node.
18599 (aarch64_override_options_after_change): Move logic into
18600 aarch64_override_options_after_change_1 and call it with global_options.
18601 (initialize_aarch64_code_model): Take a gcc_options pointer and use the
18602 flag values from that.
18604 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18606 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
18607 __ARM_ARCH_8A directly rather than with cpp_define_formatted.
18608 * config/aarch64/aarch64.c (struct processor): Add arch field.
18609 (all_architectures): Handle above, move above all_cores.
18610 (all_cores): Handle above.
18611 (aarch64_parse_arch): Handle above changes.
18612 * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
18613 above. Update comments.
18614 (armv8.1-a): Likewise.
18615 * config/aarch64/aarch64-cores.def: Update according to above.
18616 * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
18617 * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
18618 aarch64_arch_driver_info.
18620 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18622 * config/aarch64/aarch64.c (struct processor): Add ident field.
18623 Rename core sched_core.
18624 (all_cores): Handle above changes.
18625 (all_architectures): Likewise.
18626 (aarch64_parse_arch): Likewise.
18627 (aarch64_override_options): Likewise.
18629 2015-08-04 Richard Biener <rguenther@suse.de>
18631 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
18632 dispatching to fold_binary for GIMPLE_BINARY_RHS and for
18633 comparisons embedded in [VEC_]COND_EXPRs.
18635 2015-08-03 Abe Skolnik <a.skolnik@samsung.com>
18637 * tree-if-conv.c: Fix various typos in comments.
18638 * tree-vect-stmts.c: Likewise.
18640 2015-08-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
18642 PR tree-optimization/67043
18643 * loop-invariant.c (move_invariant_reg): Recompute luids in loop
18644 preheader after hoisting invariant in it.
18645 (find_defs): Force recomputation of all luids.
18647 2015-08-03 Peter Bergner <bergner@vnet.ibm.com>
18649 * config/rs6000/htm.md (tabort.): Restrict the source operand to
18650 using a base register.
18652 2015-08-03 David Malcolm <dmalcolm@redhat.com>
18654 * main.c (main): Pass in NULL for toplev's external_timer.
18655 * timevar.c: Include coretypes.h.
18656 (class timer::named_items): New.
18657 (timer::named_items::named_items): New.
18658 (timer::named_items::~named_items): New.
18659 (timer::named_items::push): New.
18660 (timer::named_items::pop): New.
18661 (timer::named_items::print): New.
18662 (timer::timer): Initialize field "m_jit_client_items".
18663 (timer::~timer): New.
18664 (timer::push): Move bulk of implementation to...
18665 (timer::push_internal): ...here. New function.
18666 (timer::pop): Move bulk of implementation to...
18667 (timer::pop_internal): ...here. New function.
18668 (timer::push_client_item): New.
18669 (timer::pop_client_item): New.
18670 (timer::print_row): New function, taken from timer::print.
18671 (timer::print): Print "GCC items" header if we also have client
18672 items. Move row-printing to timer::print_row. Print any client
18674 (timer::get_topmost_item_name): New method.
18675 * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
18676 (TV_JIT_CLIENT_CODE): New.
18677 * timevar.h (timer::push_client_item): New declaration.
18678 (timer::pop_client_item): New declaration.
18679 (timer::get_topmost_item_name): New method.
18680 (timer::push_internal): New declaration.
18681 (timer::pop_internal): New declaration.
18682 (timer::print_row): New declaration.
18683 (timer::named_items): New declaration.
18684 (timer::m_jit_client_items): New field.
18685 (timer): Add friend class named_items.
18686 (auto_timevar::auto_timevar): Add timer param.
18687 (auto_timevar::~auto_timevar): Use field "m_timer".
18688 (auto_timevar::m_timer): New field.
18689 * toplev.c (initialize_rtl): Add g_timer as param when
18690 constructing auto_timevar instance.
18691 (toplev::toplev): Add "external_timer" param, and use it to
18692 initialize the "g_timer" global if non-NULL.
18693 (toplev::~toplev): If this created "g_timer", delete it.
18694 * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
18695 with "external_timer" timer *.
18697 2015-08-03 Alexander Basov <coohpt@gmail.com>
18699 PR middle-end/64744
18700 PR middle-end/48470
18701 PR middle-end/43404
18702 * cfgexpand.c (expand_one_var): Add check if stack is going to
18703 be used in naked function.
18704 * expr.c (expand_expr_addr_expr_1): Remove excess checking
18705 whether expression should not reside in MEM.
18706 * function.c (use_register_for_decl): Do not use registers for
18707 non-register things (volatile, float, BLKMode) in naked functions.
18709 2015-08-03 John David Anglin <danglin@gcc.gnu.org>
18712 * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
18713 Adjust splits to match new pattern.
18715 2015-08-03 Michael Meissner <meissner@linux.vnet.ibm.com>
18717 * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
18720 (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
18721 point in VSX registers.
18723 * config/rs6000/constraints.md (wb constraint): Document unused
18725 (we constraint): Likewise.
18726 (wo constraint): Likewise.
18727 (wp constraint): New constraint for IEEE 128-bit floating point in
18729 (wq constraint): Likewise.
18731 * config/rs6000/predicates.md (easy_fp_constant): Add support for
18732 IEEE 128-bit floating point in VSX registers.
18733 (easy_scalar_constant): Likewise.
18735 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
18736 constraints (wp, wq) for IEEE 128-bit floating point in VSX
18738 (rs6000_init_hard_regno_mode_ok): Likewise.
18740 * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
18741 floating point in VSX registers.
18744 (VSX_M2): Likewise.
18750 (vsx_le_permute_<mode>): Add support to properly swap bytes for
18751 IEEE 128-bit floating point in VSX registers on little endian.
18752 (vsx_le_undo_permute_<mode>): Likewise.
18753 (vsx_le_perm_load_<mode>): Likewise.
18754 (vsx_le_perm_store_<mode>): Likewise.
18755 (splitters for IEEE 128-bit fp moves): Likewise.
18757 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
18760 * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
18761 floating point in VSX registers.
18764 * doc/md.text (Machine Constraints): Document wp and wq
18765 constraints on PowerPC.
18767 2015-08-03 Jeff Law <law@redhat.com>
18769 PR middle-end/66314
18770 PR gcov-profile/66899
18771 * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
18772 iterate over the jump threading paths when an element in the
18773 jump threading paths array is eliminated.
18775 2015-08-03 Segher Boessenkool <segher@kernel.crashing.org>
18777 * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
18779 2015-08-03 Patrick Palka <ppalka@gcc.gnu.org>
18781 * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
18782 is_use_properly_guarded the variable def_preds. Free its
18783 contents before returning.
18784 (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
18785 (is_use_properly_guarded): Replace local variable def_preds with
18786 a parameter. Adjust accordingly. Only update *def_preds if it's
18789 2015-08-03 Richard Biener <rguenther@suse.de>
18791 * genmatch.c (simplify::for_subst_vec): New member.
18792 (binary_ok): New helper for for lowering.
18793 (lower_for): Delay substituting operators into result expressions
18794 if we can merge the results eventually again.
18795 (capture_info::walk_result): Adjust for user_id appearing as
18796 result expression operator.
18797 (expr::gen_transform): Likewise.
18798 (dt_simplify::gen_1): Likewise.
18799 (dt_simplify::gen): Pass not substituted operators to tail
18800 functions or initialize local variable with it.
18801 (decision_tree::gen): Adjust function signature.
18802 * match.pd: Fix tests against global code and add default
18803 cases to switch stmts.
18805 2015-08-03 Richard Biener <rguenther@suse.de>
18807 * genmatch.c (dt_simplify::gen): Create captures array
18808 with an initializer.
18810 2015-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18812 * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
18813 the host compiler is affected by placement new aliasing bug.
18814 * configure: Regenerate.
18815 * Makefile.in (ALIASING_FLAGS): New variable.
18816 (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
18818 2015-08-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
18821 * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
18822 (negmulsf3_vfp): Likewise.
18823 (muldf3negdf_vfp): Disable for -frounding-math.
18824 (mulsf3negsf_vfp): Likewise.
18825 * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
18826 fix MULT cost with -frounding-math.
18828 2015-08-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18830 * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
18831 when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
18832 explicit. Prefer to add the flag whenever possible.
18833 (noce_process_if_block): Try noce_try_store_flag_constants before
18836 2015-08-03 Richard Biener <rguenther@suse.de>
18838 * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
18839 New hash-map to record equivalent transforms.
18840 (dt_node::analyze): Populate the equivalent transforms hash-map.
18841 (dt_simplify::info): Add reference to hash-map entry.
18842 (dt_simplify::gen): If we have split out a function for the
18843 transform, generate a call to it.
18844 (sinfo_hashmap_traits::hash): New function.
18845 (compare_op): New helper function for ...
18846 (sinfo_hashmap_traits::equal_keys): ... this new function.
18847 (decision_tree::gen): Split out common equivalent transforms
18850 2015-08-03 Richard Biener <rguenther@suse.de>
18852 * gimple-fold.c (fold_gimple_assign): Remove folding of
18853 the comparison in COND_EXPRs.
18855 2015-08-03 Richard Biener <rguenther@suse.de>
18857 * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
18858 on the rhs of assignments first simplify the embedded
18861 2015-08-03 Richard Biener <rguenther@suse.de>
18863 PR tree-optimization/66917
18864 * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
18866 (DR_VECT_AUX): New macro.
18867 (set_dr_misalignment): Adjust.
18868 (dr_misalignment): Likewise.
18869 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
18870 Compute whether the base is at least element aligned.
18871 * tree-vect-stmts.c (ensure_base_align): Adjust.
18872 (vectorizable_store): If the base is not element aligned
18873 preserve alignment of the original access if misalignment is unknown.
18874 (vectorizable_load): Likewise.
18876 2015-08-02 Martin Sebor <msebor@redhat.com>
18878 * doc/invoke.texi (Wframe-address): Document it.
18879 * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
18880 Clarify possible effects of calling the functions with non-zero
18881 arguments and mention -Wframe-address.
18882 * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
18884 2015-08-01 Michael Collison <michael.collison@linaro.org
18885 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
18887 * config/arm/arm.md (*arm_smin_cmp): New pattern.
18888 (*arm_umin_cmp): Likewise.
18890 2015-08-01 Caroline Tice <cmtice@google.com>
18893 * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
18895 (vtbl_find_mangled_name): New function.
18896 (vtbl_register_mangled_name): New function.
18897 (vtbl_map_get_node): If DECL_ASSEMBLER_NAME is "<anon>", look up
18898 mangled name in mangled name vectors.
18899 (find_or_create_vtbl_map_node): Ditto.
18900 (var_is_used_for_virtual_call_p): Add recursion_depth parameter;
18901 update recursion_depth on function entry; pass it to every recursive
18902 call; automatically exit if depth > 25 (give up looking at that point).
18903 (verify_bb_vtables): Initialize recursion_depth and pass it to
18904 var_is_used_for_virtual_call_p.
18905 * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
18906 global variable decls.
18907 (vtbl_register_mangled_name): New extern function decl.
18909 2015-08-01 Tom de Vries <tom@codesourcery.com>
18911 * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
18913 * tree.h (operation_can_overflow, operation_no_trapping_overflow):
18915 * tree-vect-loop.c (vect_is_simple_reduction_1): Use
18916 operation_no_trapping_overflow. Allow non-overflow operations.
18917 * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
18920 2015-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
18923 * config/sh/sh.md (GOTaddr2picreg): Fix typo.
18925 2015-07-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18927 * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
18928 Enable for TARGET_32BIT.
18929 (*if_move_neg): Likewise.
18931 2015-07-31 Nick Clifton <nickc@redhat.com>
18933 * config/m32r/m32r.c (m32r_attribute_identifier): New function.
18934 Returns true for __model__.
18935 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
18937 2015-07-31 Alan Modra <amodra@gmail.com>
18940 * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
18941 (rs6000_emit_prologue): Set it.
18942 (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
18944 2015-07-31 Richard Biener <rguenther@suse.de>
18946 * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
18947 -> X == (C1 ^ C2) which is already implemented in match.pd.
18948 Remove redundant dispatching to fold_relational_const.
18949 Move unordered self and NaN compares ...
18950 * match.pd: ... as patterns here. Remove some stray captures
18953 2015-07-31 Petr Murzin <petr.murzin@intel.com>
18955 * config/i386/i386.c
18956 (bdesc_special_args): Convert mask type from signed to unsigned for
18958 (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
18959 UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
18960 V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
18961 V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
18962 V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
18963 V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
18964 V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
18965 V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
18966 V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
18967 HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
18968 V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
18969 V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
18970 V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
18971 V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
18972 V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
18973 V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
18974 V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
18975 V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
18976 V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
18977 V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
18978 V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
18979 HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
18980 VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
18981 V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
18982 * config/i386/i386-builtin-types.def
18983 (V16QI_FTYPE_V16SI): Remove.
18984 (V8DF_FTYPE_V8SI): Ditto.
18985 (V8HI_FTYPE_V8DI): Ditto.
18986 (V8SI_FTYPE_V8DI): Ditto.
18987 (V8SF_FTYPE_V8DF): Ditto.
18988 (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
18989 (V16HI_FTYPE_V16SI): Ditto.
18990 (V16SF_FTYPE_V16HI): Ditto.
18991 (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
18992 (V16SF_FTYPE_V16SI): Ditto.
18993 (V4DI_FTYPE_V4DI): Ditto.
18994 (V16SI_FTYPE_V16SF): Ditto.
18995 (V16SF_FTYPE_FLOAT): Ditto.
18996 (V8DF_FTYPE_DOUBLE): Ditto.
18997 (V8DI_FTYPE_INT64): Ditto.
18998 (V8DI_FTYPE_V4DI): Ditto.
18999 (V16QI_FTYPE_V8DI): Ditto.
19000 (UINT_FTYPE_V4SF): Ditto.
19001 (UINT64_FTYPE_V4SF): Ditto.
19002 (UINT_FTYPE_V2DF): Ditto.
19003 (UINT64_FTYPE_V2DF): Ditto.
19004 (V16SI_FTYPE_V16SI): Ditto.
19005 (V8DI_FTYPE_V8DI): Ditto.
19006 (V16SI_FTYPE_PV4SI): Ditto.
19007 (V16SF_FTYPE_PV4SF): Ditto.
19008 (V8DI_FTYPE_PV2DI): Ditto.
19009 (V8DF_FTYPE_PV2DF): Ditto.
19010 (V4DI_FTYPE_PV2DI): Ditto.
19011 (V4DF_FTYPE_PV2DF): Ditto.
19012 (V16SI_FTYPE_PV2SI): Ditto.
19013 (V16SF_FTYPE_PV2SF): Ditto.
19014 (V8DI_FTYPE_PV4DI): Ditto.
19015 (V8DF_FTYPE_PV4DF): Ditto.
19016 (V8SF_FTYPE_FLOAT): Ditto.
19017 (V4SF_FTYPE_FLOAT): Ditto.
19018 (V4DF_FTYPE_DOUBLE): Ditto.
19019 (V8SF_FTYPE_PV4SF): Ditto.
19020 (V8SI_FTYPE_PV4SI): Ditto.
19021 (V4SI_FTYPE_PV2SI): Ditto.
19022 (V8SF_FTYPE_PV2SF): Ditto.
19023 (V8SI_FTYPE_PV2SI): Ditto.
19024 (V16SF_FTYPE_PV8SF): Ditto.
19025 (V16SI_FTYPE_PV8SI): Ditto.
19026 (V8DI_FTYPE_V8SF): Ditto.
19027 (V4DI_FTYPE_V4SF): Ditto.
19028 (V2DI_FTYPE_V4SF): Ditto.
19029 (V64QI_FTYPE_QI): Ditto.
19030 (V32HI_FTYPE_HI): Ditto.
19031 (V8UHI_FTYPE_V8UHI): Ditto.
19032 (V16UHI_FTYPE_V16UHI): Ditto.
19033 (V32UHI_FTYPE_V32UHI): Ditto.
19034 (V2UDI_FTYPE_V2UDI): Ditto.
19035 (V4UDI_FTYPE_V4UDI): Ditto.
19036 (V8UDI_FTYPE_V8UDI): Ditto.
19037 (V4USI_FTYPE_V4USI): Ditto.
19038 (V8USI_FTYPE_V8USI): Ditto.
19039 (V16USI_FTYPE_V16USI): Ditto.
19040 (V2DF_FTYPE_V2DF_UINT64): Ditto.
19041 (V2DI_FTYPE_V2DF_V2DF): Ditto.
19042 (V2UDI_FTYPE_V4USI_V4USI): Ditto.
19043 (V8DF_FTYPE_V8DF_V8DI): Ditto.
19044 (V4SF_FTYPE_V4SF_UINT64): Ditto.
19045 (V4SI_FTYPE_V4SF_V4SF): Ditto.
19046 (V16SF_FTYPE_V16SF_V16SI): Ditto.
19047 (V64QI_FTYPE_V32HI_V32HI): Ditto.
19048 (V32HI_FTYPE_V16SI_V16SI): Ditto.
19049 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
19050 (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
19051 (V32HI_FTYPE_V64QI_V64QI): Ditto.
19052 (V32HI_FTYPE_V32HI_V32HI): Ditto.
19053 (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
19054 (V16SI_FTYPE_V16SI_V4SI): Ditto.
19055 (V16SI_FTYPE_V16SI_V16SI): Ditto.
19056 (V16SI_FTYPE_V32HI_V32HI): Ditto.
19057 (V16SI_FTYPE_V16SI_SI): Ditto.
19058 (V8DI_FTYPE_V8DI_V8DI): Ditto.
19059 (V4UDI_FTYPE_V8USI_V8USI): Ditto.
19060 (V8DI_FTYPE_V16SI_V16SI): Ditto.
19061 (V8DI_FTYPE_V8DI_V2DI): Ditto.
19062 (QI_FTYPE_QI): Ditto.
19063 (SI_FTYPE_SI): Ditto.
19064 (DI_FTYPE_DI): Ditto.
19065 (QI_FTYPE_QI_QI): Ditto.
19066 (QI_FTYPE_QI_INT): Ditto.
19067 (HI_FTYPE_HI_INT): Ditto.
19068 (SI_FTYPE_SI_INT): Ditto.
19069 (DI_FTYPE_DI_INT): Ditto.
19070 (HI_FTYPE_V16QI_V16QI): Ditto.
19071 (SI_FTYPE_V32QI_V32QI): Ditto.
19072 (DI_FTYPE_V64QI_V64QI): Ditto.
19073 (QI_FTYPE_V8HI_V8HI): Ditto.
19074 (HI_FTYPE_V16HI_V16HI): Ditto.
19075 (SI_FTYPE_V32HI_V32HI): Ditto.
19076 (QI_FTYPE_V4SI_V4SI): Ditto.
19077 (QI_FTYPE_V8SI_V8SI): Ditto.
19078 (QI_FTYPE_V2DI_V2DI): Ditto.
19079 (QI_FTYPE_V4DI_V4DI): Ditto.
19080 (QI_FTYPE_V8DI_V8DI): Ditto.
19081 (HI_FTYPE_V16SI_V16SI): Ditto.
19082 (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
19083 (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
19084 (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
19085 (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
19086 (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
19087 (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
19088 (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
19089 (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
19090 (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
19091 (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
19092 (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
19093 (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
19094 (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
19095 (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
19096 (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
19097 (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
19098 (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
19099 (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
19100 (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
19101 (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
19102 (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
19103 (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
19104 (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
19105 (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
19106 (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
19107 (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
19108 (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
19109 (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
19110 (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
19111 (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
19112 (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
19113 (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
19114 (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
19115 (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
19116 (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
19117 (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
19118 (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
19119 (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
19120 (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
19121 (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
19122 (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
19123 (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
19124 (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
19125 (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
19126 (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
19127 (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
19128 (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
19129 (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
19130 (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
19131 (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
19132 (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
19133 (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
19134 (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
19135 (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
19136 (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
19137 (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
19138 (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
19139 (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
19140 (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
19141 (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
19142 (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
19143 (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
19144 (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
19145 (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
19146 (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
19147 (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
19148 (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
19149 (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
19150 (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
19151 (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
19152 (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
19153 (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
19154 (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
19155 (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
19156 (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
19157 (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
19158 (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
19159 (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
19160 (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
19161 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
19162 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
19163 (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
19164 (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
19165 (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
19166 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
19167 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
19168 (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
19169 (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
19170 (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
19171 (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
19172 (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
19173 (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
19174 (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
19175 (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
19176 (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
19177 (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
19178 (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
19179 (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
19180 (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
19181 (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
19182 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
19183 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
19184 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
19185 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
19186 (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
19187 (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
19188 (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
19189 (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
19190 (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
19191 (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
19192 (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
19193 (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
19194 (HI_FTYPE_HI): Ditto.
19195 (HI_FTYPE_V16QI): Ditto.
19196 (SI_FTYPE_V32QI): Ditto.
19197 (DI_FTYPE_V64QI): Ditto.
19198 (QI_FTYPE_V8HI): Ditto.
19199 (HI_FTYPE_V16HI): Ditto.
19200 (SI_FTYPE_V32HI): Ditto.
19201 (QI_FTYPE_V4SI): Ditto.
19202 (QI_FTYPE_V8SI): Ditto.
19203 (HI_FTYPE_V16SI): Ditto.
19204 (QI_FTYPE_V2DI): Ditto.
19205 (QI_FTYPE_V4DI): Ditto.
19206 (QI_FTYPE_V8DI): Ditto.
19207 (V16QI_FTYPE_HI): Ditto.
19208 (V32QI_FTYPE_SI): Ditto.
19209 (V64QI_FTYPE_DI): Ditto.
19210 (V8HI_FTYPE_QI): Ditto.
19211 (V16HI_FTYPE_HI): Ditto.
19212 (V32HI_FTYPE_SI): Ditto.
19213 (V4SI_FTYPE_QI): Ditto.
19214 (V4SI_FTYPE_HI): Ditto.
19215 (V8SI_FTYPE_QI): Ditto.
19216 (V8SI_FTYPE_HI): Ditto.
19217 (V2DI_FTYPE_QI): Ditto.
19218 (V4DI_FTYPE_QI): Ditto.
19219 (HI_FTYPE_HI_HI): Ditto.
19220 (SI_FTYPE_SI_SI): Ditto.
19221 (DI_FTYPE_DI_DI): Ditto.
19222 (HI_FTYPE_V16QI_V16QI_HI): Ditto.
19223 (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
19224 (SI_FTYPE_V32QI_V32QI_SI): Ditto.
19225 (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
19226 (DI_FTYPE_V64QI_V64QI_DI): Ditto.
19227 (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
19228 (QI_FTYPE_V8HI_V8HI_QI): Ditto.
19229 (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
19230 (HI_FTYPE_V16HI_V16HI_HI): Ditto.
19231 (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
19232 (SI_FTYPE_V32HI_V32HI_SI): Ditto.
19233 (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
19234 (QI_FTYPE_V4SI_V4SI_QI): Ditto.
19235 (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
19236 (QI_FTYPE_V8SI_V8SI_QI): Ditto.
19237 (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
19238 (QI_FTYPE_V2DI_V2DI_QI): Ditto.
19239 (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
19240 (QI_FTYPE_V4DI_V4DI_QI): Ditto.
19241 (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
19242 (QI_FTYPE_V8DI_V8DI_QI): Ditto.
19243 (HI_FTYPE_V16SI_V16SI_HI): Ditto.
19244 (QI_FTYPE_V8DI_V8DI_INT): Ditto.
19245 (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
19246 (HI_FTYPE_V16SI_V16SI_INT): Ditto.
19247 (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
19248 (QI_FTYPE_V8DF_V8DF_INT): Ditto.
19249 (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
19250 (HI_FTYPE_V16SF_V16SF_INT): Ditto.
19251 (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
19252 (QI_FTYPE_V2DF_V2DF_INT): Ditto.
19253 (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
19254 (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
19255 (QI_FTYPE_V4SF_V4SF_INT): Ditto.
19256 (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
19257 (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
19258 (V16SI_FTYPE_HI): Ditto.
19259 (V8DI_FTYPE_QI): Ditto.
19260 (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
19261 (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
19262 (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
19263 (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
19264 (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
19265 (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
19266 (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
19267 (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
19268 (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
19269 (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
19270 (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
19271 (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
19272 (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
19273 (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
19274 (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
19275 (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
19276 (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
19277 (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
19278 (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
19279 (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
19280 (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
19281 (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
19282 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
19283 (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
19284 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
19285 (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
19286 (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
19287 (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
19288 (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
19289 (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
19290 (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
19291 (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
19292 (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
19293 (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
19294 (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
19295 (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
19296 (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
19297 (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
19298 (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
19299 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
19300 (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
19301 (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
19302 (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
19303 (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
19304 (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
19305 (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
19306 (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
19307 (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
19308 (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
19309 (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
19310 (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
19311 (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
19312 (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
19313 (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
19314 (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
19315 (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
19316 (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
19317 (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
19318 (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
19319 (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
19320 (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
19321 (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
19322 (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
19323 (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
19324 (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
19325 (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
19326 (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
19327 (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
19328 (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
19329 (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
19330 (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
19331 (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
19332 (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
19333 (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
19334 (V16SI_FTYPE_SI_V16SI_HI): Ditto.
19335 (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
19336 (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
19337 (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
19338 (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
19339 (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
19340 (V8DI_FTYPE_DI_V8DI_QI): Ditto.
19341 (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
19342 (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
19343 (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
19344 (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
19345 (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
19346 (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
19347 (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
19348 (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
19349 (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
19350 (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
19351 (V8SI_FTYPE_SI_V8SI_QI): Ditto.
19352 (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
19353 (V4SI_FTYPE_SI_V4SI_QI): Ditto.
19354 (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
19355 (V4DI_FTYPE_DI_V4DI_QI): Ditto.
19356 (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
19357 (V2DI_FTYPE_DI_V2DI_QI): Ditto.
19358 (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
19359 (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
19360 (V64QI_FTYPE_QI_V64QI_DI): Ditto.
19361 (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
19362 (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
19363 (V32QI_FTYPE_QI_V32QI_SI): Ditto.
19364 (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
19365 (V16QI_FTYPE_QI_V16QI_HI): Ditto.
19366 (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
19367 (V32HI_FTYPE_HI_V32HI_SI): Ditto.
19368 (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
19369 (V16HI_FTYPE_HI_V16HI_HI): Ditto.
19370 (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
19371 (V8HI_FTYPE_HI_V8HI_QI): Ditto.
19372 (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
19373 (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
19374 (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
19375 (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
19376 (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
19377 (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
19378 (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
19379 (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
19380 (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
19381 (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
19382 (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
19383 (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
19384 (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
19385 (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
19386 (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
19387 (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
19388 (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
19389 (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
19390 (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
19391 (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
19392 (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
19393 (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
19394 (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
19395 (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
19396 (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
19397 (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
19398 (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
19399 (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
19400 (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
19401 (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
19402 (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
19403 (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
19404 (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
19405 (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
19406 (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
19407 (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
19408 (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
19409 (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
19410 (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
19411 (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
19412 (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
19413 (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
19414 (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
19415 (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
19416 (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
19417 (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
19418 (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
19419 (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
19420 (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
19421 (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
19422 (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
19423 (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
19424 (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
19425 (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
19426 (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
19427 (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
19428 (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
19429 (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
19430 (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
19431 (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
19432 (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
19433 (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
19434 (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
19435 (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
19436 (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
19437 (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
19438 (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
19439 (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
19440 (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
19441 (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
19442 (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
19443 (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
19444 (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
19445 (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
19446 (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
19447 (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
19448 (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
19449 (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
19450 (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
19451 (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
19452 (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
19453 (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
19454 (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
19455 (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
19456 (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
19457 (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
19458 (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
19459 (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
19460 (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
19461 (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
19462 (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
19463 (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
19464 (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
19465 (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
19466 (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
19467 (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
19468 (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
19469 (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
19470 (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
19471 (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
19472 (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
19473 (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
19474 (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
19475 (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
19476 (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
19477 (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
19478 (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
19479 (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
19480 (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
19481 (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
19482 (QI_FTYPE_V8DF_INT_QI): Ditto.
19483 (QI_FTYPE_V4DF_INT_QI): Ditto.
19484 (QI_FTYPE_V2DF_INT_QI): Ditto.
19485 (HI_FTYPE_V16SF_INT_HI): Ditto.
19486 (QI_FTYPE_V8SF_INT_QI): Ditto.
19487 (QI_FTYPE_V4SF_INT_QI): Ditto.
19488 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
19490 2015-07-31 Richard Biener <rguenther@suse.de>
19492 * gimple-fold.c (fold_gimple_assign): Remove folding of
19495 2015-07-31 Tom de Vries <tom@codesourcery.com>
19497 PR tree-optimization/66846
19498 * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
19499 verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
19500 (expand_omp_target) [ENABLE_CHECKING]: Same.
19501 (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
19502 cfun if !LOOPS_NEED_FIXUP.
19503 (expand_omp_for_static_nochunk): Handle simple latch bb. Handle case
19504 that omp_for already has its own loop struct.
19505 * tree-parloops.c (create_phi_for_local_result)
19506 (create_call_for_reduction): Handle simple latch bb.
19507 (create_parallel_loop): Add simple latch bb to preserve
19508 LOOPS_HAVE_SIMPLE_LATCHES. Record new exit. Handle simple latch bb.
19509 (gen_parallel_loop): Remove call to cancel_loop_tree.
19510 (parallelize_loops): Skip loops that are inner loops of parallelized
19512 (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
19513 verify_loop_structure.
19515 2015-07-30 Anatoly Sokolov <aesok@post.ru>
19517 * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
19518 * config/v850/v850.md (RV_REGNUM): New constants.
19519 * config/v850/v850.c (v850_libcall_value): New functions.
19520 (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
19521 (TARGET_LIBCALL_VALUE): Define.
19523 2015-07-30 Anatoly Sokolov <aesok@post.ru>
19525 * rtl.h (lowpart_subreg): Move in file.
19526 * loop-iv.c (lowpart_subreg): Move to...
19527 * simplify-rtx.c (lowpart_subreg): ...here.
19528 (simplify_binary_operation_1): Use lowpart_subreg instead of
19529 simplify_gen_subreg.
19530 * expr.c (expand_expr_real_2): Ditto.
19531 * emit-rtl.c (gen_lowpart_common): Ditto.
19532 * combine.c (gen_lowpart_for_combine): Ditto.
19533 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
19534 expand_debug_source_expr): Ditto.
19536 2015-07-30 Richard Sandiford <richard.sandiford@arm.com>
19538 * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
19539 (expand_builtin_atomic_clear): Remove support for atomic_clear
19542 2015-07-30 Richard Biener <rguenther@suse.de>
19544 * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
19545 binaries. Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
19546 (fold_stmt_1): ... here and work on GIMPLE directly. Remove
19547 redundant operand canonicalization.
19549 2015-07-30 David Sherwood <david.sherwood@arm.com>
19551 * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
19552 GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
19553 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
19554 * config/arm/arm.c (neon_valid_immediate): Likewise.
19555 * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
19556 (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
19557 (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
19558 (expand_vec_perm_vpshufb2_vpermq): Likewise.
19559 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
19560 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
19561 * config/i386/sse.md
19562 (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
19563 (*ssse3_palignr<mode>_perm): Likewise.
19564 * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
19565 * config/spu/spu.c (arith_immediate_p): Likewise.
19566 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
19567 (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
19569 2015-07-30 Richard Biener <rguenther@suse.de>
19571 * genmatch.c (decision_tree::gen_gimple): Merge with ...
19572 (decision_tree::gen_generic): ... this into ...
19573 (decision_tree::gen): ... this.
19574 (main): Adjust callers.
19576 2015-07-30 Richard Biener <rguenther@suse.de>
19578 * genmatch.c (verbose): New global.
19579 (warning_at): Add overload with source_location.
19580 (capture_info::capture_info): Add bool whether generating gimple
19581 or generic. Add gimple member.
19582 (capture_info::cinfo): Add capture member.
19583 (capture_info::walk_match): Record capture. Warn on
19584 non-captured leafs.
19585 (capture_info::walk_c_expr): Add more fragments captures cannot
19586 escape through. Warn on escaped captures.
19587 (dt_simplify::gen_1): Warn on operands we force to have no
19589 (main): Initialize verbose.
19590 * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
19592 2015-07-30 Richard Biener <rguenther@suse.de>
19594 PR middle-end/67053
19595 * match.pd: Allow both operands to independently have conversion
19596 when simplifying compares of addresses.
19598 2015-07-29 Segher Boessenkool <segher@kernel.crashing.org>
19602 * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
19603 around those cases that need one.
19605 2015-07-29 Aditya Kumar <hiraditya@msn.com>
19607 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
19609 2015-07-29 H.J. Lu <hongjiu.lu@intel.com>
19611 * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
19612 New. Copied from config/i386/gnu-user.h.
19613 (ASM_COMMENT_START): Likewise.
19614 (DBX_REGISTER_NUMBER): Likewise.
19616 2015-07-29 Richard Biener <rguenther@suse.de>
19618 * gimple-fold.c (fold_gimple_cond): Remove.
19619 (fold_stmt_1): Do not call it.
19621 2015-07-29 Alan Lawrence <alan.lawrence@arm.com>
19623 * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
19624 (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
19626 * config/aarch64/aarch64-modes.def: Add HFmode.
19628 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
19629 __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
19631 * config/aarch64/aarch64.c (aarch64_init_libfuncs,
19632 aarch64_promoted_type): New.
19634 (aarch64_float_const_representable_p): Disable HFmode.
19635 (aarch64_mangle_type): Mangle half-precision floats to "Dh".
19636 (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
19637 (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
19639 * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
19640 (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
19642 * config/aarch64/iterators.md (GPF_F16): New.
19644 2015-07-29 Richard Biener <rguenther@suse.de>
19646 * match.pd: Merge address comparison patterns and make them
19647 handle some more cases.
19649 2015-07-29 Richard Biener <rguenther@suse.de>
19651 * genmatch.c (c_expr::gen_transform): Error on unknown captures.
19652 (parser::parse_capture): Add bool argument on whether to reject
19654 (parser::parse_expr): Adjust.
19655 (parser::parse_op): Likewise.
19656 (parser::parse_pattern): Likewise.
19658 2015-07-29 Richard Biener <rguenther@suse.de>
19660 * gimple-fold.c (has_use_on_stmt): New function.
19661 (replace_stmt_with_simplification): Use it to allow
19662 abnormals originally referenced in the stmt.
19663 (fold_stmt_1): Canonicalize operand order.
19665 2015-07-28 David Sherwood <david.sherwood@arm.com>
19667 * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
19668 GET_MODE_INNER unconditionally.
19669 * config/spu/spu.c (arith_immediate_p): Likewise.
19670 * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
19671 * expmed.c (synth_mult): Remove check for VOIDmode result from
19673 (expand_mult_const): Likewise.
19674 * fold-const.c (fold_binary_loc): Replace call to element_precision
19675 with call to GET_MODE_PRECISION.
19676 * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
19678 (emit_mode_inner): Likewise.
19679 * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
19681 * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
19682 (GET_MODE_UNIT_PRECISION): Likewise.
19683 * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
19684 * simplify-rtx.c (simplify_immed_subreg): Likewise.
19685 * stor-layout.c (bitwise_type_for_mode): Update assert.
19686 (element_precision): Remove.
19688 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
19690 * target-insns.def (reload_load_address): New targetm instruction
19692 * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
19694 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
19696 * target-insns.def (atomic_test_and_set): New targetm instruction
19698 * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
19699 HAVE_*/gen_* interface.
19701 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
19703 * target-insns.def (can_extend, ptr_extend): New targetm instruction
19705 * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
19706 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
19707 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
19708 * rtlanal.c (nonzero_bits1): Likewise.
19709 (num_sign_bit_copies1): Likewise.
19711 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
19713 * target-insns.def (eh_return): New targetm instruction pattern.
19714 * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
19716 * function.c (thread_prologue_and_epilogue_insns): Remove
19717 preprocessor condition.
19719 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
19721 * target-insns.def (indirect_jump): New targetm instruction pattern.
19722 * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
19725 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
19727 * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
19728 instead of nonimmediate_operand. Remove C condiition.
19730 2015-07-28 Richard Biener <rguenther@suse.de>
19732 * match.pd: Add more simplification of address comparisons.
19734 2015-07-28 Richard Biener <rguenther@suse.de>
19736 * match.pd: Re-order two cases in comparison with max/min
19737 value simplification to make it apply for bools.
19739 2015-07-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19741 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
19742 Handle simple SIGN_EXTEND or ZERO_EXTEND.
19743 (aarch64_rtx_costs): Properly strip extend or extract before
19744 passing down to rtx costs again.
19746 2015-07-28 Nick Clifton <nickc@redhat.com>
19748 * config/rl78/rl78.c (rl78_addsi3_internal): New function.
19749 Optimizes the case where -mes0 is active and a constant symbolic
19751 * config/rl78/rl78-protos.h: Prototype the new function.
19752 * config/rl78/rl78.md (addsi3_internal_real): Call new function.
19754 2015-07-28 Tom de Vries <tom@codesourcery.com>
19756 * tree-parloops.c (reduc_stmt_res): New function.
19757 (initialize_reductions, add_field_for_reduction)
19758 (create_phi_for_local_result, create_loads_for_reductions)
19759 (create_stores_for_reduction, build_new_reduction): Handle case that
19760 reduc_stmt is a phi.
19761 (gather_scalar_reductions): Allow double_reduc reductions.
19763 2015-07-28 Richard Biener <rguenther@suse.de>
19765 * fold-const.c (fold_comparison): Remove equality folding
19766 of decl addresses ...
19767 * match.pd: ... here and merge with existing pattern.
19769 2015-07-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
19771 PR tree-optimization/66828
19772 * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
19773 from int64_t to uint64_t.
19775 2015-07-28 Dominik Vogt <vogt@linux.vnet.ibm.com>
19777 * opts-common.c (read_cmdline_option): List DriverOnly enum values
19778 as valid only in the error message of the driver, not in the
19779 messages of the language compilers.
19781 2015-07-27 Tom de Vries <tom@codesourcery.com>
19783 * tree-parloops.c (gather_scalar_reductions): Simplify function
19786 2015-07-27 Marek Polacek <polacek@redhat.com>
19788 * ipa-devirt.c (types_same_for_odr): Fix typo.
19790 2015-07-27 Jason Merrill <jason@redhat.com>
19793 * dwarf2out.c (gen_inlined_subroutine_die): Check
19794 cgraph_function_possibly_inlined_p.
19796 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
19798 * config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
19799 Place integer variant first.
19800 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
19802 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
19805 * config/arm/arm-builtins.c (enum arm_builtins):
19806 Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
19807 (ARM_BUILTIN_NEON_BASE): Rename macro to....
19808 (ARM_BUILTIN_NEON_PATTERN_START): ...this.
19809 (arm_init_neon_builtins): Register __builtin_arm_lane_check.
19810 (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
19812 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
19815 * config/arm/arm-builtins.c (enum arm_type_qualifiers):
19816 Add qualifier_lane_index.
19817 (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
19818 (arm_getlane_qualifiers): Use qualifier_lane_index.
19819 (arm_lanemac_qualifiers): Rename to...
19820 (arm_mac_n_qualifiers): ...this.
19821 (LANEMAC_QUALIFIERS): Rename to...
19822 (MAC_N_QUALIFIERS): ...this.
19823 (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
19824 (arm_setlane_qualifiers): Use qualifier_lane_index.
19825 (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
19826 (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
19827 (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
19828 (arm_expand_neon_builtin): Handle qualifier_lane_index.
19830 * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
19831 * config/arm/arm.c (bounds_check): Likewise, improve error message.
19832 (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
19833 * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
19834 vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
19835 vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
19836 vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
19837 (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
19838 qualifiers to TERNOP_IMM.
19839 (vdup_lane): Change qualifiers to GETLANE.
19840 (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
19841 vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
19842 (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
19843 vqdmlsl_n): Change qualifiers to MAC_N.
19845 * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
19846 neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
19847 neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
19848 neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
19849 neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
19850 neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
19851 neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
19852 neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
19853 neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
19854 Remove call to neon_lane_bounds.
19856 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
19858 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
19859 Place integer variant first.
19861 2015-07-27 Matthew Wahab <matthew.wahab@arm.com>
19863 * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
19864 and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
19865 * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
19866 for armv6kz targets.
19867 * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
19868 * config/arm/arm-protos.h (FL_ARCH6KZ): New.
19869 (FL_FOR_ARCH6ZK): Remove.
19870 (FL_FOR_ARCH6KZ): New.
19871 (arm_arch6zk): New declaration.
19872 * config/arm/arm-tables.opt: Regenerate.
19873 * config/arm/arm.c (arm_arch6kz): New.
19874 (arm_option_override): Set arm_arch6kz.
19875 * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
19876 * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
19877 * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
19879 2015-07-27 Marek Polacek <polacek@redhat.com>
19883 * doc/invoke.texi: Document -Wtautological-compare.
19885 2015-07-27 Richard Biener <rguenther@suse.de>
19887 * genmatch.c (decision_tree::gen_gimple): Split out large
19888 subtrees into separate functions.
19889 (decision_tree::gen_generic): Likewise.
19891 2015-07-26 Uros Bizjak <ubizjak@gmail.com>
19893 * config/alpha/alpha.c: Use SUBREG_P predicate.
19894 * config/alpha/predicates.md: Ditto.
19896 2015-07-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
19898 * config.host (s390*-*-*): Include driver-native.c only when
19899 building with s390* as host *and* target.
19901 2015-07-25 Oleg Endo <olegendo@gcc.gnu.org>
19904 * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
19905 T bit register modified_between_p check.
19907 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
19909 * config/i386/i386.c: Use SUBREG_P predicate.
19910 * config/i386/i386.md: Ditto.
19911 * config/i386/sse.md: Ditto.
19912 * config/i386/predicates.md: Ditto.
19914 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
19917 * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
19918 predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
19920 2015-07-25 Sebastian Pop <s.pop@samsung.com>
19922 * Makefile.in: Remove use of TREEBROWSER.
19923 * config.in: Regenerated.
19924 * configure: Regenerated.
19925 * configure.ac: Remove definition of TREEBROWSER.
19926 * tree-browser.c: Removed.
19927 * tree-browser.def: Removed.
19929 2015-07-25 Sebastian Pop <s.pop@samsung.com>
19931 * graphite-scop-detection.c: Include gimple-pretty-print.h.
19932 (stmt_simple_for_scop_p): Print when a stmt is not handled in
19934 (scopdet_basic_block_info): Print when a loop or bb cannot be
19935 represented in Graphite.
19937 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
19940 * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
19941 execution guard when min_size is less than size_needed.
19943 2015-07-25 Sebastian Pop <s.pop@samsung.com>
19945 * doc/install.texi: Document supported versions of ISL.
19947 2015-07-25 Jeff Law <law@redhat.com>
19951 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
19952 unable to find X NE 0 in the tables, return X as the simplified
19954 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
19955 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
19956 to VISISTED_BBS. */
19957 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
19958 after removing the control flow statement and unnecessary edges.
19960 2015-07-25 David Edelsohn <dje.gcc@gmail.com>
19963 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
19965 PR rtl-optimization/64164
19966 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
19967 * tree-ssa-copyrename.c: Removed.
19968 * opts.c (default_options_table): Drop -ftree-copyrename. Add
19969 -ftree-coalesce-vars.
19970 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
19971 * common.opt (ftree-copyrename): Ignore.
19972 (ftree-coalesce-inlined-vars): Likewise.
19973 * doc/invoke.texi: Remove the ignored options above.
19974 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
19975 * tree-ssa-coalesce.h: ... here.
19976 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
19977 headers required by it.
19978 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
19979 across variables when flag_tree_coalesce_vars. Check register
19980 use and promoted modes to allow coalescing. Moved to
19981 tree-ssa-coalesce.c.
19982 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
19983 with its member functions to tree-ssa-coalesce.c.
19984 (var_map_base_init): Likewise. Renamed to
19985 compute_samebase_partition_bases.
19986 (partition_view_normal): Drop want_bases parameter.
19987 (partition_view_bitmap): Likewise.
19988 * tree-ssa-live.h: Adjust declarations.
19989 * tree-ssa-coalesce.c: Include explow.h.
19990 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
19991 default defs at the entry point.
19992 (dump_part_var_map): New.
19993 (compute_optimized_partition_bases): New, called by...
19994 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
19995 of compute_samebase_partition_bases. Adjust.
19996 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
19997 * cfgexpand.c (leader_merge): New.
19998 (get_rtl_for_parm_ssa_default_def): New.
19999 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
20000 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
20001 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
20002 redundant MEM attr setting.
20003 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
20005 (expand_one_stack_var): ... this. New wrapper to check and
20006 skip already expanded SSA partitions.
20007 (record_alignment_for_reg_var): New, factored out of...
20008 (expand_one_var): ... this.
20009 (expand_one_ssa_partition): New.
20010 (adjust_one_expanded_partition_var): New.
20011 (expand_one_register_var): Check and skip already expanded SSA
20013 (expand_used_vars): Don't create DECLs for anonymous SSA
20014 names. Expand all SSA partitions, then adjust all SSA names.
20015 (pass::execute): Replace the loops that set
20016 SA.partition_to_pseudo from partition leaders and cleared
20017 DECL_RTL for multi-location variables, and that which used to
20018 rename vars and set attrs, with one that clears DECL_RTL and
20019 checks that PARMs and RESULTs default_defs match DECL_RTL.
20020 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
20021 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
20022 * explow.c (promote_ssa_mode): New.
20023 * explow.h (promote_ssa_mode): Declare.
20024 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
20025 * function.c: Include cfgexpand.h.
20026 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
20027 (use_register_for_parm_decl): Wrapper for the above to
20028 special-case the result_ptr.
20029 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
20030 (split_complex_args): Take assign_parm_data_all argument.
20031 Pass it to rtl_for_parm. Set up rtl and context for split
20033 (assign_parms_augmented_arg_list): Adjust.
20034 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
20035 multiple locations. Recognize split complex args.
20036 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
20037 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
20038 (assign_parm_setup_block): Prefer SSA-assigned location.
20039 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
20040 if stack_parm is NULL.
20041 (assign_parm_setup_stack): Prefer SSA-assigned location.
20042 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
20043 rtl before testing for pointer bounds. Special-case result_ptr.
20044 (expand_function_start): Maybe reset DECL_RTL of result.
20045 Prefer SSA-assigned location for result and static chain.
20046 Factor out DECL_RESULT and SET_DECL_RTL.
20047 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
20048 anonymous SSA names. Use promote_ssa_mode.
20049 (get_temp_reg): Likewise.
20050 (remove_ssa_form): Adjust.
20051 * stor-layout.c (layout_decl): Don't set mem attributes of
20053 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
20054 and get its reg_usage for reg invalidation.
20055 (compute_bb_dataflow): Pass it insn.
20056 (emit_notes_in_bb): Likewise.
20058 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
20060 * config/i386/i386.c (ix86_va_start): Remove
20061 unneeded !TARGET_64BIT check.
20062 (ix86_gimplify_va_arg): Ditto.
20064 2015-07-24 Tom de Vries <tom@codesourcery.com>
20066 * graphite-sese-to-poly.c (build_poly_scop): Always call
20067 rewrite_commutative_reductions_out_of_ssa.
20069 2015-07-24 Tom de Vries <tom@codesourcery.com>
20071 * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
20072 flag_associative_math to FLOAT_TYPE_P. Honour
20073 TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
20075 2015-07-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
20078 * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
20079 and "%qD" in warning_at instead of "%q+D" in warning.
20081 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
20083 * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
20084 (ix86_function_abi): Cleanup.
20086 2015-07-24 Michael Darling <darlingm@gmail.com>
20089 * acinclude.m4: Reflects renaming of configure.in to configure.ac
20090 * configure: Likewise
20091 * configure.ac: Likewise
20092 * doc/install.texi: Likewise
20093 * doc/tm.texi: Likewise
20094 * doc/tm.texi.in: Likewise
20096 2015-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20098 * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
20099 manually swapping values.
20100 * cse.c (fold_rtx): Likewise.
20101 * lra-eliminations.c (form_sum): Likewise.
20103 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
20106 * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
20107 * config/i386/i386.md (maybe_prefix_bnd): New attribute.
20108 (*jcc_1, *jcc_2, jump, simple_return_internal)
20109 (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
20110 Set length_nobnd attribute instead of length attribute.
20111 (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
20112 (length_nobnd): Remove attribute.
20113 (length): Remove length_nobnd processing.
20115 2015-07-24 Nathan Sidwell <nathan@codesourcery.com>
20117 * gimplify.c (omp_default_clause): New function. Reorganize flow
20118 for clarity. Broken out of ...
20119 (omp_notice_variable): ... here.
20121 2015-07-24 Gary Funck <gary@intrepid.com>
20123 PR middle-end/66984
20124 * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
20125 fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
20127 2015-07-24 Tom de Vries <tom@codesourcery.com>
20129 * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
20130 exit-first loop transform.
20132 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
20135 * tree-cfg.c (struct replace_decls_d): New struct.
20136 (replace_block_vars_by_duplicates_1): New function.
20137 (replace_block_vars_by_duplicates): Use it to replace the decls
20138 in the value exprs by duplicates.
20140 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
20142 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
20143 -shared, -symbolic, -rdynamic.
20145 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
20148 * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
20149 -dynamic-linker within %{!static %{!shared, and -rdynamic within
20152 2015-07-24 Ilya Enkovich <enkovich.gnu@gmail.com>
20155 * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
20156 edge summary is available.
20158 2015-07-24 Richard Biener <rguenther@suse.de>
20160 * genmatch.c (struct dt_node): Add statistic fields.
20161 (dt_node::analyze): New method.
20162 (decision_tree::gen_gimple): Call analyze on the root node
20163 and print statistics to stderr.
20164 (decision_tree::gen_generic): Likewise.
20166 2015-07-24 Richard Biener <rguenther@suse.de>
20168 * fold-const.c (fold_binary_loc): Move simplifying of comparisons
20169 against the highest or lowest possible integer ...
20170 * match.pd: ... as patterns here.
20172 2015-07-24 Richard Biener <rguenther@suse.de>
20174 * genmatch.c (struct capture_info): Add same_as field.
20175 (capture_info::capture_info): Initialize same_as.
20176 (capture_info::walk_match): Compute same_as.
20177 (capture_info::walk_result): Compute stuff for the leader.
20178 (capture_info::walk_c_expr): Likewise.
20179 (dt_simplify::gen_1): Only look at leaders when deciding
20180 to force no side-effects or emit side-effects of omitted operands.
20182 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20184 * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
20185 reg note to the GPR -> FPR save instructions.
20187 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20189 * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
20191 (s390_expand_insv): Don't generate risbg pattern for constant zero
20193 * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
20194 ("*insv<mode>_z10_appendbitsleft"): New pattern definitions. New
20197 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
20199 * config/s390/s390.c (s390_reorg): Clean up handling of processors
20202 (s390_issue_rate): Likewise.
20203 (s390_sched_reorder): Likewise.
20204 (s390_sched_variable_issue): Likewise.
20205 (s390_loop_unroll_adjust): Likewise.
20206 (s390_option_override): Likewise.
20208 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
20210 * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
20211 processor capabilities with -march=native.
20212 * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
20213 (DRIVER_SELF_SPECS): Likewise. Join specs for 31 and 64 bit.
20214 (S390_TARGET_BITS_STRING): Macro to simplify specs.
20216 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
20218 * config/s390/s390.c (s390_issue_rate): Handle
20219 PROCESSOR_2094_Z9_EC.
20220 (s390_option_override): Likewise.
20221 (s390_adjust_priority): Likewise.
20223 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
20225 * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
20226 when cross compiling.
20228 2015-07-24 Richard Biener <rguenther@suse.de>
20230 * fold-const.c (maybe_canonicalize_comparison_1): Move
20231 A code CST canonicalization ...
20232 * match.pd: ... to a pattern here.
20234 2015-07-24 Jiong Wang <jiong.wang@arm.com>
20237 2015-07-22 Jiong Wang <jiong.wang@arm.com>
20239 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
20240 (HONOR_REG_ALLOC_ORDER): Define.
20242 2015-07-24 Richard Biener <rguenther@suse.de>
20244 * genmatch.c (add_operator): Allow SSA_NAME as predicate.
20245 * fold-const.c (fold_comparison): Move parameter does not
20246 alias &local simplification ...
20247 * match.pd: ... as a pattern here.
20249 2015-07-24 Richard Biener <rguenther@suse.de>
20251 * gimple-fold.c (replace_stmt_with_simplification): Special-case
20252 valueizing call operands.
20253 * gimple-match-head.c (maybe_push_res_to_seq): Take
20254 number of call arguments from ops array.
20255 (do_valueize): New function.
20256 (gimple_simplify): Return true if valueization changed
20257 any operand even if the result didn't simplify further.
20259 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
20261 PR middle-end/25530
20262 * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
20264 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
20266 PR middle-end/25529
20267 * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
20269 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
20271 * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
20274 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
20276 * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
20279 2015-07-23 Uros Bizjak <ubizjak@gmail.com>
20281 * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
20282 from ix86_build_builtin_va_list_abi. Handle only 64bit non-MS_ABI
20284 (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
20285 ms_va_list_type_node initialization.
20287 2015-07-23 Jeff Law <law@redhat.com>
20290 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
20291 unable to find X NE 0 in the tables, return X as the simplified
20293 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
20294 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
20295 to VISISTED_BBS. */
20296 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
20297 after removing the control flow statement and unnecessary edges.
20299 2015-07-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
20301 * tree-pass.h (get_current_pass_name): Removed.
20303 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
20305 PR rtl-optimization/64164
20306 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
20307 * tree-ssa-copyrename.c: Removed.
20308 * opts.c (default_options_table): Drop -ftree-copyrename. Add
20309 -ftree-coalesce-vars.
20310 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
20311 * common.opt (ftree-copyrename): Ignore.
20312 (ftree-coalesce-inlined-vars): Likewise.
20313 * doc/invoke.texi: Remove the ignored options above.
20314 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
20315 * tree-ssa-coalesce.h: ... here.
20316 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
20317 headers required by it.
20318 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
20319 across variables when flag_tree_coalesce_vars. Check register
20320 use and promoted modes to allow coalescing. Moved to
20321 tree-ssa-coalesce.c.
20322 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
20323 with its member functions to tree-ssa-coalesce.c.
20324 (var_map_base_init): Likewise. Renamed to
20325 compute_samebase_partition_bases.
20326 (partition_view_normal): Drop want_bases parameter.
20327 (partition_view_bitmap): Likewise.
20328 * tree-ssa-live.h: Adjust declarations.
20329 * tree-ssa-coalesce.c: Include explow.h.
20330 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
20331 default defs at the entry point.
20332 (dump_part_var_map): New.
20333 (compute_optimized_partition_bases): New, called by...
20334 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
20335 of compute_samebase_partition_bases. Adjust.
20336 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
20337 * cfgexpand.c (leader_merge): New.
20338 (get_rtl_for_parm_ssa_default_def): New.
20339 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
20340 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
20341 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
20342 redundant MEM attr setting.
20343 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
20345 (expand_one_stack_var): ... this. New wrapper to check and
20346 skip already expanded SSA partitions.
20347 (record_alignment_for_reg_var): New, factored out of...
20348 (expand_one_var): ... this.
20349 (expand_one_ssa_partition): New.
20350 (adjust_one_expanded_partition_var): New.
20351 (expand_one_register_var): Check and skip already expanded SSA
20353 (expand_used_vars): Don't create DECLs for anonymous SSA
20354 names. Expand all SSA partitions, then adjust all SSA names.
20355 (pass::execute): Replace the loops that set
20356 SA.partition_to_pseudo from partition leaders and cleared
20357 DECL_RTL for multi-location variables, and that which used to
20358 rename vars and set attrs, with one that clears DECL_RTL and
20359 checks that PARMs and RESULTs default_defs match DECL_RTL.
20360 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
20361 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
20362 * explow.c (promote_ssa_mode): New.
20363 * explow.h (promote_ssa_mode): Declare.
20364 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
20365 * function.c: Include cfgexpand.h.
20366 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
20367 (use_register_for_parm_decl): Wrapper for the above to
20368 special-case the result_ptr.
20369 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
20370 (split_complex_args): Take assign_parm_data_all argument.
20371 Pass it to rtl_for_parm. Set up rtl and context for split
20373 (assign_parms_augmented_arg_list): Adjust.
20374 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
20375 multiple locations. Recognize split complex args.
20376 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
20377 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
20378 (assign_parm_setup_block): Prefer SSA-assigned location.
20379 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
20380 if stack_parm is NULL.
20381 (assign_parm_setup_stack): Prefer SSA-assigned location.
20382 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
20383 rtl before testing for pointer bounds. Special-case result_ptr.
20384 (expand_function_start): Maybe reset DECL_RTL of result.
20385 Prefer SSA-assigned location for result and static chain.
20386 Factor out DECL_RESULT and SET_DECL_RTL.
20387 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
20388 anonymous SSA names. Use promote_ssa_mode.
20389 (get_temp_reg): Likewise.
20390 (remove_ssa_form): Adjust.
20391 * stor-layout.c (layout_decl): Don't set mem attributes of
20393 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
20394 and get its reg_usage for reg invalidation.
20395 (compute_bb_dataflow): Pass it insn.
20396 (emit_notes_in_bb): Likewise.
20398 2015-07-23 Segher Boessenkool <segher@kernel.crashing.org>
20401 * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
20403 * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
20404 (rs6000_emit_2insn_and): Handle dot forms.
20405 * config/rs6000/rs6000.md (and<mode>3): Adjust.
20406 (*and<mode>3_2insn): Remove TODO. Adjust. Add "type" attr.
20407 (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
20409 2015-07-23 Richard Biener <rguenther@suse.de>
20411 * generic-match-head.c: Include cgraph.h.
20412 * gimple-match-head.c: Likewise.
20413 * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
20415 * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
20416 * match.pd: ...to a pattern here. Add &A ==/!= 0 simplification
20419 2015-07-23 Richard Biener <rguenther@suse.de>
20421 * gimple-fold.c (fold_gimple_cond): Do not require folding
20422 results to pass valid_gimple_rhs_p.
20423 * tree-cfg.h (fold_cond_expr_cond): Remove.
20424 * tree-cfg.c (fold_cond_expr_cond): Likewise.
20425 (make_edges): Do not call it.
20426 * tree-inline.c (tree_function_versioning): Likewise.
20428 2015-07-23 Tom de Vries <tom@codesourcery.com>
20430 * tree-parloops.c (gather_scalar_reductions): Add arg to call to
20431 vect_force_simple_reduction.
20432 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
20433 (vect_is_simple_reduction_1): Add and handle
20434 need_wrapping_integral_overflow parameter.
20435 (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
20436 need_wrapping_integral_overflow parameter.
20437 (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
20438 * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
20441 2015-07-23 Yuri Rumyantsev <ysrumyan@gmail.com>
20443 PR tree-optimization/66926,66951
20444 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
20445 INNER_LOOP and fix up condition for renaming virtual operands.
20447 2015-07-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20449 * combine.c (try_combine): Use std::swap instead of manually
20452 2015-07-23 Prachi Godbole <prachi.godbole@imgtec.com>
20454 * config/mips/i6400.md: New file.
20455 * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
20456 (mips64r6): Likewise.
20458 * config/mips/mips-tables.opt: Regenerate.
20459 * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
20460 (mips_issue_rate): Add support for i6400.
20461 (mips_multipass_dfa_lookahead): Likewise.
20462 * config/mips/mips.h (TUNE_I6400): Define.
20463 * config/mips/mips.md: Include i6400.md.
20464 (processor): Add i6400.
20465 * doc/invoke.texi (-march=@var{arch}): Add i6400.
20467 2015-07-23 Richard Biener <rguenther@suse.de>
20469 PR middle-end/66916
20470 * match.pd: Guard widen and sign-change comparison simplification
20473 2015-07-23 Richard Biener <rguenther@suse.de>
20475 PR tree-optimization/66945
20476 * tree-ssa-propagate.c (substitute_and_fold_dom_walker
20477 ::before_dom_children): Force the propagators idea of
20478 non-executable edges to materialize, not what the folder
20481 2015-07-23 Richard Biener <rguenther@suse.de>
20483 * gimple.h (gimple_cond_make_false): Use 0 != 0.
20484 (gimple_cond_make_true): Use 1 != 0.
20486 2015-07-22 DJ Delorie <dj@redhat.com>
20488 * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
20491 * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
20492 (ashrhi3): Likewise.
20493 (lshrhi3): Likewise.
20494 (movhi): Take advantage of zero-extend to load small constants.
20495 (movpsi): Likewise.
20496 (and<mode>3): Likewise.
20497 (zero_extendqihi2): Likewise.
20498 (zero_extendqisi2): New.
20499 * config/msp430/constraints.md (N,O): New.
20500 * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
20502 2015-07-22 Uros Bizjak <ubizjak@gmail.com>
20505 * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
20506 to enum feature_priority and feature_list.
20507 (fold_builtin_cpu): Add F_AES to enum processor_features
20508 and isa_names_table.
20510 2015-07-22 Ilya Enkovich <enkovich.gnu@gmail.com>
20513 * config/i386/linux-common.h (MPX_SPEC): Use linker option
20514 for 64bit target only.
20516 2015-07-22 Bernd Schmidt <bernds@codesourcery.com>
20518 * config/nvptx/nvptx.c: Expand some comments.
20520 2015-07-22 James Greenhalgh <james.greenhalgh@arm.com>
20522 * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
20523 (cortex_a53_advsimd): ...This.
20525 2015-07-22 Richard Biener <rguenther@suse.de>
20527 * genmatch.c (expr::gen_transform): Clarify error message
20528 and display location.
20530 2015-07-22 Richard Biener <rguenther@suse.de>
20532 * genmatch.c (struct operand): Add location member.
20533 (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
20535 (struct simplify): Remove match_location and result_location
20537 (elsehwere): Adjust.
20539 2015-07-22 Prachi Godbole <prachi.godbole@imgtec.com>
20541 * config/mips/m5100.md: New file.
20542 * config/mips/mips-cpus.def (m5100, m5101): Define.
20543 * config/mips/mips-tables.opt: Regenerate.
20544 * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
20545 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
20546 -march=m5101 to -mips32r5.
20547 (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
20548 (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
20550 * config/mips/mips.md: Include m5100.md.
20551 (processor): Add m5100.
20552 * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
20554 2015-07-22 Robert Suchanek <robert.suchanek@imgtec.com>
20556 * config/mips/mips-cpus.def (interaptiv): Define.
20557 * config/mips/mips-tables.opt: Regenerate.
20558 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
20560 (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
20561 * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
20563 2015-07-22 Jiong Wang <jiong.wang@arm.com>
20566 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
20567 (HONOR_REG_ALLOC_ORDER): Define.
20569 2015-07-22 Richard Biener <rguenther@suse.de>
20571 PR tree-optimization/66952
20572 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
20573 blocks we end up executing unconditionally reset all SSA
20574 info such as range and alignment.
20575 * tree-ssanames.h (reset_flow_sensitive_info): Declare.
20576 * tree-ssanames.c (reset_flow_sensitive_info): New function.
20578 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
20580 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
20583 2015-07-22 Richard Biener <rguenther@suse.de>
20585 * genmatch.c (parser::parse_result): Properly handle
20586 match with result operands and conditions.
20588 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
20591 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
20592 Add qualifier_struct_load_store_lane_index.
20593 (aarch64_types_loadstruct_lane_qualifiers): Use
20594 qualifier_struct_load_store_lane_index for lane index argument for
20596 (aarch64_types_storestruct_lane_qualifiers): Ditto.
20597 (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
20598 (aarch64_simd_expand_args): Add new argument describing mode of
20599 builtin. Check lane bounds for arguments with
20600 SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
20601 (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
20602 if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
20603 (aarch64_simd_expand_builtin): Handle arguments with
20604 qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
20605 aarch64_simd_expand_args.
20606 * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
20607 vst[234]_lane with BUILTIN_VALLDIF.
20608 * config/aarch64/aarch64-simd.md:
20609 (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
20610 endianness reversal on lane index.
20611 (aarch64_vec_load_lanesci_lane<mode>): Ditto.
20612 (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
20613 (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
20614 (vec_store_lanesci_lane<mode>): Ditto.
20615 (vec_store_lanesxi_lane<mode>): Ditto.
20616 (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
20617 reversal of lane index.
20618 (aarch64_ld3_lane<mode>): Ditto.
20619 (aarch64_ld4_lane<mode>): Ditto.
20620 (aarch64_st2_lane<mode>): Ditto.
20621 (aarch64_st3_lane<mode>): Ditto.
20622 (aarch64_st4_lane<mode>): Ditto.
20623 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
20624 to qmode. Add new mode parameter. Update uses.
20625 (__LD3_LANE_FUNC): Ditto.
20626 (__LD4_LANE_FUNC): Ditto.
20627 (__ST2_LANE_FUNC): Ditto.
20628 (__ST3_LANE_FUNC): Ditto.
20629 (__ST4_LANE_FUNC): Ditto.
20631 2015-07-22 Jonathan Wakely <jwakely@redhat.com>
20633 * doc/invoke.texi (Language Independent Options): Rename node to
20634 Diagnostic Message Formatting Options.
20636 2015-07-21 Vladimir Makarov <vmakarov@redhat.com>
20639 * lra-remat.c (operand_to_remat): Prevent using insns with input
20640 subregs processed separately by IRA.
20642 2015-07-21 Andrew MacLeod <amacleod@redhat.com>
20644 * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
20646 (single_imm_use): Check for iterator node.
20647 (num_imm_uses): Likewise.
20648 * tree-ssa-operands.c (has_zero_uses_1): Delete.
20649 (single_imm_use_1): Check for iterator node.
20651 2015-07-21 Mike Frysinger <vapier@gentoo.org>
20652 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20654 * configure.ac: Add check for new options in isl-0.15.
20655 * config.in, configure: Rebuilt.
20656 * graphite-blocking.c: Include <isl/constraint.h>
20657 * graphite-interchange.c, graphite-poly.c: Likewise.
20658 * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
20659 * graphite.c: Likewise.
20660 * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
20662 * graphite-dependences.c: Include <isl/constraint.h>.
20663 (max_number_of_out_dimensions): Returns isl_stat.
20664 (extend_schedule_1): Likewise
20665 (extend_schedule): Corresponding changes.
20666 * graphite-optimize-isl.c: Include <isl/constraint.h> and
20668 (getSingleMap): Change return type of isl_stat.
20669 (optimize_isl): Conditionally use
20670 isl_options_set_schedule_serialize_sccs.
20671 * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
20672 if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
20674 2015-07-21 Georg-Johann Lay <avr@gjlay.de>
20677 * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
20678 (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
20680 2015-07-21 Richard Biener <rguenther@suse.de>
20682 PR tree-optimization/66948
20683 * genmatch.c (capture_info::walk_match): Also recurse to
20684 captures. Properly compute expr state from captures of
20686 * match.pd: Add single-use guards to
20687 (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
20689 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
20691 * config/nvptx/mkoffload.c (process): Add static destructor call.
20693 2015-07-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20695 PR middle-end/66915
20696 * match.pd (A - B -> A + (-B)): Don't allow folding
20697 when type if a fixed-point type.
20699 2015-07-20 DJ Delorie <dj@redhat.com>
20701 * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
20702 (iorqi3_real): Likewise for set1.
20704 2015-07-20 Uros Bizjak <ubizjak@gmail.com>
20706 * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
20709 2015-07-20 Aditya Kumar <hiraditya@msn.com>
20711 * graphite-isl-ast-to-gimple.c:
20712 Refactor so that each function can access 'region'. This will help
20713 maintain a parameter rename_map within a region.
20715 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
20717 * config/rs6000/rs6000.md (*lt0_disi): New.
20719 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
20722 * config/rs6000/constraints.md ("S", "T", "t"): Delete. Update
20723 "available letters" comment.
20724 * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
20725 mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
20726 and_2rld_operand): Delete.
20727 (and_operand): Adjust.
20728 (rotate_mask_operator): New.
20729 * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
20730 includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
20731 includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
20732 extract_ME): Delete.
20733 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
20734 rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
20735 rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
20736 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
20737 rs6000_emit_2insn_and): New.
20738 * config/rs6000/rs6000.c (num_insns_constant): Adjust.
20739 (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
20740 includes_rldic_lshift_p, includes_rldicr_lshift_p,
20741 insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
20742 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
20743 rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
20744 s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
20745 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
20746 rs6000_emit_2insn_and): New.
20747 (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
20748 (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
20750 <NOT>: Don't fall through to next case.
20751 <AND>: Handle the various rotate-and-mask cases directly.
20752 <IOR>: Always cost as one insn.
20753 * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
20754 (and<mode>3): Adjust expander for the new patterns.
20755 (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
20756 and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
20757 (*and<mode>3_imm_dot_shifted): New.
20758 (*and<mode>3_mask): Delete, rewrite as ...
20759 (and<mode>3_mask): ... New.
20760 (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
20761 (andsi3_internal0_nomc): Delete.
20762 (*andsi3_internal6): Delete.
20763 (*and<mode>3_2insn): New.
20764 (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
20765 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
20766 *insvsi_internal6, insvdi_internal, *insvdi_internal2,
20767 *insvdi_internal3): Delete.
20768 (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
20769 *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
20770 *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
20771 *ior<mode>_mask): New.
20772 (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
20773 *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
20774 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
20775 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
20777 (ashr<mode>3): Delete expander.
20778 (*ashr<mode>3): Rename to ...
20779 (ashr<mode>3): ... This.
20780 (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
20781 (*rotldi3_internal4, *rotldi3_internal5 and split,
20782 *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
20783 and split, *ashldi3_internal6 and split, *ashldi3_internal7,
20784 ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
20785 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
20786 (splitter for loading a mask): Adjust.
20787 * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
20789 2015-07-20 Marek Polacek <polacek@redhat.com>
20791 * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
20792 output_add_clobbers, output_added_clobbers_hard_reg_p,
20793 gen_rtx_scratch): Remove declarations.
20795 2015-07-20 Marek Polacek <polacek@redhat.com>
20798 * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
20800 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20802 * simplify-rtx.c (simplify_unary_operation_1, NEG case):
20803 (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
20805 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20807 * combine.c (combine_simplify_rtx): Move simplification step
20808 before various transformations/substitutions.
20810 2015-07-20 Mikhail Maltsev <maltsevm@gmail.com>
20812 * wide-int.h (struct binary_traits): Fix partial specialization syntax.
20813 (struct int_traits): Likewise.
20815 2015-07-18 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20817 * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
20818 function to vmsdbgout_function_decl.
20820 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
20823 * config/i386/i386.c (ix86_expand_pextr): Reject extractions
20824 from misaligned positions.
20825 (ix86_expand_pinsr): Reject insertions to misaligned positions.
20827 2015-07-18 Sebastian Pop <s.pop@samsung.com>
20829 PR middle-end/46851
20830 PR middle-end/60340
20831 * Makefile.in: Removed omega.o.
20832 * common.opt: Document flag fcheck-data-deps as deprecated.
20833 * doc/invoke.texi: Remove documentation for fcheck-data-deps and
20834 its associated params: omega-max-vars, omega-max-geqs,
20835 omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
20836 omega-max-keys, omega-eliminate-redundant-constraints.
20837 * doc/loop.texi: Remove all the section on Omega.
20838 * graphite-blocking.c: Include missing params.h: it used to be
20839 included through tree-data-ref.h and omega.h.
20840 * graphite-isl-ast-to-gimple.c: Same.
20841 * graphite-optimize-isl.c: Same.
20842 * graphite-sese-to-poly.c: Same.
20843 * graphite.c: Same.
20846 * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
20847 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
20848 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
20849 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
20850 * passes.def: Remove pass_check_data_deps.
20851 * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
20852 (dump_conflict_function): Same.
20853 (dump_subscript): Same.
20854 (print_direction_vector): Same.
20855 (print_dir_vectors): Same.
20856 (print_lambda_vector): Same.
20857 (print_dist_vectors): Same.
20858 (dump_data_dependence_relation): Same.
20859 (dump_data_dependence_relations): Same.
20860 (dump_dist_dir_vectors): Same.
20862 (init_omega_eq_with_af): Removed.
20863 (omega_extract_distance_vectors): Removed.
20864 (omega_setup_subscript): Removed.
20865 (init_omega_for_ddr_1): Removed.
20866 (init_omega_for_ddr): Removed.
20867 (ddr_consistent_p): Removed.
20868 (compute_affine_dependence): Do not use omega to check data
20870 (compute_data_dependences_for_bb): Removed.
20871 (analyze_all_data_dependences): Removed.
20872 (tree_check_data_deps): Removed.
20873 * tree-data-ref.h: Do not include omega.h.
20874 (compute_data_dependences_for_bb): Removed.
20875 (tree_check_data_deps): Removed.
20876 * tree-ssa-loop.c (pass_check_data_deps): Removed.
20877 (make_pass_check_data_deps): Removed.
20878 * tree-ssa-phiopt.c: Include params.h.
20879 * tree-vect-data-refs.c: Same.
20880 * tree-vect-slp.c: Same.
20882 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
20884 * config/i386/i386.md (pushsf splitter): Pass curr_insn to
20885 find_constant_src. FAIL if find_constant_src returns NULL_RTX.
20886 (mem->fpreg splitters): Ditto.
20887 (general_operand->nonimmediate_operand splitter): Use explicit modes.
20888 Disable DFmode for TARGET_64BIT.
20890 2015-07-17 H.J. Lu <hongjiu.lu@intel.com>
20893 * config/i386/i386.c (ix86_expand_prologue): Replicate static
20894 chain on the stack.
20896 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
20898 * config/nvptx/mkoffload.c (process): Constify host data.
20899 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
20900 Constify host data.
20901 (generate_host_descr_file): Likewise.
20903 2015-07-17 Aditya Kumar <aditya.k7@samsung.com>
20904 Sebastian Pop <s.pop@samsung.com>
20906 PR middle-end/61929
20907 * graphite-dependences.c (add_pdr_constraints): Renamed
20908 pdr->extent to pdr->subscript_sizes.
20909 * graphite-interchange.c (build_linearized_memory_access): Add
20910 back all gcc_assert's that the "isl_int to isl_val conversion"
20911 patch has removed. Refactored.
20912 (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
20913 * graphite-poly.c (new_poly_dr): Same.
20914 (free_poly_dr): Same.
20915 * graphite-poly.h (struct poly_dr): Same.
20916 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
20917 all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
20918 * graphite-scop-detection.h: Fix space.
20919 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
20920 back all gcc_assert's removed by a previous patch.
20921 (wrap): Remove the_isl_ctx global variable that the same patch has
20923 (build_loop_iteration_domains): Same.
20924 (add_param_constraints): Same.
20925 (pdr_add_data_dimensions): Same. Refactored.
20926 (build_poly_dr): Renamed extent to subscript_sizes.
20928 2015-07-17 Marek Polacek <polacek@redhat.com>
20930 * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
20931 * match.pd: ... here.
20933 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
20935 * config/nvptx/mkoffload.c (process): Constify target data.
20936 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
20937 Constify target data.
20938 (generate_target_offloadend_file): Likewise.
20940 2015-07-17 Yuri Rumyantsev <ysrumyan@gmail.com>
20942 * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
20943 to allow renaming of PHI arguments on edges incoming from outer
20944 loop header, add corresponding check before start PHI iterator.
20945 (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
20946 variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
20947 with true force_vectorize. Set-up dominator for outer loop too.
20948 Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
20949 (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
20950 was marked with force_vectorize and has restricted cfg.
20951 (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
20953 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
20954 do peeling for outer loops.
20956 2015-07-17 Yvan Roux <yvan.roux@linaro.org>
20957 Matthias Klose <doko@ubuntu.com>
20959 * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
20960 build-sysroot, sysroot from the `Miscenalleous configure options' to
20961 the `Directories' section and strip trailing `/' from with_sysroot.
20962 (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
20963 * configure: Regenerated.
20965 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
20968 * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
20969 (TARGET_HARD_DF_REGS): Ditto.
20970 (TARGET_HARD_XF_REGS): Ditto.
20971 * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
20972 Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
20973 (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
20974 alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
20975 (*movsf_internal): Add alternatives 16 and 17. Enable
20976 alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
20978 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
20980 PR rtl-optimization/66891
20981 * calls.c (expand_call): Wrap precompute_register_parameters with
20982 NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
20984 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
20986 * config/nvptx/mkoffload.c (process): Constify mapping variables.
20987 Define target data struct and initialize it.
20989 2015-07-16 Vladimir Makarov <vmakarov@redhat.com>
20991 PR rtl-optimization/66626
20992 * ira.h (emit-rtl.h): Include.
20993 (non_spilled_static_chain_regno_p): New.
20994 * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
20995 unless it is non spilled static chain pseudo.
20996 (assign_hard_rego): Spill memory profitable allocno unless it is
20997 non spilled static chain pseudo.
20998 (allocno_spill_priority_compare): Put non spilled static chain
20999 pseudo at the end of sorted array.
21000 (improve_allocation): Do nothing if we have static chain and
21002 (allocno__priority_compare_func): Put non spilled static chain
21003 pseudo at the beginning of sorted array.
21004 (move_spill_restore): Ignore non spilled static chain pseudo.
21005 * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
21006 to non spilled static chain pseudo.
21007 * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
21008 pseudo at the beginning of sorted array.
21009 (spill_for): Spill non spilled static chain pseudo last.
21010 * lra-constraints.c (lra_constraints): Remove static chain pseudo
21011 check for equivalence.
21013 2015-07-16 Martin Liska <mliska@suse.cz>
21016 * ipa-prop.c (update_jump_functions_after_inlining): Create properly
21017 dst_ctx if it does not exist.
21019 2015-07-16 Martin Liska <mliska@suse.cz>
21021 * hash-set.h (remove): New function.
21022 (iterator): New iteration class for hash_set.
21024 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
21026 * genattrtab.c (make_canonical): Add a file_location parameter.
21027 Use fatal_at rather than fatal.
21028 (get_attr_value): Likewise. Update call to make_canonical.
21029 (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
21030 (make_internal_attr): Update calls accordingly.
21032 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
21034 * read-md.h (message_with_line, error_with_line): Delete.
21035 * read-md.c (message_with_line, error_with_line): Delete.
21036 * gensupport.h: Include read-md.h.
21037 (md_rtx_info): New structure.
21038 (read_md_rtx): Use it. Return a bool success value.
21039 * gensupport.c (read_md_rtx): Likewise.
21040 * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
21041 (main): Update after interface changes.
21042 * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
21043 (main): Update after interface changes.
21044 * genattrtab.c (insn_code_number): Delete.
21045 (optimize_attrs): Add a max_insn_code parameter and use it instead
21046 of insn_code_number.
21047 (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
21048 Use *_at rather than *_with_line functions.
21049 (gen_insn): Likewise.
21050 (gen_delay): Likewise.
21051 (gen_insn_reserv): Likewise.
21052 (gen_bypass): Take an md_rtx_info rather than an rtx.
21053 (main): Update after interface changes. Use a local max_insn_code
21054 variable instead of insn_code_number.
21055 * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
21056 an rtx. Use fatal_at rather than fatal.
21057 (gen_query_cpu_unit, gen_bypass, gen_excl_set)
21058 (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
21059 (gen_absence_set, gen_final_absence_set, gen_automaton)
21060 (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
21061 (main): Update after interface changes.
21062 * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
21064 (main): Update after interface changes.
21065 * genconditions.c (main): Use new read_md_rtx interface.
21066 * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
21067 (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
21068 (main): Update after interface changes.
21069 * genemit.c (insn_code_number, insn_index_number): Delete.
21070 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
21071 Use fatal_at rather than fatal.
21072 (gen_expand): Take an md_rtx_info rather than an rtx. Use fatal_at
21074 (gen_split): Likewise.
21075 (main): Update after interface changes.
21076 * genextract.c (line_no): Delete.
21077 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
21078 Update call to walk_rtx.
21079 (VEC_safe_set_locstr): Add an md_rtx_info argument. Use message_at
21080 rather than message_with_line.
21081 (walk_rtx): Add an md_rtx_info argument. Update call to
21082 VEC_safe_set_locstr.
21083 (main): Update after interface changes.
21084 * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
21085 and lineno. Use error_at rather than separate message_with_line
21086 calls and have_error assignments.
21087 (main): Update after interface changes.
21088 * genmddump.c (main): Use new read_md_rtx interface.
21089 * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
21090 (main): Update after interface changes.
21091 * genoutput.c (next_code_number): Delete.
21092 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
21093 (gen_peephole, gen_expand, gen_split): Likewise.
21094 (note_constraint): Likewise. Use *_at rather than *_with_line
21096 (main): Update after interface changes.
21097 * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
21099 (main): Update after interface changes.
21100 * genpreds.c (process_define_predicate): Take an md_rtx_info rather
21101 than an rtx and lineno.
21102 (process_define_constraint): Likewise.
21103 (process_define_register_constraint): Likewise.
21104 (main): Update after interface changes.
21105 * genrecog.c (next_insn_code, pattern_lineno): Delete.
21106 (validate_pattern): Replace top-level rtx with an md_rtx_info.
21107 Use *_at rather than *_with_line functions.
21108 (match_pattern_2): Likewise.
21109 (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
21110 (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
21111 Use *_at rather than *_with_line functions.
21112 * gentarget-def.c (add_insn): New function.
21113 (main): Use it. Use new read_md_rtx interface.
21115 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
21117 * gensupport.h (compute_test_codes): Take a file_location rather
21118 than a line number.
21119 * gensupport.c (compute_test_codes): Likewise. Use *_at functions
21120 rather than *_with_line functions.
21121 (process_define_predicate): Update call to compute_test_codes.
21122 * genpreds.c (validate_exp): Take a file_location rather than a
21123 line number. Use *_at functions rather than *_with_line functions.
21124 (process_define_predicate): Update call to validate_exp.
21125 (constraint_data): Replace lineno field with a file_location.
21126 (add_constraint): Take a file_location rather than a line number.
21127 Use *_at functions rather than *_with_line functions. Fix error
21128 message for address constraints. Update after changes to
21129 validate_exp, constraint_data and compute_test_codes.
21130 (process_define_constraint): Update accordingly.
21131 (process_define_register_constraint): Likewise.
21133 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
21135 * genoutput.c (data): Use a file_location to record the source
21138 (idata, idata_end): Remove initialization.
21139 (constraint_data): Replace lineno with a file_location.
21140 (output_insn_data): Update after changes to data.
21141 (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
21142 (scan_operands): Likewise, using *_at rather than *_with_line
21144 (process_template): Likewise.
21145 (validate_insn_alternatives): Likewise.
21146 (validate_insn_operands): Likewise.
21147 (validate_optab_operands): Likewise.
21148 (init_insn_for_nothing): Initialize idata and idata_end.
21149 (note_constraint): Update after changes to constraint_data,
21150 using at rather than with_line functions.
21151 (mdep_constraint_len): Take a file_location rather than a
21152 line number. Use at rather than with_line functions.
21154 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
21156 * read-md.h (fatal_at): Declare.
21157 * read-md.c (fatal_at): New function.
21158 * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
21159 to record the source position.
21160 (check_attr_test): Take a file_location instead of a line number.
21161 Use fatal_at instead of fatal.
21162 (check_attr_value): Update after above changes, using "at"
21163 rather than "with_line" reporting functions.
21164 (convert_set_attr_alternative): Likewise.
21165 (gen_attr): Likewise.
21166 (check_defs): Likewise. Don't assign to read_md_filename.
21167 (gen_insn): Update initialization after above changes.
21168 (gen_delay): Likewise.
21169 (write_insn_cases): Print the filename for a define_peephole.
21170 (gen_insn_reserv): Take a line number as argument and update
21171 the call to check_attr_test.
21172 (main): Pass a line number to gen_insn_reserv.
21174 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
21176 * read-md.h (file_location): New structure.
21177 (directive_handler_t): Take a file_location rather than a line number.
21178 (message_at, error_at): Declare.
21179 (read_skip_construct): Delete.
21180 * read-md.c (message_with_line_1): Replace with...
21181 (message_at_1): ...this new function.
21182 (message_at, error_at): New functions.
21183 (message_with_line, error_with_line): Update to use message_at_1.
21184 (handle_enum): Take a file_location rather than a line number
21185 and use error_at for error reporting.
21186 (handle_include): Likewise.
21187 (read_skip_construct): Likewise. Make static.
21188 (handle_file): Update after above changes. Pass a file_location
21189 rather than a line number to handle_directive.
21190 * gensupport.c (queue_elem): Replace separate filename and lineno
21191 with a file_location.
21192 (queue_pattern): Replace filename and lineno arguments with a
21193 file_location. Update after change to queue_elem.
21194 (process_define_predicate): Replace lineno argument with a
21195 file_location and use error_at for error reporting. Update
21196 after above changes.
21197 (process_rtx): Likewise.
21198 (subst_pattern_match): Likewise.
21199 (get_alternatives_number): Likewise.
21200 (alter_predicate_for_insn): Likewise.
21201 (rtx_handle_directive): Likewise.
21202 (is_predicable): Update after above changes, using error_at rather
21203 than error_with_line.
21204 (has_subst_attribute): Likewise.
21205 (identify_predicable_attribute): Likewise.
21206 (alter_attrs_for_subst_insn): Likewise.
21207 (process_one_cond_exec): Likewise.
21208 (process_substs_on_one_elem): Likewise.
21209 (process_define_subst): Likewise.
21210 (check_define_attr_duplicates): Likewise.
21211 (read_md_rtx): Update after change to queue_elem.
21213 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
21215 * genoutput.c (next_index_number): Delete.
21216 (data): Remove index_number.
21217 (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
21218 (main): Remove manipulation of next_index_number.
21220 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
21222 * genattrtab.c (check_attr_value): Remove handling of null attrs.
21223 (make_canonical): Likewise.
21225 2015-07-16 Eric Botcazou <ebotcazou@adacore.com>
21227 * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
21228 instead of adjust_address_nv.
21229 (restore_stack_nonlocal): Likewise.
21230 (nonlocal_goto): Likewise.
21232 2015-07-16 Tom de Vries <tom@codesourcery.com>
21234 * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
21235 not have a corresponding loop header phi.
21237 2015-07-16 Tom de Vries <tom@codesourcery.com>
21239 * tree-parloops.c (create_loads_for_reductions): Handle case that
21240 reduction is unused.
21242 2015-07-16 Richard Biener <rguenther@suse.de>
21244 PR tree-optimization/66894
21245 * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
21246 about deriving NE_EXPR from truncated values.
21248 2015-07-16 Martin Liska <mliska@suse.cz>
21251 (object_allocator): Add new class.
21252 (pool_allocator::initialize): Use the underlying class.
21253 (pool_allocator::allocate): Likewise.
21254 (pool_allocator::remove): Likewise.
21255 (operator new): A new generic allocator.
21256 * asan.c (struct asan_mem_ref): Remove unused members.
21257 (asan_mem_ref_new): Replace new operator with
21258 object_allocator::allocate.
21259 (free_mem_ref_resources): Change deallocation.
21260 * cfg.c (initialize_original_copy_tables): Replace pool_allocator
21261 with object_allocator.
21262 * config/sh/sh.c (add_constant): Replace new operator with
21263 object_allocator::allocate.
21264 (sh_reorg): Change call to a release method.
21265 * cselib.c (struct elt_list): Remove unused members.
21266 (new_elt_list): Replace new operator with
21267 object_allocator::allocate.
21268 (new_elt_loc_list): Likewise.
21269 (new_cselib_val): Likewise.
21270 (unchain_one_elt_list): Change delete operator with remove method.
21271 (unchain_one_elt_loc_list): Likewise.
21272 (unchain_one_value): Likewise.
21273 (cselib_finish): Release newly added static allocators.
21274 * cselib.h (struct cselib_val): Remove unused members.
21275 (struct elt_loc_list): Likewise.
21276 * df-problems.c (df_chain_alloc): Replace pool_allocator with
21278 * df-scan.c (struct df_scan_problem_data): Likewise.
21279 (df_scan_alloc): Likewise.
21280 * df.h (struct dataflow): Likewise.
21281 * dse.c (struct read_info_type): Likewise.
21282 (struct insn_info_type): Likewise.
21283 (struct dse_bb_info_type): Likewise.
21284 (struct group_info): Likewise.
21285 (struct deferred_change): Likewise.
21286 (get_group_info): Likewise.
21287 (delete_dead_store_insn): Likewise.
21288 (free_read_records): Likewise.
21289 (replace_read): Likewise.
21290 (check_mem_read_rtx): Likewise.
21291 (scan_insn): Likewise.
21292 (dse_step1): Likewise.
21293 (dse_step7): Likewise.
21294 * et-forest.c (struct et_occ): Remove unused members.
21295 (et_new_occ): Use allocate instead of new operator.
21296 (et_new_tree): Likewise.
21297 (et_free_tree): Call release method explicitly.
21298 (et_free_tree_force): Likewise.
21299 (et_free_pools): Likewise.
21300 (et_split): Use remove instead of delete operator.
21301 * et-forest.h (struct et_node): Remove unused members.
21302 * ipa-cp.c: Change pool_allocator to object_allocator.
21303 * ipa-inline-analysis.c: Likewise.
21304 * ipa-profile.c: Likewise.
21305 * ipa-prop.c: Likewise.
21306 * ipa-prop.h: Likewise.
21307 * ira-build.c (initiate_cost_vectors): Cast return value.
21308 (ira_allocate_cost_vector): Likewise.
21309 * ira-color.c (struct update_cost_record): Remove unused members.
21310 * lra-int.h (struct lra_live_range): Likewise.
21311 (struct lra_copy): Likewise.
21312 (struct lra_insn_reg): Likewise.
21313 * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
21314 * lra.c (new_insn_reg): Replace new operator with allocate method.
21315 (free_insn_regs): Same for operator delete.
21316 (finish_insn_regs): Release new static allocator.
21317 (finish_insn_recog_data): Likewise.
21318 (lra_free_copies): Replace delete operator with remove method.
21319 (lra_create_copy): Replace operator new with allocate method.
21320 (invalidate_insn_data_regno_info): Same for remove method.
21321 * regcprop.c (struct queued_debug_insn_change): Remove unused members.
21322 (free_debug_insn_changes): Replace delete operator with remove method.
21323 (replace_oldest_value_reg): Replace operator new with allocate method.
21324 (pass_cprop_hardreg::execute): Release new static variable.
21325 * sched-deps.c (sched_deps_init): Change pool_allocator to
21327 * sel-sched-ir.c: Likewise.
21328 * sel-sched-ir.h: Likewise.
21329 * stmt.c (expand_case): Likewise.
21330 (expand_sjlj_dispatch_table): Likewise.
21331 * tree-sra.c (struct access): Remove unused members.
21332 (struct assign_link): Likewise.
21333 (sra_deinitialize): Release newly added static pools.
21334 (create_access_1):Replace operator new with allocate method.
21335 (build_accesses_from_assign): Likewise.
21336 (create_artificial_child_access): Likewise.
21337 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
21338 pool_allocator to object_allocator.
21339 * tree-ssa-pre.c: Likewise.
21340 * tree-ssa-reassoc.c: Likewise.
21341 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
21342 * tree-ssa-strlen.c: Likewise.
21343 * tree-ssa-structalias.c: Likewise.
21344 * var-tracking.c (onepart_pool_allocate): New function.
21345 (unshare_variable): Use the newly added function.
21346 (variable_merge_over_cur): Likewise.
21347 (variable_from_dropped): Likewise.
21348 (variable_was_changed): Likewise.
21349 (set_slot_part): Likewise.
21350 (emit_notes_for_differences_1): Likewise.
21351 (vt_finalize): Release newly added static pools.
21353 2015-07-16 Martin Jambor <mjambor@suse.cz>
21355 * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status. Adjust
21356 all uses. Fix two typos in its general comment.
21357 (func_body_info): Rename to ipa_func_body_info. Adjust all uses.
21359 2015-07-16 Ilya Enkovich <enkovich.gnu@gmail.com>
21361 * config/i386/linux-common.h (LINK_MPX): New.
21362 (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
21363 * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
21364 indicating '-z bndplt' support by linker.
21365 * configure: Regenerate.
21366 * config.in: Regenerate.
21368 2015-07-16 Richard Biener <rguenther@suse.de>
21370 * fold-const.c (fold_widened_comparison): Remove.
21371 (fold_sign_changed_comparison): Likewise.
21372 (fold_comparison): Move widened and sign-changed comparison
21374 * match.pd: ... to patterns here.
21375 * generic-match-head.c: Include target.h.
21376 * gimple-match-head.c: Likewise.
21378 2015-07-16 Richard Biener <rguenther@suse.de>
21380 * tree-ssa-dom.c (dom_valueize): New function.
21381 (record_temporary_equivalences): Also record equivalences
21382 for dominating stmts that have uses of equivalences we are
21385 2015-07-16 Bin Cheng <bin.cheng@arm.com>
21387 * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
21388 add_autoinc_candidates.
21389 (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
21390 (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
21391 (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
21392 (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
21394 (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
21395 (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
21396 Remove parameter struct iv*. Call add_autoinc_candidates here.
21397 (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
21398 (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
21400 (find_iv_candidates): Call new functions.
21402 2015-07-16 Sandra Loosemore <sandra@codesourcery.com>
21404 * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
21405 uninitialized-variable warning.
21407 2015-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
21410 * config/sh/sh.md (movdi): Split simple reg move to two movsi
21411 when the destination is R0.
21413 2015-07-16 Uros Bizjak <ubizjak@gmail.com>
21416 * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
21417 * config/i386/i386.c (ix86_expand_pextr): New function.
21418 (ix86_expand_pinsr): Handle V1TI and TI modes. Call ix86_expand_pextr
21419 for non-lowpart subregs.
21420 * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
21421 (insv<mode>): Use SWI248 mode iterator.
21422 (insv<mode>_1): Ditto.
21424 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
21425 Sebastian Pop <s.pop@samsung.com>
21427 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
21428 iterator to use_stmt.
21430 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
21431 Sebastian Pop <s.pop@samsung.com>
21433 * graphite-scop-detection.c (build_scops_1): Discard scops for
21436 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
21437 Sebastian Pop <s.pop@samsung.com>
21439 * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
21440 case of a return statement in scop.
21442 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
21443 Sebastian Pop <s.pop@samsung.com>
21445 * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
21446 INTEGER_TYPE parameters.
21447 (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
21448 VECTOR_CST in scan_tree_for_params.
21449 (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
21451 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
21453 * gimple-pretty-print.h: Don't include pretty-print.h.
21454 * tree-streamer.h: Don't include lto-streamer.h.
21455 * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
21456 * gimple-streamer-in.c: Remove redundant includes.
21457 * gimple-streamer-out.c: Likewise.
21458 * ipa-devirt.c: Likewise.
21459 * ipa-icf.c: Likewise.
21460 * ipa-inline-analysis.c: Likewise.
21461 * ipa-polymorphic-call.c: Likewise.
21462 * ipa-profile.c: Likewise.
21463 * ipa-prop.c: Likewise.
21464 * ipa-pure-const.c: Likewise.
21465 * lto-cgraph.c: Likewise.
21466 * lto-streamer-in.c: Likewise.
21467 * lto-streamer-out.c: Likewise.
21468 * lto-streamer.c: Likewise.
21469 * tree-streamer-in.c: Likewise.
21470 * tree-streamer-out.c: Likewise.
21471 * tree-streamer.c: Likewise.
21473 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
21475 * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
21477 * opts.c: Remove multiline #include comment.
21479 2015-07-15 Nathan Sidwell <nathan@codesourcery.com>
21481 * config/nvptx/mkoffload.c (process): Add C++ protection to
21484 2015-07-14 Michael Meissner <meissner@linux.vnet.ibm.com>
21487 * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
21488 null before IEEE 128-bit floating point support patch.
21490 2015-07-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21492 * simplify-rtx.c (simplify_ternary_operation): Add simplification
21493 for (!c) != {0,...,0} ? a : b for vector modes.
21495 2015-07-15 Paolo Bonzini <bonzini@gnu.org>
21496 Martin Jambor <mjambor@suse.cz>
21498 * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
21499 struct func_body_info* instead of struct ipa_node_params*, expecting
21500 fbi->info to be filled in. Replace throughout. Adjust call to
21501 ipa_load_from_parm_agg.
21502 (set_cond_stmt_execution_predicate): Accept struct func_body_info*
21503 instead of struct ipa_node_params*. Adjust calls to other functions
21504 so that they pass either fbi or fbi->info.
21505 (set_switch_stmt_execution_predicate): Likewise.
21506 (will_be_nonconstant_predicate): Likewise.
21507 (compute_bb_predicates): Likewise.
21508 (estimate_function_body_sizes): Move asserts earlier. Fill in
21509 struct func_body_info, replace parms_info with fbi.info. Adjust
21510 calls to functions that now accept struct func_body_info.
21511 * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
21512 (struct func_body_info): Likewise.
21513 (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
21514 remove static. Adjust callers.
21515 (ipa_load_from_parm_agg): Remove.
21516 * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
21517 (func_body_info): Likewise.
21518 (ipa_load_from_parm_agg): Adjust prototype.
21520 2015-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21522 * gensupport.c (rtx_handle_directive): Adjust.
21523 * read-rtl.c (apply_iterators): Take vector to add rtxs to
21524 instead of expr list rtx.
21525 (add_define_attr_for_define_subst): Likewise.
21526 (add_define_subst_attr): Likewise.
21527 (read_subst_mapping): Likewise.
21528 (read_rtx): Likewise.
21529 * rtl.h (read_rtx): Adjust.
21531 2015-07-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21533 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
21535 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
21538 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
21539 (*tls_local_dynamic_base_64_<mode>): Ditto.
21540 (*tls_local_dynamic_base_64_largepic): Ditto.
21541 (tls_global_dynamic_64_<mode>): Update expander pattern.
21542 (tls_local_dynamic_base_64_<mode>): Ditto.
21544 2015-07-15 Richard Biener <rguenther@suse.de>
21546 * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
21547 and bool_var == 1 -> bool_var simplifications ...
21548 * match.pd: ... to patterns here. Factor out negate_expr_p
21549 cases from the A - B -> A + (-B) patterns as negate_expr_p
21550 predicate and add a -(A + B) -> (-B) - A pattern.
21552 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
21554 * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
21556 2015-07-15 Matthew Fortune <matthew.fortune@imgtec.com>
21557 Robert Suchanek <robert.suchanek@imgtec.com>
21559 * config/mips/mips.c (mips_int_mask): New enum.
21560 (mips_shadow_set): Likewise.
21561 (int_mask): New variable.
21562 (use_shadow_register_set_p): Change type to enum mips_shadow_set.
21563 (machine_function): Add int_mask and use_shadow_register_set.
21564 (mips_attribute_table): Add attribute handlers for interrupt and
21565 use_shadow_register_set.
21566 (mips_interrupt_mask): New static function.
21567 (mips_handle_interrupt_attr): Likewise.
21568 (mips_handle_use_shadow_register_set_attr): Likewise.
21569 (mips_use_shadow_register_set): Change return type to enum
21570 mips_shadow_set. Add argument handling for use_shadow_register_set
21572 (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
21573 compare with mips_shadow_set enum.
21574 (mips_compute_frame_info): Add interrupt mask and
21575 use_shadow_register_set to per-function information structure.
21576 Add a stack slot for EPC unconditionally.
21577 (mips_expand_prologue): Compare use_shadow_register_set value
21578 with mips_shadow_set enum. Save EPC always in K1, clobber only K1 for
21579 masked interrupt register but in EIC mode use K0 and save Cause in K0.
21580 EPC saved and restored unconditionally. Use PMODE_INSN macro when
21581 copying the stack pointer from the shadow register set.
21582 * config/mips/mips.h (SR_IM0): New define.
21583 * config/mips/mips.md (mips_rdpgpr): Rename to...
21584 (mips_rdpgpr_<mode>): ...this. Use the Pmode iterator.
21585 * doc/extend.texi (Declaring Attributes of Functions): Document
21586 optional arguments for interrupt and use_shadow_register_set
21589 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
21591 * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
21592 interrupt attribute.
21593 (mips_expand_prologue): Disable the floating point unit in an ISR.
21594 * config/mips/mips.h (SR_COP1): New define.
21596 2015-07-15 Richard Biener <rguenther@suse.de>
21598 * genmatch.c (parser::peek, parser::peek_ident): Add argument
21599 to tell how many tokens to peek ahead (default 1).
21600 (parser::eat_token, parser::eat_ident): Return token consumed.
21601 (parser::parse_result): Parse new switch statement.
21602 * match.pd: Use case statements where appropriate.
21604 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
21606 PR rtl-optimization/58066
21607 * calls.c (expand_call): Precompute register parameters before stack
21608 alignment is performed.
21610 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
21612 PR rtl-optimization/66838
21613 * postreload.c (reload_cse_move2add): Also process
21614 CALL_INSN_FUNCTION_USAGE when resetting information of
21615 call-clobbered registers.
21617 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
21618 Cesar Philippidis <cesar@codesourcery.com>
21619 Chung-Lin Tang <cltang@codesourcery.com>
21621 * config/nios2/constraints.md (U, v): New constraints.
21622 * config/nios2/predicates.md (rdprs_dcache_operand): New.
21623 (ldstex_memory_operand): New.
21624 * config/nios2/sync.md: New file.
21625 * config/nios2/nios2.md (unspecv): Add new builtin function
21627 (rdprs, flushd, flushda, wrpie, eni): New patterns.
21628 (top-level): Include sync.md.
21629 * config/nios2/nios2.c (N2_FTYPES): Add function types for
21631 (N2_BUILTINS): Add arch field setting, add new builtins.
21632 (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
21634 (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
21635 Also handle ldex/stex/ldsex/stsex builtins.
21636 (nios2_expand_rdprs_builtin): New function.
21637 (nios2_expand_cache_builtin): New function.
21638 (nios2_expand_wrpie_builtin): New function.
21639 (nios2_expand_eni_builtin): New function.
21640 (nios2_expand_builtin): Add arch field handling and new builtin
21642 * doc/extend.texi (Altera Nios II Built-in Functions): Document
21644 * doc/md.texi (Machine Constraints): Document U and v constraints.
21646 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
21647 Cesar Philippidis <cesar@codesourcery.com>
21648 Chung-Lin Tang <cltang@codesourcery.com>
21650 * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
21651 * config/nios2/nios2.c (struct GTY (()) machine_function): Add
21652 callee_save_reg_size and uses_anonymous_args fields.
21653 (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
21654 (nios2_create_cfa_notes): New function.
21655 (nios2_adjust_stack): New function for adjusting stack.
21656 (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
21657 Use nios2_adjust_stack.
21658 (nios2_expand_epilogue): Likewise.
21659 (nios2_expand_return): New function.
21660 (nios2_can_use_return_insn): Update for CDX pop.n usage.
21661 (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
21662 If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
21663 * config/nios2/nios2.md (return): Use nios2_expand_return.
21665 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
21666 Cesar Philippidis <cesar@codesourcery.com>
21667 Chung-Lin Tang <cltang@codesourcery.com>
21669 * config/nios2/predicates.md (pop_operation): New.
21670 (ldwm_operation, stwm_operation): New.
21671 (nios2_hard_register_operand): New.
21672 * config/nios2/nios2-protos.h (pop_operation_p): Declare.
21673 (ldstwm_operation_p): Declare.
21674 (gen_ldstwm_peep): Declare.
21675 * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
21676 (base_reg_adjustment_p): New.
21677 (pop_operation_p): New.
21678 (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
21679 (nios2_ldstwm_regset_p): New.
21680 (ldstwm_operation_p): New.
21682 (nios2_ldst_parallel): New.
21683 (struct ldswm_operand): Declare.
21684 (compare_ldstwm_operands): New.
21685 (can_use_cdx_ldstw): New.
21686 (gen_ldstwm_peep): New.
21687 * config/nios2/nios2-ldstwm.sml: New.
21688 * config/nios2/nios2.md: Include ldstwm.md.
21689 * config/nios2/ldstwm.md: Generated.
21691 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
21692 Cesar Philippidis <cesar@codesourcery.com>
21693 Chung-Lin Tang <cltang@codesourcery.com>
21695 * config/nios2/nios2.h (LABEL_ALIGN): Define.
21696 (REG_ALLOC_ORDER): Define.
21697 (ADJUST_REG_ALLOC_ORDER): Define.
21698 (HONOR_REG_ALLOC_ORDER): Define.
21699 (CDX_REG_P): Define.
21700 (ANDCLEAR_INT): Define.
21701 * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
21702 (nios2_label_align): Declare.
21703 (nios2_cdx_narrow_form_p): Declare.
21704 (nios2_adjust_reg_alloc_order): Declare.
21705 * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
21707 (nios2_large_unspec_reloc_p): New function, split from...
21708 (nios2_legitimate_pic_operand_p): ...here.
21709 (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
21710 (nios2_print_operand_punct_valid_p): New.
21711 (nios2_print_operand): Add %., %!, %x, %y, %A. Remove %U.
21712 (split_mem_address): New.
21713 (split_alu_insn): New.
21715 (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
21716 (enum nios2_add_insn_kind): New.
21717 (nios2_add_insn_names, nios2_add_insn_narrow): New.
21718 (nios2_add_insn_classify): New.
21719 (nios2_add_insn_asm): New.
21720 (nios2_cdx_narrow_form_p): New.
21721 (label_align, min_labelno, max_labelno): New.
21722 (nios2_reorg): New.
21723 (nios2_label_align): New.
21724 (nios2_adjust_reg_alloc_order): New.
21725 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
21726 (TARGET_MACHINE_DEPENDENT_REORG): Define.
21727 * config/nios2/constraints.md (P): New constraint.
21728 * config/nios2/predicates.md (const_and_operand): New.
21729 (and_operand): New.
21730 (stack_memory_operand): New.
21731 * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
21732 (length): Update to use nios2_cdx_narrow_form_p().
21733 (type): Add new insn type values.
21734 (control, alu, st, ld, shift): Update insn reservations with
21735 new insn type values.
21736 (*high, *lo_sum): Define new insn patterns for constant generation.
21737 (movqi_internal, movhi_internal, movsi_internal): Reduce
21738 alternatives, update asm template to handle CDX variants, update
21740 (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
21741 template, update type attributes.
21742 (extendhisi2, extendqi<mode>2): Likewise.
21743 (addsi3): Change to use function for asm string.
21744 (subsi3): Add CDX notation to asm template, update type attributes.
21745 (negsi3, one_cmplsi3): Likewise.
21746 (andsi3): New pattern, specialized from logical patterns.
21747 (<code>si3): Remove and case, combine alternatives, update asm
21749 (<shift_op>si3): Add CDX notation, update type attributes.
21750 (rotrsi3): Update type attribute.
21751 (*merge, extzv, insv): New insn patterns.
21752 (return): Change to define_expand.
21753 (simple_return): Add CDX notation, update type attributes.
21754 (indirect_jump): Add CDX notation.
21755 (jump): Update asm cases, update length attribute expression.
21756 (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
21757 (nios2_cbranch): Update asm cases and length attribute expression
21758 to handle CDX variants.
21759 (nios2_cmp<code>): Update asm template.
21760 (nop): Add CDX notation, update type attributes.
21761 (trap): Add CDX notation.
21762 (ctrapsi4): Update asm cases and length attribute expression to
21763 handle CDX variant.
21764 * doc/md.texi (Machine Constraints): Document P constraint.
21766 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
21767 Cesar Philippidis <cesar@codesourcery.com>
21768 Chung-Lin Tang <cltang@codesourcery.com>
21770 * config/nios2/nios2.h (SMALL_INT12): New macro.
21771 * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
21772 (nios2_valid_addr_expr_p): Use it.
21773 (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
21774 with implicit "io" instructions on R2.
21775 * config/nios2/constraints.md (w): New constraint.
21776 * config/nios2/predicates.md (ldstio_memory_operand): New.
21777 * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
21778 operand predicate and constraint.
21779 (ld<bh>io_signed, st<bhw>io>): Likewise.
21780 * doc/md.texi (Machine Constraints): Document w constraint.
21782 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
21783 Cesar Philippidis <cesar@codesourcery.com>
21784 Chung-Lin Tang <cltang@codesourcery.com>
21786 * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
21787 * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
21788 Nios II architecture level.
21789 * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
21790 (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
21791 (OPTION_DEFAULT_SPECS): Define.
21792 (ASM_SPEC): Add -march= spec strings.
21793 * config/nios2/nios2.c (nios2_option_override): Check for
21794 conflicts involving new options.
21795 * config.gcc (nios2*-*-*): Support --with-arch=.
21796 * doc/invoke.texi (Option Summary, Nios II Options): Document
21797 -march=, -mbmx, and -mcdx.
21799 2015-07-14 Vladimir Makarov <vmakarov@redhat.com>
21801 PR rtl-optimization/66626
21802 * lra-constraints.c (lra_constraints): Prevent equivalence
21803 substitution for static chain pseudo in functions with nonlocal
21806 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
21808 * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
21809 (nios2_emit_stack_limit_check): Add size parameter. Handle
21810 -fstack-limit-symbol as well as -fstack-limit-register.
21811 (nios2_expand_prologue): Emit only a single stack limit check,
21812 even if multiple stack adjustments are required.
21813 (nios2_option_override): Diagnose unsupported combination of -fpic
21814 and -stack-limit-symbol.
21816 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
21818 * Makefile.in (top_srcdir): New.
21819 * configure.ac: Use AM_ZLIB.
21820 * configure: Regeneated.
21822 2015-07-14 Matthias Klose <doko@ubuntu.com>
21825 * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
21827 2015-07-14 Richard Biener <rguenther@suse.de>
21829 PR tree-optimization/66863
21830 * tree-vrp.c (register_edge_assert_for_2): Properly restrict
21831 what we record for conversion use stmt lhs inequalities.
21833 2015-07-14 Richard Biener <rguenther@suse.de>
21835 * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
21836 (decision_tree::gen_gimple): Likewise.
21838 2015-07-14 Tom de Vries <tom@codesourcery.com>
21840 * gcc.c (greater_than_spec_func): Declare forward.
21841 (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
21842 -ftree-parallelize-loops={0,1}.
21843 (static_spec_functions): Add greater_than_spec_func function with name
21845 (greater_than_spec_func): New function.
21847 2015-07-14 Richard Biener <rguenther@suse.de>
21849 * tree-ssa-dom.c (record_temporary_equivalences): Merge
21850 wideing type conversion case from record_equivalences_from_incoming_edge
21851 and use record_equality to record equivalences.
21852 (record_equivalences_from_incoming_edge): Call
21853 record_temporary_equivalences.
21855 2015-07-14 Richard Biener <rguenther@suse.de>
21857 * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
21858 (struct if_expr): New.
21859 (struct with_expr): Likewise.
21860 (is_a_helper): Add helpers for if_expr and with_expr.
21861 (struct simplify): Add simplify_kind enum and member. Remove
21863 (simplify::simplify): Adjust.
21864 (lower_commutative): Adjust.
21865 (lower_opt_convert): Likewise.
21866 (lower_cond): Likewise.
21867 (replace_id): Handle with_expr and if_expr.
21868 (lower_for): Adjust.
21869 (dt_simplify::gen_1): New recursive worker, split out from ...
21870 (dt_simplify::gen): ... here. Deal with if and with expansion
21872 (capture_info::capture_info): Take context argument
21873 (capture_info::walk_result): Only analyze specific result.
21874 (parser::parse_result): New function.
21875 (parser::parse_simplify): Adjust to parse ifs with then end
21877 (parser::parse_if): Simplify.
21878 (parser::parse_pattern): Pass down simplify kind.
21879 * match.pd: Convert if structure to new syntax.
21881 2015-07-13 Marek Polacek <polacek@redhat.com>
21883 * rtl.c (rtx_equal_p_cb): Fix typo.
21885 2015-07-13 Andrew MacLeod <amacleod@redhat.com>
21887 * omega.h: Don't include config.h, don't include params.h again if
21888 omega.h has already been included.
21889 * graphite-poly.h: Include sese.h.
21890 * graphite.c: Don't include sese.h, remove needless includes and
21891 minimize includes outside #ifdef HAVE_isl block.
21892 * graphite-blocking.c: Don't include sese.h, remove needless includes,
21893 and wrap entire file in #ifdef HAVE_isl
21894 * graphite-dependences.c: Likewise.
21895 * graphite-interchange.c: Likewise.
21896 * graphite-isl-ast-to-gimple.c: Likewise.
21897 * graphite-optimize-isl.c: Likewise.
21898 * graphite-poly.c: Likewise.
21899 * graphite-scop-detection.c: Likewise.
21900 * graphite-sese-to-poly.c: Likewise.
21902 2015-07-13 Tom de Vries <tom@codesourcery.com>
21904 * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
21906 2015-07-13 Renlin Li <renlin.li@arm.com>
21909 * simplify-rtx.c (simplify_const_relational_operation): Add
21910 side_effects_p checks.
21912 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
21914 * bitmap.h: Fix double word typos.
21915 * builtins.c: Same.
21917 * cfgloopmanip.c: Same.
21920 * cgraphclones.c: Same.
21922 * config/aarch64/aarch64-protos.h: Same.
21923 * config/aarch64/aarch64.c: Same.
21924 * config/aarch64/aarch64.md: Same.
21925 * config/arm/arm.md: Same.
21926 * config/arm/arm1020e.md: Same.
21927 * config/arm/arm1026ejs.md: Same.
21928 * config/arm/arm926ejs.md: Same.
21929 * config/arm/fa526.md: Same.
21930 * config/arm/fa606te.md: Same.
21931 * config/arm/fa626te.md: Same.
21932 * config/arm/fa726te.md: Same.
21933 * config/arm/fmp626.md: Same.
21934 * config/darwin.c: Same.
21935 * config/epiphany/epiphany.c: Same.
21936 * config/frv/frv.c: Same.
21937 * config/ft32/ft32.c: Same.
21938 * config/gnu-user.h: Same.
21939 * config/h8300/constraints.md: Same.
21940 * config/i386/i386.c: Same.
21941 * config/i386/i386.md: Same.
21942 * config/iq2000/iq2000.md: Same.
21943 * config/mips/mips.c: Same.
21944 * config/mmix/mmix.md: Same.
21945 * config/moxie/moxie.c: Same.
21946 * config/nds32/nds32.md: Same.
21947 * config/pa/pa.h: Same.
21948 * config/rs6000/aix.h: Same.
21949 * config/rs6000/rs6000.h: Same.
21950 * config/sh/sh.c: Same.
21951 * config/tilegx/tilegx.md: Same.
21952 * config/tilepro/gen-mul-tables.cc: Same.
21955 * doc/invoke.texi: Same.
21957 * dwarf2out.c: Same.
21960 * genmatch.c: Same.
21961 * gimplify.c: Same.
21962 * hash-table.h: Same.
21963 * internal-fn.c: Same.
21965 * ipa-devirt.c: Same.
21968 * ipa-profile.c: Same.
21969 * ipa-prop.c: Same.
21970 * ipa-prop.h: Same.
21973 * reg-stack.c: Same.
21974 * regcprop.c: Same.
21979 * tree-inline.c: Same.
21980 * tree-sra.c: Same.
21981 * tree-ssa-dom.c: Same.
21982 * tree-ssa-loop-ivopts.c: Same.
21983 * tree-ssa-structalias.c: Same.
21984 * tree-ssa-tail-merge.c: Same.
21985 * tree-ssa-ter.c: Same.
21986 * tree-ssa-threadupdate.c: Same.
21987 * tree-ssa-uninit.c: Same.
21988 * tree-ssanames.c: Same.
21989 * tree-vect-loop-manip.c: Same.
21990 * tree-vrp.c: Same.
21992 * valtrack.c: Same.
21995 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
21997 PR middle-end/66726
21998 * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
21999 tree_ssa_phiopt_worker): Call it.
22001 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
22003 * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
22004 * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
22007 2015-07-11 Marek Polacek <polacek@redhat.com>
22009 PR middle-end/66353
22010 * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
22011 * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
22012 (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
22013 rather than bb_has_abnormal_call_pred.
22014 * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
22015 (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
22016 rather than bb_has_abnormal_call_pred.
22018 2015-07-10 Anatoly Sokolov <aesok@post.ru>
22020 * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
22021 REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
22022 RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
22023 * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
22024 v850_legitimate_address_p): New functions.
22025 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
22027 2015-07-10 H.J. Lu <hongjiu.lu@intel.com>
22030 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
22031 indirect sibcall with register arguments if register available
22032 for argument passing.
22033 (init_cumulative_args): Set cfun->machine->arg_reg_available
22034 to (cum->nregs > 0) or to true if function has a variable
22036 (function_arg_advance_32): Set cfun->machine->arg_reg_available
22037 to false if cum->nregs <= 0.
22038 * config/i386/i386.h (machine_function): Add arg_reg_available.
22040 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
22042 * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
22043 and gen_higpart instead of gen_rtx_SUBREG.
22044 * config/i386/i386.md
22045 (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
22046 (read-modify peephole2): Use gen_lowpart instead of
22047 gen_rtx_SUBREG for operand 5.
22049 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
22051 * config/tilepro/gen-mul-tables.cc (main): Change include list for
22053 * config/tilepro/mul-tables.c: Regenerate.
22054 * config/tilegx/mul-tables.c: Regenerate.
22056 2015-07-10 Richard Biener <rguenther@suse.de>
22058 * fold-const.c (distribute_bit_expr): Remove.
22059 (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
22060 to (A & C1) | (B & C2), distributing (A & B) | (A & C)
22061 to A & (B | C) and simplifying A << C1 << C2 to ...
22062 * match.pd: ... patterns here.
22064 2015-07-10 Jiong Wang <jiong.wang@arm.com>
22066 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
22067 Mark mem as READONLY and NOTRAP for PIC symbol.
22069 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
22071 * gimple-predict.h: New file.
22072 (gimple_predict_predictor, gimple_predict_set_predictor,
22073 gimple_predict_outcome, gimple_predict_set_outcome,
22074 gimple_build_predict): Relocate here.
22075 * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
22076 gimple_predict_outcome, gimple_predict_set_outcome): Move to
22078 * gimple.c (gimple_build_predict): Move to gimple-predict.h
22079 * basic-block.h: Don't include cfghooks.h.
22080 * backend.h: Don't include predict.h.
22081 * cfghooks.h: Include predict.h.
22082 * gimple-pretty-print.c: Include gimple-predict.h.
22083 * gimplify.c: Likwise.
22084 * predict.c: Adjust includes.
22085 * tree-inline.c: Likewise.
22086 * asan.c: Likewise.
22087 * auto-inc-dec.c: Likewise.
22088 * auto-profile.c: Likewise.
22089 * bb-reorder.c: Likewise.
22090 * builtins.c: Likewise.
22091 * caller-save.c: Likewise.
22092 * calls.c: Likewise.
22093 * cfganal.c: Likewise.
22094 * cfgbuild.c: Likewise.
22096 * cfgcleanup.c: Likewise.
22097 * cfgexpand.c: Likewise.
22098 * cfghooks.c: Likewise.
22099 * cfgloopanal.c: Likewise.
22100 * cfgloop.c: Likewise.
22101 * cfgloopmanip.c: Likewise.
22102 * cfgrtl.c: Likewise.
22103 * cgraph.c: Likewise.
22104 * cgraphunit.c: Likewise.
22105 * combine.c: Likewise.
22106 * cprop.c: Likewise.
22109 * dojump.c: Likewise.
22111 * except.c: Likewise.
22112 * expmed.c: Likewise.
22113 * expr.c: Likewise.
22114 * final.c: Likewise.
22115 * fold-const.c: Likewise.
22116 * function.c: Likewise.
22117 * fwprop.c: Likewise.
22118 * gcc-plugin.h: Likewise.
22119 * gcse.c: Likewise.
22120 * genattrtab.c: Likewise.
22121 * genemit.c: Likewise.
22122 * gengtype.c: Likewise.
22123 * genopinit.c: Likewise.
22124 * genoutput.c: Likewise.
22125 * genpreds.c: Likewise.
22126 * genrecog.c: Likewise.
22127 * gimple-fold.c: Likewise.
22128 * gimple-iterator.c: Likewise.
22129 * gimple-ssa-isolate-paths.c: Likewise.
22130 * gimple-ssa-strength-reduction.c: Likewise.
22131 * graph.c: Likewise.
22132 * graphite-blocking.c: Likewise.
22133 * graphite.c: Likewise.
22134 * graphite-dependences.c: Likewise.
22135 * graphite-interchange.c: Likewise.
22136 * graphite-isl-ast-to-gimple.c: Likewise.
22137 * graphite-optimize-isl.c: Likewise.
22138 * graphite-poly.c: Likewise.
22139 * graphite-scop-detection.c: Likewise.
22140 * graphite-sese-to-poly.c: Likewise.
22141 * haifa-sched.c: Likewise.
22142 * ifcvt.c: Likewise.
22143 * internal-fn.c: Likewise.
22144 * ipa-cp.c: Likewise.
22145 * ipa-profile.c: Likewise.
22146 * ipa-split.c: Likewise.
22147 * ipa-utils.c: Likewise.
22148 * ira-build.c: Likewise.
22149 * ira-color.c: Likewise.
22150 * ira-conflicts.c: Likewise.
22151 * ira-costs.c: Likewise.
22152 * ira-emit.c: Likewise.
22153 * ira-lives.c: Likewise.
22154 * jump.c: Likewise.
22155 * loop-doloop.c: Likewise.
22156 * loop-init.c: Likewise.
22157 * loop-invariant.c: Likewise.
22158 * loop-unroll.c: Likewise.
22159 * lower-subreg.c: Likewise.
22160 * lra-assigns.c: Likewise.
22162 * lra-coalesce.c: Likewise.
22163 * lra-constraints.c: Likewise.
22164 * lra-lives.c: Likewise.
22165 * lto-cgraph.c: Likewise.
22166 * lto-streamer-in.c: Likewise.
22167 * mode-switching.c: Likewise.
22168 * modulo-sched.c: Likewise.
22169 * omp-low.c: Likewise.
22170 * optabs.c: Likewise.
22171 * passes.c: Likewise.
22172 * postreload.c: Likewise.
22173 * postreload-gcse.c: Likewise.
22174 * profile.c: Likewise.
22175 * recog.c: Likewise.
22176 * regstat.c: Likewise.
22177 * reload1.c: Likewise.
22178 * reorg.c: Likewise.
22179 * rtlanal.c: Likewise.
22180 * sched-ebb.c: Likewise.
22181 * sel-sched-ir.c: Likewise.
22182 * sese.c: Likewise.
22183 * shrink-wrap.c: Likewise.
22184 * simplify-rtx.c: Likewise.
22185 * stmt.c: Likewise.
22186 * store-motion.c: Likewise.
22187 * tracer.c: Likewise.
22188 * trans-mem.c: Likewise.
22189 * tree-call-cdce.c: Likewise.
22190 * tree-cfg.c: Likewise.
22191 * tree-cfgcleanup.c: Likewise.
22192 * tree-chkp.c: Likewise.
22193 * tree-complex.c: Likewise.
22194 * tree-eh.c: Likewise.
22195 * tree-if-conv.c: Likewise.
22196 * tree-loop-distribution.c: Likewise.
22197 * tree-outof-ssa.c: Likewise.
22198 * tree-parloops.c: Likewise.
22199 * tree-predcom.c: Likewise.
22200 * tree-pretty-print.c: Likewise.
22201 * tree-profile.c: Likewise.
22202 * tree-sra.c: Likewise.
22203 * tree-ssa.c: Likewise.
22204 * tree-ssa-coalesce.c: Likewise.
22205 * tree-ssa-dce.c: Likewise.
22206 * tree-ssa-dom.c: Likewise.
22207 * tree-ssa-forwprop.c: Likewise.
22208 * tree-ssa-ifcombine.c: Likewise.
22209 * tree-ssa-loop-ch.c: Likewise.
22210 * tree-ssa-loop-im.c: Likewise.
22211 * tree-ssa-loop-ivcanon.c: Likewise.
22212 * tree-ssa-loop-ivopts.c: Likewise.
22213 * tree-ssa-loop-manip.c: Likewise.
22214 * tree-ssa-loop-prefetch.c: Likewise.
22215 * tree-ssa-loop-unswitch.c: Likewise.
22216 * tree-ssa-math-opts.c: Likewise.
22217 * tree-ssa-phiopt.c: Likewise.
22218 * tree-ssa-pre.c: Likewise.
22219 * tree-ssa-reassoc.c: Likewise.
22220 * tree-ssa-sink.c: Likewise.
22221 * tree-ssa-tail-merge.c: Likewise.
22222 * tree-ssa-threadedge.c: Likewise.
22223 * tree-ssa-threadupdate.c: Likewise.
22224 * tree-switch-conversion.c: Likewise.
22225 * tree-tailcall.c: Likewise.
22226 * tree-vect-data-refs.c: Likewise.
22227 * tree-vect-loop.c: Likewise.
22228 * tree-vect-loop-manip.c: Likewise.
22229 * tree-vectorizer.c: Likewise.
22230 * tree-vrp.c: Likewise.
22231 * ubsan.c: Likewise.
22232 * value-prof.c: Likewise.
22233 * varasm.c: Likewise.
22234 * var-tracking.c: Likewise.
22235 * config/aarch64/aarch64-builtins.c: Likewise.
22236 * config/aarch64/aarch64.c: Likewise.
22237 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
22238 * config/alpha/alpha.c: Likewise.
22239 * config/arc/arc.c: Likewise.
22240 * config/arm/arm.c: Likewise.
22241 * config/avr/avr.c: Likewise.
22242 * config/bfin/bfin.c: Likewise.
22243 * config/c6x/c6x.c: Likewise.
22244 * config/cr16/cr16.c: Likewise.
22245 * config/cris/cris.c: Likewise.
22246 * config/darwin.c: Likewise.
22247 * config/darwin-c.c: Likewise.
22248 * config/epiphany/epiphany.c: Likewise.
22249 * config/epiphany/mode-switch-use.c: Likewise.
22250 * config/epiphany/resolve-sw-modes.c: Likewise.
22251 * config/fr30/fr30.c: Likewise.
22252 * config/frv/frv.c: Likewise.
22253 * config/ft32/ft32.c: Likewise.
22254 * config/h8300/h8300.c: Likewise.
22255 * config/i386/i386.c: Likewise.
22256 * config/i386/winnt.c: Likewise.
22257 * config/ia64/ia64.c: Likewise.
22258 * config/iq2000/iq2000.c: Likewise.
22259 * config/lm32/lm32.c: Likewise.
22260 * config/m32c/m32c.c: Likewise.
22261 * config/m32r/m32r.c: Likewise.
22262 * config/m68k/m68k.c: Likewise.
22263 * config/mcore/mcore.c: Likewise.
22264 * config/mep/mep.c: Likewise.
22265 * config/microblaze/microblaze.c: Likewise.
22266 * config/mips/mips.c: Likewise.
22267 * config/mmix/mmix.c: Likewise.
22268 * config/mn10300/mn10300.c: Likewise.
22269 * config/moxie/moxie.c: Likewise.
22270 * config/msp430/msp430.c: Likewise.
22271 * config/nds32/nds32.c: Likewise.
22272 * config/nds32/nds32-cost.c: Likewise.
22273 * config/nds32/nds32-fp-as-gp.c: Likewise.
22274 * config/nds32/nds32-intrinsic.c: Likewise.
22275 * config/nds32/nds32-isr.c: Likewise.
22276 * config/nds32/nds32-md-auxiliary.c: Likewise.
22277 * config/nds32/nds32-memory-manipulation.c: Likewise.
22278 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
22279 * config/nds32/nds32-predicates.c: Likewise.
22280 * config/nios2/nios2.c: Likewise.
22281 * config/nvptx/nvptx.c: Likewise.
22282 * config/pa/pa.c: Likewise.
22283 * config/pdp11/pdp11.c: Likewise.
22284 * config/rl78/rl78.c: Likewise.
22285 * config/rs6000/rs6000.c: Likewise.
22286 * config/rx/rx.c: Likewise.
22287 * config/s390/s390.c: Likewise.
22288 * config/sh/sh.c: Likewise.
22289 * config/sh/sh-mem.cc: Likewise.
22290 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
22291 * config/sh/sh_treg_combine.cc: Likewise.
22292 * config/sparc/sparc.c: Likewise.
22293 * config/spu/spu.c: Likewise.
22294 * config/stormy16/stormy16.c: Likewise.
22295 * config/tilegx/tilegx.c: Likewise.
22296 * config/tilepro/tilepro.c: Likewise.
22297 * config/v850/v850.c: Likewise.
22298 * config/vax/vax.c: Likewise.
22299 * config/visium/visium.c: Likewise.
22300 * config/xtensa/xtensa.c: Likewise.
22302 2015-07-10 Richard Biener <rguenther@suse.de>
22304 * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
22305 (decision_tree::gen_gimple): Likewise.
22306 (decision_tree::gen_generic): Likewise.
22308 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
22311 * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
22312 sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
22314 2015-07-10 Jakub Jelinek <jakub@redhat.com>
22316 PR middle-end/66820
22317 * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
22318 or ORT_TASK contexts.
22319 * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
22322 2015-07-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22324 * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
22327 2015-07-10 Tom de Vries <tom@codesourcery.com>
22329 * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
22330 insert nit + 1 bound.
22332 2015-07-10 Richard Biener <rguenther@suse.de>
22334 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
22335 Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
22336 (if_convertible_loop_p_1): For this always compute bb predicates.
22337 (if_convertible_loop_p): And free them.
22339 2015-07-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
22341 * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
22344 2015-07-10 Richard Biener <rguenther@suse.de>
22346 PR tree-optimization/66823
22347 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
22348 inverted predicate.
22350 2015-07-09 Steve Ellcey <sellcey@imgtec.com>
22352 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
22353 to handle mips[32|64]r3 and mips[32|64]r5.
22355 2015-07-09 Jakub Jelinek <jakub@redhat.com>
22357 PR middle-end/66633
22358 * tree-nested.c (get_static_chain): Or in a flag into
22359 info->static_chain_added.
22360 (get_frame_field, get_nonlocal_debug_decl): Likewise.
22361 (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
22362 2015-07-01 changes.
22363 (convert_tramp_reference_stmt): If a frame_decl or chain_decl
22364 is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
22367 PR tree-optimization/66718
22368 * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
22370 (vect_simd_lane_linear): New function.
22371 (vectorizable_simd_clone_call): Support using linear arguments for
22372 addresses of arrays elements indexed by GOMP_SIMD_LANE result.
22374 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
22377 * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
22379 2015-07-09 Michael Meissner <meissner@linux.vnet.ibm.com>
22381 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
22382 Use machine mode, not enum machine_mode in the prototype.
22384 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
22385 classify 128-bit floating point support.
22386 (FLOAT128_IBM_P): Likewise.
22387 (FLOAT128_VECTOR_P): Likewise.
22388 (FLOAT128_2REG_P): Likewise.
22389 (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
22390 (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
22391 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
22392 (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
22394 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
22395 tests against TFmode/TDmode, since those modes do not use VSX
22397 (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
22399 (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
22400 tests against TFmode, etc.
22401 (invalid_e500_subreg): Add tests against IFmode/KFmode.
22402 (reg_offset_addressing_ok_p): Likewise.
22403 (rs6000_legitimate_offset_address_p): Likewise.
22404 (rs6000_legitimize_address): Likewise.
22405 (rs6000_legitimize_reload_address): Likewise.
22406 (rs6000_legitimate_address_p): Clean up tests against TFmode and
22407 TDmode to use the new helper macros, which will include IFmode and
22409 (rs6000_emit_move): Likewise.
22410 (rs6000_darwin64_record_arg_recurse): Likewise.
22411 (print_operand): Likewise.
22412 (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
22413 that uses a single vector register as a vector and not as a
22414 floating point register in terms of the calling sequence.
22415 (rs6000_discover_homogeneous_aggregate): Likewise.
22416 (rs6000_return_in_memory): Likewise.
22417 (init_cumulative_args): Likewise.
22418 (rs6000_function_arg_boundary): Likewise.
22419 (rs6000_function_arg_advance_1): Likewise.
22420 (rs6000_function_arg): Likewise.
22421 (rs6000_pass_by_reference): Likewise.
22422 (rs6000_gimplify_va_arg): Likewise.
22423 (rs6000_secondary_reload_memory): Use machine_mode not enum
22425 (rs6000_split_multireg_move): Use new helper macros.
22426 (spe_func_has_64bit_regs_p): Likewise.
22427 (rs6000_output_function_epilogue): Add IFmode/KFmode support.
22428 (output_toc): Use new helper macros.
22429 (rs6000_register_move_cost): Likewise.
22430 (rs6000_function_value): Add IEEE 128-bit floating point calling
22432 (rs6000_libcall_value): Likewise.
22433 (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
22434 floating point support.
22435 (rs6000_vector_mode_supported_p): Likewise.
22437 2015-07-09 Vladimir Makarov <vmakarov@redhat.com>
22439 PR rtl-optimization/66782
22440 * lra-int.h (struct lra_insn_recog_data): Add comment about
22441 clobbered hard regs for arg_hard_regs.
22442 * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
22443 * lra-lives.c (process_bb_lives): Process clobbered hard regs.
22444 Add condition for processing used hard regs.
22445 * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
22446 Process clobbered hard regs.
22448 2015-07-09 Michael Matz <matz@suse.de>
22450 * genmatch.c (fprintf_indent): New function.
22451 (operand::gen_transform): Add indent parameter.
22452 (expr::gen_transform, c_expr::gen_transform,
22453 capture::gen_transform): Ditto and use fprintf_indent.
22454 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
22455 (dt_operand::gen, dt_operand::gen_predicate,
22456 dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
22457 dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
22458 (decision_tree::gen_gimple): Adjust calls and indent generated
22460 (decision_tree::gen_generic): Ditto.
22461 (write_predicate): Ditto.
22463 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
22466 * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
22467 * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
22468 (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
22469 {GENERAL,SSE,MMX}_REG_P where appropriate.
22471 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
22473 * lto-streamer.h: Don't include target.h and alloc-pool.h.
22474 * builtins.c: Adjust includes.
22475 * gimple.c: Likewise.
22476 * ipa-icf.c: Likewise.
22477 * lto-opts.c: Likewise.
22478 * ipa-reference.c: Likewise.
22479 * lto-section-out.c: Likewise.
22480 * lto-streamer-in.c: Likewise.
22481 * lto-streamer-out.c: Likewise.
22482 * opts-global.c: Likewise.
22483 * symtab.c: Likewise.
22484 * tree-chkp.c: Likewise.
22485 * tree-ssa-live.c: Likewise.
22486 * tree-streamer-in.c: Likewise.
22487 * tree-streamer-out.c: Likewise.
22488 * config/darwin.c: Likewise.
22489 * config/i386/winnt.c: Likewise.
22491 2015-07-09 Richard Biener <rguenther@suse.de>
22493 * genmatch.c (struct expr): Add force_single_use flag.
22494 (expr::expr): Add copy constructor.
22495 (capture_info::walk_match): Gather force_single_use captures.
22496 (expr::gen_transform): Use possibly NULLified sequence.
22497 (dt_simplify::gen): Apply single-use restrictions by NULLifying
22498 seq if any constrained expr is not single-use.
22499 (parser::parse_expr): Refactor to allow multiple flags. Handle
22500 's' flag to force an expression have a single-use if the pattern
22501 simplifies to more than one statement.
22502 * match.pd: Convert most single_use conditionals to :s flags.
22504 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
22506 * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
22507 (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
22508 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
22510 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
22512 * flags.h: Don't include flag-types.h or options.h.
22513 * opts-common.c: Adjust includes.
22514 * opts-global.c: Likewise.
22515 * common/config/epiphany/epiphany-common.c: Likewise.
22517 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
22520 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
22523 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
22526 * config/i386/i386.c (ix86_return_in_memory): Return true
22527 if int_size_in_bytes returns negative for IA MCU.
22529 2015-07-09 Marek Polacek <polacek@redhat.com>
22531 PR tree-optimization/66718
22532 * Makefile.in (OBJS): Add gimple-laddress.o.
22533 * passes.def: Schedule pass_laddress.
22534 * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
22535 * tree-pass.h (make_pass_laddress): Declare.
22536 * gimple-laddress.c: New file.
22538 2015-07-09 Richard Biener <rguenther@suse.de>
22540 * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
22542 2015-07-09 Richard Biener <rguenther@suse.de>
22544 PR tree-optimization/66807
22545 * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
22547 2015-07-08 Kito Cheng <kito.cheng@gmail.com>
22549 * function.c (stack_protect_epilogue): Use if rather than switch for
22550 check targetm.have_stack_protect_test.
22552 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22554 * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
22555 * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
22556 * config/arc/arc.h: Likewise.
22557 * config/arm/arm.h: Likewise.
22558 * config/bfin/bfin.h: Likewise.
22559 * config/epiphany/epiphany.h: Likewise.
22560 * config/frv/frv.h: Likewise.
22561 * config/ia64/ia64.h: Likewise.
22562 * config/iq2000/iq2000.h: Likewise.
22563 * config/lm32/lm32.h: Likewise.
22564 * config/m32r/m32r.h: Likewise.
22565 * config/mcore/mcore.h: Likewise.
22566 * config/mep/mep.h: Likewise.
22567 * config/microblaze/microblaze.h: Likewise.
22568 * config/mips/mips.h: Likewise.
22569 * config/mmix/mmix.h: Likewise.
22570 * config/mn10300/mn10300.h: Likewise.
22571 * config/nds32/nds32.h: Likewise.
22572 * config/nios2/nios2.h: Likewise.
22573 * config/pa/pa.h: Likewise.
22574 * config/rl78/rl78.h: Likewise.
22575 * config/sh/sh.h: Likewise.
22576 * config/sparc/sparc.h: Likewise.
22577 * config/stormy16/stormy16.h: Likewise.
22578 * config/tilegx/tilegx.h: Likewise.
22579 * config/tilepro/tilepro.h: Likewise.
22580 * config/v850/v850.h: Likewise.
22581 * config/xtensa/xtensa.h: Likewise.
22582 * doc/tm.texi: Regenerate.
22583 * doc/tm.texi.in: Adjust.
22584 * combine.c (simplify_set): Likewise.
22585 (simplify_comparison): Likewise.
22586 * expr.c (store_constructor): Likewise.
22587 * internal-fn.c (expand_arith_overflow): Likewise.
22588 * reload.c (push_reload): Likewise.
22589 (find_reloads): Likewise.
22590 (find_reloads_subreg_address): Likewise.
22591 * reload1.c (eliminate_regs_1): Likewise.
22592 * rtlanal.c (nonzero_bits1): Likewise.
22593 (num_sign_bit_copies1): Likewise.
22594 * simplify-rtx.c (simplify_truncation): Likewise.
22596 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22598 * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
22599 of AUTO_INC_DEC with the preprocessor.
22600 * combine.c (combine_instructions): Likewise.
22601 (can_combine_p): Likewise.
22602 (try_combine): Likewise.
22603 * emit-rtl.c (try_split): Likewise.
22604 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
22605 * lower-subreg.c (resolve_simple_move): Likewise.
22606 * lra.c (update_inc_notes): Likewise.
22607 * recog.c (asm_operand_ok): Likewise.
22608 (constrain_operands): Likewise.
22609 * regrename.c (scan_rtx_address): Likewise.
22610 * reload.c (update_auto_inc_notes): Likewise.
22611 (reg_inc_found_and_valid_p): Likewise.
22612 * reload1.c (reload): Likewise.
22613 (emit_input_reload_insns): Likewise.
22614 (delete_output_reload): Likewise.
22615 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
22616 * valtrack.c (cleanup_auto_inc_dec): Likewise.
22618 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22620 * rtl.h: Always define AUTO_INC_DEC.
22621 * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
22622 * combine.c (combine_instructions): Likewise.
22623 (can_combine_p): Likewise.
22624 (try_combine): Likewise.
22625 * emit-rtl.c (try_split): Likewise.
22626 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
22627 * lower-subreg.c (resolve_simple_move): Likewise.
22628 * lra.c (update_inc_notes): Likewise.
22629 * recog.c (asm_operand_ok): Likewise.
22630 (constrain_operands): Likewise.
22631 * regrename.c (scan_rtx_address): Likewise.
22632 * reload.c (update_auto_inc_notes): Likewise.
22633 (find_equiv_reg): Likewise.
22634 * reload1.c (reload): Likewise.
22635 (reload_as_needed): Likewise.
22636 (choose_reload_regs): Likewise.
22637 (emit_input_reload_insns): Likewise.
22638 (delete_output_reload): Likewise.
22639 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
22640 * valtrack.c (cleanup_auto_inc_dec): Likewise.
22642 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22644 * combine.c (can_combine_def_p): Don't check the value of
22645 HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
22646 (combinable_i3pat): Likewise.
22647 (mark_used_regs_combine): Likewise.
22648 * regrename.c (rename_chains): Likewise.
22649 * reload.c (find_reloads_address): Likewise.
22650 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
22652 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22654 * combine.c (update_rsp_from_reg_equal): Don't check if
22655 SHORT_IMMEDIATES_SIGN_EXTEND is defined.
22656 (reg_nonzero_bits_for_combine): Likewise.
22657 * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
22659 * config/frv/frv.h: Likewise.
22660 * config/lm32/lm32.h: Likewise.
22661 * config/mep/mep.h: Likewise.
22662 * config/mips/mips.h: Likewise.
22663 * config/rs6000/rs6000.h: Likewise.
22664 * config/sh/sh.h: Likewise.
22665 * config/tilegx/tilegx.h (enum reg_class): Likewise.
22666 * config/tilepro/tilepro.h: Likewise.
22667 * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
22668 * doc/tm.texi: Regenerate.
22669 * doc/tm.texi.in: Adjust.
22670 * rtlanal.c (nonzero_bits1): Likewise.
22672 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22674 * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
22675 with the preprocessor.
22676 (combine_instructions): Likewise.
22677 (try_combine): Likewise.
22679 (distribute_notes): Likewise.
22681 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22683 * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
22685 (simplify_set): Likewise.
22686 * cse.c (cse_insn): Likewise.
22687 * fold-const.c (fold_single_bit_test): Likewise.
22688 (fold_unary_loc): Likewise.
22689 * postreload.c (reload_cse_simplify_set): Likewise.
22690 (reload_cse_simplify_operands): Likewise.
22692 2015-07-08 Jiong Wang <jiong.wang@arm.com>
22694 * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
22695 (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
22697 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
22700 * config/i386/x86intrin.h: Include <adxintrin.h> even if
22701 __iamcu__ is defined.
22703 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
22705 * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
22707 2015-07-08 Iain Sandoe <iain@codesourcery.com>
22710 * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
22711 names from preservation.
22713 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
22716 * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
22718 (function_arg_advance_32): Don't pass vectors in registers for
22720 (function_arg_32): Likewise.
22721 (ix86_return_in_memory): Don't return vectors in registers for
22724 2015-07-08 Vladimir Makarov <vmakarov@redhat.com>
22726 PR middle-end/66334
22727 * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
22728 hard regno live at the start of BB with incoming abnormal edges.
22729 * lra-lives.c (process_bb_lives): Ditto.
22731 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
22734 * config/nvptx/mkoffload.c (main): Create an offload image only in
22735 64-bit configurations.
22737 2015-07-08 Martin Liska <mliska@suse.cz>
22740 * tree-sra.c (create_access_1): Call ctor without brackets.
22741 (create_artificial_child_access): Likewise.
22743 2015-07-08 Richard Biener <rguenther@suse.de>
22745 PR tree-optimization/66793
22746 * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
22747 Properly split the block after stmts ending it.
22749 2015-07-08 Richard Biener <rguenther@suse.de>
22751 PR tree-optimization/66794
22752 * passes.c (execute_function_todo): Assert that post-dominators
22754 * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
22755 Free post-dominators.
22757 2015-07-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22759 * config/s390/s390.c (s390_init_frame_layout): Replace assertion
22762 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
22764 * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
22765 more than or equal 8 and less than 32 when optimizing for size.
22767 2015-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22769 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
22770 COSTS_N_INSNS (1) and increment it appropriately throughout the
22773 2015-07-08 Richard Biener <rguenther@suse.de>
22775 * fold-const.c (fold_widened_comparison): Fix inverted comparison.
22777 2015-07-08 Alan Modra <amodra@gmail.com>
22779 * target.def (rtx_costs): Remove "code" param, add "mode".
22780 * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
22781 (set_src_cost, get_full_set_src_cost): Likewise. Move later in file.
22782 (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
22783 * rtlanal.c (rtx_cost): Add "mode" parameter. Update targetm.rtx_costs
22784 call. Track mode when given in rtx.
22785 (get_full_rtx_cost): Add "mode" parameter. Update rtx_cost calls.
22786 (default_address_cost): Pass Pmode to rtx_cost.
22787 (insn_rtx_cost): Pass dest mode of set to set_src_cost.
22788 * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
22790 * cse.c (COST, COST_IN): Add MODE param. Update all uses.
22791 (notreg_cost): Add mode param. Use it.
22792 * gcse.c (want_to_gcse_p): Delete forward declaration. Add
22793 mode param and pass to set_src_cost. Update all calls.
22794 (hash_scan_set): Formatting.
22795 * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
22796 (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
22798 * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
22799 init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
22800 emit_store_flag): Update set_src_cost and rtx_cost calls.
22801 * auto-inc-dec.c (attempt_change): Likewise.
22802 * calls.c (precompute_register_parameters): Likewise.
22803 * combine.c (expand_compound_operation, make_extraction,
22804 force_to_mode, distribute_and_simplify_rtx): Likewise.
22805 * dojump.c (prefer_and_bit_test): Likewise.
22806 * dse.c (find_shift_sequence): Likewise.
22807 * expr.c (compress_float_constant): Likewise.
22808 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
22809 * ifcvt.c (noce_try_sign_mask): Likewise.
22810 * loop-doloop.c (doloop_optimize): Likewise.
22811 * loop-invariant.c (create_new_invariant): Likewise.
22812 * lower-subreg.c (shift_cost, compute_costs): Likewise.
22813 * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
22814 lshift_cheap_p): Likewise.
22815 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
22816 try_replace_in_use, reload_cse_move2add): Likewise.
22817 * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
22819 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
22820 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
22821 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
22822 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
22823 * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
22824 add "mode" param. Use "mode: in place of GET_MODE (x). Pass mode
22826 * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
22827 * config/arc/arc.c (arc_rtx_costs): Likewise.
22828 * config/arm/arm.c (arm_rtx_costs): Likewise.
22829 * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
22830 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
22831 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
22832 * config/cris/cris.c (cris_rtx_costs): Likewise.
22833 * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
22834 * config/frv/frv.c (frv_rtx_costs): Likewise.
22835 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
22836 * config/i386/i386.c (ix86_rtx_costs): Likewise.
22837 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
22838 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
22839 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
22840 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
22841 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
22842 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
22843 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
22844 * config/mep/mep.c (mep_rtx_cost): Likewise.
22845 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
22846 * config/mips/mips.c (mips_rtx_costs): Likewise.
22847 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
22848 * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
22849 * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
22850 * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
22851 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
22852 * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
22853 * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
22854 * config/pa/pa.c (hppa_rtx_costs): Likewise.
22855 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
22856 * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
22857 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
22858 * config/s390/s390.c (s390_rtx_costs): Likewise.
22859 * config/sh/sh.c (sh_rtx_costs): Likewise.
22860 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
22861 * config/spu/spu.c (spu_rtx_costs): Likewise.
22862 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
22863 * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
22864 * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
22865 * config/v850/v850.c (v850_rtx_costs): Likewise.
22866 * config/vax/vax.c (vax_rtx_costs): Likewise.
22867 * config/visium/visium.c (visium_rtx_costs): Likewise.
22868 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
22869 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
22870 "code" param, and pass as outer_code to first rtx_cost call. Pass
22871 mode to rtx_cost calls.
22872 (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
22874 (aarch64_rtx_costs_wrapper): Update.
22875 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
22876 arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
22878 * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
22879 and rtx_cost calls.
22880 (avr_operand_rtx_cost): Similarly.
22881 (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
22882 for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
22883 * config/mips/mips.c (mips_stack_address_p): Comment typo.
22884 (mips_binary_cost): Update rtx_cost and set_src_cost calls.
22885 (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
22886 * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
22888 (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
22889 * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
22890 * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
22891 * doc/tm.texi: Regenerate.
22893 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
22895 * tree-core.h: Include symtab.h.
22896 * rtl.h: Include hard-reg-set.h but not flags.h.
22897 (HARD_CONST): Remove condition compilation involving HARD_CONST since
22898 hard-reg-set.h is always included.
22899 * regs.h: Don't include hard-reg-set.h or rtl.h.
22900 * cfg.h: Include dominance.h.
22901 * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
22902 * backend.h: New. Aggregate commonly used backend header files.
22903 * gimple-ssa.h: Don't include tree-hasher.h.
22904 * ssa.h: New. Aggregate commonly used SSA header files.
22905 * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
22906 * sel-sched-ir.h: Flatten includes.
22907 * lra-int.h: Flatten completely.
22908 * sel-sched-dump.h: Flatten includes.
22909 * ira-int.h: Flatten includes.
22910 * gimple-streamer.h: Remove all includes.
22911 * cfgloop.h: Remove all #includes except cfgloopmanip.h.
22912 * resource.h: Flatten hard-reg-set.h and df.h.
22913 * sched-int.h: Flatten insn-arrt.h and df.h.
22914 * valtrack.h: flatten bitmap.h, df.h, and rtl.h
22915 * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
22916 * genattrtab.c (write_header): Adjust generated includes.
22917 * genautomata.c (main): Likewise.
22918 * genconditions.c (write-header): Likewise.
22919 * genemit.c (main): Likewise.
22920 * gengtype.c (open_base_files): Likewise.
22921 * genopinit.c (main): Likewise.
22922 * genoutput.c (output_prologue): Likewise.
22923 * genpeep.c (main): Likewise.
22924 * genpreds.c (write_insn_preds_c): Likewise.
22925 * genrecog.c (write_header): Likewise.
22926 * alias.c: Adjust includes.
22927 * asan.c: Likewise.
22928 * attribs.c: Likewise.
22929 * auto-inc-dec.c: Likewise.
22930 * auto-profile.c: Likewise.
22931 * bb-reorder.c: Likewise.
22932 * bt-load.c: Likewise.
22933 * builtins.c: Likewise.
22934 * caller-save.c: Likewise.
22935 * calls.c: Likewise.
22936 * ccmp.c: Likewise.
22938 * cfganal.c: Likewise.
22939 * cfgbuild.c: Likewise.
22940 * cfgcleanup.c: Likewise.
22941 * cfgexpand.c: Likewise.
22942 * cfghooks.c: Likewise.
22943 * cfgloop.c: Likewise.
22944 * cfgloopanal.c: Likewise.
22945 * cfgloopmanip.c: Likewise.
22946 * cfgrtl.c: Likewise.
22947 * cgraph.c: Likewise.
22948 * cgraphbuild.c: Likewise.
22949 * cgraphclones.c: Likewise.
22950 * cgraphunit.c: Likewise.
22951 * cilk-common.c: Likewise.
22952 * combine-stack-adj.c: Likewise.
22953 * combine.c: Likewise.
22954 * compare-elim.c: Likewise.
22955 * convert.c: Likewise.
22956 * coverage.c: Likewise.
22957 * cppbuiltin.c: Likewise.
22958 * cprop.c: Likewise.
22960 * cselib.c: Likewise.
22961 * data-streamer-in.c: Likewise.
22962 * data-streamer-out.c: Likewise.
22963 * data-streamer.c: Likewise.
22964 * dbxout.c: Likewise.
22967 * debug.c: Likewise.
22968 * df-core.c: Likewise.
22969 * df-problems.c: Likewise.
22970 * df-scan.c: Likewise.
22972 * dojump.c: Likewise.
22973 * dominance.c: Likewise.
22974 * domwalk.c: Likewise.
22975 * double-int.c: Likewise.
22977 * dumpfile.c: Likewise.
22978 * dwarf2asm.c: Likewise.
22979 * dwarf2cfi.c: Likewise.
22980 * dwarf2out.c: Likewise.
22981 * emit-rtl.c: Likewise.
22982 * et-forest.c: Likewise.
22983 * except.c: Likewise.
22984 * explow.c: Likewise.
22985 * expmed.c: Likewise.
22986 * expr.c: Likewise.
22987 * final.c: Likewise.
22988 * fixed-value.c: Likewise.
22989 * fold-const.c: Likewise.
22990 * function.c: Likewise.
22991 * fwprop.c: Likewise.
22992 * gcc-plugin.h: Likewise.
22993 * gcse-common.c: Likewise.
22994 * gcse.c: Likewise.
22995 * generic-match-head.c: Likewise.
22996 * ggc-page.c: Likewise.
22997 * gimple-builder.c: Likewise.
22998 * gimple-expr.c: Likewise.
22999 * gimple-fold.c: Likewise.
23000 * gimple-iterator.c: Likewise.
23001 * gimple-low.c: Likewise.
23002 * gimple-match-head.c: Likewise.
23003 * gimple-pretty-print.c: Likewise.
23004 * gimple-ssa-isolate-paths.c: Likewise.
23005 * gimple-ssa-strength-reduction.c: Likewise.
23006 * gimple-streamer-in.c: Likewise.
23007 * gimple-streamer-out.c: Likewise.
23008 * gimple-walk.c: Likewise.
23009 * gimple.c: Likewise.
23010 * gimplify-me.c: Likewise.
23011 * gimplify.c: Likewise.
23012 * godump.c: Likewise.
23013 * graph.c: Likewise.
23014 * graphite-blocking.c: Likewise.
23015 * graphite-dependences.c: Likewise.
23016 * graphite-interchange.c: Likewise.
23017 * graphite-isl-ast-to-gimple.c: Likewise.
23018 * graphite-optimize-isl.c: Likewise.
23019 * graphite-poly.c: Likewise.
23020 * graphite-scop-detection.c: Likewise.
23021 * graphite-sese-to-poly.c: Likewise.
23022 * graphite.c: Likewise.
23023 * haifa-sched.c: Likewise.
23024 * hw-doloop.c: Likewise.
23025 * ifcvt.c: Likewise.
23026 * init-regs.c: Likewise.
23027 * internal-fn.c: Likewise.
23028 * ipa-chkp.c: Likewise.
23029 * ipa-comdats.c: Likewise.
23030 * ipa-cp.c: Likewise.
23031 * ipa-devirt.c: Likewise.
23032 * ipa-icf-gimple.c: Likewise.
23033 * ipa-icf.c: Likewise.
23034 * ipa-inline-analysis.c: Likewise.
23035 * ipa-inline-transform.c: Likewise.
23036 * ipa-inline.c: Likewise.
23037 * ipa-polymorphic-call.c: Likewise.
23038 * ipa-profile.c: Likewise.
23039 * ipa-prop.c: Likewise.
23040 * ipa-pure-const.c: Likewise.
23041 * ipa-ref.c: Likewise.
23042 * ipa-reference.c: Likewise.
23043 * ipa-split.c: Likewise.
23044 * ipa-utils.c: Likewise.
23045 * ipa-visibility.c: Likewise.
23047 * ira-build.c: Likewise.
23048 * ira-color.c: Likewise.
23049 * ira-conflicts.c: Likewise.
23050 * ira-costs.c: Likewise.
23051 * ira-emit.c: Likewise.
23052 * ira-lives.c: Likewise.
23054 * jump.c: Likewise.
23055 * langhooks.c: Likewise.
23057 * loop-doloop.c: Likewise.
23058 * loop-init.c: Likewise.
23059 * loop-invariant.c: Likewise.
23060 * loop-iv.c: Likewise.
23061 * loop-unroll.c: Likewise.
23062 * lower-subreg.c: Likewise.
23063 * lra-assigns.c: Likewise.
23064 * lra-coalesce.c: Likewise.
23065 * lra-constraints.c: Likewise.
23066 * lra-eliminations.c: Likewise.
23067 * lra-lives.c: Likewise.
23068 * lra-remat.c: Likewise.
23069 * lra-spills.c: Likewise.
23071 * lto-cgraph.c: Likewise.
23072 * lto-compress.c: Likewise.
23073 * lto-opts.c: Likewise.
23074 * lto-section-in.c: Likewise.
23075 * lto-section-out.c: Likewise.
23076 * lto-streamer-in.c: Likewise.
23077 * lto-streamer-out.c: Likewise.
23078 * lto-streamer.c: Likewise.
23080 * mode-switching.c: Likewise.
23081 * modulo-sched.c: Likewise.
23082 * omega.c: Likewise.
23083 * omp-low.c: Likewise.
23084 * optabs.c: Likewise.
23085 * opts-global.c: Likewise.
23086 * passes.c: Likewise.
23087 * plugin.c: Likewise.
23088 * postreload-gcse.c: Likewise.
23089 * postreload.c: Likewise.
23090 * predict.c: Likewise.
23091 * print-rtl.c: Likewise.
23092 * print-tree.c: Likewise.
23093 * profile.c: Likewise.
23094 * real.c: Likewise.
23095 * realmpfr.c: Likewise.
23096 * recog.c: Likewise.
23098 * reg-stack.c: Likewise.
23099 * regcprop.c: Likewise.
23100 * reginfo.c: Likewise.
23101 * regrename.c: Likewise.
23102 * regstat.c: Likewise.
23103 * reload.c: Likewise.
23104 * reload1.c: Likewise.
23105 * reorg.c: Likewise.
23106 * resource.c: Likewise.
23107 * rtl-chkp.c: Likewise.
23108 * rtlanal.c: Likewise.
23109 * rtlhooks.c: Likewise.
23110 * sanopt.c: Likewise.
23111 * sched-deps.c: Likewise.
23112 * sched-ebb.c: Likewise.
23113 * sched-rgn.c: Likewise.
23114 * sched-vis.c: Likewise.
23115 * sdbout.c: Likewise.
23116 * sel-sched-dump.c: Likewise.
23117 * sel-sched-ir.c: Likewise.
23118 * sel-sched.c: Likewise.
23119 * sese.c: Likewise.
23120 * shrink-wrap.c: Likewise.
23121 * simplify-rtx.c: Likewise.
23122 * stack-ptr-mod.c: Likewise.
23123 * stmt.c: Likewise.
23124 * stor-layout.c: Likewise.
23125 * store-motion.c: Likewise.
23126 * stringpool.c: Likewise.
23127 * symtab.c: Likewise.
23128 * target-globals.c: Likewise.
23129 * targhooks.c: Likewise.
23130 * toplev.c: Likewise.
23131 * tracer.c: Likewise.
23132 * trans-mem.c: Likewise.
23133 * tree-affine.c: Likewise.
23134 * tree-browser.c: Likewise.
23135 * tree-call-cdce.c: Likewise.
23136 * tree-cfg.c: Likewise.
23137 * tree-cfgcleanup.c: Likewise.
23138 * tree-chkp-opt.c: Likewise.
23139 * tree-chkp.c: Likewise.
23140 * tree-chrec.c: Likewise.
23141 * tree-complex.c: Likewise.
23142 * tree-data-ref.c: Likewise.
23143 * tree-dfa.c: Likewise.
23144 * tree-diagnostic.c: Likewise.
23145 * tree-dump.c: Likewise.
23146 * tree-eh.c: Likewise.
23147 * tree-emutls.c: Likewise.
23148 * tree-if-conv.c: Likewise.
23149 * tree-inline.c: Likewise.
23150 * tree-into-ssa.c: Likewise.
23151 * tree-iterator.c: Likewise.
23152 * tree-loop-distribution.c: Likewise.
23153 * tree-nested.c: Likewise.
23154 * tree-nrv.c: Likewise.
23155 * tree-object-size.c: Likewise.
23156 * tree-outof-ssa.c: Likewise.
23157 * tree-parloops.c: Likewise.
23158 * tree-phinodes.c: Likewise.
23159 * tree-predcom.c: Likewise.
23160 * tree-pretty-print.c: Likewise.
23161 * tree-profile.c: Likewise.
23162 * tree-scalar-evolution.c: Likewise.
23163 * tree-sra.c: Likewise.
23164 * tree-ssa-address.c: Likewise.
23165 * tree-ssa-alias.c: Likewise.
23166 * tree-ssa-ccp.c: Likewise.
23167 * tree-ssa-coalesce.c: Likewise.
23168 * tree-ssa-copy.c: Likewise.
23169 * tree-ssa-copyrename.c: Likewise.
23170 * tree-ssa-dce.c: Likewise.
23171 * tree-ssa-dom.c: Likewise.
23172 * tree-ssa-dse.c: Likewise.
23173 * tree-ssa-forwprop.c: Likewise.
23174 * tree-ssa-ifcombine.c: Likewise.
23175 * tree-ssa-live.c: Likewise.
23176 * tree-ssa-loop-ch.c: Likewise.
23177 * tree-ssa-loop-im.c: Likewise.
23178 * tree-ssa-loop-ivcanon.c: Likewise.
23179 * tree-ssa-loop-ivopts.c: Likewise.
23180 * tree-ssa-loop-manip.c: Likewise.
23181 * tree-ssa-loop-niter.c: Likewise.
23182 * tree-ssa-loop-prefetch.c: Likewise.
23183 * tree-ssa-loop-unswitch.c: Likewise.
23184 * tree-ssa-loop.c: Likewise.
23185 * tree-ssa-math-opts.c: Likewise.
23186 * tree-ssa-operands.c: Likewise.
23187 * tree-ssa-phiopt.c: Likewise.
23188 * tree-ssa-phiprop.c: Likewise.
23189 * tree-ssa-pre.c: Likewise.
23190 * tree-ssa-propagate.c: Likewise.
23191 * tree-ssa-reassoc.c: Likewise.
23192 * tree-ssa-sccvn.c: Likewise.
23193 * tree-ssa-scopedtables.c: Likewise.
23194 * tree-ssa-sink.c: Likewise.
23195 * tree-ssa-strlen.c: Likewise.
23196 * tree-ssa-structalias.c: Likewise.
23197 * tree-ssa-tail-merge.c: Likewise.
23198 * tree-ssa-ter.c: Likewise.
23199 * tree-ssa-threadedge.c: Likewise.
23200 * tree-ssa-threadupdate.c: Likewise.
23201 * tree-ssa-uncprop.c: Likewise.
23202 * tree-ssa-uninit.c: Likewise.
23203 * tree-ssa.c: Likewise.
23204 * tree-ssanames.c: Likewise.
23205 * tree-stdarg.c: Likewise.
23206 * tree-streamer-in.c: Likewise.
23207 * tree-streamer-out.c: Likewise.
23208 * tree-streamer.c: Likewise.
23209 * tree-switch-conversion.c: Likewise.
23210 * tree-tailcall.c: Likewise.
23211 * tree-vect-data-refs.c: Likewise.
23212 * tree-vect-generic.c: Likewise.
23213 * tree-vect-loop-manip.c: Likewise.
23214 * tree-vect-loop.c: Likewise.
23215 * tree-vect-patterns.c: Likewise.
23216 * tree-vect-slp.c: Likewise.
23217 * tree-vect-stmts.c: Likewise.
23218 * tree-vectorizer.c: Likewise.
23219 * tree-vrp.c: Likewise.
23220 * tree.c: Likewise.
23221 * tsan.c: Likewise.
23222 * ubsan.c: Likewise.
23223 * valtrack.c: Likewise.
23224 * value-prof.c: Likewise.
23225 * var-tracking.c: Likewise.
23226 * varasm.c: Likewise.
23227 * varpool.c: Likewise.
23228 * vmsdbgout.c: Likewise.
23229 * vtable-verify.c: Likewise.
23231 * wide-int.cc: Likewise.
23232 * xcoffout.c: Likewise.
23233 * config/aarch64/aarch64-builtins.c: Likewise.
23234 * config/aarch64/aarch64.c: Likewise.
23235 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
23236 * config/alpha/alpha.c: Likewise.
23237 * config/arc/arc.c: Likewise.
23238 * config/arm/aarch-common.c: Likewise.
23239 * config/arm/arm-builtins.c: Likewise.
23240 * config/arm/arm-c.c: Likewise.
23241 * config/arm/arm.c: Likewise.
23242 * config/avr/avr-c.c: Likewise.
23243 * config/avr/avr-log.c: Likewise.
23244 * config/avr/avr.c: Likewise.
23245 * config/bfin/bfin.c: Likewise.
23246 * config/c6x/c6x.c: Likewise.
23247 * config/cr16/cr16.c: Likewise.
23248 * config/cris/cris.c: Likewise.
23249 * config/darwin-c.c: Likewise.
23250 * config/darwin.c: Likewise.
23251 * config/epiphany/epiphany.c: Likewise.
23252 * config/epiphany/mode-switch-use.c: Likewise.
23253 * config/epiphany/resolve-sw-modes.c: Likewise.
23254 * config/fr30/fr30.c: Likewise.
23255 * config/frv/frv.c: Likewise.
23256 * config/ft32/ft32.c: Likewise.
23257 * config/h8300/h8300.c: Likewise.
23258 * config/i386/i386-c.c: Likewise.
23259 * config/i386/i386.c: Likewise.
23260 * config/i386/msformat-c.c: Likewise.
23261 * config/i386/winnt-cxx.c: Likewise.
23262 * config/i386/winnt-stubs.c: Likewise.
23263 * config/i386/winnt.c: Likewise.
23264 * config/ia64/ia64-c.c: Likewise.
23265 * config/ia64/ia64.c: Likewise.
23266 * config/iq2000/iq2000.c: Likewise.
23267 * config/lm32/lm32.c: Likewise.
23268 * config/m32c/m32c-pragma.c: Likewise.
23269 * config/m32c/m32c.c: Likewise.
23270 * config/m32r/m32r.c: Likewise.
23271 * config/m68k/m68k.c: Likewise.
23272 * config/mcore/mcore.c: Likewise.
23273 * config/mep/mep-pragma.c: Likewise.
23274 * config/mep/mep.c: Likewise.
23275 * config/microblaze/microblaze-c.c: Likewise.
23276 * config/microblaze/microblaze.c: Likewise.
23277 * config/mips/mips.c: Likewise.
23278 * config/mmix/mmix.c: Likewise.
23279 * config/mn10300/mn10300.c: Likewise.
23280 * config/moxie/moxie.c: Likewise.
23281 * config/msp430/msp430-c.c: Likewise.
23282 * config/msp430/msp430.c: Likewise.
23283 * config/nds32/nds32-cost.c: Likewise.
23284 * config/nds32/nds32-fp-as-gp.c: Likewise.
23285 * config/nds32/nds32-intrinsic.c: Likewise.
23286 * config/nds32/nds32-isr.c: Likewise.
23287 * config/nds32/nds32-md-auxiliary.c: Likewise.
23288 * config/nds32/nds32-memory-manipulation.c: Likewise.
23289 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
23290 * config/nds32/nds32-predicates.c: Likewise.
23291 * config/nds32/nds32.c: Likewise.
23292 * config/nios2/nios2.c: Likewise.
23293 * config/nvptx/nvptx.c: Likewise.
23294 * config/pa/pa.c: Likewise.
23295 * config/pdp11/pdp11.c: Likewise.
23296 * config/rl78/rl78-c.c: Likewise.
23297 * config/rl78/rl78.c: Likewise.
23298 * config/rs6000/rs6000-c.c: Likewise.
23299 * config/rs6000/rs6000.c: Likewise.
23300 * config/rx/rx.c: Likewise.
23301 * config/s390/s390-c.c: Likewise.
23302 * config/s390/s390.c: Likewise.
23303 * config/sh/sh-c.c: Likewise.
23304 * config/sh/sh-mem.cc: Likewise.
23305 * config/sh/sh.c: Likewise.
23306 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
23307 * config/sh/sh_treg_combine.cc: Likewise.
23308 * config/sol2-c.c: Likewise.
23309 * config/sol2-cxx.c: Likewise.
23310 * config/sol2-stubs.c: Likewise.
23311 * config/sol2.c: Likewise.
23312 * config/sparc/sparc-c.c: Likewise.
23313 * config/sparc/sparc.c: Likewise.
23314 * config/spu/spu-c.c: Likewise.
23315 * config/spu/spu.c: Likewise.
23316 * config/stormy16/stormy16.c: Likewise.
23317 * config/tilegx/mul-tables.c: Likewise.
23318 * config/tilegx/tilegx-c.c: Likewise.
23319 * config/tilegx/tilegx.c: Likewise.
23320 * config/tilepro/mul-tables.c: Likewise.
23321 * config/tilepro/tilepro-c.c: Likewise.
23322 * config/tilepro/tilepro.c: Likewise.
23323 * config/v850/v850-c.c: Likewise.
23324 * config/v850/v850.c: Likewise.
23325 * config/vax/vax.c: Likewise.
23326 * config/visium/visium.c: Likewise.
23327 * config/vms/vms-c.c: Likewise.
23328 * config/vms/vms.c: Likewise.
23329 * config/vxworks.c: Likewise.
23330 * config/xtensa/xtensa.c: Likewise.
23332 2015-07-07 Uros Bizjak <ubizjak@gmail.com>
23334 * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
23335 Remove operand constraints. Change operand 2 predicate to
23336 nonmemory operand. Limit const_int values to mode bitsize. Only
23337 allow const_int values less than 32 when optimizing for size.
23338 (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
23339 Remove operand constraints.
23340 (*bt<mode>): Use SImode for const_int values less than 32.
23341 (regmode): Remove mode attribute.
23343 2015-07-07 Anatoly Sokolov <aesok@post.ru>
23345 * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
23346 * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
23347 moxie_legitimate_address_p): New functions.
23348 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
23350 2015-07-07 Tom de Vries <tom@codesourcery.com>
23352 PR tree-optimization/66642
23353 * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
23354 header comment. Rename split_edge variable to edge_at_split. Split
23355 exit edge to create new loop exit bb. Insert loop exit phis in new
23358 2015-07-07 Tom de Vries <tom@codesourcery.com>
23360 * tree-cfg.c (get_virtual_phi): New function.
23361 * tree-cfg.h (get_virtual_phi): Declare.
23362 * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
23363 (rewrite_virtuals_into_loop_closed_ssa): New function.
23364 * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
23366 * tree-parloops.c (replace_uses_in_bbs_by): Remove.
23367 (transform_to_exit_first_loop_alt): Use
23368 rewrite_virtuals_into_loop_closed_ssa.
23370 2015-07-07 Richard Biener <rguenther@suse.de>
23372 * fold-const.c (fold_binary_loc): Move
23373 (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
23374 * match.pd: ... here.
23375 Add (X * C1) % C2 -> 0 simplification pattern derived from
23378 2015-07-07 Kaz Kojima <kkojima@gcc.gnu.org>
23381 * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
23382 change for target/65249.
23384 2015-07-07 Paulo Matos <pmatos@broadcom.com>
23386 * symtab.c (address_matters_1): Fix typo in comment above.
23387 (can_increase_alignment_p): Likewise.
23389 2015-07-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
23391 * function.c (free_after_compilation): Clear PROP_cfg in
23392 f->curr_properties.
23394 2015-07-07 Richard Biener <rguenther@suse.de>
23396 * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
23398 (add_control_edge): Remove excessive vertical space in dumping.
23399 (process_ssa_edge_worklist): Simulate at most one statement and
23400 return whether we did. Do not simulate PHIs if they are in a
23401 BB not yet simulated.
23402 (ssa_propagate): Adjust to always drain the BB worklist whenever
23403 a BB is available there, likewise the VARYING edges list before
23404 the interesting edge list.
23406 2015-07-07 Christian Bruel <christian.bruel@st.com>
23409 * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
23411 2015-07-07 Richard Biener <rguenther@suse.de>
23413 PR middle-end/66739
23414 * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
23417 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
23419 * config/i386/i386.md (insv<mode>): Rename from insv. Use SWI48
23420 modes for operands 0 and 3. Use SImode for operands 2 and 3.
23421 Copy operand 0 to a temporary if !ext_register_operand. Remove
23422 ancient extract_bit_field workaround.
23423 (insv<mode>_1): Rename from mov<mode>_insv_1.
23424 (*insvqi): Rename from *movqi_insv_2.
23425 * config/i386/i386.c (emit_i386_cw_initialization): Update calls
23426 for renamed insvsi_1.
23427 (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
23429 2015-07-06 Nathan Sidwell <nathan@codesourcery.com>
23431 * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars. Fix
23432 call to nvptx_reorg_subreg.
23434 2015-07-06 Jim Wilson <jim.wilson@linaro.org>
23436 * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
23437 * graphite-dependencies.c, graphite-interchange.c,
23438 graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
23439 graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
23442 2015-07-06 Marc Glisse <marc.glisse@inria.fr>
23444 * match.pd: Remove element_mode inside HONOR_*.
23445 (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
23446 (~X | X -> -1, ~X ^ X -> -1): Merge.
23447 * tree.c (build_each_one_cst): New function.
23448 * tree.h (build_each_one_cst): Likewise.
23450 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
23452 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
23455 2015-07-06 Steve Ellcey <sellcey@imgtec.com>
23457 * config.gcc <mips*-*-*>: Add fused-madd.opt.
23458 * config/mips/mips.opt (mfused-madd): Remove.
23459 * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
23460 * config/mips/mips.h (TARGET_MIPS8000): New.
23461 (ISA_HAS_FP_MADD4_MSUB4): Remove.
23462 (ISA_HAS_FP_MADDF_MSUBF): Remove.
23463 (ISA_HAS_FP_MADD3_MSUB3): Remove.
23464 (ISA_HAS_NMADD4_NMSUB4): Remove.
23465 (ISA_HAS_NMADD3_NMSUB3): Remove.
23466 (ISA_HAS_FUSED_MADD4): New.
23467 (ISA_HAS_UNFUSED_MADD4): New.
23468 (ISA_HAS_FUSED_MADDF): New.
23469 (ISA_HAS_FUSED_MADD3): New.
23470 * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
23471 (*fma<mode>4_madd3) New.
23472 (*fma<mode>4_madd4) New.
23473 (*fma<mode>4_maddf) New.
23475 (*fms<mode>4_msub3) New.
23476 (*fms<mode>4_msub4) New.
23478 (*fnma<mode>4_nmadd3) New.
23479 (*fnma<mode>4_nmadd4) New.
23481 (*fnms<mode>4_nmsub3) New.
23482 (*fnms<mode>4_nmsub4) New.
23483 (*madd4<mode>) Modify to be unfused only.
23484 (*msub4<mode>) Modify to be unfused only.
23485 (*nmadd4<mode>) Modify to be unfused only.
23486 (*nmsub4<mode>) Modify to be unfused only.
23487 (*madd3<mode>) Remove.
23488 (*msub3<mode>) Remove.
23489 (*nmadd3<mode>) Remove.
23490 (*nmsub3<mode>) Remove.
23491 (*nmadd3<mode>_fastmath) Remove.
23492 (*nmsub3<mode>_fastmath) Remove.
23493 (*nmadd4<mode>_fastmath) Update condition.
23494 (*nmsub4<mode>_fastmath) Update condition.
23496 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
23499 * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
23500 alignment attribute, exploring one level down for records and arrays.
23502 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
23504 * config/i386/i386.md (extv<mode>): Rename from extv. Use SWI24
23505 modes for operands 0 and 1. Use SImode for operands 2 and 3.
23506 Copy operand 1 to a temporary if !ext_register_operand. Remove
23507 ancient extract_bit_field workaround.
23508 (*extv<mode>): Rename from *mov<mode>_extv_1.
23509 (*extvqi): Rename from *movqi_extv_1.
23510 (extzv<mode>): Rename from extzv. Use SWI248 modes for
23511 operands 0 and 1. Use SImode for operands 2 and 3. Copy operand 1
23512 to a temporary if !ext_register_operand. Remove ancient
23513 extract_bit_field workaround.
23514 (*extzv<mode>): Rename from *mov<mode>_extzv_1.
23515 (*extzvqi): Rename from *movqi_extzv_2.
23516 (*testqi_ext_3): Remove modes from const_int_operand predicated
23517 operands. Add "n" constraint.
23518 (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
23519 operand. Add "J" constraint.
23520 (*btsq, *btrq, *btcq peephole2s): Remove mode from
23521 const_0_to_63 predicated operand.
23522 (regmode): New insn attribute.
23523 (*bt<mode>): Use SImode for operand 1. Change operand 1 predicate
23524 to nonmemory_operand. Use regmode insn attribute.
23525 (*jcc_bt<mode>_1): Convert operand 2 to SImode.
23526 (*jcc_bt<mode>_mask): Remove mode from operand 3.
23527 (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
23528 (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
23529 operands. Use "N" constraint instead of "n".
23531 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
23533 * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
23535 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
23538 * config/i386/i386.c (iamcu_cost): New.
23539 (m_IAMCU): Likewise.
23540 (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
23541 (processor_target_table): Add an entry for "iamcu".
23542 (processor_alias_table): Likewise.
23543 (ix86_issue_rate): Handle PROCESSOR_IAMCU.
23544 (ix86_adjust_cost): Likewise.
23545 (ia32_multipass_dfa_lookahead): Likewise.
23546 * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
23547 * config/i386/x86-tune.def: Updated for m_IAMCU.
23549 2015-07-06 Richard Biener <rguenther@suse.de>
23551 PR tree-optimization/66772
23552 * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
23553 values are available in the PHI node BB when there are
23554 still unexecutable edges.
23556 2015-07-06 Richard Biener <rguenther@suse.de>
23558 PR tree-optimization/66767
23559 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
23560 Make sure to build the alignment test on a SSA name without
23561 final alignment info valid only if the alignment test
23564 2015-07-06 Bernd Schmidt <bernds@codesourcery.com>
23567 * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
23568 loop start when inserting LSETUP.
23570 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
23573 * config/i386/i386.c (ix86_option_override_internal): Allow
23574 -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
23576 2015-07-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23578 * read-md.c (decimal_string): Rename to ...
23579 (md_decimal_string): ... this.
23580 (handle_enum): Reflect this.
23582 2015-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
23585 * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
23587 2015-07-06 Richard Biener <rguenther@suse.de>
23589 PR middle-end/66759
23590 * match.pd: Add missing constraint of y to REAL_CST in
23591 REAL_CST - x CMP y to y - CST CMP x simplification.
23593 2015-07-06 Eric Botcazou <ebotcazou@adacore.com>
23595 PR tree-optimization/66757
23596 * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
23598 2015-07-05 Chung-Lin Tang <cltang@codesourcery.com>
23599 Sandra Loosemore <sandra@codesourcery.com>
23601 * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
23602 Delete extern declaration.
23603 (gprel_constant_p): Add extern declaration.
23604 * config/nios2/constraints.md ("S"): Use gprel_constant_p
23605 instead of nios2_symbol_ref_in_small_data_p.
23606 * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
23607 (nios2_symbol_ref_in_small_data_p): Make static.
23608 (gprel_constant_p): Make non-static.
23610 2015-07-05 Gerald Pfeifer <gerald@pfeifer.com>
23612 * doc/fragments.texi (Target Fragment): Convert debian.org
23614 * doc/install.texi (Configuration): Ditto.
23616 2015-07-05 Jakub Jelinek <jakub@redhat.com>
23618 PR tree-optimization/66718
23619 * tree-vect-stmts.c (vectorizable_call): Replace uses of
23620 GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
23622 PR tree-optimization/66718
23623 * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
23624 vectorizable_load, vectorizable_condition): Move vectype,
23625 nunits, ncopies computation after checking what kind of statement
23628 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
23630 * target-insns.def (extv, extzv, insv): New targetm instruction
23632 * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
23634 * recog.c (simplify_while_replacing): Likewise.
23636 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
23638 * target-insns.def (doloop_begin, doloop_end): New targetm
23639 instruction patterns.
23640 * loop-init.c: Include target.h.
23641 (pass_loop2::gate): Use the new targetm patterns instead of
23642 HAVE_*/gen_* interface.
23643 (pass_rtl_doloop::gate): Likewise.
23644 (pass_rtl_doloop::execute): Remove preprocessor condition.
23645 * hw-doloop.c: Build unconditionally.
23646 * loop-doloop.c: Likewise.
23647 (doloop_optimize): Use the new targetm patterns instead of
23648 HAVE_*/gen_* interface.
23649 (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
23650 * modulo-sched.c (doloop_register_get): Likewise.
23652 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
23654 * target-insns.def (clear_cache): New targetm instruction pattern.
23655 * builtins.c (expand_builtin___clear_cache): Use it instead of
23656 HAVE_*/gen_* interface.
23658 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
23660 * target-insns.def (allocate_stack, check_stack, probe_stack)
23661 (probe_stack_address, split_stack_prologue, split_stack_space_check):
23662 New targetm instruction patterns.
23663 * explow.c (allocate_dynamic_stack_space): Use them instead of
23664 HAVE_*/gen_* interface.
23665 (emit_stack_probe): Likewise.
23666 (probe_stack_range): Likewise.
23667 * function.c (thread_prologue_and_epilogue_insns): Likewise.
23669 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
23671 * target-insns.def (stack_protect_set, stack_protect_test): New
23672 targetm instruction patterns.
23673 * cfgexpand.c (stack_protect_prologue): Use them instead of
23674 HAVE_*/gen_* interface.
23675 * function.c (stack_protect_epilogue): Likewise.
23677 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
23679 * expr.h (gen_move_insn_uncast): Delete.
23680 * expr.c (gen_move_insn_uncast): Delete.
23682 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
23684 * target-insns.def (restore_stack_block, restore_stack_function)
23685 (restore_stack_nonlocal, save_stack_block, save_stack_function)
23686 (save_stack_nonlocal): New targetm instruction patterns.
23687 * builtins.c (expand_builtin_apply): Use them instead of
23688 HAVE_*/gen_* interface.
23689 * explow.c (emit_stack_save, emit_stack_restore): Likewise.
23691 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
23693 * target-insns.def (trap): New targetm instruction pattern.
23694 * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
23696 * explow.c (allocate_dynamic_stack_space): Likewise.
23697 * ifcvt.c (find_if_header): Likewise.
23699 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
23701 * target-insns.def (prefetch): New targetm instruction pattern.
23702 * tree-ssa-loop-prefetch.c: Include targeth.
23703 (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
23704 of HAVE_*/gen_* interface.
23705 * builtins.c (expand_builtin_prefetch): Likewise.
23706 * toplev.c (process_options): Likewise.
23708 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
23710 * target-insns.def (untyped_call, untyped_return): New targetm
23711 instruction patterns.
23712 * builtins.c (expand_builtin_apply): Use them instead of
23713 HAVE_*/gen_* interface.
23714 (result_vector): Define unconditionally.
23716 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
23718 * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
23719 (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
23720 (nonlocal_goto_receiver): New targetm instruction patterns.
23721 * builtins.c (expand_builtin_setjmp_setup): Use them instead
23722 of HAVE_*/gen_* interface.
23723 (expand_builtin_setjmp_receiver): Likewise.
23724 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
23725 * except.c (expand_dw2_landing_pad_for_region): Likewise.
23727 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
23729 * target.def: Add code_for_* hooks.
23730 * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
23731 * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
23732 * target-insns.def (casesi, tablejump): New targetm instruction
23734 * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
23735 (do_tablejump): Likewise.
23736 * stmt.c (expand_switch_as_decision_tree_p): Likewise.
23737 (expand_sjlj_dispatch_table): Likewise.
23738 * targhooks.c (default_case_values_threshold): Likewise.
23740 2015-07-04 Sandra Loosemore <sandra@codesourcery.com>
23742 * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
23743 Use rtx_insn * instead of rtx.
23744 (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
23745 (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
23746 (nios2_call_tls_get_addr): Likewise.
23747 (nios2_emit_expensive_div): Likewise.
23748 (nios2_emit_move_sequence): Change return type to bool.
23749 * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
23750 Change return type to bool.
23752 2015-07-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
23755 * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
23757 2015-07-04 John David Anglin <danglin@gcc.gnu.org>
23760 * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
23761 of register_operand. Remove constraint.
23763 2015-07-04 Marc Glisse <marc.glisse@inria.fr>
23765 * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
23766 the first argument.
23768 2015-07-03 Paolo Carlini <paolo.carlini@oracle.com>
23770 * attribs.c (decl_attributes): Guard inform with the return value
23771 of the preceding warning.
23773 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
23775 * doc/invoke.texi (moverride): Move to correct section.
23777 2015-07-03 Richard Biener <rguenther@suse.de>
23779 * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
23781 (dt_operand::gen_gimple_expr): After valueizing operands
23782 re-canonicalize operand order for commutative tree codes.
23784 2015-07-03 H.J. Lu <hongjiu.lu@intel.com>
23787 * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
23789 (__crc32w): Likewise.
23790 (__crc32d): Likewise.
23791 (__rdpmc): Likewise.
23792 (__rdtscp): Likewise.
23793 (_rdpmc): Likewise.
23794 (_rdtscp): Likewise.
23795 * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
23798 2015-07-03 Richard Biener <rguenther@suse.de>
23800 * fold-const.c (fold_mathfn_compare): Remove.
23801 (fold_inf_compare): Likewise.
23802 (fold_comparison): Move floating point comparison simplifications...
23803 * match.pd: ... to patterns here. Introduce simple_comparisons
23804 operator list and use it for patterns formerly in fold_comparison.
23806 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
23808 PR tree-optimization/66119
23809 * toplev.c (process_options): Don't set up default values for
23810 the sra_max_scalarization_size_{speed,size} parameters.
23811 * tree-sra (analyze_all_variable_accesses): If no values
23812 have been set for the sra_max_scalarization_size_{speed,size}
23813 parameters, call get_move_ratio to get target defaults.
23815 2015-07-03 Richard Biener <rguenther@suse.de>
23817 * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
23818 * match.pd: ... here.
23820 2015-07-03 Gerald Pfeifer <gerald@pfeifer.com>
23823 * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
23824 is not actually the default on FreeBSD.
23826 2015-07-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23828 * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
23830 (CMPGE_8HI): Likewise.
23831 (CMPGE_4SI): Likewise.
23832 (CMPGE_2DI): Likewise.
23833 (CMPGE_U16QI): Likewise.
23834 (CMPGE_U8HI): Likewise.
23835 (CMPGE_U4SI): Likewise.
23836 (CMPGE_U2DI): Likewise.
23837 (CMPLE_16QI): Likewise.
23838 (CMPLE_8HI): Likewise.
23839 (CMPLE_4SI): Likewise.
23840 (CMPLE_2DI): Likewise.
23841 (CMPLE_U16QI): Likewise.
23842 (CMPLE_U8HI): Likewise.
23843 (CMPLE_U4SI): Likewise.
23844 (CMPLE_U2DI): Likewise.
23845 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
23846 overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
23847 ALTIVEC_BUILTIN_VEC_CMPLE.
23848 * config/rs6000/vector.md (vector_ge<mode>): Restrict to
23849 floating-point vector modes.
23850 (vector_nlt<mode>): New define_expand.
23851 (vector_nltu<mode>): Likewise.
23852 (vector_ngt<mode>): Likewise.
23853 (vector_ngtu<mode>): Likewise.
23855 2015-07-02 Segher Boessenkool <segher@kernel.crashing.org>
23857 PR rtl-optimization/66706
23858 * combine.c (make_compound_operation): If an AND of SUBREG of
23859 LSHIFTRT does not simplify, see if just the AND of SUBREG does.
23861 2015-07-02 Alan Lawrence <alan.lawrence@arm.com>
23863 * tree-pass.h (make_pass_ch_vect): New.
23864 * passes.def: Add pass_ch_vect just before pass_if_conversion.
23866 * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
23867 pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
23868 make_pass_ch_vect): New.
23869 (pass_ch): Extend ch_base.
23871 (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
23872 (ch_base::copy_headers): ...here.
23874 2015-07-02 Richard Biener <rguenther@suse.de>
23876 * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
23877 * fold-const.c (get_pointer_modulus_and_residue): Remove.
23878 (fold_binary_loc): Implement (T)ptr & CST in terms of
23879 get_pointer_alignment_1.
23880 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
23881 Make sure to build the alignment test on a SSA name without
23882 final alignment info valid only after the prologue.
23884 2015-07-02 Hans-Peter Nilsson <hp@axis.com>
23886 * config/cris/cris.md ("epilogue"): Remove condition.
23887 ("prologue"): Ditto.
23889 2015-07-02 Richard Biener <rguenther@suse.de>
23891 * tree-ssa-dom.c (build_and_record_new_cond): Add optional
23892 parameter to record a condition that is false.
23893 (record_conditions): When recording an extra NE_EXPR that is
23894 true also record a EQ_EXPR that is false.
23896 2015-07-02 Bin Cheng <bin.cheng@arm.com>
23898 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
23899 (tree_ssa_iv_optimize_init): Initialize iv_obstack.
23900 (alloc_iv): New parameter. Allocate struct iv using obstack_alloc.
23901 (set_iv, find_interesting_uses_address, add_candidate_1): New
23902 argument to alloc_iv.
23903 (find_interesting_uses_op, find_interesting_uses_cond): Don't
23904 duplicate struct iv.
23905 (free_loop_data): Don't free struct iv explicitly.
23906 (tree_ssa_iv_optimize_finalize): Free iv_obstack.
23908 2015-07-01 DJ Delorie <dj@redhat.com>
23910 * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
23912 (SUPPORTS_DISCRIMINATOR): Define.
23914 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
23917 * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
23918 there are no CALLs in the same pattern.
23920 2015-07-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
23922 PR rtl-optimization/61047
23923 * rtlanal.c (get_initial_register_offset): New function.
23924 (rtx_addr_can_trap_p_1): Check offsets of stack references.
23926 2015-07-01 Richard Biener <rguenther@suse.de>
23928 * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
23929 X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
23930 ~X CMP C -> X CMP' ~C to ...
23931 * match.pd: ... patterns here.
23933 2015-07-01 Nick Clifton <nickc@redhat.com>
23935 * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
23936 a 16-bit value into a 20-bit memory slot.
23938 2015-07-01 Jiong Wang <jiong.wang@arm.com>
23940 * doc/sourcebuild.texi (AArch64-specific attributes): Document
23941 "aarch64_tiny", "aarch64_small", "aarch64_large",
23942 "aarch64_little_endian", "aarch64_big_endian".
23944 2015-07-01 Jiong Wang <jiong.wang@arm.com>
23946 * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
23947 Document "aarch64_small_fpic".
23949 2015-07-01 Jiong Wang <jiong.wang@arm.com>
23951 * configure.ac: Add check for aarch64 assembler -fpic relocation
23953 * configure: Regenerate.
23954 * config.in: Regenerate.
23955 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
23956 to -fPIC if not support of -fpic relocation modifier in assembler.
23958 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
23961 * rtl.c (classify_insn): Handle returns in PARALLELs.
23963 2015-07-01 Eric Botcazou <ebotcazou@adacore.com>
23965 PR middle-end/66633
23966 * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
23967 to true if the function is nested and if not optimizing.
23968 (convert_local_omp_clauses): Initialize need_frame to true if the
23969 function contains nested functions and if not optimizing.
23971 2015-07-01 Richard Biener <rguenther@suse.de>
23973 * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
23974 (X & Y) ^ Y -> ~X & Y transforms to ...
23975 * match.pd: ... here.
23977 2015-07-01 Richard Biener <rguenther@suse.de>
23979 * genmatch.c (expr::gen_transform): Shortcut re-simplifying
23980 of converts to avoid uninteresting noise from the conversion
23981 simplifying patterns.
23983 2015-06-30 Sandra Loosemore <sandra@codesourcery.com>
23985 * config/c6x/c6x.c (try_rename_operands): Do not depend on
23986 gcc_assert evaluating its argument for side-effect.
23988 2015-06-30 Kaz Kojima <kkojima@gcc.gnu.org>
23991 * config/sh/sh.md (casesi_worker_1): Set length to 8 when
23994 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
23996 * lto-streamer-out.c (class DFS): Adjust hash_scc method.
23997 (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
23998 (hash_scc): Add this_ref_p and ref_p parameters and pass them
23999 to the inner DFS walk.
24001 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
24003 * target-insns.def (jump): New targetm instruction pattern.
24004 * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
24005 instead of gen_jump.
24006 (fix_up_crossing_landing_pad): Likewise.
24007 (add_labels_and_missing_jumps): Likewise.
24008 (fix_crossing_conditional_branches): Likewise.
24009 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
24010 (force_nonfallthru_and_redirect): Likewise.
24011 * cse.c (cse_insn): Likewise.
24012 * expmed.c (expand_divmod): Likewise.
24013 * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
24014 * haifa-sched.c (init_before_recovery): Likewise.
24015 (sched_create_recovery_edges): Likewise.
24016 * ifcvt.c (find_cond_trap): Likewise.
24017 * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
24018 (expand_float, expand_fix): Likewise.
24019 * stmt.c (emit_jump): Likewise.
24021 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
24023 * defaults.h (HAVE_load_multiple, gen_load_multiple)
24024 (HAVE_store_multiple, gen_store_multiple): Delete.
24025 * target-insns.def (load_multiple, store_multiple): New targetm
24026 instruction patterns.
24027 * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
24028 of HAVE_*/gen_* interface.
24030 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
24032 * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
24033 (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
24034 (gen_mem_signal_fence): Delete.
24035 * target-insns.def (mem_signal_fence, mem_thread_fence)
24036 (memory_barrier): New targetm instruction patterns.
24037 * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
24039 (expand_mem_signal_fence): Likewise.
24041 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
24043 * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
24044 * target-insns.def (epilogue, prologue, sibcall_prologue): New
24045 targetm instruction patterns.
24046 * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
24048 * calls.c (expand_call): Likewise.
24049 * cfgrtl.c (cfg_layout_finalize): Likewise.
24050 * df-scan.c (df_get_entry_block_def_set): Likewise.
24051 (df_get_exit_block_use_set): Likewise.
24052 * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
24053 * final.c (final_start_function): Likewise.
24054 * function.c (thread_prologue_and_epilogue_insns): Likewise.
24055 (reposition_prologue_and_epilogue_notes): Likewise.
24056 * reorg.c (find_end_label): Likewise.
24057 * toplev.c (process_options): Likewise.
24059 2015-06-30 David Malcolm <dmalcolm@redhat.com>
24061 * typed-splay-tree.h: New file.
24063 2015-06-30 Vladimir Makarov <vmakarov@redhat.com>
24066 * lra-int.h (lra_substitute_pseudo): Add a parameter.
24067 (lra_substitute_pseudo_within_insn): Ditto.
24068 * lra.c (lra_substitute_pseudo): Add a parameter. Simplify subreg
24070 (lra_substitute_pseudo_within_insn): Add a parameter. Transfer it
24071 to lra_substitute_pseudo.
24072 * lra-lives.c (process_bb_lives): Add an argument to
24073 lra_substitute_pseudo_within_insn call.
24074 * lra-constraints.c (inherit_reload_reg, split_reg): Add an
24075 argument to lra_substitute_pseudo and
24076 lra_substitute_pseudo_within_insn calls.
24077 (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
24079 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
24081 * configure: Regenerated.
24083 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
24085 * config.gcc: Support i[34567]86-*-elfiamcu target.
24086 * config/i386/iamcu.h: New.
24087 * config/i386/i386.opt: Add -miamcu.
24088 * doc/invoke.texi: Document -miamcu.
24089 * common/config/i386/i386-common.c (ix86_handle_option): Turn
24090 off x87/MMX/SSE/AVX codegen for -miamcu.
24091 * config/i386/i386-c.c (ix86_target_macros_internal): Define
24092 __iamcu/__iamcu__ for -miamcu.
24093 * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
24094 to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
24095 (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
24096 * config/i386/i386.c (ix86_option_override_internal): Ignore and
24097 warn -mregparm for Intel MCU. Turn on -mregparm=3 for Intel
24098 MCU by default. Default long double to 64-bit for Intel MCU.
24099 Turn on -freg-struct-return for Intel MCU. Issue an error when
24100 -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
24102 (function_arg_advance_32): Pass value whose size is no larger
24103 than 8 bytes in registers for Intel MCU.
24104 (function_arg_32): Likewise.
24105 (ix86_return_in_memory): Return value whose size is no larger
24106 than 8 bytes in registers for Intel MCU.
24107 (iamcu_alignment): New function.
24108 (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
24110 (ix86_local_alignment): Don't increase alignment for Intel MCU.
24111 (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
24114 2015-06-30 Marek Polacek <polacek@redhat.com>
24116 * match.pd (X - (X / Y) * Y): Use convert1 and convert2. Convert
24117 both operands of the resulting expression.
24119 * match.pd (~x | x): Don't use tree_nop_conversion_p. Build
24120 the final expression with the operand's type and then convert
24121 it to the type of the expression.
24123 2015-06-30 Richard Biener <rguenther@suse.de>
24125 * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
24126 ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
24127 (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
24128 * match.pd: ... to patterns here.
24130 2015-06-30 Richard Biener <rguenther@suse.de>
24132 PR tree-optimization/66704
24133 * tree-vect-data-refs.c (vect_setup_realignment): Use
24134 make_ssa_name for non-SSA name source.
24136 2015-06-30 Jakub Jelinek <jakub@redhat.com>
24138 PR middle-end/66702
24139 * omp-low.c (simd_clone_adjust): Handle addressable linear
24140 or uniform parameters or non-gimple type uniform parameters.
24142 2015-06-30 Richard Biener <rguenther@suse.de>
24144 * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
24145 ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
24146 ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
24147 * match.pd: ... here.
24148 Add a few cases of A - B -> A + (-B) when B "easily" negates.
24149 Move (x & y) | x -> x and friends before
24150 (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
24152 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
24154 * config/sparc/leon.md (leon_load): Enable for all LEON variants if
24155 -mfix-ut699 is not specified.
24156 (leon3_load): Rename into...
24157 (ut699_load): ...this. Enable for all LEON variants if -mfix-ut699
24160 2015-06-30 Marek Polacek <polacek@redhat.com>
24162 * fold-const.c (fold_binary_loc): Move ~X | X folding ...
24163 * match.pd: ... here.
24165 2015-06-30 Richard Biener <rguenther@suse.de>
24167 * target-insns.def (canonicalize_funcptr_for_compare): Add.
24168 * fold-const.c (build_range_check): Replace uses of
24169 HAVE_canonicalize_funcptr_for_compare.
24170 (fold_widened_comparison): Likewise.
24171 (fold_sign_changed_comparison): Likewise.
24172 * dojump.c: Include "target.h".
24173 (do_compare_and_jump): Replace uses of
24174 HAVE_canonicalize_funcptr_for_compare and
24175 gen_canonicalize_funcptr_for_compare.
24176 * expr.c (do_store_flag): Likewise.
24178 2015-06-30 Tom de Vries <tom@codesourcery.com>
24180 PR tree-optimization/66652
24181 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
24182 max_loop_iterations to determine if nit + 1 overflows.
24184 2015-06-30 Richard Biener <rguenther@suse.de>
24186 * tree-vrp.c (register_edge_assert_for_2): Also register
24187 asserts for dominating conversion results.
24189 2015-06-30 Bin Cheng <bin.cheng@arm.com>
24191 * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
24192 field in struct iv.
24194 2015-06-29 Jack Howarth <howarth.at.gcc@gmail.com>
24197 * configure.ac: Fix filds and fildq test for 64-bit.
24198 * configure: Regenerated.
24200 2015-06-29 Nathan Sidwell <nathan@codesourcery.com>
24202 * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
24203 (nvptx_reorg): Here. Keep the non-subreg pieces.
24205 2015-06-29 H.J. Lu <hongjiu.lu@intel.com>
24207 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
24208 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
24210 2015-06-29 Uros Bizjak <ubizjak@gmail.com>
24212 * config/i386/i386.md (*jcc_1): Use %! in asm template.
24213 Set attribute "length_nobnd" instead of "length".
24216 (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
24218 2015-06-29 Sandra Loosemore <sandra@codesourcery.com>
24220 * config/nios2/nios2.c (nios2_delegitimize_address): Make
24221 assert less restrictive.
24223 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
24226 * cgraphunit.c (cgraph_node::finalize_function): Do not call
24227 do_warn_unused_parameter.
24228 * function.c (do_warn_unused_parameter): Move from here.
24229 * function.h (do_warn_unused_parameter): Do not declare.
24231 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
24234 * gcc.target/arm/armv-sync-comp-swap.c: New.
24235 * gcc.target/arm/armv-sync-op-acquire.c: New.
24236 * gcc.target/arm/armv-sync-op-full.c: New.
24237 * gcc.target/arm/armv-sync-op-release.c: New.
24239 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
24242 * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
24243 initial acquire barrier with final barrier.
24245 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
24248 * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
24249 initial acquire barrier with final barrier.
24251 2015-06-29 Richard Henderson <rth@redhat.com>
24253 * config/i386/constraints.md (Bf): New constraint.
24254 * config/i386/i386-c.c (ix86_target_macros): Define
24255 __GCC_ASM_FLAG_OUTPUTS__.
24256 * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
24258 * doc/extend.texi (FlagOutputOperands): Document them.
24260 2015-06-29 Jiong Wang <jiong.wang@arm.com>
24262 * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
24263 * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
24265 (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
24266 * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
24267 SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
24268 (aarch64_symbol_context): Ditto.
24269 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
24270 and use new pattern name.
24271 (aarch64_expand_mov_immediate): Ditto.
24272 (aarch64_print_operand): Ditto.
24273 (aarch64_classify_tls_symbol): Ditto.
24275 2015-06-29 Marek Polacek <polacek@redhat.com>
24276 Marc Glisse <marc.glisse@inria.fr>
24278 * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
24279 * match.pd: ... pattern here.
24281 2015-06-29 Tom de Vries <tom@codesourcery.com>
24283 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
24284 function structure.
24286 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
24288 * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
24289 feature description, split out the native option, add a link to
24290 the feature documentation, rearrange and slightly rewrite text.
24291 (Aarch64 options, -mcpu): Likewise.
24292 (Aarch64 options, Feature Modifiers): Add an anchor. Mention
24293 +rdma implies Adv. SIMD.
24295 2015-06-29 Marek Polacek <polacek@redhat.com>
24298 * function.c (stack_protect_epilogue): Remove a cast to int.
24299 * doc/invoke.texi: Update -Wswitch-bool description.
24301 2015-06-29 Richard Biener <rguenther@suse.de>
24303 * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
24304 * fold-const.c (fold_binary_loc): Move &A - &B simplification
24305 via ptr_difference_const ...
24306 * match.pd: ... here.
24307 When matching (X ^ Y) == Y also match with swapped operands.
24309 2015-06-29 Richard Biener <rguenther@suse.de>
24311 * lto-streamer.h (LTO_major_version): Bump to 5.
24313 2015-06-29 Richard Biener <rguenther@suse.de>
24315 PR tree-optimization/66677
24316 * tree-vect-stmts.c (vect_transform_stmt): Make assert about
24317 STMT_VINFO_VEC_STMT clobbering less strict.
24319 2015-06-29 Kugan Vivekanandarajah <kuganv@linaro.org>
24321 PR middle-end/64130
24322 * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
24323 division, compute max and min when value ranges for dividend and
24324 divisor are available.
24326 2015-06-28 Chung-Lin Tang <cltang@codesourcery.com>
24327 Sandra Loosemore <sandra@codesourcery.com>
24329 * regrename.h (regrename_do_replace): Change to return bool.
24330 * regrename.c (rename_chains): Check return value of
24331 regname_do_replace.
24332 (regrename_do_replace): Re-validate the modified insns and
24333 return bool status.
24334 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
24335 Update to match rename_chains changes.
24336 * config/c6x/c6x.c (try_rename_operands): Assert that
24337 regrename_do_replace returns true.
24339 2015-06-28 Uros Bizjak <ubizjak@gmail.com>
24341 * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
24342 operand 2 here. Use copy_addr_to_reg to copy non-index
24343 register operand 2 to a temporary.
24344 (<mode>_stx): Ditto for operand 1.
24345 (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
24346 * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
24347 (ix86_store_bounds): Ditto.
24349 2015-06-27 Patrick Palka <ppalka@gcc.gnu.org>
24351 * print-tree.c (print_node) [TREE_VEC]: Print its length.
24353 2015-06-26 Andrew MacLeod <amacleod@redhat.com>
24355 * gimple.c (gimple_call_set_fndecl): Remove.
24356 * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
24357 build1_loc directly instead of build_fold_addr_expr_loc.
24359 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
24361 * hash-map.h (hash_map::traverse): Use the definition of the
24362 Key typedef rather than the typedef itself.
24364 2015-06-26 Martin Jambor <mjambor@suse.cz>
24367 * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
24368 NULL instead of calling dump_enabled_p.
24370 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
24372 * config/aarch64/aarch64.opt: (override): New.
24373 * doc/invoke.texi (override): Document.
24374 * config/aarch64/aarch64.c (aarch64_flag_desc): New
24375 (aarch64_fusible_pairs): Likewise.
24376 (aarch64_tuning_flags): Likewise.
24377 (aarch64_tuning_override_function): Likewise.
24378 (aarch64_tuning_override_functions): Likewise.
24379 (aarch64_parse_one_option_token): Likewise.
24380 (aarch64_parse_boolean_options): Likewise.
24381 (aarch64_parse_fuse_string): Likewise.
24382 (aarch64_parse_tune_string): Likewise.
24383 (aarch64_parse_one_override_token): Likewise.
24384 (aarch64_parse_override_string): Likewise.
24385 (aarch64_override_options): Parse the -override string if it
24388 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
24390 * config/aarch64/aarch64-protos.h (tune_params): Remove
24391 const from members.
24392 (aarch64_tune_params): Remove const, change to no longer be
24394 * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
24395 change to no longer be a pointer, initialize to generic_tunings.
24396 (aarch64_min_divisions_for_recip_mul): Change dereference of
24397 aarch64_tune_params to member access.
24398 (aarch64_reassociation_width): Likewise.
24399 (aarch64_rtx_mult_cost): Likewise.
24400 (aarch64_address_cost): Likewise.
24401 (aarch64_branch_cost): Likewise.
24402 (aarch64_rtx_costs): Likewise.
24403 (aarch64_register_move_cost): Likewise.
24404 (aarch64_memory_move_cost): Likewise.
24405 (aarch64_sched_issue_rate): Likewise.
24406 (aarch64_builtin_vectorization_cost): Likewise.
24407 (aarch64_override_options): Take a copy of the selected tuning
24408 struct in to aarch64_tune_params, rather than just setting
24409 a pointer, change dereferences of aarch64_tune_params to member
24411 (aarch64_override_options_after_change): Change dereferences of
24412 aarch64_tune_params to member access.
24413 (aarch64_macro_fusion_p): Likewise.
24414 (aarch_macro_fusion_pair_p): Likewise.
24415 * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
24417 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
24419 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
24420 (aarch64_tune_flags): Likewise.
24421 (AARCH64_TUNE_FMA_STEERING): Likewise.
24422 * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
24423 to AARCH64_FL_USE_FMA_STEERING_PASS.
24424 (cortex-a57.cortex-a53): Likewise.
24425 (cortex-a72): Use cortexa72_tunings.
24426 (cortex-a72.cortex-a53): Likewise.
24427 (exynos-m1): Likewise.
24428 * config/aarch64/aarch64-protos.h (tune_params): Add
24429 a field: extra_tuning_flags.
24430 * config/aarch64/aarch64-tuning-flags.def: New.
24431 * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
24432 (aarch64_extra_tuning_flags): Likewise.
24433 (aarch64_tune_params): Declare here.
24434 * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
24435 (cortexa53_tunings): Likewise.
24436 (cortexa57_tunings): Likewise.
24437 (thunderx_tunings): Likewise.
24438 (xgene1_tunings): Likewise.
24439 (cortexa72_tunings): New.
24440 * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
24441 (gate): Check against aarch64_tune_params.
24442 * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
24445 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
24447 * config/aarch64/aarch64-fusion-pairs.def: New.
24448 * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
24449 * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
24450 aarch64_fusion_pairs.
24451 (AARCH64_FUSE_MOV_MOVK): Likewise.
24452 (AARCH64_FUSE_ADRP_ADD): Likewise.
24453 (AARCH64_FUSE_MOVK_MOVK): Likewise.
24454 (AARCH64_FUSE_ADRP_LDR): Likewise.
24455 (AARCH64_FUSE_CMP_BRANCH): Likewise.
24457 2015-06-26 Jiong Wang <jiong.wang@arm.com>
24459 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
24460 SYMBOL_SMALL_GOT_28K.
24461 * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
24462 relocation modifiers.
24463 (unspec): New enum "UNSPEC_GOTMALLPIC28K.
24464 (ldr_got_small_28k_<mode>): New.
24465 (ldr_got_small_28k_sidi): New.
24466 * config/aarch64/iterators.md (got_modifier): New mode iterator.
24467 * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
24468 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
24469 SYMBOL_SMALL_GOT_28K.
24470 (aarch64_rtx_costs): Add costs for new instruction sequences.
24471 (initialize_aarch64_code_model): Initialize new model.
24472 (aarch64_classify_symbol): Recognize new model and new symbol classification.
24473 (aarch64_asm_preferred_eh_data_format): Support new model.
24474 (aarch64_load_symref_appropriately): Generate new instruction
24475 sequences for -fpic.
24476 (TARGET_USE_PSEUDO_PIC_REG): New definition.
24477 (aarch64_use_pseudo_pic_reg): New function.
24479 2015-06-26 Jiong Wang <jiong.wang@arm.com>
24481 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
24482 SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
24483 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
24484 (aarch64_expand_mov_immediate): Ditto.
24485 (aarch64_print_operand): Ditto.
24486 (aarch64_classify_symbol): Ditto.
24488 2015-06-26 Nathan Sidwell <nathan@codesourcery.com>
24490 * config/nvptx/nvptx.md (call_operation): Remove unused variables.
24492 2015-06-26 Bin Cheng <bin.cheng@arm.com>
24495 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
24496 assertion failed. Remove assertion itself.
24498 2015-06-26 Richard Biener <rguenther@suse.de>
24500 * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
24501 and -A CMP CST -> A CMP -CST which is redundant with a pattern
24503 Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
24504 (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
24505 (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
24506 * match.pd: ... patterns here.
24508 2015-06-26 Marek Polacek <polacek@redhat.com>
24510 * match.pd ((x | y) & ~(x & y) -> x ^ y,
24511 (x | y) & (~x ^ y) -> x & y): New patterns.
24513 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
24515 * rtl.h (emit): Add an optional boolean parameter to control
24516 whether barriers are emitted.
24517 * emit-rtl.c (emit): Likewise.
24518 * gensupport.c (get_emit_function): Return null rather than "emit".
24519 * genemit.c (gen_emit_seq): Handle the null return value.
24520 Don't emit barriers after the final instruction in the sequence.
24521 * gentarget-def.c (main): Don't emit barriers after the instruction.
24523 2015-06-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24525 * config/arm/arm.c (arm_output_multireg_pop): Fix use of
24526 TARGET_UNIFIED_ASM.
24528 2015-06-26 Richard Biener <rguenther@suse.de>
24530 * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
24532 2015-06-26 Richard Biener <rguenther@suse.de>
24534 * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
24535 irrespective on whether the inner operation has a single use
24536 of both off are constant.
24538 2015-06-26 Uros Bizjak <ubizjak@gmail.com>
24539 Segher Boessenkool <segher@kernel.crashing.org>
24542 * config/i386/i386.md (various splitters): Use shallow_copy_rtx
24543 before doing PUT_MODE or PUT_CODE on operands to avoid
24544 in-place RTX modification.
24546 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
24548 * gentarget-def.c (def_target_insn): Cast return of strtol to
24551 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
24553 * gimple.h (gimple_call_set_fn): Move inline function.
24554 * gimple.c (gimple_call_set_fn): Relocate here.
24556 2015-06-25 Oleg Endo <olegendo@gcc.gnu.org>
24560 * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
24561 the replacement insn will work.
24563 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
24565 * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
24568 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
24570 * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
24571 * cgraph.h: Include ipa-ref.h and plugin-api.h.
24572 (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
24573 (symtab_node::address_can_be_compared_p): Move function.
24574 * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
24576 * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
24577 * auto-profile.c: Likewise.
24578 * bb-reorder.c: Likewise.
24579 * builtins.c: Likewise.
24580 * calls.c: Likewise.
24581 * cfgexpand.c: Likewise.
24582 * cgraphbuild.c: Likewise.
24583 * cgraphclones.c: Likewise.
24584 * cgraphunit.c: Likewise.
24585 * combine.c: Likewise.
24586 * coverage.c: Likewise.
24587 * data-streamer-in.c: Likewise.
24588 * data-streamer-out.c: Likewise.
24589 * data-streamer.c: Likewise.
24590 * dbxout.c: Likewise.
24591 * dwarf2out.c: Likewise.
24592 * except.c: Likewise.
24593 * expr.c: Likewise.
24594 * final.c: Likewise.
24595 * fold-const.c: Likewise.
24596 * ggc-page.c: Likewise.
24597 * gimple-fold.c: Likewise.
24598 * gimple-iterator.c: Likewise.
24599 * gimple-pretty-print.c: Likewise.
24600 * gimple-streamer-in.c: Likewise.
24601 * gimple-streamer-out.c: Likewise.
24602 * gimple.c: Likewise.
24603 * gimplify.c: Likewise.
24604 * ipa-chkp.c: Likewise.
24605 * ipa-comdats.c: Likewise.
24606 * ipa-cp.c: Likewise.
24607 * ipa-devirt.c: Likewise.
24608 * ipa-icf-gimple.c: Likewise.
24609 * ipa-icf.c: Likewise.
24610 * ipa-inline-analysis.c: Likewise.
24611 * ipa-inline-transform.c: Likewise.
24612 * ipa-inline.c: Likewise.
24613 * ipa-polymorphic-call.c: Likewise.
24614 * ipa-profile.c: Likewise.
24615 * ipa-prop.c: Likewise.
24616 * ipa-pure-const.c: Likewise.
24617 * ipa-ref.c: Likewise.
24618 * ipa-reference.c: Likewise.
24619 * ipa-split.c: Likewise.
24620 * ipa-utils.c: Likewise.
24621 * ipa-visibility.c: Likewise.
24623 * langhooks.c: Likewise.
24624 * lto-cgraph.c: Likewise.
24625 * lto-compress.c: Likewise.
24626 * lto-opts.c: Likewise.
24627 * lto-section-in.c: Likewise.
24628 * lto-section-out.c: Likewise.
24629 * lto-streamer-in.c: Likewise.
24630 * lto-streamer-out.c: Likewise.
24631 * lto-streamer.c: Likewise.
24632 * omp-low.c: Likewise.
24633 * opts-global.c: Likewise.
24634 * passes.c: Likewise.
24635 * predict.c: Likewise.
24636 * print-tree.c: Likewise.
24637 * profile.c: Likewise.
24639 * sanopt.c: Likewise.
24640 * stor-layout.c: Likewise.
24641 * symtab.c: Likewise.
24642 * toplev.c: Likewise.
24643 * trans-mem.c: Likewise.
24644 * tree-cfg.c: Likewise.
24645 * tree-chkp.c: Likewise.
24646 * tree-eh.c: Likewise.
24647 * tree-emutls.c: Likewise.
24648 * tree-inline.c: Likewise.
24649 * tree-nested.c: Likewise.
24650 * tree-parloops.c: Likewise.
24651 * tree-pretty-print.c: Likewise.
24652 * tree-profile.c: Likewise.
24653 * tree-sra.c: Likewise.
24654 * tree-ssa-alias.c: Likewise.
24655 * tree-ssa-live.c: Likewise.
24656 * tree-ssa-loop-ivcanon.c: Likewise.
24657 * tree-ssa-loop-ivopts.c: Likewise.
24658 * tree-ssa-pre.c: Likewise.
24659 * tree-ssa-sccvn.c: Likewise.
24660 * tree-ssa-strlen.c: Likewise.
24661 * tree-ssa-structalias.c: Likewise.
24662 * tree-streamer-in.c: Likewise.
24663 * tree-streamer-out.c: Likewise.
24664 * tree-streamer.c: Likewise.
24665 * tree-switch-conversion.c: Likewise.
24666 * tree-tailcall.c: Likewise.
24667 * tree-vect-data-refs.c: Likewise.
24668 * tree-vect-stmts.c: Likewise.
24669 * tree-vectorizer.c: Likewise.
24670 * tree.c: Likewise.
24671 * tsan.c: Likewise.
24672 * ubsan.c: Likewise.
24673 * value-prof.c: Likewise.
24674 * varasm.c: Likewise.
24675 * varpool.c: Likewise.
24676 * config/arm/arm.c: Likewise.
24677 * config/bfin/bfin.c: Likewise.
24678 * config/c6x/c6x.c: Likewise.
24679 * config/cris/cris.c: Likewise.
24680 * config/darwin-c.c: Likewise.
24681 * config/darwin.c: Likewise.
24682 * config/i386/i386.c: Likewise.
24683 * config/i386/winnt.c: Likewise.
24684 * config/microblaze/microblaze.c: Likewise.
24685 * config/mips/mips.c: Likewise.
24686 * config/rs6000/rs6000.c: Likewise.
24687 * config/rx/rx.c: Likewise.
24688 * config/s390/s390.c: Likewise.
24689 * config/tilegx/mul-tables.c: Likewise.
24691 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24693 * config/aarch64/aarch64.c, config/alpha/alpha.c,
24694 config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
24695 config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
24696 config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
24697 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
24698 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
24699 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
24700 config/microblaze/microblaze.c, config/mips/mips.c,
24701 config/mmix/mmix.c, config/mn10300/mn10300.c,
24702 config/moxie/moxie.c, config/msp430/msp430.c,
24703 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
24704 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
24705 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
24706 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
24707 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
24708 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
24709 config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
24710 target-def.h include.
24711 * config/ft32/ft32.c: Likewise. Fix misapplied hunk.
24713 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24715 * Makefile.in (TARGET_DEF): Add target-insns.def.
24716 (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
24717 (build/gentarget-def.o): New rule.
24718 (genprogrtl): Add target-def.
24719 * target-insns.def, gentarget-def.c: New files.
24720 * target.def: Add targetm.have_* and targetm.gen_* hooks,
24721 based on the contents of target-insns.def.
24722 * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
24723 (HAVE_return, gen_return): Delete.
24724 * target-def.h: Include insn-target-def.h.
24725 * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
24726 instead of direct calls. Rely on them to do the appropriate assertions.
24727 * function.c (gen_return_pattern): Likewise. Return an rtx_insn *.
24728 (convert_jumps_to_returns): Use targetm interface instead of
24730 (thread_prologue_and_epilogue_insns): Likewise.
24731 * reorg.c (find_end_label, dbr_schedule): Likewise.
24732 * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
24733 * shrink-wrap.c (convert_to_simple_return): Likewise.
24734 (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
24736 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24738 * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
24739 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
24740 config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
24741 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
24742 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
24743 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
24744 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
24745 config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
24746 config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
24747 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
24748 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
24749 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
24750 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
24751 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
24752 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
24753 config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
24756 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24758 * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
24759 (unbounded_int_hashmap_traits::key_type): Likewise.
24760 * hash-map.h (hash_map): Get the key type from the traits.
24761 * hash-traits.h (default_hash_traits): By default, inherit from the
24762 template parameter.
24763 * alias.c (alias_set_traits): Delete.
24764 (alias_set_entry_d::children): Use alias_set_hash as the first
24765 template parameter.
24766 (record_alias_subset): Update accordingly.
24767 * except.c (tree_hash_traits): Delete.
24768 (type_to_runtime_map): Use tree_hash as the first template parameter.
24769 (init_eh): Update accordingly.
24770 * genmatch.c (capture_id_map_hasher): Delete.
24771 (cid_map_t): Use nofree_string_hash as first template parameter.
24772 * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
24773 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
24774 Use symbol_compare_hash as the first template parameter in
24775 subdivide_hash_map.
24776 * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
24777 (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
24778 template parameter.
24779 * passes.c (pass_registry_hasher): Delete.
24780 (name_to_pass_map): Use nofree_string_hash as the first template
24782 (register_pass_name): Update accordingly.
24783 * sanopt.c (sanopt_tree_map_traits): Delete.
24784 (sanopt_tree_triplet_map_traits): Delete.
24785 (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
24786 template parameter.
24787 (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
24788 the first template parameter.
24789 * sese.c (rename_map_hasher): Delete.
24790 (rename_map_type): Use tree_ssa_name_hash as the first template
24792 * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
24793 (function_summary::m_map): Use map_hash as the first template
24795 (function_summary::release): Update accordingly.
24796 * tree-if-conv.c (phi_args_hash_traits): Delete.
24797 (predicate_scalar_phi): Use tree_operand_hash as the first template
24798 parameter to phi_arg_map.
24799 * tree-inline.h (dependence_hasher): Delete.
24800 (copy_body_data::dependence_map): Use dependence_hash as the first
24801 template parameter.
24802 * tree-inline.c (remap_dependence_clique): Update accordingly.
24803 * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
24804 (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
24806 (addr_stridxptr): Update accordingly.
24807 * value-prof.c (profile_id_traits): Delete.
24808 (cgraph_node_map): Use profile_id_hash as the first template
24810 (init_node_map): Update accordingly.
24811 * config/alpha/alpha.c (string_traits): Delete.
24812 (machine_function::links): Use nofree_string_hash as the first
24813 template parameter.
24814 (alpha_use_linkage, alpha_write_linkage): Update accordingly.
24815 * config/m32c/m32c.c (pragma_traits): Delete.
24816 (pragma_htab): Use nofree_string_hash as the first template parameter.
24817 (m32c_note_pragma_address): Update accordingly.
24818 * config/mep/mep.c (pragma_traits): Delete.
24819 (pragma_htab): Use nofree_string_hash as the first template parameter.
24820 (mep_note_pragma_flag): Update accordingly.
24821 * config/mips/mips.c (mips16_flip_traits): Delete.
24822 (mflip_mips16_htab): Use nofree_string_hash as the first template
24824 (mflip_mips16_use_mips16_p): Update accordingly.
24825 (local_alias_traits): Delete.
24826 (mips16_local_aliases): Use nofree_string_hash as the first template
24828 (mips16_local_alias): Update accordingly.
24830 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24832 * hash-map-traits.h (default_hashmap_traits): Delete.
24834 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24836 * hash-map-traits.h (unbounded_hashmap_traits): New class.
24837 (unbounded_int_hashmap_traits): Likewise.
24838 * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
24840 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24842 * ipa-icf.h (symbol_compare_hash): New class.
24843 (symbol_compare_hashmap_traits): Use it.
24844 * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
24845 (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
24846 (mem_alloc_description::reverse_mem_map_t): Remove redundant
24847 default_hashmap_traits.
24848 * sanopt.c (sanopt_tree_triplet_hash): New class.
24849 (sanopt_tree_triplet_map_traits): Use it.
24851 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24853 * gengtype-parse.c (require_template_declaration): Allow '+' in
24854 template parameters. Consolidate cases.
24855 * hash-traits.h (int_hash): New class.
24856 * alias.c (alias_set_hash): New structure.
24857 (alias_set_traits): Use it.
24858 * symbol-summary.h (function_summary::map_hash): New class.
24859 (function_summary::summary_hashmap_traits): Use it.
24860 * tree-inline.h (dependence_hash): New class.
24861 (dependence_hasher): Use it.
24862 * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
24863 * value-prof.c (profile_id_hash): New class.
24864 (profile_id_traits): Use it.
24866 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24868 * config/mips/mips.c (mips16_flip_traits): Use it.
24869 (local_alias_traits, mips16_local_aliases): Convert from a map of
24870 rtxes to a map of symbol names.
24871 (mips16_local_alias): Update accordingly.
24873 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24875 * hash-traits.h (string_hash, nofree_string_hash): New classes.
24876 * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
24877 * passes.c (pass_registry_hasher): Likewise.
24878 * config/alpha/alpha.c (string_traits): Likewise.
24879 * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
24880 * config/m32c/m32c.c (pragma_traits): Likewise.
24881 * config/mep/mep.c (pragma_traits): Likewise.
24883 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24885 * tree-hash-traits.h (tree_hash): New class.
24886 * except.c: Include tree-hash-traits.h.
24887 (tree_hash_traits): Use tree_hash.
24889 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24891 * tree-hash-traits.h (tree_ssa_name_hasher): New class.
24892 * sese.c: Include tree-hash-traits.h.
24893 (rename_map_hasher): Use tree_ssa_name_hasher.
24895 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24897 * tree-hash-traits.h (tree_decl_hash): New class.
24898 * tree-ssa-strlen.c: Include tree-hash-traits.h.
24899 (stridxlist_hash_traits): Use tree_decl_hash.
24901 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24903 * tree-hash-traits.h: New file.
24904 (tree_operand_hash): New class.
24905 * sanopt.c: Include tree-hash-traits.h.
24906 (sanopt_tree_map_traits): Use tree_operand_hash.
24907 * tree-if-conv.c: Include tree-hash-traits.h.
24908 (phi_args_hash_traits): Use tree_operand_hash.
24909 * tree-ssa-uncprop.c: Include tree-hash-traits.h.
24910 (val_ssa_equiv_hash_traits): Use tree_operand_hash.
24912 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24914 * hash-map-traits.h: Include hash-traits.h.
24915 (simple_hashmap_traits): New class.
24916 * mem-stats.h (hash_map): Change the default traits to
24917 simple_hashmap_traits<default_hash_traits<Key> >.
24919 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24921 * hash-table.h: Update comments.
24923 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24925 * hash-traits.h (default_hash_traits): New structure.
24926 * hash-set.h (default_hashset_traits): Delete.
24927 (hash_set): Use default_hash_traits<Key> instead of
24928 default_hashset_traits. Delete hash_entry type and use Key directly.
24929 * ipa-devirt.c (pair_traits): Delete.
24930 (default_hash_traits <type_pair>): Override.
24931 (odr_subtypes_equivalent_p): Remove pair_types template parameter.
24932 (odr_types_equivalent_p, add_type_duplicate): Likewise.
24934 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24936 * hash-traits.h (typed_noop_remove): Don't require a pointer type.
24938 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24940 * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
24941 (has_is_empty, is_empty_helper): Delete.
24942 (has_mark_deleted, mark_deleted_helper): Delete.
24943 (has_mark_empty, mark_empty_helper): Delete.
24944 (hash_table::is_deleted): Call the Descriptor unconditionally.
24945 (hash_table::is_empty): Likewise.
24946 (hash_table::mark_deleted): Likewise.
24947 (hash_table::mark_empty): Likewise.
24949 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24951 * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash. Remove
24952 redundant typedefs and members.
24953 * coverage.c (counts_entry): Inherit from pointer_hash. Remove
24954 redundant typedefs.
24955 * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
24956 * ipa-devirt.c (odr_name_hasher): Likewise.
24957 (polymorphic_call_target_hasher): Likewise.
24958 * ira-costs.c (cost_classes_hasher): Likewise.
24959 * statistics.c (stats_counter_hasher): Likewise.
24960 * trans-mem.c (log_entry_hasher): Likewise.
24961 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
24962 * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
24963 * tree-ssa-tail-merge.c (same_succ_def): Likewise.
24964 * var-tracking.c (variable_hasher): Likewise.
24965 * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
24966 Remove redundant typedefs and members.
24968 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24970 * hash-traits.h (ggc_cache_hasher): Rename to...
24971 (ggc_cache_remove): ...this and remove typedefs.
24972 (ggc_cache_ptr_hash): New class.
24973 * hash-table.h: Update commentary.
24974 * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
24975 rather than ggc_cache_hasher.
24976 (const_wide_int_hasher, reg_attr_hasher): Likewise.
24977 (const_double_hasher, const_fixed_hasher): Likewise.
24978 * function.c (insn_cache_hasher): Likewise.
24979 * trans-mem.c (tm_wrapper_hasher): Likewise.
24980 * tree.h (tree_decl_map_cache_hasher): Likewise.
24981 * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
24982 (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
24983 * ubsan.c (tree_type_map_cache_hasher): Likewise.
24984 * varasm.c (tm_clone_hasher): Likewise.
24985 * config/i386/i386.c (dllimport_hasher): Likewise.
24986 * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
24987 (tree_hasher): Likewise.
24989 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24991 * hash-traits.h (ggc_hasher): Rename to...
24992 (ggc_remover): ...this and remove typedefs.
24993 (ggc_cache_hasher): Update accordingly. Add typedefs.
24994 (ggc_ptr_hash): New class.
24995 * hash-table.h: Update comment.
24996 * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
24998 * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
24999 (tree_descriptor_hasher): Likewise.
25000 * cgraph.c (function_version_hasher): Likewise.
25001 * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
25002 (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
25003 (dw_loc_list_hasher, addr_hasher): Likewise.
25004 * function.h (used_type_hasher): Likewise.
25005 * function.c (temp_address_hasher): Likewise.
25006 * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
25007 * libfuncs.h (libfunc_hasher): Likewise.
25008 * lto-streamer.h (decl_state_hasher): Likewise.
25009 * optabs.c (libfunc_decl_hasher): Likewise.
25010 * tree-scalar-evolution.c (scev_info_hasher): Likewise.
25011 * varasm.c (section_hasher, object_block_hasher): Likewise.
25012 (const_rtx_desc_hasher): Likewise.
25013 * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
25014 * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
25016 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
25018 * hash-traits.h (free_ptr_hash): New class.
25019 * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
25020 rather than typed_free_remove. Remove redudant typedefs.
25021 (external_ref_hasher): Likewise.
25022 * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
25023 (ehspec_hasher): Likewise.
25024 * ggc-common.c (saving_hasher): Likewise.
25025 * gimplify.c (gimplify_hasher): Likewise.
25026 * haifa-sched.c (delay_i2_hasher): Likewise.
25027 * loop-invariant.c (invariant_expr_hasher): Likewise.
25028 * loop-iv.c (biv_entry_hasher): Likewise.
25029 * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
25030 * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
25031 * tree-cfg.c (locus_discrim_hasher): Likewise.
25032 * tree-eh.c (finally_tree_hasher): Likewise.
25033 * tree-into-ssa.c (var_info_hasher): Likewise.
25034 * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
25035 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
25036 * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
25037 * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
25038 * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
25039 * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
25040 (shared_bitmap_hasher): Likewise.
25041 * tree-ssa-threadupdate.c (redirection_data): Likewise.
25042 * tree-vectorizer.h (peel_info_hasher): Likewise.
25043 * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
25044 * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
25046 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
25048 * hash-table.h: Update comments.
25049 * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
25050 (nofree_ptr_hash): New class.
25051 * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
25052 than typed_noop_remove. Remove redudant typedefs.
25053 * attribs.c (attribute_hasher): Likewise.
25054 * cfg.c (bb_copy_hasher): Likewise.
25055 * cselib.c (cselib_hasher): Likewise.
25056 * dse.c (invariant_group_base_hasher): Likewise.
25057 * dwarf2cfi.c (trace_info_hasher): Likewise.
25058 * dwarf2out.c (macinfo_entry_hasher): Likewise.
25059 (comdat_type_hasher, loc_list_hasher): Likewise.
25060 * gcse.c (pre_ldst_expr_hasher): Likewise.
25061 * genmatch.c (id_base): Likewise.
25062 * genrecog.c (test_pattern_hasher): Likewise.
25063 * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
25064 * haifa-sched.c (delay_i1_hasher): Likewise.
25065 * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
25066 * ipa-icf.h (congruence_class_group_hash): Likewise.
25067 * ipa-profile.c (histogram_hash): Likewise.
25068 * ira-color.c (allocno_hard_regs_hasher): Likewise.
25069 * lto-streamer.h (string_slot_hasher): Likewise.
25070 * lto-streamer.c (tree_entry_hasher): Likewise.
25071 * plugin.c (event_hasher): Likewise.
25072 * postreload-gcse.c (expr_hasher): Likewise.
25073 * store-motion.c (st_expr_hasher): Likewise.
25074 * tree-sra.c (uid_decl_hasher): Likewise.
25075 * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
25076 (ssa_name_var_hash): Likewise.
25077 * tree-ssa-live.c (tree_int_map_hasher): Likewise.
25078 * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
25079 * tree-ssa-pre.c (pre_expr_d): Likewise.
25080 * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
25081 * vtable-verify.h (registration_hasher): Likewise.
25082 * vtable-verify.c (vtbl_map_hasher): Likewise.
25083 * config/arm/arm.c (libcall_hasher): Likewise.
25084 * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
25085 * config/ia64/ia64.c (bundle_state_hasher): Likewise.
25086 * config/sol2.c (comdat_entry_hasher): Likewise.
25087 * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
25088 (print_fold_checksum, fold_checksum_tree): Likewise.
25089 (debug_fold_checksum, fold_build1_stat_loc): Likewise.
25090 (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
25091 (fold_build_call_array_loc): Likewise.
25092 * tree-ssa-ccp.c (gimple_htab): Likewise.
25093 * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
25094 rather than pointer_type.
25096 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
25098 * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
25099 (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
25101 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
25103 * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
25104 (ggc_hasher::ggc_mx): Likewise.
25105 (ggc_cache_hasher): Inherit from ggc_hasher. Remove definitions
25106 that duplicate ggc_hasher ones.
25108 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
25110 * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
25111 (gt_cleare_cache): Check here for deleted and empty entries.
25112 Replace handle_cache_entry with a call to keep_cache_entry.
25113 * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
25114 (ggc_cache_hasher::keep_cache_entry): New function.
25115 * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
25116 (tm_wrapper_hasher::keep_cache_entry): New function.
25117 * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
25118 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
25119 * tree.c (type_cache_hasher::handle_cache_entry): Delete.
25120 (type_cache_hasher::keep_cache_entry): New function.
25121 (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
25122 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
25123 * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
25124 (tree_type_map_cache_hasher::keep_cache_entry): New function.
25125 * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
25126 (tm_clone_hasher::keep_cache_entry): New function.
25127 * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
25128 (dllimport_hasher::keep_cache_entry): New function.
25130 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
25132 * hash-table.h: Include hash-traits.h.
25133 (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
25134 (ggc_cache_hasher): Move to...
25135 * hash-traits.h: ...this new file.
25137 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
25139 * tree-core.h (struct tree_optimization_option): Make opts a pointer to
25140 struct cl_optimization.
25141 * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
25142 * tree.c (make_node_stat): Allocate cl_optimization struct.
25143 (copy_node_stat): Allocate and copy cl_optimization struct.
25145 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
25147 * function.h (struct incoming_args): Move struct.
25148 (pass_by_reference, reference_callee_copied): Remove prototypes.
25149 * emit-rtl.h (struct incoming_args): Relocate struct here.
25150 * calls.h (pass_by_reference, reference_callee_copied): Relocate
25152 * function.c (pass_by_reference, reference_callee_copied): Move.
25153 * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
25154 * cfgloop.h: Don't include tm.h or hard-reg-set.h.
25155 * ipa-chkp.c: Include calls.h.
25157 2015-06-25 Andrew Macleod <amacleod@redhat.com>
25159 * alias.h (alias_set_type): Move typedef.
25160 * coretypes.h (alias_set_type): Relocate typedef here.
25161 * rtl.h: Don't include alias.h.
25163 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
25165 * cgraph.h (cgraph_rtl_info): Move to rtl.h
25166 (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
25168 * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
25169 * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
25171 * calls.c: Include hard-reg-set.h before rtl.h.
25174 2015-06-25 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
25175 Vladimir Makarov <vmakarov@redhat.com>
25177 * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
25180 2015-06-25 Richard Biener <rguenther@suse.de>
25182 * fold-const.c (fold_binary_loc): Move simplification of
25183 (X <<>> C1) & C2 ...
25184 * match.pd: ... here.
25186 2015-06-25 Eric Botcazou <ebotcazou@adacore.com>
25188 * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
25190 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
25192 * match.pd: Add patterns for vec_conds between 1 and 0.
25194 2015-06-25 Richard Biener <rguenther@suse.de>
25196 * tree-vect-stmts.c (vectorizable_conversion): Do not set
25197 STMT_VINFO_VEC_STMT for SLP.
25198 (vectorizable_store): Likewise.
25199 (vectorizable_load): Likewise.
25200 (vect_transform_stmt): Catch SLP vectorization clobbering
25201 STMT_VINFO_VEC_STMT.
25203 2015-06-25 Richard Biener <rguenther@suse.de>
25205 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
25207 (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
25208 cleanup resulting dead code and parameters.
25209 (vect_transform_slp_perm_load): Adjust.
25211 2015-06-25 Nick Clifton <nickc@redhat.com>
25213 * config/bfin/bfin.c (bfin_expand_prologue): Set
25214 current_function_static_stack_size if flag_stack_usage_info is set.
25215 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
25216 * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
25217 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
25218 * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
25220 2015-06-25 Tom de Vries <tom@codesourcery.com>
25222 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
25223 comment that the generated IV is unsigned.
25225 2015-06-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25228 * config/arm/arm.c (arm_dbx_register_number): Return
25229 DWARF_FRAME_REGISTERS by default.
25231 2015-06-25 Tom de Vries <tom@codesourcery.com>
25233 * dominance.c (calculate_dominance_info): Fix verify_dominators call
25234 argument. Call verify_dominator when reusing dominator info.
25236 2015-06-24 Kaz Kojima <kkojima@gcc.gnu.org>
25239 * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
25240 an additional element of the unspec vector. Modify indices
25242 (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
25243 * config/sh/sh.c (prepare_move_operands): Pass incremented
25244 const_int to gen_GOTaddr2picreg.
25245 (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
25247 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
25249 * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
25250 Condition on TARGET_FLOAT.
25252 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
25254 * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
25257 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
25259 * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
25261 * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
25262 aarch64_err_no_fpadvsimd.
25264 * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
25265 (aarch64_layout_arg, aarch64_init_cumulative_args): Use
25266 aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
25267 (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
25268 Turn error into assert, test TARGET_FLOAT.
25269 (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
25272 2015-06-24 Aldy Hernandez <aldyh@redhat.com>
25275 * dwarf2out.c (gen_formal_parameter_die): Remove assert.
25277 2015-06-24 Ilya Enkovich <enkovich.gnu@gmail.com>
25279 * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
25281 2015-06-24 Renlin Li <renlin.li@arm.com>
25283 * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
25284 __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
25286 2015-06-24 Richard Biener <rguenther@suse.de>
25288 * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
25290 (lower_opt_convert): Support lowering of conditional view_convert.
25291 (parser::parse_operation): Likewise.
25292 (parser::parse_for): Likewise.
25294 2015-06-24 Renlin Li <renlin.li@arm.com>
25296 * varasm.c (emit_local): Use unsigned int for align variable.
25298 2015-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25301 * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
25302 for negative numbers.
25304 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25306 PR rtl-optimization/66306
25307 * reload.c (find_reloads): Swap the match_dup info for
25308 commutative operands.
25310 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25312 * config/s390/vx-builtins.md
25313 ("vec_scatter_element<mode>_<non_vec_int>")
25314 ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
25315 attribute with bhfgq.
25317 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25319 * config/s390/s390-builtins.def: Fix vpopct instruction comments.
25321 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25323 * config/s390/s390-builtin-types.def: Add flag to indicate the
25324 options under which the function type is needed.
25325 * config/s390/s390-builtins.def: Add flag to indicate the options
25326 under which the builtin is enabled.
25327 * config/s390/s390-builtins.h: Add flags parameter to macro
25329 (bflags_for_builtin): New function.
25330 (flags_for_builtin): Renamed to ...
25331 (opflags_for_builtin): ... this.
25332 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
25333 flags_for_builtin to bflags_for_builtin and
25334 flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
25335 * config/s390/s390.c: Add initialization of bflags_builtin and
25336 opflags_builtin arrays.
25337 Remove code for flags_builtin.
25338 (s390_init_builtins): Only create builtin function types if one of
25339 their flags is active.
25340 Only create builtins if all of their flags are active.
25341 (s390_expand_builtin): Rename flags_for_builtin to
25342 opflags_for_builtin.
25344 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25346 * config/s390/vecintrin.h: Remove internal builtins.
25348 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25350 * config/s390/s390.c (s390_secondary_reload): Fix check for
25351 GENERAL_REGS register class.
25353 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25355 * config/s390/s390.c (s390_support_vector_misalignment): Call
25356 default implementation for !TARGET_VX.
25358 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25360 * config/s390/s390.c (s390_legitimate_constant_p): Add
25363 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25365 * config/s390/s390.c (s390_vector_abi): New variable definition.
25366 (s390_check_type_for_vector_abi): New function.
25367 (TARGET_ASM_FILE_END): New macro definition.
25368 (s390_asm_file_end): New function.
25369 (s390_function_arg): Call s390_check_type_for_vector_abi.
25370 (s390_gimplify_va_arg): Likewise.
25371 * configure: Regenerate.
25372 * configure.ac: Check for .gnu_attribute Binutils feature.
25374 2015-06-23 Chen Gang <gang.chen.5i5j@gmail.com>
25377 * config/bfin/bfin.c (hwloop_optimize): Initialize
25378 JUMP_LABEL for newly created jump.
25380 2015-06-23 Tristan Gingold <gingold@adacore.com>
25382 * collect-utils.c (collect_wait): Unlink the response file here
25384 (do_wait): ...here.
25385 (utils_cleanup): ...and here.
25387 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
25389 * df-scan.c: Don't include target-def.h.
25390 * targhooks.c: Likewise.
25391 * config/arm/arm-c.c: Likewise.
25392 * config/i386/i386-c.c: Likewise.
25393 * config/nds32/nds32-cost.c: Likewise.
25394 * config/nds32/nds32-fp-as-gp.c: Likewise.
25395 * config/nds32/nds32-intrinsic.c: Likewise.
25396 * config/nds32/nds32-isr.c: Likewise.
25397 * config/nds32/nds32-md-auxiliary.c: Likewise.
25398 * config/nds32/nds32-memory-manipulation.c: Likewise.
25399 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
25400 * config/nds32/nds32-predicates.c: Likewise.
25402 2015-06-23 Richard Biener <rguenther@suse.de>
25404 PR tree-optimization/66636
25405 * tree-vect-stmts.c (vectorizable_store): Properly compute the
25406 def type for further defs for strided stores.
25408 2015-06-23 Nathan Sidwell <nathan@codesourcery.com>
25410 * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
25411 conditional selects.
25412 (setcc_int<mode>, setcc_float<mode>): Reformat.
25414 2015-06-23 Marek Polacek <polacek@redhat.com>
25416 * match.pd ((x + y) - (x | y) -> x & y,
25417 (x + y) - (x & y) -> x | y): New patterns.
25419 2015-06-23 Ludovic Courtès <ludo@gnu.org>
25422 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
25423 '-dynamic-linker' within %{!shared: ...}.
25425 2015-06-23 Uros Bizjak <ubizjak@gmail.com>
25428 * config/i386/predicates.md (addsub_vm_operator): New predicate.
25429 (addsub_vs_operator): Ditto.
25430 (addsub_vs_parallel): Ditto.
25431 * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
25432 (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
25433 Put minus RTX before plus and adjust vec_merge selector.
25434 (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
25435 (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
25436 (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
25437 (addsub vec_merge splitters): New combiner splitters.
25438 (addsub vec_select/vec_concat splitters): Ditto.
25440 2015-06-23 Bin Cheng <bin.cheng@arm.com>
25442 PR tree-optimization/66449
25443 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
25444 POINTER_PLUS_EXPR for pointers.
25446 2015-06-23 Alan Modra <amodra@gmail.com>
25448 * rtlanal.c (commutative_operand_precedence): Correct comments.
25449 * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
25450 declaration. Return an int. Distinguish REG,REG return from
25452 (struct simplify_plus_minus_op_data): Make local to function.
25453 (simplify_plus_minus): Don't set canonicalized if merely sorting
25454 registers. Avoid packing ops if nothing changes. White space fixes.
25456 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
25458 * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
25459 -fdump-ada-spec is passed but not if -fsyntax-only is.
25461 2015-06-22 Vladimir Makarov <vmakarov@redhat.com>
25464 * lra-lives.c (process_bb_lives): Check insn copying the same
25465 reload pseudo and don't create a copy for it.
25467 2015-06-22 Tom de Vries <tom@codesourcery.com>
25469 * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
25472 2015-06-22 Tom de Vries <tom@codesourcery.com>
25474 * builtins.def (DEF_GOMP_BUILTIN): Test
25475 'flag_tree_parallelize_loops > 1' instead of
25476 'flag_tree_parallelize_loops'. Test flag_cilkplus.
25478 2015-06-22 Tom de Vries <tom@codesourcery.com>
25480 * dominance.c (calculate_dominance_info): Verify dominators if
25483 2015-06-22 Marek Polacek <polacek@redhat.com>
25485 * match.pd ((x ^ y) ^ (x | y) -> x & y,
25486 (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
25487 (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
25488 (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
25490 2015-06-22 Uros Bizjak <ubizjak@gmail.com>
25493 * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
25494 cost of embedded comparison.
25496 2015-06-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25499 * config/rs6000/predicates.md (altivec_register_operand): Permit
25500 virtual stack registers.
25501 (vsx_register_operand): Likewise.
25502 (vfloat_operand): Likewise.
25503 (vint_operand): Likewise.
25504 (vlogical_operand): Likewise.
25506 2015-06-22 Richard Biener <rguenther@suse.de>
25508 * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
25509 and single_scalar_iteration_cost members.
25510 (LOOP_VINFO_SCALAR_ITERATION_COST): New.
25511 (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
25512 (vect_get_single_scalar_iteration_cost): Remove.
25513 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
25514 Use LOOP_VINFO_SCALAR_ITERATION_COST.
25515 * tree-vect-loop.c (destroy_loop_vec_info): Free
25517 (vect_get_single_scalar_iteration_cost): Compute result into
25518 LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
25519 LOOP_VINFO_SCALAR_ITERATION_COST. Make static.
25520 (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
25521 (vect_estimate_min_profitable_iters): Use them.
25523 2015-06-22 Christian Bruel <christian.bruel@st.com>
25526 * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
25527 (TARGET_INSERT_ATTRIBUTES): Define.
25528 (thumb_flipper): New var.
25529 * config/arm/arm.opt (-mflip-thumb): New switch.
25531 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
25532 Martin Liska <mliska@suse.cz>
25535 * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
25536 construction of arg_types.
25537 (sem_function::sem_function): Likewise.
25538 (sem_function::~sem_function): Remove destruction of arg_types.
25539 (sem_function::compatible_parm_types_p): New function.
25540 (sem_function::equals_wpa): Reorg matching of return values
25541 and parameter types.
25542 (sem_function::equals_private): Reorg mathcing of argument types.
25543 (sem_function::parse_tree_args): Remove.
25544 * ipa-icf.h (init_wpa): Do not call it.
25545 (parse_tree_args): Remove.
25546 (compatible_parm_types_p): Declare.
25547 (result_type): Remove.
25548 (arg_types): Remove.
25550 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
25553 * ipa-polymorphic-call.c
25554 (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
25555 initializing alias oracle; fix formating; set base_alias_set if it
25558 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
25560 * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
25561 (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
25562 (find_inc): Likewise.
25563 * combine.c (combine_simplify_rtx): Use std::swap instead of manually
25565 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
25566 * df-scan.c (df_swap_refs): Remove.
25567 (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
25568 * dominance.c (link_roots): Use std::swap instead of manually swapping.
25569 * expr.c (expand_expr_real_2, do_store_flag): Likewise.
25570 * fold-const.c (fold_relational_const): Likewise.
25571 * genattrtab.c (simplify_test_exp): Likewise.
25572 * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
25573 gimple_simplify): Likewise.
25574 * ifcvt.c (noce_try_abs, find_if_header): Likewise.
25575 * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
25576 * ipa-devirt.c (add_type_duplicate): Likewise.
25577 * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
25578 * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
25579 * lra.c (lra_create_copy): Likewise.
25580 * lto-streamer-out.c (DFS::DFS): Likewise.
25581 * modulo-sched.c (get_sched_window): Likewise.
25582 * omega.c (omega_pretty_print_problem): Likewise.
25583 * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
25584 * reload1.c (reloads_unique_chain_p): Likewise.
25585 * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
25586 (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
25588 * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
25590 * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
25591 predicate_mem_writes): Likewise.
25592 * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
25593 * tree-predcom.c (combine_chains): Likewise.
25594 * tree-ssa-alias.c (nonoverlapping_component_refs_p,
25595 refs_may_alias_p_1): Likewise.
25596 * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
25597 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
25598 * tree-ssa-loop-niter.c (refine_bounds_using_guard,
25599 number_of_iterations_cond): Likewise.
25600 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
25601 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
25602 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
25603 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
25604 * tree-vrp.c (extract_range_from_binary_expr_1,
25605 extract_range_from_unary_expr_1): Likewise.
25607 2015-06-20 Marek Polacek <polacek@redhat.com>
25609 * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
25611 2015-06-19 Kaz Kojima <kkojima@gcc.gnu.org>
25614 * config/sh/sh.c (prepare_move_operands): Replace subreg
25615 index term with R0 for base and index addressing.
25617 2015-06-19 Jim Wilson <jim.wilson@linaro.org>
25619 * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
25621 (movsf_aarch64): Change condition from register_operand to
25622 aarch64_reg_or_fp_zero for op1. Change type for alternative 6 to
25623 load1. Change type for alternative 7 to store1.
25624 (movdf_aarch64): Likewise.
25626 2015-06-19 James Greenhalgh <james.greenhalgh@arm.com>
25628 * config/vax/vax.md: Adjust sign/zero extend patterns to
25629 handle SUBREGs in operands[1].
25631 2015-06-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25633 * config/i386/i386.c (ix86_function_versions): Use std::swap instead
25634 of manually swapping.
25635 (expand_vec_perm_interleave2): Likewise.
25637 2015-06-19 Ilya Enkovich <enkovich.gnu@gmail.com>
25639 * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
25640 reuse bounds created for abnormal ssa names.
25642 2015-06-19 Jakub Jelinek <jakub@redhat.com>
25644 * config/nvptx/nvptx.md (allocate_stack): Rename to...
25645 (allocate_stack_<mode>): ... this, and add :P on both
25646 match_operand and unspec.
25647 (allocate_stack): New expander.
25649 2015-06-19 Christian Bruel <christian.bruel@st.com>
25653 * config/arm/arm.c (arm_set_current_function): Handle
25654 explicit default options.
25656 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
25658 * config/i386/i386.md (*movsicc_noc_zext): New insn.
25659 (zero-extended cmove with mem peephole2): New pattern.
25660 (cmove with mem peephole2): Merge patterns.
25662 2015-06-18 Segher Boessenkool <segher@kernel.crashing.org>
25664 * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
25666 2015-06-18 Steve Ellcey <sellcey@imgtec.com>
25668 * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
25669 * config/mips/mips.md (*madd4<mode>): Ditto.
25670 (*nmadd3<mode>) Ditto.
25671 (*nmadd4<mode>_fastmath): Ditto.
25672 (*nmadd3<mode>_fastmath): Ditto.
25673 (*nmsub4<mode>): Ditto.
25674 (*nmsub3<mode>): Ditto.
25675 (*nmsub4<mode>_fastmath): Ditto.
25676 (*nmsub3<mode>_fastmath): Ditto.
25678 2015-06-18 Michael Matz <matz@suse.de>
25680 PR middle-end/66253
25681 * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
25682 grouped strided stores.
25683 (vectorizable_load): Don't use the DR from first_stmt in
25684 the non-SLP grouped strided case.
25686 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
25689 * function.c (assign_bounds): Add arguments assign_regs,
25690 assign_special, assign_bt.
25691 (assign_parms): For vararg functions handle bounds in BT
25692 and special slots after incoming vararg bounds.
25694 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
25696 PR middle-end/66568
25697 * cfgexpand.c (expand_return): Handle missing bounds.
25698 (expand_gimple_stmt_1): Likewise.
25699 * tree-chkp.c (chkp_expand_zero_bounds): New.
25700 * tree-chkp.h (chkp_expand_zero_bounds): New.
25702 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
25704 PR middle-end/66567
25705 * ipa-chkp.c (chkp_maybe_create_clone): Require
25706 functions to be instrumentable.
25707 * tree-chkp.c (chkp_replace_function_pointer): Use
25708 chkp_instrumentable_p instead of attribute check.
25710 2015-06-18 Richard Biener <rguenther@suse.de>
25712 PR tree-optimization/66510
25713 * tree-vect-stmts.c (vectorizable_load): Properly compute the
25714 number of vector loads for SLP permuted loads.
25715 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
25716 check the stride for loop vectorization.
25717 (vect_enhance_data_refs_alignment): Deal with SLP adjusted
25718 vectorization factor.
25719 (vect_analyze_group_access): If the group size is not a power
25720 of two require a epilogue loop.
25721 * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
25722 compute and optimizing and alias test pruning after final
25723 vectorization factor computation.
25724 * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
25726 (vect_transform_slp_perm_load): Properly compute the original
25727 number of vector load stmts.
25729 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
25731 * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
25732 "unlikely character , in @var" warning.
25734 2015-06-17 Uros Bizjak <ubizjak@gmail.com>
25736 * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
25737 (ix86_function_arg_advance): Ditto.
25738 (ix86_pass_by_reference): Ditto. Rewrite MS_ABI part.
25740 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
25742 * function.h (struct rtl_data): Remove struct and accessor macros.
25743 * emit-rtl.h (struct rtl_data): Relocate to here.
25744 * Makefile.in (GTFILES): Add emit-rtl.h.
25745 * df-core.c: Include emit-rtl.h.
25746 * genattrtab.c: Likewise.
25747 * genconditions.c: Likewise.
25748 * genpreds.c: Likewise.
25749 * genrecog.c: Likewise.
25750 * regcprop.c: Likewise.
25751 * resource.c: Likewise.
25752 * sched-rgn.c: Likewise.
25753 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
25754 * config/i386/winnt.c: Likewise.
25756 2015-06-17 Jakub Jelinek <jakub@redhat.com>
25758 PR middle-end/66429
25759 * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
25760 instead of DECL_STRUCT_FUNCTION (child_fn). Or in has_simduid_loops
25761 and has_force_vectorize_loops flags from cfun into
25763 (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
25764 if simduid is non-NULL.
25765 * tree-pass.h (make_pass_simduid_cleanup): New prototype.
25766 * passes.def (pass_simduid_cleanup): Add new pass after loop
25768 * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
25769 indirection from htab argument's type.
25770 (shrink_simd_arrays): New function.
25771 (vectorize_loops): Use it. Adjust adjust_simduid_builtins caller.
25772 Don't call adjust_simduid_builtins if there are no loops.
25773 (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
25774 (pass_simduid_cleanup::execute): New method.
25775 (make_pass_simduid_cleanup): New function.
25777 2017-06-17 Andrew MacLeod <amacleod@redhat.com>
25779 * tree-core.h (tree_target_option): Make opts field a pointer to a
25780 cl_target_option instead of an instance of the struct.
25781 * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
25783 * tree.c (make_node_stat ): Allocate a cl_target_option struct for
25784 TARGET_OPTION_NODE.
25785 (copy_node_stat): Allocate and copy struct cl_target_option.
25787 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
25789 * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
25790 Remove conditional exposure of prototypes.
25791 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
25792 * tree.c (anon_aggrname_format, anon_aggrname_p): New. Replace macro
25793 definitions in tree.h with functions.
25794 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
25796 * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
25798 2015-06-17 Segher Boessenkool <segher@kernel.crashing.org>
25800 * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
25801 (*cmp<mode>_signed): ... this.
25802 (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
25803 (*cmp<mode>_unsigned): ... this. Remove %b.
25805 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
25807 * coretypes.h: Include input.h and as-a.h.
25808 * rtl.h: Include input.h and as-a.h for generator files.
25809 * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
25810 * vec.c: Don't include diagnostic-core.h.
25811 * alias.c: Do not include input.h, line-map.h or is-a.h.
25812 * asan.c: Likewise.
25813 * attribs.c: Likewise.
25814 * auto-inc-dec.c: Likewise.
25815 * auto-profile.c: Likewise.
25816 * bb-reorder.c: Likewise.
25817 * bt-load.c: Likewise.
25818 * builtins.c: Likewise.
25819 * caller-save.c: Likewise.
25820 * calls.c: Likewise.
25821 * ccmp.c: Likewise.
25823 * cfganal.c: Likewise.
25824 * cfgbuild.c: Likewise.
25825 * cfgcleanup.c: Likewise.
25826 * cfgexpand.c: Likewise.
25827 * cfghooks.c: Likewise.
25828 * cfgloop.c: Likewise.
25829 * cfgloop.h: Likewise.
25830 * cfgloopanal.c: Likewise.
25831 * cfgloopmanip.c: Likewise.
25832 * cfgrtl.c: Likewise.
25833 * cgraph.c: Likewise.
25834 * cgraphbuild.c: Likewise.
25835 * cgraphclones.c: Likewise.
25836 * cgraphunit.c: Likewise.
25837 * cilk-common.c: Likewise.
25838 * combine-stack-adj.c: Likewise.
25839 * combine.c: Likewise.
25840 * compare-elim.c: Likewise.
25841 * convert.c: Likewise.
25842 * coverage.c: Likewise.
25843 * cppbuiltin.c: Likewise.
25844 * cprop.c: Likewise.
25846 * cselib.c: Likewise.
25847 * data-streamer-in.c: Likewise.
25848 * data-streamer-out.c: Likewise.
25849 * data-streamer.c: Likewise.
25850 * dbxout.c: Likewise.
25853 * debug.c: Likewise.
25854 * df-core.c: Likewise.
25855 * df-problems.c: Likewise.
25856 * df-scan.c: Likewise.
25859 * diagnostic-core.h: Likewise.
25860 * diagnostic.c: Likewise.
25861 * dojump.c: Likewise.
25862 * dominance.c: Likewise.
25863 * domwalk.c: Likewise.
25864 * double-int.c: Likewise.
25866 * dumpfile.c: Likewise.
25867 * dumpfile.h: Likewise.
25868 * dwarf2asm.c: Likewise.
25869 * dwarf2cfi.c: Likewise.
25870 * dwarf2out.c: Likewise.
25871 * emit-rtl.c: Likewise.
25872 * et-forest.c: Likewise.
25873 * except.c: Likewise.
25874 * explow.c: Likewise.
25875 * expmed.c: Likewise.
25876 * expr.c: Likewise.
25877 * final.c: Likewise.
25878 * fixed-value.c: Likewise.
25879 * fold-const.c: Likewise.
25880 * function.c: Likewise.
25881 * fwprop.c: Likewise.
25882 * gcc-plugin.h: Likewise.
25883 * gcse.c: Likewise.
25884 * generic-match-head.c: Likewise.
25885 * ggc-page.c: Likewise.
25886 * gimple-builder.c: Likewise.
25887 * gimple-expr.c: Likewise.
25888 * gimple-fold.c: Likewise.
25889 * gimple-iterator.c: Likewise.
25890 * gimple-low.c: Likewise.
25891 * gimple-match-head.c: Likewise.
25892 * gimple-pretty-print.c: Likewise.
25893 * gimple-ssa-isolate-paths.c: Likewise.
25894 * gimple-ssa-strength-reduction.c: Likewise.
25895 * gimple-streamer-in.c: Likewise.
25896 * gimple-streamer-out.c: Likewise.
25897 * gimple-streamer.h: Likewise.
25898 * gimple-walk.c: Likewise.
25899 * gimple.c: Likewise.
25900 * gimplify-me.c: Likewise.
25901 * gimplify.c: Likewise.
25902 * godump.c: Likewise.
25903 * graph.c: Likewise.
25904 * graphite-blocking.c: Likewise.
25905 * graphite-dependences.c: Likewise.
25906 * graphite-interchange.c: Likewise.
25907 * graphite-isl-ast-to-gimple.c: Likewise.
25908 * graphite-optimize-isl.c: Likewise.
25909 * graphite-poly.c: Likewise.
25910 * graphite-scop-detection.c: Likewise.
25911 * graphite-sese-to-poly.c: Likewise.
25912 * graphite.c: Likewise.
25913 * haifa-sched.c: Likewise.
25914 * hw-doloop.c: Likewise.
25915 * ifcvt.c: Likewise.
25916 * init-regs.c: Likewise.
25917 * input.c: Likewise.
25918 * internal-fn.c: Likewise.
25919 * ipa-chkp.c: Likewise.
25920 * ipa-comdats.c: Likewise.
25921 * ipa-cp.c: Likewise.
25922 * ipa-devirt.c: Likewise.
25923 * ipa-icf-gimple.c: Likewise.
25924 * ipa-icf.c: Likewise.
25925 * ipa-inline-analysis.c: Likewise.
25926 * ipa-inline-transform.c: Likewise.
25927 * ipa-inline.c: Likewise.
25928 * ipa-polymorphic-call.c: Likewise.
25929 * ipa-profile.c: Likewise.
25930 * ipa-prop.c: Likewise.
25931 * ipa-pure-const.c: Likewise.
25932 * ipa-ref.c: Likewise.
25933 * ipa-reference.c: Likewise.
25934 * ipa-split.c: Likewise.
25935 * ipa-utils.c: Likewise.
25936 * ipa-visibility.c: Likewise.
25938 * ira-build.c: Likewise.
25939 * ira-color.c: Likewise.
25940 * ira-conflicts.c: Likewise.
25941 * ira-costs.c: Likewise.
25942 * ira-emit.c: Likewise.
25943 * ira-lives.c: Likewise.
25945 * jump.c: Likewise.
25946 * langhooks.c: Likewise.
25948 * loop-doloop.c: Likewise.
25949 * loop-init.c: Likewise.
25950 * loop-invariant.c: Likewise.
25951 * loop-iv.c: Likewise.
25952 * loop-unroll.c: Likewise.
25953 * lower-subreg.c: Likewise.
25954 * lra-assigns.c: Likewise.
25955 * lra-coalesce.c: Likewise.
25956 * lra-constraints.c: Likewise.
25957 * lra-eliminations.c: Likewise.
25958 * lra-lives.c: Likewise.
25959 * lra-remat.c: Likewise.
25960 * lra-spills.c: Likewise.
25962 * lto-cgraph.c: Likewise.
25963 * lto-compress.c: Likewise.
25964 * lto-opts.c: Likewise.
25965 * lto-section-in.c: Likewise.
25966 * lto-section-out.c: Likewise.
25967 * lto-streamer-in.c: Likewise.
25968 * lto-streamer-out.c: Likewise.
25969 * lto-streamer.c: Likewise.
25971 * mode-switching.c: Likewise.
25972 * modulo-sched.c: Likewise.
25973 * omega.c: Likewise.
25974 * omp-low.c: Likewise.
25975 * optabs.c: Likewise.
25976 * opts-global.c: Likewise.
25977 * opts.h: Likewise.
25978 * passes.c: Likewise.
25979 * plugin.c: Likewise.
25980 * postreload-gcse.c: Likewise.
25981 * postreload.c: Likewise.
25982 * predict.c: Likewise.
25983 * pretty-print.h: Likewise.
25984 * print-rtl.c: Likewise.
25985 * print-tree.c: Likewise.
25986 * profile.c: Likewise.
25987 * real.c: Likewise.
25988 * realmpfr.c: Likewise.
25989 * recog.c: Likewise.
25991 * reg-stack.c: Likewise.
25992 * regcprop.c: Likewise.
25993 * reginfo.c: Likewise.
25994 * regrename.c: Likewise.
25995 * regstat.c: Likewise.
25996 * reload.c: Likewise.
25997 * reload1.c: Likewise.
25998 * reorg.c: Likewise.
25999 * resource.c: Likewise.
26000 * rtl-chkp.c: Likewise.
26001 * rtl-error.c: Likewise.
26002 * rtlanal.c: Likewise.
26003 * rtlhooks.c: Likewise.
26004 * sanopt.c: Likewise.
26005 * sched-deps.c: Likewise.
26006 * sched-ebb.c: Likewise.
26007 * sched-rgn.c: Likewise.
26008 * sched-vis.c: Likewise.
26009 * sdbout.c: Likewise.
26010 * sel-sched-dump.c: Likewise.
26011 * sel-sched-ir.c: Likewise.
26012 * sel-sched.c: Likewise.
26013 * sese.c: Likewise.
26014 * shrink-wrap.c: Likewise.
26015 * simplify-rtx.c: Likewise.
26016 * stack-ptr-mod.c: Likewise.
26017 * statistics.c: Likewise.
26018 * stmt.c: Likewise.
26019 * stor-layout.c: Likewise.
26020 * store-motion.c: Likewise.
26021 * streamer-hooks.c: Likewise.
26022 * stringpool.c: Likewise.
26023 * symtab.c: Likewise.
26024 * target-globals.c: Likewise.
26025 * targhooks.c: Likewise.
26026 * toplev.c: Likewise.
26027 * tracer.c: Likewise.
26028 * trans-mem.c: Likewise.
26029 * tree-affine.c: Likewise.
26030 * tree-browser.c: Likewise.
26031 * tree-call-cdce.c: Likewise.
26032 * tree-cfg.c: Likewise.
26033 * tree-cfgcleanup.c: Likewise.
26034 * tree-chkp-opt.c: Likewise.
26035 * tree-chkp.c: Likewise.
26036 * tree-chrec.c: Likewise.
26037 * tree-complex.c: Likewise.
26038 * tree-data-ref.c: Likewise.
26039 * tree-dfa.c: Likewise.
26040 * tree-diagnostic.c: Likewise.
26041 * tree-dump.c: Likewise.
26042 * tree-eh.c: Likewise.
26043 * tree-emutls.c: Likewise.
26044 * tree-if-conv.c: Likewise.
26045 * tree-inline.c: Likewise.
26046 * tree-into-ssa.c: Likewise.
26047 * tree-iterator.c: Likewise.
26048 * tree-loop-distribution.c: Likewise.
26049 * tree-nested.c: Likewise.
26050 * tree-nrv.c: Likewise.
26051 * tree-object-size.c: Likewise.
26052 * tree-outof-ssa.c: Likewise.
26053 * tree-parloops.c: Likewise.
26054 * tree-phinodes.c: Likewise.
26055 * tree-predcom.c: Likewise.
26056 * tree-pretty-print.c: Likewise.
26057 * tree-profile.c: Likewise.
26058 * tree-scalar-evolution.c: Likewise.
26059 * tree-sra.c: Likewise.
26060 * tree-ssa-address.c: Likewise.
26061 * tree-ssa-alias.c: Likewise.
26062 * tree-ssa-ccp.c: Likewise.
26063 * tree-ssa-coalesce.c: Likewise.
26064 * tree-ssa-copy.c: Likewise.
26065 * tree-ssa-copyrename.c: Likewise.
26066 * tree-ssa-dce.c: Likewise.
26067 * tree-ssa-dom.c: Likewise.
26068 * tree-ssa-dse.c: Likewise.
26069 * tree-ssa-forwprop.c: Likewise.
26070 * tree-ssa-ifcombine.c: Likewise.
26071 * tree-ssa-live.c: Likewise.
26072 * tree-ssa-loop-ch.c: Likewise.
26073 * tree-ssa-loop-im.c: Likewise.
26074 * tree-ssa-loop-ivcanon.c: Likewise.
26075 * tree-ssa-loop-ivopts.c: Likewise.
26076 * tree-ssa-loop-manip.c: Likewise.
26077 * tree-ssa-loop-niter.c: Likewise.
26078 * tree-ssa-loop-prefetch.c: Likewise.
26079 * tree-ssa-loop-unswitch.c: Likewise.
26080 * tree-ssa-loop.c: Likewise.
26081 * tree-ssa-math-opts.c: Likewise.
26082 * tree-ssa-operands.c: Likewise.
26083 * tree-ssa-phiopt.c: Likewise.
26084 * tree-ssa-phiprop.c: Likewise.
26085 * tree-ssa-pre.c: Likewise.
26086 * tree-ssa-propagate.c: Likewise.
26087 * tree-ssa-reassoc.c: Likewise.
26088 * tree-ssa-sccvn.c: Likewise.
26089 * tree-ssa-scopedtables.c: Likewise.
26090 * tree-ssa-sink.c: Likewise.
26091 * tree-ssa-strlen.c: Likewise.
26092 * tree-ssa-structalias.c: Likewise.
26093 * tree-ssa-tail-merge.c: Likewise.
26094 * tree-ssa-ter.c: Likewise.
26095 * tree-ssa-threadedge.c: Likewise.
26096 * tree-ssa-threadupdate.c: Likewise.
26097 * tree-ssa-uncprop.c: Likewise.
26098 * tree-ssa-uninit.c: Likewise.
26099 * tree-ssa.c: Likewise.
26100 * tree-ssanames.c: Likewise.
26101 * tree-stdarg.c: Likewise.
26102 * tree-streamer-in.c: Likewise.
26103 * tree-streamer-out.c: Likewise.
26104 * tree-streamer.c: Likewise.
26105 * tree-switch-conversion.c: Likewise.
26106 * tree-tailcall.c: Likewise.
26107 * tree-vect-data-refs.c: Likewise.
26108 * tree-vect-generic.c: Likewise.
26109 * tree-vect-loop-manip.c: Likewise.
26110 * tree-vect-loop.c: Likewise.
26111 * tree-vect-patterns.c: Likewise.
26112 * tree-vect-slp.c: Likewise.
26113 * tree-vect-stmts.c: Likewise.
26114 * tree-vectorizer.c: Likewise.
26115 * tree-vrp.c: Likewise.
26116 * tree.c: Likewise.
26117 * tsan.c: Likewise.
26118 * ubsan.c: Likewise.
26119 * valtrack.c: Likewise.
26120 * value-prof.c: Likewise.
26121 * var-tracking.c: Likewise.
26122 * varasm.c: Likewise.
26123 * varpool.c: Likewise.
26124 * vmsdbgout.c: Likewise.
26125 * vtable-verify.c: Likewise.
26127 * wide-int.cc: Likewise.
26128 * xcoffout.c: Likewise.
26129 * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
26130 * common/common-targhooks.c: Likewise.
26131 * config/aarch64/aarch64-builtins.c: Likewise.
26132 * config/aarch64/aarch64.c: Likewise.
26133 * config/alpha/alpha.c: Likewise.
26134 * config/arc/arc.c: Likewise.
26135 * config/arm/aarch-common.c: Likewise.
26136 * config/arm/arm-builtins.c: Likewise.
26137 * config/arm/arm-c.c: Likewise.
26138 * config/arm/arm.c: Likewise.
26139 * config/avr/avr-c.c: Likewise.
26140 * config/avr/avr-log.c: Likewise.
26141 * config/avr/avr.c: Likewise.
26142 * config/bfin/bfin.c: Likewise.
26143 * config/c6x/c6x.c: Likewise.
26144 * config/cr16/cr16.c: Likewise.
26145 * config/cris/cris.c: Likewise.
26146 * config/darwin-c.c: Likewise.
26147 * config/darwin.c: Likewise.
26148 * config/default-c.c: Likewise.
26149 * config/epiphany/epiphany.c: Likewise.
26150 * config/epiphany/mode-switch-use.c: Likewise.
26151 * config/epiphany/resolve-sw-modes.c: Likewise.
26152 * config/fr30/fr30.c: Likewise.
26153 * config/frv/frv.c: Likewise.
26154 * config/ft32/ft32.c: Likewise.
26155 * config/glibc-c.c: Likewise.
26156 * config/h8300/h8300.c: Likewise.
26157 * config/i386/i386-c.c: Likewise.
26158 * config/i386/i386.c: Likewise.
26159 * config/i386/msformat-c.c: Likewise.
26160 * config/i386/winnt-cxx.c: Likewise.
26161 * config/i386/winnt-stubs.c: Likewise.
26162 * config/i386/winnt.c: Likewise.
26163 * config/ia64/ia64-c.c: Likewise.
26164 * config/ia64/ia64.c: Likewise.
26165 * config/iq2000/iq2000.c: Likewise.
26166 * config/lm32/lm32.c: Likewise.
26167 * config/m32c/m32c-pragma.c: Likewise.
26168 * config/m32c/m32c.c: Likewise.
26169 * config/m32r/m32r.c: Likewise.
26170 * config/m68k/m68k.c: Likewise.
26171 * config/mcore/mcore.c: Likewise.
26172 * config/mep/mep-pragma.c: Likewise.
26173 * config/mep/mep.c: Likewise.
26174 * config/microblaze/microblaze-c.c: Likewise.
26175 * config/microblaze/microblaze.c: Likewise.
26176 * config/mips/mips.c: Likewise.
26177 * config/mmix/mmix.c: Likewise.
26178 * config/mn10300/mn10300.c: Likewise.
26179 * config/moxie/moxie.c: Likewise.
26180 * config/msp430/msp430-c.c: Likewise.
26181 * config/msp430/msp430.c: Likewise.
26182 * config/nds32/nds32-cost.c: Likewise.
26183 * config/nds32/nds32-fp-as-gp.c: Likewise.
26184 * config/nds32/nds32-intrinsic.c: Likewise.
26185 * config/nds32/nds32-isr.c: Likewise.
26186 * config/nds32/nds32-md-auxiliary.c: Likewise.
26187 * config/nds32/nds32-memory-manipulation.c: Likewise.
26188 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
26189 * config/nds32/nds32-predicates.c: Likewise.
26190 * config/nds32/nds32.c: Likewise.
26191 * config/nios2/nios2.c: Likewise.
26192 * config/nvptx/nvptx.c: Likewise.
26193 * config/pa/pa.c: Likewise.
26194 * config/pdp11/pdp11.c: Likewise.
26195 * config/rl78/rl78-c.c: Likewise.
26196 * config/rl78/rl78.c: Likewise.
26197 * config/rs6000/rs6000-c.c: Likewise.
26198 * config/rs6000/rs6000.c: Likewise.
26199 * config/rx/rx.c: Likewise.
26200 * config/s390/s390-c.c: Likewise.
26201 * config/s390/s390.c: Likewise.
26202 * config/sh/sh-c.c: Likewise.
26203 * config/sh/sh-mem.cc: Likewise.
26204 * config/sh/sh.c: Likewise.
26205 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
26206 * config/sh/sh_treg_combine.cc: Likewise.
26207 * config/sol2-c.c: Likewise.
26208 * config/sol2-cxx.c: Likewise.
26209 * config/sol2-stubs.c: Likewise.
26210 * config/sol2.c: Likewise.
26211 * config/sparc/sparc-c.c: Likewise.
26212 * config/sparc/sparc.c: Likewise.
26213 * config/spu/spu-c.c: Likewise.
26214 * config/spu/spu.c: Likewise.
26215 * config/stormy16/stormy16.c: Likewise.
26216 * config/tilegx/mul-tables.c: Likewise.
26217 * config/tilegx/tilegx-c.c: Likewise.
26218 * config/tilegx/tilegx.c: Likewise.
26219 * config/tilepro/mul-tables.c: Likewise.
26220 * config/tilepro/tilepro-c.c: Likewise.
26221 * config/tilepro/tilepro.c: Likewise.
26222 * config/v850/v850-c.c: Likewise.
26223 * config/v850/v850.c: Likewise.
26224 * config/vax/vax.c: Likewise.
26225 * config/visium/visium.c: Likewise.
26226 * config/vms/vms-c.c: Likewise.
26227 * config/vms/vms.c: Likewise.
26228 * config/vxworks.c: Likewise.
26229 * config/winnt-c.c: Likewise.
26230 * config/xtensa/xtensa.c: Likewise.
26232 2015-06-17 Robert Suchanek <robert.suchanek@imgtec.com>
26234 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
26236 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
26238 2015-06-17 Richard Biener <rguenther@suse.de>
26240 PR tree-optimization/66251
26241 * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
26242 stmts for SLP strided stores.
26245 2015-05-22 Richard Biener <rguenther@suse.de>
26247 PR tree-optimization/66251
26248 * tree-vect-stmts.c (vectorizable_conversion): Properly
26249 set STMT_VINFO_VEC_STMT even for the SLP case.
26251 2015-05-26 Michael Matz <matz@suse.de>
26253 PR middle-end/66251
26254 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
26255 STMT_VINFO_VEC_STMT, also with SLP.
26257 2015-06-16 Uros Bizjak <ubizjak@gmail.com>
26260 * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
26261 (*avx_addsubv4df3_1s): Ditto.
26262 (*sse3_addsubv2df3_1): Ditto.
26263 (*sse3_addsubv2df3_1s): Ditto.
26264 (*avx_addsubv8sf3_1): Ditto.
26265 (*avx_addsubv8sf3_1s): Ditto.
26266 (*sse3_addsubv4sf3_1): Ditto.
26267 (*sse3_addsubv4sf3_1s): Ditto.
26269 2015-06-16 Steve Ellcey <sellcey@imgtec.com>
26271 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
26272 (SYSROOT_SUFFIX_SPEC): Update.
26273 (SYSROOT_HEADERS_SUFFIX_SPEC): New.
26274 (STARTFILE_PREFIX_SPEC): Update.
26275 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
26276 (MULTILIB_REQUIRED): New.
26277 (MULTILIB_OSDIRNAMES): New.
26278 * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
26279 (MULTILIB_REQUIRED): New.
26280 (MULTILIB_OSDIRNAMES): New.
26282 2015-06-16 Matthew Wahab <matthew.wahab@arm.com>
26284 * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
26285 * config/aarch64/aarch64-options-extensions.def: Update "fP",
26286 "simd" and "crypto". Add "lse", "pan", "lor" and "rdma".
26287 * config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
26288 (AARCH64_FL_PAN): New.
26289 (AARCH64_FL_LOR): New.
26290 (AARCH64_FL_RDMA): New.
26291 (AARCH64_FL_FOR_ARCH8_1): New.
26292 * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
26293 -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
26295 2015-06-16 Martin Liska <mliska@suse.cz>
26297 * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
26298 * hash-table.c (void dump_hash_table_loc_statistics): Add missing
26301 2015-06-16 Richard Biener <rguenther@suse.de>
26303 * tree-vect-stmts.c (vectorizable_store): Adjust.
26304 (vectorizable_load): Likewise.
26305 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
26307 (vect_create_data_ref_ptr): Likewise.
26308 (bump_vector_ptr): Adjust.
26310 2015-06-16 Richard Biener <rguenther@suse.de>
26312 * tree-vect-stmts.c (vectorizable_load): Properly start loads
26313 with the first element if this is grouped loads.
26315 2015-06-16 James Greenhalgh <james.greenhalgh@arm.com>
26317 * config/arm/arm-protos.h (struct tune_params): Rename
26318 log_op_non_sc to log_op_non_short_circuit, and rename enum
26319 values to expand SC to SHORT_CIRCUIT.
26320 * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
26321 to LOG_OP_NON_SHORT_CIRCUIT.
26322 (arm_fastmul_tune):Likewise
26323 (arm_strongarm_tune): Likewise.
26324 (arm_xscale_tune): Likewise.
26325 (arm_9e_tune): Likewise.
26326 (arm_marvell_pj4_tune): Likewise.
26327 (arm_v6t2_tune): Likewise.
26328 (arm_cortex_tune): Likewise.
26329 (arm_cortex_a8_tune): Likewise.
26330 (arm_cortex_a7_tune): Likewise.
26331 (arm_cortex_a15_tune): Likewise.
26332 (arm_cortex_a53_tune): Likewise.
26333 (arm_cortex_a57_tune): Likewise.
26334 (arm_xgene1_tune): Likewise.
26335 (arm_cortex_a5_tune): Likewise.
26336 (arm_cortex_a9_tune): Likewise.
26337 (arm_cortex_a12_tune): Likewise.
26338 (arm_v7m_tune): Likewise.
26339 (arm_cortex_m7_tune): Likewise.
26340 (arm_v6m_tune): Likewise.
26341 (arm_fa726te_tune): Likewise.
26343 2015-06-15 David Edelsohn <dje.gcc@gmail.com>
26345 * altivec.md: Delete UNSPEC_VMLADDUHM.
26346 (mulv4si3_p8): New pattern.
26347 (mulv4si3): Use it for POWER8.
26348 (mulv8hi3): Use vmladduhm with zero addend.
26349 (altivec_vmladduhm): Descriptive RTL.
26351 2015-06-15 Jim Wilson <jim.wilson@linaro.org>
26353 * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
26354 to use neon_move instead of mov_imm.
26355 (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
26356 (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
26358 * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
26359 aarch64_float_const_zero_rtx_p check before TFmode check.
26360 * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
26362 (movtf_aarch64): Separate ?rY alternative into two. Adjust assembly
26363 code and attributes to match. Change condition from register_operand
26364 to aarch64_reg_or_fp_zero for op1. Change type for ldp from
26365 neon_load1_2reg to load2. Change type for stp from neon_store1_2reg
26368 2015-06-15 Aldy Hernandez <aldyh@redhat.com>
26371 * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
26372 there is no parent.
26374 2015-06-14 Shiva Chen <shiva0217@gmail.com>
26376 * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
26377 HOST_WIDE_INT parameter.
26379 2015-06-14 Jan Hubicka <hubicka@ucw.cz>
26382 * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
26383 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
26385 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
26387 2015-06-14 Richard Sandiford <richard.sandiford@arm.com>
26389 * rtl.h (classify_insn): Declare.
26390 * emit-rtl.c (classify_insn): Move to...
26391 * rtl.c: ...here and add generator support.
26392 * gensupport.h (get_emit_function, needs_barrier_p): Declare.
26393 * gensupport.c (get_emit_function, needs_barrier_p): New functions.
26394 * genemit.c (gen_emit_seq): New function.
26395 (gen_expand, gen_split): Use it.
26397 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
26399 * tree.c (make_vector_stat): Fix comment to state that the
26400 function returns a VECTOR_CST.
26402 2015-06-13 Richard Sandiford <richard.sandiford@arm.com>
26404 * gensupport.h (add_implicit_parallel): Declare.
26405 * genrecog.c (add_implicit_parallel): Move to...
26406 * gensupport.c (add_implicit_parallel): ...here.
26407 (process_one_cond_exec): Use it.
26408 * genemit.c (gen_insn): Likewise.
26410 2015-06-13 Iain Sandoe <iain@codesourcery.com>
26413 * passes.c (rest_of_decl_compilation): Do not register globals for
26414 early debug if they are declared in built-ins.
26416 2015-06-12 Aldy Hernandez <aldyh@redhat.com>
26418 * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
26420 2015-06-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26422 * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
26424 (noce_try_cmove_arith): Likewise.
26425 (noce_get_alt_condition): Likewise.
26427 2015-06-12 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
26429 * common/config/i386/i386-common.c
26430 (OPTION_MASK_ISA_MWAITX_SET): New.
26431 (ix86_handle_option): Handle mwaitx.
26432 * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
26433 (x86_64-*-*): Likewise.
26434 * config/i386/mwaitxintrin.h: New header.
26435 * config/i386/cpuid.h (bit_MWAITX): Define.
26436 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
26438 * config/i386/i386.opt (mwaitx): New.
26439 * config/i386/i386-builtin-types.def
26440 (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
26441 * config/i386/i386-c.c: Define __MWAITX__ if needed.
26442 * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
26444 (ix86_option_override_internal): Handle new option.
26445 (processor_alias_table): Added PTA_MWAITX.
26446 (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
26447 (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
26448 (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
26449 IX86_BUILTIN_MONITORX built-ins.
26450 * config/i386/i386.h (TARGET_MWAITX): New.
26451 * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
26453 (mwaitx): New pattern.
26454 (monitorx_<mode>): New pattern.
26455 * config/i386/x86intrin.h: Include mwaitxintrin.h.
26456 * doc/extend.texi: Document monitorx and mwaitx builtins.
26457 * doc/invoke.texi: Document -mmwaitx option.
26459 2015-06-12 Uros Bizjak <ubizjak@gmail.com>
26461 * emit-rtl.c (need_atomic_barrier_p): Mask model with
26462 MEMMODEL_BASE_MASK. Remove MEMMODEL_SYNC_* cases.
26464 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
26466 * dbxout.c (xcoff_debug_hooks): Provide a function for
26467 register_main_translation_unit hook.
26469 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
26471 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
26472 variants cases from switch.
26473 (rs6000_post_atomic_barrier): Same.
26474 (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
26475 (rs6000_expand_atomic_exchange): Same.
26476 (rs6000_expand_atomic_op): Same.
26477 * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
26478 SYNC variants cases from switch.
26479 (atomic_load): Same.
26480 (atomic_store): Same.
26482 2015-06-11 John David Anglin <danglin@gcc.gnu.org>
26484 * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
26485 CONST_INT for goto.
26487 2015-06-11 Aldy Hernandez <aldyh@redhat.com>
26490 * dwarf2out.c (check_die): Check for common duplicate attributes.
26491 (add_location_or_const_value_attribute): Do not add duplicate
26493 (gen_formal_parameter_die): Do not add DW_AT_artificial the second
26495 (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
26496 (gen_type_die_with_usage): Call check_die.
26497 (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
26499 2015-06-11 Jason Merrill <jason@redhat.com>
26501 * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
26504 2015-06-11 Marek Polacek <polacek@redhat.com>
26506 * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
26508 2015-06-11 Eric Botcazou <ebotcazou@adacore.com>
26511 * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
26512 * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
26513 (*addx_extend_sp32): Fix pasto.
26514 (*subx_extend): Rename into...
26515 (*subx_extend_sp32): ...this.
26516 (*adddi3_extend_sp32): Add earlyclobber.
26517 (*subdi3_insn_sp32): Likewise.
26518 (*subdi3_extend_sp32): Likewise.
26519 (*and_not_di_sp32): Likewise.
26520 (*or_not_di_sp32): Likewise.
26521 (*xor_not_di_sp32): Likewise.
26522 (*negdi2_sp32): Likewise.
26523 (*one_cmpldi2_sp32): Likewise.
26525 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
26527 * debug.h (struct gcc_debug_hooks): Add a
26528 register_main_translation_unit hook.
26529 * debug.c (do_nothing_debug_hooks): Provide a function for this
26531 * dbxout.c (dbx_debug_hooks): Likewise.
26532 * sdbout.c (sdb_debug_hooks): Likewise.
26533 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
26534 * dwarf2out.c (main_translation_unit): New global variable.
26535 (dwarf2out_register_main_translation_unit): New function
26536 implementing the new hook.
26537 (dwarf2_debug_hooks): Assign
26538 dwarf2out_register_main_translation_unit to this new hook.
26539 (dwarf2out_init): Associate any main translation unit to
26542 2015-06-11 Marek Polacek <polacek@redhat.com>
26544 * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
26546 2015-06-11 Marek Polacek <polacek@redhat.com>
26548 * match.pd: Use single_use throughout.
26550 2015-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26552 * config/arm/arm.c (arm_option_params_internal): When optimising
26553 for speed set max_insns_skipped when arm_restrict_it.
26555 2015-06-11 Christian Bruel <christian.bruel@st.com>
26558 * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
26560 (arm_cpu_builtins): New function.
26561 (arm_pragma_target_parse): Call arm_cpu_builtins.
26562 * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
26563 (arm_register_target_pragmas): Likewise.
26564 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
26565 Call arm_register_target_pragmas.
26566 * config/arm/arm-c.c (arm_register_target_pragmas): New function.
26567 (arm_pragma_target_parse): Likewise.
26569 2015-06-10 Kaz Kojima <kkojima@gcc.gnu.org>
26571 * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
26572 of the second operand.
26574 2015-06-10 Uros Bizjak <ubizjak@gmail.com>
26577 * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
26578 to prepare mask operand for AVX512 modes.
26580 2015-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
26583 * doc/md.texi (Machine Constraints): Document that on the PowerPC
26584 if you use a constraint that targets a VSX register, you must use
26585 %x<n> in the template.
26587 2015-06-10 Max Filippov <jcmvbkbc@gmail.com>
26589 * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
26590 * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
26591 (define_insn "trap"): New definition.
26593 2015-06-10 Richard Biener <rguenther@suse.de>
26595 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
26597 (vect_supported_load_permutation_p): ... here. Handle
26598 supportable permutations in reductions.
26599 * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
26600 for vectorizing strided group loads.
26602 2015-06-10 Jakub Jelinek <jakub@redhat.com>
26605 * config/i386/i386.c (ix86_split_long_move): For collisions
26606 involving direct tls segment refs, move the UNSPEC_TP possibly
26607 wrapped in ZERO_EXTEND out of the address for lea, to each of
26610 2015-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26612 * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
26613 dmb sy. Adjust tabs.
26615 2015-06-10 Tom de Vries <tom@codesourcery.com>
26617 * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
26619 2015-06-10 Martin Liska <mliska@suse.cz>
26622 * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
26623 all enum values in mem_alloc_origin.
26624 * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
26626 * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
26627 * bitmap.c (bitmap_register): Likewise.
26628 (dump_bitmap_statistics): Likewise.
26629 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
26630 (ggc_record_overhead): Likewise.
26631 * hash-map.h: Likewise.
26632 * hash-set.h: Likewise.
26633 * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
26634 * hash-table.h: Likewise.
26635 * vec.c (vec_prefix::register_overhead): Likewise.
26636 (vec_prefix::release_overhead): Likewise.
26637 (dump_vec_loc_statistics): Likewise.
26639 2015-06-09 Christian Bruel <christian.bruel@st.com>
26642 * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
26643 * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
26644 (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
26645 * config/arm/arm.h (SWITCHABLE_TARGET): Define.
26646 * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
26647 (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
26648 (arm_valid_target_attribute_p): Likewise.
26649 (arm_set_current_function, arm_can_inline_p): Likewise.
26650 (arm_valid_target_attribute_rec): Likewise.
26651 (arm_previous_fndecl): New variable.
26652 (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
26653 (TARGET_CAN_INLINE_P): Define.
26654 (arm_asm_trampoline_template): Emit mode.
26655 (arm_file_start): Don't set unified syntax.
26656 (arm_declare_function_name): Set unified syntax and mode.
26657 (arm_option_override): Init target_option_default_node.
26658 and target_option_current_node.
26659 * config/arm/arm.md (*call_value_symbol): Set mode when possible.
26660 (*call_symbol): Likewise.
26661 * doc/extend.texi: Document ARM/Thumb target attribute.
26662 * doc/invoke.texi: Likewise.
26664 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
26667 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
26668 PR rtl-optimization/64164
26669 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
26670 * tree-ssa-copyrename.c: Removed.
26671 * opts.c (default_options_table): Drop -ftree-copyrename. Add
26672 -ftree-coalesce-vars.
26673 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
26674 * common.opt (ftree-copyrename): Ignore.
26675 (ftree-coalesce-inlined-vars): Likewise.
26676 * doc/invoke.texi: Remove the ignored options above.
26677 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
26678 * tree-ssa-coalesce.h: ... here.
26679 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
26680 headers required by it.
26681 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
26682 across variables when flag_tree_coalesce_vars. Check register
26683 use and promoted modes to allow coalescing. Moved to
26684 tree-ssa-coalesce.c.
26685 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
26686 with its member functions to tree-ssa-coalesce.c.
26687 (var_map_base_init): Likewise. Renamed to
26688 compute_samebase_partition_bases.
26689 (partition_view_normal): Drop want_bases parameter.
26690 (partition_view_bitmap): Likewise.
26691 * tree-ssa-live.h: Adjust declarations.
26692 * tree-ssa-coalesce.c: Include explow.h.
26693 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
26694 default defs at the entry point.
26695 (dump_part_var_map): New.
26696 (compute_optimized_partition_bases): New, called by...
26697 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
26698 of compute_samebase_partition_bases. Adjust.
26699 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
26700 * cfgexpand.c (leader_merge): New.
26701 (get_rtl_for_parm_ssa_default_def): New.
26702 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
26703 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
26704 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
26705 redundant MEM attr setting.
26706 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
26708 (expand_one_stack_var): ... this. New wrapper to check and
26709 skip already expanded SSA partitions.
26710 (record_alignment_for_reg_var): New, factored out of...
26711 (expand_one_var): ... this.
26712 (expand_one_ssa_partition): New.
26713 (adjust_one_expanded_partition_var): New.
26714 (expand_one_register_var): Check and skip already expanded SSA
26716 (expand_used_vars): Don't create DECLs for anonymous SSA
26717 names. Expand all SSA partitions, then adjust all SSA names.
26718 (pass::execute): Replace the loops that set
26719 SA.partition_to_pseudo from partition leaders and cleared
26720 DECL_RTL for multi-location variables, and that which used to
26721 rename vars and set attrs, with one that clears DECL_RTL and
26722 checks that PARMs and RESULTs default_defs match DECL_RTL.
26723 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
26724 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
26725 * explow.c (promote_ssa_mode): New.
26726 * explow.h (promote_ssa_mode): Declare.
26727 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
26728 * function.c: Include cfgexpand.h.
26729 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
26730 (use_register_for_parm_decl): Wrapper for the above to
26731 special-case the result_ptr.
26732 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
26733 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
26734 multiple locations.
26735 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
26736 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
26737 (assign_parm_setup_block): Prefer SSA-assigned location.
26738 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
26739 if stack_parm is NULL.
26740 (assign_parm_setup_stack): Prefer SSA-assigned location.
26741 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
26742 rtl before testing for pointer bounds. Special-case result_ptr.
26743 (expand_function_start): Maybe reset DECL_RTL of result.
26744 Prefer SSA-assigned location for result and static chain.
26745 Factor out DECL_RESULT and SET_DECL_RTL.
26746 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
26747 anonymous SSA names. Use promote_ssa_mode.
26748 (get_temp_reg): Likewise.
26749 (remove_ssa_form): Adjust.
26750 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
26751 and get its reg_usage for reg invalidation.
26752 (compute_bb_dataflow): Pass it insn.
26753 (emit_notes_in_bb): Likewise.
26754 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
26755 fail assert on conversion between unsigned types.
26757 2015-06-09 Tom de Vries <tom@codesourcery.com>
26759 PR tree-optimization/65460
26760 * omp-low.c (expand_omp_target): Set parallelized_function on
26761 cgraph_node for child_fn.
26763 2015-06-09 Tom de Vries <tom@codesourcery.com>
26765 * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
26766 parallelized_function before add_new_function.
26768 2015-06-09 Andrew MacLeod <amacleod@redhat.com>
26770 * gcc-plugin.h: Move decls to plugin.h and include it.
26771 * plugin.h: Relocate decls from gcc-plugin.h
26772 * ggc-page.c: Include required header files.
26773 * passes.c: Likewise.
26774 * cgraphunit.c: Likewise.
26776 2015-06-09 Tom de Vries <tom@codesourcery.com>
26778 * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
26780 2015-06-09 Jason Merrill <jason@redhat.com>
26783 * toplev.c (check_global_declaration): Don't warn about a clone.
26785 2015-06-09 Marek Polacek <polacek@redhat.com>
26787 PR tree-optimization/66299
26788 * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
26789 ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
26792 2015-06-09 Richard Biener <rguenther@suse.de>
26794 * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
26795 (vect_analyze_slp_instance): Instead do not falsely drop
26798 2015-06-09 Richard Biener <rguenther@suse.de>
26800 PR middle-end/66423
26801 * match.pd: Handle A % (unsigned)(1 << B).
26803 2015-06-09 Aldy Hernandez <aldyh@redhat.com>
26805 * varasm.c (output_object_block_htab): Remove.
26806 (output_object_block_compare): New.
26807 (output_object_blocks): Sort named object_blocks before outputting
26810 2015-06-09 Richard Biener <rguenther@suse.de>
26812 PR tree-optimization/66419
26813 * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
26814 consider GROUP_GAP when detecting a perfect subchain.
26816 2015-06-09 Nick Clifton <nickc@redhat.com>
26818 * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
26819 place read only data in the .frodata section.
26821 2015-06-09 Shiva Chen <shiva0217@gmail.com>
26823 * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
26824 (atomic_store<mode>): Likewise.
26826 2015-06-09 Richard Biener <rguenther@suse.de>
26828 * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
26830 2015-06-09 Richard Biener <rguenther@suse.de>
26832 PR middle-end/66413
26833 * tree-inline.c (insert_init_debug_bind): Unshare value.
26835 2015-06-09 Richard Biener <rguenther@suse.de>
26837 PR tree-optimization/66396
26838 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
26839 Rename virtual operands.
26841 2015-06-09 Tom de Vries <tom@codesourcery.com>
26843 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
26844 always return false.
26846 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
26848 PR rtl-optimization/64164
26849 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
26850 * tree-ssa-copyrename.c: Removed.
26851 * opts.c (default_options_table): Drop -ftree-copyrename. Add
26852 -ftree-coalesce-vars.
26853 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
26854 * common.opt (ftree-copyrename): Ignore.
26855 (ftree-coalesce-inlined-vars): Likewise.
26856 * doc/invoke.texi: Remove the ignored options above.
26857 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
26858 * tree-ssa-coalesce.h: ... here.
26859 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
26860 headers required by it.
26861 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
26862 across variables when flag_tree_coalesce_vars. Check register
26863 use and promoted modes to allow coalescing. Moved to
26864 tree-ssa-coalesce.c.
26865 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
26866 with its member functions to tree-ssa-coalesce.c.
26867 (var_map_base_init): Likewise. Renamed to
26868 compute_samebase_partition_bases.
26869 (partition_view_normal): Drop want_bases parameter.
26870 (partition_view_bitmap): Likewise.
26871 * tree-ssa-live.h: Adjust declarations.
26872 * tree-ssa-coalesce.c: Include explow.h.
26873 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
26874 default defs at the entry point.
26875 (dump_part_var_map): New.
26876 (compute_optimized_partition_bases): New, called by...
26877 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
26878 of compute_samebase_partition_bases. Adjust.
26879 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
26880 * cfgexpand.c (leader_merge): New.
26881 (get_rtl_for_parm_ssa_default_def): New.
26882 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
26883 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
26884 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
26885 redundant MEM attr setting.
26886 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
26888 (expand_one_stack_var): ... this. New wrapper to check and
26889 skip already expanded SSA partitions.
26890 (record_alignment_for_reg_var): New, factored out of...
26891 (expand_one_var): ... this.
26892 (expand_one_ssa_partition): New.
26893 (adjust_one_expanded_partition_var): New.
26894 (expand_one_register_var): Check and skip already expanded SSA
26896 (expand_used_vars): Don't create DECLs for anonymous SSA
26897 names. Expand all SSA partitions, then adjust all SSA names.
26898 (pass::execute): Replace the loops that set
26899 SA.partition_to_pseudo from partition leaders and cleared
26900 DECL_RTL for multi-location variables, and that which used to
26901 rename vars and set attrs, with one that clears DECL_RTL and
26902 checks that PARMs and RESULTs default_defs match DECL_RTL.
26903 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
26904 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
26905 * explow.c (promote_ssa_mode): New.
26906 * explow.h (promote_ssa_mode): Declare.
26907 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
26908 * function.c: Include cfgexpand.h.
26909 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
26910 (use_register_for_parm_decl): Wrapper for the above to
26911 special-case the result_ptr.
26912 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
26913 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
26914 multiple locations.
26915 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
26916 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
26917 (assign_parm_setup_block): Prefer SSA-assigned location.
26918 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
26919 if stack_parm is NULL.
26920 (assign_parm_setup_stack): Prefer SSA-assigned location.
26921 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
26922 rtl before testing for pointer bounds. Special-case result_ptr.
26923 (expand_function_start): Maybe reset DECL_RTL of result.
26924 Prefer SSA-assigned location for result and static chain.
26925 Factor out DECL_RESULT and SET_DECL_RTL.
26926 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
26927 anonymous SSA names. Use promote_ssa_mode.
26928 (get_temp_reg): Likewise.
26929 (remove_ssa_form): Adjust.
26930 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
26931 and get its reg_usage for reg invalidation.
26932 (compute_bb_dataflow): Pass it insn.
26933 (emit_notes_in_bb): Likewise.
26934 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
26935 fail assert on conversion between unsigned types.
26937 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
26940 * tree-inline.c (reset_debug_binding): New.
26941 (reset_debug_bindings): Likewise.
26942 (expand_call_inline): Call it.
26944 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
26946 * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
26949 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
26951 * lto-streamer-out.c (lto_output_location): Stream
26952 reserved locations correctly.
26953 * lto-streamer-in.c (lto_output_location): Likewise.
26955 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
26957 * coretypes.h: Include hash-table.h and hash-set.h for host files.
26958 * ggc.h: Don't include statistics.h>
26959 * hash-map.h: Remove all includes.
26960 * hash-set.h: Likewise.
26961 * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
26962 the include list. Remove <new>.
26963 * inchash.h: Remove all includes.
26964 * mem-stats.h: Likewise.
26965 * vec.h: No special processing for generators or ggc.
26966 * alias.c : Adjust include files.
26967 * alloc-pool.c : Likewise.
26968 * alloc-pool.h : Likewise.
26969 * asan.c : Likewise.
26970 * attribs.c : Likewise.
26971 * auto-inc-dec.c : Likewise.
26972 * auto-profile.c : Likewise.
26973 * bb-reorder.c : Likewise.
26974 * bitmap.c : Likewise.
26975 * bitmap.h : Likewise.
26976 * bt-load.c : Likewise.
26977 * builtins.c : Likewise.
26978 * caller-save.c : Likewise.
26979 * calls.c : Likewise.
26980 * ccmp.c : Likewise.
26981 * cfg.c : Likewise.
26982 * cfganal.c : Likewise.
26983 * cfgbuild.c : Likewise.
26984 * cfgcleanup.c : Likewise.
26985 * cfgexpand.c : Likewise.
26986 * cfghooks.c : Likewise.
26987 * cfgloop.c : Likewise.
26988 * cfgloop.h : Likewise.
26989 * cfgloopanal.c : Likewise.
26990 * cfgloopmanip.c : Likewise.
26991 * cfgrtl.c : Likewise.
26992 * cgraph.c : Likewise.
26993 * cgraphbuild.c : Likewise.
26994 * cgraphclones.c : Likewise.
26995 * cgraphunit.c : Likewise.
26996 * cilk-common.c : Likewise.
26997 * combine-stack-adj.c : Likewise.
26998 * combine.c : Likewise.
26999 * compare-elim.c : Likewise.
27000 * context.c : Likewise.
27001 * convert.c : Likewise.
27002 * coverage.c : Likewise.
27003 * cppbuiltin.c : Likewise.
27004 * cprop.c : Likewise.
27005 * cse.c : Likewise.
27006 * cselib.c : Likewise.
27007 * data-streamer-in.c : Likewise.
27008 * data-streamer-out.c : Likewise.
27009 * data-streamer.c : Likewise.
27010 * data-streamer.h : Likewise.
27011 * dbxout.c : Likewise.
27012 * dce.c : Likewise.
27013 * ddg.c : Likewise.
27014 * debug.c : Likewise.
27015 * df-core.c : Likewise.
27016 * df-problems.c : Likewise.
27017 * df-scan.c : Likewise.
27019 * dfp.c : Likewise.
27020 * dojump.c : Likewise.
27021 * dominance.c : Likewise.
27022 * domwalk.c : Likewise.
27023 * double-int.c : Likewise.
27024 * dse.c : Likewise.
27025 * dumpfile.c : Likewise.
27026 * dwarf2asm.c : Likewise.
27027 * dwarf2cfi.c : Likewise.
27028 * dwarf2out.c : Likewise.
27029 * emit-rtl.c : Likewise.
27030 * et-forest.c : Likewise.
27031 * except.c : Likewise.
27032 * except.h : Likewise.
27033 * explow.c : Likewise.
27034 * expmed.c : Likewise.
27035 * expr.c : Likewise.
27036 * final.c : Likewise.
27037 * fixed-value.c : Likewise.
27038 * fold-const.c : Likewise.
27039 * function.c : Likewise.
27040 * fwprop.c : Likewise.
27041 * gcc-plugin.h : Likewise.
27042 * gcc.c : Likewise.
27043 * gcse-common.c : Likewise.
27044 * gcse.c : Likewise.
27045 * genattrtab.c : Likewise.
27046 * genautomata.c : Likewise.
27047 * genconditions.c : Likewise.
27048 * genemit.c : Likewise.
27049 * generic-match-head.c : Likewise.
27050 * genextract.c : Likewise.
27051 * gengtype-state.c : Likewise.
27052 * gengtype.c : Likewise.
27053 * genhooks.c : Likewise.
27054 * genmatch.c : Likewise.
27055 * genmodes.c : Likewise.
27056 * genrecog.c : Likewise.
27057 * gensupport.c : Likewise.
27058 * ggc-common.c : Likewise.
27059 * ggc-internal.h : Likewise.
27060 * ggc-none.c : Likewise.
27061 * ggc-page.c : Likewise.
27062 * gimple-builder.c : Likewise.
27063 * gimple-expr.c : Likewise.
27064 * gimple-fold.c : Likewise.
27065 * gimple-iterator.c : Likewise.
27066 * gimple-low.c : Likewise.
27067 * gimple-match-head.c : Likewise.
27068 * gimple-pretty-print.c : Likewise.
27069 * gimple-ssa-isolate-paths.c : Likewise.
27070 * gimple-ssa-strength-reduction.c : Likewise.
27071 * gimple-ssa.h : Likewise.
27072 * gimple-streamer-in.c : Likewise.
27073 * gimple-streamer-out.c : Likewise.
27074 * gimple-streamer.h : Likewise.
27075 * gimple-walk.c : Likewise.
27076 * gimple.c : Likewise.
27077 * gimplify-me.c : Likewise.
27078 * gimplify.c : Likewise.
27079 * godump.c : Likewise.
27080 * graph.c : Likewise.
27081 * graphds.c : Likewise.
27082 * graphite-blocking.c : Likewise.
27083 * graphite-dependences.c : Likewise.
27084 * graphite-interchange.c : Likewise.
27085 * graphite-isl-ast-to-gimple.c : Likewise.
27086 * graphite-optimize-isl.c : Likewise.
27087 * graphite-poly.c : Likewise.
27088 * graphite-scop-detection.c : Likewise.
27089 * graphite-sese-to-poly.c : Likewise.
27090 * graphite.c : Likewise.
27091 * haifa-sched.c : Likewise.
27092 * hard-reg-set.h : Likewise.
27093 * hw-doloop.c : Likewise.
27094 * ifcvt.c : Likewise.
27095 * inchash.c : Likewise.
27096 * incpath.c : Likewise.
27097 * init-regs.c : Likewise.
27098 * input.c : Likewise.
27099 * internal-fn.c : Likewise.
27100 * ipa-chkp.c : Likewise.
27101 * ipa-comdats.c : Likewise.
27102 * ipa-cp.c : Likewise.
27103 * ipa-devirt.c : Likewise.
27104 * ipa-icf-gimple.c : Likewise.
27105 * ipa-icf.c : Likewise.
27106 * ipa-inline-analysis.c : Likewise.
27107 * ipa-inline-transform.c : Likewise.
27108 * ipa-inline.c : Likewise.
27109 * ipa-polymorphic-call.c : Likewise.
27110 * ipa-profile.c : Likewise.
27111 * ipa-prop.c : Likewise.
27112 * ipa-pure-const.c : Likewise.
27113 * ipa-ref.c : Likewise.
27114 * ipa-reference.c : Likewise.
27115 * ipa-split.c : Likewise.
27116 * ipa-utils.c : Likewise.
27117 * ipa-visibility.c : Likewise.
27118 * ipa.c : Likewise.
27119 * ira-build.c : Likewise.
27120 * ira-color.c : Likewise.
27121 * ira-conflicts.c : Likewise.
27122 * ira-costs.c : Likewise.
27123 * ira-emit.c : Likewise.
27124 * ira-lives.c : Likewise.
27125 * ira.c : Likewise.
27126 * jump.c : Likewise.
27127 * langhooks.c : Likewise.
27128 * lcm.c : Likewise.
27129 * libfuncs.h : Likewise.
27130 * lists.c : Likewise.
27131 * loop-doloop.c : Likewise.
27132 * loop-init.c : Likewise.
27133 * loop-invariant.c : Likewise.
27134 * loop-iv.c : Likewise.
27135 * loop-unroll.c : Likewise.
27136 * lower-subreg.c : Likewise.
27137 * lra-assigns.c : Likewise.
27138 * lra-coalesce.c : Likewise.
27139 * lra-constraints.c : Likewise.
27140 * lra-eliminations.c : Likewise.
27141 * lra-lives.c : Likewise.
27142 * lra-remat.c : Likewise.
27143 * lra-spills.c : Likewise.
27144 * lra.c : Likewise.
27145 * lto-cgraph.c : Likewise.
27146 * lto-compress.c : Likewise.
27147 * lto-opts.c : Likewise.
27148 * lto-section-in.c : Likewise.
27149 * lto-section-out.c : Likewise.
27150 * lto-streamer-in.c : Likewise.
27151 * lto-streamer-out.c : Likewise.
27152 * lto-streamer.c : Likewise.
27153 * lto-streamer.h : Likewise.
27154 * mcf.c : Likewise.
27155 * mode-switching.c : Likewise.
27156 * modulo-sched.c : Likewise.
27157 * omega.c : Likewise.
27158 * omp-low.c : Likewise.
27159 * optabs.c : Likewise.
27160 * opts-global.c : Likewise.
27161 * opts.h : Likewise.
27162 * passes.c : Likewise.
27163 * plugin.c : Likewise.
27164 * postreload-gcse.c : Likewise.
27165 * postreload.c : Likewise.
27166 * predict.c : Likewise.
27167 * print-rtl.c : Likewise.
27168 * print-tree.c : Likewise.
27169 * profile.c : Likewise.
27170 * read-md.c : Likewise.
27171 * read-md.h : Likewise.
27172 * read-rtl.c : Likewise.
27173 * real.c : Likewise.
27174 * realmpfr.c : Likewise.
27175 * recog.c : Likewise.
27176 * ree.c : Likewise.
27177 * reg-stack.c : Likewise.
27178 * regcprop.c : Likewise.
27179 * reginfo.c : Likewise.
27180 * regrename.c : Likewise.
27181 * regstat.c : Likewise.
27182 * reload.c : Likewise.
27183 * reload1.c : Likewise.
27184 * reorg.c : Likewise.
27185 * resource.c : Likewise.
27186 * rtl-chkp.c : Likewise.
27187 * rtl.c : Likewise.
27188 * rtl.h : Likewise.
27189 * rtlanal.c : Likewise.
27190 * rtlhash.c : Likewise.
27191 * rtlhash.h : Likewise.
27192 * rtlhooks.c : Likewise.
27193 * sanopt.c : Likewise.
27194 * sched-deps.c : Likewise.
27195 * sched-ebb.c : Likewise.
27196 * sched-rgn.c : Likewise.
27197 * sched-vis.c : Likewise.
27198 * sdbout.c : Likewise.
27199 * sel-sched-dump.c : Likewise.
27200 * sel-sched-ir.c : Likewise.
27201 * sel-sched-ir.h : Likewise.
27202 * sel-sched.c : Likewise.
27203 * sese.c : Likewise.
27204 * shrink-wrap.c : Likewise.
27205 * shrink-wrap.h : Likewise.
27206 * simplify-rtx.c : Likewise.
27207 * stack-ptr-mod.c : Likewise.
27208 * statistics.c : Likewise.
27209 * stmt.c : Likewise.
27210 * stor-layout.c : Likewise.
27211 * store-motion.c : Likewise.
27212 * stringpool.c : Likewise.
27213 * symtab.c : Likewise.
27214 * target-globals.c : Likewise.
27215 * targhooks.c : Likewise.
27216 * tlink.c : Likewise.
27217 * toplev.c : Likewise.
27218 * tracer.c : Likewise.
27219 * trans-mem.c : Likewise.
27220 * tree-affine.c : Likewise.
27221 * tree-affine.h : Likewise.
27222 * tree-browser.c : Likewise.
27223 * tree-call-cdce.c : Likewise.
27224 * tree-cfg.c : Likewise.
27225 * tree-cfgcleanup.c : Likewise.
27226 * tree-chkp-opt.c : Likewise.
27227 * tree-chkp.c : Likewise.
27228 * tree-chrec.c : Likewise.
27229 * tree-complex.c : Likewise.
27230 * tree-data-ref.c : Likewise.
27231 * tree-dfa.c : Likewise.
27232 * tree-diagnostic.c : Likewise.
27233 * tree-dump.c : Likewise.
27234 * tree-eh.c : Likewise.
27235 * tree-eh.h : Likewise.
27236 * tree-emutls.c : Likewise.
27237 * tree-hasher.h : Likewise.
27238 * tree-if-conv.c : Likewise.
27239 * tree-inline.c : Likewise.
27240 * tree-inline.h : Likewise.
27241 * tree-into-ssa.c : Likewise.
27242 * tree-iterator.c : Likewise.
27243 * tree-loop-distribution.c : Likewise.
27244 * tree-nested.c : Likewise.
27245 * tree-nrv.c : Likewise.
27246 * tree-object-size.c : Likewise.
27247 * tree-outof-ssa.c : Likewise.
27248 * tree-parloops.c : Likewise.
27249 * tree-phinodes.c : Likewise.
27250 * tree-predcom.c : Likewise.
27251 * tree-pretty-print.c : Likewise.
27252 * tree-profile.c : Likewise.
27253 * tree-scalar-evolution.c : Likewise.
27254 * tree-sra.c : Likewise.
27255 * tree-ssa-address.c : Likewise.
27256 * tree-ssa-alias.c : Likewise.
27257 * tree-ssa-ccp.c : Likewise.
27258 * tree-ssa-coalesce.c : Likewise.
27259 * tree-ssa-copy.c : Likewise.
27260 * tree-ssa-copyrename.c : Likewise.
27261 * tree-ssa-dce.c : Likewise.
27262 * tree-ssa-dom.c : Likewise.
27263 * tree-ssa-dse.c : Likewise.
27264 * tree-ssa-forwprop.c : Likewise.
27265 * tree-ssa-ifcombine.c : Likewise.
27266 * tree-ssa-live.c : Likewise.
27267 * tree-ssa-loop-ch.c : Likewise.
27268 * tree-ssa-loop-im.c : Likewise.
27269 * tree-ssa-loop-ivcanon.c : Likewise.
27270 * tree-ssa-loop-ivopts.c : Likewise.
27271 * tree-ssa-loop-manip.c : Likewise.
27272 * tree-ssa-loop-niter.c : Likewise.
27273 * tree-ssa-loop-prefetch.c : Likewise.
27274 * tree-ssa-loop-unswitch.c : Likewise.
27275 * tree-ssa-loop.c : Likewise.
27276 * tree-ssa-math-opts.c : Likewise.
27277 * tree-ssa-operands.c : Likewise.
27278 * tree-ssa-phiopt.c : Likewise.
27279 * tree-ssa-phiprop.c : Likewise.
27280 * tree-ssa-pre.c : Likewise.
27281 * tree-ssa-propagate.c : Likewise.
27282 * tree-ssa-reassoc.c : Likewise.
27283 * tree-ssa-sccvn.c : Likewise.
27284 * tree-ssa-scopedtables.c : Likewise.
27285 * tree-ssa-sink.c : Likewise.
27286 * tree-ssa-strlen.c : Likewise.
27287 * tree-ssa-structalias.c : Likewise.
27288 * tree-ssa-tail-merge.c : Likewise.
27289 * tree-ssa-ter.c : Likewise.
27290 * tree-ssa-threadedge.c : Likewise.
27291 * tree-ssa-threadupdate.c : Likewise.
27292 * tree-ssa-uncprop.c : Likewise.
27293 * tree-ssa-uninit.c : Likewise.
27294 * tree-ssa.c : Likewise.
27295 * tree-ssanames.c : Likewise.
27296 * tree-stdarg.c : Likewise.
27297 * tree-streamer-in.c : Likewise.
27298 * tree-streamer-out.c : Likewise.
27299 * tree-streamer.c : Likewise.
27300 * tree-streamer.h : Likewise.
27301 * tree-switch-conversion.c : Likewise.
27302 * tree-tailcall.c : Likewise.
27303 * tree-vect-data-refs.c : Likewise.
27304 * tree-vect-generic.c : Likewise.
27305 * tree-vect-loop-manip.c : Likewise.
27306 * tree-vect-loop.c : Likewise.
27307 * tree-vect-patterns.c : Likewise.
27308 * tree-vect-slp.c : Likewise.
27309 * tree-vect-stmts.c : Likewise.
27310 * tree-vectorizer.c : Likewise.
27311 * tree-vectorizer.h : Likewise.
27312 * tree-vrp.c : Likewise.
27313 * tree.c : Likewise.
27314 * tsan.c : Likewise.
27315 * ubsan.c : Likewise.
27316 * valtrack.c : Likewise.
27317 * valtrack.h : Likewise.
27318 * value-prof.c : Likewise.
27319 * var-tracking.c : Likewise.
27320 * varasm.c : Likewise.
27321 * varpool.c : Likewise.
27323 * vmsdbgout.c : Likewise.
27324 * vtable-verify.c : Likewise.
27325 * vtable-verify.h : Likewise.
27326 * web.c : Likewise.
27327 * wide-int.cc : Likewise.
27328 * xcoffout.c : Likewise.
27329 * config/aarch64/aarch64-builtins.c : Likewise.
27330 * config/aarch64/aarch64.c : Likewise.
27331 * config/aarch64/cortex-a57-fma-steering.c : Likewise.
27332 * config/alpha/alpha.c : Likewise.
27333 * config/arc/arc.c : Likewise.
27334 * config/arm/aarch-common.c : Likewise.
27335 * config/arm/arm-builtins.c : Likewise.
27336 * config/arm/arm-c.c : Likewise.
27337 * config/arm/arm.c : Likewise.
27338 * config/avr/avr-c.c : Likewise.
27339 * config/avr/avr-log.c : Likewise.
27340 * config/avr/avr.c : Likewise.
27341 * config/bfin/bfin.c : Likewise.
27342 * config/c6x/c6x.c : Likewise.
27343 * config/cr16/cr16.c : Likewise.
27344 * config/cris/cris.c : Likewise.
27345 * config/darwin-c.c : Likewise.
27346 * config/darwin.c : Likewise.
27347 * config/default-c.c : Likewise.
27348 * config/epiphany/epiphany.c : Likewise.
27349 * config/epiphany/mode-switch-use.c : Likewise.
27350 * config/epiphany/resolve-sw-modes.c : Likewise.
27351 * config/fr30/fr30.c : Likewise.
27352 * config/frv/frv.c : Likewise.
27353 * config/ft32/ft32.c : Likewise.
27354 * config/glibc-c.c : Likewise.
27355 * config/h8300/h8300.c : Likewise.
27356 * config/i386/i386-c.c : Likewise.
27357 * config/i386/i386.c : Likewise.
27358 * config/i386/msformat-c.c : Likewise.
27359 * config/i386/winnt-cxx.c : Likewise.
27360 * config/i386/winnt-stubs.c : Likewise.
27361 * config/i386/winnt.c : Likewise.
27362 * config/ia64/ia64-c.c : Likewise.
27363 * config/ia64/ia64.c : Likewise.
27364 * config/iq2000/iq2000.c : Likewise.
27365 * config/lm32/lm32.c : Likewise.
27366 * config/m32c/m32c-pragma.c : Likewise.
27367 * config/m32c/m32c.c : Likewise.
27368 * config/m32r/m32r.c : Likewise.
27369 * config/m68k/m68k.c : Likewise.
27370 * config/mcore/mcore.c : Likewise.
27371 * config/mep/mep-pragma.c : Likewise.
27372 * config/mep/mep.c : Likewise.
27373 * config/microblaze/microblaze-c.c : Likewise.
27374 * config/microblaze/microblaze.c : Likewise.
27375 * config/mips/mips.c : Likewise.
27376 * config/mmix/mmix.c : Likewise.
27377 * config/mn10300/mn10300.c : Likewise.
27378 * config/moxie/moxie.c : Likewise.
27379 * config/msp430/msp430-c.c : Likewise.
27380 * config/msp430/msp430.c : Likewise.
27381 * config/nds32/nds32-cost.c : Likewise.
27382 * config/nds32/nds32-fp-as-gp.c : Likewise.
27383 * config/nds32/nds32-intrinsic.c : Likewise.
27384 * config/nds32/nds32-isr.c : Likewise.
27385 * config/nds32/nds32-md-auxiliary.c : Likewise.
27386 * config/nds32/nds32-memory-manipulation.c : Likewise.
27387 * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
27388 * config/nds32/nds32-predicates.c : Likewise.
27389 * config/nds32/nds32.c : Likewise.
27390 * config/nios2/nios2.c : Likewise.
27391 * config/nvptx/nvptx.c : Likewise.
27392 * config/pa/pa.c : Likewise.
27393 * config/pdp11/pdp11.c : Likewise.
27394 * config/rl78/rl78-c.c : Likewise.
27395 * config/rl78/rl78.c : Likewise.
27396 * config/rs6000/rs6000-c.c : Likewise.
27397 * config/rs6000/rs6000.c : Likewise.
27398 * config/rx/rx.c : Likewise.
27399 * config/s390/s390-c.c : Likewise.
27400 * config/s390/s390.c : Likewise.
27401 * config/sh/sh-c.c : Likewise.
27402 * config/sh/sh-mem.cc : Likewise.
27403 * config/sh/sh.c : Likewise.
27404 * config/sh/sh_optimize_sett_clrt.cc : Likewise.
27405 * config/sh/sh_treg_combine.cc : Likewise.
27406 * config/sol2-c.c : Likewise.
27407 * config/sol2-cxx.c : Likewise.
27408 * config/sol2-stubs.c : Likewise.
27409 * config/sol2.c : Likewise.
27410 * config/sparc/sparc-c.c : Likewise.
27411 * config/sparc/sparc.c : Likewise.
27412 * config/spu/spu-c.c : Likewise.
27413 * config/spu/spu.c : Likewise.
27414 * config/stormy16/stormy16.c : Likewise.
27415 * config/tilegx/mul-tables.c : Likewise.
27416 * config/tilegx/tilegx-c.c : Likewise.
27417 * config/tilegx/tilegx.c : Likewise.
27418 * config/tilepro/mul-tables.c : Likewise.
27419 * config/tilepro/tilepro-c.c : Likewise.
27420 * config/tilepro/tilepro.c : Likewise.
27421 * config/v850/v850-c.c : Likewise.
27422 * config/v850/v850.c : Likewise.
27423 * config/vax/vax.c : Likewise.
27424 * config/visium/visium.c : Likewise.
27425 * config/vms/vms-c.c : Likewise.
27426 * config/vms/vms.c : Likewise.
27427 * config/vxworks.c : Likewise.
27428 * config/winnt-c.c : Likewise.
27429 * config/xtensa/xtensa.c : Likewise.
27431 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
27434 * ipa-utils.h (warn_types_mismatch): Update prototype.
27435 * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
27437 (type_mismatch_p): New function.
27438 (warn_types_mismatch): Reorg to work better on non-C++ types.
27439 (odr_types_equivalent_p): Add loc1/loc2 parameters.
27440 (add_type_duplicate): Update.
27442 2015-06-08 Tom de Vries <tom@codesourcery.com>
27444 PR rtl-optimization/66444
27445 * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
27448 2015-06-08 Richard Biener <rguenther@suse.de>
27450 PR tree-optimization/66422
27451 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
27452 block after inserted gcc_unreachable.
27454 2015-06-08 Nick Clifton <nickc@redhat.com>
27456 * config/rx/rx.c (rx_function_value): Do not promote vector types.
27457 (rx_promote_function_mode): Likewise.
27458 * config/rx/rx.h (LIBCALL_VALUE): Likewise.
27460 2015-06-08 Jakub Jelinek <jakub@redhat.com>
27462 * genattrtab.c (insn_alternatives): Change type from int *
27464 (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
27465 (get_attr_value): Change type of num_alt to uint64_t.
27466 (compute_alternative_mask): Change return type from
27467 int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
27468 (make_alternative_compare, mk_attr_alt): Change argument type
27469 from int to uint64_t.
27470 (simplify_test_exp): Change type of i from int to uint64_t.
27471 Shift ((uint64_t) 1) instead of 1 up.
27472 (main): Adjust oballocvec first argument from int to uint64_t.
27473 Shift ((uint64_t) 1) instead of 1 up.
27475 2015-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
27478 * gdbhooks.py: Import sys.
27479 (intptr): New function. Replace int(...) by intptr(...).
27481 2015-06-08 Richard Biener <rguenther@suse.de>
27483 * tree-vect-stmts.c (vectorizable_load): Compute the pointer
27484 adjustment for gaps at the end of a SLP load group properly.
27485 * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
27486 all permutations we can generate.
27487 (vect_transform_slp_perm_load): Use the correct group-size.
27489 2015-06-08 Marc Glisse <marc.glisse@inria.fr>
27491 * genmatch.c (expr::gen_transform): For conditions, guess the type
27492 from the second operand.
27494 2015-06-08 Tom de Vries <tom@codesourcery.com>
27496 PR tree-optimization/66442
27497 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
27498 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
27499 if the loop latch is not a singleton. Use
27500 gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
27502 2015-06-08 Marek Polacek <polacek@redhat.com>
27505 * toplev.c (check_global_declaration): Don't warn about artificial
27508 2015-06-08 Tom de Vries <tom@codesourcery.com>
27510 PR tree-optimization/66436
27511 * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
27513 * gimplify.c: Add tree-dump.h include.
27514 (gimplify_function_tree): Dump function to gimple dump file.
27515 * stor-layout.c (finalize_size_functions): Don't dump function to gimple
27518 2015-06-08 Tom de Vries <tom@codesourcery.com>
27520 PR tree-optimization/66435
27521 * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
27524 2015-06-06 Jan Hubicka <hubicka@ucw.cz>
27526 * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
27527 of ptr_type_node to not be ptr_to_node.
27528 * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
27529 TREE_TYPE of pointers.
27530 * gimple-expr.c (useless_type_conversion): Reorder the check for
27531 function pointers and TYPE_CANONICAL.
27533 2015-06-06 John David Anglin <danglin@gcc.gnu.org>
27536 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
27537 defines. Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
27538 Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
27540 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
27541 Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
27542 _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
27543 _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
27544 and non iso if unix2003.
27546 2015-06-06 Aldy Hernandez <aldyh@redhat.com>
27548 * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
27550 2015-06-06 Richard Sandiford <richard.sandiford@arm.com>
27552 * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
27553 rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
27554 cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
27555 except.c, final.c, function.c, gcse-common.c, genemit.c,
27556 haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
27557 lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
27558 sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
27559 shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
27562 2015-06-06 Mikhail Maltsev <maltsevm@gmail.com>
27564 * combine.c (combine_split_insns): Remove cast.
27565 * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
27566 * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
27567 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
27568 * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
27569 * genemit.c (gen_split): Change return type of generated functions to
27571 * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
27572 (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
27573 gen_peephole2_* functions.
27574 (print_subroutine, main): Likewise.
27575 * recog.c (peephole2_optimize): Remove cast.
27576 (peep2_next_insn): Promote return type to rtx_insn.
27577 * recog.h (peep2_next_insn): Fix prototype.
27578 * rtl.h (try_split, split_insns): Likewise.
27580 2015-06-06 DJ Delorie <dj@redhat.com>
27582 * config/msp430/msp430.c (msp430_asm_integer): Support addition
27583 and subtraction too.
27585 2015-06-05 Kaz Kojima <kkojima@gcc.gnu.org>
27588 * config/sh/constraints.md (Sid, Ssd): New memory constraints.
27589 * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
27590 instead of Snd. Disparage Sid/z alternative with '^'.
27592 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
27594 * dwarf2out.c: Remove deferred_locations*.
27595 (dwarf2_debug_hooks): Add early_finish hook.
27596 Remove global_decl hook.
27597 Add early_global_decl and late_global_decl hook.
27598 New global early_dwarf.
27599 New structure set_early_dwarf.
27600 (output_die): Indicate whether a DIE was generated early
27601 when generating assembly with -dA.
27602 (struct limbo_die_struct): Document created_for field.
27603 Remove file_table_last_lookup.
27604 (remove_AT): Return TRUE if successful.
27605 (remove_child_TAG): Clear die_parent.
27606 (reparent_child): New function abstracted from...
27607 (splice_child_die): ...here.
27608 (new_die): ICE if a DIE ends up in limbo too late.
27610 (defer_location): Remove.
27611 (add_subscript_info): Reuse DW_TAG_subrange_type if available.
27612 (fill_variable_array_bounds): New.
27613 (decl_start_label): Call fill_variable_array_bounds.
27614 (gen_formal_parameter_die): Rewrite to reuse previously generated
27616 (gen_subprogram_die): Same.
27617 (gen_variable_die): Same.
27618 (gen_const_die): Same.
27619 (gen_label_die): Same.
27620 (gen_lexical_block_die): Same.
27621 (decl_will_get_specification_p): New.
27622 (local_function_static): New.
27623 (gen_struct_or_union_type_die): Fill in variable-length fields.
27624 (gen_typedef_die): Fill in variable-length typedefs.
27625 (gen_tagged_type_die): Gracefully return on error_mark_node.
27626 Handle re-entrancy.
27627 (gen_type_die_with_usage): Handle variable-length types.
27628 Remove duplicate code for ARRAY_TYPE case.
27629 (process_scope_var): Only process imported modules during early
27631 (dwarf2out_early_global_decl): New.
27632 (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
27633 (dwarf2out_type_decl): Set early_dwarf while calling
27635 (dwarf2out_decl): Verify that we did not recreate a previously
27637 Do not return on DECL_EXTERNALs in VAR_DECLs.
27638 Abstract some code to local_function_static.
27639 (lookup_filename): Remove use of file_table_last_lookup.
27640 Gracefully exit on missing file_name.
27641 (dwarf2out_finish): Verify limbo list.
27642 Remove deferred_locations_list use.
27643 Move deferred_asm_name and limbo flushing to...
27644 (dwarf2out_early_finish): ...here. New.
27645 (dwarf2out_c_finalize): Remove set of deferred_location_list,
27646 deferred_asm_name, and file_table_last_lookup.
27647 * cgraph.h (referred_to_p): Add default argument.
27648 * cgraphunit.c (referred_to_p): Add and handle include_self
27650 (analyze_functions): Add first_time argument.
27651 Call check_global_declaration for all symbols.
27652 Call late_global_decl for nodes for moribund nodes.
27653 (finalize_compilation_unit): Add new argument to
27655 Call early_global_decl for functions.
27656 Call early_finish debug hook.
27657 * dbxout.c (dbxout_early_global_decl): New.
27658 (dbxout_late_global_decl): New. Adapted from dbxout_global_decl.
27659 (dbx_debug_hooks): Add new hooks.
27660 (xcoff_debug_hooks): Same.
27661 * debug.c (do_nothing_debug_hooks): Add early_finish field.
27662 Add early and late debug hooks.
27663 Remove global_decl hook.
27664 * debug.h (struct gcc_debug_hooks): Add early_finish,
27665 early_global_decl, and late_global_decl fields.
27666 Remove global_decl field.
27667 Document gcc_debug_hooks.
27668 * gengtype.c (output_typename): Remove.
27669 * godump.c (go_early_global_decl): New.
27670 (go_late_global_decl): New.
27671 (go_global_decl): Remove.
27672 (dump_go_spec_init): Remove global_decl. Add
27673 {early,late}_global_decl.
27674 * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
27675 (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
27676 * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
27677 (write_global_declarations): Remove.
27678 (global_decl_processing): New.
27679 * langhooks.h (struct lang_hooks_for_decls): Remove
27680 final_write_globals field.
27681 Add post_compilation_parsing_cleanups field.
27682 * passes.c (rest_of_decl_compilation): Call early_global_decl.
27683 * sdbout.c: Add early and late_global_decl hooks. Remove
27684 sdbout_global_decl hook.
27685 Add early_finish field for sdb_debug_hooks.
27686 (sdbout_global_decl): Remove.
27687 (sdbout_early_global_decl): New.
27688 (sdbout_late_global_decl): New.
27689 * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
27690 * toplev.c (check_global_declaration): Rename from
27691 check_global_declaration_1.
27692 Adapt to use symtab infrastructure.
27693 (check_global_declarations): Remove.
27694 (emit_debug_global_declarations): Remove.
27695 (compile_file): Remove call to final_write_globals langhook.
27696 Run the actual compilation process.
27697 Perform any post compilation parser cleanups.
27698 Generate late debug info.
27699 * toplev.h (check_global_declaration): New.
27700 (check_global_declaration_1): Remove.
27701 (check_global_declarations): Remove.
27702 (write_global_declarations): Remove.
27703 (emit_debug_global_declarations): Remove.
27704 (global_decl_processing): New.
27705 * tree-core.h (struct tree_block): Add DIE field.
27706 * tree.h (BLOCK_DIE): New.
27707 * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
27709 (vmsdbgout_early_global_decl): New.
27710 (vmsdbgout_late_global_decl): New.
27711 Add early_finish debug hook field to vmsdbg_debug_hooks.
27712 Remove vmsdbgout_decl to vmsdbgout_function_decl.
27713 Add early and late_global_decl debug hooks.
27715 2015-06-05 Julian Brown <julian@codesourcery.com>
27716 Sandra Loosemore <sandra@codesourcery.com>
27718 * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
27719 * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
27720 to print-sysroot-suffix.sh script.
27722 2015-06-05 Tom de Vries <tom@codesourcery.com>
27724 merge from gomp4 branch:
27725 2015-05-28 Tom de Vries <tom@codesourcery.com>
27727 PR tree-optimization/65443
27728 * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
27729 (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
27730 (try_transform_to_exit_first_loop_alt): New function.
27731 (transform_to_exit_first_loop): Use
27732 try_transform_to_exit_first_loop_alt.
27734 2015-06-05 James Greenhalgh <james.greenhalgh@arm.com>
27736 * builtins.c (expand_builtin_atomic_compare_exchange): Call
27737 emit_cmp_and_jump_insns with the mode of target.
27739 2015-06-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
27741 * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
27743 2015-06-04 DJ Delorie <dj@redhat.com>
27745 * config/msp430/msp430.md (movsi_s): New. Special case for
27746 storing a 20-bit symbol into a 32-bit register.
27747 * config/msp430/msp430.c (msp430_subreg): Add support for it.
27748 * config/msp430/predicates.md (msp430_symbol_operand): New.
27750 2015-06-04 Sriraman Tallam <tmsriram@google.com>
27752 * calls.c (prepare_call_address): Check for noplt
27754 * config/i386/i386.c (ix86_expand_call): Check
27755 for noplt attribute.
27756 (ix86_nopic_noplt_attribute_p): New function.
27757 (ix86_output_call_insn): Output indirect call for non-pic
27759 * doc/extend.texi (noplt): Document new attribute.
27760 * doc/invoke.texi: Document new attribute.
27762 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
27764 * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
27765 real.h, and fixed-value.h when included in host source files.
27766 * double-int.h: Remove redundant #includes listed above.
27767 * fixed-value.h: Likewise.
27768 * real.h: Likewise.
27769 * wide-int.h: Likewise.
27770 * inchash.h: Likewise.
27771 * rtl.h: Add some include files When included from a generator file.
27772 * target.h: Remove wide-int.h and insn-modes.h from the include list.
27773 * internal-fn.h: Don't include coretypes.h.
27774 * alias.c: Adjust includes for restructured coretypes.h.
27775 * asan.c: Likewise.
27776 * attribs.c: Likewise.
27777 * auto-inc-dec.c: Likewise.
27778 * auto-profile.c: Likewise.
27779 * bb-reorder.c: Likewise.
27780 * bt-load.c: Likewise.
27781 * builtins.c: Likewise.
27782 * caller-save.c: Likewise.
27783 * calls.c: Likewise.
27784 * ccmp.c: Likewise.
27786 * cfganal.c: Likewise.
27787 * cfgbuild.c: Likewise.
27788 * cfgcleanup.c: Likewise.
27789 * cfgexpand.c: Likewise.
27790 * cfghooks.c: Likewise.
27791 * cfgloop.c: Likewise.
27792 * cfgloop.h: Likewise.
27793 * cfgloopanal.c: Likewise.
27794 * cfgloopmanip.c: Likewise.
27795 * cfgrtl.c: Likewise.
27796 * cgraph.c: Likewise.
27797 * cgraphbuild.c: Likewise.
27798 * cgraphclones.c: Likewise.
27799 * cgraphunit.c: Likewise.
27800 * cilk-common.c: Likewise.
27801 * combine-stack-adj.c: Likewise.
27802 * combine.c: Likewise.
27803 * compare-elim.c: Likewise.
27804 * convert.c: Likewise.
27805 * coverage.c: Likewise.
27806 * cppbuiltin.c: Likewise.
27807 * cprop.c: Likewise.
27809 * cselib.c: Likewise.
27810 * data-streamer-in.c: Likewise.
27811 * data-streamer-out.c: Likewise.
27812 * data-streamer.c: Likewise.
27813 * dbxout.c: Likewise.
27816 * debug.c: Likewise.
27817 * df-core.c: Likewise.
27818 * df-problems.c: Likewise.
27819 * df-scan.c: Likewise.
27822 * dojump.c: Likewise.
27823 * dominance.c: Likewise.
27824 * domwalk.c: Likewise.
27825 * double-int.c: Likewise.
27827 * dumpfile.c: Likewise.
27828 * dwarf2asm.c: Likewise.
27829 * dwarf2cfi.c: Likewise.
27830 * dwarf2out.c: Likewise.
27831 * dwarf2out.h: Likewise.
27832 * emit-rtl.c: Likewise.
27833 * et-forest.c: Likewise.
27834 * except.c: Likewise.
27835 * explow.c: Likewise.
27836 * expmed.c: Likewise.
27837 * expr.c: Likewise.
27838 * final.c: Likewise.
27839 * fixed-value.c: Likewise.
27840 * fold-const.c: Likewise.
27841 * function.c: Likewise.
27842 * fwprop.c: Likewise.
27843 * gcc-plugin.h: Likewise.
27844 * gcse.c: Likewise.
27845 * generic-match-head.c: Likewise.
27846 * ggc-page.c: Likewise.
27847 * gimple-builder.c: Likewise.
27848 * gimple-expr.c: Likewise.
27849 * gimple-fold.c: Likewise.
27850 * gimple-iterator.c: Likewise.
27851 * gimple-low.c: Likewise.
27852 * gimple-match-head.c: Likewise.
27853 * gimple-pretty-print.c: Likewise.
27854 * gimple-ssa-isolate-paths.c: Likewise.
27855 * gimple-ssa-strength-reduction.c: Likewise.
27856 * gimple-streamer-in.c: Likewise.
27857 * gimple-streamer-out.c: Likewise.
27858 * gimple-streamer.h: Likewise.
27859 * gimple-walk.c: Likewise.
27860 * gimple.c: Likewise.
27861 * gimplify-me.c: Likewise.
27862 * gimplify.c: Likewise.
27863 * godump.c: Likewise.
27864 * graph.c: Likewise.
27865 * graphite-blocking.c: Likewise.
27866 * graphite-dependences.c: Likewise.
27867 * graphite-interchange.c: Likewise.
27868 * graphite-isl-ast-to-gimple.c: Likewise.
27869 * graphite-optimize-isl.c: Likewise.
27870 * graphite-poly.c: Likewise.
27871 * graphite-scop-detection.c: Likewise.
27872 * graphite-sese-to-poly.c: Likewise.
27873 * graphite.c: Likewise.
27874 * haifa-sched.c: Likewise.
27875 * hooks.h: Likewise.
27876 * hw-doloop.c: Likewise.
27877 * ifcvt.c: Likewise.
27878 * incpath.c: Likewise.
27879 * init-regs.c: Likewise.
27880 * internal-fn.c: Likewise.
27881 * ipa-chkp.c: Likewise.
27882 * ipa-comdats.c: Likewise.
27883 * ipa-cp.c: Likewise.
27884 * ipa-devirt.c: Likewise.
27885 * ipa-icf-gimple.c: Likewise.
27886 * ipa-icf.c: Likewise.
27887 * ipa-inline-analysis.c: Likewise.
27888 * ipa-inline-transform.c: Likewise.
27889 * ipa-inline.c: Likewise.
27890 * ipa-polymorphic-call.c: Likewise.
27891 * ipa-profile.c: Likewise.
27892 * ipa-prop.c: Likewise.
27893 * ipa-pure-const.c: Likewise.
27894 * ipa-ref.c: Likewise.
27895 * ipa-reference.c: Likewise.
27896 * ipa-split.c: Likewise.
27897 * ipa-utils.c: Likewise.
27898 * ipa-visibility.c: Likewise.
27900 * ira-build.c: Likewise.
27901 * ira-color.c: Likewise.
27902 * ira-conflicts.c: Likewise.
27903 * ira-costs.c: Likewise.
27904 * ira-emit.c: Likewise.
27905 * ira-lives.c: Likewise.
27907 * jump.c: Likewise.
27908 * langhooks.c: Likewise.
27910 * loop-doloop.c: Likewise.
27911 * loop-init.c: Likewise.
27912 * loop-invariant.c: Likewise.
27913 * loop-iv.c: Likewise.
27914 * loop-unroll.c: Likewise.
27915 * lower-subreg.c: Likewise.
27916 * lra-assigns.c: Likewise.
27917 * lra-coalesce.c: Likewise.
27918 * lra-constraints.c: Likewise.
27919 * lra-eliminations.c: Likewise.
27920 * lra-lives.c: Likewise.
27921 * lra-remat.c: Likewise.
27922 * lra-spills.c: Likewise.
27924 * lto-cgraph.c: Likewise.
27925 * lto-compress.c: Likewise.
27926 * lto-opts.c: Likewise.
27927 * lto-section-in.c: Likewise.
27928 * lto-section-out.c: Likewise.
27929 * lto-streamer-in.c: Likewise.
27930 * lto-streamer-out.c: Likewise.
27931 * lto-streamer.c: Likewise.
27933 * mode-switching.c: Likewise.
27934 * modulo-sched.c: Likewise.
27935 * omega.c: Likewise.
27936 * omp-low.c: Likewise.
27937 * optabs.c: Likewise.
27938 * opts-global.c: Likewise.
27939 * passes.c: Likewise.
27940 * plugin.c: Likewise.
27941 * postreload-gcse.c: Likewise.
27942 * postreload.c: Likewise.
27943 * predict.c: Likewise.
27944 * print-rtl.c: Likewise.
27945 * print-tree.c: Likewise.
27946 * profile.c: Likewise.
27947 * real.c: Likewise.
27948 * realmpfr.c: Likewise.
27949 * realmpfr.h: Likewise.
27950 * recog.c: Likewise.
27952 * reg-stack.c: Likewise.
27953 * regcprop.c: Likewise.
27954 * reginfo.c: Likewise.
27955 * regrename.c: Likewise.
27956 * regs.h: Likewise.
27957 * regstat.c: Likewise.
27958 * reload.c: Likewise.
27959 * reload1.c: Likewise.
27960 * reorg.c: Likewise.
27961 * resource.c: Likewise.
27962 * rtl-chkp.c: Likewise.
27963 * rtlanal.c: Likewise.
27964 * rtlhooks.c: Likewise.
27965 * sanopt.c: Likewise.
27966 * sched-deps.c: Likewise.
27967 * sched-ebb.c: Likewise.
27968 * sched-rgn.c: Likewise.
27969 * sched-vis.c: Likewise.
27970 * sdbout.c: Likewise.
27971 * sel-sched-dump.c: Likewise.
27972 * sel-sched-ir.c: Likewise.
27973 * sel-sched.c: Likewise.
27974 * sese.c: Likewise.
27975 * shrink-wrap.c: Likewise.
27976 * shrink-wrap.h: Likewise.
27977 * simplify-rtx.c: Likewise.
27978 * stack-ptr-mod.c: Likewise.
27979 * statistics.c: Likewise.
27980 * stmt.c: Likewise.
27981 * stor-layout.c: Likewise.
27982 * store-motion.c: Likewise.
27983 * stringpool.c: Likewise.
27984 * symtab.c: Likewise.
27985 * target-globals.c: Likewise.
27986 * targhooks.c: Likewise.
27987 * toplev.c: Likewise.
27988 * tracer.c: Likewise.
27989 * trans-mem.c: Likewise.
27990 * tree-affine.c: Likewise.
27991 * tree-affine.h: Likewise.
27992 * tree-browser.c: Likewise.
27993 * tree-call-cdce.c: Likewise.
27994 * tree-cfg.c: Likewise.
27995 * tree-cfgcleanup.c: Likewise.
27996 * tree-chkp-opt.c: Likewise.
27997 * tree-chkp.c: Likewise.
27998 * tree-chrec.c: Likewise.
27999 * tree-complex.c: Likewise.
28000 * tree-data-ref.c: Likewise.
28001 * tree-dfa.c: Likewise.
28002 * tree-diagnostic.c: Likewise.
28003 * tree-dump.c: Likewise.
28004 * tree-eh.c: Likewise.
28005 * tree-emutls.c: Likewise.
28006 * tree-if-conv.c: Likewise.
28007 * tree-inline.c: Likewise.
28008 * tree-into-ssa.c: Likewise.
28009 * tree-iterator.c: Likewise.
28010 * tree-loop-distribution.c: Likewise.
28011 * tree-nested.c: Likewise.
28012 * tree-nrv.c: Likewise.
28013 * tree-object-size.c: Likewise.
28014 * tree-outof-ssa.c: Likewise.
28015 * tree-parloops.c: Likewise.
28016 * tree-phinodes.c: Likewise.
28017 * tree-predcom.c: Likewise.
28018 * tree-pretty-print.c: Likewise.
28019 * tree-pretty-print.h: Likewise.
28020 * tree-profile.c: Likewise.
28021 * tree-scalar-evolution.c: Likewise.
28022 * tree-sra.c: Likewise.
28023 * tree-ssa-address.c: Likewise.
28024 * tree-ssa-alias.c: Likewise.
28025 * tree-ssa-ccp.c: Likewise.
28026 * tree-ssa-coalesce.c: Likewise.
28027 * tree-ssa-copy.c: Likewise.
28028 * tree-ssa-copyrename.c: Likewise.
28029 * tree-ssa-dce.c: Likewise.
28030 * tree-ssa-dom.c: Likewise.
28031 * tree-ssa-dse.c: Likewise.
28032 * tree-ssa-forwprop.c: Likewise.
28033 * tree-ssa-ifcombine.c: Likewise.
28034 * tree-ssa-live.c: Likewise.
28035 * tree-ssa-loop-ch.c: Likewise.
28036 * tree-ssa-loop-im.c: Likewise.
28037 * tree-ssa-loop-ivcanon.c: Likewise.
28038 * tree-ssa-loop-ivopts.c: Likewise.
28039 * tree-ssa-loop-manip.c: Likewise.
28040 * tree-ssa-loop-niter.c: Likewise.
28041 * tree-ssa-loop-prefetch.c: Likewise.
28042 * tree-ssa-loop-unswitch.c: Likewise.
28043 * tree-ssa-loop.c: Likewise.
28044 * tree-ssa-loop.h: Likewise.
28045 * tree-ssa-math-opts.c: Likewise.
28046 * tree-ssa-operands.c: Likewise.
28047 * tree-ssa-phiopt.c: Likewise.
28048 * tree-ssa-phiprop.c: Likewise.
28049 * tree-ssa-pre.c: Likewise.
28050 * tree-ssa-propagate.c: Likewise.
28051 * tree-ssa-reassoc.c: Likewise.
28052 * tree-ssa-sccvn.c: Likewise.
28053 * tree-ssa-scopedtables.c: Likewise.
28054 * tree-ssa-sink.c: Likewise.
28055 * tree-ssa-strlen.c: Likewise.
28056 * tree-ssa-structalias.c: Likewise.
28057 * tree-ssa-tail-merge.c: Likewise.
28058 * tree-ssa-ter.c: Likewise.
28059 * tree-ssa-threadedge.c: Likewise.
28060 * tree-ssa-threadupdate.c: Likewise.
28061 * tree-ssa-uncprop.c: Likewise.
28062 * tree-ssa-uninit.c: Likewise.
28063 * tree-ssa.c: Likewise.
28064 * tree-ssanames.c: Likewise.
28065 * tree-stdarg.c: Likewise.
28066 * tree-streamer-in.c: Likewise.
28067 * tree-streamer-out.c: Likewise.
28068 * tree-streamer.c: Likewise.
28069 * tree-switch-conversion.c: Likewise.
28070 * tree-tailcall.c: Likewise.
28071 * tree-vect-data-refs.c: Likewise.
28072 * tree-vect-generic.c: Likewise.
28073 * tree-vect-loop-manip.c: Likewise.
28074 * tree-vect-loop.c: Likewise.
28075 * tree-vect-patterns.c: Likewise.
28076 * tree-vect-slp.c: Likewise.
28077 * tree-vect-stmts.c: Likewise.
28078 * tree-vectorizer.c: Likewise.
28079 * tree-vrp.c: Likewise.
28080 * tree.c: Likewise.
28081 * tsan.c: Likewise.
28082 * ubsan.c: Likewise.
28083 * valtrack.c: Likewise.
28084 * value-prof.c: Likewise.
28085 * var-tracking.c: Likewise.
28086 * varasm.c: Likewise.
28087 * varpool.c: Likewise.
28088 * vmsdbgout.c: Likewise.
28089 * vtable-verify.c: Likewise.
28091 * wide-int-print.cc: Likewise.
28092 * wide-int-print.h: Likewise.
28093 * wide-int.cc: Likewise.
28094 * xcoffout.c: Likewise.
28095 * config/aarch64/aarch64-builtins.c: Likewise.
28096 * config/aarch64/aarch64.c: Likewise.
28097 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
28098 * config/alpha/alpha.c: Likewise.
28099 * config/arc/arc.c: Likewise.
28100 * config/arm/aarch-common.c: Likewise.
28101 * config/arm/arm-builtins.c: Likewise.
28102 * config/arm/arm-c.c: Likewise.
28103 * config/arm/arm.c: Likewise.
28104 * config/avr/avr-c.c: Likewise.
28105 * config/avr/avr-log.c: Likewise.
28106 * config/avr/avr.c: Likewise.
28107 * config/bfin/bfin.c: Likewise.
28108 * config/c6x/c6x.c: Likewise.
28109 * config/cr16/cr16.c: Likewise.
28110 * config/cris/cris.c: Likewise.
28111 * config/darwin-c.c: Likewise.
28112 * config/darwin.c: Likewise.
28113 * config/default-c.c: Likewise.
28114 * config/epiphany/epiphany.c: Likewise.
28115 * config/epiphany/mode-switch-use.c: Likewise.
28116 * config/epiphany/resolve-sw-modes.c: Likewise.
28117 * config/fr30/fr30.c: Likewise.
28118 * config/frv/frv.c: Likewise.
28119 * config/ft32/ft32.c: Likewise.
28120 * config/glibc-c.c: Likewise.
28121 * config/h8300/h8300.c: Likewise.
28122 * config/i386/i386-c.c: Likewise.
28123 * config/i386/i386.c: Likewise.
28124 * config/i386/msformat-c.c: Likewise.
28125 * config/i386/winnt-cxx.c: Likewise.
28126 * config/i386/winnt-stubs.c: Likewise.
28127 * config/i386/winnt.c: Likewise.
28128 * config/ia64/ia64-c.c: Likewise.
28129 * config/ia64/ia64.c: Likewise.
28130 * config/iq2000/iq2000.c: Likewise.
28131 * config/lm32/lm32.c: Likewise.
28132 * config/m32c/m32c-pragma.c: Likewise.
28133 * config/m32c/m32c.c: Likewise.
28134 * config/m32r/m32r.c: Likewise.
28135 * config/m68k/m68k.c: Likewise.
28136 * config/mcore/mcore.c: Likewise.
28137 * config/mep/mep-pragma.c: Likewise.
28138 * config/mep/mep.c: Likewise.
28139 * config/microblaze/microblaze-c.c: Likewise.
28140 * config/microblaze/microblaze.c: Likewise.
28141 * config/mips/mips.c: Likewise.
28142 * config/mmix/mmix.c: Likewise.
28143 * config/mn10300/mn10300.c: Likewise.
28144 * config/moxie/moxie.c: Likewise.
28145 * config/msp430/msp430-c.c: Likewise.
28146 * config/msp430/msp430.c: Likewise.
28147 * config/nds32/nds32-cost.c: Likewise.
28148 * config/nds32/nds32-fp-as-gp.c: Likewise.
28149 * config/nds32/nds32-intrinsic.c: Likewise.
28150 * config/nds32/nds32-isr.c: Likewise.
28151 * config/nds32/nds32-md-auxiliary.c: Likewise.
28152 * config/nds32/nds32-memory-manipulation.c: Likewise.
28153 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
28154 * config/nds32/nds32-predicates.c: Likewise.
28155 * config/nds32/nds32.c: Likewise.
28156 * config/nios2/nios2.c: Likewise.
28157 * config/nvptx/nvptx.c: Likewise.
28158 * config/pa/pa.c: Likewise.
28159 * config/pdp11/pdp11.c: Likewise.
28160 * config/rl78/rl78-c.c: Likewise.
28161 * config/rl78/rl78.c: Likewise.
28162 * config/rs6000/rs6000-c.c: Likewise.
28163 * config/rs6000/rs6000.c: Likewise.
28164 * config/rx/rx.c: Likewise.
28165 * config/s390/s390-c.c: Likewise.
28166 * config/s390/s390.c: Likewise.
28167 * config/sh/sh-c.c: Likewise.
28168 * config/sh/sh-mem.cc: Likewise.
28169 * config/sh/sh.c: Likewise.
28170 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
28171 * config/sh/sh_treg_combine.cc: Likewise.
28172 * config/sol2-c.c: Likewise.
28173 * config/sol2-cxx.c: Likewise.
28174 * config/sol2-stubs.c: Likewise.
28175 * config/sol2.c: Likewise.
28176 * config/sparc/sparc-c.c: Likewise.
28177 * config/sparc/sparc.c: Likewise.
28178 * config/spu/spu-c.c: Likewise.
28179 * config/spu/spu.c: Likewise.
28180 * config/stormy16/stormy16.c: Likewise.
28181 * config/tilegx/mul-tables.c: Likewise.
28182 * config/tilegx/tilegx-c.c: Likewise.
28183 * config/tilegx/tilegx.c: Likewise.
28184 * config/tilepro/mul-tables.c: Likewise.
28185 * config/tilepro/tilepro-c.c: Likewise.
28186 * config/tilepro/tilepro.c: Likewise.
28187 * config/v850/v850-c.c: Likewise.
28188 * config/v850/v850.c: Likewise.
28189 * config/vax/vax.c: Likewise.
28190 * config/visium/visium.c: Likewise.
28191 * config/vms/vms-c.c: Likewise.
28192 * config/vms/vms.c: Likewise.
28193 * config/vxworks.c: Likewise.
28194 * config/winnt-c.c: Likewise.
28195 * config/xtensa/xtensa.c: Likewise.
28196 * common/config/bfin/bfin-common.c: Likewise.
28198 2015-06-04 Jan Hubicka <hubicka@ucw.cz>
28200 * tree.h (tree_code_for_canonical_type_merging): New function.
28201 * tree.c (gimple_canonical_types_compatible_p): Use
28202 tree_code_for_canonical_type_merging..
28204 2015-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28208 * doc/tm.texi: Regenerate.
28209 * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
28210 * target.def (TARGET_RELAXED_ORDERING): Likewise.
28211 * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
28212 * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
28213 * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
28214 * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
28215 * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
28216 * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
28217 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
28219 2015-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28221 * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
28222 register fma steering pass.
28223 * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
28224 AARCH64_TUNE_FMA_STEERING.
28226 2015-06-03 Jan Hubicka <hubicka@ucw.cz>
28228 * tree.c (verify_type_variant): Verify that type and variant is
28230 (gimple_canonical_types_compatible_p): Look for main variants.
28232 2015-06-03 Michael Meissner <meissner@linux.vnet.ibm.com>
28234 * config.gcc (powerpc*-*-*): Add support for a new configure
28235 option --with-advance-toolchain=<xxx> which overrides using the
28236 default header files, libraries and dynamic linker.
28238 * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
28239 specs to support the configure --with-advance-toolchain=<xxx>
28241 (INCLUDE_EXTRA_SPEC): Likewise.
28242 (LINK_OS_EXTRA_SPEC32): Likewise.
28243 (LINK_OK_EXTRA_SPEC64): Likewise.
28244 (LINK_OS_NEW_DTAGS_SPEC): Likewise.
28245 (DYNAMIC_LINKER_PREFIX): Likewise.
28246 (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
28248 (GLIBC_DYNAMIC_LINKER32): Likewise.
28249 (GLIBC_DYNAMIC_LINKER64): Likewise.
28250 (LINK_OS_LINUX_SPEC32): Likewise.
28251 (LINK_OS_LINUX_SPEC64): Likewise.
28253 * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
28254 configuration option.
28256 2015-06-03 Uros Bizjak <ubizjak@gmail.com>
28259 * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
28260 to determine current function ABI.
28261 (ix86_function_value_regno_p): Ditto.
28263 2015-06-03 Martin Liska <mliska@suse.cz>
28265 * alloc-pool.h (struct pool_usage): Correct GNU coding style.
28266 * bitmap.h (struct bitmap_usage): Likewise.
28267 * ggc-common.c (struct ggc_usage): Likewise.
28268 * mem-stats.h (struct mem_location): Likewise.
28269 (struct mem_usage): Likewise.
28270 * vec.c (struct vec_usage): Likewise.
28272 2015-06-03 Benigno B. Junior <bbj@gentoo.org>
28274 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
28277 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
28279 * doc/plugins.texi (enum plugin_event): New event.
28280 * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
28281 and PLUGIN_FINISH_FUNCTION.
28282 * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
28283 (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
28285 2015-06-03 Richard Biener <rguenther@suse.de>
28287 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
28288 compute GROUP_GAP for the first element.
28289 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
28292 2015-06-03 Nick Clifton <nickc@redhat.com>
28294 * config/rl78/rl78-real.md: Add peepholes to avoid a register
28295 copy when calling a function.
28296 * config/rl78/rl78.c (need_to_save): Do not push the frame
28297 pointer in an interrupt handler prologue if it is never used.
28299 2015-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28301 * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
28303 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
28305 * ipa-chkp.c (chkp_maybe_create_clone): Create alias
28306 reference when cloning alias node.
28308 2015-06-03 Martin Liska <mliska@suse.cz>
28310 * alloc-pool.h (struct pool_usage): Correct space padding.
28311 * ggc-page.c (ggc_print_statistics): Align columns in a report.
28312 * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
28313 * tree.c (dump_tree_statistics): Align columns in a report.
28315 2015-06-03 Martin Liska <mliska@suse.cz>
28317 * alloc-pool.c (allocate_pool_descriptor): Remove.
28318 (struct pool_output_info): Likewise.
28319 (print_alloc_pool_statistics): Likewise.
28320 (dump_alloc_pool_statistics): Likewise.
28321 * alloc-pool.h (struct pool_usage): New struct.
28322 (pool_allocator::initialize): Change usage of memory statistics
28323 to a new interface.
28324 (pool_allocator::release): Likewise.
28325 (pool_allocator::allocate): Likewise.
28326 (pool_allocator::remove): Likewise.
28327 * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
28328 for a pool allocator.
28329 * mem-stats.h (struct mem_location): Add new ctor.
28330 (struct mem_usage): Add counter for number of
28332 (mem_alloc_description::register_descriptor): New overload of
28333 * mem-stats.h (mem_location::to_string): New function.
28334 * bitmap.h (struct bitmap_usage): Use this new function.
28335 * ggc-common.c (struct ggc_usage): Likewise.
28338 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
28340 * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
28341 of GCC_INSN_FLAGS_H block.
28343 2015-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
28345 * explow.c (plus_constant): Update check after force_const_mem call
28346 to see if the value returned is not a NULL_RTX.
28348 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
28350 * ipa.c (symbol_table::remove_unreachable_nodes): Don't
28351 remove instumentation thunks calling reachable functions.
28352 * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
28353 * lto/lto-partition.c (privatize_symbol_name_1): New.
28354 (privatize_symbol_name): Privatize both decl and orig_decl
28355 names for instrumented functions.
28356 * cgraph.c (cgraph_node::verify_node): Add transparent
28357 alias chain check for instrumented node.
28359 2015-06-03 Marek Polacek <polacek@redhat.com>
28363 * tree.c (attribute_value_equal): Handle attribute format.
28364 (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
28366 2015-06-03 Richard Biener <rguenther@suse.de>
28368 PR tree-optimization/63916
28369 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
28370 Forward-propagate non-invariant addresses by splicing their
28371 reference ops if the result isn't going to be used by PRE.
28372 (vn_reference_lookup_3): Remove pointless assert.
28374 2015-06-03 Richard Biener <rguenther@suse.de>
28376 PR tree-optimization/66375
28377 * tree-scalar-evolution.c (follow_ssa_edge_binary): First
28378 add to the evolution before following SSA edges.
28380 2015-06-03 Bin Cheng <bin.cheng@arm.com>
28382 * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
28383 (dump_use, dump_cand, find_induction_variables): Pass new argument
28385 (record_use): Preserve the ssa name information in IV.
28387 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
28389 * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
28391 (add_mode_tests): Don't add mode tests if the predicate only
28392 accepts scalar constant integers. Otherwise, allow the mode
28393 of "op" to be VOIDmode if the predicate does accept such integers.
28395 2015-06-02 Jim Wilson <jim.wilson@linaro.org>
28398 * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
28399 !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
28400 (aarch64_secondary_reload): Likewise
28401 (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
28403 (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
28406 2015-06-03 Kugan Vivekanandarajah <kuganv@linaro.org>
28407 Zhenqiang Chen <zhenqiang.chen@linaro.org>
28410 * cprop.c (try_replace_reg): Check cost of constants before propagating.
28412 2015-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
28414 * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
28415 provide access to the IBM extended double floating point mode if
28416 long double is IEEE 128-bit floating point.
28417 (KFmode): Define KFmode to provide access to IEEE 128-bit floating
28418 point if long double is the IBM extended double type.
28420 * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
28421 enable adding IEEE 128-bit floating point support.
28422 (-mfloat128-software): Likewise.
28423 (-mfloat128-sw): Likewise.
28425 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
28426 128-bit floating point types to occupy any register if
28427 -mlong-double-64. Do not allow use of IFmode/KFmode unless
28428 -mfloat128-software is enabled.
28429 (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
28431 (rs6000_option_override_internal): Add -mfloat128-* support.
28432 (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
28434 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
28435 and float128 type nodes.
28436 (ieee128_float_type_node): Likewise.
28437 (ibm128_float_type_node): Likewise.
28439 2015-06-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
28442 * config/aarch64/geniterators.sh: Rewrite in awk.
28444 2015-06-02 Martin Liska <mliska@suse.cz>
28446 * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
28447 values to avoid -Wmaybe-uninitialized errors.
28449 2015-06-02 Richard Biener <rguenther@suse.de>
28452 * dwarf2out.c (lookup_context_die): New function.
28453 (resolve_addr): Avoid forcing a full DIE for the
28454 target of a DW_TAG_GNU_call_site during late compilation.
28455 Instead create a stub DIE without a type if we have a
28456 context DIE present.
28458 2015-06-02 Uros Bizjak <ubizjak@gmail.com>
28460 * df-scan.c (df_scan_start_dump): Add space between regno and regname.
28462 2015-06-02 Bin Cheng <bin.cheng@arm.com>
28464 PR tree-optimization/48052
28465 * cfgloop.h (struct control_iv): New.
28466 (struct loop): New field control_ivs.
28467 * tree-ssa-loop-niter.c : Include "stor-layout.h".
28468 (number_of_iterations_lt): Set no_overflow information.
28469 (number_of_iterations_exit): Init control iv in niter struct.
28470 (record_control_iv): New.
28471 (estimate_numbers_of_iterations_loop): Call record_control_iv.
28472 (loop_exits_before_overflow): New. Interface factored out of
28473 scev_probably_wraps_p.
28474 (scev_probably_wraps_p): Factor loop niter related code into
28475 loop_exits_before_overflow.
28476 (free_numbers_of_iterations_estimates_loop): Free control ivs.
28477 * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
28479 2015-06-02 Eric Botcazou <ebotcazou@adacore.com>
28481 * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
28482 the target doesn't belong to the current function.
28484 2015-06-02 Marek Polacek <polacek@redhat.com>
28486 PR middle-end/66345
28487 * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
28488 get_maxval_strlen does not produce an INTEGER_CST.
28490 2015-06-02 Richard Sandiford <richard.sandiford@arm.com>
28492 * config/arc/constraints.md: Use lower-case names in match_code.
28493 * config/mmix/constraints.md: Likewise.
28495 2015-06-02 Richard Biener <rguenther@suse.de>
28497 PR tree-optimization/65961
28498 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
28499 check and clarify dump message.
28500 (vect_build_slp_tree): If all children are built up from scalars
28501 build up the parent from scalars instead.
28502 * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
28504 2015-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
28507 * gdbhooks.py: Use int(...) instead of long(...). Use print(...)
28508 instead of print ... .
28510 2015-06-02 Alan Modra <amodra@gmail.com>
28512 * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
28515 2015-06-02 Bin Cheng <bin.cheng@arm.com>
28517 PR tree-optimization/52563
28518 PR tree-optimization/62173
28519 * tree-ssa-loop-ivopts.c (struct iv): New field. Reorder fields.
28520 (alloc_iv, set_iv): New parameter.
28521 (determine_biv_step): Delete.
28522 (find_bivs): Inline original determine_biv_step. Pass new
28523 argument to set_iv.
28524 (idx_find_step): Use no_overflow information for conversion.
28525 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
28526 resolve_mixers handle folded_casts.
28527 (instantiate_scev_name): Change bool parameter to bool pointer.
28528 (instantiate_scev_poly, instantiate_scev_binary): Ditto.
28529 (instantiate_array_ref, instantiate_scev_not): Ditto.
28530 (instantiate_scev_3, instantiate_scev_2): Ditto.
28531 (instantiate_scev_1, instantiate_scev_r): Ditto.
28532 (instantiate_scev_convert, ): Change parameter. Pass argument
28533 to chrec_convert_aggressive.
28534 (instantiate_scev): Change argument.
28535 (resolve_mixers): New parameter and set it.
28536 (scev_const_prop): New argument.
28537 * tree-scalar-evolution.h (resolve_mixers): New parameter.
28538 * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
28540 (chrec_convert): New parameter. Move definition below.
28541 (chrec_convert_aggressive): New parameter and set it. Call
28542 convert_affine_scev.
28543 * tree-chrec.h (chrec_convert): New parameter.
28544 (chrec_convert_aggressive): Ditto.
28546 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
28548 * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
28549 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
28550 the LHS of a no-return call if its type has variable size.
28551 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
28552 * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
28554 2015-06-01 Andreas Tobler <andreast@gcc.gnu.org>
28556 * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
28557 * config.in: Regenerate.
28559 2015-06-01 Yuri Rumyantsev <ysrumyan@gmail.com>
28561 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
28562 consecutive accesses within outer-loop with force_vectorize
28563 for references with zero step in inner-loop.
28565 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
28567 * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
28568 rather than from gcc/build directory.
28570 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
28573 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
28574 for __sync memory models, emit initial loads and final barriers as
28577 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
28580 * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
28581 (aarch64_split_atomic_op): Check for __sync memory models, emit
28582 appropriate initial loads and final barriers.
28584 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
28586 * Makefile.in: Fix gcov dependencies that should
28587 not point to a build folder.
28589 2015-06-01 Richard Biener <rguenther@suse.de>
28592 2015-05-29 Richard Biener <rguenther@suse.de>
28594 PR tree-optimization/66314
28595 * tree-ssa-threadupdate.c (create_block_for_threading): Add
28596 parameter that says which loop the new block belongs to.
28597 (ssa_create_duplicates): Blocks duplicated for the threaded
28598 path belong to the loop of the thread destination.
28600 2015-06-01 Martin Liska <mliska@suse.cz>
28602 * sched-deps.c: Include pool-alloc.h before
28603 cselib.h header file is included.
28605 2015-06-01 Richard Biener <rguenther@suse.de>
28607 * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
28610 2015-06-01 Martin Liska <mliska@suse.cz>
28612 * alloc-pool.h: Add ATTRIBUTE_UNUSED for
28613 a function local variable.
28615 2015-06-01 Martin Liska <mliska@suse.cz>
28617 * alloc-pool.c (create_alloc_pool): Remove.
28618 (empty_alloc_pool): Likewise.
28619 (free_alloc_pool): Likewise.
28620 (free_alloc_pool_if_empty): Likewise.
28621 (pool_alloc): Likewise.
28622 (pool_free): Likewise.
28623 * alloc-pool.h: Remove old declarations.
28625 2015-06-01 Martin Liska <mliska@suse.cz>
28627 * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
28628 (ira_create_object): Likewise.
28629 (ira_create_allocno): Likewise.
28630 (ira_create_live_range): Likewise.
28631 (copy_live_range): Likewise.
28632 (ira_finish_live_range): Likewise.
28633 (ira_free_allocno_costs): Likewise.
28634 (finish_allocno): Likewise.
28635 (finish_allocnos): Likewise.
28636 (initiate_prefs): Likewise.
28637 (ira_create_pref): Likewise.
28638 (finish_pref): Likewise.
28639 (finish_prefs): Likewise.
28640 (initiate_copies): Likewise.
28641 (ira_create_copy): Likewise.
28642 (finish_copy): Likewise.
28643 (finish_copies): Likewise.
28644 (finish_prefs): Likewise.
28646 2015-06-01 Martin Liska <mliska@suse.cz>
28648 * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
28649 (allocate_and_init_ipcp_value): Likewise.
28650 (ipcp_lattice::add_value): Likewise.
28651 (merge_agg_lats_step): Likewise.
28652 (ipcp_driver): Likewise.
28653 * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
28654 (ipa_free_all_structures_after_iinln): Likewise.
28655 * ipa-prop.h: Likewise.
28657 2015-06-01 Martin Liska <mliska@suse.cz>
28659 * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
28661 (set_hint_predicate): Likewise.
28662 (inline_summary_alloc): Likewise.
28663 (reset_inline_edge_summary): Likewise.
28664 (reset_inline_summary): Likewise.
28665 (set_cond_stmt_execution_predicate): Likewise.
28666 (set_switch_stmt_execution_predicate): Likewise.
28667 (compute_bb_predicates): Likewise.
28668 (estimate_function_body_sizes): Likewise.
28669 (inline_free_summary): Likewise.
28671 2015-06-01 Martin Liska <mliska@suse.cz>
28673 * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
28674 (ipa_edge_duplication_hook): Likewise.
28675 (ipa_free_all_structures_after_ipa_cp): Likewise.
28676 (ipa_free_all_structures_after_iinln): Likewise.
28678 2015-06-01 Martin Liska <mliska@suse.cz>
28680 * ipa-profile.c (account_time_size): Use new type-based pool allocator.
28681 (ipa_profile_generate_summary): Likewise.
28682 (ipa_profile_read_summary): Likewise.
28683 (ipa_profile): Likewise.
28685 2015-06-01 Martin Liska <mliska@suse.cz>
28687 * tree-ssa-structalias.c (new_var_info): Use new type-based
28689 (new_constraint): Likewise.
28690 (init_alias_vars): Likewise.
28691 (delete_points_to_sets): Likewise.
28693 2015-06-01 Martin Liska <mliska@suse.cz>
28695 * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
28696 (free_strinfo): Likewise.
28697 (pass_strlen::execute): Likewise.
28699 2015-06-01 Martin Liska <mliska@suse.cz>
28701 * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
28703 (vn_reference_insert_pieces): Likewise.
28704 (vn_phi_insert): Likewise.
28705 (visit_reference_op_call): Likewise.
28706 (copy_phi): Likewise.
28707 (copy_reference): Likewise.
28708 (process_scc): Likewise.
28709 (allocate_vn_table): Likewise.
28710 (free_vn_table): Likewise.
28712 2015-06-01 Martin Liska <mliska@suse.cz>
28714 * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
28716 (add_repeat_to_ops_vec): Likewise.
28717 (get_ops): Likewise.
28718 (maybe_optimize_range_tests): Likewise.
28719 (init_reassoc): Likewise.
28720 (fini_reassoc): Likewise.
28722 2015-06-01 Martin Liska <mliska@suse.cz>
28724 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
28726 (bitmap_set_new): Likewise.
28727 (get_or_alloc_expr_for_constant): Likewise.
28728 (get_or_alloc_expr_for): Likewise.
28729 (phi_translate_1): Likewise.
28730 (compute_avail): Likewise.
28731 (init_pre): Likewise.
28732 (fini_pre): Likewise.
28734 2015-06-01 Martin Liska <mliska@suse.cz>
28736 * sched-deps.c (create_dep_node): Use new type-based pool allocator.
28737 (delete_dep_node): Likewise.
28738 (create_deps_list): Likewise.
28739 (free_deps_list): Likewise.
28740 (sched_deps_init): Likewise.
28741 (sched_deps_finish): Likewise.
28743 2015-06-01 Martin Liska <mliska@suse.cz>
28745 * regcprop.c (free_debug_insn_changes): Use new type-based
28747 (replace_oldest_value_reg): Likewise.
28748 (pass_cprop_hardreg::execute): Likewise.
28750 2015-06-01 Martin Liska <mliska@suse.cz>
28752 * ira-build.c (initiate_cost_vectors): Use new type-based
28754 (ira_allocate_cost_vector): Likewise.
28755 (ira_free_cost_vector): Likewise.
28756 (finish_cost_vectors): Likewise.
28758 2015-06-01 Martin Liska <mliska@suse.cz>
28760 * sel-sched-ir.c (alloc_sched_pools): Use new type-based
28762 (free_sched_pools): Likewise.
28763 * sel-sched-ir.h (_list_alloc): Likewise.
28764 (_list_remove): Likewise.
28766 2015-06-01 Martin Liska <mliska@suse.cz>
28768 * stmt.c (add_case_node): Use new type-based pool allocator.
28769 (expand_case): Likewise.
28770 (expand_sjlj_dispatch_table): Likewise.
28772 2015-06-01 Martin Liska <mliska@suse.cz>
28774 * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
28775 (free_bb): Likewise.
28776 (pass_cse_reciprocals::execute): Likewise.
28778 2015-06-01 Martin Liska <mliska@suse.cz>
28780 * tree-sra.c (sra_initialize): Use new type-based pool allocator.
28781 (sra_deinitialize) Likewise.
28782 (create_access_1) Likewise.
28783 (build_accesses_from_assign) Likewise.
28784 (create_artificial_child_access) Likewise.
28786 2015-06-01 Martin Liska <mliska@suse.cz>
28788 * dse.c (get_group_info):Use new type-based pool allocator.
28789 (dse_step0) Likewise.
28790 (free_store_info) Likewise.
28791 (delete_dead_store_insn) Likewise.
28792 (free_read_records) Likewise.
28793 (record_store) Likewise.
28794 (replace_read) Likewise.
28795 (check_mem_read_rtx) Likewise.
28796 (scan_insn) Likewise.
28797 (dse_step1) Likewise.
28798 (dse_step7) Likewise.
28800 2015-06-01 Martin Liska <mliska@suse.cz>
28802 * df-scan.c (struct df_scan_problem_data):Use new type-based
28804 (df_scan_free_internal) Likewise.
28805 (df_scan_alloc) Likewise.
28806 (df_grow_reg_info) Likewise.
28807 (df_free_ref) Likewise.
28808 (df_insn_create_insn_record) Likewise.
28809 (df_mw_hardreg_chain_delete) Likewise.
28810 (df_insn_info_delete) Likewise.
28811 (df_free_collection_rec) Likewise.
28812 (df_mw_hardreg_chain_delete_eq_uses) Likewise.
28813 (df_sort_and_compress_mws) Likewise.
28814 (df_ref_create_structure) Likewise.
28815 (df_ref_record) Likewise.
28817 2015-06-01 Martin Liska <mliska@suse.cz>
28819 * df-problems.c (df_chain_create):Use new type-based pool allocator.
28820 (df_chain_unlink_1) Likewise.
28821 (df_chain_unlink) Likewise.
28822 (df_chain_remove_problem) Likewise.
28823 (df_chain_alloc) Likewise.
28824 (df_chain_free) Likewise.
28825 * df.h (struct dataflow) Likewise.
28827 2015-06-01 Martin Liska <mliska@suse.cz>
28829 * cselib.c (new_elt_list):Use new type-based pool allocator.
28830 (new_elt_loc_list) Likewise.
28831 (unchain_one_elt_list) Likewise.
28832 (unchain_one_elt_loc_list) Likewise.
28833 (unchain_one_value) Likewise.
28834 (new_cselib_val) Likewise.
28835 (cselib_init) Likewise.
28836 (cselib_finish) Likewise.
28838 2015-06-01 Martin Liska <mliska@suse.cz>
28840 * config/sh/sh.c (add_constant):Use new type-based pool allocator.
28841 (sh_reorg) Likewise.
28843 2015-06-01 Martin Liska <mliska@suse.cz>
28845 * cfg.c (initialize_original_copy_tables):Use new type-based
28847 (free_original_copy_tables) Likewise.
28848 (copy_original_table_clear) Likewise.
28849 (copy_original_table_set) Likewise.
28851 2015-06-01 Martin Liska <mliska@suse.cz>
28853 * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
28855 (asan_mem_ref_new) Likewise.
28856 (free_mem_ref_resources) Likewise.
28858 2015-06-01 Martin Liska <mliska@suse.cz>
28860 * var-tracking.c (variable_htab_free):Use new type-based
28862 (attrs_list_clear) Likewise.
28863 (attrs_list_insert) Likewise.
28864 (attrs_list_copy) Likewise.
28865 (shared_hash_unshare) Likewise.
28866 (shared_hash_destroy) Likewise.
28867 (unshare_variable) Likewise.
28868 (var_reg_delete_and_set) Likewise.
28869 (var_reg_delete) Likewise.
28870 (var_regno_delete) Likewise.
28871 (drop_overlapping_mem_locs) Likewise.
28872 (variable_union) Likewise.
28873 (insert_into_intersection) Likewise.
28874 (canonicalize_values_star) Likewise.
28875 (variable_merge_over_cur) Likewise.
28876 (dataflow_set_merge) Likewise.
28877 (remove_duplicate_values) Likewise.
28878 (variable_post_merge_new_vals) Likewise.
28879 (dataflow_set_preserve_mem_locs) Likewise.
28880 (dataflow_set_remove_mem_locs) Likewise.
28881 (variable_from_dropped) Likewise.
28882 (variable_was_changed) Likewise.
28883 (set_slot_part) Likewise.
28884 (clobber_slot_part) Likewise.
28885 (delete_slot_part) Likewise.
28886 (loc_exp_insert_dep) Likewise.
28887 (notify_dependents_of_changed_value) Likewise.
28888 (emit_notes_for_differences_1) Likewise.
28889 (vt_emit_notes) Likewise.
28890 (vt_initialize) Likewise.
28891 (vt_finalize) Likewise.
28893 2015-06-01 Martin Liska <mliska@suse.cz>
28895 * ira-color.c (init_update_cost_records):Use new type-based
28897 (get_update_cost_record) Likewise.
28898 (free_update_cost_record_list) Likewise.
28899 (finish_update_cost_records) Likewise.
28900 (initiate_cost_update) Likewise.
28902 2015-06-01 Martin Liska <mliska@suse.cz>
28904 * lra.c (init_insn_regs): Use new type-based pool allocator.
28905 (new_insn_reg) Likewise.
28906 (free_insn_reg) Likewise.
28907 (free_insn_regs) Likewise.
28908 (finish_insn_regs) Likewise.
28909 (init_insn_recog_data) Likewise.
28910 (init_reg_info) Likewise.
28911 (finish_reg_info) Likewise.
28912 (lra_free_copies) Likewise.
28913 (lra_create_copy) Likewise.
28914 (invalidate_insn_data_regno_info) Likewise.
28916 2015-06-01 Martin Liska <mliska@suse.cz>
28918 * lra-lives.c (free_live_range): Use new type-based pool allocator.
28919 (free_live_range_list) Likewise.
28920 (create_live_range) Likewise.
28921 (copy_live_range) Likewise.
28922 (lra_merge_live_ranges) Likewise.
28923 (remove_some_program_points_and_update_live_ranges) Likewise.
28924 (lra_live_ranges_init) Likewise.
28925 (lra_live_ranges_finish) Likewise.
28927 2015-06-01 Martin Liska <mliska@suse.cz>
28929 * et-forest.c (et_new_occ): Use new type-based pool allocator.
28930 (et_new_tree): Likewise.
28931 (et_free_tree): Likewise.
28932 (et_free_tree_force): Likewise.
28933 (et_free_pools): Likewise.
28934 (et_split): Likewise.
28936 2015-06-01 Martin Liska <mliska@suse.cz>
28938 * alloc-pool.c (struct alloc_pool_descriptor): Move definition
28940 * alloc-pool.h (pool_allocator::pool_allocator): New function.
28941 (pool_allocator::release): Likewise.
28942 (inline pool_allocator::release_if_empty): Likewise.
28943 (inline pool_allocator::~pool_allocator): Likewise.
28944 (pool_allocator::allocate): Likewise.
28945 (pool_allocator::remove): Likewise.
28947 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
28949 * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
28952 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
28954 * config/arm/arm-protos.h (tune_params): Rename fuseable_ops
28956 * config/arm/arm.c (arm_print_tune_info): Likewise.
28957 (arm_macro_fusion_p): Likewise.
28958 (arm_macro_fusion_pair_p): Likewise.
28960 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
28962 * config/aarch64/aarch64-protos.h (tune_params): Rename
28963 fuseable_ops to fusible_ops.
28964 * config/aarch64/aarch64.c (generic_tunings): Rename
28965 fuseable_ops to fusible_ops.
28966 (cortexa53_tunings): Likewise.
28967 (cortexa57_tunings): Likewise.
28968 (thunderx_tunings): Likewise.
28969 (xgene1_tunings): Likewise.
28970 (aarch64_macro_fusion_p): Likewise.
28971 (aarch64_macro_fusion_pair_p): Likewise.
28973 2015-06-01 Dominik Vogt <vogt@linux.vnet.ibm.com>
28975 * config/s390/driver-native.c: New file.
28976 * config/s390/x-native: New file.
28977 * config.host: Add new files for s390.
28978 * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
28980 * config.gcc: Likewise.
28981 * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
28982 * config/s390/s390-opts.h (enum processor_type): Ditto.
28983 * config/s390/s390.c (s390_option_override): Catch unhandled
28986 2015-06-01 Ilya Enkovich <ilya.enkovich@intel.com>
28989 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
28990 redirection for instrumented calls.
28991 * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
28992 (append_compiler_options): Append -fcheck-pointer-bounds.
28993 * tree-chkp.h (chkp_copy_call_skip_bounds): New.
28994 (chkp_redirect_edge): New.
28995 * tree-chkp.c (chkp_copy_call_skip_bounds): New.
28996 (chkp_redirect_edge): New.
28998 2015-06-01 Richard Biener <rguenther@suse.de>
29000 PR tree-optimization/66280
29001 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
29004 2015-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29006 * config/aarch64/aarch64.md
29007 (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
29010 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
29012 * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
29013 Remove obsolete kludge.
29015 2015-06-01 Richard Biener <rguenther@suse.de>
29017 * tree-ssa-reassoc.c (get_rank): Simplify.
29019 2015-05-31 H.J. Lu <hongjiu.lu@intel.com>
29021 * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
29022 * configure: Regenerated.
29024 2015-05-31 Mikhail Maltsev <maltsevm@gmail.com>
29026 * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
29027 issue (add space between string literal and macro).
29028 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
29030 2015-05-30 Andreas Schwab <schwab@linux-m68k.org>
29032 * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
29033 implict or explicit -fPIE or -fpie.
29035 2015-05-30 Mike Frysinger <vapier@gentoo.org>
29037 * config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
29039 2015-05-28 DJ Delorie <dj@redhat.com>
29041 * expmed.c (extract_bit_field_1): Avoid clobbering a
29042 yet-to-be-used base/index register.
29044 2015-05-30 Jan Hubicka <hubicka@ucw.cz>
29046 * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
29047 (alias_stats): Add num_universal.
29048 (alias_set_subset_of): Special case pointers; be ready for NULL
29050 (alias_sets_conflict_p): Special case pointers; be ready for NULL
29052 (init_alias_set_entry): Break out from ...
29053 (record_alias_subset): ... here; propagate new fields;
29054 allocate children only when really needed.
29055 (get_alias_set): Do less generous pointer globbing.
29056 (dump_alias_stats_in_alias_c): Update statistics.
29058 2015-05-30 Alan Modra <amodra@gmail.com>
29060 * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
29061 correct block for use of r12.
29062 (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
29064 2015-05-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
29067 * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
29070 2015-05-29 Jakub Jelinek <jakub@redhat.com>
29072 PR tree-optimization/66142
29073 * tree-if-conv.c (if_convertible_phi_p): Don't give up on
29074 virtual phis that feed themselves.
29076 2015-05-29 Richard Biener <rguenther@suse.de>
29078 PR tree-optimization/66314
29079 * tree-ssa-threadupdate.c (create_block_for_threading): Add
29080 parameter that says which loop the new block belongs to.
29081 (ssa_create_duplicates): Blocks duplicated for the threaded
29082 path belong to the loop of the thread destination.
29084 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
29086 * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
29087 to cleanup-saved-temps.
29088 * doc/sourcebuild.texi (Clean up generated test files): Expand
29090 (dg-keep-saved-temps): Document new proc.
29091 (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
29092 cleanup-saved-temps): Remove.
29094 2015-05-28 Andreas Tobler <andreast@gcc.gnu.org>
29096 * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
29097 gcc_AC_CHECK_DECLS.
29098 * configure: Regenerate.
29100 2015-05-28 Mike Frysinger <vapier@gentoo.org>
29102 * config/nios2/linux.h (CPP_SPEC): Define.
29104 2015-05-28 Mike Frysinger <vapier@gentoo.org>
29106 * config/microblaze/linux.h (CPP_SPEC): Define.
29108 2015-05-28 Mike Frysinger <vapier@gentoo.org>
29110 * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
29111 -pthread is specified.
29113 2015-05-28 Richard Biener <rguenther@suse.de>
29115 * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
29116 (vect_fixup_scalar_cycles_with_patterns): Likewise.
29117 (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
29118 after pattern recog.
29119 (vect_create_epilog_for_reduction): Properly handle reductions
29121 (vectorizable_reduction): Likewise.
29122 * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
29124 (vect_get_constant_vectors): Create the correct number of
29125 initial values for reductions.
29126 (vect_schedule_slp_instance): Handle reduction chains that are
29127 type changing properly.
29128 * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
29130 2015-05-28 Richard Biener <rguenther@suse.de>
29132 PR tree-optimization/66142
29133 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
29134 values better in memcpy destination handling. Handle non-aliasing
29137 2015-05-28 Lawrence Velázquez <vq@larryv.me>
29140 * config/darwin-c.c (version_components): New global enum.
29141 (parse_version, version_as_legacy_macro)
29142 (version_as_modern_macro, macosx_version_as_macro): New functions.
29143 (version_as_macro): Remove.
29144 (darwin_cpp_builtins): Use new function.
29146 2015-05-28 H.J. Lu <hongjiu.lu@intel.com>
29148 * builtins.c (expand_builtin_acc_on_device): Mark parameters
29149 with ATTRIBUTE_UNUSED.
29151 2015-05-28 Julian Brown <julian@codesourcery.com>
29155 * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
29156 sequence for !ACCEL_COMPILER.
29158 2015-05-28 Nick Clifton <nickc@redhat.com>
29160 * config/rx/rx.c (push_regs): New function. Extracts code from...
29161 (rx_expand_prologue): ... here. Use push_regs to push even small
29162 spans of registers.
29163 (pop_regs): New function.
29164 (rx_expand_epilogue): Use pop_regs to pop even small spans of
29167 2015-05-28 Richard Biener <rguenther@suse.de>
29169 * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
29171 (SLP_INSTANCE_BODY_COST_VEC): Remove.
29172 (vect_update_slp_costs_according_to_vf): Likewise.
29173 (vect_slp_analyze_operations): Update prototype.
29174 * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
29175 vect_update_slp_costs_according_to_vf, adjust.
29176 * tree-vect-slp.c (vect_free_slp_instance): Adjust.
29177 (vect_analyze_slp_cost_1): Likewise.
29178 (vect_analyze_slp_cost): Likewise. Properly deal with
29179 widening reduction ops. Commit body costs.
29180 (vect_analyze_slp_instance): Adjust. Do not analyze SLP
29181 cost for loops from here.
29182 (vect_slp_analyze_operations): But do it from here when
29183 the vectorization factor is known and stmts are analyzed.
29184 (vect_bb_vectorization_profitable_p): Simplify.
29185 (vect_slp_analyze_bb_1): Do not compute SLP cost here.
29186 (vect_update_slp_costs_according_to_vf): Remove.
29188 2015-05-27 Magnus Granberg <zorry@gentoo.org>
29189 H.J. Lu <hongjiu.lu@intel.com>
29191 * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
29192 (BUILD_CFLAGS): Likewise.
29193 (BUILD_CXXFLAGS): Likewise.
29194 (LINKER): Add @NO_PIE_FLAG@.
29195 (BUILD_LDFLAGS): Likewise.
29196 (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
29197 --enable-default-pie.
29198 * common.opt (fPIE): Initialize to -1.
29200 (no-pie): New option.
29201 (pie): Replace "Negative(shared)" with "Negative(no-pie)".
29202 * configure.ac: Add --enable-default-pie.
29203 (NO_PIE_CFLAGS): New. Check if -fno-PIE works. AC_SUBST.
29204 (NO_PIE_FLAG): New. Check if -no-pie works. AC_SUBST.
29205 * defaults.h (DEFAULT_FLAG_PIE): New. Default PIE to -fPIE.
29206 * gcc.c (NO_PIE_SPEC): New.
29207 (PIE_SPEC): Likewise.
29208 (NO_FPIE1_SPEC): Likewise.
29209 (FPIE1_SPEC): Likewise.
29210 (NO_FPIE2_SPEC): Likewise.
29211 (FPIE2_SPEC): Likewise.
29212 (NO_FPIE2_SPEC): Likewise.
29213 (FPIE_SPEC): Likewise.
29214 (NO_FPIE_SPEC): Likewise.
29215 (NO_FPIC1_SPEC): Likewise.
29216 (FPIC1_SPEC): Likewise.
29217 (NO_FPIC2_SPEC): Likewise.
29218 (FPIC2_SPEC): Likewise.
29219 (NO_FPIC2_SPEC): Likewise.
29220 (FPIC_SPEC): Likewise.
29221 (NO_FPIC_SPEC): Likewise.
29222 (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
29223 (FPIE1_OR_FPIC1_SPEC): Likewise.
29224 (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
29225 (FPIE2_OR_FPIC2_SPEC): Likewise.
29226 (NO_FPIE_AND_FPIC_SPEC): Likewise.
29227 (FPIE_OR_FPIC_SPEC): Likewise.
29228 (LD_PIE_SPEC): Likewise.
29229 (LINK_PIE_SPEC): Handle -no-pie. Use PIE_SPEC and LD_PIE_SPEC.
29230 * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
29231 * config/darwin.h (PIE_SPEC): Renamed to ...
29232 (DARWIN_PIE_SPEC): This.
29233 (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
29234 * config/darwin9.h (PIE_SPEC): Renamed to ...
29235 (DARWIN_PIE_SPEC): This.
29236 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
29237 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
29238 * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
29239 FPIE2_OR_FPIC2_SPEC.
29240 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
29241 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
29242 * config/sol2.h (ASM_PIC_SPEC): Likewise.
29243 * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
29244 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
29245 * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
29246 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
29247 * config/m32r/m32r.h (ASM_SPEC): Likewise.
29248 * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
29249 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
29250 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
29251 * config/sparc/freebsd.h (ASM_SPEC): Likewise.
29252 * config/sparc/linux.h (ASM_SPEC): Likewise.
29253 * config/sparc/linux64.h (ASM_SPEC): Likewise.
29254 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
29255 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
29256 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
29257 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
29258 * config/sparc/sparc.h (ASM_SPEC): Likewise.
29259 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
29260 * config/sparc/vxworks.h (ASM_SPEC): Likewise.
29261 * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
29262 FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
29263 * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
29264 * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
29265 NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
29266 (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
29267 * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
29268 * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
29269 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
29270 * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
29271 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
29272 * config/vax/linux.h (ASM_SPEC): Likewise.
29273 * doc/install.texi: Document --enable-default-pie.
29274 * doc/invoke.texi: Document -no-pie.
29275 * config.in: Regenerated.
29276 * configure: Likewise.
29278 2015-05-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
29280 PR rtl-optimization/66168
29281 * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
29282 can_move_invariant_reg.
29284 2015-05-27 John David Anglin <danglin@gcc.gnu.org>
29287 * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
29288 REG_EQUAL note when doing insert.
29290 * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
29291 instead of "%d" for 'o' operand.
29293 2015-05-27 Nathan Sidwell <nathan@acm.org>
29296 * tree.c (build_pointer_type_for_mode): Canonical type does not
29297 inherit can_alias_all.
29298 (build_reference_type_for_mode): Likewise.
29300 2015-05-27 Eric Botcazou <ebotcazou@adacore.com>
29302 * expr.h (array_at_struct_end_p): Move to...
29303 (array_ref_element_size): Likewise.
29304 (component_ref_field_offset): Likewise.
29305 * tree.h (array_ref_element_size): ...here.
29306 (array_at_struct_end_p): Likewise.
29307 (component_ref_field_offset): Likewise.
29308 * expr.c (array_ref_element_size): Move to...
29309 (array_ref_low_bound): Likewise.
29310 (array_at_struct_end_p): Likewise.
29311 (array_ref_up_bound): Likewise.
29312 (component_ref_field_offset): Likewise.
29313 * tree.c (array_ref_element_size): ...here.
29314 (array_ref_low_bound): Likewise.
29315 (array_ref_up_bound): Likewise.
29316 (array_at_struct_end_p): Likewise.
29317 (component_ref_field_offset): Likewise.
29319 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
29320 Szabolcs Nagy <szabolcs.nagy@arm.com>
29322 * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
29324 2015-05-27 Jason Merrill <jason@redhat.com>
29327 * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
29328 ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
29329 ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
29331 2015-05-22 Aditya Kumar <hiraditya@msn.com>
29333 * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
29336 * statistics.c (statistics_fini_pass): Print pass name.
29338 2015-05-27 Richard Biener <rguenther@suse.de>
29340 PR tree-optimization/66272
29342 2014-08-15 Richard Biener <rguenther@suse.de>
29344 PR tree-optimization/62031
29345 * tree-data-ref.c (dr_analyze_indices): Do not set
29346 DR_UNCONSTRAINED_BASE.
29347 (dr_may_alias_p): All indirect accesses have to go the
29348 formerly DR_UNCONSTRAINED_BASE path.
29349 * tree-data-ref.h (struct indices): Remove
29350 unconstrained_base member.
29351 (DR_UNCONSTRAINED_BASE): Remove.
29353 2015-05-27 Aldy Hernandez <aldyh@redhat.com>
29355 * dwarf2out.c: Remove block_map.
29356 (gen_call_site_die): Replace block_map use with BLOCK_DIE.
29357 (gen_lexical_block_die): Same.
29358 (dwarf2out_function_decl): Remove block_map use.
29359 (dwarf2out_c_finalize): Same.
29360 * tree-core.h (struct tree_block): Add die field.
29361 * tree.h (BLOCK_DIE): New.
29363 2015-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29366 * expr.c (memory_load_overlap): New function.
29367 (emit_push_insn): When pushing partial args to the stack would
29368 clobber the register part load the overlapping part into a pseudo
29369 and put it into the hard reg after pushing. Change return type
29370 to bool. Add bool argument.
29371 * expr.h (emit_push_insn): Change return type to bool.
29373 * calls.c (expand_call): Cancel sibcall optimization when encountering
29374 partial argument on targets with ARGS_GROW_DOWNWARD and
29375 !STACK_GROWS_DOWNWARD.
29376 (emit_library_call_value_1): Update callsite of emit_push_insn.
29377 (store_one_arg): Likewise.
29379 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
29381 * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
29383 2015-05-27 Martin Liska <mliska@suse.cz>
29385 * Makefile.in: Add additional dependencies related to memory report
29387 * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
29388 * bitmap.c (struct bitmap_descriptor_d): Remove.
29389 (struct loc): Likewise.
29390 (struct bitmap_desc_hasher): Likewise.
29391 (bitmap_desc_hasher::hash): Likewise.
29392 (bitmap_desc_hasher::equal): Likewise.
29393 (get_bitmap_descriptor): Likewise.
29394 (bitmap_register): User new memory descriptor API.
29395 (register_overhead): Likewise.
29396 (bitmap_find_bit): Register nsearches and search_iter statistics.
29397 (struct bitmap_output_info): Remove.
29398 (print_statistics): Likewise.
29399 (dump_bitmap_statistics): Use new memory descriptor.
29400 * bitmap.h (struct bitmap_usage): New class.
29401 * genmatch.c: Extend header file inclusion.
29402 * genpreds.c: Likewise.
29403 * ggc-common.c (struct ggc_usage): New class.
29404 (struct ggc_loc_desc_hasher): Remove.
29405 (ggc_loc_desc_hasher::hash): Likewise.
29406 (ggc_loc_desc_hasher::equal): Likewise.
29407 (struct ggc_ptr_hash_entry): Likewise.
29408 (struct ptr_hash_hasher): Likewise.
29409 (ptr_hash_hasher::hash): Likewise.
29410 (ptr_hash_hasher::equal): Likewise.
29411 (make_loc_descriptor): Likewise.
29412 (ggc_prune_ptr): Likewise.
29413 (dump_ggc_loc_statistics): Use new memory descriptor.
29414 (ggc_record_overhead): Likewise.
29415 (ggc_free_overhead): Likewise.
29416 (final_cmp_statistic): Remove.
29417 (cmp_statistic): Likewise.
29418 (ggc_add_statistics): Liekwise.
29419 (ggc_prune_overhead_list): Likewise.
29420 * hash-map-traits.h: New file.
29421 * hash-map.h (struct default_hashmap_traits): Move the traits to a
29422 separate header file.
29423 * hash-set.h: Pass memory statistics info to ctor.
29424 * hash-table.c (void dump_hash_table_loc_statistics): New function.
29425 * hash-table.h (hash_table::hash_table): Add new ctor arguments.
29426 (hash_table::~hash_table): Register memory release operation.
29427 (hash_table::alloc_entries): Handle memory allocation operation.
29428 (hash_table::expand): Likewise.
29429 * inchash.c (iterative_hash_hashval_t): Move implementation to header
29431 (iterative_hash_host_wide_int): Likewise.
29432 * inchash.h (class hash): Likewise.
29433 * mem-stats-traits.h: New file.
29434 * mem-stats.h: New file.
29435 (mem_location): Add new class.
29436 (mem_usage): Likewise.
29437 (mem_alloc_description): Likewise.
29438 * sese.c: Add new header file inclusision.
29439 * toplev.c (dump_memory_report): Add report for hash_table, hash_map
29441 * tree-sra.c: Add new header file inclusision.
29442 * vec.c (struct vec_descriptor): Remove.
29443 (hash_descriptor): Likewise.
29444 (struct vec_usage): Likewise.
29445 (struct ptr_hash_entry): Likewise.
29446 (hash_ptr): Likewise.
29447 (eq_ptr): Likewise.
29448 (vec_prefix::register_overhead): Use new memory descriptor API.
29449 (vec_prefix::release_overhead): Likewise.
29450 (add_statistics): Remove.
29451 (dump_vec_loc_statistics): Use new memory descriptor API.
29452 * vec.h (struct vec_prefix): Likewise.
29453 (va_heap::reserve): Likewise.
29454 (va_heap::release): Likewise.
29455 * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
29457 2015-05-27 Richard Biener <rguenther@suse.de>
29459 * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
29460 earlier and remove ??? comment.
29461 (vect_analyze_stmt): If we are analyzing a pure SLP stmt
29462 and got called from loop analysis bail out. Always pass the SLP
29463 node to the vectorizable_* functions.
29464 * tree-vect-loop.c (vect_analyze_loop_operations): Remove
29465 the premature SLP check here.
29466 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
29467 detected SLP stmts.
29468 (vect_detect_hybrid_slp_1): Likewise.
29470 2015-05-26 Jeff Law <law@redhat.com>
29472 * combine.c (find_split_point): Verify that the shift count is a
29473 constant when choosing (plus (ashift ...)) as a split point.
29475 * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
29476 No functional changes.
29478 2015-05-26 Jan Hubicka <hubicka@ucw.cz>
29480 * ipa-polymorphic-call.c
29481 (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
29482 case when call target is already known.
29484 2015-05-26 Oleg Endo <olegendo@gcc.gnu.org>
29487 * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
29488 take into account the case that operands[1] and operands[2]
29489 are the same register.
29491 2015-05-26 Michael Matz <matz@suse.de>
29493 PR middle-end/66251
29495 * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
29497 (vect_create_vectorized_demotion_stmts): Always set
29498 STMT_VINFO_VEC_STMT, also with SLP.
29499 (vectorizable_store): Handle strided group stores.
29501 2015-05-26 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
29504 * config/aarch64/aarch64.md
29505 (*adds_shift_imm_<mode>): New pattern.
29506 (*subs_shift_imm_<mode>): Likewise.
29507 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
29508 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
29509 (*add_uxt<mode>_shift2): Likewise.
29510 (*add_uxtsi_shift2_uxtw): Likewise.
29511 (*sub_uxt<mode>_shift2): Likewise.
29512 (*sub_uxtsi_shift2_uxtw): Likewise.
29514 2015-05-26 David Edelsohn <dje.gcc@gmail.com>
29516 * config/rs6000/constraints.md (Y, U): Use match_test.
29518 2015-05-26 Christian Bruel <christian.bruel@st.com>
29521 * config/arm/arm.c (arm_option_check_internal)
29522 (arm_option_params_internal): Check opts->target_flags to set macros.
29523 (TREE_TARGET_ARM, TREE_TARGET_THUMB)
29524 (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
29525 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
29526 (builtin_define): Replaced with def_or_undef_macro.
29527 * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
29528 TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
29529 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
29530 (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
29531 (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
29532 (TARGET_ARM_FEATURE_LDREX_P)
29533 (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
29534 * config/arm/arm-c.c (def_or_undef_macro): New function.
29535 (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
29537 2015-05-26 Christian Bruel <christian.bruel@st.com>
29539 * c-common.h (builtin_define_with_int_value)
29540 (builtin_define_type_sizeof): Declare.
29541 * c-cppbuiltin.c (builtin_define_with_int_value)
29542 (builtin_define_type_sizeof): Externalize.
29543 (builtin_define_std): Cleanup declaration.
29544 * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
29545 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
29546 * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
29547 (builtin_define, builtin_assert): New macros.
29549 2015-05-26 Richard Biener <rguenther@suse.de>
29551 PR tree-optimization/66142
29552 * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
29553 MEM_REFs for the same base address.
29555 2015-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29558 * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
29560 2015-05-26 Jason Merrill <jason@redhat.com>
29562 * configure.ac: Set CXXFLAGS for ISL test.
29563 * configure: Regenerate.
29565 * configure.ac: Use C++ for all tests. Use AC_CHECK_DECLS for
29566 strstr and basename.
29567 * configure: Regenerate.
29569 2015-05-26 Richard Biener <rguenther@suse.de>
29571 * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
29572 X % C -> X & (C - 1) for C being a power-of two to ...
29573 * match.pd: ... patterns.
29575 2015-05-26 Marc Glisse <marc.glisse@inria.fr>
29577 * match.pd (swapped_tcc_comparison): New operator list.
29578 (-A CMP -B): New simplification.
29579 * fold-const.c (fold_comparison): Remove corresponding code.
29581 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
29583 * caller-save.c (init_caller_save): Base temporary register numbers
29584 on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
29585 * cfgloopanal.c (init_set_costs): Likewise.
29586 * dojump.c (prefer_and_bit_test): Likewise.
29587 * expr.c (init_expr_target): Likewise.
29588 * ira.c (setup_prohibited_mode_move_regs): Likewise.
29589 * lower-subreg.c (init_lower_subreg): Likewise.
29590 * postreload.c (reload_cse_regs_1): Likewise.
29592 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
29594 * gensupport.h (compute_test_codes): Declare.
29595 * gensupport.c (compute_predicate_codes): Rename to...
29596 (compute_test_codes): ...this. Generalize error message.
29597 (process_define_predicate): Update accordingly.
29598 * genpreds.c (compute_maybe_allows): Delete.
29599 (add_constraint): Use compute_test_codes to determine whether
29600 something can accept a SUBREG, REG or MEM.
29602 2015-05-26 Torvald Riegel <triegel@redhat.com>
29604 * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
29605 'memory model' to align with C++11; fix description of memory orders;
29608 2015-05-26 Richard Biener <rguenther@suse.de>
29610 * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
29611 (vect_analyze_loop_operations): ... here. Remove slp parameter,
29612 detect whether we apply SLP. Remove call to
29613 vect_update_slp_costs_according_to_vf.
29614 (vect_analyze_loop_2): Call vect_update_vf_for_slp and
29615 vect_update_slp_costs_according_to_vf from here. Dispatch
29616 to vect_slp_analyze_operations to analyze SLP stmts.
29617 * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
29618 unused bb_vec_info parameter, adjust assert.
29619 (vect_slp_analyze_operations): Pass in the slp instance tree
29620 instead of bb_vec_info.
29621 (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
29622 * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
29624 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
29626 * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
29627 Q_REGS. Expand comment.
29628 (REG_CLASS_NAMES): Ditto.
29629 (REG_CLASS_CONTENTS): Ditto.
29631 2015-05-25 Uros Bizjak <ubizjak@gmail.com>
29634 * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
29635 when LEGACY_INT_REGNO_P is processed.
29637 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
29639 * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
29641 2015-05-25 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
29643 * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
29644 register if not marked dead/unused, before return.
29646 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
29649 * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
29650 is set; check for assembler name at LTO time.
29651 (type_in_anonymous_namespace): Remove hacks, check that all
29652 anonymous types are called "<anon>"
29653 (odr_type_p): Simplify; add check for "<anon>"
29654 (odr_subtypes_equivalent): Add odr_type_p check.
29655 * tree.c (need_assembler_name_p): Even anonymous namespace needs
29658 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
29660 * ipa-utils.h (method_class_type): Remove.
29661 * cgraphunit.c (walk_polymorphic_call_targets): Use
29662 TYPE_METHOD_BASETYPE.
29663 * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
29664 on main variants only.
29665 (method_class_type): Remove.
29666 (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
29667 (build_type_inheritance_graph): Likewise.
29668 * ipa-icf.c (sem_function::equals_wpa): Likewise.
29669 * pa-polymorphic-call.c (decl_maybe_in_construction_p,
29670 check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
29672 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
29674 * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
29675 is_typedef_decl, typedef_variant_p): Constify.
29676 * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
29677 is_typedef_decl, typedef_variant_p): Constify.
29679 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29681 * defaults.h (gen_tablejump): New function.
29682 (HAVE_tablejump): Add default value.
29684 * stmt.c: Likewise.
29686 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29688 * defaults.h (gen_store_multiple): New function.
29689 (HAVE_store_multiple): Add default value.
29690 * expr.c (move_block_from_reg): Adjust.
29692 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29694 * defaults.h (gen_load_multiple): New function.
29695 (HAVE_load_multiple): Add default value.
29696 * expr.c (move_block_to_reg): Adjust.
29698 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29700 * defaults.h (gen_mem_signal_fence): New function.
29701 (HAVE_mem_signal_fence): Add default value.
29702 * optabs.c: Adjust.
29704 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29706 * defaults.h (gen_memory_barrier): New function.
29707 (HAVE_memory_barrier): Add default value.
29708 * optabs.c: Adjust.
29710 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29712 * defaults.h (gen_mem_thread_fence): New function.
29713 (HAVE_mem_thread_fence): Add default definition.
29714 * optabs.c: Adjust.
29716 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29718 * combine.c (find_split_point): Check the value of HAVE_lo_sum
29719 instead of if it is defined.
29720 (combine_simplify_rtx): Likewise.
29721 * lra-constraints.c (process_address_1): Likewise.
29722 * config/darwin.c: Adjust.
29723 * genconfig.c (main): Always define HAVE_lo_sum.
29725 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
29727 * genmatch.c (parser::parse_operation): Reject expanding
29728 operator-list inside 'for'.
29730 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
29732 * genmatch.c (parser::parse_for): Reject iterator if used as
29735 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
29737 * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
29738 after end of id-list.
29740 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
29742 * tree.c (gimple_canonical_types_compatible_p): Sanity check that
29743 we do not try to compute canonical type for type that does not need
29745 (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
29747 * tree.h (type_with_alias_set_p): New.
29749 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
29751 * tree.c (gimple_canonical_types_compatible_p): Do not compare
29752 function attributes.
29753 (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
29755 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
29757 * Makefile.in (check_gcc_parallelize): Delete.
29758 (lang_checks_parallelized): Update comment.
29760 2015-05-22 Mikhail Maltsev <maltsevm@gmail.com>
29762 PR rtl-optimization/66237
29763 * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
29764 location of an "as_a" cast.
29766 2015-05-22 Jeff Law <law@redhat.com>
29768 * config/pa/pa.md (non-canonical shift-add insns): Remove.
29769 (peepholes with non-canonical RTL sources): Remove.
29770 (peepholes for indexed stores of FP regs in integer modes): Match and
29771 generate canonical RTL.
29773 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
29775 PR tree-optimization/63387
29776 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
29777 ((x ord x) & (y ord y) -> (x ord y),
29778 (x ord x) & (x ord y) -> (x ord y)): New simplifications.
29779 * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
29780 vectors like scalars.
29782 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
29784 * convert.c (convert_to_integer, convert_to_vector): Include the
29785 types in the error message.
29787 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
29789 * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
29792 2015-05-22 Jeff Law <law@redhat.com>
29794 * config/pa/pa.md (integer_indexed_store splitters): Use
29795 mem_shadd_operand. Use ASHIFT rather than MULT in the resulting
29796 insns -- adjusting the constant 2nd operand accordingly.
29798 * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
29799 (plus (ashift X log2) Y) if it is a split point.
29801 * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
29802 out of hppa_legitimize_address to handle both forms of a multiply
29804 (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
29805 Always generate the ASHIFT variant as the result is not directly
29806 used in a MEM. Update comments and refactor slightly to improve
29809 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29812 * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
29813 aarch64_composite_type_p. Remove check for aarch64_composite_type_p.
29814 (aarch64_composite_type_p): Return false if given type and mode are
29815 for a short vector.
29817 2015-05-22 Richard Biener <rguenther@suse.de>
29819 * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
29821 * tree-vect-loop.c (vect_analyze_loop_operations): Look at
29822 patterns when determining whether SLP is pure.
29823 (vect_is_slp_reduction): Remove check for pattern stmts.
29824 (vect_is_simple_reduction_1): Remove dead code.
29825 * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
29826 (vect_get_and_check_slp_defs): Pass in the stmt number.
29827 Allow the first def in a reduction to be not a pattern stmt when
29828 the rest of the stmts def are patterns.
29829 (vect_build_slp_tree_1): Allow tcc_expression codes like
29830 SAD_EXPR and DOT_PROD_EXPR.
29831 (vect_build_slp_tree): Adjust.
29832 (vect_analyze_slp): Refactor and move BB vect error message ...
29833 (vect_slp_analyze_bb_1): ... here.
29835 2015-05-22 Aldy Hernandez <aldyh@redhat.com>
29837 * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
29838 for CSWTCH temporary.
29840 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29842 * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
29843 (arm_unspec_cost): Allow UNSPEC_VOLATILE. Do not recurse inside
29846 2015-05-22 Richard Biener <rguenther@suse.de>
29848 PR tree-optimization/66251
29849 * tree-vect-stmts.c (vectorizable_conversion): Properly
29850 set STMT_VINFO_VEC_STMT even for the SLP case.
29852 2015-05-22 Marek Polacek <polacek@redhat.com>
29854 * doc/extend.texi: Use @pxref instead of @xref.
29856 2015-05-22 hiraditya <hiraditya@msn.com>
29858 * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
29861 2015-05-22 Richard Biener <rguenther@suse.de>
29863 PR tree-optimization/65701
29864 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
29865 Move peeling cost models into one place. Peel for alignment
29866 for single loads only if an aligned load is cheaper than
29869 2015-05-22 Marek Polacek <polacek@redhat.com>
29872 * doc/extend.texi (Enumerator Attributes): New section.
29873 Document syntax of enumerator attributes.
29875 2015-05-22 Richard Biener <rguenther@suse.de>
29877 * tree-vect-loop.c (get_reduction_op): New function.
29878 (vect_model_reduction_cost): Use it, add reduc_index parameter.
29879 Make ready for BB reductions.
29880 (vect_create_epilog_for_reduction): Use get_reduction_op.
29881 (vectorizable_reduction): Init reduc_index to a valid value.
29882 Adjust vect_model_reduction_cost call.
29883 * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
29884 operand for reduction defaults. Add SAD_EXPR support.
29885 Assert we have a neutral op for SLP reductions.
29886 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
29887 walking pattern stmt ops only recurse to SSA names.
29889 2015-05-22 Richard Biener <rguenther@suse.de>
29891 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
29892 assert with guard, remove check on detected reduction.
29893 (vect_recog_sad_pattern): Likewise.
29894 (vect_recog_widen_sum_pattern): Likewise.
29896 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29898 * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
29899 __always_inline__ attribute.
29900 (vaesdq_u8): Likewise.
29901 (vaesmcq_u8): Likewise.
29902 (vaesimcq_u8): Likewise.
29903 (vsha1cq_u32): Likewise.
29904 (vsha1mq_u32): Likewise.
29905 (vsha1pq_u32): Likewise.
29906 (vsha1h_u32): Likewise.
29907 (vsha1su0q_u32): Likewise.
29908 (vsha1su1q_u32): Likewise.
29909 (vsha256hq_u32): Likewise.
29910 (vsha256h2q_u32): Likewise.
29911 (vsha256su0q_u32): Likewise.
29912 (vsha256su1q_u32): Likewise.
29913 (vmull_p64): Likewise.
29914 (vmull_high_p64): Likewise.
29916 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29918 * final.c (final_scan_insn): Don't check HAVE_peephole with the
29920 * output.h: Likewise.
29921 * genconfig.c (main): Alwways define HAVE_peephole.
29922 * genpeep.c: Don't emit checks of HAVE_peephole.
29924 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29926 * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
29927 check HAVE_conditional_move with the preprocessor.
29929 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29931 * genconfig.c (main): Always define HAVE_conditional_move.
29932 * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
29933 toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
29936 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29938 * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
29939 reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
29940 and FRAME_POINTER_REGNUM with the preprocessor.
29942 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29944 * defaults.h: Add default for STACK_PUSH_CODE.
29945 * expr.c: Don't redefine STACK_PUSH_CODE.
29946 * recog.c: Likewise.
29948 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29950 * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
29951 sched-deps.c: Use if instead of preprocessor checks with
29952 STACK_GROWS_DOWNWARD.
29954 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29956 * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
29958 * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
29959 * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
29960 * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
29961 * doc/tm.texi: Regenerate.
29963 2015-05-21 H.J. Lu <hongjiu.lu@intel.com>
29966 * config/i386/constraints.md (Bg): New constraint for GOT memory
29968 * config/i386/i386.md (*call_got_x32): New pattern.
29969 (*call_value_got_x32): Likewise.
29970 * config/i386/predicates.md (GOT_memory_operand): New predicate.
29972 2015-05-21 Jakub Jelinek <jakub@redhat.com>
29974 PR tree-optimization/66233
29975 * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
29978 2015-05-21 Jeff Law <law@redhat.com>
29980 * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
29981 than MULT for shadd sequences.
29983 2015-05-08 Jan Hubicka <hubicka@ucw.cz>
29985 * alias.c (alias_stats): New static var.
29986 (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
29987 (dump_alias_stats_in_alias_c): New function.
29988 * alias.h (dump_alias_stats_in_alias_c): Declare.
29989 * tree-ssa-alias.c (dump_alias_stats): Call it.
29991 2015-05-08 Michael Matz <matz@suse.de>
29993 * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
29995 (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
29996 (STMT_VINFO_STRIDED_P): ... this.
29997 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
29998 (vect_verify_datarefs_alignment): Likewise.
29999 (vect_enhance_data_refs_alignment): Likewise.
30000 (vect_analyze_data_ref_access): Likewise.
30001 (vect_analyze_data_refs): Accept strided stores.
30002 * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
30003 (vect_model_load_cost): Adjust for macro rename.
30004 (vectorizable_mask_load_store): Likewise.
30005 (vectorizable_load): Likewise.
30006 (vectorizable_store): Open code strided stores.
30008 2015-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30010 * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
30011 Document sqrt_insn.
30013 2015-05-21 Richard Biener <rguenther@suse.de>
30016 * match.pd: Guard pattern optimzing (int)(float)int
30017 conversions to apply only on GIMPLE.
30019 2015-05-21 Jeff Law <law@redhat.com>
30021 * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
30022 multiply-accumulate/shift-add insn generation.
30024 2015-05-21 Oleg Endo <olegendo@gcc.gnu.org>
30027 * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
30028 operands[1] are the same.
30030 2015-05-21 Ilya Enkovich <enkovich.gnu@gmail.com>
30032 PR middle-end/66221
30033 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
30034 build_distinct_type_copy to copy bounds.
30036 2015-05-21 Thomas Schwinge <thomas@codesourcery.com>
30038 * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
30039 Change to unsigned int.
30041 2015-05-20 Jeff Law <law@redhat.com>
30043 * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
30044 (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
30045 (pa_shadd_constant_p): Allow constants for shadd insns rather
30046 than valid scaling constants for memory addresses.
30047 * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
30048 * config/pa/predicates.md (mem_shadd_operand): New predicate.
30049 * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
30050 (shift-add insns using ASHIFT): New patterns.
30052 2015-05-20 Mikhail Maltsev <maltsevm@gmail.com>
30054 * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
30056 (fix_up_fall_thru_edges): Likewise.
30057 (fix_crossing_conditional_branches): Likewise. Promote jump targets
30058 from to rtx_insn to rtx_code_label where feasible.
30059 * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
30060 gen_move_insn (returned type changed to rtx_insn).
30061 * builtins.c (expand_errno_check): Fix arguments of
30062 do_compare_rtx_and_jump (now expects rtx_code_label).
30063 (expand_builtin_acc_on_device): Likewise.
30064 * cfgcleanup.c (try_simplify_condjump): Add cast when calling
30065 invert_jump (now exprects rtx_jump_insn).
30066 * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
30067 (construct_init_block): Use rtx_code_label.
30068 * cfgrtl.c (block_label): Promote return type to rtx_code_label.
30069 (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
30070 calling redirect_jump.
30071 (patch_jump_insn): Likewise.
30072 (redirect_branch_edge): Likewise.
30073 (force_nonfallthru_and_redirect): Likewise.
30074 (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
30076 (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
30077 * cfgrtl.h: Promote return type of block_label to rtx_code_label.
30078 * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
30079 * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
30080 to store the value retured by gen_label_rtx.
30081 * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
30083 * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
30084 (split_branches): Fix calls of redirect_jump.
30085 * dojump.c (jumpifnot): Promote argument type from rtx to
30087 (jumpifnot_1): Likewise.
30088 (jumpif): Likewise.
30089 (jumpif_1): Likewise.
30090 (do_jump_1): Likewise.
30091 (do_jump): Likewise. Use rtx_code_label when feasible.
30092 (do_jump_by_parts_greater_rtx): Likewise.
30093 (do_jump_by_parts_zero_rtx): Likewise.
30094 (do_jump_by_parts_equality_rtx): Likewise.
30095 (do_compare_rtx_and_jump): Likewise.
30096 * dojump.h: Update function prototypes.
30097 * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
30099 * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
30101 (emit_label_before): Likewise.
30102 (emit_jump_insn_after_noloc): Likewise.
30103 (emit_jump_insn_after_setloc): Likewise.
30104 (emit_jump_insn_after): Likewise
30105 (emit_jump_insn_before_setloc): Likewise.
30106 (emit_jump_insn_before): Likewise.
30107 (emit_label_before): Promote return type to rtx_code_label.
30108 (emit_label): Likewise.
30109 * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
30110 * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
30112 (emit_stack_restore): Likewise.
30113 * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
30114 (do_cmp_and_jump): Likewise.
30115 * expr.c (expand_expr_real_2): Likewise. Promote some local variables
30116 from rtx to rtx_code_label.
30117 (gen_move_insn_uncast): New function.
30118 * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
30119 * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
30120 * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
30121 * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
30122 invert_jump_1 and redirect_jump_1.
30123 * internal-fn.c (expand_arith_overflow_result_store): Fix call of
30124 do_compare_rtx_and_jump.
30125 (expand_addsub_overflow): Likewise.
30126 (expand_neg_overflow): Likewise.
30127 (expand_mul_overflow): Likewise.
30128 * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
30129 return value of gen_move_insn.
30130 * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
30131 * loop-doloop.c (add_test): Use rtx_code_label.
30132 (doloop_modify): Likewise.
30133 (doloop_optimize): Likewise.
30134 * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
30135 * lra-constraints.c (emit_spill_move): Remove cast of value returned
30137 (inherit_reload_reg): Add cast when calling dump_insn_slim.
30138 (split_reg): Likewise.
30139 * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
30141 * optabs.c (expand_binop_directly): Remove casts of values returned by
30143 (expand_unop_direct): Likewise.
30144 (expand_abs): Likewise.
30145 (maybe_emit_unop_insn): Likewise.
30146 (maybe_gen_insn): Promote return type to rtx_insn.
30147 * optabs.h: Update prototype of maybe_gen_insn.
30148 * postreload-gcse.c (eliminate_partially_redundant_load): Remove
30150 * recog.c (struct peep2_insn_data): Promote type of insn field to
30152 (peep2_reinit_state): Use NULL instead of NULL_RTX.
30153 (peep2_attempt): Remove casts of insn in peep2_insn_data.
30154 (peep2_fill_buffer): Promote argument from rtx to rtx_insn
30155 * recog.h (struct insn_gen_fn): Promote return types of function
30156 pointers and operator ().from rtx to rtx_insn.
30157 * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
30158 (fill_eager_delay_slots): Likewise.
30159 (relax_delay_slots): Likewise.
30160 (make_return_insns): Likewise.
30161 (dbr_schedule): Likewise.
30162 (optimize_skips): Likewise.
30163 (reorg_redirect_jump): Likewise.
30164 (fill_slots_from_thread): Likewise.
30165 * reorg.h: Update prototypes.
30166 * resource.c (find_dead_or_set_registers): Use dyn_cast to
30167 rtx_jump_insn instead of check. Use it's jump_target method.
30168 * rtl.h (rtx_jump_insn::jump_label): Define new method.
30169 (rtx_jump_insn::jump_target): Define new method.
30170 (rtx_jump_insn::set_jump_target): Define new method.
30171 * rtlanal.c (tablejump_p): Promote type of one local variable.
30172 * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
30173 (sched_analyze_insn): Likewise.
30174 * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
30175 (print_insn): Likewise.
30176 * stmt.c (label_rtx): Promote return type to rtx_insn.
30177 (force_label_rtx): Likewise.
30178 (jump_target_rtx): Define new function.
30179 (expand_label): Use it, get rid of one cast.
30180 (expand_naked_return): Promote rtx to rtx_code_label.
30181 (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
30182 (expand_case): Use rtx_code_label instread of rtx where feasible.
30183 (expand_sjlj_dispatch_table): Likewise.
30184 (emit_case_nodes): Likewise.
30185 * stmt.h: Declare jump_target_rtx. Update prototypes. Fix comments.
30186 * store-motion.c (insert_store): Make use of new return type of
30187 gen_move_insn and remove a cast.
30188 (replace_store_insn): Likewise.
30190 2015-05-20 Max Filippov <jcmvbkbc@gmail.com>
30192 * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
30193 by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
30195 2015-05-20 Jeff Law <law@redhat.com>
30197 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
30198 dispose of the jump thread path when the jump threading
30199 opportunity is cancelled.
30201 2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
30203 * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
30204 when printing the caret character.
30206 2015-05-20 Marek Polacek <polacek@redhat.com>
30208 * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
30210 2015-05-20 Marek Polacek <polacek@redhat.com>
30212 * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
30213 * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
30214 * gimple-fold.c (canonicalize_bool): Likewise.
30215 (same_bool_result_p): Likewise.
30216 * tree-if-conv.c (parse_predicate): Likewise.
30218 2015-05-20 Marek Polacek <polacek@redhat.com>
30220 * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
30221 * gimplify.c (gimplify_modify_expr_rhs): Likewise.
30223 2015-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30225 * config/aarch64/aarch64.c (aarch64_class_max_nregs):
30226 Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
30229 2015-05-20 Robert Suchanek <robert.suchanek@imgtec.com>
30231 * config/mips/mips.h (micromips_globals): Declare.
30233 2015-05-20 David Malcolm <dmalcolm@redhat.com>
30235 * timevar.def (TV_INITIALIZE_RTL): New.
30236 * toplev.c (initialize_rtl): Use an auto_timevar to account this
30237 function's time to TV_INITIALIZE_RTL.
30239 2015-05-20 Ilya Enkovich <enkovich.gnu@gmail.com>
30241 * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
30242 gimple_build_nop calls.
30243 (chkp_find_bounds_for_elem): Likewise.
30244 (chkp_get_zero_bounds): Likewise.
30245 (chkp_get_none_bounds): Likewise.
30246 (chkp_get_bounds_by_definition): Likewise.
30247 (chkp_generate_extern_var_bounds): Likewise.
30248 (chkp_get_bounds_for_decl_addr): Likewise.
30249 (chkp_get_bounds_for_string_cst): Likewise.
30251 2015-05-20 Bin Cheng <bin.cheng@arm.com>
30253 PR tree-optimization/65447
30254 * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
30255 (dump_use, dump_uses): Support to dump sub use.
30256 (record_use): New parameters to support sub use. Remove call to
30258 (record_sub_use, record_group_use): New functions.
30259 (compute_max_addr_offset, split_all_small_groups): New functions.
30260 (group_address_uses, rewrite_use_address): New functions.
30261 (strip_offset): New declaration.
30262 (find_interesting_uses_address): Call record_group_use.
30263 (add_candidate): New assertion.
30264 (infinite_cost_p): Move definition forward.
30265 (add_costs): Check INFTY cost and return immediately.
30266 (get_computation_cost_at): Clear setup cost and dependent bitmap
30268 (determine_use_iv_cost_address): Compute cost for sub uses.
30269 (rewrite_use_address_1): Rename from old rewrite_use_address.
30270 (free_loop_data): Free sub uses.
30271 (tree_ssa_iv_optimize_loop): Call group_address_uses.
30273 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
30274 Jim Wilson <jim.wilson@linaro.org>
30276 * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
30277 new fields loadv and storev.
30278 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
30279 Initialize loadv and storev.
30280 * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
30281 (cortexa53_extra_costs): Likewise.
30282 (cortexa57_extra_costs): Likewise.
30283 (xgene1_extra_costs): Likewise.
30284 * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
30287 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
30289 * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
30291 (cortexa8_extra_costs): Likewise.
30292 (cortexa5_extra_costs): Likewise.
30293 (cortexa7_extra_costs): Likewise.
30294 (cortexa12_extra_costs): Likewise.
30295 (cortexa15_extra_costs): Likewise.
30296 (v7m_extra_costs): Likewise.
30298 2015-05-20 Jeff Law <law@redhat.com>
30300 * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
30301 instead of open-coded version. Also delete the jump thread created
30302 within this function.
30304 2015-05-20 Alan Modra <amodra@gmail.com>
30306 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
30307 stack adjusting insn. Formatting.
30308 (rs6000_emit_prologue): Track stack adjusting insn, and use of
30309 r12. If possible, emit first -fsplit-stack arg pointer insn
30310 before stack adjust. Don't use r12 to save cr if split-stack.
30312 2015-05-20 Alan Modra <amodra@gmail.com>
30314 * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
30316 (rs6000_supports_split_stack): New function.
30317 * config/rs6000/rs6000.c (machine_function): Add
30318 split_stack_arg_pointer.
30319 (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
30320 (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
30321 rather than virtual_incoming_args_rtx.
30322 (rs6000_va_start): Likewise.
30323 (split_stack_arg_pointer_used_p): New function.
30324 (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
30325 (morestack_ref): New var.
30326 (gen_add3_const, rs6000_expand_split_stack_prologue,
30327 rs6000_internal_arg_pointer, rs6000_live_on_entry,
30328 rs6000_split_stack_space_check): New functions.
30329 (rs6000_elf_file_end): Call file_end_indicate_split_stack.
30330 * config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
30331 (UNSPECV_SPLIT_STACK_RETURN): Define.
30332 (split_stack_prologue, load_split_stack_limit,
30333 load_split_stack_limit_di, load_split_stack_limit_si,
30334 split_stack_return, split_stack_space_check): New expands and insns.
30335 * config/rs6000/rs6000-protos.h
30336 (rs6000_expand_split_stack_prologue): Declare.
30337 (rs6000_split_stack_space_check): Declare.
30339 2015-05-20 Alan Modra <amodra@gmail.com>
30341 * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
30342 (direct_return): Test vrsave_size rather than vrsave_mask.
30343 (rs6000_emit_prologue): Likewise. Remove redundant altivec tests.
30344 (rs6000_emit_epilogue): Likewise.
30346 2015-05-20 Alan Modra <amodra@gmail.com>
30348 * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
30349 when not saving registers.
30350 (debug_stack_info): Adjust to omit printing unused offsets,
30352 (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
30355 2015-05-19 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
30358 * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
30359 value_type to const char *.
30361 2015-05-19 Sandra Loosemore <sandra@codesourcery.com>
30363 * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
30364 to build a biarch toolchain again.
30366 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
30368 * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
30369 or implicit declarations.
30370 (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
30372 (get_odr_type): Check type has linkage before adding bases.
30373 (register_odr_type): Check that type has linkage before adding it.
30374 (type_known_to_have_no_deriavations_p): Rename to ..
30375 (type_known_to_have_no_derivations_p): This one.
30376 * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
30377 (type_known_to_have_no_derivations_p): This one.
30378 * ipa-polymorphic-call.c
30379 (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
30382 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
30384 * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
30385 (layout_type): Use RECORD_OR_UNION_TYPE_P.
30387 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30389 * config/s390/s390.c (s390_vector_bool_type_p): New function.
30390 (s390_invalid_binary_op): New function.
30391 (TARGET_INVALID_BINARY_OP): Define macro.
30393 2015-05-19 David Sherwood <david.sherwood@arm.com>
30395 * loop-invariant.c (create_new_invariant): Don't calculate address cost
30396 if mode is not a scalar integer.
30397 (get_inv_cost): Increase computational cost for unused invariants.
30399 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30401 * config.gcc: Add vecintrin.h to extra_headers. Add s390-c.o to
30402 c_target_objs and cxx_target_objs. Add t-s390 to tmake_file.
30403 * config/s390/s390-builtin-types.def: New file.
30404 * config/s390/s390-builtins.def: New file.
30405 * config/s390/s390-builtins.h: New file.
30406 * config/s390/s390-c.c: New file.
30407 * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
30408 CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
30409 * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
30410 (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
30412 * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
30414 (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
30415 (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
30416 variable definitions.
30417 (s390_const_operand_ok): New function.
30418 (s390_expand_builtin): Rewrite.
30419 (s390_init_builtins): New function.
30420 (s390_handle_vectorbool_attribute): New function.
30421 (s390_attribute_table): Add s390_vector_bool attribute.
30422 (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
30423 (s390_branch_condition_mask): Generate masks for new modes.
30424 (s390_expand_vec_compare_cc): New function.
30425 (s390_mangle_type): Add mangling for vector bool types.
30426 (enum s390_builtin): Remove.
30427 (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
30429 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
30430 s390_cpu_cpp_builtins.
30431 (REGISTER_TARGET_PRAGMAS): New macro.
30432 * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
30433 (insn_cmp mode attribute): Add new CC modes.
30434 (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
30435 (lcbb): New pattern definition.
30436 * config/s390/s390intrin.h: Include vecintrin.h.
30437 * config/s390/t-s390: New file.
30438 * config/s390/vecintrin.h: New file.
30439 * config/s390/vector.md: Include vx-builtins.md.
30440 * config/s390/vx-builtins.md: New file.S/390 zvector builtin
30443 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30445 * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
30447 * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
30448 (s390_select_ccmode): Likewise.
30449 (s390_canonicalize_comparison): Swap operands if necessary.
30450 (s390_expand_vec_compare_scalar): Expand DFmode compare using
30451 single element vector instructions.
30452 (s390_emit_compare): Call s390_expand_vec_compare_scalar.
30453 (s390_branch_condition_mask): Generate CC masks for the new modes.
30454 * config/s390/s390.md (v0, vf, vd): New mode attributes.
30455 (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
30456 (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
30457 (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
30458 (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
30459 (*extend<DSF:mode><BFP:mode>2): New insn definition.
30460 (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
30461 (extend<DSF:mode><BFP:mode>2): Turn into expander.
30462 (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
30463 (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
30464 (sqrt<mode>2): Add vector instruction.
30466 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30468 * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
30470 * config/s390/predicates.md (const0_operand, constm1_operand)
30471 (constable_operand): Accept vector operands.
30472 * config/s390/s390-modes.def: Add supported vector modes.
30473 * config/s390/s390-protos.h (s390_cannot_change_mode_class)
30474 (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
30475 (s390_bytemask_vector_p, s390_expand_vec_strlen)
30476 (s390_expand_vec_compare, s390_expand_vcond)
30477 (s390_expand_vec_init): Add prototypes.
30478 * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
30479 (s390_vector_mode_supported_p): New function.
30480 (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
30481 (s390_contiguous_bitmask_vector_p): New function.
30482 (s390_bytemask_vector_p): New function.
30483 (s390_split_ok_p): Vector regs don't work either.
30484 (regclass_map): Add VEC_REGS.
30485 (s390_legitimate_constant_p): Handle vector constants.
30486 (s390_cannot_force_const_mem): Handle CONST_VECTOR.
30487 (legitimate_reload_vector_constant_p): New function.
30488 (s390_preferred_reload_class): Handle CONST_VECTOR.
30489 (s390_reload_symref_address): Likewise.
30490 (s390_secondary_reload): Vector memory instructions only support
30491 short displacements. Rename reload*_nonoffmem* to reload*_la*.
30492 (s390_emit_ccraw_jump): New function.
30493 (s390_expand_vec_strlen): New function.
30494 (s390_expand_vec_compare): New function.
30495 (s390_expand_vcond): New function.
30496 (s390_expand_vec_init): New function.
30497 (s390_dwarf_frame_reg_mode): New function.
30498 (print_operand): Handle addresses with 'O' and 'R' constraints.
30499 (NR_C_MODES, constant_modes): Add vector modes.
30500 (s390_output_pool_entry): Handle vector constants.
30501 (s390_hard_regno_mode_ok): Handle vector registers.
30502 (s390_class_max_nregs): Likewise.
30503 (s390_cannot_change_mode_class): New function.
30504 (s390_invalid_arg_for_unprototyped_fn): New function.
30505 (s390_function_arg_vector): New function.
30506 (s390_function_arg_float): Remove size variable.
30507 (s390_pass_by_reference): Handle vector arguments.
30508 (s390_function_arg_advance): Likewise.
30509 (s390_function_arg): Likewise.
30510 (s390_return_in_memory): Vector values are returned in a VR if
30512 (s390_function_and_libcall_value): Handle vector arguments.
30513 (s390_gimplify_va_arg): Likewise.
30514 (s390_call_saved_register_used): Consider the arguments named.
30515 (s390_conditional_register_usage): Disable v16-v31 for non-vec
30517 (s390_preferred_simd_mode): New function.
30518 (s390_support_vector_misalignment): New function.
30519 (s390_vector_alignment): New function.
30520 (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
30521 (TARGET_VECTOR_MODE_SUPPORTED_P)
30522 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
30523 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
30524 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
30525 (TARGET_VECTOR_ALIGNMENT): Define target macro.
30526 * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
30527 (FIRST_PSEUDO_REGISTER): Increase value.
30528 (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
30529 (VECTOR_REG_P): Define macros.
30530 (FIXED_REGISTERS, CALL_USED_REGISTERS)
30531 (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
30532 (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
30533 (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
30534 Add vector registers.
30535 (CANNOT_CHANGE_MODE_CLASS): Call C function.
30536 (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
30537 (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
30539 (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
30540 (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
30541 * config/s390/s390.md (UNSPEC_VEC_*): New constants.
30542 (VR*_REGNUM): New constants.
30543 (ALL): New mode iterator.
30544 (INTALL): Remove mode iterator.
30546 (movti): Implement TImode moves for VRs.
30547 Disable TImode splitter for VR targets.
30548 Implement splitting TImode GPR<->VR moves.
30549 (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
30550 (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
30551 reload<mode>_la_in, reload<mode>_la_out.
30552 (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
30553 (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
30554 (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
30555 (mov<mode> SF SD): Prefer lder, lde for loading.
30556 Add lrl and strl instructions.
30557 Add vector instructions.
30558 (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
30559 Call s390_expand_vec_strlen on z13.
30560 (*cc_to_int): Change predicate to nonimmediate_operand.
30561 (addti3): Rename to *addti3. New expander.
30562 (subti3): Rename to *subti3. New expander.
30563 * config/s390/vector.md: New file.
30565 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30567 * common/config/s390/s390-common.c (processor_flags_table): Add
30569 * config.gcc: Add z13.
30570 * config/s390/s390-opts.h (enum processor_type): Add
30571 PROCESSOR_2964_Z13.
30572 * config/s390/s390.c (s390_adjust_priority): Check for
30573 PROCESSOR_2964_Z13.
30574 (s390_reorg): Likewise.
30575 (s390_sched_reorder): Likewise.
30576 (s390_sched_variable_issue): Likewise.
30577 (s390_loop_unroll_adjust): Likewise.
30578 (s390_option_override): Likewise. Default to -mvx when available.
30579 * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
30580 (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
30581 (TARGET_VX_ABI): Define macros.
30583 (TARGET_DEFAULT): Add MASK_OPT_VX.
30584 * config/s390/s390.md ("cpu" attribute): Add z13.
30585 ("cpu_facility" attribute): Add vec.
30586 * config/s390/s390.opt (processor_type): Add z13.
30587 (mvx): New options.
30588 * doc/invoke.texi: Add z13 option for -march.
30590 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30592 * config/s390/predicates.md (shift_count_or_setmem_operand): Add
30593 mode check to make sure that only scalar integer values are
30596 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
30598 * tree.c (verify_type_variant): Fix #undef.
30599 (gimple_canonical_types_compatible_p): Move here from lto.c
30600 (verify_type): Verify TYPE_CANONICAL compatibility.
30601 * tree.h (gimple_canonical_types_compatible_p): Declare.
30603 2015-05-19 Jakub Jelinek <jakub@redhat.com>
30605 PR middle-end/66199
30606 * tree.h (OMP_TEAMS_COMBINED): Define.
30607 * gimplify.c (enum gimplify_omp_var_data): Add
30608 GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
30609 (enum omp_region_type): Add ORT_COMBINED_TEAMS.
30610 (omp_notice_variable): Accept both ORT_TEAMS
30611 and ORT_COMBINED_TEAMS. Don't recurse if
30612 GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
30613 GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
30615 (omp_no_lastprivate): New function.
30616 (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
30617 and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
30618 notice_outer and set appropriate bits, otherwise make
30619 sure default(none) combined constructs won't complain.
30620 (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
30621 outer special casing, for OMP_CLAUSE_LASTPRIVATE if
30622 omp_no_lastprivate either remove the clause or turn it
30623 into OMP_CLAUSE_PRIVATE.
30624 (gimplify_omp_for): Fix up handling of implicit
30625 lastprivate or linear iterators.
30626 (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
30627 ORT_COMBINED_TEAMS.
30628 * omp-low.c (lower_omp_for_lastprivate): For combined
30629 for simd use fd.loop.n2 from the for rather than simd.
30631 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
30633 * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
30634 instead of gen_rtx_raw_REG.
30635 (cris_expand_epilogue): Likewise.
30636 * config/microblaze/microblaze.c (microblaze_classify_address):
30638 * config/sparc/sparc.md: Likewise.
30640 2015-05-19 Uros Bizjak <ubizjak@gmail.com>
30642 * config/alpha/alpha.c (alpha_legitimize_reload_address)
30643 (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
30644 CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
30645 (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
30646 Use CASE_CONST_SCALAR_INT.
30647 (print_operand) <case 'M'>: Use mode_width_operand to check the
30648 value of the constant.
30649 * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
30650 * config/alpha/predicates.md (input_operand): Use general_operand
30651 instead of match_code as operand check.
30652 (symbolic_operand): Use match_code with subexpression digits.
30653 * config/alpha/constraints.md (Q): Ditto.
30655 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30657 * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
30659 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30661 * config/s390/s390.c (s390_secondary_reload): Fix check for
30662 load/store relative.
30664 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30666 * recog.h: Increase MAX_RECOG_ALTERNATIVES. Change type of
30667 alternative_mask to uint64_t.
30669 2015-05-19 Jakub Jelinek <jakub@redhat.com>
30671 PR tree-optimization/66187
30672 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
30673 Pass TYPE_SIGN to tree_int_cst_min_precision. If
30674 !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
30676 2015-05-19 David Malcolm <dmalcolm@redhat.com>
30678 * diagnostic.c (diagnostic_report_current_module): Strengthen
30679 local "new_map" from const line_map * to
30680 const line_map_ordinary *.
30681 * genmatch.c (error_cb): Likewise for local "map".
30682 (output_line_directive): Likewise for local "map".
30683 * input.c (expand_location_1): Likewise for local "map".
30684 Pass NULL rather than &map to
30685 linemap_unwind_to_first_non_reserved_loc, since the value is never
30686 read from there, and the value written back not read from here.
30687 (is_location_from_builtin_token): Strengthen local "map" from
30688 const line_map * to const line_map_ordinary *.
30689 (dump_location_info): Strengthen locals "map" from
30690 line_map *, one to const line_map_ordinary *, the other
30691 to const line_map_macro *.
30692 * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
30693 const line_map * to const line_map_macro *.
30694 (maybe_unwind_expanded_macro_loc): Add a call to
30695 linemap_check_macro when writing to the "map" field of the
30697 Introduce local const line_map_ordinary * "ord_map", using it in
30698 place of "map" in the part of the function where we know we have
30699 an ordinary map. Strengthen local "m" from const line_map * to
30700 const line_map_ordinary *.
30702 2015-05-19 Nick Clifton <nickc@redhat.com>
30705 * config/msp430/msp430.md (zero_extendhisi2): Add support for
30706 separate source and destination registers.
30708 2015-05-19 Richard Biener <rguenther@suse.de>
30710 PR tree-optimization/66165
30711 * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
30712 for no load permutation.
30714 PR tree-optimization/66185
30715 * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
30716 when building the SLP node from scalars.
30718 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
30719 Tristan Gingold <gingold@adacore.com>
30721 * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
30722 * builtins.c (expand_builtin_update_setjmp_buf): Make global.
30723 (expand_stack_restore): Call record_new_stack_level.
30724 (expand_stack_save): Do not call do_pending_stack_adjust.
30725 * builtins.h (expand_builtin_update_setjmp_buf): Declare.
30726 * calls.c (expand_call): Call record_new_stack_level for alloca.
30727 * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
30728 wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
30729 (update_sjlj_context): New global function.
30730 * except.h (update_sjlj_context): Declare.
30731 * explow.c (record_new_stack_level): New global function.
30732 (allocate_dynamic_stack_space): Call record_new_stack_level.
30733 * explow.h (record_new_stack_level): Declare.
30734 * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
30735 * cfgrtl.c (duplicate_insn_chain): Likewise.
30737 2015-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30739 * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
30740 (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
30741 STACK_GROWS_DOWNWARD as normal if.
30742 (expand_call): Likewise.
30744 2015-05-19 Oleg Endo <olegendo@gcc.gnu.org>
30747 * config/sh/sh.md (*round_int_even): New insn_and_split and
30748 accompanying new unnamed split.
30750 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
30752 * bitmap.c (bitmap_set_range): Handle count==1 specially.
30753 (bitmap_clear_range): Likewise.
30754 * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
30755 bitmap_set_range unconditionally.
30756 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
30757 * df-scan.c (df_mark_reg): Likewise.
30758 * haifa-sched.c (setup_ref_regs): Likewise.
30759 * sched-rgn.c (update_live_1): Likewise.
30761 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
30763 * regs.h (END_HARD_REGNO): Delete.
30764 (END_REGNO): Move to...
30766 * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
30767 * caller-save.c (mark_set_regs): Likewise.
30768 * combine.c (move_deaths, distribute_notes): Likewise.
30769 * cse.c (invalidate, invalidate_for_call): Likewise.
30770 * df-scan.c (df_ref_record): Likewise.
30771 * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
30772 (record_last_reg_set_info): Likewise.
30773 * reg-stack.c (convert_regs_exit): Likewise.
30774 * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
30775 * resource.c (update_live_status): Likewise.
30776 * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
30778 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
30780 * rtl.h (reg_info): Add an nregs field.
30781 (REG_NREGS): Use it.
30782 (SET_REGNO_RAW): Delete.
30783 (set_regno_raw): New function.
30784 * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
30785 (END_REGNO): Redefine in terms of REG_NREGS.
30786 * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
30788 * emit-rtl.c (set_mode_and_regno): Likewise.
30789 * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
30790 instead of SET_REGNO_RAW.
30792 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
30794 * rtl.h (PUT_MODE_RAW): New macro.
30795 (PUT_REG_NOTE_KIND): Use it.
30796 (set_mode_and_regno): Declare.
30797 (gen_raw_REG): Change regno to "unsigned int".
30798 (gen_rtx_REG): Change "unsigned" to "unsigned int".
30799 (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
30800 use set_mode_and_regno to change the mode of registers.
30801 * gengenrtl.c (gendef): Use PUT_MODE_RAW.
30802 * emit-rtl.c (set_mode_and_regno): New function.
30803 (gen_raw_REG): Change regno to unsigned int. Use set_mode_and_regno.
30804 * caller-save.c (reg_save_code): Use set_mode_and_regno.
30805 * expr.c (init_expr_target): Likewise.
30806 * ira.c (setup_prohibited_mode_move_regs): Likewise.
30807 * postreload.c (reload_cse_simplify_operands): Likewise.
30809 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
30811 * caller-save.c (init_caller_save): Use word_mode and
30812 FIRST_PSEUDO_REGISTER when creating temporary rtxes.
30813 * expr.c (init_expr_target): Likewise.
30814 * ira.c (setup_prohibited_mode_move_regs): Likewise.
30815 * postreload.c (reload_cse_regs_1): Likewise.
30817 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
30819 * rtl.def (REG): Change format to "r".
30820 * rtl.h (rtunion): Remove rt_reg.
30821 (reg_info): New structure.
30822 (rtx_def): Add reg field to main union.
30823 (X0REGATTR): Delete.
30824 (REG_CHECK): New macro.
30825 (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
30826 * rtl.c (rtx_format): Document "r".
30827 (rtx_code_size): Handle REG specially.
30828 * gengenrtl.c (special_format): Return true for formats
30830 * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
30831 Deal with REG_ATTRS after the field loop.
30832 * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
30833 * expmed.c (init_expmed): Call gen_raw_REG instead of
30835 * expr.c (init_expr_target): Likewise.
30836 * regcprop.c (maybe_mode_change): Likewise.
30837 * varasm.c (make_decl_rtl): Likewise.
30838 * final.c (leaf_renumber_regs_insn): Return early after
30840 * genemit.c (gen_exp): Handle 'r' fields.
30841 * genpeep.c (match_rtx): Likewise.
30842 * gensupport.c (subst_pattern_match): Likewise.
30843 (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
30844 (alter_constraints, subst_dup): Likewise.
30845 * read-rtl.c (read_rtx_code): Likewise.
30846 * print-rtl.c (print_rtx): Likewise.
30847 * genrecog.c (find_operand, find_matching_operand): Likewise.
30848 (validate_pattern, match_pattern_2): Likewise.
30849 (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
30850 (rtx_test::regno_field): New function.
30851 (operator ==, safe_to_hoist_p, transition_parameter_type)
30852 (parameter_type_string, print_parameter_value)
30853 (print_nonbool_test, print_test): Handle new enum values.
30854 * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
30855 * lra-constraints.c (operands_match_p): Likewise.
30857 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
30859 * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
30860 Change type of new_regno to unsigned int.
30861 * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
30862 new_regno to unsigned int.
30863 (df_ref_change_reg_with_loc): Remove old_regno parameter.
30864 Change type of new_regno to unsigned int. Use SET_REGNO_RAW.
30865 * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
30866 (SET_REGNO_RAW): Add space after ",".
30868 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
30870 * rtl.h (REG_NREGS): New macro
30871 * alias.c (record_set): Use it.
30872 * cfgcleanup.c (mark_effect): Likewise.
30873 * combine.c (likely_spilled_retval_1): Likewise.
30874 (likely_spilled_retval_p, can_change_dest_mode): Likewise.
30875 (move_deaths, distribute_notes): Likewise.
30876 * cselib.c (cselib_record_set): Likewise.
30877 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
30878 * df-scan.c (df_mark_reg): Likewise.
30879 * dse.c (look_for_hardregs): Likewise.
30880 * dwarf2out.c (reg_loc_descriptor): Likewise.
30881 (multiple_reg_loc_descriptor): Likewise.
30882 * expr.c (write_complex_part, read_complex_part): Likewise.
30883 (emit_move_complex): Likewise.
30884 * haifa-sched.c (setup_ref_regs): Likewise.
30885 * ira-lives.c (mark_hard_reg_live): Likewise.
30886 * lra.c (lra_set_insn_recog_data): Likewise.
30887 * mode-switching.c (create_pre_exit): Likewise.
30888 * postreload.c (reload_combine_recognize_const_pattern): Likewise.
30889 (reload_combine_recognize_pattern): Likewise.
30890 (reload_combine_note_use, move2add_record_mode): Likewise.
30891 (reload_cse_move2add): Likewise.
30892 * reg-stack.c (subst_stack_regs_pat): Likewise.
30893 * regcprop.c (kill_value, copy_value): Likewise.
30894 (copyprop_hardreg_forward_1): Likewise.
30895 * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
30896 (build_def_use): Likewise.
30897 * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
30898 (deps_analyze_insn): Likewise.
30899 * sched-rgn.c (check_live_1, update_live_1): Likewise.
30900 * sel-sched.c (count_occurrences_equiv): Likewise.
30901 * valtrack.c (dead_debug_insert_temp): Likewise.
30903 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
30905 * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
30906 * dse.c (note_add_store): Likewise.
30907 * ira-lives.c (mark_hard_reg_dead): Likewise.
30908 * loop-invariant.c (mark_reg_store): Likewise.
30909 (mark_reg_death): Likewise.
30910 * postreload.c (reload_combine): Likewise.
30911 (reload_combine_note_store): Likewise.
30912 (reload_combine_note_use): Likewise.
30913 * recog.c (peep2_reg_dead_p): Likewise.
30915 2015-05-19 Alan Modra <amodra@gmail.com>
30917 * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
30918 hard registers numbered greater or equal to ARG_POINTER_REGNUM.
30919 (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
30921 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
30922 Use altivec_register_operand. Make insn predicate TARGET_ALTIVEC.
30923 * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
30924 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
30926 2015-05-19 Sameera Deshpande <Sameera.Deshpande@imgtec.com>
30928 * config/mips/mips.md (JOIN_MODE): New mode iterator.
30929 (join2_load_Store<JOIN_MODE:mode>): New pattern.
30930 (join2_loadhi): Likewise.
30931 (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
30932 load-load and store-stores.
30933 * config/mips/mips.opt (mload-store-pairs): New option.
30934 (TARGET_LOAD_STORE_PAIRS): New macro.
30935 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
30936 * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
30937 * config/mips/mips.c (mips_load_store_bonding_p): New function.
30939 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
30941 * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
30943 * dojump.c (do_compare_rtx_and_jump): Likewise.
30944 * expmed.c (emit_store_flag_1): Likewise.
30945 * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
30946 * final.c (sprint_ul): Use std::reverse for reversing a string.
30947 * fold-const.c (extract_muldiv_1): Use std::swap.
30948 * genmodes.c (emit_mode_int_n): Likewise.
30949 * ifcvt.c (dead_or_predicable): Likewise.
30950 * ira-build.c (ira_merge_live_ranges): Likewise.
30951 (swap_allocno_copy_ends_if_necessary): Likewise.
30952 * ira.c (ira_setup_alts): Likewise.
30953 * loop-iv.c (iv_analyze_expr): Likewise.
30954 (implies_p): Likewise.
30955 (canon_condition): Likewise.
30956 * lra-constraints.c (swap_operands): Likewise.
30957 * lra-lives.c (lra_merge_live_ranges): Likewise.
30958 * omega.c (swap): Remove.
30960 (omega_unprotect_1): Use std::swap.
30961 (omega_solve_geq): Likewise.
30962 * optabs.c (expand_binop_directly): Likewise.
30963 (expand_binop): Likewise.
30964 (emit_conditional_move): Likewise.
30965 (emit_conditional_add): Likewise.
30966 * postreload.c (reload_cse_simplify_operands): Likewise.
30967 * reg-stack.c (emit_swap_insn): Likewise.
30968 (swap_to_top): Likewise.
30969 (compare_for_stack_reg): Likewise.
30970 (subst_asm_stack_regs): Likewise.
30971 * reload.c (find_reloads): Likewise.
30972 * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
30973 * sel-sched.c (invoke_reorder_hooks): Likewise.
30974 (create_block_for_bookkeeping): Likewise.
30975 * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
30976 (lambda_matrix_right_hermite): Use std::swap.
30977 * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
30978 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
30979 * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
30980 * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
30981 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
30982 * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
30983 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
30984 * tree-vrp.c (compare_ranges): Likewise.
30985 * var-tracking.c (add_with_sets): Likewise.
30986 (vt_find_locations): Likewise.
30988 2015-05-18 Andreas Tobler <andreast@gcc.gnu.org>
30990 * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
30992 (FBSD_ENDFILE_SPEC): Likewise.
30993 * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
30994 config/freebsd-spec.h.
30995 (ENDFILE_SPEC): Likewise.
30997 2015-05-18 Uros Bizjak <ubizjak@gmail.com>
30998 Richard Henderson <rth@redhat.com>
31001 * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
31002 Check for a memory location that is not a reference (using an AND)
31003 to an unaligned location here.
31004 * config/alpha/predicates.md (normal_memory_operand): Remove.
31006 2015-05-18 Alex Velenko <Alex.Velenko@arm.com>
31008 * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
31009 (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
31011 2015-05-18 Robert Suchanek <robert.suchanek@imgtec.com>
31013 * config/mips/mips.c (micromips_globals): New variable.
31014 (mips_set_compression_mode): Save and reinitialize target-dependent
31015 state for microMIPS.
31017 2015-05-18 Martin Liska <mliska@suse.cz>
31019 * dbgcnt.def: Add new counter.
31020 * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
31022 2015-05-18 Martin Liska <mliska@suse.cz>
31024 * dbgcnt.def: Sort counters.
31025 * opts.c (common_handle_option): Do not compile if
31026 -fdbg-cnt-list is enabled.
31028 2015-05-18 Tom de Vries <tom@codesourcery.com>
31030 * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
31031 (gimplify_va_arg_expr): Remove do_deref handling. Remove adding of
31032 address operator to va_list operand.
31033 * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
31035 * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
31037 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
31038 * config/s390/s390.c (s390_gimplify_va_arg): Same.
31039 * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
31041 2015-05-18 Tom de Vries <tom@codesourcery.com>
31043 * tree-ssa-tail-merge.c: Fix whitespace.
31045 2015-05-17 Jim Wilson <jim.wilson@linaro.org>
31047 * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
31048 cortex-a17, and cortex-a17.cortex-a7.
31050 2015-05-17 Oleg Endo <olegendo@gcc.gnu.org>
31053 * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
31055 2015-05-17 Uros Bizjak <ubizjak@gmail.com>
31058 * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
31059 QImode inner modes for TARGET_AVX512BW. Force mask operand
31060 to a register for AVX512F modes.
31062 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
31064 * toplev.c (emit_debug_global_declarations): Do not output debug info
31065 when doing slim LTO objects.
31067 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
31069 * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
31070 odr_types_equivalent_p): Declare.
31071 (odr_type_p): Use gcc_checking_assert.
31072 (type_in_anonymous_namespace_p) Declare.
31073 (type_with_linkage_p): Declare.
31074 * common.opt (Wlto-type-mismatch): New warning.
31075 * ipa-devirt.c (compound_type_base): New function.
31076 (odr_or_derived_type_p): New function.
31077 (odr_types_equivalent_p): New function.
31078 (add_type_duplicate): Simplify.
31079 (type_with_linkage_p): Add hack to prevent false positives on C types
31080 (type_in_anonymous_namespace_p): Likewise.
31081 * tree.c (need_assembler_name_p): Use type_with_linkage.
31082 * tree.h (type_in_anonymous_namespace_p): Remove.
31083 * doc/invoke.texi (-Wlto-type-mismatch): Document
31085 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
31087 * tree.c (verify_type_variant): Verify tree_base and type_common flags.
31088 (verify_type): Verify STRING_FLAG.
31090 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
31093 * tree-pretty-print.c (percent_K_format): Replace locus pointer
31094 with accessor function.
31095 * tree-diagnostic.c (diagnostic_report_current_function): Use
31096 diagnostic_location function.
31097 (maybe_unwind_expanded_macro_loc): Likewise.
31098 (virt_loc_aware_diagnostic_finalizer): Likewise.
31099 (default_tree_printer): Replace locus pointer with accessor function.
31100 * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
31101 (diagnostic_set_info_translated): Initialize second location.
31102 (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
31103 (diagnostic_show_locus): Handle two locations. Call
31104 diagnostic_print_caret_line.
31105 (diagnostic_print_caret_line): New.
31106 (default_diagnostic_starter): Use diagnostic_location function.
31107 (diagnostic_report_diagnostic): Use diagnostic_location function.
31108 (verbatim): Do not set text.locus.
31109 * diagnostic.h (struct diagnostic_info): Remove location field.
31110 (struct diagnostic_context): Make caret_chars an array of two.
31111 (diagnostic_location): New inline.
31112 (diagnostic_expand_location): Handle two locations.
31113 (diagnostic_same_line): New inline.
31114 (diagnostic_print_caret_line): Declare.
31115 (CARET_LINE_MARGIN): New constant.
31116 * pretty-print.c (pp_printf): Do not set text.locus.
31117 (pp_verbatim): Do not set text.locus.
31118 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
31119 (struct text_info): Replace locus pointer with locations
31120 array. Add accessor functions.
31122 2015-05-16 Kugan Vivekanandarajah <kuganv@linaro.org>
31123 Zhenqiang Chen <zhenqiang.chen@linaro.org>
31126 * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
31127 * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
31128 large constants in register instead of splitting them.
31130 2015-05-16 Uros Bizjak <ubizjak@gmail.com>
31133 * config/alpha/alpha.c (get_aligned_mem): Also look for reload
31134 replacements in memory addresses.
31135 (get_unaligned_address): Ditto.
31137 2015-05-16 James Bowman <james.bowman@ftdichip.com>
31139 * config/ft32/*: New files for FT32 port.
31140 * doc/install.texi: Add FT32 information.
31141 * doc/invoke.texi: Add FT32 information.
31142 * doc/md.texi: Add FT32 information.
31143 * doc/contrib.texi: Self added.
31145 2015-05-15 Marc Glisse <marc.glisse@inria.fr>
31147 PR tree-optimization/64454
31148 * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
31149 (-1 - A -> ~A): Remove unnecessary condition.
31151 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
31153 * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
31154 * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
31155 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
31157 2015-05-15 Ilya Enkovich <ilya.enkovich@intel.com>
31159 * ipa-chkp.h (chkp_wrap_function): New.
31160 * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
31161 (chkp_wrap_function_name): New.
31162 (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
31163 to get wrapper name.
31164 * lto-cgraph.c: Include ipa-chkp.h.
31165 (input_cgraph_1): Avoid alias chain for wrappers.
31167 2015-05-15 Ilya Enkovich <enkovich.gnu@gmail.com>
31169 PR middle-end/66134
31170 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
31171 (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
31173 2015-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31175 * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
31176 (AARCH64_FL_SLOWMUL): Delete.
31177 (AARCH64_FL_CRC): Redefine to 1<<3.
31178 (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
31180 2015-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
31182 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
31185 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
31187 * config/alpha/alpha.md (extendqidi2): Use general_operand
31188 instead of some_operand for operand[1] predicate.
31189 (extendhidi2): Ditto.
31190 (cbranchdi4): Use general_operand instead of some_operand
31191 for operand[1] and operands[2] predicates.
31192 (cstoredi4): Ditto.
31193 * config/alpha/predicates.md (some_operand): Remove unused predicate.
31194 (some_ni_operand): Ditto.
31196 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
31198 * config/alpha/alpha.c (alpha_extract_integer): Do not handle
31199 CONST_WIDE_INT and CONST_DOUBLE. Assert CONST_INT_P (x).
31200 (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
31201 low part of the constant using alpha_emit_set_const_1.
31202 (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
31204 2015-05-14 Rohit Arul Raj <rohitrulraj@freescale.com>
31206 * varasm.c (output_constant_pool_1): Pass down alignment from
31207 constant pool entry's descriptor to output_constant_pool_2.
31208 (output_object_block): Add comment prior to call to
31209 output_constant_pool_1.
31211 2015-05-14 Vladimir Makarov <vmakarov@redhat.com>
31213 PR rtl-optimization/65862
31214 * target.def (ira_change_pseudo_allocno_class): New hook.
31215 * targhooks.c (default_ira_change_pseudo_allocno_class): Default
31217 * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
31218 * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
31220 * ira-costs.c (find_costs_and_classes): Call the hook and change
31221 classes when it is necessary.
31222 * doc/tm.texi: Update.
31224 2015-05-14 Alexander Monakov <amonakov@ispras.ru>
31226 * config/i386/i386.md (sibcall_memory): Check that register with
31227 callee address is not also used as one of the arguments, instead
31228 of checking that it is not live after the sibcall.
31229 (sibcall_pop_memory): Ditto.
31230 (sibcall_value_memory): Ditto.
31231 (sibcall_value_pop_memory): Ditto.
31233 2015-05-14 Marc Glisse <marc.glisse@inria.fr>
31235 * generic-match-head.c (types_match): Handle non-types.
31236 * gimple-match-head.c (types_match): Likewise.
31237 * match.pd: Remove unnecessary TREE_TYPE for types_match.
31239 2015-05-14 Wilco Dijkstra <wdijkstr@arm.com>
31241 * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
31242 (csneg3<mode>_insn): Enable expansion of pattern.
31244 2015-05-14 Nick Clifton <nickc@redhat.com>
31246 * config/rl78/rl78.c (rl78_select_section): Select the correct
31247 default section based upon the category of the decl.
31249 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
31251 PR rtl-optimization/30967
31252 * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
31253 destination mode for the cost of scc patterns.
31255 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
31257 * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
31258 using SWIM248 mode iterator.
31259 (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
31260 (*mulvhi4): mark operand[1] as commutative. Use nonimmediate_operand
31261 for operand[2] constraint.
31262 (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
31264 2015-05-13 Jakub Jelinek <jakub@redhat.com>
31266 PR middle-end/66133
31267 * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
31268 make sure it is never noreturn, even when the task body does not
31270 (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
31271 right before GIMPLE_OMP_RETURN.
31272 (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
31273 for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
31274 GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
31276 2015-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31278 * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
31279 * tree-ssa-math-opts.c: Include params.h
31280 (pow_synth_sqrt_info): New struct.
31281 (representable_as_half_series_p): New function.
31282 (get_fn_chain): Likewise.
31283 (print_nested_fn): Likewise.
31284 (dump_fractional_sqrt_sequence): Likewise.
31285 (dump_integer_part): Likewise.
31286 (expand_pow_as_sqrts): Likewise.
31287 (gimple_expand_builtin_pow): Use above to attempt to expand
31288 pow as series of square roots. Removed now unused variables.
31290 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
31292 * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
31293 (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
31294 Remove *p0 and *p1 arguments. Rewrite function.
31295 (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
31296 (alpha_split_const_mov): Update calls to alpha_extract_integer and
31297 alpha_emit_set_long_const.
31298 (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
31299 (alpha_output_mi_thunk_osf): Ditto.
31300 * config/alpha/alpha.md (movti): Do not check operands[1]
31303 2015-05-13 Richard Biener <rguenther@suse.de>
31305 PR tree-optimization/66129
31306 * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
31308 (vect_schedule_slp_instance): Fix typo.
31310 2015-05-13 David Malcolm <dmalcolm@redhat.com>
31312 * common.opt (fdump-internal-locations): New option.
31313 * input.c: Include diagnostic-core.h.
31314 (get_end_location): New function.
31315 (write_digit): New function.
31316 (write_digit_row): New function.
31317 (dump_location_range): New function.
31318 (dump_labelled_location_range): New function.
31319 (dump_location_info): New function.
31320 * input.h (dump_location_info): New prototype.
31321 * toplev.c (compile_file): Handle flag_dump_locations.
31323 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
31325 * gimple-expr.h (is_gimple_constant): Reorder.
31326 * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
31328 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
31330 * combine.c (simplify_set): When generating a CC set, if the
31331 source already is in the correct mode, do not wrap it in a
31332 compare. Simplify the rest of that code.
31334 2015-05-13 Richard Biener <rguenther@suse.de>
31336 PR tree-optimization/66123
31337 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
31340 2015-05-13 Richard Biener <rguenther@suse.de>
31342 PR middle-end/66110
31343 * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
31345 * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
31347 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
31349 * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
31350 * aclocal.m4: Regenerated with automake-1.11.6.
31352 2015-05-13 Tom de Vries <tom@codesourcery.com>
31354 PR tree-optimization/66010
31355 * gimplify.h (gimplify_va_arg_internal): Remove declaration.
31356 * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
31357 * tree-stdarg.c (expand_ifn_va_arg_1): ... here. Choose between lval
31358 and rval based on do_deref.
31360 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
31363 * config/i386/i386.c (ix86_rtx_costs): We want to propagate
31364 link time constants into adress expressions and therefore set
31367 2015-05-13 Jakub Jelinek <jakub@redhat.com>
31370 * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
31371 Use SWI248 iterator instead of SWI.
31372 (*mulv<mode>4_1): Use SWI48 instead of SWI. Simplify output template.
31373 Use eq_attr "alternative" "0" instead of match_test in
31374 length_immediate attribute computation.
31375 (*mulvhi4, *mulvhi4_1): New define_insns.
31378 * internal-fn.c (get_min_precision): Use UNSIGNED instead of
31379 SIGNED to get precision of non-negative value.
31381 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
31384 * function.c (diddle_return_value_1): Process bounds first.
31385 * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
31388 2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
31390 PR rtl-optimization/64616
31391 * loop-invariant.c (can_move_invariant_reg): New.
31392 (move_invariant_reg): Call above new function to decide whether
31393 instruction can just be moved, skipping creation of temporary
31396 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
31398 PR target/pr66047.c
31399 * i386.c (ix86_function_sseregparm): Only return -1 if local function
31400 with implied regparm is called from -mno-sse function.
31401 (init_cumulative_args): Output error if ix86_function_sseregparm
31402 return -1 and SSE register would be needed.
31403 (function_arg_advance_32): Likewise.
31404 (function_arg_32): Likewise.
31405 * i386.h (ix86_args): Add decl field.
31407 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
31410 * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
31411 inlines across optimization boundary.
31413 2015-05-12 Jason Merrill <jason@redhat.com>
31415 * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
31416 string literal and macro name.
31418 2015-05-12 Steve Ellcey <sellcey@imgtec.com>
31420 * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
31421 * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
31422 * config/mips/predicates.md (const_immlsa_operand): Remove log call.
31424 2015-05-12 David Malcolm <dmalcolm@redhat.com>
31426 * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
31427 (-Wmisleading-indentation): New option.
31428 * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
31430 2015-05-12 Uros Bizjak <ubizjak@gmail.com>
31432 * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
31433 * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
31434 (alpha_extract_integer): Ditto.
31435 (alpha_legitimate_constant_p): Ditto.
31436 (alpha_split_tmode_pair): Ditto.
31437 (alpha_preferred_reload_class): Add CONST_WIDE_INT.
31438 (alpha_expand_mov): Ditto.
31439 (print_operand): Remove handling of 'H' modifier.
31440 <case 'm'>: Remove CONST_DOUBLE handling.
31441 (summarize_insn): Handle CONST_WIDE_INT.
31442 * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
31444 (movti): Handle CONST_WIDE_INT.
31445 * config/alpha/constraints.md ('H'): Remove constraint definition.
31446 ('G'): Do not match MODE_FLOAT class.
31447 * config/alpha/predicates.md (const0_operand): Also match
31449 (non_add_const_operand): Ditto.
31450 (non_zero_const_operand): Ditto.
31451 (some_operand): Ditto.
31452 (input_operand): Ditto. Handle CONST_WIDE_INT.
31453 (and_operand): Do not match const_double.
31454 * config/alpha/sync.md (fetchop_constr): Remove H constraint.
31456 2015-05-12 Andrew MacLeod <amacleod@redhat.com>
31459 * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
31460 (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
31461 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
31462 is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
31463 is_mm_seq_cst, is_mm_sync): New accessor functions.
31464 * builtins.c (expand_builtin_sync_operation,
31465 expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
31466 (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
31467 (get_memmodel, expand_builtin_atomic_compare_exchange,
31468 expand_builtin_atomic_load, expand_builtin_atomic_store,
31469 expand_builtin_atomic_clear): Use new accessor routines.
31470 (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
31471 * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
31472 (maybe_emit_sync_lock_test_and_set): Use new accessors and
31473 MEMMODEL_SYNC_ACQUIRE.
31474 (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
31475 (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
31476 expand_atomic_store): Use new accessors.
31477 * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
31478 * tsan.c (instrument_builtin_call): Update check for memory model beyond
31479 final enum to use MEMMODEL_LAST.
31480 * c-family/c-common.c: Use new accessor for memmodel_base.
31481 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
31483 * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
31484 arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
31485 mem_thread_fence, *dmb): Likewise.
31486 * config/alpha/alpha.c (alpha_split_compare_and_swap,
31487 alpha_split_compare_and_swap_12): Likewise.
31488 * config/arm/arm.c (arm_expand_compare_and_swap,
31489 arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
31490 * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
31491 atomic_loaddi): Likewise.
31492 * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
31494 * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
31495 * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
31497 * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
31498 atomic_store<mode>, atomic_compare_and_swap<mode>,
31499 atomic_exchange<mode>): Use new accessors.
31500 * config/mips/mips.c (mips_process_sync_loop): Likewise.
31501 * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
31502 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
31503 rs6000_post_atomic_barrier): Add new cases.
31504 (rs6000_expand_atomic_compare_and_swap): Use new accessors.
31505 * config/rs6000/sync.md (mem_thread_fence): Add new cases.
31506 (atomic_load<mode>): Add new cases and use new accessors.
31507 (store_quadpti): Add new cases.
31508 * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
31510 * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
31511 * doc/extend.texi: Update docs to indicate 16 bits are used for memory
31514 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
31516 * ipa-devirt.c (type_with_linkage_p): New function.
31517 (type_in_anonymous_namespace_p): Move here from tree.c; assert that
31519 (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
31520 (can_be_name_hashed_p): Simplify.
31521 (hash_odr_name): Check that type has linkage before checking if it is
31523 (types_same_for_odr): Likewise.
31524 (odr_name_hasher::equal): Likewise.
31525 (odr_subtypes_equivalent_p): Likewise.
31526 (warn_types_mismatch): Likewise.
31527 (get_odr_type): Likewise.
31528 (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
31529 * ipa-utils.h (odr_type_p): Move offline.
31530 * tree.c (need_assembler_name_p): Fix handling of types
31532 (type_in_anonymous_namespace_p): Move to ipa-devirt.c
31534 2015-05-12 David Malcolm <dmalcolm@redhat.com>
31536 * timevar.c (timevar_enable): Delete in favor of...
31537 (g_timer): New global.
31538 (struct timevar_def): Move to timevar.h inside class timer.
31539 (struct timevar_stack_def): Likewise.
31540 (timevars): Delete global in favor of field "m_timevars" within
31541 class timer in timevar.h
31542 (stack): Likewise, in favor of field "m_stack".
31543 (unused_stack_instances): Likewise, in favor of field
31544 "m_unused_stack_instances".
31545 (start_time): Likewise, in favor of field "m_start_time".
31546 (get_time): Eliminate check for timevar_enable.
31547 (timer::timer): New function, built from part of timevar_init.
31548 (timevar_init): Rewrite idempotency test from using
31549 "timevar_enable" bool to using dynamic allocation of "g_timer".
31550 Move rest of implementation into timer's constructor.
31551 (timevar_push_1): Rename to...
31552 (timer::push): ...this, adding "m_" prefixes to variables that
31553 are now fields of timer.
31554 (timevar_pop_1): Likewise, rename to...
31555 (timer::pop): ...this, and add "m_" prefixes.
31556 (timevar_start): Replace test for "timevar_enable" with one for
31557 "g_timer", and move bulk of implementation to...
31558 (timer::start): ...here, adding "m_" prefixes.
31559 (timevar_stop): Likewise, from here...
31560 (timer::stop): ...to here.
31561 (timevar_cond_start): Likewise, from here...
31562 (timer::cond_start): ...to here.
31563 (timevar_cond_stop): Likewise, from here...
31564 (timer::cond_stop): ...to here.
31565 (validate_phases): Rename to...
31566 (timer::validate_phases): ...this, and add "m_" prefixes. Make
31567 locals "total" and "tv" const.
31568 (timevar_print): Rename to...
31569 (timer::print): ...this, and add "m_" prefixes. Make locals
31570 "total" and "tv" const. Eliminate test for timevar_enable.
31571 * timevar.h (timevar_enable): Eliminate.
31572 (g_timer): New declaration.
31573 (timevar_push_1): Eliminate.
31574 (timevar_pop_1): Eliminate.
31575 (timevar_print): Eliminate.
31576 (class timer): New class.
31577 (timevar_push): Rewrite to use g_timer.
31578 (timevar_pop): Likewise.
31579 * toplev.c (toplev::~toplev): Likewise.
31581 2015-05-12 Richard Earnshaw <rearnsha@arm.com>
31583 * arm-protos.h (arm_sched_autopref): Delete.
31584 (tune_params): Re-organize, use enums for flag values.
31585 (FUSE_OPS): New macro.
31586 * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
31587 (ARM_PREFETCH_BENEFICIAL): Likewise.
31588 (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
31589 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
31590 (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
31591 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
31592 (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
31593 (arm_cortex_a57_tune, arm_xgene1_tune, arm_cortex_a5_tune)
31594 (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
31595 (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
31597 (arm_option_override, thumb2_reorg, arm_print_tune_info)
31598 (aarch_macro_fusion_pair_p): Update uses of current_tune.
31599 * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
31601 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
31603 * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
31606 2015-05-12 Chung-Lin Tang <cltang@codesourcery.com>
31607 Sandra Loosemore <sandra@codesourcery.com>
31609 * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
31611 (REG_CLASS_NAMES): Add "IJMP_REGS".
31612 (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
31613 * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
31614 use new "c" register constraint.
31615 * config/nios2/constraint.md (c): New register constraint
31616 corresponding to IJMP_REGS.
31618 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
31620 * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
31621 *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
31622 define_splits): Delete, revamp, transmogrify into ...
31623 (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
31624 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
31625 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
31628 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
31630 * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
31631 gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
31633 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
31635 * config/rs6000/rs6000.md (extzv): FAIL for SImode.
31636 (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
31637 *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
31638 *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
31639 *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
31640 *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
31641 *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
31642 *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
31643 *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
31644 *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
31645 *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
31646 *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
31647 *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
31648 *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
31649 *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
31650 *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
31651 and 30 corresponding splitters): Delete.
31653 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
31655 * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
31658 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
31660 * combine.c (recog_for_combine_1): New function, factored out
31661 from recog_for_combine.
31662 (change_zero_ext): New function.
31663 (recog_for_combine): If recog fails, try again with the pattern
31664 modified by change_zero_ext; if that still fails, restore the
31667 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
31669 * combine.c (get_undo_marker): New function.
31670 (undo_to_marker): New function, largely factored out from ...
31671 (undo_all): ... this. Adjust.
31673 2015-05-12 Richard Biener <rguenther@suse.de>
31675 PR tree-optimization/66101
31676 * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
31677 fixup if we turn a loop exit edge to a fallthru edge.
31679 2015-05-12 Richard Biener <rguenther@suse.de>
31681 PR tree-optimization/37021
31682 * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
31683 (SLP_TREE_TWO_OPERATORS): New define.
31684 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
31685 SLP_TREE_TWO_OPERATORS.
31686 (vect_build_slp_tree_1): Allow two mixing plus/minus in an
31688 (vect_build_slp_tree): Adjust.
31689 (vect_analyze_slp_cost_1): Likewise.
31690 (vect_schedule_slp_instance): Vectorize mixing plus/minus by
31691 emitting two vector stmts and mixing the results.
31693 2015-05-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
31695 * call.c (print_z_candidates): Remove dead code.
31697 2015-05-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31699 * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
31700 and zEC12_simple_fp.
31701 * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
31704 2015-05-12 Tom de Vries <tom@codesourcery.com>
31706 PR tree-optimization/66010
31707 * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
31709 * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
31710 (gimplify_va_arg_internal): Remove loc parameter. Assert no array-typed
31711 va_lists are passed, and remove corresponding handling.
31712 (gimplify_va_arg_expr): Only take address of ap if necessary. Add
31713 do_deref argument to ifn_va_arg.
31714 * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
31717 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31720 * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
31721 REG before taking its REGNO.
31723 2015-05-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
31725 * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
31726 rsp->sign_bit_copies and rsp->nonzero_bits into ...
31727 (update_rsp_from_reg_equal): This. Also use REG_EQUAL note on src if
31728 present to get more accurate information about the number of sign bit
31729 copies and non zero bits.
31731 2015-05-12 Richard Biener <rguenther@suse.de>
31733 * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
31734 do not allow unrolling.
31736 2015-05-11 Richard Henderson <rth@redhat.com>
31738 * config/i386/i386-modes.def (CCP): New.
31739 * config/i386/i386.c (put_condition_code): Handle it.
31740 (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
31742 2015-05-11 Richard Henderson <rth@redhat.com>
31744 * target.def (md_asm_clobbers): Replace with...
31745 (md_asm_adjust): this.
31746 * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
31747 (TARGET_MD_ASM_ADJUST): New.
31748 * tm.texi: Rebuild.
31749 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
31750 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
31751 * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
31753 * cfgexpand.c (check_operand_nalternatives): Accept vector of
31754 constraints instead of lists of outputs and inputs.
31755 (expand_asm_stmt): Save and restore input_location around the
31756 body of the function. Move asm data into vectors instead of
31757 building tree lists. Generate cleanup sequences as needed,
31758 rather than waiting til the end. Use new md_asm_adjust hook.
31760 * config/vxworks.c: Include vec.h before target.h.
31761 * gimple.c: Likewise.
31762 * incpath.c: Likewise.
31763 * mode-switching.c: Likewise.
31765 * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
31766 (cris_md_asm_adjust): this.
31767 (TARGET_MD_ASM_CLOBBERS): Remove.
31768 (TARGET_MD_ASM_ADJUST): New.
31769 * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
31770 (ix86_md_asm_adjust): this.
31771 (TARGET_MD_ASM_CLOBBERS): Remove.
31772 (TARGET_MD_ASM_ADJUST): New.
31773 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
31774 (mn10300_md_asm_adjust): this.
31775 (TARGET_MD_ASM_CLOBBERS): Remove.
31776 (TARGET_MD_ASM_ADJUST): New.
31777 * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
31778 (rs6000_md_asm_adjust): this.
31779 (TARGET_MD_ASM_CLOBBERS): Remove.
31780 (TARGET_MD_ASM_ADJUST): New.
31781 * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
31782 (visium_md_asm_adjust): this.
31783 (TARGET_MD_ASM_CLOBBERS): Remove.
31784 (TARGET_MD_ASM_ADJUST): New.
31786 2015-05-11 Richard Henderson <rth@redhat.com>
31788 * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
31789 if noutputs is zero.
31790 * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
31792 * cfgexpand.c (expand_asm_operands): Merge into...
31793 (expand_asm_stmt): ... here.
31795 * cfgexpand.c (expand_asm_operands): Don't call
31796 resolve_asm_operand_names.
31797 * stmt.c (resolve_asm_operand_names): Clarify block comment.
31799 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
31801 * dwarf2out.c (gen_member_die): Sanity check that we access
31802 TYPE_MAIN_VARIANT for TYPE_METHODS.
31803 * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
31804 checking TYPE_METHODS.
31805 * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
31807 (build_distinct_type_copy): Clear TYPE_METHODS.
31808 (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
31809 (verify_type): Allow TYPE_METHODS to be error_mark_node.
31810 * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
31812 2015-05-11 Eric Botcazou <ebotcazou@adacore.com>
31814 * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
31815 (emit_pattern_before_setloc): Likewise.
31817 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
31819 * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
31820 for define_peephole2s.
31821 (get_peephole2_pattern): New function.
31822 (main): Use it. Call validate_pattern.
31824 2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
31826 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
31827 LAST_CALLEE_SAVED_REG instead of hard-coded register number.
31828 (Last callee saved reg is different for AVR_TINY architecture)
31830 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
31832 * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
31833 when looking for memory references.
31835 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
31838 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
31839 via function pointers.
31841 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
31843 * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
31844 indirect call by forcing address into a pseudo with -fno-plt.
31845 * common.opt (flag_plt): New option.
31846 * doc/invoke.texi (Code Generation Options): Add -fno-plt.
31847 ([-fno-plt]): Document.
31849 2015-05-11 Markus Trippelsdorf <markus@trippelsdorf.de>
31852 * config/rs6000/option-defaults.h: Add space between string literal
31855 2015-05-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
31857 * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
31858 accross ARM targets.
31860 2015-05-11 Christian Bruel <christian.bruel@st.com>
31862 * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
31863 * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
31865 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
31867 PR rtl-optimization/66076
31868 * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
31869 Don't grow the heap array if it is already big enough from a
31870 previous iteration.
31872 2015-05-11 Christian Bruel <christian.bruel@st.com>
31874 * config/arm/arm-protos.h (arm_declare_function_name): Declare.
31875 (is_called_in_ARM_mode): Remove.
31876 * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
31877 (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
31878 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
31879 arm_declare_function_name.
31881 2015-05-11 Christian Bruel <christian.bruel@st.com>
31883 * config/arm/arm.c (arm_option_override): Reoganized and split into :
31884 (arm_option_params_internal); New function.
31885 (arm_option_check_internal): New function.
31886 (arm_option_override_internal): New function.
31887 (thumb_code, thumb1_code): Remove.
31888 * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
31889 (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
31890 (thumb_code, thumb1_code): Remove.
31891 * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
31893 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
31895 * config/alpha/alpha.c (alpha_emit_set_const_1)
31896 (alpha_emit_set_long_const, alpha_extract_integer)
31897 (alpha_legitimate_constant_p, alpha_split_const_mov)
31898 (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
31899 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
31900 (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
31902 * config/alpha/predicates.md (mode_mask_operand): Do not match
31904 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
31905 * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
31906 Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
31907 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
31908 (*negtf_internal): Use gen_int_mode instead of immed_double_const.
31910 2015-05-11 Jakub Jelinek <jakub@redhat.com>
31913 * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
31914 default_binds_local_p_2.
31915 * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
31916 * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
31918 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
31920 * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
31922 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
31924 Patch by Richard Biener
31925 * coverage.c (coverage_obj_init): Delay building of type variant
31926 until the type is finished.
31928 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
31930 * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
31931 mismatch between C and C++ type; compoare correctly ARG_TYPES
31932 for non-prototypes and output correctly parameter index for METHOD_TYPE.
31933 (odr_types_equivalent_p): Fix wording of warning about attributes;
31934 it is OK to match prototype and non-prototype.
31936 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
31938 * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
31939 TYPE_ARG_TYPES list.
31940 (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
31941 * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
31943 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
31945 * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
31946 * tree.h (is_lang_specific): Constify.
31948 2015-05-09 Marc Glisse <marc.glisse@inria.fr>
31950 PR tree-optimization/64454
31951 * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
31954 2015-05-08 Jason Merrill <jason@redhat.com>
31956 * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
31957 config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
31958 config/darwin.h, config/darwin9.h, config/elfos.h,
31959 config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
31960 config/microblaze/microblaze.h, config/mips/mips.h,
31961 config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
31962 config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
31963 config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
31964 config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
31965 config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
31966 cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
31967 dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
31968 ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
31969 ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
31970 modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
31971 tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
31972 between string literal and macro name.
31974 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31976 * jump.c: Change argument types to rtx_insn *.
31979 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31981 * lra-constraints.c: Change argument type to rtx_insn *.
31983 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31985 * df-problems.c: Change argument type to rtx_insn *.
31987 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31989 * combine.c: Change argument type to rtx_insn *.
31991 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31994 * rtlanal.c: Change argument type to rtx_insn *.
31996 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31998 * sched-deps.c: Change argument types to rtx_insn *.
31999 * sched-int.h: Adjust.
32001 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32003 * dwarf2cfi.c: Change argument type to rtx_insn *.
32005 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32007 * ira.c (decrease_live_ranges_number): Changetype of local
32008 variable to rtx_insn *.
32009 * recog.c: Change argument types to rtx_insn *.
32012 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32014 * reorg.c: Change argument types to rtx_insn *.
32016 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32018 * ira-color.c: Change argument types to rtx_insn *.
32019 * lra-eliminations.c: Likewise.
32022 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32024 * gcse.c: Change argument types to rtx_insn *.
32026 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32028 * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
32030 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32032 * emit-rtl.c (emit_debug_insn_before): Change argument type to
32036 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32038 * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
32041 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32043 * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
32046 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32048 * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
32051 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32053 * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
32056 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32058 * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
32062 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32064 * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
32068 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32070 * except.c (can_nonlocal_goto): Change type of argument to
32074 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32076 * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
32079 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32081 * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
32082 * cfgrtl.c (can_delete_label_p): Adjust.
32085 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32087 * reorg.c (stop_search_p): Change argument to rtx_insn *.
32089 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32091 * except.c (make_reg_eh_region_note): Change argument to
32093 (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
32094 * except.h: Adjust.
32096 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32098 * mode-switching.c (commit_mode_sets): Change type of local
32099 variable from rtx to rtx_insn *.
32101 2015-05-08 Jim Wilson <jim.wilson@linaro.org>
32103 * doc/install.texi (--enable-languages): Add missing jit and lto info.
32104 Add ^ to grep command.
32105 * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
32106 arg to last gimple_simplify declaration. Add missing gimple_build
32107 declaration for built-in function case with four tree args.
32109 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
32110 Szabolcs Nagy <szabolcs.nagy@arm.com>
32112 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
32113 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
32114 (GNU_USER_DYNAMIC_LINKERN32): Update.
32116 2015-05-08 Richard Biener <rguenther@suse.de>
32118 PR tree-optimization/66036
32119 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
32120 Handle strided group loads.
32121 (vect_verify_datarefs_alignment): Likewise.
32122 (vect_enhance_data_refs_alignment): Likewise.
32123 (vect_analyze_group_access): Likewise.
32124 (vect_analyze_data_ref_access): Likewise.
32125 (vect_analyze_data_ref_accesses): Likewise.
32126 * tree-vect-stmts.c (vect_model_load_cost): Likewise.
32127 (vectorizable_load): Likewise.
32129 2015-05-08 Segher Boessenkool <segher@kernel.crashing.org>
32131 * config/rs6000/rs6000.md: Require operand inequality in one
32134 2015-05-08 Richard Sandiford <richard.sandiford@arm.com>
32135 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
32137 * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
32139 * config/rx/rx.md (movdi, movdf): Likewise.
32140 Likewise for define_peephole2s.
32142 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
32144 * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
32145 vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
32146 vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
32147 vtst_u64): Rewrite using gcc vector extensions.
32149 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
32151 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
32152 vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
32154 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
32156 * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
32158 2015-05-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
32160 * config/glibc-stdint.h (OPTION_MUSL): Define.
32161 (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
32162 Change the definition based on OPTION_MUSL for 64 bit targets.
32163 * config/linux.h (OPTION_MUSL): Redefine.
32164 * config/alpha/linux.h (OPTION_MUSL): Redefine.
32165 * config/rs6000/linux.h (OPTION_MUSL): Redefine.
32166 * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
32168 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
32169 Szabolcs Nagy <szabolcs.nagy@arm.com>
32171 * config.gcc (LIBC_MUSL): New tm_defines macro.
32172 * config/linux.h (OPTION_MUSL): Define.
32173 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
32174 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
32175 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
32176 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
32177 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
32178 * config/linux.opt (mmusl): New option.
32179 * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
32180 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
32181 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
32182 * configure: Regenerate.
32184 2015-05-08 H.J. Lu <hongjiu.lu@intel.com>
32185 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
32188 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
32189 * config/i386/knetbsd-gnu64.h: New file.
32191 2015-05-08 Marek Polacek <polacek@redhat.com>
32194 * doc/invoke.texi: Document -Woverride-init-side-effects.
32196 2015-05-07 Marek Polacek <polacek@redhat.com>
32199 * doc/invoke.texi: Document -Wshift-negative-value.
32201 2015-05-06 Aditya Kumar <hiraditya@msn.com>
32203 * gcov-tool.c (do_merge): Refactore to remove int ret.
32204 * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
32205 !type == FUNC to type != FUNC.
32206 * reload.h (struct target_reload): Changee to type of
32207 x_spill_indirect_levels from bool to unsigned char.
32209 2015-05-07 Richard Sandiford <richard.sandiford@arm.com>
32211 * rtl.h (always_void_p): New function.
32212 * gengenrtl.c (always_void_p): Likewise.
32213 (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
32214 with code foo are always VOIDmode.
32215 * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
32216 * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
32217 compare-elim.c, config/aarch64/aarch64.c,
32218 config/aarch64/aarch64.md, config/alpha/alpha.c,
32219 config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
32220 config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
32221 config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
32222 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
32223 config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
32224 config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
32225 config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
32226 config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
32227 config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
32228 config/ia64/vect.md, config/iq2000/iq2000.c,
32229 config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
32230 config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
32231 config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
32232 config/mep/mep.c, config/microblaze/microblaze.c,
32233 config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
32234 config/mn10300/mn10300.c, config/msp430/msp430.c,
32235 config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
32236 config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
32237 config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
32238 config/rs6000/altivec.md, config/rs6000/rs6000.c,
32239 config/rs6000/rs6000.md, config/rs6000/vector.md,
32240 config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
32241 config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
32242 config/sh/sh.md, config/sh/sh_treg_combine.cc,
32243 config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
32244 config/spu/spu.md, config/stormy16/stormy16.c,
32245 config/tilegx/tilegx.c, config/tilegx/tilegx.md,
32246 config/tilepro/tilepro.c, config/tilepro/tilepro.md,
32247 config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
32248 config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
32249 expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
32250 lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
32251 reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
32252 var-tracking.c: Update calls accordingly.
32254 2015-05-07 Segher Boessenkool <segher@kernel.crashing.org>
32257 PR middle-end/54303
32258 * varasm.c (function_mergeable_rodata_prefix): New function.
32259 (mergeable_string_section): Use it.
32260 (mergeable_constant_section): Use it.
32262 2015-05-07 Jeff Law <law@redhat.com>
32265 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
32266 simplifier to narrow arithmetic.
32267 * generic-match-head.c: (types_match, single_use): New functions.
32268 * gimple-match-head.c: (types_match, single_use): New functions.
32270 2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
32272 * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
32275 2015-05-07 Richard Biener <rguenther@suse.de>
32277 PR tree-optimization/66002
32278 * passes.def: Schedule another pass_merge_phi after ifcombine, right
32281 2015-05-07 Marek Polacek <polacek@redhat.com>
32282 Martin Uecker <uecker@eecs.berkeley.edu>
32284 * doc/invoke.texi: Document -fsanitize=bounds-strict.
32285 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
32286 into SANITIZE_NONDEFAULT.
32287 * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
32289 2015-05-07 Uros Bizjak <ubizjak@gmail.com>
32292 * config/alpha/alpha.c (alpha_override_options_after_change): New.
32293 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
32294 (alpha_override_options): Move align_loops, align_jumps and
32295 align_functions handling into alpha_override_options_after_change.
32297 2015-05-06 Sandra Loosemore <sandra@codesourcery.com>
32298 Chris Jones <chrisj@nvidia.com>
32299 Joshua Conner <jconner@nvidia.com>
32301 * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
32302 linking of crtfastmath.o.
32303 * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
32305 2015-05-06 Segher Boessenkool <segher@kernel.crashing.org>
32307 * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
32308 (cstore<mode>4_unsigned_imm): New expander.
32309 (cstore<mode>4): Remove empty constraint strings. Use the new
32312 2015-05-06 Yvan Roux <yvan.roux@linaro.org>
32315 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
32318 2015-05-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
32320 * config/aarch64/geniterators.sh: Use standard BRE in sed.
32322 2015-05-06 Alan Modra <amodra@gmail.com>
32325 * config/rs6000/rs6000.md (nop): Use an unspec pattern.
32326 (UNSPEC_NOP): Define.
32327 (reload_vsx_from_gpr<mode>): Add missing DONE.
32328 (reload_gpr_from_vsx<mode>): Likewise.
32329 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
32330 (vsx_div_v2di, vsx_udiv_v2di): Likewise.
32332 2015-05-06 Christian Bruel <christian.bruel@st.com>
32335 * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
32336 align_jumps, align_functions into aarch64_override_options_after_change.
32338 2015-05-06 Richard Biener <rguenther@suse.de>
32340 * tree-vect-slp.c (vect_supported_load_permutation_p): Use
32341 vect_transform_slp_perm_load to check if we support a permutation
32342 for basic-block vectorization.
32344 2015-05-06 Nick Clifton <nickc@redhat.com>
32346 * config/rl78/rl78.c (need_to_save): Save register 22 if it is
32347 used, even if it is not being used as a frame pointer.
32349 2015-05-05 Jason Merrill <jason@redhat.com>
32351 * dwarf2out.c (gen_member_die): Don't emit anything for an
32352 anonymous class constructor.
32354 2015-05-05 David Malcolm <dmalcolm@redhat.com>
32356 * auto-profile.c (afdo_find_equiv_class): Fix indentation so
32357 that it reflects the block structure.
32358 (afdo_propagate_edge): Likewise.
32359 (afdo_calculate_branch_prob): Likewise.
32360 (afdo_annotate_cfg): Likewise.
32361 * cfgcleanup.c (equal_different_set_p): Likewise.
32362 (try_crossjump_to_edge): Likewise.
32363 * cgraph.c (cgraph_node::verify_node): Likewise.
32364 * cgraphunit.c (expand_all_functions): Likewise.
32365 * config/i386/i386.c (ix86_expand_copysign): Likewise.
32366 (exact_dependency_1): Likewise.
32367 * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
32368 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
32369 * gensupport.c (process_define_subst): Likewise.
32370 * lto-wrapper.c (merge_and_complain): Likewise.
32371 * tree-if-conv.c (if_convertible_bb_p): Likewise.
32372 * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
32373 * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
32374 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
32375 * tree-vect-loop.c (vectorizable_reduction): Likewise.
32376 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
32377 * tree-vect-stmts.c (vectorizable_shift): Likewise.
32378 * tree-vrp.c (vrp_finalize): Likewise.
32379 * tree.c (variably_modified_type_p): Likewise.
32381 2015-05-05 Jack Howarth <howarth.at.gcc@gmail.com>
32383 * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
32384 on darwin12 and later.
32385 * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
32386 file to pass -rdynamic on darwin12 and later.
32387 * config/darwin.opt (rdynamic): Add.
32389 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
32391 * doc/extend.texi (C Extensions): Update menu for moved Variable
32392 Attributes and Type Attributes sections.
32394 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
32397 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
32398 if rep_8byte stringop strategy was specified for 32-bit target.
32400 2015-05-05 Ilya Tocar <ilya.tocar@intel.com>
32403 * config/i386/i386.md (vector convert to float spltiter): Check for
32404 xmm16+, when splitting scalar float conversion.
32405 * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
32407 2015-05-05 Nick Clifton <nickc@redhat.com>
32409 * config/msp430/msp430-opts.h (enum msp430_regions): New.
32410 * config/msp430/msp430.c (msp430_override_options): Complain if
32411 -mcode-region or -mdata-region is used on a non MSP430X.
32412 (msp430_section_attr): New function. Checks lower, upper and
32414 (msp430_attribute_table): Add lower, upper and either.
32415 (gen_prefix): New function. Generates a prefix for a section
32417 (msp430_select_section): New function - handles the choice of
32418 section for an object. Takes into account memory region
32419 attributes and options.
32420 (msp430_function_section): Use gen_prefix.
32421 (TARGET_SECTION_TYPE_FLAGS): Define.
32422 (msp430_section_type_flags): New function.
32423 (TARGET_ASM_UNIQUE_SECTION): Define.
32424 (msp430_unique_section): New function.
32425 (msp430_output_aligned_decl_common): New function.
32426 (msp430_do_not_relax_short_jumps): New function.
32427 * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
32429 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
32430 * config/msp430/msp430-protos.h
32431 (msp430_do_not_relax_short_jumps): New prototype.
32432 (msp430_output_aligned_decl_common): New prototype.
32433 * config/msp430/msp430.md (length): New attribute.
32434 (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
32435 then use a long code sequence for short jumps.
32436 * config/msp430/msp430.opt (mcode-region): New.
32437 (mdata-region): New.
32438 * doc/invoke.texi: Document new options.
32439 * doc/extend.texi: Document new attributes.
32441 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
32443 * config/aarch64-protos.h (struct cpu_branch_cost): New.
32444 (tune_params): Add field branch_costs.
32445 (aarch64_branch_cost): Declare.
32446 * config/aarch64.c (generic_branch_cost): New.
32447 (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
32448 (cortexa53_tunings): Likewise.
32449 (cortexa57_tunings): Likewise.
32450 (thunderx_tunings): Likewise.
32451 (xgene1_tunings): Likewise.
32452 (aarch64_branch_cost): Define.
32453 * config/aarch64/aarch64.h (BRANCH_COST): Redefine.
32455 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
32457 * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
32458 and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
32459 * config/i386/i386.md: Ditto.
32460 * config/i386/winnt.c: Ditto.
32462 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
32464 * doc/extend.texi (__atomic Builtins): Move implementation details
32465 to the end of the description, rewrite opening paragraphs, state
32466 difference with __sync builtins, state C11/C++11 assumptions,
32467 weaken itemized descriptions, add explanation of memory model
32468 behaviour, expand description of compare-exchange, simplify text.
32470 2015-05-05 Renlin Li <renlin.li@arm.com>
32472 * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
32474 2015-05-05 Yvan Roux <yvan.roux@linaro.org>
32476 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
32477 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
32478 * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
32479 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
32480 * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
32481 * configure: Regenerate.
32482 * configure.ac: Add --enable-fix-cortex-a53-843419 option.
32483 * doc/install.texi (aarch64*-*-*): Document new
32484 --enable-fix-cortex-a53-843419 option.
32485 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
32486 and -mno-fix-cortex-a53-843419 options.
32488 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
32491 * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
32493 2015-05-04 Jan Hubicka <hubicka@ucw.cz>
32495 * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
32496 fix overactive TYPE_MIN_VALUE check and add FIXME for type
32497 compatibility problems.
32499 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
32501 * config/microblaze/microblaze.md (cbranchsi4): Added immediate
32503 (cbranchsi4_reg): New.
32504 * config/microblaze/microblaze.c
32505 (microblaze_expand_conditional_branch_reg): New.
32506 * config/microblaze/microblaze-protos.h
32507 (microblaze_expand_conditional_branch_reg): New prototype.
32509 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
32511 * config/microblaze/microblaze.md (peephole2): New.
32513 2015-05-04 Jeff Law <law@redhat.com>
32516 2015-05-04 Jeff Law <law@redhat.com>
32518 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
32519 simplifier to narrow arithmetic.
32520 * generic-match-head.c: (types_match, single_use): New functions.
32521 * gimple-match-head.c: (types_match, single_use): New functions.
32523 2015-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
32526 * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
32527 (split_branches): Likewise.
32529 2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
32531 * common.opt (fdelete-null-pointer-checks): Init to -1.
32532 * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
32533 override flag_delete_null_pointer_checks default.
32534 * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
32535 behavior re address zero. Better document target-specific behavior.
32536 (-fisolate-errneous-paths-dereference): Mention relationship to
32537 -fdelete-null-pointer-checks.
32539 2015-05-04 Jakub Jelinek <jakub@redhat.com>
32541 PR tree-optimization/65984
32542 * ubsan.c: Include tree-cfg.h.
32543 (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
32544 stmt_could_throw_p test, rename can_throw variable to ends_bb.
32546 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
32548 * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
32549 to CONST_DOUBLE_P predicate.
32550 (standard_sse_constant_p): Return 0 for !TARGET_SSE.
32551 (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
32552 allow only operands that satisfy standard_sse_constant_p predicate.
32553 * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
32554 to CONST_DOUBLE_P predicate.
32556 2015-05-04 Jeff Law <law@redhat.com>
32558 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
32559 simplifier to narrow arithmetic.
32560 * generic-match-head.c: (types_match, single_use): New functions.
32561 * gimple-match-head.c: (types_match, single_use): New functions.
32563 2015-05-04 Andreas Tobler <andreast@gcc.gnu.org>
32565 * config/arm/arm.c: Restore bootstrap.
32567 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
32569 * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
32570 * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
32571 as CONST_WIDE_INT, not CONST_DOUBLE.
32572 (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
32573 (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
32574 (ix86_find_base_term): Do not check for CONST_DOUBLE.
32575 (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
32576 (ix86_build_signbit_mask): Rewrite using wide ints.
32577 (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
32578 (ix86_rtx_costs): Handle CONST_WIDE_INT.
32579 (find_constant): Ditto.
32580 * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
32581 using gen_int_mode.
32582 * config/i386/predicates.md (x86_64_immediate_operand)
32583 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
32584 (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
32585 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
32586 (const0_operand): Also match const_wide_int.
32587 (constm1_operand): Ditto.
32588 (const1_operand): Ditto.
32590 2015-05-04 Richard Biener <rguenther@suse.de>
32592 PR tree-optimization/65965
32593 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
32594 store groups at gaps.
32596 2015-05-04 Richard Biener <rguenther@suse.de>
32598 PR tree-optimization/65935
32599 * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
32600 then make sure to apply that swapping to the IL.
32602 2015-05-04 Jakub Jelinek <jakub@redhat.com>
32604 * Makefile.in (PATCHLEVEL_c): New variable.
32605 (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
32606 expand the same way as if DEVPHASE_c was non-empty.
32608 2015-05-04 Kai Tietz <ktietz@redhat.com>
32611 * lto-wrapper.c (run_gcc): Open filename
32614 2015-05-03 Sandra Loosemore <sandra@codesourcery.com>
32616 * doc/extend.texi (Variable Attributes, Type Attributes): Move
32617 sections up in file, to immediately after the Function Attributes
32620 2015-05-02 Jan Hubicka <hubicka@ucw.cz>
32622 * tree.c (verify_type): Check various uses of TYPE_MINVAL.
32624 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32626 * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
32627 (insert_partition_copy_on_edge): Adjust.
32628 (insert_rtx_to_part_on_edge): Likewise.
32629 (insert_part_to_rtx_on_edge): Likewise.
32631 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32633 * function.c (set_return_jump_label): Change type of argument to
32635 * function.h (set_return_jump_label): Adjust.
32637 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32639 * reload.h (struct reg_equivs_t): Change type of init to
32641 * ira.c (fix_reg_equiv_init): Adjust.
32642 * reload1.c (eliminate_regs_1): Likewise.
32643 (init_eliminable_invariants): Likewise.
32645 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32647 * cselib.c (fp_setter_insn): Take a rtx_insn *.
32648 * cselib.h (fp_setter_insn): Adjust.
32650 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32652 * recog.c (struct validate_replace_src_data): Change type of
32653 insn field to rtx_insn *.
32654 (validate_replace_src_group): Change type of argument to rtx_insn *.
32655 * recog.h (validate_replace_src_group): Adjust.
32657 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32659 * haifa-sched.c: Change the type of some variables to rtx_insn *.
32660 * sched-deps.c: Likewise.
32661 * sched-int.h: Likewise.
32662 * sched-rgn.c: Likewise.
32663 * sel-sched.c: Likewise.
32665 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32668 * config/i386/i386.c: Change the type of some arguments to
32670 * config/arm/arm.c: Likewise.
32672 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32674 * lra-constraints.c: Change type of some arguments to rtx_insn *.
32676 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32678 * regcprop.c (kill_autoinc_value): Change type of argument to
32681 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32683 * genrecog.c (print_subroutine): Adjust.
32684 * recog.c (get_bool_attr_mask_uncached): Likewise.
32685 * recog.h (struct recog_data_d): Change the type of insn to
32688 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32690 * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
32692 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32694 * df-problems.c (df_set_note): Change type of argument to
32697 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32699 * builtins.c (expand_builtin_trap): Change type of local
32700 variable to rtx_insn *.
32701 (add_sched_insns_for_speculation): Likewise.
32702 (ix86_emit_save_regs): Likewise.
32703 (get_scratch_register_on_entry): Likewise.
32704 (ix86_emit_restore_reg_using_pop): Likewise.
32705 (ix86_emit_leave): Likewise.
32706 (ix86_emit_restore_regs_using_mov): Likewise.
32707 (ix86_expand_epilogue): Likewise.
32709 (rl78_alloc_physical_registers_umul): Likewise.
32710 * cselib.c (discard_useless_locs): Likewise.
32711 (cselib_invalidate_regno): Likewise.
32712 (cselib_invalidate_mem): Likewise.
32713 * function.c (expand_function_start): Likewise.
32714 (emit_use_return_register_into_block): Likewise.
32715 * gcse.c: Likewise.
32716 * haifa-sched.c (ok_for_early_queue_removal): Likewise.
32717 * ifcvt.c (noce_get_alt_condition): Likewise.
32718 * loop-doloop.c (doloop_condition_get): Likewise.
32719 * lra-constraints.c (inherit_in_ebb): Likewise.
32720 * modulo-sched.c (sms_schedule_by_order): Likewise.
32721 * recog.c (next_insn_tests_no_inequality): Likewise.
32722 * reorg.c (emit_delay_sequence): Likewise.
32723 (update_reg_dead_notes): Likewise.
32724 (fix_reg_dead_note): Likewise.
32725 (fill_slots_from_thread): Likewise.
32726 (delete_computation): Likewise.
32728 2015-05-01 Sandra Loosemore <sandra@codesourcery.com>
32730 * doc/extend.texi (Variable Attributes): Add menu and proper
32731 @nodes to subsections. Move Microsoft Windows attributes to
32732 their own subsection.
32733 (Type Attributes): Reorganize introduction to remove duplicate
32734 list of attributes. Add menu and proper @nodes to subsections.
32735 Alphabetize the main table of common attributes.
32737 2015-05-01 Rasmus Villemoes <rv@rasmusvillemoes.dk>
32739 * match.pd: New simplification patterns.
32740 (x + (x & 1)) -> ((x + 1) & ~1)
32741 (x & ~(x & y)) -> ((x & ~y))
32742 (x | ~(x | y)) -> ((x | ~y))
32744 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32746 * target.def (attribute_table): Mention that struct attribute_spec
32747 is defined in tree-core.h rather than tree.h
32748 * doc/tm.texi: Regenerate.
32750 2015-05-01 Richard Sandiford <richard.sandiford@arm.com>
32752 * genrecog.c (test): Rename to rtx_test. Update rest of file
32755 2015-05-01 Andreas Schwab <schwab@linux-m68k.org>
32757 PR translation/65959
32758 * params.h (DEFPARAM): Rename msgid to nocmsgid.
32760 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
32762 * config/aarch64/aarch64-protos.h (tune_params):
32763 Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
32764 * config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
32765 Return value depending on target.
32766 (generic_tunings): Initialize new target settings.
32767 (cortexa53_tunings): Likewise.
32768 (cortexa57_tunings): Likewise.
32769 (thunderx_tunings): Likewise.
32770 (xgene1_tunings): Likewise.
32772 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
32774 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
32775 Make Cortex-A53 shift costs more accurate.
32777 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32779 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
32782 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
32784 * config/aarch64/aarch64.c (aarch64_rtx_costs):
32785 Calculate cost of op0 and op1 in PLUS and MINUS cases.
32787 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32789 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
32790 Add cost of op0 in the compare-with-fpzero case.
32792 2015-04-30 David Malcolm <dmalcolm@redhat.com>
32794 * builtins.c (fold_builtin_1): Remove spurious second
32796 * cgraph.h (symtab_node::get_availability): Likewise.
32797 * opts.c (common_handle_option): Remove spurious second semicolon.
32798 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
32799 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
32801 2015-04-30 Caroline Tice <cmtice@google.com>
32803 PR gcov-profile/65929
32804 * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
32805 (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
32806 * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
32807 (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
32808 * doc/tm.texi: Regenerate.
32809 * final.c (final_scan_insn): Use ASM_DECLARE_COLD_FUNCTION_NAME
32810 instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
32811 * varasm.c (assemble_end_function): Use ASM_DECLARE_COLD_FUNCTION_SIZE
32812 instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
32814 2015-04-30 Marek Polacek <polacek@redhat.com>
32816 * varasm.c (handle_cache_entry): Fix logic.
32818 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32820 * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
32821 (*extrsi5_insn_uxtw_alt): Likewise.
32822 * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
32823 (aarch64_rtx_costs, IOR case): Use above to properly cost extr
32826 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32828 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
32831 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32833 * config/aarch64/aarch64.md
32834 (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
32835 (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
32836 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
32837 appropriately. Handle alternative EON form.
32839 2015-04-30 Renlin Li <renlin.li@arm.com>
32841 * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
32842 * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
32844 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
32847 * ipa-inline.c (can_inline_edge_p): It is safe to inline across
32848 -fstrict-aliasing boundaries.
32850 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32852 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
32853 and [SU]MNEGL patterns.
32855 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32857 * config/aarch64/aarch64.c (aarch64_shift_p): New function.
32858 (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
32859 combined arithmetic-shift ops. Properly handle all shift and extend
32860 operations that can occur in combination with PLUS/MINUS.
32861 Rename maybe_fma to compound_p.
32862 (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
32863 arithmetic and shift operations.
32865 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32867 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
32868 rather than arith_shift cost when costing ADD/MINUS of an
32871 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
32874 * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
32877 2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
32879 * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
32880 are for the same position.
32882 2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
32884 * tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of
32886 (vectorize_loops): Use it.
32888 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
32890 * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
32891 for aggregate types.
32892 (register_odr_type): Be ready for MAIN_VARIANT of ODR type
32893 type to be non_ODR.
32894 * tree.c (need_assembler_name_p): Compute mangled name for
32895 non-fundamental types and integer types.
32897 2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
32899 * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
32901 * expr.c (expand_expr_real_2): Likewise.
32903 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
32905 * tree.c (build_common_builtin_nodes): Do not build
32906 __builtin_alloca_with_align as equivalent of library alloca.
32908 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
32910 * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
32911 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
32913 * tree.c: Include print-tree.h and ipa-utils.h
32914 (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
32915 (free_lang_data_in_cgraph): Call verify_type.
32916 (verify_type_variant): New function.
32917 (verify_type): New function.
32918 * tree.h (verify_type): Declare.
32920 2015-04-29 Steve Ellcey <sellcey@imgtec.com>
32922 * config/mips/mips-cpus.def: (mips4): Change default processor
32923 from PROCESSOR_R8000 to PROCESSOR_R10000.
32925 2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
32927 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
32928 la/jalr instead of jal.
32930 2015-04-29 Uros Bizjak <ubizjak@gmail.com>
32933 * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
32934 (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
32935 (setcc+movzbl peephole2): Check also clobbered reg.
32936 (setcc+andl peephole2): Ditto.
32938 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
32941 * config/nvptx/mkoffload.c (target_ilp32): New variable.
32942 (main): Set it depending on "-foffload-abi=[...]".
32943 (compile_native, main): Use it to pass "-m32" or "-m64" to the
32946 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
32949 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
32950 vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
32951 Flip lane index back at assembly time for bigendian.
32953 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
32955 * tree.h (OMP_STANDALONE_CLAUSES): New macro.
32956 * gimplify.c (gimplify_omp_workshare): Use it.
32958 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
32960 * Makefile.in (build/genrecog.o): Depend on inchash.h.
32961 (build/genrecog$(build_exeext): Depend on build/hash-table.o and
32963 * genrecog.c: Rewrite most of the code except for the third page.
32965 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
32967 * inchash.h, inchash.c: Include bconfig.h for build objects.
32968 * Makefile.in (build/inchash.o): New rule.
32970 2015-04-29 Yvan Roux <yvan.roux@linaro.org>
32973 * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
32974 number in type attribute expression.
32976 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
32978 * loop-iv.c (canon_condition): Generalize to all types of integer
32981 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
32983 * gimple-walk.c: Prune duplicate or unneeded includes.
32984 (walk_gimple_asm): Only call parse_input_constraint or
32985 parse_output_constraint if their findings are used.
32986 Honour parse_input_constraint and parse_output_constraint
32989 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
32991 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
32993 2015-04-29 Tom de Vries <tom@codesourcery.com>
32995 PR tree-optimization/65893
32996 * passes.def (pass_all_optimizations): Move pass_stdarg to after
32999 2015-04-29 Richard Biener <rguenther@suse.de>
33001 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
33002 compute GROUP_SIZE for basic-block SLP.
33003 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
33004 take into account gaps.
33005 (vect_get_mask_element): Properly reject references to previous
33007 (vect_transform_slp_perm_load): Likewise.
33009 2015-04-29 Christian Bruel <christian.bruel@st.com>
33012 * config/i386/i386.c (ix86_default_align): New function.
33013 (ix86_override_options_after_change): Call ix86_default_align.
33014 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
33015 (ix86_override_options_after_change): New function.
33017 2015-04-28 Jeff Law <law@redhat.com>
33019 * tree-ssa-dom.c (record_equality); Fix comment typos.
33021 2015-04-28 Tom de Vries <tom@codesourcery.com>
33023 PR tree-optimization/65887
33024 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
33026 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
33028 * doc/extend.texi (Declaring Attributes of Functions): Split into
33029 subsections by target. Alphabetize the table of common attributes.
33030 Rewrite some of the introductory text to reflect the new structure.
33031 Update some cross-references to point to the new subsections.
33032 (Attribute Syntax): Put paragraph about "__" naming here. Remove
33033 duplicate copies in the discussion of function, label, and type
33036 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
33039 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
33041 2015-04-28 Jason Merrill <jason@redhat.com>
33044 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
33045 (finalize_type_size): Respect TYPE_USER_ALIGN.
33046 (layout_type) [ARRAY_TYPE]: Likewise.
33048 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
33050 * config/arm/arm.md (*arm_movt): Fix type attribute.
33051 (*cmpsi_shiftsi): Likewise.
33052 (*cmpsi_shiftsi_swp): Likewise.
33053 (*movsicc_insn): Likewise.
33054 (*cond_move): Likewise.
33055 (*if_plus_move): Likewise.
33056 (*if_move_plus): Likewise.
33057 (*if_arith_move): Likewise.
33058 (*if_move_arith): Likewise.
33059 (*if_shift_move): Likewise.
33060 (*if_move_shift): Likewise.
33061 (*arm_movtas_ze): Likewise.
33062 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
33063 redundancy and type attribute.
33064 (*thumb2_movsi_insn): Fix type attribute.
33065 (*thumb2_addsi_short): Likewise.
33066 (thumb2_addsi3_compare0): Likewise.
33067 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
33068 attributes accordingly.
33070 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
33073 * function.c (pad_to_arg_alignment): Add parentheses.
33075 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
33077 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
33078 libgcc/config/frv/elf-lib.h.
33080 2015-04-28 Tom de Vries <tom@codesourcery.com>
33082 * tree-call-cdce.c: Fix example in header comment.
33084 2015-04-28 Richard Biener <rguenther@suse.de>
33086 PR tree-optimization/62283
33087 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
33088 fails fatally and we are vectorizing a basic-block simply
33089 cause the child to be constructed piecewise.
33090 (vect_analyze_slp_cost_1): Adjust.
33091 (vect_detect_hybrid_slp_stmts): Likewise.
33092 (vect_bb_slp_scalar_cost): Likewise.
33093 (vect_get_constant_vectors): For piecewise constructed
33094 constants place them after the last def.
33095 (vect_get_slp_defs): Adjust.
33096 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
33097 externals for basic-block vectorization.
33099 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
33102 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
33104 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
33105 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
33106 (AARCH64_TUNE_FMA_STEERING): Likewise.
33107 * config/aarch64/aarch64-cores.def: Set
33108 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
33109 FMUL/FMADD instructions.
33110 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
33111 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
33112 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
33113 * config/aarch64/cortex-a57-fma-steering.h: New file.
33114 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
33116 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
33118 * gensupport.c (std_preds): Add missing codes to address_operand entry.
33120 2015-04-28 Richard Biener <rguenther@suse.de>
33122 PR tree-optimization/65851
33123 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
33124 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
33125 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
33126 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
33127 (ccp_visit_phi_node): Adjust.
33128 (evaluate_stmt): For simplifications to SSA names return its
33129 lattice value if that isn't VARYING. Return immediately when
33130 simplified to a constant.
33131 (visit_assignment): Adjust.
33132 (ccp_visit_stmt): Likewise.
33134 2015-04-28 Tom de Vries <tom@codesourcery.com>
33136 PR tree-optimization/65818
33137 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
33140 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33142 * calls.c (save_fixed_argument_area): Don't check
33143 ARGS_GROW_DOWNWARD with the preprocessor.
33144 (restore_fixed_argument_area): Likewise.
33145 (mem_overlaps_already_clobbered_arg_p): Likewise.
33146 (check_sibcall_argument_overlap): Likewise.
33147 (expand_call): Likewise.
33148 (emit_library_call_value_1): Likewise.
33149 (store_one_arg): Likewise.
33150 * function.c (assign_parms): Likewise.
33151 (locate_and_pad_parm): Likewise.
33152 (pad_to_arg_alignment): Likewise.
33153 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
33155 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33157 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
33158 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
33159 * calls.c (save_fixed_argument_area): Don't chekc if
33160 ARGS_GROW_DOWNWARD is defined.
33161 (restore_fixed_argument_area): Likewise.
33162 (mem_overlaps_already_clobbered_arg_p): Likewise.
33163 (check_sibcall_argument_overlap): Likewise.
33164 (expand_call): Likewise.
33165 (emit_library_call_value_1): Likewise.
33166 (store_one_arg): Likewise.
33167 * function.c (assign_parms): Likewise.
33168 (locate_and_pad_parm): Likewise.
33169 (pad_to_arg_alignment): Likewise.
33170 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
33172 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33174 * defaults.h (gen_epilogue): New function.
33175 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
33177 * cfgrtl.c (cfg_layout_finalize): Likewise.
33178 * df-scan.c: Likewise.
33179 * function.c (thread_prologue_and_epilogue_insns): Likewise.
33180 (reposition_prologue_and_epilogue_notes): Likewise.
33181 * reorg.c (find_end_label): Likewise.
33182 * toplev.c: Likewise.
33184 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33186 * bb-reorder.c (HAVE_return): Don't check if its undefined.
33187 * defaults.h (gen_simple_return): New function.
33188 (gen_simple_return): Likewise.
33189 (HAVE_return): Add default definition to false.
33190 (HAVE_simple_return): Likewise.
33191 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
33192 HAVE_return and HAVE_simple_return are defined.
33193 * function.c (gen_return_pattern): Likewise.
33194 (convert_jumps_to_returns): Likewise.
33195 (thread_prologue_and_epilogue_insns): Likewise.
33196 * reorg.c (find_end_label): Likewise.
33197 (dbr_schedule): Likewise.
33198 * shrink-wrap.c: Likewise.
33199 * shrink-wrap.h: Likewise.
33201 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33203 * defaults.h (EPILOGUE_USES): Add default definition of false.
33204 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
33205 * resource.c (init_resource_info): Likewise.
33207 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33209 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
33211 * dwarf2out.c (field_byte_offset): REmove check if
33212 PCC_BITFIELD_TYPE_MATTERS is defined.
33213 * stor-layout.c (layout_decl): Likewise.
33214 (update_alignment_for_field): Likewise.
33215 (place_field): Likewise.
33217 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33219 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
33221 * regrename.c (check_new_reg_p): Remove check if
33222 HARD_REGNO_RENAME_OK is defined.
33223 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
33225 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33227 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
33228 * cse.c (fold_rtx): Likewise.
33229 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
33230 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
33231 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
33232 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
33233 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
33234 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
33235 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
33236 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
33237 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
33238 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
33240 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
33241 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
33242 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
33243 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
33244 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
33245 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
33246 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
33247 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
33248 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
33249 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
33250 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
33251 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
33252 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
33253 * doc/tm.texi: Regenerate.
33254 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
33255 either true or false.
33257 2015-04-27 Jeff Law <law@redhat.com>
33259 PR tree-optimization/65217
33260 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
33261 of them has a single use, make sure it is the LHS of the implied
33264 2015-04-28 Alan Modra <amodra@gmail.com>
33267 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
33268 (offsettable_ok_by_alignment): Use minimum of decl and toc
33269 pointer alignment. Replace dead code with assertion.
33270 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
33271 case if size exceeds toc pointer alignment.
33272 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
33273 (rs6000_emit_move): Likewise.
33274 * configure.ac: Add linker toc pointer alignment check.
33275 * configure: Regenerate.
33276 * config.in: Regenerate.
33278 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
33280 * config.gcc: Add h8300-*-linux.
33281 * config/h8300/linux.h: New.
33282 * config/h8300/t-linux: New.
33283 * config/h8300/h8300.c (h8300_option_override): Normal mode
33284 is not supported for h8300-*-linux.
33285 (h8300_file_start): Target priority change.
33286 (get_shift_alg): Likewise.
33287 (h8300_shift_need_scratch_p): Likewise.
33288 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
33289 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
33291 2015-04-27 Caroline Tice <cmtice@google.com>
33293 * final.c (final_scan_insn): Output cold_function_name as function
33295 * varasm.c (cold_function_name): Make global.
33296 (assemble_start_function): Re-set cold_function_name.
33297 (assemble_end_function): Output cold partition size.
33298 * varasm.h (cold_function_name): Declare global.
33300 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
33302 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
33303 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
33305 (*movxi_internal_avx512f): Ditto.
33306 (define_split): Check for xmm16+, when splitting scalar float_extend.
33307 (*extendsfdf2_mixed): Use "v" constraint.
33308 (define_split): Check for xmm16+, when splitting scalar float_truncate.
33309 (*truncdfsf_fast_sse): Use "v" constraint.
33310 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
33311 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
33312 (define_peephole2): Check for xmm16+, when converting scalar
33314 (define_peephole2): Check for xmm16+, when converting scalar
33316 (*fop_<mode>_comm_mixed): Use "v" constraint.
33317 (*fop_<mode>_comm_sse): Ditto.
33318 (*fop_<mode>_1_mixed): Ditto.
33319 (*sqrt<mode>2_sse): Ditto.
33320 (*ieee_s<ieee_maxmin><mode>3): Ditto.
33322 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33324 * combine.c (simplify_if_then_else): Use std::swap instead
33325 of manually swapping.
33326 (known_cond): Likewise.
33327 (simplify_comparison): Likewise.
33329 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
33332 * config/rs6000/htm.md: Remove all define_expands.
33333 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
33334 UNSPECV_HTM_TABORTWCI): Remove.
33335 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
33336 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
33337 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
33338 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
33339 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
33340 tabortwci_internal): Remove define_insns.
33341 (tabort<wd>c, tabort<wd>ci): New define_insns.
33342 (tabort): Use gpc_reg_operand.
33343 (tcheck): Remove operand.
33344 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
33345 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
33347 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
33348 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
33349 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
33350 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
33351 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
33352 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
33353 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
33354 (tcheck): Remove builtin argument.
33355 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
33357 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
33358 tabortdc and tabortdci builtins when not in 64-bit mode.
33359 Modify code to handle the loss of the HTM define_expands.
33360 Emit code to copy the CR register to TARGET.
33361 (htm_init_builtins): Modify code to handle the loss of the HTM
33363 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
33364 (RS6000_BTC_64BIT): Likewise.
33365 (RS6000_BTC_CR): New macro.
33366 * doc/extend.texi: Update documentation for htm builtins.
33368 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33370 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
33371 of manually swapping.
33372 (simplify_associative_operation): Likewise.
33373 (simplify_binary_operation): Likewise.
33374 (simplify_plus_minus): Likewise.
33375 (simplify_relational_operation): Likewise.
33376 (simplify_ternary_operation): Likewise.
33378 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
33380 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
33381 (xs_hi_nonmemory_operand): Remove error.
33382 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
33383 general_operand rather than xs_hi_general_operand.
33385 2015-04-27 Richard Biener <rguenther@suse.de>
33387 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
33388 (record_equivalences_from_stmt): Valueize rhs.
33389 (record_equality): Canonicalize x and y order via
33390 tree_swap_operands_p. Do not swap operands for same loop depth.
33392 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
33396 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
33397 Add hint how to use own spec file.
33399 2015-04-27 Jakub Jelinek <jakub@redhat.com>
33401 PR tree-optimization/65875
33402 * tree-vrp.c (update_value_range): If in is_new case setting
33403 old_vr to VR_VARYING, also set new_vr to it. Remove
33404 old_vr->type == VR_VARYING test.
33405 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
33406 SSA_PROP_INTERESTING if update_value_range returned true,
33407 but new range is VR_VARYING.
33409 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
33411 * combine.c (sign_extend_short_imm): New.
33412 (set_nonzero_bits_and_sign_copies): Use above new function for sign
33413 extension of src short immediate.
33414 (reg_nonzero_bits_for_combine): Likewise for tem.
33416 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
33418 * stor-layout.c (self_referential_component_ref_p): New predicate.
33419 (copy_self_referential_tree_r): Use it.
33420 (self_referential_size): Punt for simple operations directly involving
33421 self-referential component references.
33422 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
33424 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
33426 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
33428 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
33430 * vec.h (vec): Make splice arguments const. Update definitions
33433 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
33435 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
33438 2015-04-26 Tom de Vries <tom@codesourcery.com>
33440 PR tree-optimization/65826
33441 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
33443 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
33445 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
33446 (*madd3<mode>): Ditto.
33447 (*msub4<mode>): Ditto.
33448 (*msub3<mode>): Ditto.
33449 (*nmadd4<mode>): Ditto.
33450 (*nmadd3<mode>): Ditto.
33451 (*nmadd4<mode>_fastmath): Ditto.
33452 (*nmadd3<mode>_fastmath): Ditto.
33453 (*nmsub4<mode>): Ditto.
33454 (*nmsub3<mode>): Ditto.
33455 (*nmsub4<mode>_fastmath): Ditto.
33456 (*nmsub3<mode>_fastmath): Ditto.
33458 2015-04-24 Jason Merrill <jason@redhat.com>
33461 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
33462 down when building TYPE_CANONICAL.
33463 (build_pointer_type_for_mode): Likewise.
33465 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
33467 * genrecog.c (validate_pattern): Check matching constraint refers
33468 to a lower numbered operand.
33470 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
33473 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
33474 save to independent variables use the Save attribute. This will
33475 allow these options to be modified with the #pragma/attribute
33477 (-mallow-movmisalign): Likewise.
33478 (-mallow-df-permute): Likewise.
33479 (-msched-groups): Likewise.
33480 (-malways-hint): Likewise.
33481 (-malign-branch-targets): Likewise.
33482 (-mvectorize-builtins): Likewise.
33483 (-msave-toc-indirect): Likewise.
33485 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
33486 can be set via the #pragma/attribute target support.
33487 (rs6000_opt_vars): Likewise.
33488 (rs6000_inner_target_options): If VSX was set, also set
33489 -mno-avoid-indexed-addresses.
33491 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33493 * config/arm/iterators.md (shiftable_ops): Rename to...
33494 (SHIFTABLE_OPS): ... This. Update use in comments.
33495 (ior_xor): Rename to...
33496 (IOR_XOR): ... This.
33497 (vqh_ops): Rename to...
33498 (VQH_OPS): ... This.
33499 (vqhs_ops): Rename to...
33500 (VQHS_OPS): ... This.
33501 (rshifts): Rename to...
33502 (RSHIFTS): ... This.
33503 (returns): Rename to...
33504 (RETURNS): ... This.
33505 * config/arm/arm.md: Update uses of the above.
33506 * config/arm/neon.md: Likewise.
33508 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33510 * config.host (case ${host}): Add aarch64*-*-linux case.
33511 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
33512 fields to all the cores.
33513 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
33514 Add MCPU_MTUNE_NATIVE_SPECS.
33515 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
33516 field to all extensions.
33517 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
33518 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
33519 Adjust definition of AARCH64_OPT_EXTENSION.
33520 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
33521 (MCPU_MTUNE_NATIVE_SPECS): Define.
33522 * config/aarch64/driver-aarch64.c: New file.
33523 * config/aarch64/x-arch64: New file.
33524 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
33527 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
33528 Wei Mi <wmi@google.com>
33530 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
33531 * config/i386/i386.c (extract_base_offset_in_addr): New function.
33532 (ix86_operands_ok_for_move_multiple): Ditto.
33533 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
33534 (movlpd/movhpd to movupd peephole2): Ditto.
33536 2015-04-24 Marek Polacek <polacek@redhat.com>
33539 * input.h (from_macro_expansion_at): Define.
33542 * doc/invoke.texi: Update description of -Wlogical-op.
33544 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
33546 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
33547 ternary operator in fprintf and harmonize spacing.
33549 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
33551 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
33552 Mark operand1 commutative.
33554 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
33556 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
33557 input operands in memory.
33558 (*vec_concatv2si_sse4_1): Ditto.
33559 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
33560 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
33562 (vec_extract_hi_v32hi): Ditto.
33563 (vec_extract_hi_v64hi): Ditto.
33564 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
33566 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
33567 Steven Bosscher <steven@gcc.gnu.org>
33569 PR rtl-optimization/34503
33570 * cprop.c (cprop_reg_p): New.
33571 (hash_scan_set): Use above function to check if register can be
33573 (find_avail_set): Return up to two sets, one whose source is a
33574 register and one whose source is a constant. Sets are returned in an
33575 array passed as parameter rather than as a return value.
33576 (cprop_insn): Use a do while loop rather than a goto. Try each of the
33577 sets returned by find_avail_set, starting with the one whose source is
33578 a constant. Use cprop_reg_p to check if register can be propagated.
33579 (do_local_cprop): Use cprop_reg_p to check if register can be
33581 (implicit_set_cond_p): Likewise.
33583 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
33585 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
33586 (sem_function::equals): IGNORED_NODES parameter is now unused;
33587 update call of equals_private.
33588 (sem_function::equals_private): Do not call equals_wpa; skip
33589 gimple body matching if there is no body.
33590 (sem_function::init): Add logic to hash tthunk info.
33591 (sem_function::parse): Also parse thunks.
33592 * ipa-icf.h (equals_private): Update declaration.
33594 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33596 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
33597 asterisk from name so this can be generated directly.
33598 (*altivec_stvx_<mode>_internal): Likewise.
33599 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
33600 that this is never called during or after reload/lra.
33601 (rs6000_frame_related): Remove split_reg
33602 argument and logic that references it.
33603 (emit_frame_save): Remove last parameter from call to
33604 rs6000_frame_related.
33605 (rs6000_emit_prologue): Remove last parameter from eight calls to
33606 rs6000_frame_related. Force generation of stvx instruction for
33607 Altivec register saves. Remove split_reg handling, which is no
33609 (rs6000_emit_epilogue): Force generation of lvx instruction for
33610 Altivec register restores.
33612 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33614 * config/rs6000/rs6000.opt (mcrypto): Change option description to
33615 match category changes in ISA 2.07B.
33617 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33619 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
33621 (cmp_op, cmp_type): New code attributes.
33622 (NEON_VCMP, NEON_VACMP): New int iterators.
33623 (cmp_op_unsp): New int attribute.
33624 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
33625 (neon_vceq<mode>): Delete.
33626 (neon_vc<cmp_op><mode>_insn): New pattern.
33627 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
33628 (neon_vcgeu<mode>): Delete.
33629 (neon_vcle<mode>): Likewise.
33630 (neon_vclt<mode>: Likewise.
33631 (neon_vcage<mode>): Likewise.
33632 (neon_vcagt<mode>): Likewise.
33633 (neon_vca<cmp_op><mode>): New define_expand.
33634 (neon_vca<cmp_op><mode>_insn): New pattern.
33635 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
33637 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
33639 * tree.h (attribute_value_equal): Declare.
33640 * tree.c (attribute_value_equal): Export.
33642 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
33644 * ipa-icf.c (sem_item::compare_attributes): New function.
33645 (sem_item::compare_referenced_symbol_properties): Compare variable
33647 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
33648 (sem_function::param_used_p): New function.
33649 (sem_function::equals_wpa): Fix attribute comparsion; match
33650 parameter type codes; do not compare paremter flags when
33651 they are not used; compare edge flags; compare indirect calls.
33652 (sem_item::update_hash_by_addr_refs): Hash reference type.
33653 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
33654 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
33655 reference use type.
33656 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
33657 * ipa-icf.h (compare_attributes, param_used_p): Declare.
33659 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
33661 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
33663 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
33664 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
33665 (sem_item::compare_referenced_symbol_properties): New.
33666 (sem_item::hash_referenced_symbol_properties): New.
33667 (sem_item::compare_cgraph_references): Rename to ...
33668 (sem_item::compare_symbol_references): ... this one; use
33669 compare_referenced_symbol_properties.
33670 (sem_function::equals_wpa): Do not compare
33671 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
33672 DECL_IS_OPERATOR_NEW; compare pointer sizes.
33673 (sem_item::update_hash_by_addr_refs): Call
33674 hash_referenced_symbol_properties.
33675 (sem_item::update_hash_by_local_refs): Cleanup.
33676 (sem_function::merge): Do not mix up symbol properties.
33677 (sem_variable::equals_wpa): Use compare_symbol_references.
33678 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
33679 (sem_item::hash_referenced_symbol_properties): New.
33680 (sem_item::compare_symbol_references): New.
33681 (sem_item::compare_cgraph_references): Remove.
33683 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
33686 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
33687 Emit size of local.
33689 2015-04-23 Nick Clifton <nickc@redhat.com>
33691 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
33692 ATTRIBUTE_UNUSED to x parameter.
33693 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
33695 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33697 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
33698 TARGET_CRYPTO to TARGET_P8_VECTOR>
33699 (crypto_vpermxor_<mode>): Likewise.
33700 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
33701 (BU_CRYPTO_3A): Likewise.
33702 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
33703 (BU_CRYPTO_OVERLOAD_3A): New #define.
33704 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
33705 (VPMSUMH): Likewise.
33706 (VPMSUMW): Likewise.
33707 (VPMSUMD): Likewise.
33708 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
33709 (VPERMXOR_V4SI): Likewise.
33710 (VPERMXOR_V8HI): Likewise.
33711 (VPERMXOR_V16QI): Likewise.
33712 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
33713 BU_CRYPTO_OVERLOAD_2A.
33714 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
33715 BU_CRYPTO_OVERLOAD_3A.
33716 * config/rs6000/rs6000.opt (mcrypto): Change description of
33719 2015-04-23 Richard Biener <rguenther@suse.de>
33721 * passes.def: Remove copy propagation passes run directly after CCP.
33722 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
33724 (ccp_visit_phi_node): Rework to handle first executable edge
33727 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
33729 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
33730 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
33731 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
33732 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
33733 (thumb_legimitimize_reload_address): Remove.
33734 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
33736 (thumb_legimitimize_reload_address): Remove.
33738 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33740 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
33742 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33744 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
33746 (store_multiple): Likewise.
33748 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33750 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
33751 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
33752 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
33753 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
33754 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
33755 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
33756 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
33757 Specify issue_rate value.
33758 (arm_issue_rate): Look up issue rate from tuning structs. Remove
33759 large switch statement.
33760 (arm_marvell_pj4_tune): New struct.
33761 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
33764 2015-04-23 Richard Biener <rguenther@suse.de>
33766 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
33767 (vect_find_last_store_in_slp_instance): Rename to ...
33768 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
33769 (vect_analyze_slp_cost_1): Use vector_load for constant defs
33770 and vec_construct for external defs when estimating prologue cost.
33771 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
33772 Compute costs here only when vectorizing loops.
33773 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
33774 have been determined.
33775 (vect_schedule_slp_instance): Simplify vectorized code placement
33776 and prepare for in-BB external defs.
33777 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
33778 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
33779 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
33781 (vect_model_load_cost): Likewise.
33782 (vectorizable_store): Instead add it here.
33783 (vectorizable_load): Likewise.
33784 (vect_is_simple_use): Dump def type textually.
33786 2015-04-23 Richard Biener <rguenther@suse.de>
33788 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
33789 * cfgloop.c (verify_loop_structure): Verify the root loop node.
33790 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
33791 instead of get_eh_region_from_lp_number.
33792 * loop-init.c (fix_loop_structure): If we removed a loop, reset
33795 2015-04-23 Anton Blanchard <anton@samba.org>
33797 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
33798 need for -mprofile-kernel to save LR to stack.
33800 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33802 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
33804 (insn_is_swappable_p): Return 1 for a convert from double to
33805 single precision when all of its uses are splats of BE element
33808 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
33810 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
33812 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33815 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
33816 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
33817 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
33819 (rs6000_builtin_mask_for_load): Return 0 for targets with
33820 efficient unaligned VSX accesses so that the vectorizer will use
33821 direct unaligned loads.
33822 (rs6000_builtin_support_vector_misalignment): Always return true
33823 for targets with efficient unaligned VSX accesses.
33824 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
33825 stores on targets with efficient unaligned VSX accesses is almost
33826 always the same as the cost of an aligned load or store, so model
33828 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
33829 unaligned vectors if we have efficient unaligned VSX accesses.
33830 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
33831 undocumented option.
33833 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33836 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
33838 * config.gcc (LIBC_MUSL): New tm_defines macro.
33839 * config/linux.h (OPTION_MUSL): Define.
33840 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
33841 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
33842 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
33844 * config/linux.opt (mmusl): New option.
33845 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
33846 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
33848 * configure: Regenerate.
33850 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
33852 * config.gcc (LIBC_MUSL): New tm_defines macro.
33853 * config/linux.h (OPTION_MUSL): Define.
33854 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
33855 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
33856 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
33858 * config/linux.opt (mmusl): New option.
33859 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
33860 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
33862 * configure: Regenerate.
33864 2015-04-22 Yury Gribov <y.gribov@samsung.com>
33866 * doc/invoke.texi (-fsanitize-sections): Update description.
33867 * asan.c (set_sanitized_sections): Parse incoming arg.
33868 (section_sanitized_p): Support wildcards.
33870 2015-04-22 Tom de Vries <tom@codesourcery.com>
33872 PR tree-optimization/65823
33873 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
33874 equality between ap_copy and ap.
33876 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
33879 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
33881 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
33884 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
33886 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
33889 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
33890 remove already contained t-files.
33892 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
33894 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
33895 Remove unneeded forward declarations.
33896 (suitable_for_tail_call_opt_p): Commentary typo fix.
33898 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
33900 * varasm.c (emit_bss): Remove redundant guard.
33902 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
33904 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
33906 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
33908 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
33910 2015-04-22 Hale Wang <hale.wang@arm.com>
33911 Terry Guo <terry.guo@arm.com>
33913 PR rtl-optimization/64818
33914 * combine.c (can_combine_p): Don't combine user-specified
33915 register if it is in an asm input.
33917 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
33920 * passes.def (early_optimizations): Add pass_dse.
33922 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33924 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
33925 * reorg.c (redundant_insn): Remove ifdef
33926 INSN_REFERENCES_ARE_DELAYED.
33927 * resource.c (mark_referenced_resources): Likewise.
33929 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33931 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
33932 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
33933 * resource.c (mark_set_resources): Likewise.
33935 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33937 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
33938 * cfgcleanup.c (flow_find_cross_jump): Likewise.
33939 (flow_find_head_matching_sequence): Likewise.
33940 (try_head_merge_bb): Likewise.
33941 * combine.c (can_combine_p): Likewise.
33942 (try_combine): Likewise.
33943 (distribute_notes): Likewise.
33944 * df-problems.c (can_move_insns_across): Likewise.
33945 * final.c (final): Likewise.
33946 * gcse.c (insert_insn_end_basic_block): Likewise.
33947 * ira.c (find_moveable_pseudos): Likewise.
33948 * reorg.c (try_merge_delay_insns): Likewise.
33949 (fill_simple_delay_slots): Likewise.
33950 (fill_slots_from_thread): Likewise.
33951 * sched-deps.c (sched_analyze_2): Likewise.
33953 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33955 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
33956 PIC_OFFSET_TABLE_REGNUM.
33958 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33960 * alias.c (init_alias_target): Remove ifdef
33961 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
33962 * df-scan.c (df_insn_refs_collect): Likewise.
33963 (df_get_regular_block_artificial_uses): Likewise.
33964 (df_get_eh_block_artificial_uses): Likewise.
33965 (df_get_entry_block_def_set): Likewise.
33966 (df_get_exit_block_use_set): Likewise.
33967 * emit-rtl.c (gen_rtx_REG): Likewise.
33968 * ira.c (ira_setup_eliminable_regset): Likewise.
33969 * reginfo.c (init_reg_sets_1): Likewise.
33970 * regrename.c (rename_chains): Likewise.
33971 * reload1.c (reload): Likewise.
33972 (eliminate_regs_in_insn): Likewise.
33973 * resource.c (mark_referenced_resources): Likewise.
33974 (init_resource_info): Likewise.
33976 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33978 * defaults.h (MASK_RETURN_ADDR): New definition.
33979 * except.c (expand_builtin_extract_return_addr): Remove ifdef
33982 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33984 * defaults.h (RETURN_ADDR_OFFSET): New definition.
33985 * except.c (expand_builtin_extract_return_addr): Remove ifdef
33986 RETURN_ADDR_OFFSET.
33987 (expand_builtin_frob_return_addr): Likewise.
33989 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33991 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
33992 (try_redirect_by_replacing_jump): Likewise.
33993 (rtl_tidy_fallthru_edge): Likewise.
33994 * combine.c (insn_a_feeds_b): Likewise.
33995 (find_split_point): Likewise.
33996 (simplify_set): Likewise.
33997 * cprop.c (cprop_jump): Likewise.
33998 * cse.c (cse_extended_basic_block): Likewise.
33999 * df-problems.c (can_move_insns_across): Likewise.
34000 * function.c (emit_use_return_register_into_block): Likewise.
34001 * haifa-sched.c (sched_init): Likewise.
34002 * ira.c (find_moveable_pseudos): Likewise.
34003 * loop-invariant.c (find_invariant_insn): Likewise.
34004 * lra-constraints.c (curr_insn_transform): Likewise.
34005 * postreload.c (reload_combine_recognize_const_pattern):
34007 * reload.c (find_reloads): Likewise.
34008 * reorg.c (delete_scheduled_jump): Likewise.
34009 (steal_delay_list_from_target): Likewise.
34010 (steal_delay_list_from_fallthrough): Likewise.
34011 (redundant_insn): Likewise.
34012 (fill_simple_delay_slots): Likewise.
34013 (fill_slots_from_thread): Likewise.
34014 (delete_computation): Likewise.
34015 * sched-rgn.c (add_branch_dependences): Likewise.
34017 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34019 * genconfig.c (main): Always define HAVE_cc0.
34020 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
34022 * cfgcleanup.c (flow_find_cross_jump): Likewise.
34023 (flow_find_head_matching_sequence): Likewise.
34024 (try_head_merge_bb): Likewise.
34025 * cfgrtl.c (rtl_merge_blocks): Likewise.
34026 (try_redirect_by_replacing_jump): Likewise.
34027 (rtl_tidy_fallthru_edge): Likewise.
34028 * combine.c (do_SUBST_MODE): Likewise.
34029 (insn_a_feeds_b): Likewise.
34030 (combine_instructions): Likewise.
34031 (can_combine_p): Likewise.
34032 (try_combine): Likewise.
34033 (find_split_point): Likewise.
34035 (simplify_set): Likewise.
34036 (distribute_notes): Likewise.
34037 * cprop.c (cprop_jump): Likewise.
34038 * cse.c (cse_extended_basic_block): Likewise.
34039 * df-problems.c (can_move_insns_across): Likewise.
34040 * final.c (final): Likewise.
34041 (final_scan_insn): Likewise.
34042 * function.c (emit_use_return_register_into_block): Likewise.
34043 * gcse.c (insert_insn_end_basic_block): Likewise.
34044 * haifa-sched.c (sched_init): Likewise.
34045 * ira.c (find_moveable_pseudos): Likewise.
34046 * loop-invariant.c (find_invariant_insn): Likewise.
34047 * lra-constraints.c (curr_insn_transform): Likewise.
34048 * optabs.c (prepare_cmp_insn): Likewise.
34049 * postreload.c (reload_combine_recognize_const_pattern):
34051 * reload.c (find_reloads): Likewise.
34052 (find_reloads_address_1): Likewise.
34053 * reorg.c (delete_scheduled_jump): Likewise.
34054 (steal_delay_list_from_target): Likewise.
34055 (steal_delay_list_from_fallthrough): Likewise.
34056 (try_merge_delay_insns): Likewise.
34057 (redundant_insn): Likewise.
34058 (fill_simple_delay_slots): Likewise.
34059 (fill_slots_from_thread): Likewise.
34060 (delete_computation): Likewise.
34061 (relax_delay_slots): Likewise.
34062 * sched-deps.c (sched_analyze_2): Likewise.
34063 * sched-rgn.c (add_branch_dependences): Likewise.
34065 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34067 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
34068 that is trivially ded on non cc0 targets.
34069 (simplify_set): Likewise.
34070 (mark_used_regs_combine): Likewise.
34071 * cse.c (new_basic_block): Likewise.
34072 (fold_rtx): Likewise.
34073 (cse_insn): Likewise.
34074 (cse_extended_basic_block): Likewise.
34075 (set_live_p): Likewise.
34076 * rtlanal.c (canonicalize_condition): Likewise.
34077 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
34079 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34081 * conditions.h: Define macros even if HAVE_cc0 is undefined.
34082 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
34083 * final.c: Likewise.
34084 * jump.c: Likewise.
34085 * recog.c: Likewise.
34086 * recog.h: Declare functions even when HAVE_cc0 is undefined.
34087 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
34089 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34091 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
34092 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
34093 * builtins.c (expand_builtin): Remove check if
34094 EH_RETURN_DATA_REGNO is defined.
34095 * df-scan.c (df_bb_refs_collect): Likewise.
34096 (df_get_exit_block_use_set): Likewise.
34097 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
34098 * ira-lives.c (process_bb_node_lives): Likewise.
34099 * lra-lives.c (process_bb_lives): Likewise.
34101 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
34103 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
34104 FIRST_PSEUDO_REG): New.
34105 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
34106 (ARG_POINTER_REGNUM): Define to ARGP_REG.
34107 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
34108 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
34109 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
34110 (FIRST_INT_REG): New.
34111 (LAST_INT_REG): New.
34112 (FIRST_*_REG): Define using *_REG.
34113 (LAST_*_REG): Ditto.
34114 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
34115 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
34116 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
34118 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34120 * expmed.c: (synth_mult): Only assume overlapping
34121 shift with previous steps in alg_sub_t_m2 case.
34123 2015-04-21 Richard Biener <rguenther@suse.de>
34125 PR tree-optimization/65650
34126 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
34127 transitions involving copies.
34128 (set_lattice_value): Adjust for copy lattice state.
34129 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
34130 if that doesn't dominate the merge point.
34131 (bit_value_unop): Adjust what we treat as varying mask.
34132 (bit_value_binop): Likewise.
34133 (bit_value_assume_aligned): Likewise.
34134 (evaluate_stmt): When we simplified to a SSA name record a copy
34135 instead of dropping to varying.
34136 (visit_assignment): Simplify.
34138 * gimple-match.h (gimple_simplify): Add another callback.
34139 * gimple-fold.c (fold_stmt_1): Adjust caller.
34140 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
34141 for the 2nd callback.
34142 * gimple-match-head.c (gimple_simplify): Add a callback that is
34143 used to valueize the stmt operands and use it that way.
34145 2015-04-21 Richard Biener <rguenther@suse.de>
34147 PR tree-optimization/65788
34148 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
34150 2015-04-21 Richard Biener <rguenther@suse.de>
34152 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
34153 vec_construct cost by vec_stmt_cost.
34155 2015-04-21 Richard Biener <rguenther@suse.de>
34157 * cfghooks.h (create_basic_block): Replace with two overloads
34158 for RTL and GIMPLE.
34159 (split_block): Likewise.
34160 * cfghooks.c (split_block): Rename to ...
34161 (split_block_1): ... this.
34162 (split_block): Add two type-safe overloads for RTL and GIMPLE.
34163 (split_block_after_labels): Call split_block_1.
34164 (create_basic_block): Rename to ...
34165 (create_basic_block_1): ... this.
34166 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
34167 (create_empty_bb): Call create_basic_block_1.
34168 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
34169 split_block_after_labels.
34170 * omp-low.c (expand_parallel_call): Likewise.
34171 (expand_omp_target): Likewise.
34172 (simd_clone_adjust): Likewise.
34173 * tree-chkp.c (chkp_get_entry_block): Likewise.
34174 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
34175 create_basic_block overload.
34176 (cgraph_node::expand_thunk): Likewise.
34177 * tree-cfg.c (make_blocks): Likewise.
34178 (handle_abnormal_edges): Likewise.
34179 * tree-inline.c (copy_bb): Likewise.
34181 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34183 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
34185 (*xor_one_cmplsidi3_ze): Likewise.
34187 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
34189 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
34190 use df_remove_problem rather than manually removing problems, leaving
34191 holes in df->problems_in_order[].
34193 2015-04-21 Tom de Vries <tom@codesourcery.com>
34195 PR tree-optimization/65802
34196 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
34198 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34200 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
34202 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
34203 at '.'. Assert that there's enough space for everything.
34205 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
34207 PR tree-optimization/64950
34209 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
34212 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
34215 2015-04-20 Shiva Chen <shiva0217@gmail.com>
34217 PR rtl-optimization/64916
34218 * cfgcleanup.c (values_equal_p): New function.
34219 (can_replace_by): Use it.
34221 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
34224 * doc/invoke.texi ([-Wnarrowing]): Update.
34226 2015-04-20 Jeff Law <law@redhat.com>
34228 PR tree-optimization/65658
34229 * tree-ssa-threadupdate.c (redirection_block_p): Remove
34230 redundant test for GIMPLE_ASSIGN in last change.
34232 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
34234 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
34235 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
34236 (legitimize_tls_address): Ditto.
34237 (ix86_expand_move): Ditto.
34238 (ix86_expand_binary_operator): Remove reload_in_progress checks.
34239 (ix86_expand_unary_operator): Ditto.
34240 * config/i386/predicates.md (index_register_operand): Ditto.
34242 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
34244 * reorg.c (try_merge_delay_insns): Improve correctness checking
34245 for targets with multiple delay slots.
34247 2015-04-20 Jeff Law <law@redhat.com>
34249 PR tree-optimization/65658
34250 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
34253 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
34255 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
34256 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
34259 2015-04-20 Jakub Jelinek <jakub@redhat.com>
34262 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
34264 2015-04-20 Richard Biener <rguenther@suse.de>
34266 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
34267 * gimple-fold.c (gimple_build_valueize): New function.
34268 (gimple_build): Always use gimple_build_valueize as valueize hook.
34270 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
34273 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
34274 and overwrite variable parts if <= 1/2 the elements are variable.
34276 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
34278 PR rtl-optimization/65805
34279 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
34280 Don't use difference of offset and previous offset if
34281 update_sp_offset is non-zero.
34282 (eliminate_regs_in_insn): Ditto.
34283 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
34284 lra_eliminate_regs_1 call.
34285 * lra-constraints.c (get_equiv_with_elimination): Ditto.
34287 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
34289 * hash-table.h: Remove version of hash_table that stored value_type *.
34290 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
34291 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
34292 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
34293 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
34294 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
34295 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
34296 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
34297 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
34298 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
34299 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
34300 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
34301 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
34302 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
34303 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
34304 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
34305 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
34307 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
34308 Jakub Jelinek <jakub@redhat.com>
34311 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
34312 subsequent SH_NONE operand does not overwrite an existing *special
34314 (adjust_extract): Handle case where a vec_extract operation is
34315 wrapped in a PARALLEL.
34317 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
34320 * config/i386/i386.c (ix86_binds_local_p): Define only if
34321 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
34323 2015-04-17 Jeff Law <law@redhat.com>
34325 PR tree-optimization/47679
34326 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
34327 * tree-ssa-scopedtables.c: New file.
34328 * tree-ssa-scopedtables.h: New file.
34329 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
34330 (const_and_copies): Change name/type.
34331 (record_const_or_copy): Move into tree-ssa-scopedtables.c
34332 (record_const_or_copy_1): Similarly.
34333 (restore_vars_to_original_value): Similarly.
34334 (pass_dominator::execute): Create and destroy const_and_copies table.
34335 (thread_across_edge): Update passing of const_and_copies.
34336 (record_temporary_equivalence): Use method calls rather than
34337 manipulating const_and_copies directly.
34338 (record_equality, cprop_into_successor_phis): Similarly.
34339 (dom_opt_dom_walker::before_dom_children): Similarly.
34340 (dom_opt_dom_walker::after_dom_children): Similarly.
34341 (eliminate_redundant_computations): Similarly.
34342 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
34343 (record_temporary_equivalence): Likewise.
34344 (invalidate_equivalences): Likewise.
34345 (record_temporary_equivalences_from_phis): Update due to type
34346 change of const_and_copies. Use method calls rather than
34347 manipulating the stack directly.
34348 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
34349 (thread_through_normal_block, thread_across_edge): Likewise.
34350 (thread_across_edge): Likewise.
34351 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
34352 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
34354 (identify_jump_threads): Update due to type change of equiv_stack.
34355 (finalize_jump_threads): Delete the equiv_stack when complete.
34357 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
34359 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
34360 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
34361 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
34363 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
34366 * config.gcc: Exit with a comment when we do not have a major version
34367 number for the FreeBSD target.
34369 2015-04-17 Jakub Jelinek <jakub@redhat.com>
34372 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
34373 maybe_allows_mem bitfields.
34374 (maybe_allows_none_start, maybe_allows_none_end,
34375 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
34376 maybe_allows_mem_end): New variables.
34377 (compute_maybe_allows): New function.
34378 (add_constraint): Use it to initialize maybe_allows_reg and
34379 maybe_allows_mem fields.
34380 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
34381 is_address constraints such that those that allow neither mem nor
34382 reg come first, then those that only allow reg but not mem, then
34383 those that only allow mem but not reg, then the rest.
34384 (write_allows_reg_mem_function): New function.
34385 (write_tm_preds_h): Call it.
34386 * stmt.c (parse_output_constraint, parse_input_constraint): Use
34387 the generated insn_extra_constraint_allows_reg_mem function
34388 instead of always setting *allows_reg = true; *allows_mem = true;
34389 for unknown extra constraints.
34391 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
34394 * output.h (default_binds_local_p_3): New.
34395 * varasm.c (default_binds_local_p_3): Make it public. Take an
34396 argument to indicate if common symbol may be local. If common
34397 symbol may be local, treat non-external variable as defined
34399 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
34400 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
34401 * config/i386/i386.c (ix86_binds_local_p): New.
34402 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
34403 ix86_binds_local_p.
34405 2015-04-17 Jakub Jelinek <jakub@redhat.com>
34408 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
34409 trying mem_loc_descriptor on XEXP (rtl, 0).
34411 2015-04-17 Martin Liska <mliska@suse.cz>
34413 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
34414 Release symbol_compare_collection.
34415 * ipa-reference.c: Add TODO that a vector should be released.
34417 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
34420 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
34421 to new AVR-LibC file layout (bug #44574).
34422 (*avrlibc_devicelib): Same.
34423 * config/avr/avr-mcus.def: Adjust comments.
34424 * config/avr/avr.opt (nodevicelib): Adjust help.
34426 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
34428 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
34430 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
34433 * gimplify.c (gimplify_init_constructor): Always emit a
34434 side-effecting constructor.
34436 2015-04-17 Tom de Vries <tom@codesourcery.com>
34438 PR tree-optimization/64950
34439 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
34440 in cfun->curr_properties.
34441 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
34442 if we generate an IFN_VA_ARG.
34443 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
34444 function if PROP_gimple_lva is not set in src function.
34446 2015-04-17 Tom de Vries <tom@codesourcery.com>
34447 Michael Matz <matz@suse.de>
34449 PR tree-optimization/64950
34450 * gimple-iterator.c (update_modified_stmts): Remove static.
34451 * gimple-iterator.h (update_modified_stmts): Declare.
34452 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
34453 (gimplify_va_arg_internal): New function.
34454 (gimplify_va_arg_expr): Use IFN_VA_ARG.
34455 * gimplify.h (gimplify_va_arg_internal): Declare.
34456 * internal-fn.c (expand_VA_ARG): New unreachable function.
34457 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
34458 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
34459 (expand_ifn_va_arg): New function.
34460 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
34461 (pass_stdarg::execute): Call expand_ifn_va_arg.
34462 (pass_data_lower_vaarg): New pass_data.
34463 (pass_lower_vaarg): New gimple_opt_pass.
34464 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
34465 (make_pass_lower_vaarg): New function.
34466 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
34467 properties_required field.
34468 * passes.def (all_passes): Add pass_lower_vaarg.
34469 * tree-pass.h (PROP_gimple_lva): Add define.
34470 (make_pass_lower_vaarg): Declare.
34472 2015-04-17 Tom de Vries <tom@codesourcery.com>
34474 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
34475 * calls.c (call_expr_flags): Same.
34477 2015-04-17 Tom de Vries <tom@codesourcery.com>
34479 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
34480 (pass_stdarg::execute): ... here.
34482 2015-04-17 Tom de Vries <tom@codesourcery.com>
34483 Michael Matz <matz@suse.de>
34485 * tree-cfg.c (make_blocks_1): Factor out of ...
34486 (make_blocks): ... here.
34487 (make_edges_bb): Factor out of ...
34488 (make_edges): ... here.
34489 (gimple_find_sub_bbs): New function.
34490 * tree-cfg.h (gimple_find_sub_bbs): Declare.
34492 2015-04-17 Tom de Vries <tom@codesourcery.com>
34494 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
34496 2015-04-17 Yury Gribov <y.gribov@samsung.com>
34498 * asan.c (set_sanitized_sections): New function.
34499 (section_sanitized_p): Ditto.
34500 (asan_protect_global): Optionally sanitize user-defined
34502 * asan.h (set_sanitized_sections): Declare new function.
34503 * common.opt (fsanitize-sections): New option.
34504 * doc/invoke.texi (-fsanitize-sections): Document new option.
34505 * opts-global.c (handle_common_deferred_options): Handle new
34508 2015-04-17 Jakub Jelinek <jakub@redhat.com>
34511 * dwarf2out.c (loc_list_from_tree): Return NULL
34512 for DEBUG_EXPR_DECL.
34514 2015-04-17 Christian Bruel <christian.bruel@st.com>
34516 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
34519 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
34521 * ira-color.c (setup_left_conflict_sizes_p): Do not process
34522 node itself when computing left conflict subnode size.
34524 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
34526 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
34527 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
34528 *fop_<mode>_1_sse using enabled attribute. Use
34529 register_mixssei387nonimm_operand operand 1 predicate. Change
34530 alternative 3 constraints from "x" to "v".
34532 2015-04-16 Richard Biener <rguenther@suse.de>
34534 PR tree-optimization/65774
34535 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
34536 bit-value tracking on.
34538 2015-04-16 Richard Biener <rguenther@suse.de>
34540 PR tree-optimization/64277
34541 * tree-vrp.c (check_array_ref): Fix anti-range handling,
34542 simplify upper bound handling.
34543 (search_for_addr_array): Simplify.
34544 (check_array_bounds): Handle ADDR_EXPRs here.
34545 (check_all_array_refs): Simplify.
34547 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
34549 * config/i386/i386.c (print_reg): Rewrite function.
34551 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34553 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
34554 Invert the condition.
34556 2015-04-16 Renlin Li <renlin.li@arm.com>
34558 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
34559 simplifications for UNSIGNED_FLOAT.
34561 2015-04-16 Nick Clifton <nickc@redhat.com>
34563 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
34565 (enum rl78_cpu_type): New.
34566 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
34567 (umulhi3_shift_virt): Remove m constraint from operand 1.
34568 (umulqihi3_virt): Likewise.
34569 * config/rl78/rl78.c (rl78_option_override): Add code to process
34570 -mcpu and -mmul options.
34571 (rl78_alloc_physical_registers): Add code to handle divhi and
34572 divsi valloc attributes.
34573 (set_origin): Likewise.
34574 * config/rl78/rl78.h (RL78_MUL_G14): Define.
34575 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
34576 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
34578 (ASM_SPEC): Pass -mcpu on to assembler.
34579 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
34580 (mulqi3_rl78): Likewise.
34581 (mulhi3_g13): Likewise.
34582 (mulhi3): Generate the G13 or G14 versions of the insn directly.
34583 (mulsi3): Likewise.
34584 (mulhi3_g14): Add clobbers of AX and BC.
34585 (mulsi3_g14): Likewise.
34586 (mulsi3_g13): Likewise.
34587 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
34588 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
34589 * config/rl78/rl78.opt (mmul): Initialise value to
34591 (mcpu): New option.
34592 (m13, m14, mrl78): New option aliases.
34593 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
34594 (MULTILIB_DIRNAMES): Add g13 and g14.
34595 * doc/invoke.texi: Document -mcpu and -mmul options.
34597 2015-04-16 Richard Biener <rguenther@suse.de>
34599 * tree-ssa-ccp.c (likely_value): See if we have operands that
34600 are marked as never simulate again and return CONSTANT in this
34602 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
34603 not have any operands that will be simulated again as
34604 not being simulated again.
34606 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
34608 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
34609 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
34610 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
34612 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
34614 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
34615 *float<SWI48:mode><MODEF:mode>2_sse.
34616 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
34618 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
34621 2015-04-15 Tom de Vries <tom@codesourcery.com>
34624 * function.c (push_dummy_function): New function.
34625 (init_dummy_function_start): Use push_dummy_function.
34626 (pop_dummy_function): New function. Factored out of ...
34627 (expand_dummy_function_end): ... here.
34628 * function.h (push_dummy_function, pop_dummy_function): Declare.
34629 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
34630 pop_dummy_function.
34631 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
34633 2015-04-15 Jeff Law <law@redhat.com>
34635 PR tree-optimization/47679
34636 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
34637 need for forward declaration in upcoming changes.
34638 (record_conditions, record_edge_info): Likewise.
34640 PR rtl-optimization/42522
34641 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
34642 SIGN_EXTRACT as a whole object rather than simplifying
34645 2015-04-15 Jakub Jelinek <jakub@redhat.com>
34648 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
34649 and GIMPLE_PREDICT use break instead of return true. For
34650 GIMPLE_EH_DISPATCH, compare dispatch region.
34652 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
34654 * doc/extend.texi (__sync Builtins): Simplify some text. Update
34655 details about the implementation. Make clear preference for
34656 __atomic builtins. Reduce possibility of future change.
34658 2015-04-15 Nick Clifton <nickc@redhat.com>
34660 * config/rx/rx.opt (mallow-string-insns): New option.
34661 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
34662 builtin if string instructions are denied.
34663 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
34664 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
34666 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
34667 * config/rx/rx.md (movstr): Enable pattern only if string
34668 instructions are allowed.
34669 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
34670 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
34671 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
34672 (MULTILIB_DIRNAMES): Add no-strings.
34673 * doc/invoke.texi: Document -mno-allow-string-insns.
34675 2015-04-15 Alan Modra <amodra@gmail.com>
34679 PR middle-end/36043
34680 * calls.c (load_register_parameters): Don't load past end of
34681 mem unless suitably aligned.
34683 2015-04-15 Nick Clifton <nickc@redhat.com>
34685 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
34686 decrement instruction as being frame related.
34687 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
34689 If zero extending a function address enclose the operation in
34691 (rl78_preferred_reload_class): New function.
34692 (TARGET_PREFERRED_RELOAD_CLASS): Define.
34693 * config/rl78/rl78.md: Remove useless constraints in expanders.
34694 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
34695 (mulhi3_rl78): Likewise.
34696 (mulhi3_g13): Likewise.
34697 (mulsi3_rl78): Likewise.
34698 (es_addr): Move to before the multiply patterns.
34700 2015-04-15 Alan Modra <amodra@gmail.com>
34702 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
34703 and sequence_stack. Add seq.
34704 (seq_stack): Delete.
34705 * function.c (prepare_function_start): Don't access x_last_insn.
34706 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
34707 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
34708 * emit_rtl.c (start_sequence, push_topmost_sequence,
34709 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
34710 sequence accessors.
34711 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
34712 remove_insn): Likewise. Simplify.
34713 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
34714 and pop_topmost_sequence.
34715 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
34717 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
34719 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
34722 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
34725 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
34727 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
34728 (LEGACY_INT_REGNO_P): Ditto.
34729 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
34730 (ANY_MASK_REG_P): Remove.
34731 (BND_REG_P): Rename from ANY_BND_REG_P.
34732 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
34733 legacy integer registers. Do not handle MMX_REG_P in a special way.
34734 Merge 64byte and 32byte SSE handling.
34736 2015-04-14 Nick Clifton <nickc@redhat.com>
34738 * expr.c (expand_assignment): Force an address offset computation
34739 into a register before changing its mode.
34740 (expand_expr_real_1): Likewise.
34742 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
34744 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
34745 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
34746 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
34747 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
34748 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
34749 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
34750 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
34751 and __aarch64_vget_lane_any.
34753 2015-04-14 Jakub Jelinek <jakub@redhat.com>
34755 PR rtl-optimization/65761
34756 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
34757 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
34759 2015-04-14 Richard Biener <rguenther@suse.de>
34761 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
34762 (graphite_can_represent_scev): Use POINTER_TYPE_P.
34764 2015-04-14 Richard Biener <rguenther@suse.de>
34766 PR tree-optimization/65758
34767 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
34769 (ccp_lattice_meet): Likewise.
34770 (bit_value_unop): Likewise.
34771 (bit_value_binop): Likewise.
34772 (bit_value_assume_aligned): Likewise.
34774 2015-04-14 Christian Bruel <christian.bruel@st.com>
34776 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
34779 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
34781 PR tree-optimization/63387
34782 * match.pd ((x unord x) | (y unord y) -> (x unord y),
34783 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
34785 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
34787 * config/i386/predicates.md (any_QIreg_operand): Rename from
34788 q_regs_operand. Do not process subregs.
34789 (QIreg_operand): Use QI_REGNO_P predicate.
34790 (ext_QIreg_operand): Ditto.
34791 (ext_register_operand): Ditto.
34792 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
34793 (AND splitters): Ditto.
34794 (AND with -65536 splitter): Add SWI48 mode for operand 0.
34795 (AND with -256 splitter): Use any_QIreg_operand predicate and
34796 SWI248 mode for operand 0.
34797 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
34798 mode for operand 0.
34799 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
34801 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
34803 * doc/plugins.texi: Rewrite first introductory paragraph.
34805 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
34807 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
34808 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
34810 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
34812 * ipa-profie.c (ipa_profile): Check number of parameters
34813 and possible polymorphic call targets before
34816 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
34818 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
34819 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
34821 2015-04-13 Richard Biener <rguenther@suse.de>
34823 PR tree-optimization/65204
34824 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
34825 takens for bit-CCP.
34827 2015-04-13 Richard Biener <rguenther@suse.de>
34830 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
34831 and cond_not_taken_branch_cost to 4 and 2.
34832 (bdver2_cost): Likewise.
34833 (bdver3_cost): Likewise.
34834 (bdver4_cost): Likewise.
34836 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
34838 * hash-table.h (hash_table constructor): Add mem stats.
34839 (alloc_entries): Likewise.
34841 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
34843 * ipa-cp.c (ipcp_driver): Relase prev_edge.
34844 * passes.c (execute_one_pass): Only add transform if pass has one.
34846 2015-04-12 Joseph Myers <joseph@codesourcery.com>
34848 * config/i386/i386.c (ix86_option_override_internal): Don't set
34849 -fprefetch-loop-arrays if optimizing for size.
34851 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
34852 Gerald Pfeifer <gerald@pfeifer.com>
34854 * doc/contrib.texi (Contributors): Add Martin Jambor and
34857 2015-04-12 Jakub Jelinek <jakub@redhat.com>
34859 * BASE-VER: Set to 6.0.0.
34861 PR tree-optimization/65747
34862 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
34863 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
34865 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
34867 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
34868 sentence. Improve grammar.
34870 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
34872 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
34874 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
34877 * ipa-inline-transform.c (speculation_removed): Remove static var.
34878 (check_speculations): New function.
34879 (clone_inlined_nodes): Do not check spculations.
34880 (inline_call): Call check_speculations.
34881 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
34882 consider non-invariants.
34884 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
34885 Martin Liska <mliska@suse.cz>
34888 * ipa-icf.c (sem_item::compare_cgraph_references): function and
34889 variable can not match.
34890 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
34891 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
34893 2015-04-11 Jakub Jelinek <jakub@redhat.com>
34895 PR tree-optimization/65735
34896 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
34897 Remove visited_phis argument, add visited_bbs, avoid recursing into the
34898 same bb rather than just into the same phi node.
34899 (thread_through_normal_block): Adjust caller.
34901 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
34903 * doc/contrib.texi (Contributors): Add Ira Rosen.
34905 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
34907 * gcov.c (find_source): Fix miswording in error message.
34908 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
34909 (ix86_expand_sse_comi_round): Fix typo in error message.
34911 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
34913 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
34915 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
34917 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
34919 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
34922 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
34923 Print bad_spills_num and insn_pseudos_num.
34925 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34928 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
34929 when creating +1 values for SImode.
34931 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
34934 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
34937 2015-04-10 Jakub Jelinek <jakub@redhat.com>
34938 Iain Sandoe <iain@codesourcery.com>
34941 * configure: Regenerate.
34943 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
34946 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
34948 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
34950 * doc/contrib.texi (Contributors): Add John Marino.
34952 2015-04-09 Jakub Jelinek <jakub@redhat.com>
34954 PR tree-optimization/65709
34955 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
34956 TREE_TYPE (TREE_TYPE (t)).
34958 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
34961 * lra-int.h (lra_bad_spill_regno_start): New.
34962 * lra.c (lra_bad_spill_regno_start): New.
34963 (lra): Set up lra_bad_spill_regno_start. Set up
34964 lra_constraint_new_regno_start unconditionally.
34965 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
34968 2015-04-09 Marek Polacek <polacek@redhat.com>
34969 Jakub Jelinek <jakub@redhat.com>
34971 PR middle-end/65554
34972 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
34973 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
34976 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
34978 PR rtl-optimization/65693
34979 * combine.c (is_parallel_of_n_reg_sets): Move outside of
34982 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
34985 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
34986 device specs file if "device-specs%s" didn't resolve to a path.
34988 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
34991 * config/i386/i386.c (fixup_modeless_constant): New.
34992 (ix86_expand_args_builtin): Fixup modeless constant operand.
34993 (ix86_expand_round_builtin): Ditto.
34994 (ix86_expand_special_args_builtin): Ditto.
34995 (ix86_expand_builtin): Ditto.
34997 2015-04-09 Jakub Jelinek <jakub@redhat.com>
35000 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
35001 any pow2 integer in between 2 and 0x80000000U inclusive.
35003 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
35005 PR rtl-optimization/65693
35006 * combine.c (is_parallel_of_n_reg_sets): Change first argument
35007 from an rtx_insn * to an rtx.
35008 (try_combine): Adjust both callers. Use it once more.
35010 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
35012 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
35013 (chkp_make_static_const_bounds): Search existing
35014 symbol by assembler name. Use make_decl_one_only.
35015 (chkp_get_zero_bounds_var): Remove node search which
35016 is now performed in chkp_make_static_const_bounds.
35017 (chkp_get_none_bounds_var): Likewise.
35019 2015-04-08 Michael Witten <mfwitten@gmail.com>
35021 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
35024 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
35026 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
35028 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
35030 * doc/extend.texi (__sync Builtins): Fix grammar.
35032 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
35034 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
35036 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
35038 * varasm.c (emit_local): Move definition of align.
35040 2015-04-08 Julian Brown <julian@codesourcery.com>
35042 * config/nvptx/mkoffload.c (process): Support variable mapping.
35044 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
35046 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
35048 (alpha_write_one_linkage): Correct typo.
35050 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
35052 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
35054 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
35056 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
35058 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
35060 * tree-chkp.h (chkp_insert_retbnd_call): New.
35061 * tree-chkp.c (chkp_insert_retbnd_call): New.
35062 * ipa-split.c (insert_bndret_call_after): Remove.
35063 (split_function): Use chkp_insert_retbnd_call.
35064 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
35065 bounds for instrumented functions.
35067 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
35070 * calls.c (initialize_argument_information): When producing tail
35071 call also turn SSA_NAMES passed by references to original PARM_DECLs
35073 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
35076 * lra-remat.c (do_remat): Process input and non-input insn
35077 registers separately.
35079 2015-04-07 Jakub Jelinek <jakub@redhat.com>
35082 * valtrack.c (debug_lowpart_subreg): New function.
35083 (dead_debug_insert_temp): Use it.
35085 PR middle-end/65680
35086 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
35087 into signed HOST_WIDE_INT the same as negative bit_offset.
35089 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
35091 * ipa-comdats.c (ipa_comdats): Visit all thunks
35092 to set proper comdat group.
35094 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35097 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
35098 on constants for NEON VSTRUCT modes.
35100 2015-04-07 Jakub Jelinek <jakub@redhat.com>
35101 Iain Sandoe <iain@codesourcery.com>
35104 * configure: Regenerate.
35106 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
35109 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
35110 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
35111 that LFD is used to load double constants instead of LFS. Add
35112 defaults for all costs structures. Add comments for missing
35113 initialization fields.
35114 (size32_cost): Likewise.
35115 (size64_cost): Likewise.
35116 (rs64a_cost): Likewise.
35117 (mpccore_cost): Likewise.
35118 (ppc403_cost): Likewise.
35119 (ppc405_cost): Likewise.
35120 (ppc440_cost): Likewise.
35121 (ppc476_cost): Likewise.
35122 (ppc601_cost): Likewise.
35123 (ppc603_cost): Likewise.
35124 (ppc604_cost): Likewise.
35125 (ppc604e_cost): Likewise.
35126 (ppc620_cost): Likewise.
35127 (ppc630_cost): Likewise.
35128 (ppccell_cost): Likewise.
35129 (ppc750_cost): Likewise.
35130 (ppc7450_cost): Likewise.
35131 (ppc8540_cost): Likewise.
35132 (ppce300c2c3_cost): Likewise.
35133 (ppce500mc_cost): Likewise.
35134 (ppce500mc64_cost): Likewise.
35135 (ppce5500_cost): Likewise.
35136 (ppce6500_cost): Likewise.
35137 (titan_cost): Likewise.
35138 (power4_cost): Likewise.
35139 (power6_cost): Likewise.
35140 (power7_cost): Likewise.
35141 (power8_cost): Likewise.
35142 (ppca2_cost): Likewise.
35143 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
35145 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
35146 instead of XXLOR to copy SFmode to clear out dirty bits created
35147 when SFmode denormals are generated.
35148 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
35149 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
35151 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
35153 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
35154 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
35155 * config/aarch64/aarch64-tune.md: Regenerate.
35157 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
35159 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
35160 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
35161 * config/arm/arm-cores.def (exynos-m1): New core.
35162 * config/arm/arm-tune.md: Regenerate.
35163 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
35164 * config/arm/bpabi.h: Likewise.
35166 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
35168 * ipa-cp (set_single_call_flag): Remove too
35169 restrictive assert.
35171 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
35173 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
35174 GOMP_offload_unregister from the destructor.
35176 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
35178 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
35179 flags for instrumentation thunk.
35180 (chkp_produce_thunks): Likewise.
35182 2015-04-05 Martin Liska <mliska@suse.cz>
35185 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
35186 has computed data structure.
35187 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
35189 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
35191 * invoke.texi (inline-unit-growth): Increase growth to 20%
35192 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
35194 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
35197 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
35199 (lra_rematerialization_iter): New.
35200 * lra.c (lra): Initialize lra_rematerialization_iter.
35201 Stop updating lra_constraint_new_regno_start after switching of
35202 inheritance and rematerialization.
35203 * lra-remat.c (lra_rematerialization_iter): New.
35204 (lra_remat): Add printing pass iteration. Do rematerialization
35205 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
35207 2015-04-04 Richard Biener <rguenther@suse.de>
35209 PR tree-optimization/64909
35210 PR tree-optimization/65660
35211 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
35212 to take a cost vector for scalar iteration cost.
35213 (vect_get_single_scalar_iteration_cost): Likewise.
35214 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
35215 Compute the scalar iteration cost into a cost vector.
35216 (vect_get_known_peeling_cost): Use the scalar cost vector to
35217 account for the cost of the peeled iterations.
35218 (vect_estimate_min_profitable_iters): Likewise.
35219 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
35222 2015-04-04 Alan Modra <amodra@gmail.com>
35226 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
35227 0.0 constant unless TARGET_VSX.
35228 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
35231 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
35234 * ipa-inline-transform.c (inline_call): Skip sanity check to work
35237 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
35240 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
35241 speculative indirect edges to avoid ordering issue.
35243 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
35246 * ipa-inline.c (edge_badness): Add combined size to the denominator.
35248 2015-04-03 Jakub Jelinek <jakub@redhat.com>
35250 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
35251 TYPE_ARTIFICIAL on the .omp_data* types.
35253 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
35255 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
35256 instrumentation thunks.
35258 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
35260 * config/i386/i386.c (ix86_expand_call): Avoid nested
35261 PARALLEL in returned call value.
35263 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
35265 * lto-cgraph.c (input_cgraph_1): Always link instrumented
35266 assembler name with original one.
35268 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
35270 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
35272 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
35274 Revert parts of r216820.
35275 * config/i386/i386.md (movqi_internal): Correct type calculation
35276 for alternatives 3 and 5.
35278 2015-04-02 Jakub Jelinek <jakub@redhat.com>
35280 PR preprocessor/61977
35281 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
35282 predefine __vector/__bool/__pixel macros nor context sensitive
35283 macros for CLK_ASM.
35284 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
35286 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
35288 * config/pa/pa.c (pa_output_move_double): Directly handle register
35289 indexed memory operand. Simplify handling of scaled register indexed
35292 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
35295 * config/i386/linux-common.h (MPX_SPEC): New.
35296 (CHKP_SPEC): Add MPX_SPEC.
35297 * doc/invoke.texi (-fcheck-pointer-boudns): Document
35298 possible issues with '-z bndplt' support in linker.
35300 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
35302 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
35303 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
35304 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
35305 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
35306 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
35308 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
35310 * config/i386/sync.md (UNSPEC_MOVA): Remove.
35311 (atomic_load<mode>): Change operand 0 predicate to
35312 nonimmediate_operand and fix up the destination when needed.
35314 (atomic_loaddi_fpu): Use UNSPEC_LDA.
35315 (atomic_store<mode>): Change operand 1 predicate to
35316 nonimmendate_operand and move the source to register when needed.
35318 (atomic_store<mode>_1): Use UNSPEC_STA.
35319 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
35320 Fix moves from memory operand. Use UNSPEC_STA.
35322 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
35324 * expmed.c (strict_volatile_bitfield_p): Check that the access will
35325 not cross a MODESIZE boundary.
35326 (store_bit_field, extract_bit_field): Added assertions in the
35327 strict volatile bitfields code path.
35329 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
35332 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
35333 Increase args array size by one to avoid buffer overflow.
35335 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
35337 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
35339 * ipa-inline.c (edge_badness): Add wrapper penalty.
35340 (sum_callers): Move up.
35341 (inline_small_functions): Set single_caller.
35342 * ipa-inline.h (inline_summary): Add single_caller.
35343 * ipa-split.c (split_function): Set split_part.
35344 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
35345 * cgraph.h (cgraph_node): Add split_part.
35347 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
35350 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
35351 Do not split operands 0 and operands 2 to halfmode.
35352 (atomic_compare_and_swap<mode>): Update for
35353 atomic_compare_and_swap<dwi>_doubleword changes.
35355 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
35357 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
35358 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
35359 no caching is done.
35361 2015-03-31 Martin Liska <mliska@suse.cz>
35364 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
35365 has already filled up function summary.
35366 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
35368 2015-03-31 Richard Biener <rguenther@suse.de>
35370 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
35373 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
35375 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
35377 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
35378 (s390_asm_output_function_label): Adapt to new signature of
35379 s390_function_num_hotpatch_hw
35380 Optimise the code generating assembler output.
35381 Add comments to assembler file.
35383 2015-03-31 Richard Biener <rguenther@suse.de>
35385 PR middle-end/65626
35386 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
35387 of the noreturn call so it is last and cleanup_control_flow_bb
35388 can do the CFG part.
35390 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
35393 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
35394 same_comdat_group for external symbols.
35395 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
35396 infinite same_comdat_group traversal loop.
35398 2015-03-31 Jakub Jelinek <jakub@redhat.com>
35401 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
35402 automatically to $headers.
35404 2015-03-30 Jakub Jelinek <jakub@redhat.com>
35407 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
35408 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
35410 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
35412 * ipa-prop.c (param_type_may_change_p): Likewise.
35413 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
35414 (remove_unused_scope_block_p): Add in_ctor_dtor_block
35415 argument. Before inlining, preserve
35416 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
35417 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
35419 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
35421 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
35424 * ipa-inline.c (edge_badness): Base denominator on callee's
35427 2015-03-27 Martin Jambor <mjambor@suse.cz>
35430 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
35431 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
35432 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
35433 node_calling_single_call.
35434 * ipa-cp.c (count_callers): New function.
35435 (set_single_call_flag): Likewise.
35436 (initialize_node_lattices): Count callers and set single_flag_call if
35438 (incorporate_penalties): New function.
35439 (good_cloning_opportunity_p): Use it, dump new flags.
35440 (propagate_constants_topo): Set node_within_scc flag if appropriate.
35441 * doc/invoke.texi (ipa-cp-recursion-penalty,
35442 ipa-cp-single-call-pentalty): Document.
35444 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
35447 * symtab.c (symtab_node::get_partitioning_class): Register vars
35449 * varpool.c (symbol_table::output_variables) Do not assemble unefined
35450 decls for non-symbols.
35452 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
35455 * output.h (default_binds_local_p_2): New.
35456 * varasm.c (default_binds_local_p_2): Renamed to ...
35457 (default_binds_local_p_3): This. Don't return true on protected
35458 data symbol if protected data may be external.
35459 (default_binds_local_p): Use default_binds_local_p_3.
35460 (default_binds_local_p_1): Likewise.
35461 (default_binds_local_p_2): New.
35462 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
35463 default_binds_local_p_2 if TARGET_MACHO is undefined.
35465 2015-03-27 Jakub Jelinek <jakub@redhat.com>
35468 * config/i386/i386.c (legitimize_pic_address): If base
35469 is SYMBOL_REF or LABEL_REF using %rip addressing, force
35470 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
35472 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
35475 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
35478 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
35481 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
35482 of optimized out indirect call.
35483 (redirect_to_unreachable): Always build symbol table node for
35484 BUILT_IN_UNREACHABLE
35486 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
35489 * ira-costs.c (record_reg_classes): Process all constraint string
35492 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
35494 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
35498 * config/c6x/constraints.md (S3): New constraint.
35499 * config/c6x/c6x.md (real_jump): Use it.
35501 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
35503 PR middle-end/65595
35504 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
35505 do redirection if the call is not optimized out.
35507 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
35510 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
35511 (fchkp-check-incomplete-type): Add LTO.
35512 (fchkp-zero-input-bounds-for-main): Likewise.
35513 (fchkp-first-field-has-own-bounds): Likewise.
35514 (fchkp-narrow-bounds): Likewise.
35515 (fchkp-narrow-to-innermost-array): Likewise.
35516 (fchkp-use-static-bounds): Likewise.
35517 (fchkp-use-static-const-bounds): Likewise.
35518 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
35520 2015-03-27 Marek Polacek <polacek@redhat.com>
35522 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
35524 2015-03-27 Marek Polacek <polacek@redhat.com>
35527 * ubsan.c (ubsan_create_edge): New function.
35528 (instrument_bool_enum_load): Call it.
35529 (instrument_nonnull_arg): Likewise.
35530 (instrument_nonnull_return): Likewise.
35531 (instrument_object_size): Likewise.
35533 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
35535 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
35538 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
35541 * lto-streamer.h (class lto_location_cache): New.
35542 (struct data_in): Add location_cache.
35543 (lto_input_location): Update prototype.
35544 (stream_input_location_now): New.
35545 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
35546 pointer to location.
35547 (stream_input_location): Update.
35548 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
35549 (warn_odr): Apply location cache before warning.
35550 (lto_input_location): Update prototype.
35551 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
35552 Use stream_input_location_now.
35553 * lto-streamer-in.c (lto_location_cache::current_cache): New static
35555 (lto_location_cache::cmp_loc): New function.
35556 (lto_location_cache::apply_location_cache): New function.
35557 (lto_location_cache::accept_location_cache): New function.
35558 (lto_location_cache::revert_location_cache): New function.
35559 (lto_location_cache::input_location): New function.
35560 (lto_input_location): Do location caching.
35561 (stream_input_location_now): New function.
35562 (input_eh_region, input_struct_function_base): Use
35563 stream_input_location_now.
35564 (lto_data_in_create): use new.
35565 (lto_data_in_delete): Use delete.
35566 * tree-streamer-in.c (unpack_ts_block_value_fields,
35567 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
35568 lto_input_ts_exp_tree_pointers): Update for cached location api.
35570 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
35573 * passes.def: Add pass_nothrow.
35574 * ipa-pure-const.c: (pass_data_nothrow): New.
35575 (pass_nothrow): New.
35576 (pass_nothrow::execute): New.
35577 (make_pass_nothrow): New.
35578 * tree-pass.h (make_pass_nothrow): Declare.
35580 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
35582 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
35583 edge to change by speculation resolution or redirection.
35584 (edge_set_predicate): Likewise.
35585 (inline_summary_t::duplicate): Likewise.
35586 (remap_edge_summaries): Likewise.
35588 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
35590 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
35592 (can_inline_edge_p): Relax option matching for always inline functions.
35594 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
35597 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
35598 Check operand 4 and operand 0 for equality.
35599 (avx512f_vextract<shuffletype>32x4_1_maskm):
35600 Check operand 6 and operand 0 for equality.
35601 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
35603 (vec_extract_hi_<mode>_maskm): Ditto.
35605 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
35607 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
35608 dead calls back to live.
35609 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
35611 (cgraph_node::verify_node): ... here; verify only callee edges,
35613 * cif-code.def (CILK_SPAWN): New code.
35615 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
35617 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
35618 (edge_set_predicate): Use it to mark unreachable edges.
35619 (inline_summary_t::duplicate): Remove unnecesary code.
35620 (remap_edge_summaries): Likewise.
35621 (dump_inline_summary): Report contains_cilk_spawn.
35622 (compute_inline_parameters): Compute contains_cilk_spawn.
35623 (inline_read_section, inline_write_summary): Stream
35624 contains_cilk_spawn.
35625 * ipa-inline.c (can_inline_edge_p): Do not touch
35626 DECL_STRUCT_FUNCTION that may not be available;
35627 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
35628 remove check for callee_fun->can_throw_non_call_exceptions and
35629 replace it by optimization attribute check; check for flag_exceptions.
35630 * ipa-inline-transform.c (inline_call): Maintain
35631 DECL_FUNCTION_PERSONALITY
35632 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
35634 2015-03-26 Jakub Jelinek <jakub@redhat.com>
35636 PR tree-optimization/65551
35637 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
35638 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
35640 2015-03-26 Richard Biener <rguenther@suse.de>
35642 PR middle-end/65555
35643 * tree-cfg.c (verify_gimple_call): Do not require a call to
35644 have no LHS if it wasn't recognized as control altering yet.
35646 2015-03-26 Jakub Jelinek <jakub@redhat.com>
35648 PR tree-optimization/64715
35649 * passes.def: Add another instance of pass_object_sizes before ccp1.
35650 * tree-object-size.c (pass_object_sizes::execute): In
35651 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
35652 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
35653 __bos result and the computed constant. Remove redundant
35654 checks, obsoleted by gimple_call_builtin_p test.
35656 * var-tracking.c (variable_tracking_main_1): Don't track
35657 variables for targetm.no_register_allocation targets.
35659 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
35661 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
35662 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
35664 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
35667 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
35668 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
35669 0.0 is correctly setup.
35670 (extenddftf2_internal): Likewise.
35672 2015-03-25 Sebastian Pop <s.pop@samsung.com>
35674 PR tree-optimization/65177
35675 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
35677 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
35678 edges not adjacent on the path to the original code.
35680 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
35683 * doc/install.texi (Building a native compiler): Document new
35684 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
35685 configuration assumes that the host supports the linker plugin.
35687 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
35690 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
35691 chain for generated call.
35693 2015-03-25 Richard Biener <rguenther@suse.de>
35695 * passes.c (pass_manager::execute_early_local_passes): Guard
35696 execution of pass_chkp_instrumentation_passes with
35697 flag_check_pointer_bounds.
35698 (pass_chkp_instrumentation_passes::gate): Likewise.
35700 2015-03-25 Martin Liska <mliska@suse.cz>
35702 PR tree-optimization/65538
35703 * symbol-summary.h (function_summary::~function_summary):
35704 Relese memory for allocated summaries.
35705 (function_summary::release): New function.
35707 2015-03-25 Jakub Jelinek <jakub@redhat.com>
35710 * lto-streamer-out.c (DFS::worklist): New struct.
35711 (DFS::worklist_vec): New data member.
35712 (DFS::next_dfs_num): Remove.
35713 (DFS::DFS): Rewritten using worklist instead of recursion,
35714 using most of code from DFS::DFS_write_tree.
35715 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
35716 pass it to DFS_write_tree calls.
35717 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
35718 quick initial checks push it into worklist_vec and return.
35720 2015-03-25 Richard Biener <rguenther@suse.de>
35722 PR middle-end/65519
35723 * genmatch.c (expr::gen_transform): Re-write to avoid
35724 using gimple_build.
35726 2015-03-25 Bin Cheng <bin.cheng@arm.com>
35728 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
35730 2015-03-25 Bin Cheng <bin.cheng@arm.com>
35732 * config/arm/arm.opt (print_tune_info): New option.
35733 * config/arm/arm.c (arm_print_tune_info): New function.
35734 (arm_file_start): Call arm_print_tune_info.
35735 * config/arm/arm-protos.h (struct tune_params): Add comment.
35736 * doc/invoke.texi (@item -mprint-tune-info): New item.
35737 (-mtune): mention it in ARM Option Summary.
35739 2015-03-25 DJ Delorie <dj@redhat.com>
35741 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
35744 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
35745 Martin Liska <mliska@suse.cz>
35747 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
35748 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
35749 (sem_item::add_type): New function.
35750 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
35751 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
35752 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
35753 (sem_function::equals_wpa): Fix typo.
35754 * ipa-icf.h (sem_item::add_type): New function.
35755 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
35758 2015-03-24 Jakub Jelinek <jakub@redhat.com>
35760 PR tree-optimization/65533
35761 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
35762 with swapped operands, call vect_free_slp_tree on
35763 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
35766 2015-03-24 Richard Biener <rguenther@suse.de>
35768 PR middle-end/65517
35769 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
35770 for fixup if necessary.
35772 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
35774 * doc/extend.texi (Function Attributes): Add @cindex entries
35775 for all attributes and regularize their format. Delete text
35776 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
35777 information about "eightbit_data", "tiny_data", and "model"
35778 variable attributes to the Variable Attributes section. Fix
35779 some obvious typos and copy-editing issues.
35780 (Variable Attributes, Type Attributes): Likewise add/fix
35781 @cindex entries for all attributes.
35783 2015-03-23 Jakub Jelinek <jakub@redhat.com>
35786 * tree-chkp.c (chkp_build_returned_bound): Ignore
35787 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
35789 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
35792 * config/sh/predicates.md (simple_mem_operand,
35793 displacement_mem_operand): Add test for reg.
35794 (short_displacement_mem_operand): Test for displacement_mem_operand
35795 before invoking sh_disp_addr_displacement.
35796 * config/sh/constraints.md (Sdd, Sra): Simplify.
35797 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
35798 Remove redundant displacement_mem_operand tests.
35800 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
35803 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
35804 the same -mmcu=MCU more than once.
35806 2015-03-23 Jakub Jelinek <jakub@redhat.com>
35809 * ipa-devirt.c: Remove duplicate demangle.h include.
35812 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
35814 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
35815 REG_POINTER on *destptr after adjusting it for prologue size.
35818 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
35819 ultimate_alias_target ()->order ints instead of
35820 ultimate_alias_target () pointers.
35822 2015-03-23 Richard Biener <rguenther@suse.de>
35824 PR tree-optimization/65518
35825 * tree-vect-stmts.c (vectorizable_load): Reject single-element
35826 interleaving cases we generate absymal code for.
35828 2015-03-23 Richard Biener <rguenther@suse.de>
35830 PR tree-optimization/65494
35831 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
35833 (vect_analyze_slp_instance): But do that here, always and once.
35835 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35837 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
35838 adding T or multiplying by T+1 and subracting T.
35840 2015-03-22 Jeff Law <law@redhat.com>
35842 PR rtl-optimization/64317
35843 * Makefile.in (OBJS): Add gcse-common.c
35844 * gcse.c: Include gcse-common.h
35845 (struct modify_pair_s): Move structure definition to gcse-common.h
35846 (compute_transp): Move function to gcse-common.c.
35847 (canon_list_insert): Similarly.
35848 (record_last_mem_set_info): Break out some code and put it into
35849 gcse-common.c. Call into the new common code.
35850 (compute_local_properties): Pass additional arguments to compute_transp.
35851 * postreload-gcse.c: Include gcse-common.h and df.h
35852 (modify_mem_list_set, blocks_with_calls): New variables.
35853 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
35854 (get_bb_avail_insn): Pass in the expression index too.
35855 (alloc_mem): Allocate memory for the new bitmaps and lists.
35856 (free_mem): Free memory for the new bitmaps and lists.
35857 (insert_expr_in_table): Record a bitmap index for each entry we
35859 (record_last_mem_set_info): Call into common code in gcse-common.c.
35860 (get_bb_avail_insn): If no available insn was found in the requested
35861 BB. If BB has a single predecessor, see if the expression is
35862 transparent in BB and available in that single predecessor.
35863 (compute_expr_transp): New wrapper for compute_transp.
35864 (eliminate_partially_redundant_load): Pass expression's bitmap_index
35865 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
35866 (gcse_after_reload_main): If there are elements in the hash table,
35867 then compute transparency for all the elements in the hash table.
35868 * gcse-common.h: New file.
35869 * gcse-common.c: New file.
35871 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
35873 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
35875 (System Headers): Likewise.
35877 (Traditional macros): Likewise.
35878 (Invocation): Likewise.
35879 (Option Index): Likewise.
35880 * doc/cppopts.texi (-M): Likewise.
35881 (-finput-charset): Likewise.
35882 (--help): Likewise.
35883 * doc.invoke.texi (AVR Options): Likewise.
35884 (V850 Options): Likewise.
35886 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
35889 * ipa-devirt.c: Include demangle.h
35890 (odr_type_d): Add field rtti_broken.
35891 (odr_subtypes_equivalent_p): Do not require name to match.
35892 (compare_virtual_tables): Fix typo; if type already has ODR violation,
35893 bypass the tests; be ready for function referneces in vtables that are
35894 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
35895 (warn_odr): Give up for nameless types.
35896 (warn_types_mismatch): Report mismatch in mangled names;
35897 report mismatch in anonymous namespaces; look into component types to
35898 give useful error; report when mismatch is dragged in from other ODR
35900 (odr_types_equivalent_p): Match types for being polymorphic; avoid
35901 duplicated diagnostics.
35902 (add_type_duplicate): Reorder checks so more informative ones come
35903 first; fix typo; do not output "the extra base is defined here" when
35905 (BINFO_N_BASE_BINFOS): Relax sanity check.
35907 2015-03-22 Martin Liska <mliska@suse.cz>
35908 Jakub Jelinek <jakub@redhat.com>
35910 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
35911 masks that can potentially include a builtin.
35912 (ix86_add_new_builtins): Introduce fast filter for isa values
35913 that cannot trigger builtin inclusion.
35915 2015-03-22 Martin Liska <mliska@suse.cz>
35917 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
35918 (sem_item::update_hash_by_local_refs): Likewise.
35919 (sem_variable::get_hash): Empty line is fixed.
35920 (sem_item_optimizer::execute): Include adding of hash references.
35921 (sem_item_optimizer::update_hash_by_addr_refs): New function.
35922 (sem_item_optimizer::build_hash_based_classes): Use local hash.
35923 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
35924 (sem_item::update_hash_by_local_refs): Likewise.
35926 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
35929 * ipa-comdats.c (enqueue_references): Walk through thunks.
35930 (ipa_comdats): Likewise.
35931 (set_comdat_group_1): New function.
35933 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
35936 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
35939 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
35940 Gerald Pfeifer <gerald@pfeifer.com>
35942 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
35944 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
35945 Sandra Loosemore <sandra@codesourcery.com>
35947 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
35948 function parameter declaration.
35949 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
35950 Update arguments to nios2_adjust_call_address().
35951 (sibcall_internal): Rename from *sibcall.
35952 (sibcall_value_internal): Rename from *sibcall_value.
35953 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
35954 (nios2_large_got_address): Add target temp reg parameter.
35955 (nios2_got_address): Adjust call to nios2_large_got_address, add
35956 force_reg around it.
35957 (nios2_load_pic_address): Add target temp reg parameter, replace call
35958 to nios2_got_address with corresponding code.
35959 (nios2_legitimize_constant_address): Update call to
35960 nios2_load_pic_address.
35961 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
35962 to use temp reg for PIC loading purposes.
35963 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
35964 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
35965 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
35967 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
35969 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
35970 usage of "the @option{...}".
35971 (-Wopenmp-simd): Likewise.
35972 (-fsanitize-recover): Likewise.
35973 (-fsanitize-undefined-trap-on-error): Likewise.
35975 (tracer-dynamic-coverage-feedback): Likewise.
35976 (reorder-block-duplicate-feedback): Likewise.
35977 (loop-unroll-jam-size): Likewise.
35980 (-mabs=legacy): Likewise.
35981 (-mupper-regs-df): Likewise.
35982 (-mupper-regs-sf): Likewise.
35983 (-mpointers-to-nested-functions): Likewise.
35985 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
35987 * doc/extend.texi (Cilk Plus Builtins): Add markup.
35989 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
35991 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
35992 additional index entries and cross-references.
35993 (-fchkp-check-incomplete-type): Likewise.
35994 (-fchkp-first-field-has-own-bounds): Likewise.
35995 (-fchkp-narrow-to-innermost-array): Likewise.
35996 (-fchkp-use-fast-string-functions): Likewise.
35997 (-fchkp-use-nochk-string-functions): Likewise.
35998 (-fchkp-use-static-const-bounds): Likewise.
35999 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
36000 (-fchkp-instrument-marked-only): Likewise.
36001 (-fchkp-use-wrappers): Likewise.
36002 (-static-libmpx): Likewise.
36003 (-static-libmpxwrappers): Likewise.
36004 * doc/extend.texi (bnd_legacy): Likewise.
36005 (bnd_instrument): Likewise.
36006 (bnd_variable_size): Likewise.
36007 (Pointer Bounds Checker builtins): Likewise.
36009 2015-03-21 Tom de Vries <tom@codesourcery.com>
36011 PR tree-optimization/65458
36012 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
36013 * cgraph.h (cgraph_node): Add parallelized_function field.
36014 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
36015 (input_overwrite_node): Read parallelized_function field.
36016 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
36017 parallelized_function on cgraph_node for child_fn.
36018 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
36019 Remove include of gt-tree-parloops.h.
36020 (parallelized_functions): Remove static variable.
36021 (parallelized_function_p): Rewrite using parallelized_function field of
36023 (create_loop_fn): Remove adding to parallelized_functions.
36024 * Makefile.in (GTFILES): Remove tree-parloops.c
36026 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
36028 PR rtl-optimization/64366
36029 * lra.c (lra_update_insn_regno_info): Consider regs in
36030 CALL_INSN_FUNCTION_USAGE memory.
36032 2015-03-20 Richard Biener <rguenther@suse.de>
36034 PR middle-end/64715
36035 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
36036 for type comparison and gcc_checking_assert.
36037 (chrec_fold_plus_poly_poly): Likewise.
36038 (chrec_fold_multiply_poly_poly): Likewise.
36039 (chrec_convert_1): Likewise.
36040 * gimplify.c (gimplify_expr): Remove premature folding of
36041 &X + CST to &MEM[&X, CST].
36043 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
36045 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
36047 (ipa_inline): Recompute inline_failed codes.
36048 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
36049 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
36052 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
36054 PR rtl-optimization/60851
36055 * recog.c (constrain_operands): Accept a pseudo register before reload
36056 for LRA enabled targets.
36058 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
36061 * config/rs6000/predicates.md (easy_fp_constant): Remove special
36062 -ffast-math handling that kept non-0 constants live in the RTL
36063 until reload. Remove logic testing the number of instructions it
36064 took to create a constant in a GPR that was never used, due to a
36065 test for soft-float earlier.
36066 (memory_fp_constant): Delete, no longer used.
36068 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
36069 alternatives for loading non-0 constants into GPRs for hard
36070 floating point that is no longer needed due to changes in
36071 easy_fp_constant. Add support for loading 0.0 into GPRs.
36072 (mov<mode>_hardfloat32): Likewise.
36073 (mov<mode>_hardfloat64): Likewise.
36074 (mov<mode>_64bit_dm): Likewise.
36075 (movtd_64bit_nodm): Likewise.
36076 (pre-reload move FP constant define_split): Delete define_split,
36077 since it is no longer used.
36078 (extenddftf2_internal): Remove GHF constraints that are not valid
36081 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
36083 PR rtl-optimization/63491
36084 * lra-constraints.c (check_and_process_move): Use src instead of
36085 sreg. Remove some dead code.
36087 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
36090 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
36091 (sem_variable::merge): Likewise.
36093 2015-03-19 Martin Liska <mliska@suse.cz>
36096 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
36097 all fields of cgraph_thunk_info.
36099 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
36101 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
36102 clone instrumented thunks.
36104 2015-03-19 Richard Biener <rguenther@suse.de>
36107 2015-03-10 Richard Biener <rguenther@suse.de>
36109 PR middle-end/63155
36110 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
36111 * tree-ssa-coalesce.c: Include timevar.h.
36112 (attempt_coalesce): Handle graph being NULL.
36113 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
36114 Split out abnormal coalescing to ...
36115 (perform_abnormal_coalescing): ... this function.
36116 (coalesce_ssa_name): Perform abnormal coalescing without computing
36118 (verify_ssa_coalescing_worker): New function.
36119 (verify_ssa_coalescing): Likewise.
36121 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
36122 Jakub Jelinek <jakub@redhat.com>
36125 * tsan.c (instrument_gimple): Clear tail call flag on
36128 2015-03-19 Jakub Jelinek <jakub@redhat.com>
36131 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
36132 call in the return bb.
36133 (find_split_points): Add RETURN_BB argument, don't call
36135 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
36136 if true append TSAN_FUNC_EXIT internal call after the call to
36137 the split off function.
36138 (execute_split_functions): Call find_return_bb here.
36139 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
36140 Adjust find_split_points and split_function calls.
36142 2015-03-18 DJ Delorie <dj@redhat.com>
36144 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
36145 (iorqi3_virt): Likewise.
36147 2015-03-18 Tom de Vries <tom@codesourcery.com>
36149 * tree-parloops.c (parallelize_loops): Make static.
36150 * tree-parloops.h (parallelize_loops): Remove extern declaration.
36152 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
36154 PR middle-end/64491
36156 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
36158 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
36159 condition would be removed due to undefined behaviour.
36161 2015-03-18 Martin Liska <mliska@suse.cz>
36164 * cgraph.c (cgraph_node::get_create): Remove unnecessary
36165 xstrdup_for_dump wrapper.
36166 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
36168 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
36169 with xstrdup_for_dump.
36170 (sem_variable::equals): Likewise.
36171 (sem_item_optimizer::read_section): Use symtab_node::name instead of
36173 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
36174 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
36175 symtab_node::asm_name with xstrdup_for_dump.
36176 (congruence_class::dump): Use symtab_node::name instead of
36178 * ipa-icf.h (symtab_node::name): Remove.
36179 (symtab_node::asm_name): Likewise.
36181 2015-03-18 Jakub Jelinek <jakub@redhat.com>
36183 PR tree-optimization/65450
36184 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
36186 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
36187 it instead of duplicate_ssa_name_ptr_info.
36190 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
36192 2015-03-18 Richard Biener <rguenther@suse.de>
36194 * tree-data-ref.h (struct access_matrix): Remove.
36195 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
36196 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
36197 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
36198 (am_vector_index_for_loop): Likewise.
36199 (struct data_reference): Remove access_matrix member.
36200 (DR_ACCESS_MATRIX): Remove.
36201 (lambda_vector_new): Add comment.
36202 (lambda_matrix_new): Use XOBNEWVEC.
36204 2015-03-18 Richard Biener <rguenther@suse.de>
36206 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
36207 (pass_ch::execute): Cleanup the CFG only if we did sth.
36208 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
36210 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36212 * expmed.c (synth_mult): Use std::swap instead of manually
36213 swapping algorithms.
36215 2015-03-18 Jakub Jelinek <jakub@redhat.com>
36218 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
36220 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
36223 * config/avr/avr.opt (-nodevicelib): New option.
36224 * doc/invoke.texi (AVR Options): Document it.
36225 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
36226 libgcc.a, libc.a, libm.a.
36227 * config/avr/specs.h: Same.
36228 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
36229 which don't (directly) depend on the device. Print more help.
36230 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
36231 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
36232 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
36234 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
36235 for specs file name.
36236 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
36237 * config/avr/avr-mcus.def: Adjust initializers and comments.
36239 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
36241 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
36242 DECL_ONE_ONLY to check if decl is one only.
36243 * ipa-split.c (consider_split): Limit splitt of one only functions.
36245 2015-03-16 Jakub Jelinek <jakub@redhat.com>
36247 PR tree-optimization/65427
36248 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
36250 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
36252 2015-03-16 Marek Polacek <polacek@redhat.com>
36254 * cgraph.h (add_new_static_var): Remove declaration.
36255 * varpool.c (add_new_static_var): Remove function.
36257 2015-03-16 Jakub Jelinek <jakub@redhat.com>
36259 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
36260 instead of vec<tree> * with vec_alloc and release for args.
36263 PR middle-end/65431
36264 * omp-low.c (delete_omp_context): Only splay_tree_delete
36265 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
36266 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
36268 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
36271 * cfgexpand.c (align_base): New function.
36272 (alloc_stack_frame_space): Call it.
36273 (expand_stack_vars): Align prev_frame to be sure
36274 data->asan_vec elements aligned properly.
36276 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
36278 PR middle-end/65409
36279 * expr.c (store_field): Do not do a direct block copy if the source is
36280 a PARALLEL with BLKmode.
36282 2015-03-16 Tom de Vries <tom@codesourcery.com>
36284 PR middle-end/65414
36286 2015-03-12 Tom de Vries <tom@codesourcery.com>
36288 PR rtl-optimization/64895
36289 * lra-lives.c (check_pseudos_live_through_calls): Use
36290 actual_call_used_reg_set instead of call_used_reg_set, if available.
36292 2015-03-16 Alan Modra <amodra@gmail.com>
36295 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
36296 Modify Z->r bswapdi splitter to use dest in place of scratch.
36297 In r->Z and Z->r bswapdi splitter rename word_high, word_low
36298 to word1, word2 and rearrange logic to suit.
36299 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
36300 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
36301 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
36302 Add one '?' on r->r. Modify Z->r splitter to avoid need for
36305 2015-03-14 Jakub Jelinek <jakub@redhat.com>
36307 PR tree-optimization/65369
36308 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
36309 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
36310 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
36312 PR tree-optimization/65418
36313 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
36314 are casts in the first PLUS_EXPR operand, ensure tbias and
36315 *totallowp are in the inner type.
36317 PR rtl-optimization/65401
36318 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
36319 argument. If true, adjust_address_nv of x with big-endian
36320 correction for the mode widening to GET_MODE (y).
36321 (make_field_assignment): Don't do MEM mode widening here.
36322 Use MEM_P instead of GET_CODE == MEM.
36324 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
36326 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
36327 the external decls.
36329 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36332 * config/arm/arm.c (arm_gen_constant, AND case): Use
36333 ARM_SIGN_EXTEND when constructing AND mask.
36335 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
36337 * graph.c (print_graph_cfg): Make function names visible and append
36338 parenthesis to it. Also make groups of basic blocks belonging to the
36339 same function visible.
36341 2015-03-12 Richard Biener <rguenther@suse.de>
36343 PR middle-end/44563
36344 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
36345 to avoid quadratic behavior with inline expansion splitting blocks.
36346 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
36347 with the successor if the predecessor will be merged with it.
36348 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
36349 entry block with its successor.
36351 2015-03-13 Richard Biener <rguenther@suse.de>
36353 PR middle-end/44563
36354 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
36355 (cleanup_tree_cfg_1): Do not call it.
36356 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
36357 (fixup_noreturn_call): Mark the stmt as control altering.
36358 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
36360 (pass_data_fixup_cfg): Produce a dump file.
36361 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
36362 (need_noreturn_fixup): New global.
36363 (pass_dominator::execute): Fixup queued noreturn calls.
36364 (optimize_stmt): Queue calls that became noreturn for fixup.
36365 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
36366 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
36367 (el_to_fixup): New global.
36368 (eliminate_dom_walker::before_dom_childre): Queue calls that
36369 became noreturn for fixup.
36370 (eliminate): Fixup queued noreturn calls.
36371 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
36372 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
36373 (substitute_and_fold_dom_walker::before_dom_children): Queue
36374 alls that became noreturn for fixup.
36375 (substitute_and_fold): Fixup queued noreturn calls.
36377 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
36379 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
36380 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
36381 are building; for methods check ODR type of class they belong to if
36382 they may lead to a polymorphic call.
36383 (sem_function::compare_polymorphic_p): Be bit smarter about testing
36384 when function may lead to a polymorphic call.
36385 (sem_function::compare_type_list): Remove.
36386 (sem_variable::equals): Update use of compatible_types_p.
36387 (sem_variable::parse_tree_refs): Remove.
36388 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
36390 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
36392 (func_checker::compatible_polymorphic_types_p): Break out from ...
36393 (unc_checker::compatible_types_p): ... here.
36394 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
36396 (unc_checker::compatible_types_p): Update.
36397 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
36400 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36402 PR rtl-optimization/65235
36403 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
36404 When first element of vec_concat is const_int, calculate its size
36405 using second element.
36407 2015-03-12 Richard Biener <rguenther@suse.de>
36409 PR middle-end/65270
36410 * fold-const.c (operand_equal_p): Fix ordering of resetting
36411 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
36413 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
36415 * config/s390/s390.c (s390_reorg): Move code to output nops after label
36417 (s390_asm_output_function_label): Likewise.
36418 * config/s390/s390.c (s390_asm_output_function_label):
36419 Fix function label alignment with -mhtopatch.
36420 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
36421 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
36422 ("nop_2_byte"): New define_insn.
36423 ("nop_4_byte"): Likewise.
36424 ("nop_6_byte"): Likewise.
36425 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
36426 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
36428 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
36431 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
36434 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
36437 * toplev.c (process_options): Restrict Pointer Bounds Checker
36438 usage with Address Sanitizer.
36440 2015-03-12 Richard Biener <rguenther@suse.de>
36442 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
36444 * omp-low.c (expand_omp_taskreg): Split block before removing
36446 (expand_omp_target): Likewise.
36447 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
36448 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
36449 stmt to split_block.
36451 2015-03-12 Tom de Vries <tom@codesourcery.com>
36453 PR rtl-optimization/64895
36454 * lra-lives.c (check_pseudos_live_through_calls): Use
36455 actual_call_used_reg_set instead of call_used_reg_set, if available.
36457 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
36459 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
36460 (cgraph_node::remove): Likewise.
36461 (cgraph_node::get_untransformed_body): Likewise.
36462 * varpool.c (varpool_node::remove): Likewise.
36463 (varpool_node::get_constructor): Add sanity check.
36465 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
36467 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
36469 (-fabi-compat-version): Likewise.
36470 (-ffriend-injection): Likewise.
36471 (-Wdeclaration-after-statement): Likewise.
36472 (-fomit-frame-pointer): Likewise.
36473 (-ftree-coalesce-inlined-vars): Likewise.
36474 (-fvisibility=): Likewise.
36475 * doc/extend.texi (Typeof): Likewise.
36476 (Zero Length): Likewise.
36477 (Escaped Newlines): Likewise.
36478 (Compound Literals): Likewise.
36479 (Function Attributes): Likewise.
36480 (Label Attributes): Likewise.
36481 (Type Attributes): Likewise.
36482 (Function Names): Likewise.
36483 (Other Builtins): Likewise.
36484 (Function Specific Option Pragmas): Likewise.
36485 (C++ Interface): Likewise.
36487 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
36489 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
36491 2015-03-11 Marek Polacek <polacek@redhat.com>
36493 PR tree-optimization/65388
36494 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
36496 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
36499 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
36500 * configure: Regenerate.
36501 * config.in: Regenerate.
36502 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
36503 [-mn-flash]: Document it.
36504 [__AVR_ARCH__]: Document avrtiny.
36506 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
36507 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
36508 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
36510 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
36512 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
36514 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
36517 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
36518 allow reloads of PLUS in floating point/VSX registers.
36520 2015-03-11 Junmo Park <junmoz.park@samsung.com>
36522 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
36523 crypto_sha256_fast.
36524 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
36526 2015-03-11 Richard Biener <rguenther@suse.de>
36528 PR tree-optimization/65310
36529 * tree-sra.c (build_ref_for_offset): Also preserve larger
36532 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
36534 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
36536 2015-03-10 Jakub Jelinek <jakub@redhat.com>
36539 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
36541 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
36543 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
36545 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
36546 (sem_function::equals_wpa): ... here.
36548 2015-03-10 Marek Polacek <polacek@redhat.com>
36549 Jakub Jelinek <jakub@redhat.com>
36552 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
36553 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
36556 2015-03-10 Jakub Jelinek <jakub@redhat.com>
36559 * config/rs6000/t-linux: For powerpc64* target set
36560 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
36562 2015-03-10 Richard Biener <rguenther@suse.de>
36564 PR middle-end/44563
36565 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
36566 for redirect_all_calls.
36568 2015-03-10 Marek Polacek <polacek@redhat.com>
36570 * gdbinit.in (pcfun): Define and document.
36572 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
36574 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
36575 of libgomp-plugin.h.
36576 (find_target_compiler): Support a case when the path to gcc is
36577 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
36578 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
36579 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
36581 (main): Use GCC_INSTALL_NAME as target_driver_name.
36582 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
36584 (mkoffload.o): Remove obsolete include path and defines.
36585 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
36587 2015-03-10 Richard Biener <rguenther@suse.de>
36589 PR middle-end/63155
36590 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
36591 * tree-ssa-coalesce.c: Include timevar.h.
36592 (attempt_coalesce): Handle graph being NULL.
36593 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
36594 Split out abnormal coalescing to ...
36595 (perform_abnormal_coalescing): ... this function.
36596 (coalesce_ssa_name): Perform abnormal coalescing without computing
36598 (verify_ssa_coalescing_worker): New function.
36599 (verify_ssa_coalescing): Likewise.
36601 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
36604 * config.gcc (extra_options) [avr]: Remove.
36605 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
36606 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
36607 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
36609 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
36610 (-mmcu=): Add Var and MissingArgError properties.
36612 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
36613 * config/avr/t-multilib: Regenerate.
36614 * config/avr/specs.h: New file.
36615 * config/avr/driver-avr.c: New file.
36616 * config/avr/genopt.sh: Remove file.
36617 * config/avr/avr-tables.opt: Remove file.
36618 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
36619 * config/avr/avr-c.c: Same.
36620 * avr-arch.h: Same.
36621 (avr_current_device): Remove proto.
36622 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
36623 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
36624 (EXTRA_SPEC_FUNCTIONS): Define.
36625 (avr_devicespecs_file): New specs function proto.
36626 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
36627 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
36628 (avr_current_device): Remove definition and usage.
36629 (avr_set_core_architecture): New static function.
36630 (avr_option_override): Use it.
36631 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
36632 (mcu_name): New static array.
36633 (comparator, avr_archs_str, avr_mcus_str): New static functions.
36634 (avr_inform_devices, avr_inform_core_architectures): New functions.
36635 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
36636 (avrlibc.h) [WITH_AVRLIBC]: Include.
36637 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
36638 (print_mcu): Rewrite from scratch.
36639 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
36640 Forward to avr-specific specs defined in device-specs file.
36641 * config/avr/t-avr (driver-avr.o): New rule.
36642 (avr-devices.o): Depend on avr-arch.h.
36643 (avr-mcus): No more depend on avr-tables.opt.
36644 (avr-tables.opt): Remove rule.
36645 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
36647 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
36649 * c-family/c.opt (fchkp-use-wrappers): New.
36650 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
36651 (chkp_wrap_function): New.
36652 (chkp_build_instrumented_fndecl): Support wrapped
36654 * doc/invoke.texi (-fcheck-pointer-bounds): New.
36655 (-fchkp-check-incomplete-type): New.
36656 (-fchkp-first-field-has-own-bounds): New.
36657 (-fchkp-narrow-bounds): New.
36658 (-fchkp-narrow-to-innermost-array): New.
36659 (-fchkp-optimize): New.
36660 (-fchkp-use-fast-string-functions): New.
36661 (-fchkp-use-nochk-string-functions): New.
36662 (-fchkp-use-static-bounds): New.
36663 (-fchkp-use-static-const-bounds): New.
36664 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
36665 (-fchkp-check-read): New.
36666 (-fchkp-check-write): New.
36667 (-fchkp-store-bounds): New.
36668 (-fchkp-instrument-calls): New.
36669 (-fchkp-instrument-marked-only): New.
36670 (-fchkp-use-wrappers): New.
36671 (-static-libmpx): New.
36672 (-static-libmpxwrappers): New.
36674 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
36676 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
36677 (CHKP_SPEC): Add wrappers library.
36678 * c-family/c.opt (static-libmpxwrappers): New.
36680 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
36682 * config/i386/linux-common.h (LIBMPX_LIBS): New.
36683 (LIBMPX_SPEC): New.
36685 * gcc.c (CHKP_SPEC): New.
36686 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
36687 * c-family/c.opt (static-libmpx): New.
36689 2015-03-10 Richard Biener <rguenther@suse.de>
36691 PR middle-end/44563
36692 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
36694 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
36695 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
36696 (cgraph_add_edge_to_call_site_hash): Likewise.
36697 (cgraph_node::get_edge): Likewise.
36698 (cgraph_edge::set_call_stmt): Likewise.
36699 (cgraph_edge::remove_caller): Likewise.
36701 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
36703 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
36704 (callee_saved_gpr_regs_size): ... this.
36705 (callee_saved_regs_first_regno): Rename to ...
36706 (callee_saved_first_gpr_regno): ... this.
36707 (callee_saved_regs_last_regno) Rename to ...
36708 (callee_saved_last_gpr_regno): ... this.
36709 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
36711 (nds32_initial_elimination_offset): Likewise.
36712 (nds32_expand_prologue): Likewise.
36713 (nds32_expand_epilogue): Likewise.
36714 (nds32_expand_prologue_v3push): Likewise.
36715 (nds32_expand_epilogue_v3pop): Likewise.
36716 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
36717 Adjust renamed variables.
36718 (nds32_output_stack_pop): Likewise.
36720 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
36722 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
36725 2015-03-10 Jakub Jelinek <jakub@redhat.com>
36727 PR rtl-optimization/65321
36728 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
36730 * var-tracking.c (use_narrower_mode): Likewise.
36732 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
36734 PR tree-optimization/65355
36735 * varasm.c (notice_global_symbol): Do not produce RTL.
36736 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
36738 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
36739 check for section anchors.
36741 2015-03-10 Alan Modra <amodra@gmail.com>
36744 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
36745 to be single-arch by default. Set cpu_is_64bit for powerpc64
36746 given --with-cpu=native.
36747 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
36748 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
36750 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
36751 rs6000_isa_flags rather than TARGET_64BIT.
36753 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
36754 Kaz Kojima <kkojima@gcc.gnu.org>
36756 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
36758 2015-03-09 Jakub Jelinek <jakub@redhat.com>
36761 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
36762 on a TREE_BINFO, instead use BINFO_TYPE.
36764 2015-03-09 Richard Biener <rguenther@suse.de>
36766 PR middle-end/65270
36767 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
36768 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
36769 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
36770 of that. When comparing dereferences compare alignment.
36771 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
36773 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
36775 * ipa-inline-analysis.c (check_callers): Check
36776 node->can_remove_if_no_direct_calls_and_refs_p.
36777 (growth_likely_positive): Reorganize to call
36778 can_remove_if_no_direct_calls_p later.
36779 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
36780 will_be_removed_from_program_if_no_direct_calls_p): Add
36781 will_inline parameter.
36782 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
36783 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
36784 Handle inliner case correctly.
36786 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
36788 PR tree-optimization/63743
36789 * cfgexpand.c (reorder_operands): Also reorder if only second operand
36790 had its definition forwarded by TER.
36792 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
36795 * ipa-utils.h (types_odr_comparable): Add strict argument.
36796 * ipa-devirt.c: Fix whitespace;
36797 (odr_hasher): Remove.
36798 (odr_name_hasher, odr_vtable_hasher): New hashers.
36799 (can_be_name_hashed_p): New predicate.
36800 (hash_type_name): remove.
36801 (hash_odr_name): New.
36802 (odr_name_hasher::hash): new.
36803 (can_be_vtable_hashed_p): New.
36804 (hash_odr_vtable): New.
36805 (odr_vtable_hasher::hash): New.
36806 (types_same_for_odr): Add strict parameter.
36807 (types_odr_comparable): Likewise.
36808 (odr_name_hasher::equal): New.
36809 (odr_vtable_hasher::equal): New.
36810 (odr_name_hasher::remove): New.
36811 (odr_hash_type): Change to hash_table<odr_name_hasher>.
36812 (odr_vtable_hash_type): New.
36813 (odr_vtable_hash): New.
36814 (odr_subtypes_equivalent_p): Do strict comparsion.
36815 (add_type_duplicate): Merge type names; cleanup; avoid type
36817 (register_odr_type): Initialize vtable hash.
36818 (build_type_inheritance_graph): Likewise
36819 (get_odr_type): Reorg to use two hashes.
36820 (dump_possible_polymorphic_call_targets): Move sanity check after debug
36822 (ipa_devirt): Dump type_inheritance_graph.
36823 (types_same_for_odr): Add strict mode.
36825 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
36828 * cgraph.h (symtab_node): Add definition_alignment,
36829 can_increase_alignment_p and increase_alignment.
36830 * symtab.c (symtab_node::can_increase_alignment_p,
36831 increase_alignment_1, symtab_node::increase_alignment,
36832 symtab_node::definition_alignment): New.
36833 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
36834 can_increase_alignment_p.
36835 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
36836 * tree-vect-stmts.c (ensure_base_align): Likewise.
36837 * varasm.c (function_section_1): Use definition_alignment.
36838 (assemble_start_function): Likewise.
36839 (emit_local): likewise.
36840 (build_constant_desc): Likewsie.
36841 (output_constant_def_contents): Likewise.
36842 (place_block_symbol): Likewise.
36843 (output_object_block): Likewise.
36845 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
36848 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
36849 when outputting debug.
36851 2015-03-07 Marek Polacek <polacek@redhat.com>
36852 Martin Uecker <uecker@eecs.berkeley.edu>
36855 * doc/invoke.texi: Update description of -fsanitize=bounds.
36857 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
36859 * tree-ssa-phiopt.c (neg_replacement): Remove.
36860 (tree_ssa_phiopt_worker): Remove negate optimization.
36862 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
36865 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
36867 2015-03-06 Richard Biener <rguenther@suse.de>
36869 PR middle-end/64928
36870 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
36871 and liveout_obstack members.
36872 (calculate_live_on_exit): Remove.
36873 (calculate_live_ranges): Change declaration.
36874 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
36875 (new_tree_live_info): Adjust.
36876 (calculate_live_ranges): Delete livein when not wanted.
36877 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
36878 Deal with partly deleted live info.
36879 (loe_visit_block): Remove temporary bitmap by using
36880 bitmap_ior_and_compl_into.
36881 (live_worklist): Adjust accordingly.
36882 (calculate_live_on_exit): Make static.
36883 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
36884 we do not need livein.
36886 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
36888 * real.c (real_from_string): Fix typo in assertion.
36890 2015-03-06 Alex Velenko <alex.velenko@arm.com>
36892 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
36895 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
36897 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
36899 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
36902 * lra-assigns.c (find_hard_regno_for): Rename to
36903 find_hard_regno_for_1. Add a new parameter.
36904 (find_hard_regno_for): New function using find_hard_regno_for_1.
36906 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
36908 PR rtl-optimization/65067
36909 * expmed.c (store_bit_field, extract_bit_field): Reworked the
36910 strict volatile bitfield handling.
36912 2015-03-05 Martin Liska <mliska@suse.cz>
36915 * ipa-icf.c (sem_variable::equals): Compare variables types.
36917 2015-03-05 Richard Henderson <rth@redhat.com>
36920 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
36921 correctly check weak symbol binding.
36923 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
36925 PR middle-end/65315
36926 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
36929 2015-03-05 Martin Liska <mliska@suse.cz>
36931 * ipa-inline.c (inline_small_functions): Set default value to
36932 prevent warning during bootstrap.
36933 * tree.h: Add pragma guard that ignores false positives during
36936 2015-03-05 Richard Biener <rguenther@suse.de>
36938 PR tree-optimization/65310
36939 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
36940 Properly preserve alignment of the base of the access.
36942 2015-03-05 Richard Biener <rguenther@suse.de>
36945 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
36946 Compare dependence info.
36948 2015-03-05 Richard Biener <rguenther@suse.de>
36950 PR middle-end/65233
36951 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
36953 (walk_ssa_copies): Revert last chage. Instead do not walk
36954 SSA names registered for SSA update.
36956 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
36959 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
36960 vtable references for their containing type.
36961 (sem_function::equals_wpa): Compare TYPE_RESTRICT
36962 and type attributes.
36964 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
36966 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
36967 before negating it.
36968 * stor-layout.c (finalize_record_size): Revert latest change.
36970 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
36972 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
36974 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
36976 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
36977 for correct comdat handling.
36978 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
36980 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
36981 (used_from_object_file_p_worker): Remove.
36982 (cgraph_node::only_called_directly_or_alised): Add
36983 used_from_object_file_p.
36984 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
36985 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
36986 can_remove_if_no_direct_calls_and_refs_p.
36988 2015-03-04 Nick Clifton <nickc@redhat.com>
36990 * config/rl78/rl78.h (enum reg_class): Remove real registers from
36991 General register class.
36992 * config/rl78/rl78-real.md: Replace general register constraints
36993 with real+virtual register constraints.
36995 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
36997 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
36998 from checking for -mhtm option.
37000 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
37002 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
37003 (struct ipa_sra_check_caller_data): Add has_thunk field.
37004 (ipa_sra_check_caller): Check for thunk.
37005 (ipa_sra_preliminary_function_checks): Give up on function with
37007 (ipa_early_sra): Use call_for_symbol_and_aliases.
37009 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
37012 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
37013 called for __stack_chk_guard symbol.
37015 2015-03-03 DJ Delorie <dj@redhat.com>
37017 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
37019 (*addhi3_real): Likewise.
37020 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
37021 pattern to match incrementing memory.
37022 * config/rl78/predicates.md (rl78_1_2_operand): New.
37023 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
37024 it's the same and only mem.
37025 (rl78_alloc_physical_registers_op2): If there's effectively only
37026 one MEM, transcode it into HL.
37027 (rl78_far_p): Reject addresses that aren't legitimate.
37029 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
37031 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
37034 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
37036 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
37038 Implement call0 ABI for xtensa
37039 * config/xtensa/constraints.md ("a" constraint): Include stack
37040 pointer in case of call0 ABI.
37041 ("q" constraint): Make empty in case of call0 ABI.
37042 ("D" constraint): Include stack pointer in case of call0 ABI.
37043 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
37044 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
37046 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
37048 (xtensa_regno_to_class): Make it a local variable in the
37049 function xtensa_regno_to_class.
37050 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
37051 macro, function prototype and implementation.
37052 (reg_nonleaf_alloc_order): Make it a local variable in the
37053 function order_regs_for_local_alloc.
37054 (xtensa_conditional_register_usage): New function.
37055 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
37056 (xtensa_valid_move): Allow direct moves to stack pointer
37057 register in call0 ABI.
37058 (xtensa_setup_frame_addresses): Only spill register windows in
37060 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
37061 call0 ABI respectively.
37062 (xtensa_function_arg_1): Only mark a7 register for copying in
37064 (xtensa_call_save_reg): New function.
37065 (compute_frame_size): Add space for callee saved register
37066 storage to the frame size in call0 ABI.
37067 (xtensa_expand_prologue): Generate code to set up stack frame
37068 and save callee-saved registers in call0 ABI.
37069 (xtensa_expand_epilogue): New function.
37070 (xtensa_set_return_address): New function.
37071 (xtensa_return_addr): Calculate return address in call0 ABI.
37072 (xtensa_builtin_saveregs): Only mark a7 register for copying and
37073 emit copying code in windowed ABI.
37074 (order_regs_for_local_alloc): Add preferred register allocation
37075 order for non-leaf function in call0 ABI.
37076 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
37077 (xtensa_asm_trampoline_template): Add trampoline generation for
37079 (xtensa_trampoline_init): Add trampoline initialization for
37081 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
37083 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
37084 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
37085 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
37086 ABI call-used registers.
37087 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
37088 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
37090 (REG_CLASS_CONTENTS): Include all registers into the preferred
37091 reload registers set, adjust the set in the
37092 xtensa_conditional_register_usage.
37093 (xtensa_regno_to_class): Drop variable declaration.
37094 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
37096 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
37098 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
37099 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
37100 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
37101 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
37102 location in call0 ABI.
37103 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
37104 stack adjustment size when handling exception.
37105 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
37106 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
37108 ("return" pattern): Generate ret.n/ret in call0 ABI.
37109 ("epilogue" pattern): Expand epilogue.
37110 ("nonlocal_goto" pattern): Use default in call0 ABI.
37111 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
37112 emit eh_set_a0_* depending on ABI.
37113 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
37114 ("eh_set_a0_call0", "blockage"): New patterns.
37116 2015-03-03 Martin Liska <mliska@suse.cz>
37119 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
37121 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
37124 * config/rs6000/rs6000-tables.opt: Regenerate table.
37126 2015-03-03 Renlin Li <renlin.li@arm.com>
37128 * doc/md.texi (@item ^): Change ? into ^.
37130 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
37132 * doc/tm.texi: Regenerated.
37134 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
37136 * builtins.c (expand_builtin_return_addr): Add
37137 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
37138 surrounding #ifdef.
37139 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
37141 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
37143 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
37145 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
37148 2015-03-03 Martin Jambor <mjambor@suse.cz>
37149 Eric Botcazou <ebotcazou@adacore.com>
37151 * tree-sra.c (ipa_sra_check_caller_data): New type.
37152 (has_caller_p): Removed.
37153 (ipa_sra_check_caller): New function.
37154 (ipa_sra_preliminary_function_checks): Use it.
37156 2015-03-03 Martin Liska <mliska@suse.cz>
37158 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
37159 instead of if branch.
37161 2015-03-03 Martin Liska <mliska@suse.cz>
37164 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
37166 2015-03-23 Jeff Law <law@redhat.com>
37168 PR tree-optimization/65241
37169 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
37170 hash table if INSERT is true.
37172 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
37175 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
37177 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
37180 * config/avr/avr.c (context.h, tree-pass.h): Include them.
37181 (avr_pass_data_recompute_notes): New static variable.
37182 (avr_pass_recompute_notes): New class.
37183 (avr_register_passes): New static function.
37184 (avr_option_override): Call it.
37186 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
37188 Fix various problems with specs file generation.
37191 * config.gcc (extra_gcc_objs) [avr]: Remove.
37192 * config/avr/driver-avr.c: Remove file.
37193 * config/avr/t-avr (driver-avr.o): Remove rule.
37194 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
37195 INCLUDES to build. Depend on TM_H.
37196 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
37197 build warnings. Fix non-matching types and non-existing %-codes.
37199 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
37200 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
37201 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
37202 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
37203 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
37204 (LIBGCC_SPEC): Remove definitions.
37206 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
37208 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
37209 to create a register in testing mode.
37211 2015-03-03 Martin Liska <mliska@suse.cz>
37212 Jan Hubicka <hubicka@ucw.cz>
37215 * cgraph.c (cgraph_node::has_thunk_p): New function.
37216 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
37217 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
37218 (sem_function::merge): Assert is changed.
37220 2015-03-03 Martin Liska <mliska@suse.cz>
37221 Martin Jambor <mjambor@suse.cz>
37224 * ipa-icf.c (sem_item_optimizer::execute): Change function
37225 return value to boolean.
37226 (sem_item_optimizer::merge_classes): Likewise.
37227 (ipa_icf_driver): Return TODO_remove_functions in case there's
37228 a merge operation processed.
37229 * ipa-icf.h: Change function return value to boolean.
37231 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
37234 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
37235 processor type for 64-bit little endian PowerPC.
37237 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
37238 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
37239 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
37240 printing built-in mask so it does not pass NULL pointers.
37242 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
37245 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
37248 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
37249 !ISA_HAS_FP_CONDMOVE.
37251 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
37253 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
37256 2015-03-02 Ulrich Drepper <drepper@gmail.com>
37258 * doc/invoke.texi (Options for Code Generation Conventions):
37259 Fix URL of DSO paper.
37261 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
37264 * ipa-inline.c (check_callers): Looks for recursion.
37265 (inline_to_all_callers): Give up on uninlinable or recursive edges.
37266 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
37267 summary of inline clones.
37268 (do_estimate_growth_1): Fix recursion check.
37270 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
37273 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
37276 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
37277 Aldy Hernandez <aldyh@redhat.com>
37280 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
37281 when checking TYPE_BINFO.
37283 2015-03-02 Richard Biener <rguenther@suse.de>
37286 * ipa-icf-gimple.c: Include builtins.h.
37287 (func_checker::compare_memory_operand): Compare base alignment.
37289 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
37292 * config/i386/i386.c (ix86_pass_by_reference): Bounds are never
37293 passed by reference.
37295 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
37298 * tree-chkp.c (chkp_check_lower): Don't check against
37299 zero bounds for already instrumented functions.
37300 (chkp_check_upper): Likewise.
37301 (chkp_fini): Clean pass local data to avoid wrong reusage.
37303 2015-02-28 Martin Liska <mliska@suse.cz>
37304 Jan Hubicka <hubicka@ucw.cz>
37306 * ipa-icf.c (sem_variable::equals): Improve debug output;
37307 get variable constructor.
37308 (sem_variable::parse): Do not filter out too early; give up on
37309 volatile and register vars.
37310 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
37312 * ipa-icf.h (sem_variable::init): Do not set ctor.
37313 (sem_variable::ctor): Remove.
37315 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
37317 PR middle-end/65233
37318 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
37320 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
37322 * ipa-icf.c: Include stor-layout.h
37323 (sem_function::compare_cgraph_references): Rename to ...
37324 (sem_item::compare_cgraph_references): ... this one.
37325 (sem_variable::equals_wpa): New function
37326 (sem_variable::equals): Do not check stuff already verified by
37328 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
37329 * ipa-icf.h (sem_item): Add compare_cgraph_references.
37330 (sem_function): Remove compare_cgraph_references.
37331 (sem_variable): Turns equals_wpa into non-inline.
37333 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
37335 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
37336 (sem_item::add_expr): New function.
37337 (sem_function::hash_stmt): Handle operands of most statements.
37338 (sem_variable::get_hash): Hash the actual constructor.
37339 * ipa-icf.h (sem_item): Add add_expr.
37340 (sem_function): Update prototype of hash_stmt
37342 2015-02-28 Martin Liska <mliska@suse.cz>
37343 Jan Hubicka <hubicka@ucw.cz>
37346 * ipa-icf-gimple.c (func_checker::compare_function_decl):
37348 (func_checker::compare_variable_decl): Skip symtab vars.
37349 (func_checker::compare_cst_or_decl): Update.
37350 * ipa-icf.c (sem_function::parse): Do not consider aliases.
37351 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
37352 use correct symtab predicates.
37353 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
37354 (sem_variable::parse): Update comment.
37355 (sem_item_optimizer::build_graph): Consider ultimate aliases
37358 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
37360 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
37363 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
37365 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
37366 (sem_variable::merge) Likewise.
37368 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
37370 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
37371 target; also match flag_ipa_devirt.
37373 2015-03-01 Martin Liska <mliska@suse.cz>
37374 Jan Hubicka <hubicka@ucw.cz>
37376 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
37377 Validate variable alignment.
37378 * ipa-icf.c (sem_function::equals_private): Be more precise
37379 about non-common function attributes.
37380 (sem_variable::equals): Likewise.
37382 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
37385 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
37386 across COMDAT group boundary.
37388 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
37391 * ipa-icf.c (clear_decl_rtl): New function.
37392 (sem_function::merge): Clear RTL before forming alias.
37393 (sem_variable::merge): Clear RTL before forming alias.
37395 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
37398 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
37400 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
37402 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
37405 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
37407 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
37408 a typo in the description.
37410 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
37413 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
37414 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
37415 * lra-constraints.c: Include "params.h".
37416 (EBB_PROBABILITY_CUTOFF): Use
37417 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
37418 (lra_inheritance): Use '<' instead of '<=' for
37419 EBB_PROBABILITY_CUTOFF.
37420 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
37423 2015-02-27 Martin Liska <mliska@suse.cz>
37425 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
37426 vector length condition.
37428 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
37430 * doc/extend.texi (x86 transactional memory intrinsics):
37431 Reorganize discussion of _xbegin. Clarify that the return
37432 value is a bit mask. Expand example and move to end of section.
37434 2015-02-26 Jakub Jelinek <jakub@redhat.com>
37435 Aldy Hernandez <aldyh@redhat.com>
37437 PR rtl-optimization/65220
37438 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
37440 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
37443 * lra-remat.c (update_scratch_ops): New.
37444 (do_remat): Call it.
37445 * lra.c (lra_register_new_scratch_op): New. Take code from ...
37446 (remove_scratches): ... here.
37447 * lra-int.h (lra_register_new_scratch_op): New prototype.
37449 2015-02-27 Marek Polacek <polacek@redhat.com>
37452 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
37453 -Wformat-signedness anymore.
37455 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
37457 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
37459 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
37461 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
37463 * config/s390/s390.c (enum s390_builtin):
37464 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
37465 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
37466 (s390_init_builtins): Generate new builtin functions.
37467 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
37468 (s390_sfpc, s390_efpc): New pattern definitions.
37470 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
37472 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
37473 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
37474 (s390_builtin_decls): New array.
37475 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
37476 (s390_builtin_decl): New function.
37477 (TARGET_BUILTIN_DECL): Define macro.
37479 2015-02-27 Richard Biener <rguenther@suse.de>
37481 PR middle-end/63175
37482 * builtins.c (get_object_alignment_2): Make sure to re-apply
37483 the ANDed mask after recursing to its operand gets us a new
37484 misalignment bit position.
37486 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
37487 Martin Liska <mliska@suse.cz>
37490 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
37491 Use address_matters_p.
37492 (redirect_all_callers, set_addressable): New functions.
37493 (sem_function::merge): Reorganize and fix merging issues.
37494 (sem_variable::merge): Likewise.
37495 (sem_variable::compare_sections): Remove.
37496 * common.opt (fmerge-all-constants, fmerge-constants): Remove
37498 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
37500 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
37502 (address_matters_1): New function.
37503 (symtab_node::address_matters_p): New function.
37504 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
37505 check for merged flag.
37506 * cgraph.h (address_matters_p): Declare.
37507 (symtab_node::address_taken_from_non_vtable_p): Remove.
37508 (symtab_node::address_can_be_compared_p): New method.
37509 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
37510 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
37512 (comdat_can_be_unshared_p_1) Use address_matters_p.
37513 (update_vtable_references): Fix formating.
37514 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
37515 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
37516 * cgraphclones.c: Preserve merged and icf_merged flags.
37518 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
37520 * doc/extend.texi (Function Attributes): Fix spelling and typos.
37521 (Label Attributes): Likewise.
37522 (Cilk Plus Builtins): Likewise.
37523 (ARC SIMD Built-in Functions): Likewise.
37524 (ARM C Language Extensions (ACLE)): Likewise.
37525 (PowerPC Built-in Functions): Likewise.
37526 (PowerPC Hardware Transactional Memory Built-in Functions):
37529 2015-02-26 Jakub Jelinek <jakub@redhat.com>
37531 PR tree-optimization/65216
37532 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
37533 new stmt and new SSA_NAME for lhs whenever the arguments have
37534 changed and weren't just swapped. Fix comment typo.
37536 PR tree-optimization/65215
37537 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
37538 for PDP endian targets.
37539 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
37540 Fix up formatting issues.
37541 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
37542 size is smaller than the original, adjust MEM_REF offset by the
37543 difference of sizes. Use is_gimple_mem_ref_addr instead of
37544 is_gimple_min_invariant test to avoid adding address temporaries.
37546 2015-02-26 Martin Liska <mliska@suse.cz>
37547 Jan Hubicka <hubicka@ucw.cz>
37550 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
37551 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
37552 (sem_item_optimizer::process_cong_reduction): Include division by
37553 sensitive references.
37554 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
37555 * ipa-ref.c (ipa_ref::address_matters_p): New function.
37556 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
37558 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
37561 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
37563 * config/avr/avr.c: Same.
37564 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
37565 Refuse any constant address not in 0..0xbf.
37566 * config/avr/avr.md (*mov<mode>, *movsf): Remove
37567 tiny_valid_direct_memory_access_range from insn conditions.
37568 (mov<mode>): Don't special-case expansion of avrtiny addresses.
37570 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
37573 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
37574 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
37575 * config/sh/predicates.md (const_logical_operand): New predicate.
37576 * config/sh/sh.md: Add new peephole2 patterns.
37578 2015-02-26 Marek Polacek <polacek@redhat.com>
37581 * ipa-inline.c (early_inliner): Recompute inline parameters.
37583 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
37586 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
37587 instructions with TImode operands are included in the analysis.
37589 2015-02-26 Sebastian Pop <s.pop@samsung.com>
37591 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
37592 of an EDGE_FSM_THREAD.
37594 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
37596 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
37598 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
37601 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
37603 2015-02-26 Sebastian Pop <s.pop@samsung.com>
37605 PR tree-optimization/65048
37606 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
37607 (thread_through_all_blocks): Call valid_jump_thread_path.
37608 Remove invalid FSM jump-thread paths.
37610 2015-02-26 Jakub Jelinek <jakub@redhat.com>
37612 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
37613 (ipa_write_optimization_summaries): Likewise.
37614 * tree-streamer.h: Include data-streamer.h.
37615 (streamer_mode_table): Declare extern variable.
37616 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
37617 * lto-streamer-out.c (lto_output_init_mode_table,
37618 lto_write_mode_table): New functions.
37619 (produce_asm_for_decls): Call lto_write_mode_table when streaming
37621 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
37622 (lto_create_simple_input_block): Add mode_table argument to the
37623 lto_input_block constructors.
37624 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
37626 * data-streamer-in.c (string_for_index): Likewise.
37627 * ipa-inline-analysis.c (inline_read_section): Likewise.
37628 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
37629 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
37630 * lto-streamer-in.c (lto_read_body_or_constructor,
37631 lto_input_toplevel_asms): Likewise.
37632 (lto_input_mode_table): New function.
37633 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
37634 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
37635 Use bp_pack_machine_mode.
37636 * real.h (struct real_format): Add name field.
37637 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
37638 (class lto_input_block): Add mode_table member.
37639 (lto_input_block::lto_input_block): Add mode_table_ argument,
37640 initialize mode_table.
37641 (struct lto_file_decl_data): Add mode_table field.
37642 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
37643 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
37644 unpack_ts_decl_common_value_fields,
37645 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
37646 * tree-streamer.c (streamer_mode_table): New variable.
37647 * real.c (ieee_single_format, mips_single_format,
37648 motorola_single_format, spu_single_format, ieee_double_format,
37649 mips_double_format, motorola_double_format,
37650 ieee_extended_motorola_format, ieee_extended_intel_96_format,
37651 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
37652 ibm_extended_format, mips_extended_format, ieee_quad_format,
37653 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
37654 decimal_single_format, decimal_double_format, decimal_quad_format,
37655 ieee_half_format, arm_half_format, real_internal_format): Add name
37657 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
37659 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
37662 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
37663 reordering for selective scheduling.
37665 2015-02-26 Terry Guo <terry.guo@arm.com>
37667 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
37668 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
37669 (arm_arch_no_volatile_ce): Declare new global variable.
37670 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
37671 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
37672 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
37673 (TARGET_NO_VOLATILE_CE): New macro.
37674 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
37675 volatile memory access in IT block
37677 2015-02-25 Kai Tietz <ktietz@redhat.com>
37679 PR tree-optimization/61917
37680 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
37681 that reduc_def_stmt is null.
37683 2015-02-25 Martin Liska <mliska@suse.cz>
37685 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
37686 hard register variables.
37688 2015-02-25 Kai Tietz <ktietz@redhat.com>
37691 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
37692 (symtab::noninterposable_alias): Likewise.
37694 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
37697 * config/i386/i386.c (ix86_function_arg_regno_p): Support
37699 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
37701 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
37704 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
37705 as split condition; force split via '#' in output pattern.
37707 2015-02-25 Richard Biener <rguenther@suse.de>
37708 Kai Tietz <ktietz@redhat.com>
37710 PR tree-optimization/61917
37711 * tree-vect-loop.c (vectorizable_reduction): Allow
37712 vect_internal_def without reduction to exit graceful.
37714 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
37717 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
37718 only with NONDEBUG_INSN_P.
37720 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
37722 Use variadic macros with avr-log.c.
37724 * config/avr/avr-protos.h (avr_vdump): New prototype.
37725 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
37726 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
37727 * config/avr/avr-log.c: Adjust comments.
37728 (avr_vdump): New function.
37729 (avr_vadump): Pass caller as 2nd argument instead of format string.
37730 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
37731 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
37733 2015-02-25 Jakub Jelinek <jakub@redhat.com>
37736 * target.def (target_option_stream_in): New target hook.
37737 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
37738 targetm.target_option.post_stream_in if non-NULL.
37739 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
37740 * doc/tm.texi: Updated.
37741 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
37743 (TARGET_OPTION_POST_STREAM_IN): Redefine.
37745 2015-02-24 Jeff Law <law@redhat.com>
37748 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
37749 of operand 0 and operand 2.
37750 (zero_cost_loop_end, loop_end): Similarly.
37752 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
37754 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
37757 2015-02-24 DJ Delorie <dj@redhat.com>
37759 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
37760 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
37761 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
37762 instead of hardcoding SImode.
37764 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
37766 * omp-low.c (create_omp_child_function): Tag entrypoint
37767 functions with a special attribute.
37769 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
37772 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
37774 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
37776 PR rtl-optimization/65123
37777 * lra-remat.c (operand_to_remat): Check hard regs in insn
37780 2015-02-24 Nick Clifton <nickc@redhat.com>
37782 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
37785 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
37788 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
37789 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
37790 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
37791 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
37792 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
37793 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
37794 (BUILT_IN_GOACC_PARALLEL): Specify as
37795 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
37796 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
37797 * builtin-types.def
37798 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
37799 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
37800 Remove function types.
37801 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
37802 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
37803 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
37804 New function types.
37806 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
37808 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
37810 2015-02-24 Jakub Jelinek <jakub@redhat.com>
37812 PR tree-optimization/65170
37813 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
37814 if val[1] < 0, clear also val[2] and return 3.
37816 2015-02-24 Alan Modra <amodra@gmail.com>
37819 * config/rs6000/rs6000.c (get_memref_parts): Only return true
37820 when *base is a reg. Handle nested plus addresses. Simplify
37823 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
37825 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
37826 use natural alignment when optimizing for size.
37828 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
37831 * config/sh/sh.md (movsicc_true+3): Remove peephole.
37832 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
37833 * config/sh/sh.c (replace_n_hard_rtx): Remove.
37835 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
37838 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
37839 too big for a wide_int. Implement missing wrapping operation.
37841 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
37844 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
37845 instead of const_int 4294901760.
37847 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
37849 * config/avr/t-avr: Fix typo in comment.
37851 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
37853 * doc/rtl.texi (fma): Clarify documentation.
37855 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
37858 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
37859 over input_location.
37861 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
37863 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
37864 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
37865 restrict alignments to absolute_biggest_alignment.
37866 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
37868 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
37869 * doc/tm.texi: Regenerate.
37870 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
37872 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
37875 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
37877 2015-02-20 Richard Biener <rguenther@suse.de>
37879 PR tree-optimization/65136
37880 * tree-ssa-propagate.c: Include cfgloop.h.
37881 (replace_phi_args_in): Avoid replacing loop latch edge PHI
37882 arguments with constants.
37884 2015-02-20 Jakub Jelinek <jakub@redhat.com>
37885 Martin Liska <mliska@suse.cz>
37888 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
37889 don't try to create_thunk if stdarg_p. If
37890 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
37891 redirect_callers if possible.
37892 (sem_item_optimizer::execute): Call unregister_hooks here...
37893 (ipa_icf_driver): ... instead of here.
37895 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37897 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
37898 Mark operand 0 as earlyclobber in 2nd alternative.
37899 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
37900 Write negated shift amount into QI lowpart operand 0 and use it
37902 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
37904 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
37906 * cgraph.h (clone_function_name_1): Declare.
37907 * cgraphclones.c (clone_function_name_1): New function.
37908 (clone_function_name): Use it.
37909 * lto-partition.c: Include "stringpool.h".
37910 (must_not_rename, maybe_rewrite_identifier)
37911 (validize_symbol_for_target): New static functions.
37912 (privatize_symbol_name): Use must_not_rename.
37913 (promote_symbol): Call validize_symbol_for_target.
37914 (lto_promote_cross_file_statics): Likewise.
37915 (lto_promote_statics_nonwpa): Likewise.
37917 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
37920 * config/avr/avr.md (pushhi_insn): New insn.
37921 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
37923 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
37924 Jakub Jelinek <jakub@redhat.com>
37926 * tree-streamer.c (preload_common_nodes): Don't preload
37927 TI_VA_LIST* for offloading.
37928 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
37931 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
37933 * config/pa/pa.c (pa_emit_move_sequence): Always force
37934 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
37937 * config/pa/pa.c (pa_reloc_rw_mask): New function.
37938 (TARGET_ASM_RELOC_RW_MASK): Define.
37939 (pa_cannot_force_const_mem): Revert previous change.
37941 2015-02-19 Martin Jambor <mjmabor@suse.cz>
37942 Jan Hubicka <hubicka@ucw.cz>
37945 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
37946 across jump functions.
37948 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
37950 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
37952 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
37954 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
37956 2015-02-19 Richard Henderson <rth@redhat.com>
37958 PR middle-end/65074
37959 * varasm.c (default_binds_local_p_2): Don't test node->definition;
37960 test DECL_EXTERNAL independent of symtab_node.
37962 2015-02-19 Jakub Jelinek <jakub@redhat.com>
37965 * varpool.c (varpool_node::get_constructor): Return early
37966 if this->lto_file_data is NULL.
37968 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
37970 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
37971 (rank_for_schedule_debug): Update.
37972 (ready_sort): Make static. Move sorting logic to ...
37973 (ready_sort_debug, ready_sort_real): New static functions.
37974 (schedule_block): Sort both debug insns and real insns in preparation
37975 for ready list trimming. Improve debug output.
37976 * sched-int.h (ready_sort): Remove global declaration.
37978 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
37980 * ipa-icf.c (sem_function::equals_private): Adjust.
37981 (sem_function::bb_dict_test): Take a vec<int> * instead of
37983 * ipa-icf.h (bb_dict_test): Likewise.
37985 2015-02-18 Jakub Jelinek <jakub@redhat.com>
37987 PR gcov-profile/64634
37988 * tree-eh.c (frob_into_branch_around): Fix up typos
37989 in function comment.
37990 (lower_catch): Put eh_seq resulting from EH lowering of
37991 the cleanup sequence after the cleanup rather than before it.
37993 2015-02-18 Tom de Vries <tom@codesourcery.com>
37995 * common.opt (fstdarg-opt): New option.
37996 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
37997 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
37998 (@item -fstdarg-opt): New item.
38000 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
38003 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
38004 for common symbols.
38006 2015-02-18 Jakub Jelinek <jakub@redhat.com>
38008 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
38010 (ALL_HOST_OBJS): Add mkoffload.o.
38011 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
38013 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
38015 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
38016 (compare_virtual_tables): Be smarter about skipping typeinfos;
38017 do sane output on virtual table table mismatch.
38018 (warn_odr): Be ready for forward declarations of enums;
38019 output sane info on base mismatch and virtual table mismatch.
38020 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
38021 when only one type is polymorphic.
38022 (get_odr_type): Fix hashtable corruption.
38023 (dump_odr_type): Dump mangled names.
38025 2015-02-18 Richard Biener <rguenther@suse.de>
38027 PR tree-optimization/65063
38028 * tree-predcom.c (determine_unroll_factor): Return 1 if we
38029 have replaced looparound PHIs.
38031 2015-02-18 Martin Liska <mliska@suse.cz>
38033 * lto-streamer.c (lto_streamer_init): Encapsulate
38034 streamer_check_handled_ts_structures with checking macro.
38036 2015-02-18 Jakub Jelinek <jakub@redhat.com>
38039 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
38040 section if !implicit_section.
38041 (cgraph_node::create_version_clone_with_body): Likewise.
38042 * trans-mem.c (ipa_tm_create_version): Likewise.
38044 2015-02-18 Richard Biener <rguenther@suse.de>
38046 PR tree-optimization/62217
38047 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
38050 2015-02-18 Marek Polacek <polacek@redhat.com>
38053 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
38054 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
38055 is in range [-16K, -1]. Don't issue run-time error if
38056 (ptr > ptr + offset).
38058 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
38060 * doc/install.texi (nvptx-*-none): New section.
38061 * doc/invoke.texi (Nvidia PTX Options): Likewise.
38062 * config/nvptx/nvptx.opt: Update.
38064 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
38065 (access_check): New functions, copied from
38066 config/i386/intelmic-mkoffload.c.
38067 (main): For non-installed testing, look in all COMPILER_PATHs for
38070 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
38072 2015-02-18 Andrew Pinski <apinski@cavium.com>
38073 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
38075 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
38076 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
38078 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
38080 * ipa-visibility.c (function_and_variable_visibility): Only
38081 check locality if node is not already local.
38082 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
38083 call_for_symbol_and_aliases instead of
38084 call_for_symbol_thunks_and_aliases.
38085 (ipa_inline): Likewise.
38086 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
38087 first walk aliases.
38088 * ipa.c (symbol_table::remove_unreachable_nodes): Use
38089 call_for_symbol_and_aliases.
38090 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
38091 (ipa_propagate_frequency_1): Use it; use opt_for_fn
38092 (ipa_propagate_frequency): Update.
38093 (ipa_profile): Add opt_for_fn gueards.
38095 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
38097 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
38098 * doc/invoke.texi (SH options): Document it.
38099 * config/sh/sh.c (sh_insn_length_adjustment): Check
38100 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
38102 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
38104 * common.opt (fipa-cp-alignment): New.
38105 * ipa-cp.c (ipcp_store_alignment_results): Check
38106 flag_ipa_cp_alignment.
38107 * opts.c (default_options_table): Enable -fipa-cp-alignment for
38109 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
38110 * doc/invoke.texi: Document -fipa-cp-alignment.
38112 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
38115 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
38116 to nil. Adjust comments.
38118 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
38120 * ipa-visibility.c (function_and_variable_visibility): Only
38121 check locality if node is not already local.
38122 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
38123 call_for_symbol_and_aliases instead of
38124 call_for_symbol_thunks_and_aliases.
38125 (ipa_inline): Likewise.
38126 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
38127 first walk aliases.
38128 * ipa.c (symbol_table::remove_unreachable_nodes): Use
38129 call_for_symbol_and_aliases.
38130 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
38131 (ipa_propagate_frequency_1): Use it; use opt_for_fn
38132 (ipa_propagate_frequency): Update.
38133 (ipa_profile): Add opt_for_fn guards.
38135 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
38137 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
38138 skipping of "strange" tokens.
38140 2015-02-17 Jeff Law <law@redhat.com>
38142 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
38145 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
38147 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
38148 as forcing a HARD_DEP between instructions, thereby
38149 disallowing rewriting to break dependencies.
38151 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
38153 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
38154 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
38155 variables in boundary that have no inlitalizer encoded and are
38157 * varasm.c (default_binds_local_p_2): External definitions do not
38158 count as definitions here.
38160 2015-02-16 Jeff Law <law@redhat.com>
38162 PR tree-optimization/64823
38163 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
38165 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
38166 threading through blocks with PHIs, but no statements.
38167 (thread_through_normal_block): Distinguish between blocks where
38168 we did not process all the statements and blocks with no statements.
38170 2015-02-16 Jakub Jelinek <jakub@redhat.com>
38171 James Greenhalgh <james.greenhalgh@arm.com>
38174 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
38175 section if not linkonce. Fix up formatting.
38176 (cgraph_node::create_version_clone_with_body): Copy section.
38177 * trans-mem.c (ipa_tm_create_version): Likewise.
38179 2015-02-16 Richard Biener <rguenther@suse.de>
38181 PR tree-optimization/65077
38182 * tree-ssa-structalias.c (get_constraint_for_1): Handle
38183 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
38184 (find_func_aliases): Allow float values to carry pointers again.
38186 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
38188 * doc/install.texi (Specific): Reorder targets list to put
38189 aarch64 in alphabetical order. Add a link to aarch64*-*-*
38192 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
38193 David Edelsohn <dje.gcc@gmail.com>
38196 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
38197 mapping class to external variable or function reference.
38198 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
38201 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
38204 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
38205 ASM_WEAKEN_DECL if defined.
38207 2015-02-16 Richard Biener <rguenther@suse.de>
38210 * varasm.c (default_file_start): For LTO produced units
38211 emit <artificial> as file directive.
38213 2015-02-16 Richard Biener <rguenther@suse.de>
38215 PR tree-optimization/63593
38216 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
38217 stmts and releasing SSA names until...
38218 (execute_pred_commoning): ... after processing all chains.
38220 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
38223 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
38224 external functions.
38226 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
38228 * doc/bugreport.texi: Adjust section titles throughout the file
38229 to use "Title Case".
38230 * doc/extend.texi: Likewise.
38231 * doc/gcov.texi: Likewise.
38232 * doc/implement-c.texi: Likewise.
38233 * doc/implement-cxx.texi: Likewise.
38234 * doc/invoke.texi: Likewise.
38235 * doc/objc.texi: Likewise.
38236 * doc/standards.texi: Likewise.
38237 * doc/trouble.texi: Likewise.
38239 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
38241 * cgraph.h (symtab_node::has_aliases_p): Simplify.
38242 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
38243 * tree.c (lookup_binfo_at_offset): Make static.
38244 (get_binfo_at_offset): Do not shadow offset; add explanatory
38247 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
38249 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
38250 for all floading point loads and stores except those using a register
38252 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
38255 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
38257 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
38258 (do_estimate_growth_1): Record if any uninlinable edge was seen.
38259 (estimate_growth): Handle uninlinable edges correctly.
38260 (check_callers): New.
38261 (growth_likely_positive): Handle aliases correctly.
38263 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
38265 * ipa-chkp.c: Use iterate_direct_aliases.
38266 * symtab.c (resolution_used_from_other_file_p): Move inline.
38267 (symtab_node::create_reference): Fix formating.
38268 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
38269 (symtab_node::iterate_reference): Move inline.
38270 (symtab_node::iterate_referring): Move inline.
38271 (symtab_node::iterate_direct_aliases): Move inline.
38272 (symtab_node::used_from_object_file_p_worker): Inline into ...
38273 (symtab_node::used_from_object_file_p): ... this one; move inline.
38274 (symtab_node::call_for_symbol_and_aliases): Move inline;
38275 use iterate_direct_aliases.
38276 (symtab_node::call_for_symbol_and_aliases_1): New method.
38277 (cgraph_node::call_for_symbol_and_aliases): Move inline;
38278 use iterate_direct_aliases.
38279 (cgraph_node::call_for_symbol_and_aliases_1): New method.
38280 (varpool_node::call_for_node_and_aliases): Rename to ...
38281 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
38282 use iterate_direct_aliases.
38283 (varpool_node::call_for_symbol_and_aliases_1): New method.
38284 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
38285 (ipa_discover_readonly_nonaddressable_var): Update.
38286 * ipa-devirt.c: Fix formating.
38287 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
38289 (cgraph_node::call_for_symbol_and_aliases): Move inline.
38290 (cgraph_node::call_for_symbol_and_aliases_1): New function..
38291 * cgraph.h (used_from_object_file_p_worker): Remove.
38292 (resolution_used_from_other_file_p): Move inline.
38293 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
38294 (symtab_node::iterate_reference): Move inline.
38295 (symtab_node::iterate_referring): Move inline.
38296 (symtab_node::iterate_direct_aliases): Move inline.
38297 (symtab_node::used_from_object_file_p_worker): Inline into ...
38298 (symtab_node::used_from_object_file_p): Move inline.
38299 * tree-emutls.c (ipa_lower_emutls): Update.
38300 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
38301 (varpool_node::call_for_node_and_aliases): Remove.
38303 2015-02-14 Jakub Jelinek <jakub@redhat.com>
38305 PR tree-optimization/62209
38306 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
38307 op == range->exp, insert seq and gimplified code after labels
38308 instead of after the phi.
38310 2015-02-13 Jeff Law <law@redhat.com>
38313 Revert my change for tree-optimization/64823.
38315 2015-02-13 Jakub Jelinek <jakub@redhat.com>
38317 PR tree-optimization/65053
38318 * tree-ssa-phiopt.c (value_replacement): When moving assign before
38319 cond, either reset VR on lhs or set it to phi result VR.
38321 2015-02-13 Jeff Law <law@redhat.com>
38323 PR tree-optimization/64823
38324 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
38325 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
38326 threading through blocks with PHIs, but no statements.
38327 (thread_through_normal_block): Distinguish between blocks where
38328 we did not process all the statements and blocks with no statements.
38330 PR rtl-optimization/47477
38331 * match.pd (convert (plus/minus (convert @0) (convert @1): New
38332 simplifier to narrow arithmetic.
38334 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
38337 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
38338 polymorphic call info when type is not known to be preserved.
38340 2015-02-13 Maritn Jambor <mjambor@suse.cz>
38343 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
38344 (inline_call): Use it.
38346 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
38348 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
38349 GOMP_DEVICE_NVIDIA_PTX.
38351 2015-02-13 Jakub Jelinek <jakub@redhat.com>
38354 * stmt.c (emit_case_nodes): Use void_type_node instead of
38355 NULL_TREE as LABEL_DECL type.
38357 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
38359 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
38361 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
38362 symbolic references to data to be forced to constant memory on the
38365 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
38367 PR tree-optimization/65002
38368 * tree-cfg.c (pass_data_fixup_cfg): Don't update
38370 * tree-sra.c (some_callers_have_no_vuse_p): New.
38371 (ipa_early_sra): Reject functions whose callers
38372 assume function is read only.
38374 2015-02-13 Richard Biener <rguenther@suse.de>
38377 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
38378 for LTO produced CUs.
38380 2015-02-13 Bin Cheng <bin.cheng@arm.com>
38382 PR tree-optimization/64705
38383 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
38384 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
38385 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
38386 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
38387 expand_simple_operations.
38389 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
38390 Richard Henderson <rth@redhat.com>
38393 * cgraphunit.c (cgraph_node::finalize_function): Set definition
38394 before notice_global_symbol.
38395 (varpool_node::finalize_decl): Likewise.
38396 * varasm.c (default_binds_local_p_2): Rename from
38397 default_binds_local_p_1, add weak_dominate argument. Use direct
38398 returns instead of assigning to local variable. Unify varpool and
38399 cgraph paths via symtab_node. Reject undef weak variables before
38400 testing visibility. Reorder tests for simplicity.
38401 (default_binds_local_p): Use default_binds_local_p_2.
38402 (default_binds_local_p_1): Likewise.
38403 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
38405 (default_elf_asm_output_external): Emit visibility when specified.
38407 2015-02-13 Alan Modra <amodra@gmail.com>
38409 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
38410 code setting up r11 for out-of-line fp restore.
38412 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
38414 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
38415 (muser-mode): Likewise.
38417 2015-02-13 Alan Modra <amodra@gmail.com>
38419 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
38420 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
38422 2015-02-12 David Howells <dhowells@redhat.com>
38424 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
38426 * tree-ssa-uninit.c (dump_predicates): Likewise.
38427 * opts.c (print_filtered_help): Likewise.
38429 2015-02-12 Jakub Jelinek <jakub@redhat.com>
38431 * dwarf2out.c (output_die): Use "%s", name instead of name to
38432 avoid -Wformat-security warning.
38434 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
38435 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
38436 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
38437 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
38439 2015-02-12 Jason Merrill <jason@redhat.com>
38441 * common.opt (-flifetime-dse): New.
38443 2015-02-12 Jakub Jelinek <jakub@redhat.com>
38446 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
38448 PR tree-optimization/65014
38449 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
38450 use original second operand of arg0 or arg1 instead of
38451 that adjusted by STRIP_NOPS.
38453 2015-02-11 Jeff Law <law@redhat.com>
38456 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
38457 that needs to be queued, just queue it for a single cycle.
38459 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
38461 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
38462 bodies of thunks; comment on why.
38463 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
38464 symbols are extern.
38466 2015-02-11 Richard Henderson <rth@redhat.com>
38469 * tree-eh.c (mark_reachable_handlers): Mark source and destination
38470 regions of __builtin_eh_copy_values.
38472 2015-02-11 Jakub Jelinek <jakub@redhat.com>
38474 PR middle-end/65003
38475 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
38476 ultimate alias is MEM with SYMBOL_REF satisfying
38477 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
38478 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
38480 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
38482 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
38483 "diagnostic-core.h".
38484 (main): Initialize progname, and call diagnostic_initialize.
38486 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
38487 instead of __OPENMP_TARGET__.
38489 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
38490 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
38491 hard-coding PTX_ID.
38493 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
38495 * doc/sourcebuild.texi (pie_enabled): Document.
38497 2015-02-11 Martin Liska <mliska@suse.cz>
38500 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
38501 a return value for call to a function that is noreturn.
38503 2015-02-11 Richard Biener <rguenther@suse.de>
38506 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
38509 2015-02-11 Andrew Pinski <apinski@cavium.com>
38512 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
38513 Change the first argument type to size_type_node and add another
38515 (aarch64_simd_expand_builtin): Handle the new argument to
38516 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
38517 print an out when the first two arguments are not
38518 nonzero integer constants.
38519 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
38520 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
38522 2015-02-11 Jakub Jelinek <jakub@redhat.com>
38525 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
38526 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
38527 (ix86_set_current_function): Rewritten.
38528 (ix86_add_new_builtins): Temporarily clear current_target_pragma
38529 when creating builtin fndecls.
38531 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
38534 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
38536 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
38537 have no comdat group.
38538 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
38539 (lto_output_varpool_node): Always output alias info.
38540 (output_refs): Output refs of boundary aliases, too.
38541 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
38542 (output_symtab): Output call eges in thunks in boundary.
38543 (get_alias_symbol): Remove.
38544 (input_node, input_varpool_node): Do not special case weakrefs.
38545 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
38546 alias and thunks targets in the boundary; do not take removed symbols
38547 from their comdat groups.
38548 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
38549 (cgraph_node::global_info): Remove.
38550 (cgraph_node::rtl_info): Look through aliases and thunks.
38551 * cgrpah.h (global_info): Remove.
38552 (non_local_p): Remove.
38554 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
38555 Sandra Loosemore <sandra@codesourcery.com>
38557 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
38558 to inline asm. List dialects in proper order.
38560 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
38561 Sandra Loosemore <sandra@codesourcery.com>
38563 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
38565 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
38567 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
38568 modified) reference to Solaris.
38570 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
38572 * doc/extend.texi (Extended Asm): Fix typos.
38574 2015-02-10 Jakub Jelinek <jakub@redhat.com>
38577 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
38579 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
38582 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
38583 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
38584 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
38585 * config/sh/constraints.md (Ara, Add): New constraints.
38586 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
38588 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
38589 atomic_mem_operand_0. Don't use force_reg on the memory address.
38590 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
38591 Sra constraint. Convert to insn_and_split. Add workaround for
38593 (atomic_compare_and_swap<mode>_hard): Copy to
38594 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
38595 Use atomic_mem_operand_0 predicate.
38596 (atomic_compare_and_swap<mode>_soft_gusa,
38597 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
38598 AraAdd constraints.
38599 (atomic_compare_and_swap<mode>_soft_tcb,
38600 atomic_compare_and_swap<mode>_soft_imask,
38601 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
38602 atomic_mem_operand_0 predicate and SraSdd constraints.
38603 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
38605 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
38606 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
38607 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
38608 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
38609 force_reg on the memory address.
38610 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
38611 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
38612 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
38613 atomic_mem_operand_1 predicate and Sra constraint.
38614 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
38615 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
38616 Use atomic_mem_operand_1 predicate.
38617 (atomic_<fetchop_name><mode>_hard): Copy to
38618 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
38619 Use atomic_mem_operand_1 predicate.
38620 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
38621 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
38622 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
38623 insn_and_split. Use atomic_mem_operand_1 predicate.
38624 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
38625 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
38626 Use atomic_mem_operand_1 predicate.
38627 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
38628 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
38629 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
38630 in generated insn with original mem operand before emitting the insn.
38631 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
38632 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
38633 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
38634 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
38635 Use atomic_mem_operand_1 predicate and AraAdd constraints.
38636 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
38637 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
38638 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
38639 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
38640 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
38641 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
38642 atomic_not_fetch<mode>_soft_tcb,
38643 atomic_<fetchop_name>_fetch<mode>_soft_imask,
38644 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
38645 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
38646 Use atomic_mem_operand_1 predicate and SraSdd constraints.
38648 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
38650 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
38651 and 3 earlyclobber operands.
38653 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
38655 * common.opt (fstack-reuse): Mark as optimization.
38657 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
38660 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
38662 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
38664 PR tree-optimization/64326
38665 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
38667 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
38669 PR gcov-profile/61889
38670 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
38672 2015-02-10 Richard Biener <rguenther@suse.de>
38674 PR tree-optimization/64995
38675 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
38676 value we use is final.
38677 (visit_reference_op_store): Always valueize op.
38678 (visit_use): Properly valueize vuses.
38680 2015-02-10 Richard Biener <rguenther@suse.de>
38682 PR tree-optimization/64909
38683 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
38684 pass a scalar-stmt count estimate to the cost model.
38685 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
38687 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
38689 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
38690 enabled by default together with var-tracking.
38692 2015-02-10 Nick Clifton <nickc@redhat.com>
38694 * config/rl78/rl78.c: Remove DIV attribute code accidentally
38695 included in previous rl78 commit.
38697 2015-02-10 Richard Biener <rguenther@suse.de>
38699 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
38700 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
38701 return the bitpack.
38703 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
38705 PR gcov-profile/61889
38706 * config.in: regenerate.
38707 * configure.in: Likewise.
38708 * configure.ac: Check for ftw.h.
38709 * gcov-tool.c: Check for ftw.h before using nftw.
38711 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
38714 * ipa-visibility.c (update_visibility_by_resolution_info): Only
38715 assert when not in lto mode.
38717 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
38719 * ira-color.c (setup_left_conflict_sizes_p): Simplify
38720 initialization/assignment of conflict_size.
38722 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
38725 * ipa-cp.c (gather_caller_stats): Skip thunks.
38726 (propagate_constants_topo): Skip aliases.
38728 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
38731 * config/sh/sh.c (sh_option_override): Don't change
38732 -freorder-blocks-and-partition to -freorder-blocks even when
38733 unwinding is enabled.
38734 (sh_can_follow_jump): Return false if the followee jump is
38735 a crossing jump when -freorder-blocks-and-partition is specified.
38736 * config/sh/sh.md (*jump_compact_crossing): New insn.
38738 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
38739 Kaz Kojima <kkojima@gcc.gnu.org>
38742 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
38743 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
38744 (sh_can_redirect_branch): Rename to ...
38745 (sh_can_follow_jump): ... this. Constify argument types.
38746 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
38747 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
38748 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
38749 * doc/tm.texi: Regenerate.
38751 2015-02-09 Jakub Jelinek <jakub@redhat.com>
38754 * builtins.c (expand_builtin): Call targetm.expand_builtin
38755 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
38757 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
38760 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
38762 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
38765 * ipa-icf.c (set_local): New function.
38766 (sem_function::merge): Use it.
38768 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
38770 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
38771 (add_type_duplicate): Fix comparison of BINFOs.
38773 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
38775 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
38776 on getting VOID pointer.
38778 2015-02-09 Jakub Jelinek <jakub@redhat.com>
38781 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
38784 2015-02-09 Richard Biener <rguenther@suse.de>
38786 * genmatch.c (replace_id): Copy expr_type.
38788 2015-02-09 Richard Biener <rguenther@suse.de>
38790 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
38791 (streamer_write_tree_bitfields): Declare.
38792 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
38793 properly unpack padding.
38794 (unpack_value_fields): Inline ...
38795 (streamer_read_tree_bitfields): ... here.
38796 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
38797 and properly add padding bits.
38798 (streamer_pack_tree_bitfields): Fold into ...
38799 (streamer_write_tree_bitfields): ... this new function,
38800 exposing the bitpack object.
38801 * lto-streamer-out.c (lto_write_tree_1): Call
38802 streamer_write_tree_bitfields.
38804 2015-02-09 Richard Biener <rguenther@suse.de>
38806 PR tree-optimization/54000
38807 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
38808 (struct ivopts_data): Add loop_loc member.
38809 (tree_ssa_iv_optimize_loop): Dump loop location.
38810 (create_new_ivs): Likewise, also dump number of IVs generated.
38812 2015-02-09 Martin Liska <mliska@suse.cz>
38814 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
38815 just if not yet registered.
38816 (ipa_icf_generate_summary): Register callgraph hooks.
38818 2015-02-08 Andrew Pinski <apinski@cavium.com>
38820 * config/aarch64/aarch64.c (gty_dummy): Delete.
38822 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
38825 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
38826 (cgraph_node::local_p): Remove thunk related FIXME.
38828 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
38831 * i386.c (ix86_function_regparm): Look through aliases to see if callee
38832 is local and optimized.
38833 (ix86_function_sseregparm): Likewise; also use target's SSE math
38834 settings; error out instead of silently generating wrong code
38836 (init_cumulative_args): Look through aliases.
38838 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
38841 * ipa-split.c (execute_split_functions): Split if function has aliases.
38843 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
38846 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
38847 aliases before trying to expand it.
38848 (cgraph_node::expand_thunk): Fix formating.
38850 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
38852 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
38853 (Using Assembly Language with C): Expand introduction.
38854 (Basic Asm): Copy-edit. Add more information about uses of
38856 (Extended Asm): Copy-edit. Document new escape syntax and
38858 (Global Reg Vars): Copy-edit.
38859 (Local Reg Vars): Likewise.
38861 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
38865 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
38866 (DBX_CONTIN_CHAR): Define.
38868 2015-02-06 Sebastian Pop <s.pop@samsung.com>
38869 Brian Rzycki <b.rzycki@samsung.com>
38871 PR tree-optimization/64878
38872 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
38873 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
38874 Stop recursion at loop phi nodes after having visited a loop phi node.
38876 2015-02-06 Jakub Jelinek <jakub@redhat.com>
38878 * toplev.c (process_options): Change flag_ipa_ra before creating
38879 optimization_{default,current}_node.
38882 * cgraphunit.c (cgraph_node::expand_thunk): If
38883 restype is not is_gimple_reg_type nor the thunk_fndecl
38884 returns aggregate_value_p, set restmp to a temporary variable
38885 instead of resdecl.
38887 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
38889 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
38891 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
38894 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
38895 add a general secondary reload handler for SDmode, unless we have
38896 both read/write support for SDmode.
38898 2015-02-06 Jakub Jelinek <jakub@redhat.com>
38900 PR middle-end/64937
38901 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
38902 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
38903 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
38904 1 before, push it to abstract_vec.
38905 (dwarf2out_abstract_function): Adjust caller. Don't call
38906 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
38907 DECL_ABSTRACT_P flags for all abstract_vec elts.
38909 2015-02-06 Renlin Li <renlin.li@arm.com>
38911 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
38913 * tree-ssa.c (execute_update_addresses_taken): Likewise.
38915 2015-02-06 Jeff Law <law@redhat.com>
38918 * config/h8300/h8300.c (push): New argument "in_prologue".
38919 Pass "in_prologue" along to "F".
38920 (h8300_push_pop): Corresponding changes.
38921 (h8300_expand_prologue): Likewise.
38922 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
38924 2015-02-06 Jakub Jelinek <jakub@redhat.com>
38926 PR rtl-optimization/64957
38928 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
38929 IOR rather than for AND.
38931 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
38934 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
38935 of shift-add and (add + shift) operations. Rename local variable.
38937 2015-02-05 Jeff Law <law@redhat.com>
38940 * config/h8300/constraints.md (U): Correctly dectect
38941 "eightbit_data" memory addresses.
38942 * config/h8300/h8300.c (eightbit_constant_address_p): Also
38943 handle (const (plus (symbol_ref (x)))) where x is declared
38944 as an 8-bit data memory address.
38945 * config/h8300/h8300.md (call, call_value): Correctly detect
38946 "funcvec" functions.
38949 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
38950 24 to 28 bits for the H8/300.
38952 2015-02-06 Alan Modra <amodra@gmail.com>
38955 * config/rs6000/rs6000.c (chain_already_loaded): New function.
38956 (rs6000_call_aix): Use it.
38958 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
38960 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
38963 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
38965 * config/h8300/constraints.md ("U" constraint): Use strict
38966 variant of REG_OK_FOR_BASE_P after reload has started.
38968 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
38970 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
38971 define to zero if !TARGET_NEON.
38972 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
38974 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
38975 Trevor Saunders <tsaunders@mozilla.com>
38978 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
38980 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
38983 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
38984 when removing varpool nodes.
38986 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
38989 * varpool.c (varpool_node::remove): Fix order of variables.
38991 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
38994 * ipa-inline.c (inline_small_functions): Fix ordering issue between
38995 speculation resolution and key updates.
38997 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
38999 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
39000 about not letting any speculative edges unupdated.
39002 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
39005 * gcov-io.c (gcov_var): Export.
39007 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
39009 PR middle-end/64922
39010 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
39011 edges that become speculative.
39013 2015-02-04 Jakub Jelinek <jakub@redhat.com>
39015 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
39016 or DW_LANG_Fortran08.
39017 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
39019 (gen_compile_unit_die): Handle "GNU Fortran2003" and
39020 "GNU Fortran2008" language strings.
39021 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
39022 * langhooks.h (lang_GNU_Fortran): New prototype.
39023 * langhooks.c (lang_GNU_Fortran): New function.
39024 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
39027 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
39029 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
39030 (RTX_OK_FOR_OLO10_P): Likewise.
39032 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
39034 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
39036 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
39038 PR middle-end/64922
39039 * gimple.c: Include gimple-ssa.h.
39040 (maybe_remove_unused_call_args): New function.
39041 * gimple.h (maybe_remove_unused_call_args): Declare.
39042 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
39043 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
39044 * gimple-fold.c (gimple_fold_call): Likewise.
39046 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
39048 PR rtl-optimization/64905
39049 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
39050 pointer alignment if it isn't needed.
39052 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
39054 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
39055 cortex-a72.cortex-a53.
39056 * config/aarch64/aarch64-tune.md: Regenerate.
39057 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
39059 2015-02-04 Nick Clifton <nickc@redhat.com>
39061 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
39064 2015-02-04 Jakub Jelinek <jakub@redhat.com>
39066 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
39067 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
39068 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
39070 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
39071 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
39072 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
39073 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
39074 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
39075 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
39076 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
39077 * tree-core.h (enum built_in_function): In between
39078 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
39079 for builtins that use DEF_BUILTIN_CHKP macro.
39081 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
39084 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
39085 operands for tcc_comparison exprs. Fix typos.
39088 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
39089 of two XORs that have an intervening AND or IOR.
39092 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
39093 simplification of XOR of AND to not allocate new rtx before
39094 committing to a simplification.
39096 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
39098 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
39099 manual swaps in all peepholes.
39101 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
39103 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
39104 of manual swapping implementation.
39105 (aarch64_expand_vec_perm_const_1): Likewise.
39107 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
39109 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
39110 (generic_addrcost_table): Remove NAMED_PARAM.
39111 (cortexa57_addrcost_table): Likewise.
39112 (xgene1_addrcost_table): Likewise.
39113 (generic_regmove_table): Likewise.
39114 (cortexa53_regmove_table): Likewise.
39115 (xgene1_regmove_table): Likewise.
39116 (generic_vector_table): Likewise.
39117 (cortexa57_vector_table): Likewise.
39118 (xgene1_vector_table): Likewise.
39119 (generic_tunings): Likewise.
39120 (cortexa53_tunings): Likewise.
39121 (cortexa57_tunings): Likewise.
39122 (xgene1_tunings): Likewise.
39124 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
39126 * config/arm/arm-cores.def: Add cortex-a72 and
39127 cortex-a72.cortex-a53.
39128 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
39129 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
39130 * config/arm/arm-tune.md: Regenerate.
39131 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
39132 "cortex-a72.cortex-a53".
39133 * doc/invoke.texi (ARM Options/-mtune): Likewise.
39135 2015-02-04 Nick Clifton <nickc@redhat.com>
39138 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
39140 (nonimmediate_di_operand): Likewise.
39142 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
39143 prefixes of known F5 using MSP430 MCUs.
39145 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
39147 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
39148 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
39149 instead of __builtin_sqrt.
39151 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
39153 * varasm.c (do_assemble_alias): Follow transparent alias
39155 (default_assemble_visibility): Follow transparent alias
39156 chain for decl name.
39158 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
39160 PR middle-end/62103
39161 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
39162 to compute size of referenced value in the constant case.
39164 2015-02-03 Jakub Jelinek <jakub@redhat.com>
39166 PR rtl-optimization/64756
39167 * cse.c (invalidate_dest): New function.
39168 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
39169 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
39170 invalidate and do not record it.
39172 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
39175 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
39176 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
39177 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
39178 atomic_nand<mode>_soft_tcb): New insns.
39179 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
39180 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
39181 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
39182 Split into atomic_not_fetchsi_hard if operands[0] is unused.
39183 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
39184 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
39185 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
39186 atomic_not<mode>_hard if operands[0] is unused.
39187 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
39188 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
39189 if operands[0] is unused.
39190 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
39191 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
39192 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
39193 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
39195 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
39196 into atomic_not<mode>_soft_tcb if operands[0] is unused.
39197 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
39198 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
39199 if operands[0] is unused.
39200 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
39201 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
39202 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
39203 atomic_nand_fetchsi_hard if operands[0] is unused.
39204 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
39205 atomic_nand<mode>_hard if operands[0] is unused.
39206 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
39207 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
39208 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
39209 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
39210 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
39211 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
39212 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
39213 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
39214 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
39215 atomic_not<mode>_hard if operands[0] is unused.
39216 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
39217 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
39219 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
39220 into atomic_not<mode>_soft_tcb if operands[0] is unused.
39221 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
39222 atomic_nand<mode>_hard if operands[0] is unused.
39223 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
39224 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
39226 2015-02-03 David Malcolm <dmalcolm@redhat.com>
39229 * Makefile.in (GCC_OBJS): Add gcc-main.o.
39230 * gcc-main.c: New file, containing "main" taken from gcc.c.
39231 * gcc.c (do_self_spec): Free decoded_options.
39232 (class driver): Move declaration to gcc.h.
39233 (main): Move declaration and implementation to new file
39235 (driver_get_configure_time_options): New function.
39236 * gcc.h (class driver): Move this declaration here, from
39238 (driver_get_configure_time_options): New declaration.
39240 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
39242 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
39243 cross-module inlining.
39244 * cgraph.h (cgraph_node): Add flag merged.
39245 * ipa-icf.c (sem_function::merge): Maintain it.
39247 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
39249 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
39250 instead of OBJECT_P.
39252 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
39255 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
39256 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
39257 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
39258 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
39260 2015-02-03 Jakub Jelinek <jakub@redhat.com>
39263 * combine.c (reg_n_sets_max): New variable.
39264 (can_change_dest_mode, reg_nonzero_bits_for_combine,
39265 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
39266 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
39267 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
39268 (rest_of_handle_combine): Initialize reg_n_sets_max.
39270 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
39272 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
39273 if some always_inline was inlined, apply changes before inlining
39276 2015-02-02 David Malcolm <dmalcolm@redhat.com>
39279 * config/arm/arm.c (arm_option_override): Set
39280 arm_selected_arch/cpu/tune to NULL on entry.
39282 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
39283 Andrew Pinski <pinskia@gcc.gnu.org>
39284 Jakub Jelinek <jakub@gcc.gnu.org>
39287 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
39288 integer typing for small model. Use IN_RANGE.
39290 2015-02-02 Richard Biener <rguenther@suse.de>
39292 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
39293 * tree-vrp.c (vrp_valueize_1): Likewise.
39295 2015-02-02 Alan Modra <amodra@gmail.com>
39297 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
39298 than mem for toc_restore.
39299 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
39300 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
39301 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
39303 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
39306 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
39307 explicit default options.
39309 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
39312 * ipa-utils.c (ipa_merge_profiles): Add release argument.
39313 * ipa-icf.c (sem_function::merge): Do not release body when merging.
39314 * ipa-utils.h (ipa_merge_profiles): Update prototype.
39316 2015-02-01 Jakub Jelinek <jakub@redhat.com>
39319 * cfgexpand.c (deep_ter_debug_map): New variable.
39320 (avoid_deep_ter_for_debug): New function.
39321 (expand_debug_expr): If TERed SSA_NAME is in
39322 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
39323 instead of trying to expand SSA_NAME's def stmt.
39324 (expand_debug_locations): When expanding debug bind
39325 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
39326 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
39328 (pass_expand::execute): Call avoid_deep_ter_for_debug on
39329 all debug bind stmts. Delete deep_ter_debug_map after
39330 expand_debug_location if non-NULL and clear it.
39332 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
39335 * config/sh/sync.md (atomic_fetch_notsi_hard,
39336 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
39337 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
39338 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
39339 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
39340 atomic_not_fetch<mode>_soft_imask): New insns.
39342 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
39344 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
39345 (rank_for_schedule_debug): Split from ...
39346 (rank_for_schedule): ... this.
39347 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
39348 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
39350 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
39352 * doc/md.texi (Machine Constraints): Alphabetize table by target.
39353 * doc/extend.texi (x86 Variable Attributes): Move section to
39354 correct alphabetization after renaming.
39355 (x86 Type Attributes): Likewise.
39356 (Target Builtins): Re-alphabetize menu.
39357 (x86 Built-in Functions): Move section to correct alphabetization
39359 (x86 transactional memory intrinsics): Likewise.
39360 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
39361 and x86 Windows Options in table and menu.
39362 (x86 Options): Move section to correct alphabetization after
39364 (x86 Windows Options): Likewise.
39366 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
39368 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
39369 preferred names of the architecture and its 32- and 64-bit
39371 * doc/invoke.texi: Likewise.
39372 * doc/md.texi: Likewise.
39374 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
39377 * config/i386/predicates.md (address_no_seg_operand): Reject
39378 non-CONST_INT_P operands in invalid mode.
39380 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
39382 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
39383 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
39384 * config/i386/predicates.md (address_no_seg_operand): Call
39385 address_operand with VOIDmode.
39386 (vsib_address_operand): Ditto.
39387 (address_mpx_no_base_operand): Ditto.
39388 (address_mpx_no_index_operand): Ditto.
39390 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
39393 * lra-constraints.c (original_subreg_reg_mode): New.
39394 (simplify_operand_subreg): Try to simplify subreg of const. Use
39395 original_subreg_reg_mode for it.
39396 (swap_operands): Update original_subreg_reg_mode.
39397 (curr_insn_transform): Set up original_subreg_reg_mode.
39399 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
39402 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
39404 (process_alt_operands): Use it.
39405 (curr_insn_transform): Check the optional reload pseudo class is
39408 2015-01-30 Joseph Myers <joseph@codesourcery.com>
39410 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
39411 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
39413 * toplev.h (init_asm_output): Update comment on use of
39414 UNKNOWN_LOCATION with fatal_error.
39415 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
39416 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
39417 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
39418 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
39419 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
39420 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
39421 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
39422 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
39423 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
39424 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
39425 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
39426 fatal_error changed to pass input_location as first argument.
39428 2015-01-30 Martin Liska <mliska@suse.cz>
39430 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
39431 in #pragma GCC diagnostic guards.
39433 2015-01-30 Richard Biener <rguenther@suse.de>
39435 PR tree-optimization/64829
39436 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
39437 not add a widening conversion pattern but hand off extra
39438 widenings to callers.
39439 (vect_recog_widen_mult_pattern): Handle extra widening produced
39440 by vect_handle_widen_op_by_const.
39441 (vect_recog_widen_shift_pattern): Likewise.
39442 (vect_pattern_recog_1): Remove excess vertical space in dumping.
39443 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
39444 (vect_init_vector_1): Likewise.
39445 (vect_get_vec_def_for_operand): Likewise.
39446 (vect_finish_stmt_generation): Likewise.
39447 (vectorizable_load): Likewise.
39448 (vect_analyze_stmt): Likewise.
39449 (vect_is_simple_use): Likewise.
39451 2015-01-29 Jeff Law <law@redhat.com>
39453 * combine.c (try_combine): Fix typo in comment.
39455 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
39458 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
39459 (rs6000_stack_info): Add assert.
39460 (rs6000_output_savres_externs): New function, split off from...
39461 (rs6000_output_function_prologue): ... here. Do not call it for
39464 2015-01-29 Jeff Law <law@redhat.com>
39467 * combine.c (try_combine): If I0 is a memory load and I3 a store
39468 to a related address, increase the "goodness" of doing a 4-insn
39469 combination with I0-I3.
39470 (make_field_assignment): Handle SUBREGs in the ior+and case.
39472 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
39474 PR tree-optimization/64746
39475 * tree-if-conv.c (mask_exists): New function.
39476 (predicate_mem_writes): Save created mask with given size for further
39478 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
39479 (ifcvt_repair_bool_pattern): Collect all statements that are root
39480 of bool pattern and use iterative algorithm to remove multiple uses
39481 of predicates, display number of required iterations.
39483 2015-01-29 Richard Biener <rguenther@suse.de>
39485 PR tree-optimization/64853
39486 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
39487 stmt will get simulated again.
39488 * tree-ssa-ccp.c (valueize_op_1): Likewise.
39490 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
39492 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
39493 return_in_pc. Remove redundant assignments.
39494 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
39495 (arm_expand_epilogue): Don't compare boolean with true in if condition.
39497 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
39499 * config/i386/i386.c (ix86_mode_after): Make static.
39501 2015-01-29 Richard Biener <rguenther@suse.de>
39503 PR tree-optimization/64844
39504 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
39505 dump cost model analysis.
39506 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
39507 Do not register adjusted load/store costs here.
39509 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
39510 Uros Bizjak <ubizjak@gmail.com>
39512 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
39513 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
39514 using x86_use_pseudo_pic_reg.
39515 * config/i386/i386.c (ix86_conditional_register_usage): Remove
39516 support for fixed PIC register.
39517 (ix86_use_pseudo_pic_reg): Not static any more.
39519 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
39521 PR middle-end/64805
39522 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
39523 to avoid error in cgraph node verification.
39525 2015-01-29 Marek Polacek <polacek@redhat.com>
39527 * doc/standards.texi: Reflect that the default for C is gnu11.
39529 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
39532 * reorg.c (switch_text_sections_between_p): New function.
39533 (relax_delay_slots): Call it when testing if the jump insn
39534 is removable. Use targetm.can_follow_jump when testing if
39535 the conditional branch can follow an unconditional jump.
39537 2015-01-27 Caroline Tice <cmtice@google.com>
39539 Committing VTV Cywin/Ming patch for Patrick Wollgast
39540 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
39541 if -fvtable-verify=preinit/std is used.
39542 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
39543 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
39544 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
39545 if -fvtable-verify=preinit/std is used.
39546 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
39547 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
39548 if -fvtable-verify=preinit/std is used.
39549 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
39550 * config/i386/mingw32.h (LIB_SPEC): Likewise.
39551 * varasm.c (assemble_variable): Add code to properly set the comdat
39552 section and name for the .vtable_map_vars section in case the
39553 target is PE or COFF.
39555 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
39558 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
39559 make sane BB profile.
39560 (cgraph_node::expand_thunk): Make sane BB profile.
39561 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
39562 * cgraph.h (init_lowered_empty_function): Update prototype.
39563 * config/i386/i386.c (make_resolver_func): Update call.
39564 * predict.c (gate): Disable branch prediction pass if
39565 profile is already there.
39567 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
39569 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
39570 * opth-gen.awk: Likewise.
39571 * common.opt: Mark flag_fp_contract_mode as Optimization.
39573 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
39575 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
39576 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
39578 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
39581 * config/sh/predicates.md (atomic_arith_operand,
39582 atomic_logical_operand): Remove.
39583 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
39584 (atomic_arith_operand_0): New predicate.
39585 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
39586 Use atomic_arith_operand_0 for input values.
39587 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
39588 atomic_compare_and_swap<mode>_soft_gusa,
39589 atomic_compare_and_swap<mode>_soft_tcb,
39590 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
39591 arith_reg_operand instead of register_operand.
39592 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
39593 atomic_arith_operand_0 for newval input.
39594 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
39595 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
39596 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
39597 arith_reg_operand instead of register_operand.
39598 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
39599 fetchop_predicate_1, fetchop_constraint_1_llcs,
39600 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
39601 fetchop_constraint_1_imask): New code iterator attributes.
39602 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
39603 register_operand. Use fetchop_predicate_1.
39604 (atomic_fetch_<fetchop_name>si_hard,
39605 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
39606 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
39607 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
39608 and arith_reg_operand instead of register_operand. Use
39609 fetchop_predicate_1, fetchop_constraint_1_gusa.
39610 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
39611 and arith_reg_operand instead of register_operand. Use
39612 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
39614 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
39615 and arith_reg_operand instead of register_operand. Use
39616 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
39618 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
39619 register_operand. Use atomic_logical_operand_1.
39620 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
39621 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
39622 arith_reg_operand instead of register_operand.
39623 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
39624 Use arith_reg_dest and arith_reg_operand instead of register_operand.
39625 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
39626 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
39627 register_operand. Use fetchop_predicate_1.
39628 (atomic_<fetchop_name>_fetchsi_hard,
39629 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
39630 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
39631 fetchop_constraint_1_llcs.
39632 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
39633 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
39634 fetchop_constraint_1_gusa.
39635 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
39636 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
39637 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
39638 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
39639 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
39640 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
39641 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
39642 register_operand. Use atomic_logical_operand_1.
39643 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
39644 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
39645 arith_reg_operand instead of register_operand.
39646 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
39647 arith_reg_operand instead of register_operand. Use logical_operand
39648 and K08. Adjust asm sequence to allow R0 usage.
39649 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
39650 arith_reg_operand instead of register_operand. Use logical_operand
39653 2015-01-28 Jakub Jelinek <jakub@redhat.com>
39656 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
39657 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
39658 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
39659 only get_full_len HOST_WIDE_INTs from get_val () array rather than
39660 all bits in *val_wide.
39662 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
39664 * varpool.c (tls_model_names): Fix names.
39665 (varpool_node::dump): Dump tls- prefix for tls models.
39667 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
39668 Bernd Schmidt <bernds@codesourcery.com>
39669 Nathan Sidwell <nathan@codesourcery.com>
39671 * config/nvptx/mkoffload.c: New file.
39672 * config/nvptx/t-nvptx: Add build rules for it.
39673 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
39674 (extra_programs): Add mkoffload.
39675 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
39677 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
39679 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
39681 PR middle-end/64809
39682 * cfgexpand.c (reorder_operands): Skip debug gimples.
39684 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
39686 PR tree-optimization/64277
39687 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
39688 range info when possible to refine estimation.
39690 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
39692 PR tree-optimization/64718
39693 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
39694 be a 16bit unsigned integer when n->range is 16.
39695 (bswap_replace): Convert src to that type if necessary for all bswap
39696 sizes. Fix rotation right notation in nearby comment. Use bswap_type
39697 set in pass_optimize_bswap::execute ().
39699 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
39701 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
39702 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
39703 integer and floating point variants.
39704 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
39706 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
39708 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
39709 for all vector modes.
39711 2015-01-28 Jakub Jelinek <jakub@redhat.com>
39714 * doc/sourcebuild.texi (comdat_group): Document.
39716 2015-01-28 Terry Guo <terry.guo@arm.com>
39718 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
39720 2015-01-27 David Malcolm <dmalcolm@redhat.com>
39722 * toplev.c (print_version): Add param "show_global_state", and
39723 only print GGC and plugin information if it is true.
39724 (init_asm_output): Pass in "true" for the new param when calling
39726 (process_options): Likewise.
39727 (toplev::main): Likewise.
39728 * toplev.h (print_version): Add new param to decl.
39730 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
39734 * tree.c (lookup_binfo_at_offset): New function.
39735 (get_binfo_at_offset): Use it.
39737 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
39740 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
39741 on vtable being vtable.
39743 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
39745 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
39746 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
39747 -mhotpatch= option.
39748 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
39749 -mno-hotpatch options. Change syntax of -mhotpatch= option.
39750 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
39752 (s390_hotpatch_trampoline_halfwords_max): Renamed.
39753 (s390_hotpatch_hw_max): New name.
39754 (s390_hotpatch_trampoline_halfwords): Renamed.
39755 (s390_hotpatch_hw_before_label): New name.
39756 (get_hotpatch_attribute): Removed.
39757 (s390_hotpatch_hw_after_label): New name.
39758 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
39760 (s390_attribute_table): Ditto.
39761 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
39762 (s390_function_num_hotpatch_hw): New name.
39763 Remove special handling of inline functions and hotpatching.
39764 Return number of nops before and after the function label.
39765 (s390_can_inline_p): Removed.
39766 (s390_asm_output_function_label): Emit a configurable number of nops
39767 after the function label.
39768 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
39769 (TARGET_CAN_INLINE_P) Removed.
39770 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
39772 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
39773 Jiong Wang <jiong.wang@arm.com>
39775 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
39777 (cb<optab><mode>1): Likewise.
39778 * config/aarch64/iterators.md (bcond): New define_code_attr.
39780 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
39782 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
39785 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
39787 * config/s390/s390.c (s390_register_move_cost): Increase costs for
39790 2015-01-27 Richard Biener <rguenther@suse.de>
39792 * tree-vrp.c (update_value_range): Intersect the range with
39793 old recorded SSA name range information.
39795 2015-01-27 Nick Clifton <nickc@redhat.com>
39797 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
39798 BC, DE and HL registers directly, not via AX.
39799 When decrementing the stack pointer by a large amount, transfer SP
39800 into AX and perform the subtraction there.
39801 (rl78_expand_epilogue): Perform the inverse of the above
39804 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
39806 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
39808 2015-01-27 Jakub Jelinek <jakub@redhat.com>
39809 Yury Gribov <y.gribov@samsung.com>
39812 * ubsan.c (ubsan_source_location): Refactor code.
39813 (ubsan_type_descriptor): Update type size. Refactor code.
39815 2015-01-27 Richard Biener <rguenther@suse.de>
39817 PR tree-optimization/56273
39818 PR tree-optimization/59124
39819 PR tree-optimization/64277
39820 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
39821 from the first VRP pass.
39823 2015-01-27 Jakub Jelinek <jakub@redhat.com>
39826 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
39827 handle the first argument in the same loop as all the other arguments.
39829 PR rtl-optimization/61058
39830 * jump.c (cleanup_barriers): Update basic block boundaries
39831 if BLOCK_FOR_INSN is non-NULL on PREV.
39833 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
39835 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
39836 bounds narrowing, already instrumented calls and calls to
39837 not instrumentable functions.
39839 2015-01-27 Jakub Jelinek <jakub@redhat.com>
39841 PR tree-optimization/64807
39842 * wide-int.cc (wi::divmod_internal): Clear
39843 b_dividend[dividend_blocks_needed].
39845 2015-01-26 DJ Delorie <dj@redhat.com>
39847 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
39848 volatile memory references.
39850 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
39853 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
39855 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
39856 shifts if it already fits into K08.
39858 2015-01-26 Jakub Jelinek <jakub@redhat.com>
39861 * ipa-inline.c (inline_small_functions): Print "unknown" even
39862 if edge->call_stmt is non-NULL, but has builtins or unknown
39865 PR middle-end/64421
39866 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
39867 with asterisk, skip the first character.
39869 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
39872 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
39875 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
39878 * config/i386/i386.md (*movdi_internal): Also check operand 0
39879 to determine TYPE_LEA operand.
39880 (*movsi_internal): Ditto.
39882 2015-01-26 Jakub Jelinek <jakub@redhat.com>
39884 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
39885 OPTION_MASK_QUAD_MEMORY_ATOMIC.
39887 2015-01-26 Renlin Li <renlin.li@arm.com>
39889 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
39891 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
39894 2015-01-26 Richard Biener <rguenther@suse.de>
39896 PR middle-end/64764
39897 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
39898 combining two BIT_AND_EXPR predicates.
39900 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
39903 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
39905 2015-01-26 Terry Guo <terry.guo@arm.com>
39907 * config/arm/arm.c (arm_file_start): Update the assignment of
39908 Tag_ABI_HardFP_use.
39910 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
39912 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
39914 config/arm/arm.md: Include the new Cortex-A57 model.
39915 (generic_sched): Don't use generic_sched when tuning for
39918 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
39919 Uros Bizjak <ubizjak@gmail.com>
39921 * config/i386/i386.c (get_builtin_code_for_version): Add
39922 support for BMI and BMI2 multiversion functions.
39924 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
39926 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
39927 (extract_bit_field): Likewise.
39928 (extract_low_bits): Likewise.
39929 (expand_mult): Likewise.
39930 (expand_mult_highpart_adjust): Likewise.
39932 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
39934 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
39935 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
39936 * config/i386/i386.c (processor_model): Add
39937 M_INTEL_COREI7_BROADWELL.
39938 (arch_names_table): Add "broadwell".
39940 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
39949 * config/sh/sh-protos.h
39950 (sh_extending_set_of_reg::can_use_as_unextended_reg,
39951 sh_extending_set_of_reg::use_as_unextended_reg,
39952 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
39953 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
39954 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
39955 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
39956 (sh_treg_insns): New class.
39957 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
39958 (scope_counter): New class.
39959 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
39960 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
39961 sh_extending_set_of_reg::can_use_as_unextended_reg,
39962 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
39963 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
39964 sh_split_treg_set_expr): New functions.
39965 (addsubcosts): Handle treg_set_expr.
39966 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
39967 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
39968 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
39969 (sh_insn_operands_modified_between_p): Make non-static.
39970 * config/sh/predicates.md (zero_extend_movu_operand): Allow
39971 simple_mem_operand in addition to displacement_mem_operand.
39972 (zero_extend_operand): Don't allow zero_extend_movu_operand.
39973 (treg_set_expr, treg_set_expr_not_const01,
39974 arith_reg_or_treg_set_expr): New predicates.
39975 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
39976 arith_or_int_operand instead of logical_operand. Convert to
39977 insn_and_split. Try to optimize constant operand in splitter.
39978 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
39979 (*tstqi_t_zero): Delete.
39980 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
39981 (tstsi_t_and_not): Delete.
39982 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
39983 Convert to insn_and_split.
39984 (unnamed split, tstsi_t_zero_extract_xor,
39985 tstsi_t_zero_extract_subreg_xor_little,
39986 tstsi_t_zero_extract_subreg_xor_big): Delete.
39987 (*tstsi_t_shift_mask): New insn_and_split.
39988 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
39989 to recombine with surrounding insns when splitting.
39990 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
39991 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
39992 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
39993 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
39994 (*cbranch_div0s: Delete.
39995 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
39996 Try to recombine with surrounding insns when splitting. Add operand
39998 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
39999 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
40000 *addc_r_r_msb, *addc_2r_msb): Delete.
40001 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
40003 (*addc_negreg_t): New insn_and_split.
40004 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
40005 Try to recombine with surrounding insns when splitting.
40006 Add operand order variants.
40007 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
40008 insn_and_split patterns.
40009 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
40010 surrounding insns when splitting.
40011 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
40012 (*rotcl): Likewise. Add zero_extract variant.
40013 (*ashrsi2_31): New insn_and_split.
40014 (*negc): Convert to insn_and_split. Use treg_set_expr.
40015 (*zero_extend<mode>si2_disp_mem): Update comment.
40016 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
40018 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
40019 with surrounding insns when splitting.
40020 (any_treg_expr_to_reg): New insn_and_split.
40021 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
40022 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
40023 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
40024 *zero_extract_2): New single bit zero extract patterns.
40025 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
40026 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
40027 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
40028 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
40030 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
40031 register_operand for set source.
40033 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
40035 * i386.opt (prefetch_sse): New targetsave.
40036 * i386.c (ix86_function_specific_save): Save prefetch_sse.
40037 (ix86_function_specific_restore): Restore prefetch_sse and initialize
40038 ix86_cost/ix86_tune_cost.
40040 2015-01-23 David Malcolm <dmalcolm@redhat.com>
40042 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
40043 Support the JIT by using 0 as the language type.
40045 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
40048 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
40049 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
40050 (mark_regno_live, process_bb_lives): Pass new parameter value to
40051 make_hard_regno_born.
40053 2015-01-23 Jakub Jelinek <jakub@redhat.com>
40055 PR rtl-optimization/63637
40056 PR rtl-optimization/60663
40057 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
40058 if elt->cost is MAX_COST for ASM_OPERANDS.
40059 (find_sets_in_insn): Fix up comment typo.
40060 (cse_insn): Don't set src_volatile for all non-volatile
40061 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
40062 or with "memory" clobber. Set elt->cost to MAX_COST
40063 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
40064 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
40066 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
40068 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
40071 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
40073 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
40074 libgcc/config/i386/elf-lib.h.
40076 2015-01-23 Jakub Jelinek <jakub@redhat.com>
40079 * gcc.c (print_configuration): Don't print a blank line at the end
40081 (run_attempt): ... but here unstead.
40083 PR middle-end/64734
40084 * omp-low.c (scan_sharing_clauses): Don't ignore
40085 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
40086 on target data/update constructs.
40088 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
40091 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
40092 (DEBUG_RELOAD): Removed define.
40093 (m32c_limit_reload_class): Enable traces with if DEBUG0.
40094 (m32c_function_arg): Added a type cast.
40095 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
40096 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
40097 * config/m32c/bitops.md (andqi3_16): Likewise.
40098 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
40099 (push_a01_l): Likewise.
40101 2015-01-23 David Malcolm <dmalcolm@redhat.com>
40104 * main.c (main): Construct toplev instances with init_signals=true.
40105 * toplev.c (general_init): Add param "init_signals", and use it to
40106 conditionalize the calls to signal and host_hooks.extra_signals.
40107 (toplev::toplev): Add param "init_signals".
40108 (toplev::main): When invoking general_init, pass m_init_signals
40109 to control whether signal-handlers are installed.
40110 * toplev.h (toplev::toplev): Add param "init_signals".
40111 (toplev::m_init_signals): New field.
40113 2015-01-23 David Malcolm <dmalcolm@redhat.com>
40116 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
40117 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
40118 latter may be affected by the former (e.g. on i686).
40120 2015-01-23 Martin Liska <mliska@suse.cz>
40122 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
40123 false positive during profiledbootstrap.
40125 2015-01-23 Tom de Vries <tom@codesourcery.com>
40128 * lto-opts.c (lto_write_options): Output non-explicit conservative
40130 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
40131 (append_compiler_options): Pass -fopenacc through.
40133 2015-01-23 Tom de Vries <tom@codesourcery.com>
40136 * lto-opts.c (lto_write_options): Output non-explicit conservative
40138 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
40139 (append_compiler_options): Pass -fopenmp through.
40141 2015-01-23 Jakub Jelinek <jakub@redhat.com>
40144 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
40147 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
40148 * diagnostic.def (DK_ICE_NOBT): New kind.
40149 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
40150 like DK_ICE, but never print backtrace.
40151 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
40152 (internal_error_no_backtrace): New function.
40153 * gcc.c (execute): Use internal_error_no_backtrace instead of
40156 2015-01-22 Jeff Law <law@redhat.com>
40159 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
40160 improve code density for small immediate to memory case.
40161 (insv): Better handle bitfield assignments when the field is
40162 being set to all ones.
40163 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
40166 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
40167 Jakub Jelinek <jakub@redhat.com>
40169 PR middle-end/64729
40170 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
40171 for !TARGET_LIBC_PROVIDES_SSP version and
40172 -fstack-protector-{all,strong,explicit} otherwise.
40173 * config/freebsd.h (LINK_SSP_SPEC): Handle
40174 -fstack-protector-{strong,explicit}.
40176 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
40177 H.J. Lu <hongjiu.lu@intel.com>
40180 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
40183 2015-01-22 Wei Mi <wmi@google.com>
40185 PR rtl-optimization/64557
40186 * dse.c (record_store): Call get_addr for mem_addr.
40187 (check_mem_read_rtx): Likewise.
40189 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
40191 * fold-const.c (const_binop): Add early return for non-tcc_binary.
40193 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
40195 * toplev.c (init_local_tick): Process the failure when read
40196 fails for random_seed.
40198 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
40199 'pretty_name' to avoid memory overflow.
40201 2015-01-22 Richard Biener <rguenther@suse.de>
40203 PR middle-end/64728
40204 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
40205 abnormal coalescing on undefined SSA names.
40207 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
40211 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
40213 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
40215 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
40217 PR middle-end/63325
40218 * fold-const.c (fold_checksum_tree): Don't include value of
40219 expr->decl_with_vis.symtab_node in the checksum.
40221 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
40223 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
40225 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
40228 * gcc.c (insert_comments): New function.
40229 (try_generate_repro): Call it.
40230 (append_text): Removed.
40232 2015-01-22 Richard Biener <rguenther@suse.de>
40234 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
40235 with IL incompatible options. Properly honor user optimize
40238 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
40240 PR rtl-optimization/64682
40241 * combine.c (distribute_notes): When moving a death note for
40242 a register that is set in the new I2, make sure to put it
40243 before that new I2.
40245 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
40247 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
40248 not TARGET_DEFAULT.
40250 2015-01-21 Jakub Jelinek <jakub@redhat.com>
40253 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
40254 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
40255 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
40258 * doc/invoke.texi (-fsanitize=vptr): Document.
40260 PR rtl-optimization/62078
40261 * dse.c: Include cfgcleanup.h.
40262 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
40263 anything call purge_all_dead_edges and cleanup_cfg at the end
40266 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
40268 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
40271 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
40273 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
40276 2015-01-21 David Sherwood <david.sherwood@arm.com>
40277 Tejas Belagod <Tejas.Belagod@arm.com>
40279 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
40280 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
40281 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
40284 2015-01-21 David Sherwood <david.sherwood@arm.com>
40285 Tejas Belagod <Tejas.Belagod@arm.com>
40287 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
40288 (aarch64_reverse_mask): New decls.
40289 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
40290 (insn_count): New mode_attr.
40291 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
40292 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
40293 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
40294 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
40295 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
40296 (aarch64_simd_st4): New patterns.
40297 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
40298 (aarch64_reverse_mask): New functions.
40300 2015-01-21 Alan Hayward <alan.hayward@arm.com>
40302 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
40304 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
40305 addressing modes for BE.
40306 (aarch64_print_operand): Add 'R' specifier.
40307 (aarch64_simd_disambiguate_copy): Delete.
40308 (aarch64_simd_emit_reg_reg_move): New function.
40309 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
40310 in define_splits for structural moves.
40311 (mov<mode>): Use less restrictive predicates.
40312 (*aarch64_mov<mode>): Simplify and only allow for LE.
40313 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
40315 2015-01-21 Alan Hayward <alan.hayward@arm.com>
40317 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
40319 2015-01-21 Richard Henderson <rth@redhat.com>
40322 * ccmp.c (used_in_cond_stmt_p): Remove.
40323 (expand_ccmp_expr): Don't use it.
40325 2015-01-21 Nick Clifton <nickc@redhat.com>
40327 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
40330 2015-01-21 Richard Biener <rguenther@suse.de>
40332 PR middle-end/64313
40333 * tree-core.h (builtin_info, builtin_info_type): Turn from
40334 an object with two arrays into an array of an object with
40335 decl and two flags, implicit_p and declared_p.
40336 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
40337 set_builtin_decl, set_builtin_decl_implicit_p,
40338 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
40339 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
40340 * builtins.c (builtin_info): Adjust.
40341 * gimplify.c (gimplify_addr_expr): References to builtins
40342 that have been declared by the user makes them eligible for
40343 use by the compiler. Call set_builtin_decl_implicit_p on them.
40345 2015-01-20 Jeff Law <law@redhat.com>
40348 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
40349 allow pc-relative addresses in operand predicates or constraints.
40351 2015-01-21 Bin Cheng <bin.cheng@arm.com>
40353 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
40354 neon on aarch32 processors for stringops.
40356 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
40359 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
40361 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
40364 * ipa-inline.c: Include lto-streamer.h
40365 (report_inline_failed_reason): Output source file differences and
40366 flags on optimization/target node mismatch.
40367 (can_inline_edge_p): Consider caller to be the outer inline function;
40368 be less restrictive about matching opimize and optimize_size attributes.
40369 (inline_account_function_p): Break out from ...
40370 (inline_small_functions): ... here.
40371 * ipa-inline-transform.c (clone_inlined_nodes): Use
40372 inline_account_function_p.
40373 (inline_call): Use optimize attribution; use inline_account_function_p.
40374 (inline_transform): Use opt_for_fn.
40375 * ipa-inline.h (inline_account_function_p): Declare.
40377 2015-01-20 Jakub Jelinek <jakub@redhat.com>
40380 * dwarf2out.c (decl_piece_node): Don't put bitsize into
40381 mode if bitsize <= 0.
40382 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
40383 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
40384 sizes and positions.
40386 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
40388 * config/nios2/nios2.c (nios2_asm_file_end): Implement
40389 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
40391 (TARGET_ASM_FILE_END): Define.
40393 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
40395 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
40396 (struct tune_params): Use the enum.
40397 * arm.c (arm_*_tune): Update.
40398 (arm_option_override): Update.
40400 2015-01-20 Richard Biener <rguenther@suse.de>
40403 * ipa-reference.c (add_static_var): Inline ...
40404 (analyze_function): ... here after splitting out from ...
40405 (is_proper_for_analysis): ... this.
40407 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
40410 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
40411 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
40412 replace the conditional with it's true branch.
40413 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
40414 (arm_lra_p): Remove.
40416 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
40418 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
40420 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
40422 * config/tilegx/mul-tables.c: Move symtab.h include after
40423 coretypes.h include.
40424 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
40425 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
40426 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
40427 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
40428 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
40430 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
40434 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
40436 PR rtl-optimization/64081
40437 * loop-iv.c (def_pred_latch_p): New function.
40438 (latch_dominating_def): Allow specific cases with non-single
40440 (iv_get_reaching_def): Likewise.
40441 (check_complex_exit_p): New function.
40442 (check_simple_exit): Use check_complex_exit_p to allow certain cases
40443 with exits not executing on any iteration.
40445 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
40448 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
40449 to set branch cost.
40451 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
40454 * i386.c (gate): Check flag_expensive_optimizations and
40456 (ix86_option_override_internal): Drop optimize_size condition
40457 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
40458 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
40459 MASK_PREFER_AVX128.
40460 (ix86_avx256_split_vector_move_misalign,
40461 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
40462 * sse.md (all uses of TARGET_PREFER_AVX128): Add
40463 optimize_insn_for_speed_p check.
40465 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
40467 * config/mips/mips.h (FP_ASM_SPEC): New define.
40468 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
40471 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
40474 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
40475 nullptr for insn when reaching the first insn.
40476 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
40477 (sh_insn_operands_modified_between_p): Add nullptr check.
40478 (sh_find_extending_set_of_reg): Fix log message. Don't accept
40479 sign extending mem load if the insn contains any UNSPEC or
40482 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
40484 * params.def (inline-unit-growth): Drop to 15%.
40485 * invoke.texi (inline-unit-growth): Document change.
40487 2015-01-19 Martin Liska <mliska@suse.cz>
40490 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
40491 function for second argument of OBJ_TYPE_REF.
40493 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
40496 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
40497 whether function is an alias.
40499 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
40501 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
40504 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
40506 PR rtl-optimization/64671
40507 * lra-remat.c (operand_to_remat): Don't consider jump and call
40510 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
40513 * config/rs6000/default64.h: Include rs6000-cpus.def.
40514 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
40515 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
40516 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
40518 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
40520 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
40521 pseudo-op to specify assembler dialect.
40523 2015-01-19 Martin Liska <mliska@suse.cz>
40526 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
40527 Handle safe potentially removed nodes during filtering.
40529 2015-01-19 Martin Liska <mliska@suse.cz>
40531 * doc/extend.texi (no_icf): Add new attribute description.
40532 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
40533 where the pass attempts to merge a function with no_icf attribute.
40535 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
40538 * doc/md.texi (ARM Options): Document register constraints.
40540 2015-01-19 Jiong Wang <jiong.wang@arm.com>
40541 Andrew Pinski <apinski@cavium.com>
40544 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
40545 (ashl<mode>3): Don't expand if operands[2] is not constant.
40547 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40550 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
40551 Match xor-and-xor RTL pattern.
40553 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
40555 PR rtl-optimization/64081
40556 * loop-iv.c (def_pred_latch_p): New function.
40557 (latch_dominating_def): Allow specific cases with non-single
40559 (iv_get_reaching_def): Likewise.
40560 (check_complex_exit_p): New function.
40561 (check_simple_exit): Use check_complex_exit_p to allow certain cases
40562 with exits not executing on any iteration.
40564 2015-01-19 Jakub Jelinek <jakub@redhat.com>
40566 * common.opt (fgraphite): Fix a typo.
40568 2015-01-19 Felix Yang <felix.yang@huawei.com>
40570 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
40572 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
40573 uminp, smax_nanp, smin_nanp): New builtins.
40574 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
40575 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
40576 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
40577 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
40578 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
40579 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
40580 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
40581 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
40582 vpminnms_f32): Rewrite using builtin functions.
40584 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
40587 * omp-low.c (offload_symbol_decl): Remove variable.
40588 (get_offload_symbol_decl): Remove function.
40589 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
40590 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
40591 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
40592 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
40593 BUILT_IN_GOACC_UPDATE don't pass it at all.
40595 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
40597 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
40600 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
40602 * ipa-chkp.c (chkp_produce_thunks): Add early param
40603 to split thunks production into two passes. Keep
40604 'always_inline' function bodies after the first pass.
40605 (pass_data_ipa_chkp_early_produce_thunks): New.
40606 (pass_ipa_chkp_early_produce_thunks): New.
40607 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
40608 chkp_produce_thunks signature.
40609 (make_pass_ipa_chkp_early_produce_thunks): New.
40610 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
40611 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
40612 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
40614 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
40616 * cgraph.c (cgraph_node::dump): Dump profile flags.
40618 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
40621 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
40622 reg appear first in the parallel.
40624 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
40626 * ipa-reference.c (set_reference_optimization_summary,
40627 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
40629 (ignore_module_statics): New static var.
40630 (propagate_bits): If ipa-reference is disabled, do not look into local
40632 (analyze_function): Disable analysis when ipa_reference is disabled.
40633 (generate_summary): Do not dump when reference is disabled;
40634 collect vars accessed from functions with ipa-reference disabled.
40635 (get_read_write_all_from_node): When ipa-reference is disabled, use the
40637 (gate): Enable for LTO.
40638 (ignore_edge_p): New function.
40639 (propagate): Skip functions w/o ipa-reference analysis.
40640 * optc-save-gen.awk: Handle optimize_debug correctly.
40641 * opth-gen.awk: Likewise.
40642 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
40643 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
40644 fira-share-save-slots, fira-share-spill-slots,
40645 fmodulo-sched-allow-regmoves, fpartial-inlining,
40646 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
40647 ftracer, ftree-parallelize-loops, fassociative-math,
40648 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
40650 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
40651 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
40653 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
40656 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
40659 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
40661 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
40663 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
40665 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
40666 Remove duplicate option listings.
40668 2015-01-18 Felix Yang <felix.yang@huawei.com>
40670 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
40671 (autofdo_source_profile::get_callsite_total_count,
40672 function_instance::get_function_instance_by_decl,
40673 string_table::get_index, string_table::get_index_by_decl,
40674 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
40675 Fix comment typos. Reformatting and minor code rearrangement.
40677 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
40679 * config/rs6000/rs6000.md (probe_stack): Delete.
40680 (probe_stack_address): New.
40682 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
40684 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
40685 to test for 32-bit ABIs, not !TARGET_POWERPC64.
40687 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
40689 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
40690 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
40691 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
40693 (rs6000_libcall_value): Use the new function.
40695 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
40697 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
40699 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
40701 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
40702 implement a more precise life analysis for it during backward scan.
40704 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
40706 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
40708 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
40710 PR rtl-optimization/52773
40711 * calls.c (emit_library_call_value): When pushing arguments use
40712 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
40713 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
40714 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
40716 2015-01-17 Jeff Law <law@redhat.com>
40718 PR rtl-optimization/32790
40719 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
40720 not ZERO_EXTEND in SET_DESTs.
40722 2015-01-17 Alan Modra <amodra@gmail.com>
40724 * cprop.c (do_local_cprop): Revert last change.
40726 2015-01-16 DJ Delorie <dj@redhat.com>
40727 Nick Clifton <nickc@redhat.com>
40729 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
40730 (addhi3_real): Likewise. Fix [HL+0] syntax.
40731 (subqi3_real): Likewise.
40732 (subhi3_real): Likewise.
40733 (cbranchqi4_real): Likewise. Allow saddr,#imm.
40734 (cbranchhi4_real): Likewise.
40735 (cbranchhi4_real_inverted): Likewise.
40736 (cbranchsi4_real_lt): Likewise.
40737 (cbranchsi4_real_ge): Likewise.
40738 (cbranchsi4_real_ge): Likewise.
40739 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
40740 (sub<mode>3_virt): Likewise.
40741 (cbranchqi4_virt): Likewise.
40742 (cbranchhi4_virt): Likewise.
40743 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
40744 always use '[reg+imm]' even when imm is zero.
40745 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
40746 (rl78_general_operand): New.
40747 (rl78_nonimmediate_operand): New.
40748 (rl78_nonfar_operand): Use them.
40749 (rl78_nonfar_nonimm_operand): Likewise.
40750 (rl78_stack_based_mem): Fix.
40751 * config/rl78/constraints.md (Ibqi): New.
40756 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
40757 (iorqi3): Likewise.
40758 (xorqi3): Likewise.
40759 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
40761 * config/rl78/constrains (Qs8): New constraint.
40762 * config/rl78/rl78.c (rl78_flags_already_set): New function.
40763 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
40764 * config/rl78/rl78-real.md (update_Z): New attribute.
40765 Update patterns to set it.
40766 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
40767 shorter compare and branch sequence can be used.
40768 (cbranchhi4_real): Likewise.
40769 (cbranchhi4_real_inverted): Likewise.
40771 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
40772 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
40774 * config/rl78/rl78.c (rl78_get_name_encoding): New.
40775 (rl78_option_override): Allow -mes0 only if C.
40776 (characterize_address): Support subregs of symbol_refs.
40777 (rl78_addr_space_address_mode): Move. Add __near.
40778 (rl78_far_p): Likewise.
40779 (rl78_addr_space_pointer_mode): Likewise.
40780 (rl78_as_legitimate_address): Likewise.
40781 (rl78_addr_space_subset_p): Likewise.
40782 (rl78_addr_space_convert): Likewise.
40783 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
40784 symbols with -mes0.
40785 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
40787 (rl78_alloc_physical_registers_op1): Change logic to prefer
40788 symbol[BC] addressing.
40789 (frodata_section): New.
40790 (rl78_asm_init_sections): Initialize it.
40791 (rl78_select_section): Put __far readonly symbols in .frodata.
40792 (rl78_make_type_far): New.
40793 (rl78_insert_attributes): Force all readonly symbols to be
40795 (rl78_asm_out_integer): New.
40796 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
40797 * config/rl78/rl78.opt (-mes0): New.
40799 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
40800 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
40801 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
40802 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
40803 (rl78_saddr_p): New.
40804 (rl78_output_aligned_common): New.
40805 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
40806 (rl78_handle_saddr_attribute): New.
40807 (rl78_handle_naked_attribute): New.
40808 (rl78_attribute_table): Add saddr.
40809 (rl78_print_operand_1): Don't print '!' on saddr operands.
40810 (rl78_print_operand_1): Strip encodings.
40812 (rl78_strip_name_encoding): New.
40813 (rl78_attrlist_to_encoding): New.
40814 (rl78_encode_section_info): New.
40815 (rl78_asm_init_sections): New.
40816 (rl78_select_section): New.
40817 (rl78_output_labelref): New.
40818 (rl78_output_aligned_common): New.
40819 (rl78_asm_out_integer): New.
40820 (rl78_asm_ctor_dtor): New.
40821 (rl78_asm_constructor): New.
40822 (rl78_asm_destructor): New.
40824 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
40825 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
40826 (transcode_memory_rtx): Update.
40827 (rl78_expand_epilogue): Use A_REG instead of 0.
40829 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
40831 * config/arm/arm-protos.h (struct tune_params): New field
40832 sched_autopref_queue_depth.
40833 * config/arm/arm.c (sched-int.h): Include header.
40834 (arm_first_cycle_multipass_dfa_lookahead_guard,)
40835 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
40836 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
40837 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
40838 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
40839 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
40840 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
40841 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
40842 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
40843 * config/arm/t-arm (arm.o): Update.
40844 * haifa-sched.c (update_insn_after_change): Update.
40845 (rank_for_schedule): Use auto-prefetcher model, if requested.
40846 (autopref_multipass_init): New static function.
40847 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
40848 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
40849 variable for debug dumps.
40850 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
40851 (autopref_multipass_dfa_lookahead_guard): New global function that
40852 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
40853 (init_h_i_d): Update.
40854 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
40855 * sched-int.h (enum autopref_multipass_data_status): New const enum.
40856 (autopref_multipass_data_): Structure for auto-prefetcher data.
40857 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
40858 (struct _haifa_insn_data:autopref_multipass_data): New field.
40859 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
40860 (autopref_multipass_dfa_lookahead_guard): Declare.
40862 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
40864 * rtlanal.c (get_base_term): Handle SCRATCH.
40866 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
40868 * config/aarch64/aarch64.c
40869 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
40870 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
40872 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
40873 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
40875 2015-01-17 Alan Modra <amodra@gmail.com>
40877 * cprop.c (do_local_cprop): Disallow replacement of fixed
40880 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40883 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
40886 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
40888 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
40889 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
40891 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40893 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
40894 * config/arm/thumb1.md: ... Here.
40896 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
40898 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
40899 TImode for TARGET_32BIT.
40901 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
40903 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
40904 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
40906 (rs6000_abi_word_mode): New function.
40908 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
40910 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
40911 instead of UNITS_PER_WORD to describe the size of stack slots.
40913 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
40915 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
40916 as rs6000_promote_function_mode. Move comment to there.
40917 (rs6000_promote_function_mode): New function.
40919 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
40921 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
40922 -mpowerpc64 is active.
40924 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
40926 PR middle-end/64353
40927 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
40930 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
40932 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
40933 introduced in revision 219724.
40935 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40936 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
40939 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
40940 destination is not a GP reg.
40941 (*movdi_aarch64): Likewise.
40943 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
40946 * config/rs6000/default64.h: Revert ISA change.
40948 2015-01-16 Richard Biener <rguenther@suse.de>
40950 PR middle-end/64614
40951 * tree-ssa-uninit.c: Include tree-cfg.h.
40952 (MAX_SWITCH_CASES): New define.
40953 (convert_control_dep_chain_into_preds): Handle switch statements.
40954 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
40955 (normalize_one_pred_1): Do not split bit-manipulations.
40958 2015-01-16 Richard Biener <rguenther@suse.de>
40960 PR tree-optimization/64568
40961 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
40962 complex load rewriting for TARGET_MEM_REFs.
40964 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
40966 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
40968 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
40971 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
40973 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
40974 (aarch64_lra_p): Remove.
40976 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
40979 * ipa-chkp.h (chkp_instrumentable_p): New.
40980 * ipa-chkp.c: Include tree-inline.h.
40981 (chkp_instrumentable_p): New.
40982 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
40983 Fix processing of not instrumentable functions.
40984 (chkp_versioning): Use chkp_instrumentable_p. Warn about
40985 not instrumentable functions.
40986 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
40987 chkp_instrumentable_p.
40988 * tree-inline.h (copy_forbidden): New.
40989 * tree-inline.c (copy_forbidden): Not static anymore.
40991 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
40993 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
40996 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
40998 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
40999 type OP_OUT to OP_INOUT.
41001 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
41003 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
41004 (high x) y) to y if x and y have the same base.
41006 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
41008 * config/arm/cortex-a57.md: New.
41009 * config/aarch64/aarch64.md: Include it.
41010 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
41011 * config/aarch64/aarch64-tune.md: Regenerate.
41013 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
41016 * ccmp.c (expand_ccmp_next): New function.
41017 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
41018 and compare insn sequence.
41019 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
41020 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
41021 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
41022 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
41023 (*ccmp_ior): Changed to ccmp_ior<mode>.
41024 (cmp<mode>): New pattern.
41025 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
41027 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
41029 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
41031 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
41032 _mm256_bsrli_epi128): New.
41033 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
41035 2015-01-15 Jiong Wang <jiong.wang@arm.com>
41037 * expmed.c (store_bit_field_using_insv): Improve warning message.
41038 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
41040 2015-01-15 Jiong Wang <jiong.wang@arm.com>
41042 PR rtl-optimization/64011
41043 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
41044 there is partial overflow.
41046 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
41048 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
41050 (nds32_expand_epilogue_v3pop): Likewise.
41051 * config/nds32/nds32.md (sibcall): Define this for sibling call
41053 (sibcall_register): Likewise.
41054 (sibcall_immediate): Likewise.
41055 (sibcall_value): Likewise.
41056 (sibcall_value_register): Likewise.
41057 (sibcall_value_immediate): Likewise.
41058 (sibcall_epilogue): Likewise.
41059 (epilogue): Pass false to indicate this is not a sibcall epilogue.
41060 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
41061 (nds32_expand_epilogue_v3pop): Likewise.
41063 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
41065 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
41066 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
41067 (return_internal): New.
41068 (return): Define this named pattern.
41069 (simple_return): Define this named pattern.
41070 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
41071 pattern instead of unspec_volatile_func_return.
41072 (nds32_expand_epilogue_v3pop): Likewise.
41073 (nds32_can_use_return_insn): New function.
41075 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
41077 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
41078 * config/nds32/nds32.md (pop25return): New.
41079 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
41080 pop25return pattern.
41082 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
41084 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
41085 -mforbid-fp-as-gp, and -mex9 options.
41087 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
41089 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
41090 remove -mgp-direct option.
41092 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
41094 * doc/invoke.texi (--param early-inlining-insns): Update default value.
41095 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
41097 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
41099 * ipa-inline.c (inline_small_functions): Work around hints
41102 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
41105 * doc/invoke.texi (Option Summary): Document new Nios II
41107 (Nios II Options): Likewise.
41108 * config/nios2/nios2.opt: Add -mgpopt= option support.
41109 Modify existing -mgpopt and -mno-gpopt options to be aliases.
41110 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
41111 * config/nios2/nios2.c (nios2_option_override): Adjust
41112 -mgpopt defaulting.
41113 (nios2_in_small_data_p): Return true for explicit small data
41114 sections even with -G0.
41115 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
41118 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
41121 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
41123 (inline_call): Fix removal of aliases.
41125 2015-01-15 Jakub Jelinek <jakub@redhat.com>
41127 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
41128 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
41129 * opts.c (common_handle_option): Add -fsanitize=vptr.
41130 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
41131 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
41132 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
41133 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
41134 (ubsan_expand_vptr_ifn): New prototype.
41135 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
41136 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
41137 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
41138 expand_LOOP_VECTORIZED): Make argument nameless, remove
41140 (expand_UBSAN_VPTR): New function.
41141 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
41143 (UBSAN_VPTR): New internal function.
41144 * sanopt.c (tree_map_traits): Renamed to ...
41145 (sanopt_tree_map_traits): ... this.
41146 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
41147 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
41148 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
41149 (maybe_optimize_ubsan_vptr_ifn): New function.
41150 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
41151 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
41153 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
41154 internal calls like pure functions for aliasing, even when they
41155 have other side-effects that prevent making them ECF_PURE.
41156 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
41157 (ubsan_expand_vptr_ifn): New function.
41159 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
41161 PR rtl-optimization/64110
41162 * stmt.c (parse_output_constraint): Process '^' and '$'.
41163 (parse_input_constraint): Ditto.
41164 * lra-constraints.c (process_alt_operands): Process the new
41166 * ira-costs.c (record_reg_classes): Process the new constraint
41168 * genoutput.c (indep_constraints): Add '^' and '$'.
41169 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
41170 * doc/md.texi: Add description of the new constraints.
41172 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
41173 Bernd Schmidt <bernds@codesourcery.com>
41174 Cesar Philippidis <cesar@codesourcery.com>
41175 James Norris <jnorris@codesourcery.com>
41176 Tom de Vries <tom@codesourcery.com>
41177 Ilmir Usmanov <i.usmanov@samsung.com>
41178 Dmitry Bocharnikov <dmitry.b@samsung.com>
41179 Evgeny Gavrin <e.gavrin@samsung.com>
41180 Jakub Jelinek <jakub@redhat.com>
41182 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
41183 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
41184 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
41185 New function types.
41186 * builtins.c: Include "gomp-constants.h".
41187 (expand_builtin_acc_on_device): New function.
41188 (expand_builtin, is_inexpensive_builtin): Handle
41189 BUILT_IN_ACC_ON_DEVICE.
41190 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
41192 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
41194 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
41195 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
41196 i386/intelmic-offload.h.
41197 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
41198 to libgomp and its dependencies.
41199 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
41200 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
41201 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
41202 * config/ia64/hpux.h (LIB_SPEC): Likewise.
41203 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
41204 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
41205 * doc/generic.texi: Update for OpenACC changes.
41206 * doc/gimple.texi: Likewise.
41207 * doc/invoke.texi: Likewise.
41208 * doc/sourcebuild.texi: Likewise.
41209 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
41210 GF_OMP_FOR_KIND_OACC_LOOP.
41211 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
41212 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
41213 GF_OMP_TARGET_KIND_OACC_UPDATE,
41214 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
41216 * gimple.c: Update comments for OpenACC changes.
41217 * gimple.def: Likewise.
41218 * gimple.h: Likewise.
41219 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
41220 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
41221 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
41222 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
41223 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
41225 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
41226 * gimplify.c: Include "gomp-constants.h".
41227 Update comments for OpenACC changes.
41228 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
41229 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
41230 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
41231 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
41232 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
41233 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
41234 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
41235 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
41236 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
41238 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
41239 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
41240 OMP_CLAUSE_SET_MAP_KIND.
41241 (gimplify_oacc_cache): New function.
41242 (gimplify_omp_for): Handle OACC_LOOP.
41243 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
41245 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
41246 OACC_EXIT_DATA, OACC_UPDATE.
41247 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
41248 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
41249 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
41250 (gimplify_body): Consider flag_openacc next to flag_openmp.
41251 * lto-streamer-out.c: Include "gomp-constants.h".
41252 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
41253 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
41254 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
41255 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
41256 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
41257 (BUILT_IN_ACC_ON_DEVICE): New builtins.
41258 * omp-low.c: Include "gomp-constants.h".
41259 Update comments for OpenACC changes.
41260 (struct omp_context): Add reduction_map, gwv_below, gwv_this
41262 (extract_omp_for_data, use_pointer_for_field, install_var_field)
41263 (new_omp_context, delete_omp_context, scan_sharing_clauses)
41264 (create_omp_child_function, scan_omp_for, scan_omp_target)
41265 (check_omp_nesting_restrictions, lower_reduction_clauses)
41266 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
41267 Update for OpenACC changes.
41268 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
41269 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
41270 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
41271 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
41272 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
41273 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
41275 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
41276 Handle GF_OMP_FOR_KIND_OACC_LOOP.
41277 (expand_omp_target, lower_omp_target): Handle
41278 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
41279 GF_OMP_TARGET_KIND_OACC_UPDATE,
41280 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
41281 GF_OMP_TARGET_KIND_OACC_DATA.
41282 (pass_expand_omp::execute, execute_lower_omp)
41283 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
41285 (offload_symbol_decl): New variable.
41286 (oacc_get_reduction_array_id, oacc_max_threads)
41287 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
41288 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
41289 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
41290 (oacc_gimple_assign, oacc_initialize_reduction_data)
41291 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
41293 (is_targetreg_ctx): Remove function.
41294 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
41295 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
41296 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
41297 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
41298 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
41299 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
41300 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
41301 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
41302 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
41303 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
41304 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
41305 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
41306 * tree-core.h: Update comments for OpenACC changes.
41307 (enum omp_clause_map_kind): Remove.
41308 (struct tree_omp_clause): Change type of map_kind member from enum
41309 omp_clause_map_kind to unsigned char.
41310 * tree-inline.c: Update comments for OpenACC changes.
41311 * tree-nested.c: Likewise. Include "gomp-constants.h".
41312 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
41313 (convert_tramp_reference_stmt, convert_gimple_call): Update for
41314 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
41315 OMP_CLAUSE_SET_MAP_KIND.
41316 * tree-pretty-print.c: Include "gomp-constants.h".
41317 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
41318 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
41319 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
41320 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
41321 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
41322 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
41323 instead of OMP_CLAUSE_MAP_*.
41324 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
41325 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
41326 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
41327 * tree-streamer-in.c: Include "gomp-constants.h".
41328 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
41329 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
41330 * tree-streamer-out.c: Include "gomp-constants.h".
41331 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
41333 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
41334 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
41335 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
41336 * tree.c (omp_clause_num_ops): Update accordingly.
41337 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
41339 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
41340 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
41341 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
41342 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
41343 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
41344 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
41345 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
41346 (OMP_CLAUSE_SET_MAP_KIND): New macro.
41347 * varpool.c (varpool_node::get_create): Consider flag_openacc next
41349 * config/i386/intelmic-offload.h: New file.
41350 * config/nvptx/offload.h: Likewise.
41352 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
41354 * explow.h: Remove duplicate contents.
41355 * dojump.h: Likewise.
41357 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
41359 * arm.c (arm_xgene_tune): Add default initializer for instruction
41362 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
41366 * ipa.c (symbol_table::remove_unreachable_nodes):
41367 Do not put abstract origins into boundary.
41369 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
41371 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
41372 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
41374 2015-01-15 Steve Ellcey <sellcey@mips.com>
41376 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
41377 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
41378 builtins.def, and chkp-builtins.def.
41380 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
41382 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
41385 2015-01-15 Richard Biener <rguenther@suse.de>
41387 PR tree-optimization/61743
41388 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
41389 information on PHIs for some simple cases.
41391 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
41393 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
41395 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
41396 * config/arm/arm-cores.def (xgene1): New entry.
41397 * config/arm/arm-tables.opt: Regenerate.
41398 * config/arm/arm-tune.md: Regenerate.
41399 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
41401 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
41403 * tree-if-conv.c: Include hash-map.h.
41404 (aggressive_if_conv): New variable.
41405 (fold_build_cond_expr): Add simplification of non-zero condition.
41406 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
41407 destination block is not always executed.
41408 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
41409 than two predecessors if AGGRESSIVE_IF_CONV is true.
41410 (if_convertible_stmt_p): Fix commentary.
41411 (all_preds_critical_p): New function.
41412 (has_pred_critical_p): New function.
41413 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
41414 BB can have more than two predecessors and all incoming edges can be
41416 (predicate_bbs): Skip predication for loop exit block, use build2_loc
41417 to compute predicate for true edge.
41418 (find_phi_replacement_condition): Delete this function.
41419 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
41420 Allow interchange PHI arguments if EXTENDED is false.
41421 Change check that block containing reduction statement candidate
41422 is predecessor of phi-block since phi may have more than two arguments.
41423 (phi_args_hash_traits): New helper structure.
41424 (struct phi_args_hash_traits): New type.
41425 (phi_args_hash_traits::hash): New function.
41426 (phi_args_hash_traits::equal_keys): New function.
41427 (gen_phi_arg_condition): New function.
41428 (predicate_scalar_phi): Add handling of phi nodes with more than two
41429 arguments, delete COND and TRUE_BB arguments, insert body of
41430 find_phi_replacement_condition to predicate ordinary phi nodes.
41431 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
41432 delete call of find_phi_replacement_condition and invoke
41433 predicate_scalar_phi with two arguments.
41434 (insert_gimplified_predicates): Add assert that non-predicated block
41435 don't have statements to insert.
41436 (ifcvt_split_critical_edges): New function.
41437 (ifcvt_split_def_stmt): Likewise.
41438 (ifcvt_walk_pattern_tree): Likewise.
41439 (stmt_is_root_of_bool_pattern): Likewise.
41440 (ifcvt_repair_bool_pattern): Likewise.
41441 (ifcvt_local_dce): Likewise.
41442 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
41443 is copy of inner or outer loop force_vectorize field, invoke
41444 ifcvt_split_critical_edges, ifcvt_local_dce and
41445 ifcvt_repair_bool_pattern for aggressive if-conversion.
41447 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
41449 * config/aarch64/aarch64.md: Include xgene1.md.
41450 * config/aarch64/xgene1.md: New file.
41452 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
41454 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
41455 xgene1 (APM XGene-1) core definition.
41456 * config/aarch64/aarch64.c: Add cost tables for APM XGene-1
41457 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
41458 * doc/invoke.texi: Document -mcpu=xgene1.
41460 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
41462 * dojump.h: New header file.
41463 * explow.h: Likewise.
41464 * expr.h: Remove includes.
41465 Move expmed.c prototypes to expmed.h.
41466 Move dojump.c prototypes to dojump.h.
41467 Move alias.c prototypes to alias.h.
41468 Move explow.c prototypes to explow.h.
41469 Move calls.c prototypes to calls.h.
41470 Move emit-rtl.c prototypes to emit-rtl.h.
41471 Move varasm.c prototypes to varasm.h.
41472 Move stmt.c prototypes to stmt.h.
41473 (saved_pending_stack_adjust): Move to dojump.h.
41474 (adjust_address): Move to explow.h.
41475 (adjust_address_nv): Move to emit-rtl.h.
41476 (adjust_bitfield_address): Likewise.
41477 (adjust_bitfield_address_size): Likewise.
41478 (adjust_bitfield_address_nv): Likewise.
41479 (adjust_automodify_address_nv): Likewise.
41480 * explow.c (expr_size): Move to expr.c.
41481 (int_expr_size): Likewise.
41482 (tree_expr_size): Likewise.
41483 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41484 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
41485 * genemit.c (main): Generate includes statistics.h, real.h,
41486 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
41488 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
41489 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
41490 explow.h, emit-rtl.h, stmt.h.
41491 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
41492 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
41493 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
41494 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
41495 emit-rtl.h, varasm.h, stmt.h.
41496 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
41497 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
41498 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
41499 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
41500 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
41501 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
41502 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
41503 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
41504 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
41505 tm.h tree.h varasm.h vec.h wide-int.h.
41506 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
41507 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
41508 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
41509 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
41510 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
41511 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
41512 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
41513 * loop-iv.c: Likewise.
41514 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
41515 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
41516 statistics.h stmt.h tree.h varasm.h wide-int.h.
41517 * lra-constraints.c: Likewise.
41518 * lra-eliminations.c: Likewise.
41519 * lra-lives.c: Likewise.
41520 * lra-remat.c: Likewise.
41521 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
41522 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
41523 statistics.h stmt.h tree.h varasm.h wide-int.h.
41524 * hw-doloop.c: Likewise.
41525 * ira-color.c: Likewise.
41526 * ira-emit.c: Likewise.
41527 * loop-doloop.c: Likewise.
41528 * loop-invariant.c: Likewise.
41529 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
41530 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
41531 statistics.h stmt.h tree.h varasm.h wide-int.h.
41532 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
41533 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
41534 statistics.h stmt.h tree.h varasm.h wide-int.h.
41535 * combine-stack-adj.c: Likewise.
41538 * ifcvt.c: Likewise.
41539 * ira-costs.c: Likewise.
41540 * jump.c: Likewise.
41541 * lra-coalesce.c: Likewise.
41542 * lra-spills.c: Likewise.
41543 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
41544 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
41545 stmt.h varasm.h wide-int.h.
41546 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
41547 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
41549 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
41550 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
41551 statistics.h stmt.h varasm.h wide-int.h.
41552 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
41553 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
41554 varasm.h wide-int.h.
41555 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
41556 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
41557 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
41558 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
41559 statistics.h stmt.h.
41560 * config/tilepro/tilepro.c: Likewise.
41561 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
41562 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
41563 * config/pdp11/pdp11.c: Likewise.
41564 * config/xtensa/xtensa.c: Likewise.
41565 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
41566 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
41568 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41569 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
41570 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
41571 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41572 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
41573 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
41574 * rtl-chkp.c: Likewise.
41575 * tree-chkp-opt.c: Likewise.
41576 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
41577 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
41578 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
41579 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41580 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
41581 statistics.h stmt.h.
41582 * tree-vect-data-refs.c: Likewise.
41583 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
41584 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
41585 rtl.h statistics.h stmt.h varasm.h.
41586 * internal-fn.c: Likewise.
41587 * ipa-icf-gimple.c: Likewise.
41588 * lto-section-out.c: Likewise.
41589 * tree-data-ref.c: Likewise.
41590 * tree-nested.c: Likewise.
41591 * tree-outof-ssa.c: Likewise.
41592 * tree-predcom.c: Likewise.
41593 * tree-pretty-print.c: Likewise.
41594 * tree-scalar-evolution.c: Likewise.
41595 * tree-ssa-strlen.c: Likewise.
41596 * tree-vect-loop.c: Likewise.
41597 * tree-vect-patterns.c: Likewise.
41598 * tree-vect-slp.c: Likewise.
41599 * tree-vect-stmts.c: Likewise.
41600 * tsan.c: Likewise.
41601 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41602 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
41604 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
41605 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
41606 statistics.h stmt.h varasm.h.
41607 * loop-unroll.c: Likewise.
41608 * ubsan.c: Likewise.
41609 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
41610 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
41612 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41613 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
41614 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
41615 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
41616 statistics.h stmt.h.
41617 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
41618 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
41619 statistics.h stmt.h varasm.h.
41620 * gimple-match-head.c: Likewise.
41621 * lto-cgraph.c: Likewise.
41622 * lto-section-in.c: Likewise.
41623 * lto-streamer-in.c: Likewise.
41624 * lto-streamer-out.c: Likewise.
41625 * tree-affine.c: Likewise.
41626 * tree-cfg.c: Likewise.
41627 * tree-cfgcleanup.c: Likewise.
41628 * tree-if-conv.c: Likewise.
41629 * tree-into-ssa.c: Likewise.
41630 * tree-ssa-alias.c: Likewise.
41631 * tree-ssa-copyrename.c: Likewise.
41632 * tree-ssa-dse.c: Likewise.
41633 * tree-ssa-forwprop.c: Likewise.
41634 * tree-ssa-live.c: Likewise.
41635 * tree-ssa-math-opts.c: Likewise.
41636 * tree-ssa-pre.c: Likewise.
41637 * tree-ssa-sccvn.c: Likewise.
41638 * tree-tailcall.c: Likewise.
41639 * tree-vect-generic.c: Likewise.
41640 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41641 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
41642 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41643 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
41644 * varasm.c: Likewise.
41645 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41646 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
41648 * init-regs.c: Likewise.
41650 * omp-low.c: Likewise.
41651 * stack-ptr-mod.c: Likewise.
41652 * tree-ssa-reassoc.c: Likewise.
41653 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41654 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
41656 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41657 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
41658 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41659 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
41660 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41661 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
41662 * tree-ssa-phiopt.c: Likewise.
41663 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41664 fixed-value.h hashtab.h real.h statistics.h stmt.h.
41665 * config/fr30/fr30.c: Likewise.
41666 * config/frv/frv.c: Likewise.
41667 * expr.c: Likewise.
41668 * final.c: Likewise.
41669 * optabs.c: Likewise.
41670 * passes.c: Likewise.
41671 * simplify-rtx.c: Likewise.
41672 * stmt.c: Likewise.
41673 * toplev.c: Likewise.
41674 * var-tracking.c: Likewise.
41675 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41676 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
41677 * lower-subreg.c: Likewise.
41678 * postreload-gcse.c: Likewise.
41680 * reginfo.c: Likewise.
41681 * store-motion.c: Likewise.
41682 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41683 fixed-value.h hashtab.h real.h stmt.h varasm.h.
41684 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41685 fixed-value.h hashtab.h statistics.h stmt.h.
41686 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41687 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
41688 * except.c: Likewise.
41689 * explow.c: Likewise.
41690 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41691 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
41693 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41694 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
41695 * tree-ssa-structalias.c: Likewise.
41696 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41697 fixed-value.h insn-config.h real.h statistics.h.
41698 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41699 fixed-value.h insn-config.h real.h statistics.h stmt.h.
41700 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41701 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
41702 * cfgbuild.c: Likewise.
41703 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41704 fixed-value.h real.h rtl.h statistics.h stmt.h.
41705 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41706 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
41707 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41708 fixed-value.h real.h statistics.h stmt.h.
41709 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41710 fixed-value.h real.h statistics.h stmt.h varasm.h.
41711 * cprop.c: Likewise.
41712 * modulo-sched.c: Likewise.
41713 * postreload.c: Likewise.
41714 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
41715 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
41716 statistics.h stmt.h varasm.h.
41717 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
41718 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
41719 rtl.h statistics.h stmt.h varasm.h.
41720 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
41721 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
41723 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
41724 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
41726 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
41727 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
41729 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
41730 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
41731 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
41732 function.h real.h statistics.h stmt.h varasm.h.
41733 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
41734 insn-config.h real.h statistics.h stmt.h.
41735 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
41736 statistics.h stmt.h.
41737 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
41738 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
41739 statistics.h stmt.h varasm.h.
41740 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
41741 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
41742 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
41743 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
41744 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
41745 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
41746 statistics.h stmt.h varasm.h.
41747 * ipa-polymorphic-call.c: Likewise.
41748 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
41749 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
41750 statistics.h stmt.h.
41751 * config/c6x/c6x.c: Likewise.
41752 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
41753 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
41754 statistics.h stmt.h varasm.h.
41755 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
41756 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
41758 * ipa-split.c: Likewise.
41759 * tree-eh.c: Likewise.
41760 * tree-ssa-dce.c: Likewise.
41761 * tree-ssa-loop-niter.c: Likewise.
41762 * tree-vrp.c: Likewise.
41763 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
41764 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
41766 * config/nds32/nds32-fp-as-gp.c: Likewise.
41767 * config/nds32/nds32-intrinsic.c: Likewise.
41768 * config/nds32/nds32-isr.c: Likewise.
41769 * config/nds32/nds32-md-auxiliary.c: Likewise.
41770 * config/nds32/nds32-memory-manipulation.c: Likewise.
41771 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
41772 * config/nds32/nds32-predicates.c: Likewise.
41773 * config/nds32/nds32.c: Likewise.
41774 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
41775 fixed-value.h hashtab.h real.h statistics.h.
41776 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
41777 fixed-value.h hashtab.h real.h statistics.h stmt.h.
41778 * config/arm/arm.c: Likewise.
41779 * config/avr/avr.c: Likewise.
41780 * config/bfin/bfin.c: Likewise.
41781 * config/h8300/h8300.c: Likewise.
41782 * config/i386/i386.c: Likewise.
41783 * config/ia64/ia64.c: Likewise.
41784 * config/iq2000/iq2000.c: Likewise.
41785 * config/m32c/m32c.c: Likewise.
41786 * config/m32r/m32r.c: Likewise.
41787 * config/m68k/m68k.c: Likewise.
41788 * config/mcore/mcore.c: Likewise.
41789 * config/mep/mep.c: Likewise.
41790 * config/mips/mips.c: Likewise.
41791 * config/mn10300/mn10300.c: Likewise.
41792 * config/moxie/moxie.c: Likewise.
41793 * config/pa/pa.c: Likewise.
41794 * config/rl78/rl78.c: Likewise.
41795 * config/rx/rx.c: Likewise.
41796 * config/s390/s390.c: Likewise.
41797 * config/sh/sh.c: Likewise.
41798 * config/sparc/sparc.c: Likewise.
41799 * config/spu/spu.c: Likewise.
41800 * config/stormy16/stormy16.c: Likewise.
41801 * config/v850/v850.c: Likewise.
41802 * config/vax/vax.c: Likewise.
41803 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
41804 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
41805 * config/msp430/msp430.c: Likewise.
41806 * predict.c: Likewise.
41807 * value-prof.c: Likewise.
41808 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
41809 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
41810 * config/microblaze/microblaze.c: Likewise.
41811 * config/nios2/nios2.c: Likewise.
41812 * config/rs6000/rs6000.c: Likewise.
41813 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
41814 insn-config.h real.h rtl.h statistics.h stmt.h.
41815 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
41816 insn-config.h real.h statistics.h stmt.h.
41817 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
41818 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
41819 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
41820 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
41821 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
41822 fixed-value.h real.h statistics.h stmt.h.
41823 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
41824 fixed-value.h statistics.h stmt.h.
41825 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
41828 2015-01-15 Jakub Jelinek <jakub@redhat.com>
41830 * gengtype.c (create_user_defined_type): Workaround
41831 -Wmaybe-uninitialized false positives.
41832 * cse.c (fold_rtx): Likewise.
41833 * loop-invariant.c (gain_for_invariant): Likewise.
41835 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
41837 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
41838 set the memory attributes in all cases but clear MEM_EXPR if need be.
41840 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
41842 PR tree-optimization/64434
41843 * cfgexpand.c (reorder_operands): New function.
41844 (expand_gimple_basic_block): Insert call of reorder_operands if
41847 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
41849 * config/mips/micromips.md (*swp): Remove explicit parallel.
41850 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
41851 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
41852 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
41853 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
41854 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
41855 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
41856 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
41857 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
41858 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
41859 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
41860 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
41861 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
41862 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
41863 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
41864 (mips_wrdsp): Likewise.
41865 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
41867 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
41868 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
41869 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
41870 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
41871 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
41872 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
41873 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
41874 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
41875 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
41877 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
41879 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
41880 (mips_print_operand): Support 'y' to print exact log2 in decimal
41882 * config/mips/mips.h (ISA_HAS_LSA): New define.
41883 (ISA_HAS_DLSA): Likewise.
41884 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
41885 * config/mips/predicates.md (const_immlsa_operand): New predicate.
41887 2015-01-15 Martin Liska <mliska@suse.cz>
41890 * optc-save-gen.awk: Add support for array types.
41892 2015-01-15 Richard Biener <rguenther@suse.de>
41894 PR middle-end/64365
41895 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
41896 for MEM_REF access functions with the same base can never partially
41899 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
41901 * common.opt: New option -fstack-protector-explicit.
41902 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
41903 (stack_protect_decl_phase): Handle stack_protect attribute for
41904 explicit stack protection requests.
41905 (expand_used_vars): Similarly.
41906 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
41907 * doc/extend.texi: Add documentation for "stack_protect" attribute.
41908 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
41910 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
41913 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
41915 (sh_extending_set_of_reg): New struct.
41916 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
41917 sh_remove_reg_dead_or_unused_notes): New Declarations.
41918 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
41919 sh_find_extending_set_of_reg, sh_split_tst_subregs,
41920 sh_extending_set_of_reg::use_as_extended_reg): New functions.
41921 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
41922 convert to insn_and_split and use new function sh_split_tst_subregs.
41924 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
41926 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
41928 (Optimization Options): Move -fuse-ld documentation to...
41929 (Link Options): ...here.
41931 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
41933 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
41935 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
41936 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
41937 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
41938 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
41939 instead of ZR for the memory operand of LL/SC.
41940 (compare_and_swap_12, sync_add<mode>): Likewise.
41941 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
41942 (sync_new_<optab>_12, sync_nand_12): Likewise.
41943 (sync_old_nand_12, sync_new_nand_12): Likewise.
41944 (sync_sub<mode>, sync_old_add<mode>): Likewise.
41945 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
41946 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
41947 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
41948 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
41949 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
41950 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
41951 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
41952 * doc/md.texi (ZC): Update description.
41954 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
41956 * builtins.c (expand_builtin_atomic_exchange): Remove error when
41957 memory model is CONSUME.
41958 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
41959 expand_builtin_atomic_store): Change invalid memory model errors to
41961 (expand_builtin_atomic_clear): Change invalid model errors to warnings
41962 and issue warning for CONSUME.
41964 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
41966 * lto-cgraph: Update function comments for
41967 lto_symtab_encoder_encode_*.
41969 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
41971 * Makefile.in (site.exp): Do not set ENABLE_LTO.
41973 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
41975 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
41976 * lto-cgraph.c (select_what_to_stream): Remove argument, use
41977 lto_stream_offload_p instead.
41978 * lto-streamer.h (select_what_to_stream): Remove argument.
41979 * passes.c (ipa_write_summaries): Likewise.
41980 * tree-pass.h (ipa_write_summaries): Likewise.
41982 2015-01-14 Richard Biener <rguenther@suse.de>
41984 PR tree-optimization/59354
41985 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
41986 groups larger than the slp group size as having gaps.
41988 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
41990 PR middle-end/59448
41991 * builtins.c (get_memmodel): Promote consume to acquire always.
41993 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
41996 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
41999 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
42002 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
42004 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
42005 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
42006 AVX512VBMI, as it implies AVX512BW.
42008 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
42011 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
42012 (vec_unpacks_hi_v16sf): Ditto.
42014 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
42016 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
42019 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
42021 * doc/invoke.texi (mapcs): Mention deprecation.
42022 (mapcs-frame): Likewise.
42024 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
42027 * config/arm/arm.c (callee_saved_reg_p): Define.
42028 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
42029 register is callee saved instead of !call_used_regs[reg].
42030 (thumb1_compute_save_reg_mask): Likewise.
42032 2015-01-14 Hale Wang <hale.wang@arm.com>
42034 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
42037 2015-01-14 Richard Biener <rguenther@suse.de>
42040 * tree-inline.c (insert_debug_decl_map): Check destination
42041 function MAY_HAVE_DEBUG_STMTS.
42042 (insert_init_debug_bind): Likewise.
42043 (insert_init_stmt): Remove redundant check.
42044 (remap_gimple_stmt): Drop debug stmts if the destination
42045 function has var-tracking assignments disabled.
42047 2015-01-14 Martin Liska <mliska@suse.cz>
42049 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
42050 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
42052 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
42055 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
42056 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
42058 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
42060 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
42061 level from an ARCH; do not inject the default.
42062 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
42063 MIPS_ISA_LEVEL_SPEC.
42064 (MIPS_ISA_NAN2008_SPEC): Update comment.
42065 (BASE_DRIVER_SELF_SPECS): Likewise.
42066 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
42067 MIPS_DEFAULT_ISA_LEVEL_SPEC.
42068 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
42069 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
42070 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
42072 2015-01-14 Richard Biener <rguenther@suse.de>
42074 PR tree-optimization/64493
42075 PR tree-optimization/64495
42076 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
42077 assign the proper vectorized PHI to the inner loop exit PHIs.
42079 2015-01-14 Joey Ye <joey.ye@arm.com>
42081 * config/arm/arm.c (arm_compute_save_reg_mask):
42082 Do not save lr in case of tail call.
42083 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
42085 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
42087 * tree-vrp.c (check_array_ref): Emit more warnings
42088 for warn_array_bounds >= 2.
42089 * common.opt: New option -Warray-bounds=.
42090 * doc/invoke.texi: Document -Warray-bounds=.
42092 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
42094 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
42095 (mforbid-fp-as-gp): Remove.
42097 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
42098 (nds32_symbol_load_store_p): Remove.
42099 (nds32_fp_as_gp_check_available): Clean up implementation.
42100 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
42102 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
42103 fp-as-gp and ex9 cases.
42105 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
42107 * tree-profile.c (init_ic_make_global_vars): Drop workaround
42108 for bintuils bug 14342.
42109 (init_ic_make_global_vars): Likewise.
42110 (gimple_init_edge_profiler): Likewise.
42111 (gimple_gen_ic_func_profiler): Likewise.
42113 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
42115 * ipa-inline.c (inline_small_functions): Swap the operands in
42118 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
42121 * ipa-inline-analysis.c (node_growth_cache): Remove.
42122 (initialize_growth_caches): Do not initialize it.
42123 (free_growth_caches): Do not free it.
42124 (do_estimate_growth): Rename to ...
42125 (estimate_growth): ... this one; drop growth cache code.
42126 (growth_likely_positive): Always go the heuristics way.
42127 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
42128 (reset_edge_caches): Do not reset node growth.
42129 (heap_edge_removal_hook): Do not maintain cache.
42130 (inline_small_functions): Likewise; strenghten sanity check.
42131 (ipa_inline): Do not maintain caches.
42132 * ipa-inline.h (node_growth_cache): Remove.
42133 (do_estimate_growth): Remove to ...
42134 (estimate_growth): this one; remove inline version.
42135 (reset_node_growth_cache): Remove.
42137 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
42140 * ipa-inline.c (inline_small_functions): Update callee keys after
42141 resolving speculation
42142 (inline_small_functions): Always check monotonicity of the queue.
42144 2015-01-13 Marek Polacek <polacek@redhat.com>
42146 PR middle-end/64391
42147 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
42149 2015-01-13 Jakub Jelinek <jakub@redhat.com>
42151 PR rtl-optimization/64286
42152 * ree.c (combine_reaching_defs): Move part of comment earlier,
42153 remove !SCALAR_INT_MODE_P check.
42154 (add_removable_extension): Don't add vector mode
42155 extensions if all uses of the source register aren't the same
42158 2015-01-13 Renlin Li <renlin.li@arm.com>
42160 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
42161 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
42163 2015-01-13 Martin Liska <mliska@suse.cz>
42165 * ipa-icf.c (sem_function::equals_private): Call new functions
42166 cl_target_option_print_diff and cl_optimization_print_diff.
42167 * optc-save-gen.awk (cl_target_option_print_diff): New function.
42168 (cl_optimization_print_diff): Likewise.
42169 * opth-gen.awk: Likewise.
42171 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
42173 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
42174 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
42175 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
42176 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
42177 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
42178 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
42180 2015-01-13 Andrew Pinski <apinski@cavium.com>
42182 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
42183 instead of src mode.
42185 2015-01-13 Richard Biener <rguenther@suse.de>
42188 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
42191 2015-01-13 Andrew Pinski <apinski@cavium.com>
42193 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
42195 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
42197 2015-01-13 Jakub Jelinek <jakub@redhat.com>
42199 PR middle-end/63974
42200 * cfgexpand.c (expand_computed_goto): Don't call
42201 convert_memory_address here.
42203 2015-01-13 Richard Biener <rguenther@suse.de>
42205 PR tree-optimization/64406
42206 * tree-loop-distibution.c (pass_loop_distribution::execute):
42207 Reset the SCEV hashtable if we distributed anything.
42209 2015-01-13 Richard Biener <rguenther@suse.de>
42211 PR tree-optimization/64404
42212 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
42213 SLP types for CSEd loads.
42215 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
42217 PR tree-optimization/64436
42218 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
42219 merge of two symbolic numbers for a bitwise OR to ...
42220 (perform_symbolic_merge): This. Also fix computation of the range and
42221 end of the symbolic number corresponding to the result of a bitwise OR.
42223 2015-01-13 Richard Biener <rguenther@suse.de>
42225 PR tree-optimization/64568
42226 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
42227 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
42229 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
42231 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
42232 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
42234 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
42236 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
42237 target-specific symbol_ref flag.
42238 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
42239 resides in rodata section.
42240 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
42241 (nds32_encode_section_info): New function.
42243 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
42245 * config/nds32/nds32.md (call): Use pseudo instruction bal which
42246 clobbers TA_REGNUM if large code model is specified.
42247 (call_register): Likewise.
42248 (call_immediate): Likewise.
42249 (call_value): Likewise.
42250 (call_value_register): Likewise.
42251 (call_value_immediate): Likewise.
42253 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
42255 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
42256 (TARGET_CMODEL_MEDIUM): New macro.
42257 (TARGET_CMODEL_LARGE): New macro.
42258 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
42259 code model setting in assembly code.
42261 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
42263 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
42264 Remove MASK_GP_DIRECT flag.
42265 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
42266 one of the multilib default options.
42267 * config/nds32/nds32.opt (mgp-direct): Remove.
42268 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
42269 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
42271 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
42273 * config/nds32/nds32.opt (mcmodel): Add new option.
42274 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
42275 to describe code model.
42277 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
42280 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
42282 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
42284 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
42285 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
42286 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
42287 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
42288 __builtin_sh_set_fpscr.
42290 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
42292 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
42293 after a funtion name just to indicate it is a function.
42294 ([-fsanitize-undefined-trap-on-error]): Likewise.
42295 ([-fdbg-cnt=]): Likewise.
42296 ([-mmemcpy]): Likewise.
42297 ([-mflush-func]): Likewise.
42298 ([-msynci]): Likewise.
42300 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
42302 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
42305 2015-01-12 Jakub Jelinek <jakub@redhat.com>
42307 PR tree-optimization/64563
42308 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
42309 instead of != VR_VARYING.
42312 * config/i386/i386.c (ix86_expand_prologue): Add
42313 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
42315 PR tree-optimization/64454
42316 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
42317 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
42318 for signed or [0, op1 - 1] for unsigned modulo.
42319 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
42320 even if op1 does not satisfy integer_pow2p.
42323 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
42325 2015-01-12 Jeff Law <law@redhat.com>
42328 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
42329 (trunchiqi2, truncsihi2): Similarly.
42331 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
42332 rather than calling F.
42334 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
42336 * tsan.c (instrument_expr): Use force_gimple_operand.
42337 Use may_be_nonaddressable_p instead of is_gimple_addressable.
42339 2015-01-12 Richard Biener <rguenther@suse.de>
42341 PR tree-optimization/64530
42342 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
42345 2015-01-12 Richard Biener <rguenther@suse.de>
42347 PR middle-end/64357
42348 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
42351 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
42353 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
42354 Cortex-A17 tuning parameters.
42355 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
42357 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
42359 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
42360 * config/arm/arm.c (arm_macro_fusion_p): New function.
42361 (arm_macro_fusion_pair_p): Likewise.
42362 (TARGET_SCHED_MACRO_FUSION_P): Define.
42363 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
42364 (ARM_FUSE_NOTHING): Likewise.
42365 (ARM_FUSE_MOVW_MOVT): Likewise.
42366 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
42367 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
42368 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
42369 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
42370 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
42371 arm_cortex_a5_tune): Specify fuseable_ops value.
42373 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
42376 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
42377 test for PIE with copy reloc.
42378 * configure: Regenerated.
42380 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
42382 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
42384 (arm_tls_descseq_addr): Likewise.
42385 (arm_gen_movmemqi): Likewise.
42386 (arm_expand_epilogue_apcs_frame): Likewise.
42387 (arm_expand_epilogue): Likewise.
42388 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
42391 2015-01-12 Martin Liska <mliska@suse.cz>
42394 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
42395 volatility for correct operands.
42397 2015-01-12 Martin Liska <mliska@suse.cz>
42399 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
42400 indication that a function is not leaf.
42401 (sem_function::compare_polymorphic_p): Likewise.
42403 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
42405 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
42406 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
42407 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
42408 fold-const.h, tree-check.h.
42410 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
42414 * ipa-inline.c (compute_uninlined_call_time,
42415 compute_inlined_call_time): Use counts for extra precision when
42417 (big_speedup_p): Fix formating.
42418 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
42419 (relative_time_benefit): Remove.
42420 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
42421 merge guessed and read profile paths.
42422 (inline_small_functions): Count only !optimize_size functions into
42423 initial size; be more lax about sanity check when profile is used;
42424 be sure to update inlined function profile when profile is read.
42426 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
42429 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
42430 cost when edge becomes direct.
42431 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
42432 is resolved or when introducing new speculation.
42434 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
42438 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
42439 '||' to fix typo issue.
42441 * tree.h (target_opts_for_fn): Check NULL_TREE since it can
42442 accept and return NULL.
42444 2015-01-12 Martin Liska <mliska@suse.cz>
42446 * cgraph.c (cgraph_edge::remove_callee): Move function to header
42447 file for being inlined.
42448 (cgraph_set_edge_callee): Delete.
42449 (cgraph_edge::redirect_callee): Move function to header file
42451 (cgraph_edge::make_direct): Use new function.
42452 (cgraph_edge::dump_edge_flags): New function created from
42453 static dump_edge_flags function.
42454 (cgraph_node::dump): Use new function.
42455 (cgraph_edge::verify_count_and_frequency): New function created
42456 from verify_edge_count_and_frequency.
42457 (cgraph_edge::verify_corresponds_to_fndecl): New function created
42458 from verify_edge_corresponds_to_fndecl.
42459 (verify_edge_corresponds_to_fndecl): Delete.
42460 (cgraph_node::verify_node): Use new function.
42461 * cgraph.h (cgraph_edge::set_callee): New function.
42462 (cgraph_edge::dump_edge_flags): Likewise.
42463 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
42465 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
42467 * ipa-utils.c (estimate_function_body_sizes): Do not
42468 free node params when called late with early=true.
42470 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
42472 * doc/md.texi (Instruction Patterns): Rewrite text for
42474 (Example): Likewise.
42476 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
42478 * doc/invoke.texi (Option Summary): Break long lines.
42479 [(-fdiagnostics-color)]: Put long literal in @smallexample
42481 [(-fsanitize-recover)]: Likewise.
42482 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
42483 [(-ffast-math)]: Likewise.
42484 [(--param max-inline-insns-recursive)]: Likewise.
42485 [(--param max-inline-recursive-depth)]: Likewise.
42486 [(-mno-text-section-literals)]: Likewise.
42488 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
42490 * doc/install.texi: Update for libgomp being renamed from "GNU
42491 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
42493 * doc/sourcebuild.texi: Likewise.
42495 2015-01-10 Anthony Green <green@moxielogic.com>
42497 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
42498 mul.x availability for moxiebox configuration.
42500 2015-01-09 Anthony Green <green@moxielogic.com>
42502 * config/moxie/moxie.md: Tabify assembly output.
42504 2015-01-09 Anthony Green <green@moxielogic.com>
42506 * config/moxie/moxie.md (CC_REG): Correct register definition.
42508 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
42510 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
42511 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
42514 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
42516 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
42518 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
42519 Jakub Jelinek <jakub@redhat.com>
42521 PR middle-end/64412
42522 * lto-streamer.h (lto_stream_offload_p): New declaration.
42523 * lto-streamer.c (lto_stream_offload_p): New variable.
42524 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
42525 at the same time as section_name_prefix.
42526 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
42527 if lto_stream_offload_p.
42528 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
42529 stream TREE_TARGET_OPTION if lto_stream_offload_p.
42530 (write_ts_function_decl_tree_pointers): Don't
42531 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
42532 * tree-streamer-in.c (unpack_value_fields): Don't stream
42533 TREE_TARGET_OPTION in if ACCEL_COMPILER.
42534 (lto_input_ts_function_decl_tree_pointers): Don't stream
42535 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
42536 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
42537 instead of section_name_prefix string comparisons.
42539 2015-01-09 Jakub Jelinek <jakub@redhat.com>
42541 PR rtl-optimization/64536
42542 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
42545 2015-01-09 Michael Collison <michael.collison@linaro.org>
42547 PR tree-optimization/64322
42548 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
42549 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
42551 2015-01-09 Tom de Vries <tom@codesourcery.com>
42553 PR rtl-optimization/64539
42554 * regcprop.c (kill_clobbered_values): Factor out of ...
42555 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
42556 instead of note_stores with kill_clobbered_value.
42558 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
42560 * ginclude/unwind-arm-common.h: Revert previous commit.
42562 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
42564 * config.gcc (arm*-*-freebsd*): New configuration.
42565 * config/arm/freebsd.h: New file.
42566 * config.host: Add extra components for arm*-*-freebsd*.
42567 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
42568 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
42570 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
42572 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
42574 * config/rs6000/t-rtems: Add e6500 multilibs.
42576 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
42578 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
42581 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
42583 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
42584 MULTILIB_EXCEPTIONS.
42586 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
42588 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
42589 MULTILIB_EXCEPTIONS.
42591 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
42593 * config/arm/t-rtems-eabi: Rename to...
42594 * config/arm/t-rtems: ...this.
42595 * config/arm/rtems-eabi.h: Rename to...
42596 * config/arm/rtems.h: ...this.
42597 * config.gcc (arm*-*-rtems*): Reflect changes above.
42599 2015-01-09 Richard Biener <rguenther@suse.de>
42601 PR tree-optimization/64410
42602 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
42604 (execute_update_addresses_taken): Deal with that.
42605 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
42606 loads/stores for complex variables.
42608 2015-01-09 Martin Liska <mliska@suse.cz>
42610 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
42612 (func_checker::compare_memory_operand): New function.
42613 (func_checker::compare_operand): Split case to newly
42615 (func_checker::compare_cst_or_decl): New function.
42616 (func_checker::compare_gimple_call): Identify
42618 (func_checker::compare_gimple_assign): Likewise.
42619 * ipa-icf-gimple.h: New function.
42621 2015-01-09 Martin Liska <mliska@suse.cz>
42624 * sreal.c (sreal::dump): Change unsigned format to signed for
42626 (sreal::to_double): Replace exp2 with scalbln.
42628 2015-01-09 Martin Liska <mliska@suse.cz>
42630 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
42631 * ipa-icf.c (sem_function::equals_private): Add support for target and
42632 (sem_item_optimizer::merge_classes): Remove redundant function
42633 optimization flags comparison.
42634 * tree.h (target_opts_for_fn): New function.
42636 2015-01-09 Tom de Vries <tom@codesourcery.com>
42638 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
42640 2015-01-09 Kito Cheng <kito@0xlab.org>
42642 PR rtl-optimization/64348
42643 * lra-constraints.c (split_reg): Fix caller-save store/restore
42644 instruction generation.
42646 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
42648 PR gcov-profile/61790
42649 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
42650 long long. Fallback to int64_t if host doesn't have long long and
42651 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
42653 2015-01-08 Jakub Jelinek <jakub@redhat.com>
42655 PR tree-optimization/63989
42656 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
42657 from 1000 to 10000.
42658 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
42659 (get_stridx): If we don't have a record for certain SSA_NAME,
42660 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
42661 constant offset, call get_stridx_plus_constant.
42662 (get_stridx_plus_constant): New function.
42663 (zero_length_string): Don't use get_stridx here.
42666 PR middle-end/64388
42667 * dse.c (struct insn_info): Mention frame_read set also
42668 before reload for tail calls on some targets.
42669 (scan_insn): Revert 2014-12-22 change. Set frame_read
42670 also before reload for tail calls if
42671 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
42672 instead of add_non_frame_wild_read for non-const/memset
42673 tail calls after reload.
42675 2015-01-08 Jason Merrill <jason@redhat.com>
42677 * ubsan.c (do_ubsan_in_current_function): New.
42678 (pass_ubsan::gate): Use it.
42679 * ubsan.h: Declare it.
42680 * convert.c (convert_to_integer): Use it.
42682 2015-01-08 Jakub Jelinek <jakub@redhat.com>
42685 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
42686 compare_code when it is unconditionally overwritten afterwards.
42687 Use ix86_reverse_condition instead of reverse_condition. Don't
42688 change code if *reverse_condition* returned UNKNOWN and don't
42689 swap ct/cf and negate diff in that case.
42691 2015-01-08 Mike Stump <mikestump@comcast.net>
42693 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
42694 (pass_tsan_O0::gate): Likewise.
42695 * extend.texi (Function Attributes): Add no_sanitize_thread
42698 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
42700 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
42701 for registering builtins.
42702 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
42703 add -fopenmp to the argv_obstack used when invoking
42704 compile_for_target.
42706 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
42707 add "-m32" or "-m64" to argv_obstack.
42708 (generate_host_descr_file): Likewise, when invoking host_compiler.
42709 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
42712 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
42714 * config/sh/sh-mem.cc: Use constant as second operand when emitting
42717 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
42720 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
42721 constant load if constant operand fits into I08.
42723 2015-01-08 Jakub Jelinek <jakub@redhat.com>
42726 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
42727 and TREE_THIS_VOLATILE for MEM_REFs.
42728 (build5_stat): Fix up initialization of TREE_READONLY and
42729 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
42731 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
42734 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
42735 of r for the second alternative of the destination operand.
42737 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
42740 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
42742 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
42744 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
42746 ([-fivar-visibility], [-fvisibility]): Likewise.
42748 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
42750 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
42751 the file where @code, @command, etc is more appropriate.
42753 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
42755 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
42756 of -mrecip= documentation.
42758 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
42761 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
42762 correct reload handler if -m32 -mpowerpc64 is used.
42764 2015-01-06 Tom de Vries <tom@codesourcery.com>
42766 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
42768 2015-01-08 Christian Bruel <christian.bruel@st.com>
42771 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
42773 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
42775 PR tree-optimization/63259
42776 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
42777 if optab exists for 16bit byteswap.
42779 2015-01-06 Jakub Jelinek <jakub@redhat.com>
42781 * opts.c (common_handle_option): Add support for
42782 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
42783 * doc/invoke.texi: Document -fno-sanitize=all,
42784 -f{,no-}sanitize-recover=all. Document that
42785 -fsanitize=float-cast-overflow is not enabled
42786 by -fsanitize=undefined. Fix up documentation
42787 of -f{,no-}sanitize-recover.
42789 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
42791 * config.gcc: Add Visium support.
42792 * configure.ac: Likewise.
42793 * configure: Regenerate.
42794 * doc/extend.texi (interrupt attribute): Add Visium.
42795 * doc/invoke.texi: Document Visium options.
42796 * doc/install.texi: Document Visium target.
42797 * doc/md.texi: Document Visium constraints.
42798 * common/config/visium: New directory.
42799 * config/visium: Likewise.
42801 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
42803 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
42804 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
42806 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
42808 * combine.c (combine_validate_cost): Do not count the cost of a
42809 split I2 twice. Do not display it twice in the dump, either.
42811 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
42813 Revert parts of r219199.
42814 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
42816 ([-Wtraditional]): Restore markup on <limits.h>.
42818 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
42821 * doc/invoke.texi: Document -Wsuggest-override.
42823 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
42825 PR rtl-optimization/64287
42826 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
42827 (process_options): Disable flag_ipa_ra if profiling.
42829 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
42831 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
42833 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
42835 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
42836 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
42837 put under #if TARGET_LOOPS guard.
42839 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
42841 * config/i386/i386.c (output_387_binary_op): Use std::swap.
42843 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
42845 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
42846 * rtl.h (refers_to_regno_p): Add overload.
42848 * bt-load.c: Likewise.
42849 * combine.c: Likewise.
42850 * df-scan.c: Likewise.
42851 * sched-deps.c: Likewise.
42852 * config/s390/s390.c: Likewise.
42853 * config/m32r/m32r.c: Likewise.
42854 * config/rs6000/spe.md: Likewise.
42855 * config/rs6000/rs6000.c: Likewise.
42856 * config/pa/pa.c: Likewise.
42857 * config/stormy16/stormy16.c: Likewise.
42858 * config/cris/cris.c: Likewise.
42859 * config/arc/arc.md: Likewise.
42860 * config/arc/arc.c: Likewise.
42861 * config/sh/sh.md: Likewise.
42862 * config/sh/sh.c: Likewise.
42863 * config/frv/frv.c: Likewise.
42865 2015-01-05 Jakub Jelinek <jakub@redhat.com>
42868 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
42869 call as cleanup of the whole body.
42870 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
42871 * tsan.c (replace_func_exit): New function.
42872 (instrument_func_exit): Moved earlier.
42873 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
42874 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
42876 (tsan_pass): Don't call instrument_func_exit.
42877 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
42878 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
42882 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
42883 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
42884 it to libubsan handler instead of EXPR. Fold comparisons earlier,
42885 if the result is integer_zerop, return NULL_TREE.
42886 * convert.c (convert_to_integer): Pass expr as ARG.
42888 PR tree-optimization/64465
42889 * tree-inline.c (redirect_all_calls): During inlining
42890 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
42891 changed the stmt to a non-throwing call.
42893 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
42895 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
42896 etc markup throughout the file.
42898 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
42900 Enable experimental TSAN support for Ada.
42901 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
42903 2015-01-05 Jakub Jelinek <jakub@redhat.com>
42905 PR tree-optimization/64494
42906 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
42907 clear SSA_NAME_ANTI_RANGE_P flag.
42909 2015-01-05 Marek Polacek <polacek@redhat.com>
42911 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
42913 2015-01-05 Jakub Jelinek <jakub@redhat.com>
42915 Update copyright years.
42917 * gcc.c (process_command): Update copyright notice dates.
42918 * gcov-dump.c: Ditto.
42920 * doc/cpp.texi: Bump @copying's copyright year.
42921 * doc/cppinternals.texi: Ditto.
42922 * doc/gcc.texi: Ditto.
42923 * doc/gccint.texi: Ditto.
42924 * doc/gcov.texi: Ditto.
42925 * doc/install.texi: Ditto.
42926 * doc/invoke.texi: Ditto.
42928 * auto-profile.c, auto-profile.h: Fix up Copyright line.
42930 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
42932 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
42934 ([-fvtable-verify], [-fvtv-debug]): Likewise.
42935 ([-Wabi]): Likewise.
42936 ([-fmessage-length]): Likewise.
42937 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
42938 ([-Wno-discarded-qualifiers]): Likewise.
42939 ([-Wnodiscarded-array-qualifiers]): Likewise.
42940 ([-Wno-virtual-move-assign]): Likewise.
42941 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
42942 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
42943 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
42944 ([-fsanitize-undefined-trap-on-error]): Likewise.
42945 ([-floop-interchange]): Likewise.
42946 ([-ftree-coalesce-inlined-vars]): Likewise.
42947 ([-fvect-cost-model]): Likewise.
42948 ([-flto]): Likewise.
42949 ([--param]): Likewise.
42950 (Spec Files): Likewise.
42951 ([-mstrict-align]): Likewise.
42952 ([-mfix-cortex-a53-835769]): Likewise.
42953 ([-march], [-mtune]): Likewise.
42954 ([-mpic-register]): Likewise.
42955 ([-munaligned-access]): Likewise.
42956 ([-msp8]): Likewise.
42957 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
42958 (AVR Built-in Macros): Likewise.
42959 ([-mpreferred-stack-boundary]): Likewise.
42960 ([-mtune-crtl]): Likewise.
42961 ([-mashf]): Likewise.
42962 ([-mmcu=]): Likewise.
42963 ([-minrt]): Likewise.
42964 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
42965 ([-mupper-regs]): Likewise.
42966 ([-matomic-model]): Likewise.
42967 ([-mdiv]): Likewise.
42968 ([-mzdcbranch]): Likewise.
42969 ([-mdisable-callt]): Likewise.
42970 ([-msoft-float]): Likewise.
42971 ([-m8byte-align]): Likewise.
42972 ([-fstack-reuse]): Likewise.
42974 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
42976 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
42977 Fix markup, light copy-editing.
42978 ([-fauto-profile]): Rewrite to fix formatting and content
42981 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
42983 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
42984 Copy-edit description.
42985 ([-fisolate-erroneous-paths-attribute]): Likewise.
42986 * common.opt (fisolate-erroneous-paths-dereference):
42987 Copy-edit description.
42988 (fisolate-erroneous-paths-attribute): Likewise.
42990 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
42992 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
42995 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
42997 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
42998 ([-fvtv-debug]): Likewise.
42999 ([-Wc++-compat]): Likewise.
43000 ([-Wc++11-compat]): Likewise.
43001 ([-Wc++14-compat]): Likewise.
43002 ([-Wno-sized-deallocation]): Likewise.
43003 ([-femit-class-debug-always]): Likewise.
43004 ([-femit-struct-debug-detailed]): Likewise.
43005 ([-fno-keep-inline-dllexport]): Likewise.
43006 ([-fira-algorithm]): Likewise.
43007 ([-fira-region]): Likewise.
43008 ([-flra-remat]): Likewise.
43009 ([-fipa-ra]): Likewise.
43010 ([-fhoist-adjacent-loads]): Likewise.
43011 ([-fisolate-erroneous-paths-dereference]): Likewise.
43012 ([-fisolate-erroneous-paths-attribute]): Likewise.
43013 ([-ftree-switch-conversion]): Likewise.
43014 ([-ftree-tail-merge]): Likewise.
43015 ([-ftree-loop-if-convert]): Likewise.
43016 ([-ftree-loop-if-convert-stores]): Likewise.
43017 ([-ftree-loop-distribution]): Likewise.
43018 ([-ftree-loop-distribute-patterns]): Likewise.
43019 ([-flto-compression-level]): Likewise.
43020 ([-flto-report]): Likewise.
43021 ([-flto-report-wpa]): Likewise.
43022 ([-fuse-linker-plugin]): Likewise.
43023 ([-mfix-cortex-a53-835769]): Likewise.
43024 ([-mno-fix-cortex-a53-835769]): Likewise.
43025 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
43026 explicit listing; add a note to the discussion indicating they
43027 exist. Reorder table to group similar options. Add missing
43028 @opindex entries. Add @need commands throughout the table to
43029 allow it to be split across multiple pages.
43030 ([-m8bit-idiv]): Fix @opindex.
43031 ([-mavx256-split-unaligned-load]): Likewise.
43032 ([-mavx256-split-unaligned-store]): Likewise.
43033 ([-mstack-protector-guard]): Likewise.
43034 ([-mcpu=]): Likewise.
43035 ([-mcpu]): Likewise.
43036 ([-mpointer-size=]): Likewise.
43038 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
43040 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
43041 instead of `m' constraint. Likewise for unnamed movb comparison
43042 patterns using reg_before_reload_operand predicate.
43043 * config/pa/predicates.md (reg_before_reload_operand): Tighten
43044 predicate to reject register index and LO_SUM DLT memory forms
43047 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
43049 * doc/invoke.texi (Option Summary): Fix spelling of
43050 -fdevirtualize-at-ltrans.
43051 ([-fdevirtualize]): Fix markup.
43052 ([-fdevirtualize-speculatively]): Fix typo.
43053 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
43054 implementor-speaky.
43055 * common.opt (fdevirtualize-at-ltrans): Likewise.
43056 * ipa-devirt.c: Fix typos in comments throughout the file.
43057 (ipa_devirt): Fix typos in format strings for dump output.
43059 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
43061 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
43062 discussion of defaults, light copy-editing.
43064 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
43066 * tsan.c (instrument_expr): corrected previous checkin.
43068 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
43070 Instrument bit field and unaligned accesses for TSAN.
43071 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
43072 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
43073 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
43074 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
43075 unaligned memory regions.
43077 2015-01-01 Anthony Green <green@moxielogic.com>
43079 * config/moxie/predicates.md (moxie_general_movsrc_operand):
43080 Restrict move source register offsets to 16 bits.
43082 Copyright (C) 2015 Free Software Foundation, Inc.
43084 Copying and distribution of this file, with or without modification,
43085 are permitted in any medium without royalty provided the copyright
43086 notice and this notice are preserved.